recce-nightly 0.58.0.20250313__py3-none-any.whl → 0.58.0.20250317__py3-none-any.whl
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.
Potentially problematic release.
This version of recce-nightly might be problematic. Click here for more details.
- recce/VERSION +1 -1
- recce/__init__.py +34 -13
- recce/adapter/dbt_adapter/__init__.py +1 -1
- recce/cli.py +8 -0
- recce/data/404.html +1 -1
- recce/data/_next/static/chunks/{36e1c10d-440dfddfa8195fa6.js → 36e1c10d-28bb82b9a3d959e7.js} +1 -1
- recce/data/_next/static/chunks/{89-7582059707ab2c72.js → 727-81ddfe5839f762d5.js} +2 -2
- recce/data/_next/static/chunks/app/page-904cdda04903cb1a.js +1 -0
- recce/data/index.html +2 -2
- recce/data/index.txt +2 -2
- recce/server.py +11 -3
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/METADATA +1 -1
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/RECORD +19 -19
- recce/data/_next/static/chunks/app/page-1d7a8db7d17c005f.js +0 -1
- /recce/data/_next/static/{dr09Cai4fMkxo01dF1k_y → EusQfo0PlKiMhvgJR-TpE}/_buildManifest.js +0 -0
- /recce/data/_next/static/{dr09Cai4fMkxo01dF1k_y → EusQfo0PlKiMhvgJR-TpE}/_ssgManifest.js +0 -0
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/LICENSE +0 -0
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/WHEEL +0 -0
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/entry_points.txt +0 -0
- {recce_nightly-0.58.0.20250313.dist-info → recce_nightly-0.58.0.20250317.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89],{26573:function(e,t,n){"use strict";n.d(t,{S1:function(){return rc},j:function(){return rd}});var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x=n(67429);(r=d||(d={}))[r.None=0]="None",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Verbose=3]="Verbose",r[r.Debug=4]="Debug";var w=function(e){return function(){var t=(0,x.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},k=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,x.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},S=function(e,t){return function(){var n,r,i={};try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=k(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},E=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),l=s.logger,u=s.logLevel;if(u&&u<d.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),f}},_=function(e){return{promise:e||Promise.resolve()}};(i=f||(f={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var C="".concat("AMP","_unsent"),O="https://api2.amplitude.com/2/httpapi",T=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},A=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=f.Unknown),{event:e,code:t,message:n}},P="Amplitude Logger ",I=function(){function e(){this.logLevel=d.None}return e.prototype.disable=function(){this.logLevel=d.None},e.prototype.enable=function(e){void 0===e&&(e=d.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Verbose||console.log("".concat(P,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Warn||console.warn("".concat(P,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Error||console.error("".concat(P,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Debug||console.log("".concat(P,"[Debug]: ").concat(e.join(" ")))},e}(),R=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:d.Warn,loggerProvider:new I,offline:!1,optOut:!1,serverUrl:O,serverZone:"US",useBatch:!1}},j=function(){function e(e){this._optOut=!1;var t,n,r,i,o=R();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=M(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),M=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=R().serverZone),void 0===n&&(n=R().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:R().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":O)}},N=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),D=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,D)};function L(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var z=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(C,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=D()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,x.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,T(t,this.config.flushQueueSize).reduce(function(t,n){return(0,x.mG)(r,void 0,void 0,function(){return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,x._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new N,a.label=1;case 1:return a.trys.push([1,3,,4]),r=M(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(L(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:f.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case f.Success:this.handleSuccessResponse(e,t);break;case f.Invalid:this.handleInvalidResponse(e,t);break;case f.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case f.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,x.ev)((0,x.ev)((0,x.ev)((0,x.ev)([],(0,x.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,x.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(L(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(L(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(r)&&(t.timeout=n.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(L(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(A(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}();(o=h||(h={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(a=p||(p={})).REVENUE_PRODUCT_ID="$productId",a.REVENUE_QUANTITY="$quantity",a.REVENUE_PRICE="$price",a.REVENUE_TYPE="$revenueType",a.REVENUE_CURRENCY="$currency",a.REVENUE="$revenue",(s=m||(m={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var F=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!B(t,n))return!1}return!0},B=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&F(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return F(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},$=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,x.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(h.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(h.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(h.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(h.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(h.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(h.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(h.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(h.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(h.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[h.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[h.CLEAR_ALL]||this._propertySet.has(t))&&(e===h.ADD?"number"==typeof n:e===h.UNSET||e===h.REMOVE||B(t,n))},e}(),V=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return F(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,x.pi)({},this.properties):{};return e[p.REVENUE_PRODUCT_ID]=this.productId,e[p.REVENUE_QUANTITY]=this.quantity,e[p.REVENUE_PRICE]=this.price,e[p.REVENUE_TYPE]=this.revenueType,e[p.REVENUE_CURRENCY]=this.currency,e[p.REVENUE]=this.revenue,e},e}(),U=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=D(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p;return(0,x.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,x.CR)(e,1)[0],n=(0,x.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,x.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,x.pi)({},t))];case 3:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,x.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,x.pi)({},t))];case 11:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,x.pi)({},t);return e.execute(n).catch(function(e){return A(n,0,String(e))})})).then(function(e){var r=(0,x.CR)(e,1)[0]||A(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t=this;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e}(),W=function(e,t){return(0,x.pi)((0,x.pi)({},t),{event_type:m.IDENTIFY,user_properties:e.getUserProperties()})},q=function(e,t,n,r){var i;return(0,x.pi)((0,x.pi)({},r),{event_type:m.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},H=function(e,t,n){var r,i=new $;return i.set(e,t),(0,x.pi)((0,x.pi)({},n),{event_type:m.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Z=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new U(this),this.name=e}return e.prototype._init=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,x.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,x.pi)((0,x.pi)((0,x.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return _(this.dispatch(r))},e.prototype.identify=function(e,t){var n=W(e,t);return _(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=q(e,t,n,r);return _(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=H(e,t,n);return _(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,x.pi)((0,x.pi)({},t),{event_type:m.REVENUE,event_properties:e.getEventProperties()});return _(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),_())},e.prototype._addPlugin=function(e){return _(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),_())},e.prototype._removePlugin=function(e){return _(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(A(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t=this;return(0,x.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),this.config.optOut)return[2,A(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=r.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=String(r.sent()),this.config.loggerProvider.error(n),[2,t=A(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut=!!e},e.prototype.flush=function(){return _(this.timeline.flush())},e}(),G=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},K=function(e){return G(e,"attribution")},Y=function(e){return G(e,"pageViews")},X=function(e){return G(e,"sessions")},J=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},Q=function(e){if(J(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ee=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return Y(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},et="dclid",en="fbclid",er="gbraid",ei="gclid",eo="ko_click_id",ea="li_fat_id",es="msclkid",el="rtd_cid",eu="ttclid",ec="twclid",ed="wbraid",ef={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eh=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ep=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,x._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,x._T)(s,["referrer","referring_domain"]);if(em(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=eh(o||"")!==eh(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},em=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},eg=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ev=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},ey=function(){var e,t=ev();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eb(n[0]),i=eb(n[1]);return i&&(e[r]=i),e},{}):{}},eb=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ex=function(){function e(){}return e.prototype.parse=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({},ef),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=ey();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=ey();return(e={})[et]=t[et],e[en]=t[en],e[er]=t[er],e[ei]=t[ei],e[eo]=t[eo],e[ea]=t[ea],e[es]=t[es],e[el]=t[el],e[eu]=t[eu],e[ec]=t[ec],e[ed]=t[ed],e},e}(),ew=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},ek=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,x.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:eg(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=ef,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=x.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ew(this.sessionTimeout,this.lastEventTime),!ep(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ex().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,W(Object.entries((0,x.pi)((0,x.pi)({},ef),t)).reduce(function(e,t){var r,i=(0,x.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new $)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),eS=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eE(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eE=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e_=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eC=function(){return(eC=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}).apply(this,arguments)};function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eA=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eO(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u<e.length;u++)if(!eA(e[u],t[u]))return!1}else{if(!eA(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){eA(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eP=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eC({},this.identity.userProperties),n=eC(eC({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=eO(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eT(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,eO(Object.entries(h))),m=p.next();!m.done;m=p.next()){var g=eT(m.value,2),v=g[0],y=g[1];l[v]=y}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(a=void 0,eO(Object.keys(h))),x=b.next();!x.done;x=b.next()){var v=x.value;delete l[v]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eC({},this.identity)},e.prototype.setIdentity=function(e){var t=eC({},this.identity);this.identity=eC({},e),eA(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eI="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eR=function(){function e(){this.identityStore=new eP,this.eventBridge=new e_,this.applicationContextProvider=new eS}return e.getInstance=function(t){return eI.analyticsConnectorInstances||(eI.analyticsConnectorInstances={}),eI.analyticsConnectorInstances[t]||(eI.analyticsConnectorInstances[t]=new e),eI.analyticsConnectorInstances[t]},e}(),ej=function(e){return void 0===e&&(e="$default_instance"),eR.getInstance(e)},eM=function(e,t){ej(t).identityStore.editIdentity().setUserId(e).commit()},eN=function(e,t){ej(t).identityStore.editIdentity().setDeviceId(e).commit()},eD=function(){function e(){this.name="identity",this.type="before",this.identityStore=ej().identityStore}return e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return e.instanceName&&(this.identityStore=ej(e.instanceName).identityStore),[2]})})},e}(),eL=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},ez=function(e){return e&&void 0!==e._q},eF=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat("2.11.13"),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,x.Jh)(this,function(a){return t=new Date().getTime(),n=null!==(i=this.config.lastEventId)&&void 0!==i?i:-1,r=null!==(o=e.event_id)&&void 0!==o?o:n+1,this.config.lastEventId=r,e.time||(this.config.lastEventTime=t),[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eF()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:D(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:r,library:this.library,user_agent:this.userAgent})]})})},e}(),e$=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eV=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},eU=function(){function e(e){this.options=(0,x.pi)({},e)}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(!ev())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=eW(n))&&void 0!==t?t:eq(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=ev())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return(0,x.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=ev())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2]})})},e}(),eW=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eq=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eH=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,h,p,m,g,v,y,b,x,w,k,S,E=e.code||0,_=this.buildStatus(E);switch(_){case f.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case f.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(p=e.throttled_devices)&&void 0!==p?p:{},throttledEvents:null!==(m=e.throttled_events)&&void 0!==m?m:[]}};case f.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case f.RateLimit:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(x=e.throttled_users)&&void 0!==x?x:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(k=e.exceeded_daily_quota_users)&&void 0!==k?k:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case f.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?f.Success:429===e?f.RateLimit:413===e?f.PayloadTooLarge:408===e?f.Timeout:e>=400&&e<500?f.Invalid:e>=500?f.Failed:f.Unknown},e}(),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(eH),eG=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n;return(0,x.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eK=function(e){function t(t){var n,r=e.call(this,null===(n=ev())||void 0===n?void 0:n.localStorage)||this;return r.loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,x.ZT)(t,e),t.prototype.set=function(t,n){return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return r=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(i=this.loggerProvider)||void 0===i||i.error("Failed to save ".concat(r," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eG),eY=function(e){function t(){var t;return e.call(this,null===(t=ev())||void 0===t?void 0:t.sessionStorage)||this}return(0,x.ZT)(t,e),t}(eG),eX=function(e){function t(){var t=e.apply(this,(0,x.ev)([],(0,x.CR)(arguments),!1))||this;return t.state={done:4},t}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eH),eJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=ev();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eH),eQ=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,x.mG)(void 0,(0,x.ev)([e,t],(0,x.CR)(n),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d;return void 0===n&&(n=!0),(0,x.Jh)(this,function(f){switch(f.label){case 0:return r="".concat("amp","_").concat(e.substring(0,6)),[4,t.getRaw(r)];case 1:if(!(i=f.sent()))return[2,{optOut:!1}];if(!n)return[3,3];return[4,t.remove(r)];case 2:f.sent(),f.label=3;case 3:return a=(o=(0,x.CR)(i.split("."),6))[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:a,userId:e1(s),sessionId:e0(u),lastEventId:e0(d),lastEventTime:e0(c),optOut:!!l}]}})})},e0=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e1=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e2="[Amplitude]",e5="".concat(e2," Form Started"),e3="".concat(e2," Form Submitted"),e4="".concat(e2," File Downloaded"),e6="session_start",e7="session_end",e8="".concat(e2," File Extension"),e9="".concat(e2," File Name"),te="".concat(e2," Link ID"),tt="".concat(e2," Link Text"),tn="".concat(e2," Link URL"),tr="".concat(e2," Form ID"),ti="".concat(e2," Form Name"),to="".concat(e2," Form Destination"),ta="cookie",ts=function(e){function t(t,n,r,i,o,a,s,l,u,c,f,h,p,m,g,v,y,b,x,w,k,S,E,_,C,O,T,A,P,R,j,M,N,D){void 0===r&&(r=new e$),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===f&&(f=ta),void 0===v&&(v=new I),void 0===y&&(y=d.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===_&&(_="US"),void 0===O&&(O=18e5),void 0===T&&(T=new eK({loggerProvider:v})),void 0===A&&(A={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===j&&(j=!1);var L=e.call(this,{apiKey:t,storageProvider:T,transportProvider:tc(P)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=l,L.flushMaxRetries=u,L.flushQueueSize=c,L.identityStorage=f,L.ingestionMetadata=h,L.instanceName=p,L.loggerProvider=v,L.logLevel=y,L.minIdLength=b,L.offline=x,L.partnerId=k,L.plan=S,L.serverUrl=E,L.serverZone=_,L.sessionTimeout=O,L.storageProvider=T,L.trackingOptions=A,L.transport=P,L.useBatch=R,L.fetchRemoteConfig=j,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=m,L.lastEventTime=g,L.optOut=w,L.sessionId=C,L.pageCounter=N,L.userId=M,L.debugLogsEnabled=D,L.loggerProvider.enable(D?d.Debug:L.logLevel),L}return(0,x.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eV(this.apiKey),e)},t}(j),tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(0,x.mG)(void 0,(0,x.ev)([e],(0,x.CR)(t),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,L,z,F,B,$,V,U,W,q,H,Z;return void 0===t&&(t={}),(0,x.Jh)(this,function(G){switch(G.label){case 0:if(r=t.identityStorage||ta,k={},!(r!==ta))return[3,1];return o="",[3,5];case 1:if(!(null!==(E=null===(S=t.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return a=E,[3,4];case 2:return[4,td()];case 3:a=G.sent(),G.label=4;case 4:o=a,G.label=5;case 5:return i=x.pi.apply(void 0,[(k.domain=o,k.expiration=365,k.sameSite="Lax",k.secure=!1,k.upgrade=!0,k),t.cookieOptions]),[4,eQ(e,s=tu(t.identityStorage,i),null===(C=null===(_=t.cookieOptions)||void 0===_?void 0:_.upgrade)||void 0===C||C)];case 6:return l=G.sent(),[4,s.get(eV(e))];case 7:return u=G.sent(),c=ey(),d=null!==(I=null!==(P=null!==(A=null!==(T=null!==(O=t.deviceId)&&void 0!==O?O:c.ampDeviceId)&&void 0!==T?T:c.deviceId)&&void 0!==A?A:null==u?void 0:u.deviceId)&&void 0!==P?P:l.deviceId)&&void 0!==I?I:D(),f=null!==(R=null==u?void 0:u.lastEventId)&&void 0!==R?R:l.lastEventId,h=null!==(j=null==u?void 0:u.lastEventTime)&&void 0!==j?j:l.lastEventTime,p=null!==(N=null!==(M=t.optOut)&&void 0!==M?M:null==u?void 0:u.optOut)&&void 0!==N?N:l.optOut,m=null!==(L=null==u?void 0:u.sessionId)&&void 0!==L?L:l.sessionId,g=null!==(F=null!==(z=t.userId)&&void 0!==z?z:null==u?void 0:u.userId)&&void 0!==F?F:l.userId,n.previousSessionDeviceId=null!==(B=null==u?void 0:u.deviceId)&&void 0!==B?B:l.deviceId,n.previousSessionUserId=null!==($=null==u?void 0:u.userId)&&void 0!==$?$:l.userId,v={ipAddress:null===(U=null===(V=t.trackingOptions)||void 0===V?void 0:V.ipAddress)||void 0===U||U,language:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.language)||void 0===q||q,platform:null===(Z=null===(H=t.trackingOptions)||void 0===H?void 0:H.platform)||void 0===Z||Z},y=null==u?void 0:u.pageCounter,b=null==u?void 0:u.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(w=new ts(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,d,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,p,t.partnerId,t.plan,t.serverUrl,t.serverZone,m,t.sessionTimeout,t.storageProvider,v,t.transport,t.useBatch,t.fetchRemoteConfig,g,y,b)).storageProvider.isEnabled()];case 8:return G.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new e$),[2,w]}})})},tu=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eK;case"sessionStorage":return new eY;case"none":return new e$;default:return new eU((0,x.pi)((0,x.pi)({},t),{expirationDays:t.expiration}))}},tc=function(e){return"xhr"===e?new eX:"beacon"===e?new eJ:new eZ},td=function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:return[4,new eU().isEnabled()];case 1:if(!s.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=(null!=e?e:location.hostname).split("."),n=[],r="AMP_TLDTEST",i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));i=0,s.label=2;case 2:if(!(i<n.length))return[3,7];return[4,(a=new eU({domain:"."+(o=n[i])})).set(r,1)];case 3:return s.sent(),[4,a.get(r)];case 4:if(!s.sent())return[3,6];return[4,a.remove(r)];case 5:return s.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}})})},tf=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},th=function(e){void 0===e&&(e={});var t,n,r,i=ev(),o=void 0,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tp()];case 1:return[2,(n.event_properties=x.pi.apply(void 0,[x.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(n=tg(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,x.mG)(void 0,void 0,void 0,function(){var s,l;return(0,x.Jh)(this,function(u){switch(u.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",m),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,x.CR)(n,3),i=r[0],o=r[1],a=r[2];e.apply(t,[i,o,a]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tm(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tp=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=tf,[4,new ex().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tm=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[h.SET]||{},r=t[h.UNSET]||{},i=(0,x.ev)((0,x.ev)([],(0,x.CR)(Object.keys(n)),!1),(0,x.CR)(Object.keys(r)),!1);return Object.keys(ef).every(function(e){return i.includes(e)})}return!1},tg=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tv=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=o,n)),r.track(e3,((i={})[tr]=ty(e.id),i[ti]=ty(e.name),i[to]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ty=function(e){if("string"==typeof e)return e},tb=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tx=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(e4,((n={})[e8]=a,n[e9]=t.pathname,n[te]=e.id,n[tt]=e.text,n[tn]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tw=!1,tk=function(e){tw||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tw=!0)},tS=function(){var e=ev(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return r(),[2]})})}}};(l=g||(g={})).US="US",l.EU="EU";var tE="Remote config fetch rejected due to timeout after 5 seconds",t_="Unexpected error occurred",tC=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,x.mG)(r,void 0,void 0,function(){var r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,h;return(0,x.Jh)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tE})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),p.label=1;case 1:p.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,x.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,x.pi)((0,x.pi)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:t_})];switch(new eH().buildStatus(l.status)){case f.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case f.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:tE})];return[2,this.completeRequest({err:null!==(h=u.message)&&void 0!==h?h:t_})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tO=function(e){var t=e.localConfig,n=e.configKeys;return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,new tC({localConfig:t,configKeys:n})]})})},tT=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tO({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),!(t=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:t=s.sent(),s.label=2;case 2:return e=t,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(e,null,2)),e&&"autocapture"in e&&("boolean"==typeof e.autocapture&&(this.config.autocapture=e.autocapture),"object"==typeof e.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=e.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},e.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)((0,x.pi)({},this.config.autocapture),e.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(r=(a=this.config).requestMetadata)&&void 0!==r||(a.requestMetadata=new N),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(o=this.remoteConfigFetch)||void 0===o?void 0:o.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return n=s.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",n),[3,4];case 4:return[2,this.config]}})})},e}(),tA=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tP=["div","span","h1","h2","h3","h4","h5","h6"],tI="[Amplitude] Element Clicked",tR="[Amplitude] Element Tag",tj="[Amplitude] Element Text",tM="[Amplitude] Element Selector",tN="[Amplitude] Page URL",tD="https://app.amplitude.com",tL={US:tD,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tz="amp-visual-tagging-selector-highlight",tF=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tB(e){return"function"==typeof e}function t$(e){return tB(null==e?void 0:e.then)}function tV(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var tU=tV(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function tW(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tq=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,x.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(tB(l))try{l()}catch(e){i=e instanceof tU?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,x.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tZ(f)}catch(e){i=null!=i?i:[],e instanceof tU?i=(0,x.ev)((0,x.ev)([],(0,x.CR)(i)),(0,x.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new tU(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tZ(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&tW(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tW(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function tH(e){return e instanceof tq||e&&"closed"in e&&tB(e.remove)&&tB(e.add)&&tB(e.unsubscribe)}function tZ(e){tB(e)?e():e.unsubscribe()}tq.EMPTY;var tG={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tK={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tK.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setTimeout.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearTimeout:function(e){var t=tK.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tY(e){tK.setTimeout(function(){var t=tG.onUnhandledError;if(t)t(e);else throw e})}function tX(){}var tJ=tQ("C",void 0,void 0);function tQ(e,t,n){return{kind:e,value:t,error:n}}var t0=null,t1=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tH(t)&&t.add(n)):n.destination=t8,n}return(0,x.ZT)(t,e),t.create=function(e,t,n){return new t4(e,t,n)},t.prototype.next=function(e){this.isStopped?t7(tQ("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?t7(tQ("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?t7(tJ,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tq),t2=Function.prototype.bind;function t5(e,t){return t2.call(e,t)}var t3=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){t6(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){t6(e)}else t6(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){t6(e)}},e}(),t4=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tB(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&tG.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&t5(t.next,o),error:t.error&&t5(t.error,o),complete:t.complete&&t5(t.complete,o)}):i=t,a.destination=new t3(i),a}return(0,x.ZT)(t,e),t}(t1);function t6(e){tG.useDeprecatedSynchronousErrorHandling?tG.useDeprecatedSynchronousErrorHandling&&t0&&(t0.errorThrown=!0,t0.error=e):tY(e)}function t7(e,t){var n=tG.onStoppedNotification;n&&tK.setTimeout(function(){return n(e,t)})}var t8={closed:!0,next:tX,error:function(e){throw e},complete:tX},t9="function"==typeof Symbol&&Symbol.observable||"@@observable";function ne(e){return e}var nt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof t1||r&&tB(r.next)&&tB(r.error)&&tB(r.complete)&&tH(r)?e:new t4(e,t,n);return function(e){if(tG.useDeprecatedSynchronousErrorHandling){var t=!t0;if(t&&(t0={errorThrown:!1,error:null}),e(),t){var n=t0,r=n.errorThrown,i=n.error;if(t0=null,r)throw i}}else e()}(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nn(t))(function(t,r){var i=new t4({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[t9]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?ne:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nn(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nn(e){var t;return null!==(t=null!=e?e:tG.Promise)&&void 0!==t?t:Promise}function nr(e){return Symbol.asyncIterator&&tB(null==e?void 0:e[Symbol.asyncIterator])}function ni(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var no="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function na(e){return tB(null==e?void 0:e[no])}function ns(e){return(0,x.FC)(this,arguments,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,x.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,x.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,x.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nl(e){return tB(null==e?void 0:e.getReader)}function nu(e){if(e instanceof nt)return e;if(null!=e){if(tB(e[t9]))return new nt(function(t){var n=e[t9]();if(tB(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tF(e))return new nt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t$(e))return new nt(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tY)});if(nr(e))return nc(e);if(na(e))return new nt(function(t){var n,r;try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nl(e))return nc(ns(e))}throw ni(e)}function nc(e){return new nt(function(t){(function(e,t){var n,r,i,o;return(0,x.mG)(this,void 0,void 0,function(){var a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,x.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nd(e){return function(t){if(tB(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nf(e,t,n,r,i){return new nh(e,t,n,r,i)}var nh=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,x.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(t1);function np(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){r.next(e.call(t,n,i++))}))})}function nm(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ng(e,t,n){return(void 0===n&&(n=1/0),tB(t))?ng(function(n,r){return np(function(e,i){return t(n,e,r,i)})(nu(e(n,r)))},n):("number"==typeof t&&(n=t),nd(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;nu(e(t,l++)).subscribe(nf(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nf(r,d,function(){u=!0,c()})),function(){}}))}var nv=Array.isArray,ny=["addListener","removeListener"],nb=["addEventListener","removeEventListener"],nx=["on","off"];function nw(e,t,n,r){if(tB(n)&&(r=n,n=void 0),r)return nw(e,t,n).pipe((i=r,np(function(e){return nv(e)?i.apply(void 0,(0,x.ev)([],(0,x.CR)(e))):i(e)})));var i,o=(0,x.CR)(tB(e.addEventListener)&&tB(e.removeEventListener)?nb.map(function(r){return function(i){return e[r](t,i,n)}}):tB(e.addListener)&&tB(e.removeListener)?ny.map(nk(e,t)):tB(e.on)&&tB(e.off)?nx.map(nk(e,t)):[],2),a=o[0],s=o[1];if(!a&&tF(e))return ng(function(e){return nw(e,t,n)})(nu(e));if(!a)throw TypeError("Invalid event target");return new nt(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function nk(e,t){return function(n){return function(r){return e[n](t,r)}}}function nS(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=nI((e=o.getAttribute("id"))&&v.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.attributes).filter(function(e){return v.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.classList).filter(v.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||nI((s=o.tagName.toLowerCase(),v.tagName(s)?{name:s,penalty:2}:null))||[nT()],d=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("two"==t)c=c.slice(0,1),d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("one"==t){var f=(0,x.CR)(c=c.slice(0,1),1)[0];d&&nP(f)&&(c=[nA(f,d)])}else"none"==t&&(c=[nT()],d&&(c=[nA(c[0],d)]));try{for(var h=(l=void 0,(0,x.XA)(c)),p=h.next();!p.done;p=h.next()){var f=p.value;f.level=a}}catch(e){l={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(i.push(c),i.length>=v.seedMinLength&&(r=nE(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=nE(i,n)),!r&&n)?n():r}function nE(e,t){if(e.reduce(function(e,t){return e*t.length},1)>v.threshold)return t?t():null;var n,r,i=nj(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,x.Jh)(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=(0,x.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,x.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));try{for(var o=(0,x.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(nO(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function n_(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function nC(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function nO(e){var t=n_(e);switch(y.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function nT(){return{name:"*",penalty:3}}function nA(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function nP(e){return"html"!==e.name&&!e.name.startsWith("#")}function nI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(nR);return n.length>0?n:null}function nR(e){return null!=e}function nj(e){return(0,x.ev)([],(0,x.CR)(e),!1).sort(function(e,t){return nC(e)-nC(t)})}var nM=["input","select","textarea"],nN=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!nB(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nD=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},nL=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!nM.includes(i)&&!o},nz=function(e){var t="";return nL(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nz(e),t+=n.split(/(\s+)/).filter(nD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nF=function(e,t){var n,r,i="";try{return i=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};y=(n=(v=(0,x.pi)((0,x.pi)({},r),t)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=nS(e,"all",function(){return nS(e,"two",function(){return nS(e,"one",function(){return nS(e,"none")})})});if(i){var o=nj(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,x.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>v.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>v.maxNumberOfTries||(r.counter+=1,(o=(0,x.ev)([],(0,x.CR)(t),!1)).splice(i,1),a=n_(o),r.visited.has(a)))return[2];if(!(nO(o)&&(l=o,y.querySelector(n_(l))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,x.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),n_(i)}throw Error("Selector was not found.")}(e,{className:function(e){return e!==tz},maxNumberOfTries:1e3})}catch(e){t&&t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(e.toString()))}var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);o&&(i=o);var a=e.getAttribute("id"),s=e.getAttribute("class");if(a)i="#".concat(a);else if(s){var l=s.split(" ").filter(function(e){return e!==tz}).join(".");l&&(i="".concat(i,".").concat(l))}return i},nB=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},n$=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},nV=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nD(r)?r:""}return nV(n)},nU=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:nU(null==e?void 0:e.parentElement,t):null},nW=function(e,t){if(!e)return{};var n,r,i,o=null===(i=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),a=nF(e,t);return n$(((n={})[tR]=o,n[tj]=nz(e),n[tM]=a,n[tN]=window.location.href.split("?")[0],n))},nq=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nH=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tD,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tD:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tD&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(u=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===u||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:nW,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:tz,messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==l?void 0:l.close)||void 0===c||c.call(l))}}}),this.notify({action:"page-loaded"})},e}(),nZ=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nG=["type"],nK=["svg","path","g"],nY=["password","hidden"];function nX(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nJ=function(e){function t(t,n){return e.call(this)||this}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tq),nQ={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nQ.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setInterval.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearInterval:function(e){var t=nQ.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),nQ.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&nQ.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tW(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nJ),n1={now:function(){return(n1.delegate||Date).now()},delegate:void 0},n2=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=n1.now,e}(),n5=new(function(e){function t(t,n){void 0===n&&(n=n2.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,x.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(n2))(n0);function n3(e){return void 0===e&&(e=1/0),ng(ne,e)}var n4=new nt(function(e){return e.complete()});function n6(e){return e&&tB(e.schedule)}function n7(e){return e[e.length-1]}function n8(e){return n6(n7(e))?e.pop():void 0}function n9(e,t){return void 0===t&&(t=0),nd(function(n,r){n.subscribe(nf(r,function(n){return nm(r,e,function(){return r.next(n)},t)},function(){return nm(r,e,function(){return r.complete()},t)},function(n){return nm(r,e,function(){return r.error(n)},t)}))})}function re(e,t){return void 0===t&&(t=0),nd(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rt(e,t){if(!e)throw Error("Iterable cannot be null");return new nt(function(n){nm(n,t,function(){var r=e[Symbol.asyncIterator]();nm(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rn(e,t){return t?function(e,t){if(null!=e){if(tB(e[t9]))return nu(e).pipe(re(t),n9(t));if(tF(e))return new nt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(t$(e))return nu(e).pipe(re(t),n9(t));if(nr(e))return rt(e,t);if(na(e))return new nt(function(n){var r;return nm(n,t,function(){r=e[no](),nm(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return tB(null==r?void 0:r.return)&&r.return()}});if(nl(e))return rt(ns(e),t)}throw ni(e)}(e,t):nu(e)}function rr(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=n8(t),i=(e=1/0,"number"==typeof n7(t)?t.pop():e);return t.length?1===t.length?nu(t[0]):n3(i)(rn(t,r)):n4}function ri(e){return e<=0?function(){return n4}:nd(function(t,n){var r=0;t.subscribe(nf(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function ro(e){return e instanceof Date&&!isNaN(e)}var ra=tV(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rs(e){throw new ra(e)}(u=b||(b={})).ClickObservable="clickObservable",u.ChangeObservable="changeObservable",u.NavigateObservable="navigateObservable",u.MutationObservable="mutationObservable";var rl=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new nH}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tA,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tP,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=void 0,d=function(){var e,t,n=nw(document,"click",{capture:!0}).pipe(np(function(e){return h(e,"click")})),r=nw(document,"change",{capture:!0}).pipe(np(function(e){return h(e,"change")}));window.navigation&&(t=nw(window.navigation,"navigate").pipe(np(function(e){return h(e,"navigate")})));var i=new nt(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(np(function(e){return h(e,"mutation")}));return(e={})[b.ClickObservable]=n,e[b.ChangeObservable]=r,e[b.NavigateObservable]=t,e[b.MutationObservable]=i,e},f=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),d=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),f=nV(t),h=nF(t,c),p=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,x.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,x.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!nZ.includes(e.name)}),m=!nL(e);if(!nY.includes(String(e.getAttribute("type")))&&!nK.includes(s))try{for(var g=(0,x.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nG.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),0):[],r[tR]=s,r[tj]=nz(t),r["[Amplitude] Element Position Left"]=null==l.left?null:Math.round(l.left),r["[Amplitude] Element Position Top"]=null==l.top?null:Math.round(l.top),r["[Amplitude] Element Aria Label"]=u,r["[Amplitude] Element Attributes"]=d,r[tM]=h,r["[Amplitude] Element Parent Label"]=f,r[tN]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(p["[Amplitude] Element Href"]=t.href),n$(p)},h=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=nU(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=f(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,x.mG)(void 0,void 0,void 0,function(){var r,i,o,a,h,p,m,g,v,y;return(0,x.Jh)(this,function(b){var w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,D,L,z,F,B,$,V,U,W,q,H,Z,G,K,Y,X,J,Q,ee;return c=t.loggerProvider,"undefined"==typeof document||(r=nN(e,e.cssSelectorAllowlist),i=nN(e,e.actionClickAllowlist),k=(w={allObservables:o=d(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,S=w.allObservables,E=w.options,_=w.shouldTrackEvent,A=rr((C=S.clickObservable).pipe(nd(function(e,t){var n,r=!1;e.subscribe(nf(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nX(function(e){var t=(0,x.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),C.pipe((O=E.debounceTime,void 0===T&&(T=n5),nd(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+O,r=T.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nf(t,function(e){r=e,i=T.now(),n||(n=T.schedule(a,O),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),np(function(){return"timeout"}))),a=C.pipe((void 0===P&&(P=n5),I=0,R=P,void 0===I&&(I=0),void 0===j&&(j=n5),M=-1,null!=R&&(n6(R)?j=R:M=R),N=new nt(function(e){var t=ro(I)?+I-j.now():I;t<0&&(t=0);var n=0;return j.schedule(function(){e.closed||(e.next(n++),0<=M?this.schedule(void 0,M):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n3(1)(rn(e,n8(e)))}(n.pipe(ri(1),nd(function(e,t){e.subscribe(nf(t,tX))})),r.pipe(e(t)))}:ng(function(e,n){return nu(t(e,n)).pipe(ri(1),np(function(){return e}))})}(function(){return N})),nX(nq),nX(function(e){return _("click",e.closestTrackedAncestor)}),nd(function(e,t){var n=[];return e.subscribe(nf(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nu(A).subscribe(nf(t,function(){var e=n;n=[],t.next(e)},tX)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tI);try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==k||k.track(r,a.targetElementProperties,{time:a.timestamp})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),L=(D={allObservables:o,getEventProperties:f,amplitude:n,shouldTrackEvent:r}).amplitude,z=D.allObservables,F=D.getEventProperties,B=D.shouldTrackEvent,h=z.changeObservable.pipe(nX(nq),nX(function(e){return B("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),u.push(h),V=($={allObservables:o,options:e,getEventProperties:f,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=$.allObservables,W=$.options,q=$.getEventProperties,H=$.shouldTrackEvent,Z=$.shouldTrackActionClick,G=U.clickObservable,K=U.mutationObservable,Y=U.navigateObservable,X=G.pipe(nX(function(e){return!H("click",e.closestTrackedAncestor)}),np(function(e){var t=nU(e.event.target,W.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nX(nq),nX(function(e){return Z("click",e.closestTrackedAncestor)})),J=[K],Y&&J.push(Y),Q=rr.apply(void 0,(0,x.ev)([],(0,x.CR)(J),!1)),p=X.pipe((ee=function(e){return Q.pipe(ri(1),function(e,t){var n=ro(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rs:o,s=n.scheduler,l=void 0===s?n5:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return nd(function(e,t){var n,o,s=null,u=0,d=function(e){o=nm(t,l,function(){try{n.unsubscribe(),nu(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nf(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return n4}}),np(function(){return e}))},nd(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nf(t,function(e){null==n||n.unsubscribe(),nu(ee(e,r++)).subscribe(n=nf(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==V||V.track(tI,q("click",e.closestTrackedAncestor),{time:e.timestamp})}),u.push(p),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(m=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(y=s.messenger)||void 0===y||y.setup((0,x.pi)((0,x.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tL[t.serverZone]}),{isElementSelectable:nN(e,(0,x.ev)((0,x.ev)([],(0,x.CR)(m),!1),(0,x.CR)(g),!1)),cssSelectorAllowlist:m,actionClickAllowlist:g})))),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,x.Jh)(this,function(i){try{for(t=(e=(0,x.XA)(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},ru={init:E((c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),_(this._init((0,x.pi)((0,x.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c=this;return(0,x.Jh)(this,function(d){var f,h;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,tl(t.apiKey,t,this)];case 1:if(n=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(f=n,(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tT(f)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:n=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,n)];case 5:if(d.sent(),this.logBrowserOptions(n),!K(this.config.defaultTracking))return[3,7];return r=K((h=this.config).defaultTracking)&&h.defaultTracking&&"object"==typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"==typeof h.defaultTracking.attribution?(0,x.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new ek(r,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(o=Number.isNaN(Number((i=ey()).ampSessionId))?void 0:Number(i.ampSessionId),this.setSessionId(null!==(u=null!==(l=null!==(s=t.sessionId)&&void 0!==s?s:o)&&void 0!==l?l:this.config.sessionId)&&void 0!==u?u:Date.now()),(a=ej(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tS()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new z).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new eD).promise];case 12:if(d.sent(),tk(this.config),!G(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tx()).promise];case 13:d.sent(),d.label=14;case 14:if(!G(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tv()).promise];case 15:d.sent(),d.label=16;case 16:if(!Y(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(th(ee(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!J(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rl(Q(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),a.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,eM(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,eN(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(D()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),_(Promise.resolve());if(e===this.config.sessionId)return _(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,X(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e7,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return X(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,_(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tc(e)},t.prototype.identify=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new $,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(ez(r)){var o=r._q;r._q=[],r=eL(new $,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new V,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i;return(0,x.Jh)(this,function(o){return n=Date.now(),r=ew(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===e6||t.event_type===e7||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,x.pi)((0,x.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(Z))).init.bind(c),"init",w(c),S(c,["config"])),add:E(c.add.bind(c),"add",w(c),S(c,["config.apiKey","timeline.plugins"])),remove:E(c.remove.bind(c),"remove",w(c),S(c,["config.apiKey","timeline.plugins"])),track:E(c.track.bind(c),"track",w(c),S(c,["config.apiKey","timeline.queue.length"])),logEvent:E(c.logEvent.bind(c),"logEvent",w(c),S(c,["config.apiKey","timeline.queue.length"])),identify:E(c.identify.bind(c),"identify",w(c),S(c,["config.apiKey","timeline.queue.length"])),groupIdentify:E(c.groupIdentify.bind(c),"groupIdentify",w(c),S(c,["config.apiKey","timeline.queue.length"])),setGroup:E(c.setGroup.bind(c),"setGroup",w(c),S(c,["config.apiKey","timeline.queue.length"])),revenue:E(c.revenue.bind(c),"revenue",w(c),S(c,["config.apiKey","timeline.queue.length"])),flush:E(c.flush.bind(c),"flush",w(c),S(c,["config.apiKey","timeline.queue.length"])),getUserId:E(c.getUserId.bind(c),"getUserId",w(c),S(c,["config","config.userId"])),setUserId:E(c.setUserId.bind(c),"setUserId",w(c),S(c,["config","config.userId"])),getDeviceId:E(c.getDeviceId.bind(c),"getDeviceId",w(c),S(c,["config","config.deviceId"])),setDeviceId:E(c.setDeviceId.bind(c),"setDeviceId",w(c),S(c,["config","config.deviceId"])),reset:E(c.reset.bind(c),"reset",w(c),S(c,["config","config.userId","config.deviceId"])),getSessionId:E(c.getSessionId.bind(c),"getSessionId",w(c),S(c,["config"])),setSessionId:E(c.setSessionId.bind(c),"setSessionId",w(c),S(c,["config"])),extendSession:E(c.extendSession.bind(c),"extendSession",w(c),S(c,["config"])),setOptOut:E(c.setOptOut.bind(c),"setOptOut",w(c),S(c,["config"])),setTransport:E(c.setTransport.bind(c),"setTransport",w(c),S(c,["config"]))};ru.add,ru.extendSession,ru.flush,ru.getDeviceId,ru.getSessionId,ru.getUserId,ru.groupIdentify,ru.identify;var rc=ru.init,rd=(ru.logEvent,ru.remove,ru.reset,ru.revenue,ru.setDeviceId,ru.setGroup,ru.setOptOut,ru.setSessionId,ru.setTransport,ru.setUserId,ru.track)},25660:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,m=0,g=0,v=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function k(){return u(y,g)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return h=p=1,m=d(y=e),g=0,[]}function _(e){var t,n;return(t=g-1,n=function e(t){for(;w();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",A="comm",P="rule",I="decl",R="@keyframes";function j(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case A:return"";case R:return e.return=e.value+"{"+j(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=j(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,x=0;v<r;++v)for(var w=0,k=c(e,p+1,p=i(y=l[v])),S=e;w<g;++w)(S=(y>0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())&&(d[x++]=S);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,I,c(e,0,r),c(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!S(i);)w();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(S(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=_(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},F=function(e,t){var n;return n=z(E(e),t),y="",n},B=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=F(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},U=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+O+t+C+t+t;case 6828:case 4268:return T+t+C+t+t;case 6165:return T+t+C+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+s(t,"shrink","negative")+t;case 5292:return T+t+C+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+C+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===u(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return j([x(e,{value:s(e.value,"@","@"+T)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return j([x(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return j([x(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,m,x,C=e.key;if("css"===C){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||U,P={},I=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)P[t[n]]=!0;I.push(e)});var R=(n=(t=[$,V].concat(T,[M,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),L=function(e){var t,n;return j((n=function e(t,n,r,i,a,m,x,E,C){for(var O,T=0,P=0,I=x,R=0,j=0,M=0,L=1,z=1,F=1,B=0,$="",V=a,U=m,W=i,q=$;z;)switch(M=B,B=w()){case 40:if(108!=M&&58==u(q,I-1)){-1!=l(q+=s(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:q+=_(B);break;case 9:case 10:case 13:case 32:q+=function(e){for(;v=k();)if(v<33)w();else break;return S(e)>2||S(v)>3?"":" "}(M);break;case 92:q+=function(e,t){for(var n;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==k()&&32==w()),c(y,e,n)}(g-1,7);continue;case 47:switch(k()){case 42:case 47:f(b(O=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===k())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:w())}(w(),g),n,r,A,o(v),c(O,2,-2),0),C);break;default:q+="/"}break;case 123*L:E[T++]=d(q)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(q=s(q,/\f/g,"")),j>0&&d(q)-I&&f(j>32?D(q+";",i,r,I-1):D(s(q," ","")+";",i,r,I-2),C);break;case 59:q+=";";default:if(f(W=N(q,n,r,T,P,a,E,$,V=[],U=[],I),m),123===B){if(0===P)e(q,n,W,W,V,m,I,E,U);else switch(99===R&&110===u(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,E,$,a,V=[],I),U),a,U,I,E,i?V:U);break;default:e(q,W,W,W,[""],U,0,E,U)}}}T=P=j=0,L=F=1,$=q="",I=x;break;case 58:I=1+d(q),j=M;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(v=g>0?u(y,--g):0,p--,10===v&&(p=1,h--),v))continue}switch(q+=o(B),B*L){case 38:F=P>0?1:(q+="\f",-1);break;case 44:E[T++]=(d(q)-1)*F,F=1;break;case 64:45===k()&&(q+=_(w())),R=k(),P=I=d($=q+=function(e){for(;!S(k());)w();return c(y,e,g)}(g)),B++;break;case 45:45===M&&2==d(q)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){x=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(I),z}},36411:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},28227:function(e,t,n){"use strict";n.d(t,{E:function(){return x},T:function(){return h},_:function(){return d},a:function(){return m},c:function(){return y},h:function(){return g},w:function(){return f}});var r=n(8035),i=n(25660),o=n(33067),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(32378),l=n(51275),u=n(4631),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),m=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},g={}.hasOwnProperty,v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},x=f(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[v],a=[i],u="";"string"==typeof e.className?u=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(a,void 0,r.useContext(h));u+=t.key+"-"+c.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==v&&(d[f]=e[f]);return d.className=u,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},61339:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(28227),a=n(8035),s=n(32378),l=n(4631),u=n(51275);n(25660),n(20096);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,u.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,l.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},51275:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan: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},o=n(36411),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},4631:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(8035),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},32378:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},14992:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(33067),i=n(87222),o=n(8035);let a=o.createContext(null);function s(){return o.useContext(a)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(35775),c=function(e){let{children:t,theme:n}=e,i=s(),c=o.useMemo(()=>{let e=null===i?n:"function"==typeof n?n(i):(0,r.Z)({},i,n);return null!=e&&(e[l]=null!==i),e},[n,i]);return(0,u.jsx)(a.Provider,{value:c,children:t})},d=n(28227),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o.useContext(d.T);return t&&0!==Object.keys(t).length?t:e};let h=["value"],p=o.createContext();var m=function(e){let{value:t}=e,n=(0,i.Z)(e,h);return(0,u.jsx)(p.Provider,(0,r.Z)({value:null==t||t},n))};let g=o.createContext(void 0);var v=function(e){let{value:t,children:n}=e;return(0,u.jsx)(g.Provider,{value:t,children:n})};let y={};function b(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),s=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var x=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=s()||y,a=b(r,i,n),l=b(r,o,n,!0),h="rtl"===a.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:a,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==a?void 0:a.components,children:t})})})})},w="$$material";let k=["theme"];function S(e){let{theme:t}=e,n=(0,i.Z)(e,k),o=t[w];return(0,u.jsx)(x,(0,r.Z)({},n,{themeId:o?w:void 0,theme:o||t}))}},89716:function(e,t,n){"use strict";n.d(t,{Z:function(){return eU}});var r=n(33067),i=n(87222),o=n(3706),a=n(8035);function s(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l(e,t,n={clone:!0}){let i=n.clone?(0,r.Z)({},e):e;return s(e)&&s(t)&&Object.keys(t).forEach(r=>{a.isValidElement(t[r])?i[r]=t[r]:s(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&s(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=s(t[r])?function e(t){if(a.isValidElement(t)||!s(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[r]):t[r]:i[r]=t[r]}),i}let u={xs:0,sm:600,md:900,lg:1200,xl:1536},c={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${u[e]}px)`};function d(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||c;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||c;return Object.keys(t).reduce((r,i)=>(-1!==Object.keys(e.values||u).indexOf(i)?r[e.up(i)]=n(t[i],i):r[i]=t[i],r),{})}return n(t)}function f(e){if("string"!=typeof e)throw Error((0,o.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function p(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:h(e,n)||r,t&&(i=t(i,r,e)),i}var m=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;let o=e[t],a=h(e.theme,r)||{};return d(e,o,e=>{let r=p(a,i,e);return(e===r&&"string"==typeof e&&(r=p(a,i,`${t}${"default"===e?"":f(e)}`,e)),!1===n)?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},g=function(e,t){return t?l(e,t,{clone:!1}):e};let v={m:"margin",p:"padding"},y={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!b[e])return[e];e=b[e]}let[t,n]=e.split(""),r=v[t],i=y[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),w=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],k=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],S=[...w,...k];function E(e,t,n,r){var i;let o=null!=(i=h(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function _(e){return E(e,"spacing",8,"spacing")}function C(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function O(e,t){let n=_(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var i;if(-1===t.indexOf(n))return null;let o=(i=x(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),a=e[n];return d(e,a,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,w)}function A(e){return O(e,k)}function P(e){return O(e,S)}T.propTypes={},T.filterProps=w,A.propTypes={},A.filterProps=k,P.propTypes={},P.filterProps=S;var I=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?g(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function R(e){return"number"!=typeof e?e:`${e}px solid`}function j(e,t){return m({prop:e,themeKey:"borders",transform:t})}let M=j("border",R),N=j("borderTop",R),D=j("borderRight",R),L=j("borderBottom",R),z=j("borderLeft",R),F=j("borderColor"),B=j("borderTopColor"),$=j("borderRightColor"),V=j("borderBottomColor"),U=j("borderLeftColor"),W=j("outline",R),q=j("outlineColor"),H=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=E(e.theme,"shape.borderRadius",4,"borderRadius");return d(e,e.borderRadius,e=>({borderRadius:C(t,e)}))}return null};H.propTypes={},H.filterProps=["borderRadius"],I(M,N,D,L,z,F,B,$,V,U,H,W,q);let Z=e=>{if(void 0!==e.gap&&null!==e.gap){let t=E(e.theme,"spacing",8,"gap");return d(e,e.gap,e=>({gap:C(t,e)}))}return null};Z.propTypes={},Z.filterProps=["gap"];let G=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=E(e.theme,"spacing",8,"columnGap");return d(e,e.columnGap,e=>({columnGap:C(t,e)}))}return null};G.propTypes={},G.filterProps=["columnGap"];let K=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=E(e.theme,"spacing",8,"rowGap");return d(e,e.rowGap,e=>({rowGap:C(t,e)}))}return null};K.propTypes={},K.filterProps=["rowGap"];let Y=m({prop:"gridColumn"}),X=m({prop:"gridRow"}),J=m({prop:"gridAutoFlow"}),Q=m({prop:"gridAutoColumns"}),ee=m({prop:"gridAutoRows"}),et=m({prop:"gridTemplateColumns"});function en(e,t){return"grey"===t?t:e}function er(e){return e<=1&&0!==e?`${100*e}%`:e}I(Z,G,K,Y,X,J,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),I(m({prop:"color",themeKey:"palette",transform:en}),m({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:en}),m({prop:"backgroundColor",themeKey:"palette",transform:en}));let ei=m({prop:"width",transform:er}),eo=e=>void 0!==e.maxWidth&&null!==e.maxWidth?d(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||u[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:er(t)}}):null;eo.filterProps=["maxWidth"];let ea=m({prop:"minWidth",transform:er}),es=m({prop:"height",transform:er}),el=m({prop:"maxHeight",transform:er}),eu=m({prop:"minHeight",transform:er});m({prop:"size",cssProperty:"width",transform:er}),m({prop:"size",cssProperty:"height",transform:er}),I(ei,eo,ea,es,el,eu,m({prop:"boxSizing"}));var ec={border:{themeKey:"borders",transform:R},borderTop:{themeKey:"borders",transform:R},borderRight:{themeKey:"borders",transform:R},borderBottom:{themeKey:"borders",transform:R},borderLeft:{themeKey:"borders",transform:R},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:H},color:{themeKey:"palette",transform:en},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:en},backgroundColor:{themeKey:"palette",transform:en},p:{style:A},pt:{style:A},pr:{style:A},pb:{style:A},pl:{style:A},px:{style:A},py:{style:A},padding:{style:A},paddingTop:{style:A},paddingRight:{style:A},paddingBottom:{style:A},paddingLeft:{style:A},paddingX:{style:A},paddingY:{style:A},paddingInline:{style:A},paddingInlineStart:{style:A},paddingInlineEnd:{style:A},paddingBlock:{style:A},paddingBlockStart:{style:A},paddingBlockEnd:{style:A},m:{style:T},mt:{style:T},mr:{style:T},mb:{style:T},ml:{style:T},mx:{style:T},my:{style:T},margin:{style:T},marginTop:{style:T},marginRight:{style:T},marginBottom:{style:T},marginLeft:{style:T},marginX:{style:T},marginY:{style:T},marginInline:{style:T},marginInlineStart:{style:T},marginInlineEnd:{style:T},marginBlock:{style:T},marginBlockStart:{style:T},marginBlockEnd:{style:T},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Z},rowGap:{style:K},columnGap:{style:G},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:eo},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let ed=function(){function e(e,t,n,r){let i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};let{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};let c=h(n,s)||{};return u?u(i):d(i,t,t=>{let n=p(c,l,t);return(t===n&&"string"==typeof t&&(n=p(c,l,`${e}${"default"===t?"":f(t)}`,t)),!1===a)?n:{[a]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let a=null!=(r=o.unstable_sxConfig)?r:ec;function s(n){var r;let i=n;if("function"==typeof n)i=n(o);else if("object"!=typeof n)return n;if(!i)return null;let s=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(o.breakpoints),l=Object.keys(s),u=s;return Object.keys(i).forEach(n=>{var r;let s="function"==typeof(r=i[n])?r(o):r;if(null!=s){if("object"==typeof s){if(a[n])u=g(u,e(n,s,o,a));else{let e=d({theme:o},s,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,s)?u[n]=t({sx:s,theme:o}):u=g(u,e)}}else u=g(u,e(n,s,o,a))}}),r=u,l.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},r)}return Array.isArray(i)?i.map(s):s(i)}}();ed.filterProps=["sx"];let ef=["values","unit","step"],eh=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var ep={borderRadius:4};function em(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}let eg=["breakpoints","palette","spacing","shape"];var ev=function(e={},...t){let{breakpoints:n={},palette:o={},spacing:a,shape:s={}}=e,u=(0,i.Z)(e,eg),c=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=(0,i.Z)(e,ef),s=eh(t),l=Object.keys(s);function u(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function c(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-o/100}${n})`}function d(e,r){let i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:l,values:s,up:u,down:c,between:d,only:function(e){return l.indexOf(e)+1<l.length?d(e,l[l.indexOf(e)+1]):u(e)},not:function(e){let t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?c(l[t]):d(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},a)}(n),d=function(e=8){if(e.mui)return e;let t=_({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(a),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,s)},u);return f.applyStyles=em,(f=t.reduce((e,t)=>l(e,t),f)).unstable_sxConfig=(0,r.Z)({},ec,null==u?void 0:u.unstable_sxConfig),f.unstable_sx=function(e){return ed({sx:e,theme:this})},f},ey=n(12440),eb={black:"#000",white:"#fff"},ex={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ew={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ek={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eS={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eE={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},e_={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eC={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let eO=["mode","contrastThreshold","tonalOffset"],eT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eb.white,default:eb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},eA={text:{primary:eb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function eP(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,ey.$n)(e.main,i):"dark"===t&&(e.dark=(0,ey._j)(e.main,o)))}let eI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},ej='"Roboto", "Helvetica", "Arial", sans-serif';function eM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let eN=["none",eM(0,2,1,-1,0,1,1,0,0,1,3,0),eM(0,3,1,-2,0,2,2,0,0,1,5,0),eM(0,3,3,-2,0,3,4,0,0,1,8,0),eM(0,2,4,-1,0,4,5,0,0,1,10,0),eM(0,3,5,-1,0,5,8,0,0,1,14,0),eM(0,3,5,-1,0,6,10,0,0,1,18,0),eM(0,4,5,-2,0,7,10,1,0,2,16,1),eM(0,5,5,-3,0,8,10,1,0,3,14,2),eM(0,5,6,-3,0,9,12,1,0,3,16,2),eM(0,6,6,-3,0,10,14,1,0,4,18,3),eM(0,6,7,-4,0,11,15,1,0,4,20,3),eM(0,7,8,-4,0,12,17,2,0,5,22,4),eM(0,7,8,-4,0,13,19,2,0,5,24,4),eM(0,7,9,-4,0,14,21,2,0,5,26,4),eM(0,8,9,-5,0,15,22,2,0,6,28,5),eM(0,8,10,-5,0,16,24,2,0,6,30,5),eM(0,8,11,-5,0,17,26,2,0,6,32,5),eM(0,9,11,-5,0,18,28,2,0,7,34,6),eM(0,9,12,-6,0,19,29,2,0,7,36,6),eM(0,10,13,-6,0,20,31,3,0,8,38,7),eM(0,10,13,-6,0,21,33,3,0,8,40,7),eM(0,10,14,-6,0,22,35,3,0,8,42,7),eM(0,11,14,-7,0,23,36,3,0,9,44,8),eM(0,11,15,-7,0,24,38,3,0,9,46,8)],eD=["duration","easing","delay"],eL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eF(e){return"".concat(Math.round(e),"ms")}function eB(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var e$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let eV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eV);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,s=(0,i.Z)(e,eO),u=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eE[200],light:eE[50],dark:eE[400]}:{main:eE[700],light:eE[400],dark:eE[800]}}(t),c=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ew[200],light:ew[50],dark:ew[400]}:{main:ew[500],light:ew[300],dark:ew[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ek[500],light:ek[300],dark:ek[700]}:{main:ek[700],light:ek[400],dark:ek[800]}}(t),f=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:e_[400],light:e_[300],dark:e_[700]}:{main:e_[700],light:e_[500],dark:e_[900]}}(t),h=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eC[400],light:eC[300],dark:eC[700]}:{main:eC[800],light:eC[500],dark:eC[900]}}(t),p=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[400],light:eS[300],dark:eS[700]}:{main:"#ed6c02",light:eS[500],dark:eS[900]}}(t);function m(e){return(0,ey.mi)(e,eA.text.primary)>=n?eA.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.Z)(11,n?" (".concat(n,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return eP(t,"light",s,a),eP(t,"dark",l,a),t.contrastText||(t.contrastText=m(t.main)),t};return l((0,r.Z)({common:(0,r.Z)({},eb),mode:t,primary:g({color:u,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:ex,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:a},{dark:eA,light:eT}[t]),s)}(c),m=ev(e),g=l(m,{mixins:(t=m.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},u)),palette:p,shadows:eN.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=ej,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eI),g=a/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,a)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===ej?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},a,h),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,eR),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,eR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return l((0,r.Z)({htmlFontSize:f,pxToRem:v,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),m,{clone:!1})}(p,f),transitions:function(e){let t=(0,r.Z)({},eL,e.easing),n=(0,r.Z)({},ez,e.duration);return(0,r.Z)({getAutoHeightDuration:eB,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,eD),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof o?o:eF(o)," ").concat(a," ").concat("string"==typeof s?s:eF(s))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=a.reduce((e,t)=>l(e,t),g)).unstable_sxConfig=(0,r.Z)({},ec,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return ed({sx:e,theme:this})},g}},12440:function(e,t,n){"use strict";var r=n(20890);t._j=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var i=r(n(79490)),o=r(n(70552));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,i.default)(9,e));let o=e.substring(n+1,e.length-1);if("color"===r){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:r,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function u(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){let{values:t}=e=s(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},70552:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},3706:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},79490:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(3706)},99303:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{SV:function(){return tC}});let l=Object.prototype.toString;function u(e){switch(l.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function c(e,t){return l.call(e)===`[object ${t}]`}function d(e){return c(e,"ErrorEvent")}function f(e){return c(e,"DOMError")}function h(e){return c(e,"String")}function p(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function m(e){return null===e||p(e)||"object"!=typeof e&&"function"!=typeof e}function g(e){return c(e,"Object")}function v(e){return"undefined"!=typeof Event&&b(e,Event)}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function b(e,t){try{return e instanceof t}catch(e){return!1}}function x(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e){return e&&e.Math==Math?e:void 0}let k="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof n.g&&w(n.g)||function(){return this}()||{};function S(e,t,n){let r=n||k,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=k.crypto||k.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function _(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){let{message:t,event_id:n}=e;if(t)return t;let r=_(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function O(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function T(e,t){let n=_(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function A(){return Date.now()/1e3}let P=function(){let{performance:e}=k;if(!e||!e.now)return A;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=k;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||o<36e5)return r<=o?e.timeOrigin:void 0})();let I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],j={};function M(e){if(!("console"in k))return e();let t=k.console,n={},r=Object.keys(j);r.forEach(e=>{let r=j[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let N=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return I?R.forEach(n=>{t[n]=(...t)=>{e&&M(()=>{k.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tw=tk||(tk={}))[tw.PENDING=0]="PENDING",tw[tw.RESOLVED=1]="RESOLVED",tw[tw.REJECTED=2]="REJECTED";class z{constructor(e){z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._state=tk.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new z((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new z((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(tk.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tk.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tk.PENDING){if(y(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tk.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tk.RESOLVED&&e[1](this._value),this._state===tk.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;s.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&h(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let u=["aria-label","type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function B(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function $(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function V(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!h(e)&&(c(t,"RegExp")?t.test(e):!!h(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function U(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&q(i,r),e[t]=i}function W(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,W(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function Z(e){if(u(e))return{message:e.message,name:e.name,stack:e.stack,...K(e)};if(!v(e))return e;{let t={type:e.type,target:G(e.target),currentTarget:G(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function G(e){try{return"undefined"!=typeof Element&&b(e,Element)?F(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function K(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function Y(e){return function e(t,n){if(function(e){if(!g(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function X(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||P(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:E()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function J(e){return e.transaction}function Q(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}class ee{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=et()}static clone(e){return e?e.clone():new ee}clone(){let e=new ee;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&X(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof ee){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else g(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=et(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:A(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:c,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:c,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return!function(e,t){var n;let{fingerprint:r,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=Y(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=Y(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=Y(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}(t),...e.contexts};let n=J(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=ep();if(!t)return{};let n=function(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}(Q(e).trace_id||"",t,ea().getScope()),r=J(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let s=Q(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}(t),...e.sdkProcessingMetadata};let r=Q(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,i),e.fingerprint=e.fingerprint?Array.isArray(n=e.fingerprint)?n:[n]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},r);L&&s.id&&null===l&&N.log(`Event processor "${s.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,l,r,i+1).then(o).then(null,a)}})}([...n,...S("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):N.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function et(){return{traceId:E(),spanId:E().substring(16)}}let en=parseFloat("7.120.3");class er{constructor(e,t,n,r=en){let i,o;this._version=r,t?i=t:(i=new ee).setClient(e),n?o=n:(o=new ee).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return y(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:E(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:E(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:A(),...e},s=i?M(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eo(this);try{e(this)}finally{eo(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return L&&N.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return L&&!n&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[727],{26573:function(e,t,n){"use strict";n.d(t,{S1:function(){return rc},j:function(){return rd}});var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x=n(67429);(r=d||(d={}))[r.None=0]="None",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Verbose=3]="Verbose",r[r.Debug=4]="Debug";var w=function(e){return function(){var t=(0,x.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},k=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,x.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},S=function(e,t){return function(){var n,r,i={};try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=k(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},E=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),l=s.logger,u=s.logLevel;if(u&&u<d.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),f}},_=function(e){return{promise:e||Promise.resolve()}};(i=f||(f={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var C="".concat("AMP","_unsent"),O="https://api2.amplitude.com/2/httpapi",T=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},A=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=f.Unknown),{event:e,code:t,message:n}},P="Amplitude Logger ",I=function(){function e(){this.logLevel=d.None}return e.prototype.disable=function(){this.logLevel=d.None},e.prototype.enable=function(e){void 0===e&&(e=d.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Verbose||console.log("".concat(P,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Warn||console.warn("".concat(P,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Error||console.error("".concat(P,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Debug||console.log("".concat(P,"[Debug]: ").concat(e.join(" ")))},e}(),R=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:d.Warn,loggerProvider:new I,offline:!1,optOut:!1,serverUrl:O,serverZone:"US",useBatch:!1}},j=function(){function e(e){this._optOut=!1;var t,n,r,i,o=R();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=M(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),M=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=R().serverZone),void 0===n&&(n=R().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:R().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":O)}},N=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),D=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,D)};function L(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var z=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(C,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=D()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,x.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,T(t,this.config.flushQueueSize).reduce(function(t,n){return(0,x.mG)(r,void 0,void 0,function(){return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,x._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new N,a.label=1;case 1:return a.trys.push([1,3,,4]),r=M(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(L(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:f.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case f.Success:this.handleSuccessResponse(e,t);break;case f.Invalid:this.handleInvalidResponse(e,t);break;case f.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case f.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,x.ev)((0,x.ev)((0,x.ev)((0,x.ev)([],(0,x.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,x.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(L(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(L(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(r)&&(t.timeout=n.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(L(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(A(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}();(o=h||(h={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(a=p||(p={})).REVENUE_PRODUCT_ID="$productId",a.REVENUE_QUANTITY="$quantity",a.REVENUE_PRICE="$price",a.REVENUE_TYPE="$revenueType",a.REVENUE_CURRENCY="$currency",a.REVENUE="$revenue",(s=m||(m={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var F=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!B(t,n))return!1}return!0},B=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&F(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return F(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},$=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,x.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(h.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(h.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(h.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(h.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(h.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(h.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(h.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(h.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(h.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[h.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[h.CLEAR_ALL]||this._propertySet.has(t))&&(e===h.ADD?"number"==typeof n:e===h.UNSET||e===h.REMOVE||B(t,n))},e}(),V=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return F(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,x.pi)({},this.properties):{};return e[p.REVENUE_PRODUCT_ID]=this.productId,e[p.REVENUE_QUANTITY]=this.quantity,e[p.REVENUE_PRICE]=this.price,e[p.REVENUE_TYPE]=this.revenueType,e[p.REVENUE_CURRENCY]=this.currency,e[p.REVENUE]=this.revenue,e},e}(),U=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=D(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p;return(0,x.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,x.CR)(e,1)[0],n=(0,x.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,x.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,x.pi)({},t))];case 3:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,x.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,x.pi)({},t))];case 11:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,x.pi)({},t);return e.execute(n).catch(function(e){return A(n,0,String(e))})})).then(function(e){var r=(0,x.CR)(e,1)[0]||A(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t=this;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e}(),W=function(e,t){return(0,x.pi)((0,x.pi)({},t),{event_type:m.IDENTIFY,user_properties:e.getUserProperties()})},q=function(e,t,n,r){var i;return(0,x.pi)((0,x.pi)({},r),{event_type:m.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},H=function(e,t,n){var r,i=new $;return i.set(e,t),(0,x.pi)((0,x.pi)({},n),{event_type:m.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Z=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new U(this),this.name=e}return e.prototype._init=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,x.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,x.pi)((0,x.pi)((0,x.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return _(this.dispatch(r))},e.prototype.identify=function(e,t){var n=W(e,t);return _(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=q(e,t,n,r);return _(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=H(e,t,n);return _(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,x.pi)((0,x.pi)({},t),{event_type:m.REVENUE,event_properties:e.getEventProperties()});return _(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),_())},e.prototype._addPlugin=function(e){return _(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),_())},e.prototype._removePlugin=function(e){return _(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(A(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t=this;return(0,x.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),this.config.optOut)return[2,A(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=r.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=String(r.sent()),this.config.loggerProvider.error(n),[2,t=A(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut=!!e},e.prototype.flush=function(){return _(this.timeline.flush())},e}(),G=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},K=function(e){return G(e,"attribution")},Y=function(e){return G(e,"pageViews")},X=function(e){return G(e,"sessions")},J=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},Q=function(e){if(J(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ee=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return Y(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},et="dclid",en="fbclid",er="gbraid",ei="gclid",eo="ko_click_id",ea="li_fat_id",es="msclkid",el="rtd_cid",eu="ttclid",ec="twclid",ed="wbraid",ef={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eh=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ep=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,x._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,x._T)(s,["referrer","referring_domain"]);if(em(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=eh(o||"")!==eh(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},em=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},eg=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ev=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},ey=function(){var e,t=ev();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eb(n[0]),i=eb(n[1]);return i&&(e[r]=i),e},{}):{}},eb=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ex=function(){function e(){}return e.prototype.parse=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({},ef),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=ey();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=ey();return(e={})[et]=t[et],e[en]=t[en],e[er]=t[er],e[ei]=t[ei],e[eo]=t[eo],e[ea]=t[ea],e[es]=t[es],e[el]=t[el],e[eu]=t[eu],e[ec]=t[ec],e[ed]=t[ed],e},e}(),ew=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},ek=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,x.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:eg(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=ef,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=x.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ew(this.sessionTimeout,this.lastEventTime),!ep(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ex().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,W(Object.entries((0,x.pi)((0,x.pi)({},ef),t)).reduce(function(e,t){var r,i=(0,x.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new $)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),eS=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eE(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eE=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e_=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eC=function(){return(eC=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}).apply(this,arguments)};function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eA=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eO(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u<e.length;u++)if(!eA(e[u],t[u]))return!1}else{if(!eA(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){eA(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eP=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eC({},this.identity.userProperties),n=eC(eC({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=eO(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eT(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,eO(Object.entries(h))),m=p.next();!m.done;m=p.next()){var g=eT(m.value,2),v=g[0],y=g[1];l[v]=y}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(a=void 0,eO(Object.keys(h))),x=b.next();!x.done;x=b.next()){var v=x.value;delete l[v]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eC({},this.identity)},e.prototype.setIdentity=function(e){var t=eC({},this.identity);this.identity=eC({},e),eA(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eI="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eR=function(){function e(){this.identityStore=new eP,this.eventBridge=new e_,this.applicationContextProvider=new eS}return e.getInstance=function(t){return eI.analyticsConnectorInstances||(eI.analyticsConnectorInstances={}),eI.analyticsConnectorInstances[t]||(eI.analyticsConnectorInstances[t]=new e),eI.analyticsConnectorInstances[t]},e}(),ej=function(e){return void 0===e&&(e="$default_instance"),eR.getInstance(e)},eM=function(e,t){ej(t).identityStore.editIdentity().setUserId(e).commit()},eN=function(e,t){ej(t).identityStore.editIdentity().setDeviceId(e).commit()},eD=function(){function e(){this.name="identity",this.type="before",this.identityStore=ej().identityStore}return e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return e.instanceName&&(this.identityStore=ej(e.instanceName).identityStore),[2]})})},e}(),eL=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},ez=function(e){return e&&void 0!==e._q},eF=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat("2.11.13"),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,x.Jh)(this,function(a){return t=new Date().getTime(),n=null!==(i=this.config.lastEventId)&&void 0!==i?i:-1,r=null!==(o=e.event_id)&&void 0!==o?o:n+1,this.config.lastEventId=r,e.time||(this.config.lastEventTime=t),[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eF()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:D(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:r,library:this.library,user_agent:this.userAgent})]})})},e}(),e$=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eV=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},eU=function(){function e(e){this.options=(0,x.pi)({},e)}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(!ev())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=eW(n))&&void 0!==t?t:eq(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=ev())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return(0,x.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=ev())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2]})})},e}(),eW=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eq=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eH=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,h,p,m,g,v,y,b,x,w,k,S,E=e.code||0,_=this.buildStatus(E);switch(_){case f.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case f.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(p=e.throttled_devices)&&void 0!==p?p:{},throttledEvents:null!==(m=e.throttled_events)&&void 0!==m?m:[]}};case f.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case f.RateLimit:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(x=e.throttled_users)&&void 0!==x?x:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(k=e.exceeded_daily_quota_users)&&void 0!==k?k:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case f.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?f.Success:429===e?f.RateLimit:413===e?f.PayloadTooLarge:408===e?f.Timeout:e>=400&&e<500?f.Invalid:e>=500?f.Failed:f.Unknown},e}(),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(eH),eG=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n;return(0,x.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eK=function(e){function t(t){var n,r=e.call(this,null===(n=ev())||void 0===n?void 0:n.localStorage)||this;return r.loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,x.ZT)(t,e),t.prototype.set=function(t,n){return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return r=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(i=this.loggerProvider)||void 0===i||i.error("Failed to save ".concat(r," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eG),eY=function(e){function t(){var t;return e.call(this,null===(t=ev())||void 0===t?void 0:t.sessionStorage)||this}return(0,x.ZT)(t,e),t}(eG),eX=function(e){function t(){var t=e.apply(this,(0,x.ev)([],(0,x.CR)(arguments),!1))||this;return t.state={done:4},t}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eH),eJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=ev();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eH),eQ=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,x.mG)(void 0,(0,x.ev)([e,t],(0,x.CR)(n),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d;return void 0===n&&(n=!0),(0,x.Jh)(this,function(f){switch(f.label){case 0:return r="".concat("amp","_").concat(e.substring(0,6)),[4,t.getRaw(r)];case 1:if(!(i=f.sent()))return[2,{optOut:!1}];if(!n)return[3,3];return[4,t.remove(r)];case 2:f.sent(),f.label=3;case 3:return a=(o=(0,x.CR)(i.split("."),6))[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:a,userId:e1(s),sessionId:e0(u),lastEventId:e0(d),lastEventTime:e0(c),optOut:!!l}]}})})},e0=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e1=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e2="[Amplitude]",e5="".concat(e2," Form Started"),e3="".concat(e2," Form Submitted"),e4="".concat(e2," File Downloaded"),e6="session_start",e7="session_end",e8="".concat(e2," File Extension"),e9="".concat(e2," File Name"),te="".concat(e2," Link ID"),tt="".concat(e2," Link Text"),tn="".concat(e2," Link URL"),tr="".concat(e2," Form ID"),ti="".concat(e2," Form Name"),to="".concat(e2," Form Destination"),ta="cookie",ts=function(e){function t(t,n,r,i,o,a,s,l,u,c,f,h,p,m,g,v,y,b,x,w,k,S,E,_,C,O,T,A,P,R,j,M,N,D){void 0===r&&(r=new e$),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===f&&(f=ta),void 0===v&&(v=new I),void 0===y&&(y=d.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===_&&(_="US"),void 0===O&&(O=18e5),void 0===T&&(T=new eK({loggerProvider:v})),void 0===A&&(A={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===j&&(j=!1);var L=e.call(this,{apiKey:t,storageProvider:T,transportProvider:tc(P)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=l,L.flushMaxRetries=u,L.flushQueueSize=c,L.identityStorage=f,L.ingestionMetadata=h,L.instanceName=p,L.loggerProvider=v,L.logLevel=y,L.minIdLength=b,L.offline=x,L.partnerId=k,L.plan=S,L.serverUrl=E,L.serverZone=_,L.sessionTimeout=O,L.storageProvider=T,L.trackingOptions=A,L.transport=P,L.useBatch=R,L.fetchRemoteConfig=j,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=m,L.lastEventTime=g,L.optOut=w,L.sessionId=C,L.pageCounter=N,L.userId=M,L.debugLogsEnabled=D,L.loggerProvider.enable(D?d.Debug:L.logLevel),L}return(0,x.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eV(this.apiKey),e)},t}(j),tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(0,x.mG)(void 0,(0,x.ev)([e],(0,x.CR)(t),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,L,z,F,B,$,V,U,W,q,H,Z;return void 0===t&&(t={}),(0,x.Jh)(this,function(G){switch(G.label){case 0:if(r=t.identityStorage||ta,k={},!(r!==ta))return[3,1];return o="",[3,5];case 1:if(!(null!==(E=null===(S=t.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return a=E,[3,4];case 2:return[4,td()];case 3:a=G.sent(),G.label=4;case 4:o=a,G.label=5;case 5:return i=x.pi.apply(void 0,[(k.domain=o,k.expiration=365,k.sameSite="Lax",k.secure=!1,k.upgrade=!0,k),t.cookieOptions]),[4,eQ(e,s=tu(t.identityStorage,i),null===(C=null===(_=t.cookieOptions)||void 0===_?void 0:_.upgrade)||void 0===C||C)];case 6:return l=G.sent(),[4,s.get(eV(e))];case 7:return u=G.sent(),c=ey(),d=null!==(I=null!==(P=null!==(A=null!==(T=null!==(O=t.deviceId)&&void 0!==O?O:c.ampDeviceId)&&void 0!==T?T:c.deviceId)&&void 0!==A?A:null==u?void 0:u.deviceId)&&void 0!==P?P:l.deviceId)&&void 0!==I?I:D(),f=null!==(R=null==u?void 0:u.lastEventId)&&void 0!==R?R:l.lastEventId,h=null!==(j=null==u?void 0:u.lastEventTime)&&void 0!==j?j:l.lastEventTime,p=null!==(N=null!==(M=t.optOut)&&void 0!==M?M:null==u?void 0:u.optOut)&&void 0!==N?N:l.optOut,m=null!==(L=null==u?void 0:u.sessionId)&&void 0!==L?L:l.sessionId,g=null!==(F=null!==(z=t.userId)&&void 0!==z?z:null==u?void 0:u.userId)&&void 0!==F?F:l.userId,n.previousSessionDeviceId=null!==(B=null==u?void 0:u.deviceId)&&void 0!==B?B:l.deviceId,n.previousSessionUserId=null!==($=null==u?void 0:u.userId)&&void 0!==$?$:l.userId,v={ipAddress:null===(U=null===(V=t.trackingOptions)||void 0===V?void 0:V.ipAddress)||void 0===U||U,language:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.language)||void 0===q||q,platform:null===(Z=null===(H=t.trackingOptions)||void 0===H?void 0:H.platform)||void 0===Z||Z},y=null==u?void 0:u.pageCounter,b=null==u?void 0:u.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(w=new ts(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,d,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,p,t.partnerId,t.plan,t.serverUrl,t.serverZone,m,t.sessionTimeout,t.storageProvider,v,t.transport,t.useBatch,t.fetchRemoteConfig,g,y,b)).storageProvider.isEnabled()];case 8:return G.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new e$),[2,w]}})})},tu=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eK;case"sessionStorage":return new eY;case"none":return new e$;default:return new eU((0,x.pi)((0,x.pi)({},t),{expirationDays:t.expiration}))}},tc=function(e){return"xhr"===e?new eX:"beacon"===e?new eJ:new eZ},td=function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:return[4,new eU().isEnabled()];case 1:if(!s.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=(null!=e?e:location.hostname).split("."),n=[],r="AMP_TLDTEST",i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));i=0,s.label=2;case 2:if(!(i<n.length))return[3,7];return[4,(a=new eU({domain:"."+(o=n[i])})).set(r,1)];case 3:return s.sent(),[4,a.get(r)];case 4:if(!s.sent())return[3,6];return[4,a.remove(r)];case 5:return s.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}})})},tf=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},th=function(e){void 0===e&&(e={});var t,n,r,i=ev(),o=void 0,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tp()];case 1:return[2,(n.event_properties=x.pi.apply(void 0,[x.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(n=tg(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,x.mG)(void 0,void 0,void 0,function(){var s,l;return(0,x.Jh)(this,function(u){switch(u.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",m),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,x.CR)(n,3),i=r[0],o=r[1],a=r[2];e.apply(t,[i,o,a]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tm(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tp=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=tf,[4,new ex().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tm=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[h.SET]||{},r=t[h.UNSET]||{},i=(0,x.ev)((0,x.ev)([],(0,x.CR)(Object.keys(n)),!1),(0,x.CR)(Object.keys(r)),!1);return Object.keys(ef).every(function(e){return i.includes(e)})}return!1},tg=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tv=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=o,n)),r.track(e3,((i={})[tr]=ty(e.id),i[ti]=ty(e.name),i[to]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ty=function(e){if("string"==typeof e)return e},tb=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tx=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(e4,((n={})[e8]=a,n[e9]=t.pathname,n[te]=e.id,n[tt]=e.text,n[tn]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tw=!1,tk=function(e){tw||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tw=!0)},tS=function(){var e=ev(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return r(),[2]})})}}};(l=g||(g={})).US="US",l.EU="EU";var tE="Remote config fetch rejected due to timeout after 5 seconds",t_="Unexpected error occurred",tC=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,x.mG)(r,void 0,void 0,function(){var r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,h;return(0,x.Jh)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tE})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),p.label=1;case 1:p.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,x.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,x.pi)((0,x.pi)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:t_})];switch(new eH().buildStatus(l.status)){case f.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case f.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:tE})];return[2,this.completeRequest({err:null!==(h=u.message)&&void 0!==h?h:t_})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tO=function(e){var t=e.localConfig,n=e.configKeys;return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,new tC({localConfig:t,configKeys:n})]})})},tT=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tO({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),!(t=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:t=s.sent(),s.label=2;case 2:return e=t,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(e,null,2)),e&&"autocapture"in e&&("boolean"==typeof e.autocapture&&(this.config.autocapture=e.autocapture),"object"==typeof e.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=e.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},e.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)((0,x.pi)({},this.config.autocapture),e.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(r=(a=this.config).requestMetadata)&&void 0!==r||(a.requestMetadata=new N),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(o=this.remoteConfigFetch)||void 0===o?void 0:o.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return n=s.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",n),[3,4];case 4:return[2,this.config]}})})},e}(),tA=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tP=["div","span","h1","h2","h3","h4","h5","h6"],tI="[Amplitude] Element Clicked",tR="[Amplitude] Element Tag",tj="[Amplitude] Element Text",tM="[Amplitude] Element Selector",tN="[Amplitude] Page URL",tD="https://app.amplitude.com",tL={US:tD,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tz="amp-visual-tagging-selector-highlight",tF=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tB(e){return"function"==typeof e}function t$(e){return tB(null==e?void 0:e.then)}function tV(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var tU=tV(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function tW(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tq=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,x.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(tB(l))try{l()}catch(e){i=e instanceof tU?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,x.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tZ(f)}catch(e){i=null!=i?i:[],e instanceof tU?i=(0,x.ev)((0,x.ev)([],(0,x.CR)(i)),(0,x.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new tU(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tZ(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&tW(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tW(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function tH(e){return e instanceof tq||e&&"closed"in e&&tB(e.remove)&&tB(e.add)&&tB(e.unsubscribe)}function tZ(e){tB(e)?e():e.unsubscribe()}tq.EMPTY;var tG={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tK={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tK.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setTimeout.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearTimeout:function(e){var t=tK.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tY(e){tK.setTimeout(function(){var t=tG.onUnhandledError;if(t)t(e);else throw e})}function tX(){}var tJ=tQ("C",void 0,void 0);function tQ(e,t,n){return{kind:e,value:t,error:n}}var t0=null,t1=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tH(t)&&t.add(n)):n.destination=t8,n}return(0,x.ZT)(t,e),t.create=function(e,t,n){return new t4(e,t,n)},t.prototype.next=function(e){this.isStopped?t7(tQ("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?t7(tQ("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?t7(tJ,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tq),t2=Function.prototype.bind;function t5(e,t){return t2.call(e,t)}var t3=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){t6(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){t6(e)}else t6(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){t6(e)}},e}(),t4=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tB(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&tG.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&t5(t.next,o),error:t.error&&t5(t.error,o),complete:t.complete&&t5(t.complete,o)}):i=t,a.destination=new t3(i),a}return(0,x.ZT)(t,e),t}(t1);function t6(e){tG.useDeprecatedSynchronousErrorHandling?tG.useDeprecatedSynchronousErrorHandling&&t0&&(t0.errorThrown=!0,t0.error=e):tY(e)}function t7(e,t){var n=tG.onStoppedNotification;n&&tK.setTimeout(function(){return n(e,t)})}var t8={closed:!0,next:tX,error:function(e){throw e},complete:tX},t9="function"==typeof Symbol&&Symbol.observable||"@@observable";function ne(e){return e}var nt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof t1||r&&tB(r.next)&&tB(r.error)&&tB(r.complete)&&tH(r)?e:new t4(e,t,n);return function(e){if(tG.useDeprecatedSynchronousErrorHandling){var t=!t0;if(t&&(t0={errorThrown:!1,error:null}),e(),t){var n=t0,r=n.errorThrown,i=n.error;if(t0=null,r)throw i}}else e()}(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nn(t))(function(t,r){var i=new t4({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[t9]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?ne:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nn(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nn(e){var t;return null!==(t=null!=e?e:tG.Promise)&&void 0!==t?t:Promise}function nr(e){return Symbol.asyncIterator&&tB(null==e?void 0:e[Symbol.asyncIterator])}function ni(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var no="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function na(e){return tB(null==e?void 0:e[no])}function ns(e){return(0,x.FC)(this,arguments,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,x.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,x.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,x.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nl(e){return tB(null==e?void 0:e.getReader)}function nu(e){if(e instanceof nt)return e;if(null!=e){if(tB(e[t9]))return new nt(function(t){var n=e[t9]();if(tB(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tF(e))return new nt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t$(e))return new nt(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tY)});if(nr(e))return nc(e);if(na(e))return new nt(function(t){var n,r;try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nl(e))return nc(ns(e))}throw ni(e)}function nc(e){return new nt(function(t){(function(e,t){var n,r,i,o;return(0,x.mG)(this,void 0,void 0,function(){var a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,x.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nd(e){return function(t){if(tB(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nf(e,t,n,r,i){return new nh(e,t,n,r,i)}var nh=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,x.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(t1);function np(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){r.next(e.call(t,n,i++))}))})}function nm(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ng(e,t,n){return(void 0===n&&(n=1/0),tB(t))?ng(function(n,r){return np(function(e,i){return t(n,e,r,i)})(nu(e(n,r)))},n):("number"==typeof t&&(n=t),nd(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;nu(e(t,l++)).subscribe(nf(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nf(r,d,function(){u=!0,c()})),function(){}}))}var nv=Array.isArray,ny=["addListener","removeListener"],nb=["addEventListener","removeEventListener"],nx=["on","off"];function nw(e,t,n,r){if(tB(n)&&(r=n,n=void 0),r)return nw(e,t,n).pipe((i=r,np(function(e){return nv(e)?i.apply(void 0,(0,x.ev)([],(0,x.CR)(e))):i(e)})));var i,o=(0,x.CR)(tB(e.addEventListener)&&tB(e.removeEventListener)?nb.map(function(r){return function(i){return e[r](t,i,n)}}):tB(e.addListener)&&tB(e.removeListener)?ny.map(nk(e,t)):tB(e.on)&&tB(e.off)?nx.map(nk(e,t)):[],2),a=o[0],s=o[1];if(!a&&tF(e))return ng(function(e){return nw(e,t,n)})(nu(e));if(!a)throw TypeError("Invalid event target");return new nt(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function nk(e,t){return function(n){return function(r){return e[n](t,r)}}}function nS(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=nI((e=o.getAttribute("id"))&&v.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.attributes).filter(function(e){return v.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.classList).filter(v.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||nI((s=o.tagName.toLowerCase(),v.tagName(s)?{name:s,penalty:2}:null))||[nT()],d=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("two"==t)c=c.slice(0,1),d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("one"==t){var f=(0,x.CR)(c=c.slice(0,1),1)[0];d&&nP(f)&&(c=[nA(f,d)])}else"none"==t&&(c=[nT()],d&&(c=[nA(c[0],d)]));try{for(var h=(l=void 0,(0,x.XA)(c)),p=h.next();!p.done;p=h.next()){var f=p.value;f.level=a}}catch(e){l={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(i.push(c),i.length>=v.seedMinLength&&(r=nE(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=nE(i,n)),!r&&n)?n():r}function nE(e,t){if(e.reduce(function(e,t){return e*t.length},1)>v.threshold)return t?t():null;var n,r,i=nj(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,x.Jh)(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=(0,x.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,x.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));try{for(var o=(0,x.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(nO(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function n_(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function nC(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function nO(e){var t=n_(e);switch(y.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function nT(){return{name:"*",penalty:3}}function nA(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function nP(e){return"html"!==e.name&&!e.name.startsWith("#")}function nI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(nR);return n.length>0?n:null}function nR(e){return null!=e}function nj(e){return(0,x.ev)([],(0,x.CR)(e),!1).sort(function(e,t){return nC(e)-nC(t)})}var nM=["input","select","textarea"],nN=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!nB(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nD=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},nL=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!nM.includes(i)&&!o},nz=function(e){var t="";return nL(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nz(e),t+=n.split(/(\s+)/).filter(nD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nF=function(e,t){var n,r,i="";try{return i=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};y=(n=(v=(0,x.pi)((0,x.pi)({},r),t)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=nS(e,"all",function(){return nS(e,"two",function(){return nS(e,"one",function(){return nS(e,"none")})})});if(i){var o=nj(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,x.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>v.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>v.maxNumberOfTries||(r.counter+=1,(o=(0,x.ev)([],(0,x.CR)(t),!1)).splice(i,1),a=n_(o),r.visited.has(a)))return[2];if(!(nO(o)&&(l=o,y.querySelector(n_(l))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,x.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),n_(i)}throw Error("Selector was not found.")}(e,{className:function(e){return e!==tz},maxNumberOfTries:1e3})}catch(e){t&&t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(e.toString()))}var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);o&&(i=o);var a=e.getAttribute("id"),s=e.getAttribute("class");if(a)i="#".concat(a);else if(s){var l=s.split(" ").filter(function(e){return e!==tz}).join(".");l&&(i="".concat(i,".").concat(l))}return i},nB=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},n$=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},nV=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nD(r)?r:""}return nV(n)},nU=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:nU(null==e?void 0:e.parentElement,t):null},nW=function(e,t){if(!e)return{};var n,r,i,o=null===(i=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),a=nF(e,t);return n$(((n={})[tR]=o,n[tj]=nz(e),n[tM]=a,n[tN]=window.location.href.split("?")[0],n))},nq=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nH=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tD,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tD:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tD&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(u=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===u||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:nW,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:tz,messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==l?void 0:l.close)||void 0===c||c.call(l))}}}),this.notify({action:"page-loaded"})},e}(),nZ=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nG=["type"],nK=["svg","path","g"],nY=["password","hidden"];function nX(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nJ=function(e){function t(t,n){return e.call(this)||this}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tq),nQ={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nQ.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setInterval.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearInterval:function(e){var t=nQ.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),nQ.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&nQ.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tW(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nJ),n1={now:function(){return(n1.delegate||Date).now()},delegate:void 0},n2=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=n1.now,e}(),n5=new(function(e){function t(t,n){void 0===n&&(n=n2.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,x.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(n2))(n0);function n3(e){return void 0===e&&(e=1/0),ng(ne,e)}var n4=new nt(function(e){return e.complete()});function n6(e){return e&&tB(e.schedule)}function n7(e){return e[e.length-1]}function n8(e){return n6(n7(e))?e.pop():void 0}function n9(e,t){return void 0===t&&(t=0),nd(function(n,r){n.subscribe(nf(r,function(n){return nm(r,e,function(){return r.next(n)},t)},function(){return nm(r,e,function(){return r.complete()},t)},function(n){return nm(r,e,function(){return r.error(n)},t)}))})}function re(e,t){return void 0===t&&(t=0),nd(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rt(e,t){if(!e)throw Error("Iterable cannot be null");return new nt(function(n){nm(n,t,function(){var r=e[Symbol.asyncIterator]();nm(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rn(e,t){return t?function(e,t){if(null!=e){if(tB(e[t9]))return nu(e).pipe(re(t),n9(t));if(tF(e))return new nt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(t$(e))return nu(e).pipe(re(t),n9(t));if(nr(e))return rt(e,t);if(na(e))return new nt(function(n){var r;return nm(n,t,function(){r=e[no](),nm(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return tB(null==r?void 0:r.return)&&r.return()}});if(nl(e))return rt(ns(e),t)}throw ni(e)}(e,t):nu(e)}function rr(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=n8(t),i=(e=1/0,"number"==typeof n7(t)?t.pop():e);return t.length?1===t.length?nu(t[0]):n3(i)(rn(t,r)):n4}function ri(e){return e<=0?function(){return n4}:nd(function(t,n){var r=0;t.subscribe(nf(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function ro(e){return e instanceof Date&&!isNaN(e)}var ra=tV(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rs(e){throw new ra(e)}(u=b||(b={})).ClickObservable="clickObservable",u.ChangeObservable="changeObservable",u.NavigateObservable="navigateObservable",u.MutationObservable="mutationObservable";var rl=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new nH}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tA,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tP,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=void 0,d=function(){var e,t,n=nw(document,"click",{capture:!0}).pipe(np(function(e){return h(e,"click")})),r=nw(document,"change",{capture:!0}).pipe(np(function(e){return h(e,"change")}));window.navigation&&(t=nw(window.navigation,"navigate").pipe(np(function(e){return h(e,"navigate")})));var i=new nt(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(np(function(e){return h(e,"mutation")}));return(e={})[b.ClickObservable]=n,e[b.ChangeObservable]=r,e[b.NavigateObservable]=t,e[b.MutationObservable]=i,e},f=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),d=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),f=nV(t),h=nF(t,c),p=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,x.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,x.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!nZ.includes(e.name)}),m=!nL(e);if(!nY.includes(String(e.getAttribute("type")))&&!nK.includes(s))try{for(var g=(0,x.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nG.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),0):[],r[tR]=s,r[tj]=nz(t),r["[Amplitude] Element Position Left"]=null==l.left?null:Math.round(l.left),r["[Amplitude] Element Position Top"]=null==l.top?null:Math.round(l.top),r["[Amplitude] Element Aria Label"]=u,r["[Amplitude] Element Attributes"]=d,r[tM]=h,r["[Amplitude] Element Parent Label"]=f,r[tN]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(p["[Amplitude] Element Href"]=t.href),n$(p)},h=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=nU(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=f(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,x.mG)(void 0,void 0,void 0,function(){var r,i,o,a,h,p,m,g,v,y;return(0,x.Jh)(this,function(b){var w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,D,L,z,F,B,$,V,U,W,q,H,Z,G,K,Y,X,J,Q,ee;return c=t.loggerProvider,"undefined"==typeof document||(r=nN(e,e.cssSelectorAllowlist),i=nN(e,e.actionClickAllowlist),k=(w={allObservables:o=d(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,S=w.allObservables,E=w.options,_=w.shouldTrackEvent,A=rr((C=S.clickObservable).pipe(nd(function(e,t){var n,r=!1;e.subscribe(nf(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nX(function(e){var t=(0,x.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),C.pipe((O=E.debounceTime,void 0===T&&(T=n5),nd(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+O,r=T.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nf(t,function(e){r=e,i=T.now(),n||(n=T.schedule(a,O),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),np(function(){return"timeout"}))),a=C.pipe((void 0===P&&(P=n5),I=0,R=P,void 0===I&&(I=0),void 0===j&&(j=n5),M=-1,null!=R&&(n6(R)?j=R:M=R),N=new nt(function(e){var t=ro(I)?+I-j.now():I;t<0&&(t=0);var n=0;return j.schedule(function(){e.closed||(e.next(n++),0<=M?this.schedule(void 0,M):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n3(1)(rn(e,n8(e)))}(n.pipe(ri(1),nd(function(e,t){e.subscribe(nf(t,tX))})),r.pipe(e(t)))}:ng(function(e,n){return nu(t(e,n)).pipe(ri(1),np(function(){return e}))})}(function(){return N})),nX(nq),nX(function(e){return _("click",e.closestTrackedAncestor)}),nd(function(e,t){var n=[];return e.subscribe(nf(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nu(A).subscribe(nf(t,function(){var e=n;n=[],t.next(e)},tX)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tI);try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==k||k.track(r,a.targetElementProperties,{time:a.timestamp})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),L=(D={allObservables:o,getEventProperties:f,amplitude:n,shouldTrackEvent:r}).amplitude,z=D.allObservables,F=D.getEventProperties,B=D.shouldTrackEvent,h=z.changeObservable.pipe(nX(nq),nX(function(e){return B("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),u.push(h),V=($={allObservables:o,options:e,getEventProperties:f,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=$.allObservables,W=$.options,q=$.getEventProperties,H=$.shouldTrackEvent,Z=$.shouldTrackActionClick,G=U.clickObservable,K=U.mutationObservable,Y=U.navigateObservable,X=G.pipe(nX(function(e){return!H("click",e.closestTrackedAncestor)}),np(function(e){var t=nU(e.event.target,W.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nX(nq),nX(function(e){return Z("click",e.closestTrackedAncestor)})),J=[K],Y&&J.push(Y),Q=rr.apply(void 0,(0,x.ev)([],(0,x.CR)(J),!1)),p=X.pipe((ee=function(e){return Q.pipe(ri(1),function(e,t){var n=ro(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rs:o,s=n.scheduler,l=void 0===s?n5:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return nd(function(e,t){var n,o,s=null,u=0,d=function(e){o=nm(t,l,function(){try{n.unsubscribe(),nu(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nf(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return n4}}),np(function(){return e}))},nd(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nf(t,function(e){null==n||n.unsubscribe(),nu(ee(e,r++)).subscribe(n=nf(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==V||V.track(tI,q("click",e.closestTrackedAncestor),{time:e.timestamp})}),u.push(p),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(m=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(y=s.messenger)||void 0===y||y.setup((0,x.pi)((0,x.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tL[t.serverZone]}),{isElementSelectable:nN(e,(0,x.ev)((0,x.ev)([],(0,x.CR)(m),!1),(0,x.CR)(g),!1)),cssSelectorAllowlist:m,actionClickAllowlist:g})))),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,x.Jh)(this,function(i){try{for(t=(e=(0,x.XA)(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},ru={init:E((c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),_(this._init((0,x.pi)((0,x.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c=this;return(0,x.Jh)(this,function(d){var f,h;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,tl(t.apiKey,t,this)];case 1:if(n=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(f=n,(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tT(f)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:n=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,n)];case 5:if(d.sent(),this.logBrowserOptions(n),!K(this.config.defaultTracking))return[3,7];return r=K((h=this.config).defaultTracking)&&h.defaultTracking&&"object"==typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"==typeof h.defaultTracking.attribution?(0,x.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new ek(r,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(o=Number.isNaN(Number((i=ey()).ampSessionId))?void 0:Number(i.ampSessionId),this.setSessionId(null!==(u=null!==(l=null!==(s=t.sessionId)&&void 0!==s?s:o)&&void 0!==l?l:this.config.sessionId)&&void 0!==u?u:Date.now()),(a=ej(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tS()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new z).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new eD).promise];case 12:if(d.sent(),tk(this.config),!G(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tx()).promise];case 13:d.sent(),d.label=14;case 14:if(!G(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tv()).promise];case 15:d.sent(),d.label=16;case 16:if(!Y(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(th(ee(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!J(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rl(Q(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),a.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,eM(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,eN(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(D()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),_(Promise.resolve());if(e===this.config.sessionId)return _(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,X(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e7,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return X(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,_(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tc(e)},t.prototype.identify=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new $,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(ez(r)){var o=r._q;r._q=[],r=eL(new $,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new V,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i;return(0,x.Jh)(this,function(o){return n=Date.now(),r=ew(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===e6||t.event_type===e7||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,x.pi)((0,x.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(Z))).init.bind(c),"init",w(c),S(c,["config"])),add:E(c.add.bind(c),"add",w(c),S(c,["config.apiKey","timeline.plugins"])),remove:E(c.remove.bind(c),"remove",w(c),S(c,["config.apiKey","timeline.plugins"])),track:E(c.track.bind(c),"track",w(c),S(c,["config.apiKey","timeline.queue.length"])),logEvent:E(c.logEvent.bind(c),"logEvent",w(c),S(c,["config.apiKey","timeline.queue.length"])),identify:E(c.identify.bind(c),"identify",w(c),S(c,["config.apiKey","timeline.queue.length"])),groupIdentify:E(c.groupIdentify.bind(c),"groupIdentify",w(c),S(c,["config.apiKey","timeline.queue.length"])),setGroup:E(c.setGroup.bind(c),"setGroup",w(c),S(c,["config.apiKey","timeline.queue.length"])),revenue:E(c.revenue.bind(c),"revenue",w(c),S(c,["config.apiKey","timeline.queue.length"])),flush:E(c.flush.bind(c),"flush",w(c),S(c,["config.apiKey","timeline.queue.length"])),getUserId:E(c.getUserId.bind(c),"getUserId",w(c),S(c,["config","config.userId"])),setUserId:E(c.setUserId.bind(c),"setUserId",w(c),S(c,["config","config.userId"])),getDeviceId:E(c.getDeviceId.bind(c),"getDeviceId",w(c),S(c,["config","config.deviceId"])),setDeviceId:E(c.setDeviceId.bind(c),"setDeviceId",w(c),S(c,["config","config.deviceId"])),reset:E(c.reset.bind(c),"reset",w(c),S(c,["config","config.userId","config.deviceId"])),getSessionId:E(c.getSessionId.bind(c),"getSessionId",w(c),S(c,["config"])),setSessionId:E(c.setSessionId.bind(c),"setSessionId",w(c),S(c,["config"])),extendSession:E(c.extendSession.bind(c),"extendSession",w(c),S(c,["config"])),setOptOut:E(c.setOptOut.bind(c),"setOptOut",w(c),S(c,["config"])),setTransport:E(c.setTransport.bind(c),"setTransport",w(c),S(c,["config"]))};ru.add,ru.extendSession,ru.flush,ru.getDeviceId,ru.getSessionId,ru.getUserId,ru.groupIdentify,ru.identify;var rc=ru.init,rd=(ru.logEvent,ru.remove,ru.reset,ru.revenue,ru.setDeviceId,ru.setGroup,ru.setOptOut,ru.setSessionId,ru.setTransport,ru.setUserId,ru.track)},25660:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,m=0,g=0,v=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function k(){return u(y,g)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return h=p=1,m=d(y=e),g=0,[]}function _(e){var t,n;return(t=g-1,n=function e(t){for(;w();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",A="comm",P="rule",I="decl",R="@keyframes";function j(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case A:return"";case R:return e.return=e.value+"{"+j(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=j(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,x=0;v<r;++v)for(var w=0,k=c(e,p+1,p=i(y=l[v])),S=e;w<g;++w)(S=(y>0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())&&(d[x++]=S);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,I,c(e,0,r),c(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!S(i);)w();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(S(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=_(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},F=function(e,t){var n;return n=z(E(e),t),y="",n},B=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=F(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},U=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+O+t+C+t+t;case 6828:case 4268:return T+t+C+t+t;case 6165:return T+t+C+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+s(t,"shrink","negative")+t;case 5292:return T+t+C+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+C+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===u(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return j([x(e,{value:s(e.value,"@","@"+T)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return j([x(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return j([x(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,m,x,C=e.key;if("css"===C){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||U,P={},I=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)P[t[n]]=!0;I.push(e)});var R=(n=(t=[$,V].concat(T,[M,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),L=function(e){var t,n;return j((n=function e(t,n,r,i,a,m,x,E,C){for(var O,T=0,P=0,I=x,R=0,j=0,M=0,L=1,z=1,F=1,B=0,$="",V=a,U=m,W=i,q=$;z;)switch(M=B,B=w()){case 40:if(108!=M&&58==u(q,I-1)){-1!=l(q+=s(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:q+=_(B);break;case 9:case 10:case 13:case 32:q+=function(e){for(;v=k();)if(v<33)w();else break;return S(e)>2||S(v)>3?"":" "}(M);break;case 92:q+=function(e,t){for(var n;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==k()&&32==w()),c(y,e,n)}(g-1,7);continue;case 47:switch(k()){case 42:case 47:f(b(O=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===k())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:w())}(w(),g),n,r,A,o(v),c(O,2,-2),0),C);break;default:q+="/"}break;case 123*L:E[T++]=d(q)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(q=s(q,/\f/g,"")),j>0&&d(q)-I&&f(j>32?D(q+";",i,r,I-1):D(s(q," ","")+";",i,r,I-2),C);break;case 59:q+=";";default:if(f(W=N(q,n,r,T,P,a,E,$,V=[],U=[],I),m),123===B){if(0===P)e(q,n,W,W,V,m,I,E,U);else switch(99===R&&110===u(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,E,$,a,V=[],I),U),a,U,I,E,i?V:U);break;default:e(q,W,W,W,[""],U,0,E,U)}}}T=P=j=0,L=F=1,$=q="",I=x;break;case 58:I=1+d(q),j=M;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(v=g>0?u(y,--g):0,p--,10===v&&(p=1,h--),v))continue}switch(q+=o(B),B*L){case 38:F=P>0?1:(q+="\f",-1);break;case 44:E[T++]=(d(q)-1)*F,F=1;break;case 64:45===k()&&(q+=_(w())),R=k(),P=I=d($=q+=function(e){for(;!S(k());)w();return c(y,e,g)}(g)),B++;break;case 45:45===M&&2==d(q)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){x=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(I),z}},36411:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},28227:function(e,t,n){"use strict";n.d(t,{E:function(){return x},T:function(){return h},_:function(){return d},a:function(){return m},c:function(){return y},h:function(){return g},w:function(){return f}});var r=n(8035),i=n(25660),o=n(33067),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(32378),l=n(51275),u=n(4631),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),m=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},g={}.hasOwnProperty,v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},x=f(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[v],a=[i],u="";"string"==typeof e.className?u=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(a,void 0,r.useContext(h));u+=t.key+"-"+c.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==v&&(d[f]=e[f]);return d.className=u,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},61339:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(28227),a=n(8035),s=n(32378),l=n(4631),u=n(51275);n(25660),n(20096);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,u.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,l.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},51275:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan: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},o=n(36411),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},4631:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(8035),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},32378:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},14992:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(33067),i=n(87222),o=n(8035);let a=o.createContext(null);function s(){return o.useContext(a)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(35775),c=function(e){let{children:t,theme:n}=e,i=s(),c=o.useMemo(()=>{let e=null===i?n:"function"==typeof n?n(i):(0,r.Z)({},i,n);return null!=e&&(e[l]=null!==i),e},[n,i]);return(0,u.jsx)(a.Provider,{value:c,children:t})},d=n(28227),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o.useContext(d.T);return t&&0!==Object.keys(t).length?t:e};let h=["value"],p=o.createContext();var m=function(e){let{value:t}=e,n=(0,i.Z)(e,h);return(0,u.jsx)(p.Provider,(0,r.Z)({value:null==t||t},n))};let g=o.createContext(void 0);var v=function(e){let{value:t,children:n}=e;return(0,u.jsx)(g.Provider,{value:t,children:n})};let y={};function b(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),s=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var x=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=s()||y,a=b(r,i,n),l=b(r,o,n,!0),h="rtl"===a.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:a,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==a?void 0:a.components,children:t})})})})},w="$$material";let k=["theme"];function S(e){let{theme:t}=e,n=(0,i.Z)(e,k),o=t[w];return(0,u.jsx)(x,(0,r.Z)({},n,{themeId:o?w:void 0,theme:o||t}))}},89716:function(e,t,n){"use strict";n.d(t,{Z:function(){return eU}});var r=n(33067),i=n(87222),o=n(3706),a=n(8035);function s(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l(e,t,n={clone:!0}){let i=n.clone?(0,r.Z)({},e):e;return s(e)&&s(t)&&Object.keys(t).forEach(r=>{a.isValidElement(t[r])?i[r]=t[r]:s(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&s(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=s(t[r])?function e(t){if(a.isValidElement(t)||!s(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[r]):t[r]:i[r]=t[r]}),i}let u={xs:0,sm:600,md:900,lg:1200,xl:1536},c={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${u[e]}px)`};function d(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||c;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||c;return Object.keys(t).reduce((r,i)=>(-1!==Object.keys(e.values||u).indexOf(i)?r[e.up(i)]=n(t[i],i):r[i]=t[i],r),{})}return n(t)}function f(e){if("string"!=typeof e)throw Error((0,o.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function p(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:h(e,n)||r,t&&(i=t(i,r,e)),i}var m=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;let o=e[t],a=h(e.theme,r)||{};return d(e,o,e=>{let r=p(a,i,e);return(e===r&&"string"==typeof e&&(r=p(a,i,`${t}${"default"===e?"":f(e)}`,e)),!1===n)?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},g=function(e,t){return t?l(e,t,{clone:!1}):e};let v={m:"margin",p:"padding"},y={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!b[e])return[e];e=b[e]}let[t,n]=e.split(""),r=v[t],i=y[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),w=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],k=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],S=[...w,...k];function E(e,t,n,r){var i;let o=null!=(i=h(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function _(e){return E(e,"spacing",8,"spacing")}function C(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function O(e,t){let n=_(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var i;if(-1===t.indexOf(n))return null;let o=(i=x(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),a=e[n];return d(e,a,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,w)}function A(e){return O(e,k)}function P(e){return O(e,S)}T.propTypes={},T.filterProps=w,A.propTypes={},A.filterProps=k,P.propTypes={},P.filterProps=S;var I=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?g(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function R(e){return"number"!=typeof e?e:`${e}px solid`}function j(e,t){return m({prop:e,themeKey:"borders",transform:t})}let M=j("border",R),N=j("borderTop",R),D=j("borderRight",R),L=j("borderBottom",R),z=j("borderLeft",R),F=j("borderColor"),B=j("borderTopColor"),$=j("borderRightColor"),V=j("borderBottomColor"),U=j("borderLeftColor"),W=j("outline",R),q=j("outlineColor"),H=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=E(e.theme,"shape.borderRadius",4,"borderRadius");return d(e,e.borderRadius,e=>({borderRadius:C(t,e)}))}return null};H.propTypes={},H.filterProps=["borderRadius"],I(M,N,D,L,z,F,B,$,V,U,H,W,q);let Z=e=>{if(void 0!==e.gap&&null!==e.gap){let t=E(e.theme,"spacing",8,"gap");return d(e,e.gap,e=>({gap:C(t,e)}))}return null};Z.propTypes={},Z.filterProps=["gap"];let G=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=E(e.theme,"spacing",8,"columnGap");return d(e,e.columnGap,e=>({columnGap:C(t,e)}))}return null};G.propTypes={},G.filterProps=["columnGap"];let K=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=E(e.theme,"spacing",8,"rowGap");return d(e,e.rowGap,e=>({rowGap:C(t,e)}))}return null};K.propTypes={},K.filterProps=["rowGap"];let Y=m({prop:"gridColumn"}),X=m({prop:"gridRow"}),J=m({prop:"gridAutoFlow"}),Q=m({prop:"gridAutoColumns"}),ee=m({prop:"gridAutoRows"}),et=m({prop:"gridTemplateColumns"});function en(e,t){return"grey"===t?t:e}function er(e){return e<=1&&0!==e?`${100*e}%`:e}I(Z,G,K,Y,X,J,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),I(m({prop:"color",themeKey:"palette",transform:en}),m({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:en}),m({prop:"backgroundColor",themeKey:"palette",transform:en}));let ei=m({prop:"width",transform:er}),eo=e=>void 0!==e.maxWidth&&null!==e.maxWidth?d(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||u[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:er(t)}}):null;eo.filterProps=["maxWidth"];let ea=m({prop:"minWidth",transform:er}),es=m({prop:"height",transform:er}),el=m({prop:"maxHeight",transform:er}),eu=m({prop:"minHeight",transform:er});m({prop:"size",cssProperty:"width",transform:er}),m({prop:"size",cssProperty:"height",transform:er}),I(ei,eo,ea,es,el,eu,m({prop:"boxSizing"}));var ec={border:{themeKey:"borders",transform:R},borderTop:{themeKey:"borders",transform:R},borderRight:{themeKey:"borders",transform:R},borderBottom:{themeKey:"borders",transform:R},borderLeft:{themeKey:"borders",transform:R},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:H},color:{themeKey:"palette",transform:en},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:en},backgroundColor:{themeKey:"palette",transform:en},p:{style:A},pt:{style:A},pr:{style:A},pb:{style:A},pl:{style:A},px:{style:A},py:{style:A},padding:{style:A},paddingTop:{style:A},paddingRight:{style:A},paddingBottom:{style:A},paddingLeft:{style:A},paddingX:{style:A},paddingY:{style:A},paddingInline:{style:A},paddingInlineStart:{style:A},paddingInlineEnd:{style:A},paddingBlock:{style:A},paddingBlockStart:{style:A},paddingBlockEnd:{style:A},m:{style:T},mt:{style:T},mr:{style:T},mb:{style:T},ml:{style:T},mx:{style:T},my:{style:T},margin:{style:T},marginTop:{style:T},marginRight:{style:T},marginBottom:{style:T},marginLeft:{style:T},marginX:{style:T},marginY:{style:T},marginInline:{style:T},marginInlineStart:{style:T},marginInlineEnd:{style:T},marginBlock:{style:T},marginBlockStart:{style:T},marginBlockEnd:{style:T},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Z},rowGap:{style:K},columnGap:{style:G},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:eo},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let ed=function(){function e(e,t,n,r){let i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};let{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};let c=h(n,s)||{};return u?u(i):d(i,t,t=>{let n=p(c,l,t);return(t===n&&"string"==typeof t&&(n=p(c,l,`${e}${"default"===t?"":f(t)}`,t)),!1===a)?n:{[a]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let a=null!=(r=o.unstable_sxConfig)?r:ec;function s(n){var r;let i=n;if("function"==typeof n)i=n(o);else if("object"!=typeof n)return n;if(!i)return null;let s=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(o.breakpoints),l=Object.keys(s),u=s;return Object.keys(i).forEach(n=>{var r;let s="function"==typeof(r=i[n])?r(o):r;if(null!=s){if("object"==typeof s){if(a[n])u=g(u,e(n,s,o,a));else{let e=d({theme:o},s,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,s)?u[n]=t({sx:s,theme:o}):u=g(u,e)}}else u=g(u,e(n,s,o,a))}}),r=u,l.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},r)}return Array.isArray(i)?i.map(s):s(i)}}();ed.filterProps=["sx"];let ef=["values","unit","step"],eh=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var ep={borderRadius:4};function em(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}let eg=["breakpoints","palette","spacing","shape"];var ev=function(e={},...t){let{breakpoints:n={},palette:o={},spacing:a,shape:s={}}=e,u=(0,i.Z)(e,eg),c=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=(0,i.Z)(e,ef),s=eh(t),l=Object.keys(s);function u(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function c(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-o/100}${n})`}function d(e,r){let i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:l,values:s,up:u,down:c,between:d,only:function(e){return l.indexOf(e)+1<l.length?d(e,l[l.indexOf(e)+1]):u(e)},not:function(e){let t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?c(l[t]):d(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},a)}(n),d=function(e=8){if(e.mui)return e;let t=_({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(a),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,s)},u);return f.applyStyles=em,(f=t.reduce((e,t)=>l(e,t),f)).unstable_sxConfig=(0,r.Z)({},ec,null==u?void 0:u.unstable_sxConfig),f.unstable_sx=function(e){return ed({sx:e,theme:this})},f},ey=n(12440),eb={black:"#000",white:"#fff"},ex={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ew={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ek={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eS={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eE={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},e_={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eC={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let eO=["mode","contrastThreshold","tonalOffset"],eT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eb.white,default:eb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},eA={text:{primary:eb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function eP(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,ey.$n)(e.main,i):"dark"===t&&(e.dark=(0,ey._j)(e.main,o)))}let eI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},ej='"Roboto", "Helvetica", "Arial", sans-serif';function eM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let eN=["none",eM(0,2,1,-1,0,1,1,0,0,1,3,0),eM(0,3,1,-2,0,2,2,0,0,1,5,0),eM(0,3,3,-2,0,3,4,0,0,1,8,0),eM(0,2,4,-1,0,4,5,0,0,1,10,0),eM(0,3,5,-1,0,5,8,0,0,1,14,0),eM(0,3,5,-1,0,6,10,0,0,1,18,0),eM(0,4,5,-2,0,7,10,1,0,2,16,1),eM(0,5,5,-3,0,8,10,1,0,3,14,2),eM(0,5,6,-3,0,9,12,1,0,3,16,2),eM(0,6,6,-3,0,10,14,1,0,4,18,3),eM(0,6,7,-4,0,11,15,1,0,4,20,3),eM(0,7,8,-4,0,12,17,2,0,5,22,4),eM(0,7,8,-4,0,13,19,2,0,5,24,4),eM(0,7,9,-4,0,14,21,2,0,5,26,4),eM(0,8,9,-5,0,15,22,2,0,6,28,5),eM(0,8,10,-5,0,16,24,2,0,6,30,5),eM(0,8,11,-5,0,17,26,2,0,6,32,5),eM(0,9,11,-5,0,18,28,2,0,7,34,6),eM(0,9,12,-6,0,19,29,2,0,7,36,6),eM(0,10,13,-6,0,20,31,3,0,8,38,7),eM(0,10,13,-6,0,21,33,3,0,8,40,7),eM(0,10,14,-6,0,22,35,3,0,8,42,7),eM(0,11,14,-7,0,23,36,3,0,9,44,8),eM(0,11,15,-7,0,24,38,3,0,9,46,8)],eD=["duration","easing","delay"],eL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eF(e){return"".concat(Math.round(e),"ms")}function eB(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var e$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let eV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eV);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,s=(0,i.Z)(e,eO),u=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eE[200],light:eE[50],dark:eE[400]}:{main:eE[700],light:eE[400],dark:eE[800]}}(t),c=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ew[200],light:ew[50],dark:ew[400]}:{main:ew[500],light:ew[300],dark:ew[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ek[500],light:ek[300],dark:ek[700]}:{main:ek[700],light:ek[400],dark:ek[800]}}(t),f=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:e_[400],light:e_[300],dark:e_[700]}:{main:e_[700],light:e_[500],dark:e_[900]}}(t),h=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eC[400],light:eC[300],dark:eC[700]}:{main:eC[800],light:eC[500],dark:eC[900]}}(t),p=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[400],light:eS[300],dark:eS[700]}:{main:"#ed6c02",light:eS[500],dark:eS[900]}}(t);function m(e){return(0,ey.mi)(e,eA.text.primary)>=n?eA.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.Z)(11,n?" (".concat(n,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return eP(t,"light",s,a),eP(t,"dark",l,a),t.contrastText||(t.contrastText=m(t.main)),t};return l((0,r.Z)({common:(0,r.Z)({},eb),mode:t,primary:g({color:u,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:ex,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:a},{dark:eA,light:eT}[t]),s)}(c),m=ev(e),g=l(m,{mixins:(t=m.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},u)),palette:p,shadows:eN.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=ej,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eI),g=a/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,a)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===ej?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},a,h),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,eR),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,eR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return l((0,r.Z)({htmlFontSize:f,pxToRem:v,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),m,{clone:!1})}(p,f),transitions:function(e){let t=(0,r.Z)({},eL,e.easing),n=(0,r.Z)({},ez,e.duration);return(0,r.Z)({getAutoHeightDuration:eB,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,eD),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof o?o:eF(o)," ").concat(a," ").concat("string"==typeof s?s:eF(s))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=a.reduce((e,t)=>l(e,t),g)).unstable_sxConfig=(0,r.Z)({},ec,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return ed({sx:e,theme:this})},g}},12440:function(e,t,n){"use strict";var r=n(20890);t._j=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var i=r(n(79490)),o=r(n(70552));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,i.default)(9,e));let o=e.substring(n+1,e.length-1);if("color"===r){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:r,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function u(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){let{values:t}=e=s(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},70552:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},3706:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},79490:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(3706)},99303:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{SV:function(){return tC}});let l=Object.prototype.toString;function u(e){switch(l.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function c(e,t){return l.call(e)===`[object ${t}]`}function d(e){return c(e,"ErrorEvent")}function f(e){return c(e,"DOMError")}function h(e){return c(e,"String")}function p(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function m(e){return null===e||p(e)||"object"!=typeof e&&"function"!=typeof e}function g(e){return c(e,"Object")}function v(e){return"undefined"!=typeof Event&&b(e,Event)}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function b(e,t){try{return e instanceof t}catch(e){return!1}}function x(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e){return e&&e.Math==Math?e:void 0}let k="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof n.g&&w(n.g)||function(){return this}()||{};function S(e,t,n){let r=n||k,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=k.crypto||k.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function _(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){let{message:t,event_id:n}=e;if(t)return t;let r=_(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function O(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function T(e,t){let n=_(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function A(){return Date.now()/1e3}let P=function(){let{performance:e}=k;if(!e||!e.now)return A;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=k;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||o<36e5)return r<=o?e.timeOrigin:void 0})();let I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],j={};function M(e){if(!("console"in k))return e();let t=k.console,n={},r=Object.keys(j);r.forEach(e=>{let r=j[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let N=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return I?R.forEach(n=>{t[n]=(...t)=>{e&&M(()=>{k.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tw=tk||(tk={}))[tw.PENDING=0]="PENDING",tw[tw.RESOLVED=1]="RESOLVED",tw[tw.REJECTED=2]="REJECTED";class z{constructor(e){z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._state=tk.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new z((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new z((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(tk.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tk.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tk.PENDING){if(y(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tk.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tk.RESOLVED&&e[1](this._value),this._state===tk.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;s.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&h(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let u=["aria-label","type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function B(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function $(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function V(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!h(e)&&(c(t,"RegExp")?t.test(e):!!h(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function U(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&q(i,r),e[t]=i}function W(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,W(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function Z(e){if(u(e))return{message:e.message,name:e.name,stack:e.stack,...K(e)};if(!v(e))return e;{let t={type:e.type,target:G(e.target),currentTarget:G(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function G(e){try{return"undefined"!=typeof Element&&b(e,Element)?F(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function K(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function Y(e){return function e(t,n){if(function(e){if(!g(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function X(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||P(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:E()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function J(e){return e.transaction}function Q(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}class ee{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=et()}static clone(e){return e?e.clone():new ee}clone(){let e=new ee;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&X(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof ee){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else g(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=et(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:A(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:c,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:c,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return!function(e,t){var n;let{fingerprint:r,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=Y(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=Y(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=Y(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}(t),...e.contexts};let n=J(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=ep();if(!t)return{};let n=function(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}(Q(e).trace_id||"",t,ea().getScope()),r=J(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let s=Q(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}(t),...e.sdkProcessingMetadata};let r=Q(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,i),e.fingerprint=e.fingerprint?Array.isArray(n=e.fingerprint)?n:[n]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},r);L&&s.id&&null===l&&N.log(`Event processor "${s.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,l,r,i+1).then(o).then(null,a)}})}([...n,...S("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):N.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function et(){return{traceId:E(),spanId:E().substring(16)}}let en=parseFloat("7.120.3");class er{constructor(e,t,n,r=en){let i,o;this._version=r,t?i=t:(i=new ee).setClient(e),n?o=n:(o=new ee).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return y(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:E(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:E(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:A(),...e},s=i?M(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eo(this);try{e(this)}finally{eo(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return L&&N.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return L&&!n&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
2
2
|
Sentry.addTracingExtensions();
|
|
3
3
|
Sentry.init({...});
|
|
4
4
|
`):N.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();if(t){let e;e={},"ok"===t.status&&(e={status:"exited"}),X(t,e)}this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=D}=n&&n.getOptions()||{},{userAgent:o}=k.navigator||{},a=function(e){let t=P(),n={sid:E(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Y({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&X(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&X(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=ei().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);L&&N.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ei(){return k.__SENTRY__=k.__SENTRY__||{extensions:{},hub:void 0},k}function eo(e){let t=ei(),n=es(t);return el(t,e),n}function ea(){let e=ei();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ei()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||es(e).isOlderThan(en))&&el(e,new er),es(e)}(e)}function es(e){return S("hub",()=>new er,e)}function el(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}new WeakMap;let eu=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ec(e,t){return ea().captureException(e,t?t instanceof ee||"function"==typeof t||Object.keys(t).some(e=>eu.includes(e))?{captureContext:t}:t:void 0)}function ed(e,t){return ea().captureEvent(e,t)}function ef(e,t){ea().addBreadcrumb(e,t)}function eh(...e){let t=ea();if(2===e.length){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function ep(){return ea().getClient()}function em(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}let eg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ev=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ey="InboundFilters",eb=(e={})=>({name:ey,setupOnce(){},processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ev],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(L&&N.warn(`Event dropped due to being internal Sentry Error.
|
|
@@ -30,7 +30,7 @@ ${N.current.stack}
|
|
|
30
30
|
${K(n,a)} 50%,
|
|
31
31
|
transparent 100%
|
|
32
32
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}}),ra=(0,A.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),rs=(0,A.k0)(e=>({bg:eL("gray.100","whiteAlpha.300")(e)})),rl=(0,A.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...ro(e)})),ru=ri(e=>({label:ra,filledTrack:rl(e),track:rs(e)})),rc=rr({sizes:{xs:ri({track:{h:"1"}}),sm:ri({track:{h:"2"}}),md:ri({track:{h:"3"}}),lg:ri({track:{h:"4"}})},baseStyle:ru,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rd,definePartsStyle:rf}=(0,A.D)(x.keys),rh=(0,A.k0)(e=>{let t=ep(tn.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),rp=rd({baseStyle:rf(e=>({label:tn.baseStyle?.(e).label,container:tn.baseStyle?.(e).container,control:rh(e)})),sizes:{md:rf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:rf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:rf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rm,definePartsStyle:rg}=(0,A.D)(w.keys),rv=(0,M.gJ)("select-bg"),ry=rg({field:(0,A.k0)({...t7.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rv.reference,[rv.variable]:"colors.white",_dark:{[rv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rv.reference}}),icon:(0,A.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),rb=(0,A.k0)({paddingInlineEnd:"8"}),rx=rm({baseStyle:ry,sizes:{lg:{...t7.sizes?.lg,field:{...t7.sizes?.lg.field,...rb}},md:{...t7.sizes?.md,field:{...t7.sizes?.md.field,...rb}},sm:{...t7.sizes?.sm,field:{...t7.sizes?.sm.field,...rb}},xs:{...t7.sizes?.xs,field:{...t7.sizes?.xs.field,...rb},icon:{insetEnd:"1"}}},variants:t7.variants,defaultProps:t7.defaultProps}),rw=(0,M.gJ)("skeleton-start-color"),rk=(0,M.gJ)("skeleton-end-color"),rS=(0,A.k0)({[rw.variable]:"colors.gray.100",[rk.variable]:"colors.gray.400",_dark:{[rw.variable]:"colors.gray.800",[rk.variable]:"colors.gray.600"},background:rw.reference,borderColor:rk.reference,opacity:.7,borderRadius:"sm"}),rE=(0,A.fj)({baseStyle:rS}),r_=(0,M.gJ)("skip-link-bg"),rC=(0,A.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[r_.variable]:"colors.white",_dark:{[r_.variable]:"colors.gray.700"},bg:r_.reference}}),rO=(0,A.fj)({baseStyle:rC});var rT=n(54958);let{defineMultiStyleConfig:rA,definePartsStyle:rP}=(0,A.D)(k.keys),rI=(0,M.gJ)("slider-thumb-size"),rR=(0,M.gJ)("slider-track-size"),rj=(0,M.gJ)("slider-bg"),rM=(0,A.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ez({orientation:t,vertical:{h:"100%",px:(0,rT.y)(rI.reference).divide(2).toString()},horizontal:{w:"100%",py:(0,rT.y)(rI.reference).divide(2).toString()}})}}),rN=(0,A.k0)(e=>({...ez({orientation:e.orientation,horizontal:{h:rR.reference},vertical:{w:rR.reference}}),overflow:"hidden",borderRadius:"sm",[rj.variable]:"colors.gray.200",_dark:{[rj.variable]:"colors.whiteAlpha.200"},_disabled:{[rj.variable]:"colors.gray.300",_dark:{[rj.variable]:"colors.whiteAlpha.300"}},bg:rj.reference})),rD=(0,A.k0)(e=>{let{orientation:t}=e;return{...ez({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:rI.reference,h:rI.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),rL=(0,A.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rj.variable]:`colors.${t}.500`,_dark:{[rj.variable]:`colors.${t}.200`},bg:rj.reference}}),rz=rP(e=>({container:rM(e),track:rN(e),thumb:rD(e),filledTrack:rL(e)})),rF=rP({container:{[rI.variable]:"sizes.4",[rR.variable]:"sizes.1"}}),rB=rA({baseStyle:rz,sizes:{lg:rF,md:rP({container:{[rI.variable]:"sizes.3.5",[rR.variable]:"sizes.1"}}),sm:rP({container:{[rI.variable]:"sizes.2.5",[rR.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),r$=ti("spinner-size"),rV=(0,A.k0)({width:[r$.reference],height:[r$.reference]}),rU={xs:(0,A.k0)({[r$.variable]:"sizes.3"}),sm:(0,A.k0)({[r$.variable]:"sizes.4"}),md:(0,A.k0)({[r$.variable]:"sizes.6"}),lg:(0,A.k0)({[r$.variable]:"sizes.8"}),xl:(0,A.k0)({[r$.variable]:"sizes.12"})},rW=(0,A.fj)({baseStyle:rV,sizes:rU,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rq,definePartsStyle:rH}=(0,A.D)(S.keys),rZ=(0,A.k0)({fontWeight:"medium"}),rG=rq({baseStyle:rH({container:{},label:rZ,helpText:(0,A.k0)({opacity:.8,marginBottom:"2"}),number:(0,A.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,A.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rH({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:rK,definePartsStyle:rY}=(0,A.D)(["stepper","step","title","description","indicator","separator","icon","number"]),rX=(0,M.gJ)("stepper-indicator-size"),rJ=(0,M.gJ)("stepper-icon-size"),rQ=(0,M.gJ)("stepper-title-font-size"),r0=(0,M.gJ)("stepper-description-font-size"),r1=(0,M.gJ)("stepper-accent-color"),r2=rK({baseStyle:rY(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[r1.variable]:`colors.${e}.500`,_dark:{[r1.variable]:`colors.${e}.200`}},title:{fontSize:rQ.reference,fontWeight:"medium"},description:{fontSize:r0.reference,color:"chakra-subtle-text"},number:{fontSize:rQ.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:rJ.reference,height:rJ.reference},indicator:{flexShrink:0,borderRadius:"full",width:rX.reference,height:rX.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:r1.reference},"&[data-status=complete]":{bg:r1.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:r1.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${rX.reference} - 8px)`,top:`calc(${rX.reference} + 4px)`,insetStart:`calc(${rX.reference} / 2 - 1px)`}}})),sizes:{xs:rY({stepper:{[rX.variable]:"sizes.4",[rJ.variable]:"sizes.3",[rQ.variable]:"fontSizes.xs",[r0.variable]:"fontSizes.xs"}}),sm:rY({stepper:{[rX.variable]:"sizes.6",[rJ.variable]:"sizes.4",[rQ.variable]:"fontSizes.sm",[r0.variable]:"fontSizes.xs"}}),md:rY({stepper:{[rX.variable]:"sizes.8",[rJ.variable]:"sizes.5",[rQ.variable]:"fontSizes.md",[r0.variable]:"fontSizes.sm"}}),lg:rY({stepper:{[rX.variable]:"sizes.10",[rJ.variable]:"sizes.6",[rQ.variable]:"fontSizes.lg",[r0.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:r5,definePartsStyle:r3}=(0,A.D)(E.keys),r4=ti("switch-track-width"),r6=ti("switch-track-height"),r7=ti("switch-track-diff"),r8=nz.subtract(r4,r6),r9=ti("switch-thumb-x"),ie=ti("switch-bg"),it=(0,A.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[r4.reference],height:[r6.reference],transitionProperty:"common",transitionDuration:"fast",[ie.variable]:"colors.gray.300",_dark:{[ie.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ie.variable]:`colors.${t}.500`,_dark:{[ie.variable]:`colors.${t}.200`}},bg:ie.reference}}),ir=(0,A.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[r6.reference],height:[r6.reference],_checked:{transform:`translateX(${r9.reference})`}}),ii=r5({baseStyle:r3(e=>({container:{[r7.variable]:r8,[r9.variable]:r7.reference,_rtl:{[r9.variable]:nz(r7).negate().toString()}},track:it(e),thumb:ir})),sizes:{sm:r3({container:{[r4.variable]:"1.375rem",[r6.variable]:"sizes.3"}}),md:r3({container:{[r4.variable]:"1.875rem",[r6.variable]:"sizes.4"}}),lg:r3({container:{[r4.variable]:"2.875rem",[r6.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:io,definePartsStyle:ia}=(0,A.D)(_.keys),is=ia({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),il=(0,A.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),iu=io({baseStyle:is,variants:{simple:ia(e=>{let{colorScheme:t}=e;return{th:{color:eL("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},td:{borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},caption:{color:eL("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:ia(e=>{let{colorScheme:t}=e;return{th:{color:eL("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},td:{borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},caption:{color:eL("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e)},td:{background:eL(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,A.k0)({})},sizes:{sm:ia({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ia({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ia({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ic=(0,M.gJ)("tabs-color"),id=(0,M.gJ)("tabs-bg"),ih=(0,M.gJ)("tabs-border-color"),{defineMultiStyleConfig:ip,definePartsStyle:im}=(0,A.D)(C.keys),ig=(0,A.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),iv=(0,A.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),iy=(0,A.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),ib=(0,A.k0)({p:4}),ix=im(e=>({root:ig(e),tab:iv(e),tablist:iy(e),tabpanel:ib})),iw={sm:im({tab:{py:1,px:4,fontSize:"sm"}}),md:im({tab:{fontSize:"md",py:2,px:4}}),lg:im({tab:{fontSize:"lg",py:3,px:4}})},ik=im(e=>{let{colorScheme:t,orientation:n}=e,r="vertical"===n,i=r?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[r?"marginStart":"marginBottom"]:"-2px",_selected:{[ic.variable]:`colors.${t}.600`,_dark:{[ic.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[id.variable]:"colors.gray.200",_dark:{[id.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ic.reference,bg:id.reference}}}),iS=im(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ih.variable]:"transparent",_selected:{[ic.variable]:`colors.${t}.600`,[ih.variable]:"colors.white",_dark:{[ic.variable]:`colors.${t}.300`,[ih.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ih.reference},color:ic.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),iE=im(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[id.variable]:"colors.gray.50",_dark:{[id.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[id.variable]:"colors.white",[ic.variable]:`colors.${t}.600`,_dark:{[id.variable]:"colors.gray.800",[ic.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ic.reference,bg:id.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),i_=im(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:K(n,`${t}.700`),bg:K(n,`${t}.100`)}}}}),iC=ip({baseStyle:ix,sizes:iw,variants:{line:ik,enclosed:iS,"enclosed-colored":iE,"soft-rounded":i_,"solid-rounded":im(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ic.variable]:"colors.gray.600",_dark:{[ic.variable]:"inherit"},_selected:{[ic.variable]:"colors.white",[id.variable]:`colors.${t}.600`,_dark:{[ic.variable]:"colors.gray.800",[id.variable]:`colors.${t}.300`}},color:ic.reference,bg:id.reference}}}),unstyled:im({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iO,definePartsStyle:iT}=(0,A.D)(O.keys),iA=(0,M.gJ)("tag-bg"),iP=(0,M.gJ)("tag-color"),iI=(0,M.gJ)("tag-shadow"),iR=(0,M.gJ)("tag-min-height"),ij=(0,M.gJ)("tag-min-width"),iM=(0,M.gJ)("tag-font-size"),iN=(0,M.gJ)("tag-padding-inline"),iD=iT({container:(0,A.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[iP.variable]:eO.color.reference,[iA.variable]:eO.bg.reference,[iI.variable]:eO.shadow.reference,color:iP.reference,bg:iA.reference,boxShadow:iI.reference,borderRadius:"md",minH:iR.reference,minW:ij.reference,fontSize:iM.reference,px:iN.reference,_focusVisible:{[iI.variable]:"shadows.outline"}}),label:(0,A.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,A.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),iL={sm:iT({container:{[iR.variable]:"sizes.5",[ij.variable]:"sizes.5",[iM.variable]:"fontSizes.xs",[iN.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:iT({container:{[iR.variable]:"sizes.6",[ij.variable]:"sizes.6",[iM.variable]:"fontSizes.sm",[iN.variable]:"space.2"}}),lg:iT({container:{[iR.variable]:"sizes.8",[ij.variable]:"sizes.8",[iM.variable]:"fontSizes.md",[iN.variable]:"space.3"}})},iz=iO({variants:{subtle:iT(e=>({container:eR.variants?.subtle(e)})),solid:iT(e=>({container:eR.variants?.solid(e)})),outline:iT(e=>({container:eR.variants?.outline(e)}))},baseStyle:iD,sizes:iL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),iF=(0,A.k0)({...t7.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),iB={outline:(0,A.k0)(e=>t7.variants?.outline(e).field??{}),flushed:(0,A.k0)(e=>t7.variants?.flushed(e).field??{}),filled:(0,A.k0)(e=>t7.variants?.filled(e).field??{}),unstyled:t7.variants?.unstyled.field??{}},i$={xs:t7.sizes?.xs.field??{},sm:t7.sizes?.sm.field??{},md:t7.sizes?.md.field??{},lg:t7.sizes?.lg.field??{}},iV=(0,A.fj)({baseStyle:iF,sizes:i$,variants:iB,defaultProps:{size:"md",variant:"outline"}}),iU=ti("tooltip-bg"),iW=ti("tooltip-fg"),iq=ti("popper-arrow-bg"),iH=(0,A.k0)({bg:iU.reference,color:iW.reference,[iU.variable]:"colors.gray.700",[iW.variable]:"colors.whiteAlpha.900",_dark:{[iU.variable]:"colors.gray.300",[iW.variable]:"colors.gray.900"},[iq.variable]:iU.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),iZ=(0,A.fj)({baseStyle:iH}),iG={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...nF,sizes:ef,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:ed,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},iK={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iY={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iX={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},iJ={semanticTokens:iK,direction:"ltr",...iG,components:{Accordion:j,Alert:ec,Avatar:eC,Badge:eR,Breadcrumb:eD,Button:eZ,Checkbox:tn,CloseButton:tu,Code:th,Container:tm,Divider:tb,Drawer:tR,Editable:tN,Form:tF,FormError:tU,FormLabel:tq,Heading:tG,Input:t7,Kbd:ne,Link:nn,List:no,Menu:ng,Modal:nA,NumberInput:nQ,PinInput:n5,Popover:rn,Progress:rc,Radio:rp,Select:rx,Skeleton:rE,SkipLink:rO,Slider:rB,Spinner:rW,Stat:rG,Switch:ii,Table:iu,Tabs:iC,Tag:iz,Textarea:iV,Tooltip:iZ,Card:e3,Stepper:r2},styles:iY,config:iX},iQ={semanticTokens:iK,direction:"ltr",components:{},...iG,styles:iY,config:iX}},72300:function(e,t,n){"use strict";n.d(t,{P:function(){return r},Q:function(){return i}});let r=e=>e?"":void 0,i=e=>!!e||void 0},43310:function(e,t,n){"use strict";n.d(t,{Y:function(){return u},y:function(){return c}});var r=n(15444);function i(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}let o=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,a=e=>Object.fromEntries(Object.entries(e).sort(o));function s(e){let t=a(e);return Object.assign(Object.values(t),t)}function l(e){return e?"number"==typeof(e=i(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function u(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${i(e)})`),t&&n.push("and",`(max-width: ${i(t)})`),n.join(" ")}function c(e){if(!e)return null;e.base=e.base??"0px";let t=s(e),n=Object.entries(e).sort(o).map(([e,t],n,r)=>{let[,i]=r[n+1]??[];return i=parseFloat(i)>0?l(i):void 0,{_minW:l(t),breakpoint:e,minW:t,maxW:i,maxWQuery:u(null,i),minWQuery:u(t),minMaxQuery:u(t,i)}}),i=new Set(Object.keys(a(e))),c=Array.from(i.values());return{keys:i,normalized:t,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>i.has(e))},asObject:a(e),asArray:s(e),details:n,get:e=>n.find(t=>t.breakpoint===e),media:[null,...t.map(e=>u(e)).slice(1)],toArrayValue(e){if(!(0,r.Kn)(e))throw Error("toArrayValue: value must be an object");let t=c.map(t=>e[t]??null);for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=c[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}},60936:function(e,t,n){"use strict";function r(...e){return function(...t){e.forEach(e=>e?.(...t))}}function i(...e){return function(t){e.some(e=>(e?.(t),t?.defaultPrevented))}}n.d(t,{P:function(){return r},v:function(){return i}})},74692:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(8035);function i(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},22421:function(e,t,n){"use strict";function r(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}n.d(t,{o:function(){return r}})},31716:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(8035);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(s=(u=Error).captureStackTrace)||void 0===s||s.call(u,t,e),t}return t},l]}},88619:function(e,t,n){"use strict";n.d(t,{cx:function(){return r}});let r=(...e)=>e.filter(Boolean).join(" ")},4260:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(85866);let i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});let r=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e})},42011:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(){return!!globalThis?.document}function o(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function a(e){return!0==!!e.getAttribute("disabled")||!0==!!e.getAttribute("aria-disabled")}n.d(t,{Re:function(){return r},iU:function(){return o},jU:function(){return i},nV:function(){return a},oI:function(){return function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}}})},15444:function(e,t,n){"use strict";function r(e){return Array.isArray(e)}function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!r(e)}n.d(t,{Kn:function(){return i},kJ:function(){return r}})},53732:function(e,t,n){"use strict";function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!n||!!r||"keepMounted"===i&&!!t}n.d(t,{k:function(){return r}})},78363:function(e,t,n){"use strict";function r(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}n.d(t,{C:function(){return r}})},17319:function(e,t,n){"use strict";n.d(t,{kR:function(){return i},vY:function(){return a}});var r=n(42011);function i(e){return o(e)?.defaultView??window}function o(e){return(0,r.Re)(e)?e.ownerDocument:document}function a(e){return o(e).activeElement}},92295:function(e,t,n){"use strict";function r(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}n.d(t,{e:function(){return r}})},43518:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var r=n(15444);let i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function a(e,t=i){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},32890:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let r=e=>"function"==typeof e;function i(e,...t){return r(e)?e(...t):e}},91168:function(e,t,n){"use strict";function r(e,t){let n={},r={};for(let[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}n.d(t,{V:function(){return r}})},85866:function(e,t,n){"use strict";n.d(t,{EB:function(){return a},Wq:function(){return s}});var r=n(42011);let i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){if(!(0,r.Re)(e)||(0,r.oI)(e)||(0,r.nV)(e))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!(0,r.iU)(e)||i(e)}function s(e){return!!e&&(0,r.Re)(e)&&a(e)&&!o(e)}},4872:function(e,t,n){"use strict";function r(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 i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return function t(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function s(e){return({}).toString.call(e).includes("Object")}function l(e){return"function"==typeof e}n.d(t,{SV:function(){return $},ML:function(){return W}});var u,c,d=a(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),f=function(e,t){return s(t)||d("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&d("changeField"),t},h=function(e){l(e)||d("selectorType")},p=function(e){l(e)||s(e)||d("handlerType"),s(e)&&Object.values(e).some(function(e){return!l(e)})&&d("handlersType")},m=function(e){e||d("initialIsRequired"),s(e)||d("initialType"),Object.keys(e).length||d("initialContent")};function g(e,t){return l(t)?t(e.current):t}function v(e,t){return e.current=o(o({},e.current),t),t}function y(e,t,n){return l(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}(u=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.length>=u.length?u.apply(this,r):function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.apply(t,[].concat(r,i))}})({configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "});var b=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},x={type:"cancelation",msg:"operation is manually canceled"},w=function(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(x):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n},k=function(e){if(Array.isArray(e))return e}(c=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(e),p(t);var n={current:e},r=a(y)(n,t),i=a(v)(n),o=a(f)(e),s=a(g)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h(e),e(n.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(r,i,o,s)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(c,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,2)}}(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),S=k[0],E=k[1];function _(e){return document.body.appendChild(e)}function C(e){var t,n,r=S(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return i.onload=function(){return e()},i.onerror=r.reject,i}function O(){var e=S(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){T(t),e.resolve(t)},function(t){e.reject(t)})}function T(e){S().monaco||E({monaco:e})}var A=new Promise(function(e,t){return E({resolve:e,reject:t})}),P=function(){var e=S(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(E({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),w(A);if(window.monaco&&window.monaco.editor)return T(window.monaco),e.resolve(window.monaco),w(A);b(_,C)(O)}return w(A)},I=n(8035),R={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},j={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},M=function({children:e}){return I.createElement("div",{style:j},e)},N=(0,I.memo)(function({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:a}){return I.createElement("section",{style:{...R.wrapper,width:e,height:t},...a},!n&&I.createElement(M,null,r),I.createElement("div",{ref:i,style:{...R.fullWidth,...!n&&R.hide},className:o}))}),D=function(e){(0,I.useEffect)(e,[])},L=function(e,t,n=!0){let r=(0,I.useRef)(!0);(0,I.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function z(){}function F(e,t,n,r){return e.editor.getModel(B(e,r))||e.editor.createModel(t,n,r?B(e,r):void 0)}function B(e,t){return e.Uri.parse(t)}var $=(0,I.memo)(function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:d={},height:f="100%",width:h="100%",className:p,wrapperProps:m={},beforeMount:g=z,onMount:v=z}){let[y,b]=(0,I.useState)(!1),[x,w]=(0,I.useState)(!0),k=(0,I.useRef)(null),S=(0,I.useRef)(null),E=(0,I.useRef)(null),_=(0,I.useRef)(v),C=(0,I.useRef)(g),O=(0,I.useRef)(!1);D(()=>{let e=P();return e.then(e=>(S.current=e)&&w(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return k.current?(t=k.current?.getModel(),void(s||t?.original?.dispose(),l||t?.modified?.dispose(),k.current?.dispose())):e.cancel()}}),L(()=>{if(k.current&&S.current){let t=k.current.getOriginalEditor(),i=F(S.current,e||"",r||n||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],y),L(()=>{if(k.current&&S.current){let e=k.current.getModifiedEditor(),r=F(S.current,t||"",i||n||"text",a||"");r!==e.getModel()&&e.setModel(r)}},[a],y),L(()=>{let e=k.current.getModifiedEditor();e.getOption(S.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],y),L(()=>{k.current?.getModel()?.original.setValue(e||"")},[e],y),L(()=>{let{original:e,modified:t}=k.current.getModel();S.current.editor.setModelLanguage(e,r||n||"text"),S.current.editor.setModelLanguage(t,i||n||"text")},[n,r,i],y),L(()=>{S.current?.editor.setTheme(u)},[u],y),L(()=>{k.current?.updateOptions(d)},[d],y);let T=(0,I.useCallback)(()=>{if(!S.current)return;C.current(S.current);let s=F(S.current,e||"",r||n||"text",o||""),l=F(S.current,t||"",i||n||"text",a||"");k.current?.setModel({original:s,modified:l})},[n,t,i,e,r,o,a]),A=(0,I.useCallback)(()=>{!O.current&&E.current&&(k.current=S.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...d}),T(),S.current?.editor.setTheme(u),b(!0),O.current=!0)},[d,u,T]);return(0,I.useEffect)(()=>{y&&_.current(k.current,S.current)},[y]),(0,I.useEffect)(()=>{x||y||A()},[x,y,A]),I.createElement(N,{width:h,height:f,isEditorReady:y,loading:c,_ref:E,className:p,wrapperProps:m})}),V=function(e){let t=(0,I.useRef)();return(0,I.useEffect)(()=>{t.current=e},[e]),t.current},U=new Map,W=(0,I.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:h="100%",height:p="100%",className:m,wrapperProps:g={},beforeMount:v=z,onMount:y=z,onChange:b,onValidate:x=z}){let[w,k]=(0,I.useState)(!1),[S,E]=(0,I.useState)(!0),_=(0,I.useRef)(null),C=(0,I.useRef)(null),O=(0,I.useRef)(null),T=(0,I.useRef)(y),A=(0,I.useRef)(v),R=(0,I.useRef)(),j=(0,I.useRef)(r),M=V(o),B=(0,I.useRef)(!1),$=(0,I.useRef)(!1);D(()=>{let e=P();return e.then(e=>(_.current=e)&&E(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>C.current?void(R.current?.dispose(),f?d&&U.set(o,C.current.saveViewState()):C.current.getModel()?.dispose(),C.current.dispose()):e.cancel()}),L(()=>{let a=F(_.current,e||r||"",t||i||"",o||n||"");a!==C.current?.getModel()&&(d&&U.set(M,C.current?.saveViewState()),C.current?.setModel(a),d&&C.current?.restoreViewState(U.get(o)))},[o],w),L(()=>{C.current?.updateOptions(u)},[u],w),L(()=>{C.current&&void 0!==r&&(C.current.getOption(_.current.editor.EditorOption.readOnly)?C.current.setValue(r):r===C.current.getValue()||($.current=!0,C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),C.current.pushUndoStop(),$.current=!1))},[r],w),L(()=>{let e=C.current?.getModel();e&&i&&_.current?.editor.setModelLanguage(e,i)},[i],w),L(()=>{void 0!==s&&C.current?.revealLine(s)},[s],w),L(()=>{_.current?.editor.setTheme(a)},[a],w);let W=(0,I.useCallback)(()=>{if(!(!O.current||!_.current)&&!B.current){A.current(_.current);let l=o||n,f=F(_.current,r||e||"",t||i||"",l||"");C.current=_.current?.editor.create(O.current,{model:f,automaticLayout:!0,...u},c),d&&C.current.restoreViewState(U.get(l)),_.current.editor.setTheme(a),void 0!==s&&C.current.revealLine(s),k(!0),B.current=!0}},[e,t,n,r,i,o,u,c,d,a,s]);return(0,I.useEffect)(()=>{w&&T.current(C.current,_.current)},[w]),(0,I.useEffect)(()=>{S||w||W()},[S,w,W]),j.current=r,(0,I.useEffect)(()=>{w&&b&&(R.current?.dispose(),R.current=C.current?.onDidChangeModelContent(e=>{$.current||b(C.current.getValue(),e)}))},[w,b]),(0,I.useEffect)(()=>{if(w){let e=_.current.editor.onDidChangeMarkers(e=>{let t=C.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=_.current.editor.getModelMarkers({resource:t});x?.(e)}});return()=>{e?.dispose()}}return()=>{}},[w,x]),I.createElement(N,{width:h,height:p,isEditorReady:w,loading:l,_ref:O,className:m,wrapperProps:g})})},4549:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r,i,o=n(8035),a=n(62658),s=n(11410),l=n(92988);function u({color:e,dimensions:t,lineWidth:n}){return o.createElement("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function c({color:e,radius:t}){return o.createElement("circle",{cx:t,cy:t,r:t,fill:e})}(r=i||(i={})).Lines="lines",r.Dots="dots",r.Cross="cross";let d={[i.Dots]:"#91919a",[i.Lines]:"#eee",[i.Cross]:"#e2e2e2"},f={[i.Dots]:1,[i.Lines]:1,[i.Cross]:6},h=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function p({id:e,variant:t=i.Dots,gap:n=20,size:r,lineWidth:p=1,offset:m=2,color:g,style:v,className:y}){let b=(0,o.useRef)(null),{transform:x,patternId:w}=(0,s.oR)(h,l.X),k=g||d[t],S=r||f[t],E=t===i.Dots,_=t===i.Cross,C=Array.isArray(n)?n:[n,n],O=[C[0]*x[2]||1,C[1]*x[2]||1],T=S*x[2],A=_?[T,T]:O,P=E?[T/m,T/m]:[A[0]/m,A[1]/m];return o.createElement("svg",{className:(0,a.Z)(["react-flow__background",y]),style:{...v,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:b,"data-testid":"rf__background"},o.createElement("pattern",{id:w+e,x:x[0]%O[0],y:x[1]%O[1],width:O[0],height:O[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${P[0]},-${P[1]})`},E?o.createElement(c,{color:k,radius:T/m}):o.createElement(u,{dimensions:A,color:k,lineWidth:p})),o.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${w+e})`}))}p.displayName="Background";var m=(0,o.memo)(p)},21897:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return m}});var r=n(8035),i=n(62658),o=n(92988),a=n(11410);function s(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},r.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function l(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},r.createElement("path",{d:"M0 0h32v4.2H0z"}))}function u(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},r.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function c(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function d(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}let f=({children:e,className:t,...n})=>r.createElement("button",{type:"button",className:(0,i.Z)(["react-flow__controls-button",t]),...n},e);f.displayName="ControlButton";let h=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),p=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:p=!0,fitViewOptions:m,onZoomIn:g,onZoomOut:v,onFitView:y,onInteractiveChange:b,className:x,children:w,position:k="bottom-left"})=>{let S=(0,a.AC)(),[E,_]=(0,r.useState)(!1),{isInteractive:C,minZoomReached:O,maxZoomReached:T}=(0,a.oR)(h,o.X),{zoomIn:A,zoomOut:P,fitView:I}=(0,a._K)();return((0,r.useEffect)(()=>{_(!0)},[]),E)?r.createElement(a.s_,{className:(0,i.Z)(["react-flow__controls",x]),position:k,style:e,"data-testid":"rf__controls"},t&&r.createElement(r.Fragment,null,r.createElement(f,{onClick:()=>{A(),g?.()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:T},r.createElement(s,null)),r.createElement(f,{onClick:()=>{P(),v?.()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:O},r.createElement(l,null))),n&&r.createElement(f,{className:"react-flow__controls-fitview",onClick:()=>{I(m),y?.()},title:"fit view","aria-label":"fit view"},r.createElement(u,null)),p&&r.createElement(f,{className:"react-flow__controls-interactive",onClick:()=>{S.setState({nodesDraggable:!C,nodesConnectable:!C,elementsSelectable:!C}),b?.(!C)},title:"toggle interactivity","aria-label":"toggle interactivity"},C?r.createElement(d,null):r.createElement(c,null)),w):null};p.displayName="Controls";var m=(0,r.memo)(p)},15254:function(e,t,n){"use strict";n.d(t,{a:function(){return y}});var r=n(8035),i=n(62658),o=n(92988),a=n(18409),s=n(68381),l=n(60826),u=n(11410);let c=({id:e,x:t,y:n,width:o,height:a,style:s,color:l,strokeColor:u,strokeWidth:c,className:d,borderRadius:f,shapeRendering:h,onClick:p,selected:m})=>{let{background:g,backgroundColor:v}=s||{};return r.createElement("rect",{className:(0,i.Z)(["react-flow__minimap-node",{selected:m},d]),x:t,y:n,rx:f,ry:f,width:o,height:a,fill:l||g||v,stroke:u,strokeWidth:c,shapeRendering:h,onClick:p?t=>p(t,e):void 0})};c.displayName="MiniMapNode";var d=(0,r.memo)(c);let f=e=>e.nodeOrigin,h=e=>e.getNodes().filter(e=>!e.hidden&&e.width&&e.height),p=e=>e instanceof Function?e:()=>e;var m=(0,r.memo)(function({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:a=2,nodeComponent:s=d,onClick:l}){let c=(0,u.oR)(h,o.X),m=(0,u.oR)(f),g=p(t),v=p(e),y=p(n),b="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return r.createElement(r.Fragment,null,c.map(e=>{let{x:t,y:n}=(0,u.VP)(e,m).positionAbsolute;return r.createElement(s,{key:e.id,x:t,y:n,width:e.width,height:e.height,style:e.style,selected:e.selected,className:y(e),color:g(e),borderRadius:i,strokeColor:v(e),strokeWidth:a,shapeRendering:b,onClick:l,id:e.id})}))});let g=e=>{let t=e.getNodes(),n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:t.length>0?(0,u.oI)((0,u.RX)(t,e.nodeOrigin),n):n,rfId:e.rfId}};function v({style:e,className:t,nodeStrokeColor:n="transparent",nodeColor:c="#e2e2e2",nodeClassName:d="",nodeBorderRadius:f=5,nodeStrokeWidth:h=2,nodeComponent:p,maskColor:v="rgb(240, 240, 240, 0.6)",maskStrokeColor:y="none",maskStrokeWidth:b=1,position:x="bottom-right",onClick:w,onNodeClick:k,pannable:S=!1,zoomable:E=!1,ariaLabel:_="React Flow mini map",inversePan:C=!1,zoomStep:O=10,offsetScale:T=5}){let A=(0,u.AC)(),P=(0,r.useRef)(null),{boundingRect:I,viewBB:R,rfId:j}=(0,u.oR)(g,o.X),M=e?.width??200,N=e?.height??150,D=Math.max(I.width/M,I.height/N),L=D*M,z=D*N,F=T*D,B=I.x-(L-I.width)/2-F,$=I.y-(z-I.height)/2-F,V=L+2*F,U=z+2*F,W=`react-flow__minimap-desc-${j}`,q=(0,r.useRef)(0);q.current=D,(0,r.useEffect)(()=>{if(P.current){let e=(0,s.Z)(P.current),t=(0,a.sP)().on("zoom",S?e=>{let{transform:t,d3Selection:n,d3Zoom:r,translateExtent:i,width:o,height:s}=A.getState();if("mousemove"!==e.sourceEvent.type||!n||!r)return;let l=q.current*Math.max(1,t[2])*(C?-1:1),u={x:t[0]-e.sourceEvent.movementX*l,y:t[1]-e.sourceEvent.movementY*l},c=a.CR.translate(u.x,u.y).scale(t[2]),d=r.constrain()(c,[[0,0],[o,s]],i);r.transform(n,d)}:null).on("zoom.wheel",E?e=>{let{transform:t,d3Selection:n,d3Zoom:r}=A.getState();if("wheel"!==e.sourceEvent.type||!n||!r)return;let i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*O,o=t[2]*Math.pow(2,i);r.scaleTo(n,o)}:null);return e.call(t),()=>{e.on("zoom",null)}}},[S,E,C,O]);let H=w?e=>{let t=(0,l.Z)(e);w(e,{x:t[0],y:t[1]})}:void 0;return r.createElement(u.s_,{position:x,style:e,className:(0,i.Z)(["react-flow__minimap",t]),"data-testid":"rf__minimap"},r.createElement("svg",{width:M,height:N,viewBox:`${B} ${$} ${V} ${U}`,role:"img","aria-labelledby":W,ref:P,onClick:H},_&&r.createElement("title",{id:W},_),r.createElement(m,{onClick:k?(e,t)=>{k(e,A.getState().nodeInternals.get(t))}:void 0,nodeColor:c,nodeStrokeColor:n,nodeBorderRadius:f,nodeClassName:d,nodeStrokeWidth:h,nodeComponent:p}),r.createElement("path",{className:"react-flow__minimap-mask",d:`M${B-F},${$-F}h${V+2*F}v${U+2*F}h${-V-2*F}z
|
|
33
|
-
M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fill:v,fillRule:"evenodd",stroke:y,strokeWidth:b,pointerEvents:"none"})))}v.displayName="MiniMap";var y=(0,r.memo)(v)},26117:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},47090:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(50528),i=n(2453),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},63612:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(96753),i=n(86492),o=n(44788),a=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,n=!this.#o.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:n}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#o.start();return await this.#i.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#a({type:"success",data:r}),r}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},96753:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),o=r=>{t?e.push(r):i(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},23277:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(50528),i=n(2453),o=new class extends r.l{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},3835:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var r=n(2453),i=n(96753),o=n(44788),a=n(86492),s=class extends a.F{#l;#u;#c;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#l)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={client:this.#d,queryKey:this.queryKey,meta:this.meta};return(i(n),this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(a),this.options.behavior?.onFetch(a,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,o.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},42974:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var r=n(2453),i=n(3835),o=n(96753),a=n(50528),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.Rm)(o,t),s=this.get(a);return s||(s=new i.A({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(63612),u=class extends a.l{constructor(e={}){super(),this.config=e,this.#m=new Set,this.#g=new Map,this.#v=0}#m;#g;#v;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#m.add(e);let t=c(e);if("string"==typeof t){let n=this.#g.get(t);n?n.push(e):this.#g.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#m.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#g.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#g.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#g.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#g.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.V.batch(()=>{this.#m.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#m.clear(),this.#g.clear()})}getAll(){return Array.from(this.#m)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(47090),f=n(23277);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};c(a);let s=await d(a),{maxPages:l}=t.options,u=o?r.Ht:r.VX;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);l=await f(t,n,e)}else{let t=e??a.length;do{let e=0===u?s[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await f(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var m=class{#y;#i;#f;#b;#x;#w;#k;#S;constructor(e={}){this.#y=e.queryCache||new s,this.#i=e.mutationCache||new u,this.#f=e.defaultOptions||{},this.#b=new Map,this.#x=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#k=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#S=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#k?.(),this.#k=void 0,this.#S?.(),this.#S=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(i.queryHash),a=o?.state.data,s=(0,r.SE)(t,a);if(void 0!==s)return this.#y.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y,r={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.V.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let n={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#b.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#b.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#x.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#i.clear()}}},86492:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(2453),i=class{#E;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#E=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#E&&(clearTimeout(this.#E),this.#E=void 0)}}},44788:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var r=n(47090),i=n(23277),o=n(42629),a=n(2453);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),m=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},g=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},v=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),y=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let r=e.retry??(a.sk?0:3),i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l){g(t);return}c++,e.onFail?.(c,t),(0,a._v)(o).then(()=>h()?void 0:v()).then(()=>{n?g(t):y()})})};return{promise:f,cancel:t=>{d||(g(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?y():v().then(y),f)}}},50528:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},42629:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},2453:function(e,t,n){"use strict";n.d(t,{CN:function(){return S},Ht:function(){return k},KC:function(){return l},Kp:function(){return s},Nc:function(){return u},PN:function(){return a},Rm:function(){return f},SE:function(){return o},VS:function(){return m},VX:function(){return w},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return b},_x:function(){return c},cG:function(){return E},oE:function(){return x},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=g(t)&&g(n);if(r||v(t)&&v(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{},u=0;for(let o=0;o<s;o++){let s=r?o:a[o];(!r&&i.includes(s)||r)&&void 0===t[s]&&void 0===n[s]?(l[s]=void 0,u++):(l[s]=e(t[s],n[s]),l[s]===t[s]&&void 0!==t[s]&&u++)}return o===s&&u===o?t:l}return n}(e,t):t}function w(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function k(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var S=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},42693:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return s}});var r=n(8035),i=n(35775),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},41337:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(8035),i=n(63612),o=n(96753),a=n(50528),s=n(2453),l=class extends a.l{#d;#_=void 0;#C;#O;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#T()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#d.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#C,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#C?.state.status==="pending"&&this.#C.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#C?.removeObserver(this)}onMutationUpdate(e){this.#T(),this.#A(e)}getCurrentResult(){return this.#_}reset(){this.#C?.removeObserver(this),this.#C=void 0,this.#T(),this.#A()}mutate(e,t){return this.#O=t,this.#C?.removeObserver(this),this.#C=this.#d.getMutationCache().build(this.#d,this.options),this.#C.addObserver(this),this.#C.execute(e)}#T(){let e=this.#C?.state??(0,i.R)();this.#_={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#A(e){o.V.batch(()=>{if(this.#O&&this.hasListeners()){let t=this.#_.variables,n=this.#_.context;e?.type==="success"?(this.#O.onSuccess?.(e.data,t,n),this.#O.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#O.onError?.(e.error,t,n),this.#O.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#_)})})}},u=n(42693),c=n(36567);function d(e,t){let n=(0,u.NL)(t),[i]=r.useState(()=>new l(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let a=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=r.useCallback((e,t)=>{i.mutate(e,t).catch(c.Z)},[i]);if(a.error&&(0,c.L)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},46612:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return A}});var i=n(47090),o=n(96753),a=n(3835),s=n(50528),l=n(42629),u=n(2453),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#P=null,this.#I=(0,l.O)(),this.options.experimental_prefetchInRender||this.#I.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#R=void 0;#j=void 0;#_=void 0;#M;#N;#I;#P;#D;#L;#z;#F;#B;#$;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),d(this.#R,this.options)?this.#U():this.updateResult(),this.#W())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#q(),this.#H(),this.#R.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#R;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Z(),this.#R.setOptions(this.options),n._defaulted&&!(0,u.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let i=this.hasListeners();i&&h(this.#R,r,this.options,n)&&this.#U(),this.updateResult(t),i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||(0,u.KC)(this.options.staleTime,this.#R)!==(0,u.KC)(n.staleTime,this.#R))&&this.#G();let o=this.#K();i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||o!==this.#$)&&this.#Y(o)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),n)||(this.#_=n,this.#N=this.options,this.#M=this.#R.state),n}getCurrentResult(){return this.#_}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#U({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#_))}#U(e){this.#Z();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#G(){this.#q();let e=(0,u.KC)(this.options.staleTime,this.#R);if(u.sk||this.#_.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#_.dataUpdatedAt,e);this.#F=setTimeout(()=>{this.#_.isStale||this.updateResult()},t+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#Y(e){this.#H(),this.#$=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#R)&&(0,u.PN)(this.#$)&&0!==this.#$&&(this.#B=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#U()},this.#$))}#W(){this.#G(),this.#Y(this.#K())}#q(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#H(){this.#B&&(clearInterval(this.#B),this.#B=void 0)}createResult(e,t){let n;let r=this.#R,i=this.options,o=this.#_,s=this.#M,c=this.#N,f=e!==r?e.state:this.#j,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&h(e,r,t,i);(o||s)&&(g={...g,...(0,a.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:x}=g;if(t.select&&void 0!==g.data){if(o&&g.data===s?.data&&t.select===this.#D)n=this.#L;else try{this.#D=t.select,n=t.select(g.data),n=(0,u.oE)(o?.data,n,t),this.#L=n,this.#P=null}catch(e){this.#P=e}}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#z?.state.data,this.#z):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#P=null}catch(e){this.#P=e}void 0!==e&&(x="success",n=(0,u.oE)(o?.data,e,t),v=!0)}this.#P&&(y=this.#P,n=this.#L,b=Date.now(),x="error");let w="fetching"===g.fetchStatus,k="pending"===x,S="error"===x,E=k&&w,_=void 0!==n,C={status:x,fetchStatus:g.fetchStatus,isPending:k,isSuccess:"success"===x,isError:S,isInitialLoading:E,isLoading:E,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:w,isRefetching:w&&!k,isLoadingError:S&&!_,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:S&&_,isStale:p(e,t),refetch:this.refetch,promise:this.#I};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===C.status?e.reject(C.error):void 0!==C.data&&e.resolve(C.data)},n=()=>{t(this.#I=C.promise=(0,l.O)())},i=this.#I;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===C.status||C.data!==i.value)&&n();break;case"rejected":("error"!==C.status||C.error!==i.reason)&&n()}}return C}updateResult(e){let t=this.#_,n=this.createResult(this.#R,this.options);if(this.#M=this.#R.state,this.#N=this.options,void 0!==this.#M.data&&(this.#z=this.#R),(0,u.VS)(n,t))return;this.#_=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#V.size)return!0;let r=new Set(n??this.#V);return this.options.throwOnError&&r.add("error"),Object.keys(this.#_).some(e=>this.#_[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#A({...r,...e})}#Z(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#j=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#W()}#A(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#_)}),this.#d.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,u.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,u.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var m=n(8035),g=n(42693);n(35775);var v=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),y=()=>m.useContext(v),b=n(36567),x=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},w=e=>{m.useEffect(()=>{e.clearReset()},[e])},k=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,b.L)(r,[t.error,i]))},S=m.createContext(!1),E=()=>m.useContext(S);S.Provider;var _=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},C=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t)=>e?.suspense&&t.isPending,T=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A(e,t){return function(e,t,n){var r,i,a,s,l;let c=(0,g.NL)(n),d=E(),f=y(),h=c.defaultQueryOptions(e);null===(i=c.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=d?"isRestoring":"optimistic",_(h),x(h,f),w(f);let p=!c.getQueryCache().get(h.queryHash),[v]=m.useState(()=>new t(c,h)),S=v.getOptimisticResult(h),A=!d&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=A?v.subscribe(o.V.batchCalls(e)):b.Z;return v.updateResult(),t},[v,A]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),m.useEffect(()=>{v.setOptions(h,{listeners:!1})},[h,v]),O(h,S))throw T(h,v,f);if(k({result:S,errorResetBoundary:f,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw S.error;if(null===(s=c.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,h,S),h.experimental_prefetchInRender&&!u.sk&&C(S,d)){let e=p?T(h,v,f):null===(l=c.getQueryCache().get(h.queryHash))||void 0===l?void 0:l.promise;null==e||e.catch(b.Z).finally(()=>{v.updateResult()})}return h.notifyOnChangeProps?S:v.trackResult(S)}(e,c,t)}},36567:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},17497:function(e,t,n){"use strict";n.d(t,{BT:function(){return v}});var r=()=>"undefined"!=typeof document,i=!1,o=null,a=!1,s=!1,l=new Set;function u(e,t){l.forEach(n=>n(e,t))}var c="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function d(e){a=!0,e.metaKey||!c&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",u("keyboard",e))}function f(e){if(o="pointer","mousedown"===e.type||"pointerdown"===e.type){a=!0;let t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch{}n||u("pointer",e)}}function h(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(a=!0,o="virtual")}function p(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(a||s||(o="virtual",u("virtual",e)),a=!1,s=!1)}function m(){a=!1,s=!0}function g(){return"pointer"!==o}function v(e){!function(){if(!r()||i)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){a=!0,e.apply(this,t)},document.addEventListener("keydown",d,!0),document.addEventListener("keyup",d,!0),document.addEventListener("click",h,!0),window.addEventListener("focus",p,!0),window.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",f,!0),document.addEventListener("pointermove",f,!0),document.addEventListener("pointerup",f,!0)):(document.addEventListener("mousedown",f,!0),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",f,!0)),i=!0}(),e(g());let t=()=>e(g());return l.add(t),()=>{l.delete(t)}}},34379:function(e,t,n){"use strict";n.d(t,{IZ:function(){return d},d7:function(){return i}});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:m,formToJSON:g,getAdapter:v,mergeConfig:y}=n(90663).default},90663:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{default:function(){return th}});var l,u,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return eg},hasStandardBrowserEnv:function(){return ey},hasStandardBrowserWebWorkerEnv:function(){return eb},navigator:function(){return ev},origin:function(){return ex}});var m=n(53624);let{toString:g}=Object.prototype,{getPrototypeOf:v}=Object,y=(r=Object.create(null),e=>{let t=g.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),b=e=>(e=e.toLowerCase(),t=>y(t)===e),x=e=>t=>typeof t===e,{isArray:w}=Array,k=x("undefined"),S=b("ArrayBuffer"),E=x("string"),_=x("function"),C=x("number"),O=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==y(e))return!1;let t=v(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A=b("Date"),P=b("File"),I=b("Blob"),R=b("FileList"),j=b("URLSearchParams"),[M,N,D,L]=["ReadableStream","Request","Response","Headers"].map(b);function z(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),w(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function F(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!k(e)&&e!==B,V=(i="undefined"!=typeof Uint8Array&&v(Uint8Array),e=>i&&e instanceof i),U=b("HTMLFormElement"),W=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q=b("RegExp"),H=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},Z=b("AsyncFunction"),G=(l="function"==typeof setImmediate,u=_(B.postMessage),l?setImmediate:u?(c=`axios@${Math.random()}`,d=[],B.addEventListener("message",({source:e,data:t})=>{e===B&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),B.postMessage(c,"*")}):e=>setTimeout(e)),K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):void 0!==m&&m.nextTick||G;var Y={isArray:w,isArrayBuffer:S,isBuffer:function(e){return null!==e&&!k(e)&&null!==e.constructor&&!k(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=y(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:E,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:T,isReadableStream:M,isRequest:N,isResponse:D,isHeaders:L,isUndefined:k,isDate:A,isFile:P,isBlob:I,isRegExp:q,isFunction:_,isStream:e=>O(e)&&_(e.pipe),isURLSearchParams:j,isTypedArray:V,isFileList:R,forEach:z,merge:function e(){let{caseless:t}=$(this)&&this||{},n={},r=(r,i)=>{let o=t&&F(n,i)||i;T(n[o])&&T(r)?n[o]=e(n[o],r):T(r)?n[o]=e({},r):w(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&_(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:y,kindOfTest:b,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!C(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(_(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(w(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:B,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=w(e)?[]:{};return z(e,(e,t)=>{let o=n(e,r+1);k(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(O(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:G,asap:K};function X(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let J=X.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(X,Q),Object.defineProperty(J,"isAxiosError",{value:!0}),X.from=(e,t,n,r,i,o)=>{let a=Object.create(J);return Y.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),X.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var ee=n(85599).Buffer;function et(e){return Y.isPlainObject(e)||Y.isArray(e)}function en(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(e,t){return e=en(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ei=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});var eo=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!s&&Y.isBlob(e))throw new X("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):ee.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(Y.isArray(e)&&(u=e,Y.isArray(u)&&!u.some(et))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=en(n),s.forEach(function(e,r){Y.isUndefined(e)||null===e||t.append(!0===a?er([n],r,o):null===a?n:n+"[]",l(e))}),!1}}return!!et(e)||(t.append(er(i,n,o),l(e)),!1)}let c=[],d=Object.assign(ei,{defaultVisitor:u,convertValue:l,isVisitable:et});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Y.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Y.forEach(n,function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&i.call(t,n,Y.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function ea(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&eo(e,this,t)}let el=es.prototype;function eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,n){let r;if(!t)return e;let i=n&&n.encode||eu;Y.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):Y.isURLSearchParams(t)?t.toString():new es(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}el.append=function(e,t){this._pairs.push([e,t])},el.toString=function(e){let t=e?function(t){return e.call(this,t,ea)}:ea;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ed{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh="undefined"!=typeof URLSearchParams?URLSearchParams:es,ep="undefined"!=typeof FormData?FormData:null,em="undefined"!=typeof Blob?Blob:null;let eg="undefined"!=typeof window&&"undefined"!=typeof document,ev="object"==typeof navigator&&navigator||void 0,ey=eg&&(!ev||0>["ReactNative","NativeScript","NS"].indexOf(ev.product)),eb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=eg&&window.location.href||"http://localhost";var ew={...h,isBrowser:!0,classes:{URLSearchParams:eh,FormData:ep,Blob:em},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&Y.isArray(r)?r.length:o,s)?Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&Y.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Y.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let eS={transitional:ef,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=Y.isObject(e);if(o&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return i?JSON.stringify(ek(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,eo(a,new ew.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ew.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eo(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eS.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw X.from(e,X.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ew.classes.FormData,Blob:ew.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{eS.headers[e]={}});let eE=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var e_=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eE[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let eC=Symbol("internals");function eO(e){return e&&String(e).trim().toLowerCase()}function eT(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eT):String(e)}let eA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eP(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return -1!==t.indexOf(r);if(Y.isRegExp(r))return r.test(t)}}class eI{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eO(t);if(!i)throw Error("header name must be a non-empty string");let o=Y.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eT(e))}let o=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Y.isString(e)&&(e=e.trim())&&!eA(e))o(e_(e),t);else if(Y.isHeaders(e))for(let[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=eO(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eO(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eP(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eO(e)){let i=Y.findKey(n,e);i&&(!t||eP(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eP(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let o=Y.findKey(n,i);if(o){t[o]=eT(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=eT(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eC]=this[eC]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eO(e);t[r]||(!function(e,t){let n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}function eR(e,t){let n=this||eS,r=t||n,i=eI.from(r.headers),o=r.data;return Y.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ej(e){return!!(e&&e.__CANCEL__)}function eM(e,t,n){X.call(this,null==e?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}function eN(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eI.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eI.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eI),Y.inherits(eM,X,{__CANCEL__:!0});var eD=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eL=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};let ez=(e,t,n=3)=>{let r=0,i=eD(50,250);return eL(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eF=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eB=e=>(...t)=>Y.asap(()=>e(...t));var e$=ew.hasStandardBrowserEnv?(o=new URL(ew.origin),a=ew.navigator&&/(msie|trident)/i.test(ew.navigator.userAgent),e=>(e=new URL(e,ew.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eV=ew.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eU(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||!1==n?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eW=e=>e instanceof eI?{...e}:e;function eq(e,t){t=t||{};let n={};function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eW(e),eW(t),n,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,a=o(e[r],t[r],r);Y.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eH=e=>{let t;let n=eq({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eI.from(s),n.url=ec(eU(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(r)){if(ew.hasStandardBrowserEnv||ew.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(ew.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(n)),i||!1!==i&&e$(n.url))){let e=o&&a&&eV.read(a);e&&s.set(o,e)}return n},eZ="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s;let l=eH(e),u=l.data,c=eI.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eI.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eN(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new X("Request aborted",X.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new X("Network Error",X.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ef;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new X(t,r.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&Y.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),h&&([o,s]=ez(h,!0),m.addEventListener("progress",o)),f&&m.upload&&([i,a]=ez(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{m&&(n(!t||t.type?new eM(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(v&&-1===ew.protocols.indexOf(v)){n(new X("Unsupported protocol "+v+":",X.ERR_BAD_REQUEST,e));return}m.send(u||null)})},eG=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof X?t:new eM(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new X(`timeout ${t} of ms exceeded`,X.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}};let eK=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eY=async function*(e,t){for await(let n of eX(e))yield*eK(n,t)},eX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eJ=(e,t,n,r)=>{let i;let o=eY(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},eQ="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e0=eQ&&"function"==typeof ReadableStream,e1=eQ&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e5=e0&&e2(()=>{let e=!1,t=new Request(ew.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e3=e0&&e2(()=>Y.isReadableStream(new Response("").body)),e4={stream:e3&&(e=>e.body)};eQ&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e4[e]||(e4[e]=Y.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})}));let e6=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(ew.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await e1(e)).byteLength:void 0},e7=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e6(t):n},e8={http:null,xhr:eZ,fetch:eQ&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eH(e);d=d?(d+"").toLowerCase():"text";let m=eG([a,s&&s.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&e5&&"get"!==i&&"head"!==i&&0!==(n=await e7(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(Y.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eF(n,ez(eB(c)));o=eJ(t.body,65536,e,r)}}Y.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:m,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t),l=e3&&("stream"===d||"response"===d);if(e3&&(u||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Y.toFiniteNumber(s.headers.get("content-length")),[n,r]=u&&eF(t,ez(eB(u),!0))||[];s=new Response(eJ(s.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let v=await e4[Y.findKey(e4,d)||"text"](s,e);return!l&&g&&g(),await new Promise((n,r)=>{eN(n,r,{data:v,headers:eI.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new X("Network Error",X.ERR_NETWORK,e,t),{cause:n.cause||n});throw X.from(n,n&&n.code,e,t)}})};Y.forEach(e8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e9=e=>`- ${e}`,te=e=>Y.isFunction(e)||null===e||!1===e;var tt=e=>{let t,n;let{length:r}=e=Y.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!te(t)&&void 0===(n=e8[(r=String(t)).toLowerCase()]))throw new X(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new X("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(e9).join("\n"):" "+e9(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eM(null,e)}function tr(e){return tn(e),e.headers=eI.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||eS.adapter)(e).then(function(t){return tn(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eI.from(t.headers),t},function(t){return!ej(t)&&(tn(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eI.from(t.response.headers))),Promise.reject(t)})}let ti="1.8.1",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ta={};to.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ti+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new X(r(i," has been removed"+(t?" in "+t:"")),X.ERR_DEPRECATED);return t&&!ta[i]&&(ta[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},to.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ts={assertOptions:function(e,t,n){if("object"!=typeof e)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new X("option "+o+" must be "+n,X.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new X("Unknown option "+o,X.ERR_BAD_OPTION)}},validators:to};let tl=ts.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ed,response:new ed}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eq(this.defaults,t);void 0!==i&&ts.assertOptions(i,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),null!=o&&(Y.isFunction(o)?t.paramsSerializer={serialize:o}:ts.assertOptions(o,{encode:tl.function,serialize:tl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ts.assertOptions(t,{baseUrl:tl.spelling("baseURL"),withXsrfToken:tl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Y.merge(a.common,a[t.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eI.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tr.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=tr.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ec(eU((e=eq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(eq(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eq(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});class tc{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eM(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tc(function(t){e=t}),cancel:e}}}let td={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(td).forEach(([e,t])=>{td[t]=e});let tf=function e(t){let n=new tu(t),r=p(tu.prototype.request,n);return Y.extend(r,tu.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eq(t,n))},r}(eS);tf.Axios=tu,tf.CanceledError=eM,tf.CancelToken=tc,tf.isCancel=ej,tf.VERSION=ti,tf.toFormData=eo,tf.AxiosError=X,tf.Cancel=tf.CanceledError,tf.all=function(e){return Promise.all(e)},tf.spread=function(e){return function(t){return e.apply(null,t)}},tf.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},tf.mergeConfig=eq,tf.AxiosHeaders=eI,tf.formToJSON=e=>ek(Y.isHTMLForm(e)?new FormData(e):e),tf.getAdapter=tt,tf.HttpStatusCode=td,tf.default=tf;var th=tf},41866:function(e,t,n){"use strict";n.d(t,{Ph:function(){return t3}});var r,i,o,a=n(8035),s=n(89988);function l(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 u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(87222);function f(e,t){if(null==e)return{};var n,r,i=(0,d.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function p(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,m=e.value,g=f(e,h),v=c((0,a.useState)(void 0!==i?i:void 0===t?"":t),2),y=v[0],b=v[1],x=c((0,a.useState)(void 0!==o?o:void 0!==n&&n),2),w=x[0],k=x[1],S=c((0,a.useState)(void 0!==m?m:void 0===r?null:r),2),E=S[0],_=S[1],C=(0,a.useCallback)(function(e,t){"function"==typeof l&&l(e,t),_(e)},[l]),O=(0,a.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)},[u]),T=(0,a.useCallback)(function(){"function"==typeof p&&p(),k(!0)},[p]),A=(0,a.useCallback)(function(){"function"==typeof d&&d(),k(!1)},[d]),P=void 0!==i?i:y,I=void 0!==o?o:w,R=void 0!==m?m:E;return(0,s.Z)((0,s.Z)({},g),{},{inputValue:P,menuIsOpen:I,onChange:C,onInputChange:O,onMenuClose:A,onMenuOpen:T,value:R})}var m=n(33067),g=n(65249);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,g.Z)(r.key),r)}}var y=n(24950);function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}var w=n(29094);function k(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=n(61339),E=n(49470),_=n(12928);let C=Math.min,O=Math.max,T=Math.round,A=Math.floor,P=e=>({x:e,y:e});function I(){return"undefined"!=typeof window}function R(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!I()&&(e instanceof Node||e instanceof j(e).Node)}function D(e){return!!I()&&(e instanceof Element||e instanceof j(e).Element)}function L(e){return!!I()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function z(e){return!!I()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B(e){return j(e).getComputedStyle(e)}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=function(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||M(e);return z(t)?t.host:t}(t);return["html","body","#document"].includes(R(n))?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=j(i);if(o){let e=V(a);return t.concat(a,a.visualViewport||[],F(i)?i:[],e&&n?$(e):[])}return t.concat(i,$(i,[],n))}function V(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){return D(e)?e:e.contextElement}function W(e){let t=U(e);if(!L(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=L(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=T(n)!==o||T(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?T(n.width):n.width)/r,s=(o?T(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let q=P(0);function H(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=U(e),s=P(1);t&&(r?D(r)&&(s=W(r)):s=W(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===j(a))&&i)?function(e){let t=j(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}(a):P(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=j(a),t=r&&D(r)?j(r):r,n=e,i=V(n);for(;i&&r&&t!==n;){let e=W(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=V(n=j(i))}}return function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:d,height:f,x:u,y:c})}function Z(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var G=a.useLayoutEffect,K=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Y=function(){};function X(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var J=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,w.Z)(e)&&null!==e?[e]:[]},Q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=f(e,K);return(0,s.Z)({},t)},ee=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function et(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function en(e){return et(e)?window.pageYOffset:e.scrollTop}function er(e,t){if(et(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Y,i=en(e),o=t-i,a=0;!function t(){var s;a+=10,er(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function eo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?er(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&er(e,Math.max(t.offsetTop-i,0))}function ea(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var es=!1,el="undefined"!=typeof window?window:{};el.addEventListener&&el.removeEventListener&&(el.addEventListener("p",Y,{get passive(){return es=!0}}),el.removeEventListener("p",Y,!1));var eu=es;function ec(e){return null!=e}for(var ed=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=c(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},ef=["children","innerProps"],eh=["children","innerProps"],ep=function(e){return"auto"===e?"bottom":e},em=(0,a.createContext)(null),eg=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,d=((0,a.useContext)(em)||{}).setPortalPlacement,f=(0,a.useRef)(null),h=c((0,a.useState)(r),2),p=h[0],m=h[1],g=c((0,a.useState)(null),2),v=g[0],y=g[1],b=u.spacing.controlHeight;return G(function(){var e=f.current;if(e){var t="fixed"===o,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:et(l)?window.innerHeight:l.clientHeight,v=en(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,w=g-p,k=x+v,S=c-v-p,E=f-g+v+y,_=v+p-b;switch(i){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return o&&ei(l,E,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return o&&ei(l,E,160),{placement:"bottom",maxHeight:a?w-y:S-y};if("auto"===i||a){var C=t,O=a?x:k;return O>=r&&(C=Math.min(O-y-s,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&er(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return o&&ei(l,_,160),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-b:k-b),o&&ei(l,_,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});m(a.maxHeight),y(a.placement),null==d||d(a.placement)}},[r,i,o,l,n,d,b]),t({ref:f,placerProps:(0,s.Z)((0,s.Z)({},e),{},{placement:v||ep(i),maxHeight:p})})},ev=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,s.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ey=["size"],eb=["innerProps","isRtl","size"],ex={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ew=function(e){var t=e.size,n=f(e,ey);return(0,S.tZ)("svg",(0,m.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ex},n))},ek=function(e){return(0,S.tZ)(ew,(0,m.Z)({size:20},e),(0,S.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eS=function(e){return(0,S.tZ)(ew,(0,m.Z)({size:20},e),(0,S.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eE=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},e_=(0,S.F4)(o||(r=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})))),eC=function(e){var t=e.delay,n=e.offset;return(0,S.tZ)("span",{css:(0,S.iv)({animation:"".concat(e_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eO=["data"],eT=["innerRef","isDisabled","isHidden","inputClassName"],eA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,s.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eA)},eI=function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",n,t)},eR={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,S.tZ)(ek,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,S.tZ)("div",(0,m.Z)({ref:i},ee(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,S.tZ)(eS,null))},DownChevron:eS,CrossIcon:ek,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"group",{group:!0}),s),(0,S.tZ)(o,(0,m.Z)({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),(0,S.tZ)("div",null,t))},GroupHeading:function(e){var t=Q(e);t.data;var n=f(t,eO);return(0,S.tZ)("div",(0,m.Z)({},ee(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,S.tZ)("span",(0,m.Z)({},t,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Q(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,u=f(r,eT);return(0,S.tZ)("div",(0,m.Z)({},ee(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,S.tZ)("input",(0,m.Z)({className:t({input:!0},l),ref:i,style:(0,s.Z)({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},eA),disabled:o},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,eb);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,S.tZ)(eC,{delay:0,offset:n}),(0,S.tZ)(eC,{delay:160,offset:!0}),(0,S.tZ)(eC,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,l=e.menuPosition,u=(0,a.useRef)(null),d=(0,a.useRef)(null),f=c((0,a.useState)(ep(o)),2),h=f[0],p=f[1],g=(0,a.useMemo)(function(){return{setPortalPlacement:p}},[]),v=c((0,a.useState)(null),2),y=v[0],b=v[1],x=(0,a.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===l?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&b({offset:i,rect:t})}},[r,l,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);G(function(){x()},[x]);var w=(0,a.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&u.current&&(d.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=U(e),d=o||a?[...c?$(c):[],...$(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=M(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=A(d),m=A(i.clientWidth-(c+f)),g={rootMargin:-p+"px "+-m+"px "+-A(i.clientHeight-(d+h))+"px "+-A(c)+"px",threshold:O(0,C(1,l))||1},v=!0;function y(t){let r=t[0].intersectionRatio;if(r!==l){if(!v)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Z(u,e.getBoundingClientRect())||a(),v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?H(e):null;return u&&function t(){let r=H(e);m&&!Z(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(r,u.current,x,{elementResize:("ResizeObserver"in window)}))},[r,x]);G(function(){w()},[w]);var k=(0,a.useCallback)(function(e){u.current=e,w()},[w]);if(!t&&"fixed"!==l||!y)return null;var E=(0,S.tZ)("div",(0,m.Z)({ref:k},ee((0,s.Z)((0,s.Z)({},e),{},{offset:y.offset,position:l,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,S.tZ)(em.Provider,{value:g},t?(0,_.createPortal)(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,eh);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=f(e,ef);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,l=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return(0,S.tZ)(u,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},(0,S.tZ)(c,{data:r,innerProps:(0,s.Z)({},ee(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,S.tZ)(d,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:eI,MultiValueLabel:eI,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({role:"button"},n),t||(0,S.tZ)(ek,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ej=n(11434),eM={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eN=function(e){return(0,S.tZ)("span",(0,m.Z)({css:eM},e))},eD={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eL=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,l=e.selectValue,u=e.selectProps,c=e.id,d=e.isAppleDevice,f=u.ariaLiveMessages,h=u.getOptionLabel,p=u.inputValue,m=u.isMulti,g=u.isOptionDisabled,v=u.isSearchable,y=u.menuIsOpen,b=u.options,x=u.screenReaderStatus,w=u.tabSelectsValue,k=u.isLoading,E=u["aria-label"],_=u["aria-live"],C=(0,a.useMemo)(function(){return(0,s.Z)((0,s.Z)({},eD),f||{})},[f]),O=(0,a.useMemo)(function(){var e="";if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,u=i||n||(Array.isArray(a)?null:a),c=u?h(u):"",d=r||o||void 0,f=d?d.map(h):[],p=(0,s.Z)({isDisabled:u&&g(u,l),label:c,labels:f},t);e=C.onChange(p)}return e},[t,C,g,l,h]),T=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&l&&l.includes(n));if(t&&C.onFocus){var a={focused:t,label:h(t),isDisabled:g(t,l),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:l,isAppleDevice:d};e=C.onFocus(a)}return e},[n,r,h,g,C,i,l,d]),A=(0,a.useMemo)(function(){var e="";if(y&&b.length&&!k&&C.onFilter){var t=x({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,y,C,b,x,k]),P=(null==t?void 0:t.action)==="initial-input-focus",I=(0,a.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":y?"menu":"input";e=C.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,l),isMulti:m,isSearchable:v,tabSelectsValue:w,isInitialFocus:P})}return e},[E,n,r,m,g,v,y,C,l,w,P]),R=(0,S.tZ)(a.Fragment,null,(0,S.tZ)("span",{id:"aria-selection"},O),(0,S.tZ)("span",{id:"aria-focused"},T),(0,S.tZ)("span",{id:"aria-results"},A),(0,S.tZ)("span",{id:"aria-guidance"},I));return(0,S.tZ)(a.Fragment,null,(0,S.tZ)(eN,{id:c},P&&R),(0,S.tZ)(eN,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&R))},ez=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eF=RegExp("["+ez.map(function(e){return e.letters}).join("")+"]","g"),eB={},e$=0;e$<ez.length;e$++)for(var eV=ez[e$],eU=0;eU<eV.letters.length;eU++)eB[eV.letters[eU]]=eV.base;var eW=function(e){return e.replace(eF,function(e){return eB[e]})},eq=(0,ej.Z)(eW),eH=function(e){return e.replace(/^\s+|\s+$/g,"")},eZ=function(e){return"".concat(e.label," ").concat(e.value)},eG=["innerRef"];function eK(e){var t=e.innerRef,n=ed(f(e,eG),"onExited","in","enter","exit","appear");return(0,S.tZ)("input",(0,m.Z)({ref:t},n,{css:(0,S.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eY=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},eX=["boxSizing","height","overflow","paddingRight","position"],eJ={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function eQ(e){e.cancelable&&e.preventDefault()}function e0(e){e.stopPropagation()}function e1(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function e2(){return"ontouchstart"in window||navigator.maxTouchPoints}var e5=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e3=0,e4={capture:!1,passive:!1},e6=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},e7={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e8(e){var t,n,r,i,o,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,k,E,_,C,O=e.children,T=e.lockEnabled,A=e.captureEnabled,P=(n=(t={isEnabled:void 0===A||A,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,s=t.onTopLeave,l=(0,a.useRef)(!1),u=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),f=(0,a.useCallback)(function(e,t){if(null!==d.current){var n=d.current,a=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,m=c-f-a,g=!1;m>t&&l.current&&(i&&i(e),l.current=!1),p&&u.current&&(s&&s(e),u.current=!1),p&&t>m?(r&&!l.current&&r(e),h.scrollTop=c,g=!0,l.current=!0):!p&&-t>a&&(o&&!u.current&&o(e),h.scrollTop=0,g=!0,u.current=!0),g&&eY(e)}},[r,i,o,s]),h=(0,a.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),g=(0,a.useCallback)(function(e){if(e){var t=!!eu&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}},[m,p,h]),v=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))},[m,p,h]),(0,a.useEffect)(function(){if(n){var e=d.current;return g(e),function(){v(e)}}},[n,g,v]),function(e){d.current=e}),I=(b=(y={isEnabled:T}).isEnabled,w=void 0===(x=y.accountForScrollbars)||x,k=(0,a.useRef)({}),E=(0,a.useRef)(null),_=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;if(w&&eX.forEach(function(e){var t=n&&n[e];k.current[e]=t}),w&&e3<1){var r=parseInt(k.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(eJ).forEach(function(e){var t=eJ[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&e2()&&(t.addEventListener("touchmove",eQ,e4),e&&(e.addEventListener("touchstart",e1,e4),e.addEventListener("touchmove",e0,e4))),e3+=1}},[w]),C=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;e3=Math.max(e3-1,0),w&&e3<1&&eX.forEach(function(e){var t=k.current[e];n&&(n[e]=t)}),t&&e2()&&(t.removeEventListener("touchmove",eQ,e4),e&&(e.removeEventListener("touchstart",e1,e4),e.removeEventListener("touchmove",e0,e4)))}},[w]),(0,a.useEffect)(function(){if(b){var e=E.current;return _(e),function(){C(e)}}},[b,_,C]),function(e){E.current=e});return(0,S.tZ)(a.Fragment,null,T&&(0,S.tZ)("div",{onClick:e6,css:e7}),O(function(e){P(e),I(e)}))}var e9={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},te=function(e){var t=e.name,n=e.onFocus;return(0,S.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:e9,value:"",onChange:function(){}})};function tt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var tn=function(e){return e.label},tr=function(e){return e.value},ti={clearIndicator:eE,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius,l=i.spacing;return(0,s.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:eE,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,s.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return(0,s.Z)((0,s.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eP),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,s.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:ev,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return(0,s.Z)((n={label:"menu"},(0,E.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,E.Z)(n,"position","absolute"),(0,E.Z)(n,"width","100%"),(0,E.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,s.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,s.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,s.Z)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return(0,s.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ev,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return(0,s.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,s.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,s.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,s.Z)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},to={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ta={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ea(),captureMenuScroll:!ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,s.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eZ,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,l=n.matchFrom,u=a?eH(t):t,c=a?eH(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=eq(u),c=eW(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:tn,getOptionValue:tr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ts(e,t,n,r){var i=tm(e,t,n),o=tg(e,t,n),a=th(e,t),s=tp(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function tl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ts(e,n,t,r)}).filter(function(t){return td(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ts(e,n,t,r);return td(e,o)?o:void 0}).filter(ec)}function tu(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,k(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,k(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function td(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!ty(e)||!i)&&tv(e,{label:o,value:a,data:r},void 0===n?"":n)}var tf=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},th=function(e,t){return e.getOptionLabel(t)},tp=function(e,t){return e.getOptionValue(t)};function tm(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tp(e,t);return n.some(function(t){return tp(e,t)===r})}function tv(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ty=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tb=1,tx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,y.Z)(e,t)}(o,e);var t,n,r,i=(t=x(),function(){var e,n=b(o);return e=t?Reflect.construct(n,arguments,b(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==(0,w.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=tt(/^Mac/i)||tt(/^iPhone/i)||tt(/^iPad/i)||tt(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else if(l){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(k(a),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tc(tl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return X.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return th(t.props,e)},t.getOptionValue=function(e){return tp(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ti[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,(0,s.Z)((0,s.Z)({},eR),e.components)},t.buildCategorizedOptions=function(){return tl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tu(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,s.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&et(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ty(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,m=h.focusedValue,g=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tb),t.state.selectValue=J(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=tf(n,r[a])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(to):(0,s.Z)((0,s.Z)({},to),this.props.theme):to}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return tm(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tv(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,l=e.form,u=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,v=r||this.getElementId("input"),y=(0,s.Z)((0,s.Z)((0,s.Z)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(d,(0,m.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:l,type:"text",value:i},y)):a.createElement(eK,(0,m.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!d)return p?null:a.createElement(l,(0,m.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map(function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,m.Z)({},u,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var w=y[0];return a.createElement(s,(0,m.Z)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,m.Z)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?a.createElement(e,(0,m.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return a.createElement(n,(0,m.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,m.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,b=p.loadingMessage,x=p.minMenuHeight,w=p.maxMenuHeight,k=p.menuIsOpen,S=p.menuPlacement,E=p.menuPosition,_=p.menuPortalTarget,C=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,T=p.noOptionsMessage,A=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!k)return null;var I=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,s=e.isSelected,l=e.label,u=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return a.createElement(d,(0,m.Z)({},f,{innerProps:y,data:i,isDisabled:o,isSelected:s,key:v,label:l,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,s=e.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return a.createElement(r,(0,m.Z)({},f,{key:l,data:n,options:o,Heading:i,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return I(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return I(e,"".concat(e.index))});else if(y){var R=b({inputValue:v});if(null===R)return null;e=a.createElement(u,f,R)}else{var j=T({inputValue:v});if(null===j)return null;e=a.createElement(c,f,j)}var M={minMenuHeight:x,maxMenuHeight:w,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:O},N=a.createElement(eg,(0,m.Z)({},f,M),function(n){var r=n.ref,i=n.placerProps,l=i.placement,u=i.maxHeight;return a.createElement(o,(0,m.Z)({},f,M,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:l}),a.createElement(e8,{captureEnabled:g,onTopArrive:A,onBottomArrive:P,lockEnabled:C},function(n){return a.createElement(s,(0,m.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:u,focusedOption:h}),e)}))});return _||"fixed"===E?a.createElement(l,(0,m.Z)({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:S,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(te,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:o,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:o,type:"hidden",value:""});return a.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return a.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(eL,(0,m.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,l=o.id,u=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,(0,m.Z)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,m.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),a.createElement(i,(0,m.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,m.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,l=t.isFocused,u=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,m=e.isMulti,g=J(f),v={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?tu(tl(e,g)):[],x=h?tc(tl(e,g),"".concat(c,"-option")):[],w=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,k=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],S=tf(x,k);v={selectValue:g,focusedOption:k,focusedOptionId:S,focusableOptionsWithIds:x,focusedValue:w,clearFocusValueOnUpdate:!1}}var E=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=a,C=l&&u;return l&&!C&&(_={value:(n=g[0]||null,m?g:n),options:g,action:"initial-input-focus"},C=!u),(null==a?void 0:a.action)==="initial-input-focus"&&(_=null),(0,s.Z)((0,s.Z)((0,s.Z)({},v),E),{},{prevProps:e,ariaSelection:_,prevWasFocused:C})}}],n&&v(o.prototype,n),r&&v(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(a.Component);tx.defaultProps=ta,n(25660);var tw=(0,a.forwardRef)(function(e,t){var n=p(e);return a.createElement(tx,(0,m.Z)({ref:t},n))}),tk=n(86994),tS=n(47378),tE=n(91348),t_=n(6272),tC=n(96590),tO=n(89377),tT=n(30282),tA=n(84713),tP=n(41452),tI=n(63589),tR=n(17493),tj=n(55611),tM=n(35775),tN=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tL={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tD(e,t,r)})||n.some(function(t){return tD(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tz(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,l=void 0===o?tL.formatCreateLabel:o,u=e.isValidNewOption,c=void 0===u?tL.isValidNewOption:u,d=e.getNewOptionData,h=void 0===d?tL.getNewOptionData:d,p=e.onCreateOption,m=e.options,g=void 0===m?[]:m,v=e.onChange,y=f(e,tN),b=y.getOptionValue,x=void 0===b?tr:b,w=y.getOptionLabel,S=void 0===w?tn:w,E=y.inputValue,_=y.isLoading,C=y.isMulti,O=y.value,T=y.name,A=(0,a.useMemo)(function(){return c(E,J(O),g,{getOptionValue:x,getOptionLabel:S})?h(E,l(E)):void 0},[l,h,S,x,E,c,g,O]),P=(0,a.useMemo)(function(){return(n||!_)&&A?"first"===i?[A].concat(k(g)):[].concat(k(g),[A]):g},[n,i,_,A,g]),I=(0,a.useCallback)(function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===A){if(p)p(E);else{var r,i=h(E,E);v((r=[].concat(k(J(O)),[i]),C?r:i),{action:"create-option",name:T,option:i})}return}v(e,t)},[h,E,C,T,A,p,v,O]);return(0,s.Z)((0,s.Z)({},y),{},{options:P,onChange:I})}var tF=(0,a.forwardRef)(function(e,t){var n=tz(p(e));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tB=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function t$(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var l=e.isLoading,u=e.onInputChange,d=e.filterOption,h=f(e,tB),p=h.inputValue,m=(0,a.useRef)(void 0),g=(0,a.useRef)(!1),v=c((0,a.useState)(Array.isArray(n)?n:void 0),2),y=v[0],b=v[1],x=c((0,a.useState)(void 0!==p?p:""),2),w=x[0],k=x[1],S=c((0,a.useState)(!0===n),2),_=S[0],C=S[1],O=c((0,a.useState)(void 0),2),T=O[0],A=O[1],P=c((0,a.useState)([]),2),I=P[0],R=P[1],j=c((0,a.useState)(!1),2),M=j[0],N=j[1],D=c((0,a.useState)({}),2),L=D[0],z=D[1],F=c((0,a.useState)(void 0),2),B=F[0],$=F[1],V=c((0,a.useState)(void 0),2),U=V[0],W=V[1];i!==U&&(z({}),W(i)),n!==B&&(b(Array.isArray(n)?n:void 0),$(n)),(0,a.useEffect)(function(){return g.current=!0,function(){g.current=!1}},[]);var q=(0,a.useCallback)(function(e,t){if(!o)return t();var n=o(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[o]);(0,a.useEffect)(function(){!0===n&&q(w,function(e){g.current&&(b(e||[]),C(!!m.current))})},[]);var H=(0,a.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n){m.current=void 0,k(""),A(""),R([]),C(!1),N(!1);return}if(i&&L[n])k(n),A(n),R(L[n]),C(!1),N(!1);else{var r=m.current={};k(n),C(!0),N(!T),q(n,function(e){g&&r===m.current&&(m.current=void 0,C(!1),A(n),R(e||[]),N(!1),z(e?(0,s.Z)((0,s.Z)({},L),{},(0,E.Z)({},n,e)):L))})}},[i,q,T,L,u]),Z=M?[]:w&&T?I:y||[];return(0,s.Z)((0,s.Z)({},h),{},{options:Z,isLoading:_||void 0!==l&&l,onInputChange:H,filterOption:void 0===d?null:d})}var tV=(0,a.forwardRef)(function(e,t){var n=p(t$(e));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tU=(0,a.forwardRef)(function(e,t){var n=tz(p(t$(e)));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tW=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...m}=e;return{...m}},tq=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tH=e=>tq(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tZ=e=>{let t=tH((0,tk.F)().components.Input.defaultProps.size),n=null!=e?e:t;return(0,tS.S)("string"==typeof n?[n]:n,{fallback:"md"})||t},tG=e=>(0,tM.jsx)(tO.J,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),tK=e=>(0,tM.jsx)(tO.J,{focusable:"false","aria-hidden":!0,...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),tY=e=>e?({bottom:"top",top:"bottom"})[e]:"top",tX=e=>(0,tM.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,tM.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),tJ=e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme,tQ=e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant,t0=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,t1=e=>(0,tM.jsx)(tO.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),t2={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={...(0,t_.m)("CloseButton",{size:s}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},u=null!=o&&o.clearIndicator?o.clearIndicator(l,e):l,c={width:"1em",height:"1em"},d=null!=o&&o.crossIcon?o.crossIcon(c,e):c;return(0,tM.jsx)(tE.x,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:u,"aria-label":"Clear selected options",...i,children:t||(0,tM.jsx)(tK,{sx:d})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h,isInvalid:p,isReadOnly:m}}=e,g=tZ(c),{field:{height:v,h:y,...b}}=(0,t_.j)("Input",{size:g,variant:d,focusBorderColor:f,errorBorderColor:h}),x={...b,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:v||y,...a?{pointerEvents:"none"}:{}},w=null!=u&&u.control?u.control(x,e):x;return(0,tM.jsx)(tE.x,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),sx:w,...o,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!p||void 0,"data-disabled":!!a||void 0,"data-readonly":!!m||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,useBasicStyles:a,size:s,focusBorderColor:l,errorBorderColor:u,variant:c}}=e,d=tZ(s),f=(0,t_.j)("Input",{size:d,variant:c,focusBorderColor:l,errorBorderColor:u}),h={sm:"16px",md:"20px",lg:"24px"}[d],p={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:h,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},m=null!=o&&o.dropdownIndicator?o.dropdownIndicator(p,e):p,g={height:"1em",width:"1em"},v=null!=o&&o.downChevron?o.downChevron(g,e):g;return(0,tM.jsx)(tE.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:m,children:t||(0,tM.jsx)(tG,{sx:v})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=u,h={},p=null!=f&&f.group?f.group(h,e):h;return(0,tM.jsxs)(tE.x,{...c,className:r({group:!0},n),sx:p,children:[(0,tM.jsx)(a,{...s,selectProps:u,cx:r,theme:i,getStyles:o,getClassNames:d,children:l}),(0,tM.jsx)(tE.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,hasStickyGroupHeaders:o}}=e,{data:a,...s}=tW(e),l=(0,t_.j)("Menu"),u=tZ(i),c={...l.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[u],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[u],margin:0,borderBottomWidth:o?"1px":0,position:o?"sticky":"static",top:-2,bg:l.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,tM.jsx)(tE.x,{...s,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:i,variant:o}}=e,a={opacity:1,...i||"outline"!==o?{display:"none"}:{}},s=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,tM.jsx)(tC.i,{className:n({"indicator-separator":!0},t),sx:s,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=o&&o.indicatorsContainer?o.indicatorsContainer(a,e):a;return(0,tM.jsx)(tE.x,{...i,className:r({indicators:!0},n),sx:s,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,isReadOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=tW(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=null!=i&&i.inputContainer?i.inputContainer(f,e):f,p={background:0,opacity:l?0:1,width:"100%",...d},m=null!=i&&i.input?i.input(p,e):p;return(0,tM.jsx)(tE.x,{className:n({"input-container":!0},t),"data-value":r||"",sx:h,children:(0,tM.jsx)(tA.m.input,{className:n({input:!0},u),ref:a,sx:m,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i,size:o},color:a,emptyColor:s,speed:l,thickness:u,spinnerSize:c}=e,d=tZ(o),f={marginRight:3},h=null!=i&&i.loadingIndicator?i.loadingIndicator(f,e):f;return(0,tM.jsx)(tT.$,{className:n({indicator:!0,"loading-indicator":!0},t),sx:h,...r,size:c||({sm:"xs",md:"sm",lg:"md"})[d],color:a,emptyColor:s,speed:l,thickness:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=o&&o.loadingMessage?o.loadingMessage(l,e):l;return(0,tM.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:u,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",[tY(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},u=null!=s&&s.menu?s.menu(l,e):l;return(0,tM.jsx)(tP.v,{children:(0,tM.jsx)(tE.x,{...i,ref:o,className:n({menu:!0},t),sx:u,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:i,children:o,maxHeight:a,isMulti:s,innerProps:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h}}=e,p=(0,t_.j)("Menu"),m=tZ(c),g=(0,t_.j)("Input",{size:m,variant:d,focusBorderColor:f,errorBorderColor:h}).field,v={...p.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(t=p.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},y=null!=u&&u.menuList?u.menuList(v,e):v;return(0,tM.jsx)(tE.x,{...l,className:r({"menu-list":!0,"menu-list--is-multi":s},n),sx:y,ref:i,children:o})},MultiValue:e=>{let{children:t,className:n,components:r,cx:i,data:o,innerProps:a,isDisabled:s,isFocused:l,removeProps:u,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:h,Remove:p}=r,{chakraStyles:m,colorScheme:g,tagVariant:v,size:y}=c,b=tZ(y),x="",w="",k=!1;tJ(o)&&(x=o.colorScheme),tQ(o)&&(w=o.variant),t0(o)&&(k=o.isFixed);let S=(0,t_.j)("Tag",{size:b,colorScheme:x||g,variant:w||v||(k?"solid":"subtle")}),E={...S.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},_=null!=m&&m.multiValue?m.multiValue(E,e):E,C={...S.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=m&&m.multiValueLabel?m.multiValueLabel(C,e):C,T={...S.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},A=null!=m&&m.multiValueRemove?m.multiValueRemove(T,e):T;return(0,tM.jsxs)(f,{data:o,innerProps:{className:i({"multi-value":!0,"multi-value--is-disabled":s},n),...a},sx:_,selectProps:c,children:[(0,tM.jsx)(h,{data:o,innerProps:{className:i({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,tM.jsx)(p,{data:o,innerProps:{className:i({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...u},sx:A,selectProps:c,isFocused:l})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tM.jsx)(tA.m.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tM.jsx)(tA.m.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:i,sx:o}=e;return t0(i)&&i.isFixed?null:(0,tM.jsx)(tE.x,{...n,role:"button",sx:o,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,tM.jsx)(t1,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=o&&o.noOptionsMessage?o.noOptionsMessage(l,e):l;return(0,tM.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:u,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:h,selectedOptionColorScheme:p}}=e,m=(0,t_.j)("Menu").item,g=tZ(c),v=(0,tI.ff)(`${p}.500`,`${p}.300`),y=(0,tI.ff)("white","black"),b="color"===h&&l,x={...m,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:g,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[g],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[g],...b?{bg:v,color:y,_active:{bg:v}}:{}},w=null!=u&&u.option?u.option(x,e):x;return(0,tM.jsxs)(tE.x,{...i,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),sx:w,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:["check"===h&&(!d||!1===f)&&(0,tM.jsx)(tR.O,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:l?1:0,children:(0,tM.jsx)(tX,{})}),o]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=o&&o.placeholder?o.placeholder(a,e):a;return(0,tM.jsx)(tE.x,{...i,className:r({placeholder:!0},n),sx:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:l}}=e,u={position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},c=null!=l&&l.container?l.container(u,e):u;return(0,tM.jsx)(tE.x,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=null!=a&&a.singleValue?a.singleValue(s,e):s;return(0,tM.jsx)(tE.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),sx:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,size:l,variant:u,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,h=tZ(l),p={display:i&&o&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,t_.j)("Input",{size:h,variant:u,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},m=null!=s&&s.valueContainer?s.valueContainer(p,e):p;return(0,tM.jsx)(tE.x,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),sx:m,children:t})}},t5=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:i,isInvalid:o,isReadOnly:a,required:s,isRequired:l,inputId:u,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:h,variant:p,focusBorderColor:m,errorBorderColor:g,chakraStyles:v={},onFocus:y,onBlur:b,menuIsOpen:x,...w})=>{var k;let{variant:S}=(0,tk.F)().components.Input.defaultProps,E=(0,tj.Y)({id:u,isDisabled:i,isInvalid:o,isRequired:l,isReadOnly:a,onFocus:y,onBlur:b}),_=null!=x?x:!E.readOnly&&void 0,C=d;["color","check"].includes(d)||(C="color");let O=f||h||"blue";return"string"!=typeof O&&(O="blue"),{components:{...t2,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:C,selectedOptionColorScheme:O,variant:null!=p?p:S,chakraStyles:v,focusBorderColor:m,errorBorderColor:g,onFocus:E.onFocus,onBlur:E.onBlur,isDisabled:E.disabled,isInvalid:!!E["aria-invalid"],inputId:E.id,isReadOnly:E.readOnly,required:null!=s?s:E.required,menuIsOpen:_,...w,"aria-invalid":null!=(k=w["aria-invalid"])?k:E["aria-invalid"]}},t3=(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tw,{ref:t,...n})});(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tF,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tV,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tU,{ref:t,...n})})},39755:function(e,t,n){"use strict";let r,i;function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eN},B:function(){return eM},C:function(){return tc},D:function(){return e_},E:function(){return tS},F:function(){return q},G:function(){return tQ},H:function(){return ed},I:function(){return tq},J:function(){return t2},K:function(){return t1},L:function(){return eV},M:function(){return tW},N:function(){return ey},O:function(){return B},P:function(){return ea},Q:function(){return W},R:function(){return tC},S:function(){return eP},T:function(){return es},U:function(){return eS},V:function(){return ti},W:function(){return eI},X:function(){return ta},Y:function(){return td},Z:function(){return tm},_:function(){return eB},a:function(){return t_},a0:function(){return tE},a1:function(){return eW},a2:function(){return eq},a3:function(){return e8},a4:function(){return Y},a5:function(){return et},a6:function(){return e9},a7:function(){return er},a8:function(){return function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tA(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tR(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,l=i[n];return er(l)&&s.isScriptable(n)&&(l=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),tI(e,l)&&(l=tM(i._scopes,i,e,l)),l}(n,l,t,r)),L(l)&&l.length&&(l=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(z(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tM(i,o,t,u);n.push(e(r,a,s&&s[t],l))}}return n}(n,l,t,s.isIndexable)),tI(n,l)&&(l=e(l,o,a&&a[n],s)),l})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tT},aA:function(){return t7},aB:function(){return eH},aC:function(){return t8},aD:function(){return tu},aE:function(){return eC},aF:function(){return M},aG:function(){return ew},aH:function(){return ev},aI:function(){return ex},aJ:function(){return eg},aK:function(){return eE},aL:function(){return e7},aM:function(){return ep},aN:function(){return to},aO:function(){return eD},aP:function(){return ej},aa:function(){return tA},ab:function(){return X},ac:function(){return N},ad:function(){return eU},ae:function(){return t0},af:function(){return ts},ag:function(){return ei},ah:function(){return H},ai:function(){return eo},aj:function(){return eR},ak:function(){return tx},al:function(){return tU},am:function(){return nr},an:function(){return nn},ao:function(){return t3},ap:function(){return t4},aq:function(){return t5},ar:function(){return th},as:function(){return tp},at:function(){return tl},au:function(){return tg},av:function(){return tw},aw:function(){return tk},ax:function(){return nt},ay:function(){return eT},az:function(){return t6},b:function(){return L},c:function(){return e0},d:function(){return tr},e:function(){return eJ},f:function(){return ee},g:function(){return F},h:function(){return en},i:function(){return z},j:function(){return tO},k:function(){return D},l:function(){return ez},m:function(){return V},n:function(){return U},o:function(){return e4},p:function(){return eA},q:function(){return eZ},r:function(){return e$},s:function(){return em},t:function(){return ek},u:function(){return eF},v:function(){return $},w:function(){return eG},x:function(){return eb},y:function(){return tz},z:function(){return tX}});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return a(o(2.55*e),0,255)}function l(e){return a(o(255*e),0,255)}function u(e){return a(o(e/2.55)/100,0,1)}function c(e){return a(o(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],m=e=>(240&e)>>4==(15&e),g=e=>m(e.r)&&m(e.g)&&m(e.b)&&m(e.a),v=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function w(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function k(e){let t,n,r;let i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=i===s?(o-a)/r+(o<a?6:0):o===s?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function S(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(l)}function E(e){return(e%360+360)%360}let _={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,T=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,A=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function P(e,t,n){if(e){let r=k(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=S(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function I(e,t){return e?Object.assign(t||{},e):e}function R(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=l(e[3]))):(t=I(e,{r:0,g:0,b:0,a:1})).a=l(t.a),t}class j{constructor(e){let t;if(e instanceof j)return e;let n=typeof e;if("object"===n)t=R(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===o?17*d[e[4]]:255}:(7===o||9===o)&&(i={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===o?d[e[7]]<<4|d[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},a=Object.keys(C),s=Object.keys(_);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,_[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=O.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?s(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?s(t):a(t,0,255)),g:n=255&(i[4]?s(n):a(n,0,255)),b:r=255&(i[6]?s(r):a(r,0,255)),a:o}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?s(+n[5]):l(+n[5]));let i=E(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(t="hwb"===n[1]?S(w,i,o,a):"hsv"===n[1]?S(x,i,o,a):S(b,i,o,a))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=I(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=R(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=g(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+v(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=k(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=A(u(e.r)),i=A(u(e.g)),o=A(u(e.b));return{r:l(T(r+n*(A(u(t.r))-r))),g:l(T(i+n*(A(u(t.g))-i))),b:l(T(o+n*(A(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new j(this.rgb)}alpha(e){return this._rgb.a=l(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return P(this._rgb,2,e),this}darken(e){return P(this._rgb,2,-e),this}saturate(e){return P(this._rgb,1,e),this}desaturate(e){return P(this._rgb,1,-e),this}rotate(e){var t,n;return(n=k(t=this._rgb))[0]=E(n[0]+e),n=S(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}function M(){}let N=(i=0,()=>i++);function D(e){return null==e}function L(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function z(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function F(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function B(e,t){return F(e)?e:t}function $(e,t){return void 0===e?t:e}let V=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,U=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function W(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function q(e,t,n,r){let i,o,a;if(L(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(z(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function H(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Z(e){if(L(e))return e.map(Z);if(z(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=Z(e[n[i]]);return t}return e}function G(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function K(e,t,n,r){if(!G(e))return;let i=t[e],o=n[e];z(i)&&z(o)?Y(i,o,r):t[e]=Z(o)}function Y(e,t,n){let r;let i=L(t)?t:[t],o=i.length;if(!z(e))return e;let a=(n=n||{}).merger||K;for(let t=0;t<o;++t){if(!z(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function X(e,t){return Y(e,t,{merger:J})}function J(e,t,n){if(!G(e))return;let r=t[e],i=n[e];z(r)&&z(i)?X(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Z(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){return(Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let ea=Math.PI,es=2*ea,el=es+ea,eu=Number.POSITIVE_INFINITY,ec=ea/180,ed=ea/2,ef=ea/4,eh=2*ea/3,ep=Math.log10,em=Math.sign;function eg(e,t,n){return Math.abs(e-t)<n}function ev(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=eg(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!("symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ew(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ek(e){return ea/180*e}function eS(e){return 180/ea*e}function eE(e){if(!F(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function e_(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*ea&&(o+=es),{angle:o,distance:i}}function eC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eO(e,t){return(e-t+el)%es-ea}function eT(e){return(e%es+es)%es}function eA(e,t,n,r){let i=eT(e),o=eT(t),a=eT(n),s=eT(o-i),l=eT(a-i),u=eT(i-o),c=eT(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function eP(e,t,n){return Math.max(t,Math.min(n,e))}function eI(e){return eP(e,-32768,32767)}function eR(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ej(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eM=(e,t,n,r)=>ej(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eN=(e,t,n)=>ej(e,n,r=>e[r][t]>=n);function eD(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eL=["push","pop","shift","splice","unshift"];function ez(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eL.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eF(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eL.forEach(t=>{delete e[t]}),delete e._chartjs)}function eB(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let e$="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eV(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,e$.call(window,()=>{r=!1,e.apply(t,n)}))}}function eU(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eW=e=>"start"===e?"left":"end"===e?"right":"center",eq=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eH=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eZ(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:a,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(eM(l,c,d).lo,n?r:eM(t,c,a.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!D(e[s.axis]));i-=Math.max(0,e)}i=eP(i,0,r-1)}if(p){let e=Math.max(eM(l,a.axis,f,!0).hi+1,n?0:eM(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!D(e[s.axis]));e+=Math.max(0,t)}o=eP(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eG(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eK=e=>0===e||1===e,eY=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*es/n)),eX=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*es/n)+1,eJ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(ea*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eK(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eK(e)?e:eY(e,.075,.3),easeOutElastic:e=>eK(e)?e:eX(e,.075,.3),easeInOutElastic:e=>eK(e)?e:e<.5?.5*eY(2*e,.1125,.45):.5+.5*eX(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*(((t*=1.525)+1)*e-t)*.5:.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eJ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eJ.easeInBounce(2*e):.5*eJ.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new j(e)}function e1(e){return eQ(e)?e:new j(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e3=new Map;function e4(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e3.get(n);return r||(r=new Intl.NumberFormat(e,t),e3.set(n,r)),r})(t,n).format(e)}let e6={values:e=>L(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let a=ep(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),e4(e,i,l)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ep(e))))||t>.8*n.length?e6.numeric.call(this,e,t,n):""}};var e7={formatters:e6};let e8=Object.create(null),e9=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?Y(te(e,t),n):Y(te(e,""),t)}class tn{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e9,e,t)}override(e,t){return tt(e8,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return z(e)?Object.assign({},t,e):$(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e7.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ti(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n,r){let i,o,a,s,l;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(s=n[i])||L(s)){if(L(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||L(l)||(d=ti(e,u,c,d,l))}else d=ti(e,u,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function ta(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ts(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tl(e,t,n,r){tu(e,t,n,r,null)}function tu(e,t,n,r,i){let o,a,s,l,u,c,d,f;let h=t.pointStyle,p=t.rotation,m=t.radius,g=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(m)&&!(m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,es):e.arc(n,r,m,0,es),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":u=.516*m,a=Math.cos(g+ef)*(l=m-u),d=Math.cos(g+ef)*(i?i/2-u:l),s=Math.sin(g+ef)*l,f=Math.sin(g+ef)*(i?i/2-u:l),e.arc(n-d,r-s,u,g-ea,g-ed),e.arc(n+f,r-a,u,g-ed,g),e.arc(n+d,r+s,u,g,g+ed),e.arc(n-f,r+a,u,g+ed,g+ea),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}g+=ef;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":g+=ef;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),g+=ef,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function td(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function th(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tm(e,t,n,r,i,o={}){let a,s;let l=L(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),D(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),D(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ea,ea,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ea,ed,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ed,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ed,!0),e.lineTo(n+a.topLeft,r)}let tv=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tb=e=>+e||0;function tx(e,t){let n={},r=z(t),i=r?Object.keys(t):t,o=z(e)?r?n=>$(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tb(o(e));return n}function tw(e){return tx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tk(e){return tx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tS(e){let t=tw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tE(e,t){e=e||{},t=t||tr.font;let n=$(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=$(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:$(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tv);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}($(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:$(e.weight,t.weight),string:""};return i.string=!i||D(i.size)||D(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function t_(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&L(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tC(e,t,n){let{min:r,max:i}=e,o=U(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tO(e,t){return Object.assign(Object.create(e),t)}function tT(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tD("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tT([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tR(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tD(tP(o,e),n)))return tI(e,i)?tM(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tL(e).includes(t),ownKeys:e=>tL(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tA(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tP=(e,t)=>e?e+et(t):t,tI=(e,t)=>z(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tj=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tM(e,t,n,r){var i;let o=t._rootScopes,a=er(i=t._fallback)?i(n,r):i,s=[...e,...o],l=new Set;l.add(r);let u=tN(l,s,n,a||n,r);return null!==u&&(void 0===a||a===n||null!==(u=tN(l,s,a,u,r)))&&tT(Array.from(l),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return L(i)&&z(n)?n:i||{}})(t,n,r))}function tN(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tj(n,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(n,i):o;if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tD(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tL(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tz(e,t,n,r){let i,o,a;let{iScale:s}=e,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=t[o=i+n],u[i]={r:s.parse(ee(a,l),o)};return u}let tF=Number.EPSILON||1e-14,tB=(e,t)=>t<e.length&&!e[t].skip&&e[t],t$=e=>"x"===e?"y":"x";function tV(e,t,n){return Math.max(Math.min(e,n),t)}function tU(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=t$(t),a=e.length,s=Array(a).fill(0),l=Array(a),u=tB(e,0);for(n=0;n<a;++n)if(r=i,i=u,u=tB(e,n+1),i){if(u){let e=u[t]-i[t];s[n]=0!==e?(u[o]-i[o])/e:0}l[n]=r?u?em(s[n-1])!==em(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s;let l=e.length,u=tB(e,0);for(let c=0;c<l-1;++c)if(s=u,u=tB(e,c+1),s&&u){if(eg(t[c],0,tF)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,l),function(e,t,n="x"){let r,i,o;let a=t$(n),s=e.length,l=tB(e,0);for(let u=0;u<s;++u){if(i=o,o=l,l=tB(e,u+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[u]),l&&(r=(l[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[u])}}(e,l,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=eC(t,i),s=eC(o,t),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=r*l,d=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a;let s=tc(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&tc(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tV(i.cp1x,t.left,t.right),i.cp1y=tV(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tV(i.cp2x,t.left,t.right),i.cp2y=tV(i.cp2y,t.top,t.bottom)))}(e,n)}function tW(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tq(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tH(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tZ=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tK(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tG[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tZ(n),o="border-box"===i.boxSizing,a=tK(i,"padding"),s=tK(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:s}=o,l=!1;if(tY(a,s,e.target))n=a,r=s;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,l=!0}return{x:n,y:r,box:l}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tJ=e=>Math.round(10*e)/10;function tQ(e,t,n,r){let i=tZ(e),o=tK(i,"margin"),a=tH(i.maxWidth,e,"clientWidth")||eu,s=tH(i.maxHeight,e,"clientHeight")||eu,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tq(e);if(o){let e=o.getBoundingClientRect(),a=tZ(o),s=tK(a,"border","width"),l=tK(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=tH(a.maxWidth,o,"clientWidth"),i=tH(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=tK(i,"border","width"),t=tK(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tJ(Math.min(u,a,l.maxWidth)),c=tJ(Math.min(c,s,l.maxHeight)),u&&!c&&(c=tJ(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(u=tJ(Math.floor((c=l.height)*r))),{width:u,height:c}}function t0(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t1=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tW()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t2(e,t){let n=tZ(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t3(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t4(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=t5(e,i,n),s=t5(i,o,n),l=t5(o,t,n),u=t5(a,s,n),c=t5(s,l,n);return t5(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t7(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t8(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eA,compare:eO,normalize:eT}:{between:eR,compare:(e,t)=>e-t,normalize:e=>e}}function ne({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function nt(e,t,n){let r,i,o;if(!n)return[e];let{property:a,start:s,end:l}=n,u=t.length,{compare:c,between:d,normalize:f}=t9(a),{start:h,end:p,loop:m,style:g}=function(e,t,n){let r;let{property:i,start:o,end:a}=n,{between:s,normalize:l}=t9(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&s(l(t[c%u][i]),o,a);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),v=[],y=!1,b=null,x=()=>d(s,o,r)&&0!==c(s,o),w=()=>0===c(l,r)||d(l,o,r),k=()=>y||x(),S=()=>!y||w();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=f(i[a]))===o||(y=d(r,s,l),null===b&&k()&&(b=0===c(r,s)?e:n),null!==b&&S()&&(v.push(ne({start:b,end:e,loop:m,count:u,style:g})),b=null),n=e,o=r);return null!==b&&v.push(ne({start:b,end:p,loop:m,count:u,style:g})),v}function nn(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],e.points,t);o.length&&n.push(...o)}return n}function nr(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ni(e,[{start:a,end:s,loop:o}],n,t);let l=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,l.skip&&(t=i)),l=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,l,u),n,t)}function ni(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=no(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}for(let e of t){let t;let o=n[(d=s?d:e.start)%l];for(f=d+1;f<=e.end;f++){let s=n[f%l];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tO(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},62658:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},35781:function(e,t){"use strict";var n={value:()=>{}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=o(r[n],e.name,t);else if(null==t)for(n in r)r[n]=o(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},16309:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(35781),i=n(68381),o=n(60826),a=n(88868),s=n(64275),l=e=>()=>e;function u(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,m=c,g=d,v=f,y=h,b={},x=(0,r.Z)("start","drag","end"),w=0,k=0;function S(e){e.on("mousedown.drag",E).filter(y).on("touchstart.drag",O).on("touchmove.drag",T,s.Q7).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(r,o){if(!p&&m.call(this,r,o)){var l=P(this,g.call(this,r,o),r,o,"mouse");l&&((0,i.Z)(r.view).on("mousemove.drag",_,s.Dd).on("mouseup.drag",C,s.Dd),(0,a.Z)(r.view),(0,s.rG)(r),n=!1,e=r.clientX,t=r.clientY,l("start",r))}}function _(r){if((0,s.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>k}b.mouse("drag",r)}function C(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.D)(e.view,n),(0,s.ZP)(e),b.mouse("end",e)}function O(e,t){if(m.call(this,e,t)){var n,r,i=e.changedTouches,o=g.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=P(this,o,e,t,i[n].identifier,i[n]))&&((0,s.rG)(e),r("start",e,i[n]))}}function T(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.ZP)(e),n("drag",e,r[t]))}function A(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.rG)(e),n("end",e,r[t]))}function P(e,t,n,r,i,a){var s,l,c,d=x.copy(),f=(0,o.Z)(a||n,t);if(null!=(c=v.call(e,new u("beforestart",{sourceEvent:n,target:S,identifier:i,active:w,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,l=c.y-f[1]||0,function n(a,h,p){var m,g=f;switch(a){case"start":b[i]=n,m=w++;break;case"end":delete b[i],--w;case"drag":f=(0,o.Z)(p||h,t),m=w}d.call(a,e,new u(a,{sourceEvent:h,subject:c,target:S,identifier:i,active:m,x:f[0]+s,y:f[1]+l,dx:f[0]-g[0],dy:f[1]-g[1],dispatch:d}),r)}}return S.filter=function(e){return arguments.length?(m="function"==typeof e?e:l(!!e),S):m},S.container=function(e){return arguments.length?(g="function"==typeof e?e:l(e),S):g},S.subject=function(e){return arguments.length?(v="function"==typeof e?e:l(e),S):v},S.touchable=function(e){return arguments.length?(y="function"==typeof e?e:l(!!e),S):y},S.on=function(){var e=x.on.apply(x,arguments);return e===x?S:e},S.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,S):Math.sqrt(k)},S}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},88868:function(e,t,n){"use strict";n.d(t,{D:function(){return a},Z:function(){return o}});var r=n(68381),i=n(64275);function o(e){var t=e.document.documentElement,n=(0,r.Z)(e).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in t?n.on("selectstart.drag",i.ZP,i.Dd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.Z)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},64275:function(e,t,n){"use strict";n.d(t,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return a},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},55368:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{P:function(){return i},Z:function(){return r}})},77764:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19530);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.Z.hasOwnProperty(t)?{space:r.Z[t],local:e}:e}},19530:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},60826:function(e,t,n){"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{Z:function(){return r}})},68381:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89818);function i(e){return"string"==typeof e?new r.Y1([[document.querySelector(e)]],[document.documentElement]):new r.Y1([[e]],r.Jz)}},89818:function(e,t,n){"use strict";n.d(t,{Y1:function(){return z},ZP:function(){return B},Jz:function(){return L}});var r=n(30212),i=n(47354),o=n(55368),a=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(l=t[s])&&(p[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function p(e){return e.__data__}function m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var g=n(77764),v=n(57709);function y(e){return e.trim().split(/^|\s+/)}function b(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=y(e.getAttribute("class")||"")}function w(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function k(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function S(){this.textContent=""}function E(){this.innerHTML=""}function _(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}x.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var O=n(19530);function T(e){var t=(0,g.Z)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O.P&&t.documentElement.namespaceURI===O.P?t.createElement(e):t.createElementNS(n,e)}})(t)}function A(){return null}function P(){var e=this.parentNode;e&&e.removeChild(this)}function I(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function j(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function M(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var N=n(57090);function D(e,t,n){var r=(0,N.Z)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var L=[null];function z(e,t){this._groups=e,this._parents=t}function F(){return new z([[document.documentElement]],L)}z.prototype=F.prototype={constructor:z,select:function(e){"function"!=typeof e&&(e=(0,r.Z)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var a,s,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(a=l[d])&&(s=e.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new z(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.Z)(e);for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),a.push(l));return new z(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.P)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.P)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],l=s.length,u=r[i]=[],c=0;c<l;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&u.push(a);return new z(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(w=e,e=function(){return w});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],m=d.length,g="object"==typeof(x=e.call(c,c&&c.__data__,u,r))&&"length"in x?x:Array.from(x),v=g.length,y=s[u]=Array(v),b=a[u]=Array(v);n(c,d,y,b,l[u]=Array(m),g,t);for(var x,w,k,S,E=0,_=0;E<v;++E)if(k=y[E]){for(E>=_&&(_=E+1);!(S=b[_])&&++_<v;);k._next=S||null}}return(a=new z(a,r))._enter=s,a._exit=l,a},enter:function(){return new z(this._enter||this._groups.map(c),this._parents)},exit:function(){return new z(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],d=r[l],f=c.length,h=s[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)s[l]=n[l];return new z(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=m);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new z(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,g.Z)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:v.Z,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=y(e+"");if(arguments.length<2){for(var r=b(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?w:k)(this,e)}}:t?function(e){return function(){w(this,e)}}:function(e){return function(){k(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?S:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(_)},lower:function(){return this.each(C)},append:function(e){var t="function"==typeof e?e:T(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:T(e),i=null==t?A:"function"==typeof t?t:(0,r.Z)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(e){return this.select(e?R:I)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?M:j;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return D(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return D(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var B=F},57709:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(57090);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.Z)(e).getComputedStyle(e,null).getPropertyValue(t)}},30212:function(e,t,n){"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{Z:function(){return i}})},47354:function(e,t,n){"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{Z:function(){return i}})},57090:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{Z:function(){return r}})},18409:function(e,t,n){"use strict";n.d(t,{sP:function(){return eQ},CR:function(){return eW}});var r,i=n(35781),o=n(88868);function a(e){return((e=Math.exp(e))+1/e)/2}var s,l,u=function e(t,n,r){function i(e,i){var o,s,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,m=f-u,g=p*p+m*m;if(g<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*m,c*Math.exp(t*e*s)]};else{var v=Math.sqrt(g),y=(h*h-c*c+r*g)/(2*c*n*v),b=(h*h-c*c-r*g)/(2*h*n*v),x=Math.log(Math.sqrt(y*y+1)-y);s=(Math.log(Math.sqrt(b*b+1)-b)-x)/t,o=function(e){var r,i,o=e*s,d=a(x),f=c/(n*v)*(((r=Math.exp(2*(r=t*o+x)))-1)/(r+1)*d-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,u+f*m,c*d/a(t*o+x)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(68381),d=n(60826),f=n(89818),h=0,p=0,m=0,g=0,v=0,y=0,b="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return v||(x(k),v=b.now()+y)}function k(){v=0}function S(){this._call=this._time=this._next=null}function E(e,t,n){var r=new S;return r.restart(e,t,n),r}function _(){v=(g=b.now())+y,h=p=0;try{!function(){w(),++h;for(var e,t=s;t;)(e=v-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:s=t);l=e,O(r)}(),v=0}}function C(){var e=b.now(),t=e-g;t>1e3&&(y-=t,g=e)}function O(e){!h&&(p&&(p=clearTimeout(p)),e-v>24?(e<1/0&&(p=setTimeout(_,e-b.now()-y)),m&&(m=clearInterval(m))):(m||(g=b.now(),m=setInterval(C,1e3)),h=1,x(_)))}function T(e,t,n){var r=new S;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}S.prototype=E.prototype={constructor:S,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||l===this||(l?l._next=this:s=this,l=this),this._call=e,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}};var A=(0,i.Z)("start","end","cancel","interrupt"),P=[];function I(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return T(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(T(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=E(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:A,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function R(e,t){var n=M(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function j(e,t){var n=M(e,t);if(n.state>3)throw Error("too late; already running");return n}function M(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function N(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function D(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var L=180/Math.PI,z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function F(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*L,skewX:Math.atan(l)*L,scaleX:a,scaleY:s}}function B(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:D(e,i)},{i:l-2,x:D(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),(s=o.rotate)!==(l=a.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:D(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:D(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:D(e,n)},{i:s-2,x:D(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var $=B(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?z:F(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),V=B(function(e){return null==e?z:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?F((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):z},", ",")",")"),U=n(77764);function W(e,t,n){var r=e._id;return e.each(function(){var e=j(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return M(e,r).value[t]}}function q(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function H(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Z(){}var G="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X=/^#([0-9a-f]{3,8})$/,J=RegExp(`^rgb\\(${G},${G},${G}\\)$`),Q=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),ee=RegExp(`^rgba\\(${G},${G},${G},${K}\\)$`),et=RegExp(`^rgba\\(${Y},${Y},${Y},${K}\\)$`),en=RegExp(`^hsl\\(${K},${Y},${Y}\\)$`),er=RegExp(`^hsla\\(${K},${Y},${Y},${K}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=X.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?el(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new ed(t[1],t[2],t[3],1):(t=Q.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?ev(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?ev(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof Z||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${em(this.r)}, ${em(this.g)}, ${em(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function em(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eg(e){return((e=em(e))<16?"0":"")+e.toString(16)}function ev(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new eb(e,t,n,r)}function ey(e){if(e instanceof eb)return new eb(e.h,e.s,e.l,e.opacity);if(e instanceof Z||(e=es(e)),!e)return new eb;if(e instanceof eb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new eb(a,s,l,e.opacity)}function eb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ex(e){return(e=(e||0)%360)<0?e+360:e}function ew(e){return Math.max(0,Math.min(1,e||0))}function ek(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eS(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}q(Z,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ey(this).formatHsl()},formatRgb:ea,toString:ea}),q(ed,ec,H(Z,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(em(this.r),em(this.g),em(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}${eg((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),q(eb,function(e,t,n,r){return 1==arguments.length?ey(e):new eb(e,t,n,null==r?1:r)},H(Z,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new eb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(ek(e>=240?e-240:e+120,i,r),ek(e,i,r),ek(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new eb(ex(this.h),ew(this.s),ew(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ex(this.h)}, ${100*ew(this.s)}%, ${100*ew(this.l)}%${1===e?")":`, ${e})`}`}}));var eE=e=>()=>e;function e_(e,t){var n=t-e;return n?function(t){return e+t*n}:eE(isNaN(e)?t:e)}var eC=function e(t){var n,r=1==(n=+(n=t))?e_:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):eE(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=e_(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eO(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}eO(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eS((n-r/t)*t,a,i,o,s)}}),eO(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eS((n-r/t)*t,i,o,a,s)}});var eT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eA=RegExp(eT.source,"g");function eP(e,t){var n;return("number"==typeof t?D:t instanceof es?eC:(n=es(t))?(t=n,eC):function(e,t){var n,r,i,o,a,s=eT.lastIndex=eA.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=eT.exec(e))&&(o=eA.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:D(i,o)})),s=eA.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})})(e,t)}var eI=n(55368),eR=n(30212),ej=n(47354),eM=f.ZP.prototype.constructor,eN=n(57709);function eD(e){return function(){this.style.removeProperty(e)}}var eL=0;function ez(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var eF=f.ZP.prototype;ez.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:ez,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eR.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,d=o[a]=Array(c),f=0;f<c;++f)(s=u[f])&&(l=e.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,I(d[f],t,n,f,d,M(s,n)));return new ez(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,ej.Z)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=M(l,n),m=0,g=h.length;m<g;++m)(f=h[m])&&I(f,t,n,m,h,p);o.push(h),a.push(l)}return new ez(o,a,t,n)},selectChild:eF.selectChild,selectChildren:eF.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eI.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new ez(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,f=a[s]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;s<r;++s)a[s]=t[s];return new ez(a,this._parents,this._name,this._id)},selection:function(){return new eM(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eL,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=M(a,t);I(a,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ez(r,this._parents,e,n)},call:eF.call,nodes:eF.nodes,node:eF.node,size:eF.size,empty:eF.empty,each:eF.each,on:function(e,t){var n,r,i,o=this._id;return arguments.length<2?M(this.node(),o).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?R:j,function(){var a=i(this,o),s=a.on;s!==n&&(r=(n=s).copy()).on(e,t),a.on=r}))},attr:function(e,t){var n=(0,U.Z)(e),r="transform"===n?V:eP;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}:function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}})(n,r,W(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,U.Z)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,k,S,E="transform"==(e+="")?$:eP;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eN.S)(this,r),t=(this.style.removeProperty(r),(0,eN.S)(this,r));return e===t?null:e===i&&t===o?a:a=E(i=e,o=t)})).on("end.style."+e,eD(e)):"function"==typeof t?this.styleTween(e,(s=e,l=W(this,"style."+e,t),function(){var e=(0,eN.S)(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eN.S)(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=E(u=e,t))})).each((f=this._id,b="end."+(y="style."+(h=e)),function(){var e=j(this,f),t=e.on,n=null==e.value[y]?v||(v=eD(h)):void 0;(t!==p||g!==n)&&(m=(p=t).copy()).on(b,g=n),e.on=m})):this.styleTween(e,(x=e,S=t+"",function(){var e=(0,eN.S)(this,x);return e===S?null:e===w?k:k=E(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=W(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=M(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=j(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=j(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){R(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){R(this,e).delay=t}})(t,e)):M(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){j(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){j(this,e).duration=t}})(t,e)):M(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){j(this,e).ease=t}}(t,e)):M(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();j(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=j(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:eF[Symbol.iterator]};var eB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.ZP.prototype.interrupt=function(e){return this.each(function(){N(this,e)})},f.ZP.prototype.transition=function(e){var t,n;e instanceof ez?(t=e._id,e=e._name):(t=++eL,(n=eB).time=w(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&I(a,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new ez(r,this._parents,e,t)};var e$=e=>()=>e;function eV(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eU(e,t,n){this.k=e,this.x=t,this.y=n}eU.prototype={constructor:eU,scale:function(e){return 1===e?this:new eU(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eU(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eW=new eU(1,0,0);function eq(e){e.stopImmediatePropagation()}function eH(e){e.preventDefault(),e.stopImmediatePropagation()}function eZ(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eG(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eK(){return this.__zoom||eW}function eY(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eX(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eQ(){var e,t,n,r=eZ,a=eG,s=eJ,l=eY,f=eX,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],m=250,g=u,v=(0,i.Z)("start","zoom","end"),y=0,b=10;function x(e){e.property("__zoom",eK).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(f).on("touchstart.zoom",P).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eU(t,e.x,e.y)}function k(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new eU(e.k,r,i)}function S(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=_(this,e).event(r),o=a.apply(this,e),s=null==n?S(o):"function"==typeof n?n.apply(this,e):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=g(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new eU(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function O(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,l.apply(this,arguments)))),a=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],N(this),n.start()}eH(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(k(w(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function T(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=_(this,t,!0).event(e),l=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eH(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>y}a.event(e).zoom("mouse",s(k(a.that.__zoom,a.mouse[0]=(0,d.Z)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,a.moved),eH(e),a.event(e).end()},!0),u=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),eq(e),a.mouse=[u,this.__zoom.invert(u)],N(this),a.start()}}function A(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.Z)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),l=n.k*(e.shiftKey?.5:2),u=s(k(w(n,l),i,o),a.apply(this,t),p);eH(e),m>0?(0,c.Z)(this).transition().duration(m).call(E,u,i,e):(0,c.Z)(this).call(x.transform,u,i,e)}}function P(n,...i){if(r.apply(this,arguments)){var o,a,s,l,u=n.touches,c=u.length,f=_(this,i,n.changedTouches.length===c).event(n);for(eq(n),a=0;a<c;++a)s=u[a],l=[l=(0,d.Z)(s,this),this.__zoom.invert(l),s.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),N(this),f.start())}}function I(e,...t){if(this.__zooming){var n,r,i,o,a=_(this,t).event(e),l=e.changedTouches,u=l.length;for(eH(e),n=0;n<u;++n)r=l[n],i=(0,d.Z)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],m=a.touch1[1],g=(g=h[0]-c[0])*g+(g=h[1]-c[1])*g,v=(v=m[0]-f[0])*v+(v=m[1]-f[1])*v;r=w(r,Math.sqrt(g/v)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(k(r,i,o),a.extent,p))}}function R(e,...r){if(this.__zooming){var i,o,a=_(this,r).event(e),s=e.changedTouches,l=s.length;for(eq(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<b)){var u=(0,c.Z)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return x.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eK),e!==i?E(e,t,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},x.scaleBy=function(e,t,n,r){x.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},x.scaleTo=function(e,t,n,r){x.transform(e,function(){var e=a.apply(this,arguments),r=this.__zoom,i=null==n?S(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return s(k(w(r,l),i,o),e,p)},n,r)},x.translateBy=function(e,t,n,r){x.transform(e,function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},x.translateTo=function(e,t,n,r,i){x.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?S(e):"function"==typeof r?r.apply(this,arguments):r;return s(eW.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.Z)(this.that).datum();v.call(e,this.that,new eV(e,{sourceEvent:this.sourceEvent,target:x,type:e,transform:this.that.__zoom,dispatch:v}),t)}},x.wheelDelta=function(e){return arguments.length?(l="function"==typeof e?e:e$(+e),x):l},x.filter=function(e){return arguments.length?(r="function"==typeof e?e:e$(!!e),x):r},x.touchable=function(e){return arguments.length?(f="function"==typeof e?e:e$(!!e),x):f},x.extent=function(e){return arguments.length?(a="function"==typeof e?e:e$([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),x):a},x.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],x):[h[0],h[1]]},x.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],x):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},x.constrain=function(e){return arguments.length?(s=e,x):s},x.duration=function(e){return arguments.length?(m=+e,x):m},x.interpolate=function(e){return arguments.length?(g=e,x):g},x.on=function(){var e=v.on.apply(v,arguments);return e===v?x:e},x.clickDistance=function(e){return arguments.length?(y=(e=+e)*e,x):Math.sqrt(y)},x.tapDistance=function(e){return arguments.length?(b=+e,x):b},x}eU.prototype},56861:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let r={};function i(){return r}},62859:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(17139);function i(e){let t=(0,r.Q)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},70709:function(e,t,n){"use strict";n.d(t,{H_:function(){return l},dP:function(){return i},fH:function(){return s},jE:function(){return r},vh:function(){return a},yJ:function(){return o}});let r=6048e5,i=864e5,o=6e4,a=36e5,s=43200,l=1440},80658:function(e,t,n){"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{L:function(){return r}})},87699:function(e,t,n){"use strict";n.d(t,{WU:function(){return R}});var r=n(7628),i=n(56861),o=n(70709),a=n(17139);function s(e){let t=(0,a.Q)(e);return t.setHours(0,0,0,0),t}var l=n(62859),u=n(80658);function c(e,t){var n,r,o,s,l,u,c,d;let f=(0,i.j)(),h=null!==(d=null!==(c=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:f.weekStartsOn)&&void 0!==c?c:null===(s=f.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==d?d:0,p=(0,a.Q)(e),m=p.getDay();return p.setDate(p.getDate()-((m<h?7:0)+m-h)),p.setHours(0,0,0,0),p}function d(e){return c(e,{weekStartsOn:1})}function f(e){let t=(0,a.Q)(e),n=t.getFullYear(),r=(0,u.L)(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=d(r),o=(0,u.L)(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let s=d(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function h(e,t){var n,r,o,s,l,d,f,h;let p=(0,a.Q)(e),m=p.getFullYear(),g=(0,i.j)(),v=null!==(h=null!==(f=null!==(d=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:g.firstWeekContainsDate)&&void 0!==f?f:null===(s=g.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==h?h:1,y=(0,u.L)(e,0);y.setFullYear(m+1,0,v),y.setHours(0,0,0,0);let b=c(y,t),x=(0,u.L)(e,0);x.setFullYear(m,0,v),x.setHours(0,0,0,0);let w=c(x,t);return p.getTime()>=b.getTime()?m+1:p.getTime()>=w.getTime()?m:m-1}function p(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let m={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return p("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):p(n+1,2)},d:(e,t)=>p(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>p(e.getHours()%12||12,t.length),H:(e,t)=>p(e.getHours(),t.length),m:(e,t)=>p(e.getMinutes(),t.length),s:(e,t)=>p(e.getSeconds(),t.length),S(e,t){let n=t.length;return p(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},g={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},v={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return m.y(e,t)},Y:function(e,t,n,r){let i=h(e,r),o=i>0?i:1-i;return"YY"===t?p(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):p(o,t.length)},R:function(e,t){return p(f(e),t.length)},u:function(e,t){return p(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let s=function(e,t){let n=(0,a.Q)(e);return Math.round((+c(n,t)-+function(e,t){var n,r,o,a,s,l,d,f;let p=(0,i.j)(),m=null!==(f=null!==(d=null!==(l=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==d?d:null===(a=p.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==f?f:1,g=h(e,t),v=(0,u.L)(e,0);return v.setFullYear(g,0,m),v.setHours(0,0,0,0),c(v,t)}(n,t))/o.jE)+1}(e,r);return"wo"===t?n.ordinalNumber(s,{unit:"week"}):p(s,t.length)},I:function(e,t,n){let r=function(e){let t=(0,a.Q)(e);return Math.round((+d(t)-+function(e){let t=f(e),n=(0,u.L)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),d(n)}(t))/o.jE)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){let r=function(e){let t=(0,a.Q)(e);return function(e,t){let n=s(e),r=s(t);return Math.round((+n-(0,l.D)(n)-(+r-(0,l.D)(r)))/o.dP)}(t,function(e){let t=(0,a.Q)(e),n=(0,u.L)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return p(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return p(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return p(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r;let i=e.getHours();switch(r=12===i?g.noon:0===i?g.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r;let i=e.getHours();switch(r=i>=17?g.evening:i>=12?g.afternoon:i>=4?g.morning:g.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return b(r);case"XXXX":case"XX":return x(r);default:return x(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return b(r);case"xxxx":case"xx":return x(r);default:return x(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(r,":");default:return"GMT"+x(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(r,":");default:return"GMT"+x(r,":")}},t:function(e,t,n){return p(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return p(e.getTime(),t.length)}};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+p(o,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):x(e,t)}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+p(Math.trunc(n/60),2)+t+p(n%60,2)}let w=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},k=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},S={p:k,P:(e,t)=>{let n;let r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return w(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",w(i,t)).replace("{{time}}",k(o,t))}},E=/^D+$/,_=/^Y+$/,C=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,P=/''/g,I=/[a-zA-Z]/;function R(e,t,n){var o,s,l,u,c,d,f,h,p,m,g,y,b,x,w,k,R,j;let M=(0,i.j)(),N=null!==(m=null!==(p=null==n?void 0:n.locale)&&void 0!==p?p:M.locale)&&void 0!==m?m:r._,D=null!==(x=null!==(b=null!==(y=null!==(g=null==n?void 0:n.firstWeekContainsDate)&&void 0!==g?g:null==n?void 0:null===(s=n.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==y?y:M.firstWeekContainsDate)&&void 0!==b?b:null===(u=M.locale)||void 0===u?void 0:null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==x?x:1,L=null!==(j=null!==(R=null!==(k=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==k?k:M.weekStartsOn)&&void 0!==R?R:null===(h=M.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==j?j:0,z=(0,a.Q)(e);if(!((z instanceof Date||"object"==typeof z&&"[object Date]"===Object.prototype.toString.call(z)||"number"==typeof z)&&!isNaN(Number((0,a.Q)(z)))))throw RangeError("Invalid time value");let F=t.match(T).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,S[t])(e,N.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(A);return t?t[1].replace(P,"'"):e}(e)};if(v[t])return{isToken:!0,value:e};if(t.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});N.localize.preprocessor&&(F=N.localize.preprocessor(z,F));let B={firstWeekContainsDate:D,weekStartsOn:L,locale:N};return F.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&E.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),C.includes(e))throw RangeError(r)}(i,t,String(e)),(0,v[i[0]])(z,i,N.localize,B)}).join("")}},12032:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(80658),i=n(17139);function o(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var a=n(70709),s=n(7628),l=n(56861),u=n(62859);function c(e,t){return function(e,t,n){var r,c,d,f,h,p;let m,g,v;let y=(0,l.j)(),b=null!==(c=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:y.locale)&&void 0!==c?c:s._,x=o(e,t);if(isNaN(x))throw RangeError("Invalid time value");let w=Object.assign({},n,{addSuffix:null==n?void 0:n.addSuffix,comparison:x});x>0?(m=(0,i.Q)(t),g=(0,i.Q)(e)):(m=(0,i.Q)(e),g=(0,i.Q)(t));let k=(d=g,f=m,(p=null==void 0?void 0:(void 0).roundingMethod,e=>{let t=(p?Math[p]:Math.trunc)(e);return 0===t?0:t})((+(0,i.Q)(d)-+(0,i.Q)(f))/1e3)),S=Math.round((k-((0,u.D)(g)-(0,u.D)(m))/1e3)/60);if(S<2){if(null==n?void 0:n.includeSeconds){if(k<5)return b.formatDistance("lessThanXSeconds",5,w);if(k<10)return b.formatDistance("lessThanXSeconds",10,w);if(k<20)return b.formatDistance("lessThanXSeconds",20,w);if(k<40)return b.formatDistance("halfAMinute",0,w);else if(k<60)return b.formatDistance("lessThanXMinutes",1,w);else return b.formatDistance("xMinutes",1,w)}return 0===S?b.formatDistance("lessThanXMinutes",1,w):b.formatDistance("xMinutes",S,w)}if(S<45)return b.formatDistance("xMinutes",S,w);if(S<90)return b.formatDistance("aboutXHours",1,w);if(S<a.H_)return b.formatDistance("aboutXHours",Math.round(S/60),w);if(S<2520)return b.formatDistance("xDays",1,w);if(S<a.fH){let e=Math.round(S/a.H_);return b.formatDistance("xDays",e,w)}if(S<2*a.fH)return v=Math.round(S/a.fH),b.formatDistance("aboutXMonths",v,w);if((v=function(e,t){let n;let r=(0,i.Q)(e),a=(0,i.Q)(t),s=o(r,a),l=Math.abs(function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,a));if(l<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*l);let t=o(r,a)===-s;(function(e){let t=(0,i.Q)(e);return+function(e){let t=(0,i.Q)(e);return t.setHours(23,59,59,999),t}(t)==+function(e){let t=(0,i.Q)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t)})((0,i.Q)(e))&&1===l&&1===o(e,a)&&(t=!1),n=s*(l-Number(t))}return 0===n?0:n}(g,m))<12){let e=Math.round(S/a.fH);return b.formatDistance("xMonths",e,w)}{let e=v%12,t=Math.trunc(v/12);return e<3?b.formatDistance("aboutXYears",t,w):e<9?b.formatDistance("overXYears",t,w):b.formatDistance("almostXYears",t+1,w)}}(e,(0,r.L)(e,Date.now()),t)}},7628:function(e,t,n){"use strict";var r;n.d(t,{_:function(){return c}});let i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let c={code:"en-US",formatDistance:(e,t,n)=>{let r;let o=i[e];return(r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:a,formatRelative:(e,t,n,r)=>s[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;let i=n[0],o=e.match(r.parsePattern);if(!o)return null;let a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},85160:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(70709);function i(e,t){var n;let i,h;let p=null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2,m=function(e){let t;let n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=o.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(m.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(m.date,p);i=function(e,t){if(null===t)return new Date(NaN);let n=e.match(a);if(!n)return new Date(NaN);let r=!!n[4],i=u(n[1]),o=u(n[2])-1,s=u(n[3]),l=u(n[4]),c=u(n[5])-1;if(r)return l>=1&&l<=53&&c>=0&&c<=6?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,l,c):new Date(NaN);{let e=new Date(0);return o>=0&&o<=11&&s>=1&&s<=(d[o]||(f(t)?29:28))&&i>=1&&i<=(f(t)?366:365)?(e.setUTCFullYear(t,o,Math.max(i,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);let g=i.getTime(),v=0;if(m.time&&isNaN(v=function(e){let t=e.match(s);if(!t)return NaN;let n=c(t[1]),i=c(t[2]),o=c(t[3]);return(24===n?0===i&&0===o:o>=0&&o<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*o:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(h=function(e){if("Z"===e)return 0;let t=e.match(l);if(!t)return 0;let n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return o>=0&&o<=59?n*(i*r.vh+o*r.yJ):NaN}(m.timezone)))return new Date(NaN)}else{let e=new Date(g+v),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(g+v+h)}let o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}let d=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},17139:function(e,t,n){"use strict";function r(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}n.d(t,{Q:function(){return r}})},87377:function(e,t,n){"use strict";n.d(t,{M:function(){return g}});var r=n(8035),i=n(18583);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=n(58996),s=n(45766),l=n(46970);class u extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:s}=o.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
33
|
+
M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fill:v,fillRule:"evenodd",stroke:y,strokeWidth:b,pointerEvents:"none"})))}v.displayName="MiniMap";var y=(0,r.memo)(v)},26117:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},47090:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(50528),i=n(2453),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},63612:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(96753),i=n(86492),o=n(44788),a=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,n=!this.#o.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:n}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#o.start();return await this.#i.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#a({type:"success",data:r}),r}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},96753:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),o=r=>{t?e.push(r):i(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},23277:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(50528),i=n(2453),o=new class extends r.l{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},3835:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var r=n(2453),i=n(96753),o=n(44788),a=n(86492),s=class extends a.F{#l;#u;#c;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#l)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={client:this.#d,queryKey:this.queryKey,meta:this.meta};return(i(n),this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(a),this.options.behavior?.onFetch(a,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,o.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},42974:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var r=n(2453),i=n(3835),o=n(96753),a=n(50528),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.Rm)(o,t),s=this.get(a);return s||(s=new i.A({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(63612),u=class extends a.l{constructor(e={}){super(),this.config=e,this.#m=new Set,this.#g=new Map,this.#v=0}#m;#g;#v;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#m.add(e);let t=c(e);if("string"==typeof t){let n=this.#g.get(t);n?n.push(e):this.#g.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#m.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#g.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#g.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#g.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#g.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.V.batch(()=>{this.#m.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#m.clear(),this.#g.clear()})}getAll(){return Array.from(this.#m)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(47090),f=n(23277);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};c(a);let s=await d(a),{maxPages:l}=t.options,u=o?r.Ht:r.VX;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);l=await f(t,n,e)}else{let t=e??a.length;do{let e=0===u?s[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await f(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var m=class{#y;#i;#f;#b;#x;#w;#k;#S;constructor(e={}){this.#y=e.queryCache||new s,this.#i=e.mutationCache||new u,this.#f=e.defaultOptions||{},this.#b=new Map,this.#x=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#k=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#S=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#k?.(),this.#k=void 0,this.#S?.(),this.#S=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(i.queryHash),a=o?.state.data,s=(0,r.SE)(t,a);if(void 0!==s)return this.#y.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y,r={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.V.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let n={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#b.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#b.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#x.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#i.clear()}}},86492:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(2453),i=class{#E;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#E=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#E&&(clearTimeout(this.#E),this.#E=void 0)}}},44788:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var r=n(47090),i=n(23277),o=n(42629),a=n(2453);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),m=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},g=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},v=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),y=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let r=e.retry??(a.sk?0:3),i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l){g(t);return}c++,e.onFail?.(c,t),(0,a._v)(o).then(()=>h()?void 0:v()).then(()=>{n?g(t):y()})})};return{promise:f,cancel:t=>{d||(g(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?y():v().then(y),f)}}},50528:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},42629:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},2453:function(e,t,n){"use strict";n.d(t,{CN:function(){return S},Ht:function(){return k},KC:function(){return l},Kp:function(){return s},Nc:function(){return u},PN:function(){return a},Rm:function(){return f},SE:function(){return o},VS:function(){return m},VX:function(){return w},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return b},_x:function(){return c},cG:function(){return E},oE:function(){return x},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=g(t)&&g(n);if(r||v(t)&&v(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{},u=0;for(let o=0;o<s;o++){let s=r?o:a[o];(!r&&i.includes(s)||r)&&void 0===t[s]&&void 0===n[s]?(l[s]=void 0,u++):(l[s]=e(t[s],n[s]),l[s]===t[s]&&void 0!==t[s]&&u++)}return o===s&&u===o?t:l}return n}(e,t):t}function w(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function k(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var S=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},42693:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return s}});var r=n(8035),i=n(35775),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},41337:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(8035),i=n(63612),o=n(96753),a=n(50528),s=n(2453),l=class extends a.l{#d;#_=void 0;#C;#O;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#T()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#d.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#C,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#C?.state.status==="pending"&&this.#C.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#C?.removeObserver(this)}onMutationUpdate(e){this.#T(),this.#A(e)}getCurrentResult(){return this.#_}reset(){this.#C?.removeObserver(this),this.#C=void 0,this.#T(),this.#A()}mutate(e,t){return this.#O=t,this.#C?.removeObserver(this),this.#C=this.#d.getMutationCache().build(this.#d,this.options),this.#C.addObserver(this),this.#C.execute(e)}#T(){let e=this.#C?.state??(0,i.R)();this.#_={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#A(e){o.V.batch(()=>{if(this.#O&&this.hasListeners()){let t=this.#_.variables,n=this.#_.context;e?.type==="success"?(this.#O.onSuccess?.(e.data,t,n),this.#O.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#O.onError?.(e.error,t,n),this.#O.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#_)})})}},u=n(42693),c=n(36567);function d(e,t){let n=(0,u.NL)(t),[i]=r.useState(()=>new l(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let a=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=r.useCallback((e,t)=>{i.mutate(e,t).catch(c.Z)},[i]);if(a.error&&(0,c.L)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},46612:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return A}});var i=n(47090),o=n(96753),a=n(3835),s=n(50528),l=n(42629),u=n(2453),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#P=null,this.#I=(0,l.O)(),this.options.experimental_prefetchInRender||this.#I.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#R=void 0;#j=void 0;#_=void 0;#M;#N;#I;#P;#D;#L;#z;#F;#B;#$;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),d(this.#R,this.options)?this.#U():this.updateResult(),this.#W())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#q(),this.#H(),this.#R.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#R;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Z(),this.#R.setOptions(this.options),n._defaulted&&!(0,u.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let i=this.hasListeners();i&&h(this.#R,r,this.options,n)&&this.#U(),this.updateResult(t),i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||(0,u.KC)(this.options.staleTime,this.#R)!==(0,u.KC)(n.staleTime,this.#R))&&this.#G();let o=this.#K();i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||o!==this.#$)&&this.#Y(o)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),n)||(this.#_=n,this.#N=this.options,this.#M=this.#R.state),n}getCurrentResult(){return this.#_}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#U({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#_))}#U(e){this.#Z();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#G(){this.#q();let e=(0,u.KC)(this.options.staleTime,this.#R);if(u.sk||this.#_.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#_.dataUpdatedAt,e);this.#F=setTimeout(()=>{this.#_.isStale||this.updateResult()},t+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#Y(e){this.#H(),this.#$=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#R)&&(0,u.PN)(this.#$)&&0!==this.#$&&(this.#B=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#U()},this.#$))}#W(){this.#G(),this.#Y(this.#K())}#q(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#H(){this.#B&&(clearInterval(this.#B),this.#B=void 0)}createResult(e,t){let n;let r=this.#R,i=this.options,o=this.#_,s=this.#M,c=this.#N,f=e!==r?e.state:this.#j,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&h(e,r,t,i);(o||s)&&(g={...g,...(0,a.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:x}=g;if(t.select&&void 0!==g.data){if(o&&g.data===s?.data&&t.select===this.#D)n=this.#L;else try{this.#D=t.select,n=t.select(g.data),n=(0,u.oE)(o?.data,n,t),this.#L=n,this.#P=null}catch(e){this.#P=e}}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#z?.state.data,this.#z):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#P=null}catch(e){this.#P=e}void 0!==e&&(x="success",n=(0,u.oE)(o?.data,e,t),v=!0)}this.#P&&(y=this.#P,n=this.#L,b=Date.now(),x="error");let w="fetching"===g.fetchStatus,k="pending"===x,S="error"===x,E=k&&w,_=void 0!==n,C={status:x,fetchStatus:g.fetchStatus,isPending:k,isSuccess:"success"===x,isError:S,isInitialLoading:E,isLoading:E,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:w,isRefetching:w&&!k,isLoadingError:S&&!_,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:S&&_,isStale:p(e,t),refetch:this.refetch,promise:this.#I};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===C.status?e.reject(C.error):void 0!==C.data&&e.resolve(C.data)},n=()=>{t(this.#I=C.promise=(0,l.O)())},i=this.#I;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===C.status||C.data!==i.value)&&n();break;case"rejected":("error"!==C.status||C.error!==i.reason)&&n()}}return C}updateResult(e){let t=this.#_,n=this.createResult(this.#R,this.options);if(this.#M=this.#R.state,this.#N=this.options,void 0!==this.#M.data&&(this.#z=this.#R),(0,u.VS)(n,t))return;this.#_=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#V.size)return!0;let r=new Set(n??this.#V);return this.options.throwOnError&&r.add("error"),Object.keys(this.#_).some(e=>this.#_[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#A({...r,...e})}#Z(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#j=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#W()}#A(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#_)}),this.#d.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,u.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,u.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var m=n(8035),g=n(42693);n(35775);var v=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),y=()=>m.useContext(v),b=n(36567),x=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},w=e=>{m.useEffect(()=>{e.clearReset()},[e])},k=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,b.L)(r,[t.error,i]))},S=m.createContext(!1),E=()=>m.useContext(S);S.Provider;var _=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},C=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t)=>e?.suspense&&t.isPending,T=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A(e,t){return function(e,t,n){var r,i,a,s,l;let c=(0,g.NL)(n),d=E(),f=y(),h=c.defaultQueryOptions(e);null===(i=c.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=d?"isRestoring":"optimistic",_(h),x(h,f),w(f);let p=!c.getQueryCache().get(h.queryHash),[v]=m.useState(()=>new t(c,h)),S=v.getOptimisticResult(h),A=!d&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=A?v.subscribe(o.V.batchCalls(e)):b.Z;return v.updateResult(),t},[v,A]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),m.useEffect(()=>{v.setOptions(h,{listeners:!1})},[h,v]),O(h,S))throw T(h,v,f);if(k({result:S,errorResetBoundary:f,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw S.error;if(null===(s=c.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,h,S),h.experimental_prefetchInRender&&!u.sk&&C(S,d)){let e=p?T(h,v,f):null===(l=c.getQueryCache().get(h.queryHash))||void 0===l?void 0:l.promise;null==e||e.catch(b.Z).finally(()=>{v.updateResult()})}return h.notifyOnChangeProps?S:v.trackResult(S)}(e,c,t)}},36567:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},17497:function(e,t,n){"use strict";n.d(t,{BT:function(){return v}});var r=()=>"undefined"!=typeof document,i=!1,o=null,a=!1,s=!1,l=new Set;function u(e,t){l.forEach(n=>n(e,t))}var c="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function d(e){a=!0,e.metaKey||!c&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",u("keyboard",e))}function f(e){if(o="pointer","mousedown"===e.type||"pointerdown"===e.type){a=!0;let t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch{}n||u("pointer",e)}}function h(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(a=!0,o="virtual")}function p(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(a||s||(o="virtual",u("virtual",e)),a=!1,s=!1)}function m(){a=!1,s=!0}function g(){return"pointer"!==o}function v(e){!function(){if(!r()||i)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){a=!0,e.apply(this,t)},document.addEventListener("keydown",d,!0),document.addEventListener("keyup",d,!0),document.addEventListener("click",h,!0),window.addEventListener("focus",p,!0),window.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",f,!0),document.addEventListener("pointermove",f,!0),document.addEventListener("pointerup",f,!0)):(document.addEventListener("mousedown",f,!0),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",f,!0)),i=!0}(),e(g());let t=()=>e(g());return l.add(t),()=>{l.delete(t)}}},24684:function(e,t,n){"use strict";n.d(t,{IZ:function(){return d},d7:function(){return i}});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:m,formToJSON:g,getAdapter:v,mergeConfig:y}=n(35997).default},35997:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{default:function(){return th}});var l,u,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return eg},hasStandardBrowserEnv:function(){return ey},hasStandardBrowserWebWorkerEnv:function(){return eb},navigator:function(){return ev},origin:function(){return ex}});var m=n(53624);let{toString:g}=Object.prototype,{getPrototypeOf:v}=Object,y=(r=Object.create(null),e=>{let t=g.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),b=e=>(e=e.toLowerCase(),t=>y(t)===e),x=e=>t=>typeof t===e,{isArray:w}=Array,k=x("undefined"),S=b("ArrayBuffer"),E=x("string"),_=x("function"),C=x("number"),O=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==y(e))return!1;let t=v(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A=b("Date"),P=b("File"),I=b("Blob"),R=b("FileList"),j=b("URLSearchParams"),[M,N,D,L]=["ReadableStream","Request","Response","Headers"].map(b);function z(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),w(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function F(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!k(e)&&e!==B,V=(i="undefined"!=typeof Uint8Array&&v(Uint8Array),e=>i&&e instanceof i),U=b("HTMLFormElement"),W=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q=b("RegExp"),H=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},Z=b("AsyncFunction"),G=(l="function"==typeof setImmediate,u=_(B.postMessage),l?setImmediate:u?(c=`axios@${Math.random()}`,d=[],B.addEventListener("message",({source:e,data:t})=>{e===B&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),B.postMessage(c,"*")}):e=>setTimeout(e)),K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):void 0!==m&&m.nextTick||G;var Y={isArray:w,isArrayBuffer:S,isBuffer:function(e){return null!==e&&!k(e)&&null!==e.constructor&&!k(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=y(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:E,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:T,isReadableStream:M,isRequest:N,isResponse:D,isHeaders:L,isUndefined:k,isDate:A,isFile:P,isBlob:I,isRegExp:q,isFunction:_,isStream:e=>O(e)&&_(e.pipe),isURLSearchParams:j,isTypedArray:V,isFileList:R,forEach:z,merge:function e(){let{caseless:t}=$(this)&&this||{},n={},r=(r,i)=>{let o=t&&F(n,i)||i;T(n[o])&&T(r)?n[o]=e(n[o],r):T(r)?n[o]=e({},r):w(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&_(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:y,kindOfTest:b,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!C(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(_(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(w(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:B,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=w(e)?[]:{};return z(e,(e,t)=>{let o=n(e,r+1);k(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(O(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:G,asap:K};function X(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let J=X.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(X,Q),Object.defineProperty(J,"isAxiosError",{value:!0}),X.from=(e,t,n,r,i,o)=>{let a=Object.create(J);return Y.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),X.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var ee=n(85599).Buffer;function et(e){return Y.isPlainObject(e)||Y.isArray(e)}function en(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(e,t){return e=en(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ei=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});var eo=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!s&&Y.isBlob(e))throw new X("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):ee.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(Y.isArray(e)&&(u=e,Y.isArray(u)&&!u.some(et))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=en(n),s.forEach(function(e,r){Y.isUndefined(e)||null===e||t.append(!0===a?er([n],r,o):null===a?n:n+"[]",l(e))}),!1}}return!!et(e)||(t.append(er(i,n,o),l(e)),!1)}let c=[],d=Object.assign(ei,{defaultVisitor:u,convertValue:l,isVisitable:et});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Y.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Y.forEach(n,function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&i.call(t,n,Y.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function ea(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&eo(e,this,t)}let el=es.prototype;function eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,n){let r;if(!t)return e;let i=n&&n.encode||eu;Y.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):Y.isURLSearchParams(t)?t.toString():new es(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}el.append=function(e,t){this._pairs.push([e,t])},el.toString=function(e){let t=e?function(t){return e.call(this,t,ea)}:ea;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ed{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh="undefined"!=typeof URLSearchParams?URLSearchParams:es,ep="undefined"!=typeof FormData?FormData:null,em="undefined"!=typeof Blob?Blob:null;let eg="undefined"!=typeof window&&"undefined"!=typeof document,ev="object"==typeof navigator&&navigator||void 0,ey=eg&&(!ev||0>["ReactNative","NativeScript","NS"].indexOf(ev.product)),eb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=eg&&window.location.href||"http://localhost";var ew={...h,isBrowser:!0,classes:{URLSearchParams:eh,FormData:ep,Blob:em},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&Y.isArray(r)?r.length:o,s)?Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&Y.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Y.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let eS={transitional:ef,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=Y.isObject(e);if(o&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return i?JSON.stringify(ek(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,eo(a,new ew.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ew.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eo(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eS.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw X.from(e,X.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ew.classes.FormData,Blob:ew.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{eS.headers[e]={}});let eE=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var e_=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eE[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let eC=Symbol("internals");function eO(e){return e&&String(e).trim().toLowerCase()}function eT(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eT):String(e)}let eA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eP(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return -1!==t.indexOf(r);if(Y.isRegExp(r))return r.test(t)}}class eI{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eO(t);if(!i)throw Error("header name must be a non-empty string");let o=Y.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eT(e))}let o=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Y.isString(e)&&(e=e.trim())&&!eA(e))o(e_(e),t);else if(Y.isHeaders(e))for(let[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=eO(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eO(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eP(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eO(e)){let i=Y.findKey(n,e);i&&(!t||eP(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eP(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let o=Y.findKey(n,i);if(o){t[o]=eT(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=eT(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eC]=this[eC]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eO(e);t[r]||(!function(e,t){let n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}function eR(e,t){let n=this||eS,r=t||n,i=eI.from(r.headers),o=r.data;return Y.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ej(e){return!!(e&&e.__CANCEL__)}function eM(e,t,n){X.call(this,null==e?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}function eN(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eI.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eI.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eI),Y.inherits(eM,X,{__CANCEL__:!0});var eD=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eL=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};let ez=(e,t,n=3)=>{let r=0,i=eD(50,250);return eL(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eF=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eB=e=>(...t)=>Y.asap(()=>e(...t));var e$=ew.hasStandardBrowserEnv?(o=new URL(ew.origin),a=ew.navigator&&/(msie|trident)/i.test(ew.navigator.userAgent),e=>(e=new URL(e,ew.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eV=ew.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eU(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||!1==n?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eW=e=>e instanceof eI?{...e}:e;function eq(e,t){t=t||{};let n={};function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eW(e),eW(t),n,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,a=o(e[r],t[r],r);Y.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eH=e=>{let t;let n=eq({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eI.from(s),n.url=ec(eU(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(r)){if(ew.hasStandardBrowserEnv||ew.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(ew.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(n)),i||!1!==i&&e$(n.url))){let e=o&&a&&eV.read(a);e&&s.set(o,e)}return n},eZ="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s;let l=eH(e),u=l.data,c=eI.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eI.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eN(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new X("Request aborted",X.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new X("Network Error",X.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ef;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new X(t,r.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&Y.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),h&&([o,s]=ez(h,!0),m.addEventListener("progress",o)),f&&m.upload&&([i,a]=ez(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{m&&(n(!t||t.type?new eM(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(v&&-1===ew.protocols.indexOf(v)){n(new X("Unsupported protocol "+v+":",X.ERR_BAD_REQUEST,e));return}m.send(u||null)})},eG=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof X?t:new eM(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new X(`timeout ${t} of ms exceeded`,X.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}};let eK=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eY=async function*(e,t){for await(let n of eX(e))yield*eK(n,t)},eX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eJ=(e,t,n,r)=>{let i;let o=eY(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},eQ="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e0=eQ&&"function"==typeof ReadableStream,e1=eQ&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e5=e0&&e2(()=>{let e=!1,t=new Request(ew.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e3=e0&&e2(()=>Y.isReadableStream(new Response("").body)),e4={stream:e3&&(e=>e.body)};eQ&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e4[e]||(e4[e]=Y.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})}));let e6=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(ew.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await e1(e)).byteLength:void 0},e7=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e6(t):n},e8={http:null,xhr:eZ,fetch:eQ&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eH(e);d=d?(d+"").toLowerCase():"text";let m=eG([a,s&&s.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&e5&&"get"!==i&&"head"!==i&&0!==(n=await e7(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(Y.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eF(n,ez(eB(c)));o=eJ(t.body,65536,e,r)}}Y.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:m,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t),l=e3&&("stream"===d||"response"===d);if(e3&&(u||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Y.toFiniteNumber(s.headers.get("content-length")),[n,r]=u&&eF(t,ez(eB(u),!0))||[];s=new Response(eJ(s.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let v=await e4[Y.findKey(e4,d)||"text"](s,e);return!l&&g&&g(),await new Promise((n,r)=>{eN(n,r,{data:v,headers:eI.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new X("Network Error",X.ERR_NETWORK,e,t),{cause:n.cause||n});throw X.from(n,n&&n.code,e,t)}})};Y.forEach(e8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e9=e=>`- ${e}`,te=e=>Y.isFunction(e)||null===e||!1===e;var tt=e=>{let t,n;let{length:r}=e=Y.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!te(t)&&void 0===(n=e8[(r=String(t)).toLowerCase()]))throw new X(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new X("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(e9).join("\n"):" "+e9(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eM(null,e)}function tr(e){return tn(e),e.headers=eI.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||eS.adapter)(e).then(function(t){return tn(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eI.from(t.headers),t},function(t){return!ej(t)&&(tn(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eI.from(t.response.headers))),Promise.reject(t)})}let ti="1.8.2",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ta={};to.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ti+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new X(r(i," has been removed"+(t?" in "+t:"")),X.ERR_DEPRECATED);return t&&!ta[i]&&(ta[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},to.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ts={assertOptions:function(e,t,n){if("object"!=typeof e)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new X("option "+o+" must be "+n,X.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new X("Unknown option "+o,X.ERR_BAD_OPTION)}},validators:to};let tl=ts.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ed,response:new ed}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eq(this.defaults,t);void 0!==i&&ts.assertOptions(i,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),null!=o&&(Y.isFunction(o)?t.paramsSerializer={serialize:o}:ts.assertOptions(o,{encode:tl.function,serialize:tl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ts.assertOptions(t,{baseUrl:tl.spelling("baseURL"),withXsrfToken:tl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Y.merge(a.common,a[t.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eI.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tr.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=tr.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ec(eU((e=eq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(eq(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eq(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});class tc{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eM(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tc(function(t){e=t}),cancel:e}}}let td={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(td).forEach(([e,t])=>{td[t]=e});let tf=function e(t){let n=new tu(t),r=p(tu.prototype.request,n);return Y.extend(r,tu.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eq(t,n))},r}(eS);tf.Axios=tu,tf.CanceledError=eM,tf.CancelToken=tc,tf.isCancel=ej,tf.VERSION=ti,tf.toFormData=eo,tf.AxiosError=X,tf.Cancel=tf.CanceledError,tf.all=function(e){return Promise.all(e)},tf.spread=function(e){return function(t){return e.apply(null,t)}},tf.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},tf.mergeConfig=eq,tf.AxiosHeaders=eI,tf.formToJSON=e=>ek(Y.isHTMLForm(e)?new FormData(e):e),tf.getAdapter=tt,tf.HttpStatusCode=td,tf.default=tf;var th=tf},41866:function(e,t,n){"use strict";n.d(t,{Ph:function(){return t3}});var r,i,o,a=n(8035),s=n(89988);function l(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 u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(87222);function f(e,t){if(null==e)return{};var n,r,i=(0,d.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function p(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,m=e.value,g=f(e,h),v=c((0,a.useState)(void 0!==i?i:void 0===t?"":t),2),y=v[0],b=v[1],x=c((0,a.useState)(void 0!==o?o:void 0!==n&&n),2),w=x[0],k=x[1],S=c((0,a.useState)(void 0!==m?m:void 0===r?null:r),2),E=S[0],_=S[1],C=(0,a.useCallback)(function(e,t){"function"==typeof l&&l(e,t),_(e)},[l]),O=(0,a.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)},[u]),T=(0,a.useCallback)(function(){"function"==typeof p&&p(),k(!0)},[p]),A=(0,a.useCallback)(function(){"function"==typeof d&&d(),k(!1)},[d]),P=void 0!==i?i:y,I=void 0!==o?o:w,R=void 0!==m?m:E;return(0,s.Z)((0,s.Z)({},g),{},{inputValue:P,menuIsOpen:I,onChange:C,onInputChange:O,onMenuClose:A,onMenuOpen:T,value:R})}var m=n(33067),g=n(65249);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,g.Z)(r.key),r)}}var y=n(24950);function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}var w=n(29094);function k(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=n(61339),E=n(49470),_=n(12928);let C=Math.min,O=Math.max,T=Math.round,A=Math.floor,P=e=>({x:e,y:e});function I(){return"undefined"!=typeof window}function R(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!I()&&(e instanceof Node||e instanceof j(e).Node)}function D(e){return!!I()&&(e instanceof Element||e instanceof j(e).Element)}function L(e){return!!I()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function z(e){return!!I()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B(e){return j(e).getComputedStyle(e)}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=function(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||M(e);return z(t)?t.host:t}(t);return["html","body","#document"].includes(R(n))?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=j(i);if(o){let e=V(a);return t.concat(a,a.visualViewport||[],F(i)?i:[],e&&n?$(e):[])}return t.concat(i,$(i,[],n))}function V(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){return D(e)?e:e.contextElement}function W(e){let t=U(e);if(!L(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=L(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=T(n)!==o||T(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?T(n.width):n.width)/r,s=(o?T(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let q=P(0);function H(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=U(e),s=P(1);t&&(r?D(r)&&(s=W(r)):s=W(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===j(a))&&i)?function(e){let t=j(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}(a):P(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=j(a),t=r&&D(r)?j(r):r,n=e,i=V(n);for(;i&&r&&t!==n;){let e=W(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=V(n=j(i))}}return function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:d,height:f,x:u,y:c})}function Z(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var G=a.useLayoutEffect,K=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Y=function(){};function X(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var J=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,w.Z)(e)&&null!==e?[e]:[]},Q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=f(e,K);return(0,s.Z)({},t)},ee=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function et(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function en(e){return et(e)?window.pageYOffset:e.scrollTop}function er(e,t){if(et(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Y,i=en(e),o=t-i,a=0;!function t(){var s;a+=10,er(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function eo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?er(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&er(e,Math.max(t.offsetTop-i,0))}function ea(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var es=!1,el="undefined"!=typeof window?window:{};el.addEventListener&&el.removeEventListener&&(el.addEventListener("p",Y,{get passive(){return es=!0}}),el.removeEventListener("p",Y,!1));var eu=es;function ec(e){return null!=e}for(var ed=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=c(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},ef=["children","innerProps"],eh=["children","innerProps"],ep=function(e){return"auto"===e?"bottom":e},em=(0,a.createContext)(null),eg=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,d=((0,a.useContext)(em)||{}).setPortalPlacement,f=(0,a.useRef)(null),h=c((0,a.useState)(r),2),p=h[0],m=h[1],g=c((0,a.useState)(null),2),v=g[0],y=g[1],b=u.spacing.controlHeight;return G(function(){var e=f.current;if(e){var t="fixed"===o,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:et(l)?window.innerHeight:l.clientHeight,v=en(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,w=g-p,k=x+v,S=c-v-p,E=f-g+v+y,_=v+p-b;switch(i){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return o&&ei(l,E,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return o&&ei(l,E,160),{placement:"bottom",maxHeight:a?w-y:S-y};if("auto"===i||a){var C=t,O=a?x:k;return O>=r&&(C=Math.min(O-y-s,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&er(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return o&&ei(l,_,160),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-b:k-b),o&&ei(l,_,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});m(a.maxHeight),y(a.placement),null==d||d(a.placement)}},[r,i,o,l,n,d,b]),t({ref:f,placerProps:(0,s.Z)((0,s.Z)({},e),{},{placement:v||ep(i),maxHeight:p})})},ev=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,s.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ey=["size"],eb=["innerProps","isRtl","size"],ex={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ew=function(e){var t=e.size,n=f(e,ey);return(0,S.tZ)("svg",(0,m.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ex},n))},ek=function(e){return(0,S.tZ)(ew,(0,m.Z)({size:20},e),(0,S.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eS=function(e){return(0,S.tZ)(ew,(0,m.Z)({size:20},e),(0,S.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eE=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},e_=(0,S.F4)(o||(r=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})))),eC=function(e){var t=e.delay,n=e.offset;return(0,S.tZ)("span",{css:(0,S.iv)({animation:"".concat(e_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eO=["data"],eT=["innerRef","isDisabled","isHidden","inputClassName"],eA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,s.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eA)},eI=function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",n,t)},eR={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,S.tZ)(ek,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,S.tZ)("div",(0,m.Z)({ref:i},ee(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,S.tZ)(eS,null))},DownChevron:eS,CrossIcon:ek,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"group",{group:!0}),s),(0,S.tZ)(o,(0,m.Z)({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),(0,S.tZ)("div",null,t))},GroupHeading:function(e){var t=Q(e);t.data;var n=f(t,eO);return(0,S.tZ)("div",(0,m.Z)({},ee(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,S.tZ)("span",(0,m.Z)({},t,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Q(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,u=f(r,eT);return(0,S.tZ)("div",(0,m.Z)({},ee(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,S.tZ)("input",(0,m.Z)({className:t({input:!0},l),ref:i,style:(0,s.Z)({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},eA),disabled:o},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,eb);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,S.tZ)(eC,{delay:0,offset:n}),(0,S.tZ)(eC,{delay:160,offset:!0}),(0,S.tZ)(eC,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,l=e.menuPosition,u=(0,a.useRef)(null),d=(0,a.useRef)(null),f=c((0,a.useState)(ep(o)),2),h=f[0],p=f[1],g=(0,a.useMemo)(function(){return{setPortalPlacement:p}},[]),v=c((0,a.useState)(null),2),y=v[0],b=v[1],x=(0,a.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===l?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&b({offset:i,rect:t})}},[r,l,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);G(function(){x()},[x]);var w=(0,a.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&u.current&&(d.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=U(e),d=o||a?[...c?$(c):[],...$(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=M(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=A(d),m=A(i.clientWidth-(c+f)),g={rootMargin:-p+"px "+-m+"px "+-A(i.clientHeight-(d+h))+"px "+-A(c)+"px",threshold:O(0,C(1,l))||1},v=!0;function y(t){let r=t[0].intersectionRatio;if(r!==l){if(!v)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Z(u,e.getBoundingClientRect())||a(),v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?H(e):null;return u&&function t(){let r=H(e);m&&!Z(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(r,u.current,x,{elementResize:("ResizeObserver"in window)}))},[r,x]);G(function(){w()},[w]);var k=(0,a.useCallback)(function(e){u.current=e,w()},[w]);if(!t&&"fixed"!==l||!y)return null;var E=(0,S.tZ)("div",(0,m.Z)({ref:k},ee((0,s.Z)((0,s.Z)({},e),{},{offset:y.offset,position:l,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,S.tZ)(em.Provider,{value:g},t?(0,_.createPortal)(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,eh);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=f(e,ef);return(0,S.tZ)("div",(0,m.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,l=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return(0,S.tZ)(u,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},(0,S.tZ)(c,{data:r,innerProps:(0,s.Z)({},ee(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,S.tZ)(d,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:eI,MultiValueLabel:eI,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({role:"button"},n),t||(0,S.tZ)(ek,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,S.tZ)("div",(0,m.Z)({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ej=n(11434),eM={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eN=function(e){return(0,S.tZ)("span",(0,m.Z)({css:eM},e))},eD={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eL=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,l=e.selectValue,u=e.selectProps,c=e.id,d=e.isAppleDevice,f=u.ariaLiveMessages,h=u.getOptionLabel,p=u.inputValue,m=u.isMulti,g=u.isOptionDisabled,v=u.isSearchable,y=u.menuIsOpen,b=u.options,x=u.screenReaderStatus,w=u.tabSelectsValue,k=u.isLoading,E=u["aria-label"],_=u["aria-live"],C=(0,a.useMemo)(function(){return(0,s.Z)((0,s.Z)({},eD),f||{})},[f]),O=(0,a.useMemo)(function(){var e="";if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,u=i||n||(Array.isArray(a)?null:a),c=u?h(u):"",d=r||o||void 0,f=d?d.map(h):[],p=(0,s.Z)({isDisabled:u&&g(u,l),label:c,labels:f},t);e=C.onChange(p)}return e},[t,C,g,l,h]),T=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&l&&l.includes(n));if(t&&C.onFocus){var a={focused:t,label:h(t),isDisabled:g(t,l),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:l,isAppleDevice:d};e=C.onFocus(a)}return e},[n,r,h,g,C,i,l,d]),A=(0,a.useMemo)(function(){var e="";if(y&&b.length&&!k&&C.onFilter){var t=x({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,y,C,b,x,k]),P=(null==t?void 0:t.action)==="initial-input-focus",I=(0,a.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":y?"menu":"input";e=C.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,l),isMulti:m,isSearchable:v,tabSelectsValue:w,isInitialFocus:P})}return e},[E,n,r,m,g,v,y,C,l,w,P]),R=(0,S.tZ)(a.Fragment,null,(0,S.tZ)("span",{id:"aria-selection"},O),(0,S.tZ)("span",{id:"aria-focused"},T),(0,S.tZ)("span",{id:"aria-results"},A),(0,S.tZ)("span",{id:"aria-guidance"},I));return(0,S.tZ)(a.Fragment,null,(0,S.tZ)(eN,{id:c},P&&R),(0,S.tZ)(eN,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&R))},ez=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eF=RegExp("["+ez.map(function(e){return e.letters}).join("")+"]","g"),eB={},e$=0;e$<ez.length;e$++)for(var eV=ez[e$],eU=0;eU<eV.letters.length;eU++)eB[eV.letters[eU]]=eV.base;var eW=function(e){return e.replace(eF,function(e){return eB[e]})},eq=(0,ej.Z)(eW),eH=function(e){return e.replace(/^\s+|\s+$/g,"")},eZ=function(e){return"".concat(e.label," ").concat(e.value)},eG=["innerRef"];function eK(e){var t=e.innerRef,n=ed(f(e,eG),"onExited","in","enter","exit","appear");return(0,S.tZ)("input",(0,m.Z)({ref:t},n,{css:(0,S.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eY=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},eX=["boxSizing","height","overflow","paddingRight","position"],eJ={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function eQ(e){e.cancelable&&e.preventDefault()}function e0(e){e.stopPropagation()}function e1(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function e2(){return"ontouchstart"in window||navigator.maxTouchPoints}var e5=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e3=0,e4={capture:!1,passive:!1},e6=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},e7={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e8(e){var t,n,r,i,o,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,k,E,_,C,O=e.children,T=e.lockEnabled,A=e.captureEnabled,P=(n=(t={isEnabled:void 0===A||A,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,s=t.onTopLeave,l=(0,a.useRef)(!1),u=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),f=(0,a.useCallback)(function(e,t){if(null!==d.current){var n=d.current,a=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,m=c-f-a,g=!1;m>t&&l.current&&(i&&i(e),l.current=!1),p&&u.current&&(s&&s(e),u.current=!1),p&&t>m?(r&&!l.current&&r(e),h.scrollTop=c,g=!0,l.current=!0):!p&&-t>a&&(o&&!u.current&&o(e),h.scrollTop=0,g=!0,u.current=!0),g&&eY(e)}},[r,i,o,s]),h=(0,a.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),g=(0,a.useCallback)(function(e){if(e){var t=!!eu&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}},[m,p,h]),v=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))},[m,p,h]),(0,a.useEffect)(function(){if(n){var e=d.current;return g(e),function(){v(e)}}},[n,g,v]),function(e){d.current=e}),I=(b=(y={isEnabled:T}).isEnabled,w=void 0===(x=y.accountForScrollbars)||x,k=(0,a.useRef)({}),E=(0,a.useRef)(null),_=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;if(w&&eX.forEach(function(e){var t=n&&n[e];k.current[e]=t}),w&&e3<1){var r=parseInt(k.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(eJ).forEach(function(e){var t=eJ[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&e2()&&(t.addEventListener("touchmove",eQ,e4),e&&(e.addEventListener("touchstart",e1,e4),e.addEventListener("touchmove",e0,e4))),e3+=1}},[w]),C=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;e3=Math.max(e3-1,0),w&&e3<1&&eX.forEach(function(e){var t=k.current[e];n&&(n[e]=t)}),t&&e2()&&(t.removeEventListener("touchmove",eQ,e4),e&&(e.removeEventListener("touchstart",e1,e4),e.removeEventListener("touchmove",e0,e4)))}},[w]),(0,a.useEffect)(function(){if(b){var e=E.current;return _(e),function(){C(e)}}},[b,_,C]),function(e){E.current=e});return(0,S.tZ)(a.Fragment,null,T&&(0,S.tZ)("div",{onClick:e6,css:e7}),O(function(e){P(e),I(e)}))}var e9={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},te=function(e){var t=e.name,n=e.onFocus;return(0,S.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:e9,value:"",onChange:function(){}})};function tt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var tn=function(e){return e.label},tr=function(e){return e.value},ti={clearIndicator:eE,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius,l=i.spacing;return(0,s.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:eE,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,s.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return(0,s.Z)((0,s.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eP),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,s.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:ev,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return(0,s.Z)((n={label:"menu"},(0,E.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,E.Z)(n,"position","absolute"),(0,E.Z)(n,"width","100%"),(0,E.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,s.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,s.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,s.Z)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return(0,s.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ev,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return(0,s.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,s.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,s.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,s.Z)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},to={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ta={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ea(),captureMenuScroll:!ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,s.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eZ,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,l=n.matchFrom,u=a?eH(t):t,c=a?eH(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=eq(u),c=eW(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:tn,getOptionValue:tr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ts(e,t,n,r){var i=tm(e,t,n),o=tg(e,t,n),a=th(e,t),s=tp(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function tl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ts(e,n,t,r)}).filter(function(t){return td(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ts(e,n,t,r);return td(e,o)?o:void 0}).filter(ec)}function tu(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,k(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,k(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function td(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!ty(e)||!i)&&tv(e,{label:o,value:a,data:r},void 0===n?"":n)}var tf=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},th=function(e,t){return e.getOptionLabel(t)},tp=function(e,t){return e.getOptionValue(t)};function tm(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tp(e,t);return n.some(function(t){return tp(e,t)===r})}function tv(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ty=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tb=1,tx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,y.Z)(e,t)}(o,e);var t,n,r,i=(t=x(),function(){var e,n=b(o);return e=t?Reflect.construct(n,arguments,b(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==(0,w.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=tt(/^Mac/i)||tt(/^iPhone/i)||tt(/^iPad/i)||tt(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else if(l){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(k(a),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tc(tl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return X.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return th(t.props,e)},t.getOptionValue=function(e){return tp(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ti[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,(0,s.Z)((0,s.Z)({},eR),e.components)},t.buildCategorizedOptions=function(){return tl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tu(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,s.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&et(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ty(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,m=h.focusedValue,g=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tb),t.state.selectValue=J(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=tf(n,r[a])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(to):(0,s.Z)((0,s.Z)({},to),this.props.theme):to}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return tm(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tv(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,l=e.form,u=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,v=r||this.getElementId("input"),y=(0,s.Z)((0,s.Z)((0,s.Z)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(d,(0,m.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:l,type:"text",value:i},y)):a.createElement(eK,(0,m.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!d)return p?null:a.createElement(l,(0,m.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map(function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,m.Z)({},u,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var w=y[0];return a.createElement(s,(0,m.Z)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,m.Z)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?a.createElement(e,(0,m.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return a.createElement(n,(0,m.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,m.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,b=p.loadingMessage,x=p.minMenuHeight,w=p.maxMenuHeight,k=p.menuIsOpen,S=p.menuPlacement,E=p.menuPosition,_=p.menuPortalTarget,C=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,T=p.noOptionsMessage,A=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!k)return null;var I=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,s=e.isSelected,l=e.label,u=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return a.createElement(d,(0,m.Z)({},f,{innerProps:y,data:i,isDisabled:o,isSelected:s,key:v,label:l,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,s=e.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return a.createElement(r,(0,m.Z)({},f,{key:l,data:n,options:o,Heading:i,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return I(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return I(e,"".concat(e.index))});else if(y){var R=b({inputValue:v});if(null===R)return null;e=a.createElement(u,f,R)}else{var j=T({inputValue:v});if(null===j)return null;e=a.createElement(c,f,j)}var M={minMenuHeight:x,maxMenuHeight:w,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:O},N=a.createElement(eg,(0,m.Z)({},f,M),function(n){var r=n.ref,i=n.placerProps,l=i.placement,u=i.maxHeight;return a.createElement(o,(0,m.Z)({},f,M,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:l}),a.createElement(e8,{captureEnabled:g,onTopArrive:A,onBottomArrive:P,lockEnabled:C},function(n){return a.createElement(s,(0,m.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:u,focusedOption:h}),e)}))});return _||"fixed"===E?a.createElement(l,(0,m.Z)({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:S,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(te,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:o,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:o,type:"hidden",value:""});return a.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return a.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(eL,(0,m.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,l=o.id,u=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,(0,m.Z)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,m.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),a.createElement(i,(0,m.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,m.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,l=t.isFocused,u=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,m=e.isMulti,g=J(f),v={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?tu(tl(e,g)):[],x=h?tc(tl(e,g),"".concat(c,"-option")):[],w=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,k=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],S=tf(x,k);v={selectValue:g,focusedOption:k,focusedOptionId:S,focusableOptionsWithIds:x,focusedValue:w,clearFocusValueOnUpdate:!1}}var E=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=a,C=l&&u;return l&&!C&&(_={value:(n=g[0]||null,m?g:n),options:g,action:"initial-input-focus"},C=!u),(null==a?void 0:a.action)==="initial-input-focus"&&(_=null),(0,s.Z)((0,s.Z)((0,s.Z)({},v),E),{},{prevProps:e,ariaSelection:_,prevWasFocused:C})}}],n&&v(o.prototype,n),r&&v(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(a.Component);tx.defaultProps=ta,n(25660);var tw=(0,a.forwardRef)(function(e,t){var n=p(e);return a.createElement(tx,(0,m.Z)({ref:t},n))}),tk=n(86994),tS=n(47378),tE=n(91348),t_=n(6272),tC=n(96590),tO=n(89377),tT=n(30282),tA=n(84713),tP=n(41452),tI=n(63589),tR=n(17493),tj=n(55611),tM=n(35775),tN=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tL={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tD(e,t,r)})||n.some(function(t){return tD(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tz(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,l=void 0===o?tL.formatCreateLabel:o,u=e.isValidNewOption,c=void 0===u?tL.isValidNewOption:u,d=e.getNewOptionData,h=void 0===d?tL.getNewOptionData:d,p=e.onCreateOption,m=e.options,g=void 0===m?[]:m,v=e.onChange,y=f(e,tN),b=y.getOptionValue,x=void 0===b?tr:b,w=y.getOptionLabel,S=void 0===w?tn:w,E=y.inputValue,_=y.isLoading,C=y.isMulti,O=y.value,T=y.name,A=(0,a.useMemo)(function(){return c(E,J(O),g,{getOptionValue:x,getOptionLabel:S})?h(E,l(E)):void 0},[l,h,S,x,E,c,g,O]),P=(0,a.useMemo)(function(){return(n||!_)&&A?"first"===i?[A].concat(k(g)):[].concat(k(g),[A]):g},[n,i,_,A,g]),I=(0,a.useCallback)(function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===A){if(p)p(E);else{var r,i=h(E,E);v((r=[].concat(k(J(O)),[i]),C?r:i),{action:"create-option",name:T,option:i})}return}v(e,t)},[h,E,C,T,A,p,v,O]);return(0,s.Z)((0,s.Z)({},y),{},{options:P,onChange:I})}var tF=(0,a.forwardRef)(function(e,t){var n=tz(p(e));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tB=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function t$(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var l=e.isLoading,u=e.onInputChange,d=e.filterOption,h=f(e,tB),p=h.inputValue,m=(0,a.useRef)(void 0),g=(0,a.useRef)(!1),v=c((0,a.useState)(Array.isArray(n)?n:void 0),2),y=v[0],b=v[1],x=c((0,a.useState)(void 0!==p?p:""),2),w=x[0],k=x[1],S=c((0,a.useState)(!0===n),2),_=S[0],C=S[1],O=c((0,a.useState)(void 0),2),T=O[0],A=O[1],P=c((0,a.useState)([]),2),I=P[0],R=P[1],j=c((0,a.useState)(!1),2),M=j[0],N=j[1],D=c((0,a.useState)({}),2),L=D[0],z=D[1],F=c((0,a.useState)(void 0),2),B=F[0],$=F[1],V=c((0,a.useState)(void 0),2),U=V[0],W=V[1];i!==U&&(z({}),W(i)),n!==B&&(b(Array.isArray(n)?n:void 0),$(n)),(0,a.useEffect)(function(){return g.current=!0,function(){g.current=!1}},[]);var q=(0,a.useCallback)(function(e,t){if(!o)return t();var n=o(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[o]);(0,a.useEffect)(function(){!0===n&&q(w,function(e){g.current&&(b(e||[]),C(!!m.current))})},[]);var H=(0,a.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n){m.current=void 0,k(""),A(""),R([]),C(!1),N(!1);return}if(i&&L[n])k(n),A(n),R(L[n]),C(!1),N(!1);else{var r=m.current={};k(n),C(!0),N(!T),q(n,function(e){g&&r===m.current&&(m.current=void 0,C(!1),A(n),R(e||[]),N(!1),z(e?(0,s.Z)((0,s.Z)({},L),{},(0,E.Z)({},n,e)):L))})}},[i,q,T,L,u]),Z=M?[]:w&&T?I:y||[];return(0,s.Z)((0,s.Z)({},h),{},{options:Z,isLoading:_||void 0!==l&&l,onInputChange:H,filterOption:void 0===d?null:d})}var tV=(0,a.forwardRef)(function(e,t){var n=p(t$(e));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tU=(0,a.forwardRef)(function(e,t){var n=tz(p(t$(e)));return a.createElement(tx,(0,m.Z)({ref:t},n))}),tW=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...m}=e;return{...m}},tq=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tH=e=>tq(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tZ=e=>{let t=tH((0,tk.F)().components.Input.defaultProps.size),n=null!=e?e:t;return(0,tS.S)("string"==typeof n?[n]:n,{fallback:"md"})||t},tG=e=>(0,tM.jsx)(tO.J,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),tK=e=>(0,tM.jsx)(tO.J,{focusable:"false","aria-hidden":!0,...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),tY=e=>e?({bottom:"top",top:"bottom"})[e]:"top",tX=e=>(0,tM.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,tM.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),tJ=e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme,tQ=e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant,t0=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,t1=e=>(0,tM.jsx)(tO.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,tM.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),t2={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={...(0,t_.m)("CloseButton",{size:s}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},u=null!=o&&o.clearIndicator?o.clearIndicator(l,e):l,c={width:"1em",height:"1em"},d=null!=o&&o.crossIcon?o.crossIcon(c,e):c;return(0,tM.jsx)(tE.x,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:u,"aria-label":"Clear selected options",...i,children:t||(0,tM.jsx)(tK,{sx:d})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h,isInvalid:p,isReadOnly:m}}=e,g=tZ(c),{field:{height:v,h:y,...b}}=(0,t_.j)("Input",{size:g,variant:d,focusBorderColor:f,errorBorderColor:h}),x={...b,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:v||y,...a?{pointerEvents:"none"}:{}},w=null!=u&&u.control?u.control(x,e):x;return(0,tM.jsx)(tE.x,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),sx:w,...o,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!p||void 0,"data-disabled":!!a||void 0,"data-readonly":!!m||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,useBasicStyles:a,size:s,focusBorderColor:l,errorBorderColor:u,variant:c}}=e,d=tZ(s),f=(0,t_.j)("Input",{size:d,variant:c,focusBorderColor:l,errorBorderColor:u}),h={sm:"16px",md:"20px",lg:"24px"}[d],p={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:h,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},m=null!=o&&o.dropdownIndicator?o.dropdownIndicator(p,e):p,g={height:"1em",width:"1em"},v=null!=o&&o.downChevron?o.downChevron(g,e):g;return(0,tM.jsx)(tE.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:m,children:t||(0,tM.jsx)(tG,{sx:v})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=u,h={},p=null!=f&&f.group?f.group(h,e):h;return(0,tM.jsxs)(tE.x,{...c,className:r({group:!0},n),sx:p,children:[(0,tM.jsx)(a,{...s,selectProps:u,cx:r,theme:i,getStyles:o,getClassNames:d,children:l}),(0,tM.jsx)(tE.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,hasStickyGroupHeaders:o}}=e,{data:a,...s}=tW(e),l=(0,t_.j)("Menu"),u=tZ(i),c={...l.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[u],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[u],margin:0,borderBottomWidth:o?"1px":0,position:o?"sticky":"static",top:-2,bg:l.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,tM.jsx)(tE.x,{...s,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:i,variant:o}}=e,a={opacity:1,...i||"outline"!==o?{display:"none"}:{}},s=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,tM.jsx)(tC.i,{className:n({"indicator-separator":!0},t),sx:s,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=o&&o.indicatorsContainer?o.indicatorsContainer(a,e):a;return(0,tM.jsx)(tE.x,{...i,className:r({indicators:!0},n),sx:s,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,isReadOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=tW(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=null!=i&&i.inputContainer?i.inputContainer(f,e):f,p={background:0,opacity:l?0:1,width:"100%",...d},m=null!=i&&i.input?i.input(p,e):p;return(0,tM.jsx)(tE.x,{className:n({"input-container":!0},t),"data-value":r||"",sx:h,children:(0,tM.jsx)(tA.m.input,{className:n({input:!0},u),ref:a,sx:m,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i,size:o},color:a,emptyColor:s,speed:l,thickness:u,spinnerSize:c}=e,d=tZ(o),f={marginRight:3},h=null!=i&&i.loadingIndicator?i.loadingIndicator(f,e):f;return(0,tM.jsx)(tT.$,{className:n({indicator:!0,"loading-indicator":!0},t),sx:h,...r,size:c||({sm:"xs",md:"sm",lg:"md"})[d],color:a,emptyColor:s,speed:l,thickness:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=o&&o.loadingMessage?o.loadingMessage(l,e):l;return(0,tM.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:u,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",[tY(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},u=null!=s&&s.menu?s.menu(l,e):l;return(0,tM.jsx)(tP.v,{children:(0,tM.jsx)(tE.x,{...i,ref:o,className:n({menu:!0},t),sx:u,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:i,children:o,maxHeight:a,isMulti:s,innerProps:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h}}=e,p=(0,t_.j)("Menu"),m=tZ(c),g=(0,t_.j)("Input",{size:m,variant:d,focusBorderColor:f,errorBorderColor:h}).field,v={...p.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(t=p.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},y=null!=u&&u.menuList?u.menuList(v,e):v;return(0,tM.jsx)(tE.x,{...l,className:r({"menu-list":!0,"menu-list--is-multi":s},n),sx:y,ref:i,children:o})},MultiValue:e=>{let{children:t,className:n,components:r,cx:i,data:o,innerProps:a,isDisabled:s,isFocused:l,removeProps:u,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:h,Remove:p}=r,{chakraStyles:m,colorScheme:g,tagVariant:v,size:y}=c,b=tZ(y),x="",w="",k=!1;tJ(o)&&(x=o.colorScheme),tQ(o)&&(w=o.variant),t0(o)&&(k=o.isFixed);let S=(0,t_.j)("Tag",{size:b,colorScheme:x||g,variant:w||v||(k?"solid":"subtle")}),E={...S.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},_=null!=m&&m.multiValue?m.multiValue(E,e):E,C={...S.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=m&&m.multiValueLabel?m.multiValueLabel(C,e):C,T={...S.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},A=null!=m&&m.multiValueRemove?m.multiValueRemove(T,e):T;return(0,tM.jsxs)(f,{data:o,innerProps:{className:i({"multi-value":!0,"multi-value--is-disabled":s},n),...a},sx:_,selectProps:c,children:[(0,tM.jsx)(h,{data:o,innerProps:{className:i({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,tM.jsx)(p,{data:o,innerProps:{className:i({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...u},sx:A,selectProps:c,isFocused:l})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tM.jsx)(tA.m.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tM.jsx)(tA.m.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:i,sx:o}=e;return t0(i)&&i.isFixed?null:(0,tM.jsx)(tE.x,{...n,role:"button",sx:o,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,tM.jsx)(t1,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tZ(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=o&&o.noOptionsMessage?o.noOptionsMessage(l,e):l;return(0,tM.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:u,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:h,selectedOptionColorScheme:p}}=e,m=(0,t_.j)("Menu").item,g=tZ(c),v=(0,tI.ff)(`${p}.500`,`${p}.300`),y=(0,tI.ff)("white","black"),b="color"===h&&l,x={...m,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:g,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[g],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[g],...b?{bg:v,color:y,_active:{bg:v}}:{}},w=null!=u&&u.option?u.option(x,e):x;return(0,tM.jsxs)(tE.x,{...i,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),sx:w,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:["check"===h&&(!d||!1===f)&&(0,tM.jsx)(tR.O,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:l?1:0,children:(0,tM.jsx)(tX,{})}),o]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=o&&o.placeholder?o.placeholder(a,e):a;return(0,tM.jsx)(tE.x,{...i,className:r({placeholder:!0},n),sx:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:l}}=e,u={position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},c=null!=l&&l.container?l.container(u,e):u;return(0,tM.jsx)(tE.x,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=null!=a&&a.singleValue?a.singleValue(s,e):s;return(0,tM.jsx)(tE.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),sx:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,size:l,variant:u,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,h=tZ(l),p={display:i&&o&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,t_.j)("Input",{size:h,variant:u,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},m=null!=s&&s.valueContainer?s.valueContainer(p,e):p;return(0,tM.jsx)(tE.x,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),sx:m,children:t})}},t5=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:i,isInvalid:o,isReadOnly:a,required:s,isRequired:l,inputId:u,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:h,variant:p,focusBorderColor:m,errorBorderColor:g,chakraStyles:v={},onFocus:y,onBlur:b,menuIsOpen:x,...w})=>{var k;let{variant:S}=(0,tk.F)().components.Input.defaultProps,E=(0,tj.Y)({id:u,isDisabled:i,isInvalid:o,isRequired:l,isReadOnly:a,onFocus:y,onBlur:b}),_=null!=x?x:!E.readOnly&&void 0,C=d;["color","check"].includes(d)||(C="color");let O=f||h||"blue";return"string"!=typeof O&&(O="blue"),{components:{...t2,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:C,selectedOptionColorScheme:O,variant:null!=p?p:S,chakraStyles:v,focusBorderColor:m,errorBorderColor:g,onFocus:E.onFocus,onBlur:E.onBlur,isDisabled:E.disabled,isInvalid:!!E["aria-invalid"],inputId:E.id,isReadOnly:E.readOnly,required:null!=s?s:E.required,menuIsOpen:_,...w,"aria-invalid":null!=(k=w["aria-invalid"])?k:E["aria-invalid"]}},t3=(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tw,{ref:t,...n})});(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tF,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tV,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tM.jsx)(tU,{ref:t,...n})})},39755:function(e,t,n){"use strict";let r,i;function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eN},B:function(){return eM},C:function(){return tc},D:function(){return e_},E:function(){return tS},F:function(){return q},G:function(){return tQ},H:function(){return ed},I:function(){return tq},J:function(){return t2},K:function(){return t1},L:function(){return eV},M:function(){return tW},N:function(){return ey},O:function(){return B},P:function(){return ea},Q:function(){return W},R:function(){return tC},S:function(){return eP},T:function(){return es},U:function(){return eS},V:function(){return ti},W:function(){return eI},X:function(){return ta},Y:function(){return td},Z:function(){return tm},_:function(){return eB},a:function(){return t_},a0:function(){return tE},a1:function(){return eW},a2:function(){return eq},a3:function(){return e8},a4:function(){return Y},a5:function(){return et},a6:function(){return e9},a7:function(){return er},a8:function(){return function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tA(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tR(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,l=i[n];return er(l)&&s.isScriptable(n)&&(l=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),tI(e,l)&&(l=tM(i._scopes,i,e,l)),l}(n,l,t,r)),L(l)&&l.length&&(l=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(z(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tM(i,o,t,u);n.push(e(r,a,s&&s[t],l))}}return n}(n,l,t,s.isIndexable)),tI(n,l)&&(l=e(l,o,a&&a[n],s)),l})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tT},aA:function(){return t7},aB:function(){return eH},aC:function(){return t8},aD:function(){return tu},aE:function(){return eC},aF:function(){return M},aG:function(){return ew},aH:function(){return ev},aI:function(){return ex},aJ:function(){return eg},aK:function(){return eE},aL:function(){return e7},aM:function(){return ep},aN:function(){return to},aO:function(){return eD},aP:function(){return ej},aa:function(){return tA},ab:function(){return X},ac:function(){return N},ad:function(){return eU},ae:function(){return t0},af:function(){return ts},ag:function(){return ei},ah:function(){return H},ai:function(){return eo},aj:function(){return eR},ak:function(){return tx},al:function(){return tU},am:function(){return nr},an:function(){return nn},ao:function(){return t3},ap:function(){return t4},aq:function(){return t5},ar:function(){return th},as:function(){return tp},at:function(){return tl},au:function(){return tg},av:function(){return tw},aw:function(){return tk},ax:function(){return nt},ay:function(){return eT},az:function(){return t6},b:function(){return L},c:function(){return e0},d:function(){return tr},e:function(){return eJ},f:function(){return ee},g:function(){return F},h:function(){return en},i:function(){return z},j:function(){return tO},k:function(){return D},l:function(){return ez},m:function(){return V},n:function(){return U},o:function(){return e4},p:function(){return eA},q:function(){return eZ},r:function(){return e$},s:function(){return em},t:function(){return ek},u:function(){return eF},v:function(){return $},w:function(){return eG},x:function(){return eb},y:function(){return tz},z:function(){return tX}});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return a(o(2.55*e),0,255)}function l(e){return a(o(255*e),0,255)}function u(e){return a(o(e/2.55)/100,0,1)}function c(e){return a(o(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],m=e=>(240&e)>>4==(15&e),g=e=>m(e.r)&&m(e.g)&&m(e.b)&&m(e.a),v=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function w(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function k(e){let t,n,r;let i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=i===s?(o-a)/r+(o<a?6:0):o===s?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function S(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(l)}function E(e){return(e%360+360)%360}let _={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,T=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,A=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function P(e,t,n){if(e){let r=k(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=S(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function I(e,t){return e?Object.assign(t||{},e):e}function R(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=l(e[3]))):(t=I(e,{r:0,g:0,b:0,a:1})).a=l(t.a),t}class j{constructor(e){let t;if(e instanceof j)return e;let n=typeof e;if("object"===n)t=R(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===o?17*d[e[4]]:255}:(7===o||9===o)&&(i={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===o?d[e[7]]<<4|d[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},a=Object.keys(C),s=Object.keys(_);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,_[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=O.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?s(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?s(t):a(t,0,255)),g:n=255&(i[4]?s(n):a(n,0,255)),b:r=255&(i[6]?s(r):a(r,0,255)),a:o}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?s(+n[5]):l(+n[5]));let i=E(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(t="hwb"===n[1]?S(w,i,o,a):"hsv"===n[1]?S(x,i,o,a):S(b,i,o,a))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=I(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=R(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=g(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+v(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=k(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=A(u(e.r)),i=A(u(e.g)),o=A(u(e.b));return{r:l(T(r+n*(A(u(t.r))-r))),g:l(T(i+n*(A(u(t.g))-i))),b:l(T(o+n*(A(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new j(this.rgb)}alpha(e){return this._rgb.a=l(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return P(this._rgb,2,e),this}darken(e){return P(this._rgb,2,-e),this}saturate(e){return P(this._rgb,1,e),this}desaturate(e){return P(this._rgb,1,-e),this}rotate(e){var t,n;return(n=k(t=this._rgb))[0]=E(n[0]+e),n=S(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}function M(){}let N=(i=0,()=>i++);function D(e){return null==e}function L(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function z(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function F(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function B(e,t){return F(e)?e:t}function $(e,t){return void 0===e?t:e}let V=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,U=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function W(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function q(e,t,n,r){let i,o,a;if(L(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(z(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function H(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Z(e){if(L(e))return e.map(Z);if(z(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=Z(e[n[i]]);return t}return e}function G(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function K(e,t,n,r){if(!G(e))return;let i=t[e],o=n[e];z(i)&&z(o)?Y(i,o,r):t[e]=Z(o)}function Y(e,t,n){let r;let i=L(t)?t:[t],o=i.length;if(!z(e))return e;let a=(n=n||{}).merger||K;for(let t=0;t<o;++t){if(!z(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function X(e,t){return Y(e,t,{merger:J})}function J(e,t,n){if(!G(e))return;let r=t[e],i=n[e];z(r)&&z(i)?X(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Z(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){return(Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let ea=Math.PI,es=2*ea,el=es+ea,eu=Number.POSITIVE_INFINITY,ec=ea/180,ed=ea/2,ef=ea/4,eh=2*ea/3,ep=Math.log10,em=Math.sign;function eg(e,t,n){return Math.abs(e-t)<n}function ev(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=eg(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!("symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ew(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ek(e){return ea/180*e}function eS(e){return 180/ea*e}function eE(e){if(!F(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function e_(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*ea&&(o+=es),{angle:o,distance:i}}function eC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eO(e,t){return(e-t+el)%es-ea}function eT(e){return(e%es+es)%es}function eA(e,t,n,r){let i=eT(e),o=eT(t),a=eT(n),s=eT(o-i),l=eT(a-i),u=eT(i-o),c=eT(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function eP(e,t,n){return Math.max(t,Math.min(n,e))}function eI(e){return eP(e,-32768,32767)}function eR(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ej(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eM=(e,t,n,r)=>ej(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eN=(e,t,n)=>ej(e,n,r=>e[r][t]>=n);function eD(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eL=["push","pop","shift","splice","unshift"];function ez(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eL.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eF(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eL.forEach(t=>{delete e[t]}),delete e._chartjs)}function eB(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let e$="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eV(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,e$.call(window,()=>{r=!1,e.apply(t,n)}))}}function eU(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eW=e=>"start"===e?"left":"end"===e?"right":"center",eq=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eH=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eZ(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:a,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(eM(l,c,d).lo,n?r:eM(t,c,a.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!D(e[s.axis]));i-=Math.max(0,e)}i=eP(i,0,r-1)}if(p){let e=Math.max(eM(l,a.axis,f,!0).hi+1,n?0:eM(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!D(e[s.axis]));e+=Math.max(0,t)}o=eP(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eG(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eK=e=>0===e||1===e,eY=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*es/n)),eX=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*es/n)+1,eJ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(ea*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eK(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eK(e)?e:eY(e,.075,.3),easeOutElastic:e=>eK(e)?e:eX(e,.075,.3),easeInOutElastic:e=>eK(e)?e:e<.5?.5*eY(2*e,.1125,.45):.5+.5*eX(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*(((t*=1.525)+1)*e-t)*.5:.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eJ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eJ.easeInBounce(2*e):.5*eJ.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new j(e)}function e1(e){return eQ(e)?e:new j(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e3=new Map;function e4(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e3.get(n);return r||(r=new Intl.NumberFormat(e,t),e3.set(n,r)),r})(t,n).format(e)}let e6={values:e=>L(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let a=ep(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),e4(e,i,l)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ep(e))))||t>.8*n.length?e6.numeric.call(this,e,t,n):""}};var e7={formatters:e6};let e8=Object.create(null),e9=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?Y(te(e,t),n):Y(te(e,""),t)}class tn{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e9,e,t)}override(e,t){return tt(e8,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return z(e)?Object.assign({},t,e):$(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e7.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ti(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n,r){let i,o,a,s,l;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(s=n[i])||L(s)){if(L(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||L(l)||(d=ti(e,u,c,d,l))}else d=ti(e,u,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function ta(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ts(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tl(e,t,n,r){tu(e,t,n,r,null)}function tu(e,t,n,r,i){let o,a,s,l,u,c,d,f;let h=t.pointStyle,p=t.rotation,m=t.radius,g=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(m)&&!(m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,es):e.arc(n,r,m,0,es),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":u=.516*m,a=Math.cos(g+ef)*(l=m-u),d=Math.cos(g+ef)*(i?i/2-u:l),s=Math.sin(g+ef)*l,f=Math.sin(g+ef)*(i?i/2-u:l),e.arc(n-d,r-s,u,g-ea,g-ed),e.arc(n+f,r-a,u,g-ed,g),e.arc(n+d,r+s,u,g,g+ed),e.arc(n-f,r+a,u,g+ed,g+ea),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}g+=ef;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":g+=ef;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),g+=ef,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function td(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function th(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tm(e,t,n,r,i,o={}){let a,s;let l=L(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),D(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),D(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ea,ea,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ea,ed,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ed,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ed,!0),e.lineTo(n+a.topLeft,r)}let tv=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tb=e=>+e||0;function tx(e,t){let n={},r=z(t),i=r?Object.keys(t):t,o=z(e)?r?n=>$(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tb(o(e));return n}function tw(e){return tx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tk(e){return tx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tS(e){let t=tw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tE(e,t){e=e||{},t=t||tr.font;let n=$(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=$(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:$(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tv);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}($(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:$(e.weight,t.weight),string:""};return i.string=!i||D(i.size)||D(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function t_(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&L(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tC(e,t,n){let{min:r,max:i}=e,o=U(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tO(e,t){return Object.assign(Object.create(e),t)}function tT(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tD("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tT([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tR(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tD(tP(o,e),n)))return tI(e,i)?tM(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tL(e).includes(t),ownKeys:e=>tL(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tA(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tP=(e,t)=>e?e+et(t):t,tI=(e,t)=>z(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tj=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tM(e,t,n,r){var i;let o=t._rootScopes,a=er(i=t._fallback)?i(n,r):i,s=[...e,...o],l=new Set;l.add(r);let u=tN(l,s,n,a||n,r);return null!==u&&(void 0===a||a===n||null!==(u=tN(l,s,a,u,r)))&&tT(Array.from(l),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return L(i)&&z(n)?n:i||{}})(t,n,r))}function tN(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tj(n,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(n,i):o;if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tD(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tL(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tz(e,t,n,r){let i,o,a;let{iScale:s}=e,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=t[o=i+n],u[i]={r:s.parse(ee(a,l),o)};return u}let tF=Number.EPSILON||1e-14,tB=(e,t)=>t<e.length&&!e[t].skip&&e[t],t$=e=>"x"===e?"y":"x";function tV(e,t,n){return Math.max(Math.min(e,n),t)}function tU(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=t$(t),a=e.length,s=Array(a).fill(0),l=Array(a),u=tB(e,0);for(n=0;n<a;++n)if(r=i,i=u,u=tB(e,n+1),i){if(u){let e=u[t]-i[t];s[n]=0!==e?(u[o]-i[o])/e:0}l[n]=r?u?em(s[n-1])!==em(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s;let l=e.length,u=tB(e,0);for(let c=0;c<l-1;++c)if(s=u,u=tB(e,c+1),s&&u){if(eg(t[c],0,tF)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,l),function(e,t,n="x"){let r,i,o;let a=t$(n),s=e.length,l=tB(e,0);for(let u=0;u<s;++u){if(i=o,o=l,l=tB(e,u+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[u]),l&&(r=(l[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[u])}}(e,l,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=eC(t,i),s=eC(o,t),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=r*l,d=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a;let s=tc(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&tc(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tV(i.cp1x,t.left,t.right),i.cp1y=tV(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tV(i.cp2x,t.left,t.right),i.cp2y=tV(i.cp2y,t.top,t.bottom)))}(e,n)}function tW(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tq(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tH(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tZ=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tK(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tG[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tZ(n),o="border-box"===i.boxSizing,a=tK(i,"padding"),s=tK(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:s}=o,l=!1;if(tY(a,s,e.target))n=a,r=s;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,l=!0}return{x:n,y:r,box:l}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tJ=e=>Math.round(10*e)/10;function tQ(e,t,n,r){let i=tZ(e),o=tK(i,"margin"),a=tH(i.maxWidth,e,"clientWidth")||eu,s=tH(i.maxHeight,e,"clientHeight")||eu,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tq(e);if(o){let e=o.getBoundingClientRect(),a=tZ(o),s=tK(a,"border","width"),l=tK(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=tH(a.maxWidth,o,"clientWidth"),i=tH(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=tK(i,"border","width"),t=tK(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tJ(Math.min(u,a,l.maxWidth)),c=tJ(Math.min(c,s,l.maxHeight)),u&&!c&&(c=tJ(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(u=tJ(Math.floor((c=l.height)*r))),{width:u,height:c}}function t0(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t1=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tW()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t2(e,t){let n=tZ(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t3(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t4(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=t5(e,i,n),s=t5(i,o,n),l=t5(o,t,n),u=t5(a,s,n),c=t5(s,l,n);return t5(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t7(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t8(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eA,compare:eO,normalize:eT}:{between:eR,compare:(e,t)=>e-t,normalize:e=>e}}function ne({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function nt(e,t,n){let r,i,o;if(!n)return[e];let{property:a,start:s,end:l}=n,u=t.length,{compare:c,between:d,normalize:f}=t9(a),{start:h,end:p,loop:m,style:g}=function(e,t,n){let r;let{property:i,start:o,end:a}=n,{between:s,normalize:l}=t9(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&s(l(t[c%u][i]),o,a);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),v=[],y=!1,b=null,x=()=>d(s,o,r)&&0!==c(s,o),w=()=>0===c(l,r)||d(l,o,r),k=()=>y||x(),S=()=>!y||w();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=f(i[a]))===o||(y=d(r,s,l),null===b&&k()&&(b=0===c(r,s)?e:n),null!==b&&S()&&(v.push(ne({start:b,end:e,loop:m,count:u,style:g})),b=null),n=e,o=r);return null!==b&&v.push(ne({start:b,end:p,loop:m,count:u,style:g})),v}function nn(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],e.points,t);o.length&&n.push(...o)}return n}function nr(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ni(e,[{start:a,end:s,loop:o}],n,t);let l=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,l.skip&&(t=i)),l=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,l,u),n,t)}function ni(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=no(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}for(let e of t){let t;let o=n[(d=s?d:e.start)%l];for(f=d+1;f<=e.end;f++){let s=n[f%l];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tO(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},62658:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},35781:function(e,t){"use strict";var n={value:()=>{}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=o(r[n],e.name,t);else if(null==t)for(n in r)r[n]=o(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},16309:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(35781),i=n(68381),o=n(60826),a=n(88868),s=n(64275),l=e=>()=>e;function u(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,m=c,g=d,v=f,y=h,b={},x=(0,r.Z)("start","drag","end"),w=0,k=0;function S(e){e.on("mousedown.drag",E).filter(y).on("touchstart.drag",O).on("touchmove.drag",T,s.Q7).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(r,o){if(!p&&m.call(this,r,o)){var l=P(this,g.call(this,r,o),r,o,"mouse");l&&((0,i.Z)(r.view).on("mousemove.drag",_,s.Dd).on("mouseup.drag",C,s.Dd),(0,a.Z)(r.view),(0,s.rG)(r),n=!1,e=r.clientX,t=r.clientY,l("start",r))}}function _(r){if((0,s.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>k}b.mouse("drag",r)}function C(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.D)(e.view,n),(0,s.ZP)(e),b.mouse("end",e)}function O(e,t){if(m.call(this,e,t)){var n,r,i=e.changedTouches,o=g.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=P(this,o,e,t,i[n].identifier,i[n]))&&((0,s.rG)(e),r("start",e,i[n]))}}function T(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.ZP)(e),n("drag",e,r[t]))}function A(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.rG)(e),n("end",e,r[t]))}function P(e,t,n,r,i,a){var s,l,c,d=x.copy(),f=(0,o.Z)(a||n,t);if(null!=(c=v.call(e,new u("beforestart",{sourceEvent:n,target:S,identifier:i,active:w,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,l=c.y-f[1]||0,function n(a,h,p){var m,g=f;switch(a){case"start":b[i]=n,m=w++;break;case"end":delete b[i],--w;case"drag":f=(0,o.Z)(p||h,t),m=w}d.call(a,e,new u(a,{sourceEvent:h,subject:c,target:S,identifier:i,active:m,x:f[0]+s,y:f[1]+l,dx:f[0]-g[0],dy:f[1]-g[1],dispatch:d}),r)}}return S.filter=function(e){return arguments.length?(m="function"==typeof e?e:l(!!e),S):m},S.container=function(e){return arguments.length?(g="function"==typeof e?e:l(e),S):g},S.subject=function(e){return arguments.length?(v="function"==typeof e?e:l(e),S):v},S.touchable=function(e){return arguments.length?(y="function"==typeof e?e:l(!!e),S):y},S.on=function(){var e=x.on.apply(x,arguments);return e===x?S:e},S.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,S):Math.sqrt(k)},S}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},88868:function(e,t,n){"use strict";n.d(t,{D:function(){return a},Z:function(){return o}});var r=n(68381),i=n(64275);function o(e){var t=e.document.documentElement,n=(0,r.Z)(e).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in t?n.on("selectstart.drag",i.ZP,i.Dd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.Z)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},64275:function(e,t,n){"use strict";n.d(t,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return a},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},55368:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{P:function(){return i},Z:function(){return r}})},77764:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19530);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.Z.hasOwnProperty(t)?{space:r.Z[t],local:e}:e}},19530:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},60826:function(e,t,n){"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{Z:function(){return r}})},68381:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89818);function i(e){return"string"==typeof e?new r.Y1([[document.querySelector(e)]],[document.documentElement]):new r.Y1([[e]],r.Jz)}},89818:function(e,t,n){"use strict";n.d(t,{Y1:function(){return z},ZP:function(){return B},Jz:function(){return L}});var r=n(30212),i=n(47354),o=n(55368),a=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(l=t[s])&&(p[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function p(e){return e.__data__}function m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var g=n(77764),v=n(57709);function y(e){return e.trim().split(/^|\s+/)}function b(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=y(e.getAttribute("class")||"")}function w(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function k(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function S(){this.textContent=""}function E(){this.innerHTML=""}function _(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}x.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var O=n(19530);function T(e){var t=(0,g.Z)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O.P&&t.documentElement.namespaceURI===O.P?t.createElement(e):t.createElementNS(n,e)}})(t)}function A(){return null}function P(){var e=this.parentNode;e&&e.removeChild(this)}function I(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function j(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function M(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var N=n(57090);function D(e,t,n){var r=(0,N.Z)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var L=[null];function z(e,t){this._groups=e,this._parents=t}function F(){return new z([[document.documentElement]],L)}z.prototype=F.prototype={constructor:z,select:function(e){"function"!=typeof e&&(e=(0,r.Z)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var a,s,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(a=l[d])&&(s=e.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new z(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.Z)(e);for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),a.push(l));return new z(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.P)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.P)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],l=s.length,u=r[i]=[],c=0;c<l;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&u.push(a);return new z(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(w=e,e=function(){return w});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],m=d.length,g="object"==typeof(x=e.call(c,c&&c.__data__,u,r))&&"length"in x?x:Array.from(x),v=g.length,y=s[u]=Array(v),b=a[u]=Array(v);n(c,d,y,b,l[u]=Array(m),g,t);for(var x,w,k,S,E=0,_=0;E<v;++E)if(k=y[E]){for(E>=_&&(_=E+1);!(S=b[_])&&++_<v;);k._next=S||null}}return(a=new z(a,r))._enter=s,a._exit=l,a},enter:function(){return new z(this._enter||this._groups.map(c),this._parents)},exit:function(){return new z(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],d=r[l],f=c.length,h=s[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)s[l]=n[l];return new z(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=m);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new z(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,g.Z)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:v.Z,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=y(e+"");if(arguments.length<2){for(var r=b(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?w:k)(this,e)}}:t?function(e){return function(){w(this,e)}}:function(e){return function(){k(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?S:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(_)},lower:function(){return this.each(C)},append:function(e){var t="function"==typeof e?e:T(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:T(e),i=null==t?A:"function"==typeof t?t:(0,r.Z)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(e){return this.select(e?R:I)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?M:j;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return D(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return D(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var B=F},57709:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(57090);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.Z)(e).getComputedStyle(e,null).getPropertyValue(t)}},30212:function(e,t,n){"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{Z:function(){return i}})},47354:function(e,t,n){"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{Z:function(){return i}})},57090:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{Z:function(){return r}})},18409:function(e,t,n){"use strict";n.d(t,{sP:function(){return eQ},CR:function(){return eW}});var r,i=n(35781),o=n(88868);function a(e){return((e=Math.exp(e))+1/e)/2}var s,l,u=function e(t,n,r){function i(e,i){var o,s,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,m=f-u,g=p*p+m*m;if(g<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*m,c*Math.exp(t*e*s)]};else{var v=Math.sqrt(g),y=(h*h-c*c+r*g)/(2*c*n*v),b=(h*h-c*c-r*g)/(2*h*n*v),x=Math.log(Math.sqrt(y*y+1)-y);s=(Math.log(Math.sqrt(b*b+1)-b)-x)/t,o=function(e){var r,i,o=e*s,d=a(x),f=c/(n*v)*(((r=Math.exp(2*(r=t*o+x)))-1)/(r+1)*d-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,u+f*m,c*d/a(t*o+x)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(68381),d=n(60826),f=n(89818),h=0,p=0,m=0,g=0,v=0,y=0,b="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return v||(x(k),v=b.now()+y)}function k(){v=0}function S(){this._call=this._time=this._next=null}function E(e,t,n){var r=new S;return r.restart(e,t,n),r}function _(){v=(g=b.now())+y,h=p=0;try{!function(){w(),++h;for(var e,t=s;t;)(e=v-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:s=t);l=e,O(r)}(),v=0}}function C(){var e=b.now(),t=e-g;t>1e3&&(y-=t,g=e)}function O(e){!h&&(p&&(p=clearTimeout(p)),e-v>24?(e<1/0&&(p=setTimeout(_,e-b.now()-y)),m&&(m=clearInterval(m))):(m||(g=b.now(),m=setInterval(C,1e3)),h=1,x(_)))}function T(e,t,n){var r=new S;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}S.prototype=E.prototype={constructor:S,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||l===this||(l?l._next=this:s=this,l=this),this._call=e,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}};var A=(0,i.Z)("start","end","cancel","interrupt"),P=[];function I(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return T(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(T(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=E(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:A,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function R(e,t){var n=M(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function j(e,t){var n=M(e,t);if(n.state>3)throw Error("too late; already running");return n}function M(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function N(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function D(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var L=180/Math.PI,z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function F(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*L,skewX:Math.atan(l)*L,scaleX:a,scaleY:s}}function B(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:D(e,i)},{i:l-2,x:D(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),(s=o.rotate)!==(l=a.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:D(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:D(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:D(e,n)},{i:s-2,x:D(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var $=B(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?z:F(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),V=B(function(e){return null==e?z:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?F((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):z},", ",")",")"),U=n(77764);function W(e,t,n){var r=e._id;return e.each(function(){var e=j(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return M(e,r).value[t]}}function q(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function H(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Z(){}var G="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X=/^#([0-9a-f]{3,8})$/,J=RegExp(`^rgb\\(${G},${G},${G}\\)$`),Q=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),ee=RegExp(`^rgba\\(${G},${G},${G},${K}\\)$`),et=RegExp(`^rgba\\(${Y},${Y},${Y},${K}\\)$`),en=RegExp(`^hsl\\(${K},${Y},${Y}\\)$`),er=RegExp(`^hsla\\(${K},${Y},${Y},${K}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=X.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?el(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new ed(t[1],t[2],t[3],1):(t=Q.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?ev(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?ev(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof Z||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${em(this.r)}, ${em(this.g)}, ${em(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function em(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eg(e){return((e=em(e))<16?"0":"")+e.toString(16)}function ev(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new eb(e,t,n,r)}function ey(e){if(e instanceof eb)return new eb(e.h,e.s,e.l,e.opacity);if(e instanceof Z||(e=es(e)),!e)return new eb;if(e instanceof eb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new eb(a,s,l,e.opacity)}function eb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ex(e){return(e=(e||0)%360)<0?e+360:e}function ew(e){return Math.max(0,Math.min(1,e||0))}function ek(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eS(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}q(Z,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ey(this).formatHsl()},formatRgb:ea,toString:ea}),q(ed,ec,H(Z,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(em(this.r),em(this.g),em(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}${eg((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),q(eb,function(e,t,n,r){return 1==arguments.length?ey(e):new eb(e,t,n,null==r?1:r)},H(Z,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new eb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(ek(e>=240?e-240:e+120,i,r),ek(e,i,r),ek(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new eb(ex(this.h),ew(this.s),ew(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ex(this.h)}, ${100*ew(this.s)}%, ${100*ew(this.l)}%${1===e?")":`, ${e})`}`}}));var eE=e=>()=>e;function e_(e,t){var n=t-e;return n?function(t){return e+t*n}:eE(isNaN(e)?t:e)}var eC=function e(t){var n,r=1==(n=+(n=t))?e_:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):eE(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=e_(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eO(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}eO(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eS((n-r/t)*t,a,i,o,s)}}),eO(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eS((n-r/t)*t,i,o,a,s)}});var eT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eA=RegExp(eT.source,"g");function eP(e,t){var n;return("number"==typeof t?D:t instanceof es?eC:(n=es(t))?(t=n,eC):function(e,t){var n,r,i,o,a,s=eT.lastIndex=eA.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=eT.exec(e))&&(o=eA.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:D(i,o)})),s=eA.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})})(e,t)}var eI=n(55368),eR=n(30212),ej=n(47354),eM=f.ZP.prototype.constructor,eN=n(57709);function eD(e){return function(){this.style.removeProperty(e)}}var eL=0;function ez(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var eF=f.ZP.prototype;ez.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:ez,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eR.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,d=o[a]=Array(c),f=0;f<c;++f)(s=u[f])&&(l=e.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,I(d[f],t,n,f,d,M(s,n)));return new ez(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,ej.Z)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=M(l,n),m=0,g=h.length;m<g;++m)(f=h[m])&&I(f,t,n,m,h,p);o.push(h),a.push(l)}return new ez(o,a,t,n)},selectChild:eF.selectChild,selectChildren:eF.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eI.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new ez(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,f=a[s]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;s<r;++s)a[s]=t[s];return new ez(a,this._parents,this._name,this._id)},selection:function(){return new eM(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eL,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=M(a,t);I(a,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ez(r,this._parents,e,n)},call:eF.call,nodes:eF.nodes,node:eF.node,size:eF.size,empty:eF.empty,each:eF.each,on:function(e,t){var n,r,i,o=this._id;return arguments.length<2?M(this.node(),o).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?R:j,function(){var a=i(this,o),s=a.on;s!==n&&(r=(n=s).copy()).on(e,t),a.on=r}))},attr:function(e,t){var n=(0,U.Z)(e),r="transform"===n?V:eP;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}:function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}})(n,r,W(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,U.Z)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,k,S,E="transform"==(e+="")?$:eP;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eN.S)(this,r),t=(this.style.removeProperty(r),(0,eN.S)(this,r));return e===t?null:e===i&&t===o?a:a=E(i=e,o=t)})).on("end.style."+e,eD(e)):"function"==typeof t?this.styleTween(e,(s=e,l=W(this,"style."+e,t),function(){var e=(0,eN.S)(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eN.S)(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=E(u=e,t))})).each((f=this._id,b="end."+(y="style."+(h=e)),function(){var e=j(this,f),t=e.on,n=null==e.value[y]?v||(v=eD(h)):void 0;(t!==p||g!==n)&&(m=(p=t).copy()).on(b,g=n),e.on=m})):this.styleTween(e,(x=e,S=t+"",function(){var e=(0,eN.S)(this,x);return e===S?null:e===w?k:k=E(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=W(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=M(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=j(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=j(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){R(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){R(this,e).delay=t}})(t,e)):M(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){j(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){j(this,e).duration=t}})(t,e)):M(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){j(this,e).ease=t}}(t,e)):M(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();j(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=j(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:eF[Symbol.iterator]};var eB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.ZP.prototype.interrupt=function(e){return this.each(function(){N(this,e)})},f.ZP.prototype.transition=function(e){var t,n;e instanceof ez?(t=e._id,e=e._name):(t=++eL,(n=eB).time=w(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&I(a,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new ez(r,this._parents,e,t)};var e$=e=>()=>e;function eV(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eU(e,t,n){this.k=e,this.x=t,this.y=n}eU.prototype={constructor:eU,scale:function(e){return 1===e?this:new eU(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eU(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eW=new eU(1,0,0);function eq(e){e.stopImmediatePropagation()}function eH(e){e.preventDefault(),e.stopImmediatePropagation()}function eZ(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eG(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eK(){return this.__zoom||eW}function eY(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eX(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eQ(){var e,t,n,r=eZ,a=eG,s=eJ,l=eY,f=eX,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],m=250,g=u,v=(0,i.Z)("start","zoom","end"),y=0,b=10;function x(e){e.property("__zoom",eK).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(f).on("touchstart.zoom",P).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eU(t,e.x,e.y)}function k(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new eU(e.k,r,i)}function S(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=_(this,e).event(r),o=a.apply(this,e),s=null==n?S(o):"function"==typeof n?n.apply(this,e):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=g(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new eU(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function O(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,l.apply(this,arguments)))),a=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],N(this),n.start()}eH(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(k(w(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function T(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=_(this,t,!0).event(e),l=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eH(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>y}a.event(e).zoom("mouse",s(k(a.that.__zoom,a.mouse[0]=(0,d.Z)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,a.moved),eH(e),a.event(e).end()},!0),u=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),eq(e),a.mouse=[u,this.__zoom.invert(u)],N(this),a.start()}}function A(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.Z)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),l=n.k*(e.shiftKey?.5:2),u=s(k(w(n,l),i,o),a.apply(this,t),p);eH(e),m>0?(0,c.Z)(this).transition().duration(m).call(E,u,i,e):(0,c.Z)(this).call(x.transform,u,i,e)}}function P(n,...i){if(r.apply(this,arguments)){var o,a,s,l,u=n.touches,c=u.length,f=_(this,i,n.changedTouches.length===c).event(n);for(eq(n),a=0;a<c;++a)s=u[a],l=[l=(0,d.Z)(s,this),this.__zoom.invert(l),s.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),N(this),f.start())}}function I(e,...t){if(this.__zooming){var n,r,i,o,a=_(this,t).event(e),l=e.changedTouches,u=l.length;for(eH(e),n=0;n<u;++n)r=l[n],i=(0,d.Z)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],m=a.touch1[1],g=(g=h[0]-c[0])*g+(g=h[1]-c[1])*g,v=(v=m[0]-f[0])*v+(v=m[1]-f[1])*v;r=w(r,Math.sqrt(g/v)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(k(r,i,o),a.extent,p))}}function R(e,...r){if(this.__zooming){var i,o,a=_(this,r).event(e),s=e.changedTouches,l=s.length;for(eq(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<b)){var u=(0,c.Z)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return x.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eK),e!==i?E(e,t,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},x.scaleBy=function(e,t,n,r){x.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},x.scaleTo=function(e,t,n,r){x.transform(e,function(){var e=a.apply(this,arguments),r=this.__zoom,i=null==n?S(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return s(k(w(r,l),i,o),e,p)},n,r)},x.translateBy=function(e,t,n,r){x.transform(e,function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},x.translateTo=function(e,t,n,r,i){x.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?S(e):"function"==typeof r?r.apply(this,arguments):r;return s(eW.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.Z)(this.that).datum();v.call(e,this.that,new eV(e,{sourceEvent:this.sourceEvent,target:x,type:e,transform:this.that.__zoom,dispatch:v}),t)}},x.wheelDelta=function(e){return arguments.length?(l="function"==typeof e?e:e$(+e),x):l},x.filter=function(e){return arguments.length?(r="function"==typeof e?e:e$(!!e),x):r},x.touchable=function(e){return arguments.length?(f="function"==typeof e?e:e$(!!e),x):f},x.extent=function(e){return arguments.length?(a="function"==typeof e?e:e$([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),x):a},x.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],x):[h[0],h[1]]},x.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],x):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},x.constrain=function(e){return arguments.length?(s=e,x):s},x.duration=function(e){return arguments.length?(m=+e,x):m},x.interpolate=function(e){return arguments.length?(g=e,x):g},x.on=function(){var e=v.on.apply(v,arguments);return e===v?x:e},x.clickDistance=function(e){return arguments.length?(y=(e=+e)*e,x):Math.sqrt(y)},x.tapDistance=function(e){return arguments.length?(b=+e,x):b},x}eU.prototype},56861:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let r={};function i(){return r}},62859:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(17139);function i(e){let t=(0,r.Q)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},70709:function(e,t,n){"use strict";n.d(t,{H_:function(){return l},dP:function(){return i},fH:function(){return s},jE:function(){return r},vh:function(){return a},yJ:function(){return o}});let r=6048e5,i=864e5,o=6e4,a=36e5,s=43200,l=1440},80658:function(e,t,n){"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{L:function(){return r}})},87699:function(e,t,n){"use strict";n.d(t,{WU:function(){return R}});var r=n(7628),i=n(56861),o=n(70709),a=n(17139);function s(e){let t=(0,a.Q)(e);return t.setHours(0,0,0,0),t}var l=n(62859),u=n(80658);function c(e,t){var n,r,o,s,l,u,c,d;let f=(0,i.j)(),h=null!==(d=null!==(c=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:f.weekStartsOn)&&void 0!==c?c:null===(s=f.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==d?d:0,p=(0,a.Q)(e),m=p.getDay();return p.setDate(p.getDate()-((m<h?7:0)+m-h)),p.setHours(0,0,0,0),p}function d(e){return c(e,{weekStartsOn:1})}function f(e){let t=(0,a.Q)(e),n=t.getFullYear(),r=(0,u.L)(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=d(r),o=(0,u.L)(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let s=d(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function h(e,t){var n,r,o,s,l,d,f,h;let p=(0,a.Q)(e),m=p.getFullYear(),g=(0,i.j)(),v=null!==(h=null!==(f=null!==(d=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:g.firstWeekContainsDate)&&void 0!==f?f:null===(s=g.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==h?h:1,y=(0,u.L)(e,0);y.setFullYear(m+1,0,v),y.setHours(0,0,0,0);let b=c(y,t),x=(0,u.L)(e,0);x.setFullYear(m,0,v),x.setHours(0,0,0,0);let w=c(x,t);return p.getTime()>=b.getTime()?m+1:p.getTime()>=w.getTime()?m:m-1}function p(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let m={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return p("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):p(n+1,2)},d:(e,t)=>p(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>p(e.getHours()%12||12,t.length),H:(e,t)=>p(e.getHours(),t.length),m:(e,t)=>p(e.getMinutes(),t.length),s:(e,t)=>p(e.getSeconds(),t.length),S(e,t){let n=t.length;return p(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},g={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},v={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return m.y(e,t)},Y:function(e,t,n,r){let i=h(e,r),o=i>0?i:1-i;return"YY"===t?p(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):p(o,t.length)},R:function(e,t){return p(f(e),t.length)},u:function(e,t){return p(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let s=function(e,t){let n=(0,a.Q)(e);return Math.round((+c(n,t)-+function(e,t){var n,r,o,a,s,l,d,f;let p=(0,i.j)(),m=null!==(f=null!==(d=null!==(l=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==d?d:null===(a=p.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==f?f:1,g=h(e,t),v=(0,u.L)(e,0);return v.setFullYear(g,0,m),v.setHours(0,0,0,0),c(v,t)}(n,t))/o.jE)+1}(e,r);return"wo"===t?n.ordinalNumber(s,{unit:"week"}):p(s,t.length)},I:function(e,t,n){let r=function(e){let t=(0,a.Q)(e);return Math.round((+d(t)-+function(e){let t=f(e),n=(0,u.L)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),d(n)}(t))/o.jE)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){let r=function(e){let t=(0,a.Q)(e);return function(e,t){let n=s(e),r=s(t);return Math.round((+n-(0,l.D)(n)-(+r-(0,l.D)(r)))/o.dP)}(t,function(e){let t=(0,a.Q)(e),n=(0,u.L)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return p(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return p(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return p(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r;let i=e.getHours();switch(r=12===i?g.noon:0===i?g.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r;let i=e.getHours();switch(r=i>=17?g.evening:i>=12?g.afternoon:i>=4?g.morning:g.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return b(r);case"XXXX":case"XX":return x(r);default:return x(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return b(r);case"xxxx":case"xx":return x(r);default:return x(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(r,":");default:return"GMT"+x(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(r,":");default:return"GMT"+x(r,":")}},t:function(e,t,n){return p(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return p(e.getTime(),t.length)}};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+p(o,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):x(e,t)}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+p(Math.trunc(n/60),2)+t+p(n%60,2)}let w=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},k=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},S={p:k,P:(e,t)=>{let n;let r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return w(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",w(i,t)).replace("{{time}}",k(o,t))}},E=/^D+$/,_=/^Y+$/,C=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,P=/''/g,I=/[a-zA-Z]/;function R(e,t,n){var o,s,l,u,c,d,f,h,p,m,g,y,b,x,w,k,R,j;let M=(0,i.j)(),N=null!==(m=null!==(p=null==n?void 0:n.locale)&&void 0!==p?p:M.locale)&&void 0!==m?m:r._,D=null!==(x=null!==(b=null!==(y=null!==(g=null==n?void 0:n.firstWeekContainsDate)&&void 0!==g?g:null==n?void 0:null===(s=n.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==y?y:M.firstWeekContainsDate)&&void 0!==b?b:null===(u=M.locale)||void 0===u?void 0:null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==x?x:1,L=null!==(j=null!==(R=null!==(k=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==k?k:M.weekStartsOn)&&void 0!==R?R:null===(h=M.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==j?j:0,z=(0,a.Q)(e);if(!((z instanceof Date||"object"==typeof z&&"[object Date]"===Object.prototype.toString.call(z)||"number"==typeof z)&&!isNaN(Number((0,a.Q)(z)))))throw RangeError("Invalid time value");let F=t.match(T).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,S[t])(e,N.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(A);return t?t[1].replace(P,"'"):e}(e)};if(v[t])return{isToken:!0,value:e};if(t.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});N.localize.preprocessor&&(F=N.localize.preprocessor(z,F));let B={firstWeekContainsDate:D,weekStartsOn:L,locale:N};return F.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&E.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),C.includes(e))throw RangeError(r)}(i,t,String(e)),(0,v[i[0]])(z,i,N.localize,B)}).join("")}},12032:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(80658),i=n(17139);function o(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var a=n(70709),s=n(7628),l=n(56861),u=n(62859);function c(e,t){return function(e,t,n){var r,c,d,f,h,p;let m,g,v;let y=(0,l.j)(),b=null!==(c=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:y.locale)&&void 0!==c?c:s._,x=o(e,t);if(isNaN(x))throw RangeError("Invalid time value");let w=Object.assign({},n,{addSuffix:null==n?void 0:n.addSuffix,comparison:x});x>0?(m=(0,i.Q)(t),g=(0,i.Q)(e)):(m=(0,i.Q)(e),g=(0,i.Q)(t));let k=(d=g,f=m,(p=null==void 0?void 0:(void 0).roundingMethod,e=>{let t=(p?Math[p]:Math.trunc)(e);return 0===t?0:t})((+(0,i.Q)(d)-+(0,i.Q)(f))/1e3)),S=Math.round((k-((0,u.D)(g)-(0,u.D)(m))/1e3)/60);if(S<2){if(null==n?void 0:n.includeSeconds){if(k<5)return b.formatDistance("lessThanXSeconds",5,w);if(k<10)return b.formatDistance("lessThanXSeconds",10,w);if(k<20)return b.formatDistance("lessThanXSeconds",20,w);if(k<40)return b.formatDistance("halfAMinute",0,w);else if(k<60)return b.formatDistance("lessThanXMinutes",1,w);else return b.formatDistance("xMinutes",1,w)}return 0===S?b.formatDistance("lessThanXMinutes",1,w):b.formatDistance("xMinutes",S,w)}if(S<45)return b.formatDistance("xMinutes",S,w);if(S<90)return b.formatDistance("aboutXHours",1,w);if(S<a.H_)return b.formatDistance("aboutXHours",Math.round(S/60),w);if(S<2520)return b.formatDistance("xDays",1,w);if(S<a.fH){let e=Math.round(S/a.H_);return b.formatDistance("xDays",e,w)}if(S<2*a.fH)return v=Math.round(S/a.fH),b.formatDistance("aboutXMonths",v,w);if((v=function(e,t){let n;let r=(0,i.Q)(e),a=(0,i.Q)(t),s=o(r,a),l=Math.abs(function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,a));if(l<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*l);let t=o(r,a)===-s;(function(e){let t=(0,i.Q)(e);return+function(e){let t=(0,i.Q)(e);return t.setHours(23,59,59,999),t}(t)==+function(e){let t=(0,i.Q)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t)})((0,i.Q)(e))&&1===l&&1===o(e,a)&&(t=!1),n=s*(l-Number(t))}return 0===n?0:n}(g,m))<12){let e=Math.round(S/a.fH);return b.formatDistance("xMonths",e,w)}{let e=v%12,t=Math.trunc(v/12);return e<3?b.formatDistance("aboutXYears",t,w):e<9?b.formatDistance("overXYears",t,w):b.formatDistance("almostXYears",t+1,w)}}(e,(0,r.L)(e,Date.now()),t)}},7628:function(e,t,n){"use strict";var r;n.d(t,{_:function(){return c}});let i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let c={code:"en-US",formatDistance:(e,t,n)=>{let r;let o=i[e];return(r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:a,formatRelative:(e,t,n,r)=>s[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;let i=n[0],o=e.match(r.parsePattern);if(!o)return null;let a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},85160:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(70709);function i(e,t){var n;let i,h;let p=null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2,m=function(e){let t;let n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=o.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(m.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(m.date,p);i=function(e,t){if(null===t)return new Date(NaN);let n=e.match(a);if(!n)return new Date(NaN);let r=!!n[4],i=u(n[1]),o=u(n[2])-1,s=u(n[3]),l=u(n[4]),c=u(n[5])-1;if(r)return l>=1&&l<=53&&c>=0&&c<=6?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,l,c):new Date(NaN);{let e=new Date(0);return o>=0&&o<=11&&s>=1&&s<=(d[o]||(f(t)?29:28))&&i>=1&&i<=(f(t)?366:365)?(e.setUTCFullYear(t,o,Math.max(i,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);let g=i.getTime(),v=0;if(m.time&&isNaN(v=function(e){let t=e.match(s);if(!t)return NaN;let n=c(t[1]),i=c(t[2]),o=c(t[3]);return(24===n?0===i&&0===o:o>=0&&o<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*o:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(h=function(e){if("Z"===e)return 0;let t=e.match(l);if(!t)return 0;let n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return o>=0&&o<=59?n*(i*r.vh+o*r.yJ):NaN}(m.timezone)))return new Date(NaN)}else{let e=new Date(g+v),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(g+v+h)}let o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}let d=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},17139:function(e,t,n){"use strict";function r(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}n.d(t,{Q:function(){return r}})},87377:function(e,t,n){"use strict";n.d(t,{M:function(){return g}});var r=n(8035),i=n(18583);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=n(58996),s=n(45766),l=n(46970);class u extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:s}=o.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
34
34
|
[data-motion-pop-id="${n}"] {
|
|
35
35
|
position: absolute !important;
|
|
36
36
|
width: ${e}px !important;
|