diff --git a/index.php b/index.php index 118c1d76e..19f7ca2f0 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@ make(Kernel::class); diff --git a/modules/Backend/Http/Controllers/Backend/TaxonomyController.php b/modules/Backend/Http/Controllers/Backend/TaxonomyController.php index a7f1df229..e3c6aad06 100644 --- a/modules/Backend/Http/Controllers/Backend/TaxonomyController.php +++ b/modules/Backend/Http/Controllers/Backend/TaxonomyController.php @@ -24,10 +24,11 @@ class TaxonomyController extends BackendController protected string $viewPrefix = 'cms::backend.taxonomy'; + //protected string $template = 'inertia'; + protected function getDataTable(...$params): TaxonomyDataTable { - $postType = $params[0]; - $taxonomy = $params[1]; + [$postType, $taxonomy] = $params; $setting = $this->getSetting($postType, $taxonomy); $dataTable = new TaxonomyDataTable(); $dataTable->mountData($setting->toArray()); diff --git a/modules/Backend/Http/Datatables/TaxonomyDataTable.php b/modules/Backend/Http/Datatables/TaxonomyDataTable.php index 43d637a30..92ef44fd0 100644 --- a/modules/Backend/Http/Datatables/TaxonomyDataTable.php +++ b/modules/Backend/Http/Datatables/TaxonomyDataTable.php @@ -25,12 +25,7 @@ public function mount($taxonomy) $this->taxonomy = $taxonomy; } - /** - * Columns datatable - * - * @return array - */ - public function columns() + public function columns(): array { $columns = [ 'name' => [ @@ -91,7 +86,7 @@ public function query($data) return $query; } - public function rowAction($row) + public function rowAction($row): array { $data = parent::rowAction($row); @@ -104,7 +99,7 @@ public function rowAction($row) return $data; } - public function bulkActions($action, $ids) + public function bulkActions($action, $ids): void { foreach ($ids as $id) { DB::beginTransaction(); diff --git a/modules/CMS/Abstracts/DataTable.php b/modules/CMS/Abstracts/DataTable.php index 577a80e7d..67f30cecc 100644 --- a/modules/CMS/Abstracts/DataTable.php +++ b/modules/CMS/Abstracts/DataTable.php @@ -135,6 +135,7 @@ public function getData(Request $request): array * * @param mixed ...$params The parameters to be mounted. * @return void + * @throws \Exception */ public function mountData(...$params) { @@ -146,6 +147,11 @@ public function mountData(...$params) $this->params = $params; } + /** + * Renders the view for the PHP function. + * + * @return View + */ public function render(): View { if (empty($this->currentUrl)) { @@ -158,6 +164,11 @@ public function render(): View ); } + /** + * Returns an array of actions. + * + * @return array Returns an array of actions. + */ public function actions(): array { return [ @@ -168,10 +179,8 @@ public function actions(): array /** * A description of the entire PHP function. * - * @param datatype $action description - * @param datatype $ids description - * @throws Some_Exception_Class description of exception - * @return Some_Return_Value + * @param string $action description + * @param array $ids description */ public function bulkActions($action, $ids) { @@ -215,6 +224,14 @@ public function rowAction($row) ]; } + /** + * Generates a formatted row action for the given value, row, and index. + * + * @param mixed $value The value for the row action. + * @param mixed $row The row object. + * @param int $index The index of the row. + * @return string The HTML rendered output of the row action. + */ public function rowActionsFormatter($value, $row, $index): string { return view( @@ -229,35 +246,74 @@ public function rowActionsFormatter($value, $row, $index): string ->render(); } + /** + * Sets the data URL for the object. + * + * @param string $url The URL to set as the data URL. + * @throws \Exception + * @return void + */ public function setDataUrl(string $url): void { $this->dataUrl = $url; } + /** + * Sets the action URL for the function. + * + * @param string $url The URL to set as the action URL. + * @return void + */ public function setActionUrl(string $url): void { $this->actionUrl = $url; } + /** + * Set the current URL. + * + * @param string $url The URL to set as the current URL. + * @return void + */ public function setCurrentUrl(string $url): void { $this->currentUrl = $url; } + /** + * Converts the object to an array. + * + * @return array The converted array. + */ public function toArray(): array { - $searchFields = $this->searchFields(); + $searchFields = collect($this->searchFields())->map( + function ($item, $key) { + $item['key'] = $key; + return $item; + } + )->values(); + $columns = collect($this->columns())->map( function ($item, $key) { $item['key'] = $key; $item['sortable'] = Arr::get($item, 'sortable', true); + unset($item['formatter']); + return $item; + } + )->values(); + + $actions = collect($this->actions())->map( + function ($label, $key) { + $item['key'] = $key; + $item['label'] = $label; return $item; } )->values(); return [ 'columns' => $columns, - 'actions' => $this->actions(), + 'actions' => $actions, 'params' => $this->params, 'searchFields' => $searchFields, 'perPage' => $this->perPage, @@ -269,6 +325,7 @@ function ($item, $key) { 'searchable' => $this->searchable, 'searchFieldTypes' => $this->getSearchFieldTypes(), 'table' => Crypt::encryptString(static::class), + 'uniqueId' => $this->getUniqueId(), ]; } @@ -279,7 +336,7 @@ function ($item, $key) { */ protected function getDataRender(): array { - $uniqueId = 'juzaweb_' . Str::random(10); + $uniqueId = $this->getUniqueId(); $searchFields = $this->searchFields(); return [ @@ -300,7 +357,24 @@ protected function getDataRender(): array ]; } - private function paramsToArray($params) + /** + * Generate a unique ID. + * + * @return string The unique ID generated. + */ + protected function getUniqueId(): string + { + return 'juzaweb_' . Str::random(10); + } + + /** + * Convert the given parameters into an array. + * + * @param mixed $params The parameters to convert. + * @throws \RuntimeException If the parameters contain unsupported types. + * @return mixed The converted parameters as an array. + */ + protected function paramsToArray($params) { foreach ($params as $key => $var) { if (is_null($var)) { @@ -308,14 +382,19 @@ private function paramsToArray($params) } if (! in_array(gettype($var), ['string', 'array', 'integer'])) { - throw new \Exception('Mount data can\'t support. Only supported string, array, integer'); + throw new \RuntimeException('Mount data can\'t support. Only supported string, array, integer'); } } return $params; } - private function getSearchFieldTypes() + /** + * Retrieves the search field types. + * + * @return array An array of search field types. + */ + protected function getSearchFieldTypes() { return apply_filters(Action::DATATABLE_SEARCH_FIELD_TYPES_FILTER, []); } diff --git a/modules/CMS/Traits/ResourceController.php b/modules/CMS/Traits/ResourceController.php index c9eab2e53..4a4da79fd 100644 --- a/modules/CMS/Traits/ResourceController.php +++ b/modules/CMS/Traits/ResourceController.php @@ -12,6 +12,7 @@ use Illuminate\Contracts\Support\Renderable; use Illuminate\Contracts\View\View; +use Illuminate\Database\Eloquent\Model; use Illuminate\Http\JsonResponse; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; @@ -19,15 +20,15 @@ use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Validator; +use Inertia\Response; use Juzaweb\CMS\Abstracts\DataTable; -use Illuminate\Database\Eloquent\Model; /** * @method void getBreadcrumbPrefix(...$params) */ trait ResourceController { - public function index(...$params): View + public function index(...$params): View|Response { $this->checkPermission( 'index', @@ -39,13 +40,13 @@ public function index(...$params): View $this->getBreadcrumbPrefix(...$params); } - return view( + return $this->view( "{$this->viewPrefix}.index", $this->getDataForIndex(...$params) ); } - public function create(...$params): View + public function create(...$params): View|Response { $this->checkPermission('create', $this->getModel(...$params), ...$params); @@ -68,7 +69,7 @@ public function create(...$params): View $model = $this->makeModel(...$params); - return view( + return $this->view( "{$this->viewPrefix}.form", array_merge( [ @@ -80,7 +81,7 @@ public function create(...$params): View ); } - public function edit(...$params): View + public function edit(...$params): View|Response { $indexRoute = str_replace( '.edit', @@ -106,8 +107,8 @@ public function edit(...$params): View $model = $this->getDetailModel($this->makeModel(...$indexParams), ...$params); $this->checkPermission('edit', $model, ...$params); - return view( - $this->viewPrefix . '.form', + return $this->view( + $this->viewPrefix.'.form', array_merge( [ 'title' => $model->{$model->getFieldName()}, @@ -236,7 +237,7 @@ public function datatable(Request $request, ...$params): JsonResponse foreach ($rows as $index => $row) { $columns['id'] = $row->id; foreach ($columns as $col => $column) { - if (! empty($column['formatter'])) { + if (!empty($column['formatter'])) { $formatter = $column['formatter']( $row->{$col} ?? null, $row, @@ -319,7 +320,7 @@ public function getDataForSelect(Request $request, ...$params): JsonResponse $query->select( [ 'id', - $model->getFieldName() . ' AS text', + $model->getFieldName().' AS text', ] ); @@ -373,9 +374,9 @@ protected function beforeSave(&$data, &$model, ...$params) /** * After Save model * - * @param array $data - * @param \Juzaweb\CMS\Models\Model $model - * @param mixed $params + * @param array $data + * @param \Juzaweb\CMS\Models\Model $model + * @param mixed $params */ protected function afterSave($data, $model, ...$params) { @@ -399,8 +400,9 @@ protected function parseDataForSave(array $attributes, ...$params) /** * Get data for form * - * @param \Illuminate\Database\Eloquent\Model $model + * @param \Illuminate\Database\Eloquent\Model $model * @return array + * @throws \Exception */ protected function getDataForForm($model, ...$params) { @@ -506,8 +508,8 @@ abstract protected function getDataTable(...$params); /** * Validator for store and update * - * @param array $attributes - * @param mixed ...$params + * @param array $attributes + * @param mixed ...$params * @return Validator|array */ abstract protected function validator(array $attributes, ...$params); @@ -515,7 +517,7 @@ abstract protected function validator(array $attributes, ...$params); /** * Get model resource * - * @param array $params + * @param array $params * @return string // namespace model */ abstract protected function getModel(...$params); @@ -523,7 +525,7 @@ abstract protected function getModel(...$params); /** * Get title resource * - * @param array $params + * @param array $params * @return string */ abstract protected function getTitle(...$params); diff --git a/package.json b/package.json index 53a11b372..886e32a22 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@types/jquery": "^3.5.16", "@types/lodash": "^4.14.187", "@types/react": "^18.2.15", + "@types/react-bootstrap-table2-toolkit": "^2.1.7", "@types/react-dom": "^18.2.7", "@types/ziggy-js": "^1.3.2", "@vitejs/plugin-react": "^3.0.0", @@ -76,6 +77,7 @@ "postcss-import": "^14.1.0", "postcss-nesting": "^10.1.5", "react": "^18.2.0", + "react-bootstrap-table-next": "^4.0.3", "react-day-picker": "^8.8.0", "react-dom": "^18.2.0", "tailwind-merge": "^1.13.2", diff --git a/public/build/assets/app-4ed993c7.js b/public/build/assets/app-4ed993c7.js new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/public/build/assets/app-4ed993c7.js @@ -0,0 +1 @@ + diff --git a/public/build/assets/app-de2af86a.js b/public/build/assets/app-de2af86a.js new file mode 100644 index 000000000..53bab2b3a --- /dev/null +++ b/public/build/assets/app-de2af86a.js @@ -0,0 +1,121 @@ +const nm="modulepreload",rm=function(e){return"/build/"+e},ec={},Vt=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=rm(o),o in ec)return;ec[o]=!0;const l=o.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let d=i.length-1;d>=0;d--){const y=i[d];if(y.href===o&&(!l||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const s=document.createElement("link");if(s.rel=l?"stylesheet":nm,l||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),l)return new Promise((d,y)=>{s.addEventListener("load",d),s.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var Vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function el(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function im(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var jf={exports:{}},tl={},Bf={exports:{}},$={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Pi=Symbol.for("react.element"),om=Symbol.for("react.portal"),lm=Symbol.for("react.fragment"),um=Symbol.for("react.strict_mode"),am=Symbol.for("react.profiler"),sm=Symbol.for("react.provider"),cm=Symbol.for("react.context"),fm=Symbol.for("react.forward_ref"),dm=Symbol.for("react.suspense"),pm=Symbol.for("react.memo"),hm=Symbol.for("react.lazy"),tc=Symbol.iterator;function ym(e){return e===null||typeof e!="object"?null:(e=tc&&e[tc]||e["@@iterator"],typeof e=="function"?e:null)}var Vf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hf=Object.assign,Wf={};function wr(e,t,n){this.props=e,this.context=t,this.refs=Wf,this.updater=n||Vf}wr.prototype.isReactComponent={};wr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};wr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qf(){}Qf.prototype=wr.prototype;function ka(e,t,n){this.props=e,this.context=t,this.refs=Wf,this.updater=n||Vf}var xa=ka.prototype=new Qf;xa.constructor=ka;Hf(xa,wr.prototype);xa.isPureReactComponent=!0;var nc=Array.isArray,Gf=Object.prototype.hasOwnProperty,Pa={current:null},Kf={key:!0,ref:!0,__self:!0,__source:!0};function Jf(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Gf.call(t,r)&&!Kf.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,oe=N[q];if(0>>1;qi(V,z))ati(Mn,V)?(N[q]=Mn,N[at]=z,q=at):(N[q]=V,N[wt]=z,q=wt);else if(ati(Mn,z))N[q]=Mn,N[at]=z,q=at;else break e}}return F}function i(N,F){var z=N.sortIndex-F.sortIndex;return z!==0?z:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var a=[],s=[],d=1,y=null,m=3,w=!1,f=!1,g=!1,O=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var F=n(s);F!==null;){if(F.callback===null)r(s);else if(F.startTime<=N)r(s),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(s)}}function E(N){if(g=!1,v(N),!f)if(n(a)!==null)f=!0,He(T);else{var F=n(s);F!==null&&Pr(E,F.startTime-N)}}function T(N,F){f=!1,g&&(g=!1,h(A),A=-1),w=!0;var z=m;try{for(v(F),y=n(a);y!==null&&(!(y.expirationTime>F)||N&&!ie());){var q=y.callback;if(typeof q=="function"){y.callback=null,m=y.priorityLevel;var oe=q(y.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?y.callback=oe:y===n(a)&&r(a),v(F)}else r(a);y=n(a)}if(y!==null)var zn=!0;else{var wt=n(s);wt!==null&&Pr(E,wt.startTime-F),zn=!1}return zn}finally{y=null,m=z,w=!1}}var k=!1,P=null,A=-1,M=5,I=-1;function ie(){return!(e.unstable_now()-IN||125q?(N.sortIndex=z,t(s,N),n(a)===null&&N===n(s)&&(g?(h(A),A=-1):g=!0,Pr(E,z-q))):(N.sortIndex=oe,t(a,N),f||w||(f=!0,He(T))),N},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(N){var F=m;return function(){var z=m;m=F;try{return N.apply(this,arguments)}finally{m=z}}}})(bf);Yf.exports=bf;var Cm=Yf.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zf=de,je=Cm;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=Object.prototype.hasOwnProperty,Tm=/^[: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]*$/,ic={},oc={};function Am(e){return wu.call(oc,e)?!0:wu.call(ic,e)?!1:Tm.test(e)?oc[e]=!0:(ic[e]=!0,!1)}function Nm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rm(e,t,n,r){if(t===null||typeof t>"u"||Nm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ne(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Ne(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){Se[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([a-z])/g;function Aa(e){return e[1].toUpperCase()}"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(Ta,Aa);Se[t]=new Ne(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(Ta,Aa);Se[t]=new Ne(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(Ta,Aa);Se[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function Na(e,t,n,r){var i=Se.hasOwnProperty(t)?Se[t]:null;(i!==null?i.type!==0:r||!(2u||i[l]!==o[u]){var a=` +`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{Fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function Lm(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function xu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wn:return"Fragment";case Hn:return"Portal";case Eu:return"Profiler";case Ra:return"StrictMode";case _u:return"Suspense";case ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nd:return(e.displayName||"Context")+".Consumer";case td:return(e._context.displayName||"Context")+".Provider";case La:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:xu(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return xu(e(t))}catch{}}return null}function Im(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=t.render,e=e.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 xu(t);case 8:return t===Ra?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function id(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fm(e){var t=id(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=Fm(e))}function od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=id(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pu(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ld(e,t){t=t.checked,t!=null&&Na(e,"checked",t,!1)}function Ou(e,t){ld(e,t);var n=sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cu(e,t,n){(t!=="number"||xo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wr=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kr={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},Dm=["Webkit","ms","Moz","O"];Object.keys(Kr).forEach(function(e){Dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kr[t]=Kr[e]})});function cd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kr.hasOwnProperty(e)&&Kr[e]?(""+t).trim():t+"px"}function fd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var zm=Z({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 Nu(e,t){if(t){if(zm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ru(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Lu=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Iu=null,nr=null,rr=null;function fc(e){if(e=Ti(e)){if(typeof Iu!="function")throw Error(C(280));var t=e.stateNode;t&&(t=ll(t),Iu(e.stateNode,e.type,t))}}function dd(e){nr?rr?rr.push(e):rr=[e]:nr=e}function pd(){if(nr){var e=nr,t=rr;if(rr=nr=null,fc(e),t)for(e=0;e>>=0,e===0?32:31-(Km(e)/Jm|0)|0}var Wi=64,Qi=4194304;function Qr(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=Qr(u):(o&=l,o!==0&&(r=Qr(o)))}else l=n&~i,l!==0?r=Qr(l):o!==0&&(r=Qr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function bm(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=qr),wc=String.fromCharCode(32),Ec=!1;function Id(e,t){switch(e){case"keyup":return Ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qn=!1;function Tv(e,t){switch(e){case"compositionend":return Fd(t);case"keypress":return t.which!==32?null:(Ec=!0,wc);case"textInput":return e=t.data,e===wc&&Ec?null:e;default:return null}}function Av(e,t){if(Qn)return e==="compositionend"||!Va&&Id(e,t)?(e=Rd(),so=Ua=Yt=null,Qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pc(n)}}function $d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ud(){for(var e=window,t=xo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xo(e.document)}return t}function Ha(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $v(e){var t=Ud(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$d(n.ownerDocument.documentElement,n)){if(r!==null&&Ha(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Oc(n,o);var l=Oc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gn=null,Uu=null,Yr=null,ju=!1;function Cc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ju||Gn==null||Gn!==xo(r)||(r=Gn,"selectionStart"in r&&Ha(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&di(Yr,r)||(Yr=r,r=Ro(Uu,"onSelect"),0qn||(e.current=Gu[qn],Gu[qn]=null,qn--)}function W(e,t){qn++,Gu[qn]=e.current,e.current=t}var cn={},Pe=dn(cn),Ie=dn(!1),An=cn;function cr(e,t){var n=e.type.contextTypes;if(!n)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fe(e){return e=e.childContextTypes,e!=null}function Io(){K(Ie),K(Pe)}function Fc(e,t,n){if(Pe.current!==cn)throw Error(C(168));W(Pe,t),W(Ie,n)}function Jd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,Im(e)||"Unknown",i));return Z({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,An=Pe.current,W(Pe,e),W(Ie,Ie.current),!0}function Dc(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Jd(e,t,An),r.__reactInternalMemoizedMergedChildContext=e,K(Ie),K(Pe),W(Pe,e)):K(Ie),W(Ie,n)}var Ot=null,ul=!1,ql=!1;function qd(e){Ot===null?Ot=[e]:Ot.push(e)}function Xv(e){ul=!0,qd(e)}function pn(){if(!ql&&Ot!==null){ql=!0;var e=0,t=H;try{var n=Ot;for(H=1;e>=l,i-=l,Tt=1<<32-ot(t)+i|n<A?(M=P,P=null):M=P.sibling;var I=m(h,P,v[A],E);if(I===null){P===null&&(P=M);break}e&&P&&I.alternate===null&&t(h,P),p=o(I,p,A),k===null?T=I:k.sibling=I,k=I,P=M}if(A===v.length)return n(h,P),J&&wn(h,A),T;if(P===null){for(;AA?(M=P,P=null):M=P.sibling;var ie=m(h,P,I.value,E);if(ie===null){P===null&&(P=M);break}e&&P&&ie.alternate===null&&t(h,P),p=o(ie,p,A),k===null?T=ie:k.sibling=ie,k=ie,P=M}if(I.done)return n(h,P),J&&wn(h,A),T;if(P===null){for(;!I.done;A++,I=v.next())I=y(h,I.value,E),I!==null&&(p=o(I,p,A),k===null?T=I:k.sibling=I,k=I);return J&&wn(h,A),T}for(P=r(h,P);!I.done;A++,I=v.next())I=w(P,h,A,I.value,E),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?A:I.key),p=o(I,p,A),k===null?T=I:k.sibling=I,k=I);return e&&P.forEach(function(ee){return t(h,ee)}),J&&wn(h,A),T}function O(h,p,v,E){if(typeof v=="object"&&v!==null&&v.type===Wn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:e:{for(var T=v.key,k=p;k!==null;){if(k.key===T){if(T=v.type,T===Wn){if(k.tag===7){n(h,k.sibling),p=i(k,v.props.children),p.return=h,h=p;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Qt&&Vc(T)===k.type){n(h,k.sibling),p=i(k,v.props),p.ref=Dr(h,k,v),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===Wn?(p=Cn(v.props.children,h.mode,E,v.key),p.return=h,h=p):(E=go(v.type,v.key,v.props,null,h.mode,E),E.ref=Dr(h,p,v),E.return=h,h=E)}return l(h);case Hn:e:{for(k=v.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=i(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ru(v,h.mode,E),p.return=h,h=p}return l(h);case Qt:return k=v._init,O(h,p,k(v._payload),E)}if(Wr(v))return f(h,p,v,E);if(Nr(v))return g(h,p,v,E);bi(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,v),p.return=h,h=p):(n(h,p),p=nu(v,h.mode,E),p.return=h,h=p),l(h)):n(h,p)}return O}var dr=rp(!0),ip=rp(!1),Ai={},gt=dn(Ai),mi=dn(Ai),vi=dn(Ai);function Pn(e){if(e===Ai)throw Error(C(174));return e}function ba(e,t){switch(W(vi,t),W(mi,e),W(gt,Ai),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Au(t,e)}K(gt),W(gt,t)}function pr(){K(gt),K(mi),K(vi)}function op(e){Pn(vi.current);var t=Pn(gt.current),n=Au(t,e.type);t!==n&&(W(mi,e),W(gt,n))}function Za(e){mi.current===e&&(K(gt),K(mi))}var Y=dn(0);function jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xl=[];function es(){for(var e=0;en?n:4,e(!0);var r=Yl.transition;Yl.transition={};try{e(!1),t()}finally{H=n,Yl.transition=r}}function Ep(){return be().memoizedState}function eg(e,t,n){var r=un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_p(e))kp(t,n);else if(n=Zd(e,t,n,r),n!==null){var i=Te();lt(n,e,r,i),xp(n,t,r)}}function tg(e,t,n){var r=un(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_p(e))kp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,u=o(l,n);if(i.hasEagerState=!0,i.eagerState=u,ut(u,l)){var a=t.interleaved;a===null?(i.next=i,Xa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Zd(e,t,i,r),n!==null&&(i=Te(),lt(n,e,r,i),xp(n,t,r))}}function _p(e){var t=e.alternate;return e===b||t!==null&&t===b}function kp(e,t){br=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,za(e,n)}}var Vo={readContext:Ye,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},ng={readContext:Ye,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:Wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ho(4194308,4,mp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ho(4194308,4,e,t)},useInsertionEffect:function(e,t){return ho(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();return t=n!==void 0?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=eg.bind(null,b,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:Hc,useDebugValue:os,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=Hc(!1),t=e[0];return e=Zv.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=b,i=dt();if(J){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),he===null)throw Error(C(349));Rn&30||ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Wc(cp.bind(null,r,o,e),[e]),r.flags|=2048,wi(9,sp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=dt(),t=he.identifierPrefix;if(J){var n=At,r=Tt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ht]=t,e[yi]=r,Ip(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ru(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;iyr&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304)}else{if(!r)if(e=jo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!J)return _e(t),null}else 2*re()-o.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,n=Y.current,W(Y,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return fs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function cg(e,t){switch(Qa(t),t.tag){case 1:return Fe(t.type)&&Io(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pr(),K(Ie),K(Pe),es(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Za(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return pr(),null;case 10:return qa(t.type._context),null;case 22:case 23:return fs(),null;case 24:return null;default:return null}}var eo=!1,xe=!1,fg=typeof WeakSet=="function"?WeakSet:Set,L=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ia(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Zc=!1;function dg(e,t){if(Bu=Ao,e=Ud(),Ha(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,s=0,d=0,y=e,m=null;t:for(;;){for(var w;y!==n||i!==0&&y.nodeType!==3||(u=l+i),y!==o||r!==0&&y.nodeType!==3||(a=l+r),y.nodeType===3&&(l+=y.nodeValue.length),(w=y.firstChild)!==null;)m=y,y=w;for(;;){if(y===e)break t;if(m===n&&++s===i&&(u=l),m===o&&++d===r&&(a=l),(w=y.nextSibling)!==null)break;y=m,m=y.parentNode}y=w}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},Ao=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var g=f.memoizedProps,O=f.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:nt(t.type,g),O);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(E){ne(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return f=Zc,Zc=!1,f}function Zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ia(t,n,o)}i=i.next}while(i!==r)}}function cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 oa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zp(e){var t=e.alternate;t!==null&&(e.alternate=null,zp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[yi],delete t[Qu],delete t[Jv],delete t[qv])),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 Mp(e){return e.tag===5||e.tag===3||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function la(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function ua(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ua(e,t,n),e=e.sibling;e!==null;)ua(e,t,n),e=e.sibling}var ve=null,rt=!1;function Ht(e,t,n){for(n=n.child;n!==null;)$p(e,t,n),n=n.sibling}function $p(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:xe||Zn(n,t);case 6:var r=ve,i=rt;ve=null,Ht(e,t,n),ve=r,rt=i,ve!==null&&(rt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(rt?(e=ve,n=n.stateNode,e.nodeType===8?Jl(e.parentNode,n):e.nodeType===1&&Jl(e,n),ci(e)):Jl(ve,n.stateNode));break;case 4:r=ve,i=rt,ve=n.stateNode.containerInfo,rt=!0,Ht(e,t,n),ve=r,rt=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&ia(n,t,l),i=i.next}while(i!==r)}Ht(e,t,n);break;case 1:if(!xe&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ne(n,t,u)}Ht(e,t,n);break;case 21:Ht(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Ht(e,t,n),xe=r):Ht(e,t,n);break;default:Ht(e,t,n)}}function tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fg),t.forEach(function(r){var i=Eg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hg(r/1960))-r,10e?16:e,bt===null)var r=!1;else{if(e=bt,bt=null,Qo=0,B&6)throw Error(C(331));var i=B;for(B|=4,L=e.current;L!==null;){var o=L,l=o.child;if(L.flags&16){var u=o.deletions;if(u!==null){for(var a=0;are()-ss?On(e,0):as|=n),De(e,t)}function Gp(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Te();e=Ft(e,t),e!==null&&(Oi(e,t,n),De(e,n))}function wg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gp(e,n)}function Eg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Gp(e,n)}var Kp;Kp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,ag(e,t,n);Le=!!(e.flags&131072)}else Le=!1,J&&t.flags&1048576&&Xd(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yo(e,t),e=t.pendingProps;var i=cr(t,Pe.current);or(t,n),i=ns(null,t,r,e,i,n);var o=rs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(o=!0,Fo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ya(t),i.updater=al,t.stateNode=i,i._reactInternals=t,Yu(t,r,e,n),t=ea(null,t,r,!0,o,n)):(t.tag=0,J&&o&&Wa(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=kg(r),e=nt(r,e),i){case 0:t=Zu(null,t,r,e,n);break e;case 1:t=Xc(null,t,r,e,n);break e;case 11:t=Jc(null,t,r,e,n);break e;case 14:t=qc(null,t,r,nt(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nt(r,i),Zu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nt(r,i),Xc(e,t,r,i,n);case 3:e:{if(Np(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ep(e,t),Uo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=hr(Error(C(423)),t),t=Yc(e,t,r,n,i);break e}else if(r!==i){i=hr(Error(C(424)),t),t=Yc(e,t,r,n,i);break e}else for($e=rn(t.stateNode.containerInfo.firstChild),Ue=t,J=!0,it=null,n=ip(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fr(),r===i){t=Dt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return op(t),e===null&&Ju(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Hu(r,i)?l=null:o!==null&&Hu(r,o)&&(t.flags|=32),Ap(e,t),Ce(e,t,l,n),t.child;case 6:return e===null&&Ju(t),null;case 13:return Rp(e,t,n);case 4:return ba(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dr(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nt(r,i),Jc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,W(Mo,r._currentValue),r._currentValue=l,o!==null)if(ut(o.value,l)){if(o.children===i.children&&!Ie.current){t=Dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Nt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),qu(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(C(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),qu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,or(t,n),i=Ye(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=nt(r,t.pendingProps),i=nt(r.type,i),qc(e,t,r,i,n);case 15:return Cp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nt(r,i),yo(e,t),t.tag=1,Fe(r)?(e=!0,Fo(t)):e=!1,or(t,n),np(t,r,i),Yu(t,r,i,n),ea(null,t,r,!0,e,n);case 19:return Lp(e,t,n);case 22:return Tp(e,t,n)}throw Error(C(156,t.tag))};function Jp(e,t){return wd(e,t)}function _g(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 Je(e,t,n,r){return new _g(e,t,n,r)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kg(e){if(typeof e=="function")return ps(e)?1:0;if(e!=null){if(e=e.$$typeof,e===La)return 11;if(e===Ia)return 14}return 2}function an(e,t){var n=e.alternate;return n===null?(n=Je(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function go(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ps(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Wn:return Cn(n.children,i,o,t);case Ra:l=8,i|=8;break;case Eu:return e=Je(12,n,t,i|2),e.elementType=Eu,e.lanes=o,e;case _u:return e=Je(13,n,t,i),e.elementType=_u,e.lanes=o,e;case ku:return e=Je(19,n,t,i),e.elementType=ku,e.lanes=o,e;case rd:return dl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case td:l=10;break e;case nd:l=9;break e;case La:l=11;break e;case Ia:l=14;break e;case Qt:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Je(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=Je(7,e,r,t),e.lanes=n,e}function dl(e,t,n,r){return e=Je(22,e,r,t),e.elementType=rd,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=Je(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=Je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hs(e,t,n,r,i,o,l,u,a){return e=new xg(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Je(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ya(o),e}function Pg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bp)}catch(e){console.error(e)}}bp(),Xf.exports=Be;var Zp=Xf.exports;const xw=el(Zp);var eh,cf=Zp;eh=cf.createRoot,cf.hydrateRoot;function th(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ng}=Object.prototype,{getPrototypeOf:gs}=Object,vl=(e=>t=>{const n=Ng.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),St=e=>(e=e.toLowerCase(),t=>vl(t)===e),gl=e=>t=>typeof t===e,{isArray:kr}=Array,_i=gl("undefined");function Rg(e){return e!==null&&!_i(e)&&e.constructor!==null&&!_i(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nh=St("ArrayBuffer");function Lg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nh(e.buffer),t}const Ig=gl("string"),Xe=gl("function"),rh=gl("number"),Sl=e=>e!==null&&typeof e=="object",Fg=e=>e===!0||e===!1,So=e=>{if(vl(e)!=="object")return!1;const t=gs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dg=St("Date"),zg=St("File"),Mg=St("Blob"),$g=St("FileList"),Ug=e=>Sl(e)&&Xe(e.pipe),jg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=vl(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},Bg=St("URLSearchParams"),Vg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ni(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),kr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const oh=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),lh=e=>!_i(e)&&e!==oh;function da(){const{caseless:e}=lh(this)&&this||{},t={},n=(r,i)=>{const o=e&&ih(t,i)||i;So(t[o])&&So(r)?t[o]=da(t[o],r):So(r)?t[o]=da({},r):kr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ni(t,(i,o)=>{n&&Xe(i)?e[o]=th(i,n):e[o]=i},{allOwnKeys:r}),e),Wg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Gg=(e,t,n,r)=>{let i,o,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&gs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Jg=e=>{if(!e)return null;if(kr(e))return e;let t=e.length;if(!rh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gs(Uint8Array)),Xg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Yg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},bg=St("HTMLFormElement"),Zg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ff=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),e0=St("RegExp"),uh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ni(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},t0=e=>{uh(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},n0=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return kr(e)?r(e):r(String(e).split(t)),n},r0=()=>{},i0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),iu="abcdefghijklmnopqrstuvwxyz",df="0123456789",ah={DIGIT:df,ALPHA:iu,ALPHA_DIGIT:iu+iu.toUpperCase()+df},o0=(e=16,t=ah.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function l0(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const u0=e=>{const t=new Array(10),n=(r,i)=>{if(Sl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=kr(r)?[]:{};return Ni(r,(l,u)=>{const a=n(l,i+1);!_i(a)&&(o[u]=a)}),t[i]=void 0,o}}return r};return n(e,0)},a0=St("AsyncFunction"),s0=e=>e&&(Sl(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),_={isArray:kr,isArrayBuffer:nh,isBuffer:Rg,isFormData:jg,isArrayBufferView:Lg,isString:Ig,isNumber:rh,isBoolean:Fg,isObject:Sl,isPlainObject:So,isUndefined:_i,isDate:Dg,isFile:zg,isBlob:Mg,isRegExp:e0,isFunction:Xe,isStream:Ug,isURLSearchParams:Bg,isTypedArray:qg,isFileList:$g,forEach:Ni,merge:da,extend:Hg,trim:Vg,stripBOM:Wg,inherits:Qg,toFlatObject:Gg,kindOf:vl,kindOfTest:St,endsWith:Kg,toArray:Jg,forEachEntry:Xg,matchAll:Yg,isHTMLForm:bg,hasOwnProperty:ff,hasOwnProp:ff,reduceDescriptors:uh,freezeMethods:t0,toObjectSet:n0,toCamelCase:Zg,noop:r0,toFiniteNumber:i0,findKey:ih,global:oh,isContextDefined:lh,ALPHABET:ah,generateString:o0,isSpecCompliantForm:l0,toJSONObject:u0,isAsyncFn:a0,isThenable:s0};function j(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}_.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sh=j.prototype,ch={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ch[e]={value:e}});Object.defineProperties(j,ch);Object.defineProperty(sh,"isAxiosError",{value:!0});j.from=(e,t,n,r,i,o)=>{const l=Object.create(sh);return _.toFlatObject(e,l,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),j.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const c0=null;function pa(e){return _.isPlainObject(e)||_.isArray(e)}function fh(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function pf(e,t,n){return e?e.concat(t).map(function(i,o){return i=fh(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function f0(e){return _.isArray(e)&&!e.some(pa)}const d0=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function wl(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,O){return!_.isUndefined(O[g])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function s(f){if(f===null)return"";if(_.isDate(f))return f.toISOString();if(!a&&_.isBlob(f))throw new j("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(f)||_.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,g,O){let h=f;if(f&&!O&&typeof f=="object"){if(_.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(_.isArray(f)&&f0(f)||(_.isFileList(f)||_.endsWith(g,"[]"))&&(h=_.toArray(f)))return g=fh(g),h.forEach(function(v,E){!(_.isUndefined(v)||v===null)&&t.append(l===!0?pf([g],E,o):l===null?g:g+"[]",s(v))}),!1}return pa(f)?!0:(t.append(pf(O,g,o),s(f)),!1)}const y=[],m=Object.assign(d0,{defaultVisitor:d,convertValue:s,isVisitable:pa});function w(f,g){if(!_.isUndefined(f)){if(y.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));y.push(f),_.forEach(f,function(h,p){(!(_.isUndefined(h)||h===null)&&i.call(t,h,_.isString(p)?p.trim():p,g,m))===!0&&w(h,g?g.concat(p):[p])}),y.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return w(e),t}function hf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ss(e,t){this._pairs=[],e&&wl(e,this,t)}const dh=Ss.prototype;dh.append=function(t,n){this._pairs.push([t,n])};dh.toString=function(t){const n=t?function(r){return t.call(this,r,hf)}:hf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function p0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ph(e,t,n){if(!t)return e;const r=n&&n.encode||p0,i=n&&n.serialize;let o;if(i?o=i(t,n):o=_.isURLSearchParams(t)?t.toString():new Ss(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class h0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yf=h0,hh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},y0=typeof URLSearchParams<"u"?URLSearchParams:Ss,m0=typeof FormData<"u"?FormData:null,v0=typeof Blob<"u"?Blob:null,g0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),S0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mt={isBrowser:!0,classes:{URLSearchParams:y0,FormData:m0,Blob:v0},isStandardBrowserEnv:g0,isStandardBrowserWebWorkerEnv:S0,protocols:["http","https","file","blob","url","data"]};function w0(e,t){return wl(e,new mt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return mt.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function E0(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _0(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return l=!l&&_.isArray(i)?i.length:l,a?(_.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!u):((!i[l]||!_.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&_.isArray(i[l])&&(i[l]=_0(i[l])),!u)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,i)=>{t(E0(r),i,n,0)}),n}return null}const k0={"Content-Type":void 0};function x0(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const El={transitional:hh,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return i&&i?JSON.stringify(yh(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w0(t,this.formSerializer).toString();if((u=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return wl(u?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),x0(t)):t}],transformResponse:[function(t){const n=this.transitional||El.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&_.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?j.from(u,j.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){El.headers[t]={}});_.forEach(["post","put","patch"],function(t){El.headers[t]=_.merge(k0)});const ws=El,P0=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),O0=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&P0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mf=Symbol("internals");function $r(e){return e&&String(e).trim().toLowerCase()}function wo(e){return e===!1||e==null?e:_.isArray(e)?e.map(wo):String(e)}function C0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const T0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ou(e,t,n,r,i){if(_.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function A0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function N0(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}class _l{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(u,a,s){const d=$r(a);if(!d)throw new Error("header name must be a non-empty string");const y=_.findKey(i,d);(!y||i[y]===void 0||s===!0||s===void 0&&i[y]!==!1)&&(i[y||a]=wo(u))}const l=(u,a)=>_.forEach(u,(s,d)=>o(s,d,a));return _.isPlainObject(t)||t instanceof this.constructor?l(t,n):_.isString(t)&&(t=t.trim())&&!T0(t)?l(O0(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=$r(t),t){const r=_.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return C0(i);if(_.isFunction(n))return n.call(this,i,r);if(_.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$r(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ou(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=$r(l),l){const u=_.findKey(r,l);u&&(!n||ou(r,r[u],u,n))&&(delete r[u],i=!0)}}return _.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ou(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return _.forEach(this,(i,o)=>{const l=_.findKey(r,o);if(l){n[l]=wo(i),delete n[o];return}const u=t?A0(o):String(o).trim();u!==o&&delete n[o],n[u]=wo(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[mf]=this[mf]={accessors:{}}).accessors,i=this.prototype;function o(l){const u=$r(l);r[u]||(N0(i,l),r[u]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}_l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.freezeMethods(_l.prototype);_.freezeMethods(_l);const Rt=_l;function lu(e,t){const n=this||ws,r=t||n,i=Rt.from(r.headers);let o=r.data;return _.forEach(e,function(u){o=u.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function mh(e){return!!(e&&e.__CANCEL__)}function Ri(e,t,n){j.call(this,e??"canceled",j.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Ri,j,{__CANCEL__:!0});function R0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new j("Request failed with status code "+n.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const L0=mt.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,l,u){const a=[];a.push(n+"="+encodeURIComponent(r)),_.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),_.isString(o)&&a.push("path="+o),_.isString(l)&&a.push("domain="+l),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function I0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function F0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vh(e,t){return e&&!I0(t)?F0(e,t):t}const D0=mt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let l=o;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(l){const u=_.isString(l)?i(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function z0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(a){const s=Date.now(),d=r[o];l||(l=s),n[i]=a,r[i]=s;let y=o,m=0;for(;y!==i;)m+=n[y++],y=y%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),s-l{const o=i.loaded,l=i.lengthComputable?i.total:void 0,u=o-n,a=r(u),s=o<=l;n=o;const d={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:a||void 0,estimated:a&&l&&s?(l-o)/a:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const $0=typeof XMLHttpRequest<"u",U0=$0&&function(e){return new Promise(function(n,r){let i=e.data;const o=Rt.from(e.headers).normalize(),l=e.responseType;let u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}_.isFormData(i)&&(mt.isStandardBrowserEnv||mt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let s=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(w+":"+f))}const d=vh(e.baseURL,e.url);s.open(e.method.toUpperCase(),ph(d,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function y(){if(!s)return;const w=Rt.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:w,config:e,request:s};R0(function(h){n(h),a()},function(h){r(h),a()},g),s=null}if("onloadend"in s?s.onloadend=y:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(y)},s.onabort=function(){s&&(r(new j("Request aborted",j.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new j("Network Error",j.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||hh;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new j(f,g.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,s)),s=null},mt.isStandardBrowserEnv){const w=(e.withCredentials||D0(d))&&e.xsrfCookieName&&L0.read(e.xsrfCookieName);w&&o.set(e.xsrfHeaderName,w)}i===void 0&&o.setContentType(null),"setRequestHeader"in s&&_.forEach(o.toJSON(),function(f,g){s.setRequestHeader(g,f)}),_.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),l&&l!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",vf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",vf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=w=>{s&&(r(!w||w.type?new Ri(null,e,s):w),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const m=z0(d);if(m&&mt.protocols.indexOf(m)===-1){r(new j("Unsupported protocol "+m+":",j.ERR_BAD_REQUEST,e));return}s.send(i||null)})},Eo={http:c0,xhr:U0};_.forEach(Eo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const j0={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof Rt?e.toJSON():e;function mr(e,t){t=t||{};const n={};function r(s,d,y){return _.isPlainObject(s)&&_.isPlainObject(d)?_.merge.call({caseless:y},s,d):_.isPlainObject(d)?_.merge({},d):_.isArray(d)?d.slice():d}function i(s,d,y){if(_.isUndefined(d)){if(!_.isUndefined(s))return r(void 0,s,y)}else return r(s,d,y)}function o(s,d){if(!_.isUndefined(d))return r(void 0,d)}function l(s,d){if(_.isUndefined(d)){if(!_.isUndefined(s))return r(void 0,s)}else return r(void 0,d)}function u(s,d,y){if(y in t)return r(s,d);if(y in e)return r(void 0,s)}const a={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(s,d)=>i(Sf(s),Sf(d),!0)};return _.forEach(Object.keys(Object.assign({},e,t)),function(d){const y=a[d]||i,m=y(e[d],t[d],d);_.isUndefined(m)&&y!==u||(n[d]=m)}),n}const gh="1.4.0",Es={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Es[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wf={};Es.transitional=function(t,n,r){function i(o,l){return"[Axios v"+gh+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,u)=>{if(t===!1)throw new j(i(l," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!wf[l]&&(wf[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,u):!0}};function B0(e,t,n){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const u=e[o],a=u===void 0||l(u,o,e);if(a!==!0)throw new j("option "+o+" must be "+a,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+o,j.ERR_BAD_OPTION)}}const ha={assertOptions:B0,validators:Es},Wt=ha.validators;class Jo{constructor(t){this.defaults=t,this.interceptors={request:new yf,response:new yf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ha.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),i!=null&&(_.isFunction(i)?n.paramsSerializer={serialize:i}:ha.assertOptions(i,{encode:Wt.function,serialize:Wt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=o&&_.merge(o.common,o[n.method]),l&&_.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=Rt.concat(l,o);const u=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});let d,y=0,m;if(!a){const f=[gf.bind(this),void 0];for(f.unshift.apply(f,u),f.push.apply(f,s),m=f.length,d=Promise.resolve(n);y{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(u=>{r.subscribe(u),o=u}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,u){r.reason||(r.reason=new Ri(o,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _s(function(i){t=i}),cancel:t}}}const V0=_s;function H0(e){return function(n){return e.apply(null,n)}}function W0(e){return _.isObject(e)&&e.isAxiosError===!0}const ya={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ya).forEach(([e,t])=>{ya[t]=e});const Q0=ya;function Sh(e){const t=new _o(e),n=th(_o.prototype.request,t);return _.extend(n,_o.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sh(mr(e,i))},n}const se=Sh(ws);se.Axios=_o;se.CanceledError=Ri;se.CancelToken=V0;se.isCancel=mh;se.VERSION=gh;se.toFormData=wl;se.AxiosError=j;se.Cancel=se.CanceledError;se.all=function(t){return Promise.all(t)};se.spread=H0;se.isAxiosError=W0;se.mergeConfig=mr;se.AxiosHeaders=Rt;se.formToJSON=e=>yh(_.isHTMLForm(e)?new FormData(e):e);se.HttpStatusCode=Q0;se.default=se;const Ef=se;var G0=function(t){return K0(t)&&!J0(t)};function K0(e){return!!e&&typeof e=="object"}function J0(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Y0(e)}var q0=typeof Symbol=="function"&&Symbol.for,X0=q0?Symbol.for("react.element"):60103;function Y0(e){return e.$$typeof===X0}function b0(e){return Array.isArray(e)?[]:{}}function ki(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vr(b0(e),e,t):e}function Z0(e,t,n){return e.concat(t).map(function(r){return ki(r,n)})}function e1(e,t){if(!t.customMerge)return vr;var n=t.customMerge(e);return typeof n=="function"?n:vr}function t1(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function _f(e){return Object.keys(e).concat(t1(e))}function wh(e,t){try{return t in e}catch{return!1}}function n1(e,t){return wh(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function r1(e,t,n){var r={};return n.isMergeableObject(e)&&_f(e).forEach(function(i){r[i]=ki(e[i],n)}),_f(t).forEach(function(i){n1(e,i)||(wh(e,i)&&n.isMergeableObject(t[i])?r[i]=e1(i,n)(e[i],t[i],n):r[i]=ki(t[i],n))}),r}function vr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Z0,n.isMergeableObject=n.isMergeableObject||G0,n.cloneUnlessOtherwiseSpecified=ki;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):r1(e,t,n):ki(t,n)}vr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return vr(r,i,n)},{})};var i1=vr,o1=i1;const l1=el(o1);var u1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,n);if(l.value!==i||l.enumerable!==!0)return!1}return!0},kf=typeof Symbol<"u"&&Symbol,a1=u1,s1=function(){return typeof kf!="function"||typeof Symbol!="function"||typeof kf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a1()},c1="Function.prototype.bind called on incompatible ",au=Array.prototype.slice,f1=Object.prototype.toString,d1="[object Function]",p1=function(t){var n=this;if(typeof n!="function"||f1.call(n)!==d1)throw new TypeError(c1+n);for(var r=au.call(arguments,1),i,o=function(){if(this instanceof i){var d=n.apply(this,r.concat(au.call(arguments)));return Object(d)===d?d:this}else return n.apply(t,r.concat(au.call(arguments)))},l=Math.max(0,n.length-r.length),u=[],a=0;a"u"?U:Kt(Uint8Array),ar={"%AggregateError%":typeof AggregateError>"u"?U:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?U:ArrayBuffer,"%ArrayIteratorPrototype%":jn?Kt([][Symbol.iterator]()):U,"%AsyncFromSyncIteratorPrototype%":U,"%AsyncFunction%":Vn,"%AsyncGenerator%":Vn,"%AsyncGeneratorFunction%":Vn,"%AsyncIteratorPrototype%":Vn,"%Atomics%":typeof Atomics>"u"?U:Atomics,"%BigInt%":typeof BigInt>"u"?U:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?U:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?U:Float32Array,"%Float64Array%":typeof Float64Array>"u"?U:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?U:FinalizationRegistry,"%Function%":Eh,"%GeneratorFunction%":Vn,"%Int8Array%":typeof Int8Array>"u"?U:Int8Array,"%Int16Array%":typeof Int16Array>"u"?U:Int16Array,"%Int32Array%":typeof Int32Array>"u"?U:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jn?Kt(Kt([][Symbol.iterator]())):U,"%JSON%":typeof JSON=="object"?JSON:U,"%Map%":typeof Map>"u"?U:Map,"%MapIteratorPrototype%":typeof Map>"u"||!jn?U:Kt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?U:Promise,"%Proxy%":typeof Proxy>"u"?U:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?U:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?U:Set,"%SetIteratorPrototype%":typeof Set>"u"||!jn?U:Kt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?U:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jn?Kt(""[Symbol.iterator]()):U,"%Symbol%":jn?Symbol:U,"%SyntaxError%":xi,"%ThrowTypeError%":v1,"%TypedArray%":g1,"%TypeError%":ur,"%Uint8Array%":typeof Uint8Array>"u"?U:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?U:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?U:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?U:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?U:WeakMap,"%WeakRef%":typeof WeakRef>"u"?U:WeakRef,"%WeakSet%":typeof WeakSet>"u"?U:WeakSet},S1=function e(t){var n;if(t==="%AsyncFunction%")n=su("async function () {}");else if(t==="%GeneratorFunction%")n=su("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=su("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=Kt(i.prototype))}return ar[t]=n,n},xf={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kl=ks,qo=m1,w1=kl.call(Function.call,Array.prototype.concat),E1=kl.call(Function.apply,Array.prototype.splice),Pf=kl.call(Function.call,String.prototype.replace),Xo=kl.call(Function.call,String.prototype.slice),_1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k1=/\\(\\)?/g,x1=function(t){var n=Xo(t,0,1),r=Xo(t,-1);if(n==="%"&&r!=="%")throw new xi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new xi("invalid intrinsic syntax, expected opening `%`");var i=[];return Pf(t,_1,function(o,l,u,a){i[i.length]=u?Pf(a,k1,"$1"):l||o}),i},P1=function(t,n){var r=t,i;if(qo(xf,r)&&(i=xf[r],r="%"+i[0]+"%"),qo(ar,r)){var o=ar[r];if(o===Vn&&(o=S1(r)),typeof o>"u"&&!n)throw new ur("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new xi("intrinsic "+t+" does not exist!")},xs=function(t,n){if(typeof t!="string"||t.length===0)throw new ur("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ur('"allowMissing" argument must be a boolean');var r=x1(t),i=r.length>0?r[0]:"",o=P1("%"+i+"%",n),l=o.name,u=o.value,a=!1,s=o.alias;s&&(i=s[0],E1(r,w1([0,1],s)));for(var d=1,y=!0;d=r.length){var g=Tn(u,m);y=!!g,y&&"get"in g&&!("originalValue"in g.get)?u=g.get:u=u[m]}else y=qo(u,m),u=u[m];y&&!a&&(ar[l]=u)}}return u},_h={exports:{}};(function(e){var t=ks,n=xs,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),l=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),a=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(y){var m=o(t,i,arguments);if(l&&u){var w=l(m,"length");w.configurable&&u(m,"length",{value:1+a(0,y.length-(arguments.length-1))})}return m};var s=function(){return o(t,r,arguments)};u?u(e.exports,"apply",{value:s}):e.exports.apply=s})(_h);var O1=_h.exports,kh=xs,xh=O1,C1=xh(kh("String.prototype.indexOf")),T1=function(t,n){var r=kh(t,!!n);return typeof r=="function"&&C1(t,".prototype.")>-1?xh(r):r};const A1={},N1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),R1=im(N1);var Ps=typeof Map=="function"&&Map.prototype,fu=Object.getOwnPropertyDescriptor&&Ps?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yo=Ps&&fu&&typeof fu.get=="function"?fu.get:null,L1=Ps&&Map.prototype.forEach,Os=typeof Set=="function"&&Set.prototype,du=Object.getOwnPropertyDescriptor&&Os?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bo=Os&&du&&typeof du.get=="function"?du.get:null,I1=Os&&Set.prototype.forEach,F1=typeof WeakMap=="function"&&WeakMap.prototype,ni=F1?WeakMap.prototype.has:null,D1=typeof WeakSet=="function"&&WeakSet.prototype,ri=D1?WeakSet.prototype.has:null,z1=typeof WeakRef=="function"&&WeakRef.prototype,Of=z1?WeakRef.prototype.deref:null,M1=Boolean.prototype.valueOf,$1=Object.prototype.toString,U1=Function.prototype.toString,j1=String.prototype.match,Cs=String.prototype.slice,Zt=String.prototype.replace,B1=String.prototype.toUpperCase,Cf=String.prototype.toLowerCase,Ph=RegExp.prototype.test,Tf=Array.prototype.concat,pt=Array.prototype.join,V1=Array.prototype.slice,Af=Math.floor,ma=typeof BigInt=="function"?BigInt.prototype.valueOf:null,pu=Object.getOwnPropertySymbols,va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,gr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===gr||"symbol")?Symbol.toStringTag:null,Oh=Object.prototype.propertyIsEnumerable,Nf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Rf(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ph.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Af(-e):Af(e);if(r!==e){var i=String(r),o=Cs.call(t,i.length+1);return Zt.call(i,n,"$&_")+"."+Zt.call(Zt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Zt.call(t,n,"$&_")}var hu=R1.custom,yu=hu&&Th(hu)?hu:null,H1=function e(t,n,r,i){var o=n||{};if(Jt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Jt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=Jt(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Jt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Jt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Nh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var a=String(t);return u?Rf(t,a):a}if(typeof t=="bigint"){var s=String(t)+"n";return u?Rf(t,s):s}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return ga(t)?"[Array]":"[Object]";var y=aS(o,r);if(typeof i>"u")i=[];else if(Ah(i,t)>=0)return"[Circular]";function m(ye,Ze,$t){if(Ze&&(i=V1.call(i),i.push(Ze)),$t){var He={depth:o.depth};return Jt(o,"quoteStyle")&&(He.quoteStyle=o.quoteStyle),e(ye,He,r+1,i)}return e(ye,o,r+1,i)}if(typeof t=="function"){var w=Z1(t),f=ro(t,m);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(f.length>0?" { "+pt.call(f,", ")+" }":"")}if(Th(t)){var g=gr?Zt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):va.call(t);return typeof t=="object"&&!gr?Ur(g):g}if(oS(t)){for(var O="<"+Cf.call(String(t.nodeName)),h=t.attributes||[],p=0;p",O}if(ga(t)){if(t.length===0)return"[]";var v=ro(t,m);return y&&!uS(v)?"["+Sa(v,y)+"]":"[ "+pt.call(v,", ")+" ]"}if(K1(t)){var E=ro(t,m);return"cause"in t&&!Oh.call(t,"cause")?"{ ["+String(t)+"] "+pt.call(Tf.call("[cause]: "+m(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+pt.call(E,", ")+" }"}if(typeof t=="object"&&l){if(yu&&typeof t[yu]=="function")return t[yu]();if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(eS(t)){var T=[];return L1.call(t,function(ye,Ze){T.push(m(Ze,t,!0)+" => "+m(ye,t))}),Lf("Map",Yo.call(t),T,y)}if(rS(t)){var k=[];return I1.call(t,function(ye){k.push(m(ye,t))}),Lf("Set",bo.call(t),k,y)}if(tS(t))return mu("WeakMap");if(iS(t))return mu("WeakSet");if(nS(t))return mu("WeakRef");if(q1(t))return Ur(m(Number(t)));if(Y1(t))return Ur(m(ma.call(t)));if(X1(t))return Ur(M1.call(t));if(J1(t))return Ur(m(String(t)));if(!Q1(t)&&!G1(t)){var P=ro(t,m),A=Nf?Nf(t)===Object.prototype:t instanceof Object||t.constructor===Object,M=t instanceof Object?"":"null prototype",I=!A&&Oe&&Object(t)===t&&Oe in t?Cs.call(hn(t),8,-1):M?"Object":"",ie=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ee=ie+(I||M?"["+pt.call(Tf.call([],I||[],M||[]),": ")+"] ":"");return P.length===0?ee+"{}":y?ee+"{"+Sa(P,y)+"}":ee+"{ "+pt.call(P,", ")+" }"}return String(t)};function Ch(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function W1(e){return Zt.call(String(e),/"/g,""")}function ga(e){return hn(e)==="[object Array]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function Q1(e){return hn(e)==="[object Date]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function G1(e){return hn(e)==="[object RegExp]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function K1(e){return hn(e)==="[object Error]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function J1(e){return hn(e)==="[object String]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function q1(e){return hn(e)==="[object Number]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function X1(e){return hn(e)==="[object Boolean]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function Th(e){if(gr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!va)return!1;try{return va.call(e),!0}catch{}return!1}function Y1(e){if(!e||typeof e!="object"||!ma)return!1;try{return ma.call(e),!0}catch{}return!1}var b1=Object.prototype.hasOwnProperty||function(e){return e in this};function Jt(e,t){return b1.call(e,t)}function hn(e){return $1.call(e)}function Z1(e){if(e.name)return e.name;var t=j1.call(U1.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ah(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Nh(Cs.call(e,0,t.maxStringLength),t)+r}var i=Zt.call(Zt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lS);return Ch(i,"single",t)}function lS(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+B1.call(t.toString(16))}function Ur(e){return"Object("+e+")"}function mu(e){return e+" { ? }"}function Lf(e,t,n,r){var i=r?Sa(n,r):pt.call(n,", ");return e+" ("+t+") {"+i+"}"}function uS(e){for(var t=0;t=0)return!1;return!0}function aS(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=pt.call(Array(e.indent+1)," ");else return null;return{base:n,prev:pt.call(Array(t+1),n)}}function Sa(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+pt.call(e,","+n)+` +`+t.prev}function ro(e,t){var n=ga(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(_n(r)){for(var i=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===kS.RFC1738&&(s===40||s===41)){u+=l.charAt(a);continue}if(s<128){u=u+ft[s];continue}if(s<2048){u=u+(ft[192|s>>6]+ft[128|s&63]);continue}if(s<55296||s>=57344){u=u+(ft[224|s>>12]+ft[128|s>>6&63]+ft[128|s&63]);continue}a+=1,s=65536+((s&1023)<<10|l.charCodeAt(a)&1023),u+=ft[240|s>>18]+ft[128|s>>12&63]+ft[128|s>>6&63]+ft[128|s&63]}return u},AS=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(v=0)}if(typeof a=="function"?h=a(n,h):h instanceof Date?h=y(h):r==="comma"&&Ct(h)&&(h=ko.maybeMap(h,function(He){return He instanceof Date?y(He):He})),h===null){if(o)return u&&!f?u(n,ke.encoder,g,"key",m):n;h=""}if(MS(h)||ko.isBuffer(h)){if(u){var k=f?n:u(n,ke.encoder,g,"key",m);return[w(k)+"="+w(u(h,ke.encoder,g,"value",m))]}return[w(n)+"="+w(String(h))]}var P=[];if(typeof h>"u")return P;var A;if(r==="comma"&&Ct(h))f&&u&&(h=ko.maybeMap(h,u)),A=[{value:h.length>0?h.join(",")||null:void 0}];else if(Ct(a))A=a;else{var M=Object.keys(h);A=s?M.sort(s):M}for(var I=i&&Ct(h)&&h.length===1?n+"[]":n,ie=0;ie"u"?ke.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ke.charsetSentinel,delimiter:typeof t.delimiter>"u"?ke.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ke.encode,encoder:typeof t.encoder=="function"?t.encoder:ke.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ke.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ke.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ke.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ke.strictNullHandling}},jS=function(e,t){var n=e,r=US(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):Ct(r.filter)&&(o=r.filter,i=o);var l=[];if(typeof n!="object"||n===null)return"";var u;t&&t.arrayFormat in If?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var a=If[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=a==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var d=Ih(),y=0;y0?f+w:""},Sr=Lh,wa=Object.prototype.hasOwnProperty,BS=Array.isArray,fe={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Sr.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},VS=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Dh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},HS="utf8=%26%2310003%3B",WS="utf8=%E2%9C%93",QS=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,l=i.split(n.delimiter,o),u=-1,a,s=n.charset;if(n.charsetSentinel)for(a=0;a-1&&(f=BS(f)?[f]:f),wa.call(r,w)?r[w]=Sr.combine(r[w],f):r[w]=f}return r},GS=function(e,t,n,r){for(var i=r?t:Dh(t,n),o=e.length-1;o>=0;--o){var l,u=e[o];if(u==="[]"&&n.parseArrays)l=[].concat(i);else{l=n.plainObjects?Object.create(null):{};var a=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,s=parseInt(a,10);!n.parseArrays&&a===""?l={0:i}:!isNaN(s)&&u!==a&&String(s)===a&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(l=[],l[s]=i):a!=="__proto__"&&(l[a]=i)}i=l}return i},KS=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,a=r.depth>0&&l.exec(o),s=a?o.slice(0,a.index):o,d=[];if(s){if(!r.plainObjects&&wa.call(Object.prototype,s)&&!r.allowPrototypes)return;d.push(s)}for(var y=0;r.depth>0&&(a=u.exec(o))!==null&&y"u"?fe.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?fe.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:fe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:fe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:fe.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:fe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:fe.comma,decoder:typeof t.decoder=="function"?t.decoder:fe.decoder,delimiter:typeof t.delimiter=="string"||Sr.isRegExp(t.delimiter)?t.delimiter:fe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:fe.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:fe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:fe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:fe.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:fe.strictNullHandling}},qS=function(e,t){var n=JS(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?QS(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),l=0;l
'};n.configure=function(f){var g,O;for(g in f)O=f[g],O!==void 0&&f.hasOwnProperty(g)&&(r[g]=O);return this},n.status=null,n.set=function(f){var g=n.isStarted();f=i(f,r.minimum,1),n.status=f===1?null:f;var O=n.render(!g),h=O.querySelector(r.barSelector),p=r.speed,v=r.easing;return O.offsetWidth,u(function(E){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),a(h,l(f,p,v)),f===1?(a(O,{transition:"none",opacity:1}),O.offsetWidth,setTimeout(function(){a(O,{transition:"all "+p+"ms linear",opacity:0}),setTimeout(function(){n.remove(),E()},p)},p)):setTimeout(E,p)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var f=function(){setTimeout(function(){n.status&&(n.trickle(),f())},r.trickleSpeed)};return r.trickle&&f(),this},n.done=function(f){return!f&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(f){var g=n.status;return g?(typeof f!="number"&&(f=(1-g)*i(Math.random()*g,.1,.95)),g=i(g+f,0,.994),n.set(g)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var f=0,g=0;n.promise=function(O){return!O||O.state()==="resolved"?this:(g===0&&n.start(),f++,g++,O.always(function(){g--,g===0?(f=0,n.done()):n.set((f-g)/f)}),this)}}(),n.render=function(f){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=r.template;var O=g.querySelector(r.barSelector),h=f?"-100":o(n.status||0),p=document.querySelector(r.parent),v;return a(O,{transition:"all 0 linear",transform:"translate3d("+h+"%,0,0)"}),r.showSpinner||(v=g.querySelector(r.spinnerSelector),v&&w(v)),p!=document.body&&d(p,"nprogress-custom-parent"),p.appendChild(g),g},n.remove=function(){y(document.documentElement,"nprogress-busy"),y(document.querySelector(r.parent),"nprogress-custom-parent");var f=document.getElementById("nprogress");f&&w(f)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var f=document.body.style,g="WebkitTransform"in f?"Webkit":"MozTransform"in f?"Moz":"msTransform"in f?"ms":"OTransform"in f?"O":"";return g+"Perspective"in f?"translate3d":g+"Transform"in f?"translate":"margin"};function i(f,g,O){return fO?O:f}function o(f){return(-1+f)*100}function l(f,g,O){var h;return r.positionUsing==="translate3d"?h={transform:"translate3d("+o(f)+"%,0,0)"}:r.positionUsing==="translate"?h={transform:"translate("+o(f)+"%,0)"}:h={"margin-left":o(f)+"%"},h.transition="all "+g+"ms "+O,h}var u=function(){var f=[];function g(){var O=f.shift();O&&O(g)}return function(O){f.push(O),f.length==1&&g()}}(),a=function(){var f=["Webkit","O","Moz","ms"],g={};function O(E){return E.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,k){return k.toUpperCase()})}function h(E){var T=document.body.style;if(E in T)return E;for(var k=f.length,P=E.charAt(0).toUpperCase()+E.slice(1),A;k--;)if(A=f[k]+P,A in T)return A;return E}function p(E){return E=O(E),g[E]||(g[E]=h(E))}function v(E,T,k){T=p(T),E.style[T]=k}return function(E,T){var k=arguments,P,A;if(k.length==2)for(P in T)A=T[P],A!==void 0&&T.hasOwnProperty(P)&&v(E,P,A);else v(E,k[1],k[2])}}();function s(f,g){var O=typeof f=="string"?f:m(f);return O.indexOf(" "+g+" ")>=0}function d(f,g){var O=m(f),h=O+g;s(O,g)||(f.className=h.substring(1))}function y(f,g){var O=m(f),h;s(f,g)&&(h=O.replace(" "+g+" "," "),f.className=h.substring(1,h.length-1))}function m(f){return(" "+(f.className||"")+" ").replace(/\s+/gi," ")}function w(f){f&&f.parentNode&&f.parentNode.removeChild(f)}return n})})(zh);var ZS=zh.exports;const yt=el(ZS);function Mh(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function Mt(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var ew=e=>Mt("before",{cancelable:!0,detail:{visit:e}}),tw=e=>Mt("error",{detail:{errors:e}}),nw=e=>Mt("exception",{cancelable:!0,detail:{exception:e}}),zf=e=>Mt("finish",{detail:{visit:e}}),rw=e=>Mt("invalid",{cancelable:!0,detail:{response:e}}),jr=e=>Mt("navigate",{detail:{page:e}}),iw=e=>Mt("progress",{detail:{progress:e}}),ow=e=>Mt("start",{detail:{visit:e}}),lw=e=>Mt("success",{detail:{page:e}});function Ea(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some(t=>Ea(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>Ea(t))}function $h(e,t=new FormData,n=null){e=e||{};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&jh(t,Uh(n,r),e[r]);return t}function Uh(e,t){return e?e+"["+t+"]":t}function jh(e,t,n){if(Array.isArray(n))return Array.from(n.keys()).forEach(r=>jh(e,Uh(t,r.toString()),n[r]));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n=="boolean")return e.append(t,n?"1":"0");if(typeof n=="string")return e.append(t,n);if(typeof n=="number")return e.append(t,`${n}`);if(n==null)return e.append(t,"");$h(n,e,t)}var uw={modal:null,listener:null,show(e){typeof e=="object"&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(e)}`);let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(r=>r.setAttribute("target","_top")),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide());let n=document.createElement("iframe");if(n.style.backgroundColor="white",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",this.modal.appendChild(n),document.body.prepend(this.modal),document.body.style.overflow="hidden",!n.contentWindow)throw new Error("iframe not yet ready.");n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(e){e.keyCode===27&&this.hide()}};function Bn(e){return new URL(e.toString(),window.location.toString())}function Bh(e,t,n,r="brackets"){let i=/^https?:\/\//.test(t.toString()),o=i||t.toString().startsWith("/"),l=!o&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),u=t.toString().includes("?")||e==="get"&&Object.keys(n).length,a=t.toString().includes("#"),s=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(n).length&&(s.search=Df.stringify(l1(Df.parse(s.search,{ignoreQueryPrefix:!0}),n),{encodeValuesOnly:!0,arrayFormat:r}),n={}),[[i?`${s.protocol}//${s.host}`:"",o?s.pathname:"",l?s.pathname.substring(1):"",u?s.search:"",a?s.hash:""].join(""),n]}function Br(e){return e=new URL(e.href),e.hash="",e}var Mf=typeof window>"u",aw=class{constructor(){this.visitId=null}init({initialPage:e,resolveComponent:t,swapComponent:n}){this.page=e,this.resolveComponent=t,this.swapComponent=n,this.setNavigationType(),this.clearRememberedStateOnReload(),this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()}setNavigationType(){this.navigationType=window.performance&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}clearRememberedStateOnReload(){var e;this.navigationType==="reload"&&((e=window.history.state)!=null&&e.rememberedState)&&delete window.history.state.rememberedState}handleInitialPageVisit(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(()=>jr(e))}setupEventListeners(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",Mh(this.handleScrollEvent.bind(this),100),!0)}scrollRegions(){return document.querySelectorAll("[scroll-region]")}handleScrollEvent(e){typeof e.target.hasAttribute=="function"&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()}saveScrollPositions(){this.replaceState({...this.page,scrollRegions:Array.from(this.scrollRegions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))})}resetScrollPositions(){window.scrollTo(0,0),this.scrollRegions().forEach(e=>{typeof e.scrollTo=="function"?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.saveScrollPositions(),window.location.hash&&setTimeout(()=>{var e;return(e=document.getElementById(window.location.hash.slice(1)))==null?void 0:e.scrollIntoView()})}restoreScrollPositions(){this.page.scrollRegions&&this.scrollRegions().forEach((e,t)=>{let n=this.page.scrollRegions[t];if(n)typeof e.scrollTo=="function"?e.scrollTo(n.left,n.top):(e.scrollTop=n.top,e.scrollLeft=n.left);else return})}isBackForwardVisit(){return window.history.state&&this.navigationType==="back_forward"}handleBackForwardVisit(e){window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(()=>{this.restoreScrollPositions(),jr(e)})}locationVisit(e,t){try{let n={preserveScroll:t};window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify(n)),window.location.href=e.href,Br(window.location).href===Br(e).href&&window.location.reload()}catch{return!1}}isLocationVisit(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}}handleLocationVisit(e){var n,r;let t=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=((n=window.history.state)==null?void 0:n.rememberedState)??{},e.scrollRegions=((r=window.history.state)==null?void 0:r.scrollRegions)??[],this.setPage(e,{preserveScroll:t.preserveScroll,preserveState:!0}).then(()=>{t.preserveScroll&&this.restoreScrollPositions(),jr(e)})}isLocationVisitResponse(e){return!!(e&&e.status===409&&e.headers["x-inertia-location"])}isInertiaResponse(e){return!!(e!=null&&e.headers["x-inertia"])}createVisitId(){return this.visitId={},this.visitId}cancelVisit(e,{cancelled:t=!1,interrupted:n=!1}){e&&!e.completed&&!e.cancelled&&!e.interrupted&&(e.cancelToken.abort(),e.onCancel(),e.completed=!1,e.cancelled=t,e.interrupted=n,zf(e),e.onFinish(e))}finishVisit(e){!e.cancelled&&!e.interrupted&&(e.completed=!0,e.cancelled=!1,e.interrupted=!1,zf(e),e.onFinish(e))}resolvePreserveOption(e,t){return typeof e=="function"?e(t):e==="errors"?Object.keys(t.props.errors||{}).length>0:e}cancel(){this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}visit(e,{method:t="get",data:n={},replace:r=!1,preserveScroll:i=!1,preserveState:o=!1,only:l=[],headers:u={},errorBag:a="",forceFormData:s=!1,onCancelToken:d=()=>{},onBefore:y=()=>{},onStart:m=()=>{},onProgress:w=()=>{},onFinish:f=()=>{},onCancel:g=()=>{},onSuccess:O=()=>{},onError:h=()=>{},queryStringArrayFormat:p="brackets"}={}){let v=typeof e=="string"?Bn(e):e;if((Ea(n)||s)&&!(n instanceof FormData)&&(n=$h(n)),!(n instanceof FormData)){let[k,P]=Bh(t,v,n,p);v=Bn(k),n=P}let E={url:v,method:t,data:n,replace:r,preserveScroll:i,preserveState:o,only:l,headers:u,errorBag:a,forceFormData:s,queryStringArrayFormat:p,cancelled:!1,completed:!1,interrupted:!1};if(y(E)===!1||!ew(E))return;this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();let T=this.createVisitId();this.activeVisit={...E,onCancelToken:d,onBefore:y,onStart:m,onProgress:w,onFinish:f,onCancel:g,onSuccess:O,onError:h,queryStringArrayFormat:p,cancelToken:new AbortController},d({cancel:()=>{this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}}),ow(E),m(E),Ef({method:t,url:Br(v).href,data:t==="get"?{}:n,params:t==="get"?n:{},signal:this.activeVisit.cancelToken.signal,headers:{...u,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,...l.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":l.join(",")}:{},...a&&a.length?{"X-Inertia-Error-Bag":a}:{},...this.page.version?{"X-Inertia-Version":this.page.version}:{}},onUploadProgress:k=>{n instanceof FormData&&(k.percentage=k.progress?Math.round(k.progress*100):0,iw(k),w(k))}}).then(k=>{var I;if(!this.isInertiaResponse(k))return Promise.reject({response:k});let P=k.data;l.length&&P.component===this.page.component&&(P.props={...this.page.props,...P.props}),i=this.resolvePreserveOption(i,P),o=this.resolvePreserveOption(o,P),o&&((I=window.history.state)!=null&&I.rememberedState)&&P.component===this.page.component&&(P.rememberedState=window.history.state.rememberedState);let A=v,M=Bn(P.url);return A.hash&&!M.hash&&Br(A).href===M.href&&(M.hash=A.hash,P.url=M.href),this.setPage(P,{visitId:T,replace:r,preserveScroll:i,preserveState:o})}).then(()=>{let k=this.page.props.errors||{};if(Object.keys(k).length>0){let P=a?k[a]?k[a]:{}:k;return tw(P),h(P)}return lw(this.page),O(this.page)}).catch(k=>{if(this.isInertiaResponse(k.response))return this.setPage(k.response.data,{visitId:T});if(this.isLocationVisitResponse(k.response)){let P=Bn(k.response.headers["x-inertia-location"]),A=v;A.hash&&!P.hash&&Br(A).href===P.href&&(P.hash=A.hash),this.locationVisit(P,i===!0)}else if(k.response)rw(k.response)&&uw.show(k.response.data);else return Promise.reject(k)}).then(()=>{this.activeVisit&&this.finishVisit(this.activeVisit)}).catch(k=>{if(!Ef.isCancel(k)){let P=nw(k);if(this.activeVisit&&this.finishVisit(this.activeVisit),P)return Promise.reject(k)}})}setPage(e,{visitId:t=this.createVisitId(),replace:n=!1,preserveScroll:r=!1,preserveState:i=!1}={}){return Promise.resolve(this.resolveComponent(e.component)).then(o=>{t===this.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},n=n||Bn(e.url).href===window.location.href,n?this.replaceState(e):this.pushState(e),this.swapComponent({component:o,page:e,preserveState:i}).then(()=>{r||this.resetScrollPositions(),n||jr(e)}))})}pushState(e){this.page=e,window.history.pushState(e,"",e.url)}replaceState(e){this.page=e,window.history.replaceState(e,"",e.url)}handlePopstateEvent(e){if(e.state!==null){let t=e.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(t.component)).then(r=>{n===this.visitId&&(this.page=t,this.swapComponent({component:r,page:t,preserveState:!1}).then(()=>{this.restoreScrollPositions(),jr(t)}))})}else{let t=Bn(this.page.url);t.hash=window.location.hash,this.replaceState({...this.page,url:t.href}),this.resetScrollPositions()}}get(e,t={},n={}){return this.visit(e,{...n,method:"get",data:t})}reload(e={}){return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0})}replace(e,t={}){return console.warn(`Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia.${t.method??"get"}() instead.`),this.visit(e,{preserveState:!0,...t,replace:!0})}post(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"post",data:t})}put(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"put",data:t})}patch(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}remember(e,t="default"){var n;Mf||this.replaceState({...this.page,rememberedState:{...(n=this.page)==null?void 0:n.rememberedState,[t]:e}})}restore(e="default"){var t,n;if(!Mf)return(n=(t=window.history.state)==null?void 0:t.rememberedState)==null?void 0:n[e]}on(e,t){let n=r=>{let i=t(r);r.cancelable&&!r.defaultPrevented&&i===!1&&r.preventDefault()};return document.addEventListener(`inertia:${e}`,n),()=>document.removeEventListener(`inertia:${e}`,n)}},sw={buildDOMElement(e){let t=document.createElement("template");t.innerHTML=e;let n=t.content.firstChild;if(!e.startsWith("