PageSourceSearch

https://custqrd.web.app/static/js/main.cd0c1398.js

js custqrd.web.app collected 2026-10-03 12:20:36 UTC 896,169 bytes, 3 lines download raw bytes

1/*! For license information please see main.cd0c1398.js.LICENSE.txt */
2(()=>{var e={45:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},52:(e,t,n)=>{"use strict";n.d(t,{KO:()=>$,MF:()=>Q,Sx:()=>J,Wp:()=>X,j6:()=>q,om:()=>H,xZ:()=>W});var r=n(8812),o=n(443),i=n(1529),s=n(2799);class a{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null}).filter(e=>e).join(" ")}}const l="@firebase/app",c="0.13.2",u=new o.Vy("@firebase/app"),d="@firebase/app-compat",h="@firebase/analytics-compat",f="@firebase/analytics",p="@firebase/app-check-compat",m="@firebase/app-check",g="@firebase/auth",v="@firebase/auth-compat",y="@firebase/database",b="@firebase/data-connect",w="@firebase/database-compat",S="@firebase/functions",E="@firebase/functions-compat",k="@firebase/installations",_="@firebase/installations-compat",C="@firebase/messaging",A="@firebase/messaging-compat",T="@firebase/performance",x="@firebase/performance-compat",I="@firebase/remote-config",N="@firebase/remote-config-compat",P="@firebase/storage",R="@firebase/storage-compat",O="@firebase/firestore",D="@firebase/ai",L="@firebase/firestore-compat",M="firebase",F="[DEFAULT]",j={[l]:"fire-core",[d]:"fire-core-compat",[f]:"fire-analytics",[h]:"fire-analytics-compat",[m]:"fire-app-check",[p]:"fire-app-check-compat",[g]:"fire-auth",[v]:"fire-auth-compat",[y]:"fire-rtdb",[b]:"fire-data-connect",[w]:"fire-rtdb-compat",[S]:"fire-fn",[E]:"fire-fn-compat",[k]:"fire-iid",[_]:"fire-iid-compat",[C]:"fire-fcm",[A]:"fire-fcm-compat",[T]:"fire-perf",[x]:"fire-perf-compat",[I]:"fire-rc",[N]:"fire-rc-compat",[P]:"fire-gcs",[R]:"fire-gcs-compat",[O]:"fire-fst",[L]:"fire-fst-compat",[D]:"fire-vertex","fire-js":"fire-js",[M]:"fire-js-all"},U=new Map,V=new Map,z=new Map;function B(e,t){try{e.container.addComponent(t)}catch(n){u.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function H(e){const t=e.name;if(z.has(t))return u.debug("There were multiple attempts to register component ".concat(t,".")),!1;z.set(t,e);for(const n of U.values())B(n,e);for(const n of V.values())B(n,e);return!0}function q(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function W(e){return null!==e&&void 0!==e&&void 0!==e.settings}const K={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},G=new i.FA("app","Firebase",K);class Y{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw G.create("app-deleted",{appName:this._name})}}const Q="11.10.0";function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const o=Object.assign({name:F,automaticDataCollectionEnabled:!0},t),s=o.name;if("string"!==typeof s||!s)throw G.create("bad-app-name",{appName:String(s)});if(n||(n=(0,i.T9)()),!n)throw G.create("no-options");const a=U.get(s);if(a){if((0,i.bD)(n,a.options)&&(0,i.bD)(o,a.config))return a;throw G.create("duplicate-app",{appName:s})}const l=new r.h1(s);for(const r of z.values())l.addComponent(r);const c=new Y(n,o,l);return U.set(s,c),c}function J(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;const t=U.get(e);if(!t&&e===F&&(0,i.T9)())return X();if(!t)throw G.create("no-app",{appName:e});return t}function $(e,t,n){var o;let i=null!==(o=j[e])&&void 0!==o?o:e;n&&(i+="-".concat(n));const s=i.match(/\s|\//),a=t.match(/\s|\//);if(s||a){const e=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return s&&e.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),s&&a&&e.push("and"),a&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void u.warn(e.join(" "))}H(new r.uA("".concat(i,"-version"),()=>({library:i,version:t}),"VERSION"))}const Z="firebase-heartbeat-store";let ee=null;function te(){return ee||(ee=(0,s.P2)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Z)}catch(n){console.warn(n)}}}).catch(e=>{throw G.create("idb-open",{originalErrorMessage:e.message})})),ee}async function ne(e,t){try{const n=(await te()).transaction(Z,"readwrite"),r=n.objectStore(Z);await r.put(t,re(e)),await n.done}catch(n){if(n instanceof i.g)u.warn(n.message);else{const e=G.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});u.warn(e.message)}}}function re(e){return"".concat(e.name,"!").concat(e.options.appId)}class oe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new se(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=ie();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){u.warn(n)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=ie(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const o of e){const e=n.find(e=>e.agent===o.agent);if(e){if(e.dates.push(o.date),ae(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),ae(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),o=(0,i.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(t){return u.warn(t),""}}}function ie(){return(new Date).toISOString().substring(0,10)}class se{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,i.zW)()&&(0,i.eX
2)().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await te()).transaction(Z),n=await t.objectStore(Z).get(re(e));return await t.done,n}catch(t){if(t instanceof i.g)u.warn(t.message);else{const e=G.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});u.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ne(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ne(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function ae(e){return(0,i.Uj)(JSON.stringify({version:2,heartbeats:e})).length}var le;le="",H(new r.uA("platform-logger",e=>new a(e),"PRIVATE")),H(new r.uA("heartbeat",e=>new oe(e),"PRIVATE")),$(l,c,le),$(l,c,"esm2017"),$("fire-js","")},81:(e,t,n)=>{"use strict";function r(e){return Object.keys(e).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{})}n.d(t,{J:()=>r})},443:(e,t,n)=>{"use strict";n.d(t,{$b:()=>o,Vy:()=>c});const r=[];var o;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(o||(o={}));const i={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},s=o.INFO,a={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},l=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=a[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];console[r]("[".concat(n,"]  ").concat(e.name,":"),...i)};class c{constructor(e){this.name=e,this._logLevel=s,this._logHandler=l,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in o))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?i[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,o.DEBUG,...t),this._logHandler(this,o.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,o.VERBOSE,...t),this._logHandler(this,o.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,o.INFO,...t),this._logHandler(this,o.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,o.WARN,...t),this._logHandler(this,o.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,o.ERROR,...t),this._logHandler(this,o.ERROR,...t)}}},461:(e,t,n)=>{"use strict";n.d(t,{t:()=>g});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(5783)),a=n(1721),l=n(9863),c=n(8038),u=n(4886),d=n(464),h={root:"m_1b7284a3"};const f=["classNames","className","style","styles","unstyled","withBorder","vars","radius","shadow","variant","mod"],p={},m=(0,a.V)((e,t)=>{let{radius:n,shadow:r}=t;return{root:{"--paper-radius":void 0===n?void 0:(0,s.nJ)(n),"--paper-shadow":(0,s.dh)(r)}}}),g=(0,d.v)((e,t)=>{const n=(0,l.Y)("Paper",p,e),{classNames:s,className:a,style:d,styles:g,unstyled:v,withBorder:y,vars:b,radius:w,shadow:S,variant:E,mod:k}=n,_=(0,o.A)(n,f),C=(0,c.I)({name:"Paper",props:n,classes:h,className:a,style:d,classNames:s,styles:g,unstyled:v,vars:b,varsResolver:m});return(0,i.jsx)(u.a,(0,r.A)((0,r.A)({ref:t,mod:[{"data-with-border":y},k]},C("root")),{},{variant:E},_))});g.classes=h,g.displayName="@mantine/core/Paper"}
2,464:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(9379),o=n(579),i=n(5043),s=n(6331);function a(e){const t=(0,i.forwardRef)(e);return t.withProps=e=>{const n=(0,i.forwardRef)((n,i)=>(0,o.jsx)(t,(0,r.A)((0,r.A)((0,r.A)({},e),n),{},{ref:i})));return n.extend=t.extend,n.displayName="WithProps(".concat(t.displayName,")"),n},t.extend=s.D_,t}},517:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,X:()=>i});var r=n(4171);function o(e,t){if("string"!==typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const n=100*(1-t);return"color-mix(in srgb, ".concat(e,", transparent ").concat(n,"%)")}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,"/ ".concat(t,")")):e.replace(")"," / ".concat(t,")"));const{r:n,g:o,b:i}=(0,r.K)(e);return"rgba(".concat(n,", ").concat(o,", ").concat(i,", ").concat(t,")")}const i=o},528:(e,t,n)=>{"use strict";n.d(t,{jH:()=>i});n(579);var r=n(5043);const o=(0,r.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function i(){return(0,r.useContext)(o)}},579:(e,t,n)=>{"use strict";e.exports=n(1153)},605:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(579),o=n(5043);function i(e){const t=(0,o.createContext)(null);return[e=>{let{children:n,value:o}=e;return(0,r.jsx)(t.Provider,{value:o,children:n})},()=>{const n=(0,o.useContext)(t);if(null===n)throw new Error(e);return n}]}},737:(e,t,n)=>{"use strict";n.d(t,{X:()=>g});var r=n(9379),o=n(7835),i=(n(5043),n(579),n(2932)),s=n(1340);function a(e,t){const n=(0,s.g)({color:e,theme:t});return"dimmed"===n.color?"var(--mantine-color-dimmed)":"bright"===n.color?"var(--mantine-color-bright)":n.variable?"var(".concat(n.variable,")"):n.color}const l={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};const c=["h1","h2","h3","h4","h5","h6"];const u=["h1","h2","h3","h4","h5","h6"];const d={color:a,textColor:function(e,t){const n=(0,s.g)({color:e,theme:t});return n.isThemeColor&&void 0===n.shade?"var(--mantine-color-".concat(n.color,"-text)"):a(e,t)},fontSize:function(e,t){return"string"===typeof e&&e in t.fontSizes?"var(--mantine-font-size-".concat(e,")"):"string"===typeof e&&c.includes(e)?"var(--mantine-".concat(e,"-font-size)"):"number"===typeof e||"string"===typeof e?(0,i.D)(e):e},spacing:function(e,t){if("number"===typeof e)return(0,i.D)(e);if("string"===typeof e){const n=e.replace("-","");if(!(n in t.spacing))return(0,i.D)(e);const r="--mantine-spacing-".concat(n);return e.startsWith("-")?"calc(var(".concat(r,") * -1)"):"var(".concat(r,")")}return e},identity:function(e){return e},size:function(e){return"number"===typeof e?(0,i.D)(e):e},lineHeight:function(e,t){return"string"===typeof e&&e in t.lineHeights?"var(--mantine-line-height-".concat(e,")"):"string"===typeof e&&u.includes(e)?"var(--mantine-".concat(e,"-line-height)"):e},fontFamily:function(e){return"string"===typeof e&&e in l?l[e]:e},border:function(e,t){if("number"===typeof e)return(0,i.D)(e);if("string"===typeof e){const[n,r,...o]=e.split(" ").filter(e=>""!==e.trim());let s="".concat((0,i.D)(n));return r&&(s+=" ".concat(r)),o.length>0&&(s+=" ".concat(a(o.join(" "),t))),s.trim()}return e}};var h=n(45);const f=["media"];function p(e){return e.replace("(min-width: ","").replace("em)","")}function m(e,t){return"object"===typeof e&&null!==e&&t in e?e[t]:e}function g(e){let{styleProps:t,data:n,theme:i}=e;return function(e){let{media:t}=e,n=(0,h.A)(e,f);const o=Object.keys(t).sort((e,t)=>Number(p(e))-Number(p(t))).map(e=>({query:e,styles:t[e]}));return(0,r.A)((0,r.A)({},n),{},{media:o})}((0,o.H)(t).reduce((e,s)=>{if("hiddenFrom"===s||"visibleFrom"===s||"sx"===s)return e;const a=n[s],l=Array.isArray(a.property)?a.property:[a.property],c="object"===typeof(u=t[s])&&null!==u?"base"in u?u.base:void 0:u;var u;if(!function(e){if("object"!==typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(t[s]))return l.forEach(t=>{e.inlineStyles[t]=d[a.type](c,i)}),e;e.hasResponsiveStyles=!0;const h=function(e){return"object"===typeof e&&null!==e?(0,o.H)(e).filter(e=>"base"!==e):[]}(t[s]);return l.forEach(n=>{c&&(e.styles[n]=d[a.type](c,i)),h.forEach(o=>{const l="(min-width: ".concat(i.breakpoints[o],")");e.media[l]=(0,r.A)((0,r.A)({},e.media[l]),{},{[n]:d[a.type](m(t[s],o),i)})})}),e},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}},1065:(e,t,n)=>{"use strict";n.d(t,{N:()=>f});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(9863)),a=n(8038),l=n(4886),c=n(464),u={root:"m_87cf2631"};const d=["className","component","__staticSelector","unstyled","classNames","styles","style"],h={__staticSelector:"UnstyledButton"},f=(0,c.v)((e,t)=>{const n=(0,s.Y)("UnstyledButton",h,e),{className:c,component:f="button",__staticSelector:p,unstyled:m,classNames:g,styles:v,style:y}=n,b=(0,o.A)(n,d),w=(0,a.I)({name:p,props:n,classes:u,className:c,style:y,classNames:g,styles:v,unstyled:m});
2return(0,i.jsx)(l.a,(0,r.A)((0,r.A)({},w("root",{focusable:!0})),{},{component:f,ref:t,type:"button"===f?"button":void 0},b))});f.classes=u,f.displayName="@mantine/core/UnstyledButton"},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1160:(e,t,n)=>{"use strict";n.d(t,{e:()=>g});var r=n(579),o=n(5043),i=n(7803),s=n(9379);const a=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(".concat("bottom"===e?10:-10,"px)")},transitionProperty:"transform, opacity"}),l={fade:{in:{opacity:1},out:{opacity:0}
2,transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:(0,s.A)((0,s.A)({},a("bottom")),{},{common:{transformOrigin:"center center"}}),"pop-bottom-left":(0,s.A)((0,s.A)({},a("bottom")),{},{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":(0,s.A)((0,s.A)({},a("bottom")),{},{common:{transformOrigin:"bottom right"}}),"pop-top-left":(0,s.A)((0,s.A)({},a("top")),{},{common:{transformOrigin:"top left"}}),"pop-top-right":(0,s.A)((0,s.A)({},a("top")),{},{common:{transformOrigin:"top right"}})},c={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function u(e){let{transition:t,state:n,duration:r,timingFunction:o}=e;const i={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:"".concat(r,"ms"),transitionTimingFunction:o};return"string"===typeof t?t in l?(0,s.A)((0,s.A)((0,s.A)({transitionProperty:l[t].transitionProperty},i),l[t].common),l[t][c[n]]):{}:(0,s.A)((0,s.A)((0,s.A)({transitionProperty:t.transitionProperty},i),t.common),t[c[n]])}var d=n(7950),h=n(6777),f=n(6138),p=n(3056);function m(e){let{duration:t,exitDuration:n,timingFunction:r,mounted:i,onEnter:s,onExit:a,onEntered:l,onExited:c,enterDelay:u,exitDelay:m}=e;const g=(0,p.xd)(),v=(0,h.I)(),y=!!g.respectReducedMotion&&v,[b,w]=(0,o.useState)(y?0:t),[S,E]=(0,o.useState)(i?"entered":"exited"),k=(0,o.useRef)(-1),_=(0,o.useRef)(-1),C=(0,o.useRef)(-1);function A(){window.clearTimeout(k.current),window.clearTimeout(_.current),cancelAnimationFrame(C.current)}const T=e=>{A();const r=e?s:a,o=e?l:c,i=y?0:e?t:n;w(i),0===i?("function"===typeof r&&r(),"function"===typeof o&&o(),E(e?"entered":"exited")):C.current=requestAnimationFrame(()=>{d.flushSync(()=>{E(e?"pre-entering":"pre-exiting")}),C.current=requestAnimationFrame(()=>{"function"===typeof r&&r(),E(e?"entering":"exiting"),k.current=window.setTimeout(()=>{"function"===typeof o&&o(),E(e?"entered":"exited")},i)})})};return(0,f.C)(()=>{var e;e=i,A(),"number"===typeof(e?u:m)?_.current=window.setTimeout(()=>{T(e)},e?u:m):T(e)},[i]),(0,o.useEffect)(()=>()=>{A()},[]),{transitionDuration:b,transitionStatus:S,transitionTimingFunction:r||"ease"}}function g(e){let{keepMounted:t,transition:n="fade",duration:o=250,exitDuration:s=o,mounted:a,children:l,timingFunction:c="ease",onExit:d,onEntered:h,onEnter:f,onExited:p,enterDelay:g,exitDelay:v}=e;const y=(0,i.bv)(),{transitionDuration:b,transitionStatus:w,transitionTimingFunction:S}=m({mounted:a,exitDuration:s,duration:o,timingFunction:c,onExit:d,onEntered:h,onEnter:f,onExited:p,enterDelay:g,exitDelay:v});return 0===b||"test"===y?a?(0,r.jsx)(r.Fragment,{children:l({})}):t?l({display:"none"}):null:"exited"===w?t?l({display:"none"}):null:(0,r.jsx)(r.Fragment,{children:l(u({transition:n,duration:b,state:w,timingFunction:S}
2))})}g.displayName="@mantine/core/Transition"},1340:(e,t,n)=>{"use strict";n.d(t,{g:()=>l});var r=n(1891),o=n(4171);function i(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function s(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:n,b:r}=(0,o.K)(e),s=n/255,a=r/255;return.2126*i(t/255)+.7152*i(s)+.0722*i(a)}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.179;return!e.startsWith("var(")&&s(e)>t}function l(e){let{color:t,theme:n,colorScheme:o}=e;if("string"!==typeof t)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got ".concat(typeof t));if("bright"===t)return{color:t,value:"dark"===o?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:a("dark"===o?n.white:n.black,n.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===t)return{color:t,value:"dark"===o?n.colors.dark[2]:n.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:a("dark"===o?n.colors.dark[2]:n.colors.gray[6],n.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===t||"black"===t)return{color:t,value:"white"===t?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:a("white"===t?n.white:n.black,n.luminanceThreshold),variable:"--mantine-color-".concat(t)};const[i,s]=t.split("."),l=s?Number(s):void 0,c=i in n.colors;if(c){const e=void 0!==l?n.colors[i][l]:n.colors[i][(0,r.g)(n,o||"light")];return{color:i,value:e,shade:l,isThemeColor:c,isLight:a(e,n.luminanceThreshold),variable:s?"--mantine-color-".concat(i,"-").concat(l):"--mantine-color-".concat(i,"-filled")}}return{color:t,value:t,isThemeColor:c,isLight:a(t,n.luminanceThreshold),shade:l,variable:void 0}}},1387:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o;n.d(t,{Gh:()=>D,HS:()=>L,Oi:()=>a,Rr:()=>h,pX:()=>V,pb:()=>N,rc:()=>o,tH:()=>U,ue:()=>m,yD:()=>O,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function s(e){return void 0===e&&(e={}),f(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return u("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:d(t)},null,e)}function a(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function f(e,t,n,s){void 0===s&&(s={});let{window:l=document.defaultView,v5Compat:h=!1}=s,f=l.history,p=o.Pop,m=null,g=v();function v(){return(f.state||{idx:null}).idx}function y(){p=o.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(r({},f.state,{idx:g}),""));let w={get action(){return p},get location(){return e(l,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(i,y),m=e,()=>{l.removeEventListener(i,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=o.Push;let r=u(w.location,e,t);n&&n(r,e),g=v()+1;let i=c(r,g),s=w.createHref(r);try{f.pushState(i,"",s)}catch(a){if(a instanceof DOMException&&"DataCloneError"===a.name)throw a;l.location.assign(s)}h&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=o.Replace;let r=u(w.location,e,t);n&&n(r,e),g=v();let i=c(r,g),s=w.createHref(r);f.replaceState(i,"",s),h&&m&&m({action:p,location:w.location,delta:0})},go:e=>f.go(e)};return w}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));
vendor: 2,315 bytes, line 2
2new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let o=N(("string"===typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let s=null;for(let a=0;null==s&&a<i.length;++a){let e=I(o);s=T(i[a],e,r)}return s}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=L([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:A(l,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of y(e.path))o(e,t,r);else o(e,t)}),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=y(r.join("/")),a=[];return a.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}const b=/^:[\w-]+$/,w=3,S=2,E=1,k=10,_=-2,C=e=>"*"===e;function A(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=_),t&&(r+=S),n.filter(e=>!C(e)).reduce((e,t)=>e+(b.test(t)?w:""===t?E:k),r)}function T(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let e=r[a],l=a===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=x({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=x({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(o,u.params),s.push({params:o,pathname:L([i,u.pathname]),pathnameBase:M(L([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=L([i,u.pathnameBase]))}return s}function x(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:s,pattern:e}}function I(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function P(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function O(e,t){let n=R(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function D(e,t,n,o){let i;void 0===o&&(o=!1),"string"===typeof e?i=h(e):(i=r({},e),a(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),a(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),a(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let s,l=""===e||""===i.pathname,c=l?"/":i.pathname;if(null==c)s=n;else{let e=t.length-1;if(!o&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?h(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:F(r),hash:j(o)}}(i,s),d=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const L=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}function V(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const z=["post","put","patch","delete"],B=(new Set(z),["get",...z]);new Set(B),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},1504:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});let r=function(e){return e.URL="url",e.MULTI_URL="multi_url",e.WIFI="wifi",e.VCARD="vcard",e}({})},1529:(e,t,n)=>{"use strict";n.d(t,{cY:()=>p,FA:()=>O,g:()=>R,K3:()=>o,u:()=>a,Uj:()=>s,p9:()=>Y,Fy:()=>v,tD:()=>z,bD:()=>M,hp:()=>V,T9:()=>h,Tj:()=>u,yU:()=>d,XA:()=>f,mS:()=>l,Ku:()=>Q,ZQ:()=>S,sr:()=>C,zJ:()=>m,c1:()=>_,Im:()=>L,lT:()=>T,zW:()=>N,jZ:()=>E,lV:()=>A,nr:()=>x,Ov:()=>I,gE:()=>g,Am:()=>j,I9:()=>U,P1:()=>w,eX:()=>P});const r=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296===(64512&o)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o<e.length;o+=3){const t=e[o],i=o+1<e.length,s=i?e[o+1]:0,a=o+2<e.length,l=a?e[o+2]:0,c=t>>2,u=(3&t)<<4|s>>4;let d=(15&s)<<2|l>>6,h=63&l;a||(h=64,i||(d=64)),r.push(n[c],n[u],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>
210)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<e.length;){const t=n[e.charAt(o++)],s=o<e.length?n[e.charAt(o)]:0;++o;const a=o<e.length?n[e.charAt(o)]:64;++o;const l=o<e.length?n[e.charAt(o)]:64;if(++o,null==t||null==s||null==a||null==l)throw new i;const c=t<<2|s>>4;if(r.push(c),64!==a){const e=s<<4&240|a>>2;if(r.push(e),64!==l){const e=a<<6&192|l;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class i extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const s=function(e){return function(e){const t=r(e);return o.encodeByteArray(t,!0)}(e).replace(/\./g,"")},a=function(e){try{return o.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function l(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}const c=()=>{try{return l().__FIREBASE_DEFAULTS__||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_UNSPLASH_ACCESS_KEY:"bDqXkvNPFc6gpC7mtDqbLxbfjOKusdMQOqE1aex4aAM"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&a(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},u=e=>{var t,n;return null===(n=null===(t=c())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},d=e=>{const t=u(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},h=()=>{var e;return null===(e=c())||void 0===e?void 0:e.config},f=e=>{var t;return null===(t=c())||void 0===t?void 0:t["_".concat(e)]};class p{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function m(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(t){return!1}}async function g(e){return(await fetch(e,{credentials:"include"})).ok}function v(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const i=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(i)),""].join(".")}const y={};let b=!1;function w(e,t){if("undefined"===typeof window||"undefined"===typeof document||!m(window.location.host)||y[e]===t||y[e]||b)return;function n(e){return"__firebase__banner__".concat(e)}y[e]=t;const r="__firebase__banner",o=function(){const e={prod:[],emulator:[]};for(const t of Object.keys(y))y[t]?e.emulator.push(t):e.prod.push(t);return e}().prod.length>0;function i(){const e=document.createElement("span");
2return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{b=!0,function(){const e=document.getElementById(r);e&&e.remove()}()},e}function s(){const e=function(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}(r),t=n("text"),s=document.getElementById(t)||document.createElement("span"),a=n("learnmore"),l=document.getElementById(a)||document.createElement("a"),c=n("preprendIcon"),u=document.getElementById(c)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.created){const t=e.element;!function(e){e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center"}(t),function(e,t){e.setAttribute("id",t),e.innerText="Learn more",e.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",e.setAttribute("target","__blank"),e.style.paddingLeft="5px",e.style.textDecoration="underline"}(l,a);const n=i();!function(e,t){e.setAttribute("width","24"),e.setAttribute("id",t),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.style.marginLeft="-6px"}(u,c),t.append(u,s,l,n),document.body.appendChild(t)}o?(s.innerText="Preview backend disconnected.",u.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(u.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',s.innerText="Preview backend running in this workspace."),s.setAttribute("id",t)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",s):s()}function S(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function E(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(S())}function k(){var e;const t=null===(e=c())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;
2if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(r){return!1}}function _(){return"undefined"!==typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function C(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function A(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function T(){const e=S();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function x(){return!k()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function I(){return!k()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function N(){try{return"object"===typeof indexedDB}catch(e){return!1}}function P(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}})}class R extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,R.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,O.prototype.create)}}class O{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],o=r?function(e,t){return e.replace(D,(e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")})}(r,t):"Error",i="".concat(this.serviceName,": ").concat(o," (").concat(n,").");return new R(n,i,t)}}const D=/\{\$([^}]+)}/g;function L(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function M(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(F(n)&&F(i)){if(!M(n,i))return!1}else if(n!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function F(e){return null!==e&&"object"===typeof e}function j(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function U(e){const t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){const[n,r]=e.split("=");
2t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function V(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function z(e,t){const n=new B(e,t);return n.subscribe.bind(n)}class B{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=H),void 0===r.error&&(r.error=H),void 0===r.complete&&(r.complete=H);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),o}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function H(){}const q=1e3,W=2,K=144e5,G=.5;function Y(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W;const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:q)*Math.pow(t,e),r=Math.round(G*n*(Math.random()-.5)*2);return Math.min(K,n+r)}function Q(e){return e&&e._delegate?e._delegate:e}},1586:(e,t,n)=>{"use strict";n.d(t,{h:()=>b});var r=n(9379),o=n(45),i=n(579),s=n(2932),a=(n(5043),n(1953)),l=n(5783),c=n(1721),u=n(517),d=n(9863),h=n(8038),f=n(4886),p=n(464),m={root:"m_9814e45f"};const g=["classNames","className","style","styles","unstyled","vars","fixed","center","children","radius","zIndex","gradient","blur","color","backgroundOpacity","mod"],v={zIndex:(0,a.I)("modal")},y=(0,c.V)((e,t)=>{let{gradient:n,color:r,backgroundOpacity:o,blur:i,radius:a,zIndex:c}=t;return{root:{"--overlay-bg":n||(void 0!==r||void 0!==o)&&(0,u.B)(r||"#000",null!==o&&void 0!==o?o:.6)||void 0,"--overlay-filter":i?"blur(".concat((0,s.D)(i),")"):void 0,"--overlay-radius":void 0===a?void 0:(0,l.nJ)(a),"--overlay-z-index":null===c||void 0===c?void 0:c.toString()}}}),b=(0,p.v)((e,t)=>{const n=(0,d.Y)("Overlay",v,e),{classNames:s,className:a,style:l,styles:c,unstyled:u,vars:p,fixed:b,center:w,children:S,radius:E,zIndex:k,gradient:_,blur:C,color:A,backgroundOpacity:T,mod:x}=n,I=(0,o.A)(n,g),N=(0,h.I)({name:"Overlay",props:n,classes:m,className:a,style:l,classNames:s,styles:c,unstyled:u,vars:p,varsResolver:y});return(0,i.jsx)(f.a,(0,r.A)((0,r.A)((0,r.A)({ref:t},N("root")),{},{mod:[{center:w,fixed:b},x]},I),{},{children:S}))});b.classes=m,b.displayName="@mantine/core/Overlay"},1632:(e,t,n)=>{"use strict";function r(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mantine-").concat(Math.random().toString(36).slice(2,11))}n.d(t,{z:()=>r})},1650:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","layout-grid","IconLayoutGrid",[["path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-3"}]])},1717:(e,t,n)=>{"use strict";n.d(t,{A:()=>K});var r=n(6326),o=n(5043),i="right-scroll-bar-position",s="width-before-scroll-bar";function a(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var l="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,c=new WeakMap;function u(e,t){var n=function(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return a(e,t)})});return l(function(){var t=c.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach(function(e){o.has(e)||a(e,null)}),o.forEach(function(e){r.has(e)||a(e,i)})}c.set(n,e)},[e]),n}function d(e){return e}function h(e,t){void 0===t&&(t=d);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;
2t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}var f=function(e){void 0===e&&(e={});var t=h(null);return t.options=(0,r.Cl)({async:!0,ssr:!1},e),t}(),p=function(){},m=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noRelative,b=e.noIsolation,w=e.inert,S=e.allowPinchZoom,E=e.as,k=void 0===E?"div":E,_=e.gapMode,C=(0,r.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=v,T=u([n,t]),x=(0,r.Cl)((0,r.Cl)({},C),s);return o.createElement(o.Fragment,null,m&&o.createElement(A,{sideCar:f,removeScrollBar:h,shards:g,noRelative:y,noIsolation:b,inert:w,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:_}),l?o.cloneElement(o.Children.only(c),(0,r.Cl)((0,r.Cl)({},x),{ref:T})):o.createElement(k,(0,r.Cl)({},x,{className:d,ref:T}),c))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:s,zeroRight:i};var g,v=function(e){var t=e.sideCar,n=(0,r.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,(0,r.Cl)({},n))};v.isSideCarExport=!0;function y(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=g||n.nc;return t&&e.setAttribute("nonce",t),e}var b=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=y())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=function(){var e=b();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},S={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},k=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return S;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_=w(),C="data-scroll-locked",A=function(e,t,n,r){var o=e.left,a=e.top,l=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(C,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(i," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(s," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(i," .").concat(i," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(C,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},T=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},x=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;o.useEffect(function(){return document.body.setAttribute(C,(T()+1).toString()),function(){var e=T()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[]);var s=o.useMemo(function(){return k(i)},[i]);return o.createElement(_,{styles:A(s,!t,i,n?"":"!important")})},I=!1;if("undefined"!==typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(G){I=!1}var P=!!I&&{passive:!1},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},O=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),D(e,r)){var o=L(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},D=function(e,t){return"v"===e?function(e){return R(e,"overflowY")}(t):function(e){return R(e,"overflowX")}(t)},L=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},M=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},U=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},V=0,z=[];function B(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H=(q=function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),s=o.useState(V++)[0],a=o.useState(w)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var t=(0,r.fX)([e.lockRef.current],(e.shards||[]).map(j),!0).filter(
2Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var r,o=M(e),s=n.current,a="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=O(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=O(d,u)),!h)return!1;if(!i.current&&"changedTouches"in e&&(a||c)&&(i.current=r),!r)return!0;var f=i.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{if(!a)break;var f=L(e,a),p=f[0],m=f[1]-f[2]-i*p;(p||m)&&D(e,a)&&(d+=m,h+=p);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(h)<1||!o&&-s>h))&&(c=!0),c}(f,t,e,"h"===f?a:c,!0)},[]),u=o.useCallback(function(e){var n=e;if(z.length&&z[z.length-1]===a){var r="deltaY"in n?F(n):M(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(j).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?c(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:B(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),h=o.useCallback(function(e){n.current=M(e),i.current=void 0},[]),f=o.useCallback(function(t){d(t.type,F(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){d(t.type,M(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return z.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,P),document.addEventListener("touchmove",u,P),document.addEventListener("touchstart",h,P),function(){z=z.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,P),document.removeEventListener("touchmove",u,P),document.removeEventListener("touchstart",h,P)}},[]);var m=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(a,{styles:U(s)}):null,m?o.createElement(x,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},f.useMedium(q),v);var q,W=o.forwardRef(function(e,t){return o.createElement(m,(0,r.Cl)({},e,{ref:t,sideCar:H}))});W.classNames=m.classNames;const K=W},1721:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{V:()=>r})},1740:(e,t,n)=>{"use strict";n.d(t,{IX:()=>Ke,HF:()=>Je,LD:()=>Qe,xI:()=>zn,x8:()=>tn,kZ:()=>dt,x9:()=>ft,CI:()=>vt,y1:()=>it,f3:()=>mt,r7:()=>pt});var r=n(52),o=n(1529),i=n(443),s=n(6326),a=n(8812);function l(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const c=l,u=new o.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),d=new i.Vy("@firebase/auth");function h(e){if(d.logLevel<=i.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];d.error("Auth (".concat(r.MF,"): ").concat(e),...n)}}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw y(e,...n)}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e,...n)}function m(e,t,n){const r=Object.assign(Object.assign({},c()),{[t]:n});
2return new o.FA("auth","Firebase",r).create(t,{appName:e.name})}function g(e){return m(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function v(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&f(e,"argument-error"),m(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return u.create(e,...n)}function b(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];throw y(t,...r)}}function w(e){const t="INTERNAL ASSERTION FAILED: "+e;throw h(t),new Error(t)}function S(e,t){e||w(t)}function E(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function k(){return"http:"===_()||"https:"===_()}function _(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class C{constructor(e,t){this.shortDelay=e,this.longDelay=t,S(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,o.jZ)()||(0,o.lV)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(k()||(0,o.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function A(e,t){S(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class T{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void w("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void w("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void w("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const x={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},I=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],N=new C(3e4,6e4);function P(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function R(e,t,n,r){return O(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},async()=>{let i={},s={};r&&("GET"===t?s=r:i={body:JSON.stringify(r)});const a=(0,o.Am)(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const c=Object.assign({method:t,headers:l},i);return(0,o.c1)()||(c.referrerPolicy="no-referrer"),e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(c.credentials="include"),T.fetch()(await L(e,e.config.apiHost,n,a),c)})}async function O(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},x),t);try{const t=new F(e),o=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const i=await o.json();if("needConfirmation"in i)throw j(e,"account-exists-with-different-credential",i);if(o.ok&&!("errorMessage"in i))return i;{const t=o.ok?i.errorMessage:i.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw j(e,"credential-already-in-use",i);if("EMAIL_EXISTS"===n)throw j(e,"email-already-in-use",i);if("USER_DISABLED"===n)throw j(e,"user-disabled",i);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw m(e,a,s);f(e,a)}}catch(i){if(i instanceof o.g)throw i;f(e,"network-request-failed",{message:String(i)})}}async function D(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const i=await R(e,t,n,r,o);return"mfaPendingCredential"in i&&f(e,"multi-factor-auth-required",{_serverResponse:i}),i}async function L(e,t,n,r){const o="".concat(t).concat(n,"?").concat(r),i=e,s=i.config.emulator?A(e.config,o):"".concat(e.config.apiScheme,"://").concat(o);if(I.includes(n)&&(await i._persistenceManagerAvailable,"COOKIE"===i._getPersistenceType())){return i._getPersistence()._getFinalTarget(s).toString()}return s}function M(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class F{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(p(this.auth,"network-request-failed")),N.get())})}}function j(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=p(e,t,r);return o.customData._tokenResponse=n,o}function U(e){return void 0!==e&&void 0!==e.enterprise}class V{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return M(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function z(e,t){return R(e,"GET","/v2/recaptchaConfig",P(e,t))}async function B(e,t){return R(e,"POST","/v1/accounts:lookup",t)}function H(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function q(e){return 1e3*Number(e)}function W(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return h("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,o.u)(n);return e?JSON.parse(e):(h("Failed to decode base64 JWT payload"),null)}catch(i){return h("Caught error parsing JWT payload as JSON",null===i||void 0===i?void 0:i.toString()),null}}function K(e){const t=W(e);return b(t,"internal-error"),b("undefined"!==typeof t.exp,"internal-error"),b("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function G(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}
2catch(n){throw n instanceof o.g&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class Y{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class Q{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=H(this.lastLoginAt),this.creationTime=H(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function X(e){var t;const n=e.auth,r=await e.getIdToken(),o=await G(e,B(n,{idToken:r}));b(null===o||void 0===o?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=(null===(t=i.providerUserInfo)||void 0===t?void 0:t.length)?J(i.providerUserInfo):[],a=(l=e.providerData,c=s,[...l.filter(e=>!c.some(t=>t.providerId===e.providerId)),...c]);var l,c;const u=e.isAnonymous,d=!(e.email&&i.passwordHash)&&!(null===a||void 0===a?void 0:a.length),h=!!u&&d,f={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new Q(i.createdAt,i.lastLoginAt),isAnonymous:h};Object.assign(e,f)}function J(e){return e.map(e=>{var{providerId:t}=e,n=(0,s.Tt)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}class ${constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){b(e.idToken,"internal-error"),b("undefined"!==typeof e.idToken,"internal-error"),b("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):K(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){b(0!==e.length,"internal-error");const t=K(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(b(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await O(e,{},async()=>{const n=(0,o.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,s=await L(e,r,"/v1/token","key=".concat(i)),a=await e._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:a,body:n};return e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(l.credentials="include"),T.fetch()(s,l)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:o}=t,i=new $;return n&&(b("string"===typeof n,"internal-error",{appName:e}),i.refreshToken=n),r&&(b("string"===typeof r,"internal-error",{appName:e}
2),i.accessToken=r),o&&(b("number"===typeof o,"internal-error",{appName:e}),i.expirationTime=o),i}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new $,this.toJSON())}_performRefresh(){return w("not implemented")}}function Z(e,t){b("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class ee{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,o=(0,s.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Y(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Q(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(e){const t=await G(this,this.stsTokenManager.getToken(this.auth,e));return b(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,o.Ku)(e),r=await n.getIdToken(t),i=W(r);b(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s="object"===typeof i.firebase?i.firebase:void 0,a=null===s||void 0===s?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:H(q(i.auth_time)),issuedAtTime:H(q(i.iat)),expirationTime:H(q(i.exp)),signInProvider:a||null,signInSecondFactor:(null===s||void 0===s?void 0:s.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,o.Ku)(e);await X(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(b(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ee(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){b(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await X(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,r.xZ)(this.auth.app))return Promise.reject(g(this.auth));const e=await this.getIdToken();return await G(this,async function(e,t){return R(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,o,i,s,a,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,h=null!==(o=t.phoneNumber)&&void 0!==o?o:void 0,f=null!==(i=t.photoURL)&&void 0!==i?i:void 0,p=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:y,emailVerified:w,isAnonymous:S,providerData:E,stsTokenManager:k}=t;b(y&&k,e,"internal-error");const _=$.fromJSON(this.name,k);b("string"===typeof y,e,"internal-error"),Z(u,e.name),Z(d,e.name),b("boolean"===typeof w,e,"internal-error"),b("boolean"===typeof S,e,"internal-error"),Z(h,e.name),Z(f,e.name),Z(p,e.name),Z(m,e.name),Z(g,e.name),Z(v,e.name);const C=new ee({uid:y,auth:e,email:d,emailVerified:w,displayName:u,isAnonymous:S,photoURL:f,phoneNumber:h,tenantId:p,stsTokenManager:_,createdAt:g,lastLoginAt:v});return E&&Array.isArray(E)&&(C.providerData=E.map(e=>Object.assign({},e))),m&&(C._redirectEventId=m),C}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new $;r.updateFromServerResponse(t);const o=new ee({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await X(o),o}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];b(void 0!==r.localId,"internal-error");const o=void 0!==r.providerUserInfo?J(r.providerUserInfo):[],i=!(r.email&&r.passwordHash)&&!(null===o||void 0===o?void 0:o.length),s=new $;s.updateFromIdToken(n);const a=new ee({uid:r.localId,auth:e,stsTokenManager:s,isAnonymous:i}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:o,metadata:new Q(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null===o||void 0===o?void 0:o.length)};return Object.assign(a,l),a}}const te=new Map;function ne(e){S(e instanceof Function,"Expected a class definition");let t=te.get(e);return t?(S(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,te.set(e,t),t)}class re{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}re.type="NONE";const oe=re;function ie(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class se{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:o}=this.auth;this.fullUserKey=ie(this.userKey,r.apiKey,o),this.fullPersistenceKey=ie("persistence",r.apiKey,o),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"===typeof e){const t=await B(this.auth,{idToken:e}).catch(()=>{});return t?ee._fromGetAccountInfoResponse(this.auth,t,e):null}return ee._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new se(ne(oe),e,n);const r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let o=r[0]||ne(oe);const i=ie(n,e.config.apiKey,e.name);let s=null;for(const c of t)try{const t=await c._get(i);if(t){let n;if("string"===typeof t){const r=await B(e,{idToken:t}).catch(()=>{});if(!r)break;n=await ee._fromGetAccountInfoResponse(e,r,t)}else n=ee._fromJSON(e,t);c!==o&&(s=n),o=c;break}}catch(l){}const a=r.filter(e=>e._shouldAllowMigration);return o._shouldAllowMigration&&a.length?(o=a[0],s&&await o._set(i,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==o)try{await e._remove(i)}catch(l){}})),new se(o,e,n)):new se(o,e,n)}}function ae(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(de(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(le(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(fe(t))return"Blackberry";if(pe(t))return"Webos";if(ce(t))return"Safari";
2if((t.includes("chrome/")||ue(t))&&!t.includes("edge/"))return"Chrome";if(he(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/firefox\//i.test(e)}function ce(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/crios\//i.test(e)}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/iemobile/i.test(e)}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/android/i.test(e)}function fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/blackberry/i.test(e)}function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/webos/i.test(e)}function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function ge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return me(e)||he(e)||pe(e)||fe(e)||/windows phone/i.test(e)||de(e)}function ve(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=ae((0,o.ZQ)());break;case"Worker":t="".concat(ae((0,o.ZQ)()),"-").concat(e);break;default:t=e}const i=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(r.MF,"/").concat(i)}class ye{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(o){r(o)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class be{constructor(e){var t,n,r,o;const i=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=i.minPasswordLength)&&void 0!==t?t:6,i.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=i.maxPasswordLength),void 0!==i.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=i.containsLowercaseCharacter),void 0!==i.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=i.containsUppercaseCharacter),void 0!==i.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=i.containsNumericCharacter),void 0!==i.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=i.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(o=e.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,o,i,s;const a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(n=a.meetsMaxPasswordLength)||void 0===n||n),a.isValid&&(a.isValid=null===(r=a.containsLowercaseLetter)||void 0===r||r),a.isValid&&(a.isValid=null===(o=a.containsUppercaseLetter)||void 0===o||o),a.isValid&&(a.isValid=null===(i=a.containsNumericCharacter)||void 0===i||i),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}class we{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ee(this),this.idTokenSubscription=new Ee(this),this.beforeStateQueue=new ye(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=ne(t)),this._initializationPromise=this.queue(async()=>{var n,r,o;
2if(!this._deleted&&(this.persistenceManager=await se.create(this,e),null===(n=this._resolvePersistenceManagerAvailable)||void 0===n||n.call(this),!this._deleted)){if(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(o=this.currentUser)||void 0===o?void 0:o.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await B(this,{idToken:e}),n=await ee._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,r.xZ)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let o=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,r=null===o||void 0===o?void 0:o._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==r||!(null===s||void 0===s?void 0:s.user)||(o=s.user,i=!0)}if(!o)return this.directlySetCurrentUser(null);if(!o._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(o)}catch(s){o=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return b(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await X(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,r.xZ)(this.app))return Promise.reject(g(this));const t=e?(0,o.Ku)(e):null;return t&&b(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&b(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,r.xZ)(this.app)?Promise.reject(g(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,r.xZ)(this.app)?Promise.reject(g(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ne(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return R(e,"GET","/v2/passwordPolicy",P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new be(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new o.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>
2{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return R(e,"POST","/v2/accounts:revokeToken",P(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&ne(e)||this._popupRedirectResolver;b(t,this,"argument-error"),this.redirectPersistenceManager=await se.create(this,[ne(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const o="function"===typeof t?t:t.next.bind(t);let i=!1;const s=this._isInitialized?Promise.resolve():this._initializationPromise;if(b(s,this,"internal-error"),s.then(()=>{i||o(this.currentUser)}),"function"===typeof t){const o=e.addObserver(t,n,r);return()=>{i=!0,o()}}{const n=e.addObserver(t);return()=>{i=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return b(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=ve(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;if((0,r.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(d.logLevel<=i.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];d.warn("Auth (".concat(r.MF,"): ").concat(e),...n)}}("Error while retrieving App Check token: ".concat(t.error)),null===t||void 0===t?void 0:t.token}}function Se(e){return(0,o.Ku)(e)}class Ee{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,o.tD)(e=>this.observer=e)}get next(){return b(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let ke={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function _e(e){return ke.loadJS(e)}function Ce(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class Ae{constructor(){this.enterprise=new Te}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class Te{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}const xe="NO_RECAPTCHA";class Ie{constructor(e){this.type="recaptcha-enterprise",this.auth=Se(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const o=window.grecaptcha;U(o)?o.enterprise.ready(()=>{o.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(xe)})}):r(Error("No reCAPTCHA enterprise script loaded."))}if(this.auth.settings.appVerificationDisabledForTesting){return(new Ae).execute("siteKey",{action:"verify"})}return new Promise((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>
2{z(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0!==r.recaptchaKey){const n=new V(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))}).catch(e=>{n(e)})})})(this.auth).then(o=>{if(!t&&U(window.grecaptcha))n(o,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=ke.recaptchaEnterpriseScript;0!==t.length&&(t+=o),_e(t).then(()=>{n(o,e,r)}).catch(e=>{r(e)})}}).catch(e=>{r(e)})})}}async function Ne(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const i=new Ie(e);let s;if(o)s=xe;else try{s=await i.verify(n)}catch(l){s=await i.verify(n,!0)}const a=Object.assign({},t);if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in a){const e=a.phoneEnrollmentInfo.phoneNumber,t=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const e=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:s}):Object.assign(a,{captchaResponse:s}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Pe(e,t,n,r,o){var i,s;if("EMAIL_PASSWORD_PROVIDER"===o){if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const o=await Ne(e,t,n,"getOobCode"===n);return r(e,o)}return r(e,t).catch(async o=>{if(o.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const o=await Ne(e,t,n,"getOobCode"===n);return r(e,o)}return Promise.reject(o)})}if("PHONE_PROVIDER"===o){if(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.isProviderEnabled("PHONE_PROVIDER")){const o=await Ne(e,t,n);return r(e,o).catch(async o=>{var i;if("AUDIT"===(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.getProviderEnforcementState("PHONE_PROVIDER"))&&(o.code==="auth/".concat("missing-recaptcha-token")||o.code==="auth/".concat("invalid-app-credential"))){console.log("Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ".concat(n," flow."));const o=await Ne(e,t,n,!1,!0);return r(e,o)}return Promise.reject(o)})}{const o=await Ne(e,t,n,!1,!0);return r(e,o)}}return Promise.reject(o+" provider is not supported.")}async function Re(e){const t=Se(e),n=await z(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new V(n);if(null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()){new Ie(t).verify()}}function Oe(e,t,n){const r=Se(e);b(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),s=De(t),{host:a,port:l}=function(e){const t=De(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const e=o[1];return{host:e,port:Le(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Le(t)}}}(t),c=null===l?"":":".concat(l),u={url:"".concat(s,"//").concat(a).concat(c,"/")},d=Object.freeze({host:a,port:l,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator)return b(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void b((0,o.bD)(u,r.config.emulator)&&(0,o.bD)(d,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=u,r.emulatorConfig=d,r.settings.appVerificationDisabledForTesting=!0,(0,o.zJ)(a)?((0,o.gE)("".concat(s,"//").concat(a).concat(c)),(0,o.P1)("Auth",!0)):i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function De(e){const t=e.indexOf(":");
2return t<0?"":e.substr(0,t+1)}function Le(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class Me{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return w("not implemented")}_getIdTokenResponse(e){return w("not implemented")}_linkToIdToken(e,t){return w("not implemented")}_getReauthenticationResolver(e){return w("not implemented")}}async function Fe(e,t){return R(e,"POST","/v1/accounts:signUp",t)}async function je(e,t){return D(e,"POST","/v1/accounts:signInWithPassword",P(e,t))}class Ue extends Me{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new Ue(e,t,"password")}static _fromEmailAndCode(e,t){return new Ue(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Pe(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",je,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return D(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{email:this._email,oobCode:this._password});default:f(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Pe(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Fe,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return D(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:f(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ve(e,t){return D(e,"POST","/v1/accounts:signInWithIdp",P(e,t))}class ze extends Me{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new ze(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):f("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,o=(0,s.Tt)(t,["providerId","signInMethod"]);if(!n||!r)return null;const i=new ze(n,r);return i.idToken=o.idToken||void 0,i.accessToken=o.accessToken||void 0,i.secret=o.secret,i.nonce=o.nonce,i.pendingToken=o.pendingToken||null,i}_getIdTokenResponse(e){return Ve(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ve(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ve(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,o.Am)(t)}return e}}async function Be(e,t){return R(e,"POST","/v1/accounts:sendVerificationCode",P(e,t))}const He={USER_NOT_FOUND:"user-not-found"};class qe extends Me{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new qe({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new qe({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t));if(n.temporaryProof)throw j(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),He)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:o}=e;return n||t||r||o?new qe({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:o}):null}}class We{constructor(e){var t,n,r,i,s,a;const l=(0,o.I9)((0,o.hp)(e)),c=null!==(t=l.apiKey)&&void 0!==t?t:null,u=null!==(n=l.oobCode)&&void 0!==n?n:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=l.mode)&&void 0!==r?r:null);b(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=null!==(i=l.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(s=l.lang)&&void 0!==s?s:null,this.tenantId=null!==(a=l.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=(0,o.I9)((0,o.hp)(e)).link,n=t?(0,o.I9)((0,o.hp)(t)).deep_link_id:null,r=(0,o.I9)((0,o.hp)(e)).deep_link_id;return(r?(0,o.I9)((0,o.hp)(r)).link:null)||r||n||t||e}(e);try{return new We(t)}catch(n){return null}}}class Ke{constructor(){this.providerId=Ke.PROVIDER_ID}static credential(e,t){return Ue._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=We.parseLink(t);return b(n,"argument-error"),Ue._fromEmailAndCode(e,n.code,n.tenantId)}}Ke.PROVIDER_ID="password",Ke.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Ke.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Ge{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Ye extends Ge{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Qe extends Ye{static credentialFromJSON(e){const t="string"===typeof e?JSON.parse(e):e;return b("providerId"in t&&"signInMethod"in t,"argument-error"),ze._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return b(e.idToken||e.accessToken,"argument-error"),ze._fromParams(Object.assign(Object.assign({}
2,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return Qe.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return Qe.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:o,pendingToken:i,nonce:s,providerId:a}=t;if(!r&&!o&&!n&&!i)return null;if(!a)return null;try{return new Qe(a)._credential({idToken:n,accessToken:r,nonce:s,pendingToken:i})}catch(l){return null}}}class Xe extends Ye{constructor(){super("facebook.com")}static credential(e){return ze._fromParams({providerId:Xe.PROVIDER_ID,signInMethod:Xe.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Xe.credentialFromTaggedObject(e)}static credentialFromError(e){return Xe.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Xe.credential(t.oauthAccessToken)}catch(n){return null}}}Xe.FACEBOOK_SIGN_IN_METHOD="facebook.com",Xe.PROVIDER_ID="facebook.com";class Je extends Ye{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return ze._fromParams({providerId:Je.PROVIDER_ID,signInMethod:Je.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Je.credentialFromTaggedObject(e)}static credentialFromError(e){return Je.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Je.credential(n,r)}catch(o){return null}}}Je.GOOGLE_SIGN_IN_METHOD="google.com",Je.PROVIDER_ID="google.com";class $e extends Ye{constructor(){super("github.com")}static credential(e){return ze._fromParams({providerId:$e.PROVIDER_ID,signInMethod:$e.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return $e.credentialFromTaggedObject(e)}static credentialFromError(e){return $e.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return $e.credential(t.oauthAccessToken)}catch(n){return null}}}$e.GITHUB_SIGN_IN_METHOD="github.com",$e.PROVIDER_ID="github.com";class Ze extends Ye{constructor(){super("twitter.com")}static credential(e,t){return ze._fromParams({providerId:Ze.PROVIDER_ID,signInMethod:Ze.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Ze.credentialFromTaggedObject(e)}static credentialFromError(e){return Ze.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Ze.credential(n,r)}catch(o){return null}}}Ze.TWITTER_SIGN_IN_METHOD="twitter.com",Ze.PROVIDER_ID="twitter.com";class et{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=await ee._fromIdTokenResponse(e,n,r),i=tt(n);return new et({user:o,providerId:i,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=tt(n);return new et({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function tt(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class nt extends o.g{constructor(e,t,n,r){var o;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,nt.prototype),this.customData={appName:e.name,tenantId:null!==(o=e.tenantId)&&void 0!==o?o:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new nt(e,t,n,r)}}function rt(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw nt._fromErrorAndOperation(e,n,t,r);throw n})}function ot(e){return new Set(e.map(e=>{let{providerId:t}=e;return t}).filter(e=>!!e))}async function it(e,t){const n=(0,o.Ku)(e);await at(!0,n,t);const{providerUserInfo:r}=await async function(e,t){return R(e,"POST","/v1/accounts:update",t)}(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=ot(r||[]);return n.providerData=n.providerData.filter(e=>i.has(e.providerId)),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function st(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await G(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return et._forOperation(e,"link",r)}async function at(e,t,n){await X(t);const r=!1===e?"provider-already-linked":"no-such-provider";b(ot(t.providerData).has(n)===e,t.auth,r)}async function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:o}=e;if((0,r.xZ)(o.app))return Promise.reject(g(o));const i="reauthenticate";try{const r=await G(e,rt(o,i,t,e),n);b(r.idToken,o,"internal-error");const s=W(r.idToken);b(s,o,"internal-error");const{sub:a}=s;return b(e.uid===a,o,"user-mismatch"),et._forOperation(e,i,r)}catch(s){throw(null===s||void 0===s?void 0:s.code)==="auth/".concat("user-not-found")&&f(o,"user-mismatch"),s}}async function ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,r.xZ)(e.app))return Promise.reject(g(e));
2const o="signIn",i=await rt(e,o,t),s=await et._fromIdTokenResponse(e,o,i);return n||await e._updateCurrentUser(s.user),s}async function ut(e,t){return ct(Se(e),t)}async function dt(e,t){return lt((0,o.Ku)(e),t)}async function ht(e){const t=Se(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}function ft(e,t,n){return(0,r.xZ)(e.app)?Promise.reject(g(e)):ut((0,o.Ku)(e),Ke.credential(t,n)).catch(async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&ht(e),t})}async function pt(e,t){let{displayName:n,photoURL:r}=t;if(void 0===n&&void 0===r)return;const i=(0,o.Ku)(e),s={idToken:await i.getIdToken(),displayName:n,photoUrl:r,returnSecureToken:!0},a=await G(i,async function(e,t){return R(e,"POST","/v1/accounts:update",t)}(i.auth,s));i.displayName=a.displayName||null,i.photoURL=a.photoUrl||null;const l=i.providerData.find(e=>{let{providerId:t}=e;return"password"===t});l&&(l.displayName=i.displayName,l.photoURL=i.photoURL),await i._updateTokensIfNecessary(a)}function mt(e,t){return gt((0,o.Ku)(e),null,t)}async function gt(e,t,n){const{auth:r}=e,o={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(o.email=t),n&&(o.password=n);const i=await G(e,async function(e,t){return R(e,"POST","/v1/accounts:update",t)}(r,o));await e._updateTokensIfNecessary(i,!0)}function vt(e){return(0,o.Ku)(e).signOut()}function yt(e,t){return R(e,"POST","/v2/accounts/mfaEnrollment:start",P(e,t))}new WeakMap;const bt="__sak";class wt{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(bt,"1"),this.storage.removeItem(bt),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class St extends wt{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=ge(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,o.lT)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}St.type="LOCAL";const Et=St;function kt(e){var t,n;const r=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),o=RegExp("".concat(r,"=([^;]+)"));
2return null!==(n=null===(t=document.cookie.match(o))||void 0===t?void 0:t[1])&&void 0!==n?n:null}function _t(e){const t="http:"===window.location.protocol;return"".concat(t?"__dev_":"__HOST-","FIREBASE_").concat(e.split(":")[3])}class Ct{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(void 0===typeof window)return e;const t=new URL("".concat(window.location.origin,"/__cookies__"));return t.searchParams.set("finalTarget",e),t}async _isAvailable(){var e;return!("boolean"===typeof isSecureContext&&!isSecureContext)&&("undefined"!==typeof navigator&&"undefined"!==typeof document&&(null===(e=navigator.cookieEnabled)||void 0===e||e))}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;const t=_t(e);if(window.cookieStore){const e=await window.cookieStore.get(t);return null===e||void 0===e?void 0:e.value}return kt(t)}async _remove(e){if(!this._isAvailable())return;if(!await this._get(e))return;const t=_t(e);document.cookie="".concat(t,"=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High"),await fetch("/__cookies__",{method:"DELETE"}).catch(()=>{})}_addListener(e,t){if(!this._isAvailable())return;const n=_t(e);if(window.cookieStore){const e=e=>{const r=e.changed.find(e=>e.name===n);r&&t(r.value);e.deleted.find(e=>e.name===n)&&t(null)},r=()=>window.cookieStore.removeEventListener("change",e);return this.listenerUnsubscribes.set(t,r),window.cookieStore.addEventListener("change",e)}let r=kt(n);const o=setInterval(()=>{const e=kt(n);e!==r&&(t(e),r=e)},1e3);this.listenerUnsubscribes.set(t,()=>clearInterval(o))}_removeListener(e,t){const n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}}Ct.type="COOKIE";class At extends wt{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}At.type="SESSION";const Tt=At;class xt{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new xt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:o}=t.data,i=this.handlersMap[r];if(!(null===i||void 0===i?void 0:i.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const s=Array.from(i).map(async e=>e(t.origin,o)),a=await function(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}}))}(s);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function It(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}xt.receivers=[];class Nt{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let o,i;return new Promise((s,a)=>{const l=It("",20);r.port1.start();const c=setTimeout(()=>{a(new Error("unsupported_event"))},n);i={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),o=setTimeout(()=>{a(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),s(t.data.response);break;default:clearTimeout(c),clearTimeout(o),a(new Error("invalid_response"))}}},this.handlers.add(i),r.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function Pt(){return window}
2function Rt(){return"undefined"!==typeof Pt().WorkerGlobalScope&&"function"===typeof Pt().importScripts}const Ot="firebaseLocalStorageDb",Dt="firebaseLocalStorage",Lt="fbase_key";class Mt{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function Ft(e,t){return e.transaction([Dt],t?"readwrite":"readonly").objectStore(Dt)}function jt(){const e=indexedDB.open(Ot,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const t=e.result;try{t.createObjectStore(Dt,{keyPath:Lt})}catch(r){n(r)}}),e.addEventListener("success",async()=>{const n=e.result;n.objectStoreNames.contains(Dt)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Ot);return new Mt(e).toPromise()}(),t(await jt()))})})}async function Ut(e,t,n){const r=Ft(e,!0).put({[Lt]:t,value:n});return new Mt(r).toPromise()}function Vt(e,t){const n=Ft(e,!0).delete(t);return new Mt(n).toPromise()}class zt{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await jt()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Rt()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=xt._getInstance(Rt()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Nt(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await jt();return await Ut(e,bt,"1"),await Vt(e,bt),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Ut(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>async function(e,t){const n=Ft(e,!1).get(t),r=await new Mt(n).toPromise();return void 0===r?null:r.value}(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>Vt(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=Ft(e,!1).getAll();return new Mt(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:o}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(o)&&(this.notifyListeners(r,o),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}zt.type="LOCAL";const Bt=zt;function Ht(e,t){return R(e,"POST","/v2/accounts/mfaSignIn:start",P(e,t))}Ce("rcb"),new C(3e4,6e4);const qt="recaptcha";async function Wt(e,t,n){var r;if(!e._getRecaptchaConfig())try{await Re(e)}catch(o){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let o;if(o="string"===typeof t?{phoneNumber:t}
2:t,"session"in o){const t=o.session;if("phoneNumber"in o){b("enroll"===t.type,e,"internal-error");const r={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},i=Pe(e,r,"mfaSmsEnrollment",async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===xe){b((null===n||void 0===n?void 0:n.type)===qt,e,"argument-error");return yt(e,await Kt(e,t,n))}return yt(e,t)},"PHONE_PROVIDER");return(await i.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{b("signin"===t.type,e,"internal-error");const i=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;b(i,e,"missing-multi-factor-info");const s={mfaPendingCredential:t.credential,mfaEnrollmentId:i,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},a=Pe(e,s,"mfaSmsSignIn",async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===xe){b((null===n||void 0===n?void 0:n.type)===qt,e,"argument-error");return Ht(e,await Kt(e,t,n))}return Ht(e,t)},"PHONE_PROVIDER");return(await a.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{const t={phoneNumber:o.phoneNumber,clientType:"CLIENT_TYPE_WEB"},r=Pe(e,t,"sendVerificationCode",async(e,t)=>{if(t.captchaResponse===xe){b((null===n||void 0===n?void 0:n.type)===qt,e,"argument-error");return Be(e,await Kt(e,t,n))}return Be(e,t)},"PHONE_PROVIDER");return(await r.catch(e=>Promise.reject(e))).sessionInfo}}finally{null===n||void 0===n||n._reset()}}async function Kt(e,t,n){b(n.type===qt,e,"argument-error");const r=await n.verify();b("string"===typeof r,e,"argument-error");const o=Object.assign({},t);if("phoneEnrollmentInfo"in o){const e=o.phoneEnrollmentInfo.phoneNumber,t=o.phoneEnrollmentInfo.captchaResponse,n=o.phoneEnrollmentInfo.clientType,i=o.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(o,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:i}}),o}if("phoneSignInInfo"in o){const e=o.phoneSignInInfo.captchaResponse,t=o.phoneSignInInfo.clientType,n=o.phoneSignInInfo.recaptchaVersion;return Object.assign(o,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),o}return Object.assign(o,{recaptchaToken:r}),o}class Gt{constructor(e){this.providerId=Gt.PROVIDER_ID,this.auth=Se(e)}verifyPhoneNumber(e,t){return Wt(this.auth,e,(0,o.Ku)(t))}static credential(e,t){return qe._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Gt.credentialFromTaggedObject(t)}static credentialFromError(e){return Gt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?qe._fromTokenResponse(n,r):null}}function Yt(e,t){return t?ne(t):(b(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}Gt.PROVIDER_ID="phone",Gt.PHONE_SIGN_IN_METHOD="phone";class Qt extends Me{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ve(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Ve(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Ve(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Xt(e){return ct(e.auth,new Qt(e),e.bypassAuthState)}function Jt(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),lt(n,new Qt(e),e.bypassAuthState)}async function $t(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),st(n,new Qt(e),e.bypassAuthState)}class Zt{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}})}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:o,error:i,type:s}=e;if(i)return void this.reject(i);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:o||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Xt;case"linkViaPopup":case"linkViaRedirect":return $t;case"reauthViaPopup":case"reauthViaRedirect":return Jt;default:f(this.auth,"internal-error")}}resolve(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const en=new C(2e3,1e4);async function tn(e,t,n){const r=(0,o.Ku)(e);v(r.auth,t,Ge);const i=Yt(r.auth,n);return new nn(r.auth,"linkViaPopup",t,i,r).executeNotNull()}class nn extends Zt{constructor(e,t,n,r,o){super(e,t,r,o),this.provider=n,this.authWindow=null,this.pollId=null,nn.currentPopupAction&&nn.currentPopupAction.cancel(),nn.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return b(e,this.auth,"internal-error"),e}async onExecution(){S(1===this.filter.length,"Popup operations only handle one event");const e=It();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(p(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(p(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,nn.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,en.get())};e()}}nn.currentPopupAction=null;const rn=new Map;class on extends Zt{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=rn.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=ln(t),r=an(e);if(!await r._isAvailable())return!1;const o="true"===await r._get(n);return await r._remove(n),o}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}rn.set(this.auth._key(),e)}return this.bypassAuthState||rn.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
2if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function sn(e,t){rn.set(e._key(),t)}function an(e){return ne(e._redirectPersistence)}function ln(e){return ie("pendingRedirect",e.config.apiKey,e.name)}async function cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,r.xZ)(e.app))return Promise.reject(g(e));const o=Se(e),i=Yt(o,t),s=new on(o,i,n),a=await s.execute();return a&&!n&&(delete a.user._redirectEventId,await o._persistUserIfCurrent(a.user),await o._setRedirectUser(null,t)),a}class un{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return hn(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!hn(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(p(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(dn(e))}saveEventToCache(e){this.cachedEventUids.add(dn(e)),this.lastProcessedEventTime=Date.now()}}function dn(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function hn(e){let{type:t,error:n}=e;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}const fn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pn=/^https?/;async function mn(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e){return R(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e);for(const r of t)try{if(gn(r))return}catch(n){}f(e,"unauthorized-domain")}function gn(e){const t=E(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const o=new URL(e);return""===o.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&o.hostname===r}if(!pn.test(n))return!1;if(fn.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}const vn=new C(3e4,6e4);function yn(){const e=Pt().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function bn(e){return new Promise((t,n)=>{var r,o,i;function s(){yn(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{yn(),n(p(e,"network-request-failed"))},timeout:vn.get()})}if(null===(o=null===(r=Pt().gapi)||void 0===r?void 0:r.iframes)||void 0===o?void 0:o.Iframe)t(gapi.iframes.getContext());else{if(!(null===(i=Pt().gapi)||void 0===i?void 0:i.load)){const t=Ce("iframefcb");return Pt()[t]=()=>{gapi.load?s():n(p(e,"network-request-failed"))},_e("".concat(ke.gapiScript,"?onload=").concat(t)).catch(e=>n(e))}s()}}).catch(e=>{throw wn=null,e})}let wn=null;const Sn=new C(5e3,15e3),En={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},kn=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function _n(e){const t=e.config;b(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?A(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),i={apiKey:t.apiKey,appName:e.n
2ame,v:r.MF},s=kn.get(e.config.apiHost);s&&(i.eid=s);const a=e._getFrameworks();return a.length&&(i.fw=a.join(",")),"".concat(n,"?").concat((0,o.Am)(i).slice(1))}async function Cn(e){const t=await function(e){return wn=wn||bn(e),wn}(e),n=Pt().gapi;return b(n,e,"internal-error"),t.open({where:document.body,url:_n(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:En,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});const o=p(e,"network-request-failed"),i=Pt().setTimeout(()=>{r(o)},Sn.get());function s(){Pt().clearTimeout(i),n(t)}t.ping(s).then(s,()=>{r(o)})}))}const An={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Tn{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function xn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const s=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString();let l="";const c=Object.assign(Object.assign({},An),{width:r.toString(),height:i.toString(),top:s,left:a}),u=(0,o.ZQ)().toLowerCase();n&&(l=ue(u)?"_blank":n),le(u)&&(t=t||"http://localhost",c.scrollbars="yes");const d=Object.entries(c).reduce((e,t)=>{let[n,r]=t;return"".concat(e).concat(n,"=").concat(r,",")},"");if(function(){var e;return me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(u)&&"_self"!==l)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",l),new Tn(null);const h=window.open(t||"",l,d);b(h,e,"popup-blocked");try{h.focus()}catch(f){}return new Tn(h)}const In="__/auth/handler",Nn="emulator/auth/handler",Pn=encodeURIComponent("fac");async function Rn(e,t,n,i,s,a){b(e.config.authDomain,e,"auth-domain-config-required"),b(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:i,v:r.MF,eventId:s};if(t instanceof Ge){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,o.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(a||{}))l[e]=t}if(t instanceof Ye){const e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}e.tenantId&&(l.tid=e.tenantId);const c=l;for(const r of Object.keys(c))void 0===c[r]&&delete c[r];const u=await e._getAppCheckToken(),d=u?"#".concat(Pn,"=").concat(encodeURIComponent(u)):"";return"".concat(function(e){let{config:t}=e;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(In);return A(t,Nn)}(e),"?").concat((0,o.Am)(c).slice(1)).concat(d)}const On="webStorageSupport";const Dn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Tt,this._completeRedirectFn=cn,this._overrideRedirectResult=sn}async _openPopup(e,t,n,r){var o;S(null===(o=this.eventManagers[e._key()])||void 0===o?void 0:o.manager,"_initialize() not called before _openPopup()");return xn(e,await Rn(e,t,n,E(),r),It())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){Pt().location.href=e}(await Rn(e,t,n,E(),r)),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(S(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await Cn(e),n=new un(e);return t.register("authEvent",t=>{b(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(On,{type:On},n=>{var r;const o=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[On];void 0!==o&&t(!!o),f(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=mn(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return ge()||ce()||me()}};var Ln="@firebase/auth",Mn="1.10.8";class Fn{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){b(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const jn=(0,o.XA)("authIdTokenMaxAge")||300;let Un=null;const Vn=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>jn)return;const o=null===n||void 0===n?void 0:n.token;Un!==o&&(Un=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:"Bearer ".concat(o)}:{}}))};function zn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Sx)();const t=(0,r.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=(0,r.j6)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if((0,o.bD)(r,null!==t&&void 0!==t?t:{}))return e;f(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:Dn,persistence:[Bt,Et,Tt]}),i=(0,o.XA)("authTokenSyncURL");if(i&&"boolean"===typeof isSecureContext&&isSecureContext){const e=new URL(i,location.origin);if(location.origin===e.origin){const t=Vn(e.toString());!function(e,t,n){(0,o.Ku)(e).beforeAuthStateChanged(t,n)}(n,t,()=>t(n.currentUser)),function(e,t,n,r){(0,o.Ku)(e).onIdTokenChanged(t,n,r)}(n,e=>t(e))}}const s=(0,o.Tj)("auth");return s&&Oe(n,"http://".concat(s)),n}var Bn;ke={loadJS:e=>
2new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=p("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},Bn="Browser",(0,r.om)(new a.uA("auth",(e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),o=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;b(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:Bn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ve(Bn)},c=new we(r,o,i,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(ne);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),(0,r.om)(new a.uA("auth-internal",e=>(e=>new Fn(e))(Se(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,r.KO)(Ln,Mn,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(Bn)),(0,r.KO)(Ln,Mn,"esm2017")},1785:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(3499);function o(e,t){const n=e.map(e=>({value:e,px:(0,r.r)(e,t)}));return n.sort((e,t)=>e.px-t.px),n}},1828:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(9379),o=n(45),i=n(579),s=n(2932),a=n(5043),l=n(5783),c=n(1721),u=n(9863),d=n(8038),h=n(464),f=n(1065);const p=["size","style"],m=(0,a.forwardRef)((e,t)=>{let{size:n="var(--cb-icon-size, 70%)",style:s}=e,a=(0,o.A)(e,p);return(0,i.jsx)("svg",(0,r.A)((0,r.A)({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:(0,r.A)((0,r.A)({},s),{},{width:n,height:n}),ref:t},a),{},{children:(0,i.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))});m.displayName="@mantine/core/CloseIcon";var g={root:"m_86a44da5","root--subtle":"m_220c80f2"};const v=["iconSize","children","vars","radius","className","classNames","style","styles","unstyled","data-disabled","disabled","variant","icon","mod","__staticSelector"],y={variant:"subtle"},b=(0,c.V)((e,t)=>{let{size:n,radius:r,iconSize:o}=t;return{root:{"--cb-size":(0,l.YC)(n,"cb-size"),"--cb-radius":void 0===r?void 0:(0,l.nJ)(r),"--cb-icon-size":(0,s.D)(o)}}}),w=(0,h.v)((e,t)=>{const n=(0,u.Y)("CloseButton",y,e),{iconSize:s,children:a,vars:l,radius:c,className:h,classNames:p,style:w,styles:S,unstyled:E,"data-disabled":k,disabled:_,variant:C,icon:A,mod:T,__staticSelector:x}=n,I=(0,o.A)(n,v),N=(0,d.I)({name:x||"CloseButton",props:n,className:h,style:w,classes:g,classNames:p,styles:S,unstyled:E,vars:l,varsResolver:b});return(0,i.jsxs)(f.N,(0,r.A)((0,r.A)((0,r.A)({ref:t},I),{},{unstyled:E,variant:C,disabled:_,mod:[{disabled:_||k},T]},N("root",{variant:C,active:!_&&!k})),{},{children:[A||(0,i.jsx)(m,{}),a]}))});w.classes=g,w.displayName="@mantine/core/CloseButton"},1844:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},1891:(e,t,n)=>{"use strict";function r(e,t){return"number"===typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}n.d(t,{g:()=>r})}
2,1923:(e,t,n)=>{"use strict";n.d(t,{s:()=>b});var r=n(9379),o=n(45),i=n(579),s=n(81),a=(n(5043),n(3056)),l=n(9863),c=n(8038),u=n(2887),d=n(737),h=n(2869),f=n(4886),p=n(464);const m={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var g={root:"m_8bffd616"};const v=["classNames","className","style","styles","unstyled","vars","gap","rowGap","columnGap","align","justify","wrap","direction"],y={},b=(0,p.v)((e,t)=>{const n=(0,l.Y)("Flex",y,e),{classNames:p,className:b,style:w,styles:S,unstyled:E,vars:k,gap:_,rowGap:C,columnGap:A,align:T,justify:x,wrap:I,direction:N}=n,P=(0,o.A)(n,v),R=(0,c.I)({name:"Flex",classes:g,props:n,className:b,style:w,classNames:p,styles:S,unstyled:E,vars:k}),O=(0,a.xd)(),D=(0,h.C)(),L=(0,d.X)({styleProps:{gap:_,rowGap:C,columnGap:A,align:T,justify:x,wrap:I,direction:N},theme:O,data:m});return(0,i.jsxs)(i.Fragment,{children:[L.hasResponsiveStyles&&(0,i.jsx)(u.K,{selector:".".concat(D),styles:L.styles,media:L.media}),(0,i.jsx)(f.a,(0,r.A)((0,r.A)({ref:t},R("root",{className:D,style:(0,s.J)(L.inlineStyles)})),P))]})});b.classes=g,b.displayName="@mantine/core/Flex"},1953:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});const r={app:100,modal:200,popover:300,overlay:400,max:9999};function o(e){return r[e]}},2154:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(45),o=n(81);n(5043),n(579);const i=["m","mx","my","mt","mb","ml","mr","me","ms","p","px","py","pt","pb","pl","pr","pe","ps","bd","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display","flex","hiddenFrom","visibleFrom","lightHidden","darkHidden","sx"];function s(e){const{m:t,mx:n,my:s,mt:a,mb:l,ml:c,mr:u,me:d,ms:h,p:f,px:p,py:m,pt:g,pb:v,pl:y,pr:b,pe:w,ps:S,bd:E,bg:k,c:_,opacity:C,ff:A,fz:T,fw:x,lts:I,ta:N,lh:P,fs:R,tt:O,td:D,w:L,miw:M,maw:F,h:j,mih:U,mah:V,bgsz:z,bgp:B,bgr:H,bga:q,pos:W,top:K,left:G,bottom:Y,right:Q,inset:X,display:J,flex:$,hiddenFrom:Z,visibleFrom:ee,lightHidden:te,darkHidden:ne,sx:re}=e,oe=(0,r.A)(e,i);return{styleProps:(0,o.J)({m:t,mx:n,my:s,mt:a,mb:l,ml:c,mr:u,me:d,ms:h,p:f,px:p,py:m,pt:g,pb:v,pl:y,pr:b,pe:w,ps:S,bd:E,bg:k,c:_,opacity:C,ff:A,fz:T,fw:x,lts:I,ta:N,lh:P,fs:R,tt:O,td:D,w:L,miw:M,maw:F,h:j,mih:U,mah:V,bgsz:z,bgp:B,bgr:H,bga:q,pos:W,top:K,left:G,bottom:Y,right:Q,inset:X,display:J,flex:$,hiddenFrom:Z,visibleFrom:ee,lightHidden:te,darkHidden:ne,sx:re}),rest:oe}}},2267:(e,t,n)=>{"use strict";n.d(t,{F:()=>de});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(8913),l=n(2932),c=n(1721),u=n(9863),d=n(8038),h=n(4886),f=n(6331),p=n(605);const[m,g]=(0,p.F)("ScrollArea.Root component was not found in tree");function v(e){const t=(0,s.useRef)(e);return(0,s.useEffect)(()=>{t.current=e}),(0,s.useMemo)(()=>function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}var y=n(7426);function b(e,t){const n=v(t);(0,y.o)(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}const w=["style"],S=(0,s.forwardRef)((e,t)=>{const{style:n}
2=e,a=(0,o.A)(e,w),l=g(),[c,u]=(0,s.useState)(0),[d,h]=(0,s.useState)(0),f=Boolean(c&&d);return b(l.scrollbarX,()=>{var e;const t=(null===(e=l.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;l.onCornerHeightChange(t),h(t)}),b(l.scrollbarY,()=>{var e;const t=(null===(e=l.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;l.onCornerWidthChange(t),u(t)}),f?(0,i.jsx)("div",(0,r.A)((0,r.A)({},a),{},{ref:t,style:(0,r.A)((0,r.A)({},n),{},{width:c,height:d})})):null}),E=(0,s.forwardRef)((e,t)=>{const n=g(),o=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&o?(0,i.jsx)(S,(0,r.A)((0,r.A)({},e),{},{ref:t})):null});var k=n(9252);const _=["type","scrollHideDelay","scrollbars"],C={scrollHideDelay:1e3,type:"hover"},A=(0,s.forwardRef)((e,t)=>{const n=(0,u.Y)("ScrollAreaRoot",C,e),{type:a,scrollHideDelay:l,scrollbars:c}=n,d=(0,o.A)(n,_),[f,p]=(0,s.useState)(null),[g,v]=(0,s.useState)(null),[y,b]=(0,s.useState)(null),[w,S]=(0,s.useState)(null),[E,A]=(0,s.useState)(null),[T,x]=(0,s.useState)(0),[I,N]=(0,s.useState)(0),[P,R]=(0,s.use
2State)(!1),[O,D]=(0,s.useState)(!1),L=(0,k.pc)(t,e=>p(e));return(0,i.jsx)(m,{value:{type:a,scrollHideDelay:l,scrollArea:f,viewport:g,onViewportChange:v,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:S,scrollbarXEnabled:P,onScrollbarXEnabledChange:R,scrollbarY:E,onScrollbarYChange:A,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:N},children:(0,i.jsx)(h.a,(0,r.A)((0,r.A)({},d),{},{ref:L,__vars:{"--sa-corner-width":"xy"!==c?"0px":"".concat(T,"px"),"--sa-corner-height":"xy"!==c?"0px":"".concat(I,"px")}}))})});function T(e,t){const n="number"===typeof t?t:t.delay,r="number"!==typeof t&&t.flushOnUnmount,o=v(e),i=(0,s.useRef)(0),a=(0,s.useRef)(()=>{}),l=Object.assign((0,s.useCallback)(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];window.clearTimeout(i.current);const s=()=>{0!==i.current&&(i.current=0,o(...t))};a.current=s,l.flush=s,i.current=window.setTimeout(s,n)},[o,n]),{flush:a.current});return(0,s.useEffect)(()=>()=>{window.clearTimeout(i.current),r&&l.flush()},[l,r]),l}A.displayName="@mantine/core/ScrollAreaRoot";var x=n(528);function I(e,t){const n=e/t;return Number.isNaN(n)?0:n}function N(e){const t=I(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function P(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr";const r=N(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,l=function(e,t){let[n,r]=t;return Math.min(r,Math.max(n,e))}(e,"ltr"===n?[0,s]:[-1*s,0]);return P([0,s],[0,a])(l)}function O(e,t){return e>0&&e<t}var D=n(3153);function L(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{null===e||void 0===e||e(r),!1!==n&&r.defaultPrevented||null===t||void 0===t||t(r)}}const[M,F]=(0,p.F)("ScrollAreaScrollbar was not found in tree"),j=["sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"],U=(0,s.forwardRef)((e,t)=>{const{sizes:n,hasThumb:a,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:h,onWheelScroll:f,onResize:p}=e,m=(0,o.A)(e,j),y=g(),[w,S]=(0,s.useState)(null),E=(0,k.pc)(t,e=>S(e)),_=(0,s.useRef)(null),C=(0,s.useRef)(""),{viewport:A}=y,x=n.content-n.viewport,I=v(f),N=v(d),P=T(p,10),R=e=>{if(_.current){const t=e.clientX-_.current.left,n=e.clientY-_.current.top;h({x:t,y:n})}};return(0,s.useEffect)(()=>{const e=e=>{const t=e.target;(null===w||void 0===w?void 0:w.contains(t))&&I(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,w,x,I]),(0,s.useEffect)(N,[n,N]),b(w,P),b(y.content,P),(0,i.jsx)(M,{value:{scrollbar:w,hasThumb:a,onThumbChange:v(l),onThumbPointerUp:v(c),onThumbPositionChange:N,onThumbPointerDown:v(u)},children:(0,i.jsx)("div",(0,r.A)((0,r.A)({},m),{},{ref:E,"data-mantine-scrollbar":!0,style:(0,r.A)({position:"absolute"},m.style),onPointerDown:L(e.onPointerDown,e=>{e.preventDefault();if(0===e.button){e.target.setPointerCapture(e.pointerId),_.current=w.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",R(e)}}),onPointerMove:L(e.onPointerMove,R),onPointerUp:L(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=C.current,_.current=null}}))})}),V=["sizes","onSizesChange","style"],z=(0,s.forwardRef)((e,t)=>{const{sizes:n,onSizesChange:a,style:l}
2=e,c=(0,o.A)(e,V),u=g(),[d,h]=(0,s.useState)(),f=(0,s.useRef)(null),p=(0,k.pc)(t,f,u.onScrollbarXChange);return(0,s.useEffect)(()=>{f.current&&h(getComputedStyle(f.current))},[f]),(0,i.jsx)(U,(0,r.A)((0,r.A)({"data-orientation":"horizontal"},c),{},{ref:p,sizes:n,style:(0,r.A)((0,r.A)({},l),{},{"--sa-thumb-width":"".concat(N(n),"px")}),onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(u.viewport){const r=u.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),O(r,n)&&t.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&a({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:(0,D.R)(d.paddingLeft),paddingEnd:(0,D.R)(d.paddingRight)}})}}))});z.displayName="@mantine/core/ScrollAreaScrollbarX";const B=["sizes","onSizesChange","style"],H=(0,s.forwardRef)((e,t)=>{const{sizes:n,onSizesChange:a,style:l}=e,c=(0,o.A)(e,B),u=g(),[d,h]=(0,s.useState)(),f=(0,s.useRef)(null),p=(0,k.pc)(t,f,u.onScrollbarYChange);return(0,s.useEffect)(()=>{f.current&&h(window.getComputedStyle(f.current))},[]),(0,i.jsx)(U,(0,r.A)((0,r.A)({},c),{},{"data-orientation":"vertical",ref:p,sizes:n,style:(0,r.A)({"--sa-thumb-height":"".concat(N(n),"px")},l),onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(u.viewport){const r=u.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),O(r,n)&&t.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&a({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:(0,D.R)(d.paddingTop),paddingEnd:(0,D.R)(d.paddingBottom)}})}}))});H.displayName="@mantine/core/ScrollAreaScrollbarY";const q=["orientation"],W=(0,s.forwardRef)((e,t)=>{const{orientation:n="vertical"}=e,a=(0,o.A)(e,q),{dir:l}=(0,x.jH)(),c=g(),u=(0,s.useRef)(null),d=(0,s.useRef)(0),[h,f]=(0,s.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=I(h.viewport,h.content),m=(0,r.A)((0,r.A)({},a),{},{sizes:h,onSizesChange:f,hasThumb:Boolean(p>0&&p<1),onThumbChange:e=>{u.current=e},onThumbPointerUp:()=>{d.current=0},onThumbPointerDown:e=>{d.current=e}}),v=(e,t)=>
2function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr";const o=N(n),i=t||o/2,s=o-i,a=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport;return P([a,l],"ltr"===r?[0,c]:[-1*c,0])(e)}(e,d.current,h,t);return"horizontal"===n?(0,i.jsx)(z,(0,r.A)((0,r.A)({},m),{},{ref:t,onThumbPositionChange:()=>{if(c.viewport&&u.current){const e=R(c.viewport.scrollLeft,h,l);u.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{c.viewport&&(c.viewport.scrollLeft=e)},onDragScroll:e=>{c.viewport&&(c.viewport.scrollLeft=v(e,l))}})):"vertical"===n?(0,i.jsx)(H,(0,r.A)((0,r.A)({},m),{},{ref:t,onThumbPositionChange:()=>{if(c.viewport&&u.current){const e=R(c.viewport.scrollTop,h);0===h.scrollbar.size?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{c.viewport&&(c.viewport.scrollTop=e)},onDragScroll:e=>{c.viewport&&(c.viewport.scrollTop=v(e))}})):null});W.displayName="@mantine/core/ScrollAreaScrollbarVisible";const K=["forceMount"],G=(0,s.forwardRef)((e,t)=>{const n=g(),{forceMount:a}=e,l=(0,o.A)(e,K),[c,u]=(0,s.useState)(!1),d="horizontal"===e.orientation,h=T(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;u(d?e:t)}},10);return b(n.viewport,h),b(n.content,h),a||c?(0,i.jsx)(W,(0,r.A)((0,r.A)({"data-state":c?"visible":"hidden"},l),{},{ref:t})):null});G.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Y=["forceMount"],Q=(0,s.forwardRef)((e,t)=>{const{forceMount:n}=e,a=(0,o.A)(e,Y),l=g(),[c,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{const{scrollArea:e}=l;let t=0;if(e){const n=()=>{window.clearTimeout(t),u(!0)},r=()=>{t=window.setTimeout(()=>u(!1),l.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[l.scrollArea,l.scrollHideDelay]),n||c?(0,i.jsx)(G,(0,r.A)((0,r.A)({"data-state":c?"visible":"hidden"},a),{},{ref:t})):null});Q.displayName="@mantine/core/ScrollAreaScrollbarHover";const X=["forceMount"],J=(0,s.forwardRef)((e,t)=>{const{forceMount:n}=e,a=(0,o.A)(e,X),l=g(),c="horizontal"===e.orientation,[u,d]=(0,s.use
2State)("hidden"),h=T(()=>d("idle"),100);return(0,s.useEffect)(()=>{if("idle"===u){const e=window.setTimeout(()=>d("hidden"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,l.scrollHideDelay]),(0,s.useEffect)(()=>{const{viewport:e}=l,t=c?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(d("scrolling"),h()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[l.viewport,c,h]),n||"hidden"!==u?(0,i.jsx)(W,(0,r.A)((0,r.A)({"data-state":"hidden"===u?"hidden":"visible"},a),{},{ref:t,onPointerEnter:L(e.onPointerEnter,()=>d("interacting")),onPointerLeave:L(e.onPointerLeave,()=>d("idle"))})):null}),$=["forceMount"],Z=(0,s.forwardRef)((e,t)=>{const{forceMount:n}=e,a=(0,o.A)(e,$),l=g(),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:u}=l,d="horizontal"===e.orientation;return(0,s.useEffect)(()=>(d?c(!0):u(!0),()=>{d?c(!1):u(!1)}),[d,c,u]),"hover"===l.type?(0,i.jsx)(Q,(0,r.A)((0,r.A)({},a),{},{ref:t,forceMount:n})):"scroll"===l.type?(0,i.jsx)(J,(0,r.A)((0,r.A)({},a),{},{ref:t,forceMount:n})):"auto"===l.type?(0,i.jsx)(G,(0,r.A)((0,r.A)({},a),{},{ref:t,forceMount:n})):"always"===l.type?(0,i.jsx)(W,(0,r.A)((0,r.A)({},a),{},{ref:t})):null});Z.displayName="@mantine/core/ScrollAreaScrollbar";const ee=["style"],te=["forceMount"],ne=(0,s.forwardRef)((e,t)=>{const{style:n}=e,a=(0,o.A)(e,ee),l=g(),c=F(),{onThumbPositionChange:u}=c,d=(0,k.pc)(t,e=>c.onThumbChange(e)),h=(0,s.useRef)(void 0),f=T(()=>{h.current&&(h.current(),h.current=void 0)},100);return(0,s.useEffect)(()=>{const{viewport:e}=l;if(e){const t=()=>{if(f(),!h.current){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,a=n.top!==i.top;(s||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}(e,u);h.current=t,u()}};return u(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,f,u]),(0,i.jsx)("div",(0,r.A)((0,r.A)({"data-state":c.hasThumb?"visible":"hidden"},a),{},{ref:d,style:(0,r.A)({width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)"},n),onPointerDownCapture:L(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;c.onThumbPointerDown({x:n,y:r})}),onPointerUp:L(e.onPointerUp,c.onThumbPointerUp)}))});ne.displayName="@mantine/core/ScrollAreaThumb";const re=(0,s.forwardRef)((e,t)=>{const{forceMount:n}=e,s=(0,o.A)(e,te),a=F();return n||a.hasThumb?(0,i.jsx)(ne,(0,r.A)({ref:t},s)):null});re.displayName="@mantine/core/ScrollAreaThumb";const oe=["children","style"],ie=(0,s.forwardRef)((e,t)=>{let{children:n,style:s}=e,a=(0,o.A)(e,oe);const l=g(),c=(0,k.pc)(t,l.onViewportChange);return(0,i.jsx)(h.a,(0,r.A)((0,r.A)({},a),{},{ref:c,style:(0,r.A)({overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden"},s),children:(0,i.jsx)("div",{style:{minWidth:"100%"},ref:l.onContentChange,children:n})}))});ie.displayName="@mantine/core/ScrollAreaViewport";var se={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const ae=["classNames","className","style","styles","unstyled","scrollbarSize","vars","type","scrollHideDelay","viewportProps","viewportRef","onScrollPositionChange","children","offsetScrollbars","scrollbars","onBottomReached","onTopReached","overscrollBehavior"],le=["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps","scrollbars","style","vars","onBottomReached","onTopReached"],ce={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},ue=(0,c.V)((e,t)=>{let{scrollbarSize:n,overscrollBehavior:r}=t;return{root:{"--scrollarea-scrollbar-size":(0,l.D)(n),"--scrollarea-over-scroll-behavior":r}}}),de=(0,f.P9)((e,t)=>{const n=(0,u.Y)("ScrollArea",ce,e),{classNames:l,className:c,style:h,styles:f,unstyled:p,scrollbarSize:m,vars:g,type:v,scrollHideDelay:y,viewportProps:b,viewportRef:w,onScrollPositionChange:S,children:k,offsetScrollbars:_,scrollbars:C,onBottomReached:T,onTopReached:x,overscrollBehavior:I}
2=n,N=(0,o.A)(n,ae),[P,R]=(0,s.useState)(!1),[O,D]=(0,s.useState)(!1),[L,M]=(0,s.useState)(!1),F=(0,d.I)({name:"ScrollArea",props:n,classes:se,className:c,style:h,classNames:l,styles:f,unstyled:p,vars:g,varsResolver:ue}),j=(0,s.useRef)(null),U=(0,a.SV)([w,j]);return(0,s.useEffect)(()=>{if(!j.current)return;if("present"!==_)return;const e=j.current,t=new ResizeObserver(()=>{const{scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:o}=e;D(t>n),M(r>o)});return t.observe(e),()=>t.disconnect()},[j,_]),(0,i.jsxs)(A,(0,r.A)((0,r.A)((0,r.A)({type:"never"===v?"always":v,scrollHideDelay:y,ref:t,scrollbars:C},F("root")),N),{},{children:[(0,i.jsx)(ie,(0,r.A)((0,r.A)((0,r.A)({},b),F("viewport",{style:null===b||void 0===b?void 0:b.style})),{},{ref:U,"data-offset-scrollbars":!0===_?"xy":_||void 0,"data-scrollbars":C||void 0,"data-horizontal-hidden":"present"!==_||L?void 0:"true","data-vertical-hidden":"present"!==_||O?void 0:"true",onScroll:e=>{var t;null===b||void 0===b||null===(t=b.onScroll)||void 0===t||t.call(b,e),null===S||void 0===S||S({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:n,scrollHeight:r,clientHeight:o}=e.currentTarget;n-(r-o)>=-.6&&(null===T||void 0===T||T()),0===n&&(null===x||void 0===x||x())},children:k})),("xy"===C||"x"===C)&&(0,i.jsx)(Z,(0,r.A)((0,r.A)({},F("scrollbar")),{},{orientation:"horizontal","data-hidden":"never"===v||"present"===_&&!L||void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:(0,i.jsx)(re,(0,r.A)({},F("thumb")))})),("xy"===C||"y"===C)&&(0,i.jsx)(Z,(0,r.A)((0,r.A)({},F("scrollbar")),{},{orientation:"vertical","data-hidden":"never"===v||"present"===_&&!O||void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:(0,i.jsx)(re,(0,r.A)({},F("thumb")))})),(0,i.jsx)(E,(0,r.A)((0,r.A)({},F("corner")),{},{"data-hovered":P||void 0,"data-hidden":"never"===v||void 0}))]}))});de.displayName="@mantine/core/ScrollArea";const he=(0,f.P9)((e,t)=>{const n=(0,u.Y)("ScrollAreaAutosize",ce,e),{children:s,classNames:a,styles:l,scrollbarSize:c,scrollHideDelay:d,type:f,dir:p,offsetScrollbars:m,viewportRef:g,onScrollPositionChange:v,unstyled:y,variant:b,viewportProps:w,scrollbars:S,style:E,vars:k,onBottomReached:_,onTopReached:C}=n,A=(0,o.A)(n,le);return(0,i.jsx)(h.a,(0,r.A)((0,r.A)({},A),{},{ref:t,style:[{display:"flex",overflow:"auto"},E],children:(0,i.jsx)(h.a,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,i.jsx)(de,{classNames:a,styles:l,scrollHideDelay:d,scrollbarSize:c,type:f,dir:p,offsetScrollbars:m,viewportRef:g,onScrollPositionChange:v,unstyled:y,variant:b,viewportProps:w,vars:k,scrollbars:S,onBottomReached:_,onTopReached:C,children:s})})}))});de.classes=se,he.displayName="@mantine/core/ScrollAreaAutosize",he.classes=se,de.Autosize=he},2306:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(5043);function o(e,t,n){(0,r.useEffect)(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}},2435:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(4632);const l=["mousedown","touchstart"];var c=n(1953),u=n(5783),d=n(1721),h=n(5903),f=n(8038),p=n(9863),m=n(528),g=n(5235),v=n(1586),y=n(9661),b=n(1160),w=n(605);const[S,E]=(0,w.F)("Popover component was not found in the tree");var k=n(9638),_=n(9252),C=n(2932);const A=()=>{};function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{active:!0};return"function"===typeof e&&t.active?n=>{var r;"Escape"===n.key&&(e(n),null===(r=t.onTrigger)||void 0===r||r.call(t))}:t.onKeyDown||A}var x=n(4886),I=n(6331),N=n(8498),P=n(8775),R={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const O=["className","style","vars","children","onKeyDownCapture","variant","classNames","styles"],D={},L=(0,I.P9)((e,t)=>{var n,s,a,l,c;const u=(0,p.Y)("PopoverDropdown",D,e),{className:d,style:h,vars:f,children:m,onKeyDownCapture:g,variant:v,classNames:w,styles:S}=u,A=(0,o.A)(u,O),I=E(),R=(0,k.E)({opened:I.opened,shouldReturnFocus:I.returnFocus}),L=I.withRoles?{"aria-labelledby":I.getTargetId(),id:I.getDropdownId(),role:"dialog",tabIndex:-1}:{},M=(0,_.pc)(t,I.floating);return I.disabled?null:(0,i.jsx)(y.r,(0,r.A)((0,r.A)({},I.portalProps),{},{withinPortal:I.withinPortal,children:(0,i.jsx)(b.e,(0,r.A)((0,r.A)({mounted:I.opened},I.transitionProps),{},{transition:(null===(n=I.transitionProps)||void 0===n?void 0:n.transition)||"fade",duration:null!==(s=null===(a=I.transitionProps)||void 0===a?void 0:a.duration)&&void 0!==s?s:150,keepMounted:I.keepMounted,exitDuration:"number"===typeof(null===(l=I.transitionProps)||void 0===l?void 0:l.exitDuration)?I.transitionProps.exitDuration:null===(c=I.transitionProps)||void 0===c?void 0:c.duration,children:e=>{var t,n;return(0,i.jsx)(P.s,{active:I.trapFocus&&I.opened,innerRef:M,children:(0,i.jsxs)(x.a,(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},L),A),{},{variant:v,onKeyDownCapture:T(()=>{var e,t;null===(e=I.onClose)||void 0===e||e.call(I),null===(t=I.onDismiss)||void 0===t||t.call(I)},{active:I.closeOnEscape,onTrigger:R,onKeyDown:g}),"data-position":I.placement,"data-fixed":"fixed"===I.floatingStrategy||void 0},I.getStyles("dropdown",{className:d,props:u,classNames:w,styles:S,style:[(0,r.A)((0,r.A)({},e),{},{zIndex:I.zIndex,top:null!==(t=I.y)&&void 0!==t?t:0,left:null!==(n=I.x)&&void 0!==n?n:0,width:"target"===I.width?void 0:(0,C.D)(I.width)}),I.resolvedStyles.dropdown,null===S||void 0===S?void 0:S.dropdown,h]})),{},{children:[m,(0,i.jsx)(N.i,(0,r.A)({ref:I.arrowRef,arrowX:I.arrowX,arrowY:I.arrowY,visible:I.withArrow,position:I.placement,arrowSize:I.arrowSize,arrowRadius:I.arrowRadius,arrowOffset:I.arrowOffset,arrowPosition:I.arrowPosition},I.getStyles("arrow",{props:u,classNames:w,styles:S})))]}))})}}))}))});L.classes=R,L.displayName="@mantine/core/PopoverDropdown";var M=n(8387),F=n(8429),j=n(9667);const U=["children","refProp","popupType"],V={refProp:"ref",popupType:"dialog"},z=(0,I.P9)((e,t)=>{const n=(0,p.Y)("PopoverTarget",V,e),{children:i,refProp:a,popupType:l}=n,c=(0,o.A)(n,U);if(!(0,F.v)(i))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, str
2ings, numbers and other primitive values are not supported");const u=c,d=E(),h=(0,_.pc)(d.reference,(0,j.x)(i),t),f=d.withRoles?{"aria-haspopup":l,"aria-expanded":d.opened,"aria-controls":d.getDropdownId(),id:d.getTargetId()}:{};return(0,s.cloneElement)(i,(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},u),f),d.targetProps),{},{className:(0,M.A)(d.targetProps.className,u.className,i.props.className),[a]:h},d.controlled?null:{onClick:d.onToggle}))});z.displayName="@mantine/core/PopoverTarget";var B=n(6178),H=n(8913),q=n(4474),W=n(6138),K=n(8080);const G=["rects","availableWidth","availableHeight"];function Y(e,t){const n=function(e){if(void 0===e)return{shift:!0,flip:!0};const t=(0,r.A)({},e);return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),i=[(0,B.cY)(e.offset)];return n.shift&&i.push((0,B.BN)("boolean"===typeof n.shift?{limiter:(0,B.ER)(),padding:5}:(0,r.A)({limiter:(0,B.ER)(),padding:5},n.shift))),n.flip&&i.push("boolean"===typeof n.flip?(0,B.UU)():(0,B.UU)(n.flip)),n.inline&&i.push("boolean"===typeof n.inline?(0,B.mG)():(0,B.mG)(n.inline)),i.push((0,B.UE)({element:e.arrowRef,padding:e.arrowOffset})),(n.size||"target"===e.width)&&i.push((0,B.Ej)((0,r.A)((0,r.A)({},"boolean"===typeof n.size?{}:n.size),{},{apply(i){var s,a;let{rects:l,availableWidth:c,availableHeight:u}=i,d=(0,o.A)(i,G);const h=null!==(s=null===(a=t().refs.floating.current)||void 0===a?void 0:a.style)&&void 0!==s?s:{};n.size&&("object"===typeof n.size&&n.size.apply?n.size.apply((0,r.A)({rects:l,availableWidth:c,availableHeight:u},d)):Object.assign(h,{maxWidth:"".concat(c,"px"),maxHeight:"".concat(u,"px")})),"target"===e.width&&Object.assign(h,{width:"".concat(l.reference.width,"px")})}}))),i}const Q=["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","onExitTransitionEnd","onEnterTransitionEnd","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onDismiss","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted","vars","floatingStrategy","withOverlay","overlayProps"],X={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:(0,c.I)("popover"),__staticSelector:"Popover",width:"max-content"},J=(0,d.V)((e,t)=>{let{radius:n,shadow:r}=t;return{dropdown:{"--popover-radius":void 0===n?void 0:(0,u.nJ)(n),"--popover-shadow":(0,u.dh)(r)}}});function $(e){var t,n;const c=(0,p.Y)("Popover",X,e),{children:u,position:d,offset:w,onPositionChange:E,positionDependencies:k,opened:_,transitionProps:C,onExitTransitionEnd:A,onEnterTransitionEnd:T,width:x,middlewares:I,withArrow:N,arrowSize:P,arrowOffset:O,arrowRadius:D,arrowPosition:L,unstyled:M,classNames:F,styles:j,closeOnClickOutside:U,withinPortal:V,portalProps:z,closeOnEscape:B,clickOutsideEvents:G,trapFocus:$,onClose:Z,onDismiss:ee,onOpen:te,onChange:ne,zIndex:re,radius:oe,shadow:ie,id:se,defaultOpened:ae,__staticSelector:le,withRoles:ce,disabled:ue,returnFocus:de,variant:he,keepMounted:fe,vars:pe,floatingStrategy:me,withOverlay:ge,overlayProps:ve}=c,ye=(0,o.A)(c,Q),be=(0,f.I)({name:le,props:c,classes:R,classNames:F,styles:j,unstyled:M,rootSelector:"dropdown",vars:pe,varsResolver:J}),{resolvedStyles:we}=(0,h.Y)({classNames:F,styles:j,props:c}),Se=(0,s.useRef)(null),[Ee,ke]=(0,s.useState)(null),[_e,Ce]=(0,s.useState)(null),{dir:Ae}=(0,m.jH)(),Te=(0,a.B)(se),xe=function(e){const[t,n]=(0,q.Z)({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,s.useRef)(t),o=(0,H.we)({strategy:e.strategy,placement:e.position,middleware:Y(e,()=>o)});return(0,K.Q)({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),(0,W.C)(()=>{var t;null===(t=e.onPositionChange)||void 0===t||t.call(e,o.placement)},[o.placement]),(0,W.C)(()=>{var n,o;t!==r.current&&(t?null===(n=e.onOpen)||void 0===n||n.call(e):null===(o=e.onClose)||void 0===o||o.call(e)),r.current=t}
2,[t,e.onClose,e.onOpen]),{floating:o,controlled:"boolean"===typeof e.opened,opened:t,onClose:()=>{t&&!e.disabled&&n(!1)},onToggle:()=>!e.disabled&&n(!t)}}({middlewares:I,width:x,position:(0,g.Q)(Ae,d),offset:"number"===typeof w?w+(N?P/2:0):w,arrowRef:Se,arrowOffset:O,onPositionChange:E,positionDependencies:k,opened:_,defaultOpened:ae,onChange:ne,onOpen:te,onClose:Z,onDismiss:ee,strategy:me,disabled:ue});!function(e,t,n){const r=(0,s.useRef)(null);(0,s.useEffect)(()=>{const o=t=>{const{target:o}=null!==t&&void 0!==t?t:{};if(Array.isArray(n)){const r=(null===o||void 0===o?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&"HTML"!==o.tagName;n.every(e=>!!e&&!t.composedPath().includes(e))&&!r&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||l).forEach(e=>document.addEventListener(e,o)),()=>{(t||l).forEach(e=>document.removeEventListener(e,o))}},[r,e,n])}(()=>{U&&(xe.onClose(),null===ee||void 0===ee||ee())},G,[Ee,_e]);const Ie=(0,s.useCallback)(e=>{ke(e),xe.floating.refs.setReference(e)},[xe.floating.refs.setReference]),Ne=(0,s.useCallback)(e=>{Ce(e),xe.floating.refs.setFloating(e)},[xe.floating.refs.setFloating]),Pe=(0,s.useCallback)(()=>{var e;null===C||void 0===C||null===(e=C.onExited)||void 0===e||e.call(C),null===A||void 0===A||A()},[null===C||void 0===C?void 0:C.onExited,A]),Re=(0,s.useCallback)(()=>{var e;null===C||void 0===C||null===(e=C.onEntered)||void 0===e||e.call(C),null===T||void 0===T||T()},[null===C||void 0===C?void 0:C.onEntered,T]);return(0,i.jsxs)(S,{value:{returnFocus:de,disabled:ue,controlled:xe.controlled,reference:Ie,floating:Ne,x:xe.floating.x,y:xe.floating.y,arrowX:null===(t=xe.floating)||void 0===t||null===(t=t.middlewareData)||void 0===t||null===(t=t.arrow)||void 0===t?void 0:t.x,arrowY:null===(n=xe.floating)||void 0===n||null===(n=n.middlewareData)||void 0===n||null===(n=n.arrow)||void 0===n?void 0:n.y,opened:xe.opened,arrowRef:Se,transitionProps:(0,r.A)((0,r.A)({},C),{},{onExited:Pe,onEntered:Re}),width:x,withArrow:N,arrowSize:P,arrowOffset:O,arrowRadius:D,arrowPosition:L,placement:xe.floating.placement,trapFocus:$,withinPortal:V,portalProps:z,zIndex:re,radius:oe,shadow:ie,closeOnEscape:B,onDismiss:ee,onClose:xe.onClose,onToggle:xe.onToggle,getTargetId:()=>"".concat(Te,"-target"),getDropdownId:()=>"".concat(Te,"-dropdown"),withRoles:ce,targetProps:ye,__staticSelector:le,classNames:F,styles:j,unstyled:M,variant:he,keepMounted:fe,getStyles:be,resolvedStyles:we,floatingStrategy:me},children:[u,ge&&(0,i.jsx)(b.e,{transition:"fade",mounted:xe.opened,duration:(null===C||void 0===C?void 0:C.duration)||250,exitDuration:(null===C||void 0===C?void 0:C.exitDuration)||250,children:e=>(0,i.jsx)(y.r,{withinPortal:V,children:(0,i.jsx)(v.h,(0,r.A)((0,r.A)({},ve),be("overlay",{className:null===ve||void 0===ve?void 0:ve.className,style:[e,null===ve||void 0===ve?void 0:ve.style]})))})})]})}$.Target=z,$.Dropdown=L,$.displayName="@mantine/core/Popover",$.extend=e=>e},2623:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(9379);function o(e){let{theme:t,styles:n,props:o,stylesCtx:i}=e;return(Array.isArray(n)?n:[n]).reduce((e,n)=>"function"===typeof n?(0,r.A)((0,r.A)({},e),n(t,o,i)):(0,r.A)((0,r.A)({},e),n),{})}},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 19,824 bytes, line 2
2h(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),T=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,F=Object.assign;function j(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var U=!1;function V(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function z(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case C:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function $(e,t){J(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ie(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,ke=null,_e=null;function Ce(e){if(e=wo(e)){if("function"!==typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function Ae(e){ke?_e?_e.push(e):_e=[e]:ke=e}function Te(){if(ke){var e=ke,t=_e;if(_e=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function xe(e,t){return e(t)}function Ie(){}var Ne=!1;function Pe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return xe(e,t,n)}finally{Ne=!1,(null!==ke||null!==_e)&&(Ie(),Te())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Oe=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Oe=!1}function Le(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Fe=null,je=!1,Ue=null,Ve={onError:function(e){Me=!0,Fe=e}};function ze(e,t,n,r,o,i,s,a,l){Me=!1,Fe=null,Le.apply(Ve,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(Be(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return qe(o),e;if(s===r)return qe(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Je=o.unstable_now,$e=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=dt(a):0!==(i&=s)&&(r=dt(i))}else 0!==(s=n&~o)?r=dt(s):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var St,Et,kt,_t,Ct,At=!1,Tt=[],xt=null,It=null,Nt=null,Pt=new Map,Rt=new Map,Ot=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":xt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.pu
vendor: 5,438 bytes, line 2
2sh(o),e)}function Ft(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){jt(e)&&n.delete(t)}function Vt(){At=!1,null!==xt&&jt(xt)&&(xt=null),null!==It&&jt(It)&&(It=null),null!==Nt&&jt(Nt)&&(Nt=null),Pt.forEach(Ut),Rt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Vt)))}function Bt(e){function t(t){return zt(t,e)}if(0<Tt.length){zt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&zt(xt,e),null!==It&&zt(It,e),null!==Nt&&zt(Nt,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Ft(n),null===n.blockedOn&&Ot.shift()}var Ht=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Kt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){if(qt){var o=Qt(e,t,n,r);if(null===o)qr(e,t,r,Yt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return xt=Mt(xt,e,t,n,r,o),!0;case"dragenter":return It=Mt(It,e,t,n,r,o),!0;case"mouseover":return Nt=Mt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&St(i),null===(i=Qt(e,t,n,r))&&qr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Yt=null;function Qt(e,t,n,r){if(Yt=null,null!==(e=bo(e=Se(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,$t=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=$t,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=F({},cn,{view:0,detail:0}),hn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=on(fn),mn=on(F({},fn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),vn=on(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(F({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return _n}var An=F({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(An),xn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=on(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Pn),On=[9,13,27,32],Dn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Mn=u&&"TextEvent"in window&&!Ln,Fn=u&&(!Dn||Ln&&8<Ln&&11>=Ln),jn=String.fromCharCode(32),Un=!1;function Vn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function Yn(e){jr(e,0)}function Qn(e){if(G(So(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(u){var $n;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}$n=Zn}else $n=!1;Jn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Gn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Wn(t,Gn,e,Se(e)),Pe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ir(e,t){if("click"===e)return Qn(t)}function sr(e,t){if("input"===e||"change"===e)return Qn(t)}var ar="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(ar(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var s=ur(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},kr={},_r={};function Cr(e){if(kr[e])return kr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return kr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var Ar=Cr("animationend"),Tr=Cr("animationiteration"),xr=Cr("animationstart"),Ir=Cr("transitionend"),Nr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Nr.set(e,t),l(t,[e])}for(var Or=0;Or<Pr.length;Or++){var Dr=Pr[Or];Rr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Rr(Ar,"onAnimationEnd"),Rr(Tr,"onAnimationIteration"),Rr(xr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Ir,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Fe;Me=!1,Fe=null,je||(je=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Fr(o,a,c),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Fr(o,a,c),i=l}}}if(je)throw e=Ue,je=!1,Ue=null,e}function Ur(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,s.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Vr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=Wt;break;case 4:o=Kt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Pe(function(){var r=i,o=Se(n),s=[];e:{var a=Nr.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Ar:case Tr:case xr:l=vn;break;case Ir:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=xn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==a?a+"Capture":null:a;u=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&(null!=(m=Re(p,h))&&u.push(Wr(p,m,f)))),d)break;p=p.return}0<u.length&&(a=new l(a,c,null,n,o),s.push({event:a,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=xn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?a:So(l),f=null==c?a:So(c),(a=new u(m,p+"leave",l,n,o)).target=d,a.relatedTarget=f,m=null,bo(o)===r&&((u=new u(h,p+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Gr(f))p++;for(f=0,m=h;m;m=Gr(m))f++;for(;0<p-f;)u=Gr(u),p--;for(;0<f-p;)h=Gr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Gr(u),h=Gr(h)}u=null}else u=null;null!==l&&Yr(s,a,l,u,!1),null!==c&&null!==d&&Yr(s,d,c,u,!0)}if("select"===(l=(a=r?So(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Xn;else if(qn(a))if(Jn)g=sr;else{g=or;var v=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Wn(s,g,n,o):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=r?So(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(s,n,o)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):($t="value"in(Jt=o)?Jt.value:Jt.textContent,Bn=!0)),0<(v=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),s.push({event:b,listeners:v}
vendor: 81,677 bytes, line 2
2),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,jn);case"textInput":return(e=t.data)===jn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Dn&&Vn(e,t)?(e=en(),Zt=$t=Jt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=y))}jr(s,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Re(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==c&&(a=c,o?null!=(l=Re(n,i))&&s.unshift(Wr(n,l,a)):o||null!=(l=Re(n,i))&&s.push(Wr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function $r(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,so="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ho=Math.random().toString(36).slice(2),fo="__reactFiber$"+ho,po="__reactProps$"+ho,mo="__reactContainer$"+ho,go="__reactEvents$"+ho,vo="__reactListeners$"+ho,yo="__reactHandles$"+ho;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[po]||null}var ko=[],_o=-1;function Co(e){return{current:e}}function Ao(e){0>_o||(e.current=ko[_o],ko[_o]=null,_o--)}function To(e,t){_o++,ko[_o]=e.current,e.current=t}var xo={},Io=Co(xo),No=Co(!1),Po=xo;function Ro(e,t){var n=e.type.contextTypes;if(!n)return xo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Do(){Ao(No),Ao(Io)}function Lo(e,t,n){if(Io.current!==xo)throw Error(i(168));To(Io,t),To(No,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return F({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,Po=Io.current,To(Io,e),To(No,No.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ao(No),Ao(Io),To(Io,e)):Ao(No),To(No,n)}var Uo=null,Vo=!1,zo=!1;function Bo(e){null===Uo?Uo=[e]:Uo.push(e)}function Ho(){if(!zo&&null!==Uo){zo=!0;var e=0,t=bt;try{var n=Uo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Vo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),Ge(Ze,Ho),o}finally{bt=t,zo=!1}}return null}var qo=[],Wo=0,Ko=null,Go=0,Yo=[],Qo=0,Xo=null,Jo=1,$o="";function Zo(e,t){qo[Wo++]=Go,qo[Wo++]=Ko,Ko=e,Go=t}function ei(e,t,n){Yo[Qo++]=Jo,Yo[Qo++]=$o,Yo[Qo++]=Xo,Xo=e;var r=Jo;e=$o;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Jo=1<<32-st(t)+o|n<<o|r,$o=i+e}else Jo=1<<i|n<<o|r,$o=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=qo[--Wo],qo[Wo]=null,Go=qo[--Wo],qo[Wo]=null;for(;e===Xo;)Xo=Yo[--Qo],Yo[Qo]=null,$o=Yo[--Qo],Yo[Qo]=null,Jo=Yo[--Qo],Yo[Qo]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Jo,overflow:$o}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function hi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw fi(),Error(i(418));for(;t;)ai(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===R&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case E:return(t=jc(t,e.mode,n)).return=e,t;case R:return h(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?c(e,t,n,r):null;case E:return n.key===o?u(e,t,n,r):null;case R:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,a,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(o,d,a[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=s(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===a.length)return n(o,d),ii&&Zo(o,m),c;if(null===d){for(;m<a.length;m++)null!==(d=h(o,a[m],l))&&(i=s(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Zo(o,m),c}for(d=r(o,d);m<a.length;m++)null!==(g=p(d,o,m,a[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=s(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(o,e)}),ii&&Zo(o,m),c}function g(o,a,l,c){var u=L(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=a,g=a=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),a=s(b,a,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Zo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(o,y.value,c))&&(a=s(y,a,g),null===d?u=y:d.sibling=y,d=y);return ii&&Zo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=p(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=s(y,a,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(o,e)}),ii&&Zo(o,g),u}return function e(r,i,s,l){if("object"===typeof s&&null!==s&&s.type===k&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case S:e:{for(var c=s.key,u=i;null!==u;){if(u.key===c){if((c=s.type)===k){if(7===u.tag){n(r,u.sibling),(i=o(u,s.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&bi(c)===u.type){n(r,u.sibling),(i=o(u,s.props)).ref=vi(r,u,s),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===k?((i=Lc(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Dc(s.type,s.key,s.props,null,r.mode,l)).ref=vi(r,i,s),l.return=r,r=l)}return a(r);case E:e:{for(u=s.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=jc(s,r.mode,l)).return=r,r=i}return a(r);case R:return e(r,i,(u=s._init)(s._payload),l)}if(te(s))return m(r,i,s,l);if(L(s))return g(r,i,s,l);yi(r,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Fc(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Si=wi(!0),Ei=wi(!1),ki=Co(null),_i=null,Ci=null,Ai=null;function Ti(){Ai=Ci=_i=null}function xi(e){var t=ki.current;Ao(ki),e._currentValue=t}function Ii(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){_i=e,Ai=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===_i)throw Error(i(308));Ci=e,_i.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ri=null;function Oi(e){null===Ri?Ri=[e]:Ri.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&xl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Li(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Li(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,c=l.next;l.next=null,null===s?i=c:s.next=c,s=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(s=0,u=c=l=null,a=i;;){var h=a.lane,f=a.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(h=t,f=n,m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=m.payload)?p.call(f,d,h):p)||void 0===h)break e;d=F({},d,h);break e;case 2:Mi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(h=o.effects)?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,s|=h;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(h=a).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=s,e.lanes=s,e.memoizedState=d}}function qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},Ki=Co(Wi),Gi=Co(Wi),Yi=Co(Wi);function Qi(e){if(e===Wi)throw Error(i(174));return e}function Xi(e,t){switch(To(Yi,t),To(Gi,e),To(Ki,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(Ki),To(Ki,t)}function Ji(){Ao(Ki),Ao(Gi),Ao(Yi)}function $i(e){Qi(Yi.current);var t=Qi(Ki.current),n=le(t,e.type);t!==n&&(To(Gi,e),To(Ki,n))}function Zi(e){Gi.current===e&&(Ao(Ki),Ao(Gi))}var es=Co(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ns=[];function rs(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var os=w.ReactCurrentDispatcher,is=w.ReactCurrentBatchConfig,ss=0,as=null,ls=null,cs=null,us=!1,ds=!1,hs=0,fs=0;function ps(){throw Error(i(321))}function ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function gs(e,t,n,r,o,s){if(ss=s,as=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:ea,e=n(r,o),ds){s=0;do{if(ds=!1,hs=0,25<=s)throw Error(i(301));s+=1,cs=ls=null,t.updateQueue=null,os.current=ta,e=n(r,o)}while(ds)}if(os.current=$s,t=null!==ls&&null!==ls.next,ss=0,cs=ls=as=null,us=!1,t)throw Error(i(300));return e}function vs(){var e=0!==hs;return hs=0,e}function ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cs?as.memoizedState=cs=e:cs=cs.next=e,cs}function bs(){if(null===ls){var e=as.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===cs?as.memoizedState:cs.next;if(null!==t)cs=t,ls=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===cs?as.memoizedState=cs=e:cs=cs.next=e}return cs}function ws(e,t){return"function"===typeof t?t(e):t}function Ss(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ls,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,c=null,u=s;do{var d=u.lane;if((ss&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,a=r):c=c.next=h,as.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==s);null===c?a=r:c.next=l,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,as.lanes|=s,Ml|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Es(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(ba=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ks(){}function _s(e,t){var n=as,r=bs(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,ba=!0),r=r.queue,Ms(Ts.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==cs&&1&cs.memoizedState.tag){if(n.flags|=2048,Ps(9,As.bind(null,n,r,o,t),void 0,null),null===Il)throw Error(i(349));0!==(30&ss)||Cs(n,t,o)}return o}function Cs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function As(e,t,n,r){t.value=n,t.getSnapshot=r,xs(t)&&Is(e)}function Ts(e,t,n){return n(function(){xs(t)&&Is(e)})}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(r){return!0}}function Is(e){var t=Li(e,1);null!==t&&nc(t,e,1,-1)}function Ns(e){var t=ys();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Ys.bind(null,as,e),[t.memoizedState,e]}function Ps(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Os(e,t,n,r){var o=ys();as.flags|=e,o.memoizedState=Ps(1|t,n,void 0,void 0===r?null:r)}function Ds(e,t,n,r){var o=bs();r=void 0===r?null:r;var i=void 0;if(null!==ls){var s=ls.memoizedState;if(i=s.destroy,null!==r&&ms(r,s.deps))return void(o.memoizedState=Ps(t,n,i,r))}as.flags|=e,o.memoizedState=Ps(1|t,n,i,r)}function Ls(e,t){return Os(8390656,8,e,t)}function Ms(e,t){return Ds(2048,8,e,t)}function Fs(e,t){return Ds(4,2,e,t)}function js(e,t){return Ds(4,4,e,t)}function Us(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vs(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ds(4,4,Us.bind(null,t,e),n)}function zs(){}function Bs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qs(e,t,n){return 0===(21&ss)?(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n):(ar(n,t)||(n=mt(),as.lanes|=n,Ml|=n,e.baseState=!0),t)}function Ws(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{bt=n,is.transition=r}}function Ks(){return bs().memoizedState}function Gs(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qs(e))Xs(t,n);else if(null!==(n=Di(e,t,n,r))){nc(n,e,r,ec()),Js(n,t,r)}}function Ys(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Xs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Di(e,t,o,r))&&(nc(n,e,r,o=ec()),Js(n,t,r))}}function Qs(e){var t=e.alternate;return e===as||null!==t&&t===as}function Xs(e,t){ds=us=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Js(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var $s={readContext:Pi,useCallback:ps,useContext:ps,useEffect:ps,useImperativeHandle:ps,useInsertionEffect:ps,useLayoutEffect:ps,useMemo:ps,useReducer:ps,useRef:ps,useState:ps,useDebugValue:ps,useDeferredValue:ps,useTransition:ps,useMutableSource:ps,useSyncExternalStore:ps,useId:ps,unstable_isNewReconciler:!1},Zs={readContext:Pi,useCallback:function(e,t){return ys().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ls,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Os(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){return Os(4,2,e,t)},useMemo:function(e,t){var n=ys();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ys();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gs.bind(null,as,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ys().memoizedState=e},useState:Ns,useDebugValue:zs,useDeferredValue:function(e){return ys().memoizedState=e},useTransition:function(){var e=Ns(!1),t=e[0];return e=Ws.bind(null,e[1]),ys().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=as,o=ys();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Il)throw Error(i(349));0!==(30&ss)||Cs(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ls(Ts.bind(null,r,s,e),[e]),r.flags|=2048,Ps(9,As.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ys(),t=Il.identifierPrefix;if(ii){var n=$o;t=":"+t+"R"+(n=(Jo&~(1<<32-st(Jo)-1)).toString(32)+n),0<(n=hs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Pi,useCallback:Bs,useContext:Pi,useEffect:Ms,useImperativeHandle:Vs,useInsertionEffect:Fs,useLayoutEffect:js,useMemo:Hs,useReducer:Ss,useRef:Rs,useState:function(){return Ss(ws)},useDebugValue:zs,useDeferredValue:function(e){return qs(bs(),ls.memoizedState,e)},useTransition:function(){return[Ss(ws)[0],bs().memoizedState]},useMutableSource:ks,useSyncExternalStore:_s,useId:Ks,unstable_isNewReconciler:!1},ta={readContext:Pi,useCallback:Bs,useContext:Pi,useEffect:Ms,useImperativeHandle:Vs,useInsertionEffect:Fs,useLayoutEffect:js,useMemo:Hs,useReducer:Es,useRef:Rs,useState:function(){return Es(ws)},useDebugValue:zs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:qs(t,ls.memoizedState,e)},useTransition:function(){return[Es(ws)[0],bs().memoizedState]},useMutableSource:ks,useSyncExternalStore:_s,useId:Ks,unstable_isNewReconciler:!1};function na(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oa={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Vi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Vi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Vi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function ia(e,t,n,r,o,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function sa(e,t,n){var r=!1,o=xo,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Oo(t)?Po:Io.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ro(e,o):xo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function aa(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oa.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Fi(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Oo(t)?Po:Io.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(ra(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&oa.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function ca(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ua(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ha="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Wl=r),da(0,t)},n}function pa(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ha;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ga(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Vi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ya=w.ReactCurrentOwner,ba=!1;function wa(e,t,n,r){t.child=null===e?Ei(t,null,n,r):Si(t,e.child,n,r)}function Sa(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=gs(e,t,n,r,i,o),n=vs(),null===e||ba?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qa(e,t,o))}function Ea(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Rc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ka(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return qa(e,t,o)}return t.flags|=1,(e=Oc(i,r)).ref=t.ref,e.return=t,t.child=e}function ka(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,qa(e,t,o);0!==(131072&e.flags)&&(ba=!0)}}return Aa(e,t,n,r,o)}function _a(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Rl),Rl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Rl),Rl|=r;return wa(e,t,o,n),t.child}function Ca(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Aa(e,t,n,r,o){var i=Oo(n)?Po:Io.current;return i=Ro(t,i),Ni(t,o),n=gs(e,t,n,r,i,o),r=vs(),null===e||ba?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qa(e,t,o))}function Ta(e,t,n,r,o){if(Oo(n)){var i=!0;Fo(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Ha(e,t),sa(t,n,r),la(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Ro(t,c=Oo(n)?Po:Io.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof s.getSnapshotBeforeUpdate;d||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==r||l!==c)&&aa(t,s,r,c),Mi=!1;var h=t.memoizedState;s.state=h,Hi(t,r,s,o),l=t.memoizedState,a!==r||h!==l||No.current||Mi?("function"===typeof u&&(ra(t,n,u,r),l=t.memoizedState),(a=Mi||ia(t,n,a,r,h,l,c))?(d||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:na(t.type,a),s.props=c,d=t.pendingProps,h=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Ro(t,l=Oo(n)?Po:Io.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==d||h!==l)&&aa(t,s,r,l),Mi=!1,h=t.memoizedState,s.state=h,Hi(t,r,s,o);var p=t.memoizedState;a!==d||h!==p||No.current||Mi?("function"===typeof f&&(ra(t,n,f,r),p=t.memoizedState),(c=Mi||ia(t,n,c,r,h,p,l)||!1)?(u||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return xa(e,t,n,r,i,o)}function xa(e,t,n,r,o,i){Ca(e,t);var s=0!==(128&t.flags);if(!r&&!s)return o&&jo(t,n,!1),qa(e,t,i);r=t.stateNode,ya.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,a,i)):wa(e,t,a,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ia(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),Xi(e,t.containerInfo)}function Na(e,t,n,r,o){return pi(),mi(o),t.flags|=256,wa(e,t,n,r),t.child}var Pa,Ra,Oa,Da,La={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fa(e,t,n){var r,o=t.pendingProps,s=es.current,a=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),To(es,1&s),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Mc(l,o,0,null),e=Lc(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ma(n),t.memoizedState=La,e):ja(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ua(e,t,a,r=ua(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(s=Lc(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!==(1&t.mode)&&Si(t,e.child,null,a),t.child.memoizedState=Ma(a),t.memoizedState=La,s);if(0===(1&t.mode))return Ua(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ua(e,t,a,r=ua(s=Error(i(419)),r,void 0))}if(l=0!==(a&e.childLanes),ba||l){if(null!==(r=Il)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Li(e,o),nc(r,e,o,-1))}return mc(),Ua(e,t,a,r=ua(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&(Yo[Qo++]=Jo,Yo[Qo++]=$o,Yo[Qo++]=Xo,Jo=e.id,$o=e.overflow,Xo=t),t=ja(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Oc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=Oc(r,a):(a=Lc(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ma(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=La,o}return e=(a=e.child).sibling,o=Oc(a,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ja(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ua(e,t,n,r){return null!==r&&mi(r),Si(t,e.child,null,n),(e=ja(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Va(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ii(e.return,t,n)}function za(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ba(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wa(e,t,r.children,n),0!==(2&(r=es.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n,t);else if(19===e.tag)Va(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(es,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ts(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),za(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}za(t,!0,n,null,i);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ka(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ga(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ka(t),null;case 1:case 17:return Oo(t.type)&&Do(),Ka(t),null;case 3:return r=t.stateNode,Ji(),Ao(No),Ao(Io),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(hi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==si&&(sc(si),si=null))),Ra(e,t),Ka(t),null;case 5:Zi(t);var o=Qi(Yi.current);if(n=t.type,null!==e&&null!=t.stateNode)Oa(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ka(t),null}if(e=Qi(Ki.current),hi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[fo]=t,r[po]=s,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)Ur(Lr[o],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":X(r,s),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ur("invalid",r);break;case"textarea":oe(r,s),Ur("invalid",r)}for(var l in ye(n,s),o=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&$r(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&$r(r.textContent,c,e),o=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":K(r),Z(r,s,!0);break;case"textarea":K(r),se(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[po]=r,Pa(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),o=r;break;case"iframe":case"object":case"embed":Ur("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)Ur(Lr[o],e);o=r;break;case"source":Ur("error",e),o=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),o=r;break;case"details":Ur("toggle",e),o=r;break;case"input":X(e,r),o=Q(e,r),Ur("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ur("invalid",e)}for(s in ye(n,o),c=o)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Ur("scroll",e):null!=u&&b(e,s,u,l))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ka(t),null;case 6:if(e&&null!=t.stateNode)Da(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Yi.current),Qi(Ki.current),hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:$r(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Ka(t),null;case 13:if(Ao(es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))fi(),pi(),t.flags|=98560,s=!1;else if(s=hi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[fo]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ka(t),s=!1}else null!==si&&(sc(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&es.current)?0===Dl&&(Dl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ka(t),null);case 4:return Ji(),Ra(e,t),null===e&&Br(t.stateNode.containerInfo),Ka(t),null;case 10:return xi(t.type._context),Ka(t),null;case 19:if(Ao(es),null===(s=t.memoizedState))return Ka(t),null;if(r=0!==(128&t.flags),null===(l=s.rendering))if(r)Wa(s,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ts(e))){for(t.flags|=128,Wa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(es,1&es.current|2),t.child}e=e.sibling}null!==s.tail&&Je()>Bl&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ts(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ka(t),null}else 2*Je()-s.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Je(),t.sibling=null,n=es.current,To(es,r?1&n|2:1&n),t):(Ka(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Ka(t),6&t.subtreeFlags&&(t.flags|=8192)):Ka(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ya(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),Ao(No),Ao(Io),rs(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Ao(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(es),null;case 4:return Ji(),null;case 10:return xi(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Pa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ra=function(){},Oa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Ki.current);var i,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Da=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qa=!1,Xa=!1,Ja="function"===typeof WeakSet?WeakSet:Set,$a=null;function Za(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){_c(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[po],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(a){}switch(n.tag){case 5:Xa||Za(n,t);case 6:var r=ul,o=dl;ul=null,hl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Xa&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!==(2&i)||0!==(4&i))&&el(n,t,s),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!Xa&&(Za(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){_c(n,t,a)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Xa=(r=Xa)||null!==n.memoizedState,hl(e,t,n),Xa=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach(function(t){var r=xc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));fl(s,a,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){_c(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){_c(e,e.return,g)}try{nl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Za(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Za(n,n.return),32&e.flags){var o=e.stateNode;try{he(o,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&J(o,s),be(l,a);var u=be(l,s);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];"style"===d?ge(o,h):"dangerouslySetInnerHTML"===d?de(o,h):"children"===d?he(o,h):b(o,d,h,u)}switch(l){case"input":$(o,s);break;case"textarea":ie(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var p=s.value;null!=p?ne(o,!!s.multiple,p,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[po]=s}catch(g){_c(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){_c(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Je())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xa=(u=Xa)||d,ml(t,e),Xa=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for($a=e,d=e.child;null!==d;){for(h=$a=d;null!==$a;){switch(p=(f=$a).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Za(f,f.return);var m=f.stateNode;if("function"===typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:Za(f,f.return);break;case 22:if(null!==f.memoizedState){Sl(h);continue}}null!==p?(p.return=f,$a=p):Sl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{o=h.stateNode,u?"function"===typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,a=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",a))}catch(g){_c(e,e.return,g)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(he(o,""),r.flags&=-33),cl(e,al(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(a){_c(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){$a=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==$a;){var o=$a,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Qa;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Xa;a=Qa;var c=Xa;if(Qa=s,(Xa=l)&&!c)for($a=o;null!==$a;)l=(s=$a).child,22===s.tag&&null!==s.memoizedState?El(o):null!==l?(l.return=s,$a=l):El(o);for(;null!==i;)$a=i,bl(i,t,n),i=i.sibling;$a=o,Qa=a,Xa=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,$a=i):wl(e)}}function wl(e){for(;null!==$a;){var t=$a;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xa||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xa)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&qi(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Bt(h)}}}break;default:throw Error(i(163))}Xa||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){$a=null;break}if(null!==(n=t.sibling)){n.return=t.return,$a=n;break}$a=t.return}}function Sl(e){for(;null!==$a;){var t=$a;if(t===e){$a=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$a=n;break}$a=t.return}}function El(e){for(;null!==$a;){var t=$a;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){_c(t,o,l)}}var i=t.return;try{ol(t)}catch(l){_c(t,i,l)}break;case 5:var s=t.return;try{ol(t)}catch(l){_c(t,s,l)}}}catch(l){_c(t,t.return,l)}if(t===e){$a=null;break}var a=t.sibling;if(null!==a){a.return=t.return,$a=a;break}$a=t.return}}var kl,_l=Math.ceil,Cl=w.ReactCurrentDispatcher,Al=w.ReactCurrentOwner,Tl=w.ReactCurrentBatchConfig,xl=0,Il=null,Nl=null,Pl=0,Rl=0,Ol=Co(0),Dl=0,Ll=null,Ml=0,Fl=0,jl=0,Ul=null,Vl=null,zl=0,Bl=1/0,Hl=null,ql=!1,Wl=null,Kl=null,Gl=!1,Yl=null,Ql=0,Xl=0,Jl=null,$l=-1,Zl=0;function ec(){return 0!==(6&xl)?Je():-1!==$l?$l:$l=Je()}function tc(e){return 0===(1&e.mode)?1:0!==(2&xl)&&0!==Pl?Pl&-Pl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,r){if(50<Xl)throw Xl=0,Jl=null,Error(i(185));vt(e,n,r),0!==(2&xl)&&e===Il||(e===Il&&(0===(2&xl)&&(Fl|=n),4===Dl&&ac(e,Pl)),rc(e,r),1===n&&0===xl&&0===(1&t.mode)&&(Bl=Je()+500,Vo&&Ho()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!==(a&n)&&0===(a&r)||(o[s]=ft(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=ht(e,e===Il?Pl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Vo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),so(function(){0===(6&xl)&&Ho()}),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if($l=-1,Zl=0,0!==(6&xl))throw Error(i(327));var n=e.callbackNode;if(Ec()&&e.callbackNode!==n)return null;var r=ht(e,e===Il?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=xl;xl|=2;var s=pc();for(Il===e&&Pl===t||(Hl=null,Bl=Je()+500,hc(e,t));;)try{yc();break}catch(l){fc(e,l)}Ti(),Cl.current=s,xl=o,null!==Nl?t=0:(Il=null,Pl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Ll,hc(e,0),ac(e,r),rc(e,Je()),n;if(6===t)ac(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(s=pt(e))&&(r=s,t=ic(e,s))),1===t))throw n=Ll,hc(e,0),ac(e,r),rc(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Sc(e,Vl,Hl);break;case 3:if(ac(e,r),(130023424&r)===r&&10<(t=zl+500-Je())){if(0!==ht(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,Vl,Hl),t);break}Sc(e,Vl,Hl);break;case 4:if(ac(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,Vl,Hl),r);break}Sc(e,Vl,Hl);break;default:throw Error(i(329))}}}return rc(e,Je()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Vl,Vl=n,null!==t&&sc(t)),e}function sc(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function ac(e,t){for(t&=~jl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&xl))throw Error(i(327));Ec();var t=ht(e,0);if(0===(1&t))return rc(e,Je()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ll,hc(e,0),ac(e,t),rc(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Vl,Hl),rc(e,Je()),null}function cc(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Bl=Je()+500,Vo&&Ho())}}function uc(e){null!==Yl&&0===Yl.tag&&0===(6&xl)&&Ec();var t=xl;xl|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,0===(6&(xl=t))&&Ho()}}function dc(){Rl=Ol.current,Ao(Ol)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Do();break;case 3:Ji(),Ao(No),Ao(Io),rs();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Ao(es);break;case 10:xi(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Il=e,Nl=e=Oc(e.current,null),Pl=Rl=t,Dl=0,Ll=null,jl=Fl=Ml=0,Vl=Ul=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Ri=null}return e}function fc(e,t){for(;;){var n=Nl;try{if(Ti(),os.current=$s,us){for(var r=as.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}us=!1}if(ss=0,cs=ls=as=null,ds=!1,hs=0,Al.current=null,null===n||null===n.return){Dl=1,Ll=t,Nl=null;break}e:{var s=e,a=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ga(a);if(null!==p){p.flags&=-257,va(p,a,l,0,t),1&p.mode&&ma(s,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ma(s,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ga(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),va(v,a,l,0,t),mi(ca(c,l));break e}}s=c=ca(c,l),4!==Dl&&(Dl=2),null===Ul?Ul=[s]:Ul.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Bi(s,fa(0,c,t));break e;case 1:l=c;var y=s.type,b=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Bi(s,pa(s,l,t));break e}}s=s.return}while(null!==s)}wc(n)}catch(w){t=w,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function pc(){var e=Cl.current;return Cl.current=$s,null===e?$s:e}function mc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Il||0===(268435455&Ml)&&0===(268435455&Fl)||ac(Il,Pl)}function gc(e,t){var n=xl;xl|=2;var r=pc();for(Il===e&&Pl===t||(Hl=null,hc(e,t));;)try{vc();break}catch(o){fc(e,o)}if(Ti(),xl=n,Cl.current=r,null!==Nl)throw Error(i(261));return Il=null,Pl=0,Dl}function vc(){for(;null!==Nl;)bc(Nl)}function yc(){for(;null!==Nl&&!Qe();)bc(Nl)}function bc(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Nl=t,Al.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ga(n,t,Rl)))return void(Nl=n)}else{if(null!==(n=Ya(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Dl=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Dl&&(Dl=5)}function Sc(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{Ec()}while(null!==Yl);if(0!==(6&xl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Il&&(Nl=Il=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gl||(Gl=!0,Ic(tt,function(){return Ec(),null})),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Tl.transition,Tl.transition=null;var a=bt;bt=1;var l=xl;xl|=4,Al.current=null,function(e,t){if(eo=qt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(S){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==o&&3!==h.nodeType||(l=a+o),h!==s||0!==r&&3!==h.nodeType||(c=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===o&&(l=a),f===s&&++d===r&&(c=a),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},qt=!1,$a=t;null!==$a;)if(e=(t=$a).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$a=e;else for(;null!==$a;){t=$a;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:na(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(S){_c(t,t.return,S)}if(null!==(e=t.sibling)){e.return=t.return,$a=e;break}$a=t.return}m=tl,tl=!1}(e,n),gl(n,e),pr(to),qt=!!eo,to=eo=null,e.current=n,yl(n,e,o),Xe(),xl=l,bt=a,Tl.transition=s}else e.current=n;if(Gl&&(Gl=!1,Yl=e,Ql=o),s=e.pendingLanes,0===s&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ql)throw ql=!1,e=Wl,Wl=null,e;0!==(1&Ql)&&0!==e.tag&&Ec(),s=e.pendingLanes,0!==(1&s)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Ho()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function Ec(){if(null!==Yl){var e=wt(Ql),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Ql=0,0!==(6&xl))throw Error(i(331));var o=xl;for(xl|=4,$a=e.current;null!==$a;){var s=$a,a=s.child;if(0!==(16&$a.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for($a=u;null!==$a;){var d=$a;switch(d.tag){case 0:case 11:case 15:nl(8,d,s)}var h=d.child;if(null!==h)h.return=d,$a=h;else for(;null!==$a;){var f=(d=$a).sibling,p=d.return;if(il(d),d===u){$a=null;break}if(null!==f){f.return=p,$a=f;break}$a=p}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}$a=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,$a=a;else e:for(;null!==$a;){if(0!==(2048&(s=$a).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,$a=y;break e}$a=s.return}}var b=e.current;for($a=b;null!==$a;){var w=(a=$a).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,$a=w;else e:for(a=b;null!==$a;){if(0!==(2048&(l=$a).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(E){_c(l,l.return,E)}if(l===a){$a=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,$a=S;break e}$a=l.return}}if(xl=o,Ho(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(E){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function kc(e,t,n){e=Vi(e,t=fa(0,t=ca(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function _c(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Vi(t,e=pa(t,e=ca(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Pl&n)===n&&(4===Dl||3===Dl&&(130023424&Pl)===Pl&&500>Je()-zl?hc(e,0):jl|=n),rc(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Li(e,t))&&(vt(e,t,n),rc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function xc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ac(e,n)}function Ic(e,t){return Ge(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Nc(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,o,s){var a=2;if(r=e,"function"===typeof e)Rc(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case k:return Lc(n.children,o,s,t);case _:a=8,o|=8;break;case C:return(e=Pc(12,n,t,2|o)).elementType=C,e.lanes=s,e;case I:return(e=Pc(13,n,t,o)).elementType=I,e.lanes=s,e;case N:return(e=Pc(19,n,t,o)).elementType=N,e.lanes=s,e;case O:return Mc(n,o,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:a=10;break e;case T:a=9;break e;case x:a=11;break e;case P:a=14;break e;case R:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Lc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vc(e,t,n,r,o,i,s,a,l){return e=new Uc(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function zc(e){if(!e)return xo;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Oo(n))return Mo(e,n,t)}return t}function Bc(e,t,n,r,o,i,s,a,l){return(e=Vc(n,r,!0,e,0,i,0,a,l)).context=zc(null),n=e.current,(i=Ui(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Vi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=ec(),s=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vi(o,t,s))&&(nc(e,o,s,i),zi(e,o,s)),s}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)ba=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:Ia(t),pi();break;case 5:$i(t);break;case 1:Oo(t.type)&&Fo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(es,1&es.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fa(e,t,n):(To(es,1&es.current),null!==(e=qa(e,t,n))?e.sibling:null);To(es,1&es.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ba(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(es,es.current),r)break;return null;case 22:case 23:return t.lanes=0,_a(e,t,n)}return qa(e,t,n)}(e,t,n);ba=0!==(131072&e.flags)}else ba=!1,ii&&0!==(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Ro(t,Io.current);Ni(t,n),o=gs(null,t,r,e,o,n);var s=vs();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(r)?(s=!0,Fo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Fi(t),o.updater=oa,t.stateNode=o,o._reactInternals=t,la(t,r,e,n),t=xa(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===x)return 11;if(e===P)return 14}return 2}(r),e=na(r,e),o){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=Ta(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=Ea(null,t,r,na(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Aa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ta(e,t,r,o=t.elementType===r?o:na(r,o),n);case 3:e:{if(Ia(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Hi(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Na(e,t,r,n,o=ca(Error(i(423)),t));break e}if(r!==o){t=Na(e,t,r,n,o=ca(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=qa(e,t,n);break e}wa(e,t,r,n)}t=t.child}return t;case 5:return $i(t),null===e&&ui(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Ca(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Fa(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):wa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,To(ki,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!No.current){t=qa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Ui(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Ii(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ii(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=Pi(o)),t.flags|=1,wa(e,t,r,n),t.child;case 14:return o=na(r=t.type,t.pendingProps),Ea(e,t,r,o=na(r.type,o),n);case 15:return ka(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),Ha(e,t),t.tag=1,Oo(r)?(e=!0,Fo(t)):e=!1,Ni(t,n),sa(t,r,o),la(t,r,o,n),xa(null,t,r,!0,e,n);
vendor: 5,785 bytes, line 2
2case 19:return Ba(e,t,n);case 22:return _a(e,t,n)}throw Error(i(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $c(){}function Zc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"===typeof o){var a=o;o=function(){var e=qc(s);a.call(e)}}Hc(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=qc(s);i.call(e)}}var s=Bc(t,r,e,0,null,!1,0,"",$c);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),uc(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var a=r;r=function(){var e=qc(l);a.call(e)}}var l=Vc(e,0,!1,null,0,!1,0,"",$c);return e._reactRootContainer=l,e[mo]=l.current,Br(8===e.nodeType?e.parentNode:e),uc(function(){Hc(t,l,n,r)}),l}(n,t,e,o,r);return qc(s)}Qc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Qc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Hc(null,e,null,null)}),t[mo]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Ft(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Je()),0===(6&xl)&&(Bl=Je()+500,Ho()))}break;case 13:uc(function(){var t=Li(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),Kc(e,1)}},Et=function(e){if(13===e.tag){var t=Li(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Li(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},_t=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(i(90));G(r),$(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},xe=cc,Ie=uc;var eu={usingClientEntryPoint:!1,Events:[wo,So,Eo,Ae,Te,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(i(299));var n=!1,r="",o=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(i(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=Gc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,o,0,s,a),e[mo]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(i(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc(function(){Zc(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"}
2,2799:(e,t,n)=>{"use strict";n.d(t,{P2:()=>v});var r=n(9379);const o=(e,t)=>t.some(t=>e instanceof t);let i,s;const a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;let h={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return m(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(g(this),n),m(a.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e.apply(g(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];const i=e.call(g(this),t,...r);return c.set(i,t.sort?t.sort():[t]),m(i)}}function p(e){return"function"===typeof e?f(e):(e instanceof IDBTransaction&&function(e){if(l.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});l.set(e,t)}(e),o(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,h):e)}function m(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(m(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&a.set(t,e)}).catch(()=>{}),d.set(t,e),t}(e);if(u.has(e))return u.get(e);const t=p(e);return t!==e&&(u.set(e,t),d.set(t,e)),t}const g=e=>d.get(e);function v(e,t){let{blocked:n,upgrade:r,blocking:o,terminated:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=indexedDB.open(e,t),a=m(s);return r&&s.addEventListener("upgradeneeded",e=>{r(m(s.result),e.oldVersion,e.newVersion,m(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}const y=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],w=new Map;function S(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(w.get(t))return w.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!y.includes(n))return;const i=async function(e){const t=this.transaction(e,o?"readwrite":"readonly");let i=t.store;for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];return r&&(i=i.index(a.shift())),(await Promise.all([i[n](...a),o&&t.done]))[0]};return w.set(t,i),i}h=(e=>(0,r.A)((0,r.A)({},e),{},{get:(t,n,r)=>S(t,n)||e.get(t,n,r),has:(t,n)=>!!S(t,n)||e.has(t,n)}))(h)},2869:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(5043);function o(){const e=(0,r.useId)().replace(/:/g,"");return"__m__-".concat(e)}},2887:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(579),o=(n(5043),n(7803)),i=n(7835);function s(e){return(0,i.H)(e).reduce((t,n)=>{return void 0!==e[n]?"".concat(t).concat((r=n,r.replace(/[A-Z]/g,e=>"-".concat(e.toLowerCase()))),":").concat(e[n],";"):t;var r},"").trim()}function a(e){let{selector:t,styles:n,media:r,container:o}=e;const i=n?s(n):"",a=Array.isArray(r)?r.map(e=>"@media".concat(e.query,"{").concat(t,"{").concat(s(e.styles),"}}")):[],l=Array.isArray(o)?o.map(e=>"@container ".concat(e.query,"{").concat(t,"{").concat(s(e.styles),"}}")):[];return"".concat(i?"".concat(t,"{").concat(i,"}"):"").concat(a.join("")).concat(l.join("")).trim()}function l(e){const t=(0,o.WV)();return(0,r.jsx)("style",{"data-mantine-styles":"inline",nonce:null===t||void 0===t?void 0:t(),dangerouslySetInnerHTML:{__html:a(e)}})}},2932:(e,t,n)=>{"use strict";function r(e){return"0rem"===e?"0rem":"calc(".concat(e," * var(--mantine-scale))")}function o(e){let{shouldScale:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function n(o){if(0===o||"0"===o)return"0".concat(e);
2if("number"===typeof o){const n="".concat(o/16).concat(e);return t?r(n):n}if("string"===typeof o){if(""===o)return o;if(o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(e=>n(e)).join(",");if(o.includes(" "))return o.split(" ").map(e=>n(e)).join(" ");if(o.includes(e))return t?r(o):o;const i=o.replace("px","");if(!Number.isNaN(Number(i))){const n="".concat(Number(i)/16).concat(e);return t?r(n):n}}return o}}n.d(t,{D:()=>i,em:()=>s});const i=o("rem",{shouldScale:!0}),s=o("em")},3056:(e,t,n)=>{"use strict";n.d(t,{nW:()=>p,xd:()=>f});var r=n(579),o=n(5043),i=n(7311),s=n(6673);const a="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \u2013 https://mantine.dev/theming/colors/#primary-color",l="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function c(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function u(e){if(!(e.primaryColor in e.colors))throw new Error(a);if("object"===typeof e.primaryShade&&(!c(e.primaryShade.dark)||!c(e.primaryShade.light)))throw new Error(l);if("number"===typeof e.primaryShade&&!c(e.primaryShade))throw new Error(l)}const d=(0,o.createContext)(null),h=()=>(0,o.useContext)(d)||i.S;function f(){const e=(0,o.useContext)(d);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function p(e){let{theme:t,children:n,inherit:a=!0}=e;const l=h(),c=(0,o.useMemo)(()=>function(e,t){var n;if(!t)return u(e),e;const r=(0,s.$)(e,t);return!t.fontFamily||null!==(n=t.headings)&&void 0!==n&&n.fontFamily||(r.headings.fontFamily=t.fontFamily),u(r),r}(a?l:i.S,t),[t,l,a]);return(0,r.jsx)(d.Provider,{value:c,children:n})}p.displayName="@mantine/core/MantineThemeProvider"},3131:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","wifi","IconWifi",[["path",{d:"M12 18l.01 0",key:"svg-0"}],["path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0",key:"svg-1"}],["path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0",key:"svg-2"}],["path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0",key:"svg-3"}]])},3153:(e,t,n)=>{"use strict";function r(e){return e?parseInt(e,10):0}n.d(t,{R:()=>r})},3216:(e,t,n)=>{"use strict";var r;n.d(t,{BV:()=>D,Ix:()=>O,V8:()=>P,Zp:()=>g,g:()=>v,qh:()=>R});var o=n(5043),i=n(1387);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const a=o.createContext(null);const l=o.createContext(null);const c=o.createContext(null);const u=o.createContext(null);const d=o.createContext({outlet:null,matches:[],isDataRoute:!1});const h=o.createContext(null);function f(){return null!=o.useContext(u)}function p(){return f()||(0,i.Oi)(!1),o.useContext(u).location}function m(e){o.useContext(c).static||o.useLayoutEffect(e)}function g(){let{isDataRoute:e}=o.useContext(d);return e?function(){let{router:e}=A(_.UseNavigateStable),t=x(C.UseNavigateStable),n=o.useRef(!1);return m(()=>{n.current=!0}),o.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,s({fromRouteId:t},o)))},[e,t])}():function(){f()||(0,i.Oi)(!1);let e=o.useContext(a),{basename:t,future:n,navigator:r}=o.useContext(c),{matches:s}=o.useContext(d),{pathname:l}=p(),u=JSON.stringify((0,i.yD)(s,n.v7_relativeSplatPath)),h=o.useRef(!1);return m(()=>{h.current=!0}),o.useCallback(function(n,o){if(void 0===o&&(o={}),!h.current)return;if("number"===typeof n)return void r.go(n);let s=(0,i.Gh)(n,JSON.parse(u),l,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,i.HS)([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)},[t,r,u,l,e])}()}function v(){let{matches:e}=o.useContext(d),t=e[e.length-1];return t?t.params:{}}function y(e,t,n,r){f()||(0,i.Oi)(!1);let{navigator:a}=o.useContext(c),{matches:l}=o.useContext(d),h=l[l.length-1],m=h?h.params:{},g=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let v,y=p();if(t){var b;let e="string"===typeof t?(0,i.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,i.Oi)(!1),v=e}else v=y;let w=v.pathname||"/",S=w;
2if("/"!==g){let e=g.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,i.ue)(e,{pathname:S});let _=k(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,i.HS)([g,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,i.HS)([g,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,r);return t&&_?o.createElement(u.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:i.rc.Pop}},_):_}function b(){let e=function(){var e;let t=o.useContext(h),n=T(C.UseRouteError),r=x(C.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:s},n):null,null)}const w=o.createElement(b,null);class S extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(d.Provider,{value:this.props.routeContext},o.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(a);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(d.Provider,{value:t},r)}function k(e,t,n,r){var s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(s=n)?void 0:s.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id]));e>=0||(0,i.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let o=0;o<l.length;o++){let e=l[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=o),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,r,i)=>{let s,a=!1,h=null,f=null;var p;n&&(s=c&&r.route.id?c[r.route.id]:void 0,h=r.route.errorElement||w,u&&(d<0&&0===i?(p="route-fallback",!1||I[p]||(I[p]=!0),a=!0,f=null):d===i&&(a=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=s?h:a?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(E,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(S,{location:n.location,revalidation:n.revalidation,component:h,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var _=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function A(e){let t=o.useContext(a);return t||(0,i.Oi)(!1),t}function T(e){let t=o.useContext(l);return t||(0,i.Oi)(!1),t}function x(e){let t=function(){let e=o.useContext(d);return e||(0,i.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}const I={};const N=(e,t,n)=>{};function P(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&N("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||N("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&N("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&N("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&N("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&N("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}(r||(r=n.t(o,2))).startTransition;function R(e){(0,i.Oi)(!1)}function O(e){let{basename:t="/",children:n=null,location:r,navigationType:a=i.rc.Pop,navigator:l,static:d=!1,future:h}=e;f()&&(0,i.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=o.useMemo(()=>({basename:p,navigator:l,static:d,future:s({v7_relativeSplatPath:!1},h)}),[p,h,l,d]);"string"===typeof r&&(r=(0,i.Rr)(r));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:w="default"}=r,S=o.useMemo(()=>{let e=(0,i.pb)(g,p);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:w},navigationType:a}},[p,g,v,y,b,w,a]);return null==S?null:o.createElement(c.Provider,{value:m},o.createElement(u.Provider,{children:n,value:S}))}function D(e){let{children:t,location:n}=e;return y(L(t),n)}new Promise(()=>{});o.Component;function L(e,t){void 0===t&&(t=[]);let n=[];
2return o.Children.forEach(e,(e,r)=>{if(!o.isValidElement(e))return;let s=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,L(e.props.children,s));e.type!==R&&(0,i.Oi)(!1),e.props.index&&e.props.children&&(0,i.Oi)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=L(e.props.children,s)),n.push(a)}),n}},3374:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5043);const o="chunk-reload";function i(e){return(0,r.lazy)(async()=>{try{const n=await e();try{window.sessionStorage.removeItem(o)}catch(t){}return n}catch(n){let e=!1;try{e="1"===window.sessionStorage.getItem(o),window.sessionStorage.setItem(o,"1")}catch(r){}if(!e)return window.location.reload(),{default:()=>null};throw n}})}},3407:(e,t,n)=>{"use strict";n.d(t,{h:()=>y});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(1721)),a=n(9863),l=n(8038),c=n(4886),u=n(6331),d=n(2932);const h=["h1","h2","h3","h4","h5","h6"],f=["xs","sm","md","lg","xl"];var p={root:"m_8a5d1357"};const m=["classNames","className","style","styles","unstyled","order","vars","size","variant","lineClamp","textWrap","mod"],g={order:1},v=(0,s.V)((e,t)=>{let{order:n,size:r,lineClamp:o,textWrap:i}=t;const s=function(e,t){const n=void 0!==t?t:"h".concat(e);return h.includes(n)?{fontSize:"var(--mantine-".concat(n,"-font-size)"),fontWeight:"var(--mantine-".concat(n,"-font-weight)"),lineHeight:"var(--mantine-".concat(n,"-line-height)")}:f.includes(n)?{fontSize:"var(--mantine-font-size-".concat(n,")"),fontWeight:"var(--mantine-h".concat(e,"-font-weight)"),lineHeight:"var(--mantine-h".concat(e,"-line-height)")}:{fontSize:(0,d.D)(n),fontWeight:"var(--mantine-h".concat(e,"-font-weight)"),lineHeight:"var(--mantine-h".concat(e,"-line-height)")}}(n,r);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":"number"===typeof o?o.toString():void 0,"--title-text-wrap":i}}}),y=(0,u.P9)((e,t)=>{const n=(0,a.Y)("Title",g,e),{classNames:s,className:u,style:d,styles:h,unstyled:f,order:y,vars:b,size:w,variant:S,lineClamp:E,textWrap:k,mod:_}=n,C=(0,o.A)(n,m),A=(0,l.I)({name:"Title",props:n,classes:p,className:u,style:d,classNames:s,styles:h,unstyled:f,vars:b,varsResolver:v});return[1,2,3,4,5,6].includes(y)?(0,i.jsx)(c.a,(0,r.A)((0,r.A)({},A("root")),{},{component:"h".concat(y),variant:S,ref:t,mod:[{order:y,"data-line-clamp":"number"===typeof E},_],size:w},C)):null});y.classes=p,y.displayName="@mantine/core/Title"},3499:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(3888);function o(e,t){return e in t?(0,r.px)(t[e]):(0,r.px)(e)}},3877:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(8221);function o(e){let{parentSelector:t,siblingSelector:n,onKeyDown:o,loop:i=!0,activateOnFocus:s=!1,dir:a="rtl",orientation:l}=e;return e=>{var c;null===o||void 0===o||o(e);const u=Array.from((null===(c=(0,r.P)(e.currentTarget,t))||void 0===c?void 0:c.querySelectorAll(n))||[]).filter(n=>function(e,t,n){return(0,r.P)(e,n)===(0,r.P)(t,n)}(e.currentTarget,n,t)),d=u.findIndex(t=>e.currentTarget===t),h=function(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n)for(let r=0;r<t.length;r+=1)if(!t[r].disabled)return r;return e}(d,u,i),f=function(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n)for(let r=t.length-1;r>-1;r-=1)if(!t[r].disabled)return r;return e}(d,u,i),p="rtl"===a?f:h,m="rtl"===a?h:f;switch(e.key){case"ArrowRight":"horizontal"===l&&(e.stopPropagation(),e.preventDefault(),u[p].focus(),s&&u[p].click());break;case"ArrowLeft":"horizontal"===l&&(e.stopPropagation(),e.preventDefault(),u[m].focus(),s&&u[m].click());break;case"ArrowUp":"vertical"===l&&(e.stopPropagation(),e.preventDefault(),u[f].focus(),s&&u[f].click());break;case"ArrowDown":"vertical"===l&&(e.stopPropagation(),e.preventDefault(),u[h].focus(),s&&u[h].click());break;case"Home":e.stopPropagation(),e.preventDefault(),!u[0].disabled&&u[0].focus();break;case"End":{e.stopPropagation(),e.preventDefault();const t=u.length-1;!u[t].disabled&&u[t].focus();break}}}}}
2,3888:(e,t,n)=>{"use strict";function r(e){const t=function(e){var t;return"string"===typeof e&&e.includes("var(--mantine-scale)")?null===(t=e.match(/^calc\((.*?)\)$/))||void 0===t?void 0:t[1].split("*")[0].trim():e}(e);return"number"===typeof t?t:"string"===typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}n.d(t,{px:()=>r})},4117:(e,t,n)=>{"use strict";n.d(t,{r9:()=>v,Bd:()=>S});var r=n(5043);n(1844);Object.create(null);const o={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c(t[0])&&o[t[0]]||(c(t[0])&&(o[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c(t[0])&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}(...t))}const s=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},a=(e,t,n)=>{e.loadNamespaces(t,s(e,n))},l=(e,t,n,r)=>{c(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,s(e,r))},c=e=>"string"===typeof e;var u=n(9379);const d=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},f=e=>h[e];let p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(d,f)};var m=n(4467);let g;const v={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=(0,u.A)((0,u.A)({},p),e)}(e.options.react),(e=>{g=e})(e)}},y=(0,r.createContext)();class b{constructor(){(0,m.A)(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces)),this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}}const w=(e,t,n,r)=>e.getFixedT(t,n,r),S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:s}=(0,r.useContext)(y)||{},d=n||o||g;if(d&&!d.reportNamespaces&&(d.reportNamespaces=new b),!d){i("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return c(t)?t:"object"===typeof(n=t)&&null!==n&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}d.options.react&&void 0!==d.options.react.wait&&i("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h=(0,u.A)((0,u.A)((0,u.A)({},p),d.options.react),t),{useSuspense:f,keyPrefix:m}=h;let v=e||s||d.options&&d.options.defaultNS;v=c(v)?[v]:v||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(v);const S=(d.isInitialized||d.initializedStoreOnce)&&v.every(e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)
2)||!(!s(r,e)||o&&!s(i,e)))}(e,t,n):(i("i18n.languages were undefined or empty",t.languages),!0)}(e,d,h)),E=((e,t,n,o)=>(0,r.useCallback)(w(e,t,n,o),[e,t,n,o]))(d,t.lng||null,"fallback"===h.nsMode?v:v[0],m),k=()=>E,_=()=>w(d,t.lng||null,"fallback"===h.nsMode?v:v[0],m),[C,A]=(0,r.useState)(k);let T=v.join();t.lng&&(T="".concat(t.lng).concat(T));const x=((e,t)=>{const n=(0,r.useRef)();return(0,r.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current})(T),I=(0,r.useRef)(!0);(0,r.useEffect)(()=>{const{bindI18n:e,bindI18nStore:n}=h;I.current=!0,S||f||(t.lng?l(d,t.lng,v,()=>{I.current&&A(_)}):a(d,v,()=>{I.current&&A(_)})),S&&x&&x!==T&&I.current&&A(_);const r=()=>{I.current&&A(_)};return e&&d&&d.on(e,r),n&&d&&d.store.on(n,r),()=>{I.current=!1,e&&d&&e.split(" ").forEach(e=>d.off(e,r)),n&&d&&n.split(" ").forEach(e=>d.store.off(e,r))}},[d,T]),(0,r.useEffect)(()=>{I.current&&S&&A(k)},[d,m,S]);const N=[C,d,S];if(N.t=C,N.i18n=d,N.ready=S,S)return N;if(!S&&!f)return N;throw new Promise(e=>{t.lng?l(d,t.lng,v,()=>e()):a(d,v,()=>e())})}},4171:(e,t,n)=>{"use strict";function r(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(e):e.startsWith("rgb")?function(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:void 0===o?1:o}}(e):e.startsWith("hsl")?function(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const n=parseInt(t[1],10),r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,i=t[5]?parseFloat(t[5]):void 0,s=(1-Math.abs(2*o-1))*r,a=n/60,l=s*(1-Math.abs(a%2-1)),c=o-s/2;let u,d,h;return a>=0&&a<1?(u=s,d=l,h=0):a>=1&&a<2?(u=l,d=s,h=0):a>=2&&a<3?(u=0,d=s,h=l):a>=3&&a<4?(u=0,d=l,h=s):a>=4&&a<5?(u=l,d=0,h=s):(u=s,d=0,h=l),{r:Math.round(255*(u+c)),g:Math.round(255*(d+c)),b:Math.round(255*(h+c)),a:i||1}}(e):{r:0,g:0,b:0,a:1}}n.d(t,{K:()=>r})},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,k={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)E.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:k.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function x(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+x(l,0):i,S(s)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),I(s,t,o,"",function(e){return e})):null!=s&&(A(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",S(e))for(var c=0;c<e.length;c++){var u=i+x(a=e[c],c);l+=I(a,t,o,u,s)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=I(a=a.value,t,o,u=i+x(a,c++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},O={transition:null},D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},4257:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(579),o=n(5043);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=(0,o.createContext)(e);return[e=>{let{children:n,value:o}=e;return(0,r.jsx)(t.Provider,{value:o,children:n})},()=>(0,o.useContext)(t)]}},4264:(e,t,n)=>{"use strict";n.d(t,{w:()=>Fn});var r=n(4391),o=n(9379),i=n(45),s=n(579),a=n(5043),l=n.t(a,2),c=n(1953),u=n(1721),d=n(9863),h=n(8038),f=n(4886),p=n(6331),m=n(605);const[g,v]=(0,m.F)("AppShell was not found in tree");var y={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const b=["classNames","className","style","styles","unstyled","vars","withBorder","zIndex","mod"],w={},S=(0,p.P9)((e,t)=>{const n=(0,d.Y)("AppShellAside",w,e),{classNames:r,className:a,style:l,styles:c,unstyled:u,vars:h,withBorder:p,zIndex:m,mod:g}=n,y=(0,i.A)(n,b),S=v();return S.disabled?null:(0,s.jsx)(f.a,(0,o.A)((0,o.A)((0,o.A)({component:"aside",ref:t,mod:[{"with-border":null!==p&&void 0!==p?p:S.withBorder},g]},S.getStyles("aside",{className:a,classNames:r,styles:c,style:l})),y),{},{__vars:{"--app-shell-aside-z-index":"calc(".concat(null!==m&&void 0!==m?m:S.zIndex," + 1)")}}))});S.classes=y,S.displayName="@mantine/core/AppShellAside";var E=n(8387),k=n(1717);const _=["classNames","className","style","styles","unstyled","vars","withBorder","zIndex","mod"],C={},A=(0,p.P9)((e,t)=>{var n;const r=(0,d.Y)("AppShellFooter",C,e),{classNames:a,className:l,style:c,styles:u,unstyled:h,vars:p,withBorder:m,zIndex:g,mod:y}=r,b=(0,i.A)(r,_),w=v();return w.disabled?null:(0,s.jsx)(f.a,(0,o.A)((0,o.A)((0,o.A)({component:"footer",ref:t,mod:[{"with-border":null!==m&&void 0!==m?m:w.withBorder},y]},w.getStyles("footer",{className:(0,E.A)({[k.A.classNames.zeroRight]:w.offsetScrollbars},l),classNames:a,styles:u,style:c}
2)),b),{},{__vars:{"--app-shell-footer-z-index":null===(n=null!==g&&void 0!==g?g:w.zIndex)||void 0===n?void 0:n.toString()}}))});A.classes=y,A.displayName="@mantine/core/AppShellFooter";const T=["classNames","className","style","styles","unstyled","vars","withBorder","zIndex","mod"],x={},I=(0,p.P9)((e,t)=>{var n;const r=(0,d.Y)("AppShellHeader",x,e),{classNames:a,className:l,style:c,styles:u,unstyled:h,vars:p,withBorder:m,zIndex:g,mod:y}=r,b=(0,i.A)(r,T),w=v();return w.disabled?null:(0,s.jsx)(f.a,(0,o.A)((0,o.A)((0,o.A)({component:"header",ref:t,mod:[{"with-border":null!==m&&void 0!==m?m:w.withBorder},y]},w.getStyles("header",{className:(0,E.A)({[k.A.classNames.zeroRight]:w.offsetScrollbars},l),classNames:a,styles:u,style:c})),b),{},{__vars:{"--app-shell-header-z-index":null===(n=null!==g&&void 0!==g?g:w.zIndex)||void 0===n?void 0:n.toString()}}))});I.classes=y,I.displayName="@mantine/core/AppShellHeader";const N=["classNames","className","style","styles","vars"],P={},R=(0,p.P9)((e,t)=>{const n=(0,d.Y)("AppShellMain",P,e),{classNames:r,className:a,style:l,styles:c,vars:u}=n,h=(0,i.A)(n,N),p=v();return(0,s.jsx)(f.a,(0,o.A)((0,o.A)({component:"main",ref:t},p.getStyles("main",{className:a,style:l,classNames:r,styles:c})),h))});R.classes=y,R.displayName="@mantine/core/AppShellMain";var O=n(7803),D=n(3056),L=n(2887),M=n(7835),F=n(2932),j=n(1785),U=n(3499);function V(e){return"object"===typeof e?e.base:e}function z(e){const t="object"===typeof e&&null!==e&&"undefined"!==typeof e.base&&1===Object.keys(e).length;return"number"===typeof e||"string"===typeof e||t}function B(e){return"object"===typeof e&&null!==e&&(1!==Object.keys(e).length||!("base"in e))}var H=n(5783);function q(e){return 0===Number(e)?"0px":(0,H.GY)(e)}function W(e){let{navbar:t,header:n,footer:r,aside:o,padding:i,theme:s}=e;const a={},l={},c={};!function(e){var t,n,r;let{baseStyles:o,minMediaStyles:i,maxMediaStyles:s,navbar:a,theme:l}=e;const c=null===a||void 0===a?void 0:a.width,u="translateX(calc(var(--app-shell-navbar-width) * -1))",d="translateX(var(--app-shell-navbar-width))";if(null===a||void 0===a||!a.breakpoint||null!==a&&void 0!==a&&null!==(t=a.collapsed)&&void 0!==t&&t.mobile||(s[null===a||void 0===a?void 0:a.breakpoint]=s[null===a||void 0===a?void 0:a.breakpoint]||{},s[null===a||void 0===a?void 0:a.breakpoint]["--app-shell-navbar-width"]="100%",s[null===a||void 0===a?void 0:a.breakpoint]["--app-shell-navbar-offset"]="0px"),z(c)){const e=(0,F.D)(V(c));o["--app-shell-navbar-width"]=e,o["--app-shell-navbar-offset"]=e}if(B(c)&&("undefined"!==typeof c.base&&(o["--app-shell-navbar-width"]=(0,F.D)(c.base),o["--app-shell-navbar-offset"]=(0,F.D)(c.base)),(0,M.H)(c).forEach(e=>{"base"!==e&&(i[e]=i[e]||{},i[e]["--app-shell-navbar-width"]=(0,F.D)(c[e]),i[e]["--app-shell-navbar-offset"]=(0,F.D)(c[e]))})),null!==a&&void 0!==a&&null!==(n=a.collapsed)&&void 0!==n&&n.desktop){const e=a.breakpoint;i[e]=i[e]||{},i[e]["--app-shell-navbar-transform"]=u,i[e]["--app-shell-navbar-transform-rtl"]=d,i[e]["--app-shell-navbar-offset"]="0px !important"}if(null!==a&&void 0!==a&&null!==(r=a.collapsed)&&void 0!==r&&r.mobile){const e=(0,U.r)(a.breakpoint,l.breakpoints)-.1;s[e]=s[e]||{},s[e]["--app-shell-navbar-width"]="100%",s[e]["--app-shell-navbar-offset"]="0px",s[e]["--app-shell-navbar-transform"]=u,s[e]["--app-shell-navbar-transform-rtl"]=d}}({baseStyles:c,minMediaStyles:a,maxMediaStyles:l,navbar:t,theme:s}),function(e){var t,n,r;let{baseStyles:o,minMediaStyles:i,maxMediaStyles:s,aside:a,theme:l}=e;const c=null===a||void 0===a?void 0:a.width,u="translateX(var(--app-shell-aside-width))",d="translateX(calc(var(--app-shell-aside-width) * -1))";if(null===a||void 0===a||!a.breakpoint||null!==a&&void 0!==a&&null!==(t=a.collapsed)&&void 0!==t&&t.mobile||(s[null===a||void 0===a?void 0:a.breakpoint]=s[null===a||void 0===a?void 0:a.breakpoint]||{},s[null===a||void 0===a?void 0:a.breakpoint]["--app-shell-aside-width"]="100%",s[null===a||void 0===a?void 0:a.breakpoint]["--app-shell-aside-offset"]="0px"),z(c)){const e=(0,F.D)(V(c));o["--app-shell-aside-width"]=e,o["--app-shell-aside-offset"]=e}if(B(c)&&("undefined"!==typeof c.base&&(o["--app-shell-aside-width"]=(0,F.D)(c.base),o["--app-shell-aside-offset"]=(0,F.D)(c.base)),(0,M.H)(c).forEac
2h(e=>{"base"!==e&&(i[e]=i[e]||{},i[e]["--app-shell-aside-width"]=(0,F.D)(c[e]),i[e]["--app-shell-aside-offset"]=(0,F.D)(c[e]))})),null!==a&&void 0!==a&&null!==(n=a.collapsed)&&void 0!==n&&n.desktop){const e=a.breakpoint;i[e]=i[e]||{},i[e]["--app-shell-aside-transform"]=u,i[e]["--app-shell-aside-transform-rtl"]=d,i[e]["--app-shell-aside-offset"]="0px !important"}if(null!==a&&void 0!==a&&null!==(r=a.collapsed)&&void 0!==r&&r.mobile){const e=(0,U.r)(a.breakpoint,l.breakpoints)-.1;s[e]=s[e]||{},s[e]["--app-shell-aside-width"]="100%",s[e]["--app-shell-aside-offset"]="0px",s[e]["--app-shell-aside-transform"]=u,s[e]["--app-shell-aside-transform-rtl"]=d}}({baseStyles:c,minMediaStyles:a,maxMediaStyles:l,aside:o,theme:s}),function(e){var t;let{baseStyles:n,minMediaStyles:r,header:o}=e;const i=null===o||void 0===o?void 0:o.height,s=null===(t=null===o||void 0===o?void 0:o.offset)||void 0===t||t;if(z(i)){const e=(0,F.D)(V(i));n["--app-shell-header-height"]=e,s&&(n["--app-shell-header-offset"]=e)}B(i)&&("undefined"!==typeof i.base&&(n["--app-shell-header-height"]=(0,F.D)(i.base),s&&(n["--app-shell-header-offset"]=(0,F.D)(i.base))),(0,M.H)(i).forEach(e=>{"base"!==e&&(r[e]=r[e]||{},r[e]["--app-shell-header-height"]=(0,F.D)(i[e]),s&&(r[e]["--app-shell-header-offset"]=(0,F.D)(i[e])))})),null!==o&&void 0!==o&&o.collapsed&&(n["--app-shell-header-transform"]="translateY(calc(var(--app-shell-header-height) * -1))",n["--app-shell-header-offset"]="0px !important")}({baseStyles:c,minMediaStyles:a,header:n}),function(e){var t;let{baseStyles:n,minMediaStyles:r,footer:o}=e;const i=null===o||void 0===o?void 0:o.height,s=null===(t=null===o||void 0===o?void 0:o.offset)||void 0===t||t;if(z(i)){const e=(0,F.D)(V(i));n["--app-shell-footer-height"]=e,s&&(n["--app-shell-footer-offset"]=e)}B(i)&&("undefined"!==typeof i.base&&(n["--app-shell-footer-height"]=(0,F.D)(i.base),s&&(n["--app-shell-footer-offset"]=(0,F.D)(i.base))),(0,M.H)(i).forEach(e=>{"base"!==e&&(r[e]=r[e]||{},r[e]["--app-shell-footer-height"]=(0,F.D)(i[e]),s&&(r[e]["--app-shell-footer-offset"]=(0,F.D)(i[e])))})),null!==o&&void 0!==o&&o.collapsed&&(n["--app-shell-footer-transform"]="translateY(var(--app-shell-footer-height))",n["--app-shell-footer-offset"]="0px !important")}({baseStyles:c,minMediaStyles:a,footer:r}),function(e){let{padding:t,baseStyles:n,minMediaStyles:r}=e;z(t)&&(n["--app-shell-padding"]=q(V(t))),B(t)&&(t.base&&(n["--app-shell-padding"]=q(t.base)),(0,M.H)(t).forEach(e=>{"base"!==e&&(r[e]=r[e]||{},r[e]["--app-shell-padding"]=q(t[e]))}))}({baseStyles:c,minMediaStyles:a,padding:i});return{baseStyles:c,media:[...(0,j.q)((0,M.H)(a),s.breakpoints).map(e=>({query:"(min-width: ".concat((0,F.em)(e.px),")"),styles:a[e.value]})),...(0,j.q)((0,M.H)(l),s.breakpoints).map(e=>({query:"(max-width: ".concat((0,F.em)(e.px),")"),styles:l[e.value]}))]}}function K(e){let{navbar:t,header:n,aside:r,footer:o,padding:i}=e;const a=(0,D.xd)(),l=(0,O.jD)(),{media:c,baseStyles:u}=W({navbar:t,header:n,footer:o,aside:r,padding:i,theme:a});return(0,s.jsx)(L.K,{media:c,styles:u,selector:l.cssVariablesSelector})}const G=["classNames","className","style","styles","unstyled","vars","withBorder","zIndex","mod"],Y={},Q=(0,p.P9)((e,t)=>{const n=(0,d.Y)("AppShellNavbar",Y,e),{classNames:r,className:a,style:l,styles:c,unstyled:u,vars:h,withBorder:p,zIndex:m,mod:g}=n,y=(0,i.A)(n,G),b=v();return b.disabled?null:(0,s.jsx)(f.a,(0,o.A)((0,o.A)((0,o.A)({component:"nav",ref:t,mod:[{"with-border":null!==p&&void 0!==p?p:b.withBorder},g]},b.getStyles("navbar",{className:a,classNames:r,styles:c,style:l})),y),{},{__vars:{"--app-shell-navbar-z-index":"calc(".concat(null!==m&&void 0!==m?m:b.zIndex," + 1)")}}))});Q.classes=y,Q.displayName="@mantine/core/AppShellNavbar";var X=n(464);const J=["classNames","className","style","styles","vars","grow","mod"],$={},Z=(0,X.v)((e,t)=>{const n=(0,d.Y)("AppShellSection",$,e),{classNames:r,className:a,style:l,styles:c,vars:u,grow:h,mod:p}=n,m=(0,i.A)(n,J),g=v();return(0,s.jsx)(f.a,(0,o.A)((0,o.A)({ref:t,mod:[{grow:h},p]},g.getStyles("section",{className:a,style:l,classNames:r,styles:c})),m))});Z.classes=y,Z.displayName="@mantine/core/AppShellSection";var ee=n(2306),te=n(7426);const ne=["classNames","className","style","styles","unstyled","vars","navbar","withBorder","padding","transitionDuration","transitionTimingFunction","header","zIndex","layout","disabled","aside","footer","offsetScrollbars","mod"],re={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:(0,c.I)("app")},oe=(0,u.V)((e,t)=>{let{transitionDuration:n,transitionTimingFunction:r}=t;return{root:{"--app-shell-transition-duration":"".concat(n,"ms"),"--app-shell-transition-timing-function":r}}}),ie=(0,p.P9)((e,t)=>{const n=(0,d.Y)("AppShell",re,e),{classNames:r,className:l,style:c,styles:u,unstyled:p,vars:m,navbar:v,withBorder:b,padding:w,transitionDuration:S,transitionTimingFunction:E,header:k,zIndex:_,layout:C,disabled:A,aside:T,footer:x,offsetScrollbars:I="alt"!==C,mod:N}=n,P=(0,i.A)(n,ne),R=(0,h.I)({name:"AppShell",classes:y,props:n,className:l,style:c,classNames:r,styles:u,unstyled:p,vars:m,varsResolver:oe}),O=function(e){let{transitionDuration:t,disabled:n}=e;const[r,o]=(0,a.useState)(!0),i=(0,a.useRef)(-1),s=(0,a.useRef)(-1);return(0,ee.M)("resize",()=>{o(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,a.startTransition)(()=>{o(!1)}),200)}),(0,te.o)(()=>{o(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,a.startTransition)(()=>{o(!1)}),t||0)},[n,t]),r}({disabled:A,transitionDuration:S}
2);return(0,s.jsxs)(g,{value:{getStyles:R,withBorder:b,zIndex:_,disabled:A,offsetScrollbars:I},children:[(0,s.jsx)(K,{navbar:v,header:k,aside:T,footer:x,padding:w}),(0,s.jsx)(f.a,(0,o.A)((0,o.A)({ref:t},R("root")),{},{mod:[{resizing:O,layout:C,disabled:A},N]},P))]})});ie.classes=y,ie.displayName="@mantine/core/AppShell",ie.Navbar=Q,ie.Header=I,ie.Main=R,ie.Aside=S,ie.Footer=A,ie.Section=Z;var se=n(8903),ae=n(7950),le=n.t(ae,2),ce=n(3216),ue=n(1387);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(Un){}new Map;const de=l.startTransition;le.flushSync,l.useId;function he(e){let{basename:t,children:n,future:r,window:o}=e,i=a.useRef();null==i.current&&(i.current=(0,ue.zR)({window:o,v5Compat:!0}));let s=i.current,[l,c]=a.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=a.useCallback(e=>{u&&de?de(()=>c(e)):c(e)},[c,u]);return a.useLayoutEffect(()=>s.listen(d),[s,d]),a.useEffect(()=>(0,ce.V8)(r),[r]),a.createElement(ce.Ix,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var fe,pe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fe||(fe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(pe||(pe={}));
2var me=n(4695),ge=n(4877),ve=n(1923),ye=n(1065),be=n(3407),we=n(4933),Se=n(7201),Ee=n(7783);const ke=(0,a.createContext)(null),_e=ke.Provider;var Ce={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const Ae=["classNames","className","style","styles","unstyled","vars","spacing"],Te={},xe=(0,u.V)((e,t)=>{let{spacing:n}=t;return{group:{"--ag-spacing":(0,H.GY)(n)}}}),Ie=(0,p.P9)((e,t)=>{const n=(0,d.Y)("AvatarGroup",Te,e),{classNames:r,className:a,style:l,styles:c,unstyled:u,vars:p,spacing:m}=n,g=(0,i.A)(n,Ae),v=(0,h.I)({name:"AvatarGroup",classes:Ce,props:n,className:a,style:l,classNames:r,styles:c,unstyled:u,vars:p,varsResolver:xe,rootSelector:"group"});return(0,s.jsx)(_e,{value:!0,children:(0,s.jsx)(f.a,(0,o.A)((0,o.A)({ref:t},v("group")),g))})});function Ne(e){return(0,s.jsx)("svg",(0,o.A)((0,o.A)({},e),{},{"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}Ie.classes=Ce,Ie.displayName="@mantine/core/AvatarGroup";const Pe=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function Re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=e.split(" ");return 1===n.length?e.slice(0,t).toUpperCase():n.map(e=>e[0]).slice(0,t).join("").toUpperCase()}const Oe=["classNames","className","style","styles","unstyled","vars","src","alt","radius","color","gradient","imageProps","children","autoContrast","mod","name","allowedInitialsColors"],De={},Le=(0,u.V)((e,t)=>{let{size:n,radius:r,variant:o,gradient:i,color:s,autoContrast:a,name:l,allowedInitialsColors:c}=t;const u="initials"===s&&"string"===typeof l?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe;const n=function(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(e);return t[Math.abs(n)%t.length]}(l,c):s,d=e.variantColorResolver({color:u||"gray",theme:e,gradient:i,variant:o||"light",autoContrast:a});return{root:{"--avatar-size":(0,H.YC)(n,"avatar-size"),"--avatar-radius":void 0===r?void 0:(0,H.nJ)(r),"--avatar-bg":u||o?d.background:void 0,"--avatar-color":u||o?d.color:void 0,"--avatar-bd":u||o?d.border:void 0}}}),Me=(0,X.v)((e,t)=>{const n=(0,d.Y)("Avatar",De,e),{classNames:r,className:l,style:c,styles:u,unstyled:p,vars:m,src:g,alt:v,radius:y,color:b,gradient:w,imageProps:S,children:E,autoContrast:k,mod:_,name:C,allowedInitialsColors:A}=n,T=(0,i.A)(n,Oe),x={withinGroup:!!(0,a.useContext)(ke)},[I,N]=(0,a.useState)(!g),P=(0,h.I)({name:"Avatar",props:n,classes:Ce,className:l,style:c,classNames:r,styles:u,unstyled:p,vars:m,varsResolver:Le});return(0,a.useEffect)(()=>N(!g),[g]),(0,s.jsx)(f.a,(0,o.A)((0,o.A)((0,o.A)({},P("root")),{},{mod:[{"within-group":x.withinGroup},_],ref:t},T),{},{children:I?(0,s.jsx)("span",(0,o.A)((0,o.A)({},P("placeholder")),{},{title:v,children:E||"string"===typeof C&&Re(C)||(0,s.jsx)(Ne,{})})):(0,s.jsx)("img",(0,o.A)((0,o.A)((0,o.A)({},S),P("image")),{},{src:g,alt:v,onError:e=>{var t;N(!0),null===S||void 0===S||null===(t=S.onError)||void 0===t||t.call(S,e)}}))}))});Me.classes=Ce,Me.displayName="@mantine/core/Avatar",Me.Group=Ie;var Fe=n(1740),je=n(1650),Ue=n(6380),Ve=n(9860),ze=n(8027),Be=n(3131),He=n(4409),qe=n(4648),We=(0,qe.A)("outline","user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]),Ke=(0,qe.A)("outline","logout-2","IconLogout2",[["path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2",key:"svg-0"}],["path",{d:"M15 12h-12l3 -3",key:"svg-1"}],["path",{d:"M6 15l-3 -3",key:"svg-2"}]]),Ge=(0,qe.A)("outline","login-2","IconLogin2",[["path",{d:"M9 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2",key:"svg-0"}],["path",{d:"M3 12h13l-3 -3",key:"svg-1"}],["path",{d:"M13 15l3 -3",key:"svg-2"}]]),Ye=n(4117),Qe=n(1504);const Xe="AppHeader_navLink__l-P8V",Je="AppHeader_avatar__7QfPL";function $e(e){var t,n;const{t:r}=(0,Ye.Bd)(),o=(0,ce.Zp)();return(0,s.jsx)(se.m,{children:(0,s.jsxs)(ve.s,{justify:"space-between",align:"center",h:52,children:[(0,s.jsx)(ye.N,{onClick:()=>o("/"),"aria-label":r("title"),children:(0,s.jsx)(be.h,{fz:{base:24,sm:34},fw:900,fs:"italic",c:"black",style:{letterSpacing:"-0.02em",lineHeight:1},children:r("title")})}),e.user?(0,s.jsxs)(we.Y,{align:"center",gap:6,wrap:"nowrap",children:[(0,s.jsxs)(ye.N,{className:Xe,onClick:()=>
2o("/account/links"),visibleFrom:"xs",children:[(0,s.jsx)(je.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)},stroke:2}),r("nav.manage")]}),(0,s.jsxs)(Se.W,{shadow:"lg",width:188,radius:"md",position:"bottom-end",withArrow:!0,children:[(0,s.jsx)(Se.W.Target,{children:(0,s.jsx)(Ee.$,{color:"dark",radius:"xl",size:"sm",px:14,leftSection:(0,s.jsx)(Ue.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)},stroke:2.5}),"aria-label":r("nav.create"),children:r("nav.create")})}),(0,s.jsxs)(Se.W.Dropdown,{children:[(0,s.jsx)(Se.W.Label,{children:r("menu.link.description")}),(0,s.jsx)(Se.W.Item,{leftSection:(0,s.jsx)(Ve.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)}}),onClick:()=>o("/account/links/new/".concat(Qe.z.URL)),children:r("menu.link.url")}),(0,s.jsx)(Se.W.Item,{leftSection:(0,s.jsx)(je.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)}}),onClick:()=>o("/account/links/new/".concat(Qe.z.MULTI_URL)),children:r("menu.link.multiUrl")}),(0,s.jsx)(Se.W.Item,{leftSection:(0,s.jsx)(ze.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)}}),onClick:()=>o("/account/links/new/".concat(Qe.z.VCARD)),children:r("menu.link.vcard")}),(0,s.jsx)(Se.W.Item,{leftSection:(0,s.jsx)(Be.A,{style:{width:(0,F.D)(18),height:(0,F.D)(18)}}),onClick:()=>o("/account/links/new/".concat(Qe.z.WIFI)),children:r("menu.link.wifi")})]})]}),(0,s.jsxs)(Se.W,{shadow:"lg",width:210,radius:"md",position:"bottom-end",withArrow:!0,children:[(0,s.jsx)(Se.W.Target,{children:(0,s.jsx)(ye.N,{"aria-label":r("menu.profile"),children:(0,s.jsxs)(we.Y,{gap:6,wrap:"nowrap",align:"center",children:[(0,s.jsx)(Me,{name:null!==(t=null!==(n=e.user.displayName)&&void 0!==n?n:e.user.email)&&void 0!==t?t:"",color:"dark",radius:"xl",size:36,className:Je},e.user.displayName),(0,s.jsx)(He.A,{style:{width:(0,F.D)(16),height:(0,F.D)(16),color:"#1a1205"},stroke:2.5})]})})}),(0,s.jsxs)(Se.W.Dropdown,{children:[(0,s.jsx)(Se.W.Label,{children:e.user.displayName||e.user.email}),(0,s.jsx)(Se.W.Item,{hiddenFrom:"xs",leftSection:(0,s.jsx)(je.A,{style:{width:(0,F.D)(16),height:(0,F.D)(16)}}),onClick:()=>o("/account/links"),children:r("menu.dashboard")}),(0,s.jsx)(Se.W.Item,{leftSection:(0,s.jsx)(We,{style:{width:(0,F.D)(16),height:(0,F.D)(16)}}),onClick:()=>o("/account"),children:r("menu.profile")}),(0,s.jsx)(Se.W.Divider,{}),(0,s.jsx)(Se.W.Item,{color:"red",leftSection:(0,s.jsx)(Ke,{style:{width:(0,F.D)(16),height:(0,F.D)(16)}}),onClick:()=>(0,Fe.CI)(me.j2).then(()=>o("/")),children:r("menu.logout")})]})]})]}):(0,s.jsx)(Ee.$,{color:"dark",radius:"xl",leftSection:(0,s.jsx)(Ge,{style:{width:(0,F.D)(18),height:(0,F.D)(18)}}),onClick:()=>o("/login"),children:r("login.title")})]})})}var Ze=n(3374);const et=(0,Ze.Z)(()=>n.e(384).then(n.bind(n,9384))),tt=(0,Ze.Z)(()=>n.e(469).then(n.bind(n,8469))),nt=(0,Ze.Z)(()=>Promise.all([n.e(738),n.e(178),n.e(443)]).then(n.bind(n,9443))),rt=(0,Ze.Z)(()=>Promise.all([n.e(55),n.e(531)]).then(n.bind(n,7531))),ot=(0,Ze.Z)(()=>Promise.all([n.e(738),n.e(55),n.e(908),n.e(392),n.e(913)]).then(n.bind(n,5913))),it=(0,Ze.Z)(()=>Promise.all([n.e(55),n.e(474),n.e(791)]).then(n.bind(n,4791))),st=(0,Ze.Z)(()=>Promise.all([n.e(738),n.e(908),n.e(178),n.e(540),n.e(409)]).then(n.bind(n,6409))),at=(0,Ze.Z)(()=>Promise.all([n.e(738),n.e(55),n.e(908),n.e(392),n.e(474),n.e(65),n.e(83)]).then(n.bind(n,5083))),lt=(0,Ze.Z)(()=>n.e(128).then(n.bind(n,5128))),ct=(0,Ze.Z)(()=>n.e(617).then(n.bind(n,4617)));const ut=function(){const[e,t]=(0,a.useState)(!0),[n,r]=(0,a.useState)(void 0),[o,i]=(0,a.useState)(!0),[l,c]=(0,a.useState)([]),[u,d]=(0,a.useState)();return(0,a.useEffect)(()=>me.j2.onAuthStateChanged(e=>{e?(localStorage.setItem("user_id",e.uid),e.getIdToken().then(()=>{r(e),t(!1)})):(localStorage.removeItem("user_id"),r(void 0),t(!1))}),[]),e?(0,s.jsx)(ge.A,{color:"primary.5"}):(0,s.jsx)(he,{children:(0,s.jsxs)(ie,{header:{height:o?68:0},padding:"md",children:[o&&(0,s.jsx)(ie.Header,{p:"xs",withBorder:!1,style:{background:"linear-gradient(90deg, #ffc109 0%, #ffcc38 100%)",boxShadow:"0 2px 14px rgba(0, 0, 0, 0.10)",backdropFilter:"saturate(140%)"},children:(0,s.jsx)($e,{user:n})}),(0,s.jsx)(ie.Main,{children:(0,s.jsx)(se.m,{children:(0,s.jsx)(a.Suspense,{fallback:(0,s.jsx)(ge.A,{color:"custqrd.5"}),children:(0,s.jsxs)(ce.BV,{children:[(0,s.jsx)(ce.qh,{path:"/",index:!0,element:(0,s.jsx)(et,{})}),(0,s.jsx)(ce.qh,{path:"/terms",element:(0,s.jsx)(lt,{})}),(0,s.jsx)(ce.qh,{path:"/privacy",element:(0,s.jsx)(ct,{})}),(0,s.jsx)(ce.qh,{path:"/r/:code",element:(0,s.jsx)(nt,{setHeaderShown:i})}),!n&&(0,s.jsx)(ce.qh,{path:"/login",element:(0,s.jsx)(rt,{})}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ce.qh,{path:"/account",element:(0,s.jsx)(it,{user:n})}),(0,s.jsx)(ce.qh,{path:"/account/links",element:(0,s.jsx)(ot,{user:n,onAnalyticSelect:c,onCodeSelect:d})}),(0,s.jsx)(ce.qh,{path:"/account/links/new/:type",element:(0,s.jsx)(at,{user:n,mode:"create"})}),(0,s.jsx)(ce.qh,{path:"/account/link/:linkId",element:(0,s.jsx)(st,{user:n,analytics:l,data:u})}),(0,s.jsx)(ce.qh,{path:"/account/link/:linkId/edit",element:(0,s.jsx)(at,{user:n,mode:"edit"})})]}),(0,s.jsx)(ce.qh,{path:"*",element:(0,s.jsx)(tt,{})})]})})})})]})})};function dt(e){return"auto"===e||"dark"===e||"light"===e}function ht(){let e,{key:t="mantine-color-scheme-value"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{get:e=>{if("undefined"===typeof window)return e;try{const n=window.localStorage.getItem(t);return dt(n)?n:e}catch(n){return e}},set:e=>{try{window.localStorage.setItem(t,e)}catch(n){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",n)}},subscribe:n=>{e=e=>{e.storageArea===window.localStorage&&e.key===t&&dt(e.newValue)&&n(e.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}var ft=n(3888);function pt(){const e=(0,D.xd)(),t=(0,O.WV)(),n=(0,M.H)(e.breakpoints).reduce((t,n)=>{const r=e.breakpoints[n].includes("px"),o=(0,ft.px)(e.breakpoints[n]),i=r?"".concat(o-.1,"px"):(0,F.em)(o-.1),s=r?"".concat(o,"px"):(0,F.em)(o);return"".concat(t,"@media (max-width: ").concat(i,") {.mantine-visible-from-").concat(n," {display: none !important;}}@media (min-width: ").concat(s,") {.mantine-hidden-from-").concat(n," {display: none !important;}}")},"");
2return(0,s.jsx)("style",{"data-mantine-styles":"classes",nonce:null===t||void 0===t?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function mt(e){return Object.entries(e).map(e=>{let[t,n]=e;return"".concat(t,": ").concat(n,";")}).join("")}function gt(e,t){return(Array.isArray(e)?e:[e]).reduce((e,t)=>"".concat(t,"{").concat(e,"}"),t)}var vt=n(6673),yt=n(1891),bt=n(7683),wt=n(517);function St(e){let{theme:t,color:n,colorScheme:r,name:i=n,withColorValues:s=!0}=e;if(!t.colors[n])return{};if("light"===r){const e=(0,yt.g)(t,"light"),r={["--mantine-color-".concat(i,"-text")]:"var(--mantine-color-".concat(i,"-filled)"),["--mantine-color-".concat(i,"-filled")]:"var(--mantine-color-".concat(i,"-").concat(e,")"),["--mantine-color-".concat(i,"-filled-hover")]:"var(--mantine-color-".concat(i,"-").concat(9===e?8:e+1,")"),["--mantine-color-".concat(i,"-light")]:(0,wt.X)(t.colors[n][e],.1),["--mantine-color-".concat(i,"-light-hover")]:(0,wt.X)(t.colors[n][e],.12),["--mantine-color-".concat(i,"-light-color")]:"var(--mantine-color-".concat(i,"-").concat(e,")"),["--mantine-color-".concat(i,"-outline")]:"var(--mantine-color-".concat(i,"-").concat(e,")"),["--mantine-color-".concat(i,"-outline-hover")]:(0,wt.X)(t.colors[n][e],.05)};return s?(0,o.A)({["--mantine-color-".concat(i,"-0")]:t.colors[n][0],["--mantine-color-".concat(i,"-1")]:t.colors[n][1],["--mantine-color-".concat(i,"-2")]:t.colors[n][2],["--mantine-color-".concat(i,"-3")]:t.colors[n][3],["--mantine-color-".concat(i,"-4")]:t.colors[n][4],["--mantine-color-".concat(i,"-5")]:t.colors[n][5],["--mantine-color-".concat(i,"-6")]:t.colors[n][6],["--mantine-color-".concat(i,"-7")]:t.colors[n][7],["--mantine-color-".concat(i,"-8")]:t.colors[n][8],["--mantine-color-".concat(i,"-9")]:t.colors[n][9]},r):r}const a=(0,yt.g)(t,"dark"),l={["--mantine-color-".concat(i,"-text")]:"var(--mantine-color-".concat(i,"-4)"),["--mantine-color-".concat(i,"-filled")]:"var(--mantine-color-".concat(i,"-").concat(a,")"),["--mantine-color-".concat(i,"-filled-hover")]:"var(--mantine-color-".concat(i,"-").concat(9===a?8:a+1,")"),["--mantine-color-".concat(i,"-light")]:(0,wt.X)(t.colors[n][Math.max(0,a-2)],.15),["--mantine-color-".concat(i,"-light-hover")]:(0,wt.X)(t.colors[n][Math.max(0,a-2)],.2),["--mantine-color-".concat(i,"-light-color")]:"var(--mantine-color-".concat(i,"-").concat(Math.max(a-5,0),")"),["--mantine-color-".concat(i,"-outline")]:"var(--mantine-color-".concat(i,"-").concat(Math.max(a-4,0),")"),["--mantine-color-".concat(i,"-outline-hover")]:(0,wt.X)(t.colors[n][Math.max(a-4,0)],.05)};return s?(0,o.A)({["--mantine-color-".concat(i,"-0")]:t.colors[n][0],["--mantine-color-".concat(i,"-1")]:t.colors[n][1],["--mantine-color-".concat(i,"-2")]:t.colors[n][2],["--mantine-color-".concat(i,"-3")]:t.colors[n][3],["--mantine-color-".concat(i,"-4")]:t.colors[n][4],["--mantine-color-".concat(i,"-5")]:t.colors[n][5],["--mantine-color-".concat(i,"-6")]:t.colors[n][6],["--mantine-color-".concat(i,"-7")]:t.colors[n][7],["--mantine-color-".concat(i,"-8")]:t.colors[n][8],["--mantine-color-".concat(i,"-9")]:t.colors[n][9]},l):l}function Et(e,t,n){(0,M.H)(t).forEach(r=>Object.assign(e,{["--mantine-".concat(n,"-").concat(r)]:t[r]}))}const kt=e=>{const t=(0,yt.g)(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:(0,F.D)(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":"var(--mantine-color-".concat(e.primaryColor,"-filled)"),"--mantine-primary-color-filled-hover":"var(--mantine-color-".concat(e.primaryColor,"-filled-hover)"),"--mantine-primary-color-light":"var(--mantine-color-".concat(e.primaryColor,"-light)"),"--mantine-primary-color-light-hover":"var(--mantine-color-".concat(e.primaryColor,"-light-hover)"),"--mantine-primary-color-light-color":"var(--mantine-color-".concat(e.primaryColor,"-light-color)")},light:{"--mantine-primary-color-contrast":(0,bt.g)(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":"var(--mantine-color-".concat(e.primaryColor,"-").concat(t,")"),"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":(0,bt.g)(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":"var(--mantine-color-".concat(e.primaryColor,"-4)"),"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Et(r.variables,e.breakpoints,"breakpoint"),Et(r.variables,e.spacing,"spacing"),Et(r.variables,e.fontSizes,"font-size"),Et(r.variables,e.lineHeights,"line-height"),Et(r.variables,e.shadows,"shadow"),Et(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((t,n)=>{r.variables["--mantine-primary-color-".concat(n)]="var(--mantine-color-".concat(e.primaryColor,"-").concat(n,")")}
2),(0,M.H)(e.colors).forEach(t=>{const n=e.colors[t];if(function(e){return!!e&&"object"===typeof e&&"mantine-virtual-color"in e}(n))return Object.assign(r.light,St({theme:e,name:n.name,color:n.light,colorScheme:"light",withColorValues:!0})),void Object.assign(r.dark,St({theme:e,name:n.name,color:n.dark,colorScheme:"dark",withColorValues:!0}));n.forEach((e,n)=>{r.variables["--mantine-color-".concat(t,"-").concat(n)]=e}),Object.assign(r.light,St({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,St({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return(0,M.H)(o).forEach(t=>{r.variables["--mantine-".concat(t,"-font-size")]=o[t].fontSize,r.variables["--mantine-".concat(t,"-line-height")]=o[t].lineHeight,r.variables["--mantine-".concat(t,"-font-weight")]=o[t].fontWeight||e.headings.fontWeight}),r};var _t=n(7311);const Ct=kt(_t.S);function At(e){let{cssVariablesSelector:t,deduplicateCssVariables:n}=e;const r=(0,D.xd)(),o=(0,O.WV)(),i=function(e){let{theme:t,generator:n}=e;const r=kt(t),o=null===n||void 0===n?void 0:n(t);return o?(0,vt.$)(r,o):r}({theme:r,generator:(0,O.OY)()}),a=":root"===t&&n,l=function(e,t){const n=mt(e.variables),r=n?gt(t,n):"",o=mt(e.dark),i=mt(e.light),s=o?gt("".concat(t,":host"===t?'([data-mantine-color-scheme="dark"])':'[data-mantine-color-scheme="dark"]'),o):"",a=i?gt("".concat(t,":host"===t?'([data-mantine-color-scheme="light"])':'[data-mantine-color-scheme="light"]'),i):"";return"".concat(r).concat(s).concat(a)}(a?function(e){const t={variables:{},light:{},dark:{}};return(0,M.H)(e.variables).forEach(n=>{Ct.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),(0,M.H)(e.light).forEach(n=>{Ct.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),(0,M.H)(e.dark).forEach(n=>{Ct.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}(i):i,t);return l?(0,s.jsx)("style",{"data-mantine-styles":!0,nonce:null===o||void 0===o?void 0:o(),dangerouslySetInnerHTML:{__html:"".concat(l).concat(a?"":(c=t,"\n  ".concat(c,'[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n  ').concat(c,'[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n')))}}):null;var c}function Tt(e,t){var n,r;const o="undefined"!==typeof window&&"matchMedia"in window&&(null===(n=window.matchMedia("(prefers-color-scheme: dark)"))||void 0===n?void 0:n.matches),i="auto"!==e?e:o?"dark":"light";null===(r=t())||void 0===r||r.setAttribute("data-mantine-color-scheme",i)}function xt(e){let{theme:t,children:n,getStyleNonce:r,withStaticClasses:o=!0,withGlobalClasses:i=!0,deduplicateCssVariables:l=!0,withCssVariables:c=!0,cssVariablesSelector:u=":root",classNamesPrefix:d="mantine",colorSchemeManager:h=ht(),defaultColorScheme:f="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:m,forceColorScheme:g,stylesTransform:v,env:y}=e;const{colorScheme:b,setColorScheme:w,clearColorScheme:S}=function(e){let{manager:t,defaultColorScheme:n,getRootElement:r,forceColorScheme:o}=e;const i=(0,a.useRef)(null),[s,l]=(0,a.useState)(()=>t.get(n)),c=o||s,u=(0,a.useCallback)(e=>{o||(Tt(e,r),l(e),t.set(e))},[t.set,c,o]),d=(0,a.useCallback)(()=>{l(n),Tt(n,r),t.clear()},[t.clear,n]);return(0,a.useEffect)(()=>(t.subscribe(u),t.unsubscribe),[t.subscribe,t.unsubscribe]),(0,te.o)(()=>{Tt(t.get(n),r)},[]),(0,a.useEffect)(()=>{var e;if(o)return Tt(o,r),()=>{};void 0===o&&Tt(s,r),"undefined"!==typeof window&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const t=e=>{"auto"===s&&Tt(e.matches?"dark":"light",r)};return null===(e=i.current)||void 0===e||e.addEventListener("change",t),()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.removeEventListener("change",t)}},[s,o]),{colorScheme:c,setColorScheme:u,clearColorScheme:d}}({defaultColorScheme:f,forceColorScheme:g,manager:h,getRootElement:p});return function(e){let{respectReducedMotion:t,getRootElement:n}=e;(0,te.o)(()=>{var e;t&&(null===(e=n())||void 0===e||e.setAttribute("data-respect-reduced-motion","true"))},[t])}({respectReducedMotion:(null===t||void 0===t?void 0:t.respectReducedMotion)||!1,getRootElement:p}),(0,s.jsx)(O.A$.Provider,{value:{colorScheme:b,setColorScheme:w,clearColorScheme:S,getRootElement:p,classNamesPrefix:d,getStyleNonce:r,cssVariablesResolver:m,cssVariablesSelector:u,withStaticClasse
2s:o,stylesTransform:v,env:y},children:(0,s.jsxs)(D.nW,{theme:t,children:[c&&(0,s.jsx)(At,{cssVariablesSelector:u,deduplicateCssVariables:l}),i&&(0,s.jsx)(pt,{}),n]})})}At.displayName="@mantine/CssVariables",function(){const e=console.error;console.error=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.length>1&&"string"===typeof n[0]&&n[0].toLowerCase().includes("extra attributes from the server")&&"string"===typeof n[1]&&n[1].toLowerCase().includes("data-mantine-color-scheme")||e(...n)}}(),xt.displayName="@mantine/core/MantineProvider";var It=n(4978);function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function Pt(){return"function"===typeof XMLHttpRequest||"object"===("undefined"===typeof XMLHttpRequest?"undefined":Nt(XMLHttpRequest))}const Rt=n.p+"static/media/getFetch.7a7a1c81840c96d5a3ea.cjs";var Ot=n.t(Rt);function Dt(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 Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach(function(t){Mt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ft(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}var jt,Ut,Vt="function"===typeof fetch?fetch:void 0;"undefined"!==typeof global&&global.fetch?Vt=global.fetch:"undefined"!==typeof window&&window.fetch&&(Vt=window.fetch),Pt()&&("undefined"!==typeof global&&global.XMLHttpRequest?jt=global.XMLHttpRequest:"undefined"!==typeof window&&window.XMLHttpRequest&&(jt=window.XMLHttpRequest)),"function"===typeof ActiveXObject&&("undefined"!==typeof global&&global.ActiveXObject?Ut=global.ActiveXObject:"undefined"!==typeof window&&window.ActiveXObject&&(Ut=window.ActiveXObject)),Vt||!Ot||jt||Ut||(Vt=Rt||Ot),"function"!==typeof Vt&&(Vt=void 0);var zt=function(e,t){if(t&&"object"===Ft(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},Bt=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var i=r(e,t);if(i instanceof Promise)return void i.then(o).catch(n)}"function"===typeof fetch?fetch(e,t).then(o).catch(n):Vt(e,t).then(o).catch(n)},Ht=!1;const qt=function(e,t,n,r){return"function"===typeof n&&(r=n,n=void 0),r=r||function(){},Vt&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=zt(t,e.queryStringParams));var o=Lt({},"function"===typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"===typeof window&&"undefined"!==typeof global&&"undefined"!==typeof global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"===typeof e.requestOptions?e.requestOptions(n):e.requestOptions,s=Lt({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},Ht?{}:i),a="function"===typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Bt(t,s,r,a)}catch(Un){if(!i||0===Object.keys(i).length||!Un.message||Un.message.indexOf("not implemented")<0)return r(Un);
2try{Object.keys(i).forEach(function(e){delete s[e]}),Bt(t,s,r,a),Ht=!0}catch(l){r(l)}}}(e,t,n,r):Pt()||"function"===typeof ActiveXObject?function(e,t,n,r){n&&"object"===Ft(n)&&(n=zt("",n).slice(1)),e.queryStringParams&&(t=zt(t,e.queryStringParams));try{var o;(o=jt?new jt:new Ut("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"===typeof i?i():i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(Un){console&&console.log(Un)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Kt(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach(function(t){Qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yt(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,Xt(r.key),r)}}function Qt(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){var t=function(e,t){if("object"!=Wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wt(t)?t:t+""}var Jt=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)},t=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=Gt(Gt(Gt({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return Qt({},t,n||"")},parseLoadPayload:function(e,t){},request:qt,reloadInterval:"undefined"===typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var o=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===Wt(o)&&"function"===typeof o.unref&&o.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,s=this,a=this.options.loadPath;"function"===typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=function(e){return!!e&&"function"===typeof e.then}(i=a)?i:Promise.resolve(i)).then(function(i){if(!i)return o(null,{});var a=s.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});s.loadUrl(a,o,t,r)})}},{key:"loadUrl",value:function(t,n,r,o){var i=this,s="string"===typeof r?[r]:r,a="string"===typeof o?[o]:o,l=this.options.parseLoadPayload(s,a);
2this.options.request(this.options,t,l,function(s,a){if(a&&(a.status>=500&&a.status<600||!a.status))return n("failed loading "+t+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return n("failed loading "+t+"; status code: "+a.status,!1);if(!a&&s&&s.message){var l=s.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return l.indexOf(e)>-1}))return n("failed loading "+t+": "+s.message,!0)}if(s)return n(s,!1);var c,u;try{c="string"===typeof a.data?i.options.parse(a.data,r,o):a.data}catch(e){u="failed parsing "+t+" to json"}if(u)return n(u,!1);n(null,c)})}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"===typeof e&&(e=[e]);var s=this.options.parsePayload(t,n,r),a=0,l=[],c=[];e.forEach(function(n){var r=i.options.addPath;"function"===typeof i.options.addPath&&(r=i.options.addPath(n,t));var u=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,u,s,function(t,n){a+=1,l.push(t),c.push(n),a===e.length&&"function"===typeof o&&o(l,c)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var s=[],a=function(e){r.toResolveHierarchy(e).forEach(function(e){s.indexOf(e)<0&&s.push(e)})};a(i),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),s.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)})})})}}}],t&&Yt(e.prototype,t),n&&Yt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();Jt.type="backend";const $t=Jt,{slice:Zt,forEach:en}=[];const tn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,nn={create(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},r=encodeURIComponent(t);let o="".concat(e,"=").concat(r);if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(e))}if(n.domain){if(!tn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!tn.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if("function"!==typeof n.expires.toUTCString)throw new TypeError("option expires is invali
2d");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch("string"===typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o}(e,t,o)},read(e){const t="".concat(e,"="),n=document.cookie.split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var rn={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!==typeof document)return nn.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&"undefined"!==typeof document&&nn.create(n,e,r,o,i)}},on={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!==typeof window){var r;let{search:e}=window.location;!window.location.search&&(null===(r=window.location.hash)||void 0===r?void 0:r.indexOf("?"))>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const o=e.substring(1).split("&");for(let r=0;r<o.length;r++){const e=o[r].indexOf("=");if(e>0){o[r].substring(0,e)===n&&(t=o[r].substring(e+1))}}}return t}},sn={name:"hash",lookup(e){let t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!==typeof window){const{hash:e}=window.location;if(e&&e.length>2){const i=e.substring(1);if(n){const e=i.split("&");for(let r=0;r<e.length;r++){const o=e[r].indexOf("=");if(o>0){e[r].substring(0,o)===n&&(t=e[r].substring(o+1))}}}if(t)return t;if(!t&&r>-1){var o;const t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return null===(o=t["number"===typeof r?r:0])||void 0===o?void 0:o.replace("/","")}}}return t}};let an=null;const ln=()=>
2{if(null!==an)return an;try{if(an="undefined"!==typeof window&&null!==window.localStorage,!an)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(Un){an=!1}return an};var cn={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ln())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ln()&&window.localStorage.setItem(n,e)}};let un=null;const dn=()=>{if(null!==un)return un;try{if(un="undefined"!==typeof window&&null!==window.sessionStorage,!un)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(Un){un=!1}return un};var hn={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&dn())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&dn()&&window.sessionStorage.setItem(n,e)}},fn={name:"navigator",lookup(e){const t=[];if("undefined"!==typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let o=0;o<e.length;o++)t.push(e[o]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},pn={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!==typeof document?document.documentElement:null);return r&&"function"===typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},mn={name:"path",lookup(e){var t;let{lookupFromPathIndex:n}=e;if("undefined"===typeof window)return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(r))return;return null===(t=r["number"===typeof n?n:0])||void 0===t?void 0:t.replace("/","")}},gn={name:"subdomain",lookup(e){var t;let{lookupFromSubdomainIndex:n}=e;const r="number"===typeof n?n+1:1,o="undefined"!==typeof window&&(null===(t=window.location)||void 0===t||null===(t=t.hostname)||void 0===t?void 0:t.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[r]}};let vn=!1;try{document.cookie,vn=!0}catch(Un){}const yn=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];vn||yn.splice(1,1);class bn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return en.call(Zt.call(arguments,1),t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:yn,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"===typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(rn),this.addDetector(on),this.addDetector(cn),this.addDetector(hn),this.addDetector(fn),this.addDetector(pn),this.addDetector(mn),this.addDetector(gn),this.addDetector(sn)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"===typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return void 0!==e&&null!==e&&!("string"===typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}
2cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}bn.type="languageDetector",localStorage.removeItem("i18nextLng"),It.Ay.use($t).use(bn).use(Ye.r9).init({fallbackLng:"en",debug:!1,load:"languageOnly",interpolation:{escapeValue:!1},react:{useSuspense:!0}});var wn=n(9934),Sn=n(1632);const En=(0,a.createContext)(null);function kn(e){let{id:t,cancelProps:n,confirmProps:r,labels:i={cancel:"",confirm:""},closeOnConfirm:l=!0,closeOnCancel:c=!0,groupProps:u,onCancel:d,onConfirm:h,children:p}=e;const{cancel:m,confirm:g}=i,v=function(){const e=(0,a.useContext)(En);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}();return(0,s.jsxs)(s.Fragment,{children:[p&&(0,s.jsx)(f.a,{mb:"md",children:p}),(0,s.jsxs)(we.Y,(0,o.A)((0,o.A)({mt:p?0:"md",justify:"flex-end"},u),{},{children:[(0,s.jsx)(Ee.$,(0,o.A)((0,o.A)({variant:"default"},n),{},{onClick:e=>{"function"===typeof(null===n||void 0===n?void 0:n.onClick)&&(null===n||void 0===n||n.onClick(e)),"function"===typeof d&&d(),c&&v.closeModal(t)},children:(null===n||void 0===n?void 0:n.children)||m})),(0,s.jsx)(Ee.$,(0,o.A)((0,o.A)({},r),{},{onClick:e=>{"function"===typeof(null===r||void 0===r?void 0:r.onClick)&&(null===r||void 0===r||r.onClick(e)),"function"===typeof h&&h(),l&&v.closeModal(t)},children:(null===r||void 0===r?void 0:r.children)||g}))]}))]})}En.displayName="@mantine/modals/ModalsContext";var _n=n(9618);function Cn(e,t){var n,r,o,i;t&&"confirm"===e.type&&(null===(o=(i=e.props).onCancel)||void 0===o||o.call(i));null===(n=(r=e.props).onClose)||void 0===n||n.call(r)}function An(e,t){switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{const n=e.modals.find(e=>e.id===t.modalId);if(!n)return e;Cn(n,t.canceled);const r=e.modals.filter(e=>e.id!==t.modalId);return{current:r[r.length-1]||e.current,modals:r}}case"CLOSE_ALL":return e.modals.length?(e.modals.concat().reverse().forEach(e=>{Cn(e,t.canceled)}),{current:e.current,modals:[]}):e;case"UPDATE":{var n;const{modalId:r,newProps:i}=t,s=e.modals.map(e=>e.id!==r?e:"content"===e.type||"confirm"===e.type?(0,o.A)((0,o.A)({},e),{},{props:(0,o.A)((0,o.A)({},e.props),i)}):"context"===e.type?(0,o.A)((0,o.A)({},e),{},{props:(0,o.A)((0,o.A)((0,o.A)({},e.props),i),{},{innerProps:(0,o.A)((0,o.A)({},e.props.innerProps),i.innerProps)})}):e),a=(null===(n=e.current)||void 0===n?void 0:n.id)===r&&s.find(e=>e.id===r)||e.current;return(0,o.A)((0,o.A)({},e),{},{modals:s,current:a})}default:return e}}const Tn=["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"],xn=["modalId"],In=["modalId"],Nn=["modalId"],Pn=["modalId"],Rn=["modalId"],On=["modal"],Dn=["innerProps"],Ln=["children"];function Mn(e){let{children:t,modalProps:n,labels:r,modals:l}=e;const[u,d]=(0,a.useReducer)(An,{modals:[],current:null}),h=(0,a.useRef)(u);h.current=u;const f=(0,a.useCallback)(e=>{d({type:"CLOSE_ALL",canceled:e})},[h,d]),p=(0,a.useCallback)(e=>{let{modalId:t}=e,n=(0,i.A)(e,xn);const r=t||(0,Sn.z)();return d({type:"OPEN",modal:{id:r,type:"content",props:n}}),r},[d]),m=(0,a.useCallback)(e=>{let{modalId:t}=e,n=(0,i.A)(e,In);const r=t||(0,Sn.z)();return d({type:"OPEN",modal:{id:r,type:"confirm",props:n}}),r},[d]),g=(0,a.useCallback)((e,t)=>{let{modalId:n}=t,r=(0,i.A)(t,Nn);const o=n||(0,Sn.z)();return d({type:"OPEN",modal:{id:o,type:"context",props:r,ctx:e}}),o},[d]),v=(0,a.useCallback)((e,t)=>{d({type:"CLOSE",modalId:e,canceled:t})},[h,d]),y=(0,a.useCallback)(e=>{let{modalId:t}=e,n=(0,i.A)(e,Pn);d({type:"UPDATE",modalId:t,newProps:n})},[d]),b=(0,a.useCallback)(e=>{let{modalId:t}=e,n=(0,i.A)(e,Rn);d({type:"UPDATE",modalId:t,newProps:n})},[d]);(0,_n.Fj)({openModal:p,openConfirmModal:m,openContextModal:e=>{let{modal:t}=e,n=(0,i.A)(e,On);return g(t,n)},closeModal:v,closeContextModal:v,closeAllModals:f,updateModal:y,updateContextModal:b});const w={modalProps:n||{},modals:u.modals,openModal:p,openConfirmModal:m,openContextModal:g,closeModal:v,closeContextModal:v,closeAll:f,updateModal:y,updateContextModal:b},{modalProps:S,content:E}=(()=>{const e=h.current.current;switch(null===e||void 0===e?void 0:e.type){case"context":{const t=e.props,{innerProps:n}=t,r=(0,i.A)(t,Dn),o=l[e.ctx];return{modalProps:r,content:(0,s.jsx)(o,{innerProps:n,context:w,id:e.id})}}case"confirm":{const{modalProps:t,confirmProps:n}=function(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:t,children:n,onCancel:r,onConfirm:s,closeOnConfirm:a,closeOnCancel:l,cancelProps:c,confirmProps:u,groupProps:d,labels:h}=e,f=(0,i.A)(e,Tn);return{confirmProps:{id:t,children:n,onCancel:r,onConfirm:s,closeOnConfirm:a,closeOnCancel:l,cancelProps:c,confirmProps:u,groupProps:d,labels:h},modalProps:(0,o.A)({id:t},f)}}(e.props);return{modalProps:t,content:(0,s.jsx)(kn,(0,o.A)((0,o.A)({},n),{},{id:e.id,labels:e.props.labels||r}))}}case"content":{const t=e.props,{children:n}=t;return{modalProps:(0,i.A)(t,Ln),content:n}}default:return{modalProps:{},content:null}}})();return(0,s.jsxs)(En.Provider,{value:w,children:[(0,s.jsx)(wn.a,(0,o.A)((0,o.A)((0,o.A)({zIndex:(0,c.I)("modal")+1},n),S),{},{opened:u.modals.length>0,onClose:()=>{var e;return v(null===(e=u.current)||void 0===e?void 0:e.id)},children:E})),t]})}function Fn(e){return new Promise(t=>setTimeout(t,e))}const jn={primaryColor:"custqrd",primaryShade:{light:6,dark:6},autoContrast:!0,luminanceThreshold:.45,defaultRadius:"md",cursorType:"pointer",focu
2sRing:"auto",fontFamily:"Poppins, Josefin Sans, -apple-system, BlinkMacSystemFont, sans-serif",fontFamilyMonospace:"source-code-pro, Menlo, Monaco, Consolas, monospace",headings:{fontFamily:"Josefin Sans, Poppins, sans-serif",fontWeight:"700"},colors:{custqrd:["#fffae1","#fff3cc","#ffe69b","#ffd864","#ffcc38","#ffc41c","#ffc109","#e3a900","#ca9600","#af8100"]},components:{Button:{defaultProps:{radius:"md"},styles:{root:{fontWeight:600}}},Paper:{defaultProps:{radius:"lg"}},Card:{defaultProps:{radius:"lg"}},ActionIcon:{defaultProps:{radius:"md"}},TextInput:{defaultProps:{radius:"md"}},PasswordInput:{defaultProps:{radius:"md"}},Tooltip:{defaultProps:{radius:"md"}}}};r.createRoot(document.getElementById("root")).render((0,s.jsx)(xt,{defaultColorScheme:"auto",theme:jn,children:(0,s.jsx)(Mn,{children:(0,s.jsx)(ut,{})})}))},4391:(e,t,n)=>{"use strict";var r=n(7950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4409:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9526);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5043);function o(e){let{value:t,defaultValue:n,finalValue:o,onChange:i=()=>{}}=e;const[s,a]=(0,r.useState)(void 0!==n?n:o);return void 0!==t?[t,i,!0]:[s,function(e){a(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null===i||void 0===i||i(e,...n)},!1]}},4632:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(5043),o=n(7426),i=n(1632);const s=r["useId".toString()]||(()=>{});function a(e){const t=function(){const e=s();return e?"mantine-".concat(e.replace(/:/g,"")):""}(),[n,a]=(0,r.useState)(t);return(0,o.o)(()=>{a((0,i.z)())},[]),"string"===typeof e?e:"undefined"===typeof window?t:n}},4648:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(9379),o=n(45),i=n(5043),s={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const a=["color","size","stroke","title","className","children"],l=(e,t,n,l)=>{const c=(0,i.forwardRef)((n,c)=>{let{color:u="currentColor",size:d=24,stroke:h=2,title:f,className:p,children:m}=n,g=(0,o.A)(n,a);return(0,i.createElement)("svg",(0,r.A)((0,r.A)((0,r.A)({ref:c},s[e]),{},{width:d,height:d,className:["tabler-icon","tabler-icon-".concat(t),p].join(" ")},"filled"===e?{fill:u}:{strokeWidth:h,stroke:u}),g),[f&&(0,i.createElement)("title",{key:"svg-title"},f),...l.map(e=>{let[t,n]=e;return(0,i.createElement)(t,n)}),...Array.isArray(m)?m:[m]])});return c.displayName="".concat(n),c}},4695:(e,t,n)=>{"use strict";n.d(t,{j2:()=>vt,kA:()=>yt,IG:()=>bt});var r=n(52);(0,r.KO)("firebase","11.10.0","app");var o=n(1740),i=n(8147),s=n(5472),a=n(8012),l=n(1529),c=n(8812),u=n(443),d=n(2799);const h="@firebase/installations",f="0.6.18",p=1e4,m="w:".concat(f),g="FIS_v2",v=36e5,y={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},b=new l.FA("installations","Installations",y);function w(e){return e instanceof l.g&&e.code.includes("request-failed")}function S(e){let{projectId:t}=e;return"".concat("https://firebaseinstallations.googleapis.com/v1","/projects/").concat(t,"/installations")}function E(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function k(e,t){const n=(await t.json()).error;return b.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function _(e){let{apiKey:t}=e;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function C(e,t){let{refreshToken:n}=t;const r=_(e);return r.append("Authorization",function(e){return"".concat(g," ").concat(e)}(n)),r}async function A(e){const t=await e();return t.status>=500&&t.status<600?e():t}function T(e){return new Promise(t=>{setTimeout(t,e)})}const x=/^[cdef][\w-]{21}$/;function I(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){const t=(n=e,btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_"));var n;return t.substr(0,22)}(e);return x.test(t)?t:""}catch(e){return""}}function N(e){return"".concat(e.appName,"!").concat(e.appId)}const P=new Map;function R(e,t){const n=N(e);O(n,t),function(e,t){const n=L();n&&n.postMessage({key:e,fid:t});M()}(n,t)}function O(e,t){const n=P.get(e);if(n)for(const r of n)r(t)}let D=null;function L(){return!D&&"BroadcastChannel"in self&&(D=new BroadcastChannel("[Firebase] FID Change"),D.onmessage=e=>{O(e.data.key,e.data.fid)}),D}function M(){0===P.size&&D&&(D.close(),D=null)}const F="firebase-installations-store";let j=null;function U(){return j||(j=(0,d.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(F)}})),j}async function V(e,t){const n=N(e),r=(await U()).transaction(F,"readwrite"),o=r.objectStore(F),i=await o.get(n);return await o.put(t,n),await r.done,i&&i.fid===t.fid||R(e,t.fid),t}async function z(e){const t=N(e),n=(await U()).transaction(F,"readwrite");await n.objectStore(F).delete(t),await n.done}async function B(e,t){const n=N(e),r=(await U()).transaction(F,"readwrite"),o=r.objectStore(F),i=await o.get(n),s=t(i);return void 0===s?await o.delete(n):await o.put(s,n),await r.done,!s||i&&i.fid===s.fid||R(e,s.fid),s}async function H(e){let t;const n=await B(e.appConfig,n=>{const r=function(e){const t=e||{fid:I(),registrationStatus:0};return K(t)}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject(b.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function(e,t){let{appConfig:n,heartbeatServiceProvider:r}=e,{fid:o}=t;const i=S(n),s=_(n),a=r.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&s.append("x-firebase-client",e)}const l={fid:o,authVersion:g,appId:n.appId,sdkVersion:m},c={method:"POST",headers:s,body:JSON.stringify(l)},u=await A(()=>fetch(i,c));if(u.ok){const e=await u.json();return{fid:e.fid||o,registrationStatus:2,refreshToken:e.refreshToken,authToken:E(e.authToken)}}throw await k("Create Installation",u)}(e,t);return V(e.appConfig,n)}catch(n){throw w(n)&&409===n.customData.serverCode?await z(e.appConfig):await V(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:q(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function q(e){let t=await W(e.appConfig);for(;1===t.registrationStatus;)await T(100),t=await W(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await H(e);return n||t}return t}function W(e){return B(e,e=>{if(!e)throw b.create("installation-not-found");return K(e)})}function K(e){return 1===(t=e).registrationStatus&&t.registrationTime+p<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function G(e,t){let{appConfig:n,heartbeatServiceProvider:r}=e;const o=function(e,t){let{fid:n}=t;return"".concat(S(e),"/").concat(n,"/authTokens:generate")}(n,t),i=C(n,t),s=r.getImmediate({optional:!0});if(s){const e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const a={installation:{sdkVersion:m,appId:n.appId}},l={method:"POST",headers:i,body:JSON.stringify(a)},c=await A(()=>fetch(o,l));if(c.ok){return E(await c.json())}throw await k("Generate Auth Token",c)}async function Y(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=await B(e.appConfig,r=>{if(!X(r))throw b.create("not-registered");const o=r.authToken;if(!n&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();
2return t<e.creationTime||e.creationTime+e.expiresIn<t+v}(e)}(o))return r;if(1===o.requestStatus)return t=async function(e,t){let n=await Q(e.appConfig);for(;1===n.authToken.requestStatus;)await T(100),n=await Q(e.appConfig);const r=n.authToken;return 0===r.requestStatus?Y(e,t):r}(e,n),r;{if(!navigator.onLine)throw b.create("app-offline");const n=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return t=async function(e,t){try{const n=await G(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await V(e.appConfig,r),n}catch(n){if(!w(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await V(e.appConfig,n)}else await z(e.appConfig);throw n}}(e,n),n}});return t?await t:r.authToken}function Q(e){return B(e,e=>{if(!X(e))throw b.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+p<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var n})}function X(e){return void 0!==e&&2===e.registrationStatus}async function J(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e;await async function(e){const{registrationPromise:t}=await H(e);t&&await t}(n);return(await Y(n,t)).token}function $(e){return b.create("missing-app-config-values",{valueName:e})}const Z="installations",ee=e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw $("App Configuration");if(!e.name)throw $("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw $(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:(0,r.j6)(t,"heartbeat"),_delete:()=>Promise.resolve()}},te=e=>{const t=e.getProvider("app").getImmediate(),n=(0,r.j6)(t,Z).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await H(t);return r?r.catch(console.error):Y(t).catch(console.error),n.fid}(n),getToken:e=>J(n,e)}};(0,r.om)(new c.uA(Z,ee,"PUBLIC")),(0,r.om)(new c.uA("installations-internal",te,"PRIVATE")),(0,r.KO)(h,f),(0,r.KO)(h,f,"esm2017");const ne="@firebase/remote-config",re="0.6.5";class oe{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}const ie="remote-config",se={"already-initialized":"Remote Config already initialized","registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser","custom-signal-max-allowed-signals":"Setting more than {$maxSignals} custom signals is not supported."},ae=new l.FA("remoteconfig","Remote Config",se);async function le(e){const t=(0,l.Ku)(e),n=new oe;setTimeout(async()=>{n.abort()},t.settings.fetchTimeoutMillis);const r=t._storageCache.getCustomSignals();r&&t._logger.debug("Fetching config with custom signals: ".concat(JSON.stringify(r)));try{await t._client.fetch({cacheMaxAgeMillis:t.settings.minimumFetchIntervalMillis,signal:n,customSignals:r}),await t._storageCache.setLastFetchStatus("success")}catch(o){const e=function(e,t){return e instanceof l.g&&-1!==e.code.indexOf(t)}(o,"fetch-throttle")?"throttle":"failure";throw await t._storageCache.setLastFetchStatus(e),o}}class ce{constructor(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}
2isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const n=Date.now()-t,r=n<=e;return this.logger.debug("Config fetch cache check."+" Cache age millis: ".concat(n,".")+" Cache max age millis (minimumFetchIntervalMillis setting): ".concat(e,".")+" Is cache hit: ".concat(r,".")),r}async fetch(e){const[t,n]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(n&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return n;e.eTag=n&&n.eTag;const r=await this.client.fetch(e),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===r.status&&o.push(this.storage.setLastSuccessfulFetchResponse(r)),await Promise.all(o),r}}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e.languages&&e.languages[0]||e.language}class de{constructor(e,t,n,r,o,i){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=o,this.appId=i}async fetch(e){const[t,n]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),r=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o="".concat(r,"/v1/projects/").concat(this.projectId,"/namespaces/").concat(this.namespace,":fetch?key=").concat(this.apiKey),i={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},s={sdk_version:this.sdkVersion,app_instance_id:t,app_instance_id_token:n,app_id:this.appId,language_code:ue(),custom_signals:e.customSignals},a={method:"POST",headers:i,body:JSON.stringify(s)},l=fetch(o,a),c=new Promise((t,n)=>{e.signal.addEventListener(()=>{const e=new Error("The operation was aborted.");e.name="AbortError",n(e)})});let u;try{await Promise.race([l,c]),u=await l}catch(m){let e="fetch-client-network";throw"AbortError"===(null===m||void 0===m?void 0:m.name)&&(e="fetch-timeout"),ae.create(e,{originalErrorMessage:null===m||void 0===m?void 0:m.message})}let d=u.status;const h=u.headers.get("ETag")||void 0;let f,p;if(200===u.status){let e;try{e=await u.json()}catch(m){throw ae.create("fetch-client-parse",{originalErrorMessage:null===m||void 0===m?void 0:m.message})}f=e.entries,p=e.state}if("INSTANCE_STATE_UNSPECIFIED"===p?d=500:"NO_CHANGE"===p?d=304:"NO_TEMPLATE"!==p&&"EMPTY_CONFIG"!==p||(f={}),304!==d&&200!==d)throw ae.create("fetch-status",{httpStatus:d});return{status:d,eTag:h,config:f}}}class he{constructor(e,t){this.client=e,this.storage=t}async fetch(e){const t=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)}async attemptFetch(e,t){let{throttleEndTimeMillis:n,backoffCount:r}=t;await function(e,t){return new Promise((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener(()=>{clearTimeout(i),r(ae.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}(e.signal,n);try{const t=await this.client.fetch(e);return await this.storage.deleteThrottleMetadata(),t}catch(o){if(!function(e){if(!(e instanceof l.g)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(o))throw o;const t={throttleEndTimeMillis:Date.now()+(0,l.p9)(r),backoffCount:r+1};return await this.storage.setThrottleMetadata(t),this.attemptFetch(e,t)}}}class fe{get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}constructor(e,t,n,r,o){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=o,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}}function pe(e,t){const n=e.target.error||void 0;return ae.create(t,{originalErrorMessage:n&&(null===n||void 0===n?void 0:n.message)})}const me="app_namespace_store";class ge{getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}getCustomSignals(){return this.get("custom_signals")}}class ve extends ge{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Promise((e,t)=>
2{try{const n=indexedDB.open("firebase_remote_config",1);n.onerror=e=>{t(pe(e,"storage-open"))},n.onsuccess=t=>{e(t.target.result)},n.onupgradeneeded=e=>{const t=e.target.result;0===e.oldVersion&&t.createObjectStore(me,{keyPath:"compositeKey"})}}catch(n){t(ae.create("storage-open",{originalErrorMessage:null===n||void 0===n?void 0:n.message}))}});super(),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}async setCustomSignals(e){const t=(await this.openDbPromise).transaction([me],"readwrite"),n=be(e,await this.getWithTransaction("custom_signals",t)||{});return await this.setWithTransaction("custom_signals",n,t),n}async getWithTransaction(e,t){return new Promise((n,r)=>{const o=t.objectStore(me),i=this.createCompositeKey(e);try{const e=o.get(i);e.onerror=e=>{r(pe(e,"storage-get"))},e.onsuccess=e=>{const t=e.target.result;n(t?t.value:void 0)}}catch(s){r(ae.create("storage-get",{originalErrorMessage:null===s||void 0===s?void 0:s.message}))}})}async setWithTransaction(e,t,n){return new Promise((r,o)=>{const i=n.objectStore(me),s=this.createCompositeKey(e);try{const e=i.put({compositeKey:s,value:t});e.onerror=e=>{o(pe(e,"storage-set"))},e.onsuccess=()=>{r()}}catch(a){o(ae.create("storage-set",{originalErrorMessage:null===a||void 0===a?void 0:a.message}))}})}async get(e){const t=(await this.openDbPromise).transaction([me],"readonly");return this.getWithTransaction(e,t)}async set(e,t){const n=(await this.openDbPromise).transaction([me],"readwrite");return this.setWithTransaction(e,t,n)}async delete(e){const t=await this.openDbPromise;return new Promise((n,r)=>{const o=t.transaction([me],"readwrite").objectStore(me),i=this.createCompositeKey(e);try{const e=o.delete(i);e.onerror=e=>{r(pe(e,"storage-delete"))},e.onsuccess=()=>{n()}}catch(s){r(ae.create("storage-delete",{originalErrorMessage:null===s||void 0===s?void 0:s.message}))}})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class ye extends ge{constructor(){super(...arguments),this.storage={}}async get(e){return Promise.resolve(this.storage[e])}async set(e,t){return this.storage[e]=t,Promise.resolve(void 0)}async delete(e){return this.storage[e]=void 0,Promise.resolve()}async setCustomSignals(e){const t=this.storage.custom_signals||{};return this.storage.custom_signals=be(e,t),Promise.resolve(this.storage.custom_signals)}}function be(e,t){const n=Object.assign(Object.assign({},t),e),r=Object.fromEntries(Object.entries(n).filter(e=>{let[t,n]=e;return null!==n}).map(e=>{let[t,n]=e;return"number"===typeof n?[t,n.toString()]:[t,n]}));if(Object.keys(r).length>100)throw ae.create("custom-signal-max-allowed-signals",{maxSignals:100});return r}class we{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}getCustomSignals(){return this.customSignals}async loadFromStorage(){const e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),r=this.storage.getCustomSignals(),o=await e;o&&(this.lastFetchStatus=o);const i=await t;i&&(this.lastSuccessfulFetchTimestampMillis=i);const s=await n;s&&(this.activeConfig=s);const a=await r;a&&(this.customSignals=a)}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}async setCustomSignals(e){this.customSignals=await this.storage.setCustomSignals(e)}}(0,r.om)(new c.uA(ie,function(e,t){let{options:n}=t;const o=e.getProvider("app").getImmediate(),i=e.getProvider("installations-internal").getImmediate(),{projectId:s,apiKey:a,appId:c}=o.options;if(!s)throw ae.create("registration-project-id");if(!a)throw ae.create("registration-api-key");if(!c)throw ae.create("registration-app-id");const d=(null===n||void 0===n?void 0:n.templateId)||"firebase",h=(0,l.zW)()?new ve(c,o.name,d):new ye,f=new we(h),p=new u.Vy(ne);p.logLevel=u.$b.ERROR;const m=new de(i,r.MF,d,s,a,c),g=new he(m,h),v=new ce(g,h,f,p),y=new fe(o,v,f,h,p);return function(e){const t=(0,l.Ku)(e);t._initializePromise||(t._initializePromise=t._storageCache.loadFromStorage().then(()=>{t._isInitializationComplete=!0})),t._initializePromise}(y),y},"PUBLIC").setMultipleInstances(!0)),(0,r.KO)(ne,re),(0,r.KO)(ne,re,"esm2017");const Se=new Map,Ee={activated:!1,tokenObservers:[]},ke={initialized:!1,enabled:!1};function _e(e){return Se.get(e)||Object.assign({},Ee)}function Ce(){return ke}const Ae="https://content-firebaseappcheck.googleapis.com/v1",Te=3e4,xe=96e4;class Ie{constructor(e,t,n,r,o){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=r,this.up
2perBound=o,this.pending=null,this.nextErrorWaitInterval=r,r>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new l.cY,this.pending.promise.catch(e=>{}),await(t=this.getNextRun(e),new Promise(e=>{setTimeout(e,t)})),this.pending.resolve(),await this.pending.promise,this.pending=new l.cY,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(n){this.retryPolicy(n)?this.process(!1).catch(()=>{}):this.stop()}var t}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}}const Ne={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"},Pe=new l.FA("appCheck","AppCheck",Ne);function Re(){var e;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?null===(e=self.grecaptcha)||void 0===e?void 0:e.enterprise:self.grecaptcha}function Oe(e){if(!_e(e).activated)throw Pe.create("use-before-activation",{appName:e.name})}function De(e){const t=Math.round(e/1e3),n=Math.floor(t/86400),r=Math.floor((t-3600*n*24)/3600),o=Math.floor((t-3600*n*24-3600*r)/60),i=t-3600*n*24-3600*r-60*o;let s="";return n&&(s+=Le(n)+"d:"),r&&(s+=Le(r)+"h:"),s+=Le(o)+"m:"+Le(i)+"s",s}function Le(e){return 0===e?"00":e>=10?e.toString():"0"+e}async function Me(e,t){let{url:n,body:r}=e;const o={"Content-Type":"application/json"},i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&(o["X-Firebase-Client"]=e)}const s={method:"POST",body:JSON.stringify(r),headers:o};let a,l;try{a=await fetch(n,s)}catch(h){throw Pe.create("fetch-network-error",{originalErrorMessage:null===h||void 0===h?void 0:h.message})}if(200!==a.status)throw Pe.create("fetch-status-error",{httpStatus:a.status});try{l=await a.json()}catch(h){throw Pe.create("fetch-parse-error",{originalErrorMessage:null===h||void 0===h?void 0:h.message})}const c=l.ttl.match(/^([\d.]+)(s)$/);if(!c||!c[2]||isNaN(Number(c[1])))throw Pe.create("fetch-parse-error",{originalErrorMessage:"ttl field (timeToLive) is not in standard Protobuf Duration "+"format: ".concat(l.ttl)});const u=1e3*Number(c[1]),d=Date.now();return{token:l.token,expireTimeMillis:d+u,issuedAtTimeMillis:d}}function Fe(e,t){const{projectId:n,appId:r,apiKey:o}=e.options;return{url:"".concat(Ae,"/projects/").concat(n,"/apps/").concat(r,":").concat("exchangeDebugToken","?key=").concat(o),body:{debug_token:t}}}const je="firebase-app-check-store",Ue="debug-token";let Ve=null;function ze(){return Ve||(Ve=new Promise((e,t)=>
2{try{const n=indexedDB.open("firebase-app-check-database",1);n.onsuccess=t=>{e(t.target.result)},n.onerror=e=>{var n;t(Pe.create("storage-open",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))},n.onupgradeneeded=e=>{const t=e.target.result;if(0===e.oldVersion)t.createObjectStore(je,{keyPath:"compositeKey"})}}catch(n){t(Pe.create("storage-open",{originalErrorMessage:null===n||void 0===n?void 0:n.message}))}}),Ve)}async function Be(e,t){const n=(await ze()).transaction(je,"readwrite"),r=n.objectStore(je).put({compositeKey:e,value:t});return new Promise((e,t)=>{r.onsuccess=t=>{e()},n.onerror=e=>{var n;t(Pe.create("storage-set",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))}})}async function He(e){const t=(await ze()).transaction(je,"readonly"),n=t.objectStore(je).get(e);return new Promise((e,r)=>{n.onsuccess=t=>{const n=t.target.result;e(n?n.value:void 0)},t.onerror=e=>{var t;r(Pe.create("storage-get",{originalErrorMessage:null===(t=e.target.error)||void 0===t?void 0:t.message}))}})}function qe(e){return"".concat(e.options.appId,"-").concat(e.name)}const We=new u.Vy("@firebase/app-check");async function Ke(e){if((0,l.zW)()){let n;try{n=await function(e){return He(qe(e))}(e)}catch(t){We.warn("Failed to read token from IndexedDB. Error: ".concat(t))}return n}}function Ge(e,t){return(0,l.zW)()?function(e,t){return Be(qe(e),t)}(e,t).catch(e=>{We.warn("Failed to write token to IndexedDB. Error: ".concat(e))}):Promise.resolve()}async function Ye(){let e;try{e=await He(Ue)}catch(n){}if(e)return e;{const e=crypto.randomUUID();return(t=e,Be(Ue,t)).catch(e=>We.warn("Failed to persist debug token to IndexedDB. Error: ".concat(e))),e}var t}function Qe(){return Ce().enabled}async function Xe(){const e=Ce();if(e.enabled&&e.token)return e.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")}const Je={error:"UNKNOWN_ERROR"};async function $e(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.app;Oe(r);const o=_e(r);let i,s=o.token;if(s&&!ot(s)&&(o.token=void 0,s=void 0),!s){const e=await o.cachedTokenPromise;e&&(ot(e)?s=e:await Ge(r,void 0))}if(!t&&s&&ot(s))return{token:s.token};let a,l=!1;if(Qe())try{o.exchangeTokenPromise||(o.exchangeTokenPromise=Me(Fe(r,await Xe()),e.heartbeatServiceProvider).finally(()=>{o.exchangeTokenPromise=void 0}),l=!0);const t=await o.exchangeTokenPromise;return await Ge(r,t),o.token=t,{token:t.token}}catch(c){return c.code==="appCheck/".concat("throttled")||c.code==="appCheck/".concat("initial-throttle")?We.warn(c.message):n&&We.error(c),it(c)}try{o.exchangeTokenPromise||(o.exchangeTokenPromise=o.provider.getToken().finally(()=>{o.exchangeTokenPromise=void 0}),l=!0),s=await _e(r).exchangeTokenPromise}catch(c){c.code==="appCheck/".concat("throttled")||c.code==="appCheck/".concat("initial-throttle")?We.warn(c.message):n&&We.error(c),i=c}return s?i?a=ot(s)?{token:s.token,internalError:i}:it(i):(a={token:s.token},o.token=s,await Ge(r,s)):a=it(i),l&&rt(r,a),a}async function Ze(e){const t=e.app;Oe(t);const{provider:n}=_e(t);if(Qe()){const n=await Xe(),{token:r}=await Me(Fe(t,n),e.heartbeatServiceProvider);return{token:r}}{const{token:e}=await n.getToken();return{token:e}}}function et(e,t,n,r){const{app:o}=e,i=_e(o),s={next:n,error:r,type:t};if(i.tokenObservers=[...i.tokenObservers,s],i.token&&ot(i.token)){const t=i.token;Promise.resolve().then(()=>{n({token:t.token}),nt(e)}).catch(()=>{})}i.cachedTokenPromise.then(()=>nt(e))}function tt(e,t){const n=_e(e),r=n.tokenObservers.filter(e=>e.next!==t);0===r.length&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function nt(e){const{app:t}=e,n=_e(t);let r=n.tokenRefresher;r||(r=function(e){const{app:t}=e;return new Ie(async()=>{let n;if(n=_e(t).token?await $e(e,!0):await $e(e),n.error)throw n.error;if(n.internalError)throw n.internalError},()=>!0,()=>{const e=_e(t);if(e.token){let t=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5;const n=e.token.expireTimeMillis-3e5;return t=Math.min(t,n),Math.max(0,t-Date.now())}return 0},Te,xe)}(e),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function rt(e,t){const n=_e(e).tokenObservers;
2for(const o of n)try{"EXTERNAL"===o.type&&null!=t.error?o.error(t.error):o.next(t)}catch(r){}}function ot(e){return e.expireTimeMillis-Date.now()>0}function it(e){return{token:(t=Je,l.K3.encodeString(JSON.stringify(t),!1)),error:e};var t}class st{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=_e(this.app);for(const t of e)tt(this.app,t.next);return Promise.resolve()}}const at="https://www.google.com/recaptcha/api.js";function lt(e,t){const n=new l.cY;_e(e).reCAPTCHAState={initialized:n};const r=ut(e),o=Re(!1);return o?ct(e,t,o,r,n):function(e){const t=document.createElement("script");t.src=at,t.onload=e,document.head.appendChild(t)}(()=>{const o=Re(!1);if(!o)throw new Error("no recaptcha");ct(e,t,o,r,n)}),n.promise}function ct(e,t,n,r,o){n.ready(()=>{!function(e,t,n,r){const o=n.render(r,{sitekey:t,size:"invisible",callback:()=>{_e(e).reCAPTCHAState.succeeded=!0},"error-callback":()=>{_e(e).reCAPTCHAState.succeeded=!1}}),i=_e(e);i.reCAPTCHAState=Object.assign(Object.assign({},i.reCAPTCHAState),{widgetId:o})}(e,t,n,r),o.resolve(n)})}function ut(e){const t="fire_app_check_".concat(e.name),n=document.createElement("div");return n.id=t,n.style.display="none",document.body.appendChild(n),t}async function dt(e){Oe(e);const t=_e(e).reCAPTCHAState,n=await t.initialized.promise;return new Promise((t,r)=>{const o=_e(e).reCAPTCHAState;n.ready(()=>{t(n.execute(o.widgetId,{action:"fire_app_check"}))})})}class ht{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(){var e,t,n;pt(this._throttleData);const r=await dt(this._app).catch(e=>{throw Pe.create("recaptcha-error")});if(!(null===(e=_e(this._app).reCAPTCHAState)||void 0===e?void 0:e.succeeded))throw Pe.create("recaptcha-error");let o;try{o=await Me(function(e,t){const{projectId:n,appId:r,apiKey:o}=e.options;return{url:"".concat(Ae,"/projects/").concat(n,"/apps/").concat(r,":").concat("exchangeRecaptchaV3Token","?key=").concat(o),body:{recaptcha_v3_token:t}}}(this._app,r),this._heartbeatServiceProvider)}catch(i){throw(null===(t=i.code)||void 0===t?void 0:t.includes("fetch-status-error"))?(this._throttleData=ft(Number(null===(n=i.customData)||void 0===n?void 0:n.httpStatus),this._throttleData),Pe.create("initial-throttle",{time:De(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus})):i}return this._throttleData=null,o}initialize(e){this._app=e,this._heartbeatServiceProvider=(0,r.j6)(e,"heartbeat"),lt(e,this._siteKey).catch(()=>{})}isEqual(e){return e instanceof ht&&this._siteKey===e._siteKey}}function ft(e,t){if(404===e||403===e)return{backoffCount:1,allowRequestsAfter:Date.now()+864e5,httpStatus:e};{const n=t?t.backoffCount:0,r=(0,l.p9)(n,1e3,2);return{backoffCount:n+1,allowRequestsAfter:Date.now()+r,httpStatus:e}}}function pt(e){if(e&&Date.now()-e.allowRequestsAfter<=0)throw Pe.create("throttled",{time:De(e.allowRequestsAfter-Date.now()),httpStatus:e.httpStatus})}const mt="app-check-internal";(0,r.om)(new c.uA("app-check",e=>function(e,t){return new st(e,t)}(e.getProvider("app").getImmediate(),e.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider(mt).initialize()})),(0,r.om)(new c.uA(mt,e=>function(e){return{getToken:t=>$e(e,t),getLimitedUseToken:()=>Ze(e),addTokenListener:t=>et(e,"INTERNAL",t),removeTokenListener:t=>tt(e.app,t)}}(e.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,r.KO)("@firebase/app-check","0.10.1");const gt=(window.FIREBASE_APPCHECK_DEBUG_TOKEN=a.b,(0,r.Wp)({apiKey:"AIzaSyBMPBSGiujLeSu6qmjZEe9yeOgPf0s8HZA",authDomain:"ar-mycodr.firebaseapp.com",projectId:"ar-mycodr",storageBucket:"ar-mycodr.appspot.com",messagingSenderId:"749477034189",appId:"1:749477034189:web:3a02e0d81d4bf1620c5184",measurementId:"G-YJJJQCVVZJ"}));!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Sx)(),t=arguments.length>1?arguments[1]:void 0;e=(0,l.Ku)(e);const n=(0,r.j6)(e,"app-check");if(Ce().initialized||function(){const e=(0,l.mS)(),t=Ce();if(t.initialized=!0,"string"!==typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN&&!0!==e.FIREBASE_APPCHECK_DEBUG_TOKEN)return;t.enabled=!0;const n=new l.cY;t.token=n,"string"===typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN?n.resolve(e.FIREBASE_APPCHECK_DEBUG_TOKEN):n.resolve(Ye())}(),Qe()&&Xe().then(e=>console.log("App Check debug token: ".concat(e,". You will need to add it to your app's App Check 
2settings in the Firebase console for it to work."))),n.isInitialized()){const r=n.getImmediate(),o=n.getOptions();if(o.isTokenAutoRefreshEnabled===t.isTokenAutoRefreshEnabled&&o.provider.isEqual(t.provider))return r;throw Pe.create("already-initialized",{appName:e.name})}const o=n.initialize({options:t});(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e,t){return Se.set(e,t),Se.get(e)}(e,Object.assign({},Ee));r.activated=!0,r.provider=t,r.cachedTokenPromise=Ke(e).then(t=>(t&&ot(t)&&(r.token=t,rt(e,{token:t.token})),t)),r.isTokenAutoRefreshEnabled=n&&e.automaticDataCollectionEnabled,!e.automaticDataCollectionEnabled&&n&&We.warn("`isTokenAutoRefreshEnabled` is true but `automaticDataCollectionEnabled` was set to false during `initializeApp()`. This blocks automatic token refresh.");r.provider.initialize(e)})(e,t.provider,t.isTokenAutoRefreshEnabled),_e(e).isTokenAutoRefreshEnabled&&et(o,"INTERNAL",()=>{})}(gt,{provider:new ht("6Le7wwMpAAAAAG580bVcBG52UkY96qS1SGaK84gn"),isTokenAutoRefreshEnabled:!0});const vt=(0,o.xI)(gt),yt=(0,s.aU)(gt),bt=(0,i.c7)(gt),wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Sx)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,o;e=(0,l.Ku)(e);const i=(0,r.j6)(e,ie);if(i.isInitialized()){const e=i.getOptions();if((0,l.bD)(e,t))return i.getImmediate();throw ae.create("already-initialized")}i.initialize({options:t});const s=i.getImmediate();return t.initialFetchResponse&&(s._initializePromise=Promise.all([s._storage.setLastSuccessfulFetchResponse(t.initialFetchResponse),s._storage.setActiveConfigEtag((null===(n=t.initialFetchResponse)||void 0===n?void 0:n.eTag)||""),s._storageCache.setLastSuccessfulFetchTimestampMillis(Date.now()),s._storageCache.setLastFetchStatus("success"),s._storageCache.setActiveConfig((null===(o=t.initialFetchResponse)||void 0===o?void 0:o.config)||{})]).then(),s._isInitializationComplete=!0),s}(gt);wt.settings.minimumFetchIntervalMillis=1e4,wt.defaultConfig=n(5022),async function(e){e=(0,l.Ku)(e),await le(e),async function(e){const t=(0,l.Ku)(e),[n,r]=await Promise.all([t._storage.getLastSuccessfulFetchResponse(),t._storage.getActiveConfigEtag()]);!!(n&&n.config&&n.eTag&&n.eTag!==r)&&await Promise.all([t._storageCache.setActiveConfig(n.config),t._storage.setActiveConfigEtag(n.eTag)])}(e)}(wt)},4751:(e,t,n)=>{"use strict";function r(e){if("number"===typeof e)return!0;if("string"===typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}n.d(t,{t:()=>r})},4868:(e,t,n)=>{"use strict";n.d(t,{B:()=>g});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(5783)),a=n(1721),l=n(9863),c=n(8038),u=n(4886),d=n(6331),h={root:"m_6d731127"};const f=["classNames","className","style","styles","unstyled","vars","align","justify","gap","variant"],p={gap:"md",align:"stretch",justify:"flex-start"},m=(0,a.V)((e,t)=>{let{gap:n,align:r,justify:o}=t;return{root:{"--stack-gap":(0,s.GY)(n),"--stack-align":r,"--stack-justify":o}}}),g=(0,d.P9)((e,t)=>{const n=(0,l.Y)("Stack",p,e),{classNames:s,className:a,style:d,styles:g,unstyled:v,vars:y,align:b,justify:w,gap:S,variant:E}=n,k=(0,o.A)(n,f),_=(0,c.I)({name:"Stack",props:n,classes:h,className:a,style:d,classNames:s,styles:g,unstyled:v,vars:y,varsResolver:m});return(0,i.jsx)(u.a,(0,r.A)((0,r.A)({ref:t},_("root")),{},{variant:E},k))});g.classes=h,g.displayName="@mantine/core/Stack"},4877:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4868),o=n(6405),i=n(5214),s=n(579);function a(e){return(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsxs)(r.B,{align:"center",children:[(0,s.jsx)(o.a,{size:"xl",color:e.color}),e.title&&(0,s.jsx)(i.E,{children:e.title})]})})}},4886:(e,t,n)=>{"use strict";n.d(t,{a:()=>E});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(8387);var l=n(2887),c=n(4751),u=n(7803),d=n(3056);function h(e){return e.startsWith("data-")?e:"data-".concat(e)}function f(e){return e?"string"===typeof e?{[h(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>
2(0,r.A)((0,r.A)({},e),f(t)),{}):(t=e,Object.keys(t).reduce((e,n)=>{const r=t[n];return void 0===r||""===r||!1===r||null===r||(e[h(n)]=t[n]),e},{})):null;var t}function p(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>(0,r.A)((0,r.A)({},e),p(n,t)),{}):"function"===typeof e?e(t):null==e?{}:e}function m(e){let{theme:t,style:n,vars:o,styleProps:i}=e;const s=p(n,t),a=p(o,t);return(0,r.A)((0,r.A)((0,r.A)({},s),a),i)}var g=n(2154);const v={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};var y=n(737),b=n(2869);const w=["component","style","__vars","className","variant","mod","size","hiddenFrom","visibleFrom","lightHidden","darkHidden","renderRoot","__size"],S=(0,s.forwardRef)((e,t)=>{var n;let{component:s,style:h,__vars:p,className:S,variant:E,mod:k,size:_,hiddenFrom:C,visibleFrom:A,lightHidden:T,darkHidden:x,renderRoot:I,__size:N}=e,P=(0,o.A)(e,w);const R=(0,d.xd)(),O=s||"div",{styleProps:D,rest:L}=(0,g.j)(P),M=(0,u.NL)(),F=null===M||void 0===M||null===(n=M())||void 0===n?void 0:n(D.sx),j=(0,b.C)(),U=(0,y.X)({styleProps:D,theme:R,data:v}),V=(0,r.A)((0,r.A)({ref:t,style:m({theme:R,style:h,vars:p,styleProps:U.inlineStyles}),className:(0,a.A)(S,F,{[j]:U.hasResponsiveStyles,"mantine-light-hidden":T,"mantine-dark-hidden":x,["mantine-hidden-from-".concat(C)]:C,["mantine-visible-from-".concat(A)]:A}),"data-variant":E,"data-size":(0,c.t)(_)?void 0:_||void 0,size:N},f(k)),L);return(0,i.jsxs)(i.Fragment,{children:[U.hasResponsiveStyles&&(0,i.jsx)(l.K,{selector:".".concat(j),styles:U.styles,media:U.media}),"function"===typeof I?I(V):(0,i.jsx)(O,(0,r.A)({},V))]})});S.displayName="@mantine/core/Box";const E=S},4933:(e,t,n)=>{"use strict";n.d(t,{Y:()=>v});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(5783),l=n(1721),c=n(9863),u=n(8038),d=n(4886),h=n(6331);var f={root:"m_4081bf90"};const p=["classNames","className","style","styles","unstyled","children","gap","align","justify","wrap","grow","preventGrowOverflow","vars","variant","__size","mod"],m={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},g=(0,l.V)((e,t,n)=>{let{grow:r,preventGrowOverflow:o,gap:i,align:s,justify:l,wrap:c}=t,{childWidth:u}=n;return{root:{"--group-child-width":r&&o?u:void 0,"--group-gap":(0,a.GY)(i),"--group-align":s,"--group-justify":l,"--group-wrap":c}}}),v=(0,h.P9)((e,t)=>{const n=(0,c.Y)("Group",m,e),{classNames:l,className:h,style:v,styles:y,unstyled:b,children:w,gap:S,align:E,justify:k,wrap:_,grow:C,preventGrowOverflow:A,vars:T,variant:x,__size:I,mod:N}=n,P=(0,o.A)(n,p),R=function(e){return s.Children.toArray(e).filter(
2Boolean)}(w),O=R.length,D=(0,a.GY)(null!==S&&void 0!==S?S:"md"),L={childWidth:"calc(".concat(100/O,"% - (").concat(D," - ").concat(D," / ").concat(O,"))")},M=(0,u.I)({name:"Group",props:n,stylesCtx:L,className:h,style:v,classes:f,classNames:l,styles:y,unstyled:b,vars:T,varsResolver:g});return(0,i.jsx)(d.a,(0,r.A)((0,r.A)((0,r.A)({},M("root")),{},{ref:t,variant:x,mod:[{grow:C},N],size:I},P),{},{children:R}))});v.classes=f,v.displayName="@mantine/core/Group"},4978:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>G,t:()=>Y});var r=n(9379);const o=e=>"string"===typeof e,i=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},s=e=>null==e?"":""+e,a=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,c=e=>!e||o(e),u=(e,t,n)=>{const r=o(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(c(e))return{};const t=l(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return c(e)?{}:{obj:e,k:l(r[i])}},d=(e,t,n)=>{const{obj:r,k:o}=u(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],s=t.slice(0,t.length-1),a=u(e,s,Object);for(;void 0===a.obj&&s.length;)i="".concat(s[s.length-1],".").concat(i),s=s.slice(0,s.length-1),a=u(e,s,Object),a&&a.obj&&"undefined"!==typeof a.obj["".concat(a.k,".").concat(i)]&&(a.obj=void 0);a.obj["".concat(a.k,".").concat(i)]=n},h=(e,t)=>{const{obj:n,k:r}=u(e,t);if(n)return n[r]},f=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?o(e[r])||e[r]instanceof String||o(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):f(e[r],t[r],n):e[r]=t[r]);return e},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const g=e=>o(e)?e.replace(/[&<>"'\/]/g,e=>m[e]):e;const v=[" ",",","?","!",";"],y=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!==typeof o)return;let e,t="";for(let s=i;s<r.length;++s)if(s!==i&&(t+=n),t+=r[s],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=e}return o},w=e=>e&&e.replace("_","-"),S={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(o(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new E(this.logger,(0,r.A)((0,r.A)({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new E(this.logger,e)}}var k=new E;class _{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEac
vendor: 3,086 bytes, line 2
2h(e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])})}}}class C extends _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):o(n)&&i?a.push(...n.split(i)):a.push(n)));const l=h(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!l&&s&&o(n)?b(this.data&&this.data[e]&&this.data[e][t],n,i):l}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),d(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(o(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let l=h(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?f(l,n,i):l=(0,r.A)((0,r.A)({},l),n),d(this.data,a,l),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?(0,r.A)((0,r.A)({},{}),this.getResource(e,t)):this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var A={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};const T={};class x extends _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";const r=v.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=y.getRegExp("(".concat(r.map(e=>"?"===e?"\\?":e).join("|"),")"));let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r);if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o(i)?[i]:i};const s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),e=s.join(r)}return{key:e,namespaces:o(i)?[i]:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t=(0,r.A)({},t)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){const e=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(c).concat(e).concat(a),usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:"".concat(c).concat(e).concat(a)}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:a}const h=this.resolve(e,t);let f=h&&h.res;const p=h&&h.usedKey||a,m=h&&h.exactUsedKey||a,g=Object.prototype.toString.apply(f),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!o(f)&&"boolean"!==typeof f&&"number"!==typeof f;if(!(y&&f&&b&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||o(v)&&Array.isArray(f))if(y&&o(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,t,n));else{let i=!1,l=!1;const d=void 0!==t.count&&!o(t.count),p=x.hasDefaultValue(t),m=d?this.pluralResolver.getSuffix(u,t.count,t):"",g=t.ordinal&&d?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",v=d&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=v&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(m)]||t["defaultValue".concat(g)]||t.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=y),this.isValidLookup(f)||(l=!0,f=a);const b=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&l?void 0:f,w=p&&y!==f&&this.options.updateMissing;
2if(l||i||w){if(this.logger.log(w?"updateKey":"missingKey",u,c,a,w?y:f),s){const e=this.resolve(a,(0,r.A)((0,r.A)({},t),{},{keySeparator:!1}));e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const o=(e,n,r)=>{const o=p&&r!==f?r:b;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,n,o,w,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,n,o,w,t),this.emit("missingKey",e,c,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&d?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);v&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach(n=>{o([e],a+n,t["defaultValue".concat(n)]||y)})}):o(e,a,y))}f=this.extendTranslation(f,e,t,h,n),l&&f===a&&this.options.appendNamespaceToMissingKey&&(f="".concat(c,":").concat(a)),(l||i)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(a):a,i?f:void 0):this.options.parseMissingKeyHandler(f))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,(0,r.A)((0,r.A)({},t),{},{ns:l})):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(t),h):e}if(s){const e=Array.isArray(f),n=e?[]:{},o=e?m:p;for(const i in f)if(Object.prototype.hasOwnProperty.call(f,i)){const e="".concat(o).concat(s).concat(i);n[i]=this.translate(e,(0,r.A)((0,r.A)({},t),{joinArrays:!1,ns:l})),n[i]===e&&(n[i]=f[i])}f=n}}return i?(h.res=f,h.usedParams=this.getUsedParamsDetails(t),h):f}extendTranslation(e,t,n,i,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,(0,r.A)((0,r.A)({},this.options.interpolation.defaultVariables),n),n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init((0,r.A)((0,r.A)({},n),{interpolation:(0,r.A)((0,r.A)({},this.options.interpolation),n.interpolation)}));const l=o(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const t=e.match(this.interpolator.nestingRegexp);c=t&&t.length}let u=n.replace&&!o(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=(0,r.A)((0,r.A)({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language||i.usedLng,n),l){const t=e.match(this.interpolator.nestingRegexp);c<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return s&&s[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=o(l)?[l]:l;return void 0!==e&&null!==e&&c&&c.length&&!1!==n.applyPostProcessor&&(e=A.handle(c,e,t,this.options&&this.options.postProcessPassResolved?(0,r.A)({i18nResolved:(0,r.A)((0,r.A)({},i),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){let t,n,r,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
2return o(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const d=void 0!==a.count&&!o(a.count),h=d&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(o(a.context)||"number"===typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(s=e,!T["".concat(p[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(T["".concat(p[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,e,a);else{let e;d&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(d&&(o.push(c+e),a.ordinal&&0===e.indexOf(r)&&o.push(c+e.replace(r,this.options.pluralSeparator)),h&&o.push(c+t)),f){const n="".concat(c).concat(this.options.contextSeparator).concat(a.context);o.push(n),d&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),h&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!o(e.replace);let i=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i=(0,r.A)((0,r.A)({},this.options.interpolation.defaultVariables),i)),!n){i=(0,r.A)({},i);for(const e of t)delete i[e]}return i}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}const I=e=>e.charAt(0).toUpperCase()+e.slice(1);class N{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=w(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=w(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(o(e)&&e.indexOf("-")>-1){if("undefined"!==typeof Intl&&"undefined"!==typeof Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(t){}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=I(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=I(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=I(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;
vendor: 5,572 bytes, line 2
2return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),o(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return o(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):o(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let P=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const O=["v1","v2","v3"],D=["v4"],L={zero:0,one:1,two:2,few:3,many:4,other:5};class M{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.options.compatibilityJSON&&!D.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return P.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:R[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=w("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(r,t)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>"".concat(t).concat(e))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>
2L[e]-L[t]).map(e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e)):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
2shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}const F=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((e,t,n)=>{const r=h(e,n);return void 0!==r?r:h(t,n)})(e,t,n);return!s&&i&&o(n)&&(s=b(e,n,r),void 0===s&&(s=b(t,n,r))),s},j=e=>e.replace(/\$/g,"$$$$");class U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?p(o):i||"{{",this.suffix=s?p(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?p(d):h||p("$t("),this.nestingSuffix=f?p(f):m||p(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,i){let a,l,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(e.indexOf(this.formatSeparator)<0){const o=F(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,(0,r.A)((0,r.A)((0,r.A)({},i),t),{},{interpolationkey:e})):o}const o=e.split(this.formatSeparator),s=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(F(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,(0,r.A)((0,r.A)((0,r.A)({},i),t),{},{interpolationkey:s}))};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>j(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?j(this.escape(e)):j(e)}].forEach(t=>{for(c=0;a=t.regex.exec(e);){const n=a[1].trim();if(l=d(n),void 0===l)if("function"===typeof h){const t=h(e,a,i);l=o(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))l="";else{if(f){l=a[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),l=""}else o(l)||this.useRawValueToEscape||(l=s(l));const r=t.safeValue(l);if(e=e.replace(a[0],r),f?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t){let n,i,a,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const c=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const o=e.split(new RegExp("".concat(n,"[ ]*{")));let i="{".concat(o[1]);e=o[0],i=this.interpolate(i,a);const s=i.match(/'/g),l=i.match(/"/g);(s&&s.length%2===0&&!l||l.length%2!==0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a=(0,r.A)((0,r.A)({},t),a))}catch(c){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),c),"".concat(e).concat(n).concat(i)}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let u=[];a=(0,r.A)({},l),a=a.replace&&!o(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),u=e,d=!0}if(i=t(c.call(this,n[1].trim(),a),a),i&&n[0]===e&&!o(i))return i;o(i)||(i=s(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),d&&(i=u.reduce((e,t)=>
2this.format(e,t,l.lng,(0,r.A)((0,r.A)({},l),{},{interpolationkey:n[1].trim()})),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}const V=e=>{const t={};return(n,o,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s=(0,r.A)((0,r.A)({},s),{},{[i.interpolationkey]:void 0}));const a=o+JSON.stringify(s);let l=t[a];return l||(l=e(w(o),i),t[a]=l),l(n)}};class z{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("formatter"),this.options=e,this.formats={number:V((e,t)=>{const n=new Intl.NumberFormat(e,(0,r.A)({},t));return e=>n.format(e)}),currency:V((e,t)=>{const n=new Intl.NumberFormat(e,(0,r.A)((0,r.A)({},t),{},{style:"currency"}));return e=>n.format(e)}),datetime:V((e,t)=>{const n=new Intl.DateTimeFormat(e,(0,r.A)({},t));return e=>n.format(e)}),relativetime:V((e,t)=>{const n=new Intl.RelativeTimeFormat(e,(0,r.A)({},t));return e=>n.format(e,t.range||"day")}),list:V((e,t)=>{const n=new Intl.ListFormat(e,(0,r.A)({},t));return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=V(t)}format(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:s}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[i](e,l,(0,r.A)((0,r.A)((0,r.A)({},s),o),a))}catch(a){this.logger.warn(a)}return t}return this.logger.warn("there was no format function for ".concat(i)),e},e)}}class B extends _{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const s="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=u(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEac
2h(e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"===typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(l){s(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();o(e)&&(e=this.languageUtils.toResolveHierarchy(e)),o(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(r," failed"),n),!n&&i&&this.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(r),i),this.loaded(e,n,i)})}saveMissing(e,t,n,o,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const c=(0,r.A)((0,r.A)({},s),{},{isUpdate:i}),u=this.backend.create.bind(this.backend);if(u.length<6)try{let r;r=5===u.length?u(e,t,n,o,c):u(e,t,n,o),r&&"function"===typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(l){a(l)}else u(e,t,n,o,a,c)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}const H=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"===typeof e[1]&&(t=e[1]),o(e[1])&&(t.defaultValue=e[1]),o(e[2])&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),q=e=>(o(e.ns)&&(e.ns=[e.ns]),o(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),o(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),W=()=>{};class K extends _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=q(e),this.services={},this.logger=k,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEac
2h(e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(o(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=H();this.options=(0,r.A)((0,r.A)((0,r.A)({},s),this.options),q(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=(0,r.A)((0,r.A)({},s.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=e=>e?"function"===typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?k.init(a(this.modules.logger),this.options):k.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=z);const n=new N(this.options);this.store=new C(this.options.resources,this.options);const r=this.services;r.logger=k,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new M(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(r.formatter=a(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new U(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new B(a(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(r.languageDetector=a(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=a(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new x(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const l=i(),c=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n=o(e)?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
2=>r(e))}this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=i();return"function"===typeof e&&(n=e,e=void 0),"function"===typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&A.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=i();this.emit("languageChanging",e);const s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,o)=>{o?(s(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);const n=o(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||s(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var i=this;const s=function(e,t){let o;if("object"!==typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),c=2;c<a;c++)l[c-2]=arguments[c];o=i.options.overloadTranslationOptionHandler([e,t].concat(l))}else o=(0,r.A)({},t);o.lng=o.lng||s.lng,o.lngs=o.lngs||s.lngs,o.ns=o.ns||s.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||s.keyPrefix);const u=i.options.keySeparator||".";let d;return d=o.keyPrefix&&Array.isArray(e)?e.map(e=>"".concat(o.keyPrefix).concat(u).concat(e)):o.keyPrefix?"".concat(o.keyPrefix).concat(u).concat(e):e,i.t(d,o)};return o(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=i();return this.options.ns?(o(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=i();o(e)&&(e=[e]);const r=this.options.preload||[],s=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=r.concat(s),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new N(H());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new K(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o=(0,r.A)((0,r.A)((0,r.A)({},this.options),e),{isClone:!0}),i=new K(o);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services=(0,r.A)({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new C(this.store.data,o),i.services.resourceStore=i.store),i.translator=new x(i.services,o),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(o,t),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=K.createInstance();G.createInstance=K.createInstance;G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT;const Y=G.t;G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages},5022:e=>{"use strict";e.exports={}},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5214:(e,t,n)=>{"use strict";n.d(t,{E:()=>b});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(5783)),a=n(1721),l=n(6711),c=n(7971),u=n(9863),d=n(8038),h=n(4886),f=n(464),p={root:"m_b6d8b162"};const m=["lineClamp","truncate","inline","inherit","gradient","span","__staticSelector","vars","className","style","classNames","styles","unstyled","variant","mod","size"];function g(e){return"start"===e?"start":"end"===e||e?"end":void 0}const v={inherit:!1},y=(0,a.V)((e,t)=>{let{variant:n,lineClamp:r,gradient:o,size:i,color:a}=t;return{root:{"--text-fz":(0,s.ny)(i),"--text-lh":(0,s.ks)(i),"--text-gradient":"gradient"===n?(0,c.v)(o,e):void 0,"--text-line-clamp":"number"===typeof r?r.toString():void 0,"--text-color":a?(0,l.r)(a,e):void 0}}}),b=(0,f.v)((e,t)=>{const n=(0,u.Y)("Text",v,e),{lineClamp:s,truncate:a,inline:l,inherit:c,gradient:f,span:b,__staticSelector:w,vars:S,className:E,style:k,classNames:_,styles:C,unstyled:A,variant:T,mod:x,size:I}=n,N=(0,o.A)(n,m),P=(0,d.I)({name:["Text",w],props:n,classes:p,className:E,style:k,classNames:_,styles:C,unstyled:A,vars:S,varsResolver:y});return(0,i.jsx)(h.a,(0,r.A)((0,r.A)({},P("root",{focusable:!0})),{},{ref:t,component:b?"span":"p",variant:T,mod:[{"data-truncate":g(a),"data-line-clamp":"number"===typeof s,"data-inline":l,"data-inherit":c},x],size:I},N))});b.classes=p,b.displayName="@mantine/core/Text"},5235:(e,t,n)=>{"use strict";function r(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left"
2:"right";return void 0===n?r:"".concat(r,"-").concat(n)}return t}n.d(t,{Q:()=>r})},5472:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>ve,gS:()=>bc,rJ:()=>il,kd:()=>yc,CL:()=>Cc,H9:()=>sl,d_:()=>Ec,x7:()=>fc,GG:()=>mc,aU:()=>dl,AB:()=>nc,My:()=>ec,P:()=>Ql,O5:()=>Ac,BN:()=>gc,mZ:()=>vc,_M:()=>Jl,wP:()=>Tc});var r,o,i=n(52),s=n(8812),a=n(443),l=n(1529),c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},u={};(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var o=0;16>o;++o)r[o]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(o=0;16>o;++o)r[o]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],o=e.g[2];var i=e.g[3],s=t+(i^n&(o^i))+r[0]+3614090360&4294967295;s=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=n+(s<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[1]+3905402710&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[3]+3250441966&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[4]+4118548399&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[5]+1200080426&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[7]+4249261313&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[8]+1770035416&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[9]+2336552879&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[11]+2304563134&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[12]+1804603682&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[13]+4254626195&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[15]+1236535329&4294967295)<<22&4294967295|s>>>10))+((s=t+(o^i&(n^o))+r[1]+4129170786&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[11]+643717713&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[0]+3921069994&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[5]+3593408605&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[15]+3634488961&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[4]+3889429448&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[9]+568446438&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[3]+4107603335&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[8]+1163531501&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[13]+2850285829&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[7]+1735328473&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[12]+2368359562&4294967295)<<20&4294967295|s>>>12))+((s=t+(n^o^i)+r[5]+4294588738&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[8]+2272392833&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[14]+4259657740&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[1]+2763975236&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[4]+1272893353&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[10]+3200236656&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[13]+681279174&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[0]+3936430074&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[6]+76029189&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[9]+3654602809&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[12]+3873151461&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[15]+530742520&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[2]+3299628645&4294967295)<<23&4294967295|s>>>9))+((s=t+(o^(n|~i))+r[0]+4096336452&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[7]+1126891415&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[14]+2878612391&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[5]+4237533241&4294967295)<<21&4294967295|s>>>11))+((s=t+(o^(n|~i))+r[12]+1700485571&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[3]+2399980690&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[10]+4293915773&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[1]+2240044497&4294967295)<<21&4294967295|s>>>11))+((s=t+(o^(n|~i))+r[8]+1873313359&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[15]+4264355552&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[6]+2734768916&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[13]+1309151649&4294967295)<<21&4294967295|s>>>11))+((i=(t=n+((s=t+(o^(n|~i))+r[4]+4149444226&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[11]+3174756917&4294967295)<<10&4294967295|s>>>22))^((o=i+((s=o+(t^(i|~n))+r[2]+718787259&4294967295)<<15&4294967295|s>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(o+(s<<21&4294967295|s>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+i&4294967295}function i(e,t){this.h=t;for(var n=[],r=!0,o=e.length-1;0<=o;o--){var i=0|e[o];r&&i==t||(n[o]=i,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[n].apply(e,o)}}(t,function(){this.blockSize=-1}),t.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,o=this.B,i=this.h,s=0;s<t;){if(0==i)for(;s<=r;)n(this,e,s),s+=this.blockSize;if("string"===typeof e){for(;s<t;)if(o[i++]=e.charCodeAt(s++),i==this.blockSize){n(this,o),i=0;break}}else for(;s<t;)if(o[i++]=e[s++],i==this.blockSize){n(this,o),i=0;break}}this.h=i,this.o+=t},t.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var s={};function a(e){return-128<=e&&128>e?function(e,t){var n=s;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new i([0|e],0>e?-1:0)}):new i([0|e],0>e?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return c;if(0>e)return m(l(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new i(t,0)}var c=a(0),d=a(1),h=a(16777216);function f(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function p(e){return-1==e.h}function m(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new i(n,~e.h).add(d)}function g(e,t){return e.add(m(t))}function v(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function b(e,t){if(f(t))throw Error("division by zero");if(f(e))return new y(c,c);if(p(e))return t=b(m(e),t),new y(m(t.g),m(t.h));if(p(t))return t=b(e,m(t)),new y(m(t.g),t.h);if(30<e.g.length){if(p(e)||p(t))throw Error("slowDivide_ only works with positive integers.");for(var n=d,r=t;0>=r.l(e);)n=w(n),r=w(r);var o=S(n,1),i=S(r,1);for(r=S(r,2),n=S(n,2);!f(r);){var s=i.add(r);0>=s.l(e)&&(o=o.add(n),i=s),r=S(r,1),n=S(n,1)}return t=g(e,o.j(t)),new y(o,t)}for(o=c;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),s=(i=l(n)).j(t);p(s)||0<s.l(e);)s=(i=l(n-=r)).j(t);f(i)&&(i=d),o=o.add(i),e=g(e,s)}return new y(o,e)}function w(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new i(n,e.h)}function S(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,o=[],s=0;s<r;s++)o[s]=0<t?e.i(s+n)>>>t|e.i(s+n+1)<<32-t:e.i(s+n);return new i(o,e.h)}(e=i.prototype).m=function(){if(p(this))return-m(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(f(this))return"0";if(p(this))return"-"+m(this).toString(e);for(var t=l(Math.pow(e,6)),n=this,r="";;){var o=b(n,t).g,i=((0<(n=g(n,o.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(f(n=o))return i+r;for(;6>i.length;)i="0"+i;r=i+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return p(e=g(this,e))?-1:f(e)?0:1}
2,e.abs=function(){return p(this)?m(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,o=0;o<=t;o++){var s=r+(65535&this.i(o))+(65535&e.i(o)),a=(s>>>16)+(this.i(o)>>>16)+(e.i(o)>>>16);r=a>>>16,s&=65535,a&=65535,n[o]=a<<16|s}return new i(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(f(this)||f(e))return c;if(p(this))return p(e)?m(this).j(m(e)):m(m(this).j(e));if(p(e))return m(this.j(m(e)));if(0>this.l(h)&&0>e.l(h))return l(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var o=0;o<e.g.length;o++){var s=this.i(r)>>>16,a=65535&this.i(r),u=e.i(o)>>>16,d=65535&e.i(o);n[2*r+2*o]+=a*d,v(n,2*r+2*o),n[2*r+2*o+1]+=s*d,v(n,2*r+2*o+1),n[2*r+2*o+1]+=a*u,v(n,2*r+2*o+1),n[2*r+2*o+2]+=s*u,v(n,2*r+2*o+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new i(n,0)},e.A=function(e){return b(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new i(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new i(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new i(n,this.h^e.h)},t.prototype.digest=t.prototype.v,t.prototype.reset=t.prototype.s,t.prototype.update=t.prototype.u,o=u.Md5=t,i.prototype.add=i.prototype.add,i.prototype.multiply=i.prototype.j,i.prototype.modulo=i.prototype.A,i.prototype.compare=i.prototype.l,i.prototype.toNumber=i.prototype.m,i.prototype.toString=i.prototype.toString,i.prototype.getBits=i.prototype.i,i.fromNumber=l,i.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return m(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=l(Math.pow(n,8)),o=c,i=0;i<t.length;i+=8){var s=Math.min(8,t.length-i),a=parseInt(t.substring(i,i+s),n);8>s?(s=l(Math.pow(n,s)),o=o.j(s).add(l(a))):o=(o=o.j(r)).add(l(a))}return o},r=u.Integer=i}).apply("undefined"!==typeof c?c:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var d,h,f,p,m,g,v,y,b="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},w={};(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof b&&b];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,r){if(r)e:{var o=n;e=e.split(".");for(var i=0;i<e.length-1;i++){var s=e[i];if(!(s in o))break e;o=o[s]}(r=r(i=o[e=e[e.length-1]]))!=i&&null!=r&&t(o,e,{configurable:!0,writable:!0,value:r})}}("Array.prototype.values",function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,o={next:function(){if(!r&&n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o}(this,function(e,t){return t})}});var r=r||{},o=this||self;function i(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function s(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function a(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function c(e,t,n){return(c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a:l).apply(null,arguments)}
2function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function S(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[n].apply(e,o)}}function E(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function k(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(i(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let o=0;o<r;o++)e[n+o]=t[o]}else e.push(t)}}function _(e){return/^[\s\xa0]*$/.test(e)}function C(){var e=o.navigator;return e&&(e=e.userAgent)?e:""}function A(e){return A[" "](e),e}A[" "]=function(){};var T=-1!=C().indexOf("Gecko")&&!(-1!=C().toLowerCase().indexOf("webkit")&&-1==C().indexOf("Edge"))&&!(-1!=C().indexOf("Trident")||-1!=C().indexOf("MSIE"))&&-1==C().indexOf("Edge");function x(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function I(e){const t={};for(const n in e)t[n]=e[n];return t}const N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function P(e,t){let n,r;for(let o=1;o<arguments.length;o++){for(n in r=arguments[o],r)e[n]=r[n];for(let t=0;t<N.length;t++)n=N[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function R(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function O(e){o.setTimeout(()=>{throw e},0)}function D(){var e=U;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var L=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new M,e=>e.reset());class M{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let F,j=!1,U=new class{constructor(){this.h=this.g=null}add(e,t){const n=L.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},V=()=>{const e=o.Promise.resolve(void 0);F=()=>{e.then(z)}};var z=()=>{for(var e;e=D();){try{e.h.call(e.g)}catch(n){O(n)}var t=L;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}j=!1};function B(){this.s=this.s,this.C=this.C}function H(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}B.prototype.s=!1,B.prototype.ma=function(){this.s||(this.s=!0,this.N())},B.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},H.prototype.h=function(){this.defaultPrevented=!0};var q=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};o.addEventListener("test",e,t),o.removeEventListener("test",e,t)}catch(n){}return e}();function W(e,t){if(H.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(T){e:{try{A(t.nodeName);var o=!0;break e}catch(i){}o=!1}o||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:K[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&W.aa.h.call(this)}}S(W,H);var K={2:"touch",3:"pen",4:"mouse"};W.prototype.h=function(){W.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var G="closure_listenable_"+(1e6*Math.random()|0),Y=0;function Q(e,t,n,r,o){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=o,this.key=++Y,this.da=this.fa=!1}function X(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function J(e){this.src=e,this.g={},this.h=0}function $(e,t){var n=t.type;if(n in e.g){var r,o=e.g[n],i=Array.prototype.indexOf.call(o,t,void 0);(r=0<=i)&&Array.prototype.splice.call(o,i,1),r&&(X(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function Z(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(!i.da&&i.listener==t&&i.capture==!!n&&i.ha==r)return o}return-1}J.prototype.add=function(e,t,n,r,o){var i=e.toString();
vendor: 4,082 bytes, line 2
2(e=this.g[i])||(e=this.g[i]=[],this.h++);var s=Z(e,t,r,o);return-1<s?(t=e[s],n||(t.fa=!1)):((t=new Q(t,this.src,i,!!r,o)).fa=n,e.push(t)),t};var ee="closure_lm_"+(1e6*Math.random()|0),te={};function ne(e,t,n,r,o){if(r&&r.once)return oe(e,t,n,r,o);if(Array.isArray(t)){for(var i=0;i<t.length;i++)ne(e,t[i],n,r,o);return null}return n=de(n),e&&e[G]?e.K(t,n,s(r)?!!r.capture:!!r,o):re(e,t,n,!1,r,o)}function re(e,t,n,r,o,i){if(!t)throw Error("Invalid event type");var a=s(o)?!!o.capture:!!o,l=ce(e);if(l||(e[ee]=l=new J(e)),(n=l.add(t,n,r,a,i)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=le;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)q||(o=a),void 0===o&&(o=!1),e.addEventListener(t.toString(),r,o);else if(e.attachEvent)e.attachEvent(ae(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function oe(e,t,n,r,o){if(Array.isArray(t)){for(var i=0;i<t.length;i++)oe(e,t[i],n,r,o);return null}return n=de(n),e&&e[G]?e.L(t,n,s(r)?!!r.capture:!!r,o):re(e,t,n,!0,r,o)}function ie(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)ie(e,t[i],n,r,o);else r=s(r)?!!r.capture:!!r,n=de(n),e&&e[G]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=Z(i=e.g[t],n,r,o))&&(X(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.g[t],e.h--)))):e&&(e=ce(e))&&(t=e.g[t.toString()],e=-1,t&&(e=Z(t,n,r,o)),(n=-1<e?t[e]:null)&&se(n))}function se(e){if("number"!==typeof e&&e&&!e.da){var t=e.src;if(t&&t[G])$(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ae(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=ce(t))?($(n,e),0==n.h&&(n.src=null,t[ee]=null)):X(e)}}}function ae(e){return e in te?te[e]:te[e]="on"+e}function le(e,t){if(e.da)e=!0;else{t=new W(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&se(e),e=n.call(r,t)}return e}function ce(e){return(e=e[ee])instanceof J?e:null}var ue="__closure_events_fn_"+(1e9*Math.random()>>>0);function de(e){return"function"===typeof e?e:(e[ue]||(e[ue]=function(t){return e.handleEvent(t)}),e[ue])}function he(){B.call(this),this.i=new J(this),this.M=this,this.F=null}function fe(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"===typeof t)t=new H(t,e);else if(t instanceof H)t.target=t.target||e;else{var o=t;P(t=new H(r,e),o)}if(o=!0,n)for(var i=n.length-1;0<=i;i--){var s=t.g=n[i];o=pe(s,r,!0,t)&&o}if(o=pe(s=t.g=e,r,!0,t)&&o,o=pe(s,r,!1,t)&&o,n)for(i=0;i<n.length;i++)o=pe(s=t.g=n[i],r,!1,t)&&o}function pe(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var o=!0,i=0;i<t.length;++i){var s=t[i];if(s&&!s.da&&s.capture==n){var a=s.listener,l=s.ha||s.src;s.fa&&$(e.i,s),o=!1!==a.call(l,r)&&o}}return o&&!r.defaultPrevented}function me(e,t,n){if("function"===typeof e)n&&(e=c(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=c(e.handleEvent,e)}return 2147483647<Number(t)?-1:o.setTimeout(e,t||0)}function ge(e){e.g=me(()=>{e.g=null,e.i&&(e.i=!1,ge(e))},e.l);const t=e.h;e.h=null,e.m.apply(null,t)}S(he,B),he.prototype[G]=!0,he.prototype.removeEventListener=function(e,t,n,r){ie(this,e,t,n,r)},he.prototype.N=function(){if(he.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)X(n[r]);delete t.g[e],t.h--}}this.F=null},he.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},he.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class ve extends B{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:ge(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ye(e){B.call(this),this.h=e,this.g={}}S(ye,B);var be=[];function we(e){x(e.g,function(e,t){this.g.hasOwnProperty(t)&&se(e)},e),e.g={}}ye.prototype.N=function(){ye.aa.N.call(this),we(this)},ye.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};
2var Se=o.JSON.stringify,Ee=o.JSON.parse,ke=class{stringify(e){return o.JSON.stringify(e,void 0)}parse(e){return o.JSON.parse(e,void 0)}};function _e(){}function Ce(e){return e.h||(e.h=e.i())}function Ae(){}_e.prototype.h=null;var Te={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function xe(){H.call(this,"d")}function Ie(){H.call(this,"c")}S(xe,H),S(Ie,H);var Ne={},Pe=null;function Re(){return Pe=Pe||new he}function Oe(e){H.call(this,Ne.La,e)}function De(e){const t=Re();fe(t,new Oe(t))}function Le(e,t){H.call(this,Ne.STAT_EVENT,e),this.stat=t}function Me(e){const t=Re();fe(t,new Le(t,e))}function Fe(e,t){H.call(this,Ne.Ma,e),this.size=t}function je(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return o.setTimeout(function(){e()},t)}function Ue(){this.g=!0}function Ve(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var o=r[1];if(Array.isArray(o)&&!(1>o.length)){var i=o[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var s=1;s<o.length;s++)o[s]=""}}}return Se(n)}catch(a){return t}}(e,n)+(r?" "+r:"")})}Ne.La="serverreachability",S(Oe,H),Ne.STAT_EVENT="statevent",S(Le,H),Ne.Ma="timingevent",S(Fe,H),Ue.prototype.xa=function(){this.g=!1},Ue.prototype.info=function(){};var ze,Be={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},He={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function qe(){}function We(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new ye(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Ke}function Ke(){this.i=null,this.g="",this.h=!1}S(qe,_e),qe.prototype.g=function(){return new XMLHttpRequest},qe.prototype.i=function(){return{}},ze=new qe;var Ge={},Ye={};function Qe(e,t,n){e.L=1,e.v=St(gt(t)),e.m=n,e.P=!0,Xe(e,null)}function Xe(e,t){e.F=Date.now(),Ze(e),e.A=gt(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),Lt(n.i,"t",r),e.C=0,n=e.j.J,e.h=new Ke,e.g=kn(e.j,n?t:null,!e.m),0<e.O&&(e.M=new ve(c(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var o="readystatechange";Array.isArray(o)||(o&&(be[0]=o.toString()),o=be);for(var i=0;i<o.length;i++){var s=ne(n,o[i],r||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}t=e.H?I(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),De(),function(e,t,n,r,o,i){e.info(function(){if(e.g)if(i)for(var s="",a=i.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");s=2<=d.length&&"type"==d[1]?s+(u+"=")+c+"&":s+(u+"=redacted&")}}else s=null;else s=i;return"XMLHTTP REQ ("+r+") [attempt "+o+"]: "+t+"\n"+n+"\n"+s})}(e.i,e.u,e.A,e.l,e.R,e.m)}function Je(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function $e(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Ye:(n=Number(t.substring(n,r)),isNaN(n)?Ge:(r+=1)+n>t.length?Ye:(t=t.slice(r,r+n),e.C=r+n,t))}function Ze(e){e.S=Date.now()+e.I,et(e,e.I)}function et(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=je(c(e.ba,e),t)}function tt(e){e.B&&(o.clearTimeout(e.B),e.B=null)}function nt(e){0==e.j.G||e.J||yn(e.j,e)}function rt(e){tt(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,we(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function ot(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||ct(n.h,e)))if(!e.K&&ct(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(u){r=null}if(Array.isArray(r)&&3==r.length){var o=r;if(0==o[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;vn(n),an(n)}pn(n),Me(18)}}else n.za=o[1],0<n.za-n.T&&37500>o[2]&&n.F&&0==n.v&&!n.C&&(n.C=je(c(n.Za,n),6e3));if(1>=lt(n.h)&&n.ca){try{n.ca()}catch(u){}n.ca=void 0}}else wn(n,11)}else if((e.K||n.g==e)&&vn(n),!_(t))for(o=n.Da.g.parse(t),t=0;t<o.length;t++){let c=o[t];if(n.T=c[0],c=c[1],2==n.G)if("c"==c[0]){n.K=c[1],n.ia=c[2];const t=c[3];null!=t&&(n.la=t,n.j.info("VER="+n.la));const o=c[4];null!=o&&(n.Aa=o,n.j.info("SVER="+n.Aa));const u=c[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.L=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var i=r.h;i.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(i.j=i.l,i.g=new Set,i.h&&(ut(i,i.h),i.h=null))}if(r.D){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.ya=e,wt(r.I,r.D,e))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms"));var s=e;if((r=n).qa=En(r,r.J?r.ia:null,r.W),s.K){dt(r.h,s);var a=s,l=r.L;l&&(a.I=l),a.B&&(tt(a),Ze(a)),r.g=s}else fn(r);0<n.i.length&&cn(n)}else"stop"!=c[0]&&"close"!=c[0]||wn(n,7);else 3==n.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?wn(n,7):sn(n):"noop"!=c[0]&&n.l&&n.l.ta(c),n.v=0)}De()}catch(u){}}We.prototype.ca=function(e){e=e.target;const t=this.M;t&&3==tn(e)?t.j():this.Y(e)},We.prototype.Y=function(e){try{if(e==this.g)e:{const h=tn(this.g);var t=this.g.Ba();this.g.Z();if(!(3>h)&&(3!=h||this.g&&(this.h.h||this.g.oa()||nn(this.g)))){this.J||4!=h||7==t||De(),tt(this);var n=this.g.Z();this.X=n;t:if(Je(this)){var r=nn(this.g);e="";var i=r.length,s=4==tn(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){rt(this),nt(this);var a="";break t}this.h.i=new o.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(s&&t==i-1)});r.length=0,this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.oa();if(this.o=200==n,function(e,t,n,r,o,i,s){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+o+"]: "+t+"\n"+n+"\n"+i+" "+s})}(this.i,this.u,this.A,this.l,this.R,h,n),this.o){if(this.T&&!this.K){t:{if(this.g){var l,c=this.g;if((l=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!_(l)){var u=l;break t}}u=null}if(!(n=u)){this.o=!1,this.s=3,Me(12),rt(this),nt(this);break e}Ve(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,ot(this,n)}if(this.P){let e;for(n=!0;!this.J&&this.C<a.length;){if(e=$e(this,a),e==Ye){4==h&&(this.s=4,Me(14),n=!1),Ve(this.i,this.l,null,"[Incomplete Response]");break}if(e==Ge){this.s=4,Me(15),Ve(this.i,this.l,a,"[Invalid Chunk]"),n=!1;break}Ve(this.i,this.l,e,null),ot(this,e)}if(Je(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=h||0!=a.length||this.h.h||(this.s=1,Me(16),n=!1),this.o=this.o&&n,n){if(0<a.length&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.ba&&!d.M&&(d.j.info("Great, no buffering proxy detected. Bytes received: "+a.length),mn(d),d.M=!0,Me(11))}}else Ve(this.i,this.l,a,"[Invalid Chunked Response]"),rt(this),nt(this)}else Ve(this.i,this.l,a,null),ot(this,a);4==h&&rt(this),this.o&&!this.J&&(4==h?yn(this.j,this):(this.o=!1,Ze(this)))}else(function(e){const t={};e=(e.g&&2<=tn(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(_(e[r]))continue;var n=R(e[r]);const o=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const i=t[o]||[];t[o]=i,i.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==n&&0<a.indexOf("Unknown SID")?(this.s=3,Me(12)):(this.s=0,Me(13)),rt(this),nt(this)}}}catch(h){}},We.prototype.cancel=function(){this.J=!0,rt(this)},We.prototype.ba=function(){this.B=null;const e=Date.now();0<=e-this.S?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.A),2!=this.L&&(De(),Me(17)),rt(this),this.s=2,nt(this)):et(this,this.S-e)};var it=class{constructor(e,t){this.g=e,this.map=t}};function st(e){this.l=e||10,o.PerformanceNavigationTiming?e=0<(e=o.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function at(e){return!!e.h||!!e.g&&e.g.size>=e.j}function lt(e){return e.h?1:e.g?e.g.size:0}function ct(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function ut(e,t){e.g?e.g.add(t):e.h=t}function dt(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function ht(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.D);return t}return E(e.i)}function ft(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(i(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(i(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");
2if(i(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),o=r.length,s=0;s<o;s++)t.call(void 0,r[s],n&&n[s],e)}st.prototype.cancel=function(){if(this.i=ht(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var pt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function mt(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof mt){this.h=e.h,vt(this,e.j),this.o=e.o,this.g=e.g,yt(this,e.s),this.l=e.l;var t=e.i,n=new Pt;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),bt(this,n),this.m=e.m}else e&&(t=String(e).match(pt))?(this.h=!1,vt(this,t[1]||"",!0),this.o=Et(t[2]||""),this.g=Et(t[3]||"",!0),yt(this,t[4]),this.l=Et(t[5]||"",!0),bt(this,t[6]||"",!0),this.m=Et(t[7]||"")):(this.h=!1,this.i=new Pt(null,this.h))}function gt(e){return new mt(e)}function vt(e,t,n){e.j=n?Et(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function yt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function bt(e,t,n){t instanceof Pt?(e.i=t,function(e,t){t&&!e.j&&(Rt(e),e.i=null,e.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Ot(this,t),Lt(this,n,e))},e)),e.j=t}(e.i,e.h)):(n||(t=kt(t,It)),e.i=new Pt(t,e.h))}function wt(e,t,n){e.i.set(t,n)}function St(e){return wt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Et(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function kt(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,_t),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function _t(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}mt.prototype.toString=function(){var e=[],t=this.j;t&&e.push(kt(t,At,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(kt(t,At,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(kt(n,"/"==n.charAt(0)?xt:Tt,!0))
2),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",kt(n,Nt)),e.join("")};var Ct,At=/[#\/\?@]/g,Tt=/[#\?:]/g,xt=/[#\?]/g,It=/[#\?@]/g,Nt=/#/g;function Pt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Rt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),o=null;if(0<=r){var i=e[n].substring(0,r);o=e[n].substring(r+1)}else i=e[n];t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Ot(e,t){Rt(e),t=Mt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Dt(e,t){return Rt(e),t=Mt(e,t),e.g.has(t)}function Lt(e,t,n){Ot(e,t),0<n.length&&(e.i=null,e.g.set(Mt(e,t),E(n)),e.h+=n.length)}function Mt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Ft(e,t,n,r,o){try{o&&(o.onload=null,o.onerror=null,o.onabort=null,o.ontimeout=null),r(n)}catch(i){}}function jt(){this.g=new ke}function Ut(e,t,n){const r=n||"";try{ft(e,function(e,n){let o=e;s(e)&&(o=Se(e)),t.push(r+n+"="+encodeURIComponent(o))})}catch(o){throw t.push(r+"type="+encodeURIComponent("_badmap")),o}}function Vt(e){this.l=e.Ub||null,this.j=e.eb||!1}function zt(e,t){he.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Bt(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function Ht(e){e.readyState=4,e.l=null,e.j=null,e.v=null,qt(e)}function qt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Wt(e){let t="";return x(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function Kt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Wt(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):wt(e,t,n))}function Gt(e){he.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=Pt.prototype).add=function(e,t){Rt(this),this.i=null,e=Mt(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){Rt(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)},e.na=function(){Rt(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const o=e[r];for(let e=0;e<o.length;e++)n.push(t[r])}return n},e.V=function(e){Rt(this);let t=[];if("string"===typeof e)Dt(this,e)&&(t=t.concat(this.g.get(Mt(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Rt(this),this.i=null,Dt(this,e=Mt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const i=encodeURIComponent(String(r)),s=this.V(r);for(r=0;r<s.length;r++){var o=i;""!==s[r]&&(o+="="+encodeURIComponent(String(s[r]))),e.push(o)}}return this.i=e.join("&")},S(Vt,_e),Vt.prototype.g=function(){return new zt(this.l,this.j)},Vt.prototype.i=(Ct={},function(){return Ct}),S(zt,he),(e=zt.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,qt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||o).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ht(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,qt(this)),this.g&&(this.readyState=3,qt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if("undefined"!==typeof o.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Bt(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Ht(this):qt(this),3==this.readyState&&Bt(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,Ht(this))},e.Qa=function(e){this.g&&(this.response=e,Ht(this))},e.ga=function(){this.g&&Ht(this)},e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(zt.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),S(Gt,he);var Yt=/^https?$/i,Qt=["POST","PUT"];function Xt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,Jt(e),Zt(e)}function Jt(e){e.A||(e.A=!0,fe(e,"complete"),fe(e,"error"))}function $t(e){if(e.h&&"undefined"!=typeof r&&(!e.v[1]||4!=tn(e)||2!=e.Z()))if(e.u&&4==tn(e))me(e.Ea,0,e);else if(fe(e,"readystatechange"),4==tn(e)){e.h=!1;try{const r=e.Z();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var i;if(i=0===r){var s=String(e.D).match(pt)[1]||null;!s&&o.self&&o.self.location&&(s=o.self.location.protocol.slice(0,-1)),i=!Yt.test(s?s.toLowerCase():"")}n=i}if(n)fe(e,"complete"),fe(e,"success");else{e.m=6;try{var a=2<tn(e)?e.g.statusText:""}catch(l){a=""}e.l=a+" ["+e.Z()+"]",Jt(e)}}finally{Zt(e)}}}function Zt(e,t){if(e.g){en(e);const r=e.g,o=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||fe(e,"ready");try{r.onreadystatechange=o}catch(n){}}}function en(e){e.I&&(o.clearTimeout(e.I),e.I=null)}function tn(e){return e.g?e.g.readyState:0}function nn(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}
2function rn(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function on(e){this.Aa=0,this.i=[],this.j=new Ue,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=rn("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=rn("baseRetryDelayMs",5e3,e),this.cb=rn("retryDelaySeedMs",1e4,e),this.Wa=rn("forwardChannelMaxRetries",2,e),this.wa=rn("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new st(e&&e.concurrentRequestLimit),this.Da=new jt,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function sn(e){if(ln(e),3==e.G){var t=e.U++,n=gt(e.I);if(wt(n,"SID",e.K),wt(n,"RID",t),wt(n,"TYPE","terminate"),dn(e,n),(t=new We(e,e.j,t)).L=2,t.v=St(gt(n)),n=!1,o.navigator&&o.navigator.sendBeacon)try{n=o.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&o.Image&&((new Image).src=t.v,n=!0),n||(t.g=kn(t.j,null),t.g.ea(t.v)),t.F=Date.now(),Ze(t)}Sn(e)}function an(e){e.g&&(mn(e),e.g.cancel(),e.g=null)}function ln(e){an(e),e.u&&(o.clearTimeout(e.u),e.u=null),vn(e),e.h.cancel(),e.s&&("number"===typeof e.s&&o.clearTimeout(e.s),e.s=null)}function cn(e){if(!at(e.h)&&!e.s){e.s=!0;var t=e.Ga;F||V(),j||(F(),j=!0),U.add(t,e),e.B=0}}function un(e,t){var n;n=t?t.l:e.U++;const r=gt(e.I);wt(r,"SID",e.K),wt(r,"RID",n),wt(r,"AID",e.T),dn(e,r),e.m&&e.o&&Kt(r,e.m,e.o),n=new We(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=hn(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),ut(e.h,n),Qe(n,r,t)}function dn(e,t){e.H&&x(e.H,function(e,n){wt(t,n,e)}),e.l&&ft({},function(e,n){wt(t,n,e)})}function hn(e,t,n){n=Math.min(e.i.length,n);var r=e.l?c(e.l.Na,e.l,e):null;e:{var o=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=o[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let s=!0;for(let a=0;a<n;a++){let n=o[a].g;const l=o[a].map;if(n-=t,0>n)t=Math.max(0,o[a].g-100),s=!1;else try{Ut(l,e,"req"+n+"_")}catch(i){r&&r(l)}}if(s){r=e.join("&");break e}}}return e=e.i.splice(0,n),t.D=e,r}function fn(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;F||V(),j||(F(),j=!0),U.add(t,e),e.v=0}}function pn(e){return!(e.g||e.u||3<=e.v)&&(e.Y++,e.u=je(c(e.Fa,e),bn(e,e.v)),e.v++,!0)}function mn(e){null!=e.A&&(o.clearTimeout(e.A),e.A=null)}function gn(e){e.g=new We(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=gt(e.qa);wt(t,"RID","rpc"),wt(t,"SID",e.K),wt(t,"AID",e.T),wt(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&wt(t,"TO",e.ja),wt(t,"TYPE","xmlhttp"),dn(e,t),e.m&&e.o&&Kt(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=St(gt(t)),n.m=null,n.P=!0,Xe(n,e)}function vn(e){null!=e.C&&(o.clearTimeout(e.C),e.C=null)}function yn(e,t){var n=null;if(e.g==t){vn(e),mn(e),e.g=null;var r=2}else{if(!ct(e.h,t))return;n=t.D,dt(e.h,t),r=1}if(0!=e.G)if(t.o)if(1==r){n=t.m?t.m.length:0,t=Date.now()-t.F;var o=e.B;fe(r=Re(),new Fe(r,n)),cn(e)}else fn(e);else if(3==(o=t.s)||0==o&&0<t.X||!(1==r&&function(e,t){return!(lt(e.h)>=e.h.j-(e.s?1:0))&&(e.s?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.B>=(e.Va?0:e.Wa))&&(e.s=je(c(e.Ga,e,t),bn(e,e.B)),e.B++,!0))}(e,t)||2==r&&pn(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),o){case 1:wn(e,5);break;case 4:wn(e,10);break;case 3:wn(e,6);break;default:wn(e,2)}}function bn(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function wn(e,t){if(e.j.info("Error code "+t),2==t){var n=c(e.fb,e),r=e.Xa;const t=!r;r=new mt(r||"//www.google.com/images/cleardot.gif"),o.location&&"http"==o.location.protocol||vt(r,"https"),St(r),t?function(e,t){const n=new Ue;if(o.Image){const r=new Image;r.onload=u(Ft,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(Ft,n,"TestLoadImage: error",!1,t,r),r.onabort=u(Ft,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(Ft,n,"TestLoadImage: timeout",!1,t,r),o.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Ue;const n=new AbortController,r=setTimeout(()=>{n.abort(),Ft(0,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(r),e.ok?Ft(0,0,!0,t):Ft(0,0,!1,t)}).catch(()=>{clearTimeout(r),Ft(0,0,!1,t)})}(r.toString(),n)}else Me(2);e.G=0,e.l&&e.l.sa(t),Sn(e),ln(e)}function Sn(e){if(e.G=0,e.ka=[],e.l){const t=ht(e.h);
20==t.length&&0==e.i.length||(k(e.ka,t),k(e.ka,e.i),e.h.i.length=0,E(e.i),e.i.length=0),e.l.ra()}}function En(e,t,n){var r=n instanceof mt?gt(n):new mt(n);if(""!=r.g)t&&(r.g=t+"."+r.g),yt(r,r.s);else{var i=o.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var s=new mt(null);r&&vt(s,r),t&&(s.g=t),i&&yt(s,i),n&&(s.l=n),r=s}return n=e.D,t=e.ya,n&&t&&wt(r,n,t),wt(r,"VER",e.la),dn(e,r),r}function kn(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ca&&!e.pa?new Gt(new Vt({eb:n})):new Gt(e.pa)).Ha(e.J),t}function _n(){}function Cn(){}function An(e,t){he.call(this),this.g=new on(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!_(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!_(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new In(this)}function Tn(e){xe.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function xn(){Ie.call(this),this.status=1}function In(e){this.g=e}(e=Gt.prototype).Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():ze.g(),this.v=this.o?Ce(this.o):Ce(ze),this.g.onreadystatechange=c(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(s){return void Xt(this,s)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),i=o.FormData&&e instanceof o.FormData,!(0<=Array.prototype.indexOf.call(Qt,t,void 0))||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[o,a]of n)this.g.setRequestHeader(o,a);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{en(this),this.u=!0,this.g.send(e),this.u=!1}catch(s){Xt(this,s)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,fe(this,"complete"),fe(this,"abort"),Zt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Zt(this,!0)),Gt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?$t(this):this.bb())},e.bb=function(){$t(this)},e.isActive=function(){return!!this.g},e.Z=function(){try{return 2<tn(this)?this.g.status:-1}catch(Ct){return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch(Ct){return""}},e.Oa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Ee(t)}},e.Ba=function(){return this.m},e.Ka=function(){return"string"===typeof this.l?this.l:String(this.l)},(e=on.prototype).la=8,e.G=1,e.connect=function(e,t,n,r){Me(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=En(this,null,this.W),cn(this)},e.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;const o=new We(this,this.j,e);let i=this.o;if(this.S&&(i?(i=I(i),P(i,this.S)):i=this.S),null!==this.m||this.O||(o.H=i,i=null),this.P)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;
2t=hn(this,o,t),wt(n=gt(this.I),"RID",e),wt(n,"CVER",22),this.D&&wt(n,"X-HTTP-Session-Id",this.D),dn(this,n),i&&(this.O?t="headers="+encodeURIComponent(String(Wt(i)))+"&"+t:this.m&&Kt(n,this.m,i)),ut(this.h,o),this.Ua&&wt(n,"TYPE","init"),this.P?(wt(n,"$req",t),wt(n,"SID","null"),o.T=!0,Qe(o,n,null)):Qe(o,n,t),this.G=2}}else 3==this.G&&(e?un(this,e):0==this.i.length||at(this.h)||un(this))},e.Fa=function(){if(this.u=null,gn(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=je(c(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Me(10),an(this),gn(this))},e.Za=function(){null!=this.C&&(this.C=null,an(this),pn(this),Me(19))},e.fb=function(e){e?(this.j.info("Successfully pinged google.com"),Me(2)):(this.j.info("Failed to ping google.com"),Me(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=_n.prototype).ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){},Cn.prototype.g=function(e,t){return new An(e,t)},S(An,he),An.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},An.prototype.close=function(){sn(this.g)},An.prototype.o=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=Se(e),e=n);t.i.push(new it(t.Ya++,e)),3==t.G&&cn(t)},An.prototype.N=function(){this.g.l=null,delete this.j,sn(this.g),delete this.g,An.aa.N.call(this)},S(Tn,xe),S(xn,Ie),S(In,_n),In.prototype.ua=function(){fe(this.g,"a")},In.prototype.ta=function(e){fe(this.g,new Tn(e))},In.prototype.sa=function(e){fe(this.g,new xn)},In.prototype.ra=function(){fe(this.g,"b")},Cn.prototype.createWebChannel=Cn.prototype.g,An.prototype.send=An.prototype.o,An.prototype.open=An.prototype.m,An.prototype.close=An.prototype.close,y=w.createWebChannelTransport=function(){return new Cn},v=w.getStatEventTarget=function(){return Re()},g=w.Event=Ne,m=w.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Be.NO_ERROR=0,Be.TIMEOUT=8,Be.HTTP_ERROR=6,p=w.ErrorCode=Be,He.COMPLETE="complete",f=w.EventType=He,Ae.EventType=Te,Te.OPEN="a",Te.CLOSE="b",Te.ERROR="c",Te.MESSAGE="d",he.prototype.listen=he.prototype.K,h=w.WebChannel=Ae,w.FetchXmlHttpFactory=Vt,Gt.prototype.listenOnce=Gt.prototype.L,Gt.prototype.getLastError=Gt.prototype.Ka,Gt.prototype.getLastErrorCode=Gt.prototype.Ba,Gt.prototype.getStatus=Gt.prototype.Z,Gt.prototype.getResponseJson=Gt.prototype.Oa,Gt.prototype.getResponseText=Gt.prototype.oa,Gt.prototype.send=Gt.prototype.ea,Gt.prototype.setWithCredentials=Gt.prototype.Ha,d=w.XhrIo=Gt}).apply("undefined"!==typeof b?b:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});
2const S="@firebase/firestore",E="4.8.0";class k{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}k.UNAUTHENTICATED=new k(null),k.GOOGLE_CREDENTIALS=new k("google-credentials-uid"),k.FIRST_PARTY=new k("first-party-uid"),k.MOCK_USER=new k("mock-user");let _="11.10.0";const C=new a.Vy("@firebase/firestore");function A(){return C.logLevel}function T(e){if(C.logLevel<=a.$b.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=n.map(N);C.debug("Firestore (".concat(_,"): ").concat(e),...o)}}function x(e){if(C.logLevel<=a.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=n.map(N);C.error("Firestore (".concat(_,"): ").concat(e),...o)}}function I(e){if(C.logLevel<=a.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=n.map(N);C.warn("Firestore (".concat(_,"): ").concat(e),...o)}}function N(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function P(e,t,n){let r="Unexpected state";"string"==typeof t?r=t:n=t,R(e,r,n)}function R(e,t,n){let r="FIRESTORE (".concat(_,") INTERNAL ASSERTION FAILED: ").concat(t," (ID: ").concat(e.toString(16),")");if(void 0!==n)try{r+=" CONTEXT: "+JSON.stringify(n)}catch(e){r+=" CONTEXT: "+n}throw x(r),new Error(r)}function O(e,t,n,r){let o="Unexpected state";"string"==typeof n?o=n:r=n,e||R(t,o,r)}function D(e,t){return e}const L={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class M extends l.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}class F{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class j{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class U{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(k.UNAUTHENTICATED))}shutdown(){}}class V{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class z{constructor(e){this.t=e,this.currentUser=k.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){O(void 0===this.o,42304);let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let o=new F;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new F,e.enqueueRetryable(()=>r(this.currentUser))};const i=()=>{const t=o;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},s=e=>{T("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),i())};this.t.onInit(e=>s(e)),setTimeout(()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?s(e):(T("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new F)}},0),i()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(T("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(O("string"==typeof t.accessToken,31837,{l:t}),new j(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return O(null===e||"string"==typeof e,2055,{h:e}),new k(e)}}class B{constructor(e,t,n){this.P=e,this.T=t,this.I=n,this.type="FirstParty",this.user=k.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);const e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}}class H{constructor(e,t,n){this.P=e,this.T=t,this.I=n}getToken(){return Promise.resolve(new B(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t(k.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class q{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class W{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,(0,i.xZ)(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){O(void 0===this.o,3512);const n=e=>{null!=e.error&&T("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));const n=e.token!==this.m;return this.m=e.token,T("FirebaseAppCheckTokenProvider","Received ".concat(n?"new":"existing"," token.")),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};const r=e=>{T("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){const e=this.V.getImmediate({optional:!0});e?r(e):T("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new q(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(O("string"==typeof e.token,44558,{tokenResult:e}),this.m=e.token,new q(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function K(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;
2r++)n[r]=Math.floor(256*Math.random());return n}function G(){return new TextEncoder}class Y{static newId(){const e=62*Math.floor(256/62);let t="";for(;t.length<20;){const n=K(40);for(let r=0;r<n.length;++r)t.length<20&&n[r]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%62))}return t}}function Q(e,t){return e<t?-1:e>t?1:0}function X(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=e.codePointAt(n),o=t.codePointAt(n);if(r!==o){if(r<128&&o<128)return Q(r,o);{const i=G(),s=$(i.encode(J(e,n)),i.encode(J(t,n)));return 0!==s?s:Q(r,o)}}n+=r>65535?2:1}return Q(e.length,t.length)}function J(e,t){return e.codePointAt(t)>65535?e.substring(t,t+2):e.substring(t,t+1)}function $(e,t){for(let n=0;n<e.length&&n<t.length;++n)if(e[n]!==t[n])return Q(e[n],t[n]);return Q(e.length,t.length)}function Z(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}const ee="__name__";class te{constructor(e,t,n){void 0===t?t=0:t>e.length&&P(637,{offset:t,range:e.length}),void 0===n?n=e.length-t:n>e.length-t&&P(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===te.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof te?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=te.compareSegments(e.get(r),t.get(r));if(0!==n)return n}return Q(e.length,t.length)}static compareSegments(e,t){const n=te.isNumericId(e),r=te.isNumericId(t);return n&&!r?-1:!n&&r?1:n&&r?te.extractNumericId(e).compare(te.extractNumericId(t)):X(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return r.fromString(e.substring(4,e.length-2))}}class ne extends te{construct(e,t,n){return new ne(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n){if(o.indexOf("//")>=0)throw new M(L.INVALID_ARGUMENT,"Invalid segment (".concat(o,"). Paths must not contain // in them."));e.push(...o.split("/").filter(e=>e.length>0))}return new ne(e)}static emptyPath(){return new ne([])}}const re=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class oe extends te{construct(e,t,n){return new oe(e,t,n)}static isValidIdentifier(e){return re.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),oe.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===ee}static keyField(){return new oe([ee])}static fromServerFormat(e){const t=[];let n="",r=0;const o=()=>{if(0===n.length)throw new M(L.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(n),n=""};let i=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new M(L.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new M(L.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(i=!i,r++):"."!==t||i?(n+=t,r++):(o(),r++)}if(o(),i)throw new M(L.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new oe(t)}static emptyPath(){return new oe([])}}class ie{constructor(e){this.path=e}static fromPath(e){return new ie(ne.fromString(e))}static fromName(e){return new ie(ne.fromString(e).popFirst(5))}static empty(){return new ie(ne.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===ne.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return ne.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}
2static fromSegments(e){return new ie(new ne(e.slice()))}}function se(e,t,n){if(!n)throw new M(L.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function ae(e){if(!ie.isDocumentKey(e))throw new M(L.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function le(e){if(ie.isDocumentKey(e))throw new M(L.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function ce(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function ue(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}}return"function"==typeof e?"a function":P(12329,{type:typeof e})}function de(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new M(L.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=ue(e);throw new M(L.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}}return e}function he(e,t){if(t<=0)throw new M(L.INVALID_ARGUMENT,"Function ".concat(e,"() requires a positive number, but it was: ").concat(t,"."))}function fe(e,t){const n={typeString:e};return t&&(n.value=t),n}function pe(e,t){if(!ce(e))throw new M(L.INVALID_ARGUMENT,"JSON must be an object");let n;for(const r in t)if(t[r]){const o=t[r].typeString,i="value"in t[r]?{value:t[r].value}:void 0;if(!(r in e)){n="JSON missing required field: '".concat(r,"'");break}const s=e[r];if(o&&typeof s!==o){n="JSON field '".concat(r,"' must be a ").concat(o,".");break}if(void 0!==i&&s!==i.value){n="Expected '".concat(r,"' field to equal '").concat(i.value,"'");break}}if(n)throw new M(L.INVALID_ARGUMENT,n);return!0}const me=-62135596800,ge=1e6;class ve{static now(){return ve.fromMillis(Date.now())}static fromDate(e){return ve.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*ge);return new ve(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new M(L.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new M(L.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<me)throw new M(L.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new M(L.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/ge}_compareTo(e){return this.seconds===e.seconds?Q(this.nanoseconds,e.nanoseconds):Q(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:ve._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(pe(e,ve._jsonSchema))return new ve(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-me;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}ve._jsonSchemaVersion="firestore/timestamp/1.0",ve._jsonSchema={type:fe("string",ve._jsonSchemaVersion),seconds:fe("number"),nanoseconds:fe("number")};class ye{static fromTimestamp(e){return new ye(e)}static min(){return new ye(new ve(0,0))}static max(){return new ye(new ve(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}const be=-1;class we{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}we.UNKNOWN_ID=-1;function Se(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,o=ye.fromTimestamp(1e9===r?new ve(n+1,0):new ve(n,r));return new ke(o,ie.empty(),t)}function Ee(e){return new ke(e.readTime,e.key,be)}class ke{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new ke(ye.min(),ie.empty(),be)}static max(){return new ke(ye.max(),ie.empty(),be)}}function _e(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=ie.comparator(e.documentKey,t.documentKey),0!==n?n:Q(e.largestBatchId,t.largestBatchId))}const Ce="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Ae{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}
2raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}async function Te(e){if(e.code!==L.FAILED_PRECONDITION||e.message!==Ce)throw e;T("LocalStore","Unexpectedly lost primary lease")}class xe{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&P(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new xe((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof xe?t:xe.resolve(t)}catch(e){return xe.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):xe.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):xe.reject(t)}static resolve(e){return new xe((t,n)=>{t(e)})}static reject(e){return new xe((t,n)=>{n(e)})}static waitFor(e){return new xe((t,n)=>{let r=0,o=0,i=!1;e.forEach(e=>{++r,e.next(()=>{++o,i&&o===r&&t()},e=>n(e))}),i=!0,o===r&&t()})}static or(e){let t=xe.resolve(!1);for(const n of e)t=t.next(e=>e?xe.resolve(e):n());return t}static forEach(e,t){const n=[];return e.forEach((e,r)=>{n.push(t.call(this,e,r))}),this.waitFor(n)}static mapArray(e,t){return new xe((n,r)=>{const o=e.length,i=new Array(o);let s=0;for(let a=0;a<o;a++){const l=a;t(e[l]).next(e=>{i[l]=e,++s,s===o&&n(i)},e=>r(e))}})}static doWhile(e,t){return new xe((n,r)=>{const o=()=>{!0===e()?t().next(()=>{o()},r):n()};o()})}}function Ie(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Ne(e){return"IndexedDbTransactionError"===e.name}class Pe{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this._e(e),this.ae=e=>t.writeSequenceNumber(e))}_e(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ae&&this.ae(e),e}}Pe.ue=-1;const Re=-1;function Oe(e){return null==e}function De(e){return 0===e&&1/e==-1/0}function Le(e){return"number"==typeof e&&Number.isInteger(e)&&!De(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}const Me="\x01";function Fe(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=Ue(t)),t=je(e.get(n),t);return Ue(t)}function je(e,t){let n=t;const r=e.length;for(let o=0;o<r;o++){const t=e.charAt(o);switch(t){case"\0":n+="\x01\x10";break;case Me:n+="\x01\x11";break;default:n+=t}}return n}function Ue(e){return e+Me+"\x01"}const Ve="remoteDocuments",ze="owner",Be="mutationQueues",He="mutations";const qe="documentMutations",We="remoteDocumentsV14",Ke="remoteDocumentGlobal",Ge="targets",Ye="targetDocuments",Qe="targetGlobal",Xe="collectionParents",Je="clientMetadata",$e="bundles",Ze="namedQueries",et="indexConfiguration",tt="indexState",nt="indexEntries",rt="documentOverlays",ot="globals",it=[Be,He,qe,Ve,Ge,ze,Qe,Ye,Je,Ke,Xe,$e,Ze],st=[Be,He,qe,We,Ge,ze,Qe,Ye,Je,Ke,Xe,$e,Ze,rt],at=st,lt=[...at,et,tt,nt];function ct(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function ut(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function dt(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t(e[r],r,e));return n}function ht(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class ft{constructor(e,t){this.comparator=e,this.root=t||mt.EMPTY}insert(e,t){return new ft(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,mt.BLACK,null,null))}remove(e){return new ft(this.comparator,this.root.remove(e,this.comparator).copy(null,null,mt.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push("".concat(t,":").concat(n)),!1)),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new pt(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new pt(this.root,e,this.comparator,!1)}getReverseIterator(){return new pt(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new pt(this.root,e,this.comparator,!0)}}class pt{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=t?n(e.key,t):1,t&&r&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(0===o){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class mt{constructor(e,t,n,r,o){this.key=e,this.value=t,this.color=null!=n?n:mt.RED,this.left=null!=r?r:mt.EMPTY,this.right=null!=o?o:mt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,o){return new mt(null!=e?e:this.key,null!=t?t:this.value,
vendor: 4,517 bytes, line 2
2null!=n?n:this.color,null!=r?r:this.left,null!=o?o:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const o=n(e,r.key);return r=o<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===o?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return mt.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return mt.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,mt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,mt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw P(43730,{key:this.key,value:this.value});if(this.right.isRed())throw P(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw P(27949);return e+(this.isRed()?0:1)}}mt.EMPTY=null,mt.RED=!0,mt.BLACK=!1,mt.EMPTY=new class{constructor(){this.size=0}get key(){throw P(57766)}get value(){throw P(16141)}get color(){throw P(16727)}get left(){throw P(29726)}get right(){throw P(36894)}copy(e,t,n,r,o){return this}insert(e,t,n){return new mt(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class gt{constructor(e){this.comparator=e,this.data=new ft(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new vt(this.data.getIterator())}getIteratorFrom(e){return new vt(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof gt))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new gt(this.comparator);return t.data=e,t}}
2class vt{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class yt{constructor(e){this.fields=e,e.sort(oe.comparator)}static empty(){return new yt([])}unionWith(e){let t=new gt(oe.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new yt(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Z(this.fields,e.fields,(e,t)=>e.isEqual(t))}}class bt extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class wt{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new bt("Invalid base64 string: "+e):e}}(e);return new wt(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new wt(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Q(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}wt.EMPTY_BYTE_STRING=new wt("");const St=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Et(e){if(O(!!e,39018),"string"==typeof e){let t=0;const n=St.exec(e);if(O(!!n,46558,{timestamp:e}),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:kt(e.seconds),nanos:kt(e.nanos)}}function kt(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function _t(e){return"string"==typeof e?wt.fromBase64String(e):wt.fromUint8Array(e)}const Ct="server_timestamp",At="__type__",Tt="__previous_value__",xt="__local_write_time__";function It(e){var t,n;return(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{})[At])||void 0===n?void 0:n.stringValue)===Ct}function Nt(e){const t=e.mapValue.fields[Tt];return It(t)?Nt(t):t}function Pt(e){const t=Et(e.mapValue.fields[xt].timestampValue);return new ve(t.seconds,t.nanos)}class Rt{constructor(e,t,n,r,o,i,s,a,l,c){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=o,this.forceLongPolling=i,this.autoDetectLongPolling=s,this.longPollingOptions=a,this.useFetchStreams=l,this.isUsingEmulator=c}}const Ot="(default)";class Dt{constructor(e,t){this.projectId=e,this.database=t||Ot}static empty(){return new Dt("","")}get isDefaultDatabase(){return this.database===Ot}isEqual(e){return e instanceof Dt&&e.projectId===this.projectId&&e.database===this.database}}const Lt="__type__",Mt="__max__",Ft={mapValue:{fields:{__type__:{stringValue:Mt}}}},jt="__vector__",Ut="value";function Vt(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?It(e)?4:rn(e)?9007199254740991:tn(e)?10:11:P(28295,{value:e})}function zt(e,t){if(e===t)return!0;const n=Vt(e);if(n!==Vt(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Pt(e).isEqual(Pt(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=Et(e.timestampValue),r=Et(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return _t(e.bytesValue).isEqual(_t(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return kt(e.geoPointValue.latitude)===kt(t.geoPointValue.latitude)&&kt(e.geoPointValue.longitude)===kt(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return kt(e.integerValue)===kt(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=kt(e.doubleValue),r=kt(t.doubleValue);return n===r?De(n)===De(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Z(e.arrayValue.values||[],t.arrayValue.values||[],zt);case 10:case 11:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(ct(n)!==ct(r))return!1;for(const o in n)if(n.hasOwnProperty(o)&&(void 0===r[o]||!zt(n[o],r[o])))return!1;return!0}(e,t);default:return P(52216,{left:e})}}function Bt(e,t){return void 0!==(e.values||[]).find(e=>zt(e,t))}function Ht(e,t){if(e===t)return 0;const n=Vt(e),r=Vt(t);if(n!==r)return Q(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Q(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=kt(e.integerValue||e.doubleValue),r=kt(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return qt(e.timestampValue,t.timestampValue);case 4:return qt(Pt(e),Pt(t));case 5:return X(e.stringValue,t.stringValue);case 6:return function(e,t){const n=_t(e),r=_t(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let o=0;o<n.length&&o<r.length;o++){const e=Q(n[o],r[o]);if(0!==e)return e}return Q(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=Q(kt(e.latitude),kt(t.latitude));return 0!==n?n:Q(kt(e.longitude),kt(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return Wt(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n,r,o,i;const s=e.fields||{},a=t.fields||{},l=null===(n=s[Ut])||void 0===n?void 0:n.arrayValue,c=null===(r=a[Ut])||void 0===r?void 0:r.arrayValue,u=Q((null===(o=null==l?void 0:l.values)||void 0===o?void 0:o.length)||0,(null===(i=null==c?void 0:c.values)||void 0===i?void 0:i.length)||0);return 0!==u?u:Wt(l,c)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===Ft.mapValue&&t===Ft.mapValue)return 0;if(e===Ft.mapValue)return 1;if(t===Ft.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),o=t.fields||{},i=Object.keys(o);r.sort(),i.sort();for(let s=0;s<r.length&&s<i.length;++s){const e=X(r[s],i[s]);if(0!==e)return e;const t=Ht(n[r[s]],o[i[s]]);if(0!==t)return t}return Q(r.length,i.length)}(e.mapValue,t.mapValue);default:throw P(23264,{le:n})}}function qt(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Q(e,t);const n=Et(e),r=Et(t),o=Q(n.seconds,r.seconds);return 0!==o?o:Q(n.nanos,r.nanos)}function Wt(e,t){const n=e.values||[],r=t.values||[];for(let o=0;o<n.length&&o<r.length;++o){const e=Ht(n[o],r[o]);if(e)return e}return Q(n.length,r.length)}function Kt(e){return Gt(e)}function Gt(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=Et(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return _t(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return ie.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return"geo(".concat(e.latitude,",").concat(e.longitude,")")}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=Gt(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const o of t)r?r=!1:n+=",",n+="".concat(o,":").concat(Gt(e.fields[o]));return n+"}"}(e.mapValue):P(61005,{value:e})}function Yt(e){switch(Vt(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=Nt(e);return t?16+Yt(t):16;case 5:return 2*e.stringValue.length;case 6:return _t(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return function(e){return(e.values||[]).reduce((e,t)=>
2e+Yt(t),0)}(e.arrayValue);case 10:case 11:return function(e){let t=0;return ut(e.fields,(e,n)=>{t+=e.length+Yt(n)}),t}(e.mapValue);default:throw P(13486,{value:e})}}function Qt(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function Xt(e){return!!e&&"integerValue"in e}function Jt(e){return!!e&&"arrayValue"in e}function $t(e){return!!e&&"nullValue"in e}function Zt(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function en(e){return!!e&&"mapValue"in e}function tn(e){var t,n;return(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{})[Lt])||void 0===n?void 0:n.stringValue)===jt}function nn(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return ut(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=nn(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=nn(e.arrayValue.values[n]);return t}return Object.assign({},e)}function rn(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===Mt}class on{constructor(e){this.value=e}static empty(){return new on({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!en(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=nn(t)}setAll(e){let t=oe.emptyPath(),n={},r=[];e.forEach((e,o)=>{if(!t.isImmediateParentOf(o)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=o.popLast()}e?n[o.lastSegment()]=nn(e):r.push(o.lastSegment())});const o=this.getFieldsMap(t);this.applyChanges(o,n,r)}delete(e){const t=this.field(e.popLast());en(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return zt(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];en(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){ut(t,(t,n)=>e[t]=n);for(const r of n)delete e[r]}clone(){return new on(nn(this.value))}}function sn(e){const t=[];return ut(e.fields,(e,n)=>{const r=new oe([e]);if(en(n)){const e=sn(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)}),new yt(t)}class an{constructor(e,t,n,r,o,i,s){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=o,this.data=i,this.documentState=s}static newInvalidDocument(e){return new an(e,0,ye.min(),ye.min(),ye.min(),on.empty(),0)}static newFoundDocument(e,t,n,r){return new an(e,1,t,ye.min(),n,r,0)}static newNoDocument(e,t){return new an(e,2,t,ye.min(),ye.min(),on.empty(),0)}static newUnknownDocument(e,t){return new an(e,3,t,ye.min(),ye.min(),on.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(ye.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=on.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=on.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=ye.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof an&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new an(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}class ln{constructor(e,t){this.position=e,this.inclusive=t}}function cn(e,t,n){let r=0;for(let o=0;o<e.position.length;o++){const i=t[o],s=e.position[o];if(r=i.field.isKeyField()?ie.comparator(ie.fromName(s.referenceValue),n.key):Ht(s,n.data.field(i.field)),"desc"===i.dir&&(r*=-1),0!==r)break}return r}function un(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!zt(e.position[n],t.position[n]))return!1;return!0}class dn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function hn(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class fn{}class pn extends fn{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new En(e,t,n):"array-contains"===t?new An(e,n):"in"===t?new Tn(e,n):"not-in"===t?new xn(e,n):"array-contains-any"===t?new In(e,n):new pn(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new kn(e,n):new _n(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&void 0===t.nullValue&&this.matchesComparison(Ht(t,this.value)):null!==t&&Vt(this.value)===Vt(t)&&this.matchesComparison(Ht(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return P(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class mn extends fn{constructor(e,t){super(),this.filters=e,this.op=t,this.he=null}static create(e,t){return new mn(e,t)}matches(e){return gn(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.he||(this.he=this.filters.reduce((e,t)=>
2e.concat(t.getFlattenedFilters()),[])),this.he}getFilters(){return Object.assign([],this.filters)}}function gn(e){return"and"===e.op}function vn(e){return yn(e)&&gn(e)}function yn(e){for(const t of e.filters)if(t instanceof mn)return!1;return!0}function bn(e){if(e instanceof pn)return e.field.canonicalString()+e.op.toString()+Kt(e.value);if(vn(e))return e.filters.map(e=>bn(e)).join(",");{const t=e.filters.map(e=>bn(e)).join(",");return"".concat(e.op,"(").concat(t,")")}}function wn(e,t){return e instanceof pn?function(e,t){return t instanceof pn&&e.op===t.op&&e.field.isEqual(t.field)&&zt(e.value,t.value)}(e,t):e instanceof mn?function(e,t){return t instanceof mn&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((e,n,r)=>e&&wn(n,t.filters[r]),!0)}(e,t):void P(19439)}function Sn(e){return e instanceof pn?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(Kt(e.value))}(e):e instanceof mn?function(e){return e.op.toString()+" {"+e.getFilters().map(Sn).join(" ,")+"}"}(e):"Filter"}class En extends pn{constructor(e,t,n){super(e,t,n),this.key=ie.fromName(n.referenceValue)}matches(e){const t=ie.comparator(e.key,this.key);return this.matchesComparison(t)}}class kn extends pn{constructor(e,t){super(e,"in",t),this.keys=Cn("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class _n extends pn{constructor(e,t){super(e,"not-in",t),this.keys=Cn("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function Cn(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map(e=>ie.fromName(e.referenceValue))}class An extends pn{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Jt(t)&&Bt(t.arrayValue,this.value)}}class Tn extends pn{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Bt(this.value.arrayValue,t)}}class xn extends pn{constructor(e,t){super(e,"not-in",t)}matches(e){if(Bt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&void 0===t.nullValue&&!Bt(this.value.arrayValue,t)}}class In extends pn{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Jt(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>Bt(this.value.arrayValue,e))}}class Nn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=o,this.startAt=i,this.endAt=s,this.Pe=null}}function Pn(e){return new Nn(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null)}function Rn(e){const t=D(e);if(null===t.Pe){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map(e=>bn(e)).join(","),e+="|ob:",e+=t.orderBy.map(e=>function(e){return e.field.canonicalString()+e.dir}(e)).join(","),Oe(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map(e=>Kt(e)).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map(e=>Kt(e)).join(",")),t.Pe=e}return t.Pe}function On(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!hn(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!wn(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!un(e.startAt,t.startAt)&&un(e.endAt,t.endAt)}function Dn(e){return ie.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class Ln{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=o,this.limitType=i,this.startAt=s,this.endAt=a,this.Te=null,this.Ie=null,this.de=null,this.startAt,this.endAt}}function Mn(e,t,n,r,o,i,s,a){return new Ln(e,t,n,r,o,i,s,a)}function Fn(e){return new Ln(e)}function jn(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function Un(e){return null!==e.collectionGroup}function Vn(e){const t=D(e);if(null===t.Te){t.Te=[];const e=new Set;for(const o of t.explicitOrderBy)t.Te.push(o),e.add(o.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new gt(oe.comparator);
2return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t}(t);r.forEach(r=>{e.has(r.canonicalString())||r.isKeyField()||t.Te.push(new dn(r,n))}),e.has(oe.keyField().canonicalString())||t.Te.push(new dn(oe.keyField(),n))}return t.Te}function zn(e){const t=D(e);return t.Ie||(t.Ie=Hn(t,Vn(e))),t.Ie}function Bn(e){const t=D(e);return t.de||(t.de=Hn(t,e.explicitOrderBy)),t.de}function Hn(e,t){if("F"===e.limitType)return Pn(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{const t="desc"===e.dir?"asc":"desc";return new dn(e.field,t)});const n=e.endAt?new ln(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new ln(e.startAt.position,e.startAt.inclusive):null;return Pn(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function qn(e,t){const n=e.filters.concat([t]);return new Ln(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function Wn(e,t,n){return new Ln(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Kn(e,t){return On(zn(e),zn(t))&&e.limitType===t.limitType}function Gn(e){return"".concat(Rn(zn(e)),"|lt:").concat(e.limitType)}function Yn(e){return"Query(target=".concat(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map(e=>Sn(e)).join(", "),"]")),Oe(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map(e=>function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e)).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>Kt(e)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>Kt(e)).join(",")),"Target(".concat(t,")")}(zn(e)),"; limitType=").concat(e.limitType,")")}function Qn(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ie.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of Vn(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=cn(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Vn(e),t))&&!(e.endAt&&!function(e,t,n){const r=cn(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Vn(e),t))}(e,t)}function Xn(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Jn(e){return(t,n)=>{let r=!1;for(const o of Vn(e)){const e=$n(o,t,n);if(0!==e)return e;r=r||o.field.isKeyField()}return 0}}function $n(e,t,n){const r=e.field.isKeyField()?ie.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),o=n.data.field(e);return null!==r&&null!==o?Ht(r,o):P(42886)}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return P(19790,{direction:e.dir})}}class Zn{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[r,o]of n)if(this.equalsFn(r,e))return o}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let o=0;o<r.length;o++)if(this.equalsFn(r[o][0],e))return void(r[o]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){ut(this.inner,(t,n)=>{for(const[r,o]of n)e(r,o)})}isEmpty(){return ht(this.inner)}size(){return this.innerSize}}const er=new ft(ie.comparator);function tr(){return er}const nr=new ft(ie.comparator);function rr(){let e=nr;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)e=e.insert(o.key,o);return e}function or(e){let t=nr;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function ir(){return ar()}function sr(){return ar()}function ar(){return new Zn(e=>e.toString(),(e,t)=>e.isEqual(t))}const lr=new ft(ie.comparator),cr=new gt(ie.comparator);function ur(){let e=cr;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)e=e.add(o);return e}const dr=new gt(Q);function hr(){return dr}function fr(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:De(t)?"-0":t}}function pr(e){return{integerValue:""+e}}function mr(e,t){return Le(t)?pr(t):fr(e,t)}class gr{constructor(){this._=void 0}}function vr(e,t,n){return e instanceof wr?function(e,t){const n={fields:{[At]:{stringValue:Ct},[xt]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&It(t)&&(t=Nt(t)),t&&(n.fields[Tt]=t),{mapValue:n}}(n,t):e instanceof Sr?Er(e,t):e instanceof kr?_r(e,t):function(e,t){const n=br(e,t),r=Ar(n)+Ar(e.Ee);return Xt(n)&&Xt(e.Ee)?pr(r):fr(e.serializer,r)}(e,t)}function yr(e,t,n){return e instanceof Sr?Er(e,t):e instanceof kr?_r(e,t):n}function br(e,t){return e instanceof Cr?function(e){return Xt(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class wr extends gr{}class Sr extends gr{constructor(e){super(),this.elements=e}}function Er(e,t){const n=Tr(t);for(const r of e.elements)n.some(e=>zt(e,r))||n.push(r);return{arrayValue:{values:n}}}class kr extends gr{constructor(e){super(),this.elements=e}}function _r(e,t){let n=Tr(t);for(const r of e.elements)n=n.filter(e=>!zt(e,r));return{arrayValue:{values:n}}}
2class Cr extends gr{constructor(e,t){super(),this.serializer=e,this.Ee=t}}function Ar(e){return kt(e.integerValue||e.doubleValue)}function Tr(e){return Jt(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class xr{constructor(e,t){this.field=e,this.transform=t}}class Ir{constructor(e,t){this.version=e,this.transformResults=t}}class Nr{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Nr}static exists(e){return new Nr(void 0,e)}static updateTime(e){return new Nr(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Pr(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class Rr{}function Or(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Hr(e.key,Nr.none()):new jr(e.key,e.data,Nr.none());{const n=e.data,r=on.empty();let o=new gt(oe.comparator);for(let e of t.fields)if(!o.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),o=o.add(e)}return new Ur(e.key,r,new yt(o.toArray()),Nr.none())}}function Dr(e,t,n){e instanceof jr?function(e,t,n){const r=e.value.clone(),o=zr(e.fieldTransforms,t,n.transformResults);r.setAll(o),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof Ur?function(e,t,n){if(!Pr(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=zr(e.fieldTransforms,t,n.transformResults),o=t.data;o.setAll(Vr(e)),o.setAll(r),t.convertToFoundDocument(n.version,o).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function Lr(e,t,n,r){return e instanceof jr?function(e,t,n,r){if(!Pr(e.precondition,t))return n;const o=e.value.clone(),i=Br(e.fieldTransforms,r,t);return o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null}(e,t,n,r):e instanceof Ur?function(e,t,n,r){if(!Pr(e.precondition,t))return n;const o=Br(e.fieldTransforms,r,t),i=t.data;return i.setAll(Vr(e)),i.setAll(o),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,n,r):function(e,t,n){return Pr(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function Mr(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),o=br(r.transform,e||null);null!=o&&(null===n&&(n=on.empty()),n.set(r.field,o))}return n||null}function Fr(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&Z(e,t,(e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Sr&&t instanceof Sr||e instanceof kr&&t instanceof kr?Z(e.elements,t.elements,zt):e instanceof Cr&&t instanceof Cr?zt(e.Ee,t.Ee):e instanceof wr&&t instanceof wr}(e.transform,t.transform)}(e,t))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class jr extends Rr{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class Ur extends Rr{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function Vr(e){const t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}}),t}function zr(e,t,n){const r=new Map;O(e.length===n.length,32656,{Ae:n.length,Re:e.length});for(let o=0;o<n.length;o++){const i=e[o],s=i.transform,a=t.data.field(i.field);r.set(i.field,yr(s,a,n[o]))}return r}function Br(e,t,n){const r=new Map;for(const o of e){const e=o.transform,i=n.data.field(o.field);r.set(o.field,vr(e,i,t))}return r}class Hr extends Rr{constructor(e,t){super(),this.key=e,this.prec
2ondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class qr extends Rr{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Wr{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&Dr(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=Lr(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=Lr(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=sr();return this.mutations.forEach(r=>{const o=e.get(r.key),i=o.overlayedDocument;let s=this.applyToLocalView(i,o.mutatedFields);s=t.has(r.key)?null:s;const a=Or(i,s);null!==a&&n.set(r.key,a),i.isValidDocument()||i.convertToNoDocument(ye.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),ur())}isEqual(e){return this.batchId===e.batchId&&Z(this.mutations,e.mutations,(e,t)=>Fr(e,t))&&Z(this.baseMutations,e.baseMutations,(e,t)=>Fr(e,t))}}class Kr{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){O(e.mutations.length===n.length,58842,{Ve:e.mutations.length,me:n.length});let r=lr;const o=e.mutations;for(let i=0;i<o.length;i++)r=r.insert(o[i].key,n[i].version);return new Kr(e,t,n,r)}}class Gr{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}class Yr{constructor(e,t,n){this.alias=e,this.aggregateType=t,this.fieldPath=n}}class Qr{constructor(e,t){this.count=e,this.unchangedNames=t}}var Xr,Jr;function $r(e){switch(e){case L.OK:return P(64938);case L.CANCELLED:case L.UNKNOWN:case L.DEADLINE_EXCEEDED:case L.RESOURCE_EXHAUSTED:case L.INTERNAL:case L.UNAVAILABLE:case L.UNAUTHENTICATED:return!1;case L.INVALID_ARGUMENT:case L.NOT_FOUND:case L.ALREADY_EXISTS:case L.PERMISSION_DENIED:case L.FAILED_PRECONDITION:case L.ABORTED:case L.OUT_OF_RANGE:case L.UNIMPLEMENTED:case L.DATA_LOSS:return!0;default:return P(15467,{code:e})}}function Zr(e){if(void 0===e)return x("GRPC error has no .code"),L.UNKNOWN;switch(e){case Xr.OK:return L.OK;case Xr.CANCELLED:return L.CANCELLED;case Xr.UNKNOWN:return L.UNKNOWN;case Xr.DEADLINE_EXCEEDED:return L.DEADLINE_EXCEEDED;case Xr.RESOURCE_EXHAUSTED:return L.RESOURCE_EXHAUSTED;case Xr.INTERNAL:return L.INTERNAL;case Xr.UNAVAILABLE:return L.UNAVAILABLE;case Xr.UNAUTHENTICATED:return L.UNAUTHENTICATED;case Xr.INVALID_ARGUMENT:return L.INVALID_ARGUMENT;case Xr.NOT_FOUND:return L.NOT_FOUND;case Xr.ALREADY_EXISTS:return L.ALREADY_EXISTS;case Xr.PERMISSION_DENIED:return L.PERMISSION_DENIED;case Xr.FAILED_PRECONDITION:return L.FAILED_PRECONDITION;case Xr.ABORTED:return L.ABORTED;case Xr.OUT_OF_RANGE:return L.OUT_OF_RANGE;case Xr.UNIMPLEMENTED:return L.UNIMPLEMENTED;case Xr.DATA_LOSS:return L.DATA_LOSS;default:return P(39323,{code:e})}}(Jr=Xr||(Xr={}))[Jr.OK=0]="OK",Jr[Jr.CANCELLED=1]="CANCELLED",Jr[Jr.UNKNOWN=2]="UNKNOWN",Jr[Jr.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Jr[Jr.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Jr[Jr.NOT_FOUND=5]="NOT_FOUND",Jr[Jr.ALREADY_EXISTS=6]="ALREADY_EXISTS",Jr[Jr.PERMISSION_DENIED=7]="PERMISSION_DENIED",Jr[Jr.UNAUTHENTICATED=16]="UNAUTHENTICATED",Jr[Jr.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Jr[Jr.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Jr[Jr.ABORTED=10]="ABORTED",Jr[Jr.OUT_OF_RANGE=11]="OUT_OF_RANGE",Jr[Jr.UNIMPLEMENTED=12]="UNIMPLEMENTED",Jr[Jr.INTERNAL=13]="INTERNAL",Jr[Jr.UNAVAILABLE=14]="UNAVAILABLE",Jr[Jr.DATA_LOSS=15]="DATA_LOSS";let eo=null;const to=new r([4294967295,4294967295],0);function no(e){const t=G().encode(e),n=new o;return n.update(t),new Uint8Array(n.digest())}function ro(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),o=t.getUint32(4,!0),i=t.getUint32(8,!0),s=t.getUint32(12,!0);return[new r([n,o],0),new r([i,s],0)]}class oo{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>
2=8)throw new io("Invalid padding: ".concat(t));if(n<0)throw new io("Invalid hash count: ".concat(n));if(e.length>0&&0===this.hashCount)throw new io("Invalid hash count: ".concat(n));if(0===e.length&&0!==t)throw new io("Invalid padding when bitmap length is 0: ".concat(t));this.fe=8*e.length-t,this.ge=r.fromNumber(this.fe)}pe(e,t,n){let o=e.add(t.multiply(r.fromNumber(n)));return 1===o.compare(to)&&(o=new r([o.getBits(0),o.getBits(1)],0)),o.modulo(this.ge).toNumber()}ye(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.fe)return!1;const t=no(e),[n,r]=ro(t);for(let o=0;o<this.hashCount;o++){const e=this.pe(n,r,o);if(!this.ye(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),i=new oo(o,r,t);return n.forEach(e=>i.insert(e)),i}insert(e){if(0===this.fe)return;const t=no(e),[n,r]=ro(t);for(let o=0;o<this.hashCount;o++){const e=this.pe(n,r,o);this.we(e)}}we(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class io extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class so{constructor(e,t,n,r,o){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,ao.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new so(ye.min(),r,new ft(Q),tr(),ur())}}class ao{constructor(e,t,n,r,o){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new ao(n,t,ur(),ur(),ur())}}class lo{constructor(e,t,n,r){this.Se=e,this.removedTargetIds=t,this.key=n,this.be=r}}class co{constructor(e,t){this.targetId=e,this.De=t}}class uo{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wt.EMPTY_BYTE_STRING,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class ho{constructor(){this.ve=0,this.Ce=mo(),this.Fe=wt.EMPTY_BYTE_STRING,this.Me=!1,this.xe=!0}get current(){return this.Me}get resumeToken(){return this.Fe}get Oe(){return 0!==this.ve}get Ne(){return this.xe}Be(e){e.approximateByteSize()>0&&(this.xe=!0,this.Fe=e)}Le(){let e=ur(),t=ur(),n=ur();return this.Ce.forEach((r,o)=>{switch(o){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:P(38017,{changeType:o})}}),new ao(this.Fe,this.Me,e,t,n)}ke(){this.xe=!1,this.Ce=mo()}qe(e,t){this.xe=!0,this.Ce=this.Ce.insert(e,t)}Qe(e){this.xe=!0,this.Ce=this.Ce.remove(e)}$e(){this.ve+=1}Ue(){this.ve-=1,O(this.ve>=0,3241,{ve:this.ve})}Ke(){this.xe=!0,this.Me=!0}}class fo{constructor(e){this.We=e,this.Ge=new Map,this.ze=tr(),this.je=po(),this.Je=po(),this.He=new ft(Q)}Ye(e){for(const t of e.Se)e.be&&e.be.isFoundDocument()?this.Ze(t,e.be):this.Xe(t,e.key,e.be);for(const t of e.removedTargetIds)this.Xe(t,e.key,e.be)}et(e){this.forEachTarget(e,t=>{const n=this.tt(t);switch(e.state){case 0:this.nt(t)&&n.Be(e.resumeToken);break;case 1:n.Ue(),n.Oe||n.ke(),n.Be(e.resumeToken);break;case 2:n.Ue(),n.Oe||this.removeTarget(t);break;case 3:this.nt(t)&&(n.Ke(),n.Be(e.resumeToken));break;case 4:this.nt(t)&&(this.rt(t),n.Be(e.resumeToken));break;default:P(56790,{state:e.state})}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Ge.forEach((e,n)=>{this.nt(n)&&t(n)})}it(e){const t=e.targetId,n=e.De.count,r=this.st(t);if(r){const o=r.target;if(Dn(o))if(0===n){const e=new ie(o.path);this.Xe(t,e,an.newNoDocument(e,ye.min()))}else O(1===n,20013,{expectedCount:n});else{const r=this.ot(t);if(r!==n){const n=this._t(e),o=n?this.ut(n,e,r):1;if(0!==o){this.rt(t);const e=2===o?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.He=this.He.insert(t,e)}null==eo||eo.ct(function(e,t,n,r,o){var i,s,a,l,c,u;const d={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},h=t.unchangedNames;return h&&(d.bloomFilter={applied:0===o,hashCount:null!==(i=null==h?void 0:h.hashCount)&&void 0!==i?i:0,bitmapLength:null!==(l=null===(a=null===(s=null==h?void 0:h.bits)||void 0===s?void 0:s.bitmap)||void 0===a?void 0:a.length)&&void 0!==l?l:0,padding:null!==(u=null===(c=null==h?void 0:h.bits)||void 0===c?void 0:c.padding)&&void 0!==u?u:0,mightContain:e=>{var t;return null!==(t=null==r?void 0:r.mightContain(e))&&void 0!==t&&t}}),d}(r,e.De,this.We.lt(),n,o))}}}}_t(e){const t=e.De.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:o=0}=t;let i,s;try{i=_t(n).toUint8Array()}catch(e){if(e instanceof bt)return I("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{s=new oo(i,r,o)}catch(e){return I(e instanceof io?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===s.fe?null:s}ut(e,t,n){return t.De.count===n-this.ht(e,t.targetId)?0:2}ht(e,t){const n=this.We.getRemoteKeysForTarget(t);let r=0;
2return n.forEach(n=>{const o=this.We.lt(),i="projects/".concat(o.projectId,"/databases/").concat(o.database,"/documents/").concat(n.path.canonicalString());e.mightContain(i)||(this.Xe(t,n,null),r++)}),r}Pt(e){const t=new Map;this.Ge.forEach((n,r)=>{const o=this.st(r);if(o){if(n.current&&Dn(o.target)){const t=new ie(o.target.path);this.Tt(t).has(r)||this.It(r,t)||this.Xe(r,t,an.newNoDocument(t,e))}n.Ne&&(t.set(r,n.Le()),n.ke())}});let n=ur();this.Je.forEach((e,t)=>{let r=!0;t.forEachWhile(e=>{const t=this.st(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)}),r&&(n=n.add(e))}),this.ze.forEach((t,n)=>n.setReadTime(e));const r=new so(e,t,this.He,this.ze,n);return this.ze=tr(),this.je=po(),this.Je=po(),this.He=new ft(Q),r}Ze(e,t){if(!this.nt(e))return;const n=this.It(e,t.key)?2:0;this.tt(e).qe(t.key,n),this.ze=this.ze.insert(t.key,t),this.je=this.je.insert(t.key,this.Tt(t.key).add(e)),this.Je=this.Je.insert(t.key,this.dt(t.key).add(e))}Xe(e,t,n){if(!this.nt(e))return;const r=this.tt(e);this.It(e,t)?r.qe(t,1):r.Qe(t),this.Je=this.Je.insert(t,this.dt(t).delete(e)),this.Je=this.Je.insert(t,this.dt(t).add(e)),n&&(this.ze=this.ze.insert(t,n))}removeTarget(e){this.Ge.delete(e)}ot(e){const t=this.tt(e).Le();return this.We.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}$e(e){this.tt(e).$e()}tt(e){let t=this.Ge.get(e);return t||(t=new ho,this.Ge.set(e,t)),t}dt(e){let t=this.Je.get(e);return t||(t=new gt(Q),this.Je=this.Je.insert(e,t)),t}Tt(e){let t=this.je.get(e);return t||(t=new gt(Q),this.je=this.je.insert(e,t)),t}nt(e){const t=null!==this.st(e);return t||T("WatchChangeAggregator","Detected inactive target",e),t}st(e){const t=this.Ge.get(e);return t&&t.Oe?null:this.We.Et(e)}rt(e){this.Ge.set(e,new ho),this.We.getRemoteKeysForTarget(e).forEach(t=>{this.Xe(e,t,null)})}It(e,t){return this.We.getRemoteKeysForTarget(e).has(t)}}function po(){return new ft(ie.comparator)}function mo(){return new ft(ie.comparator)}const go={asc:"ASCENDING",desc:"DESCENDING"},vo={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},yo={and:"AND",or:"OR"};class bo{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function wo(e,t){return e.useProto3Json||Oe(t)?t:{value:t}}function So(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function Eo(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function ko(e,t){return So(e,t.toTimestamp())}function _o(e){return O(!!e,49232),ye.fromTimestamp(function(e){const t=Et(e);return new ve(t.seconds,t.nanos)}(e))}function Co(e,t){return Ao(e,t).canonicalString()}function Ao(e,t){const n=function(e){return new ne(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function To(e){const t=ne.fromString(e);return O(Yo(t),10190,{key:t.toString()}),t}function xo(e,t){return Co(e.databaseId,t.path)}function Io(e,t){const n=To(t);if(n.get(1)!==e.databaseId.projectId)throw new M(L.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new M(L.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ie(Oo(n))}function No(e,t){return Co(e.databaseId,t)}function Po(e){const t=To(e);return 4===t.length?ne.emptyPath():Oo(t)}function Ro(e){return new ne(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function Oo(e){return O(e.length>4&&"documents"===e.get(4),29091,{key:e.toString()}),e.popFirst(5)}function Do(e,t,n){return{name:xo(e,t),fields:n.value.mapValue.fields}}function Lo(e,t){let n;if(t instanceof jr)n={update:Do(e,t.key,t.value)};else if(t instanceof Hr)n={delete:xo(e,t.key)};else if(t instanceof Ur)n={update:Do(e,t.key,t.data),updateMask:Go(t.fieldMask)};else{if(!(t instanceof qr))return P(16599,{Rt:t.type});n={verify:xo(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>function(e,t){const n=t.transform;if(n instanceof wr)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Sr)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof kr)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Cr)return{fieldPath:t.field.canonicalString(),increment:n.Ee};throw P(20930,{transform:t.transform})}(0,e))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:ko(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:P(27497)}(e,t.precondition)),n}function Mo(e,t){return{documents:[No(e,t.path)]}}function Fo(e,t){const n={structuredQuery:{}},r=t.path;let o;null!==t.collectionGroup?(o=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(o=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=No(e,o);const i=function(e){if(0!==e.length)return Ko(mn.create(e,"and"))}(t.filters);i&&(n.structuredQuery.where=i);const s=function(e){if(0!==e.length)return e.map(e=>function(e){return{field:qo(e.field),direction:zo(e.dir)}}(e))}(t.orderBy);s&&(n.structuredQuery.orderBy=s);const a=wo(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{Vt:n,parent:o}}function jo(e,t,n,r){const{Vt:o,parent:i}=Fo(e,t),s={},a=[];let l=0;
2return n.forEach(e=>{const t=r?e.alias:"aggregate_"+l++;s[t]=e.alias,"count"===e.aggregateType?a.push({alias:t,count:{}}):"avg"===e.aggregateType?a.push({alias:t,avg:{field:qo(e.fieldPath)}}):"sum"===e.aggregateType&&a.push({alias:t,sum:{field:qo(e.fieldPath)}})}),{request:{structuredAggregationQuery:{aggregations:a,structuredQuery:o.structuredQuery},parent:o.parent},ft:s,parent:i}}function Uo(e){let t=Po(e.parent);const n=e.structuredQuery,r=n.from?n.from.length:0;let o=null;if(r>0){O(1===r,65062);const e=n.from[0];e.allDescendants?o=e.collectionId:t=t.child(e.collectionId)}let i=[];n.where&&(i=function(e){const t=Vo(e);return t instanceof mn&&vn(t)?t.getFilters():[t]}(n.where));let s=[];n.orderBy&&(s=function(e){return e.map(e=>function(e){return new dn(Wo(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e))}(n.orderBy));let a=null;n.limit&&(a=function(e){let t;return t="object"==typeof e?e.value:e,Oe(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new ln(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new ln(n,t)}(n.endAt)),Mn(t,o,s,i,a,"F",l,c)}function Vo(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=Wo(e.unaryFilter.field);return pn.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=Wo(e.unaryFilter.field);return pn.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=Wo(e.unaryFilter.field);return pn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Wo(e.unaryFilter.field);return pn.create(o,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return P(61313);default:return P(60726)}}(e):void 0!==e.fieldFilter?function(e){return pn.create(Wo(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return P(58110);default:return P(50506)}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return mn.create(e.compositeFilter.filters.map(e=>Vo(e)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return P(1026)}}(e.compositeFilter.op))}(e):P(30097,{filter:e})}function zo(e){return go[e]}function Bo(e){return vo[e]}function Ho(e){return yo[e]}function qo(e){return{fieldPath:e.canonicalString()}}function Wo(e){return oe.fromServerFormat(e.fieldPath)}function Ko(e){return e instanceof pn?function(e){if("=="===e.op){if(Zt(e.value))return{unaryFilter:{field:qo(e.field),op:"IS_NAN"}};if($t(e.value))return{unaryFilter:{field:qo(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Zt(e.value))return{unaryFilter:{field:qo(e.field),op:"IS_NOT_NAN"}};if($t(e.value))return{unaryFilter:{field:qo(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qo(e.field),op:Bo(e.op),value:e.value}}}(e):e instanceof mn?function(e){const t=e.getFilters().map(e=>Ko(e));return 1===t.length?t[0]:{compositeFilter:{op:Ho(e.op),filters:t}}}(e):P(54877,{filter:e})}function Go(e){const t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}function Yo(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class Qo{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ye.min(),i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ye.min(),s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:wt.EMPTY_BYTE_STRING,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=i,this.resumeToken=s,this.expectedCount=a}withSequenceNumber(e){return new Qo(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new Qo(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Qo(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Qo(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class Xo{constructor(e){this.gt=e}}function Jo(e){const t=Uo({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Wn(t,t.limit,"L"):t}class $o{constructor(){}bt(e,t){this.Dt(e,t),t.vt()}Dt(e,t){if("nullValue"in e)this.Ct(t,5);else if("booleanValue"in e)this.Ct(t,10),t.Ft(e.booleanValue?1:0);else if("integerValue"in e)this.Ct(t,15),t.Ft(kt(e.integerValue));else if("doubleValue"in e){const n=kt(e.doubleValue);isNaN(n)?this.Ct(t,13):(this.Ct(t,15),De(n)?t.Ft(0):t.Ft(n))}else if("timestampValue"in e){let n=e.timestampValue;this.Ct(t,20),"string"==typeof n&&(n=Et(n)),t.Mt("".concat(n.seconds||"")),t.Ft(n.nanos||0)}else if("stringValue"in e)this.xt(e.stringValue,t),this.Ot(t);else if("bytesValue"in e)this.Ct(t,30),t.Nt(_t(e.bytesValue)),this.Ot(t);else if("referenceValue"in e)this.Bt(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.Ct(t,45),t.Ft(n.latitude||0),t.Ft(n.longitude||0)}else"mapValue"in e?rn(e)?this.Ct(t,Number.MAX_SAFE_INTEGER):tn(e)?this.Lt(e.mapValue,t):(this.kt(e.mapValue,t),this.Ot(t)):"arrayValue"in e?(this.qt(e.arrayValue,t),this.Ot(t)):P(19022,{Qt:e})}xt(e,t){this.Ct(t,25),this.$t(e,t)}$t(e,t){t.Mt(e)}kt(e,t){const n=e.fields||{};this.Ct(t,55);for(const r of Object.keys(n))this.xt(r,t),this.Dt(n[r],t)}Lt(e,t){var n,r;const o=e.fields||{};this.Ct(t,53);const i=Ut,s=(null===(r=null===(n=o[i].arrayValue)||void 0===n?void 0:n.values)||void 0===r?void 0:r.length)||0;this.Ct(t,15),t.Ft(kt(s)),this.xt(i,t),this.Dt(o[i],t)}qt(e,t){const n=e.values||[];this.Ct(t,50);for(const r of n)this.Dt(r,t)}
2Bt(e,t){this.Ct(t,37),ie.fromName(e).path.forEach(e=>{this.Ct(t,60),this.$t(e,t)})}Ct(e,t){e.Ft(t)}Ot(e){e.Ft(2)}}$o.Ut=new $o;class Zo{constructor(){this.Dn=new ei}addToCollectionParentIndex(e,t){return this.Dn.add(t),xe.resolve()}getCollectionParents(e,t){return xe.resolve(this.Dn.getEntries(t))}addFieldIndex(e,t){return xe.resolve()}deleteFieldIndex(e,t){return xe.resolve()}deleteAllFieldIndexes(e){return xe.resolve()}createTargetIndexes(e,t){return xe.resolve()}getDocumentsMatchingTarget(e,t){return xe.resolve(null)}getIndexType(e,t){return xe.resolve(0)}getFieldIndexes(e,t){return xe.resolve([])}getNextCollectionGroupToUpdate(e){return xe.resolve(null)}getMinOffset(e,t){return xe.resolve(ke.min())}getMinOffsetFromCollectionGroup(e,t){return xe.resolve(ke.min())}updateCollectionGroup(e,t,n){return xe.resolve()}updateIndexEntries(e,t){return xe.resolve()}}class ei{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new gt(ne.comparator),o=!r.has(n);return this.index[t]=r.add(n),o}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new gt(ne.comparator)).toArray()}}new Uint8Array(0);const ti={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},ni=41943040;class ri{static withCacheSize(e){return new ri(e,ri.DEFAULT_COLLECTION_PERCENTILE,ri.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}}ri.DEFAULT_COLLECTION_PERCENTILE=10,ri.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,ri.DEFAULT=new ri(ni,ri.DEFAULT_COLLECTION_PERCENTILE,ri.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),ri.DISABLED=new ri(-1,0,0);class oi{constructor(e){this._r=e}next(){return this._r+=2,this._r}static ar(){return new oi(0)}static ur(){return new oi(-1)}}const ii="LruGarbageCollector",si=1048576;function ai(e,t){let[n,r]=e,[o,i]=t;const s=Q(n,o);return 0===s?Q(r,i):s}class li{constructor(e){this.Tr=e,this.buffer=new gt(ai),this.Ir=0}dr(){return++this.Ir}Er(e){const t=[e,this.dr()];if(this.buffer.size<this.Tr)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();ai(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class ci{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Ar=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Rr(6e4)}stop(){this.Ar&&(this.Ar.cancel(),this.Ar=null)}get started(){return null!==this.Ar}Rr(e){T(ii,"Garbage collection scheduled in ".concat(e,"ms")),this.Ar=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Ar=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Ne(e)?T(ii,"Ignoring IndexedDB error during garbage collection: ",e):await Te(e)}await this.Rr(3e5)})}}class ui{constructor(e,t){this.Vr=e,this.params=t}calculateTargetCount(e,t){return this.Vr.mr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return xe.resolve(Pe.ue);const n=new li(t);return this.Vr.forEachTarget(e,e=>n.Er(e.sequenceNumber)).next(()=>this.Vr.gr(e,e=>n.Er(e))).next(()=>n.maxValue)}removeTargets(e,t,n){return this.Vr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.Vr.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(T("LruGarbageCollector","Garbage collection skipped; disabled"),xe.resolve(ti)):this.getCacheSize(e).next(n=>n<this.params.cacheSizeCollectionThreshold?(T("LruGarbageCollector","Garbage collection skipped; Cache size ".concat(n," is lower than threshold ").concat(this.params.cacheSizeCollectionThreshold)),ti):this.pr(e,t))}getCacheSize(e){return this.Vr.getCacheSize(e)}pr(e,t){let n,r,o,i,s,l,c;const u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(T("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of ".concat(this.params.maximumSequenceNumbersToCollect," from ").concat(t)),r=this.params.maximumSequenceNumbersToCollect):r=t,i=Date.now(),this.nthSequenceNumber(e,r))).next(r=>(n=r,s=Date.now(),this.removeTargets(e,n,t))).next(t=>(o=t,l=Date.now(),this.removeOrphanedDocuments(e,n))).next(e=>(c=Date.now(),A()<=a.$b.DEBUG&&T("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in ".concat(i-u,"ms\n\tDetermined least recently used ").concat(r," in ")+(s-i)+"ms\n"+"\tRemoved ".concat(o," targets in ")+(l-s)+"ms\n"+"\tRemoved ".concat(e," documents in ")+(c-l)+"ms\n"+"Total Duration: ".concat(c-u,"ms")),xe.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:o,documentsRemoved:e})))}}function di(e,t){return new ui(e,t)}class hi{constructor(){this.changes=new Zn(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,an.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?xe.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
2assertNotApplied(){}}class fi{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class pi{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(n=r,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==n&&Lr(n.mutation,e,yt.empty(),ve.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,ur()).next(()=>t))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ur();const r=ir();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,n).next(e=>{let t=rr();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){const n=ir();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,ur()))}populateOverlays(e,t,n){const r=[];return n.forEach(e=>{t.has(e)||r.push(e)}),this.documentOverlayCache.getOverlays(e,r).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,r){let o=tr();const i=ar(),s=ar();return t.forEach((e,t)=>{const s=n.get(t.key);r.has(t.key)&&(void 0===s||s.mutation instanceof Ur)?o=o.insert(t.key,t):void 0!==s?(i.set(t.key,s.mutation.getFieldMask()),Lr(s.mutation,t,s.mutation.getFieldMask(),ve.now())):i.set(t.key,yt.empty())}),this.recalculateAndSaveOverlays(e,o).next(e=>(e.forEach((e,t)=>i.set(e,t)),t.forEach((e,t)=>{var n;return s.set(e,new fi(t,null!==(n=i.get(e))&&void 0!==n?n:null))}),s))}recalculateAndSaveOverlays(e,t){const n=ar();let r=new ft((e,t)=>e-t),o=ur();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(const o of e)o.keys().forEach(e=>{const i=t.get(e);if(null===i)return;let s=n.get(e)||yt.empty();s=o.applyToLocalView(i,s),n.set(e,s);const a=(r.get(o.batchId)||ur()).add(e);r=r.insert(o.batchId,a)})}).next(()=>{const i=[],s=r.getReverseIterator();for(;s.hasNext();){const r=s.getNext(),a=r.key,l=r.value,c=sr();l.forEach(e=>{if(!o.has(e)){const r=Or(t.get(e),n.get(e));null!==r&&c.set(e,r),o=o.add(e)}}),i.push(this.documentOverlayCache.saveOverlays(e,a,c))}return xe.waitFor(i)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return ie.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Un(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next(o=>{const i=r-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-o.size):xe.resolve(ir());let s=be,a=o;return i.next(t=>xe.forEach(t,(t,n)=>(s<n.largestBatchId&&(s=n.largestBatchId),o.get(t)?xe.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{a=a.insert(t,e)}))).next(()=>this.populateOverlays(e,t,o)).next(()=>this.computeViews(e,a,t,ur())).next(e=>({batchId:s,changes:or(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ie(t)).next(e=>{let t=rr();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const o=t.collectionGroup;let i=rr();return this.indexManager.getCollectionParents(e,o).next(s=>xe.forEach(s,s=>{const a=function(e,t){return new Ln(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,s.child(o));return this.getDocumentsMatchingCollectionQuery(e,a,n,r).next(e=>{e.forEach((e,t)=>{i=i.insert(e,t)})})}).next(()=>i))}getDocumentsMatchingCollectionQuery(e,t,n,r){let o;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(i=>(o=i,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,o,r))).next(e=>{o.forEach((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,an.newInvalidDocument(r)))});let n=rr();return e.forEach((e,r)=>{const i=o.get(e);void 0!==i&&Lr(i.mutation,r,yt.empty(),ve.now()),Qn(t,r)&&(n=n.insert(e,r))}),n})}}
2class mi{constructor(e){this.serializer=e,this.Br=new Map,this.Lr=new Map}getBundleMetadata(e,t){return xe.resolve(this.Br.get(t))}saveBundleMetadata(e,t){return this.Br.set(t.id,function(e){return{id:e.id,version:e.version,createTime:_o(e.createTime)}}(t)),xe.resolve()}getNamedQuery(e,t){return xe.resolve(this.Lr.get(t))}saveNamedQuery(e,t){return this.Lr.set(t.name,function(e){return{name:e.name,query:Jo(e.bundledQuery),readTime:_o(e.readTime)}}(t)),xe.resolve()}}class gi{constructor(){this.overlays=new ft(ie.comparator),this.kr=new Map}getOverlay(e,t){return xe.resolve(this.overlays.get(t))}getOverlays(e,t){const n=ir();return xe.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}saveOverlays(e,t,n){return n.forEach((n,r)=>{this.wt(e,t,r)}),xe.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.kr.get(n);return void 0!==r&&(r.forEach(e=>this.overlays=this.overlays.remove(e)),this.kr.delete(n)),xe.resolve()}getOverlaysForCollection(e,t,n){const r=ir(),o=t.length+1,i=new ie(t.child("")),s=this.overlays.getIteratorFrom(i);for(;s.hasNext();){const e=s.getNext().value,i=e.getKey();if(!t.isPrefixOf(i.path))break;i.path.length===o&&e.largestBatchId>n&&r.set(e.getKey(),e)}return xe.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let o=new ft((e,t)=>e-t);const i=this.overlays.getIterator();for(;i.hasNext();){const e=i.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=o.get(e.largestBatchId);null===t&&(t=ir(),o=o.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const s=ir(),a=o.getIterator();for(;a.hasNext()&&(a.getNext().value.forEach((e,t)=>s.set(e,t)),!(s.size()>=r)););return xe.resolve(s)}wt(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.kr.get(r.largestBatchId).delete(n.key);this.kr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Gr(t,n));let o=this.kr.get(t);void 0===o&&(o=ur(),this.kr.set(t,o)),this.kr.set(t,o.add(n.key))}}class vi{constructor(){this.sessionToken=wt.EMPTY_BYTE_STRING}getSessionToken(e){return xe.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,xe.resolve()}}class yi{constructor(){this.qr=new gt(bi.Qr),this.$r=new gt(bi.Ur)}isEmpty(){return this.qr.isEmpty()}addReference(e,t){const n=new bi(e,t);this.qr=this.qr.add(n),this.$r=this.$r.add(n)}Kr(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.Wr(new bi(e,t))}Gr(e,t){e.forEach(e=>this.removeReference(e,t))}zr(e){const t=new ie(new ne([])),n=new bi(t,e),r=new bi(t,e+1),o=[];return this.$r.forEachInRange([n,r],e=>{this.Wr(e),o.push(e.key)}),o}jr(){this.qr.forEach(e=>this.Wr(e))}Wr(e){this.qr=this.qr.delete(e),this.$r=this.$r.delete(e)}Jr(e){const t=new ie(new ne([])),n=new bi(t,e),r=new bi(t,e+1);let o=ur();return this.$r.forEachInRange([n,r],e=>{o=o.add(e.key)}),o}containsKey(e){const t=new bi(e,0),n=this.qr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class bi{constructor(e,t){this.key=e,this.Hr=t}static Qr(e,t){return ie.comparator(e.key,t.key)||Q(e.Hr,t.Hr)}static Ur(e,t){return Q(e.Hr,t.Hr)||ie.comparator(e.key,t.key)}}class wi{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.er=1,this.Yr=new gt(bi.Qr)}checkEmpty(e){return xe.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const o=this.er;this.er++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const i=new Wr(o,t,n,r);this.mutationQueue.push(i);for(const s of r)this.Yr=this.Yr.add(new bi(s.key,o)),this.indexManager.addToCollectionParentIndex(e,s.key.path.popLast());return xe.resolve(i)}lookupMutationBatch(e,t){return xe.resolve(this.Zr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.Xr(n),o=r<0?0:r;return xe.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return xe.resolve(0===this.mutationQueue.length?Re:this.er-1)}getAllMutationBatches(e){return xe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new bi(t,0),r=new bi(t,Number.POSITIVE_INFINITY),o=[];return this.Yr.forEachInRange([n,r],e=>{const t=this.Zr(e.Hr);o.push(t)}),xe.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new gt(Q);
2return t.forEach(e=>{const t=new bi(e,0),r=new bi(e,Number.POSITIVE_INFINITY);this.Yr.forEachInRange([t,r],e=>{n=n.add(e.Hr)})}),xe.resolve(this.ei(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let o=n;ie.isDocumentKey(o)||(o=o.child(""));const i=new bi(new ie(o),0);let s=new gt(Q);return this.Yr.forEachWhile(e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(s=s.add(e.Hr)),!0)},i),xe.resolve(this.ei(s))}ei(e){const t=[];return e.forEach(e=>{const n=this.Zr(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){O(0===this.ti(t.batchId,"removed"),55003),this.mutationQueue.shift();let n=this.Yr;return xe.forEach(t.mutations,r=>{const o=new bi(r.key,t.batchId);return n=n.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.Yr=n})}rr(e){}containsKey(e,t){const n=new bi(t,0),r=this.Yr.firstAfterOrEqual(n);return xe.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,xe.resolve()}ti(e,t){return this.Xr(e)}Xr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Zr(e){const t=this.Xr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class Si{constructor(e){this.ni=e,this.docs=new ft(ie.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),o=r?r.size:0,i=this.ni(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:i}),this.size+=i-o,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return xe.resolve(n?n.document.mutableCopy():an.newInvalidDocument(t))}getEntries(e,t){let n=tr();return t.forEach(e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():an.newInvalidDocument(e))}),xe.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let o=tr();const i=t.path,s=new ie(i.child("__id-9223372036854775808__")),a=this.docs.getIteratorFrom(s);for(;a.hasNext();){const{key:e,value:{document:s}}=a.getNext();if(!i.isPrefixOf(e.path))break;e.path.length>i.length+1||_e(Ee(s),n)<=0||(r.has(s.key)||Qn(t,s))&&(o=o.insert(s.key,s.mutableCopy()))}return xe.resolve(o)}getAllFromCollectionGroup(e,t,n,r){P(9500)}ri(e,t){return xe.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new Ei(this)}getSize(e){return xe.resolve(this.size)}}class Ei extends hi{constructor(e){super(),this.Or=e}applyChanges(e){const t=[];
2return this.changes.forEach((n,r)=>{r.isValidDocument()?t.push(this.Or.addEntry(e,r)):this.Or.removeEntry(n)}),xe.waitFor(t)}getFromCache(e,t){return this.Or.getEntry(e,t)}getAllFromCache(e,t){return this.Or.getEntries(e,t)}}class ki{constructor(e){this.persistence=e,this.ii=new Zn(e=>Rn(e),On),this.lastRemoteSnapshotVersion=ye.min(),this.highestTargetId=0,this.si=0,this.oi=new yi,this.targetCount=0,this._i=oi.ar()}forEachTarget(e,t){return this.ii.forEach((e,n)=>t(n)),xe.resolve()}getLastRemoteSnapshotVersion(e){return xe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return xe.resolve(this.si)}allocateTargetId(e){return this.highestTargetId=this._i.next(),xe.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.si&&(this.si=t),xe.resolve()}hr(e){this.ii.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this._i=new oi(t),this.highestTargetId=t),e.sequenceNumber>this.si&&(this.si=e.sequenceNumber)}addTargetData(e,t){return this.hr(t),this.targetCount+=1,xe.resolve()}updateTargetData(e,t){return this.hr(t),xe.resolve()}removeTargetData(e,t){return this.ii.delete(t.target),this.oi.zr(t.targetId),this.targetCount-=1,xe.resolve()}removeTargets(e,t,n){let r=0;const o=[];return this.ii.forEach((i,s)=>{s.sequenceNumber<=t&&null===n.get(s.targetId)&&(this.ii.delete(i),o.push(this.removeMatchingKeysForTargetId(e,s.targetId)),r++)}),xe.waitFor(o).next(()=>r)}getTargetCount(e){return xe.resolve(this.targetCount)}getTargetData(e,t){const n=this.ii.get(t)||null;return xe.resolve(n)}addMatchingKeys(e,t,n){return this.oi.Kr(t,n),xe.resolve()}removeMatchingKeys(e,t,n){this.oi.Gr(t,n);const r=this.persistence.referenceDelegate,o=[];return r&&t.forEach(t=>{o.push(r.markPotentiallyOrphaned(e,t))}),xe.waitFor(o)}removeMatchingKeysForTargetId(e,t){return this.oi.zr(t),xe.resolve()}getMatchingKeysForTargetId(e,t){const n=this.oi.Jr(t);return xe.resolve(n)}containsKey(e,t){return xe.resolve(this.oi.containsKey(t))}}class _i{constructor(e,t){this.ai={},this.overlays={},this.ui=new Pe(0),this.ci=!1,this.ci=!0,this.li=new vi,this.referenceDelegate=e(this),this.hi=new ki(this),this.indexManager=new Zo,this.remoteDocumentCache=function(e){return new Si(e)}(e=>this.referenceDelegate.Pi(e)),this.serializer=new Xo(t),this.Ti=new mi(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ci=!1,Promise.resolve()}get started(){return this.ci}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new gi,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.ai[e.toKey()];return n||(n=new wi(t,this.referenceDelegate),this.ai[e.toKey()]=n),n}getGlobalsCache(){return this.li}getTargetCache(){return this.hi}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ti}runTransaction(e,t,n){T("MemoryPersistence","Starting transaction:",e);const r=new Ci(this.ui.next());return this.referenceDelegate.Ii(),n(r).next(e=>this.referenceDelegate.di(r).next(()=>e)).toPromise().then(e=>(r.raiseOnCommittedEvent(),e))}Ei(e,t){return xe.or(Object.values(this.ai).map(n=>()=>n.containsKey(e,t)))}}class Ci extends Ae{constructor(e){super(),this.currentSequenceNumber=e}}class Ai{constructor(e){this.persistence=e,this.Ai=new yi,this.Ri=null}static Vi(e){return new Ai(e)}get mi(){if(this.Ri)return this.Ri;throw P(60996)}addReference(e,t,n){return this.Ai.addReference(n,t),this.mi.delete(n.toString()),xe.resolve()}removeReference(e,t,n){return this.Ai.removeReference(n,t),this.mi.add(n.toString()),xe.resolve()}markPotentiallyOrphaned(e,t){return this.mi.add(t.toString()),xe.resolve()}removeTarget(e,t){this.Ai.zr(t.targetId).forEach(e=>this.mi.add(e.toString()));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.mi.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}Ii(){this.Ri=new Set}di(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return xe.forEach(this.mi,n=>{const r=ie.fromPath(n);return this.fi(e,r).next(e=>{e||t.removeEntry(r,ye.min())})}).next(()=>(this.Ri=null,t.apply(e)))}updateLimboDocument(e,t){return this.fi(e,t).next(e=>{e?this.mi.delete(t.toString()):this.mi.add(t.toString())})}Pi(e){return 0}
2fi(e,t){return xe.or([()=>xe.resolve(this.Ai.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ei(e,t)])}}class Ti{constructor(e,t){this.persistence=e,this.gi=new Zn(e=>Fe(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=di(this,t)}static Vi(e,t){return new Ti(e,t)}Ii(){}di(e){return xe.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}mr(e){const t=this.yr(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}yr(e){let t=0;return this.gr(e,e=>{t++}).next(()=>t)}gr(e,t){return xe.forEach(this.gi,(n,r)=>this.Sr(e,n,r).next(e=>e?xe.resolve():t(r)))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0;const r=this.persistence.getRemoteDocumentCache(),o=r.newChangeBuffer();return r.ri(e,r=>this.Sr(e,r,t).next(e=>{e||(n++,o.removeEntry(r,ye.min()))})).next(()=>o.apply(e)).next(()=>n)}markPotentiallyOrphaned(e,t){return this.gi.set(t,e.currentSequenceNumber),xe.resolve()}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.gi.set(n,e.currentSequenceNumber),xe.resolve()}removeReference(e,t,n){return this.gi.set(n,e.currentSequenceNumber),xe.resolve()}updateLimboDocument(e,t){return this.gi.set(t,e.currentSequenceNumber),xe.resolve()}Pi(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=Yt(e.data.value)),t}Sr(e,t,n){return xe.or([()=>this.persistence.Ei(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{const e=this.gi.get(t);return xe.resolve(void 0!==e&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class xi{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Is=n,this.ds=r}static Es(e,t){let n=ur(),r=ur();for(const o of t.docChanges)switch(o.type){case 0:n=n.add(o.doc.key);break;case 1:r=r.add(o.doc.key)}return new xi(e,t.fromCache,n,r)}}class Ii{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class Ni{constructor(){this.As=!1,this.Rs=!1,this.Vs=100,this.fs=(0,l.nr)()?8:Ie((0,l.ZQ)())>0?6:4}initialize(e,t){this.gs=e,this.indexManager=t,this.As=!0}getDocumentsMatchingQuery(e,t,n,r){const o={result:null};return this.ps(e,t).next(e=>{o.result=e}).next(()=>{if(!o.result)return this.ys(e,t,r,n).next(e=>{o.result=e})}).next(()=>{if(o.result)return;const n=new Ii;return this.ws(e,t,n).next(r=>{if(o.result=r,this.Rs)return this.Ss(e,t,n,r.size)})}).next(()=>o.result)}Ss(e,t,n,r){return n.documentReadCount<this.Vs?(A()<=a.$b.DEBUG&&T("QueryEngine","SDK will not create cache indexes for query:",Yn(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Vs,"documents"),xe.resolve()):(A()<=a.$b.DEBUG&&T("QueryEngine","Query:",Yn(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.fs*r?(A()<=a.$b.DEBUG&&T("QueryEngine","The SDK decides to create cache indexes for query:",Yn(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,zn(t))):xe.resolve())}ps(e,t){if(jn(t))return xe.resolve(null);let n=zn(t);return this.indexManager.getIndexType(e,n).next(r=>0===r?null:(null!==t.limit&&1===r&&(t=Wn(t,null,"F"),n=zn(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next(r=>{const o=ur(...r);return this.gs.getDocuments(e,o).next(r=>this.indexManager.getMinOffset(e,n).next(n=>{const i=this.bs(t,r);return this.Ds(t,i,o,n.readTime)?this.ps(e,Wn(t,null,"F")):this.vs(e,i,t,n)}))})))}ys(e,t,n,r){return jn(t)||r.isEqual(ye.min())?xe.resolve(null):this.gs.getDocuments(e,n).next(o=>{const i=this.bs(t,o);return this.Ds(t,i,n,r)?xe.resolve(null):(A()<=a.$b.DEBUG&&T("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),Yn(t)),this.vs(e,i,t,Se(r,be)).next(e=>e))})}bs(e,t){let n=new gt(Jn(e));return t.forEach((t,r)=>{Qn(e,r)&&(n=n.add(r))}),n}Ds(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const o="F"===e.limitType?t.last():t.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(r)>0)}ws(e,t,n){return A()<=a.$b.DEBUG&&T("QueryEngine","Using full collection scan to execute query:",Yn(t)),this.gs.getDocumentsMatchingQuery(e,t,ke.min(),n)}vs(e,t,n,r){return this.gs.getDocumentsMatchingQuery(e,n,r).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}const Pi="LocalStore",Ri=3e8;class Oi{constructor(e,t,n,r){this.persistence=e,this.Cs=t,this.serializer
2=r,this.Fs=new ft(Q),this.Ms=new Zn(e=>Rn(e),On),this.xs=new Map,this.Os=e.getRemoteDocumentCache(),this.hi=e.getTargetCache(),this.Ti=e.getBundleCache(),this.Ns(n)}Ns(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new pi(this.Os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Os.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Fs))}}function Di(e,t,n,r){return new Oi(e,t,n,r)}async function Li(e,t){const n=D(e);return await n.persistence.runTransaction("Handle user change","readonly",e=>{let r;return n.mutationQueue.getAllMutationBatches(e).next(o=>(r=o,n.Ns(t),n.mutationQueue.getAllMutationBatches(e))).next(t=>{const o=[],i=[];let s=ur();for(const e of r){o.push(e.batchId);for(const t of e.mutations)s=s.add(t.key)}for(const e of t){i.push(e.batchId);for(const t of e.mutations)s=s.add(t.key)}return n.localDocuments.getDocuments(e,s).next(e=>({Bs:e,removedBatchIds:o,addedBatchIds:i}))})})}function Mi(e){const t=D(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",e=>t.hi.getLastRemoteSnapshotVersion(e))}function Fi(e,t,n){let r=ur(),o=ur();return n.forEach(e=>r=r.add(e)),t.getEntries(e,r).next(e=>{let r=tr();return n.forEach((n,i)=>{const s=e.get(n);i.isFoundDocument()!==s.isFoundDocument()&&(o=o.add(n)),i.isNoDocument()&&i.version.isEqual(ye.min())?(t.removeEntry(n,i.readTime),r=r.insert(n,i)):!s.isValidDocument()||i.version.compareTo(s.version)>0||0===i.version.compareTo(s.version)&&s.hasPendingWrites?(t.addEntry(i),r=r.insert(n,i)):T(Pi,"Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",i.version)}),{Ls:r,ks:o}})}function ji(e,t){const n=D(e);return n.persistence.runTransaction("Get next mutation batch","readonly",e=>(void 0===t&&(t=Re),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)))}function Ui(e,t){const n=D(e);return n.persistence.runTransaction("Allocate target","readwrite",e=>{let r;return n.hi.getTargetData(e,t).next(o=>o?(r=o,xe.resolve(r)):n.hi.allocateTargetId(e).next(o=>(r=new Qo(t,o,"TargetPurposeListen",e.currentSequenceNumber),n.hi.addTargetData(e,r).next(()=>r))))}).then(e=>{const r=n.Fs.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Fs=n.Fs.insert(e.targetId,e),n.Ms.set(t,e.targetId)),e})}async function Vi(e,t,n){const r=D(e),o=r.Fs.get(t),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,e=>r.persistence.referenceDelegate.removeTarget(e,o))}catch(e){if(!Ne(e))throw e;T(Pi,"Failed to update sequence numbers for target ".concat(t,": ").concat(e))}r.Fs=r.Fs.remove(t),r.Ms.delete(o.target)}function zi(e,t,n){const r=D(e);let o=ye.min(),i=ur();return r.persistence.runTransaction("Execute query","readwrite",e=>function(e,t,n){const r=D(e),o=r.Ms.get(n);return void 0!==o?xe.resolve(r.Fs.get(o)):r.hi.getTargetData(t,n)}(r,e,zn(t)).next(t=>{if(t)return o=t.lastLimboFreeSnapshotVersion,r.hi.getMatchingKeysForTargetId(e,t.targetId).next(e=>{i=e})}).next(()=>r.Cs.getDocumentsMatchingQuery(e,t,n?o:ye.min(),n?i:ur())).next(e=>(Bi(r,Xn(t),e),{documents:e,qs:i})))}function Bi(e,t,n){let r=e.xs.get(t)||ye.min();n.forEach((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)}),e.xs.set(t,r)}class Hi{constructor(){this.activeTargetIds=hr()}Gs(e){this.activeTargetIds=this.activeTargetIds.add(e)}zs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class qi{constructor(){this.Fo=new Hi,this.Mo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.Fo.Gs(e),this.Mo[e]||"not-current"}updateQueryState(e,t,n){this.Mo[e]=t}removeLocalQueryTarget(e){this.Fo.zs(e)}isLocalQueryTarget(e){return this.Fo.activeTargetIds.has(e)}clearQueryState(e){delete this.Mo[e]}getAllActiveQueryTargets(){return this.Fo.activeTargetIds}isActiveQueryTarget(e){return this.Fo.activeTargetIds.has(e)}start(){return this.Fo=new Hi,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Wi{xo(e){}shutdown(){}}const Ki="ConnectivityMonitor";class Gi{constructor(){this.Oo=()=>this.No(),this.Bo=()=>this.Lo(),this.ko=[],this.qo()}xo(e){this.ko.push(e)}shutdown(){window.removeEventListener("online",this.Oo),window.removeEventListener("offline",this.Bo)}qo(){window.addEventListener("online",this.Oo),window.addEventListener("offline",this.Bo)}No(){T(Ki,"Network connectivity changed: AVAILABLE");for(const e of this.ko)e(0)}Lo(){T(Ki,"Network connectivity changed: UNAVAILABLE");for(const e of this.ko)e(1)}static C(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Yi=null;function Qi(){return null===Yi?Yi=268435456+Math.round(2147483648*Math.random()):Yi++,"0x"+Yi.toString(16)}const Xi="RestConnection",Ji={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
2Query:"runAggregationQuery"};class $i{get Qo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.$o=t+"://"+e.host,this.Uo="projects/".concat(n,"/databases/").concat(r),this.Ko=this.databaseId.database===Ot?"project_id=".concat(n):"project_id=".concat(n,"&database_id=").concat(r)}Wo(e,t,n,r,o){const i=Qi(),s=this.Go(e,t.toUriEncodedString());T(Xi,"Sending RPC '".concat(e,"' ").concat(i,":"),s,n);const a={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.Ko};this.zo(a,r,o);const{host:c}=new URL(s),u=(0,l.zJ)(c);return this.jo(e,s,a,n,u).then(t=>(T(Xi,"Received RPC '".concat(e,"' ").concat(i,": "),t),t),t=>{throw I(Xi,"RPC '".concat(e,"' ").concat(i," failed with error: "),t,"url: ",s,"request:",n),t})}Jo(e,t,n,r,o,i){return this.Wo(e,t,n,r,o)}zo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+_,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}Go(e,t){const n=Ji[e];return"".concat(this.$o,"/v1/").concat(t,":").concat(n)}terminate(){}}class Zi{constructor(e){this.Ho=e.Ho,this.Yo=e.Yo}Zo(e){this.Xo=e}e_(e){this.t_=e}n_(e){this.r_=e}onMessage(e){this.i_=e}close(){this.Yo()}send(e){this.Ho(e)}s_(){this.Xo()}o_(){this.t_()}__(e){this.r_(e)}a_(e){this.i_(e)}}const es="WebChannelConnection";class ts extends $i{constructor(e){super(e),this.u_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}jo(e,t,n,r,o){const i=Qi();return new Promise((o,s)=>{const a=new d;a.setWithCredentials(!0),a.listenOnce(f.COMPLETE,()=>{try{switch(a.getLastErrorCode()){case p.NO_ERROR:const t=a.getResponseJson();T(es,"XHR for RPC '".concat(e,"' ").concat(i," received:"),JSON.stringify(t)),o(t);break;case p.TIMEOUT:T(es,"RPC '".concat(e,"' ").concat(i," timed out")),s(new M(L.DEADLINE_EXCEEDED,"Request time out"));break;case p.HTTP_ERROR:const n=a.getStatus();if(T(es,"RPC '".concat(e,"' ").concat(i," failed with status:"),n,"response text:",a.getResponseText()),n>0){let e=a.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(L).indexOf(t)>=0?t:L.UNKNOWN}(t.status);s(new M(e,t.message))}else s(new M(L.UNKNOWN,"Server responded with status "+a.getStatus()))}else s(new M(L.UNAVAILABLE,"Connection failed."));break;default:P(9055,{c_:e,streamId:i,l_:a.getLastErrorCode(),h_:a.getLastError()})}}finally{T(es,"RPC '".concat(e,"' ").concat(i," completed."))}});const l=JSON.stringify(r);T(es,"RPC '".concat(e,"' ").concat(i," sending request:"),r),a.send(t,"POST",l,n,15)})}P_(e,t,n){const r=Qi(),o=[this.$o,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=y(),s=v(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(a.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(a.useFetchStreams=!0),this.zo(a.initMessageHeaders,t,n),a.encodeInitMessageHeaders=!0;const c=o.join("");T(es,"Creating RPC '".concat(e,"' stream ").concat(r,": ").concat(c),a);const u=i.createWebChannel(c,a);this.T_(u);let d=!1,f=!1;const p=new Zi({Ho:t=>{f?T(es,"Not sending because RPC '".concat(e,"' stream ").concat(r," is closed:"),t):(d||(T(es,"Opening RPC '".concat(e,"' stream ").concat(r," transport.")),u.open(),d=!0),T(es,"RPC '".concat(e,"' stream ").concat(r," sending:"),t),u.send(t))},Yo:()=>u.close()}),b=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(e){setTimeout(()=>{throw e},0)}})};return b(u,h.EventType.OPEN,()=>{f||(T(es,"RPC '".concat(e,"' stream ").concat(r," transport opened.")),p.s_())}),b(u,h.EventType.CLOSE,()=>{f||(f=!0,T(es,"RPC '".concat(e,"' stream ").concat(r," transport closed")),p.__(),this.I_(u))}
2),b(u,h.EventType.ERROR,t=>{f||(f=!0,I(es,"RPC '".concat(e,"' stream ").concat(r," transport errored. Name:"),t.name,"Message:",t.message),p.__(new M(L.UNAVAILABLE,"The operation could not be completed")))}),b(u,h.EventType.MESSAGE,t=>{var n;if(!f){const o=t.data[0];O(!!o,16349);const i=o,s=(null==i?void 0:i.error)||(null===(n=i[0])||void 0===n?void 0:n.error);if(s){T(es,"RPC '".concat(e,"' stream ").concat(r," received error:"),s);const t=s.status;let n=function(e){const t=Xr[e];if(void 0!==t)return Zr(t)}(t),o=s.message;void 0===n&&(n=L.INTERNAL,o="Unknown error status: "+t+" with message "+s.message),f=!0,p.__(new M(n,o)),u.close()}else T(es,"RPC '".concat(e,"' stream ").concat(r," received:"),o),p.a_(o)}}),b(s,g.STAT_EVENT,t=>{t.stat===m.PROXY?T(es,"RPC '".concat(e,"' stream ").concat(r," detected buffering proxy")):t.stat===m.NOPROXY&&T(es,"RPC '".concat(e,"' stream ").concat(r," detected no buffering proxy"))}),setTimeout(()=>{p.o_()},0),p}terminate(){this.u_.forEach(e=>e.close()),this.u_=[]}T_(e){this.u_.push(e)}I_(e){this.u_=this.u_.filter(t=>t===e)}}function ns(){return"undefined"!=typeof document?document:null}function rs(e){return new bo(e,!0)}class os{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.Fi=e,this.timerId=t,this.d_=n,this.E_=r,this.A_=o,this.R_=0,this.V_=null,this.m_=Date.now(),this.reset()}reset(){this.R_=0}f_(){this.R_=this.A_}g_(e){this.cancel();const t=Math.floor(this.R_+this.p_()),n=Math.max(0,Date.now()-this.m_),r=Math.max(0,t-n);r>0&&T("ExponentialBackoff","Backing off for ".concat(r," ms (base delay: ").concat(this.R_," ms, delay with jitter: ").concat(t," ms, last attempt: ").concat(n," ms ago)")),this.V_=this.Fi.enqueueAfterDelay(this.timerId,r,()=>(this.m_=Date.now(),e())),this.R_*=this.E_,this.R_<this.d_&&(this.R_=this.d_),this.R_>this.A_&&(this.R_=this.A_)}y_(){null!==this.V_&&(this.V_.skipDelay(),this.V_=null)}cancel(){null!==this.V_&&(this.V_.cancel(),this.V_=null)}p_(){return(Math.random()-.5)*this.R_}}const is="PersistentStream";class ss{constructor(e,t,n,r,o,i,s,a){this.Fi=e,this.w_=n,this.S_=r,this.connection=o,this.authCredentialsProvider=i,this.appCheckCredentialsProvider=s,this.listener=a,this.state=0,this.b_=0,this.D_=null,this.v_=null,this.stream=null,this.C_=0,this.F_=new os(e,t)}M_(){return 1===this.state||5===this.state||this.x_()}x_(){return 2===this.state||3===this.state}start(){this.C_=0,4!==this.state?this.auth():this.O_()}async stop(){this.M_()&&await this.close(0)}N_(){this.state=0,this.F_.reset()}B_(){this.x_()&&null===this.D_&&(this.D_=this.Fi.enqueueAfterDelay(this.w_,6e4,()=>this.L_()))}k_(e){this.q_(),this.stream.send(e)}async L_(){if(this.x_())return this.close(0)}q_(){this.D_&&(this.D_.cancel(),this.D_=null)}Q_(){this.v_&&(this.v_.cancel(),this.v_=null)}async close(e,t){this.q_(),this.Q_(),this.F_.cancel(),this.b_++,4!==e?this.F_.reset():t&&t.code===L.RESOURCE_EXHAUSTED?(x(t.toString()),x("Using maximum backoff delay to prevent overloading the backend."),this.F_.f_()):t&&t.code===L.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.U_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.n_(t)}U_(){}auth(){this.state=1;const e=this.K_(this.b_),t=this.b_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(e=>{let[n,r]=e;this.b_===t&&this.W_(n,r)},t=>{e(()=>{const e=new M(L.UNKNOWN,"Fetching auth token failed: "+t.message);return this.G_(e)})})}W_(e,t){const n=this.K_(this.b_);this.stream=this.z_(e,t),this.stream.Zo(()=>{n(()=>this.listener.Zo())}),this.stream.e_(()=>{n(()=>(this.state=2,this.v_=this.Fi.enqueueAfterDelay(this.S_,1e4,()=>(this.x_()&&(this.state=3),Promise.resolve())),this.listener.e_()))}),this.stream.n_(e=>{n(()=>this.G_(e))}),this.stream.onMessage(e=>{n(()=>1==++this.C_?this.j_(e):this.onNext(e))})}O_(){this.state=5,this.F_.g_(async()=>{this.state=0,this.start()})}G_(e){return T(is,"close with error: ".concat(e)),this.stream=null,this.close(4,e)}K_(e){return t=>{this.Fi.enqueueAndForget(()=>this.b_===e?t():(T(is,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class as extends ss{constructor(e,t,n,r,o,i){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,i),this.serializer
2=o}z_(e,t){return this.connection.P_("Listen",e,t)}j_(e){return this.onNext(e)}onNext(e){this.F_.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:P(39313,{state:e})}(t.targetChange.targetChangeType||"NO_CHANGE"),o=t.targetChange.targetIds||[],i=function(e,t){return e.useProto3Json?(O(void 0===t||"string"==typeof t,58123),wt.fromBase64String(t||"")):(O(void 0===t||t instanceof Buffer||t instanceof Uint8Array,16193),wt.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),s=t.targetChange.cause,a=s&&function(e){const t=void 0===e.code?L.UNKNOWN:Zr(e.code);return new M(t,e.message||"")}(s);n=new uo(r,o,i,a||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const o=Io(e,r.document.name),i=_o(r.document.updateTime),s=r.document.createTime?_o(r.document.createTime):ye.min(),a=new on({mapValue:{fields:r.document.fields}}),l=an.newFoundDocument(o,i,s,a),c=r.targetIds||[],u=r.removedTargetIds||[];n=new lo(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const o=Io(e,r.document),i=r.readTime?_o(r.readTime):ye.min(),s=an.newNoDocument(o,i),a=r.removedTargetIds||[];n=new lo([],a,s.key,s)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const o=Io(e,r.document),i=r.removedTargetIds||[];n=new lo([],i,o,null)}else{if(!("filter"in t))return P(11601,{At:t});{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:o}=e,i=new Qr(r,o),s=e.targetId;n=new co(s,i)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return ye.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?ye.min():t.readTime?_o(t.readTime):ye.min()}(e);return this.listener.J_(t,n)}H_(e){const t={};t.database=Ro(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=Dn(r)?{documents:Mo(e,r)}:{query:Fo(e,r).Vt},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=Eo(e,t.resumeToken);const r=wo(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(ye.min())>0){n.readTime=So(e,t.snapshotVersion.toTimestamp());const r=wo(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return P(28987,{purpose:e})}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.k_(t)}Y_(e){const t={};t.database=Ro(this.serializer),t.removeTarget=e,this.k_(t)}}class ls extends ss{constructor(e,t,n,r,o,i){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,i),this.serializer=o}get Z_(){return this.C_>0}start(){this.lastStreamToken=void 0,super.start()}U_(){this.Z_&&this.X_([])}z_(e,t){return this.connection.P_("Write",e,t)}j_(e){return O(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,O(!e.writeResults||0===e.writeResults.length,55816),this.listener.ea()}onNext(e){O(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.F_.reset();const t=function(e,t){return e&&e.length>0?(O(void 0!==t,14353),e.map(e=>function(e,t){let n=e.updateTime?_o(e.updateTime):_o(t);return n.isEqual(ye.min())&&(n=_o(t)),new Ir(n,e.transformResults||[])}(e,t))):[]}(e.writeResults,e.commitTime),n=_o(e.commitTime);return this.listener.ta(n,t)}na(){const e={};e.database=Ro(this.serializer),this.k_(e)}X_(e){const t={streamToken:this.lastStreamToken,writes:e.map(e=>Lo(this.serializer,e))};this.k_(t)}}class cs{}class us extends cs{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.ra=!1}ia(){if(this.ra)throw new M(L.FAILED_PRECONDITION,"The client has already been terminated.")}Wo(e,t,n,r){return this.ia(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(o=>{let[i,s]=o;return this.connection.Wo(e,Ao(t,n),r,i,s)}).catch(e=>{throw"FirebaseError"===e.name?(e.code===L.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new M(L.UNKNOWN,e.toString())})}Jo(e,t,n,r,o){return this.ia(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(i=>{let[s,a]=i;return this.connection.Jo(e,Ao(t,n),r,s,a,o)}).catch(e=>{throw"FirebaseError"===e.name?(e.code===L.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new M(L.UNKNOWN,e.toString())})}terminate(){this.ra=!0,this.connection.terminate()}}class ds{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.sa=0,this.oa=null,this._a=!0}aa(){0===this.sa&&(this.ua("Unknown"),this.oa=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.oa=null,this.ca("Backend didn't respond within 10 seconds."),this.ua("Offline"),Promise.resolve())))}la(e){"Online"===this.state?this.ua("Unknown"):(this.sa++,this.sa>=1&&(this.ha(),this.ca("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.ua("Offline")))}set(e){this.ha(),this.sa=0,"Online"===e&&(this._a=!1),this.ua(e)}ua(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ca(e){const t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this._a?(x(t),this._a=!1):T("OnlineStateTracker",t)}ha(){null!==this.oa&&(this.oa.cancel(),this.oa=null)}}const hs="RemoteStore";class fs{constructor(e,t,n,r,o){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Pa=[],this.Ta=new Map,this.Ia=new Set,this.da=[],this.Ea=o,this.Ea.xo(e=>{n.enqueueAndForget(async()=>
2{Es(this)&&(T(hs,"Restarting streams for network reachability change."),await async function(e){const t=D(e);t.Ia.add(4),await ms(t),t.Aa.set("Unknown"),t.Ia.delete(4),await ps(t)}(this))})}),this.Aa=new ds(n,r)}}async function ps(e){if(Es(e))for(const t of e.da)await t(!0)}async function ms(e){for(const t of e.da)await t(!1)}function gs(e,t){const n=D(e);n.Ta.has(t.targetId)||(n.Ta.set(t.targetId,t),Ss(n)?ws(n):zs(n).x_()&&ys(n,t))}function vs(e,t){const n=D(e),r=zs(n);n.Ta.delete(t),r.x_()&&bs(n,t),0===n.Ta.size&&(r.x_()?r.B_():Es(n)&&n.Aa.set("Unknown"))}function ys(e,t){if(e.Ra.$e(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(ye.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}zs(e).H_(t)}function bs(e,t){e.Ra.$e(t),zs(e).Y_(t)}function ws(e){e.Ra=new fo({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),Et:t=>e.Ta.get(t)||null,lt:()=>e.datastore.serializer.databaseId}),zs(e).start(),e.Aa.aa()}function Ss(e){return Es(e)&&!zs(e).M_()&&e.Ta.size>0}function Es(e){return 0===D(e).Ia.size}function ks(e){e.Ra=void 0}async function _s(e){e.Aa.set("Online")}async function Cs(e){e.Ta.forEach((t,n)=>{ys(e,t)})}async function As(e,t){ks(e),Ss(e)?(e.Aa.la(t),ws(e)):e.Aa.set("Unknown")}async function Ts(e,t,n){if(e.Aa.set("Online"),t instanceof uo&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.Ta.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.Ta.delete(r),e.Ra.removeTarget(r))}(e,t)}catch(n){T(hs,"Failed to remove targets %s: %s ",t.targetIds.join(","),n),await xs(e,n)}else if(t instanceof lo?e.Ra.Ye(t):t instanceof co?e.Ra.it(t):e.Ra.et(t),!n.isEqual(ye.min()))try{const t=await Mi(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.Ra.Pt(t);
2return n.targetChanges.forEach((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const o=e.Ta.get(r);o&&e.Ta.set(r,o.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach((t,n)=>{const r=e.Ta.get(t);if(!r)return;e.Ta.set(t,r.withResumeToken(wt.EMPTY_BYTE_STRING,r.snapshotVersion)),bs(e,t);const o=new Qo(r.target,t,n,r.sequenceNumber);ys(e,o)}),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){T(hs,"Failed to raise snapshot:",t),await xs(e,t)}}async function xs(e,t,n){if(!Ne(t))throw t;e.Ia.add(1),await ms(e),e.Aa.set("Offline"),n||(n=()=>Mi(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{T(hs,"Retrying IndexedDB access"),await n(),e.Ia.delete(1),await ps(e)})}function Is(e,t){return t().catch(n=>xs(e,n,t))}async function Ns(e){const t=D(e),n=Bs(t);let r=t.Pa.length>0?t.Pa[t.Pa.length-1].batchId:Re;for(;Ps(t);)try{const e=await ji(t.localStore,r);if(null===e){0===t.Pa.length&&n.B_();break}r=e.batchId,Rs(t,e)}catch(e){await xs(t,e)}Os(t)&&Ds(t)}function Ps(e){return Es(e)&&e.Pa.length<10}function Rs(e,t){e.Pa.push(t);const n=Bs(e);n.x_()&&n.Z_&&n.X_(t.mutations)}function Os(e){return Es(e)&&!Bs(e).M_()&&e.Pa.length>0}function Ds(e){Bs(e).start()}async function Ls(e){Bs(e).na()}async function Ms(e){const t=Bs(e);for(const n of e.Pa)t.X_(n.mutations)}async function Fs(e,t,n){const r=e.Pa.shift(),o=Kr.from(r,t,n);await Is(e,()=>e.remoteSyncer.applySuccessfulWrite(o)),await Ns(e)}async function js(e,t){t&&Bs(e).Z_&&await async function(e,t){if(function(e){return $r(e)&&e!==L.ABORTED}(t.code)){const n=e.Pa.shift();Bs(e).N_(),await Is(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await Ns(e)}}(e,t),Os(e)&&Ds(e)}async function Us(e,t){const n=D(e);n.asyncQueue.verifyOperationInProgress(),T(hs,"RemoteStore received new credentials");const r=Es(n);n.Ia.add(3),await ms(n),r&&n.Aa.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.Ia.delete(3),await ps(n)}async function Vs(e,t){const n=D(e);t?(n.Ia.delete(2),await ps(n)):t||(n.Ia.add(2),await ms(n),n.Aa.set("Unknown"))}function zs(e){return e.Va||(e.Va=function(e,t,n){const r=D(e);return r.ia(),new as(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Zo:_s.bind(null,e),e_:Cs.bind(null,e),n_:As.bind(null,e),J_:Ts.bind(null,e)}),e.da.push(async t=>{t?(e.Va.N_(),Ss(e)?ws(e):e.Aa.set("Unknown")):(await e.Va.stop(),ks(e))})),e.Va}function Bs(e){return e.ma||(e.ma=function(e,t,n){const r=D(e);return r.ia(),new ls(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Zo:()=>Promise.resolve(),e_:Ls.bind(null,e),n_:js.bind(null,e),ea:Ms.bind(null,e),ta:Fs.bind(null,e)}),e.da.push(async t=>{t?(e.ma.N_(),await Ns(e)):(await e.ma.stop(),e.Pa.length>0&&(T(hs,"Stopping write stream with ".concat(e.Pa.length," pending writes")),e.Pa=[]))})),e.ma}class Hs{constructor(e,t,n,r,o){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=o,this.deferred=new F,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,o){const i=Date.now()+n,s=new Hs(e,t,i,r,o);return s.start(n),s}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new M(L.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function qs(e,t){if(x("AsyncQueue","".concat(t,": ").concat(e)),Ne(e))return new M(L.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}class Ws{static emptySet(e){return new Ws(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||ie.comparator(t.key,n.key):(e,t)=>ie.comparator(e.key,t.key),this.keyedMap=rr(),this.sortedSet=new ft(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof Ws))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new Ws;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class Ks{constructor(){this.fa=new ft(ie.comparator)}track(e){const t=e.doc.key,n=this.fa.get(t);n?0!==e.type&&3===n.type?this.fa=this.fa.insert(t,e):3===e.type&&1!==n.type?this.fa=this.fa.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.fa=this.fa.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.fa=this.fa.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.fa=this.fa.remove(t):1===e.type&&2===n.type?this.fa=this.fa.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.fa=this.fa.insert(t,{type:2,doc:e.doc}):P(63341,{At:e,ga:n}):this.fa=this.fa.insert(t,e)}pa(){const e=[];return this.fa.inorderTraversal((t,n)=>{e.push(n)}),e}}class Gs{constructor(e,t,n,r,o,i,s,a,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=o,this.fromCache=i,this.syncStateChanged=s,this.excludesMetadataChanges=a,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,o){const i=[];
2return t.forEach(e=>{i.push({type:0,doc:e})}),new Gs(e,t,Ws.emptySet(t),i,n,r,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Kn(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}class Ys{constructor(){this.ya=void 0,this.wa=[]}Sa(){return this.wa.some(e=>e.ba())}}class Qs{constructor(){this.queries=Xs(),this.onlineState="Unknown",this.Da=new Set}terminate(){!function(e,t){const n=D(e),r=n.queries;n.queries=Xs(),r.forEach((e,n)=>{for(const r of n.wa)r.onError(t)})}(this,new M(L.ABORTED,"Firestore shutting down"))}}function Xs(){return new Zn(e=>Gn(e),Kn)}async function Js(e,t){const n=D(e);let r=3;const o=t.query;let i=n.queries.get(o);i?!i.Sa()&&t.ba()&&(r=2):(i=new Ys,r=t.ba()?0:1);try{switch(r){case 0:i.ya=await n.onListen(o,!0);break;case 1:i.ya=await n.onListen(o,!1);break;case 2:await n.onFirstRemoteStoreListen(o)}}catch(e){const n=qs(e,"Initialization of query '".concat(Yn(t.query),"' failed"));return void t.onError(n)}n.queries.set(o,i),i.wa.push(t),t.va(n.onlineState),i.ya&&t.Ca(i.ya)&&ta(n)}async function $s(e,t){const n=D(e),r=t.query;let o=3;const i=n.queries.get(r);if(i){const e=i.wa.indexOf(t);e>=0&&(i.wa.splice(e,1),0===i.wa.length?o=t.ba()?0:1:!i.Sa()&&t.ba()&&(o=2))}switch(o){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function Zs(e,t){const n=D(e);let r=!1;for(const o of t){const e=o.query,t=n.queries.get(e);if(t){for(const e of t.wa)e.Ca(o)&&(r=!0);t.ya=o}}r&&ta(n)}function ea(e,t,n){const r=D(e),o=r.queries.get(t);if(o)for(const i of o.wa)i.onError(n);r.queries.delete(t)}
2function ta(e){e.Da.forEach(e=>{e.next()})}var na,ra;(ra=na||(na={})).Fa="default",ra.Cache="cache";class oa{constructor(e,t,n){this.query=e,this.Ma=t,this.xa=!1,this.Oa=null,this.onlineState="Unknown",this.options=n||{}}Ca(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new Gs(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.xa?this.Na(e)&&(this.Ma.next(e),t=!0):this.Ba(e,this.onlineState)&&(this.La(e),t=!0),this.Oa=e,t}onError(e){this.Ma.error(e)}va(e){this.onlineState=e;let t=!1;return this.Oa&&!this.xa&&this.Ba(this.Oa,e)&&(this.La(this.Oa),t=!0),t}Ba(e,t){if(!e.fromCache)return!0;if(!this.ba())return!0;const n="Offline"!==t;return(!this.options.ka||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Na(e){if(e.docChanges.length>0)return!0;const t=this.Oa&&this.Oa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}La(e){e=Gs.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.xa=!0,this.Ma.next(e)}ba(){return this.options.source!==na.Cache}}class ia{constructor(e){this.key=e}}class sa{constructor(e){this.key=e}}class aa{constructor(e,t){this.query=e,this.Ha=t,this.Ya=null,this.hasCachedResults=!1,this.current=!1,this.Za=ur(),this.mutatedKeys=ur(),this.Xa=Jn(e),this.eu=new Ws(this.Xa)}get tu(){return this.Ha}nu(e,t){const n=t?t.ru:new Ks,r=t?t.eu:this.eu;let o=t?t.mutatedKeys:this.mutatedKeys,i=r,s=!1;const a="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((e,t)=>{const c=r.get(e),u=Qn(this.query,t)?t:null,d=!!c&&this.mutatedKeys.has(c.key),h=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations);let f=!1;c&&u?c.data.isEqual(u.data)?d!==h&&(n.track({type:3,doc:u}),f=!0):this.iu(c,u)||(n.track({type:2,doc:u}),f=!0,(a&&this.Xa(u,a)>0||l&&this.Xa(u,l)<0)&&(s=!0)):!c&&u?(n.track({type:0,doc:u}),f=!0):c&&!u&&(n.track({type:1,doc:c}),f=!0,(a||l)&&(s=!0)),f&&(u?(i=i.add(u),o=h?o.add(e):o.delete(e)):(i=i.delete(e),o=o.delete(e)))}),null!==this.query.limit)for(;i.size>this.query.limit;){const e="F"===this.query.limitType?i.last():i.first();i=i.delete(e.key),o=o.delete(e.key),n.track({type:1,doc:e})}return{eu:i,ru:n,Ds:s,mutatedKeys:o}}iu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const o=this.eu;this.eu=e.eu,this.mutatedKeys=e.mutatedKeys;const i=e.ru.pa();i.sort((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return P(20277,{At:e})}};return n(e)-n(t)}(e.type,t.type)||this.Xa(e.doc,t.doc)),this.su(n),r=null!=r&&r;const s=t&&!r?this.ou():[],a=0===this.Za.size&&this.current&&!r?1:0,l=a!==this.Ya;return this.Ya=a,0!==i.length||l?{snapshot:new Gs(this.query,e.eu,o,i,e.mutatedKeys,0===a,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),_u:s}:{_u:s}}va(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({eu:this.eu,ru:new Ks,mutatedKeys:this.mutatedKeys,Ds:!1},!1)):{_u:[]}}au(e){return!this.Ha.has(e)&&!!this.eu.has(e)&&!this.eu.get(e).hasLocalMutations}su(e){e&&(e.addedDocuments.forEach(e=>this.Ha=this.Ha.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Ha=this.Ha.delete(e)),this.current=e.current)}ou(){if(!this.current)return[];const e=this.Za;this.Za=ur(),this.eu.forEach(e=>{this.au(e.key)&&(this.Za=this.Za.add(e.key))});const t=[];return e.forEach(e=>{this.Za.has(e)||t.push(new sa(e))}
2),this.Za.forEach(n=>{e.has(n)||t.push(new ia(n))}),t}uu(e){this.Ha=e.qs,this.Za=ur();const t=this.nu(e.documents);return this.applyChanges(t,!0)}cu(){return Gs.fromInitialDocuments(this.query,this.eu,this.mutatedKeys,0===this.Ya,this.hasCachedResults)}}const la="SyncEngine";class ca{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class ua{constructor(e){this.key=e,this.lu=!1}}class da{constructor(e,t,n,r,o,i){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=o,this.maxConcurrentLimboResolutions=i,this.hu={},this.Pu=new Zn(e=>Gn(e),Kn),this.Tu=new Map,this.Iu=new Set,this.du=new ft(ie.comparator),this.Eu=new Map,this.Au=new yi,this.Ru={},this.Vu=new Map,this.mu=oi.ur(),this.onlineState="Unknown",this.fu=void 0}get isPrimaryClient(){return!0===this.fu}}async function ha(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Oa(e);let o;const i=r.Pu.get(t);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),o=i.view.cu()):o=await pa(r,t,n,!0),o}async function fa(e,t){const n=Oa(e);await pa(n,t,!0,!1)}async function pa(e,t,n,r){const o=await Ui(e.localStore,zn(t)),i=o.targetId,s=e.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await ma(e,t,i,"current"===s,o.resumeToken)),e.isPrimaryClient&&n&&gs(e.remoteStore,o),a}async function ma(e,t,n,r,o){e.gu=(t,n,r)=>async function(e,t,n,r){let o=t.view.nu(n);o.Ds&&(o=await zi(e.localStore,t.query,!1).then(e=>{let{documents:n}=e;return t.view.nu(n,o)}));const i=r&&r.targetChanges.get(t.targetId),s=r&&null!=r.targetMismatches.get(t.targetId),a=t.view.applyChanges(o,e.isPrimaryClient,i,s);return Ta(e,t.targetId,a._u),a.snapshot}(e,t,n,r);const i=await zi(e.localStore,t,!0),s=new aa(t,i.qs),a=s.nu(i.documents),l=ao.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,o),c=s.applyChanges(a,e.isPrimaryClient,l);Ta(e,n,c._u);const u=new ca(t,n,s);return e.Pu.set(t,u),e.Tu.has(n)?e.Tu.get(n).push(t):e.Tu.set(n,[t]),c.snapshot}async function ga(e,t,n){const r=D(e),o=r.Pu.get(t),i=r.Tu.get(o.targetId);if(i.length>1)return r.Tu.set(o.targetId,i.filter(e=>!Kn(e,t))),void r.Pu.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(o.targetId),r.sharedCl
2ientState.isActiveQueryTarget(o.targetId)||await Vi(r.localStore,o.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(o.targetId),n&&vs(r.remoteStore,o.targetId),Ca(r,o.targetId)}).catch(Te)):(Ca(r,o.targetId),await Vi(r.localStore,o.targetId,!0))}async function va(e,t){const n=D(e),r=n.Pu.get(t),o=n.Tu.get(r.targetId);n.isPrimaryClient&&1===o.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),vs(n.remoteStore,r.targetId))}async function ya(e,t){const n=D(e);try{const e=await function(e,t){const n=D(e),r=t.snapshotVersion;let o=n.Fs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{const i=n.Os.newChangeBuffer({trackRemovals:!0});o=n.Fs;const s=[];t.targetChanges.forEach((i,a)=>{const l=o.get(a);if(!l)return;s.push(n.hi.removeMatchingKeys(e,i.removedDocuments,a).next(()=>n.hi.addMatchingKeys(e,i.addedDocuments,a)));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(a)?c=c.withResumeToken(wt.EMPTY_BYTE_STRING,ye.min()).withLastLimboFreeSnapshotVersion(ye.min()):i.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(i.resumeToken,r)),o=o.insert(a,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=Ri||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(l,c,i)&&s.push(n.hi.updateTargetData(e,c))});let a=tr(),l=ur();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),s.push(Fi(e,i,t.documentUpdates).next(e=>{a=e.Ls,l=e.ks})),!r.isEqual(ye.min())){const t=n.hi.getLastRemoteSnapshotVersion(e).next(t=>n.hi.setTargetsMetadata(e,e.currentSequenceNumber,r));s.push(t)}return xe.waitFor(s).next(()=>i.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,a,l)).next(()=>a)}).then(e=>(n.Fs=o,e))}(n.localStore,t);
2t.targetChanges.forEach((e,t)=>{const r=n.Eu.get(t);r&&(O(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1,22616),e.addedDocuments.size>0?r.lu=!0:e.modifiedDocuments.size>0?O(r.lu,14607):e.removedDocuments.size>0&&(O(r.lu,42227),r.lu=!1))}),await Na(n,e,t)}catch(e){await Te(e)}}function ba(e,t,n){const r=D(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.Pu.forEach((n,r)=>{const o=r.view.va(t);o.snapshot&&e.push(o.snapshot)}),function(e,t){const n=D(e);n.onlineState=t;let r=!1;n.queries.forEach((e,n)=>{for(const o of n.wa)o.va(t)&&(r=!0)}),r&&ta(n)}(r.eventManager,t),e.length&&r.hu.J_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function wa(e,t,n){const r=D(e);r.sharedClientState.updateQueryState(t,"rejected",n);const o=r.Eu.get(t),i=o&&o.key;if(i){let e=new ft(ie.comparator);e=e.insert(i,an.newNoDocument(i,ye.min()));const n=ur().add(i),o=new so(ye.min(),new Map,new ft(Q),e,n);await ya(r,o),r.du=r.du.remove(i),r.Eu.delete(t),Ia(r)}else await Vi(r.localStore,t,!1).then(()=>Ca(r,t,n)).catch(Te)}async function Sa(e,t){const n=D(e),r=t.batch.batchId;try{const e=await function(e,t){const n=D(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{const r=t.batch.keys(),o=n.Os.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const o=n.batch,i=o.keys();let s=xe.resolve();return i.forEach(e=>{s=s.next(()=>r.getEntry(t,e)).next(t=>{const i=n.docVersions.get(e);O(null!==i,48541),t.version.compareTo(i)<0&&(o.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))})}),s.next(()=>e.mutationQueue.removeMutationBatch(t,o))}(n,e,t,o).next(()=>o.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=ur();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))).next(()=>n.localDocuments.getDocuments(e,r))})}(n.localStore,t);_a(n,r,null),ka(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Na(n,e)}catch(e){await Te(e)}}async function Ea(e,t,n){const r=D(e);try{const e=await function(e,t){const n=D(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",e=>{let r;
2return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(O(null!==t,37113),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)).next(()=>n.localDocuments.getDocuments(e,r))})}(r.localStore,t);_a(r,t,n),ka(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await Na(r,e)}catch(n){await Te(n)}}function ka(e,t){(e.Vu.get(t)||[]).forEach(e=>{e.resolve()}),e.Vu.delete(t)}function _a(e,t,n){const r=D(e);let o=r.Ru[r.currentUser.toKey()];if(o){const e=o.get(t);e&&(n?e.reject(n):e.resolve(),o=o.remove(t)),r.Ru[r.currentUser.toKey()]=o}}function Ca(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.Tu.get(t))e.Pu.delete(r),n&&e.hu.pu(r,n);e.Tu.delete(t),e.isPrimaryClient&&e.Au.zr(t).forEach(t=>{e.Au.containsKey(t)||Aa(e,t)})}function Aa(e,t){e.Iu.delete(t.path.canonicalString());const n=e.du.get(t);null!==n&&(vs(e.remoteStore,n),e.du=e.du.remove(t),e.Eu.delete(n),Ia(e))}function Ta(e,t,n){for(const r of n)r instanceof ia?(e.Au.addReference(r.key,t),xa(e,r)):r instanceof sa?(T(la,"Document no longer in limbo: "+r.key),e.Au.removeReference(r.key,t),e.Au.containsKey(r.key)||Aa(e,r.key)):P(19791,{yu:r})}function xa(e,t){const n=t.key,r=n.path.canonicalString();e.du.get(n)||e.Iu.has(r)||(T(la,"New document in limbo: "+n),e.Iu.add(r),Ia(e))}function Ia(e){for(;e.Iu.size>0&&e.du.size<e.maxConcurrentLimboResolutions;){const t=e.Iu.values().next().value;e.Iu.delete(t);const n=new ie(ne.fromString(t)),r=e.mu.next();e.Eu.set(r,new ua(n)),e.du=e.du.insert(n,r),gs(e.remoteStore,new Qo(zn(Fn(n.path)),r,"TargetPurposeLimboResolution",Pe.ue))}}async function Na(e,t,n){const r=D(e),o=[],i=[],s=[];r.Pu.isEmpty()||(r.Pu.forEach((e,a)=>{s.push(r.gu(a,t,n).then(e=>{var t;if((e||n)&&r.isPrimaryClient){const o=e?!e.fromCache:null===(t=null==n?void 0:n.targetChanges.get(a.targetId))||void 0===t?void 0:t.current;
2r.sharedClientState.updateQueryState(a.targetId,o?"current":"not-current")}if(e){o.push(e);const t=xi.Es(a.targetId,e);i.push(t)}}))}),await Promise.all(s),r.hu.J_(o),await async function(e,t){const n=D(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>xe.forEach(t,t=>xe.forEach(t.Is,r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r)).next(()=>xe.forEach(t.ds,r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))}catch(e){if(!Ne(e))throw e;T(Pi,"Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.Fs.get(e),r=t.snapshotVersion,o=t.withLastLimboFreeSnapshotVersion(r);n.Fs=n.Fs.insert(e,o)}}}(r.localStore,i))}async function Pa(e,t){const n=D(e);if(!n.currentUser.isEqual(t)){T(la,"User change. New user:",t.toKey());const e=await Li(n.localStore,t);n.currentUser=t,function(e,t){e.Vu.forEach(e=>{e.forEach(e=>{e.reject(new M(L.CANCELLED,t))})}),e.Vu.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await Na(n,e.Bs)}}function Ra(e,t){const n=D(e),r=n.Eu.get(t);if(r&&r.lu)return ur().add(r.key);{let e=ur();const r=n.Tu.get(t);if(!r)return e;for(const t of r){const r=n.Pu.get(t);e=e.unionWith(r.view.tu)}return e}}function Oa(e){const t=D(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=ya.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=Ra.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=wa.bind(null,t),t.hu.J_=Zs.bind(null,t.eventManager),t.hu.pu=ea.bind(null,t.eventManager),t}function Da(e){const t=D(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Sa.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Ea.bind(null,t),t}class La{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=rs(e.databaseInfo.databaseId),this.sharedClientState=this.bu(e),this.persistence=this.Du(e),await this.persistence.start(),this.localStore=this.vu(e),this.gcScheduler=this.Cu(e,this.localStore),this.indexBackfillerScheduler=this.Fu(e,this.localStore)}Cu(e,t){return null}Fu(e,t){return null}vu(e){return Di(this.persistence,new Ni,e.initialUser,this.serializer)}Du(e){return new _i(Ai.Vi,this.serializer)}bu(e){return new qi}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}La.provider={build:()=>new La};class Ma extends La{constructor(e){super(),this.cacheSizeBytes=e}Cu(e,t){O(this.persistence.referenceDelegate instanceof Ti,46915);const n=this.persistence.referenceDelegate.garbageCollector;return new ci(n,e.asyncQueue,t)}Du(e){const t=void 0!==this.cacheSizeBytes?ri.withCacheSize(this.cacheSizeBytes):ri.DEFAULT;return new _i(e=>Ti.Vi(e,t),this.serializer)}}class Fa{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>ba(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=Pa.bind(null,this.syncEngine),await Vs(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new Qs}createDatastore(e){const t=rs(e.databaseInfo.databaseId),n=function(e){return new ts(e)}(e.databaseInfo);return function(e,t,n,r){return new us(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,o){return new fs(e,t,n,r,o)}(this.localStore,this.datastore,e.asyncQueue,e=>ba(this.syncEngine,e,0),Gi.C()?new Gi:new Wi)}createSyncEngine(e,t){return function(e,t,n,r,o,i,s){const a=new da(e,t,n,r,o,i);return s&&(a.fu=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){const t=D(e);T(hs,"RemoteStore shutting down."),t.Ia.add(5),await ms(t),t.Ea.shutdown(),t.Aa.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate(),null===(t=this.eventManager)||void 0===t||t.terminate()}}Fa.provider={build:()=>new Fa};
2class ja{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.xu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.xu(this.observer.error,e):x("Uncaught Error in snapshot listener:",e.toString()))}Ou(){this.muted=!0}xu(e,t){setTimeout(()=>{this.muted||e(t)},0)}}const Ua="FirestoreClient";class Va{constructor(e,t,n,r,o){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=k.UNAUTHENTICATED,this.clientId=Y.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=o,this.authCredentials.start(n,async e=>{T(Ua,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(T(Ua,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new F;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=qs(t,"Failed to shutdown persistence");e.reject(n)}}),e.promise}}async function za(e,t){e.asyncQueue.verifyOperationInProgress(),T(Ua,"Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener(async e=>{r.isEqual(e)||(await Li(t.localStore,e),r=e)}),t.persistence.setDatabaseDeletedListener(()=>{I("Terminating Firestore due to IndexedDb database deletion"),e.terminate().then(()=>{T("Terminating Firestore due to IndexedDb database deletion completed successfully")}).catch(e=>{I("Terminating Firestore due to IndexedDb database deletion failed",e)})}),e._offlineComponents=t}async function Ba(e,t){e.asyncQueue.verifyOperationInProgress();const n=await Ha(e);T(Ua,"Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener(e=>Us(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>Us(t.remoteStore,n)),e._onlineComponents=t}async function Ha(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){T(Ua,"Using user provided OfflineComponentProvider");try{await za(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!function(e){return"FirebaseError"===e.name?e.code===L.FAILED_PRECONDITION||e.code===L.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(n))throw n;I("Error using user provided cache. Falling back to memory cache: "+n),await za(e,new La)}}else T(Ua,"Using default OfflineComponentProvider"),await za(e,new Ma(void 0));return e._offlineComponents}async function qa(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(T(Ua,"Using user provided OnlineComponentProvider"),await Ba(e,e._uninitializedComponentsProvider._online)):(T(Ua,"Using default OnlineComponentProvider"),await Ba(e,new Fa))),e._onlineComponents}function Wa(e){return qa(e).then(e=>e.syncEngine)}function Ka(e){return qa(e).then(e=>e.datastore)}async function Ga(e){const t=await qa(e),n=t.eventManager;return n.onListen=ha.bind(null,t.syncEngine),n.onUnlisten=ga.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=fa.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=va.bind(null,t.syncEngine),n}function Ya(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new F;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,o){const i=new ja({next:a=>{i.Ou(),t.enqueueAndForget(()=>$s(e,s));const l=a.docs.has(n);!l&&a.fromCache?o.reject(new M(L.UNAVAILABLE,"Failed to get document because the client is offline.")):l&&a.fromCache&&r&&"server"===r.source?o.reject(new M(L.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):o.resolve(a)},error:e=>o.reject(e)}),s=new oa(Fn(n.path),i,{includeMetadataChanges:!0,ka:!0});return Js(e,s)}(await Ga(e),e.asyncQueue,t,n,r)),r.promise}function Qa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new F;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,o){const i=new ja({next:n=>{i.Ou(),t.enqueueAndForget(()=>$s(e,s)),n.fromCache&&"server"===r.source?o.reject(new M(L.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):o.resolve(n)},error:e=>o.reject(e)}),s=new oa(n,i,{includeMetadataChanges:!0,ka:!0});return Js(e,s)}(await Ga(e),e.asyncQueue,t,n,r)),r.promise}function Xa(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}const Ja=new Map,$a="firestore.googleapis.com",Za=!0;
2class el{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new M(L.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=$a,this.ssl=Za}else this.host=e.host,this.ssl=null!==(t=e.ssl)&&void 0!==t?t:Za;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=ni;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<si)throw new M(L.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new M(L.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=Xa(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new M(L.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new M(L.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new M(L.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (maximum allowed value is 30)"))}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class tl{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new el({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new M(L.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new M(L.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new el(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new U;switch(e.type){case"firstParty":return new H(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new M(L.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=Ja.get(e);t&&(T("ComponentProvider","Removing Datastore"),Ja.delete(e),t.terminate())}(this),Promise.resolve()}}class nl{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new nl(this.firestore,e,this._query)}}class rl{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}
2get path(){return this._key.path.canonicalString()}get parent(){return new ol(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new rl(this.firestore,e,this._key)}toJSON(){return{type:rl._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,n){if(pe(t,rl._jsonSchema))return new rl(e,n||null,new ie(ne.fromString(t.referencePath)))}}rl._jsonSchemaVersion="firestore/documentReference/1.0",rl._jsonSchema={type:fe("string",rl._jsonSchemaVersion),referencePath:fe("string")};class ol extends nl{constructor(e,t,n){super(e,t,Fn(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new rl(this.firestore,null,new ie(e))}withConverter(e){return new ol(this.firestore,e,this._path)}}function il(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(e=(0,l.Ku)(e),se("collection","path",t),e instanceof tl){const n=ne.fromString(t,...r);return le(n),new ol(e,null,n)}{if(!(e instanceof rl||e instanceof ol))throw new M(L.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(ne.fromString(t,...r));return le(n),new ol(e.firestore,null,n)}}function sl(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(e=(0,l.Ku)(e),1===arguments.length&&(t=Y.newId()),se("doc","path",t),e instanceof tl){const n=ne.fromString(t,...r);return ae(n),new rl(e,null,new ie(n))}{if(!(e instanceof rl||e instanceof ol))throw new M(L.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(ne.fromString(t,...r));return ae(n),new rl(e.firestore,e instanceof ol?e.converter:null,new ie(n))}}const al="AsyncQueue";class ll{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Promise.resolve();this.Zu=[],this.Xu=!1,this.ec=[],this.tc=null,this.nc=!1,this.rc=!1,this.sc=[],this.F_=new os(this,"async_queue_retry"),this.oc=()=>{const e=ns();e&&T(al,"Visibility state changed to "+e.visibilityState),this.F_.y_()},this._c=e;const t=ns();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.oc)}get isShuttingDown(){return this.Xu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.ac(),this.uc(e)}enterRestrictedMode(e){if(!this.Xu){this.Xu=!0,this.rc=e||!1;const t=ns();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.oc)}}enqueue(e){if(this.ac(),this.Xu)return new Promise(()=>{});const t=new F;return this.uc(()=>this.Xu&&this.rc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Zu.push(e),this.cc()))}async cc(){if(0!==this.Zu.length){try{await this.Zu[0](),this.Zu.shift(),this.F_.reset()}catch(e){if(!Ne(e))throw e;T(al,"Operation failed with retryable error: "+e)}this.Zu.length>0&&this.F_.g_(()=>this.cc())}}uc(e){const t=this._c.then(()=>(this.nc=!0,e().catch(e=>{throw this.tc=e,this.nc=!1,x("INTERNAL UNHANDLED ERROR: ",cl(e)),e}).then(e=>(this.nc=!1,e))));return this._c=t,t}enqueueAfterDelay(e,t,n){this.ac(),this.sc.indexOf(e)>-1&&(t=0);const r=Hs.createAndSchedule(this,e,t,n,e=>this.lc(e));return this.ec.push(r),r}ac(){this.tc&&P(47125,{hc:cl(this.tc)})}verifyOperationInProgress(){}async Pc(){let e;do{e=this._c,await e}while(e!==this._c)}Tc(e){for(const t of this.ec)if(t.timerId===e)return!0;return!1}Ic(e){return this.Pc().then(()=>{this.ec.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.ec)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Pc()})}dc(e){this.sc.push(e)}lc(e){const t=this.ec.indexOf(e);this.ec.splice(t,1)}}function cl(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}class ul extends tl{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new ll,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new ll(e),this._firestoreClient=void 0,await e}}}function dl(e,t){const n="object"==typeof e?e:(0,i.Sx)(),r="string"==typeof e?e:t||Ot,o=(0,i.j6)(n,"firestore").getImmediate({identifier:r});if(!o._initialized){const e=(0,l.yU)("firestore");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var o;e=de(e,tl);const i=(0,l.zJ)(t),s=e._getSettings(),a=Object.assign(Object.assign({},s),{emulatorOptions:e._getEmulatorOptions()}),c="".concat(t,":").concat(n);i&&((0,l.gE)("https://".concat(c)),(0,l.P1)("Firestore",!0)),s.host!==$a&&s.host!==c&&I("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const u=Object.assign(Object.assign({},s),{host:c,ssl:i,emulatorOptions:r});if(!(0,l.bD)(u,a)&&(e._setSettings(u),r.mockUserToken)){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=k.MOCK_USER;else{t=(0,l.Fy)(r.mockUserToken,null===(o=e._app)||void 0===o?void 0:o.options.projectId);const i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new M(L.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new k(i)}e._authCredentials=new V(new j(t,n))}}(o,...e)}return o}function hl(e){if(e._terminated)throw new M(L.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||fl(e),e._firestoreClient}function fl(e){var t,n,r;const o=e._freezeSettings(),i=function(e,t,n,r){return new Rt(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,Xa(r.experimentalLongPollingOptions),r.useFetchStreams,r.isUsingEmulator)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,o);e._componentsProvider||(null===(n=o.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=o.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._componentsProvider={_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider}),e._firestoreClient=new Va(e._authCredentials,e._appCheckCredentials,e._queue,i,e._componentsProvider&&function(e){const t=null==e?void 0:e._online.build();return{_offline:null==e?void 0:e._offline.build(t),_online:t}}(e._componentsProvider))}class pl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"count",t=arguments.length>1?arguments[1]:void 0;this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}}class ml{constructor(e,t,n){this._userDataWriter=t,this._data=n,this.type="AggregateQuerySnapsh
2ot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}}class gl{constructor(e){this._byteString=e}static fromBase64String(e){try{return new gl(wt.fromBase64String(e))}catch(e){throw new M(L.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new gl(wt.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:gl._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(pe(e,gl._jsonSchema))return gl.fromBase64String(e.bytes)}}gl._jsonSchemaVersion="firestore/bytes/1.0",gl._jsonSchema={type:fe("string",gl._jsonSchemaVersion),bytes:fe("string")};class vl{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;++r)if(0===t[r].length)throw new M(L.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new oe(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class yl{constructor(e){this._methodName=e}}class bl{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new M(L.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new M(L.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return Q(this._lat,e._lat)||Q(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:bl._jsonSchemaVersion}}static fromJSON(e){if(pe(e,bl._jsonSchema))return new bl(e.latitude,e.longitude)}}bl._jsonSchemaVersion="firestore/geoPoint/1.0",bl._jsonSchema={type:fe("string",bl._jsonSchemaVersion),latitude:fe("number"),longitude:fe("number")};class wl{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}toJSON(){return{type:wl._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(pe(e,wl._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new wl(e.vectorValues);throw new M(L.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}wl._jsonSchemaVersion="firestore/vectorValue/1.0",wl._jsonSchema={type:fe("string",wl._jsonSchemaVersion),vectorValues:fe("object")};const Sl=/^__.*__$/;class El{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Ur(e,this.data,this.fieldMask,t,this.fieldTransforms):new jr(e,this.data,t,this.fieldTransforms)}}class kl{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new Ur(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function _l(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw P(40011,{Ec:e})}}class Cl{constructor(e,t,n,r,o,i){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===o&&this.Ac(),this.fieldTransforms=o||[],this.fieldMask=i||[]}get path(){return this.settings.path}get Ec(){return this.settings.Ec}Rc(e){return new Cl(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Vc(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Rc({path:n,mc:!1});return r.fc(e),r}gc(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Rc({path:n,mc:!1});return r.Ac(),r}yc(e){return this.Rc({path:void 0,mc:!0})}wc(e){return zl(e,this.settings.methodName,this.settings.Sc||!1,this.path,this.settings.bc)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Ac(){if(this.path)for(let e=0;e<this.path.length;e++)this.fc(this.path.get(e))}fc(e){if(0===e.length)throw this.wc("Document fields must not be empty");if(_l(this.Ec)&&Sl.test(e))throw this.wc('Document fields cannot begin and end with "__"')}}class Al{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer
2=n||rs(e)}Dc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Cl({Ec:e,methodName:t,bc:n,path:oe.emptyPath(),mc:!1,Sc:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Tl(e){const t=e._freezeSettings(),n=rs(e._databaseId);return new Al(e._databaseId,!!t.ignoreUndefinedProperties,n)}function xl(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=e.Dc(i.merge||i.mergeFields?2:0,t,n,o);Fl("Data must be an object, but it was:",s,r);const a=Ll(r,s);let l,c;if(i.merge)l=new yt(s.fieldMask),c=s.fieldTransforms;else if(i.mergeFields){const e=[];for(const r of i.mergeFields){const o=jl(t,r,n);if(!s.contains(o))throw new M(L.INVALID_ARGUMENT,"Field '".concat(o,"' is specified in your field mask but missing from your input data."));Bl(e,o)||e.push(o)}l=new yt(e),c=s.fieldTransforms.filter(e=>l.covers(e.field))}else l=null,c=s.fieldTransforms;return new El(new on(a),l,c)}class Il extends yl{_toFieldTransform(e){if(2!==e.Ec)throw 1===e.Ec?e.wc("".concat(this._methodName,"() can only appear at the top level of your update data")):e.wc("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Il}}class Nl extends yl{_toFieldTransform(e){return new xr(e.path,new wr)}isEqual(e){return e instanceof Nl}}function Pl(e,t,n,r){const o=e.Dc(1,t,n);Fl("Data must be an object, but it was:",o,r);const i=[],s=on.empty();ut(r,(e,r)=>{const a=Vl(t,e,n);r=(0,l.Ku)(r);const c=o.gc(a);if(r instanceof Il)i.push(a);else{const e=Dl(r,c);null!=e&&(i.push(a),s.set(a,e))}});const a=new yt(i);return new kl(s,a,o.fieldTransforms)}function Rl(e,t,n,r,o,i){const s=e.Dc(1,t,n),a=[jl(t,r,n)],c=[o];if(i.length%2!=0)throw new M(L.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(let l=0;l<i.length;l+=2)a.push(jl(t,i[l])),c.push(i[l+1]);const u=[],d=on.empty();for(let f=a.length-1;f>=0;--f)if(!Bl(u,a[f])){const e=a[f];let t=c[f];t=(0,l.Ku)(t);const n=s.gc(e);if(t instanceof Il)u.push(e);else{const r=Dl(t,n);null!=r&&(u.push(e),d.set(e,r))}}const h=new yt(u);return new kl(d,h,s.fieldTransforms)}function Ol(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Dl(n,e.Dc(r?4:3,t))}function Dl(e,t){if(Ml(e=(0,l.Ku)(e)))return Fl("Unsupported field value:",t,e),Ll(e,t);if(e instanceof yl)return function(e,t){if(!_l(t.Ec))throw t.wc("".concat(e._methodName,"() can only be used with update() and set()"));if(!t.path)throw t.wc("".concat(e._methodName,"() is not currently supported inside arrays"));const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.mc&&4!==t.Ec)throw t.wc("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const o of e){let e=Dl(o,t.yc(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=(0,l.Ku)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return mr(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=ve.fromDate(e);return{timestampValue:So(t.serializer,n)}}if(e instanceof ve){const n=new ve(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:So(t.serializer,n)}}if(e instanceof bl)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof gl)return{bytesValue:Eo(t.serializer,e._byteString)};if(e instanceof rl){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.wc("Document reference is for database ".concat(r.projectId,"/").concat(r.database," but should be for database ").concat(n.projectId,"/").concat(n.database));return{referenceValue:Co(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof wl)return function(e,t){return{mapValue:{fields:{[Lt]:{stringValue:jt},[Ut]:{arrayValue:{values:e.toArray().map(e=>{if("number"!=typeof e)throw t.wc("VectorValues must only contain numeric values.");return fr(t.serializer,e)})}}}}}}(e,t);throw t.wc("Unsupported field value: ".concat(ue(e)))}(e,t)}function Ll(e,t){const n={};return ht(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):ut(e,(e,r)=>{const o=Dl(r,t.Vc(e));null!=o&&(n[e]=o)}),{mapValue:{fields:n}}}function Ml(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof ve||e instanceof bl||e instanceof gl||e instanceof rl||e instanceof yl||e instanceof wl)}function Fl(e,t,n){if(!Ml(n)||!ce(n)){const r=ue(n);throw"an object"===r?t.wc(e+" a custom object"):t.wc(e+" "+r)}}function jl(e,t,n){if((t=(0,l.Ku)(t))instanceof vl)return t._internalPath;if("string"==typeof t)return Vl(e,t);throw zl("Field path arguments must be of type string or ",e,!1,void 0,n)}const Ul=new RegExp("[~\\*/\\[\\]]");function Vl(e,t,n){if(t.search(Ul)>=0)throw zl("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return new vl(...t.split("."))._internalPath}catch(r){throw zl("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function zl(e,t,n,r,o){const i=r&&!r.isEmpty(),s=void 0!==o;
2let a="Function ".concat(t,"() called with invalid data");n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(i||s)&&(l+=" (found",i&&(l+=" in field ".concat(r)),s&&(l+=" in document ".concat(o)),l+=")"),new M(L.INVALID_ARGUMENT,a+e+l)}function Bl(e,t){return e.some(e=>e.isEqual(t))}class Hl{constructor(e,t,n,r,o){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new rl(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new ql(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(Wl("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class ql extends Hl{data(){return super.data()}}function Wl(e,t){return"string"==typeof t?Vl(e,t):t instanceof vl?t._internalPath:t._delegate._internalPath}function Kl(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new M(L.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Gl{}class Yl extends Gl{}function Ql(e,t){let n=[];for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t instanceof Gl&&n.push(t),n=n.concat(o),function(e){const t=e.filter(e=>e instanceof $l).length,n=e.filter(e=>e instanceof Xl).length;if(t>1||t>0&&n>0)throw new M(L.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n);for(const s of n)e=s._apply(e);return e}class Xl extends Yl{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new Xl(e,t,n)}_apply(e){const t=this._parse(e);return ic(e._query,t),new nl(e.firestore,e.converter,qn(e._query,t))}_parse(e){const t=Tl(e.firestore),n=function(e,t,n,r,o,i,s){let a;if(o.isKeyField()){if("array-contains"===i||"array-contains-any"===i)throw new M(L.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(i,"' queries on documentId()."));if("in"===i||"not-in"===i){oc(s,i);const t=[];for(const n of s)t.push(rc(r,e,n));a={arrayValue:{values:t}}}else a=rc(r,e,s)}else"in"!==i&&"not-in"!==i&&"array-contains-any"!==i||oc(s,i),a=Ol(n,t,s,"in"===i||"not-in"===i);return pn.create(o,i,a)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}function Jl(e,t,n){const r=t,o=Wl("where",e);return Xl._create(o,r,n)}class $l extends Gl{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new $l(e,t)}_parse(e){const t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:mn.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const o of r)ic(n,o),n=qn(n,o)}(e._query,t),new nl(e.firestore,e.converter,qn(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class Zl extends Yl{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new Zl(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new M(L.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new M(L.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new dn(t,n)}(e._query,this._field,this._direction);return new nl(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new Ln(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function ec(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=Wl("orderBy",e);return Zl._create(n,t)}class tc extends Yl{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}
2static _create(e,t,n){return new tc(e,t,n)}_apply(e){return new nl(e.firestore,e.converter,Wn(e._query,this._limit,this._limitType))}}function nc(e){return he("limit",e),tc._create("limit",e,"F")}function rc(e,t,n){if("string"==typeof(n=(0,l.Ku)(n))){if(""===n)throw new M(L.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Un(t)&&-1!==n.indexOf("/"))throw new M(L.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));const r=t.path.child(ne.fromString(n));if(!ie.isDocumentKey(r))throw new M(L.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return Qt(e,new ie(r))}if(n instanceof rl)return Qt(e,n._key);throw new M(L.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(ue(n),"."))}function oc(e,t){if(!Array.isArray(e)||0===e.length)throw new M(L.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."))}function ic(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new M(L.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new M(L.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(n.toString(),"' filters."))}class sc{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Vt(e)){case 0:return null;case 1:return e.booleanValue;case 2:return kt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(_t(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw P(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";const n={};return ut(e,(e,r)=>{n[e]=this.convertValue(r,t)}),n}convertVectorValue(e){var t,n,r;const o=null===(r=null===(n=null===(t=e.fields)||void 0===t?void 0:t[Ut].arrayValue)||void 0===n?void 0:n.values)||void 0===r?void 0:r.map(e=>kt(e.doubleValue));return new wl(o)}convertGeoPoint(e){return new bl(kt(e.latitude),kt(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Nt(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Pt(e));default:return null}}convertTimestamp(e){const t=Et(e);return new ve(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=ne.fromString(e);O(Yo(n),9688,{name:e});const r=new Dt(n.get(1),n.get(3)),o=new ie(n.popFirst(5));return r.isEqual(t)||x("Document ".concat(o," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),o}}function ac(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class lc{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class cc extends Hl{constructor(e,t,n,r,o,i){super(e,t,n,r,i),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){const t=new uc(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){const n=this._document.data.field(Wl("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new M(L.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=cc._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t):t}}cc._jsonSchemaVersion="firestore/documentSnapshot/1.0",cc._jsonSchema={type:fe("string",cc._jsonSchemaVersion),bundleSource:fe("string","DocumentSnapshot"),bundleName:fe("string"),bundle:fe("string")};class uc extends cc{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class dc{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new lc(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new uc(this._firestore,this._userDataWriter,n.key,n,new lc(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}
2docChanges(){const e=!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new M(L.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{const r=new uc(e._firestore,e._userDataWriter,n.doc.key,n.doc,new lc(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const r=new uc(e._firestore,e._userDataWriter,t.doc.key,t.doc,new lc(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let o=-1,i=-1;return 0!==t.type&&(o=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),i=n.indexOf(t.doc.key)),{type:hc(t.type),doc:r,oldIndex:o,newIndex:i}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new M(L.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=dc._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Y.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const t=[],n=[],r=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),n.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),r.push(e.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function hc(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return P(61501,{type:e})}}function fc(e){e=de(e,rl);const t=de(e.firestore,ul);return Ya(hl(t),e._key).then(n=>Sc(t,e,n))}dc._jsonSchemaVersion="firestore/querySnapshot/1.0",dc._jsonSchema={type:fe("string",dc._jsonSchemaVersion),bundleSource:fe("string","QuerySnapshot"),bundleName:fe("string"),bundle:fe("string")};class pc extends sc{constructor(e){super(),this.firestore=e}convertBytes(e){return new gl(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new rl(this.firestore,null,t)}}function mc(e){e=de(e,nl);const t=de(e.firestore,ul),n=hl(t),r=new pc(t);return Kl(e._query),Qa(n,e._query).then(n=>new dc(t,r,e,n))}function gc(e,t,n){e=de(e,rl);const r=de(e.firestore,ul),o=ac(e.converter,t,n);return wc(r,[xl(Tl(r),"setDoc",e._key,o,null!==e.converter,n).toMutation(e._key,Nr.none())])}function vc(e,t,n){e=de(e,rl);const r=de(e.firestore,ul),o=Tl(r);let i;for(var s=arguments.length,a=new Array(s>3?s-3:0),c=3;c<s;c++)a[c-3]=arguments[c];return i="string"==typeof(t=(0,l.Ku)(t))||t instanceof vl?Rl(o,"updateDoc",e._key,t,n,a):Pl(o,"updateDoc",e._key,t),wc(r,[i.toMutation(e._key,Nr.exists(!0))])}function yc(e){return wc(de(e.firestore,ul),[new Hr(e._key,Nr.none())])}function bc(e,t){const n=de(e.firestore,ul),r=sl(e),o=ac(e.converter,t);return wc(n,[xl(Tl(e.firestore),"addDoc",r._key,o,null!==e.converter,{}).toMutation(r._key,Nr.exists(!1))]).then(()=>r)}function wc(e,t){return function(e,t){const n=new F;return e.asyncQueue.enqueueAndForget(async()=>async function(e,t,n){const r=Da(e);try{const e=await function(e,t){const n=D(e),r=ve.now(),o=t.reduce((e,t)=>e.add(t.key),ur());let i,s;return n.persistence.runTransaction("Locally write mutations","readwrite",e=>{let a=tr(),l=ur();return n.Os.getEntries(e,o).next(e=>{a=e,a.forEach((e,t)=>{t.isValidDocument()||(l=l.add(e))})}).next(()=>n.localDocuments.getOverlayedDocuments(e,a)).next(o=>{i=o;const s=[];for(const e of t){const t=Mr(e,i.get(e.key).overlayedDocument);null!=t&&s.push(new Ur(e.key,t,sn(t.value.mapValue),Nr.exists(!0)))}
2return n.mutationQueue.addMutationBatch(e,r,s,t)}).next(t=>{s=t;const r=t.applyToLocalDocumentSet(i,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)})}).then(()=>({batchId:s.batchId,changes:or(i)}))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.Ru[e.currentUser.toKey()];r||(r=new ft(Q)),r=r.insert(t,n),e.Ru[e.currentUser.toKey()]=r}(r,e.batchId,n),await Na(r,e.changes),await Ns(r.remoteStore)}catch(e){const t=qs(e,"Failed to persist write");n.reject(t)}}(await Wa(e),t,n)),n.promise}(hl(e),t)}function Sc(e,t,n){const r=n.docs.get(t._key),o=new pc(e);return new cc(e,o,t._key,r,new lc(n.hasPendingWrites,n.fromCache),t.converter)}function Ec(e){return function(e,t){const n=de(e.firestore,ul),r=hl(n),o=dt(t,(e,t)=>new Yr(t,e.aggregateType,e._internalFieldPath));return function(e,t,n){const r=new F;return e.asyncQueue.enqueueAndForget(async()=>{try{const o=await Ka(e);r.resolve(async function(e,t,n){var r;const o=D(e),{request:i,ft:s,parent:a}=jo(o.serializer,Bn(t),n);o.connection.Qo||delete i.parent;const l=(await o.Jo("RunAggregationQuery",o.serializer.databaseId,a,i,1)).filter(e=>!!e.result);O(1===l.length,64727);const c=null===(r=l[0].result)||void 0===r?void 0:r.aggregateFields;return Object.keys(c).reduce((e,t)=>(e[s[t]]=c[t],e),{})}(o,t,n))}catch(e){r.reject(e)}}),r.promise}(r,e._query,o).then(t=>function(e,t,n){const r=new pc(e);return new ml(t,r,n)}(n,e,t))}(e,{count:new pl("count")})}class kc{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Tl(e)}set(e,t,n){this._verifyNotCommitted();const r=_c(e,this._firestore),o=ac(r.converter,t,n),i=xl(this._dataReader,"WriteBatch.set",r._key,o,null!==r.converter,n);return this._mutations.push(i.toMutation(r._key,Nr.none())),this}update(e,t,n){this._verifyNotCommitted();const r=_c(e,this._firestore);let o;for(var i=arguments.length,s=new Array(i>3?i-3:0),a=3;a<i;a++)s[a-3]=arguments[a];return o="string"==typeof(t=(0,l.Ku)(t))||t instanceof vl?Rl(this._dataReader,"WriteBatch.update",r._key,t,n,s):Pl(this._dataReader,"WriteBatch.update",r._key,t),this._mutations.push(o.toMutation(r._key,Nr.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=_c(e,this._firestore);return this._mutations=this._mutations.concat(new Hr(t._key,Nr.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new M(L.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function _c(e,t){if((e=(0,l.Ku)(e)).firestore!==t)throw new M(L.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function Cc(){return new Il("deleteField")}function Ac(){return new Nl("serverTimestamp")}function Tc(e){return hl(e=de(e,ul)),new kc(e,t=>wc(e,t))}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){_=e}(i.MF),(0,i.om)(new s.uA("firestore",(e,n)=>{let{instanceIdentifier:r,options:o}=n;const i=e.getProvider("app").getImmediate(),s=new ul(new z(e.getProvider("auth-internal")),new W(i,e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new M(L.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Dt(e.options.projectId,t)}(i,r),i);return o=Object.assign({useFetchStreams:t},o),s._setSettings(o),s},"PUBLIC").setMultipleInstances(!0)),(0,i.KO)(S,E,e),(0,i.KO)(S,E,"esm2017")}()},5702:(e,t,n)=>{"use strict";function r(){return"undefined"!==typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{$4:()=>T,CP:()=>A,L9:()=>C,Lv:()=>p,Ng:()=>u,Tc:()=>E,Tf:()=>g,ZU:()=>h,_m:()=>N,ep:()=>s,eu:()=>_,gJ:()=>S,mq:()=>o,sQ:()=>w,sb:()=>c,v9:()=>I,vq:()=>l,zk:()=>i});const d=new Set(["inline","contents"]);function h(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);
2return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(o)}const f=new Set(["table","td","th"]);function p(e){return f.has(o(e))}const m=[":popover-open",":modal"];function g(e){return m.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const v=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function w(e){const t=E(),n=l(e)?C(e):e;return v.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function S(e){let t=T(e);for(;c(t)&&!_(t);){if(w(t))return t;if(g(t))return null;t=T(t)}return null}function E(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const k=new Set(["html","body","#document"]);function _(e){return k.has(o(e))}function C(e){return i(e).getComputedStyle(e)}function A(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function T(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||s(e);return u(t)?t.host:t}function x(e){const t=T(e);return _(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&h(t)?t:x(t)}function I(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=x(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),a=i(o);if(s){const e=N(a);return t.concat(a,a.visualViewport||[],h(o)?o:[],e&&n?I(e):[])}return t.concat(o,I(o,[],n))}function N(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},5783:(e,t,n)=>{"use strict";n.d(t,{GY:()=>s,YC:()=>i,dh:()=>u,ks:()=>c,nJ:()=>a,ny:()=>l});var r=n(4751),o=n(2932);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"size",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e)return(0,r.t)(e)?n?(0,o.D)(e):e:"var(--".concat(t,"-").concat(e,")")}function s(e){return i(e,"mantine-spacing")}function a(e){return void 0===e?"var(--mantine-radius-default)":i(e,"mantine-radius")}function l(e){return i(e,"mantine-font-size")}function c(e){return i(e,"mantine-line-height",!1)}function u(e){if(e)return i(e,"mantine-shadow",!1)}},5903:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});n(5043),n(579);var r=n(3056),o=n(8732),i=n(2623);function s(e){let{classNames:t,styles:n,props:s,stylesCtx:a}=e;const l=(0,r.xd)();return{resolvedClassNames:(0,o.J)({theme:l,classNames:t,props:s,stylesCtx:a||void 0}),resolvedStyles:(0,i.N)({theme:l,styles:n,props:s,stylesCtx:a||void 0})}}},6138:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(5043);function o(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)(()=>()=>{n.current=!1},[]),(0,r.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}},6178:(e,t,n)=>{"use strict";n.d(t,{BN:()=>p,ER:()=>m,Ej:()=>v,UE:()=>b,UU:()=>g,cY:()=>f,mG:()=>y,we:()=>h});var r=n(9379),o=n(7451),i=n(5043),s=n(7950),a="undefined"!==typeof document?i.useLayoutEffect:function(){};function l(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!l(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function c(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function d(e){const t=i.useRef(e);return a(()=>{t.current=e}),t}function h(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:h=[],platform:f,elements:{reference:p,floating:m}={},transform:g=!0,whileElementsMounted:v,open:y}=e,[b,w]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,E]=i.useState(h);l(S,h)||E(h);const[k,_]=i.useState(null),[C,A]=i.useState(null),T=i.useCallback(e=>
2{e!==P.current&&(P.current=e,_(e))},[]),x=i.useCallback(e=>{e!==R.current&&(R.current=e,A(e))},[]),I=p||k,N=m||C,P=i.useRef(null),R=i.useRef(null),O=i.useRef(b),D=null!=v,L=d(v),M=d(f),F=d(y),j=i.useCallback(()=>{if(!P.current||!R.current)return;const e={placement:t,strategy:n,middleware:S};M.current&&(e.platform=M.current),(0,o.rD)(P.current,R.current,e).then(e=>{const t=(0,r.A)((0,r.A)({},e),{},{isPositioned:!1!==F.current});U.current&&!l(O.current,t)&&(O.current=t,s.flushSync(()=>{w(t)}))})},[S,t,n,M,F]);a(()=>{!1===y&&O.current.isPositioned&&(O.current.isPositioned=!1,w(e=>(0,r.A)((0,r.A)({},e),{},{isPositioned:!1})))},[y]);const U=i.useRef(!1);a(()=>(U.current=!0,()=>{U.current=!1}),[]),a(()=>{if(I&&(P.current=I),N&&(R.current=N),I&&N){if(L.current)return L.current(I,N,j);j()}},[I,N,j,L,D]);const V=i.useMemo(()=>({reference:P,floating:R,setReference:T,setFloating:x}),[T,x]),z=i.useMemo(()=>({reference:I,floating:N}),[I,N]),B=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!z.floating)return e;const t=u(z.floating,b.x),o=u(z.floating,b.y);return g?(0,r.A)((0,r.A)({},e),{},{transform:"translate("+t+"px, "+o+"px)"},c(z.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:o}},[n,g,z.floating,b.x,b.y]);return i.useMemo(()=>(0,r.A)((0,r.A)({},b),{},{update:j,refs:V,elements:z,floatingStyles:B}),[b,j,V,z,B])}const f=(e,t)=>(0,r.A)((0,r.A)({},(0,o.cY)(e)),{},{options:[e,t]}),p=(e,t)=>(0,r.A)((0,r.A)({},(0,o.BN)(e)),{},{options:[e,t]}),m=(e,t)=>(0,r.A)((0,r.A)({},(0,o.ER)(e)),{},{options:[e,t]}),g=(e,t)=>(0,r.A)((0,r.A)({},(0,o.UU)(e)),{},{options:[e,t]}),v=(e,t)=>
2(0,r.A)((0,r.A)({},(0,o.Ej)(e)),{},{options:[e,t]}),y=(e,t)=>(0,r.A)((0,r.A)({},(0,o.mG)(e)),{},{options:[e,t]}),b=(e,t)=>(0,r.A)((0,r.A)({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,o.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,o.UE)({element:n,padding:r}).fn(t):{};var i}}))(e)),{},{options:[e,t]})},6326:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>r,Tt:()=>o,fX:()=>i});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError},6331:(e,t,n)=>{"use strict";n.d(t,{D_:()=>s,LE:()=>a,P9:()=>l});var r=n(9379),o=n(579),i=n(5043);function s(e){return e}function a(e){const t=e;return e=>{const n=(0,i.forwardRef)((n,i)=>(0,o.jsx)(t,(0,r.A)((0,r.A)((0,r.A)({},e),n),{},{ref:i})));return n.extend=t.extend,n.displayName="WithProps(".concat(t.displayName,")"),n}}function l(e){const t=(0,i.forwardRef)(e);return t.extend=s,t.withProps=e=>{const n=(0,i.forwardRef)((n,i)=>(0,o.jsx)(t,(0,r.A)((0,r.A)((0,r.A)({},e),n),{},{ref:i})));return n.extend=t.extend,n.displayName="WithProps(".concat(t.displayName,")"),n},t}},6380:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},6405:(e,t,n)=>{"use strict";n.d(t,{a:()=>A});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(5783),l=n(1721),c=n(6711),u=n(9863),d=n(8038),h=n(4886),f=n(6331),p=n(8387),m={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const g=["className"],v=(0,s.forwardRef)((e,t)=>{let{className:n}=e,s=(0,o.A)(e,g);return(0,i.jsxs)(h.a,(0,r.A)((0,r.A)({component:"span",className:(0,p.A)(m.barsLoader,n)},s),{},{ref:t,children:[(0,i.jsx)("span",{className:m.bar}),(0,i.jsx)("span",{className:m.bar}),(0,i.jsx)("span",{className:m.bar})]}))});v.displayName="@mantine/core/Bars";const y=["className"],b=(0,s.forwardRef)((e,t)=>{let{className:n}=e,s=(0,o.A)(e,y);return(0,i.jsxs)(h.a,(0,r.A)((0,r.A)({component:"span",className:(0,p.A)(m.dotsLoader,n)},s),{},{ref:t,children:[(0,i.jsx)("span",{className:m.dot}),(0,i.jsx)("span",{className:m.dot}),(0,i.jsx)("span",{className:m.dot})]}))});b.displayName="@mantine/core/Dots";const w=["className"],S=(0,s.forwardRef)((e,t)=>{let{className:n}=e,s=(0,o.A)(e,w);return(0,i.jsx)(h.a,(0,r.A)((0,r.A)({component:"span",className:(0,p.A)(m.ovalLoader,n)},s),{},{ref:t}))});S.displayName="@mantine/core/Oval";const E=["size","color","type","vars","className","style","classNames","styles","unstyled","loaders","variant","children"],k={bars:v,oval:S,dots:b},_={loaders:k,type:"oval"},C=(0,l.V)((e,t)=>{let{size:n,color:r}=t;return{root:{"--loader-size":(0,a.YC)(n,"loader-size"),"--loader-color":r?(0,c.r)(r,e):void 0}}}),A=(0,f.P9)((e,t)=>{const n=(0,u.Y)("Loader",_,e),{size:s,color:a,type:l,vars:c,className:f,style:p,classNames:g,styles:v,unstyled:y,loaders:b,variant:w,children:S}=n,k=(0,o.A)(n,E),A=(0,d.I)({name:"Loader",props:n,classes:m,className:f,style:p,classNames:g,styles:v,unstyled:y,vars:c,varsResolver:C});return S?(0,i.jsx)(h.a,(0,r.A)((0,r.A)((0,r.A)({},A("root")),{},{ref:t},k),{},{children:S})):(0,i.jsx)(h.a,(0,r.A)((0,r.A)({},A("root")),{},{ref:t,component:b[l],variant:w,size:s},k))});A.defaultLoaders=k,A.classes=m,A.displayName="@mantine/core/Loader"},6673:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(9379);function o(e){return e&&"object"===typeof e&&!Array.isArray(e)}function i(e,t){const n=(0,r.A)({},e),s=t;return o(e)&&o(t)&&Object.keys(t).forEach(t=>{o(s[t])?n[t]=t in e?i(n[t],s[t]):s[t]:n[t]=s[t]}),n}},6711:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(1340);function o(e,t){const n=(0,r.g)({color:e||t.primaryColor,theme:t});return n.variable?"var(".concat(n.variable,")"):e}},6777:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(5043);function o(e,t){let{getInitialValueInEffect:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getInitialValueInEffect:!0};const[o,i]=(0,r.useState)(n?t:function(e){return"undefined"!==typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e)),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>
2{if("matchMedia"in window)return s.current=window.matchMedia(e),i(s.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(s.current,e=>i(e.matches))},[e]),o}function i(e,t){return o("(prefers-reduced-motion: reduce)",e,t)}},7201:(e,t,n)=>{"use strict";n.d(t,{W:()=>K});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(4474),l=n(6138),c=n(8221);var u=n(5903),d=n(8038),h=n(9863),f=n(6331);var p=n(2435),m=n(605);const[g,v]=(0,m.F)("Menu component was not found in the tree");var y=n(4886),b={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const w=["classNames","className","style","styles","vars"],S={},E=(0,f.P9)((e,t)=>{const n=(0,h.Y)("MenuDivider",S,e),{classNames:s,className:a,style:l,styles:c,vars:u}=n,d=(0,o.A)(n,w),f=v();return(0,i.jsx)(y.a,(0,r.A)((0,r.A)({ref:t},f.getStyles("divider",{className:a,style:l,styles:c,classNames:s})),d))});E.classes=b,E.displayName="@mantine/core/MenuDivider";var k=n(9252);function _(e,t){return n=>{null===e||void 0===e||e(n),null===t||void 0===t||t(n)}}const C=["classNames","className","style","styles","vars","onMouseEnter","onMouseLeave","onKeyDown","children"],A={},T=(0,f.P9)((e,t)=>{const n=(0,h.Y)("MenuDropdown",A,e),{classNames:a,className:l,style:c,styles:u,vars:d,onMouseEnter:f,onMouseLeave:m,onKeyDown:g,children:y}=n,b=(0,o.A)(n,C),w=(0,s.useRef)(null),S=v(),E=_(g,e=>{var t;"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),null===(t=w.current)||void 0===t||null===(t=t.querySelectorAll("[data-menu-item]:not(:disabled)")[0])||void 0===t||t.focus())}),T=_(f,()=>("hover"===S.trigger||"click-hover"===S.trigger)&&S.openDropdown()),x=_(m,()=>("hover"===S.trigger||"click-hover"===S.trigger)&&S.closeDropdown());return(0,i.jsxs)(p.A.Dropdown,(0,r.A)((0,r.A)((0,r.A)({},b),{},{onMouseEnter:T,onMouseLeave:x,role:"menu","aria-orientation":"vertical",ref:(0,k.pc)(t,w)},S.getStyles("dropdown",{className:l,style:c,styles:u,classNames:a,withStaticClass:!1})),{},{tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:E,children:[S.withInitialFocusPlaceholder&&(0,i.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),y]}))});T.classes=b,T.displayName="@mantine/core/MenuDropdown";var x=n(3877),I=n(1340),N=n(3056),P=n(464),R=n(528),O=n(1065);const D=["classNames","className","style","styles","vars","color","closeMenuOnClick","leftSection","rightSection","children","disabled","data-disabled"],L={},M=(0,P.v)((e,t)=>{const n=(0,h.Y)("MenuItem",L,e),{classNames:a,className:l,style:c,styles:u,vars:d,color:f,closeMenuOnClick:p,leftSection:m,rightSection:g,children:y,disabled:b,"data-disabled":w}=n,S=(0,o.A)(n,D),E=v(),C=(0,N.xd)(),{dir:A}=(0,R.jH)(),T=(0,s.useRef)(null),P=E.getItemIndex(T.current),M=S,F=_(M.onMouseLeave,()=>E.setHovered(-1)),j=_(M.onMouseEnter,()=>E.setHovered(E.getItemIndex(T.current))),U=_(M.onClick,()=>{w||("boolean"===typeof p?p&&E.closeDropdownImmediately():E.closeOnItemClick&&E.closeDropdownImmediately())}),V=_(M.onFocus,()=>E.setHovered(E.getItemIndex(T.current))),z=f?C.variantColorResolver({color:f,theme:C,variant:"light"}):void 0,B=f?(0,I.g)({color:f,theme:C}):null;return(0,i.jsxs)(O.N,(0,r.A)((0,r.A)((0,r.A)({},S),{},{unstyled:E.unstyled,tabIndex:E.menuItemTabIndex,onFocus:V},E.getStyles("item",{className:l,style:c,styles:u,classNames:a})),{},{ref:(0,k.pc)(T,t),role:"menuitem",disabled:b,"data-menu-item":!0,"data-disabled":b||w||void 0,"data-hovered":E.hovered===P||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:j,onMouseLeave:F,onClick:U,onKeyDown:(0,x.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:E.loop,dir:A,orientation:"vertical",onKeyDown:M.onKeyDown}),__vars:{"--menu-item-color":null!==B&&void 0!==B&&B.isThemeColor&&void 0===(null===B||void 0===B?void 0:B.shade)?"var(--mantine-color-".concat(B.color,"-6)"):null===z||void 0===z?void 0:z.color,"--menu-item-hover":null===z||void 0===z?void 0:z.hover},children:[m&&(0,i.jsx)("div",(0,r.A)((0,r.A)({},E.getStyles("itemSection",{styles:u,classNames:a})),{},{"data-position":"left",children:m})),y&&(0,i.jsx)("div",(0,r.A)((0,r.A)({},E.getStyles("itemLabel",{styles:u,classNames:a})),{},{children:y})),g&&(0,i.jsx)("div",(0,r.A)((0,r.A)({},E.getStyles("itemSection",{styles:u,classNames:a})),{},{"data-position":"right",children:g}))]}))});M.classes=b,M.displayName="@mantine/core/MenuItem";const F=["classNames","className","style","styles","vars"],j={},U=(0,f.P9)((e,t)=>{const n=(0,h.Y)("MenuLabel",j,e),{classNames:s,className:a,style:l,styles:c,vars:u}=n,d=(0,o.A)(n,F),f=v();return(0,i.jsx)(y.a,(0,r.A)((0,r.A)({ref:t},f.getStyles("label",{className:a,style:l,styles:c,classNames:s})),d))});U.classes=b,U.displayName="@mantine/core/MenuLabel";var V=n(8429);const z=["children","refProp"],B={refProp:"ref"},H=(0,s.forwardRef)((e,t)=>{const n=(0,h.Y)("MenuTarget",B,e),{children:a,refProp:l}=n,c=(0,o.A)(n,z);
2if(!(0,V.v)(a))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=v(),d=a.props,f=_(d.onClick,()=>{"click"===u.trigger?u.toggleDropdown():"click-hover"===u.trigger&&(u.setOpenedViaClick(!0),u.opened||u.openDropdown())}),m=_(d.onMouseEnter,()=>("hover"===u.trigger||"click-hover"===u.trigger)&&u.openDropdown()),g=_(d.onMouseLeave,()=>{"hover"===u.trigger?u.closeDropdown():"click-hover"!==u.trigger||u.openedViaClick||u.closeDropdown()});return(0,i.jsx)(p.A.Target,(0,r.A)((0,r.A)({refProp:l,popupType:"menu",ref:t},c),{},{children:(0,s.cloneElement)(a,{onClick:f,onMouseEnter:m,onMouseLeave:g,"data-expanded":!!u.opened||void 0})}))});H.displayName="@mantine/core/MenuTarget";const q=["children","onOpen","onClose","opened","defaultOpened","trapFocus","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","variant","vars","menuItemTabIndex","keepMounted","withInitialFocusPlaceholder"],W={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function K(e){const t=(0,h.Y)("Menu",W,e),{children:n,onOpen:f,onClose:m,opened:v,defaultOpened:y,trapFocus:w,onChange:S,closeOnItemClick:E,loop:k,closeOnEscape:_,trigger:C,openDelay:A,closeDelay:T,classNames:x,styles:I,unstyled:N,variant:P,vars:R,menuItemTabIndex:O,keepMounted:D,withInitialFocusPlaceholder:L}=t,M=(0,o.A)(t,q),F=(0,d.I)({name:"Menu",classes:b,props:t,classNames:x,styles:I,unstyled:N}),[j,{setHovered:U,resetHovered:V}]=function(){const[e,t]=(0,s.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[z,B]=(0,a.Z)({value:v,defaultValue:y,finalValue:!1,onChange:S}),[H,K]=(0,s.useState)(!1),G=()=>{B(!1),K(!1),z&&(null===m||void 0===m||m())},Y=()=>{B(!0),!z&&(null===f||void 0===f||f())},Q=()=>{z?G():Y()},{openDropdown:X,closeDropdown:J}=function(e){let{open:t,close:n,openDelay:r,closeDelay:o}=e;const i=(0,s.useRef)(-1),a=(0,s.useRef)(-1),l=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,s.useEffect)(()=>l,[]),{openDropdown:()=>{l(),0===r||void 0===r?t():i.current=window.setTimeout(t,r)},closeDropdown:()=>{l(),0===o||void 0===o?n():a.current=window.setTimeout(n,o)}}}({open:Y,close:G,closeDelay:T,openDelay:A}),{resolvedClassNames:$,resolvedStyles:Z}=(0,u.Y)({classNames:x,styles:I,props:t});return(0,l.C)(()=>{V()},[z]),(0,i.jsx)(g,{value:{getStyles:F,opened:z,toggleDropdown:Q,getItemIndex:e=>function(e,t,n){var r;return n?Array.from((null===(r=(0,c.P)(n,t))||void 0===r?void 0:r.querySelectorAll(e))||[]).findIndex(e=>e===n):null}("[data-menu-item]","[data-menu-dropdown]",e),hovered:j,setHovered:U,openedViaClick:H,setOpenedViaClick:K,closeOnItemClick:E,closeDropdown:"click"===C?G:J,openDropdown:"click"===C?Y:X,closeDropdownImmediately:G,loop:k,trigger:C,unstyled:N,menuItemTabIndex:O,withInitialFocusPlaceholder:L},children:(0,i.jsx)(p.A,(0,r.A)((0,r.A)({},M),{},{opened:z,onChange:Q,defaultOpened:y,trapFocus:!D&&w,closeOnEscape:_,__staticSelector:"Menu",classNames:$,styles:Z,unstyled:N,variant:P,keepMounted:D,children:n}))})}K.extend=e=>e,K.withProps=(0,f.LE)(K),K.classes=b,K.displayName="@mantine/core/Menu",K.Item=M,K.Label=U,K.Dropdown=T,K.Target=H,K.Divider=E},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,O(E);else{var t=r(u);null!==t&&D(S,t.startTime-e)}}function E(e,n){m=!1,g&&(g=!1,y(A),A=-1),p=!0;var i=f;try{for(w(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!I());){var s=h.callback;if("function"===typeof s){h.callback=null,f=h.priorityLevel;var a=s(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?h.callback=a:h===r(c)&&o(c),w(n)}else o(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&D(S,d.startTime-n),l=!1}return l}finally{h=null,f=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,_=!1,C=null,A=-1,T=5,x=-1;function I(){return!(t.unstable_now()-x<T)}function N(){if(null!==C){var e=t.unstable_now();x=e;var n=!0;try{n=C(!0,e)}finally{n?k():(_=!1,C=null)}}else _=!1}if("function"===typeof b)k=function(){b(N)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=N,k=function(){R.postMessage(null)}}else k=function(){v(N,0)};function O(e){C=e,_||(_=!0,k())}function D(e,n){A=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,O(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(A),A=-1):g=!0,D(S,i-s))):(e.sortIndex=a,n(c,e),m||p||(m=!0,O(E))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7311:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(2932),o=(n(5043),n(579),n(4171));function i(e,t){if(e.startsWith("var("))return"color-mix(in srgb, ".concat(e,", black ").concat(100*t,"%)");const{r:n,g:r,b:i,a:s}=(0,o.K)(e),a=1-t,l=e=>Math.round(e*a);return"rgba(".concat(l(n),", ").concat(l(r),", ").concat(l(i),", ").concat(s,")")}var s=n(7971),a=n(1340),l=n(517);const c="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",u={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:e=>{let{color:t,theme:n,variant:o,gradient:c,autoContrast:u}=e;const d=(0,a.g)({color:t,theme:n}),h="boolean"===typeof u?u:n.autoContrast;if("filled"===o){const e=h&&d.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return d.isThemeColor?void 0===d.shade?{background:"var(--mantine-color-".concat(t,"-filled)"),hover:"var(--mantine-color-".concat(t,"-filled-hover)"),color:e,border:"".concat((0,r.D)(1)," solid transparent")}:{background:"var(--mantine-color-".concat(d.color,"-").concat(d.shade,")"),hover:"var(--mantine-color-".concat(d.color,"-").concat(9===d.shade?8:d.shade+1,")"),color:e,border:"".concat((0,r.D)(1)," solid transparent")}:{background:t,hover:i(t,.1),color:e,border:"".concat((0,r.D)(1)," solid transparent")}}if("light"===o){if(d.isThemeColor){if(void 0===d.shade)return{background:"var(--mantine-color-".concat(t,"-light)"),hover:"var(--mantine-color-".concat(t,"-light-hover)"),color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat((0,r.D)(1)," solid transparent")};const e=n.colors[d.color][d.shade];return{background:(0,l.B)(e,.1),hover:(0,l.B)(e,.12),color:"var(--mantine-color-".concat(d.color,"-").concat(Math.min(d.shade,6),")"),border:"".concat((0,r.D)(1)," solid transparent")}}return{background:(0,l.B)(t,.1),hover:(0,l.B)(t,.12),color:t,border:"".concat((0,r.D)(1)," solid transparent")}}if("outline"===o)return d.isThemeColor?void 0===d.shade?{background:"transparent",hover:"var(--mantine-color-".concat(t,"-outline-hover)"),color:"var(--mantine-color-".concat(t,"-outline)"),border:"".concat((0,r.D)(1)," solid var(--mantine-color-").concat(t,"-outline)")}:{background:"transparent",hover:(0,l.B)(n.colors[d.color][d.shade],.05),color:"var(--mantine-color-".concat(d.color,"-").concat(d.shade,")"),border:"".concat((0,r.D)(1)," solid var(--mantine-color-").concat(d.color,"-").concat(d.shade,")")}:{background:"transparent",hover:(0,l.B)(t,.05),color:t,border:"".concat((0,r.D)(1)," solid ").concat(t)};if("subtle"===o){if(d.isThemeColor){if(void 0===d.shade)return{background:"transparent",hover:"var(--mantine-color-".concat(t,"-light-hover)"),color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat((0,r.D)(1)," solid transparent")};const e=n.colors[d.color][d.shade];return{background:"transparent",hover:(0,l.B)(e,.12),color:"var(--mantine-color-".concat(d.color,"-").concat(Math.min(d.shade,6),")"),border:"".concat((0,r.D)(1)," solid transparent")}}return{background:"transparent",hover:(0,l.B)(t,.12),color:t,border:"".concat((0,r.D)(1)," solid transparent")}}return"transparent"===o?d.isThemeColor?void 0===d.shade?{background:"transparent",hover:"transparent",color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat((0,r.D)(1)," solid transparent")}:{background:"transparent",hover:"transparent",color:"var(--mantine-color-".concat(d.color,"-").concat(Math.min(d.shade,6),")"),border:"".concat((0,r.D)(1)," solid transparent")}:{background:"transparent",hover:"transparent",color:t,border:"".concat((0,r.D)(1)," solid transparent")}:"white"===o?d.isThemeColor?void 0===d.shade?{background:"var(--mantine-color-white)",hover:i(n.white,.01),color:"var(--mantine-color-".concat(t,"-filled)"),border:"".concat((0,r.D)(1)," solid transparent")}:{background:"var(--mantine-color-white)",hover:i(n.white,.01),color:"var(--mantine-color-".concat(d.color,"-").concat(d.shade,")"),border:"".concat((0,r.D)(1)," solid transparent")}:{background:"var(--mantine-color-white)",hover:i(n.white,.01),color:t,border:"".concat((0,r.D)(1)," solid transparent")}:"gradient"===o?{background:(0,s.v)(c,n),hover:(0,s.v)(c,n),color:"var(--mantine-color-white)",border:"none"}:"default"===o?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:"".concat((0,r.D)(1)," solid var(--mantine-color-default-border)")}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:c,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:c,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:(0,r.D)(34),lineHeight:"1.3"},h2:{fontSize:(0,r.D)(26),lineHeight:"1.35"},h3:{fontSize:(0,r.D)(22),lineHeight:"1.4"},h4:{fontSize:(0,r.D)(18),lineHeight:"1.45"},h5:{fontSize:(0,r.D)(16),lineHeight:"1.5"},h6:{fontSize:(0,r.D)(14),lineHeight:"1.5"}}},fontSizes:{xs:(0,r.D)(12),sm:(0,r.D)(14),md:(0,r.D)(16),lg:(0,r.D)(18),xl:(0,r.D)(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:(0,r.D)(2),sm:(0,r.D)(4),md:(0,r.D)(8),lg:(0,r.D)(16),xl:(0,r.D)(32)},spacing:{xs:(0,r.D)(10),sm:(0,r.D)(12),md:(0,r.D)(16),lg:(0,r.D)(20),xl:(0,r.D)(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:"0 ".concat((0,r.D)(1)," ").concat((0,r.D)(3)," rgba(0, 0, 0, 0.05), 0 ").concat((0,r.D)(1)," ").concat((0,r.D)(2)," rgba(0, 0, 0, 0.1)"),sm:"0 ".concat((0,r.D)(1)," ").concat((0,r.D)(3)," rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ").concat((0,r.D)(10)," ").concat((0,r.D)(15)," ").concat((0,r.D)(-5),", rgba(0, 0, 0, 0.04) 0 ").concat((0,r.D)(7)," ").concat((0,r.D)(7)," ").concat((0,r.D)(-5)),md:"0 ".concat((0,r.D)(1)," ").concat((0,r.D)(3)," rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ").concat((0,r.D)(20)," ").concat((0,r.D)(25)," ").concat((0,r.D)(-5),", rgba(0, 0, 0, 0.04) 0 ").concat((0,r.D)(10)," ").concat((0,r.D)(10)," ").concat((0,r.D)(-5)),lg:"0 ".concat((0,r.D)(1)," ").concat((0,r.D)(3)," rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ").concat((0,r.D)(28)," ").concat((0,r.D)(23)," ").concat((0,r.D)(-7),", rgba(0, 0, 0, 0.04) 0 ").concat((0,r.D)(12)," ").concat((0,r.D)(12)," ").concat((0,r.D)(-7)),xl:"0 ".concat((0,r.D)(1)," ").concat((0,r.D)(3)," rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ").concat((0,r.D)(36)," ").concat((0,r.D)(28)," ").concat((0,r.D)(-7),", rgba(0, 0, 0, 0.04) 0 ").concat((0,r.D)(17)," ").concat((0,r.D)(17)," ").concat((0,r.D)(-7))},other:{},components:{}}},7426:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(5043);const o="undefined"!==typeof document?r.useLayoutEffect:r.useEffect},7451:(e,t,n)=>{"use strict";n.d(t,{UE:()=>se,ll:()=>te,rD:()=>ce,UU:()=>oe,mG:()=>ae,ER:()=>le,cY:()=>ne,BN:()=>re,Ej:()=>ie});var r=n(9379);const o=Math.min,i=Math.max,s=Math.round,a=Math.floor,l=e=>({x:e,y:e}
2),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t,n){return i(e,o(t,n))}function h(e,t){return"function"===typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}const v=new Set(["top","bottom"]);function y(e){return v.has(f(e))?"y":"x"}function b(e){return m(y(e))}function w(e){return e.replace(/start|end/g,e=>u[e])}const S=["left","right"],E=["right","left"],k=["top","bottom"],_=["bottom","top"];function C(e,t,n,r){const o=p(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?E:S:t?S:E;case"left":case"right":return t?k:_;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function A(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!==typeof e?function(e){return(0,r.A)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function x(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var I=n(45);const N=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],P=["mainAxis","crossAxis","limiter"],R=["apply"];function O(e,t,n){let{reference:r,floating:o}=e;const i=y(t),s=b(t),a=g(s),l=f(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(p(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1)}return m}async function D(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=T(p),g=a[f?"floating"===d?"reference":"floating":d],v=x(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},S=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-S.top+m.top)/w.y,bottom:(S.bottom-v.bottom+m.bottom)/w.y,left:(v.left-S.left+m.left)/w.x,right:(S.right-v.right+m.right)/w.x}}function L(e){const t=o(...e.map(e=>e.left)),n=o(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}const M=new Set(["left","top"]);var F=n(5702);function j(e){const t=(0,F.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,F.sb)(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=s(n)!==i||s(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function U(e){return(0,F.vq)(e)?e:e.contextElement}function V(e){const t=U(e);if(!(0,F.sb)(t))return l(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=j(t);let a=(i?s(n.width):n.width)/r,c=(i?s(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const z=l(0);function B(e){const t=(0,F.zk)(e);return(0,F.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:z}function H(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=U(e);let s=l(1);t&&(r?(0,F.vq)(r)&&(s=V(r)):s=V(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,F.zk)(e))&&t}(i,n,r)?B(i):l(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const e=(0,F.zk)(i),t=r&&(0,F.vq)(r)?(0,F.zk)(r):r;let n=e,o=(0,F._m)(n);for(;o&&r&&t!==n;){const e=V(o),t=o.getBoundingClientRect(),r=(0,F.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,h*=e.y,c+=i,u+=s,n=(0,F.zk)(o),o=(0,F._m)(n)}}return x({width:d,height:h,x:c,y:u})}function q(e,t){const n=(0,F.CP)(e).scrollLeft;return t?t.left+n:H((0,F.ep)(e)).left+n}function W(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:q(e,r)),y:r.top+t.scrollTop}}const K=new Set(["absolute","fixed"]);function G(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,F.zk)(e),r=(0,F.ep)(e),o=n.visualVie
2wport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=(0,F.Tc)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=(0,F.ep)(e),n=(0,F.CP)(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+q(e);const l=-n.scrollTop;return"rtl"===(0,F.L9)(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:l}}((0,F.ep)(e));else if((0,F.vq)(t))r=function(e,t){const n=H(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,F.sb)(e)?V(e):l(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=B(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function Y(e,t){const n=(0,F.$4)(e);return!(n===t||!(0,F.vq)(n)||(0,F.eu)(n))&&("fixed"===(0,F.L9)(n).position||Y(n,t))}function Q(e,t,n){const r=(0,F.sb)(t),o=(0,F.ep)(t),i="fixed"===n,s=H(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=l(0);function u(){c.x=q(o)}if(r||!r&&!i)if(("body"!==(0,F.mq)(t)||(0,F.ZU)(o))&&(a=(0,F.CP)(t)),r){const e=H(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=!o||r||i?l(0):W(o,a);return{x:s.left+a.scrollLeft-c.x-d.x,y:s.top+a.scrollTop-c.y-d.y,width:s.width,height:s.height}}function X(e){return"static"===(0,F.L9)(e).position}function J(e,t){if(!(0,F.sb)(e)||"fixed"===(0,F.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,F.ep)(e)===n&&(n=n.ownerDocument.body),n}function $(e,t){const n=(0,F.zk)(e);if((0,F.Tf)(e))return n;if(!(0,F.sb)(e)){let t=(0,F.$4)(e);for(;t&&!(0,F.eu)(t);){if((0,F.vq)(t)&&!X(t))return t;t=(0,F.$4)(t)}return n}let r=J(e,t);for(;r&&(0,F.Lv)(r)&&X(r);)r=J(r,t);return r&&(0,F.eu)(r)&&X(r)&&!(0,F.sQ)(r)?n:r||(0,F.gJ)(e)||n}const Z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=(0,F.ep)(r),a=!!t&&(0,F.Tf)(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=l(1);const d=l(0),h=(0,F.sb)(r);if((h||!h&&!i)&&(("body"!==(0,F.mq)(r)||(0,F.ZU)(s))&&(c=(0,F.CP)(r)),(0,F.sb)(r))){const e=H(r);u=V(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!s||h||i?l(0):W(s,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}},getDocumentElement:F.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[..."clippingAncestors"===n?(0,F.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,F.v9)(e,[],!1).filter(e=>(0,F.vq)(e)&&"body"!==(0,F.mq)(e)),o=null;const i="fixed"===(0,F.L9)(e).position;let s=i?(0,F.$4)(e):e;for(;(0,F.vq)(s)&&!(0,F.eu)(s);){const t=(0,F.L9)(s),n=(0,F.sQ)(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&K.has(o.position)||(0,F.ZU)(s)&&!n&&Y(e,s))?r=r.filter(e=>e!==s):o=t,s=(0,F.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((e,n)=>{const r=G(t,n,s);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},G(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:$,getElementRects:async function(e){const t=this.getOffsetParent||$,n=this.getDimensions,r=await n(e.floating);return{reference:Q(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=j(e);return{width:t,height:n}},getScale:V,isElement:F.vq,isRTL:function(e){return"rtl"===(0,F.L9)(e).direction}};function ee(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function te(e,t,n,s){void 0===s&&(s={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u="function"===typeof ResizeObserver,layoutShift:d="function"===typeof IntersectionObserver,animationFrame:h=!1}=s,f=U(e),p=l||c?[...f?(0,F.v9)(f):[],...(0,F.v9)(t)]:[];
2p.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});const m=f&&d?function(e,t){let n,s=null;const l=(0,F.ep)(e);function c(){var e;clearTimeout(n),null==(e=s)||e.disconnect(),s=null}return function u(d,h){void 0===d&&(d=!1),void 0===h&&(h=1),c();const f=e.getBoundingClientRect(),{left:p,top:m,width:g,height:v}=f;if(d||t(),!g||!v)return;const y={rootMargin:-a(m)+"px "+-a(l.clientWidth-(p+g))+"px "+-a(l.clientHeight-(m+v))+"px "+-a(p)+"px",threshold:i(0,o(1,h))||1};let b=!0;function w(t){const r=t[0].intersectionRatio;if(r!==h){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ee(f,e.getBoundingClientRect())||u(),b=!1}try{s=new IntersectionObserver(w,(0,r.A)((0,r.A)({},y),{},{root:l.ownerDocument}))}catch(S){s=new IntersectionObserver(w,y)}s.observe(e)}(!0),c}(f,n):null;let g,v=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),y.observe(t));let b=h?H(e):null;return h&&function t(){const r=H(e);b&&!ee(b,r)&&n();b=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(g)}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:a,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=f(n),a=p(n),l="y"===y(n),c=M.has(s)?-1:1,u=i&&l?-1:1,d=h(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"===typeof v&&(g="end"===a?-1*v:v),l?{x:g*u,y:m*c}:{x:m*c,y:g*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:(0,r.A)((0,r.A)({},c),{},{placement:a})}}}},re=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,s=h(e,t),{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=s,u=(0,I.A)(s,P),p={x:n,y:o},g=await D(t,u),v=y(f(i)),b=m(v);let w=p[b],S=p[v];if(a){const e="y"===b?"bottom":"right";w=d(w+g["y"===b?"top":"left"],w,w-g[e])}if(l){const e="y"===v?"bottom":"right";S=d(S+g["y"===v?"top":"left"],S,S-g[e])}const E=c.fn((0,r.A)((0,r.A)({},t),{},{[b]:w,[v]:S}));return(0,r.A)((0,r.A)({},E),{},{data:{x:E.x-n,y:E.y-o,enabled:{[b]:a,[v]:l}}})}}},oe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,u=h(e,t),{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0}=u,_=(0,I.A)(u,N);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const T=f(o),x=y(a),P=f(a)===a,R=await(null==l.isRTL?void 0:l.isRTL(c.floating)),O=v||(P||!k?[A(a)]:function(e){const t=A(e);return[w(e),t,w(t)]}(a)),L="none"!==E;!v&&L&&O.push(...C(a,k,E,R));const M=[a,...O],F=await D(t,_),j=[];let U=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&j.push(F[T]),m){const e=function(e,t,n){void 0===n&&(n=!1);const r=p(e),o=b(e),i=g(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=A(s)),[s,A(s)]}(o,s,R);j.push(F[e[0]],F[e[1]])}if(U=[...U,{placement:o,overflows:j}],!j.every(e=>e<=0)){var V,z;const e=((null==(V=i.flip)?void 0:V.index)||0)+1,t=M[e];if(t){if(!("alignment"===m&&x!==y(t))||U.every(e=>e.overflows[0]>0&&y(e.placement)===x))return{data:{index:e,overflows:U},reset:{placement:t}}}let n=null==(z=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:z.placement;if(!n)switch(S){case"bestFit":{var B;const e=null==(B=U.filter(e=>{if(L){const t=y(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
vendor: 2,819 bytes, line 2
2e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:B[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ie=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:l,platform:c,elements:u}=t,d=h(e,t),{apply:m=()=>{}}=d,g=(0,I.A)(d,R),v=await D(t,g),b=f(a),w=p(a),S="y"===y(a),{width:E,height:k}=l.floating;let _,C;"top"===b||"bottom"===b?(_=b,C=w===(await(null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(C=b,_="end"===w?"top":"bottom");const A=k-v.top-v.bottom,T=E-v.left-v.right,x=o(k-v[_],A),N=o(E-v[C],T),P=!t.middlewareData.shift;let O=x,L=N;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=T),null!=(s=t.middlewareData.shift)&&s.enabled.y&&(O=A),P&&!w){const e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);S?L=E-2*(0!==e||0!==t?e+t:i(v.left,v.right)):O=k-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await m((0,r.A)((0,r.A)({},t),{},{availableWidth:L,availableHeight:O}));const M=await c.getDimensions(u.floating);return E!==M.width||k!==M.height?{reset:{rects:!0}}:{}}}},se=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:a,platform:l,elements:c,middlewareData:u}=t,{element:f,padding:m=0}=h(e,t)||{};if(null==f)return{};const v=T(m),y={x:n,y:i},w=b(s),S=g(w),E=await l.getDimensions(f),k="y"===w,_=k?"top":"left",C=k?"bottom":"right",A=k?"clientHeight":"clientWidth",x=a.reference[S]+a.reference[w]-y[w]-a.floating[S],I=y[w]-a.reference[w],N=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let P=N?N[A]:0;P&&await(null==l.isElement?void 0:l.isElement(N))||(P=c.floating[A]||a.floating[S]);const R=x/2-I/2,O=P/2-E[S]/2-1,D=o(v[_],O),L=o(v[C],O),M=D,F=P-E[S]-L,j=P/2-E[S]/2+R,U=d(M,j,F),V=!u.arrow&&null!=p(s)&&j!==U&&a.reference[S]/2-(j<M?D:L)-E[S]/2<0,z=V?j<M?j-M:j-F:0;return{[w]:y[w]+z,data:(0,r.A)({[w]:U,centerOffset:j-U-z},V&&{alignmentOffset:z}),reset:V}}}),ae=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:s,platform:a,strategy:l}=t,{padding:c=2,x:u,y:d}=h(e,t),p=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let o=0;o<t.length;o++){const e=t[o];!r||e.y-r.y>r.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map(e=>x(L(e)))}(p),g=x(L(p)),v=T(c);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=u&&null!=d)return m.find(e=>u>e.left-v.left&&u<e.right+v.right&&d>e.top-v.top&&d<e.bottom+v.bottom)||g;if(m.length>=2){if("y"===y(n)){const e=m[0],t=m[m.length-1],r="top"===f(n),o=e.top,i=t.bottom,s=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:s,right:a,width:a-s,height:i-o,x:s,y:o}}
2const e="left"===f(n),t=i(...m.map(e=>e.right)),r=o(...m.map(e=>e.left)),s=m.filter(n=>e?n.left===r:n.right===t),a=s[0].top,l=s[s.length-1].bottom;return{top:a,bottom:l,left:r,right:t,width:t-r,height:l-a,x:r,y:a}}return g}},floating:r.floating,strategy:l});return s.reference.x!==b.reference.x||s.reference.y!==b.reference.y||s.reference.width!==b.reference.width||s.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},le=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=h(e,t),d={x:n,y:o},p=y(i),g=m(p);let v=d[g],b=d[p];const w=h(l,t),S="number"===typeof w?{mainAxis:w,crossAxis:0}:(0,r.A)({mainAxis:0,crossAxis:0},w);if(c){const e="y"===g?"height":"width",t=s.reference[g]-s.floating[e]+S.mainAxis,n=s.reference[g]+s.reference[e]-S.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var E,k;const e="y"===g?"width":"height",t=M.has(f(i)),n=s.reference[p]-s.floating[e]+(t&&(null==(E=a.offset)?void 0:E[p])||0)+(t?0:S.crossAxis),r=s.reference[p]+s.reference[e]+(t?0:(null==(k=a.offset)?void 0:k[p])||0)-(t?S.crossAxis:0);b<n?b=n:b>r&&(b=r)}return{[g]:v,[p]:b}}}},ce=(e,t,n)=>{const o=new Map,i=(0,r.A)({platform:Z},n),s=(0,r.A)((0,r.A)({},i.platform),{},{_c:o});return(async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=O(u,o,c),f=o,p={},m=0;for(let g=0;g<l.length;g++){const{name:n,fn:s}=l[g],{x:v,y:y,data:b,reset:w}=await s({x:d,y:h,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,h=null!=y?y:h,p=(0,r.A)((0,r.A)({},p),{},{[n]:(0,r.A)((0,r.A)({},p[n]),b)}),w&&m<=50&&(m++,"object"===typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:h}=O(u,f,c))),g=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:p}})(e,t,(0,r.A)((0,r.A)({},i),{},{platform:s}))}},7683:(e,t,n)=>{"use strict";n.d(t,{g:()=>s,w:()=>i});var r=n(1891),o=n(1340);function i(e){let{color:t,theme:n,autoContrast:r}=e;if(!("boolean"===typeof r?r:n.autoContrast))return"var(--mantine-color-white)";return(0,o.g)({color:t||n.primaryColor,theme:n}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function s(e,t){return i({color:e.colors[e.primaryColor][(0,r.g)(e,t)],theme:e,autoContrast:null})}},7783:(e,t,n)=>{"use strict";n.d(t,{$:()=>N});var r=n(9379),o=n(45),i=n(579),s=n(2932),a=(n(5043),n(5783)),l=n(1721),c=n(9863),u=n(8038),d=n(4886),h=n(464),f=n(6405),p=n(1160),m=n(1065),g=n(6331),v={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const y=["className","style","classNames","styles","unstyled","orientation","vars","borderWidth","variant","mod"],b={orientation:"horizontal"},w=(0,l.V)((e,t)=>{let{borderWidth:n}=t;return{group:{"--button-border-width":(0,s.D)(n)}}}),S=(0,g.P9)((e,t)=>{const n=(0,c.Y)("ButtonGroup",b,e),s=(0,c.Y)("ButtonGroup",b,e),{className:a,style:l,classNames:h,styles:f,unstyled:p,orientation:m,vars:g,borderWidth:S,variant:E,mod:k}=s,_=(0,o.A)(s,y),C=(0,u.I)({name:"ButtonGroup",props:n,classes:v,className:a,style:l,classNames:h,styles:f,unstyled:p,vars:g,varsResolver:w,rootSelector:"group"});return(0,i.jsx)(d.a,(0,r.A)((0,r.A)({},C("group")),{},{ref:t,variant:E,mod:[{"data-orientation":m},k],role:"group"},_))});S.classes=v,S.displayName="@mantine/core/ButtonGroup";const E=["className","style","classNames","styles","unstyled","vars","variant","gradient","radius","autoContrast"],k={},_=(0,l.V)((e,t)=>{let{radius:n,color:r,gradient:o,variant:i,autoContrast:s,size:l}=t;const c=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:o,variant:i||"filled",autoContrast:s});return{groupSection:{"--section-height":(0,a.YC)(l,"section-height"),"--section-padding-x":(0,a.YC)(l,"section-padding-x"),"--section-fz":null!==l&&void 0!==l&&l.includes("compact")?(0,a.ny)(l.replace("compact-","")):(0,a.ny)(l),"--section-radius":void 0===n?void 0:(0,a.nJ)(n),"--section-bg":r||i?c.background:void 0,"--section-color":c.color,"--section-bd":r||i?c.border:void 0}}}),C=(0,g.P9)((e,t)=>{const n=(0,c.Y)("ButtonGroupSection",k,e),s=(0,c.Y)("ButtonGroupSection",k,e),{className:a,style:l,classNames:h,styles:f,unstyled:p,vars:m,variant:g,gradient:y,radius:b,autoContrast:w}=s,S=(0,o.A)(s,E),C=(0,u.I)({name:"ButtonGroupSection",props:n,classes:v,className:a,style:l,classNames:h,styles:f,unstyled:p,vars:m,varsResolver:_,rootSelector:"groupSection"});return(0,i.jsx)(d.a,(0,r.A)((0,r.A)({},C("groupSection")),{},{ref:t,variant:g},S))});C.classes=v,C.displayName="@mantine/core/ButtonGroupSection";const A=["style","vars","className","color","disabled","children","leftSection","rightSection","fullWidth","variant","radius","loading","loaderProps","gradient","classNames","styles","unstyled","data-disabled","autoContrast","mod"],T={in:{opacity:1,transform:"translate(-50%, calc(-50% + ".concat((0,s.D)(1),"))")},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},x={},I=(0,l.V)((e,t)=>{let{radius:n,color:r,gradient:o,variant:i,size:s,justify:l,autoContrast:c}=t;const u=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:o,variant:i||"filled",autoContrast:c});return{root:{"--button-justify":l,"--button-height":(0,a.YC)(s,"button-height"),"--button-padding-x":(0,a.YC)(s,"button-padding-x"),"--button-fz":null!==s&&void 0!==s&&s.includes("compact")?(0,a.ny)(s.replace("compact-","")):(0,a.ny)(s),"--button-radius":void 0===n?void 0:(0,a.nJ)(n),"--button-bg":r||i?u.background:void 0,"--button-hover":r||i?u.hover:void 0,"--button-color":u.color,"--button-bd":r||i?u.border:void 0,"--button-hover-color":r||i?u.hoverColor:void 0}}}),N=(0,h.v)((e,t)=>{const n=(0,c.Y)("Button",x,e),{style:s,vars:a,className:l,color:h,disabled:g,children:y,leftSection:b,rightSection:w,fullWidth:S,variant:E,radius:k,loading:_,loaderProps:C,gradient:N,classNames:P,styles:R,unstyled:O,"data-disabled":D,autoContrast:L,mod:M}=n,F=(0,o.A)(n,A),j=(0,u.I)({name:"Button",props:n,classes:v,className:l,style:s,classNames:P,styles:R,unstyled:O,vars:a,varsResolver:I}),U=!!b,V=!!w;return(0,i.jsxs)(m.N,(0,r.A)((0,r.A)((0,r.A)({ref:t},j("root",{active:!g&&!_&&!D})),{},{unstyled:O,variant:E,disabled:g||_,mod:[{disabled:g||D,loading:_,block:S,"with-left-section":U,"with-right-section":V},M]},F),{},{children:[(0,i.jsx)(p.e,{mounted:!!_,transition:T,duration:150,children:e=>(0,i.jsx)(d.a,(0,r.A)((0,r.A)({component:"span"},j("loader",{style:e})),{}
2,{"aria-hidden":!0,children:(0,i.jsx)(f.a,(0,r.A)({color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)"},C))}))}),(0,i.jsxs)("span",(0,r.A)((0,r.A)({},j("inner")),{},{children:[b&&(0,i.jsx)(d.a,(0,r.A)((0,r.A)({component:"span"},j("section")),{},{mod:{position:"left"},children:b})),(0,i.jsx)(d.a,(0,r.A)((0,r.A)({component:"span",mod:{loading:_}},j("label")),{},{children:y})),w&&(0,i.jsx)(d.a,(0,r.A)((0,r.A)({component:"span"},j("section")),{},{mod:{position:"right"},children:w}))]}))]}))});N.classes=v,N.displayName="@mantine/core/Button",N.Group=S,N.GroupSection=C},7803:(e,t,n)=>{"use strict";n.d(t,{A$:()=>o,AI:()=>a,FI:()=>u,If:()=>c,NL:()=>d,OY:()=>s,WV:()=>l,bv:()=>f,jD:()=>i,m6:()=>h});var r=n(5043);const o=(0,r.createContext)(null);function i(){const e=(0,r.useContext)(o);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function s(){return i().cssVariablesResolver}function a(){return i().classNamesPrefix}function l(){return i().getStyleNonce}function c(){return i().withStaticClasses}function u(){return i().headless}function d(){var e;return null===(e=i().stylesTransform)||void 0===e?void 0:e.sx}function h(){var e;return null===(e=i().stylesTransform)||void 0===e?void 0:e.styles}function f(){return i().env||"default"}},7835:(e,t,n)=>{"use strict";function r(e){return Object.keys(e)}n.d(t,{H:()=>r})},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},7971:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(6711);function o(e,t){var n,o;const i={from:(null===e||void 0===e?void 0:e.from)||t.defaultGradient.from,to:(null===e||void 0===e?void 0:e.to)||t.defaultGradient.to,deg:null!==(n=null!==(o=null===e||void 0===e?void 0:e.deg)&&void 0!==o?o:t.defaultGradient.deg)&&void 0!==n?n:0},s=(0,r.r)(i.from,t),a=(0,r.r)(i.to,t);return"linear-gradient(".concat(i.deg,"deg, ").concat(s," 0%, ").concat(a," 100%)")}},8012:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=!1},8027:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","address-book","IconAddressBook",[["path",{d:"M20 6v12a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2z",key:"svg-0"}],["path",{d:"M10 16h6",key:"svg-1"}],["path",{d:"M13 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M4 8h3",key:"svg-3"}],["path",{d:"M4 12h3",key:"svg-4"}],["path",{d:"M4 16h3",key:"svg-5"}]])},8038:(e,t,n)=>{"use strict";n.d(t,{I:()=>g});n(5043),n(579);var r=n(7803),o=n(3056),i=n(8387);const s={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};var a=n(8732);function l(e){let{selector:t,stylesCtx:n,theme:r,classNames:o,props:i}=e;return(0,a.J)({theme:r,classNames:o,props:i,stylesCtx:n})[t]}function c(e){let{theme:t,options:n,themeName:r,selector:o,classNamesPrefix:c,classNames:u,classes:d,unstyled:h,className:f,rootSelector:p,props:m,stylesCtx:g,withStaticClasses:v,headless:y,transformedStyles:b}=e;return(0,i.A)(function(e){let{theme:t,options:n,unstyled:r}=e;return(0,i.A)((null===n||void 0===n?void 0:n.focusable)&&!r&&(t.focusClassName||s[t.focusRing]),(null===n||void 0===n?void 0:n.active)&&!r&&t.activeClassName)}({theme:t,options:n,unstyled:h||y}),function(e){let{themeName:t,theme:n,selector:r,props:o,stylesCtx:i}=e;return t.map(e=>{var t,s;return null===(t=(0,a.J)({theme:n,classNames:null===(s=n.components[e])||void 0===s?void 0:s.classNames,props:o,stylesCtx:i}))||void 0===t?void 0:t[r]})}({theme:t,themeName:r,selector:o,props:m,stylesCtx:g}),function(e){let{options:t,classes:n,selector:r,unstyled:o}=e;return null!==t&&void 0!==t&&t.variant&&!o?n["".concat(r,"--").concat(t.variant)]:void 0}({options:n,classes:d,selector:o,unstyled:h}),l({selector:o,stylesCtx:g,theme:t,classNames:u,props:m}),l({selector:o,stylesCtx:g,theme:t,classNames:b,props:m}),function(e){let{selector:t,stylesCtx:n,options:r,props:o,theme:i}=e;return(0,a.J)({theme:i,classNames:null===r||void 0===r?void 0:r.classNames,props:(null===r||void 0===r?void 0:r.props)||o,stylesCtx:n})[t]}({selector:o,stylesCtx:g,options:n,props:m,theme:t}),function(e){let{rootSelector:t,selector:n,className:r}=e;return t===n?r:void 0}({rootSelector:p,selector:o,className:f}),function(e){let{selector:t,classes:n,unstyled:r}=e;return r?void 0:n[t]}({selector:o,classes:d,unstyled:h||y}),v&&!y&&function(e){let{themeName:t,classNamesPrefix:n,selector:r,withStaticClass:o}=e;return!1===o?[]:t.map(e=>"".concat(n,"-").concat(e,"-").concat(r))}({themeName:r,classNamesPrefix:c,selector:o,withStaticClass:null===n||void 0===n?void 0:n.withStaticClass}),null===n||void 0===n?void 0:n.className)}var u=n(9379),d=n(2623);function h(e){let{style:t,theme:n}=e;return Array.isArray(t)?[...t].reduce((e,t)=>
2(0,u.A)((0,u.A)({},e),h({style:t,theme:n})),{}):"function"===typeof t?t(n):null==t?{}:t}var f=n(81);function p(e){var t;let{vars:n,varsResolver:r,theme:o,props:i,stylesCtx:s,selector:a,themeName:l,headless:c}=e;return null===(t=function(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]=(0,u.A)((0,u.A)({},e[n]),(0,f.J)(t[n]))}),e),{})}([c?{}:null===r||void 0===r?void 0:r(o,i,s),...l.map(e=>{var t,n;return null===(t=o.components)||void 0===t||null===(t=t[e])||void 0===t||null===(n=t.vars)||void 0===n?void 0:n.call(t,o,i,s)}),null===n||void 0===n?void 0:n(o,i,s)]))||void 0===t?void 0:t[a]}function m(e){let{theme:t,themeName:n,selector:r,options:o,props:i,stylesCtx:s,rootSelector:a,styles:l,style:c,vars:f,varsResolver:m,headless:g,withStylesTransform:v}=e;return(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)({},!v&&function(e){let{theme:t,themeName:n,props:r,stylesCtx:o,selector:i}=e;return n.map(e=>{var n;return(0,d.N)({theme:t,styles:null===(n=t.components[e])||void 0===n?void 0:n.styles,props:r,stylesCtx:o})[i]}).reduce((e,t)=>(0,u.A)((0,u.A)({},e),t),{})}({theme:t,themeName:n,props:i,stylesCtx:s,selector:r})),!v&&(0,d.N)({theme:t,styles:l,props:i,stylesCtx:s})[r]),!v&&(0,d.N)({theme:t,styles:null===o||void 0===o?void 0:o.styles,props:(null===o||void 0===o?void 0:o.props)||i,stylesCtx:s})[r]),p({theme:t,props:i,stylesCtx:s,vars:f,varsResolver:m,selector:r,themeName:n,headless:g})),a===r?h({style:c,theme:t}):null),h({style:null===o||void 0===o?void 0:o.style,theme:t}))}function g(e){let{name:t,classes:n,props:i,stylesCtx:s,className:a,style:l,rootSelector:u="root",unstyled:d,classNames:h,styles:f,vars:p,varsResolver:g}=e;const v=(0,o.xd)(),y=(0,r.AI)(),b=(0,r.If)(),w=(0,r.FI)(),S=(Array.isArray(t)?t:[t]).filter(e=>e),{withStylesTransform:E,getTransformedStyles:k}=function(e){var t;let{props:n,stylesCtx:i,themeName:s}=e;const a=(0,o.xd)(),l=null===(t=(0,r.m6)())||void 0===t?void 0:t();return{getTransformedStyles:e=>l?[...e.map(e=>l(e,{props:n,theme:a,ctx:i})),...s.map(e=>{var t;return l(null===(t=a.components[e])||void 0===t?void 0:t.styles,{props:n,theme:a,ctx:i})})].filter(Boolean):[],withStylesTransform:!!l}}({props:i,stylesCtx:s,themeName:S});return(e,t)=>({className:c({theme:v,options:t,themeName:S,selector:e,classNamesPrefix:y,classNames:h,classes:n,unstyled:d,className:a,rootSelector:u,props:i,stylesCtx:s,withStaticClasses:b,headless:w,transformedStyles:k([null===t||void 0===t?void 0:t.styles,f])}),style:m({theme:v,themeName:S,selector:e,options:t,props:i,stylesCtx:s,rootSelector:u,styles:f,style:l,vars:p,varsResolver:g,headless:w,withStylesTransform:E})})}},8080:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(5043),o=n(7451),i=n(6138);function s(e){let{opened:t,floating:n,position:s,positionDependencies:a}=e;const[l,c]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(n.refs.reference.current&&n.refs.floating.current&&t)return(0,o.ll)(n.refs.reference.current,n.refs.floating.current,n.update)},[n.refs.reference.current,n.refs.floating.current,t,l,s]),(0,i.C)(()=>{n.update()},a),(0,i.C)(()=>{c(e=>e+1)},[t])}},8147:(e,t,n)=>{"use strict";n.d(t,{XR:()=>Ce,qk:()=>_e,c7:()=>Te,KR:()=>Ae,D:()=>ke});var r=n(52),o=n(1529),i=n(8812);const s="firebasestorage.googleapis.com",a="storageBucket";class l extends o.g{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(d(e),"Firebase Storage: ".concat(t," (").concat(d(e),")")),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,l.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return d(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}var c,u;function d(e){return"storage/"+e}function h(){return new l(c.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function f(){return new l(c.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function p(){return new l(c.CANCELED,"User canceled the upload/download.")}function m(){return new l(c.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function g(e){return new l(c.INVALID_ARGUMENT,e)}function v(){return new l(c.APP_DELETED,"The Firebase app was deleted.")}function y(e,t){return new l(c.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function b(e){throw new l(c.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CA
2NNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(c||(c={}));class w{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=w.makeFromUrl(e,t)}catch(o){return new w(e,"")}if(""===n.path)return n;throw r=e,new l(c.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)";const o=new RegExp("^gs://"+r+"(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}const a=t.replace(/[.]/g,"\\."),u=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(a,"/").concat("v[A-Za-z0-9_]+","/b/").concat(r,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://".concat(t===s?"(?:storage.googleapis.com|storage.cloud.google.com)":t,"/").concat(r,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:i}];for(let s=0;s<u.length;s++){const t=u[s],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let o=r[t.indices.path];o||(o=""),n=new w(e,o),t.postModify(n);break}}if(null==n)throw function(e){return new l(c.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class S{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(){}}function E(e){return"string"===typeof e||e instanceof String}function k(e){return _()&&e instanceof Blob}function _(){return"undefined"!==typeof Blob}function C(e,t,n,r){if(r<t)throw g("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw g("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}function A(e,t,n){let r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function T(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}function x(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),o=-1!==t.indexOf(e);return n||r||o}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(u||(u={}));class I{constructor(e,t,n,r,o,i,s,a,l,c,u){let d=!(arguments.length>11&&void 0!==arguments[11])||arguments[11],h=arguments.length>12&&void 0!==arguments[12]&&arguments[12];this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=o,this.additionalRetryCodes_=i,this.callback_=s,this.errorCallback_=a,this.timeout_=l,this.progressCallback_=c,this.connectionFactory_=u,this.retry=d,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{if(t)return void e(!1,new N(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===u.NO_ERROR,o=n.getStatus();if(!t||x(o,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===u.ABORT;return void e(!1,new N(!1,null,t))}const i=-1!==this.successCodes_.indexOf(o);e(!0,new N(i,n))})},t=(e,t)=>{const n=this.resolve_,r=this.reject_,o=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(o,o.getResponse());void 0!==e?n(e):n()}catch(i){r(i)}else if(null!==o){const e=h();e.serverResponse=o.getErrorText(),this.errorCallback_?r(this.errorCallback_(o,e)):r(e)}else if(t.canceled){r(this.appDelete_?v():p())}else{r(f())}};this.canceled_?t(0,new N(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,o=null,i=null,
2s=!1,a=0;function l(){return 2===a}let c=!1;function u(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function d(t){o=setTimeout(()=>{o=null,e(f,l())},t)}function h(){i&&clearTimeout(i)}function f(e){if(c)return void h();for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(e)return h(),void u.call(null,e,...n);if(l()||s)return h(),void u.call(null,e,...n);let i;r<64&&(r*=2),1===a?(a=2,i=0):i=1e3*(r+Math.random()),d(i)}let p=!1;function m(e){p||(p=!0,h(),c||(null!==o?(e||(a=2),clearTimeout(o),d(0)):e||(a=1)))}return d(0),i=setTimeout(()=>{s=!0,m(!0)},n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class N{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function P(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function R(){const e=P();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){const t=new e;for(let e=0;e<n.length;e++)t.append(n[e]);return t.getBlob()}if(_())return new Blob(n);throw new l(c.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}function O(e){if("undefined"===typeof atob)throw t="base-64",new l(c.UNSUPPORTED_ENVIRONMENT,"".concat(t," is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information."));var t;return atob(e)}const D="raw",L="base64",M="base64url",F="data_url";class j{constructor(e,t){this.data=e,this.contentType=t||null}}function U(e,t){switch(e){case D:return new j(V(t));case L:case M:return new j(z(e,t));case F:return new j(function(e){const t=new B(e);return t.base64?z(L,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(n){throw y(F,"Malformed data URL.")}return V(t)}(t.rest)}(t),new B(t).contentType)}throw h()}function V(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r)){if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1))){r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else t.push(239,191,189)}else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function z(e,t){switch(e){case L:{const n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r){throw y(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?")}break}case M:{const n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r){throw y(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=O(t)}catch(o){if(o.message.includes("polyfill"))throw o;throw y(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}class B{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw y(F,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){if(!(e.length>=t.length))return!1;return e.substring(e.length-t.length)===t}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class H{constructor(e,t){let n=0,r="";k(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(k(this.data_)){const n=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,e,t);return null===n?null:new H(n)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new H(n,!0)}}static getBlob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(_()){const e=t.map(e=>e instanceof H?e.data_:e);return new H(R.apply(null,e))}{const e=t.map(e=>E(e)?U(D,e).data:e.data_);let n=0;
2e.forEach(e=>{n+=e.byteLength});const r=new Uint8Array(n);let o=0;return e.forEach(e=>{for(let t=0;t<e.length;t++)r[o++]=e[t]}),new H(r,!0)}}uploadData(){return this.data_}}function q(e){let t;try{t=JSON.parse(e)}catch(r){return null}return"object"!==typeof(n=t)||Array.isArray(n)?null:t;var n}function W(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function K(e,t){return t}class G{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||K}}let Y=null;function Q(){if(Y)return Y;const e=[];e.push(new G("bucket")),e.push(new G("generation")),e.push(new G("metageneration")),e.push(new G("name","fullPath",!0));const t=new G("name");t.xform=function(e,t){return function(e){return!E(e)||e.length<2?e:W(e)}(t)},e.push(t);const n=new G("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new G("timeCreated")),e.push(new G("updated")),e.push(new G("md5Hash",null,!0)),e.push(new G("cacheControl",null,!0)),e.push(new G("contentDisposition",null,!0)),e.push(new G("contentEncoding",null,!0)),e.push(new G("contentLanguage",null,!0)),e.push(new G("contentType",null,!0)),e.push(new G("metadata","customMetadata",!0)),Y=e,Y}function X(e,t,n){const r={type:"file"},o=n.length;for(let i=0;i<o;i++){const e=n[i];r[e.local]=e.xform(r,t[e.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,r=e.fullPath,o=new w(n,r);return t._makeStorageReference(o)}})}(r,e),r}function J(e,t,n){const r=q(t);if(null===r)return null;return X(e,r,n)}function $(e,t){const n={},r=t.length;for(let o=0;o<r;o++){const r=t[o];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}class Z{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function ee(e){if(!e)throw h()}function te(e,t){return function(n,r){const o=J(e,r,t);return ee(null!==o),o}}function ne(e,t){return function(n,r){const o=J(e,r,t);return ee(null!==o),function(e,t,n,r){const o=q(t);if(null===o)return null;if(!E(o.downloadTokens))return null;const i=o.downloadTokens;if(0===i.length)return null;const s=encodeURIComponent;return i.split(",").map(t=>{const o=e.bucket,i=e.fullPath;return A("/b/"+s(o)+"/o/"+s(i),n,r)+T({alt:"media",token:t})})[0]}(o,r,e.host,e._protocol)}}function re(e){return function(t,n){let r;var o,i;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new l(c.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new l(c.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,r=new l(c.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(o=e.path,r=new l(c.UNAUTHORIZED,"User does not have permission to access '"+o+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function oe(e){const t=re(e);return function(n,r){let o=t(n,r);var i;return 404===n.getStatus()&&(i=e.path,o=new l(c.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")),o.serverResponse=r.serverResponse,o}}function ie(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function se(e,t,n,r,o){const i=t.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"};const a=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();s["Content-Type"]="multipart/related; boundary="+a;const l=ie(t,r,o),c="--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+$(l,n)+"\r\n--"+a+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+a+"--",d=H.getBlob(c,r,u);if(null===d)throw m();const h={name:l.fullPath},f=A(i,e.host,e._protocol),p=e.maxUploadRetryTime,g=new Z(f,"POST",te(e,n),p);
2return g.urlParams=h,g.headers=s,g.body=d.uploadData(),g.errorHandler=re(t),g}let ae=null;class le{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=u.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=u.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=u.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r,i){if(this.sent_)throw b("cannot .send() more than once");if((0,o.zJ)(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(const o in i)i.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,i[o].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw b("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw b("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw b("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw b("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class ce extends le{initXhr(){this.xhr_.responseType="text"}}function ue(){return ae?ae():new ce}class de{constructor(e,t){this._service=e,this._location=t instanceof w?t:w.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new de(e,t)}get root(){const e=new w(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return W(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new w(this._location.bucket,e);return new de(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new l(c.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function he(e,t,n){e._throwIfRoot("uploadBytes");const r=se(e.storage,e._location,Q(),new H(t,!0),n);return e.storage.makeRequestWithTokens(r,ue).then(t=>({metadata:t,ref:e}))}function fe(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const r=A(t.fullServerUrl(),e.host,e._protocol),o=e.maxOperationRetryTime,i=new Z(r,"GET",ne(e,n),o);return i.errorHandler=oe(t),i}(e.storage,e._location,Q());return e.storage.makeRequestWithTokens(t,ue).then(e=>{if(null===e)throw new l(c.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}function pe(e){e._throwIfRoot("deleteObject");const t=function(e,t){const n=A(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,o=new Z(n,"DELETE",function(e,t){},r);return o.successCodes=[200,204],o.errorHandler=oe(t),o}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,ue)}function me(e,t){const n=function(e,t){const n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new w(e._location.bucket,n);return new de(e.storage,r)}function ge(e,t){if(e instanceof be){const n=e;if(null==n._bucket)throw new l(c.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+a+"' property when initializing the app?");const r=new de(n,n._bucket);return null!=t?ge(r,t):r}return void 0!==t?me(e,t):e}function ve(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof be)return new de(e,t);throw g("To use ref(service, url), the first argument must be a Storage instance.")}return ge(e,t)}function ye(e,t){const n=null===t||void 0===t?void 0:t[a];return null==n?null:w.makeFromBucketSpec(n,e)}class be{constructor(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=o,this._isUsingEmulator=i,this._bucket=null,this._host=s,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?w.makeFromBucketSpec(r,this._host):ye(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=w.makeFromBucketSpec(this._url,e):this._bucket=ye(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){C("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){C("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,r.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
2h(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new de(this,e)}_makeRequest(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new S(v());{const i=function(e,t,n,r,o,i){let s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const l=T(e.urlParams),c=e.url+l,u=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(u,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(u,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(u,i),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(u,r),new I(c,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,s,a)}(e,this._appId,n,r,t,this._firebaseVersion,o,this._isUsingEmulator);return this._requests.add(i),i.getPromise().then(()=>this._requests.delete(i),()=>this._requests.delete(i)),i}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const we="@firebase/storage",Se="0.13.14",Ee="storage";function ke(e,t,n){return he(e=(0,o.Ku)(e),t,n)}function _e(e){return fe(e=(0,o.Ku)(e))}function Ce(e){return pe(e=(0,o.Ku)(e))}function Ae(e,t){return ve(e=(0,o.Ku)(e),t)}function Te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Sx)(),t=arguments.length>1?arguments[1]:void 0;e=(0,o.Ku)(e);const n=(0,r.j6)(e,Ee).getImmediate({identifier:t}),i=(0,o.yU)("storage");return i&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n);const i=(0,o.zJ)(t);i&&((0,o.gE)("https://".concat(e.host,"/b")),(0,o.P1)("Storage",!0)),e._isUsingEmulator=!0,e._protocol=i?"https":"http";const{mockUserToken:s}=r;s&&(e._overrideAuthToken="string"===typeof s?s:(0,o.Fy)(s,e.app.options.projectId))}(e,t,n,r)}(n,...i),n}function xe(e,t){let{instanceIdentifier:n}=t;const o=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),s=e.getProvider("app-check-internal");return new be(o,i,s,n,r.MF)}(0,r.om)(new i.uA(Ee,xe,"PUBLIC").setMultipleInstances(!0)),(0,r.KO)(we,Se,""),(0,r.KO)(we,Se,"esm2017")},8221:(e,t,n)=>{"use strict";function r(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}n.d(t,{P:()=>r})},8387:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},8429:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(5043);function o(e){return!Array.isArray(e)&&null!==e&&("object"===typeof e&&e.type!==r.Fragment)}},8498:(e,t,n)=>{"use strict";n.d(t,{i:()=>f});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(528);function l(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function c(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const u={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function d(e){let{position:t,arrowSize:n,arrowOffset:o,arrowRadius:i,arrowPosition:s,arrowX:a,arrowY:d,dir:h}=e;const[f,p="center"]=t.split("-"),m={width:n,height:n,transform:"rotate(45deg)",position:"absolute",[u[f]]:i},g=-n/2;return"left"===f?(0,r.A)((0,r.A)((0,r.A)({},m),l(p,d,o,s)),{},{right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}):"right"===f?(0,r.A)((0,r.A)((0,r.A)({},m),l(p,d,o,s)),{},{left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"pol
2ygon(0 100%, 0 0, 100% 100%)"}):"top"===f?(0,r.A)((0,r.A)((0,r.A)({},m),c(p,a,o,s,h)),{},{bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}):"bottom"===f?(0,r.A)((0,r.A)((0,r.A)({},m),c(p,a,o,s,h)),{},{top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}):{}}const h=["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY","style"],f=(0,s.forwardRef)((e,t)=>{let{position:n,arrowSize:s,arrowOffset:l,arrowRadius:c,arrowPosition:u,visible:f,arrowX:p,arrowY:m,style:g}=e,v=(0,o.A)(e,h);const{dir:y}=(0,a.jH)();return f?(0,i.jsx)("div",(0,r.A)((0,r.A)({},v),{},{ref:t,style:(0,r.A)((0,r.A)({},g),d({position:n,arrowSize:s,arrowOffset:l,arrowRadius:c,arrowPosition:u,dir:y,arrowX:p,arrowY:m}))})):null});f.displayName="@mantine/core/FloatingArrow"},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8732:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(8387);const o={};function i(e){let{theme:t,classNames:n,props:i,stylesCtx:s}=e;return function(e){const t={};return e.forEach(e=>{Object.entries(e).forEach(e=>{let[n,o]=e;t[n]?t[n]=(0,r.A)(t[n],o):t[n]=o})}),t}((Array.isArray(n)?n:[n]).map(e=>"function"===typeof e?e(t,i,s):e||o))}},8775:(e,t,n)=>{"use strict";n.d(t,{s:()=>C});var r=n(9379),o=n(579),i=n(5043);const s=/input|select|textarea|button|object/,a="a, input, select, textarea, button, object, [tabindex]";function l(e){return"none"===e.style.display}function c(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function u(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(c(e));return(s.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(l(t))return!1;t=t.parentNode}return!0}(e)}function d(e){const t=c(e);return(Number.isNaN(t)||t>=0)&&u(e)}function h(e){return Array.from(e.querySelectorAll(a)).filter(d)}function f(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,i.useRef)(null),n=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const n=Array.from(e.querySelectorAll(a));t=n.find(d)||n.find(u)||null,!t&&u(e)&&(t=e)}t&&t.focus({preventScroll:!0})},r=(0,i.useCallback)(r=>{e&&null!==r&&t.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),t.current=r):t.current=null)},[e]);return(0,i.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const r=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=h(e);if(!n.length)return void t.preventDefault();const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=r===o.activeElement||e===o.activeElement;const s=o.activeElement;"INPUT"===s.tagName&&"radio"===s.getAttribute("type")&&(i=n.filter(e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===s.getAttribute("name")).includes(r));if(!i)return;t.preventDefault();const a=n[t.shiftKey?n.length-1:0];a&&a.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),r}var p=n(9252),m=n(8429),g=n(45),v=n(9863),y=n(8038),b=n(4886),w=n(6331),S={root:"m_515a97f8"};const E=["classNames","className","style","styles","unstyled","vars"],k={},_=(0,w.P9)((e,t)=>{const n=(0,v.Y)("VisuallyHidden",k,e),{classNames:i,className:s,style:a,styles:l,unstyled:c,vars:u}=n,d=(0,g.A)(n,E),h=(0,y.I)({name:"VisuallyHidden",classes:S,props:n,className:s,style:a,classNames:i,styles:l,unstyled:c});return(0,o.jsx)(b.a,(0,r.A)((0,r.A)({component:"span",ref:t},h("root")),d))});function C(e){let{children:t,active:n=!0,refProp:r="ref",innerRef:o}=e;const s=f(n),a=(0,p.pc)(s,o);return(0,m.v)(t)?(0,i.cloneElement)(t,{[r]:a}):t}function A(e){return(0,o.jsx)(_,(0,r.A)({tabIndex:-1,"data-autofocus":!0},e))}_.classes=S,_.displayName="@mantine/core/VisuallyHidden",C.displayName="@mantine/core/FocusTrap",A.displayName="@mantine/core/FocusTrapInitialFocus",C.InitialFocus=A}
2,8812:(e,t,n)=>{"use strict";n.d(t,{h1:()=>a,uA:()=>o});var r=n(1529);class o{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const i="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:i})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[o,i]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(o)&&i.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const o of n)try{o(e,t)}catch(r){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(o=t,o===i?void 0:o),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(s){}var o;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return this.component?this.component.multipleInstances?e:i:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},8903:(e,t,n)=>{"use strict";n.d(t,{m:()=>g});var r=n(9379),o=n(45),i=n(579),s=(n(5043),n(5783)),a=n(1721),l=n(9863),c=n(8038),u=n(4886),d=n(6331),h={root:"m_7485cace"};const f=["classNames","className","style","styles","unstyled","vars","fluid","mod"],p={},m=(0,a.V)((e,t)=>{let{size:n,fluid:r}=t;return{root:{"--container-size":r?void 0:(0,s.YC)(n,"container-size")}}}),g=(0,d.P9)((e,t)=>{const n=(0,l.Y)("Container",p,e),{classNames:s,className:a,style:d,styles:g,unstyled:v,vars:y,fluid:b,mod:w}=n,S=(0,o.A)(n,f),E=(0,c.I)({name:"Container",classes:h,props:n,className:a,style:d,classNames:s,styles:g,unstyled:v,vars:y,varsResolver:m});return(0,i.jsx)(u.a,(0,r.A)((0,r.A)({ref:t,mod:[{fluid:b},w]},E("root")),S))});g.classes=h,g.displayName="@mantine/core/Container"},8913:(e,t,n)=>{"use strict";n.d(t,{T3:()=>X,ck:()=>J,s9:()=>re,we:()=>oe,iQ:()=>ie,Mk:()=>K,bv:()=>ce,SV:()=>E,It:()=>de});var r=n(9526),o=n(45),i=n(9379),s=n(5043),a=n.t(s,2),l=n(5702);function c(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function u(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
vendor: 6,937 bytes, line 2
2if(n&&(0,l.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function d(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function h(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function f(e){return!h().includes("jsdom/")&&(!p()&&0===e.width&&0===e.height||p()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){const e=/android/i;return e.test(d())||e.test(h())}function m(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function g(e){return(null==e?void 0:e.ownerDocument)||document}function v(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}const b="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function w(e){return(0,l.sb)(e)&&e.matches(b)}n(7950);var S=n(6178);function E(e){return s.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)})},e)}const k=(0,i.A)({},a),_=k.useInsertionEffect||(e=>e());function C(e){const t=s.useRef(()=>{0});return _(()=>{t.current=e}),s.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const A="ArrowUp",T="ArrowDown",x="ArrowLeft",I="ArrowRight";var N="undefined"!==typeof document?s.useLayoutEffect:s.useEffect;const P=[x,I],R=[A,T];let O=!1,D=0;const L=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+D++;const M=k.useId||function(){const[e,t]=s.useState(()=>O?L():void 0);return N(()=>{null==e&&t(L())},[]),s.useEffect(()=>{O=!0},[]),e};function F(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}const j=s.createContext(null),U=s.createContext(null),V=()=>{var e;return(null==(e=s.useContext(j))?void 0:e.id)||null},z=()=>s.useContext(U);function B(e){return"data-floating-ui-"+e}function H(e){const t=(0,s.useRef)(e);return N(()=>{t.current=e}),t}const q=B("safe-polygon");function W(e,t,n){return n&&!m(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function K(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:c}=e,{enabled:d=!0,delay:h=0,handleClose:f=null,mouseOnly:p=!1,restMs:v=0,move:y=!0}=t,b=z(),w=V(),S=H(f),E=H(h),k=H(n),_=s.useRef(),A=s.useRef(-1),T=s.useRef(),x=s.useRef(-1),I=s.useRef(!0),P=s.useRef(!1),R=s.useRef(()=>{}),O=s.useRef(!1),D=s.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);s.useEffect(()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(A.current),clearTimeout(x.current),I.current=!0,O.current=!1)}},[d,a]),s.useEffect(()=>{if(!d)return;if(!S.current)return;if(!n)return;function e(e){D()&&r(!1,e,"hover")}const t=g(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,n,r,d,S,D]);const L=s.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=W(E.current,"close",_.current);o&&!T.current?(clearTimeout(A.current),A.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(A.current),r(!1,e,n))},[E,r]),M=C(()=>{R.current(),T.current=void 0}),F=C(()=>{if(P.current){const e=g(c.floating).body;e.style.pointerEvents="",e.removeAttribute(q),P.current=!1}}),j=C(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));s.useEffect(()=>{if(d&&(0,l.vq)(c.domReference)){var e;const r=c.domReference;return n&&r.addEventListener("mouseleave",a),null==(e=c.floating)||e.addEventListener("mouseleave",a),y&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",s),()=>{var e;n&&r.removeEventListener("mouseleave",a),null==(e=c.floating)||e.removeEventListener("mouseleave",a),y&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(A.current),I.current=!1,p&&!m(_.current)||v>0&&!W(E.current,"open"))return;const t=W(E.current,"open",_.current);t?A.current=window.setTimeout(()=>{k.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function s(e){if(j())return;R.current();const t=g(c.floating);if(clearTimeout(x.current),O.current=!1,S.current&&o.current.floatingContext){n||clearTimeout(A.current),T.current=S.current((0,i.A)((0,i.A)({},o.current.floatingContext),{},{tree:b,x:e.clientX,y:e.clientY,onClose(){F(),M(),j()||L(e,!0,"safe-polygon")}}));const r=T.current;return t.addEventListener("mousemove",r),void(R.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==_.current||!u(c.floating,e.relatedTarget))&&L(e)}function a(e){j()||o.current.floatingContext&&(null==S.current||S.current((0,i.A)((0,i.A)({},o.current.floatingContext),{},{tree:b,x:e.clientX,y:e.clientY,onClose(){F(),M(),j()||L(e)}}))(e))}},[c,d,e,p,v,y,L,M,F,r,n,k,b,E,S,o,j]),N(()=>{var e;if(d&&n&&null!=(e=S.current)&&e.__options.blockPointerEvents&&D()){P.current=!0;const e=c.floating;if((0,l.vq)(c.domReference)&&e){var t;const n=g(c.floating).body;n.setAttribute(q,"");const r=c.domReference,o=null==b||null==(t=b.nodesRef.current.find(e=>e.id===w))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[d,n,w,c,b,S,D]),N(()=>{n||(_.current=void 0,O.current=!1,M(),F())},[n,M,F]),s.useEffect(()=>()=>{M(),clearTimeout(A.current),clearTimeout(x.current),F()},[d,c.domReference,M,F]);const U=s.useMemo(()=>{function e(e){_.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){I.current||k.current||r(!0,t,"hover")}p&&!m(_.current)||n||0===v||O.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===_.current?o():(O.current=!0,x.current=window.setTimeout(o,v)))}}},[p,r,n,k,v]),B=s.useMemo(()=>({onMouseEnter(){clearTimeout(A.current)},onMouseLeave(e){j()||L(e.nativeEvent,!1)}}),[L,j]);return s.useMemo(()=>d?{reference:U,floating:B}:{},[d,U,B])}const G=()=>{},Y=s.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:G,setState:G,isInstantPhase:!1}),Q=()=>s.useContext(Y);function X(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,a]=s.useReducer((e,t)=>
2(0,i.A)((0,i.A)({},e),t),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=s.useRef(null),c=s.useCallback(e=>{a({currentId:e})},[]);return N(()=>{o.currentId?null===l.current?l.current=o.currentId:o.isInstantPhase||a({isInstantPhase:!0}):(o.isInstantPhase&&a({isInstantPhase:!1}),l.current=null)},[o.currentId,o.isInstantPhase]),s.createElement(Y.Provider,{value:s.useMemo(()=>(0,i.A)((0,i.A)({},o),{},{setState:a,setCurrentId:c}),[o,c])},t)}function J(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:s=!0}=t,a=null!=i?i:o,l=Q(),{currentId:c,setCurrentId:u,initialDelay:d,setState:h,timeoutMs:f}=l;return N(()=>{s&&c&&(h({delay:{open:1,close:W(d,"close")}}),c!==a&&r(!1))},[s,a,r,h,c,d]),N(()=>{function e(){r(!1),h({delay:d,currentId:null})}if(s&&c&&!n&&c===a){if(f){const t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[s,n,h,c,a,r,d,f]),N(()=>{s&&u!==G&&n&&u(a)},[s,n,u,a]),l}function $(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}const Z="data-floating-ui-focusable";const ee={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},te={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ne=e=>{var t,n;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function re(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:d=!0,outsidePressEvent:h="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:w}=t,S=z(),E=C("function"===typeof d?d:()=>!1),k="function"===typeof d?E:d,_=s.useRef(!1),A=s.useRef(!1),{escapeKey:T,outsidePress:x}=ne(b),{escapeKey:I,outsidePress:N}=ne(w),P=s.useRef(!1),R=C(e=>{var t;if(!n||!a||!c||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=S?$(S.nodesRef.current,o):[];if(!T&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),O=C(e=>{var t;const n=()=>{var t;R(e),null==(t=y(e))||t.removeEventListener("keydown",n)};null==(t=y(e))||t.addEventListener("keydown",n)}),D=C(e=>{var t;const n=_.current;_.current=!1;const s=A.current;if(A.current=!1,"click"===h&&s)return;if(n)return;if("function"===typeof k&&!k(e))return;const a=y(e),c="["+B("inert")+"]",d=g(o.floating).querySelectorAll(c);let f=(0,l.vq)(a)?a:null;for(;f&&!(0,l.eu)(f);){const e=(0,l.$4)(f);if((0,l.eu)(e)||!(0,l.vq)(e))break;f=e}if(d.length&&(0,l.vq)(a)&&!a.matches("html,body")&&!u(a,o.floating)&&Array.from(d).every(e=>!u(f,e)))return;if((0,l.sb)(a)&&F){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n){"rtl"===(0,l.L9)(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth)}if(r||t&&e.offsetY>a.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=S&&$(S.nodesRef.current,p).some(t=>{var n;return v(e,null==(n=t.context)?void 0:n.elements.floating)});if(v(e,o.floating)||v(e,o.domReference)||m)return;const b=S?$(S.nodesRef.current,p):[];if(b.length>0){let e=!0;if(b.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),L=C(e=>{var t;const n=()=>{var t;D(e),null==(t=y(e))||t.removeEventListener(h,n)};null==(t=y(e))||t.addEventListener(h,n)});s.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=T,i.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),P.current=!0}function u(){e=window.setTimeout(()=>{P.current=!1},(0,l.Tc)()?5:0)}const d=g(o.floating);c&&(d.addEventListener("keydown",I?O:R,I),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),k&&d.addEventListener(h,N?L:D,N);let f=[];return m&&((0,l.vq)(o.domReference)&&(f=(0,l.v9)(o.domReference)),(0,l.vq)(o.floating)&&(f=f.concat((0,l.v9)(o.floating))),!(0,l.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat((0,l.v9)(o.reference.contextElement)))),f=f.filter(e=>{var t;
2return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),f.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{c&&(d.removeEventListener("keydown",I?O:R,I),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),k&&d.removeEventListener(h,N?L:D,N),f.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,c,k,h,n,r,m,a,T,x,R,I,O,D,N,L]),s.useEffect(()=>{_.current=!1},[k,h]);const M=s.useMemo(()=>({onKeyDown:R,[ee[p]]:e=>{f&&r(!1,e.nativeEvent,"reference-press")}}),[R,r,f,p]),F=s.useMemo(()=>({onKeyDown:R,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[te[h]]:()=>{_.current=!0}}),[R,h]);return s.useMemo(()=>a?{reference:M,floating:F}:{},[a,M,F])}function oe(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=M(),i=s.useRef({}),[a]=s.useState(()=>F()),l=null!=V(),[c,u]=s.useState(r.reference),d=C((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),h=s.useMemo(()=>({setPositionReference:u}),[]),f=s.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return s.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:a,floatingId:o,refs:h}),[t,d,f,a,o,h])}((0,i.A)((0,i.A)({},e),{},{elements:(0,i.A)({reference:null,floating:null},e.elements)})),r=e.rootContext||n,o=r.elements,[a,c]=s.useState(null),[u,d]=s.useState(null),h=(null==o?void 0:o.domReference)||a,f=s.useRef(null),p=z();N(()=>{h&&(f.current=h)},[h]);const m=(0,S.we)((0,i.A)((0,i.A)({},e),{},{elements:(0,i.A)((0,i.A)({},o),u&&{reference:u})})),g=s.useCallback(e=>{const t=(0,l.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),m.refs.setReference(t)},[m.refs]),v=s.useCallback(e=>{((0,l.vq)(e)||null===e)&&(f.current=e,c(e)),((0,l.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,l.vq)(e))&&m.refs.setReference(e)},[m.refs]),y=s.useMemo(()=>(0,i.A)((0,i.A)({},m.refs),{},{setReference:v,setPositionReference:g,domReference:f}),[m.refs,v,g]),b=s.useMemo(()=>(0,i.A)((0,i.A)({},m.elements),{},{domReference:h}),[m.elements,h]),w=s.useMemo(()=>(0,i.A)((0,i.A)((0,i.A)({},m),r),{},{refs:y,elements:b,nodeId:t}),[m,y,b,t,r]);return N(()=>{r.dataRef.current.floatingContext=w;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),s.useMemo(()=>(0,i.A)((0,i.A)({},m),{},{context:w,refs:y,elements:b}),[m,y,b,w])}function ie(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:h=!0,visibleOnly:p=!0}=t,m=s.useRef(!1),v=s.useRef(),b=s.useRef(!0);s.useEffect(()=>{if(!h)return;const e=(0,l.zk)(a.domReference);function t(){!n&&(0,l.sb)(a.domReference)&&a.domReference===c(g(a.domReference))&&(m.current=!0)}function r(){b.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[a.domReference,n,h]),s.useEffect(()=>{if(h)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(m.current=!0)}},[o,h]),s.useEffect(()=>()=>{clearTimeout(v.current)},[]);const S=s.useMemo(()=>({onPointerDown(e){f(e.nativeEvent)||(b.current=!1)},onMouseLeave(){m.current=!1},onFocus(e){if(m.current)return;const t=y(e.nativeEvent);if(p&&(0,l.vq)(t))try{if(/apple/i.test(navigator.vendor)&&d().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(n){if(!b.current&&!w(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){m.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=(0,l.vq)(t)&&t.hasAttribute(B("focus-guard"))&&"outside"===t.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;const s=c(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(u(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||u(a.domReference,s)||o||r(!1,n,"focus"))})}}),[i,a.domReference,r,p]);return s.useMemo(()=>h?{reference:S}:{},[h,S])}const se="active",ae="selected";function le(e,t,n){const s=new Map,a="item"===n;let l=e;if(a&&e){const{[se]:t,[ae]:n}=e;l=(0,o.A)(e,[se,ae].map(r.A))}return(0,i.A)((0,i.A)((0,i.A)({},"floating"===n&&{tabIndex:-1,[Z]:""}),l),t.map(t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
2t?(Object.entries(t).forEach(t=>{let[n,r]=t;var o;a&&[se,ae].includes(n)||(0===n.indexOf("on")?(s.has(n)||s.set(n,[]),"function"===typeof r&&(null==(o=s.get(n))||o.push(r),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=s.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=r)}),e):e,{}))}function ce(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=s.useCallback(t=>le(t,e,"reference"),t),i=s.useCallback(t=>le(t,e,"floating"),n),a=s.useCallback(t=>le(t,e,"item"),r);return s.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}const ue=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function de(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:l="dialog"}=t,c=null!=(n=ue.get(l))?n:l,u=M(),d=null!=V(),h=s.useMemo(()=>"tooltip"===c||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:r?o:void 0}:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":r?o:void 0},"listbox"===c&&{role:"combobox"}),"menu"===c&&{id:u}),"menu"===c&&d&&{role:"menuitem"}),"select"===l&&{"aria-autocomplete":"none"}),"combobox"===l&&{"aria-autocomplete":"list"}),[c,o,d,r,u,l]),f=s.useMemo(()=>{const e=(0,i.A)({id:o},c&&{role:c});return"tooltip"===c||"label"===l?e:(0,i.A)((0,i.A)({},e),"menu"===c&&{"aria-labelledby":u})},[c,o,u,l]),p=s.useCallback(e=>{let{active:t,selected:n}=e;const r=(0,i.A)({role:"option"},t&&{id:o+"-option"});switch(l){case"select":return(0,i.A)((0,i.A)({},r),{},{"aria-selected":t&&n});case"combobox":return(0,i.A)((0,i.A)({},r),t&&{"aria-selected":!0})}return{}},[o,l]);return s.useMemo(()=>a?{reference:h,floating:f,item:p}:{},[a,h,f,p])}},9252:(e,t,n)=>{"use strict";n.d(t,{bl:()=>o,pc:()=>i});var r=n(5043);function o(e,t){if("function"===typeof e)return e(t);"object"===typeof e&&null!==e&&"current"in e&&(e.current=t)}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useCallback)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Map;return e=>{if(t.forEach(t=>{const n=o(t,e);n&&r.set(t,n)}),r.size>0)return()=>{t.forEach(e=>{const t=r.get(e);t?t():o(e,null)}),r.clear()}}}(...t),t)}},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},9526:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>o})},9618:(e,t,n)=>{"use strict";n.d(t,{jQ:()=>c,Fj:()=>s});var r=n(9379),o=n(7426);var i=n(1632);const[s,a]=(l="mantine-modals",[function(e){const t=Object.keys(e).reduce((t,n)=>(t["".concat(l,":").concat(n)]=t=>e[n](t.detail),t),{});(0,o.o)(()=>(Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e]),window.addEventListener(e,t[e])}),()=>Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e])})),[t])},function(e){return function(){return t="".concat(l,":").concat(String(e)),n=arguments.length<=0?void 0:arguments[0],void window.dispatchEvent(new CustomEvent(t,{detail:n}));var t,n}}]);var l;const c={open:e=>{const t=e.modalId||(0,i.z)();return a("openModal")((0,r.A)((0,r.A)({},e),{},{modalId:t})),t},close:a("closeModal"),closeAll:a("closeAllModals"),openConfirmModal:e=>{const t=e.modalId||(0,i.z)();return a("openConfirmModal")((0,r.A)((0,r.A)({},e),{},{modalId:t})),t},openContextModal:e=>{const t=e.modalId||(0,i.z)();return a("openContextModal")((0,r.A)((0,r.A)({},e),{},{modalId:t})),t},updateModal:e=>a("updateModal")(e),updateContextModal:e=>a("updateContextModal")(e)}}
2,9638:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(5043),o=n(6138);function i(e){let{opened:t,shouldReturnFocus:n=!0}=e;const i=(0,r.useRef)(null),s=()=>{var e;i.current&&"focus"in i.current&&"function"===typeof i.current.focus&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))};return(0,o.C)(()=>{let e=-1;const r=t=>{"Tab"===t.key&&window.clearTimeout(e)};return document.addEventListener("keydown",r),t?i.current=document.activeElement:n&&(e=window.setTimeout(s,10)),()=>{window.clearTimeout(e),document.removeEventListener("keydown",r)}},[t,n]),s}},9661:(e,t,n)=>{"use strict";n.d(t,{r:()=>b});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(7803),l=n(6331),c=n(7950),u=n(7426),d=n(9252),h=n(9863);const f=["target","reuseTargetNode"],p=["children","target","reuseTargetNode"];function m(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"===typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"===typeof e.style&&Object.assign(t.style,e.style),"string"===typeof e.id&&t.setAttribute("id",e.id),t}const g={},v=(0,l.P9)((e,t)=>{const n=(0,h.Y)("Portal",g,e),{children:a,target:l,reuseTargetNode:v}=n,y=(0,o.A)(n,p),[b,w]=(0,s.useState)(!1),S=(0,s.useRef)(null);return(0,u.o)(()=>(w(!0),S.current=function(e){let{target:t,reuseTargetNode:n}=e,r=(0,o.A)(e,f);if(t)return"string"===typeof t?document.querySelector(t)||m(r):t;if(n){const e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;const t=m(r);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return m(r)}((0,r.A)({target:l,reuseTargetNode:v},y)),(0,d.bl)(t,S.current),l||v||!S.current||document.body.appendChild(S.current),()=>{l||v||!S.current||document.body.removeChild(S.current)}),[l]),b&&S.current?(0,c.createPortal)((0,i.jsx)(i.Fragment,{children:a}),S.current):null});v.displayName="@mantine/core/Portal";const y=["withinPortal","children"],b=(0,l.P9)((e,t)=>{let{withinPortal:n=!0,children:s}=e,l=(0,o.A)(e,y);return"test"!==(0,a.bv)()&&n?(0,i.jsx)(v,(0,r.A)((0,r.A)({ref:t},l),{},{children:s})):(0,i.jsx)(i.Fragment,{children:s})});b.displayName="@mantine/core/OptionalPortal"},9667:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(5043);function o(e){var t;const n=r.version;return"string"!==typeof r.version||n.startsWith("18.")?null===e||void 0===e?void 0:e.ref:null===e||void 0===e||null===(t=e.props)||void 0===t?void 0:t.ref}},9860:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(4648).A)("outline","world","IconWorld",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M3.6 9h16.8",key:"svg-1"}],["path",{d:"M3.6 15h16.8",key:"svg-2"}],["path",{d:"M11.5 3a17 17 0 0 0 0 18",key:"svg-3"}],["path",{d:"M12.5 3a17 17 0 0 1 0 18",key:"svg-4"}]])},9863:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(9379),o=n(81),i=(n(5043),n(579),n(3056));function s(e,t,n){var s;const a=(0,i.xd)(),l=null===(s=a.components[e])||void 0===s?void 0:s.defaultProps,c="function"===typeof l?l(a):l;return(0,r.A)((0,r.A)((0,r.A)({},t),c),(0,o.J)(n))}},9934:(e,t,n)=>{"use strict";n.d(t,{a:()=>Re});var r=n(9379),o=n(45),i=n(579),s=n(5043),a=n(1953),l=n(9863),c=n(6331),u=n(8387),d=n(4886),h=n(605);const[f,p]=(0,h.F)("ModalBase component was not found in tree");var m="m_615af6c9",g="m_b5489c3c",v="m_60c222c7",y="m_fd1ab0aa",b="m_606cb269",w="m_5df29311";const S=["className"],E=(0,s.forwardRef)((e,t)=>{let{className:n}=e,a=(0,o.A)(e,S);const l=function(){const e=p();return(0,s.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}(),c=p();return(0,i.jsx)(d.a,(0,r.A)((0,r.A)({ref:t},a),{},{id:l,className:(0,u.A)({[w]:!c.unstyled},n)}))});E.displayName="@mantine/core/ModalBaseBody";const[k,_]=(0,h.F)("Modal component was not found in tree");var C={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const A=["classNames","className","style","styles","vars"],T={},x=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalBody",T,e),{classNames:s,className:a,style:c,styles:u,vars:d}=n,h=(0,o.A)(n,A),f=_();return(0,i.jsx)(E,(0,r.A)((0,r.A)({ref:t},f.getStyles("body",{classNames:s,style:c,styles:u,className:a})),h))});x.classes=C,x.displayName="@mantine/core/ModalBody";var I=n(1828);const N=["className","onClick"],P=(0,s.forwardRef)((e,t)=>{let{className:n,onClick:s}=e,a=(0,o.A)(e,N);const l=p();return(0,i.jsx)(I.J,(0,r.A)((0,r.A)({ref:t},a),{},{onClick:e=>{l.onClose(),null===s||void 0===s||s(e)},className:(0,u.A)({[b]:!l.unstyled},n),unstyled:l.unstyled}))});P.displayName="@mantine/core/ModalBaseCloseButton";const R=["classNames","className","style","styles","vars"],O={},D=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalCloseButton",O,e),{classNames:s,className:a,style:c,styles:u,vars:d}=n,h=(0,o.A)(n,R),f=_();return(0,i.jsx)(P,(0,r.A)((0,r.A)({ref:t},f.getStyles("close",{classNames:s,style:c,styles:u,className:a})),h))});D.classes=C,D.displayName="@mantine/core/ModalCloseButton";var L=n(2932),M=n(8775),F=n(461),j=n(1160);const U=["transitionProps","className","innerProps","onKeyDown","style"],V=(0,s.forwardRef)((e,t)=>{let{transitionProps:n,className:s,innerProps:a,onKeyDown:l,style:c}=e,d=(0,o.A)(e,U);const h=p();return(0,i.jsx)(j.e,(0,r.A)((0,r.A)((0,r.A)({mounted:h.opened,transition:"pop"},h.transitionProps),{},{onExited:()=>{var e,t,n;null===(e=h.onExitTransitionEnd)||void 0===e||e.call(h),null===(t=h.transitionProps)||void 0===t||null===(n=t.onExited)||void 0===n||n.call(t)},onEntered:()=>{var e,t,n;null===(e=h.onEnterTransitionEnd)||void 0===e||e.call(h),null===(t=h.transitionProps)||void 0===t||null===(n=t.onEntered)||void 0===n||n.call(t)}},n),{},{children:e=>(0,i.jsx)("div",(0,r.A)((0,r.A)({},a),{},{className:(0,u.A)({[v]:!h.unstyled},a.className),children:(0,i.jsx)(M.s,{active:h.opened&&h.trapFocus,innerRef:t,children:(0,i.jsx)(F.t,(0,r.A)((0,r.A)({},d),{},{component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":h.bodyMounted?h.getBodyId():void 0,"aria-labelledby":h.titleMounted?h.getTitleId():void 0,style:[c,e],className:(0,u.A)({[y]:!h.unstyled},s),unstyled:h.unstyled,children:d.children}))})}))}))});function z(e){let{children:t}=e;return(0,i.jsx)(i.Fragment,{children:t})}V.displayName="@mantine/core/ModalBaseContent";const B=["classNames","className","style","styles","vars","children","__hidden"],H={},q=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalContent",H,e),{classNames:s,className:a,style:c,styles:u,vars:d,children:h,__hidden:f}=n,p=(0,o.A)(n,B),m=_(),g=m.scrollAreaComponent||z;return(0,i.jsx)(V,(0,r.A)((0,r.A)((0,r.A)({},m.getStyles("content",{className:a,style:c,styles:u,classNames:s})),{},{innerProps:m.getStyles("inner",{className:a,style:c,styles:u,classNames:s}),"data-full-screen":m.fullScreen||void 0,"data-modal-content":!0,"data-hidden":f||void 0,ref:t},p),{},{children:(0,i.jsx)(g,{style:{maxHeight:m.fullScreen?"100dvh":"calc(100dvh - (".concat((0,L.D)(m.yOffset)," * 2))")},children:h})}))});q.classes=C,q.displayName="@mantine/core/ModalContent";const W=["className"],K=(0,s.forwardRef)((e,t)=>{let{className:n}=e,s=(0,o.A)(e,W);const a=p();return(0,i.jsx)(d.a,(0,r.A)({component:"header",ref:t,className:(0,u.A)({[g]:!a.unstyled},n)},s))});K.displayName="@mantine/core/ModalBaseHeader";const G=["classNames","className","style","styles","vars"],Y={},Q=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalHeader",Y,e),{classNames:s,className:a,style:c,styles:u,vars:d}=n,h=(0,o.A)(n,G),f=_();return(0,i.jsx)(K,(0,r.A)((0,r.A)({ref:t},f.getStyles("header",{classNames:s,style:c,styles:u,className:a})),h))});Q.classes=C,Q.displayName="@mantine/core/ModalHeader";var X=n(1586);const J={duration:200,timingFunction:"ease",transition:"fade"};const $=["onClick","transitionProps","style","visible"],Z=(0,s.forwardRef)((e,t)=>{let{onClick:n,transitionProps:s,style:a,visible:l}=e,c=(0,o.A)(e,$);const u=p(),d=function(e){const t=p();return(0,r.A)((0,r.A)((0,r.A)({},J),t.transitionProps),e)}(s);return(0,i.jsx)(j.e,(0,r.A)((0,r.A)({mounted:void 0!==l?l:u.opened},d),{},{transition:"fade",children:e=>(0,i.jsx)(X.h,(0,r.A)({ref:t,fixed:!0,style:[a,e],zIndex:u.zIndex,unstyled:u.unstyled,onClick:e=>{null===n||void 0===n||n(e),u.closeOnClickOutside&&u.onClose()}},c))}))});Z.displayName="@mantine/core/ModalBaseOverlay";const ee=["classNames","className","style","styles","vars"],te={},ne=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalOverlay",te,e),{classNames:s,className:a,style:c,styles:u,vars:d}=n,h=(0,o.A)(n,ee),f=_();return(0,i.jsx)(Z,(0,r.A)((0,r.A)({ref:t},f.getStyles("overlay",{classNames:s,style:c,styles:u,className:a})),h))});ne.classes=C,ne.displayName="@mantine/core/ModalOverlay";var re=n(5783),oe=n(1721),ie=n(8038),se=n(1717),ae=n(9661),le=n(4632),ce=n(2306),ue=n(9638),de=n(6777);function he(e){let{id:t,transitionProps:n,opened:r,trapFocus:o,closeOnEscape:i,onClose:a,returnFocus:l}=e;
2const c=(0,le.B)(t),[u,d]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),p="number"===typeof(null===n||void 0===n?void 0:n.duration)?null===n||void 0===n?void 0:n.duration:200,m=function(e){let{opened:t,transitionDuration:n}=e;const[r,o]=(0,s.useState)(t),i=(0,s.useRef)(-1),a=(0,de.I)()?0:n;return(0,s.useEffect)(()=>(t?(o(!0),window.clearTimeout(i.current)):0===a?o(!1):i.current=window.setTimeout(()=>o(!1),a),()=>window.clearTimeout(i.current)),[t,a]),r}({opened:r,transitionDuration:p});return(0,ce.M)("keydown",e=>{if("Escape"===e.key&&i&&!e.isComposing&&r){var t;"true"!==(null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-mantine-stop-propagation"))&&a()}},{capture:!0}),(0,ue.E)({opened:r,shouldReturnFocus:o&&l}),{_id:c,titleMounted:u,bodyMounted:h,shouldLockScroll:m,setTitleMounted:d,setBodyMounted:f}}const fe=["keepMounted","opened","onClose","id","transitionProps","onExitTransitionEnd","onEnterTransitionEnd","trapFocus","closeOnEscape","returnFocus","closeOnClickOutside","withinPortal","portalProps","lockScroll","children","zIndex","shadow","padding","__vars","unstyled","removeScrollProps"],pe=["key"],me=(0,s.forwardRef)((e,t)=>{let{keepMounted:n,opened:s,onClose:l,id:c,transitionProps:u,onExitTransitionEnd:h,onEnterTransitionEnd:p,trapFocus:m,closeOnEscape:g,returnFocus:v,closeOnClickOutside:y,withinPortal:b,portalProps:w,lockScroll:S,children:E,zIndex:k,shadow:_,padding:C,__vars:A,unstyled:T,removeScrollProps:x}=e,I=(0,o.A)(e,fe);const{_id:N,titleMounted:P,bodyMounted:R,shouldLockScroll:O,setTitleMounted:D,setBodyMounted:L}=he({id:c,transitionProps:u,opened:s,trapFocus:m,closeOnEscape:g,onClose:l,returnFocus:v}),M=x||{},{key:F}=M,j=(0,o.A)(M,pe);return(0,i.jsx)(ae.r,(0,r.A)((0,r.A)({},w),{},{withinPortal:b,children:(0,i.jsx)(f,{value:{opened:s,onClose:l,closeOnClickOutside:y,onExitTransitionEnd:h,onEnterTransitionEnd:p,transitionProps:(0,r.A)((0,r.A)({},u),{},{keepMounted:n}),getTitleId:()=>"".concat(N,"-title"),getBodyId:()=>"".concat(N,"-body"),titleMounted:P,bodyMounted:R,setTitleMounted:D,setBodyMounted:L,trapFocus:m,closeOnEscape:g,zIndex:k,unstyled:T},children:(0,i.jsx)(se.A,(0,r.A)((0,r.A)({enabled:O&&S},j),{},{children:(0,i.jsx)(d.a,(0,r.A)((0,r.A)({ref:t},I),{},{__vars:(0,r.A)((0,r.A)({},A),{},{"--mb-z-index":(k||(0,a.I)("modal")).toString(),"--mb-shadow":(0,re.dh)(_),"--mb-padding":(0,re.GY)(C)}),children:E}))}),F)})}))});me.displayName="@mantine/core/ModalBase";var ge=n(2267);const ve=["classNames","className","style","styles","unstyled","vars","yOffset","scrollAreaComponent","radius","fullScreen","centered","xOffset","__staticSelector"],ye={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,a.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},be=(0,oe.V)((e,t)=>{let{radius:n,size:r,yOffset:o,xOffset:i}=t;return{root:{"--modal-radius":void 0===n?void 0:(0,re.nJ)(n),"--modal-size":(0,re.YC)(r,"modal-size"),"--modal-y-offset":(0,L.D)(o),"--modal-x-offset":(0,L.D)(i)}}}),we=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalRoot",ye,e),{classNames:s,className:a,style:c,styles:u,unstyled:d,vars:h,yOffset:f,scrollAreaComponent:p,radius:m,fullScreen:g,centered:v,xOffset:y,__staticSelector:b}=n,w=(0,o.A)(n,ve),S=(0,ie.I)({name:b,classes:C,props:n,className:a,style:c,classNames:s,styles:u,unstyled:d,vars:h,varsResolver:be});return(0,i.jsx)(k,{value:{yOffset:f,scrollAreaComponent:p,getStyles:S,fullScreen:g},children:(0,i.jsx)(me,(0,r.A)((0,r.A)({ref:t},S("root")),{},{"data-full-screen":g||void 0,"data-centered":v||void 0,"data-offset-scrollbars":p===ge.F.Autosize||void 0,unstyled:d},w))})});we.classes=C,we.displayName="@mantine/core/ModalRoot";var Se=n(4257);const[Ee,ke]=(0,Se.e)();function _e(e){let{children:t}=e;const[n,r]=(0,s.useState)([]),[o,l]=(0,s.useState)((0,a.I)("modal"));return(0,i.jsx)(Ee,{value:{stack:n,addModal:(e,t)=>{r(t=>[...new Set([...t,e])]),l(e=>"number"===typeof t&&"number"===typeof e?Math.max(e,t):e)},removeModal:e=>r(t=>t.filter(t=>t!==e)),getZIndex:e=>"calc(".concat(o," + ").concat(n.indexOf(e)," + 1)"),currentId:n[n.length-1],maxZIndex:o},children:t})}_e.displayName="@mantine/core/ModalStack";const Ce=["className"],Ae=(0,s.forwardRef)((e,t)=>{let{className:n}=e,a=(0,o.A)(e,Ce);const l=function(){const e=p();return(0,s.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}(),c=p();return(0,i.jsx)(d.a,(0,r.A)((0,r.A)({component:"h2",ref:t,className:(0,u.A)({[m]:!c.unstyled},n)},a),{},{id:l}))});Ae.displayName="@mantine/core/ModalBaseTitle";const Te=["classNames","className","style","styles","vars"],xe={},Ie=(0,c.P9)((e,t)=>{const n=(0,l.Y)("ModalTitle",xe,e),{classNames:s,className:a,style:c,styles:u,vars:d}=n,h=(0,o.A)(n,Te),f=_();return(0,i.jsx)(Ae,(0,r.A)((0,r.A)({ref:t},f.getStyles("title",{classNames:s,style:c,styles:u,className:a})),h))});Ie.classes=C,Ie.displayName="@mantine/core/ModalTitle";const Ne=["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children","radius","opened","stackId","zIndex"],Pe={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,a.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Re=(0,c.P9)((e,t)=>{const n=(0,l.Y)("Modal",Pe,e),{title:c,withOverlay:u,overlayProps:d,withCloseButton:h,closeButtonProps:f,children:p,radius:m,opened:g,stackId:v,zIndex:y}=n,b=(0,o.A)(n,Ne),w=ke(),S=!!c||h,E=w&&v?{closeOnEscape:w.currentId===v,trapFocus:w.currentId===v,zIndex:w.getZIndex(v)}:{},k=!1!==u&&(v&&w?w.currentId===v:g);return(0,s.useEffect)(()=>{w&&v&&(g?w.addModal(v,y||(0,a.I)("modal")):w.removeModal(v))},[g,v,y]),(0,i.jsxs)(we,(0,r.A)((0,r.A)((0,r.A)({ref:t,radius:m,opened:g,zIndex:w&&v?w.getZIndex(v):y},b),E),{},{children:[u&&(0,i.jsx)(ne,(0,r.A)({visible:k,transitionProps:w&&v?{duration:0}:void 0},d)),(0,i.jsxs)(q,{radius:m,__hidden:!!(w&&v&&g)&&v!==w.currentId,children:[S&&(0,i.jsxs)(Q,{children:[c&&(0,i.jsx)(Ie,{children:c}),h&&(0,i.jsx)(D,(0,r.A)({},f))]}),(0,i.jsx)(x,{children:p})]})]}))});Re.classes=C,Re.displayName="@mantine/core/Modal",Re.Root=we,Re.Overlay=ne,Re.Content=q,Re.Body=x,Re.Header=Q,Re.Title=Ie,Re.CloseButton=D,Re.Stack=_e}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>
2{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,n.d(i,s),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{4:"b03a5953",55:"c298c7c6",65:"2f67e034",83:"465643e6",109:"4badb5a4",128:"e7d05ca7",143:"2fa495f4",178:"34de4e33",384:"81da4013",392:"0cc2e585",409:"dd3669b0",443:"13478e07",469:"a5f82a31",474:"88ed6d1c",531:"0181094b",540:"3b9aee8e",617:"0ed28cfb",673:"55755325",738:"d61edd84",791:"0796b9ba",908:"a635f86e",913:"0990d51d"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{83:"eb5bcdbc",913:"3060ae35"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="custqrd:";n.l=(r,o,i,s)=>{if(e[r])e[r].push(o);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(n)),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var s;if((o=(s=i[r]).getAttribute("data-href"))===e||o===t)return s}})(o,i))return t();((e,t,r,o,i)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",n.nc&&(s.nonce=n.nc),s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)o();else{var r=n&&n.type,a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=a,s.parentNode&&s.parentNode.removeChild(s),i(l)}},s.href=t,r?r.parentNode.insertBefore(s,r.nextSibling):document.head.appendChild(s)})(e,i,null,t,r)}),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{83:1,913:1}[n]&&r.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{var e={792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((n,r)=>o=e[t]=[n,r]);r.push(o[2]=i);var s=n.p+n.u(t),a=new Error;n.l(s,r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,o[1](a)}},"chunk-"+t,t)}};var t=(t,r)=>{var o,i,s=r[0],a=r[1],l=r[2],c=0;if(s.some(t=>0!==e[t])){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)l(n)}for(t&&t(r);c<s.length;c++)i=s[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkcustqrd=self.webpackChunkcustqrd||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;n(4264)})();
3//# sourceMappingURL=main.cd0c1398.js.map

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