@platecms/delta-smart-text 0.4.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +7 -0
- package/__generated__/fragment-masking.ts +87 -0
- package/__generated__/gql.ts +238 -0
- package/__generated__/graphql.ts +3441 -0
- package/__generated__/index.ts +2 -0
- package/codegen.config.ts +24 -0
- package/eslint.config.mjs +43 -0
- package/i18n.js +28 -0
- package/package.json +5 -5
- package/project.json +54 -0
- package/src/components/DeltaSlateEditor.vue +74 -0
- package/src/components/icon/FontAwesomeIcon.vue +21 -0
- package/src/graphql/apiTokens/apiTokens.fragments.gql +8 -0
- package/src/graphql/assets/assets.fragments.gql +10 -0
- package/src/graphql/blueprints/blueprints.fragments.gql +52 -0
- package/src/graphql/buildingBlockFieldFulfillments/buildingBlockFieldFullfillment.fragements.gql +6 -0
- package/src/graphql/buildingBlockFields/buildingBlockField.fragments.gql +8 -0
- package/src/graphql/buildingBlocks/buildingBlocks.fragments.gql +11 -0
- package/src/graphql/channels/channels.fragments.gql +9 -0
- package/src/graphql/contentExperiences/allContentExperiences.query.gql +24 -0
- package/src/graphql/contentExperiences/contentExperience.query.gql +20 -0
- package/src/graphql/contentExperiences/contentExperiences.fragments.gql +14 -0
- package/src/graphql/contentFields/contentFields.fragments.gql +7 -0
- package/src/graphql/contentItems/allContentItems.query.gql +48 -0
- package/src/graphql/contentItems/contentItems.fragments.gql +11 -0
- package/src/graphql/contentTypes/allContentTypes.query.gql +26 -0
- package/src/graphql/contentTypes/contentTypes.fragments.gql +11 -0
- package/src/graphql/contentValidations/contentValidationRule.fragments.gql +34 -0
- package/src/graphql/contentValues/allContentValues.query.gql +41 -0
- package/src/graphql/contentValues/contentValues.fragments.gql +9 -0
- package/src/graphql/contentValues/createContentValue.mutation.gql +17 -0
- package/src/graphql/experienceComponents/experienceComponent.fragments.gql +13 -0
- package/src/graphql/fragments.gql +6 -0
- package/src/graphql/gridDefinition/gridDefinition.fragments.gql +5 -0
- package/src/graphql/gridPlacements/gridPlacement.fragments.gql +7 -0
- package/src/graphql/grids/grid.fragments.gql +7 -0
- package/src/graphql/invitations/invitations.fragments.gql +7 -0
- package/src/graphql/organizations/organizations.fragments.gql +13 -0
- package/src/graphql/pathParts/pathParts.fragments.gql +19 -0
- package/src/graphql/plateMaintainers/plateMaintainer.fragements.gql +10 -0
- package/src/graphql/roleAssignments/roleAssignment.fragments.gql +9 -0
- package/src/graphql/roles/roles.fragments.gql +7 -0
- package/src/graphql/subject/subject.fragments.gql +8 -0
- package/src/graphql/tags/tags.fragments.gql +17 -0
- package/src/graphql/themes/themes.fragments.gql +8 -0
- package/src/index.css +1 -0
- package/src/index.ts +21 -0
- package/src/locales/en.json +52 -0
- package/src/locales/nl.json +52 -0
- package/src/react/components/DeltaSlateEditor.tsx +243 -0
- package/src/react/components/DeltaSlateEditorConnector.tsx +50 -0
- package/src/react/components/Element.spec.tsx +244 -0
- package/src/react/components/Element.tsx +151 -0
- package/src/react/components/FontAwesomeIcon.tsx +17 -0
- package/src/react/components/Leaf.spec.tsx +61 -0
- package/src/react/components/Leaf.tsx +22 -0
- package/src/react/components/elements/CodeElement.tsx +16 -0
- package/src/react/components/elements/ContentValueElement.tsx +33 -0
- package/src/react/components/elements/LinkElement.tsx +44 -0
- package/src/react/components/inputs/SearchInput.tsx +22 -0
- package/src/react/components/inputs/TextInput.tsx +30 -0
- package/src/react/components/menus/ContentAndFormatMenu.tsx +272 -0
- package/src/react/components/menus/ContentLibraryMenu.tsx +48 -0
- package/src/react/components/menus/ReusableContentMenu.tsx +190 -0
- package/src/react/components/menus/content/ContentItemsMenu.tsx +215 -0
- package/src/react/components/menus/content/ContentTypesMenu.tsx +129 -0
- package/src/react/components/menus/content/partials/ContentFieldMenuItem.tsx +11 -0
- package/src/react/components/menus/content/partials/ContentValueMenuItem.tsx +58 -0
- package/src/react/components/menus/link/AnchorInput.tsx +123 -0
- package/src/react/components/menus/link/LinkInput.tsx +195 -0
- package/src/react/components/menus/link/LinkMenu.spec.tsx +145 -0
- package/src/react/components/menus/link/LinkMenu.tsx +289 -0
- package/src/react/components/menus/partials/MenuButton.tsx +52 -0
- package/src/react/components/menus/partials/MenuContainer.tsx +9 -0
- package/src/react/components/menus/partials/MenuHeader.tsx +11 -0
- package/src/react/components/toolbar/Toolbar.tsx +249 -0
- package/src/react/components/toolbar/ToolbarBlockButton.tsx +31 -0
- package/src/react/components/toolbar/ToolbarHeadingDropdownButton.tsx +76 -0
- package/src/react/components/toolbar/ToolbarLinkButton.tsx +33 -0
- package/src/react/components/toolbar/ToolbarMarkButton.tsx +25 -0
- package/src/react/components/toolbar/content/ContentExtractToolbarButton.tsx +68 -0
- package/src/react/components/toolbar/content/ContentLibraryToolbarButton.tsx +43 -0
- package/src/react/components/toolbar/content/ContentToolbar.tsx +37 -0
- package/src/react/components/toolbar/link/ToolbarDisplayLink.tsx +36 -0
- package/src/react/components/toolbar/link/UnlinkButton.tsx +25 -0
- package/src/react/config/hotkeys.ts +8 -0
- package/src/react/plugins/index.ts +59 -0
- package/src/react/store/editorSlice.ts +124 -0
- package/src/react/store/store.ts +12 -0
- package/src/react/types.ts +87 -0
- package/src/react/utils/decorator.ts +61 -0
- package/src/react/utils/index.ts +110 -0
- package/src/vue-shims.d.ts +5 -0
- package/tsconfig.json +26 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.spec.json +22 -0
- package/vite.config.ts +67 -0
- package/components/DeltaSlateEditor.vue.d.ts +0 -26
- package/index.cjs +0 -381
- package/index.css +0 -1
- package/index.d.ts +0 -12
- package/index.js +0 -49254
- package/react/components/DeltaSlateEditor.d.ts +0 -7
- package/react/components/DeltaSlateEditorConnector.d.ts +0 -12
- package/react/components/Element.d.ts +0 -8
- package/react/components/FontAwesomeIcon.d.ts +0 -6
- package/react/components/Leaf.d.ts +0 -3
- package/react/components/elements/CodeElement.d.ts +0 -8
- package/react/components/elements/ContentValueElement.d.ts +0 -8
- package/react/components/elements/LinkElement.d.ts +0 -8
- package/react/components/inputs/SearchInput.d.ts +0 -5
- package/react/components/inputs/TextInput.d.ts +0 -7
- package/react/components/menus/ContentAndFormatMenu.d.ts +0 -10
- package/react/components/menus/ContentLibraryMenu.d.ts +0 -4
- package/react/components/menus/ReusableContentMenu.d.ts +0 -3
- package/react/components/menus/content/ContentItemsMenu.d.ts +0 -5
- package/react/components/menus/content/ContentTypesMenu.d.ts +0 -6
- package/react/components/menus/content/partials/ContentFieldMenuItem.d.ts +0 -6
- package/react/components/menus/content/partials/ContentValueMenuItem.d.ts +0 -7
- package/react/components/menus/link/AnchorInput.d.ts +0 -8
- package/react/components/menus/link/LinkInput.d.ts +0 -11
- package/react/components/menus/link/LinkMenu.d.ts +0 -18
- package/react/components/menus/partials/MenuButton.d.ts +0 -7
- package/react/components/menus/partials/MenuContainer.d.ts +0 -4
- package/react/components/menus/partials/MenuHeader.d.ts +0 -5
- package/react/components/toolbar/Toolbar.d.ts +0 -6
- package/react/components/toolbar/ToolbarBlockButton.d.ts +0 -12
- package/react/components/toolbar/ToolbarHeadingDropdownButton.d.ts +0 -2
- package/react/components/toolbar/ToolbarLinkButton.d.ts +0 -6
- package/react/components/toolbar/ToolbarMarkButton.d.ts +0 -6
- package/react/components/toolbar/content/ContentExtractToolbarButton.d.ts +0 -2
- package/react/components/toolbar/content/ContentLibraryToolbarButton.d.ts +0 -5
- package/react/components/toolbar/content/ContentToolbar.d.ts +0 -4
- package/react/components/toolbar/link/ToolbarDisplayLink.d.ts +0 -2
- package/react/components/toolbar/link/UnlinkButton.d.ts +0 -2
- package/react/config/hotkeys.d.ts +0 -2
- package/react/plugins/index.d.ts +0 -3
- package/react/store/editorSlice.d.ts +0 -169
- package/react/store/store.d.ts +0 -5
- package/react/types.d.ts +0 -65
- package/react/utils/decorator.d.ts +0 -15
- package/react/utils/index.d.ts +0 -17
package/index.cjs
DELETED
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r0=require("vue"),Z=require("react"),FC=require("react-dom");function mR(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>a[r]})}}return t.default=a,Object.freeze(t)}function vR(a,t){for(var r=0;r<t.length;r++){const u=t[r];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in a)){const h=Object.getOwnPropertyDescriptor(u,s);h&&Object.defineProperty(a,s,h.get?h:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const Uo=mR(Z);var qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xm(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var z1={exports:{}},vb={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var iA;function gR(){if(iA)return vb;iA=1;var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(u,s,h){var g=null;if(h!==void 0&&(g=""+h),s.key!==void 0&&(g=""+s.key),"key"in s){h={};for(var y in s)y!=="key"&&(h[y]=s[y])}else h=s;return s=h.ref,{$$typeof:a,type:u,key:g,ref:s!==void 0?s:null,props:h}}return vb.Fragment=t,vb.jsx=r,vb.jsxs=r,vb}var gb={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var uA;function yR(){return uA||(uA=1,process.env.NODE_ENV!=="production"&&function(){function a(fe){if(fe==null)return null;if(typeof fe=="function")return fe.$$typeof===De?null:fe.displayName||fe.name||null;if(typeof fe=="string")return fe;switch(fe){case V:return"Fragment";case M:return"Profiler";case L:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList";case J:return"Activity"}if(typeof fe=="object")switch(typeof fe.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),fe.$$typeof){case z:return"Portal";case B:return(fe.displayName||"Context")+".Provider";case x:return(fe._context.displayName||"Context")+".Consumer";case H:var Re=fe.render;return fe=fe.displayName,fe||(fe=Re.displayName||Re.name||"",fe=fe!==""?"ForwardRef("+fe+")":"ForwardRef"),fe;case X:return Re=fe.displayName||null,Re!==null?Re:a(fe.type)||"Memo";case ee:Re=fe._payload,fe=fe._init;try{return a(fe(Re))}catch{}}return null}function t(fe){return""+fe}function r(fe){try{t(fe);var Re=!1}catch{Re=!0}if(Re){Re=console;var Le=Re.error,he=typeof Symbol=="function"&&Symbol.toStringTag&&fe[Symbol.toStringTag]||fe.constructor.name||"Object";return Le.call(Re,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",he),t(fe)}}function u(fe){if(fe===V)return"<>";if(typeof fe=="object"&&fe!==null&&fe.$$typeof===ee)return"<...>";try{var Re=a(fe);return Re?"<"+Re+">":"<...>"}catch{return"<...>"}}function s(){var fe=ke.A;return fe===null?null:fe.getOwner()}function h(){return Error("react-stack-top-frame")}function g(fe){if(ye.call(fe,"key")){var Re=Object.getOwnPropertyDescriptor(fe,"key").get;if(Re&&Re.isReactWarning)return!1}return fe.key!==void 0}function y(fe,Re){function Le(){ze||(ze=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Re))}Le.isReactWarning=!0,Object.defineProperty(fe,"key",{get:Le,configurable:!0})}function E(){var fe=a(this.type);return K[fe]||(K[fe]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),fe=this.props.ref,fe!==void 0?fe:null}function C(fe,Re,Le,he,nt,bt,rt,_n){return Le=bt.ref,fe={$$typeof:R,type:fe,key:Re,props:bt,_owner:nt},(Le!==void 0?Le:null)!==null?Object.defineProperty(fe,"ref",{enumerable:!1,get:E}):Object.defineProperty(fe,"ref",{enumerable:!1,value:null}),fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(fe,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(fe,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.defineProperty(fe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_n}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe}function A(fe,Re,Le,he,nt,bt,rt,_n){var Ft=Re.children;if(Ft!==void 0)if(he)if(be(Ft)){for(he=0;he<Ft.length;he++)T(Ft[he]);Object.freeze&&Object.freeze(Ft)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(Ft);if(ye.call(Re,"key")){Ft=a(fe);var oe=Object.keys(Re).filter(function(Ne){return Ne!=="key"});he=0<oe.length?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}",Ve[Ft+he]||(oe=0<oe.length?"{"+oe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
-
let props = %s;
|
|
19
|
-
<%s {...props} />
|
|
20
|
-
React keys must be passed directly to JSX without using spread:
|
|
21
|
-
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,he,Ft,oe,Ft),Ve[Ft+he]=!0)}if(Ft=null,Le!==void 0&&(r(Le),Ft=""+Le),g(Re)&&(r(Re.key),Ft=""+Re.key),"key"in Re){Le={};for(var Qe in Re)Qe!=="key"&&(Le[Qe]=Re[Qe])}else Le=Re;return Ft&&y(Le,typeof fe=="function"?fe.displayName||fe.name||"Unknown":fe),C(fe,Ft,bt,nt,s(),Le,rt,_n)}function T(fe){typeof fe=="object"&&fe!==null&&fe.$$typeof===R&&fe._store&&(fe._store.validated=1)}var N=Z,R=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),De=Symbol.for("react.client.reference"),ke=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=Object.prototype.hasOwnProperty,be=Array.isArray,Ee=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(fe){return fe()}};var ze,K={},ue=N.react_stack_bottom_frame.bind(N,h)(),pe=Ee(u(h)),Ve={};gb.Fragment=V,gb.jsx=function(fe,Re,Le,he,nt){var bt=1e4>ke.recentlyCreatedOwnerStacks++;return A(fe,Re,Le,!1,he,nt,bt?Error("react-stack-top-frame"):ue,bt?Ee(u(fe)):pe)},gb.jsxs=function(fe,Re,Le,he,nt){var bt=1e4>ke.recentlyCreatedOwnerStacks++;return A(fe,Re,Le,!0,he,nt,bt?Error("react-stack-top-frame"):ue,bt?Ee(u(fe)):pe)}}()),gb}var lA;function bR(){return lA||(lA=1,process.env.NODE_ENV==="production"?z1.exports=gR():z1.exports=yR()),z1.exports}var I=bR(),xk=Symbol.for("immer-nothing"),oA=Symbol.for("immer-draftable"),Vo=Symbol.for("immer-state"),SR=process.env.NODE_ENV!=="production"?[function(a){return`The plugin for '${a}' has not been loaded into Immer. To enable the plugin, import and call \`enable${a}()\` when initializing your application.`},function(a){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${a}'`},"This object has been frozen and should not be mutated",function(a){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+a},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(a){return`'current' expects a draft, got: ${a}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(a){return`'original' expects a draft, got: ${a}`}]:[];function ao(a,...t){if(process.env.NODE_ENV!=="production"){const r=SR[a],u=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${u}`)}throw new Error(`[Immer] minified error nr: ${a}. Full error at: https://bit.ly/3cXEKWf`)}var b0=Object.getPrototypeOf;function Gg(a){return!!a&&!!a[Vo]}function Qh(a){return a?Ak(a)||Array.isArray(a)||!!a[oA]||!!a.constructor?.[oA]||zS(a)||jS(a):!1}var DR=Object.prototype.constructor.toString();function Ak(a){if(!a||typeof a!="object")return!1;const t=b0(a);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===DR}function mS(a,t){MS(a)===0?Reflect.ownKeys(a).forEach(r=>{t(r,a[r],a)}):a.forEach((r,u)=>t(u,r,a))}function MS(a){const t=a[Vo];return t?t.type_:Array.isArray(a)?1:zS(a)?2:jS(a)?3:0}function WE(a,t){return MS(a)===2?a.has(t):Object.prototype.hasOwnProperty.call(a,t)}function Ok(a,t,r){const u=MS(a);u===2?a.set(t,r):u===3?a.add(r):a[t]=r}function ER(a,t){return a===t?a!==0||1/a===1/t:a!==a&&t!==t}function zS(a){return a instanceof Map}function jS(a){return a instanceof Set}function _g(a){return a.copy_||a.base_}function JE(a,t){if(zS(a))return new Map(a);if(jS(a))return new Set(a);if(Array.isArray(a))return Array.prototype.slice.call(a);const r=Ak(a);if(t===!0||t==="class_only"&&!r){const u=Object.getOwnPropertyDescriptors(a);delete u[Vo];let s=Reflect.ownKeys(u);for(let h=0;h<s.length;h++){const g=s[h],y=u[g];y.writable===!1&&(y.writable=!0,y.configurable=!0),(y.get||y.set)&&(u[g]={configurable:!0,writable:!0,enumerable:y.enumerable,value:a[g]})}return Object.create(b0(a),u)}else{const u=b0(a);if(u!==null&&r)return{...a};const s=Object.create(u);return Object.assign(s,a)}}function MC(a,t=!1){return LS(a)||Gg(a)||!Qh(a)||(MS(a)>1&&(a.set=a.add=a.clear=a.delete=CR),Object.freeze(a),t&&Object.entries(a).forEach(([r,u])=>MC(u,!0))),a}function CR(){ao(2)}function LS(a){return Object.isFrozen(a)}var wR={};function Yg(a){const t=wR[a];return t||ao(0,a),t}var _b;function Tk(){return _b}function xR(a,t){return{drafts_:[],parent_:a,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sA(a,t){t&&(Yg("Patches"),a.patches_=[],a.inversePatches_=[],a.patchListener_=t)}function eC(a){tC(a),a.drafts_.forEach(AR),a.drafts_=null}function tC(a){a===_b&&(_b=a.parent_)}function cA(a){return _b=xR(_b,a)}function AR(a){const t=a[Vo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fA(a,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return a!==void 0&&a!==r?(r[Vo].modified_&&(eC(t),ao(4)),Qh(a)&&(a=vS(t,a),t.parent_||gS(t,a)),t.patches_&&Yg("Patches").generateReplacementPatches_(r[Vo].base_,a,t.patches_,t.inversePatches_)):a=vS(t,r,[]),eC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),a!==xk?a:void 0}function vS(a,t,r){if(LS(t))return t;const u=t[Vo];if(!u)return mS(t,(s,h)=>dA(a,u,t,s,h,r)),t;if(u.scope_!==a)return t;if(!u.modified_)return gS(a,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const s=u.copy_;let h=s,g=!1;u.type_===3&&(h=new Set(s),s.clear(),g=!0),mS(h,(y,E)=>dA(a,u,s,y,E,r,g)),gS(a,s,!1),r&&a.patches_&&Yg("Patches").generatePatches_(u,r,a.patches_,a.inversePatches_)}return u.copy_}function dA(a,t,r,u,s,h,g){if(process.env.NODE_ENV!=="production"&&s===r&&ao(5),Gg(s)){const y=h&&t&&t.type_!==3&&!WE(t.assigned_,u)?h.concat(u):void 0,E=vS(a,s,y);if(Ok(r,u,E),Gg(E))a.canAutoFreeze_=!1;else return}else g&&r.add(s);if(Qh(s)&&!LS(s)){if(!a.immer_.autoFreeze_&&a.unfinalizedDrafts_<1)return;vS(a,s),(!t||!t.scope_.parent_)&&typeof u!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,u)&&gS(a,s)}}function gS(a,t,r=!1){!a.parent_&&a.immer_.autoFreeze_&&a.canAutoFreeze_&&MC(t,r)}function OR(a,t){const r=Array.isArray(a),u={type_:r?1:0,scope_:t?t.scope_:Tk(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:a,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=u,h=zC;r&&(s=[u],h=Fb);const{revoke:g,proxy:y}=Proxy.revocable(s,h);return u.draft_=y,u.revoke_=g,y}var zC={get(a,t){if(t===Vo)return a;const r=_g(a);if(!WE(r,t))return TR(a,r,t);const u=r[t];return a.finalized_||!Qh(u)?u:u===uE(a.base_,t)?(lE(a),a.copy_[t]=aC(u,a)):u},has(a,t){return t in _g(a)},ownKeys(a){return Reflect.ownKeys(_g(a))},set(a,t,r){const u=kk(_g(a),t);if(u?.set)return u.set.call(a.draft_,r),!0;if(!a.modified_){const s=uE(_g(a),t),h=s?.[Vo];if(h&&h.base_===r)return a.copy_[t]=r,a.assigned_[t]=!1,!0;if(ER(r,s)&&(r!==void 0||WE(a.base_,t)))return!0;lE(a),nC(a)}return a.copy_[t]===r&&(r!==void 0||t in a.copy_)||Number.isNaN(r)&&Number.isNaN(a.copy_[t])||(a.copy_[t]=r,a.assigned_[t]=!0),!0},deleteProperty(a,t){return uE(a.base_,t)!==void 0||t in a.base_?(a.assigned_[t]=!1,lE(a),nC(a)):delete a.assigned_[t],a.copy_&&delete a.copy_[t],!0},getOwnPropertyDescriptor(a,t){const r=_g(a),u=Reflect.getOwnPropertyDescriptor(r,t);return u&&{writable:!0,configurable:a.type_!==1||t!=="length",enumerable:u.enumerable,value:r[t]}},defineProperty(){ao(11)},getPrototypeOf(a){return b0(a.base_)},setPrototypeOf(){ao(12)}},Fb={};mS(zC,(a,t)=>{Fb[a]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fb.deleteProperty=function(a,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ao(13),Fb.set.call(this,a,t,void 0)};Fb.set=function(a,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ao(14),zC.set.call(this,a[0],t,r,a[0])};function uE(a,t){const r=a[Vo];return(r?_g(r):a)[t]}function TR(a,t,r){const u=kk(t,r);return u?"value"in u?u.value:u.get?.call(a.draft_):void 0}function kk(a,t){if(!(t in a))return;let r=b0(a);for(;r;){const u=Object.getOwnPropertyDescriptor(r,t);if(u)return u;r=b0(r)}}function nC(a){a.modified_||(a.modified_=!0,a.parent_&&nC(a.parent_))}function lE(a){a.copy_||(a.copy_=JE(a.base_,a.scope_.immer_.useStrictShallowCopy_))}var kR=class{constructor(a){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,u)=>{if(typeof t=="function"&&typeof r!="function"){const h=r;r=t;const g=this;return function(E=h,...C){return g.produce(E,A=>r.call(this,A,...C))}}typeof r!="function"&&ao(6),u!==void 0&&typeof u!="function"&&ao(7);let s;if(Qh(t)){const h=cA(this),g=aC(t,void 0);let y=!0;try{s=r(g),y=!1}finally{y?eC(h):tC(h)}return sA(h,u),fA(s,h)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===xk&&(s=void 0),this.autoFreeze_&&MC(s,!0),u){const h=[],g=[];Yg("Patches").generateReplacementPatches_(t,s,h,g),u(h,g)}return s}else ao(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(g,...y)=>this.produceWithPatches(g,E=>t(E,...y));let u,s;return[this.produce(t,r,(g,y)=>{u=g,s=y}),u,s]},typeof a?.autoFreeze=="boolean"&&this.setAutoFreeze(a.autoFreeze),typeof a?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(a.useStrictShallowCopy)}createDraft(a){Qh(a)||ao(8),Gg(a)&&(a=NR(a));const t=cA(this),r=aC(a,void 0);return r[Vo].isManual_=!0,tC(t),r}finishDraft(a,t){const r=a&&a[Vo];(!r||!r.isManual_)&&ao(9);const{scope_:u}=r;return sA(u,t),fA(void 0,u)}setAutoFreeze(a){this.autoFreeze_=a}setUseStrictShallowCopy(a){this.useStrictShallowCopy_=a}applyPatches(a,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){a=s.value;break}}r>-1&&(t=t.slice(r+1));const u=Yg("Patches").applyPatches_;return Gg(a)?u(a,t):this.produce(a,s=>u(s,t))}};function aC(a,t){const r=zS(a)?Yg("MapSet").proxyMap_(a,t):jS(a)?Yg("MapSet").proxySet_(a,t):OR(a,t);return(t?t.scope_:Tk()).drafts_.push(r),r}function NR(a){return Gg(a)||ao(10,a),Nk(a)}function Nk(a){if(!Qh(a)||LS(a))return a;const t=a[Vo];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=JE(a,t.scope_.immer_.useStrictShallowCopy_)}else r=JE(a,!0);return mS(r,(u,s)=>{Ok(r,u,Nk(s))}),t&&(t.finalized_=!1),r}var qo=new kR,jC=qo.produce;qo.produceWithPatches.bind(qo);qo.setAutoFreeze.bind(qo);qo.setUseStrictShallowCopy.bind(qo);qo.applyPatches.bind(qo);qo.createDraft.bind(qo);qo.finishDraft.bind(qo);var RR={transform(a,t){var{current:r,affinity:u}=a;if(r!=null){var s=ie.transform(r,t,{affinity:u});a.current=s,s==null&&a.unref()}}},BR={transform(a,t){var{current:r,affinity:u}=a;if(r!=null){var s=ra.transform(r,t,{affinity:u});a.current=s,s==null&&a.unref()}}},_R={transform(a,t){var{current:r,affinity:u}=a;if(r!=null){var s=_e.transform(r,t,{affinity:u});a.current=s,s==null&&a.unref()}}},yS=new WeakMap,bS=new WeakMap,xb=new WeakMap,Rk=new WeakMap,hA=new WeakMap,pA=new WeakMap,mA=new WeakMap,ie={ancestors(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,u=ie.levels(a,t);return r?u=u.slice(1):u=u.slice(0,-1),u},common(a,t){for(var r=[],u=0;u<a.length&&u<t.length;u++){var s=a[u],h=t[u];if(s!==h)break;r.push(s)}return r},compare(a,t){for(var r=Math.min(a.length,t.length),u=0;u<r;u++){if(a[u]<t[u])return-1;if(a[u]>t[u])return 1}return 0},endsAfter(a,t){var r=a.length-1,u=a.slice(0,r),s=t.slice(0,r),h=a[r],g=t[r];return ie.equals(u,s)&&h>g},endsAt(a,t){var r=a.length,u=a.slice(0,r),s=t.slice(0,r);return ie.equals(u,s)},endsBefore(a,t){var r=a.length-1,u=a.slice(0,r),s=t.slice(0,r),h=a[r],g=t[r];return ie.equals(u,s)&&h<g},equals(a,t){return a.length===t.length&&a.every((r,u)=>r===t[u])},hasPrevious(a){return a[a.length-1]>0},isAfter(a,t){return ie.compare(a,t)===1},isAncestor(a,t){return a.length<t.length&&ie.compare(a,t)===0},isBefore(a,t){return ie.compare(a,t)===-1},isChild(a,t){return a.length===t.length+1&&ie.compare(a,t)===0},isCommon(a,t){return a.length<=t.length&&ie.compare(a,t)===0},isDescendant(a,t){return a.length>t.length&&ie.compare(a,t)===0},isParent(a,t){return a.length+1===t.length&&ie.compare(a,t)===0},isPath(a){return Array.isArray(a)&&(a.length===0||typeof a[0]=="number")},isSibling(a,t){if(a.length!==t.length)return!1;var r=a.slice(0,-1),u=t.slice(0,-1),s=a[a.length-1],h=t[t.length-1];return s!==h&&ie.equals(r,u)},levels(a){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,u=[],s=0;s<=a.length;s++)u.push(a.slice(0,s));return r&&u.reverse(),u},next(a){if(a.length===0)throw new Error("Cannot get the next path of a root path [".concat(a,"], because it has no next index."));var t=a[a.length-1];return a.slice(0,-1).concat(t+1)},operationCanTransformPath(a){switch(a.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(a){if(a.length===0)throw new Error("Cannot get the parent path of the root path [".concat(a,"]."));return a.slice(0,-1)},previous(a){if(a.length===0)throw new Error("Cannot get the previous path of a root path [".concat(a,"], because it has no previous index."));var t=a[a.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(a,"] because it would result in a negative index."));return a.slice(0,-1).concat(t-1)},relative(a,t){if(!ie.isAncestor(t,a)&&!ie.equals(a,t))throw new Error("Cannot get the relative path of [".concat(a,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return a.slice(t.length)},transform(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!a)return null;var u=[...a],{affinity:s="forward"}=r;if(a.length===0)return u;switch(t.type){case"insert_node":{var{path:h}=t;(ie.equals(h,u)||ie.endsBefore(h,u)||ie.isAncestor(h,u))&&(u[h.length-1]+=1);break}case"remove_node":{var{path:g}=t;if(ie.equals(g,u)||ie.isAncestor(g,u))return null;ie.endsBefore(g,u)&&(u[g.length-1]-=1);break}case"merge_node":{var{path:y,position:E}=t;ie.equals(y,u)||ie.endsBefore(y,u)?u[y.length-1]-=1:ie.isAncestor(y,u)&&(u[y.length-1]-=1,u[y.length]+=E);break}case"split_node":{var{path:C,position:A}=t;if(ie.equals(C,u)){if(s==="forward")u[u.length-1]+=1;else if(s!=="backward")return null}else ie.endsBefore(C,u)?u[C.length-1]+=1:ie.isAncestor(C,u)&&a[C.length]>=A&&(u[C.length-1]+=1,u[C.length]-=A);break}case"move_node":{var{path:T,newPath:N}=t;if(ie.equals(T,N))return u;if(ie.isAncestor(T,u)||ie.equals(T,u)){var R=N.slice();return ie.endsBefore(T,N)&&T.length<N.length&&(R[T.length-1]-=1),R.concat(u.slice(T.length))}else ie.isSibling(T,N)&&(ie.isAncestor(N,u)||ie.equals(N,u))?ie.endsBefore(T,u)?u[T.length-1]-=1:u[T.length-1]+=1:ie.endsBefore(N,u)||ie.equals(N,u)||ie.isAncestor(N,u)?(ie.endsBefore(T,u)&&(u[T.length-1]-=1),u[N.length-1]+=1):ie.endsBefore(T,u)&&(ie.equals(N,u)&&(u[N.length-1]+=1),u[T.length-1]-=1);break}}return u}};function Mb(a){"@babel/helpers - typeof";return Mb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mb(a)}function FR(a,t){if(Mb(a)!=="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var u=r.call(a,t);if(Mb(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function MR(a){var t=FR(a,"string");return Mb(t)==="symbol"?t:String(t)}function yl(a,t,r){return t=MR(t),t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}function vA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function Za(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):vA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var gA=function(t,r){for(var u=arguments.length,s=new Array(u>2?u-2:0),h=2;h<u;h++)s[h-2]=arguments[h];return[...t.slice(0,r),...s,...t.slice(r)]},zb=function(t,r,u){for(var s=arguments.length,h=new Array(s>3?s-3:0),g=3;g<s;g++)h[g-3]=arguments[g];return[...t.slice(0,r),...h,...t.slice(r+u)]},yA=zb,LC=(a,t,r)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var u=dt.get(a,t),s=t.slice(),h=r(u);s.length>1;){var g=s.pop(),y=dt.get(a,s);h=Za(Za({},y),{},{children:zb(y.children,g,1,h)})}var E=s.pop();a.children=zb(a.children,E,1,h)},i0=(a,t,r)=>{t.length===0?a.children=r(a.children):LC(a,t,u=>{if(Et.isText(u))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(ni.stringify(u)));return Za(Za({},u),{},{children:r(u.children)})})},bA=(a,t,r)=>LC(a,t,u=>{if(!Et.isText(u))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ni.stringify(u)));return r(u)}),zR={transform(a,t){var r=!1;switch(t.type){case"insert_node":{var{path:u,node:s}=t;i0(a,ie.parent(u),Qe=>{var Ne=u[u.length-1];if(Ne>Qe.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(u,"] because the destination is past the end of the node."));return gA(Qe,Ne,s)}),r=!0;break}case"insert_text":{var{path:h,offset:g,text:y}=t;if(y.length===0)break;bA(a,h,Qe=>{var Ne=Qe.text.slice(0,g),Ie=Qe.text.slice(g);return Za(Za({},Qe),{},{text:Ne+y+Ie})}),r=!0;break}case"merge_node":{var{path:E}=t,C=E[E.length-1],A=ie.previous(E),T=A[A.length-1];i0(a,ie.parent(E),Qe=>{var Ne=Qe[C],Ie=Qe[T],St;if(Et.isText(Ne)&&Et.isText(Ie))St=Za(Za({},Ie),{},{text:Ie.text+Ne.text});else if(!Et.isText(Ne)&&!Et.isText(Ie))St=Za(Za({},Ie),{},{children:Ie.children.concat(Ne.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(ni.stringify(Ne)," ").concat(ni.stringify(Ie)));return zb(Qe,T,2,St)}),r=!0;break}case"move_node":{var{path:N,newPath:R}=t,z=N[N.length-1];if(ie.isAncestor(N,R))throw new Error("Cannot move a path [".concat(N,"] to new path [").concat(R,"] because the destination is inside itself."));var V=dt.get(a,N);i0(a,ie.parent(N),Qe=>yA(Qe,z,1));var L=ie.transform(N,t),M=L[L.length-1];i0(a,ie.parent(L),Qe=>gA(Qe,M,V)),r=!0;break}case"remove_node":{var{path:x}=t,B=x[x.length-1];if(i0(a,ie.parent(x),Qe=>yA(Qe,B,1)),a.selection){var H=Za({},a.selection);for(var[G,W]of _e.points(H)){var X=ra.transform(G,t);if(H!=null&&X!=null)H[W]=X;else{var ee=void 0,J=void 0;for(var[De,ke]of dt.texts(a))if(ie.compare(ke,x)===-1)ee=[De,ke];else{J=[De,ke];break}var ye=!1;ee&&J&&(ie.isSibling(ee[1],x)?ye=!1:ie.equals(J[1],x)?ye=!0:ye=ie.common(ee[1],x).length<ie.common(J[1],x).length),ee&&!ye?H[W]={path:ee[1],offset:ee[0].text.length}:J?H[W]={path:J[1],offset:0}:H=null}}(!H||!_e.equals(H,a.selection))&&(a.selection=H)}break}case"remove_text":{var{path:be,offset:Ee,text:ze}=t;if(ze.length===0)break;bA(a,be,Qe=>{var Ne=Qe.text.slice(0,Ee),Ie=Qe.text.slice(Ee+ze.length);return Za(Za({},Qe),{},{text:Ne+Ie})}),r=!0;break}case"set_node":{var{path:K,properties:ue,newProperties:pe}=t;if(K.length===0)throw new Error("Cannot set properties on the root node!");LC(a,K,Qe=>{var Ne=Za({},Qe);for(var Ie in pe){if(Ie==="children"||Ie==="text")throw new Error('Cannot set the "'.concat(Ie,'" property of nodes!'));var St=pe[Ie];St==null?delete Ne[Ie]:Ne[Ie]=St}for(var tt in ue)pe.hasOwnProperty(tt)||delete Ne[tt];return Ne});break}case"set_selection":{var{newProperties:Ve}=t;if(Ve==null){a.selection=null;break}if(a.selection==null){if(!_e.isRange(Ve))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ni.stringify(Ve)," when there is no current selection."));a.selection=Za({},Ve);break}var fe=Za({},a.selection);for(var Re in Ve){var Le=Ve[Re];if(Le==null){if(Re==="anchor"||Re==="focus")throw new Error('Cannot remove the "'.concat(Re,'" selection property'));delete fe[Re]}else fe[Re]=Le}a.selection=fe;break}case"split_node":{var{path:he,position:nt,properties:bt}=t,rt=he[he.length-1];if(he.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(he,"] because the root node cannot be split."));i0(a,ie.parent(he),Qe=>{var Ne=Qe[rt],Ie,St;if(Et.isText(Ne)){var tt=Ne.text.slice(0,nt),jn=Ne.text.slice(nt);Ie=Za(Za({},Ne),{},{text:tt}),St=Za(Za({},bt),{},{text:jn})}else{var Ut=Ne.children.slice(0,nt),Ot=Ne.children.slice(nt);Ie=Za(Za({},Ne),{},{children:Ut}),St=Za(Za({},bt),{},{children:Ot})}return zb(Qe,rt,1,Ie,St)}),r=!0;break}}if(r&&a.selection){var _n=Za({},a.selection);for(var[Ft,oe]of _e.points(_n))_n[oe]=ra.transform(Ft,t);_e.equals(_n,a.selection)||(a.selection=_n)}}},jR={insertNodes(a,t,r){a.insertNodes(t,r)},liftNodes(a,t){a.liftNodes(t)},mergeNodes(a,t){a.mergeNodes(t)},moveNodes(a,t){a.moveNodes(t)},removeNodes(a,t){a.removeNodes(t)},setNodes(a,t,r){a.setNodes(t,r)},splitNodes(a,t){a.splitNodes(t)},unsetNodes(a,t,r){a.unsetNodes(t,r)},unwrapNodes(a,t){a.unwrapNodes(t)},wrapNodes(a,t,r){a.wrapNodes(t,r)}},LR={collapse(a,t){a.collapse(t)},deselect(a){a.deselect()},move(a,t){a.move(t)},select(a,t){a.select(t)},setPoint(a,t,r){a.setPoint(t,r)},setSelection(a,t){a.setSelection(t)}},$u=a=>typeof a=="object"&&a!==null,Bk=(a,t)=>{for(var r in a){var u=a[r],s=t[r];if(Array.isArray(u)&&Array.isArray(s)){if(u.length!==s.length)return!1;for(var h=0;h<u.length;h++)if(u[h]!==s[h])return!1}else if($u(u)&&$u(s)){if(!Bk(u,s))return!1}else if(u!==s)return!1}for(var g in t)if(a[g]===void 0&&t[g]!==void 0)return!1;return!0};function UR(a,t){if(a==null)return{};var r={},u=Object.keys(a),s,h;for(h=0;h<u.length;h++)s=u[h],!(t.indexOf(s)>=0)&&(r[s]=a[s]);return r}function Xh(a,t){if(a==null)return{};var r=UR(a,t),u,s;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);for(s=0;s<h.length;s++)u=h[s],!(t.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(a,u)&&(r[u]=a[u])}return r}var HR=["anchor","focus"];function SA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function VR(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):SA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var _e={edges(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:u,focus:s}=a;return _e.isBackward(a)===r?[u,s]:[s,u]},end(a){var[,t]=_e.edges(a);return t},equals(a,t){return ra.equals(a.anchor,t.anchor)&&ra.equals(a.focus,t.focus)},surrounds(a,t){var r=_e.intersection(a,t);return r?_e.equals(r,t):!1},includes(a,t){if(_e.isRange(t)){if(_e.includes(a,t.anchor)||_e.includes(a,t.focus))return!0;var[r,u]=_e.edges(a),[s,h]=_e.edges(t);return ra.isBefore(r,s)&&ra.isAfter(u,h)}var[g,y]=_e.edges(a),E=!1,C=!1;return ra.isPoint(t)?(E=ra.compare(t,g)>=0,C=ra.compare(t,y)<=0):(E=ie.compare(t,g.path)>=0,C=ie.compare(t,y.path)<=0),E&&C},intersection(a,t){var r=Xh(a,HR),[u,s]=_e.edges(a),[h,g]=_e.edges(t),y=ra.isBefore(u,h)?h:u,E=ra.isBefore(s,g)?s:g;return ra.isBefore(E,y)?null:VR({anchor:y,focus:E},r)},isBackward(a){var{anchor:t,focus:r}=a;return ra.isAfter(t,r)},isCollapsed(a){var{anchor:t,focus:r}=a;return ra.equals(t,r)},isExpanded(a){return!_e.isCollapsed(a)},isForward(a){return!_e.isBackward(a)},isRange(a){return $u(a)&&ra.isPoint(a.anchor)&&ra.isPoint(a.focus)},*points(a){yield[a.anchor,"anchor"],yield[a.focus,"focus"]},start(a){var[t]=_e.edges(a);return t},transform(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a===null)return null;var{affinity:u="inward"}=r,s,h;if(u==="inward"){var g=_e.isCollapsed(a);_e.isForward(a)?(s="forward",h=g?s:"backward"):(s="backward",h=g?s:"forward")}else u==="outward"?_e.isForward(a)?(s="backward",h="forward"):(s="forward",h="backward"):(s=u,h=u);var y=ra.transform(a.anchor,t,{affinity:s}),E=ra.transform(a.focus,t,{affinity:h});return!y||!E?null:{anchor:y,focus:E}}},DA=function(t){var{deep:r=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$u(t))return!1;var u=typeof t.apply=="function";if(u)return!1;var s=r?dt.isNodeList(t.children):Array.isArray(t.children);return s},mt={isAncestor(a){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $u(a)&&dt.isNodeList(a.children,{deep:t})},isElement:DA,isElementList(a){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(a)&&a.every(r=>mt.isElement(r,{deep:t}))},isElementProps(a){return a.children!==void 0},isElementType:function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return DA(t)&&t[u]===r},matches(a,t){for(var r in t)if(r!=="children"&&a[r]!==t[r])return!1;return!0}},qR=["children"],$R=["text"],dt={ancestor(a,t){var r=dt.get(a,t);if(Et.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ni.stringify(r)));return r},ancestors(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var u of ie.ancestors(t,r)){var s=dt.ancestor(a,u),h=[s,u];yield h}}()},child(a,t){if(Et.isText(a))throw new Error("Cannot get the child of a text node: ".concat(ni.stringify(a)));var r=a.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ni.stringify(a)));return r},children(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:u=!1}=r,s=dt.ancestor(a,t),{children:h}=s,g=u?h.length-1:0;u?g>=0:g<h.length;){var y=dt.child(s,g),E=t.concat(g);yield[y,E],g=u?g-1:g+1}}()},common(a,t,r){var u=ie.common(t,r),s=dt.get(a,u);return[s,u]},descendant(a,t){var r=dt.get(a,t);if(j.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ni.stringify(r)));return r},descendants(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,u]of dt.nodes(a,t))u.length!==0&&(yield[r,u])}()},elements(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,u]of dt.nodes(a,t))mt.isElement(r)&&(yield[r,u])}()},extractProps(a){if(mt.isAncestor(a)){var t=Xh(a,qR);return t}else{var t=Xh(a,$R);return t}},first(a,t){for(var r=t.slice(),u=dt.get(a,r);u&&!(Et.isText(u)||u.children.length===0);)u=u.children[0],r.push(0);return[u,r]},fragment(a,t){if(Et.isText(a))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ni.stringify(a)));var r=jC({children:a.children},u=>{var[s,h]=_e.edges(t),g=dt.nodes(u,{reverse:!0,pass:N=>{var[,R]=N;return!_e.includes(t,R)}});for(var[,y]of g){if(!_e.includes(t,y)){var E=dt.parent(u,y),C=y[y.length-1];E.children.splice(C,1)}if(ie.equals(y,h.path)){var A=dt.leaf(u,y);A.text=A.text.slice(0,h.offset)}if(ie.equals(y,s.path)){var T=dt.leaf(u,y);T.text=T.text.slice(s.offset)}}j.isEditor(u)&&(u.selection=null)});return r.children},get(a,t){var r=dt.getIf(a,t);if(r===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ni.stringify(a)));return r},getIf(a,t){for(var r=a,u=0;u<t.length;u++){var s=t[u];if(Et.isText(r)||!r.children[s])return;r=r.children[s]}return r},has(a,t){for(var r=a,u=0;u<t.length;u++){var s=t[u];if(Et.isText(r)||!r.children[s])return!1;r=r.children[s]}return!0},isNode(a){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et.isText(a)||mt.isElement(a,{deep:t})||j.isEditor(a,{deep:t})},isNodeList(a){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(a)&&a.every(r=>dt.isNode(r,{deep:t}))},last(a,t){for(var r=t.slice(),u=dt.get(a,r);u&&!(Et.isText(u)||u.children.length===0);){var s=u.children.length-1;u=u.children[s],r.push(s)}return[u,r]},leaf(a,t){var r=dt.get(a,t);if(!Et.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ni.stringify(r)));return r},levels(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var u of ie.levels(t,r)){var s=dt.get(a,u);yield[s,u]}}()},matches(a,t){return mt.isElement(a)&&mt.isElementProps(t)&&mt.matches(a,t)||Et.isText(a)&&Et.isTextProps(t)&&Et.matches(a,t)},nodes(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:r,reverse:u=!1}=t,{from:s=[],to:h}=t,g=new Set,y=[],E=a;!(h&&(u?ie.isBefore(y,h):ie.isAfter(y,h)));){if(g.has(E)||(yield[E,y]),!g.has(E)&&!Et.isText(E)&&E.children.length!==0&&(r==null||r([E,y])===!1)){g.add(E);var C=u?E.children.length-1:0;ie.isAncestor(y,s)&&(C=s[y.length]),y=y.concat(C),E=dt.get(a,y);continue}if(y.length===0)break;if(!u){var A=ie.next(y);if(dt.has(a,A)){y=A,E=dt.get(a,y);continue}}if(u&&y[y.length-1]!==0){var T=ie.previous(y);y=T,E=dt.get(a,y);continue}y=ie.parent(y),E=dt.get(a,y),g.add(E)}}()},parent(a,t){var r=ie.parent(t),u=dt.get(a,r);if(Et.isText(u))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return u},string(a){return Et.isText(a)?a.text:a.children.map(dt.string).join("")},texts(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,u]of dt.nodes(a,t))Et.isText(r)&&(yield[r,u])}()}};function EA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function nr(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var $m={isNodeOperation(a){return $m.isOperation(a)&&a.type.endsWith("_node")},isOperation(a){if(!$u(a))return!1;switch(a.type){case"insert_node":return ie.isPath(a.path)&&dt.isNode(a.node);case"insert_text":return typeof a.offset=="number"&&typeof a.text=="string"&&ie.isPath(a.path);case"merge_node":return typeof a.position=="number"&&ie.isPath(a.path)&&$u(a.properties);case"move_node":return ie.isPath(a.path)&&ie.isPath(a.newPath);case"remove_node":return ie.isPath(a.path)&&dt.isNode(a.node);case"remove_text":return typeof a.offset=="number"&&typeof a.text=="string"&&ie.isPath(a.path);case"set_node":return ie.isPath(a.path)&&$u(a.properties)&&$u(a.newProperties);case"set_selection":return a.properties===null&&_e.isRange(a.newProperties)||a.newProperties===null&&_e.isRange(a.properties)||$u(a.properties)&&$u(a.newProperties);case"split_node":return ie.isPath(a.path)&&typeof a.position=="number"&&$u(a.properties);default:return!1}},isOperationList(a){return Array.isArray(a)&&a.every(t=>$m.isOperation(t))},isSelectionOperation(a){return $m.isOperation(a)&&a.type.endsWith("_selection")},isTextOperation(a){return $m.isOperation(a)&&a.type.endsWith("_text")},inverse(a){switch(a.type){case"insert_node":return nr(nr({},a),{},{type:"remove_node"});case"insert_text":return nr(nr({},a),{},{type:"remove_text"});case"merge_node":return nr(nr({},a),{},{type:"split_node",path:ie.previous(a.path)});case"move_node":{var{newPath:t,path:r}=a;if(ie.equals(t,r))return a;if(ie.isSibling(r,t))return nr(nr({},a),{},{path:t,newPath:r});var u=ie.transform(r,a),s=ie.transform(ie.next(r),a);return nr(nr({},a),{},{path:u,newPath:s})}case"remove_node":return nr(nr({},a),{},{type:"insert_node"});case"remove_text":return nr(nr({},a),{},{type:"insert_text"});case"set_node":{var{properties:h,newProperties:g}=a;return nr(nr({},a),{},{properties:g,newProperties:h})}case"set_selection":{var{properties:y,newProperties:E}=a;return y==null?nr(nr({},a),{},{properties:E,newProperties:null}):E==null?nr(nr({},a),{},{properties:null,newProperties:y}):nr(nr({},a),{},{properties:E,newProperties:y})}case"split_node":return nr(nr({},a),{},{type:"merge_node",path:ie.next(a.path)})}}},GR=function(t){var{deep:r=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$u(t))return!1;var u=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||$u(t.marks))&&(t.selection===null||_e.isRange(t.selection))&&(!r||dt.isNodeList(t.children))&&$m.isOperationList(t.operations);return u},j={above(a,t){return a.above(t)},addMark(a,t,r){a.addMark(t,r)},after(a,t,r){return a.after(t,r)},before(a,t,r){return a.before(t,r)},deleteBackward(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;a.deleteBackward(r)},deleteForward(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;a.deleteForward(r)},deleteFragment(a,t){a.deleteFragment(t)},edges(a,t){return a.edges(t)},elementReadOnly(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.elementReadOnly(t)},end(a,t){return a.end(t)},first(a,t){return a.first(t)},fragment(a,t){return a.fragment(t)},hasBlocks(a,t){return a.hasBlocks(t)},hasInlines(a,t){return a.hasInlines(t)},hasPath(a,t){return a.hasPath(t)},hasTexts(a,t){return a.hasTexts(t)},insertBreak(a){a.insertBreak()},insertFragment(a,t,r){a.insertFragment(t,r)},insertNode(a,t){a.insertNode(t)},insertSoftBreak(a){a.insertSoftBreak()},insertText(a,t){a.insertText(t)},isBlock(a,t){return a.isBlock(t)},isEdge(a,t,r){return a.isEdge(t,r)},isEditor(a){return GR(a)},isElementReadOnly(a,t){return a.isElementReadOnly(t)},isEmpty(a,t){return a.isEmpty(t)},isEnd(a,t,r){return a.isEnd(t,r)},isInline(a,t){return a.isInline(t)},isNormalizing(a){return a.isNormalizing()},isSelectable(a,t){return a.isSelectable(t)},isStart(a,t,r){return a.isStart(t,r)},isVoid(a,t){return a.isVoid(t)},last(a,t){return a.last(t)},leaf(a,t,r){return a.leaf(t,r)},levels(a,t){return a.levels(t)},marks(a){return a.getMarks()},next(a,t){return a.next(t)},node(a,t,r){return a.node(t,r)},nodes(a,t){return a.nodes(t)},normalize(a,t){a.normalize(t)},parent(a,t,r){return a.parent(t,r)},path(a,t,r){return a.path(t,r)},pathRef(a,t,r){return a.pathRef(t,r)},pathRefs(a){return a.pathRefs()},point(a,t,r){return a.point(t,r)},pointRef(a,t,r){return a.pointRef(t,r)},pointRefs(a){return a.pointRefs()},positions(a,t){return a.positions(t)},previous(a,t){return a.previous(t)},range(a,t,r){return a.range(t,r)},rangeRef(a,t,r){return a.rangeRef(t,r)},rangeRefs(a){return a.rangeRefs()},removeMark(a,t){a.removeMark(t)},setNormalizing(a,t){a.setNormalizing(t)},start(a,t){return a.start(t)},string(a,t,r){return a.string(t,r)},unhangRange(a,t,r){return a.unhangRange(t,r)},void(a,t){return a.void(t)},withoutNormalizing(a,t){a.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(a,t,r)=>a.shouldMergeNodesRemovePrevNode(t,r)},YR={isSpan(a){return Array.isArray(a)&&a.length===2&&a.every(ie.isPath)}};function CA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function wA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):CA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var ra={compare(a,t){var r=ie.compare(a.path,t.path);return r===0?a.offset<t.offset?-1:a.offset>t.offset?1:0:r},isAfter(a,t){return ra.compare(a,t)===1},isBefore(a,t){return ra.compare(a,t)===-1},equals(a,t){return a.offset===t.offset&&ie.equals(a.path,t.path)},isPoint(a){return $u(a)&&typeof a.offset=="number"&&ie.isPath(a.path)},transform(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a===null)return null;var{affinity:u="forward"}=r,{path:s,offset:h}=a;switch(t.type){case"insert_node":case"move_node":{s=ie.transform(s,t,r);break}case"insert_text":{ie.equals(t.path,s)&&(t.offset<h||t.offset===h&&u==="forward")&&(h+=t.text.length);break}case"merge_node":{ie.equals(t.path,s)&&(h+=t.position),s=ie.transform(s,t,r);break}case"remove_text":{ie.equals(t.path,s)&&t.offset<=h&&(h-=Math.min(h-t.offset,t.text.length));break}case"remove_node":{if(ie.equals(t.path,s)||ie.isAncestor(t.path,s))return null;s=ie.transform(s,t,r);break}case"split_node":{if(ie.equals(t.path,s)){if(t.position===h&&u==null)return null;(t.position<h||t.position===h&&u==="forward")&&(h-=t.position,s=ie.transform(s,t,wA(wA({},r),{},{affinity:"forward"})))}else s=ie.transform(s,t,r);break}default:return a}return{path:s,offset:h}}},xA=void 0,ni={setScrubber(a){xA=a},stringify(a){return JSON.stringify(a,xA)}},PR=["text"],QR=["anchor","focus","merge"];function AA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function $h(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):AA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var Et={equals(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:u=!1}=r;function s(h){var g=Xh(h,PR);return g}return Bk(u?s(a):a,u?s(t):t)},isText(a){return $u(a)&&typeof a.text=="string"},isTextList(a){return Array.isArray(a)&&a.every(t=>Et.isText(t))},isTextProps(a){return a.text!==void 0},matches(a,t){for(var r in t)if(r!=="text"&&(!a.hasOwnProperty(r)||a[r]!==t[r]))return!1;return!0},decorations(a,t){var r=[{leaf:$h({},a)}];for(var u of t){var{anchor:s,focus:h,merge:g}=u,y=Xh(u,QR),[E,C]=_e.edges(u),A=[],T=0,N=E.offset,R=C.offset,z=g??Object.assign;for(var{leaf:V}of r){var{length:L}=V.text,M=T;if(T+=L,N<=M&&T<=R){z(V,y),A.push({leaf:V});continue}if(N!==R&&(N===T||R===M)||N>T||R<M||R===M&&M!==0){A.push({leaf:V});continue}var x=V,B=void 0,H=void 0;if(R<T){var G=R-M;H={leaf:$h($h({},x),{},{text:x.text.slice(G)})},x=$h($h({},x),{},{text:x.text.slice(0,G)})}if(N>M){var W=N-M;B={leaf:$h($h({},x),{},{text:x.text.slice(0,W)})},x=$h($h({},x),{},{text:x.text.slice(W)})}z(x,y),B&&A.push(B),A.push({leaf:x}),H&&A.push(H)}r=A}if(r.length>1){var X=0;for(var[ee,J]of r.entries()){var De=X,ke=De+J.leaf.text.length,ye={start:De,end:ke};ee===0&&(ye.isFirst=!0),ee===r.length-1&&(ye.isLast=!0),J.position=ye,X=ke}}return r}},UC=a=>a.selection?a.selection:a.children.length>0?j.end(a,[]):[0],A0=(a,t)=>{var[r]=j.node(a,t);return u=>u===r},HC=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=!r,s=r?JR(t):t,h=hn.None,g=hn.None,y=0,E=null,C=null;for(var A of s){var T=A.codePointAt(0);if(!T)break;var N=fB(A,T);if([h,g]=u?[g,N]:[N,h],c0(h,hn.ZWJ)&&c0(g,hn.ExtPict)&&(u?E=OA(t.substring(0,y)):E=OA(t.substring(0,t.length-y)),!E)||c0(h,hn.RI)&&c0(g,hn.RI)&&(C!==null?C=!C:u?C=!0:C=vB(t.substring(0,t.length-y)),!C)||h!==hn.None&&g!==hn.None&&hB(h,g))break;y+=A.length}return y||1},XR=/\s/,IR=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ZR=/['\u2018\u2019]/,KR=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=0,s=!1;t.length>0;){var h=HC(t,r),[g,y]=VC(t,h,r);if(WR(g,y,r))s=!0,u+=h;else if(!s)u+=h;else break;t=y}return u},VC=(a,t,r)=>{if(r){var u=a.length-t;return[a.slice(u,a.length),a.slice(0,u)]}return[a.slice(0,t),a.slice(t)]},WR=function a(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(XR.test(t))return!1;if(ZR.test(t)){var s=HC(r,u),[h,g]=VC(r,s,u);if(a(h,g,u))return!0}return!IR.test(t)},JR=function*(t){for(var r=t.length-1,u=0;u<t.length;u++){var s=t.charAt(r-u);if(tB(s.charCodeAt(0))){var h=t.charAt(r-u-1);if(eB(h.charCodeAt(0))){yield h+s,u++;continue}}yield s}},eB=a=>a>=55296&&a<=56319,tB=a=>a>=56320&&a<=57343,hn;(function(a){a[a.None=0]="None",a[a.Extend=1]="Extend",a[a.ZWJ=2]="ZWJ",a[a.RI=4]="RI",a[a.Prepend=8]="Prepend",a[a.SpacingMark=16]="SpacingMark",a[a.L=32]="L",a[a.V=64]="V",a[a.T=128]="T",a[a.LV=256]="LV",a[a.LVT=512]="LVT",a[a.ExtPict=1024]="ExtPict",a[a.Any=2048]="Any"})(hn||(hn={}));var nB=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,aB=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,rB=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,iB=/^[\u1100-\u115F\uA960-\uA97C]$/,uB=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,lB=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,oB=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,sB=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,cB=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,fB=(a,t)=>{var r=hn.Any;return a.search(nB)!==-1&&(r|=hn.Extend),t===8205&&(r|=hn.ZWJ),t>=127462&&t<=127487&&(r|=hn.RI),a.search(aB)!==-1&&(r|=hn.Prepend),a.search(rB)!==-1&&(r|=hn.SpacingMark),a.search(iB)!==-1&&(r|=hn.L),a.search(uB)!==-1&&(r|=hn.V),a.search(lB)!==-1&&(r|=hn.T),a.search(oB)!==-1&&(r|=hn.LV),a.search(sB)!==-1&&(r|=hn.LVT),a.search(cB)!==-1&&(r|=hn.ExtPict),r};function c0(a,t){return(a&t)!==0}var dB=[[hn.L,hn.L|hn.V|hn.LV|hn.LVT],[hn.LV|hn.V,hn.V|hn.T],[hn.LVT|hn.T,hn.T],[hn.Any,hn.Extend|hn.ZWJ],[hn.Any,hn.SpacingMark],[hn.Prepend,hn.Any],[hn.ZWJ,hn.ExtPict],[hn.RI,hn.RI]];function hB(a,t){return dB.findIndex(r=>c0(a,r[0])&&c0(t,r[1]))===-1}var pB=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,OA=a=>a.search(pB)!==-1,mB=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,vB=a=>{var t=a.match(mB);if(t===null)return!1;var r=t[0].length/2;return r%2===1},gB={delete(a,t){a.delete(t)},insertFragment(a,t,r){a.insertFragment(t,r)},insertText(a,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j.withoutNormalizing(a,()=>{var{voids:u=!1}=r,{at:s=UC(a)}=r;if(ie.isPath(s)&&(s=j.range(a,s)),_e.isRange(s))if(_e.isCollapsed(s))s=s.anchor;else{var h=_e.end(s);if(!u&&j.void(a,{at:h}))return;var g=_e.start(s),y=j.pointRef(a,g),E=j.pointRef(a,h);He.delete(a,{at:s,voids:u});var C=y.unref(),A=E.unref();s=C||A,He.setSelection(a,{anchor:s,focus:s})}if(!(!u&&j.void(a,{at:s})||j.elementReadOnly(a,{at:s}))){var{path:T,offset:N}=s;t.length>0&&a.apply({type:"insert_text",path:T,offset:N,text:t})}})}};function TA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function j1(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var He=j1(j1(j1(j1({},zR),jR),LR),gB),uS=new WeakMap,yB=a=>uS.get(a)||!1,bB=(a,t,r)=>{var u=uS.get(a)||!1;uS.set(a,!0);try{t(),r()}finally{uS.set(a,u)}};function _k(a,t,r){var u=yS.get(a)||[],s=bS.get(a)||new Set,h,g,y=T=>{if(T){var N=T.join(",");g.has(N)||(g.add(N),h.push(T))}};if(r){h=[],g=new Set;for(var E of u){var C=r(E);y(C)}}else h=u,g=s;for(var A of t)y(A);yS.set(a,h),bS.set(a,g)}var SB=(a,t)=>{for(var r of j.pathRefs(a))RR.transform(r,t);for(var u of j.pointRefs(a))BR.transform(u,t);for(var s of j.rangeRefs(a))_R.transform(s,t);if(!yB(a)){var h=ie.operationCanTransformPath(t)?g=>ie.transform(g,t):void 0;_k(a,a.getDirtyPaths(t),h)}He.transform(a,t),a.operations.push(t),j.normalize(a,{operation:t}),t.type==="set_selection"&&(a.marks=null),xb.get(a)||(xb.set(a,!0),Promise.resolve().then(()=>{xb.set(a,!1),a.onChange({operation:t}),a.operations=[]}))},DB=(a,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return ie.levels(r)}case"insert_node":{var{node:u,path:s}=t,h=ie.levels(s),g=Et.isText(u)?[]:Array.from(dt.nodes(u),De=>{var[,ke]=De;return s.concat(ke)});return[...h,...g]}case"merge_node":{var{path:y}=t,E=ie.ancestors(y),C=ie.previous(y);return[...E,C]}case"move_node":{var{path:A,newPath:T}=t;if(ie.equals(A,T))return[];var N=[],R=[];for(var z of ie.ancestors(A)){var V=ie.transform(z,t);N.push(V)}for(var L of ie.ancestors(T)){var M=ie.transform(L,t);R.push(M)}var x=R[R.length-1],B=T[T.length-1],H=x.concat(B);return[...N,...R,H]}case"remove_node":{var{path:G}=t,W=ie.ancestors(G);return[...W]}case"split_node":{var{path:X}=t,ee=ie.levels(X),J=ie.next(X);return[...ee,J]}default:return[]}},EB=a=>{var{selection:t}=a;return t?dt.fragment(a,t):[]},CB=(a,t,r)=>{var[u,s]=t;if(!Et.isText(u)){if(mt.isElement(u)&&u.children.length===0){var h={text:""};He.insertNodes(a,h,{at:s.concat(0),voids:!0});return}for(var g=j.isEditor(u)?!1:mt.isElement(u)&&(a.isInline(u)||u.children.length===0||Et.isText(u.children[0])||a.isInline(u.children[0])),y=0,E=0;E<u.children.length;E++,y++){var C=dt.get(a,s);if(!Et.isText(C)){var A=C.children[y],T=C.children[y-1],N=E===u.children.length-1,R=Et.isText(A)||mt.isElement(A)&&a.isInline(A);if(R!==g)R?r!=null&&r.fallbackElement?He.wrapNodes(a,r.fallbackElement(),{at:s.concat(y),voids:!0}):He.removeNodes(a,{at:s.concat(y),voids:!0}):He.unwrapNodes(a,{at:s.concat(y),voids:!0}),y--;else if(mt.isElement(A)){if(a.isInline(A)){if(T==null||!Et.isText(T)){var z={text:""};He.insertNodes(a,z,{at:s.concat(y),voids:!0}),y++}else if(N){var V={text:""};He.insertNodes(a,V,{at:s.concat(y+1),voids:!0}),y++}}}else{if(!Et.isText(A)&&!("children"in A)){var L=A;L.children=[]}T!=null&&Et.isText(T)&&(Et.equals(A,T,{loose:!0})?(He.mergeNodes(a,{at:s.concat(y),voids:!0}),y--):T.text===""?(He.removeNodes(a,{at:s.concat(y-1),voids:!0}),y--):A.text===""&&(He.removeNodes(a,{at:s.concat(y),voids:!0}),y--))}}}}},wB=(a,t)=>{var{iteration:r,initialDirtyPathsLength:u}=t,s=u*42;if(r>s)throw new Error("Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},xB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:u=!1,mode:s="lowest",at:h=t.selection,match:g}=r;if(h){var y=j.path(t,h);if(!_e.isRange(h)||ie.equals(h.focus.path,h.anchor.path)){if(y.length===0)return;y=ie.parent(y)}var E=s==="lowest",[C]=j.levels(t,{at:y,voids:u,match:g,reverse:E});return C}};function kA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function NA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):kA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var AB=(a,t,r)=>{var{selection:u}=a;if(u){var s=(T,N)=>{if(!Et.isText(T))return!1;var[R,z]=j.parent(a,N);return!a.isVoid(R)||a.markableVoid(R)},h=_e.isExpanded(u),g=!1;if(!h){var[y,E]=j.node(a,u);if(y&&s(y,E)){var[C]=j.parent(a,E);g=C&&a.markableVoid(C)}}if(h||g)He.setNodes(a,{[t]:r},{match:s,split:!0,voids:!0});else{var A=NA(NA({},j.marks(a)||{}),{},{[t]:r});a.marks=A,xb.get(a)||a.onChange()}}};function RA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function BA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var OB=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=j.point(t,r,{edge:"end"}),h=j.end(t,[]),g={anchor:s,focus:h},{distance:y=1}=u,E=0,C;for(var A of j.positions(t,BA(BA({},u),{},{at:g}))){if(E>y)break;E!==0&&(C=A),E++}return C};function _A(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function FA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var TB=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=j.start(t,[]),h=j.point(t,r,{edge:"start"}),g={anchor:s,focus:h},{distance:y=1}=u,E=0,C;for(var A of j.positions(t,FA(FA({},u),{},{at:g,reverse:!0}))){if(E>y)break;E!==0&&(C=A),E++}return C},kB=(a,t)=>{var{selection:r}=a;r&&_e.isCollapsed(r)&&He.delete(a,{unit:t,reverse:!0})},NB=(a,t)=>{var{selection:r}=a;r&&_e.isCollapsed(r)&&He.delete(a,{unit:t})},RB=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:u}=t;u&&_e.isExpanded(u)&&He.delete(t,{reverse:r==="backward"})},BB=(a,t)=>[j.start(a,t),j.end(a,t)];function MA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function zA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):MA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var _B=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j.above(t,zA(zA({},r),{},{match:u=>mt.isElement(u)&&j.isElementReadOnly(t,u)}))},FB=(a,t)=>j.point(a,t,{edge:"end"}),MB=(a,t)=>{var r=j.path(a,t,{edge:"start"});return j.node(a,r)},zB=(a,t)=>{var r=j.range(a,t);return dt.fragment(a,r)};function jA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function LA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var jB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j.above(t,LA(LA({},r),{},{match:u=>mt.isElement(u)&&j.isVoid(t,u)}))},LB=(a,t)=>t.children.some(r=>mt.isElement(r)&&j.isBlock(a,r)),UB=(a,t)=>t.children.some(r=>Et.isText(r)||j.isInline(a,r)),HB=(a,t)=>dt.has(a,t),VB=(a,t)=>t.children.every(r=>Et.isText(r)),qB=a=>{He.splitNodes(a,{always:!0})},$B=(a,t,r)=>{He.insertNodes(a,t,r)},GB=a=>{He.splitNodes(a,{always:!0})};function UA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function YB(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var PB=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:s,marks:h}=t;if(s){if(h){var g=YB({text:r},h);He.insertNodes(t,g,{at:u.at,voids:u.voids})}else He.insertText(t,r,u);t.marks=null}},QB=(a,t)=>!a.isInline(t),XB=(a,t,r)=>j.isStart(a,t,r)||j.isEnd(a,t,r),IB=(a,t)=>{var{children:r}=t,[u]=r;return r.length===0||r.length===1&&Et.isText(u)&&u.text===""&&!a.isVoid(t)},ZB=(a,t,r)=>{var u=j.end(a,r);return ra.equals(t,u)},KB=a=>{var t=Rk.get(a);return t===void 0?!0:t},WB=(a,t,r)=>{if(t.offset!==0)return!1;var u=j.start(a,r);return ra.equals(t,u)},JB=(a,t)=>{var r=j.path(a,t,{edge:"end"});return j.node(a,r)},e3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=j.path(t,r,u),h=dt.leaf(t,s);return[h,s]};function t3(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=a.selection,reverse:u=!1,voids:s=!1}=t,{match:h}=t;if(h==null&&(h=()=>!0),!!r){var g=[],y=j.path(a,r);for(var[E,C]of dt.levels(a,y))if(h(E,C)&&(g.push([E,C]),!s&&mt.isElement(E)&&j.isVoid(a,E)))break;u&&g.reverse(),yield*g}}()}var n3=["text"],a3=["text"],r3=function(t){var{marks:r,selection:u}=t;if(!u)return null;var{anchor:s,focus:h}=u;if(r)return r;if(_e.isExpanded(u)){var g=_e.isBackward(u);g&&([h,s]=[s,h]);var y=j.isEnd(t,s,s.path);if(y){var E=j.after(t,s);E&&(s=E)}var[C]=j.nodes(t,{match:Et.isText,at:{anchor:s,focus:h}});if(C){var[A]=C,T=Xh(A,n3);return T}else return{}}var{path:N}=s,[R]=j.leaf(t,N);if(s.offset===0){var z=j.previous(t,{at:N,match:Et.isText}),V=j.above(t,{match:G=>mt.isElement(G)&&j.isVoid(t,G)&&t.markableVoid(G)});if(!V){var L=j.above(t,{match:G=>mt.isElement(G)&&j.isBlock(t,G)});if(z&&L){var[M,x]=z,[,B]=L;ie.isAncestor(B,x)&&(R=M)}}}var H=Xh(R,a3);return H},i3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:u="lowest",voids:s=!1}=r,{match:h,at:g=t.selection}=r;if(g){var y=j.after(t,g,{voids:s});if(y){var[,E]=j.last(t,[]),C=[y.path,E];if(ie.isPath(g)&&g.length===0)throw new Error("Cannot get the next node from the root node!");if(h==null)if(ie.isPath(g)){var[A]=j.parent(t,g);h=N=>A.children.includes(N)}else h=()=>!0;var[T]=j.nodes(t,{at:C,match:h,mode:u,voids:s});return T}}},u3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=j.path(t,r,u),h=dt.get(t,s);return[h,s]};function l3(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=a.selection,mode:u="all",universal:s=!1,reverse:h=!1,voids:g=!1,pass:y}=t,{match:E}=t;if(E||(E=()=>!0),!!r){var C,A;if(YR.isSpan(r))C=r[0],A=r[1];else{var T=j.path(a,r,{edge:"start"}),N=j.path(a,r,{edge:"end"});C=h?N:T,A=h?T:N}var R=dt.nodes(a,{reverse:h,from:C,to:A,pass:H=>{var[G,W]=H;return y&&y([G,W])?!0:mt.isElement(G)?!!(!g&&(j.isVoid(a,G)||j.isElementReadOnly(a,G))):!1}}),z=[],V;for(var[L,M]of R){var x=V&&ie.compare(M,V[1])===0;if(!(u==="highest"&&x)){if(!E(L,M)){if(s&&!x&&Et.isText(L))return;continue}if(u==="lowest"&&x){V=[L,M];continue}var B=u==="lowest"?V:[L,M];B&&(s?z.push(B):yield B),V=[L,M]}}u==="lowest"&&V&&(s?z.push(V):yield V),s&&(yield*z)}}()}var o3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:u=!1,operation:s}=r,h=A=>yS.get(A)||[],g=A=>bS.get(A)||new Set,y=A=>{var T=h(A).pop(),N=T.join(",");return g(A).delete(N),T};if(j.isNormalizing(t)){if(u){var E=Array.from(dt.nodes(t),A=>{var[,T]=A;return T}),C=new Set(E.map(A=>A.join(",")));yS.set(t,E),bS.set(t,C)}h(t).length!==0&&j.withoutNormalizing(t,()=>{for(var A of h(t))if(dt.has(t,A)){var T=j.node(t,A),[N,R]=T;mt.isElement(N)&&N.children.length===0&&t.normalizeNode(T,{operation:s})}for(var z=h(t),V=z.length,L=0;z.length!==0;){if(!t.shouldNormalize({dirtyPaths:z,iteration:L,initialDirtyPathsLength:V,operation:s}))return;var M=y(t);if(dt.has(t,M)){var x=j.node(t,M);t.normalizeNode(x,{operation:s})}L++,z=h(t)}})}},s3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=j.path(t,r,u),h=ie.parent(s),g=j.node(t,h);return g},c3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:s="forward"}=u,h={current:r,affinity:s,unref(){var{current:y}=h,E=j.pathRefs(t);return E.delete(h),h.current=null,y}},g=j.pathRefs(t);return g.add(h),h},f3=a=>{var t=hA.get(a);return t||(t=new Set,hA.set(a,t)),t},d3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:s,edge:h}=u;if(ie.isPath(r)){if(h==="start"){var[,g]=dt.first(t,r);r=g}else if(h==="end"){var[,y]=dt.last(t,r);r=y}}return _e.isRange(r)&&(h==="start"?r=_e.start(r):h==="end"?r=_e.end(r):r=ie.common(r.anchor.path,r.focus.path)),ra.isPoint(r)&&(r=r.path),s!=null&&(r=r.slice(0,s)),r},h3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:s="forward"}=u,h={current:r,affinity:s,unref(){var{current:y}=h,E=j.pointRefs(t);return E.delete(h),h.current=null,y}},g=j.pointRefs(t);return g.add(h),h},p3=a=>{var t=pA.get(a);return t||(t=new Set,pA.set(a,t)),t},m3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:s="start"}=u;if(ie.isPath(r)){var h;if(s==="end"){var[,g]=dt.last(t,r);h=g}else{var[,y]=dt.first(t,r);h=y}var E=dt.get(t,h);if(!Et.isText(E))throw new Error("Cannot get the ".concat(s," point in the node at path [").concat(r,"] because it has no ").concat(s," text node."));return{path:h,offset:s==="end"?E.text.length:0}}if(_e.isRange(r)){var[C,A]=_e.edges(r);return s==="start"?C:A}return r};function v3(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=a.selection,unit:u="offset",reverse:s=!1,voids:h=!1}=t;if(!r)return;var g=j.range(a,r),[y,E]=_e.edges(g),C=s?E:y,A=!1,T="",N=0,R=0,z=0;for(var[V,L]of j.nodes(a,{at:r,reverse:s,voids:h})){if(mt.isElement(V)){if(!a.isSelectable(V))if(s){yield j.end(a,ie.previous(L));continue}else{yield j.start(a,ie.next(L));continue}if(!h&&(a.isVoid(V)||a.isElementReadOnly(V))){yield j.start(a,L);continue}if(a.isInline(V))continue;if(j.hasInlines(a,V)){var M=ie.isAncestor(L,E.path)?E:j.end(a,L),x=ie.isAncestor(L,y.path)?y:j.start(a,L);T=j.string(a,{anchor:x,focus:M},{voids:h}),A=!0}}if(Et.isText(V)){var B=ie.equals(L,C.path);for(B?(R=s?C.offset:V.text.length-C.offset,z=C.offset):(R=V.text.length,z=s?R:0),(B||A||u==="offset")&&(yield{path:L,offset:z},A=!1);;){if(N===0){if(T==="")break;N=H(T,u,s),T=VC(T,N,s)[1]}if(z=s?z-N:z+N,R=R-N,R<0){N=-R;break}N=0,yield{path:L,offset:z}}}}function H(G,W,X){return W==="character"?HC(G,X):W==="word"?KR(G,X):W==="line"||W==="block"?G.length:1}}()}var g3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:u="lowest",voids:s=!1}=r,{match:h,at:g=t.selection}=r;if(g){var y=j.before(t,g,{voids:s});if(y){var[,E]=j.first(t,[]),C=[y.path,E];if(ie.isPath(g)&&g.length===0)throw new Error("Cannot get the previous node from the root node!");if(h==null)if(ie.isPath(g)){var[A]=j.parent(t,g);h=N=>A.children.includes(N)}else h=()=>!0;var[T]=j.nodes(t,{reverse:!0,at:C,match:h,mode:u,voids:s});return T}}},y3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:s="forward"}=u,h={current:r,affinity:s,unref(){var{current:y}=h,E=j.rangeRefs(t);return E.delete(h),h.current=null,y}},g=j.rangeRefs(t);return g.add(h),h},b3=a=>{var t=mA.get(a);return t||(t=new Set,mA.set(a,t)),t},S3=(a,t,r)=>{if(_e.isRange(t)&&!r)return t;var u=j.start(a,t),s=j.end(a,r||t);return{anchor:u,focus:s}};function HA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function D3(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var E3=(a,t)=>{var{selection:r}=a;if(r){var u=(A,T)=>{if(!Et.isText(A))return!1;var[N,R]=j.parent(a,T);return!a.isVoid(N)||a.markableVoid(N)},s=_e.isExpanded(r),h=!1;if(!s){var[g,y]=j.node(a,r);if(g&&u(g,y)){var[E]=j.parent(a,y);h=E&&a.markableVoid(E)}}if(s||h)He.unsetNodes(a,t,{match:u,split:!0,voids:!0});else{var C=D3({},j.marks(a)||{});delete C[t],a.marks=C,xb.get(a)||a.onChange()}}},C3=(a,t)=>{Rk.set(a,t)},w3=(a,t)=>j.point(a,t,{edge:"start"}),x3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:s=!1}=u,h=j.range(t,r),[g,y]=_e.edges(h),E="";for(var[C,A]of j.nodes(t,{at:h,match:Et.isText,voids:s})){var T=C.text;ie.equals(A,y.path)&&(T=T.slice(0,y.offset)),ie.equals(A,g.path)&&(T=T.slice(g.offset)),E+=T}return E},A3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:s=!1}=u,[h,g]=_e.edges(r);if(h.offset!==0||g.offset!==0||_e.isCollapsed(r)||ie.hasPrevious(g.path))return r;var y=j.above(t,{at:g,match:z=>mt.isElement(z)&&j.isBlock(t,z),voids:s}),E=y?y[1]:[],C=j.start(t,h),A={anchor:C,focus:g},T=!0;for(var[N,R]of j.nodes(t,{at:A,match:Et.isText,reverse:!0,voids:s})){if(T){T=!1;continue}if(N.text!==""||ie.isBefore(R,E)){g={path:R,offset:N.text.length};break}}return{anchor:h,focus:g}},O3=(a,t)=>{var r=j.isNormalizing(a);j.setNormalizing(a,!1);try{t()}finally{j.setNormalizing(a,r)}j.normalize(a)},T3=(a,t,r)=>{var[u,s]=t;return mt.isElement(u)&&j.isEmpty(a,u)||Et.isText(u)&&u.text===""&&s[s.length-1]!==0},k3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var u,s,{reverse:h=!1,unit:g="character",distance:y=1,voids:E=!1}=r,{at:C=t.selection,hanging:A=!1}=r;if(C){var T=!1;if(_e.isRange(C)&&_e.isCollapsed(C)&&(T=!0,C=C.anchor),ra.isPoint(C)){var N=j.void(t,{at:C,mode:"highest"});if(!E&&N){var[,R]=N;C=R}else{var z={unit:g,distance:y},V=h?j.before(t,C,z)||j.start(t,[]):j.after(t,C,z)||j.end(t,[]);C={anchor:C,focus:V},A=!0}}if(ie.isPath(C)){He.removeNodes(t,{at:C,voids:E});return}if(!_e.isCollapsed(C)){if(!A){var[,L]=_e.edges(C),M=j.end(t,[]);ra.equals(L,M)||(C=j.unhangRange(t,C,{voids:E}))}var[x,B]=_e.edges(C),H=j.above(t,{match:tt=>mt.isElement(tt)&&j.isBlock(t,tt),at:x,voids:E}),G=j.above(t,{match:tt=>mt.isElement(tt)&&j.isBlock(t,tt),at:B,voids:E}),W=H&&G&&!ie.equals(H[1],G[1]),X=ie.equals(x.path,B.path),ee=E?null:(u=j.void(t,{at:x,mode:"highest"}))!==null&&u!==void 0?u:j.elementReadOnly(t,{at:x,mode:"highest"}),J=E?null:(s=j.void(t,{at:B,mode:"highest"}))!==null&&s!==void 0?s:j.elementReadOnly(t,{at:B,mode:"highest"});if(ee){var De=j.before(t,x);De&&H&&ie.isAncestor(H[1],De.path)&&(x=De)}if(J){var ke=j.after(t,B);ke&&G&&ie.isAncestor(G[1],ke.path)&&(B=ke)}var ye=[],be;for(var Ee of j.nodes(t,{at:C,voids:E})){var[ze,K]=Ee;be&&ie.compare(K,be)===0||(!E&&mt.isElement(ze)&&(j.isVoid(t,ze)||j.isElementReadOnly(t,ze))||!ie.isCommon(K,x.path)&&!ie.isCommon(K,B.path))&&(ye.push(Ee),be=K)}var ue=Array.from(ye,tt=>{var[,jn]=tt;return j.pathRef(t,jn)}),pe=j.pointRef(t,x),Ve=j.pointRef(t,B),fe="";if(!X&&!ee){var Re=pe.current,[Le]=j.leaf(t,Re),{path:he}=Re,{offset:nt}=x,bt=Le.text.slice(nt);bt.length>0&&(t.apply({type:"remove_text",path:he,offset:nt,text:bt}),fe=bt)}if(ue.reverse().map(tt=>tt.unref()).filter(tt=>tt!==null).forEach(tt=>He.removeNodes(t,{at:tt,voids:E})),!J){var rt=Ve.current,[_n]=j.leaf(t,rt),{path:Ft}=rt,oe=X?x.offset:0,Qe=_n.text.slice(oe,B.offset);Qe.length>0&&(t.apply({type:"remove_text",path:Ft,offset:oe,text:Qe}),fe=Qe)}!X&&W&&Ve.current&&pe.current&&He.mergeNodes(t,{at:Ve.current,hanging:!0,voids:E}),T&&h&&g==="character"&&fe.length>1&&fe.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&He.insertText(t,fe.slice(0,fe.length-y));var Ne=pe.unref(),Ie=Ve.unref(),St=h?Ne||Ie:Ie||Ne;r.at==null&&St&&He.select(t,St)}}})},N3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j.withoutNormalizing(t,()=>{var{hanging:s=!1,voids:h=!1}=u,{at:g=UC(t),batchDirty:y=!0}=u;if(r.length){if(_e.isRange(g))if(s||(g=j.unhangRange(t,g,{voids:h})),_e.isCollapsed(g))g=g.anchor;else{var[,E]=_e.edges(g);if(!h&&j.void(t,{at:E}))return;var C=j.pointRef(t,E);He.delete(t,{at:g}),g=C.unref()}else ie.isPath(g)&&(g=j.start(t,g));if(!(!h&&j.void(t,{at:g}))){var A=j.above(t,{at:g,match:he=>mt.isElement(he)&&j.isInline(t,he),mode:"highest",voids:h});if(A){var[,T]=A;if(j.isEnd(t,g,T)){var N=j.after(t,T);g=N}else if(j.isStart(t,g,T)){var R=j.before(t,T);g=R}}var z=j.above(t,{match:he=>mt.isElement(he)&&j.isBlock(t,he),at:g,voids:h}),[,V]=z,L=j.isStart(t,g,V),M=j.isEnd(t,g,V),x=L&&M,[,B]=dt.first({children:r},[]),[,H]=dt.last({children:r},[]),G=he=>{var[nt,bt]=he,rt=bt.length===0;return rt?!1:x?!0:!(!L&&ie.isAncestor(bt,B)&&mt.isElement(nt)&&!t.isVoid(nt)&&!t.isInline(nt)||!M&&ie.isAncestor(bt,H)&&mt.isElement(nt)&&!t.isVoid(nt)&&!t.isInline(nt))},W=!0,X=[],ee=[],J=[];for(var De of dt.nodes({children:r},{pass:G})){var[ke,ye]=De;W&&mt.isElement(ke)&&!t.isInline(ke)&&!ie.isAncestor(ye,B)&&(W=!1),G(De)&&(mt.isElement(ke)&&!t.isInline(ke)?(W=!1,ee.push(ke)):W?X.push(ke):J.push(ke))}var[be]=j.nodes(t,{at:g,match:he=>Et.isText(he)||j.isInline(t,he),mode:"highest",voids:h}),[,Ee]=be,ze=j.isStart(t,g,Ee),K=j.isEnd(t,g,Ee),ue=j.pathRef(t,M&&!J.length?ie.next(V):V),pe=j.pathRef(t,K?ie.next(Ee):Ee),Ve=J.length>0;He.splitNodes(t,{at:g,match:he=>Ve?mt.isElement(he)&&j.isBlock(t,he):Et.isText(he)||j.isInline(t,he),mode:Ve?"lowest":"highest",always:Ve&&(!L||X.length>0)&&(!M||J.length>0),voids:h});var fe=j.pathRef(t,!ze||ze&&K?ie.next(Ee):Ee);if(He.insertNodes(t,X,{at:fe.current,match:he=>Et.isText(he)||j.isInline(t,he),mode:"highest",voids:h,batchDirty:y}),x&&!X.length&&ee.length&&!J.length&&He.delete(t,{at:V,voids:h}),He.insertNodes(t,ee,{at:ue.current,match:he=>mt.isElement(he)&&j.isBlock(t,he),mode:"lowest",voids:h,batchDirty:y}),He.insertNodes(t,J,{at:pe.current,match:he=>Et.isText(he)||j.isInline(t,he),mode:"highest",voids:h,batchDirty:y}),!u.at){var Re;if(J.length>0&&pe.current?Re=ie.previous(pe.current):ee.length>0&&ue.current?Re=ie.previous(ue.current):fe.current&&(Re=ie.previous(fe.current)),Re){var Le=j.end(t,Re);He.select(t,Le)}}fe.unref(),ue.unref(),pe.unref()}}})},R3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:u="anchor"}=r,{selection:s}=t;if(s){if(u==="anchor")He.select(t,s.anchor);else if(u==="focus")He.select(t,s.focus);else if(u==="start"){var[h]=_e.edges(s);He.select(t,h)}else if(u==="end"){var[,g]=_e.edges(s);He.select(t,g)}}else return},B3=a=>{var{selection:t}=a;t&&a.apply({type:"set_selection",properties:t,newProperties:null})},_3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:u}=t,{distance:s=1,unit:h="character",reverse:g=!1}=r,{edge:y=null}=r;if(u){y==="start"&&(y=_e.isBackward(u)?"focus":"anchor"),y==="end"&&(y=_e.isBackward(u)?"anchor":"focus");var{anchor:E,focus:C}=u,A={distance:s,unit:h},T={};if(y==null||y==="anchor"){var N=g?j.before(t,E,A):j.after(t,E,A);N&&(T.anchor=N)}if(y==null||y==="focus"){var R=g?j.before(t,C,A):j.after(t,C,A);R&&(T.focus=R)}He.setSelection(t,T)}},F3=(a,t)=>{var{selection:r}=a;if(t=j.range(a,t),r){He.setSelection(a,t);return}if(!_e.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ni.stringify(t)));a.apply({type:"set_selection",properties:r,newProperties:t})};function VA(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function qA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var M3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:s}=t,{edge:h="both"}=u;if(s){h==="start"&&(h=_e.isBackward(s)?"focus":"anchor"),h==="end"&&(h=_e.isBackward(s)?"anchor":"focus");var{anchor:g,focus:y}=s,E=h==="anchor"?g:y;He.setSelection(t,{[h==="anchor"?"anchor":"focus"]:qA(qA({},E),r)})}},z3=(a,t)=>{var{selection:r}=a,u={},s={};if(r){for(var h in t)(h==="anchor"&&t.anchor!=null&&!ra.equals(t.anchor,r.anchor)||h==="focus"&&t.focus!=null&&!ra.equals(t.focus,r.focus)||h!=="anchor"&&h!=="focus"&&t[h]!==r[h])&&(u[h]=r[h],s[h]=t[h]);Object.keys(u).length>0&&a.apply({type:"set_selection",properties:u,newProperties:s})}},j3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j.withoutNormalizing(t,()=>{var{hanging:s=!1,voids:h=!1,mode:g="lowest",batchDirty:y=!0}=u,{at:E,match:C,select:A}=u;if(dt.isNode(r)&&(r=[r]),r.length!==0){var[T]=r;if(E||(E=UC(t),A!==!1&&(A=!0)),A==null&&(A=!1),_e.isRange(E))if(s||(E=j.unhangRange(t,E,{voids:h})),_e.isCollapsed(E))E=E.anchor;else{var[,N]=_e.edges(E),R=j.pointRef(t,N);He.delete(t,{at:E}),E=R.unref()}if(ra.isPoint(E)){C==null&&(Et.isText(T)?C=De=>Et.isText(De):t.isInline(T)?C=De=>Et.isText(De)||j.isInline(t,De):C=De=>mt.isElement(De)&&j.isBlock(t,De));var[z]=j.nodes(t,{at:E.path,match:C,mode:g,voids:h});if(z){var[,V]=z,L=j.pathRef(t,V),M=j.isEnd(t,E,V);He.splitNodes(t,{at:E,match:C,mode:g,voids:h});var x=L.unref();E=M?ie.next(x):x}else return}var B=ie.parent(E),H=E[E.length-1];if(!(!h&&j.void(t,{at:B}))){if(y){var G=[],W=ie.levels(B);bB(t,()=>{var De=function(){var be=B.concat(H);H++;var Ee={type:"insert_node",path:be,node:ke};t.apply(Ee),E=ie.next(E),G.push(Ee),Et.isText(ke)?W.push(be):W.push(...Array.from(dt.nodes(ke),ze=>{var[,K]=ze;return be.concat(K)}))};for(var ke of r)De()},()=>{_k(t,W,De=>{var ke=De;for(var ye of G)if(ie.operationCanTransformPath(ye)&&(ke=ie.transform(ke,ye),!ke))return null;return ke})})}else for(var X of r){var ee=B.concat(H);H++,t.apply({type:"insert_node",path:ee,node:X}),E=ie.next(E)}if(E=ie.previous(E),A){var J=j.end(t,E);J&&He.select(t,J)}}}})},L3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var{at:u=t.selection,mode:s="lowest",voids:h=!1}=r,{match:g}=r;if(g==null&&(g=ie.isPath(u)?A0(t,u):H=>mt.isElement(H)&&j.isBlock(t,H)),!!u){var y=j.nodes(t,{at:u,match:g,mode:s,voids:h}),E=Array.from(y,H=>{var[,G]=H;return j.pathRef(t,G)});for(var C of E){var A=C.unref();if(A.length<2)throw new Error("Cannot lift node at a path [".concat(A,"] because it has a depth of less than `2`."));var T=j.node(t,ie.parent(A)),[N,R]=T,z=A[A.length-1],{length:V}=N.children;if(V===1){var L=ie.next(R);He.moveNodes(t,{at:A,to:L,voids:h}),He.removeNodes(t,{at:R,voids:h})}else if(z===0)He.moveNodes(t,{at:A,to:R,voids:h});else if(z===V-1){var M=ie.next(R);He.moveNodes(t,{at:A,to:M,voids:h})}else{var x=ie.next(A),B=ie.next(R);He.splitNodes(t,{at:x,voids:h}),He.moveNodes(t,{at:A,to:B,voids:h})}}}})},U3=["text"],H3=["children"],Fk=(a,t)=>{if(mt.isElement(t)){var r=t;return j.isVoid(a,t)?!0:r.children.length===1?Fk(a,r.children[0]):!1}else return!j.isEditor(t)},V3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var{match:u,at:s=t.selection}=r,{hanging:h=!1,voids:g=!1,mode:y="lowest"}=r;if(s){if(u==null)if(ie.isPath(s)){var[E]=j.parent(t,s);u=De=>E.children.includes(De)}else u=De=>mt.isElement(De)&&j.isBlock(t,De);if(!h&&_e.isRange(s)&&(s=j.unhangRange(t,s,{voids:g})),_e.isRange(s))if(_e.isCollapsed(s))s=s.anchor;else{var[,C]=_e.edges(s),A=j.pointRef(t,C);He.delete(t,{at:s}),s=A.unref(),r.at==null&&He.select(t,s)}var[T]=j.nodes(t,{at:s,match:u,voids:g,mode:y}),N=j.previous(t,{at:s,match:u,voids:g,mode:y});if(!(!T||!N)){var[R,z]=T,[V,L]=N;if(!(z.length===0||L.length===0)){var M=ie.next(L),x=ie.common(z,L),B=ie.isSibling(z,L),H=Array.from(j.levels(t,{at:z}),De=>{var[ke]=De;return ke}).slice(x.length).slice(0,-1),G=j.above(t,{at:z,mode:"highest",match:De=>H.includes(De)&&Fk(t,De)}),W=G&&j.pathRef(t,G[1]),X,ee;if(Et.isText(R)&&Et.isText(V)){var J=Xh(R,U3);ee=V.text.length,X=J}else if(mt.isElement(R)&&mt.isElement(V)){var J=Xh(R,H3);ee=V.children.length,X=J}else throw new Error("Cannot merge the node at path [".concat(z,"] with the previous sibling because it is not the same kind: ").concat(ni.stringify(R)," ").concat(ni.stringify(V)));B||He.moveNodes(t,{at:z,to:M,voids:g}),W&&He.removeNodes(t,{at:W.current,voids:g}),j.shouldMergeNodesRemovePrevNode(t,N,T)?He.removeNodes(t,{at:L,voids:g}):t.apply({type:"merge_node",path:M,position:ee,properties:X}),W&&W.unref()}}}})},q3=(a,t)=>{j.withoutNormalizing(a,()=>{var{to:r,at:u=a.selection,mode:s="lowest",voids:h=!1}=t,{match:g}=t;if(u){g==null&&(g=ie.isPath(u)?A0(a,u):R=>mt.isElement(R)&&j.isBlock(a,R));var y=j.pathRef(a,r),E=j.nodes(a,{at:u,match:g,mode:s,voids:h}),C=Array.from(E,R=>{var[,z]=R;return j.pathRef(a,z)});for(var A of C){var T=A.unref(),N=y.current;T.length!==0&&a.apply({type:"move_node",path:T,newPath:N}),y.current&&ie.isSibling(N,T)&&ie.isAfter(N,T)&&(y.current=ie.next(y.current))}y.unref()}})},$3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var{hanging:u=!1,voids:s=!1,mode:h="lowest"}=r,{at:g=t.selection,match:y}=r;if(g){y==null&&(y=ie.isPath(g)?A0(t,g):R=>mt.isElement(R)&&j.isBlock(t,R)),!u&&_e.isRange(g)&&(g=j.unhangRange(t,g,{voids:s}));var E=j.nodes(t,{at:g,match:y,mode:h,voids:s}),C=Array.from(E,R=>{var[,z]=R;return j.pathRef(t,z)});for(var A of C){var T=A.unref();if(T){var[N]=j.node(t,T);t.apply({type:"remove_node",path:T,node:N})}}}})},G3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j.withoutNormalizing(t,()=>{var{match:s,at:h=t.selection,compare:g,merge:y}=u,{hanging:E=!1,mode:C="lowest",split:A=!1,voids:T=!1}=u;if(h){if(s==null&&(s=ie.isPath(h)?A0(t,h):ee=>mt.isElement(ee)&&j.isBlock(t,ee)),!E&&_e.isRange(h)&&(h=j.unhangRange(t,h,{voids:T})),A&&_e.isRange(h)){if(_e.isCollapsed(h)&&j.leaf(t,h.anchor)[0].text.length>0)return;var N=j.rangeRef(t,h,{affinity:"inward"}),[R,z]=_e.edges(h),V=C==="lowest"?"lowest":"highest",L=j.isEnd(t,z,z.path);He.splitNodes(t,{at:z,match:s,mode:V,voids:T,always:!L});var M=j.isStart(t,R,R.path);He.splitNodes(t,{at:R,match:s,mode:V,voids:T,always:!M}),h=N.unref(),u.at==null&&He.select(t,h)}g||(g=(ee,J)=>ee!==J);for(var[x,B]of j.nodes(t,{at:h,match:s,mode:C,voids:T})){var H={},G={};if(B.length!==0){var W=!1;for(var X in r)X==="children"||X==="text"||g(r[X],x[X])&&(W=!0,x.hasOwnProperty(X)&&(H[X]=x[X]),y?r[X]!=null&&(G[X]=y(x[X],r[X])):r[X]!=null&&(G[X]=r[X]));W&&t.apply({type:"set_node",path:B,properties:H,newProperties:G})}}}})},Y3=(a,t)=>{if(_e.isCollapsed(t))return t.anchor;var[,r]=_e.edges(t),u=j.pointRef(a,r);return He.delete(a,{at:t}),u.unref()},P3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var{mode:u="lowest",voids:s=!1}=r,{match:h,at:g=t.selection,height:y=0,always:E=!1}=r;if(h==null&&(h=Ve=>mt.isElement(Ve)&&j.isBlock(t,Ve)),_e.isRange(g)&&(g=Y3(t,g)),ie.isPath(g)){var C=g,A=j.point(t,C),[T]=j.parent(t,C);h=Ve=>Ve===T,y=A.path.length-C.length+1,g=A,E=!0}if(g){var N=j.pointRef(t,g,{affinity:"backward"}),R;try{var[z]=j.nodes(t,{at:g,match:h,mode:u,voids:s});if(!z)return;var V=j.void(t,{at:g,mode:"highest"}),L=0;if(!s&&V){var[M,x]=V;if(mt.isElement(M)&&t.isInline(M)){var B=j.after(t,x);if(!B){var H={text:""},G=ie.next(x);He.insertNodes(t,H,{at:G,voids:s}),B=j.point(t,G)}g=B,E=!0}var W=g.path.length-x.length;y=W+1,E=!0}R=j.pointRef(t,g);var X=g.path.length-y,[,ee]=z,J=g.path.slice(0,X),De=y===0?g.offset:g.path[X]+L;for(var[ke,ye]of j.levels(t,{at:J,reverse:!0,voids:s})){var be=!1;if(ye.length<ee.length||ye.length===0||!s&&mt.isElement(ke)&&j.isVoid(t,ke))break;var Ee=N.current,ze=j.isEnd(t,Ee,ye);if(E||!N||!j.isEdge(t,Ee,ye)){be=!0;var K=dt.extractProps(ke);t.apply({type:"split_node",path:ye,position:De,properties:K})}De=ye[ye.length-1]+(be||ze?1:0)}if(r.at==null){var ue=R.current||j.end(t,[]);He.select(t,ue)}}finally{var pe;N.unref(),(pe=R)===null||pe===void 0||pe.unref()}}})},Q3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var s={};for(var h of r)s[h]=null;He.setNodes(t,s,u)},X3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j.withoutNormalizing(t,()=>{var{mode:u="lowest",split:s=!1,voids:h=!1}=r,{at:g=t.selection,match:y}=r;if(g){y==null&&(y=ie.isPath(g)?A0(t,g):R=>mt.isElement(R)&&j.isBlock(t,R)),ie.isPath(g)&&(g=j.range(t,g));var E=_e.isRange(g)?j.rangeRef(t,g):null,C=j.nodes(t,{at:g,match:y,mode:u,voids:h}),A=Array.from(C,R=>{var[,z]=R;return j.pathRef(t,z)}).reverse(),T=function(){var z=N.unref(),[V]=j.node(t,z),L=j.range(t,z);s&&E&&(L=_e.intersection(E.current,L)),He.liftNodes(t,{at:L,match:M=>mt.isAncestor(V)&&V.children.includes(M),voids:h})};for(var N of A)T();E&&E.unref()}})};function $A(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function GA(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(u){yl(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var I3=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j.withoutNormalizing(t,()=>{var{mode:s="lowest",split:h=!1,voids:g=!1}=u,{match:y,at:E=t.selection}=u;if(E){if(y==null&&(ie.isPath(E)?y=A0(t,E):t.isInline(r)?y=L=>mt.isElement(L)&&j.isInline(t,L)||Et.isText(L):y=L=>mt.isElement(L)&&j.isBlock(t,L)),h&&_e.isRange(E)){var[C,A]=_e.edges(E),T=j.rangeRef(t,E,{affinity:"inward"});He.splitNodes(t,{at:A,match:y,voids:g}),He.splitNodes(t,{at:C,match:y,voids:g}),E=T.unref(),u.at==null&&He.select(t,E)}var N=Array.from(j.nodes(t,{at:E,match:t.isInline(r)?L=>mt.isElement(L)&&j.isBlock(t,L):L=>j.isEditor(L),mode:"lowest",voids:g})),R=function(){var M=_e.isRange(E)?_e.intersection(E,j.range(t,V)):E;if(!M)return 0;var x=Array.from(j.nodes(t,{at:M,match:y,mode:s,voids:g}));if(x.length>0){var[B]=x,H=x[x.length-1],[,G]=B,[,W]=H;if(G.length===0&&W.length===0)return 0;var X=ie.equals(G,W)?ie.parent(G):ie.common(G,W),ee=j.range(t,G,W),J=j.node(t,X),[De]=J,ke=X.length+1,ye=ie.next(W.slice(0,ke)),be=GA(GA({},r),{},{children:[]});He.insertNodes(t,be,{at:ye,voids:g}),He.moveNodes(t,{at:ee,match:Ee=>mt.isAncestor(De)&&De.children.includes(Ee),to:ye.concat(0),voids:g})}},z;for(var[,V]of N)z=R()}})},Z3=()=>{var a={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return SB(a,...u)},addMark:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return AB(a,...u)},deleteBackward:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return kB(a,...u)},deleteForward:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return NB(a,...u)},deleteFragment:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return RB(a,...u)},getFragment:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return EB(a,...u)},insertBreak:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return qB(a,...u)},insertSoftBreak:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return GB(a,...u)},insertFragment:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return N3(a,...u)},insertNode:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return $B(a,...u)},insertText:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return PB(a,...u)},normalizeNode:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return CB(a,...u)},removeMark:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return E3(a,...u)},getDirtyPaths:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return DB(a,...u)},shouldNormalize:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return wB(a,...u)},above:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return xB(a,...u)},after:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return OB(a,...u)},before:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return TB(a,...u)},collapse:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return R3(a,...u)},delete:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return k3(a,...u)},deselect:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return B3(a,...u)},edges:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return BB(a,...u)},elementReadOnly:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return _B(a,...u)},end:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return FB(a,...u)},first:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return MB(a,...u)},fragment:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return zB(a,...u)},getMarks:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return r3(a,...u)},hasBlocks:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return LB(a,...u)},hasInlines:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return UB(a,...u)},hasPath:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return HB(a,...u)},hasTexts:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return VB(a,...u)},insertNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return j3(a,...u)},isBlock:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return QB(a,...u)},isEdge:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return XB(a,...u)},isEmpty:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return IB(a,...u)},isEnd:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return ZB(a,...u)},isNormalizing:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return KB(a,...u)},isStart:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return WB(a,...u)},last:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return JB(a,...u)},leaf:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return e3(a,...u)},levels:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return t3(a,...u)},liftNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return L3(a,...u)},mergeNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return V3(a,...u)},move:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return _3(a,...u)},moveNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return q3(a,...u)},next:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return i3(a,...u)},node:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return u3(a,...u)},nodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return l3(a,...u)},normalize:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return o3(a,...u)},parent:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return s3(a,...u)},path:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return d3(a,...u)},pathRef:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return c3(a,...u)},pathRefs:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return f3(a,...u)},point:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return m3(a,...u)},pointRef:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return h3(a,...u)},pointRefs:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return p3(a,...u)},positions:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return v3(a,...u)},previous:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return g3(a,...u)},range:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return S3(a,...u)},rangeRef:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return y3(a,...u)},rangeRefs:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return b3(a,...u)},removeNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return $3(a,...u)},select:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return F3(a,...u)},setNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return G3(a,...u)},setNormalizing:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return C3(a,...u)},setPoint:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return M3(a,...u)},setSelection:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return z3(a,...u)},splitNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return P3(a,...u)},start:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return w3(a,...u)},string:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return x3(a,...u)},unhangRange:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return A3(a,...u)},unsetNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return Q3(a,...u)},unwrapNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return X3(a,...u)},void:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return jB(a,...u)},withoutNormalizing:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return O3(a,...u)},wrapNodes:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return I3(a,...u)},shouldMergeNodesRemovePrevNode:function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return T3(a,...u)}};return a},oE,YA;function K3(){if(YA)return oE;YA=1,oE=s;var a="֑-߿יִ-﷽ﹰ-ﻼ",t="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",r=new RegExp("^[^"+t+"]*["+a+"]"),u=new RegExp("^[^"+a+"]*["+t+"]");function s(h){return h=String(h||""),r.test(h)?"rtl":u.test(h)?"ltr":"neutral"}return oE}var W3=K3();const Mk=Xm(W3);var sE,PA;function qC(){if(PA)return sE;PA=1;function a(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return sE=a,sE}var cE,QA;function J3(){if(QA)return cE;QA=1;var a=typeof qs=="object"&&qs&&qs.Object===Object&&qs;return cE=a,cE}var fE,XA;function zk(){if(XA)return fE;XA=1;var a=J3(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=a||t||Function("return this")();return fE=r,fE}var dE,IA;function e_(){if(IA)return dE;IA=1;var a=zk(),t=function(){return a.Date.now()};return dE=t,dE}var hE,ZA;function t_(){if(ZA)return hE;ZA=1;var a=/\s/;function t(r){for(var u=r.length;u--&&a.test(r.charAt(u)););return u}return hE=t,hE}var pE,KA;function n_(){if(KA)return pE;KA=1;var a=t_(),t=/^\s+/;function r(u){return u&&u.slice(0,a(u)+1).replace(t,"")}return pE=r,pE}var mE,WA;function jk(){if(WA)return mE;WA=1;var a=zk(),t=a.Symbol;return mE=t,mE}var vE,JA;function a_(){if(JA)return vE;JA=1;var a=jk(),t=Object.prototype,r=t.hasOwnProperty,u=t.toString,s=a?a.toStringTag:void 0;function h(g){var y=r.call(g,s),E=g[s];try{g[s]=void 0;var C=!0}catch{}var A=u.call(g);return C&&(y?g[s]=E:delete g[s]),A}return vE=h,vE}var gE,eO;function r_(){if(eO)return gE;eO=1;var a=Object.prototype,t=a.toString;function r(u){return t.call(u)}return gE=r,gE}var yE,tO;function i_(){if(tO)return yE;tO=1;var a=jk(),t=a_(),r=r_(),u="[object Null]",s="[object Undefined]",h=a?a.toStringTag:void 0;function g(y){return y==null?y===void 0?s:u:h&&h in Object(y)?t(y):r(y)}return yE=g,yE}var bE,nO;function u_(){if(nO)return bE;nO=1;function a(t){return t!=null&&typeof t=="object"}return bE=a,bE}var SE,aO;function l_(){if(aO)return SE;aO=1;var a=i_(),t=u_(),r="[object Symbol]";function u(s){return typeof s=="symbol"||t(s)&&a(s)==r}return SE=u,SE}var DE,rO;function o_(){if(rO)return DE;rO=1;var a=n_(),t=qC(),r=l_(),u=NaN,s=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^0o[0-7]+$/i,y=parseInt;function E(C){if(typeof C=="number")return C;if(r(C))return u;if(t(C)){var A=typeof C.valueOf=="function"?C.valueOf():C;C=t(A)?A+"":A}if(typeof C!="string")return C===0?C:+C;C=a(C);var T=h.test(C);return T||g.test(C)?y(C.slice(2),T?2:8):s.test(C)?u:+C}return DE=E,DE}var EE,iO;function Lk(){if(iO)return EE;iO=1;var a=qC(),t=e_(),r=o_(),u="Expected a function",s=Math.max,h=Math.min;function g(y,E,C){var A,T,N,R,z,V,L=0,M=!1,x=!1,B=!0;if(typeof y!="function")throw new TypeError(u);E=r(E)||0,a(C)&&(M=!!C.leading,x="maxWait"in C,N=x?s(r(C.maxWait)||0,E):N,B="trailing"in C?!!C.trailing:B);function H(be){var Ee=A,ze=T;return A=T=void 0,L=be,R=y.apply(ze,Ee),R}function G(be){return L=be,z=setTimeout(ee,E),M?H(be):R}function W(be){var Ee=be-V,ze=be-L,K=E-Ee;return x?h(K,N-ze):K}function X(be){var Ee=be-V,ze=be-L;return V===void 0||Ee>=E||Ee<0||x&&ze>=N}function ee(){var be=t();if(X(be))return J(be);z=setTimeout(ee,W(be))}function J(be){return z=void 0,B&&A?H(be):(A=T=void 0,R)}function De(){z!==void 0&&clearTimeout(z),L=0,A=V=T=z=void 0}function ke(){return z===void 0?R:J(t())}function ye(){var be=t(),Ee=X(be);if(A=arguments,T=this,V=be,Ee){if(z===void 0)return G(V);if(x)return clearTimeout(z),z=setTimeout(ee,E),H(V)}return z===void 0&&(z=setTimeout(ee,E)),R}return ye.cancel=De,ye.flush=ke,ye}return EE=g,EE}var s_=Lk();const c_=Xm(s_);var CE,uO;function f_(){if(uO)return CE;uO=1;var a=Lk(),t=qC(),r="Expected a function";function u(s,h,g){var y=!0,E=!0;if(typeof s!="function")throw new TypeError(r);return t(g)&&(y="leading"in g?!!g.leading:y,E="trailing"in g?!!g.trailing:E),a(s,h,{leading:y,maxWait:h,trailing:E})}return CE=u,CE}var d_=f_();const h_=Xm(d_),lO=a=>typeof a=="object"&&a!=null&&a.nodeType===1,oO=(a,t)=>(!t||a!=="hidden")&&a!=="visible"&&a!=="clip",L1=(a,t)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const r=getComputedStyle(a,null);return oO(r.overflowY,t)||oO(r.overflowX,t)||(u=>{const s=(h=>{if(!h.ownerDocument||!h.ownerDocument.defaultView)return null;try{return h.ownerDocument.defaultView.frameElement}catch{return null}})(u);return!!s&&(s.clientHeight<u.scrollHeight||s.clientWidth<u.scrollWidth)})(a)}return!1},U1=(a,t,r,u,s,h,g,y)=>h<a&&g>t||h>a&&g<t?0:h<=a&&y<=r||g>=t&&y>=r?h-a-u:g>t&&y<r||h<a&&y>r?g-t+s:0,p_=a=>{const t=a.parentElement;return t??(a.getRootNode().host||null)},sO=(a,t)=>{var r,u,s,h;if(typeof document>"u")return[];const{scrollMode:g,block:y,inline:E,boundary:C,skipOverflowHiddenElements:A}=t,T=typeof C=="function"?C:K=>K!==C;if(!lO(a))throw new TypeError("Invalid target");const N=document.scrollingElement||document.documentElement,R=[];let z=a;for(;lO(z)&&T(z);){if(z=p_(z),z===N){R.push(z);break}z!=null&&z===document.body&&L1(z)&&!L1(document.documentElement)||z!=null&&L1(z,A)&&R.push(z)}const V=(u=(r=window.visualViewport)==null?void 0:r.width)!=null?u:innerWidth,L=(h=(s=window.visualViewport)==null?void 0:s.height)!=null?h:innerHeight,{scrollX:M,scrollY:x}=window,{height:B,width:H,top:G,right:W,bottom:X,left:ee}=a.getBoundingClientRect(),{top:J,right:De,bottom:ke,left:ye}=(K=>{const ue=window.getComputedStyle(K);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(a);let be=y==="start"||y==="nearest"?G-J:y==="end"?X+ke:G+B/2-J+ke,Ee=E==="center"?ee+H/2-ye+De:E==="end"?W+De:ee-ye;const ze=[];for(let K=0;K<R.length;K++){const ue=R[K],{height:pe,width:Ve,top:fe,right:Re,bottom:Le,left:he}=ue.getBoundingClientRect();if(g==="if-needed"&&G>=0&&ee>=0&&X<=L&&W<=V&&(ue===N&&!L1(ue)||G>=fe&&X<=Le&&ee>=he&&W<=Re))return ze;const nt=getComputedStyle(ue),bt=parseInt(nt.borderLeftWidth,10),rt=parseInt(nt.borderTopWidth,10),_n=parseInt(nt.borderRightWidth,10),Ft=parseInt(nt.borderBottomWidth,10);let oe=0,Qe=0;const Ne="offsetWidth"in ue?ue.offsetWidth-ue.clientWidth-bt-_n:0,Ie="offsetHeight"in ue?ue.offsetHeight-ue.clientHeight-rt-Ft:0,St="offsetWidth"in ue?ue.offsetWidth===0?0:Ve/ue.offsetWidth:0,tt="offsetHeight"in ue?ue.offsetHeight===0?0:pe/ue.offsetHeight:0;if(N===ue)oe=y==="start"?be:y==="end"?be-L:y==="nearest"?U1(x,x+L,L,rt,Ft,x+be,x+be+B,B):be-L/2,Qe=E==="start"?Ee:E==="center"?Ee-V/2:E==="end"?Ee-V:U1(M,M+V,V,bt,_n,M+Ee,M+Ee+H,H),oe=Math.max(0,oe+x),Qe=Math.max(0,Qe+M);else{oe=y==="start"?be-fe-rt:y==="end"?be-Le+Ft+Ie:y==="nearest"?U1(fe,Le,pe,rt,Ft+Ie,be,be+B,B):be-(fe+pe/2)+Ie/2,Qe=E==="start"?Ee-he-bt:E==="center"?Ee-(he+Ve/2)+Ne/2:E==="end"?Ee-Re+_n+Ne:U1(he,Re,Ve,bt,_n+Ne,Ee,Ee+H,H);const{scrollLeft:jn,scrollTop:Ut}=ue;oe=tt===0?0:Math.max(0,Math.min(Ut+oe/tt,ue.scrollHeight-pe/tt+Ie)),Qe=St===0?0:Math.max(0,Math.min(jn+Qe/St,ue.scrollWidth-Ve/St+Ne)),be+=Ut-oe,Ee+=jn-Qe}ze.push({el:ue,top:oe,left:Qe})}return ze},m_=a=>a===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(a)?a:{block:"start",inline:"nearest"};function v_(a,t){if(!a.isConnected||!(s=>{let h=s;for(;h&&h.parentNode;){if(h.parentNode===document)return!0;h=h.parentNode instanceof ShadowRoot?h.parentNode.host:h.parentNode}return!1})(a))return;const r=(s=>{const h=window.getComputedStyle(s);return{top:parseFloat(h.scrollMarginTop)||0,right:parseFloat(h.scrollMarginRight)||0,bottom:parseFloat(h.scrollMarginBottom)||0,left:parseFloat(h.scrollMarginLeft)||0}})(a);if((s=>typeof s=="object"&&typeof s.behavior=="function")(t))return t.behavior(sO(a,t));const u=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:s,top:h,left:g}of sO(a,m_(t))){const y=h-r.top+r.bottom,E=g-r.left+r.right;s.scroll({top:y,left:E,behavior:u})}}var $c={},cO;function g_(){if(cO)return $c;cO=1,Object.defineProperty($c,"__esModule",{value:!0});for(var a=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:a?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},u={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)u["f"+s]=111+s;function h(N,R,z){R&&!("byKey"in R)&&(z=R,R=null),Array.isArray(N)||(N=[N]);var V=N.map(function(x){return E(x,R)}),L=function(B){return V.some(function(H){return C(H,B)})},M=z==null?L:L(z);return M}function g(N,R){return h(N,R)}function y(N,R){return h(N,{byKey:!0},R)}function E(N,R){var z=R&&R.byKey,V={};N=N.replace("++","+add");var L=N.split("+"),M=L.length;for(var x in t)V[t[x]]=!1;var B=!0,H=!1,G=void 0;try{for(var W=L[Symbol.iterator](),X;!(B=(X=W.next()).done);B=!0){var ee=X.value,J=ee.endsWith("?")&&ee.length>1;J&&(ee=ee.slice(0,-1));var De=T(ee),ke=t[De];if(ee.length>1&&!ke&&!r[ee]&&!u[De])throw new TypeError('Unknown modifier: "'+ee+'"');(M===1||!ke)&&(z?V.key=De:V.which=A(ee)),ke&&(V[ke]=J?null:!0)}}catch(ye){H=!0,G=ye}finally{try{!B&&W.return&&W.return()}finally{if(H)throw G}}return V}function C(N,R){for(var z in N){var V=N[z],L=void 0;if(V!=null&&(z==="key"&&R.key!=null?L=R.key.toLowerCase():z==="which"?L=V===91&&R.which===93?91:R.which:L=R[z],!(L==null&&V===!1)&&L!==V))return!1}return!0}function A(N){N=T(N);var R=u[N]||N.toUpperCase().charCodeAt(0);return R}function T(N){return N=N.toLowerCase(),N=r[N]||N,N}return $c.default=h,$c.isHotkey=h,$c.isCodeHotkey=g,$c.isKeyHotkey=y,$c.parseHotkey=E,$c.compareHotkey=C,$c.toKeyCode=A,$c.toKeyName=T,$c}var lS=g_();const H1=Xm(lS);var Uk=globalThis.Node,y_=globalThis.Text,$C=a=>a&&a.ownerDocument&&a.ownerDocument.defaultView||null,b_=a=>Ym(a)&&a.nodeType===8,Vs=a=>Ym(a)&&a.nodeType===1,Ym=a=>{var t=$C(a);return!!t&&a instanceof t.Node},rC=a=>{var t=a&&a.anchorNode&&$C(a.anchorNode);return!!t&&a instanceof t.Selection},Hk=a=>Ym(a)&&a.nodeType===3,S_=a=>a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1,D_=a=>{var[t,r]=a;if(Vs(t)&&t.childNodes.length){var u=r===t.childNodes.length,s=u?r-1:r;for([t,s]=Vk(t,s,u?"backward":"forward"),u=s<r;Vs(t)&&t.childNodes.length;){var h=u?t.childNodes.length-1:0;t=C_(t,h,u?"backward":"forward")}r=u&&t.textContent!=null?t.textContent.length:0}return[t,r]},E_=a=>{for(var t=a&&a.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},Vk=(a,t,r)=>{for(var{childNodes:u}=a,s=u[t],h=t,g=!1,y=!1;(b_(s)||Vs(s)&&s.childNodes.length===0||Vs(s)&&s.getAttribute("contenteditable")==="false")&&!(g&&y);){if(h>=u.length){g=!0,h=t-1,r="backward";continue}if(h<0){y=!0,h=t+1,r="forward";continue}s=u[h],t=h,h+=r==="forward"?1:-1}return[s,t]},C_=(a,t,r)=>{var[u]=Vk(a,t,r);return u},qk=a=>{var t="";if(Hk(a)&&a.nodeValue)return a.nodeValue;if(Vs(a)){for(var r of Array.from(a.childNodes))t+=qk(r);var u=getComputedStyle(a).getPropertyValue("display");(u==="block"||u==="list"||a.tagName==="BR")&&(t+=`
|
|
23
|
-
`)}return t},w_=/data-slate-fragment="(.+?)"/m,x_=a=>{var t=a.getData("text/html"),[,r]=t.match(w_)||[];return r},Ab=a=>a.getSelection!=null?a.getSelection():document.getSelection(),GC=(a,t,r)=>{var{target:u}=t;if(Vs(u)&&u.matches('[contentEditable="false"]'))return!1;var{document:s}=Sn.getWindow(a);if(s.contains(u))return Sn.hasDOMNode(a,u,{editable:!0});var h=r.find(g=>{var{addedNodes:y,removedNodes:E}=g;for(var C of y)if(C===u||C.contains(u))return!0;for(var A of E)if(A===u||A.contains(u))return!0});return!h||h===t?!1:GC(a,h,r)},A_=()=>{for(var a=document.activeElement;(t=a)!==null&&t!==void 0&&t.shadowRoot&&(r=a.shadowRoot)!==null&&r!==void 0&&r.activeElement;){var t,r,u;a=(u=a)===null||u===void 0||(u=u.shadowRoot)===null||u===void 0?void 0:u.activeElement}return a},fO=(a,t)=>!!(a.compareDocumentPosition(t)&Uk.DOCUMENT_POSITION_PRECEDING),O_=(a,t)=>!!(a.compareDocumentPosition(t)&Uk.DOCUMENT_POSITION_FOLLOWING),wE,xE,T_=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,dO=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Gu=typeof navigator<"u"&&/Android/.test(navigator.userAgent),f0=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Fg=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),k_=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),YC=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),$k=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),N_=Gu&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),R_=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),B_=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),__=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!YC||$k),oS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((wE=navigator.userAgent.match(/Version\/(\d+)/))!==null&&wE!==void 0&&wE[1]&&parseInt((xE=navigator.userAgent.match(/Version\/(\d+)/))===null||xE===void 0?void 0:xE[1],10)<17);var Hm=(!$k||!N_)&&!k_&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function";function jb(a){"@babel/helpers - typeof";return jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jb(a)}function F_(a,t){if(jb(a)!=="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var u=r.call(a,t);if(jb(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function M_(a){var t=F_(a,"string");return jb(t)==="symbol"?t:String(t)}function PC(a,t,r){return t=M_(t),t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}var z_=0;class Gk{constructor(){PC(this,"id",void 0),this.id="".concat(z_++)}}var p0=new WeakMap,d0=new WeakMap,Ob=new WeakMap,Yk=new WeakMap,Tb=new WeakMap,iC=new WeakMap,Lb=new WeakMap,Lg=new WeakMap,SS=new WeakMap,US=new WeakMap,uC=new WeakMap,Gm=new WeakMap,zg=new WeakMap,kb=new WeakMap,lC=new WeakMap,QC=new WeakMap,Yc=new WeakMap,Ph=new WeakMap,no=new WeakMap,qm=new WeakMap,Gh=new WeakMap,Pk=new WeakMap,S0=Symbol("placeholder"),Qk=Symbol("mark-placeholder"),Sn={androidPendingDiffs:a=>no.get(a),androidScheduleFlush:a=>{var t;(t=QC.get(a))===null||t===void 0||t()},blur:a=>{var t=Sn.toDOMNode(a,a),r=Sn.findDocumentOrShadowRoot(a);Gm.set(a,!1),r.activeElement===t&&t.blur()},deselect:a=>{var{selection:t}=a,r=Sn.findDocumentOrShadowRoot(a),u=Ab(r);u&&u.rangeCount>0&&u.removeAllRanges(),t&&He.deselect(a)},findDocumentOrShadowRoot:a=>{var t=Sn.toDOMNode(a,a),r=t.getRootNode();return r instanceof Document||r instanceof ShadowRoot?r:t.ownerDocument},findEventRange:(a,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:u,target:s}=t;if(r==null||u==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var h=Sn.toSlateNode(a,t.target),g=Sn.findPath(a,h);if(mt.isElement(h)&&j.isVoid(a,h)){var y=s.getBoundingClientRect(),E=a.isInline(h)?r-y.left<y.left+y.width-r:u-y.top<y.top+y.height-u,C=j.point(a,g,{edge:E?"start":"end"}),A=E?j.before(a,C):j.after(a,C);if(A){var T=j.range(a,A);return T}}var N,{document:R}=Sn.getWindow(a);if(R.caretRangeFromPoint)N=R.caretRangeFromPoint(r,u);else{var z=R.caretPositionFromPoint(r,u);z&&(N=R.createRange(),N.setStart(z.offsetNode,z.offset),N.setEnd(z.offsetNode,z.offset))}if(!N)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var V=Sn.toSlateRange(a,N,{exactMatch:!1,suppressThrow:!1});return V},findKey:(a,t)=>{var r=SS.get(t);return r||(r=new Gk,SS.set(t,r)),r},findPath:(a,t)=>{for(var r=[],u=t;;){var s=Ob.get(u);if(s==null){if(j.isEditor(u))return r;break}var h=d0.get(u);if(h==null)break;r.unshift(h),u=s}throw new Error("Unable to find the path for Slate node: ".concat(ni.stringify(t)))},focus:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!Gm.get(t)&&Tb.get(t)){if(r.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{Sn.focus(t,{retries:r.retries-1})},10);return}var u=Sn.toDOMNode(t,t),s=Sn.findDocumentOrShadowRoot(t);if(s.activeElement!==u){if(t.selection&&s instanceof Document){var h=Ab(s),g=Sn.toDOMRange(t,t.selection);h?.removeAllRanges(),h?.addRange(g)}t.selection||He.select(t,j.start(t,[])),Gm.set(t,!0),u.focus({preventScroll:!0})}}},getWindow:a=>{var t=Yk.get(a);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:s=!1}=u,h=Sn.toDOMNode(t,t),g;try{g=Vs(r)?r:r.parentElement}catch(y){if(y instanceof Error&&!y.message.includes('Permission denied to access property "nodeType"'))throw y}return g?g.closest("[data-slate-editor]")===h&&(!s||g.isContentEditable?!0:typeof g.isContentEditable=="boolean"&&g.closest('[contenteditable="false"]')===h||!!g.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(a,t)=>Ym(t)&&Sn.hasDOMNode(a,t,{editable:!0}),hasRange:(a,t)=>{var{anchor:r,focus:u}=t;return j.hasPath(a,r.path)&&j.hasPath(a,u.path)},hasSelectableTarget:(a,t)=>Sn.hasEditableTarget(a,t)||Sn.isTargetInsideNonReadonlyVoid(a,t),hasTarget:(a,t)=>Ym(t)&&Sn.hasDOMNode(a,t),insertData:(a,t)=>{a.insertData(t)},insertFragmentData:(a,t)=>a.insertFragmentData(t),insertTextData:(a,t)=>a.insertTextData(t),isComposing:a=>!!zg.get(a),isFocused:a=>!!Gm.get(a),isReadOnly:a=>!!uC.get(a),isTargetInsideNonReadonlyVoid:(a,t)=>{if(uC.get(a))return!1;var r=Sn.hasTarget(a,t)&&Sn.toSlateNode(a,t);return mt.isElement(r)&&j.isVoid(a,r)},setFragmentData:(a,t,r)=>a.setFragmentData(t,r),toDOMNode:(a,t)=>{var r=US.get(a),u=j.isEditor(t)?Tb.get(a):r?.get(Sn.findKey(a,t));if(!u)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ni.stringify(t)));return u},toDOMPoint:(a,t)=>{var[r]=j.node(a,t.path),u=Sn.toDOMNode(a,r),s;j.void(a,{at:t})&&(t={path:t.path,offset:0});for(var h="[data-slate-string], [data-slate-zero-width]",g=Array.from(u.querySelectorAll(h)),y=0,E=0;E<g.length;E++){var C=g[E],A=C.childNodes[0];if(!(A==null||A.textContent==null)){var{length:T}=A.textContent,N=C.getAttribute("data-slate-length"),R=N==null?T:parseInt(N,10),z=y+R,V=g[E+1];if(t.offset===z&&V!==null&&V!==void 0&&V.hasAttribute("data-slate-mark-placeholder")){var L,M=V.childNodes[0];s=[M instanceof y_?M:V,(L=V.textContent)!==null&&L!==void 0&&L.startsWith("\uFEFF")?1:0];break}if(t.offset<=z){var x=Math.min(T,Math.max(0,t.offset-y));s=[A,x];break}y=z}}if(!s)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ni.stringify(t)));return s},toDOMRange:(a,t)=>{var{anchor:r,focus:u}=t,s=_e.isBackward(t),h=Sn.toDOMPoint(a,r),g=_e.isCollapsed(t)?h:Sn.toDOMPoint(a,u),y=Sn.getWindow(a),E=y.document.createRange(),[C,A]=s?g:h,[T,N]=s?h:g,R=Vs(C)?C:C.parentElement,z=!!R.getAttribute("data-slate-zero-width"),V=Vs(T)?T:T.parentElement,L=!!V.getAttribute("data-slate-zero-width");return E.setStart(C,z?1:A),E.setEnd(T,L?1:N),E},toSlateNode:(a,t)=>{var r=Vs(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var u=r?Lb.get(r):null;if(!u)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return u},toSlatePoint:(a,t,r)=>{var{exactMatch:u,suppressThrow:s,searchDirection:h="backward"}=r,[g,y]=u?t:D_(t),E=g.parentNode,C=null,A=0;if(E){var T,N,R=Sn.toDOMNode(a,a),z=E.closest('[data-slate-void="true"]'),V=z&&R.contains(z)?z:null,L=E.closest('[contenteditable="false"]'),M=L&&R.contains(L)?L:null,x=E.closest("[data-slate-leaf]"),B=null;if(x){if(C=x.closest('[data-slate-node="text"]'),C){var H=Sn.getWindow(a),G=H.document.createRange();G.setStart(C,0),G.setEnd(g,y);var W=G.cloneContents(),X=[...Array.prototype.slice.call(W.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(W.querySelectorAll("[contenteditable=false]"))];X.forEach(he=>{if(Gu&&!u&&he.hasAttribute("data-slate-zero-width")&&he.textContent.length>0&&he.textContext!=="\uFEFF"){he.textContent.startsWith("\uFEFF")&&(he.textContent=he.textContent.slice(1));return}he.parentNode.removeChild(he)}),A=W.textContent.length,B=C}}else if(V){for(var ee=V.querySelectorAll("[data-slate-leaf]"),J=0;J<ee.length;J++){var De=ee[J];if(Sn.hasDOMNode(a,De)){x=De;break}}x?(C=x.closest('[data-slate-node="text"]'),B=x,A=B.textContent.length,B.querySelectorAll("[data-slate-zero-width]").forEach(he=>{A-=he.textContent.length})):A=1}else if(M){var ke=he=>he?he.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],ye=M.closest('[data-slate-node="element"]');if(h==="forward"){var be,Ee=[...ke(ye),...ke(ye?.nextElementSibling)];x=(be=Ee.find(he=>O_(M,he)))!==null&&be!==void 0?be:null}else{var ze,K=[...ke(ye?.previousElementSibling),...ke(ye)];x=(ze=K.findLast(he=>fO(M,he)))!==null&&ze!==void 0?ze:null}x&&(C=x.closest('[data-slate-node="text"]'),B=x,h==="forward"?A=0:(A=B.textContent.length,B.querySelectorAll("[data-slate-zero-width]").forEach(he=>{A-=he.textContent.length})))}B&&A===B.textContent.length&&Gu&&B.getAttribute("data-slate-zero-width")==="z"&&(T=B.textContent)!==null&&T!==void 0&&T.startsWith("\uFEFF")&&(E.hasAttribute("data-slate-zero-width")||f0&&(N=B.textContent)!==null&&N!==void 0&&N.endsWith(`
|
|
24
|
-
|
|
25
|
-
`))&&A--}if(Gu&&!C&&!u){var ue=E.hasAttribute("data-slate-node")?E:E.closest("[data-slate-node]");if(ue&&Sn.hasDOMNode(a,ue,{editable:!0})){var pe=Sn.toSlateNode(a,ue),{path:Ve,offset:fe}=j.start(a,Sn.findPath(a,pe));return ue.querySelector("[data-slate-leaf]")||(fe=y),{path:Ve,offset:fe}}}if(!C){if(s)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var Re=Sn.toSlateNode(a,C),Le=Sn.findPath(a,Re);return{path:Le,offset:A}},toSlateRange:(a,t,r)=>{var u,{exactMatch:s,suppressThrow:h}=r,g=rC(t)?t.anchorNode:t.startContainer,y,E,C,A,T;if(g)if(rC(t)){if(f0&&t.rangeCount>1){C=t.focusNode;var N=t.getRangeAt(0),R=t.getRangeAt(t.rangeCount-1);if(C instanceof HTMLTableRowElement&&N.startContainer instanceof HTMLTableRowElement&&R.startContainer instanceof HTMLTableRowElement){let W=function(X){return X.childElementCount>0?W(X.children[0]):X};var z=N.startContainer,V=R.startContainer,L=W(z.children[N.startOffset]),M=W(V.children[R.startOffset]);A=0,M.childNodes.length>0?y=M.childNodes[0]:y=M,L.childNodes.length>0?C=L.childNodes[0]:C=L,M instanceof HTMLElement?E=M.innerHTML.length:E=0}else N.startContainer===C?(y=R.endContainer,E=R.endOffset,A=N.startOffset):(y=N.startContainer,E=N.endOffset,A=R.startOffset)}else y=t.anchorNode,E=t.anchorOffset,C=t.focusNode,A=t.focusOffset;YC&&E_(y)||f0?T=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:T=t.isCollapsed}else y=t.startContainer,E=t.startOffset,C=t.endContainer,A=t.endOffset,T=t.collapsed;if(y==null||C==null||E==null||A==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));f0&&(u=C.textContent)!==null&&u!==void 0&&u.endsWith(`
|
|
26
|
-
|
|
27
|
-
`)&&A===C.textContent.length&&A--;var x=Sn.toSlatePoint(a,[y,E],{exactMatch:s,suppressThrow:h});if(!x)return null;var B=fO(y,C)||y===C&&A<E,H=T?x:Sn.toSlatePoint(a,[C,A],{exactMatch:s,suppressThrow:h,searchDirection:B?"forward":"backward"});if(!H)return null;var G={anchor:x,focus:H};return _e.isExpanded(G)&&_e.isForward(G)&&Vs(C)&&j.void(a,{at:G.focus,mode:"highest"})&&(G=j.unhangRange(a,G,{voids:!0})),G}};function j_(a,t){var{path:r,diff:u}=t;if(!j.hasPath(a,r))return!1;var s=dt.get(a,r);if(!Et.isText(s))return!1;if(u.start!==s.text.length||u.text.length===0)return s.text.slice(u.start,u.start+u.text.length)===u.text;var h=ie.next(r);if(!j.hasPath(a,h))return!1;var g=dt.get(a,h);return Et.isText(g)&&g.text.startsWith(u.text)}function Xk(a){for(var t=arguments.length,r=new Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];return r.reduce((s,h)=>s.slice(0,h.start)+h.text+s.slice(h.end),a)}function L_(a,t){for(var r=Math.min(a.length,t.length),u=0;u<r;u++)if(a.charAt(u)!==t.charAt(u))return u;return r}function U_(a,t,r){for(var u=Math.min(a.length,t.length,r),s=0;s<u;s++)if(a.charAt(a.length-s-1)!==t.charAt(t.length-s-1))return s;return u}function Ik(a,t){var{start:r,end:u,text:s}=t,h=a.slice(r,u),g=L_(h,s),y=Math.min(h.length-g,s.length-g),E=U_(h,s,y),C={start:r+g,end:u-E,text:s.slice(g,s.length-E)};return C.start===C.end&&C.text.length===0?null:C}function H_(a,t,r){var u=Math.min(t.start,r.start),s=Math.max(0,Math.min(t.start+t.text.length,r.end)-r.start),h=Xk(a,t,r),g=Math.max(r.start+r.text.length,t.start+t.text.length+(t.start+t.text.length>r.start?r.text.length:0)-s),y=h.slice(u,g),E=Math.max(t.end,r.end-t.text.length+(t.end-t.start));return Ik(a,{start:u,end:E,text:y})}function V_(a){var{path:t,diff:r}=a;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function oC(a,t){var{path:r,offset:u}=t;if(!j.hasPath(a,r))return null;var s=dt.get(a,r);if(!Et.isText(s))return null;var h=j.above(a,{match:y=>mt.isElement(y)&&j.isBlock(a,y),at:r});if(!h)return null;for(;u>s.text.length;){var g=j.next(a,{at:r,match:Et.isText});if(!g||!ie.isDescendant(g[1],h[1]))return null;u-=s.text.length,s=g[0],r=g[1]}return{path:r,offset:u}}function hO(a,t){var r=oC(a,t.anchor);if(!r)return null;if(_e.isCollapsed(t))return{anchor:r,focus:r};var u=oC(a,t.focus);return u?{anchor:r,focus:u}:null}function sC(a,t,r){var u=no.get(a),s=u?.find(A=>{var{path:T}=A;return ie.equals(T,t.path)});if(!s||t.offset<=s.diff.start)return ra.transform(t,r,{affinity:"backward"});var{diff:h}=s;if(t.offset<=h.start+h.text.length){var g={path:t.path,offset:h.start},y=ra.transform(g,r,{affinity:"backward"});return y?{path:y.path,offset:y.offset+t.offset-h.start}:null}var E={path:t.path,offset:t.offset-h.text.length+h.end-h.start},C=ra.transform(E,r,{affinity:"backward"});return C?r.type==="split_node"&&ie.equals(r.path,t.path)&&E.offset<r.position&&h.start<r.position?C:{path:C.path,offset:C.offset+h.text.length-h.end+h.start}:null}function pO(a,t,r){var u=sC(a,t.anchor,r);if(!u)return null;if(_e.isCollapsed(t))return{anchor:u,focus:u};var s=sC(a,t.focus,r);return s?{anchor:u,focus:s}:null}function q_(a,t){var{path:r,diff:u,id:s}=a;switch(t.type){case"insert_text":return!ie.equals(t.path,r)||t.offset>=u.end?a:t.offset<=u.start?{diff:{start:t.text.length+u.start,end:t.text.length+u.end,text:u.text},id:s,path:r}:{diff:{start:u.start,end:u.end+t.text.length,text:u.text},id:s,path:r};case"remove_text":return!ie.equals(t.path,r)||t.offset>=u.end?a:t.offset+t.text.length<=u.start?{diff:{start:u.start-t.text.length,end:u.end-t.text.length,text:u.text},id:s,path:r}:{diff:{start:u.start,end:u.end-t.text.length,text:u.text},id:s,path:r};case"split_node":return!ie.equals(t.path,r)||t.position>=u.end?{diff:u,id:s,path:ie.transform(r,t,{affinity:"backward"})}:t.position>u.start?{diff:{start:u.start,end:Math.min(t.position,u.end),text:u.text},id:s,path:r}:{diff:{start:u.start-t.position,end:u.end-t.position,text:u.text},id:s,path:ie.transform(r,t,{affinity:"forward"})};case"merge_node":return ie.equals(t.path,r)?{diff:{start:u.start+t.position,end:u.end+t.position,text:u.text},id:s,path:ie.transform(r,t)}:{diff:u,id:s,path:ie.transform(r,t)}}var h=ie.transform(r,t);return h?{diff:u,path:h,id:s}:null}var mO=(a,t)=>{var r=(t.top+t.bottom)/2;return a.top<=r&&a.bottom>=r},vO=(a,t,r)=>{var u=Sn.toDOMRange(a,t).getBoundingClientRect(),s=Sn.toDOMRange(a,r).getBoundingClientRect();return mO(u,s)&&mO(s,u)},$_=(a,t)=>{var r=j.range(a,_e.end(t)),u=Array.from(j.positions(a,{at:t})),s=0,h=u.length,g=Math.floor(h/2);if(vO(a,j.range(a,u[s]),r))return j.range(a,u[s],r);if(u.length<2)return j.range(a,u[u.length-1],r);for(;g!==u.length&&g!==s;)vO(a,j.range(a,u[g]),r)?h=g:s=g,g=Math.floor((s+h)/2);return j.range(a,u[s],r)};function gO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function yO(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(u){PC(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var G_=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",u=t,{apply:s,onChange:h,deleteBackward:g,addMark:y,removeMark:E}=u;return US.set(u,new WeakMap),u.addMark=(C,A)=>{var T,N;(T=QC.get(u))===null||T===void 0||T(),!Yc.get(u)&&(N=no.get(u))!==null&&N!==void 0&&N.length&&Yc.set(u,null),Ph.delete(u),y(C,A)},u.removeMark=C=>{var A;!Yc.get(u)&&(A=no.get(u))!==null&&A!==void 0&&A.length&&Yc.set(u,null),Ph.delete(u),E(C)},u.deleteBackward=C=>{if(C!=="line")return g(C);if(u.selection&&_e.isCollapsed(u.selection)){var A=j.above(u,{match:z=>mt.isElement(z)&&j.isBlock(u,z),at:u.selection});if(A){var[,T]=A,N=j.range(u,T,u.selection.anchor),R=$_(u,N);_e.isCollapsed(R)||He.delete(u,{at:R})}}},u.apply=C=>{var A=[],T=[],N=no.get(u);if(N!=null&&N.length){var R=N.map(Ee=>q_(Ee,C)).filter(Boolean);no.set(u,R)}var z=Gh.get(u);z&&Gh.set(u,pO(u,z,C));var V=qm.get(u);if(V!=null&&V.at){var L=ra.isPoint(V?.at)?sC(u,V.at,C):pO(u,V.at,C);qm.set(u,L?yO(yO({},V),{},{at:L}):null)}switch(C.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{A.push(...u0(u,C.path));break}case"set_selection":{var M;(M=kb.get(u))===null||M===void 0||M.unref(),kb.delete(u);break}case"insert_node":case"remove_node":{A.push(...u0(u,ie.parent(C.path)));break}case"merge_node":{var x=ie.previous(C.path);A.push(...u0(u,x));break}case"move_node":{var B=ie.common(ie.parent(C.path),ie.parent(C.newPath));A.push(...u0(u,B));var H;ie.isBefore(C.path,C.newPath)?(A.push(...u0(u,ie.parent(C.path))),H=C.newPath):(A.push(...u0(u,ie.parent(C.newPath))),H=C.path);var G=dt.get(t,ie.parent(H)),W=Sn.findKey(u,G),X=j.pathRef(u,ie.parent(H));T.push([X,W]);break}}switch(s(C),C.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":p0.set(u,!0)}for(var[ee,J]of A){var[De]=j.node(u,ee);SS.set(De,J)}for(var[ke,ye]of T){if(ke.current){var[be]=j.node(u,ke.current);SS.set(be,ye)}ke.unref()}},u.setFragmentData=C=>{var{selection:A}=u;if(A){var[T,N]=_e.edges(A),R=j.void(u,{at:T.path}),z=j.void(u,{at:N.path});if(!(_e.isCollapsed(A)&&!R)){var V=Sn.toDOMRange(u,A),L=V.cloneContents(),M=L.childNodes[0];if(L.childNodes.forEach(De=>{De.textContent&&De.textContent.trim()!==""&&(M=De)}),z){var[x]=z,B=V.cloneRange(),H=Sn.toDOMNode(u,x);B.setEndAfter(H),L=B.cloneContents()}if(R&&(M=L.querySelector("[data-slate-spacer]")),Array.from(L.querySelectorAll("[data-slate-zero-width]")).forEach(De=>{var ke=De.getAttribute("data-slate-zero-width")==="n";De.textContent=ke?`
|
|
28
|
-
`:""}),Hk(M)){var G=M.ownerDocument.createElement("span");G.style.whiteSpace="pre",G.appendChild(M),L.appendChild(G),M=G}var W=u.getFragment(),X=JSON.stringify(W),ee=window.btoa(encodeURIComponent(X));M.setAttribute("data-slate-fragment",ee),C.setData("application/".concat(r),ee);var J=L.ownerDocument.createElement("div");return J.appendChild(L),J.setAttribute("hidden","true"),L.ownerDocument.body.appendChild(J),C.setData("text/html",J.innerHTML),C.setData("text/plain",qk(J)),L.ownerDocument.body.removeChild(J),C}}},u.insertData=C=>{u.insertFragmentData(C)||u.insertTextData(C)},u.insertFragmentData=C=>{var A=C.getData("application/".concat(r))||x_(C);if(A){var T=decodeURIComponent(window.atob(A)),N=JSON.parse(T);return u.insertFragment(N),!0}return!1},u.insertTextData=C=>{var A=C.getData("text/plain");if(A){var T=A.split(/\r\n|\r|\n/),N=!1;for(var R of T)N&&He.splitNodes(u,{always:!0}),u.insertText(R),N=!0;return!0}return!1},u.onChange=C=>{var A=lC.get(u);A&&A(C),h(C)},u},u0=(a,t)=>{var r=[];for(var[u,s]of j.levels(a,{at:t})){var h=Sn.findKey(a,u);r.push([s,h])}return r},Y_=3,P_={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Q_={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},X_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ar=a=>{var t=P_[a],r=Q_[a],u=X_[a],s=t&&lS.isHotkey(t),h=r&&lS.isHotkey(r),g=u&&lS.isHotkey(u);return y=>!!(s&&s(y)||dO&&h&&h(y)||!dO&&g&&g(y))},hr={isBold:ar("bold"),isCompose:ar("compose"),isMoveBackward:ar("moveBackward"),isMoveForward:ar("moveForward"),isDeleteBackward:ar("deleteBackward"),isDeleteForward:ar("deleteForward"),isDeleteLineBackward:ar("deleteLineBackward"),isDeleteLineForward:ar("deleteLineForward"),isDeleteWordBackward:ar("deleteWordBackward"),isDeleteWordForward:ar("deleteWordForward"),isExtendBackward:ar("extendBackward"),isExtendForward:ar("extendForward"),isExtendLineBackward:ar("extendLineBackward"),isExtendLineForward:ar("extendLineForward"),isItalic:ar("italic"),isMoveLineBackward:ar("moveLineBackward"),isMoveLineForward:ar("moveLineForward"),isMoveWordBackward:ar("moveWordBackward"),isMoveWordForward:ar("moveWordForward"),isRedo:ar("redo"),isSoftBreak:ar("insertSoftBreak"),isSplitBlock:ar("splitBlock"),isTransposeCharacter:ar("transposeCharacter"),isUndo:ar("undo")};function I_(a,t){if(a==null)return{};var r={},u=Object.keys(a),s,h;for(h=0;h<u.length;h++)s=u[h],!(t.indexOf(s)>=0)&&(r[s]=a[s]);return r}function bO(a,t){if(a==null)return{};var r=I_(a,t),u,s;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);for(s=0;s<h.length;s++)u=h[s],!(t.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(a,u)&&(r[u]=a[u])}return r}var Z_=["anchor","focus"],K_=["anchor","focus"];function SO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function DO(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(u){PC(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var W_=(a,t)=>Object.keys(a).length===Object.keys(t).length&&Object.keys(a).every(r=>t.hasOwnProperty(r)&&a[r]===t[r]),Zk=(a,t)=>{var r=bO(a,Z_),u=bO(t,K_);return a[S0]===t[S0]&&W_(r,u)},XC=(a,t)=>{if(a===t)return!0;if(!a||!t||a.length!==t.length)return!1;for(var r=0;r<a.length;r++){var u=a[r],s=t[r];if(!_e.equals(u,s)||!Zk(u,s))return!1}return!0},Kk=(a,t)=>{if(a===t)return!0;if(!a||!t||a.length!==t.length)return!1;for(var r=0;r<a.length;r++){var u=a[r],s=t[r];if(u.anchor.offset!==s.anchor.offset||u.focus.offset!==s.focus.offset||!Zk(u,s))return!1}return!0},J_=(a,t,r)=>{var u=Array.from(t.children,()=>[]);if(r.length===0)return u;var s=Sn.findPath(a,t),h=s.length,g=j.range(a,s),y=new Array(t.children.length),E=B=>{var H=y[B];if(H)return H;var G=j.range(a,[...s,B]);return y[B]=G,G};for(var C of r){var A=_e.intersection(g,C);if(A)for(var[T,N]=_e.edges(A),R=T.path[h],z=N.path[h],V=R;V<=z;V++){var L=u[V];if(L){var M=E(V),x=_e.intersection(M,C);x&&L.push(DO(DO({},C),x))}}}return u},Ug=[],eF=function(){return Ug.some(function(a){return a.activeTargets.length>0})},tF=function(){return Ug.some(function(a){return a.skippedTargets.length>0})},EO="ResizeObserver loop completed with undelivered notifications.",nF=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:EO}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=EO),window.dispatchEvent(a)},Ub;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ub||(Ub={}));var Hg=function(a){return Object.freeze(a)},aF=function(){function a(t,r){this.inlineSize=t,this.blockSize=r,Hg(this)}return a}(),Wk=function(){function a(t,r,u,s){return this.x=t,this.y=r,this.width=u,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Hg(this)}return a.prototype.toJSON=function(){var t=this,r=t.x,u=t.y,s=t.top,h=t.right,g=t.bottom,y=t.left,E=t.width,C=t.height;return{x:r,y:u,top:s,right:h,bottom:g,left:y,width:E,height:C}},a.fromRect=function(t){return new a(t.x,t.y,t.width,t.height)},a}(),IC=function(a){return a instanceof SVGElement&&"getBBox"in a},Jk=function(a){if(IC(a)){var t=a.getBBox(),r=t.width,u=t.height;return!r&&!u}var s=a,h=s.offsetWidth,g=s.offsetHeight;return!(h||g||a.getClientRects().length)},CO=function(a){var t;if(a instanceof Element)return!0;var r=(t=a?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&a instanceof r.Element)},rF=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Nb=typeof window<"u"?window:{},V1=new WeakMap,wO=/auto|scroll/,iF=/^tb|vertical/,uF=/msie|trident/i.test(Nb.navigator&&Nb.navigator.userAgent),cd=function(a){return parseFloat(a||"0")},m0=function(a,t,r){return a===void 0&&(a=0),t===void 0&&(t=0),r===void 0&&(r=!1),new aF((r?t:a)||0,(r?a:t)||0)},xO=Hg({devicePixelContentBoxSize:m0(),borderBoxSize:m0(),contentBoxSize:m0(),contentRect:new Wk(0,0,0,0)}),e2=function(a,t){if(t===void 0&&(t=!1),V1.has(a)&&!t)return V1.get(a);if(Jk(a))return V1.set(a,xO),xO;var r=getComputedStyle(a),u=IC(a)&&a.ownerSVGElement&&a.getBBox(),s=!uF&&r.boxSizing==="border-box",h=iF.test(r.writingMode||""),g=!u&&wO.test(r.overflowY||""),y=!u&&wO.test(r.overflowX||""),E=u?0:cd(r.paddingTop),C=u?0:cd(r.paddingRight),A=u?0:cd(r.paddingBottom),T=u?0:cd(r.paddingLeft),N=u?0:cd(r.borderTopWidth),R=u?0:cd(r.borderRightWidth),z=u?0:cd(r.borderBottomWidth),V=u?0:cd(r.borderLeftWidth),L=T+C,M=E+A,x=V+R,B=N+z,H=y?a.offsetHeight-B-a.clientHeight:0,G=g?a.offsetWidth-x-a.clientWidth:0,W=s?L+x:0,X=s?M+B:0,ee=u?u.width:cd(r.width)-W-G,J=u?u.height:cd(r.height)-X-H,De=ee+L+G+x,ke=J+M+H+B,ye=Hg({devicePixelContentBoxSize:m0(Math.round(ee*devicePixelRatio),Math.round(J*devicePixelRatio),h),borderBoxSize:m0(De,ke,h),contentBoxSize:m0(ee,J,h),contentRect:new Wk(T,E,ee,J)});return V1.set(a,ye),ye},t2=function(a,t,r){var u=e2(a,r),s=u.borderBoxSize,h=u.contentBoxSize,g=u.devicePixelContentBoxSize;switch(t){case Ub.DEVICE_PIXEL_CONTENT_BOX:return g;case Ub.BORDER_BOX:return s;default:return h}},lF=function(){function a(t){var r=e2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Hg([r.borderBoxSize]),this.contentBoxSize=Hg([r.contentBoxSize]),this.devicePixelContentBoxSize=Hg([r.devicePixelContentBoxSize])}return a}(),n2=function(a){if(Jk(a))return 1/0;for(var t=0,r=a.parentNode;r;)t+=1,r=r.parentNode;return t},oF=function(){var a=1/0,t=[];Ug.forEach(function(g){if(g.activeTargets.length!==0){var y=[];g.activeTargets.forEach(function(C){var A=new lF(C.target),T=n2(C.target);y.push(A),C.lastReportedSize=t2(C.target,C.observedBox),T<a&&(a=T)}),t.push(function(){g.callback.call(g.observer,y,g.observer)}),g.activeTargets.splice(0,g.activeTargets.length)}});for(var r=0,u=t;r<u.length;r++){var s=u[r];s()}return a},AO=function(a){Ug.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(s){s.isActive()&&(n2(s.target)>a?r.activeTargets.push(s):r.skippedTargets.push(s))})})},sF=function(){var a=0;for(AO(a);eF();)a=oF(),AO(a);return tF()&&nF(),a>0},AE,a2=[],cF=function(){return a2.splice(0).forEach(function(a){return a()})},fF=function(a){if(!AE){var t=0,r=document.createTextNode(""),u={characterData:!0};new MutationObserver(function(){return cF()}).observe(r,u),AE=function(){r.textContent="".concat(t?t--:t++)}}a2.push(a),AE()},dF=function(a){fF(function(){requestAnimationFrame(a)})},sS=0,hF=function(){return!!sS},pF=250,mF={attributes:!0,characterData:!0,childList:!0,subtree:!0},OO=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],TO=function(a){return a===void 0&&(a=0),Date.now()+a},OE=!1,vF=function(){function a(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return a.prototype.run=function(t){var r=this;if(t===void 0&&(t=pF),!OE){OE=!0;var u=TO(t);dF(function(){var s=!1;try{s=sF()}finally{if(OE=!1,t=u-TO(),!hF())return;s?r.run(1e3):t>0?r.run(t):r.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,mF)};document.body?r():Nb.addEventListener("DOMContentLoaded",r)},a.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),OO.forEach(function(r){return Nb.addEventListener(r,t.listener,!0)}))},a.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),OO.forEach(function(r){return Nb.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},a}(),cC=new vF,kO=function(a){!sS&&a>0&&cC.start(),sS+=a,!sS&&cC.stop()},gF=function(a){return!IC(a)&&!rF(a)&&getComputedStyle(a).display==="inline"},yF=function(){function a(t,r){this.target=t,this.observedBox=r||Ub.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var t=t2(this.target,this.observedBox,!0);return gF(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},a}(),bF=function(){function a(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return a}(),q1=new WeakMap,NO=function(a,t){for(var r=0;r<a.length;r+=1)if(a[r].target===t)return r;return-1},$1=function(){function a(){}return a.connect=function(t,r){var u=new bF(t,r);q1.set(t,u)},a.observe=function(t,r,u){var s=q1.get(t),h=s.observationTargets.length===0;NO(s.observationTargets,r)<0&&(h&&Ug.push(s),s.observationTargets.push(new yF(r,u&&u.box)),kO(1),cC.schedule())},a.unobserve=function(t,r){var u=q1.get(t),s=NO(u.observationTargets,r),h=u.observationTargets.length===1;s>=0&&(h&&Ug.splice(Ug.indexOf(u),1),u.observationTargets.splice(s,1),kO(-1))},a.disconnect=function(t){var r=this,u=q1.get(t);u.observationTargets.slice().forEach(function(s){return r.unobserve(t,s.target)}),u.activeTargets.splice(0,u.activeTargets.length)},a}(),SF=function(){function a(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$1.connect(this,t)}return a.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!CO(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$1.observe(this,t,r)},a.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!CO(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$1.unobserve(this,t)},a.prototype.disconnect=function(){$1.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();function DF(a,t){if(a==null)return{};var r={},u=Object.keys(a),s,h;for(h=0;h<u.length;h++)s=u[h],!(t.indexOf(s)>=0)&&(r[s]=a[s]);return r}function DS(a,t){if(a==null)return{};var r=DF(a,t),u,s;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);for(s=0;s<h.length;s++)u=h[s],!(t.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(a,u)&&(r[u]=a[u])}return r}function Hb(a){"@babel/helpers - typeof";return Hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hb(a)}function EF(a,t){if(Hb(a)!=="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var u=r.call(a,t);if(Hb(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function CF(a){var t=EF(a,"string");return Hb(t)==="symbol"?t:String(t)}function rr(a,t,r){return t=CF(t),t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}var ZC=Z.createContext(null),Xc=()=>{var a=Z.useContext(ZC);if(!a)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return a},lt=Sn;function RO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function G1(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var wF=25,xF=200,AF=function(){},OF=a=>a?.constructor.name==="DataTransfer";function TF(a){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:u}=a,s=!1,h=null,g=null,y=null,E=0,C=!1,A=()=>{var ye=Gh.get(t);if(Gh.delete(t),ye){var{selection:be}=t,Ee=hO(t,ye);Ee&&(!be||!_e.equals(Ee,be))&&He.select(t,Ee)}},T=()=>{var ye=qm.get(t);if(qm.delete(t),!!ye){if(ye.at){var be=ra.isPoint(ye.at)?oC(t,ye.at):hO(t,ye.at);if(!be)return;var Ee=j.range(t,be);(!t.selection||!_e.equals(t.selection,Ee))&&He.select(t,be)}ye.run()}},N=()=>{if(g&&(clearTimeout(g),g=null),y&&(clearTimeout(y),y=null),!H()&&!B()){A();return}s||(s=!0,setTimeout(()=>s=!1)),B()&&(s="action");var ye=t.selection&&j.rangeRef(t,t.selection,{affinity:"forward"});Ph.set(t,t.marks),AF("flush",qm.get(t),no.get(t));for(var be=H(),Ee;Ee=(ze=no.get(t))===null||ze===void 0?void 0:ze[0];){var ze,K,ue=Yc.get(t);ue!==void 0&&(Yc.delete(t),t.marks=ue),ue&&C===!1&&(C=null);var pe=V_(Ee);(!t.selection||!_e.equals(t.selection,pe))&&He.select(t,pe),Ee.diff.text?j.insertText(t,Ee.diff.text):j.deleteFragment(t),no.set(t,(K=no.get(t))===null||K===void 0?void 0:K.filter(Re=>{var{id:Le}=Re;return Le!==Ee.id})),j_(t,Ee)||(be=!1,qm.delete(t),Ph.delete(t),s="action",Gh.delete(t),r.cancel(),u.cancel(),ye?.unref())}var Ve=ye?.unref();if(Ve&&!Gh.get(t)&&(!t.selection||!_e.equals(Ve,t.selection))&&He.select(t,Ve),B()){T();return}be&&r(),r.flush(),u.flush(),A();var fe=Ph.get(t);Ph.delete(t),fe!==void 0&&(t.marks=fe,t.onChange())},R=ye=>{h&&clearTimeout(h),h=setTimeout(()=>{zg.set(t,!1),N()},wF)},z=ye=>{zg.set(t,!0),h&&(clearTimeout(h),h=null)},V=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ee=iC.get(t);if(Ee){if(H()||be){Ee.style.display="none";return}Ee.style.removeProperty("display")}},L=(ye,be)=>{var Ee,ze=(Ee=no.get(t))!==null&&Ee!==void 0?Ee:[];no.set(t,ze);var K=dt.leaf(t,ye),ue=ze.findIndex(fe=>ie.equals(fe.path,ye));if(ue<0){var pe=Ik(K.text,be);pe&&ze.push({path:ye,diff:be,id:E++}),V();return}var Ve=H_(K.text,ze[ue].diff,be);if(!Ve){ze.splice(ue,1),V();return}ze[ue]=G1(G1({},ze[ue]),{},{diff:Ve})},M=function(be){var{at:Ee}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C=!1,Gh.delete(t),r.cancel(),u.cancel(),B()&&N(),qm.set(t,{at:Ee,run:be}),y=setTimeout(N)},x=ye=>{var be;if(g&&(clearTimeout(g),g=null),!p0.get(t)){var{inputType:Ee}=ye,ze=null,K=ye.dataTransfer||ye.data||void 0;C!==!1&&Ee!=="insertText"&&Ee!=="insertCompositionText"&&(C=!1);var[ue]=ye.getTargetRanges();ue&&(ze=lt.toSlateRange(t,ue,{exactMatch:!1,suppressThrow:!0}));var pe=lt.getWindow(t),Ve=pe.getSelection();if(!ze&&Ve&&(ue=Ve,ze=lt.toSlateRange(t,Ve,{exactMatch:!1,suppressThrow:!0})),ze=(be=ze)!==null&&be!==void 0?be:t.selection,!!ze){var fe=!0;if(Ee.startsWith("delete")){var Re=Ee.endsWith("Backward")?"backward":"forward",[Le,he]=_e.edges(ze),[nt,bt]=j.leaf(t,Le.path);if(_e.isExpanded(ze)&&nt.text.length===Le.offset&&he.offset===0){var rt=j.next(t,{at:Le.path,match:Et.isText});rt&&ie.equals(rt[1],he.path)&&(Re==="backward"?(ze={anchor:he,focus:he},Le=he,[nt,bt]=rt):(ze={anchor:Le,focus:Le},he=Le))}var _n={text:"",start:Le.offset,end:he.offset},Ft=no.get(t),oe=Ft?.find(Xt=>ie.equals(Xt.path,bt)),Qe=oe?[oe.diff,_n]:[_n],Ne=Xk(nt.text,...Qe);if(Ne.length===0&&(fe=!1),_e.isExpanded(ze)){if(fe&&ie.equals(ze.anchor.path,ze.focus.path)){var Ie={path:ze.anchor.path,offset:Le.offset},St=j.range(t,Ie,Ie);return X(St),L(ze.anchor.path,{text:"",end:he.offset,start:Le.offset})}return M(()=>j.deleteFragment(t,{direction:Re}),{at:ze})}}switch(Ee){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return M(()=>j.deleteFragment(t),{at:ze});case"deleteContent":case"deleteContentForward":{var{anchor:tt}=ze;if(fe&&_e.isCollapsed(ze)){var jn=dt.leaf(t,tt.path);if(tt.offset<jn.text.length)return L(tt.path,{text:"",start:tt.offset,end:tt.offset+1})}return M(()=>j.deleteForward(t),{at:ze})}case"deleteContentBackward":{var Ut,{anchor:Ot}=ze,Fn=rC(ue)?ue.isCollapsed:!!((Ut=ue)!==null&&Ut!==void 0&&Ut.collapsed);return fe&&Fn&&_e.isCollapsed(ze)&&Ot.offset>0?L(Ot.path,{text:"",start:Ot.offset-1,end:Ot.offset}):M(()=>j.deleteBackward(t),{at:ze})}case"deleteEntireSoftLine":return M(()=>{j.deleteBackward(t,{unit:"line"}),j.deleteForward(t,{unit:"line"})},{at:ze});case"deleteHardLineBackward":return M(()=>j.deleteBackward(t,{unit:"block"}),{at:ze});case"deleteSoftLineBackward":return M(()=>j.deleteBackward(t,{unit:"line"}),{at:ze});case"deleteHardLineForward":return M(()=>j.deleteForward(t,{unit:"block"}),{at:ze});case"deleteSoftLineForward":return M(()=>j.deleteForward(t,{unit:"line"}),{at:ze});case"deleteWordBackward":return M(()=>j.deleteBackward(t,{unit:"word"}),{at:ze});case"deleteWordForward":return M(()=>j.deleteForward(t,{unit:"word"}),{at:ze});case"insertLineBreak":return M(()=>j.insertSoftBreak(t),{at:ze});case"insertParagraph":return M(()=>j.insertBreak(t),{at:ze});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(OF(K))return M(()=>lt.insertData(t,K),{at:ze});var Zt=K??"";if(Yc.get(t)&&(Zt=Zt.replace("\uFEFF","")),Ee==="insertText"&&/.*\n.*\n$/.test(Zt)&&(Zt=Zt.slice(0,-1)),Zt.includes(`
|
|
29
|
-
`))return M(()=>{var Xt=Zt.split(`
|
|
30
|
-
`);Xt.forEach((Dn,Kt)=>{Dn&&j.insertText(t,Dn),Kt!==Xt.length-1&&j.insertSoftBreak(t)})},{at:ze});if(ie.equals(ze.anchor.path,ze.focus.path)){var[Rt,Yt]=_e.edges(ze),Ln={start:Rt.offset,end:Yt.offset,text:Zt};if(Zt&&C&&Ee==="insertCompositionText"){var va=C.start+C.text.search(/\S|$/),Ur=Ln.start+Ln.text.search(/\S|$/);Ur===va+1&&Ln.end===C.start+C.text.length?(Ln.start-=1,C=null,De()):C=!1}else Ee==="insertText"?C===null?C=Ln:C&&_e.isCollapsed(ze)&&C.end+C.text.length===Rt.offset?C=G1(G1({},C),{},{text:C.text+Zt}):C=!1:C=!1;if(fe){var Ba=t.selection;if(L(Rt.path,Ln),Ba){var xa={path:Rt.path,offset:Rt.offset+Zt.length};M(()=>{He.select(t,{anchor:xa,focus:xa})},{at:xa})}return}}return M(()=>j.insertText(t,Zt),{at:ze})}}}}},B=()=>!!qm.get(t),H=()=>{var ye;return!!((ye=no.get(t))!==null&&ye!==void 0&&ye.length)},G=()=>B()||H(),W=()=>s,X=ye=>{Gh.set(t,ye),g&&(clearTimeout(g),g=null);var{selection:be}=t;if(ye){var Ee=!be||!ie.equals(be.anchor.path,ye.anchor.path),ze=!be||!ie.equals(be.anchor.path.slice(0,-1),ye.anchor.path.slice(0,-1));(Ee&&C||ze)&&(C=!1),(Ee||H())&&(g=setTimeout(N,xF))}},ee=()=>{(B()||!H())&&N()},J=ye=>{H()||(V(!0),setTimeout(V))},De=()=>{B()||(y=setTimeout(N))},ke=ye=>{if(!(H()||B())&&ye.some(Ee=>GC(t,Ee,ye))){var be;(be=Pk.get(t))===null||be===void 0||be()}};return{flush:N,scheduleFlush:De,hasPendingDiffs:H,hasPendingAction:B,hasPendingChanges:G,isFlushing:W,handleUserSelect:X,handleCompositionEnd:R,handleCompositionStart:z,handleDOMBeforeInput:x,handleKeyDown:J,handleDomMutations:ke,handleInput:ee}}function kF(){var a=Z.useRef(!1);return Z.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),a.current}var md=oS?Z.useLayoutEffect:Z.useEffect;function NF(a,t,r){var[u]=Z.useState(()=>new MutationObserver(t));md(()=>{u.takeRecords()}),Z.useEffect(()=>{if(!a.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return u.observe(a.current,r),()=>u.disconnect()},[u,a,r])}var RF=["node"];function BO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function BF(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var _F={subtree:!0,childList:!0,characterData:!0},FF=Gu?a=>{var{node:t}=a,r=DS(a,RF);if(!Gu)return null;var u=Xc(),s=kF(),[h]=Z.useState(()=>TF(BF({editor:u},r)));return NF(t,h.handleDomMutations,_F),QC.set(u,h.scheduleFlush),s&&h.flush(),h}:()=>null;function _O(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function MF(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var zF=a=>{var{isLast:t,leaf:r,parent:u,text:s}=a,h=Xc(),g=lt.findPath(h,s),y=ie.parent(g),E=!!r[Qk];return h.isVoid(u)?Z.createElement(TE,{length:dt.string(u).length}):r.text===""&&u.children[u.children.length-1]===s&&!h.isInline(u)&&j.string(h,y)===""?Z.createElement(TE,{isLineBreak:!0,isMarkPlaceholder:E}):r.text===""?Z.createElement(TE,{isMarkPlaceholder:E}):t&&r.text.slice(-1)===`
|
|
31
|
-
`?Z.createElement(FO,{isTrailing:!0,text:r.text}):Z.createElement(FO,{text:r.text})},FO=a=>{var{text:t,isTrailing:r=!1}=a,u=Z.useRef(null),s=()=>"".concat(t??"").concat(r?`
|
|
32
|
-
`:""),[h]=Z.useState(s);return md(()=>{var g=s();u.current&&u.current.textContent!==g&&(u.current.textContent=g)}),Z.createElement(jF,{ref:u},h)},jF=Z.memo(Z.forwardRef((a,t)=>Z.createElement("span",{"data-slate-string":!0,ref:t},a.children))),TE=a=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:u=!1}=a,s={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return u&&(s["data-slate-mark-placeholder"]=!0),Z.createElement("span",MF({},s),!Gu||!r?"\uFEFF":null,r?Z.createElement("br",null):null)};function MO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function r2(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var LF=Gu?300:0;function UF(a,t){a.current&&(a.current.disconnect(),t&&(a.current=null))}function zO(a){a.current&&(clearTimeout(a.current),a.current=null)}var HF=a=>Z.createElement($F,r2({},a)),VF=a=>{var{leaf:t,isLast:r,text:u,parent:s,renderPlaceholder:h,renderLeaf:g=HF,leafPosition:y}=a,E=Xc(),C=Z.useRef(null),A=Z.useRef(null),[T,N]=Z.useState(!1),R=Z.useRef(null),z=Z.useCallback(B=>{if(UF(C,B==null),B==null){var H;iC.delete(E),(H=t.onPlaceholderResize)===null||H===void 0||H.call(t,null)}else{if(iC.set(E,B),!C.current){var G=window.ResizeObserver||SF;C.current=new G(()=>{var W;(W=t.onPlaceholderResize)===null||W===void 0||W.call(t,B)})}C.current.observe(B),A.current=B}},[A,t,E]),V=Z.createElement(zF,{isLast:r,leaf:t,parent:s,text:u}),L=!!t[S0];if(Z.useEffect(()=>(L?R.current||(R.current=setTimeout(()=>{N(!0),R.current=null},LF)):(zO(R),N(!1)),()=>zO(R)),[L,N]),L&&T){var M={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Fg?"inherit":void 0},contentEditable:!1,ref:z}};V=Z.createElement(Z.Fragment,null,V,h(M))}var x={"data-slate-leaf":!0};return g({attributes:x,children:V,leaf:t,text:u,leafPosition:y})},qF=Z.memo(VF,(a,t)=>t.parent===a.parent&&t.isLast===a.isLast&&t.renderLeaf===a.renderLeaf&&t.renderPlaceholder===a.renderPlaceholder&&t.text===a.text&&Et.equals(t.leaf,a.leaf)&&t.leaf[S0]===a.leaf[S0]),$F=a=>{var{attributes:t,children:r}=a;return Z.createElement("span",r2({},t),r)};function i2(a,t){var[,r]=Z.useReducer(C=>C+1,0),u=Z.useRef(),s=Z.useRef(()=>null),h=Z.useRef(null),g;try{if(a!==s.current||u.current){var y=a();t(h.current,y)?g=h.current:g=y}else g=h.current}catch(C){throw u.current&&GF(C)&&(C.message+=`
|
|
33
|
-
The error may be correlated with this previous error:
|
|
34
|
-
`.concat(u.current.stack,`
|
|
35
|
-
|
|
36
|
-
`)),C}s.current=a,h.current=g,u.current=void 0;var E=Z.useCallback(()=>{try{var C=s.current();if(t(h.current,C))return;h.current=C}catch(A){A instanceof Error?u.current=A:u.current=new Error(String(A))}r()},[]);return[g,E]}function GF(a){return a instanceof Error}var u2=Z.createContext({}),l2=(a,t)=>{var r=Xc(),{decorate:u,addEventListener:s}=Z.useContext(u2),h=()=>{var C=lt.findPath(r,a);return u([a,C])},g=Et.isText(a)?Kk:XC,[y,E]=i2(h,g);return md(()=>{var C=s(E);return E(),C},[s,E]),Z.useMemo(()=>[...y,...t],[y,t])},YF=a=>{var t=Z.useRef(new Set),r=Z.useRef(a);md(()=>{r.current=a,t.current.forEach(h=>h())},[a]);var u=Z.useCallback(h=>r.current(h),[]),s=Z.useCallback(h=>(t.current.add(h),()=>{t.current.delete(h)}),[]);return Z.useMemo(()=>({decorate:u,addEventListener:s}),[u,s])};function jO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function o2(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var PF=a=>Z.createElement(XF,o2({},a)),QF=a=>{for(var{decorations:t,isLast:r,parent:u,renderPlaceholder:s,renderLeaf:h,renderText:g=PF,text:y}=a,E=Xc(),C=Z.useRef(null),A=l2(y,t),T=Et.decorations(y,A),N=lt.findKey(E,y),R=[],z=0;z<T.length;z++){var{leaf:V,position:L}=T[z];R.push(Z.createElement(qF,{isLast:r&&z===T.length-1,key:"".concat(N.id,"-").concat(z),renderPlaceholder:s,leaf:V,leafPosition:L,text:y,parent:u,renderLeaf:h}))}var M=Z.useCallback(B=>{var H=US.get(E);B?(H?.set(N,B),Lg.set(y,B),Lb.set(B,y)):(H?.delete(N),Lg.delete(y),C.current&&Lb.delete(C.current)),C.current=B},[C,E,N,y]),x={"data-slate-node":"text",ref:M};return g({text:y,children:R,attributes:x})},s2=Z.memo(QF,(a,t)=>t.parent===a.parent&&t.isLast===a.isLast&&t.renderText===a.renderText&&t.renderLeaf===a.renderLeaf&&t.renderPlaceholder===a.renderPlaceholder&&t.text===a.text&&Kk(t.decorations,a.decorations)),XF=a=>{var{attributes:t,children:r}=a;return Z.createElement("span",o2({},t),r)};function LO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function fC(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var IF=a=>Z.createElement(WF,fC({},a)),ZF=a=>{var{decorations:t,element:r,renderElement:u=IF,renderChunk:s,renderPlaceholder:h,renderLeaf:g,renderText:y}=a,E=Xc(),C=oM(),A=E.isInline(r),T=l2(r,t),N=lt.findKey(E,r),R=Z.useCallback(H=>{var G=US.get(E);H?(G?.set(N,H),Lg.set(r,H),Lb.set(H,r)):(G?.delete(N),Lg.delete(r))},[E,N,r]),z=h2({decorations:T,node:r,renderElement:u,renderChunk:s,renderPlaceholder:h,renderLeaf:g,renderText:y}),V={"data-slate-node":"element",ref:R};if(A&&(V["data-slate-inline"]=!0),!A&&j.hasInlines(E,r)){var L=dt.string(r),M=Mk(L);M==="rtl"&&(V.dir=M)}if(j.isVoid(E,r)){V["data-slate-void"]=!0,!C&&A&&(V.contentEditable=!1);var x=A?"span":"div",[[B]]=dt.texts(r);z=Z.createElement(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Z.createElement(s2,{renderPlaceholder:h,decorations:[],isLast:!1,parent:r,text:B})),d0.set(B,0),Ob.set(B,r)}return u({attributes:V,children:z,element:r})},KF=Z.memo(ZF,(a,t)=>a.element===t.element&&a.renderElement===t.renderElement&&a.renderChunk===t.renderChunk&&a.renderText===t.renderText&&a.renderLeaf===t.renderLeaf&&a.renderPlaceholder===t.renderPlaceholder&&XC(a.decorations,t.decorations)),WF=a=>{var{attributes:t,children:r,element:u}=a,s=Xc(),h=s.isInline(u)?"span":"div";return Z.createElement(h,fC(fC({},t),{},{style:{position:"relative"}}),r)};class JF{constructor(t,r){var{chunkSize:u,debug:s}=r;rr(this,"root",void 0),rr(this,"chunkSize",void 0),rr(this,"debug",void 0),rr(this,"reachedEnd",void 0),rr(this,"pointerChunk",void 0),rr(this,"pointerIndex",void 0),rr(this,"pointerIndexStack",void 0),rr(this,"cachedPointerNode",void 0),this.root=t,this.chunkSize=u,this.debug=s??!1,this.pointerChunk=t,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.validateState()}readLeaf(){if(this.reachedEnd)return null;for(;;)if(this.pointerIndex+1<this.pointerSiblings.length){this.pointerIndex++,this.cachedPointerNode=void 0;break}else{if(this.pointerChunk.type==="root")return this.reachedEnd=!0,null;this.exitChunk()}return this.validateState(),this.enterChunkUntilLeaf(!1),this.pointerNode}returnToPreviousLeaf(){if(this.reachedEnd){this.reachedEnd=!1,this.enterChunkUntilLeaf(!0);return}for(;;)if(this.pointerIndex>=1){this.pointerIndex--,this.cachedPointerNode=void 0;break}else if(this.pointerChunk.type==="root"){this.pointerIndex=-1;return}else this.exitChunk();this.validateState(),this.enterChunkUntilLeaf(!0)}insertBefore(t){this.returnToPreviousLeaf(),this.insertAfter(t),this.readLeaf()}insertAfter(t){if(t.length!==0){for(var r=0,u=0;this.pointerChunk.type==="chunk"&&this.pointerIndex===this.pointerSiblings.length-1;){var s=this.chunkSize-this.pointerSiblings.length,h=Math.min(s,t.length);if(h>0){var g=t.splice(0,h);this.rawInsertAfter(g,r)}this.exitChunk(),r++}if(t.length!==0){var y=this.savePointer(),E=null;if(this.readLeaf())for(;this.pointerChunk.type==="chunk"&&this.pointerIndex===0;){var C=this.chunkSize-this.pointerSiblings.length,A=Math.min(C,t.length);if(A>0){var T=t.splice(-A,A);this.pointerIndex=-1,this.cachedPointerNode=void 0,this.rawInsertAfter(T,u),E||(E=this.savePointer())}this.exitChunk(),u++}this.restorePointer(y);var N=Math.max(r,u);this.rawInsertAfter(t,N),E&&this.restorePointer(E),this.validateState()}}}remove(){this.pointerSiblings.splice(this.pointerIndex--,1),this.cachedPointerNode=void 0,this.pointerSiblings.length===0&&this.pointerChunk.type==="chunk"?(this.exitChunk(),this.remove()):this.invalidateChunk(),this.validateState()}invalidateChunk(){for(var t=this.pointerChunk;t.type==="chunk";t=t.parent)this.root.modifiedChunks.add(t)}get atStart(){return this.pointerChunk.type==="root"&&this.pointerIndex===-1}get pointerSiblings(){return this.pointerChunk.children}getPointerNode(){return this.reachedEnd||this.pointerIndex===-1?null:this.pointerSiblings[this.pointerIndex]}get pointerNode(){if(this.cachedPointerNode!==void 0)return this.cachedPointerNode;var t=this.getPointerNode();return this.cachedPointerNode=t,t}getChunkPath(t){for(var r=[],u=t;u.type==="chunk";u=u.parent){var s=u.parent.children.indexOf(u);if(s===-1)return null;r.unshift(s)}return r}savePointer(){if(this.atStart)return"start";if(!this.pointerNode)throw new Error("Cannot save pointer when pointerNode is null");return{chunk:this.pointerChunk,node:this.pointerNode}}restorePointer(t){if(t==="start"){this.pointerChunk=this.root,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.cachedPointerNode=void 0;return}var{chunk:r,node:u}=t,s=r.children.indexOf(u);if(s===-1)throw new Error("Cannot restore point because saved node is no longer in saved chunk");var h=this.getChunkPath(r);if(!h)throw new Error("Cannot restore point because saved chunk is no longer connected to root");this.pointerChunk=r,this.pointerIndex=s,this.pointerIndexStack=h,this.reachedEnd=!1,this.cachedPointerNode=u,this.validateState()}enterChunk(t){var r;if(((r=this.pointerNode)===null||r===void 0?void 0:r.type)!=="chunk")throw new Error("Cannot enter non-chunk");if(this.pointerIndexStack.push(this.pointerIndex),this.pointerChunk=this.pointerNode,this.pointerIndex=t?this.pointerSiblings.length-1:0,this.cachedPointerNode=void 0,this.validateState(),this.pointerChunk.children.length===0)throw new Error("Cannot enter empty chunk")}enterChunkUntilLeaf(t){for(;((r=this.pointerNode)===null||r===void 0?void 0:r.type)==="chunk";){var r;this.enterChunk(t)}}exitChunk(){if(this.pointerChunk.type==="root")throw new Error("Cannot exit root");var t=this.pointerChunk;this.pointerChunk=t.parent,this.pointerIndex=this.pointerIndexStack.pop(),this.cachedPointerNode=void 0,this.validateState()}rawInsertAfter(t,r){if(t.length!==0){for(var u=(A,T,N)=>{if(N===1)return A;for(var R=[],z=0;z<this.chunkSize;z++){var V=A.slice(z*N,(z+1)*N);if(V.length===0)break;var L={type:"chunk",key:new Gk,parent:T,children:[]};L.children=u(V,L,N/this.chunkSize),R.push(L)}return R},s=this.pointerSiblings.length+t.length,h=0,g=this.chunkSize;g<s;g*=this.chunkSize)h++;var y=Math.max(h,r),E=Math.pow(this.chunkSize,y),C=u(t,this.pointerChunk,E);this.pointerSiblings.splice(this.pointerIndex+1,0,...C),this.pointerIndex+=C.length,this.cachedPointerNode=void 0,this.invalidateChunk(),this.validateState()}}validateState(){if(this.debug){var t=u=>{if(u.type==="chunk"){var{parent:s,children:h}=u;if(!s.children.includes(u))throw new Error("Debug: Chunk ".concat(u.key.id," has an incorrect parent property"));h.forEach(t)}};if(this.root.children.forEach(t),this.cachedPointerNode!==void 0&&this.cachedPointerNode!==this.getPointerNode())throw new Error("Debug: The cached pointer is incorrect and has not been invalidated");var r=this.getChunkPath(this.pointerChunk);if(!r)throw new Error("Debug: The pointer chunk is not connected to the root");if(!ie.equals(this.pointerIndexStack,r))throw new Error("Debug: The cached index stack [".concat(this.pointerIndexStack.join(", "),"] does not match the path of the pointer chunk [").concat(r.join(", "),"]"))}}}class eM{constructor(t,r){rr(this,"editor",void 0),rr(this,"children",void 0),rr(this,"cachedKeys",void 0),rr(this,"pointerIndex",void 0),this.editor=t,this.children=r,this.cachedKeys=new Array(r.length),this.pointerIndex=0}read(t){if(t===1)return[this.children[this.pointerIndex++]];var r=this.remaining(t);return this.pointerIndex+=t,r}remaining(t){return t===void 0?this.children.slice(this.pointerIndex):this.children.slice(this.pointerIndex,this.pointerIndex+t)}get reachedEnd(){return this.pointerIndex>=this.children.length}lookAhead(t,r){var u=this.children.indexOf(t,this.pointerIndex);if(u>-1)return u-this.pointerIndex;for(var s=this.pointerIndex;s<this.children.length;s++){var h=this.children[s],g=this.findKey(h,s);if(g===r)return s-this.pointerIndex}return-1}toChunkLeaves(t,r){return t.map((u,s)=>({type:"leaf",node:u,key:this.findKey(u,r+s),index:r+s}))}findKey(t,r){var u=this.cachedKeys[r];if(u)return u;var s=lt.findKey(this.editor,t);return this.cachedKeys[r]=s,s}}var tM=(a,t)=>{var{chunkTree:r,children:u,chunkSize:s,rerenderChildren:h=[],onInsert:g,onUpdate:y,onIndexChange:E,debug:C}=t;r.modifiedChunks.clear();for(var A=new JF(r,{chunkSize:s,debug:C}),T=new eM(a,u),N,R=function(){var M=T.lookAhead(N.node,N.key),x=M>0&&r.movedNodeKeys.has(N.key);if(M===-1||x)return A.remove(),1;var B=T.pointerIndex,H=T.read(M+1),G=H.pop();if(H.length){var W=T.toChunkLeaves(H,B);A.insertBefore(W),H.forEach((ee,J)=>{g?.(ee,B+J)})}var X=T.pointerIndex-1;N.node!==G&&(N.node=G,A.invalidateChunk(),y?.(G,X)),N.index!==X&&(N.index=X,E?.(G,X)),h.includes(X)&&A.invalidateChunk()};N=A.readLeaf();)R();if(!T.reachedEnd){var z=T.remaining(),V=T.toChunkLeaves(z,T.pointerIndex);A.returnToPreviousLeaf(),A.insertAfter(V),z.forEach((L,M)=>{g?.(L,T.pointerIndex+M)})}r.movedNodeKeys.clear()};function UO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function nM(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var HO=new WeakMap,c2=function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=lt.findKey(t,r),h=HO.get(s);return h||(h={type:"root",movedNodeKeys:new Set,modifiedChunks:new Set,children:[]},HO.set(s,h)),u.reconcile&&tM(t,nM({chunkTree:h,children:r.children},u.reconcile)),h},aM=a=>{var{children:t}=a;return t},f2=a=>{var{root:t,ancestor:r,renderElement:u,renderChunk:s=aM}=a;return r.children.map(h=>{if(h.type==="chunk"){var g=h.key.id,y=s({highest:r===t,lowest:h.children.some(C=>C.type==="leaf"),attributes:{"data-slate-chunk":!0},children:Z.createElement(iM,{root:t,ancestor:h,renderElement:u,renderChunk:s})});return Z.createElement(Z.Fragment,{key:g},y)}var E=h.node;return u(E,h.index,h.key)})},rM=f2,iM=Z.memo(f2,(a,t)=>a.root===t.root&&a.renderElement===t.renderElement&&a.renderChunk===t.renderChunk&&!t.root.modifiedChunks.has(t.ancestor)),d2=Z.createContext(null),uM=()=>Z.useContext(d2),h2=a=>{var{decorations:t,node:r,renderElement:u,renderChunk:s,renderPlaceholder:h,renderText:g,renderLeaf:y}=a,E=Xc();p0.set(E,!1);var C=j.isEditor(r),A=!C&&mt.isElement(r)&&!E.isInline(r),T=A&&j.hasInlines(E,r),N=T?null:E.getChunkSize(r),R=!!N,{decorationsByChild:z,childrenToRedecorate:V}=lM(E,r,t);R||r.children.forEach((B,H)=>{d0.set(B,H),Ob.set(B,r)});var L=Z.useCallback((B,H,G)=>{var W=G??lt.findKey(E,B);return Z.createElement(d2.Provider,{key:"provider-".concat(W.id),value:B},Z.createElement(KF,{decorations:z[H],element:B,key:W.id,renderElement:u,renderChunk:s,renderPlaceholder:h,renderLeaf:y,renderText:g}))},[E,z,u,s,h,y,g]),M=(B,H)=>{var G=lt.findKey(E,B);return Z.createElement(s2,{decorations:z[H],key:G.id,isLast:H===r.children.length-1,parent:r,renderPlaceholder:h,renderLeaf:y,renderText:g,text:B})};if(!R)return r.children.map((B,H)=>Et.isText(B)?M(B,H):L(B,H));var x=c2(E,r,{reconcile:{chunkSize:N,rerenderChildren:V,onInsert:(B,H)=>{d0.set(B,H),Ob.set(B,r)},onUpdate:(B,H)=>{d0.set(B,H),Ob.set(B,r)},onIndexChange:(B,H)=>{d0.set(B,H)}}});return Z.createElement(rM,{root:x,ancestor:x,renderElement:L,renderChunk:s})},lM=(a,t,r)=>{var u=J_(a,t,r),s=Z.useRef(u).current,h=[];s.length=u.length;for(var g=0;g<u.length;g++){var y,E=u[g],C=(y=s[g])!==null&&y!==void 0?y:null;XC(C,E)||(s[g]=E,h.push(g))}return{decorationsByChild:s,childrenToRedecorate:h}},p2=Z.createContext(!1),oM=()=>Z.useContext(p2),HS=Z.createContext({}),sM=(a,t)=>a===t;function cM(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sM,{deferred:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Z.useContext(HS);if(!u)throw new Error("The `useSlateSelector` hook must be used inside the <Slate> component's context.");var{addEventListener:s}=u,h=Xc(),g=Z.useCallback(()=>a(h),[h,a]),[y,E]=i2(g,t);return md(()=>{var C=s(E,{deferred:r});return E(),C},[s,E,r]),y}function fM(){var a=Z.useRef(new Set),t=Z.useRef(new Set),r=Z.useCallback(()=>{a.current.forEach(g=>g())},[]),u=Z.useCallback(()=>{t.current.forEach(g=>g()),t.current.clear()},[]),s=Z.useCallback(function(g){var{deferred:y=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=y?()=>t.current.add(g):g;return a.current.add(E),()=>{a.current.delete(E)}},[]),h=Z.useMemo(()=>({addEventListener:s,flushDeferred:u}),[s,u]);return{selectorContext:h,onChange:r}}function dM(){var{flushDeferred:a}=Z.useContext(HS);md(a)}var Ii=()=>{var{addEventListener:a}=Z.useContext(HS),[,t]=Z.useReducer(r=>r+1,0);if(!a)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return md(()=>a(t),[a]),Xc()};function hM(){var a=Xc(),t=Z.useRef(!1),r=Z.useRef(0),u=Z.useCallback(()=>{if(!t.current){t.current=!0;var s=lt.getWindow(a);s.cancelAnimationFrame(r.current),r.current=s.requestAnimationFrame(()=>{t.current=!1})}},[a]);return Z.useEffect(()=>()=>cancelAnimationFrame(r.current),[]),{receivedUserInput:t,onUserInput:u}}var pM=(a,t)=>{var r=[],u=()=>{r=[]},s=g=>{if(t.current){var y=g.filter(E=>GC(a,E,g));r.push(...y)}};function h(){r.length>0&&(r.reverse().forEach(g=>{g.type!=="characterData"&&(g.removedNodes.forEach(y=>{g.target.insertBefore(y,g.nextSibling)}),g.addedNodes.forEach(y=>{g.target.removeChild(y)}))}),u())}return{registerMutations:s,restoreDOM:h,clear:u}},mM={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class m2 extends Z.Component{constructor(){super(...arguments),rr(this,"context",null),rr(this,"manager",null),rr(this,"mutationObserver",null)}observe(){var t,{node:r}=this.props;if(!r.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(r.current,mM)}componentDidMount(){var{receivedUserInput:t}=this.props,r=this.context;this.manager=pM(r,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,r,u,s=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(s!=null&&s.length){var h;(h=this.manager)===null||h===void 0||h.registerMutations(s)}return(r=this.mutationObserver)===null||r===void 0||r.disconnect(),(u=this.manager)===null||u===void 0||u.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}rr(m2,"contextType",ZC);var vM=Gu?m2:a=>{var{children:t}=a;return Z.createElement(Z.Fragment,null,t)},gM=Z.createContext(!1),yM=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderChunk","renderLeaf","renderText","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],bM=["text"];function VO(a,t){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,u)}return r}function fd(a){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(u){rr(a,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(r,u))})}return a}var SM=a=>Z.createElement(Z.Fragment,null,h2(a)),DM=Z.forwardRef((a,t)=>{var r=Z.useCallback(oe=>Z.createElement(EM,fd({},oe)),[]),{autoFocus:u,decorate:s=CM,onDOMBeforeInput:h,placeholder:g,readOnly:y=!1,renderElement:E,renderChunk:C,renderLeaf:A,renderText:T,renderPlaceholder:N=r,scrollSelectionIntoView:R=wM,style:z={},as:V="div",disableDefaultStyles:L=!1}=a,M=DS(a,yM),x=Ii(),[B,H]=Z.useState(!1),G=Z.useRef(null),W=Z.useRef([]),[X,ee]=Z.useState(),J=Z.useRef(!1),{onUserInput:De,receivedUserInput:ke}=hM(),[,ye]=Z.useReducer(oe=>oe+1,0);Pk.set(x,ye),uC.set(x,y);var be=Z.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);Z.useEffect(()=>{G.current&&u&&G.current.focus()},[u]);var Ee=Z.useRef(),ze=Z.useMemo(()=>h_(()=>{if(p0.get(x)){ze();return}var oe=lt.toDOMNode(x,x),Qe=oe.getRootNode();if(!J.current&&Fg&&Qe instanceof ShadowRoot){J.current=!0;var Ne=A_();Ne?document.execCommand("indent"):He.deselect(x),J.current=!1;return}var Ie=Ee.current;if((Gu||!lt.isComposing(x))&&(!be.isUpdatingSelection||Ie!=null&&Ie.isFlushing())&&!be.isDraggingInternally){var St=lt.findDocumentOrShadowRoot(x),{activeElement:tt}=St,jn=lt.toDOMNode(x,x),Ut=Ab(St);if(tt===jn?(be.latestElement=tt,Gm.set(x,!0)):Gm.delete(x),!Ut)return He.deselect(x);var{anchorNode:Ot,focusNode:Fn}=Ut,Zt=lt.hasEditableTarget(x,Ot)||lt.isTargetInsideNonReadonlyVoid(x,Ot),Rt=lt.hasTarget(x,Fn);if(Zt&&Rt){var Yt=lt.toSlateRange(x,Ut,{exactMatch:!1,suppressThrow:!0});Yt&&(!lt.isComposing(x)&&!(Ie!=null&&Ie.hasPendingChanges())&&!(Ie!=null&&Ie.isFlushing())?He.select(x,Yt):Ie?.handleUserSelect(Yt))}y&&(!Zt||!Rt)&&He.deselect(x)}},100),[x,y,be]),K=Z.useMemo(()=>c_(ze,0),[ze]);Ee.current=FF({node:G,onDOMSelectionChange:ze,scheduleOnDOMSelectionChange:K}),md(()=>{var oe,Qe,Ne;G.current&&(Ne=$C(G.current))?(Yk.set(x,Ne),Tb.set(x,G.current),Lg.set(x,G.current),Lb.set(G.current,x)):Lg.delete(x);var{selection:Ie}=x,St=lt.findDocumentOrShadowRoot(x),tt=Ab(St);if(!(!tt||!lt.isFocused(x)||(oe=Ee.current)!==null&&oe!==void 0&&oe.hasPendingAction())){var jn=Zt=>{var Rt=tt.type!=="None";if(!(!Ie&&!Rt)){var Yt=tt.focusNode,Ln;if(f0&&tt.rangeCount>1){var va=tt.getRangeAt(0),Ur=tt.getRangeAt(tt.rangeCount-1);va.startContainer===Yt?Ln=Ur.endContainer:Ln=va.startContainer}else Ln=tt.anchorNode;var Ba=Tb.get(x),xa=!1;if(Ba.contains(Ln)&&Ba.contains(Yt)&&(xa=!0),Rt&&xa&&Ie&&!Zt){var Xt=lt.toSlateRange(x,tt,{exactMatch:!0,suppressThrow:!0});if(Xt&&_e.equals(Xt,Ie)){var Dn;if(!be.hasMarkPlaceholder||(Dn=Ln)!==null&&Dn!==void 0&&(Dn=Dn.parentElement)!==null&&Dn!==void 0&&Dn.hasAttribute("data-slate-mark-placeholder"))return}}if(Ie&&!lt.hasRange(x,Ie)){x.selection=lt.toSlateRange(x,tt,{exactMatch:!1,suppressThrow:!0});return}be.isUpdatingSelection=!0;var Kt=null;try{Kt=Ie&<.toDOMRange(x,Ie)}catch{}return Kt?(lt.isComposing(x)&&!Gu?tt.collapseToEnd():_e.isBackward(Ie)?tt.setBaseAndExtent(Kt.endContainer,Kt.endOffset,Kt.startContainer,Kt.startOffset):tt.setBaseAndExtent(Kt.startContainer,Kt.startOffset,Kt.endContainer,Kt.endOffset),R(x,Kt)):tt.removeAllRanges(),Kt}};tt.rangeCount<=1&&jn();var Ut=((Qe=Ee.current)===null||Qe===void 0?void 0:Qe.isFlushing())==="action";if(!Gu||!Ut){setTimeout(()=>{be.isUpdatingSelection=!1});return}var Ot=null,Fn=requestAnimationFrame(()=>{if(Ut){var Zt=Rt=>{try{var Yt=lt.toDOMNode(x,x);Yt.focus(),jn(Rt)}catch{}};Zt(),Ot=setTimeout(()=>{Zt(!0),be.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(Fn),Ot&&clearTimeout(Ot)}}});var ue=Z.useCallback(oe=>{$O(x,oe);var Qe=lt.toDOMNode(x,x),Ne=Qe.getRootNode();if(J!=null&&J.current&&Fg&&Ne instanceof ShadowRoot){var Ie=oe.getTargetRanges(),St=Ie[0],tt=new window.Range;tt.setStart(St.startContainer,St.startOffset),tt.setEnd(St.endContainer,St.endOffset);var jn=lt.toSlateRange(x,tt,{exactMatch:!1,suppressThrow:!1});He.select(x,jn),oe.preventDefault(),oe.stopImmediatePropagation();return}if(De(),!y&<.hasEditableTarget(x,oe.target)&&!xM(oe,h)){var Ut;if(Ee.current)return Ee.current.handleDOMBeforeInput(oe);K.flush(),ze.flush();var{selection:Ot}=x,{inputType:Fn}=oe,Zt=oe.dataTransfer||oe.data||void 0,Rt=Fn==="insertCompositionText"||Fn==="deleteCompositionText";if(Rt&<.isComposing(x))return;var Yt=!1;if(Fn==="insertText"&&Ot&&_e.isCollapsed(Ot)&&oe.data&&oe.data.length===1&&/[a-z ]/i.test(oe.data)&&Ot.anchor.offset!==0&&(Yt=!0,x.marks&&(Yt=!1),!p0.get(x))){var Ln,va,{anchor:Ur}=Ot,[Ba,xa]=lt.toDOMPoint(x,Ur),Xt=(Ln=Ba.parentElement)===null||Ln===void 0?void 0:Ln.closest("a"),Dn=lt.getWindow(x);if(Yt&&Xt&<.hasDOMNode(x,Xt)){var Kt,mr=Dn?.document.createTreeWalker(Xt,NodeFilter.SHOW_TEXT).lastChild();mr===Ba&&((Kt=mr.textContent)===null||Kt===void 0?void 0:Kt.length)===xa&&(Yt=!1)}if(Yt&&Ba.parentElement&&(Dn==null||(va=Dn.getComputedStyle(Ba.parentElement))===null||va===void 0?void 0:va.whiteSpace)==="pre"){var ai=j.above(x,{at:Ur.path,match:nn=>mt.isElement(nn)&&j.isBlock(x,nn)});ai&&dt.string(ai[0]).includes(" ")&&(Yt=!1)}}if((!Fn.startsWith("delete")||Fn.startsWith("deleteBy"))&&!p0.get(x)){var[ge]=oe.getTargetRanges();if(ge){var xe=lt.toSlateRange(x,ge,{exactMatch:!1,suppressThrow:!1});if(!Ot||!_e.equals(Ot,xe)){Yt=!1;var Fe=!Rt&&x.selection&&j.rangeRef(x,x.selection);He.select(x,xe),Fe&&kb.set(x,Fe)}}}if(Rt)return;if(Yt||oe.preventDefault(),Ot&&_e.isExpanded(Ot)&&Fn.startsWith("delete")){var Ke=Fn.endsWith("Backward")?"backward":"forward";j.deleteFragment(x,{direction:Ke});return}switch(Fn){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{j.deleteFragment(x);break}case"deleteContent":case"deleteContentForward":{j.deleteForward(x);break}case"deleteContentBackward":{j.deleteBackward(x);break}case"deleteEntireSoftLine":{j.deleteBackward(x,{unit:"line"}),j.deleteForward(x,{unit:"line"});break}case"deleteHardLineBackward":{j.deleteBackward(x,{unit:"block"});break}case"deleteSoftLineBackward":{j.deleteBackward(x,{unit:"line"});break}case"deleteHardLineForward":{j.deleteForward(x,{unit:"block"});break}case"deleteSoftLineForward":{j.deleteForward(x,{unit:"line"});break}case"deleteWordBackward":{j.deleteBackward(x,{unit:"word"});break}case"deleteWordForward":{j.deleteForward(x,{unit:"word"});break}case"insertLineBreak":j.insertSoftBreak(x);break;case"insertParagraph":{j.insertBreak(x);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{Fn==="insertFromComposition"&<.isComposing(x)&&(H(!1),zg.set(x,!1)),Zt?.constructor.name==="DataTransfer"?lt.insertData(x,Zt):typeof Zt=="string"&&(Yt?W.current.push(()=>j.insertText(x,Zt)):j.insertText(x,Zt));break}}var vt=(Ut=kb.get(x))===null||Ut===void 0?void 0:Ut.unref();kb.delete(x),vt&&(!x.selection||!_e.equals(x.selection,vt))&&He.select(x,vt)}},[x,ze,De,h,y,K]),pe=Z.useCallback(oe=>{oe==null?(ze.cancel(),K.cancel(),Tb.delete(x),Lg.delete(x),G.current&&Hm&&G.current.removeEventListener("beforeinput",ue)):Hm&&oe.addEventListener("beforeinput",ue),G.current=oe,typeof t=="function"?t(oe):t&&(t.current=oe)},[ze,K,x,ue,t]);md(()=>{var oe=lt.getWindow(x),Qe=Ie=>{var{target:St}=Ie,tt=St instanceof HTMLElement?St:null,jn=tt?.tagName;jn==="INPUT"||jn==="TEXTAREA"||K()};oe.document.addEventListener("selectionchange",Qe);var Ne=()=>{be.isDraggingInternally=!1};return oe.document.addEventListener("dragend",Ne),oe.document.addEventListener("drop",Ne),()=>{oe.document.removeEventListener("selectionchange",Qe),oe.document.removeEventListener("dragend",Ne),oe.document.removeEventListener("drop",Ne)}},[K,be]);var Ve=s([x,[]]),fe=YF(s),Re=g&&x.children.length===1&&Array.from(dt.texts(x)).length===1&&dt.string(x)===""&&!B,Le=Z.useCallback(oe=>{if(oe&&Re){var Qe;ee((Qe=oe.getBoundingClientRect())===null||Qe===void 0?void 0:Qe.height)}else ee(void 0)},[Re]);if(Re){var he=j.start(x,[]);Ve.push({[S0]:!0,placeholder:g,onPlaceholderResize:Le,anchor:he,focus:he})}var{marks:nt}=x;if(be.hasMarkPlaceholder=!1,x.selection&&_e.isCollapsed(x.selection)&&nt){var{anchor:bt}=x.selection,rt=dt.leaf(x,bt.path),_n=DS(rt,bM);if(!Et.equals(rt,nt,{loose:!0})){be.hasMarkPlaceholder=!0;var Ft=Object.fromEntries(Object.keys(_n).map(oe=>[oe,null]));Ve.push(fd(fd(fd({[Qk]:!0},Ft),nt),{},{anchor:bt,focus:bt}))}}return Z.useEffect(()=>{setTimeout(()=>{var{selection:oe}=x;if(oe){var{anchor:Qe}=oe,Ne=dt.leaf(x,Qe.path);if(nt&&!Et.equals(Ne,nt,{loose:!0})){Yc.set(x,nt);return}}Yc.delete(x)})}),dM(),Z.createElement(p2.Provider,{value:y},Z.createElement(gM.Provider,{value:B},Z.createElement(u2.Provider,{value:fe},Z.createElement(vM,{node:G,receivedUserInput:ke},Z.createElement(V,fd(fd({role:y?void 0:"textbox","aria-multiline":y?void 0:!0},M),{},{spellCheck:Hm||!oS?M.spellCheck:!1,autoCorrect:Hm||!oS?M.autoCorrect:"false",autoCapitalize:Hm||!oS?M.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!y,zindex:-1,suppressContentEditableWarning:!0,ref:pe,style:fd(fd({},L?{}:fd({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},X?{minHeight:X}:{})),z),onBeforeInput:Z.useCallback(oe=>{if(!Hm&&!y&&!gl(oe,M.onBeforeInput)&<.hasSelectableTarget(x,oe.target)&&(oe.preventDefault(),!lt.isComposing(x))){var Qe=oe.data;j.insertText(x,Qe)}},[M.onBeforeInput,x,y]),onInput:Z.useCallback(oe=>{if(!gl(oe,M.onInput)){if(Ee.current){Ee.current.handleInput();return}for(var Qe of W.current)Qe();W.current=[],lt.isFocused(x)||$O(x,oe.nativeEvent)}},[M.onInput,x]),onBlur:Z.useCallback(oe=>{if(!(y||be.isUpdatingSelection||!lt.hasSelectableTarget(x,oe.target)||gl(oe,M.onBlur))){var Qe=lt.findDocumentOrShadowRoot(x);if(be.latestElement!==Qe.activeElement){var{relatedTarget:Ne}=oe,Ie=lt.toDOMNode(x,x);if(Ne!==Ie&&!(Vs(Ne)&&Ne.hasAttribute("data-slate-spacer"))){if(Ne!=null&&Ym(Ne)&<.hasDOMNode(x,Ne)){var St=lt.toSlateNode(x,Ne);if(mt.isElement(St)&&!x.isVoid(St))return}if(Fg){var tt=Ab(Qe);tt?.removeAllRanges()}Gm.delete(x)}}}},[y,be.isUpdatingSelection,be.latestElement,x,M.onBlur]),onClick:Z.useCallback(oe=>{if(lt.hasTarget(x,oe.target)&&!gl(oe,M.onClick)&&Ym(oe.target)){var Qe=lt.toSlateNode(x,oe.target),Ne=lt.findPath(x,Qe);if(!j.hasPath(x,Ne)||dt.get(x,Ne)!==Qe)return;if(oe.detail===Y_&&Ne.length>=1){var Ie=Ne;if(!(mt.isElement(Qe)&&j.isBlock(x,Qe))){var St,tt=j.above(x,{match:Yt=>mt.isElement(Yt)&&j.isBlock(x,Yt),at:Ne});Ie=(St=tt?.[1])!==null&&St!==void 0?St:Ne.slice(0,1)}var jn=j.range(x,Ie);He.select(x,jn);return}if(y)return;var Ut=j.start(x,Ne),Ot=j.end(x,Ne),Fn=j.void(x,{at:Ut}),Zt=j.void(x,{at:Ot});if(Fn&&Zt&&ie.equals(Fn[1],Zt[1])){var Rt=j.range(x,Ut);He.select(x,Rt)}}},[x,M.onClick,y]),onCompositionEnd:Z.useCallback(oe=>{if(lt.hasSelectableTarget(x,oe.target)){var Qe;if(lt.isComposing(x)&&Promise.resolve().then(()=>{H(!1),zg.set(x,!1)}),(Qe=Ee.current)===null||Qe===void 0||Qe.handleCompositionEnd(oe),gl(oe,M.onCompositionEnd)||Gu)return;if(!Fg&&!R_&&!T_&&!__&&!B_&&oe.data){var Ne=Yc.get(x);Yc.delete(x),Ne!==void 0&&(Ph.set(x,x.marks),x.marks=Ne),j.insertText(x,oe.data);var Ie=Ph.get(x);Ph.delete(x),Ie!==void 0&&(x.marks=Ie)}}},[M.onCompositionEnd,x]),onCompositionUpdate:Z.useCallback(oe=>{lt.hasSelectableTarget(x,oe.target)&&!gl(oe,M.onCompositionUpdate)&&(lt.isComposing(x)||(H(!0),zg.set(x,!0)))},[M.onCompositionUpdate,x]),onCompositionStart:Z.useCallback(oe=>{if(lt.hasSelectableTarget(x,oe.target)){var Qe;if((Qe=Ee.current)===null||Qe===void 0||Qe.handleCompositionStart(oe),gl(oe,M.onCompositionStart)||Gu)return;H(!0);var{selection:Ne}=x;if(Ne&&_e.isExpanded(Ne)){j.deleteFragment(x);return}}},[M.onCompositionStart,x]),onCopy:Z.useCallback(oe=>{lt.hasSelectableTarget(x,oe.target)&&!gl(oe,M.onCopy)&&!qO(oe)&&(oe.preventDefault(),lt.setFragmentData(x,oe.clipboardData,"copy"))},[M.onCopy,x]),onCut:Z.useCallback(oe=>{if(!y&<.hasSelectableTarget(x,oe.target)&&!gl(oe,M.onCut)&&!qO(oe)){oe.preventDefault(),lt.setFragmentData(x,oe.clipboardData,"cut");var{selection:Qe}=x;if(Qe)if(_e.isExpanded(Qe))j.deleteFragment(x);else{var Ne=dt.parent(x,Qe.anchor.path);j.isVoid(x,Ne)&&He.delete(x)}}},[y,x,M.onCut]),onDragOver:Z.useCallback(oe=>{if(lt.hasTarget(x,oe.target)&&!gl(oe,M.onDragOver)){var Qe=lt.toSlateNode(x,oe.target);mt.isElement(Qe)&&j.isVoid(x,Qe)&&oe.preventDefault()}},[M.onDragOver,x]),onDragStart:Z.useCallback(oe=>{if(!y&<.hasTarget(x,oe.target)&&!gl(oe,M.onDragStart)){var Qe=lt.toSlateNode(x,oe.target),Ne=lt.findPath(x,Qe),Ie=mt.isElement(Qe)&&j.isVoid(x,Qe)||j.void(x,{at:Ne,voids:!0});if(Ie){var St=j.range(x,Ne);He.select(x,St)}be.isDraggingInternally=!0,lt.setFragmentData(x,oe.dataTransfer,"drag")}},[y,x,M.onDragStart,be]),onDrop:Z.useCallback(oe=>{if(!y&<.hasTarget(x,oe.target)&&!gl(oe,M.onDrop)){oe.preventDefault();var Qe=x.selection,Ne=lt.findEventRange(x,oe),Ie=oe.dataTransfer;He.select(x,Ne),be.isDraggingInternally&&Qe&&!_e.equals(Qe,Ne)&&!j.void(x,{at:Ne,voids:!0})&&He.delete(x,{at:Qe}),lt.insertData(x,Ie),lt.isFocused(x)||lt.focus(x)}},[y,x,M.onDrop,be]),onDragEnd:Z.useCallback(oe=>{!y&&be.isDraggingInternally&&M.onDragEnd&<.hasTarget(x,oe.target)&&M.onDragEnd(oe)},[y,be,M,x]),onFocus:Z.useCallback(oe=>{if(!y&&!be.isUpdatingSelection&<.hasEditableTarget(x,oe.target)&&!gl(oe,M.onFocus)){var Qe=lt.toDOMNode(x,x),Ne=lt.findDocumentOrShadowRoot(x);if(be.latestElement=Ne.activeElement,f0&&oe.target!==Qe){Qe.focus();return}Gm.set(x,!0)}},[y,be,x,M.onFocus]),onKeyDown:Z.useCallback(oe=>{if(!y&<.hasEditableTarget(x,oe.target)){var Qe;(Qe=Ee.current)===null||Qe===void 0||Qe.handleKeyDown(oe);var{nativeEvent:Ne}=oe;if(lt.isComposing(x)&&Ne.isComposing===!1&&(zg.set(x,!1),H(!1)),gl(oe,M.onKeyDown)||lt.isComposing(x))return;var{selection:Ie}=x,St=x.children[Ie!==null?Ie.focus.path[0]:0],tt=Mk(dt.string(St))==="rtl";if(hr.isRedo(Ne)){oe.preventDefault();var jn=x;typeof jn.redo=="function"&&jn.redo();return}if(hr.isUndo(Ne)){oe.preventDefault();var Ut=x;typeof Ut.undo=="function"&&Ut.undo();return}if(hr.isMoveLineBackward(Ne)){oe.preventDefault(),He.move(x,{unit:"line",reverse:!0});return}if(hr.isMoveLineForward(Ne)){oe.preventDefault(),He.move(x,{unit:"line"});return}if(hr.isExtendLineBackward(Ne)){oe.preventDefault(),He.move(x,{unit:"line",edge:"focus",reverse:!0});return}if(hr.isExtendLineForward(Ne)){oe.preventDefault(),He.move(x,{unit:"line",edge:"focus"});return}if(hr.isMoveBackward(Ne)){oe.preventDefault(),Ie&&_e.isCollapsed(Ie)?He.move(x,{reverse:!tt}):He.collapse(x,{edge:tt?"end":"start"});return}if(hr.isMoveForward(Ne)){oe.preventDefault(),Ie&&_e.isCollapsed(Ie)?He.move(x,{reverse:tt}):He.collapse(x,{edge:tt?"start":"end"});return}if(hr.isMoveWordBackward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)&&He.collapse(x,{edge:"focus"}),He.move(x,{unit:"word",reverse:!tt});return}if(hr.isMoveWordForward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)&&He.collapse(x,{edge:"focus"}),He.move(x,{unit:"word",reverse:tt});return}if(Hm){if((YC||Fg)&&Ie&&(hr.isDeleteBackward(Ne)||hr.isDeleteForward(Ne))&&_e.isCollapsed(Ie)){var Ot=dt.parent(x,Ie.anchor.path);if(mt.isElement(Ot)&&j.isVoid(x,Ot)&&(j.isInline(x,Ot)||j.isBlock(x,Ot))){oe.preventDefault(),j.deleteBackward(x,{unit:"block"});return}}}else{if(hr.isBold(Ne)||hr.isItalic(Ne)||hr.isTransposeCharacter(Ne)){oe.preventDefault();return}if(hr.isSoftBreak(Ne)){oe.preventDefault(),j.insertSoftBreak(x);return}if(hr.isSplitBlock(Ne)){oe.preventDefault(),j.insertBreak(x);return}if(hr.isDeleteBackward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"backward"}):j.deleteBackward(x);return}if(hr.isDeleteForward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"forward"}):j.deleteForward(x);return}if(hr.isDeleteLineBackward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"backward"}):j.deleteBackward(x,{unit:"line"});return}if(hr.isDeleteLineForward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"forward"}):j.deleteForward(x,{unit:"line"});return}if(hr.isDeleteWordBackward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"backward"}):j.deleteBackward(x,{unit:"word"});return}if(hr.isDeleteWordForward(Ne)){oe.preventDefault(),Ie&&_e.isExpanded(Ie)?j.deleteFragment(x,{direction:"forward"}):j.deleteForward(x,{unit:"word"});return}}}},[y,x,M.onKeyDown]),onPaste:Z.useCallback(oe=>{!y&<.hasEditableTarget(x,oe.target)&&!gl(oe,M.onPaste)&&(!Hm||S_(oe.nativeEvent)||Fg)&&(oe.preventDefault(),lt.insertData(x,oe.clipboardData))},[y,x,M.onPaste])}),Z.createElement(SM,{decorations:Ve,node:x,renderElement:E,renderChunk:C,renderPlaceholder:N,renderLeaf:A,renderText:T}))))))}),EM=a=>{var{attributes:t,children:r}=a;return Z.createElement("span",fd({},t),r,Gu&&Z.createElement("br",null))},CM=()=>[],wM=(a,t)=>{if(t.getBoundingClientRect&&(!a.selection||a.selection&&_e.isCollapsed(a.selection))){var r=t.startContainer.parentElement,u=t.getBoundingClientRect(),s=u.width===0&&u.height===0&&u.x===0&&u.y===0;if(s){var h=r.getBoundingClientRect(),g=h.width>0||h.height>0;if(g)return}r.getBoundingClientRect=t.getBoundingClientRect.bind(t),v_(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},gl=(a,t)=>{if(!t)return!1;var r=t(a);return r??(a.isDefaultPrevented()||a.isPropagationStopped())},qO=a=>Ym(a.target)&&(a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement),xM=(a,t)=>{if(!t)return!1;var r=t(a);return r??a.defaultPrevented},$O=(a,t)=>{var r=a;if(t.inputType==="historyUndo"&&typeof r.undo=="function"){r.undo();return}if(t.inputType==="historyRedo"&&typeof r.redo=="function"){r.redo();return}},AM=Z.createContext(!1),v2=parseInt(Z.version.split(".")[0],10),OM=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],TM=a=>{var{editor:t,children:r,onChange:u,onSelectionChange:s,onValueChange:h,initialValue:g}=a,y=DS(a,OM);Z.useState(()=>{if(!dt.isNodeList(g))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ni.stringify(g)));if(!j.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ni.stringify(t)));t.children=g,Object.assign(t,y)});var{selectorContext:E,onChange:C}=fM(),A=Z.useCallback(R=>{var z;switch(u&&u(t.children),R==null||(z=R.operation)===null||z===void 0?void 0:z.type){case"set_selection":s?.(t.selection);break;default:h?.(t.children)}C()},[t,C,u,s,h]);Z.useEffect(()=>(lC.set(t,A),()=>{lC.set(t,()=>{})}),[t,A]);var[T,N]=Z.useState(lt.isFocused(t));return Z.useEffect(()=>{N(lt.isFocused(t))},[t]),md(()=>{var R=()=>N(lt.isFocused(t));return v2>=17?(document.addEventListener("focusin",R),document.addEventListener("focusout",R),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",R)}):(document.addEventListener("focus",R,!0),document.addEventListener("blur",R,!0),()=>{document.removeEventListener("focus",R,!0),document.removeEventListener("blur",R,!0)})},[]),Z.createElement(HS.Provider,{value:E},Z.createElement(ZC.Provider,{value:t},Z.createElement(AM.Provider,{value:T},r)))},g2=()=>{var a=uM();if(!a)return!1;var t=Z.useCallback(r=>{if(!r.selection)return!1;var u=lt.findPath(r,a),s=j.range(r,u);return!!_e.intersection(s,r.selection)},[a]);return cM(t,void 0,{deferred:!0})},kM=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",u=t;u=G_(u,r);var{onChange:s,apply:h,insertText:g}=u;return u.getChunkSize=()=>null,Gu&&(u.insertText=(y,E)=>(Gh.delete(u),g(y,E))),u.onChange=y=>{var E=v2<18?FC.unstable_batchedUpdates:C=>C();E(()=>{s(y)})},u.apply=y=>{if(y.type==="move_node"){var E=dt.parent(u,y.path),C=!!u.getChunkSize(E);if(C){var A=dt.get(u,y.path),T=c2(u,E),N=lt.findKey(u,A);T.movedNodeKeys.add(N)}}h(y)},u},Y1={exports:{}},kE={};/**
|
|
37
|
-
* @license React
|
|
38
|
-
* use-sync-external-store-with-selector.production.js
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var GO;function NM(){if(GO)return kE;GO=1;var a=Z;function t(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}var r=typeof Object.is=="function"?Object.is:t,u=a.useSyncExternalStore,s=a.useRef,h=a.useEffect,g=a.useMemo,y=a.useDebugValue;return kE.useSyncExternalStoreWithSelector=function(E,C,A,T,N){var R=s(null);if(R.current===null){var z={hasValue:!1,value:null};R.current=z}else z=R.current;R=g(function(){function L(G){if(!M){if(M=!0,x=G,G=T(G),N!==void 0&&z.hasValue){var W=z.value;if(N(W,G))return B=W}return B=G}if(W=B,r(x,G))return W;var X=T(G);return N!==void 0&&N(W,X)?(x=G,W):(x=G,B=X)}var M=!1,x,B,H=A===void 0?null:A;return[function(){return L(C())},H===null?void 0:function(){return L(H())}]},[C,A,T,N]);var V=u(E,R[0],R[1]);return h(function(){z.hasValue=!0,z.value=V},[V]),y(V),V},kE}var NE={};/**
|
|
45
|
-
* @license React
|
|
46
|
-
* use-sync-external-store-with-selector.development.js
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var YO;function RM(){return YO||(YO=1,process.env.NODE_ENV!=="production"&&function(){function a(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Z,r=typeof Object.is=="function"?Object.is:a,u=t.useSyncExternalStore,s=t.useRef,h=t.useEffect,g=t.useMemo,y=t.useDebugValue;NE.useSyncExternalStoreWithSelector=function(E,C,A,T,N){var R=s(null);if(R.current===null){var z={hasValue:!1,value:null};R.current=z}else z=R.current;R=g(function(){function L(G){if(!M){if(M=!0,x=G,G=T(G),N!==void 0&&z.hasValue){var W=z.value;if(N(W,G))return B=W}return B=G}if(W=B,r(x,G))return W;var X=T(G);return N!==void 0&&N(W,X)?(x=G,W):(x=G,B=X)}var M=!1,x,B,H=A===void 0?null:A;return[function(){return L(C())},H===null?void 0:function(){return L(H())}]},[C,A,T,N]);var V=u(E,R[0],R[1]);return h(function(){z.hasValue=!0,z.value=V},[V]),y(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),NE}var PO;function BM(){return PO||(PO=1,process.env.NODE_ENV==="production"?Y1.exports=NM():Y1.exports=RM()),Y1.exports}var _M=BM();function FM(a){a()}function MM(){let a=null,t=null;return{clear(){a=null,t=null},notify(){FM(()=>{let r=a;for(;r;)r.callback(),r=r.next})},get(){const r=[];let u=a;for(;u;)r.push(u),u=u.next;return r},subscribe(r){let u=!0;const s=t={callback:r,next:null,prev:t};return s.prev?s.prev.next=s:a=s,function(){!u||a===null||(u=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:a=s.next)}}}}var QO={notify(){},get:()=>[]};function zM(a,t){let r,u=QO,s=0,h=!1;function g(V){A();const L=u.subscribe(V);let M=!1;return()=>{M||(M=!0,L(),T())}}function y(){u.notify()}function E(){z.onStateChange&&z.onStateChange()}function C(){return h}function A(){s++,r||(r=a.subscribe(E),u=MM())}function T(){s--,r&&s===0&&(r(),r=void 0,u.clear(),u=QO)}function N(){h||(h=!0,A())}function R(){h&&(h=!1,T())}const z={addNestedSub:g,notifyNestedSubs:y,handleChangeWrapper:E,isSubscribed:C,trySubscribe:N,tryUnsubscribe:R,getListeners:()=>u};return z}var jM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LM=jM(),UM=()=>typeof navigator<"u"&&navigator.product==="ReactNative",HM=UM(),VM=()=>LM||HM?Uo.useLayoutEffect:Uo.useEffect,qM=VM(),$M=Symbol.for("react-redux-context"),GM=typeof globalThis<"u"?globalThis:{};function YM(){if(!Uo.createContext)return{};const a=GM[$M]??=new Map;let t=a.get(Uo.createContext);return t||(t=Uo.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),a.set(Uo.createContext,t)),t}var Pm=YM();function PM(a){const{children:t,context:r,serverState:u,store:s}=a,h=Uo.useMemo(()=>{const E=zM(s),C={store:s,subscription:E,getServerState:u?()=>u:void 0};if(process.env.NODE_ENV==="production")return C;{const{identityFunctionCheck:A="once",stabilityCheck:T="once"}=a;return Object.assign(C,{stabilityCheck:T,identityFunctionCheck:A})}},[s,u]),g=Uo.useMemo(()=>s.getState(),[s]);qM(()=>{const{subscription:E}=h;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),g!==s.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}},[h,g]);const y=r||Pm;return Uo.createElement(y.Provider,{value:h},t)}var QM=PM;function KC(a=Pm){return function(){const r=Uo.useContext(a);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var y2=KC();function b2(a=Pm){const t=a===Pm?y2:KC(a),r=()=>{const{store:u}=t();return u};return Object.assign(r,{withTypes:()=>r}),r}var XM=b2();function IM(a=Pm){const t=a===Pm?XM:b2(a),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var S2=IM(),ZM=(a,t)=>a===t;function KM(a=Pm){const t=a===Pm?y2:KC(a),r=(u,s={})=>{const{equalityFn:h=ZM}=typeof s=="function"?{equalityFn:s}:s;if(process.env.NODE_ENV!=="production"){if(!u)throw new Error("You must pass a selector to useSelector");if(typeof u!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof h!="function")throw new Error("You must pass a function as an equality function to useSelector")}const g=t(),{store:y,subscription:E,getServerState:C}=g,A=Uo.useRef(!0),T=Uo.useCallback({[u.name](R){const z=u(R);if(process.env.NODE_ENV!=="production"){const{devModeChecks:V={}}=typeof s=="function"?{}:s,{identityFunctionCheck:L,stabilityCheck:M}=g,{identityFunctionCheck:x,stabilityCheck:B}={stabilityCheck:M,identityFunctionCheck:L,...V};if(B==="always"||B==="once"&&A.current){const H=u(R);if(!h(z,H)){let G;try{throw new Error}catch(W){({stack:G}=W)}console.warn("Selector "+(u.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
53
|
-
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:R,selected:z,selected2:H,stack:G})}}if((x==="always"||x==="once"&&A.current)&&z===R){let H;try{throw new Error}catch(G){({stack:H}=G)}console.warn("Selector "+(u.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
54
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:H})}A.current&&(A.current=!1)}return z}}[u.name],[u]),N=_M.useSyncExternalStoreWithSelector(E.addNestedSub,y.getState,C||y.getState,T,h);return Uo.useDebugValue(N),N};return Object.assign(r,{withTypes:()=>r}),r}var ES=KM();function pu(a){return`Minified Redux error #${a}; visit https://redux.js.org/Errors?code=${a} for the full message or use the non-minified dev environment for full errors. `}var WM=typeof Symbol=="function"&&Symbol.observable||"@@observable",XO=WM,RE=()=>Math.random().toString(36).substring(7).split("").join("."),JM={INIT:`@@redux/INIT${RE()}`,REPLACE:`@@redux/REPLACE${RE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${RE()}`},Vg=JM;function Qb(a){if(typeof a!="object"||a===null)return!1;let t=a;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(a)===t||Object.getPrototypeOf(a)===null}function e4(a){if(a===void 0)return"undefined";if(a===null)return"null";const t=typeof a;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(a))return"array";if(a4(a))return"date";if(n4(a))return"error";const r=t4(a);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(a).slice(8,-1).toLowerCase().replace(/\s/g,"")}function t4(a){return typeof a.constructor=="function"?a.constructor.name:null}function n4(a){return a instanceof Error||typeof a.message=="string"&&a.constructor&&typeof a.constructor.stackTraceLimit=="number"}function a4(a){return a instanceof Date?!0:typeof a.toDateString=="function"&&typeof a.getDate=="function"&&typeof a.setDate=="function"}function Vm(a){let t=typeof a;return process.env.NODE_ENV!=="production"&&(t=e4(a)),t}function D2(a,t,r){if(typeof a!="function")throw new Error(process.env.NODE_ENV==="production"?pu(2):`Expected the root reducer to be a function. Instead, received: '${Vm(a)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?pu(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?pu(1):`Expected the enhancer to be a function. Instead, received: '${Vm(r)}'`);return r(D2)(a,t)}let u=a,s=t,h=new Map,g=h,y=0,E=!1;function C(){g===h&&(g=new Map,h.forEach((L,M)=>{g.set(M,L)}))}function A(){if(E)throw new Error(process.env.NODE_ENV==="production"?pu(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function T(L){if(typeof L!="function")throw new Error(process.env.NODE_ENV==="production"?pu(4):`Expected the listener to be a function. Instead, received: '${Vm(L)}'`);if(E)throw new Error(process.env.NODE_ENV==="production"?pu(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let M=!0;C();const x=y++;return g.set(x,L),function(){if(M){if(E)throw new Error(process.env.NODE_ENV==="production"?pu(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,C(),g.delete(x),h=null}}}function N(L){if(!Qb(L))throw new Error(process.env.NODE_ENV==="production"?pu(7):`Actions must be plain objects. Instead, the actual type was: '${Vm(L)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof L.type>"u")throw new Error(process.env.NODE_ENV==="production"?pu(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof L.type!="string")throw new Error(process.env.NODE_ENV==="production"?pu(17):`Action "type" property must be a string. Instead, the actual type was: '${Vm(L.type)}'. Value was: '${L.type}' (stringified)`);if(E)throw new Error(process.env.NODE_ENV==="production"?pu(9):"Reducers may not dispatch actions.");try{E=!0,s=u(s,L)}finally{E=!1}return(h=g).forEach(x=>{x()}),L}function R(L){if(typeof L!="function")throw new Error(process.env.NODE_ENV==="production"?pu(10):`Expected the nextReducer to be a function. Instead, received: '${Vm(L)}`);u=L,N({type:Vg.REPLACE})}function z(){const L=T;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(process.env.NODE_ENV==="production"?pu(11):`Expected the observer to be an object. Instead, received: '${Vm(M)}'`);function x(){const H=M;H.next&&H.next(A())}return x(),{unsubscribe:L(x)}},[XO](){return this}}}return N({type:Vg.INIT}),{dispatch:N,subscribe:T,getState:A,replaceReducer:R,[XO]:z}}function IO(a){typeof console<"u"&&typeof console.error=="function"&&console.error(a);try{throw new Error(a)}catch{}}function r4(a,t,r,u){const s=Object.keys(t),h=r&&r.type===Vg.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Qb(a))return`The ${h} has unexpected type of "${Vm(a)}". Expected argument to be an object with the following keys: "${s.join('", "')}"`;const g=Object.keys(a).filter(y=>!t.hasOwnProperty(y)&&!u[y]);if(g.forEach(y=>{u[y]=!0}),!(r&&r.type===Vg.REPLACE)&&g.length>0)return`Unexpected ${g.length>1?"keys":"key"} "${g.join('", "')}" found in ${h}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`}function i4(a){Object.keys(a).forEach(t=>{const r=a[t];if(typeof r(void 0,{type:Vg.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?pu(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Vg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?pu(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Vg.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function u4(a){const t=Object.keys(a),r={};for(let g=0;g<t.length;g++){const y=t[g];process.env.NODE_ENV!=="production"&&typeof a[y]>"u"&&IO(`No reducer provided for key "${y}"`),typeof a[y]=="function"&&(r[y]=a[y])}const u=Object.keys(r);let s;process.env.NODE_ENV!=="production"&&(s={});let h;try{i4(r)}catch(g){h=g}return function(y={},E){if(h)throw h;if(process.env.NODE_ENV!=="production"){const T=r4(y,r,E,s);T&&IO(T)}let C=!1;const A={};for(let T=0;T<u.length;T++){const N=u[T],R=r[N],z=y[N],V=R(z,E);if(typeof V>"u"){const L=E&&E.type;throw new Error(process.env.NODE_ENV==="production"?pu(14):`When called with an action of type ${L?`"${String(L)}"`:"(unknown type)"}, the slice reducer for key "${N}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}A[N]=V,C=C||V!==z}return C=C||u.length!==Object.keys(y).length,C?A:y}}function CS(...a){return a.length===0?t=>t:a.length===1?a[0]:a.reduce((t,r)=>(...u)=>t(r(...u)))}function l4(...a){return t=>(r,u)=>{const s=t(r,u);let h=()=>{throw new Error(process.env.NODE_ENV==="production"?pu(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const g={getState:s.getState,dispatch:(E,...C)=>h(E,...C)},y=a.map(E=>E(g));return h=CS(...y)(s.dispatch),{...s,dispatch:h}}}function E2(a){return Qb(a)&&"type"in a&&typeof a.type=="string"}var o4=(a,t,r)=>{if(t.length===1&&t[0]===r){let u=!1;try{const s={};a(s)===s&&(u=!0)}catch{}if(u){let s;try{throw new Error}catch(h){({stack:s}=h)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
55
|
-
\`createSelector([state => state.todos], todos => todos)\`
|
|
56
|
-
This could lead to inefficient memoization and unnecessary re-renders.
|
|
57
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},s4=(a,t,r)=>{const{memoize:u,memoizeOptions:s}=t,{inputSelectorResults:h,inputSelectorResultsCopy:g}=a,y=u(()=>({}),...s);if(!(y.apply(null,h)===y.apply(null,g))){let C;try{throw new Error}catch(A){({stack:C}=A)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
58
|
-
This means your output selector will likely run more frequently than intended.
|
|
59
|
-
Avoid returning a new reference inside your input selector, e.g.
|
|
60
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:h,secondInputs:g,stack:C})}},c4={inputStabilityCheck:"once",identityFunctionCheck:"once"};function f4(a,t=`expected a function, instead received ${typeof a}`){if(typeof a!="function")throw new TypeError(t)}function d4(a,t=`expected an object, instead received ${typeof a}`){if(typeof a!="object")throw new TypeError(t)}function h4(a,t="expected all items to be functions, instead received the following types: "){if(!a.every(r=>typeof r=="function")){const r=a.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${t}[${r}]`)}}var ZO=a=>Array.isArray(a)?a:[a];function p4(a){const t=Array.isArray(a[0])?a[0]:a;return h4(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function KO(a,t){const r=[],{length:u}=a;for(let s=0;s<u;s++)r.push(a[s].apply(null,t));return r}var m4=(a,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:u}={...c4,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&a,run:o4},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&a,run:s4}}},v4=class{constructor(a){this.value=a}deref(){return this.value}},g4=typeof WeakRef<"u"?WeakRef:v4,y4=0,WO=1;function P1(){return{s:y4,v:void 0,o:null,p:null}}function C2(a,t={}){let r=P1();const{resultEqualityCheck:u}=t;let s,h=0;function g(){let y=r;const{length:E}=arguments;for(let T=0,N=E;T<N;T++){const R=arguments[T];if(typeof R=="function"||typeof R=="object"&&R!==null){let z=y.o;z===null&&(y.o=z=new WeakMap);const V=z.get(R);V===void 0?(y=P1(),z.set(R,y)):y=V}else{let z=y.p;z===null&&(y.p=z=new Map);const V=z.get(R);V===void 0?(y=P1(),z.set(R,y)):y=V}}const C=y;let A;if(y.s===WO)A=y.v;else if(A=a.apply(null,arguments),h++,u){const T=s?.deref?.()??s;T!=null&&u(T,A)&&(A=T,h!==0&&h--),s=typeof A=="object"&&A!==null||typeof A=="function"?new g4(A):A}return C.s=WO,C.v=A,A}return g.clearCache=()=>{r=P1(),g.resetResultsCount()},g.resultsCount=()=>h,g.resetResultsCount=()=>{h=0},g}function b4(a,...t){const r=typeof a=="function"?{memoize:a,memoizeOptions:t}:a,u=(...s)=>{let h=0,g=0,y,E={},C=s.pop();typeof C=="object"&&(E=C,C=s.pop()),f4(C,`createSelector expects an output function after the inputs, but received: [${typeof C}]`);const A={...r,...E},{memoize:T,memoizeOptions:N=[],argsMemoize:R=C2,argsMemoizeOptions:z=[],devModeChecks:V={}}=A,L=ZO(N),M=ZO(z),x=p4(s),B=T(function(){return h++,C.apply(null,arguments)},...L);let H=!0;const G=R(function(){g++;const X=KO(x,arguments);if(y=B.apply(null,X),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:ee,inputStabilityCheck:J}=m4(H,V);if(ee.shouldRun&&ee.run(C,X,y),J.shouldRun){const De=KO(x,arguments);J.run({inputSelectorResults:X,inputSelectorResultsCopy:De},{memoize:T,memoizeOptions:L},arguments)}H&&(H=!1)}return y},...M);return Object.assign(G,{resultFunc:C,memoizedResultFunc:B,dependencies:x,dependencyRecomputations:()=>g,resetDependencyRecomputations:()=>{g=0},lastResult:()=>y,recomputations:()=>h,resetRecomputations:()=>{h=0},memoize:T,argsMemoize:R})};return Object.assign(u,{withTypes:()=>u}),u}var wS=b4(C2),S4=Object.assign((a,t=wS)=>{d4(a,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof a}`);const r=Object.keys(a),u=r.map(h=>a[h]);return t(u,(...h)=>h.reduce((g,y,E)=>(g[r[E]]=y,g),{}))},{withTypes:()=>S4});function w2(a){return({dispatch:r,getState:u})=>s=>h=>typeof h=="function"?h(r,u,a):s(h)}var D4=w2(),E4=w2,C4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?CS:CS.apply(null,arguments)},w4=a=>a&&typeof a.match=="function";function JO(a,t){function r(...u){if(t){let s=t(...u);if(!s)throw new Error(process.env.NODE_ENV==="production"?Ya(0):"prepareAction did not return an object");return{type:a,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:a,payload:u[0]}}return r.toString=()=>`${a}`,r.type=a,r.match=u=>E2(u)&&u.type===a,r}function x4(a){return typeof a=="function"&&"type"in a&&w4(a)}function A4(a){const t=a?`${a}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${a||"unknown"}" being dispatched.
|
|
61
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function O4(a={}){if(process.env.NODE_ENV==="production")return()=>r=>u=>r(u);const{isActionCreator:t=x4}=a;return()=>r=>u=>(t(u)&&console.warn(A4(u.type)),r(u))}function x2(a,t){let r=0;return{measureTime(u){const s=Date.now();try{return u()}finally{const h=Date.now();r+=h-s}},warnIfExceeded(){r>a&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${a}ms.
|
|
62
|
-
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
63
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var A2=class Cb extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Cb.prototype)}static get[Symbol.species](){return Cb}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Cb(...t[0].concat(this)):new Cb(...t.concat(this))}};function eT(a){return Qh(a)?jC(a,()=>{}):a}function Q1(a,t,r){return a.has(t)?a.get(t):a.set(t,r(t)).get(t)}function T4(a){return typeof a!="object"||a==null||Object.isFrozen(a)}function k4(a,t,r){const u=O2(a,t,r);return{detectMutations(){return T2(a,t,u,r)}}}function O2(a,t=[],r,u="",s=new Set){const h={value:r};if(!a(r)&&!s.has(r)){s.add(r),h.children={};for(const g in r){const y=u?u+"."+g:g;t.length&&t.indexOf(y)!==-1||(h.children[g]=O2(a,t,r[g],y))}}return h}function T2(a,t=[],r,u,s=!1,h=""){const g=r?r.value:void 0,y=g===u;if(s&&!y&&!Number.isNaN(u))return{wasMutated:!0,path:h};if(a(g)||a(u))return{wasMutated:!1};const E={};for(let A in r.children)E[A]=!0;for(let A in u)E[A]=!0;const C=t.length>0;for(let A in E){const T=h?h+"."+A:A;if(C&&t.some(z=>z instanceof RegExp?z.test(T):T===z))continue;const N=T2(a,t,r.children[A],u[A],y,T);if(N.wasMutated)return N}return{wasMutated:!1}}function N4(a={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(y,E,C,A){return JSON.stringify(y,r(E,A),C)},r=function(y,E){let C=[],A=[];return E||(E=function(T,N){return C[0]===N?"[Circular ~]":"[Circular ~."+A.slice(0,C.indexOf(N)).join(".")+"]"}),function(T,N){if(C.length>0){var R=C.indexOf(this);~R?C.splice(R+1):C.push(this),~R?A.splice(R,1/0,T):A.push(T),~C.indexOf(N)&&(N=E.call(this,T,N))}else C.push(N);return y==null?N:y.call(this,T,N)}},{isImmutable:u=T4,ignoredPaths:s,warnAfter:h=32}=a;const g=k4.bind(null,u,s);return({getState:y})=>{let E=y(),C=g(E),A;return T=>N=>{const R=x2(h,"ImmutableStateInvariantMiddleware");R.measureTime(()=>{if(E=y(),A=C.detectMutations(),C=g(E),A.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ya(19):`A state mutation was detected between dispatches, in the path '${A.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const z=T(N);return R.measureTime(()=>{if(E=y(),A=C.detectMutations(),C=g(E),A.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ya(20):`A state mutation was detected inside a dispatch, in the path: ${A.path||""}. Take a look at the reducer(s) handling the action ${t(N)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),R.warnIfExceeded(),z}}}}function k2(a){const t=typeof a;return a==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(a)||Qb(a)}function dC(a,t="",r=k2,u,s=[],h){let g;if(!r(a))return{keyPath:t||"<root>",value:a};if(typeof a!="object"||a===null||h?.has(a))return!1;const y=u!=null?u(a):Object.entries(a),E=s.length>0;for(const[C,A]of y){const T=t?t+"."+C:C;if(!(E&&s.some(R=>R instanceof RegExp?R.test(T):T===R))){if(!r(A))return{keyPath:T,value:A};if(typeof A=="object"&&(g=dC(A,T,r,u,s,h),g))return g}}return h&&N2(a)&&h.add(a),!1}function N2(a){if(!Object.isFrozen(a))return!1;for(const t of Object.values(a))if(!(typeof t!="object"||t===null)&&!N2(t))return!1;return!0}function R4(a={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=k2,getEntries:r,ignoredActions:u=[],ignoredActionPaths:s=["meta.arg","meta.baseQueryMeta"],ignoredPaths:h=[],warnAfter:g=32,ignoreState:y=!1,ignoreActions:E=!1,disableCache:C=!1}=a,A=!C&&WeakSet?new WeakSet:void 0;return T=>N=>R=>{if(!E2(R))return N(R);const z=N(R),V=x2(g,"SerializableStateInvariantMiddleware");return!E&&!(u.length&&u.indexOf(R.type)!==-1)&&V.measureTime(()=>{const L=dC(R,"",t,r,s,A);if(L){const{keyPath:M,value:x}=L;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,x,`
|
|
64
|
-
Take a look at the logic that dispatched this action: `,R,`
|
|
65
|
-
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
66
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),y||(V.measureTime(()=>{const L=T.getState(),M=dC(L,"",t,r,h,A);if(M){const{keyPath:x,value:B}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${x}\`. Value:`,B,`
|
|
67
|
-
Take a look at the reducer(s) handling this action type: ${R.type}.
|
|
68
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),V.warnIfExceeded()),z}}}function X1(a){return typeof a=="boolean"}var B4=()=>function(t){const{thunk:r=!0,immutableCheck:u=!0,serializableCheck:s=!0,actionCreatorCheck:h=!0}=t??{};let g=new A2;if(r&&(X1(r)?g.push(D4):g.push(E4(r.extraArgument))),process.env.NODE_ENV!=="production"){if(u){let y={};X1(u)||(y=u),g.unshift(N4(y))}if(s){let y={};X1(s)||(y=s),g.push(R4(y))}if(h){let y={};X1(h)||(y=h),g.unshift(O4(y))}}return g},_4="RTK_autoBatch",tT=a=>t=>{setTimeout(t,a)},F4=(a={type:"raf"})=>t=>(...r)=>{const u=t(...r);let s=!0,h=!1,g=!1;const y=new Set,E=a.type==="tick"?queueMicrotask:a.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tT(10):a.type==="callback"?a.queueNotification:tT(a.timeout),C=()=>{g=!1,h&&(h=!1,y.forEach(A=>A()))};return Object.assign({},u,{subscribe(A){const T=()=>s&&A(),N=u.subscribe(T);return y.add(A),()=>{N(),y.delete(A)}},dispatch(A){try{return s=!A?.meta?.[_4],h=!s,h&&(g||(g=!0,E(C))),u.dispatch(A)}finally{s=!0}}})},M4=a=>function(r){const{autoBatch:u=!0}=r??{};let s=new A2(a);return u&&s.push(F4(typeof u=="object"?u:void 0)),s};function z4(a){const t=B4(),{reducer:r=void 0,middleware:u,devTools:s=!0,duplicateMiddlewareCheck:h=!0,preloadedState:g=void 0,enhancers:y=void 0}=a||{};let E;if(typeof r=="function")E=r;else if(Qb(r))E=u4(r);else throw new Error(process.env.NODE_ENV==="production"?Ya(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&u&&typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?Ya(2):"`middleware` field must be a callback");let C;if(typeof u=="function"){if(C=u(t),process.env.NODE_ENV!=="production"&&!Array.isArray(C))throw new Error(process.env.NODE_ENV==="production"?Ya(3):"when using a middleware builder function, an array of middleware must be returned")}else C=t();if(process.env.NODE_ENV!=="production"&&C.some(V=>typeof V!="function"))throw new Error(process.env.NODE_ENV==="production"?Ya(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&h){let V=new Set;C.forEach(L=>{if(V.has(L))throw new Error(process.env.NODE_ENV==="production"?Ya(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");V.add(L)})}let A=CS;s&&(A=C4({trace:process.env.NODE_ENV!=="production",...typeof s=="object"&&s}));const T=l4(...C),N=M4(T);if(process.env.NODE_ENV!=="production"&&y&&typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?Ya(5):"`enhancers` field must be a callback");let R=typeof y=="function"?y(N):N();if(process.env.NODE_ENV!=="production"&&!Array.isArray(R))throw new Error(process.env.NODE_ENV==="production"?Ya(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&R.some(V=>typeof V!="function"))throw new Error(process.env.NODE_ENV==="production"?Ya(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&C.length&&!R.includes(T)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const z=A(...R);return D2(E,g,z)}function R2(a){const t={},r=[];let u;const s={addCase(h,g){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Ya(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(u)throw new Error(process.env.NODE_ENV==="production"?Ya(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const y=typeof h=="string"?h:h.type;if(!y)throw new Error(process.env.NODE_ENV==="production"?Ya(28):"`builder.addCase` cannot be called with an empty action type");if(y in t)throw new Error(process.env.NODE_ENV==="production"?Ya(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${y}'`);return t[y]=g,s},addMatcher(h,g){if(process.env.NODE_ENV!=="production"&&u)throw new Error(process.env.NODE_ENV==="production"?Ya(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:h,reducer:g}),s},addDefaultCase(h){if(process.env.NODE_ENV!=="production"&&u)throw new Error(process.env.NODE_ENV==="production"?Ya(31):"`builder.addDefaultCase` can only be called once");return u=h,s}};return a(s),[t,r,u]}function j4(a){return typeof a=="function"}function L4(a,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ya(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,u,s]=R2(t),h;if(j4(a))h=()=>eT(a());else{const y=eT(a);h=()=>y}function g(y=h(),E){let C=[r[E.type],...u.filter(({matcher:A})=>A(E)).map(({reducer:A})=>A)];return C.filter(A=>!!A).length===0&&(C=[s]),C.reduce((A,T)=>{if(T)if(Gg(A)){const R=T(A,E);return R===void 0?A:R}else{if(Qh(A))return jC(A,N=>T(N,E));{const N=T(A,E);if(N===void 0){if(A===null)return A;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}}return A},y)}return g.getInitialState=h,g}var U4=Symbol.for("rtk-slice-createasyncthunk");function H4(a,t){return`${a}/${t}`}function V4({creators:a}={}){const t=a?.asyncThunk?.[U4];return function(u){const{name:s,reducerPath:h=s}=u;if(!s)throw new Error(process.env.NODE_ENV==="production"?Ya(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&u.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const g=(typeof u.reducers=="function"?u.reducers(G4()):u.reducers)||{},y=Object.keys(g),E={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(B,H){const G=typeof B=="string"?B:B.type;if(!G)throw new Error(process.env.NODE_ENV==="production"?Ya(12):"`context.addCase` cannot be called with an empty action type");if(G in E.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ya(13):"`context.addCase` cannot be called with two reducers for the same action type: "+G);return E.sliceCaseReducersByType[G]=H,C},addMatcher(B,H){return E.sliceMatchers.push({matcher:B,reducer:H}),C},exposeAction(B,H){return E.actionCreators[B]=H,C},exposeCaseReducer(B,H){return E.sliceCaseReducersByName[B]=H,C}};y.forEach(B=>{const H=g[B],G={reducerName:B,type:H4(s,B),createNotation:typeof u.reducers=="function"};P4(H)?X4(G,H,C,t):Y4(G,H,C)});function A(){if(process.env.NODE_ENV!=="production"&&typeof u.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ya(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[B={},H=[],G=void 0]=typeof u.extraReducers=="function"?R2(u.extraReducers):[u.extraReducers],W={...B,...E.sliceCaseReducersByType};return L4(u.initialState,X=>{for(let ee in W)X.addCase(ee,W[ee]);for(let ee of E.sliceMatchers)X.addMatcher(ee.matcher,ee.reducer);for(let ee of H)X.addMatcher(ee.matcher,ee.reducer);G&&X.addDefaultCase(G)})}const T=B=>B,N=new Map,R=new WeakMap;let z;function V(B,H){return z||(z=A()),z(B,H)}function L(){return z||(z=A()),z.getInitialState()}function M(B,H=!1){function G(X){let ee=X[B];if(typeof ee>"u"){if(H)ee=Q1(R,G,L);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ya(15):"selectSlice returned undefined for an uninjected slice reducer")}return ee}function W(X=T){const ee=Q1(N,H,()=>new WeakMap);return Q1(ee,X,()=>{const J={};for(const[De,ke]of Object.entries(u.selectors??{}))J[De]=q4(ke,X,()=>Q1(R,X,L),H);return J})}return{reducerPath:B,getSelectors:W,get selectors(){return W(G)},selectSlice:G}}const x={name:s,reducer:V,actions:E.actionCreators,caseReducers:E.sliceCaseReducersByName,getInitialState:L,...M(h),injectInto(B,{reducerPath:H,...G}={}){const W=H??h;return B.inject({reducerPath:W,reducer:V},G),{...x,...M(W,!0)}}};return x}}function q4(a,t,r,u){function s(h,...g){let y=t(h);if(typeof y>"u"){if(u)y=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ya(16):"selectState returned undefined for an uninjected slice reducer")}return a(y,...g)}return s.unwrapped=a,s}var $4=V4();function G4(){function a(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return a.withTypes=()=>a,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:a}}function Y4({type:a,reducerName:t,createNotation:r},u,s){let h,g;if("reducer"in u){if(r&&!Q4(u))throw new Error(process.env.NODE_ENV==="production"?Ya(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");h=u.reducer,g=u.prepare}else h=u;s.addCase(a,h).exposeCaseReducer(t,h).exposeAction(t,g?JO(a,g):JO(a))}function P4(a){return a._reducerDefinitionType==="asyncThunk"}function Q4(a){return a._reducerDefinitionType==="reducerWithPrepare"}function X4({type:a,reducerName:t},r,u,s){if(!s)throw new Error(process.env.NODE_ENV==="production"?Ya(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:h,fulfilled:g,pending:y,rejected:E,settled:C,options:A}=r,T=s(a,h,A);u.exposeAction(t,T),g&&u.addCase(T.fulfilled,g),y&&u.addCase(T.pending,y),E&&u.addCase(T.rejected,E),C&&u.addMatcher(T.settled,C),u.exposeCaseReducer(t,{fulfilled:g||I1,pending:y||I1,rejected:E||I1,settled:C||I1})}function I1(){}function Ya(a){return`Minified Redux Toolkit error #${a}; visit https://redux-toolkit.js.org/Errors?code=${a} for the full message or use the non-minified dev environment for full errors. `}const I4={search:"",initialValue:[],value:[],target:void 0,selected:{contentType:void 0,contentItem:void 0},options:{contentTypes:[],contentItems:{}}},Z4={organization:void 0,states:[]};function B2(a){return a.states}function _2(a,t){return a.states.findIndex(r=>r.uuid===t)}function K4(a){return a.organization}const BE=wS([B2,_2],(a,t)=>a[t]),WC=$4({name:"editor",initialState:Z4,reducers:{setOrganization:(a,t)=>{a.organization=t.payload.organization},setState:(a,t)=>{const r=a.states.find(u=>u.uuid===t.payload.uuid);if(!r){a.states.push({uuid:t.payload.uuid,...I4,...t.payload.state});return}t.payload.state?.search!==void 0&&(r.search=t.payload.state.search),t.payload.state?.selected&&(r.selected=t.payload.state.selected),t.payload.state&&"target"in t.payload.state&&(r.target=t.payload.state.target),r.value=t.payload.state?.value??r.value,r.initialValue=t.payload.state?.initialValue??r.initialValue},setInitialValue:(a,t)=>{const r=a.states.find(u=>u.uuid===t.payload.uuid);r&&(r.initialValue=t.payload.initialValue)}},selectors:{selectStates:B2,selectStateIndex:_2,selectStateById:BE,selectCurrentOrganization:K4,selectStateByIdTarget:wS([BE],a=>a.target),selectStateByIdSelected:wS([BE],a=>a.selected)}}),{selectStateById:hC,selectStateByIdTarget:JC,selectStateByIdSelected:X5,selectCurrentOrganization:W4}=WC.selectors,{setState:Pg,setOrganization:J4,setInitialValue:e8}=WC.actions,t8=WC.reducer;function F2(a,t){const r=j.marks(a);return r?r[t]===!0:!1}function M2(a,t){if(F2(a,t)){j.removeMark(a,t);return}j.addMark(a,t,!0)}function ew(a,t,r){const{selection:u}=a;if(!u)return!1;const[s]=Array.from(j.nodes(a,{at:j.unhangRange(a,u),match:h=>!j.isEditor(h)&&mt.isElement(h)&&h.type===t&&(h.type==="heading"?h.level===r?.level:!0)&&(h.type==="list"?h.ordered===r?.ordered:!0)}));return!!s}function cS(a,t,r){const u=ew(a,t,r);He.unwrapNodes(a,{match:h=>mt.isElement(h)&&h.type==="list",split:!0});let s;if(u?s={type:"paragraph"}:s={type:t==="list"?"listItem":t,level:r?.level},He.setNodes(a,s),!u&&t==="list"){const h={type:t,ordered:r?.ordered,children:[]};He.wrapNodes(a,h)}}function VS(a,t){Z.useEffect(()=>{function r(u){a.current&&!a.current.contains(u.target)&&t()}return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[a])}function Rb(a,t){if(a.selection)return j.above(a,{match:r=>!j.isEditor(r)&&mt.isElement(r)&&r.type===t})}function Us(a,t){return Rb(a,t)!==void 0}function Pa({icon:a,className:t,size:r="md",spin:u=!1}){return I.jsx("i",{className:`fa-light fa-${a[1]} ${t??""} ${r!=="md"?`text-${r}`:"text-[16px]"} ${u?"fa-spin":""}`})}function Z1({format:a,icon:t}){const r=Ii();return I.jsx("div",{onClick:()=>M2(r,a),className:`pt-3.5 pb-1.5 px-2 border-b-[3px] ${F2(r,a)?"border-[#705ED9]":"border-b-transparent hover:border-white/50 cursor-pointer"}`,children:I.jsx(Pa,{icon:t,className:"text-white hover:text-white transition-all duration-200"})})}function nT({format:a,properties:t,icon:r,children:u}){const s=Ii();return I.jsxs("div",{onClick:()=>cS(s,a,t),className:`pt-3.5 pb-1.5 px-2 border-b-[3px] cursor-pointer ${ew(s,a,t)?"border-[#705ED9]":"border-b-transparent hover:border-white/50"}`,children:[I.jsx(Pa,{icon:r,className:"text-white hover:text-white transition-all duration-200"}),u]})}var pC=function(a,t){return pC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&(r[s]=u[s])},pC(a,t)};function tw(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pC(a,t);function r(){this.constructor=a}a.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qt=function(){return Qt=Object.assign||function(t){for(var r,u=1,s=arguments.length;u<s;u++){r=arguments[u];for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h])}return t},Qt.apply(this,arguments)};function xS(a,t){var r={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&t.indexOf(u)<0&&(r[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)t.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(r[u[s]]=a[u[s]]);return r}function v0(a,t,r){if(r||arguments.length===2)for(var u=0,s=t.length,h;u<s;u++)(h||!(u in t))&&(h||(h=Array.prototype.slice.call(t,0,u)),h[u]=t[u]);return a.concat(h||Array.prototype.slice.call(t))}var _E="Invariant Violation",aT=Object.setPrototypeOf,n8=aT===void 0?function(a,t){return a.__proto__=t,a}:aT,z2=function(a){tw(t,a);function t(r){r===void 0&&(r=_E);var u=a.call(this,typeof r=="number"?_E+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return u.framesToPop=1,u.name=_E,n8(u,t.prototype),u}return t}(Error);function Mg(a,t){if(!a)throw new z2(t)}var j2=["debug","log","warn","error","silent"],a8=j2.indexOf("log");function K1(a){return function(){if(j2.indexOf(a)>=a8){var t=console[a]||console.log;return t.apply(console,arguments)}}}(function(a){a.debug=K1("debug"),a.log=K1("log"),a.warn=K1("warn"),a.error=K1("error")})(Mg||(Mg={}));var L2="3.13.9";function Yh(a){try{return a()}catch{}}const mC=Yh(function(){return globalThis})||Yh(function(){return window})||Yh(function(){return self})||Yh(function(){return global})||Yh(function(){return Yh.constructor("return this")()});var rT=new Map;function r8(a){var t=rT.get(a)||1;return rT.set(a,t+1),"".concat(a,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function i8(a,t){var r=r8("stringifyForDisplay");return JSON.stringify(a,function(u,s){return s===void 0?r:s},t).split(JSON.stringify(r)).join("<undefined>")}function W1(a){return function(t){for(var r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];if(typeof t=="number"){var s=t;t=nw(s),t||(t=aw(s,r),r=[])}a.apply(void 0,[t].concat(r))}}var ir=Object.assign(function(t,r){for(var u=[],s=2;s<arguments.length;s++)u[s-2]=arguments[s];t||Mg(t,nw(r,u)||aw(r,u))},{debug:W1(Mg.debug),log:W1(Mg.log),warn:W1(Mg.warn),error:W1(Mg.error)});function U2(a){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new z2(nw(a,t)||aw(a,t))}var iT=Symbol.for("ApolloErrorMessageHandler_"+L2);function H2(a){if(typeof a=="string")return a;try{return i8(a,2).slice(0,1e3)}catch{return"<non-serializable>"}}function nw(a,t){if(t===void 0&&(t=[]),!!a)return mC[iT]&&mC[iT](a,t.map(H2))}function aw(a,t){if(t===void 0&&(t=[]),!!a)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:L2,message:a,args:t.map(H2)})))}function u8(a,t){var r=a.directives;return!r||!r.length?!0:o8(r).every(function(u){var s=u.directive,h=u.ifArgument,g=!1;return h.value.kind==="Variable"?(g=t&&t[h.value.name.value],ir(g!==void 0,78,s.name.value)):g=h.value.value,s.name.value==="skip"?!g:g})}function l8(a){var t=a.name.value;return t==="skip"||t==="include"}function o8(a){var t=[];return a&&a.length&&a.forEach(function(r){if(l8(r)){var u=r.arguments,s=r.name.value;ir(u&&u.length===1,79,s);var h=u[0];ir(h.name&&h.name.value==="if",80,s);var g=h.value;ir(g&&(g.kind==="Variable"||g.kind==="BooleanValue"),81,s),t.push({directive:r,ifArgument:h})}}),t}var s8=Yh(function(){return navigator.product})=="ReactNative",V2=typeof Symbol=="function"&&typeof Symbol.for=="function",q2=typeof Yh(function(){return window.document.createElement})=="function",c8=Yh(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,f8=(q2||s8)&&!c8;function vC(a){return a!==null&&typeof a=="object"}function d8(a){a===void 0&&(a=[]);var t={};return a.forEach(function(r){t[r.name.value]=r}),t}function h8(a,t){switch(a.kind){case"InlineFragment":return a;case"FragmentSpread":{var r=a.name.value;if(typeof t=="function")return t(r);var u=t&&t[r];return ir(u,87,r),u||null}default:return null}}function p8(){}class uT{constructor(t=1/0,r=p8){this.max=t,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const r=this.getNode(t);return r&&r.value}get size(){return this.map.size}getNode(t){const r=this.map.get(t);if(r&&r!==this.newest){const{older:u,newer:s}=r;s&&(s.older=u),u&&(u.newer=s),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=s)}return r}set(t,r){let u=this.getNode(t);return u?u.value=r:(u={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=u),this.newest=u,this.oldest=this.oldest||u,this.map.set(t,u),u.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const r=this.map.get(t);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(t),this.dispose(r.value,t),!0):!1}}function gC(){}const m8=gC,v8=typeof WeakRef<"u"?WeakRef:function(a){return{deref:()=>a}},g8=typeof WeakMap<"u"?WeakMap:Map,y8=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:gC,unregister:gC}},b8=10024;class lT{constructor(t=1/0,r=m8){this.max=t,this.dispose=r,this.map=new g8,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const u=this.unfinalizedNodes.values();for(let s=0;s<b8;s++){const h=u.next().value;if(!h)break;this.unfinalizedNodes.delete(h);const g=h.key;delete h.key,h.keyRef=new v8(g),this.registry.register(g,h,h)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new y8(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const r=this.getNode(t);return r&&r.value}getNode(t){const r=this.map.get(t);if(r&&r!==this.newest){const{older:u,newer:s}=r;s&&(s.older=u),u&&(u.newer=s),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=s)}return r}set(t,r){let u=this.getNode(t);return u?u.value=r:(u={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=u),this.newest=u,this.oldest=this.oldest||u,this.scheduleFinalization(u),this.map.set(t,u),this.size++,u.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const r=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,r),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),r&&this.map.delete(r)}delete(t){const r=this.map.get(t);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var FE=new WeakSet;function $2(a){a.size<=(a.max||-1)||FE.has(a)||(FE.add(a),setTimeout(function(){a.clean(),FE.delete(a)},100))}var S8=function(a,t){var r=new lT(a,t);return r.set=function(u,s){var h=lT.prototype.set.call(this,u,s);return $2(this),h},r},D8=function(a,t){var r=new uT(a,t);return r.set=function(u,s){var h=uT.prototype.set.call(this,u,s);return $2(this),h},r},E8=Symbol.for("apollo.cacheSize"),G2=Qt({},mC[E8]),C8={};function Y2(a,t){C8[a]=t}var P2=Object.assign(function(t){return JSON.stringify(t,w8)},{reset:function(){h0=new D8(G2.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Y2("canonicalStringify",function(){return h0.size});var h0;P2.reset();function w8(a,t){if(t&&typeof t=="object"){var r=Object.getPrototypeOf(t);if(r===Object.prototype||r===null){var u=Object.keys(t);if(u.every(x8))return t;var s=JSON.stringify(u),h=h0.get(s);if(!h){u.sort();var g=JSON.stringify(u);h=h0.get(g)||u,h0.set(s,h),h0.set(g,h)}var y=Object.create(r);return h.forEach(function(E){y[E]=t[E]}),y}}return t}function x8(a,t,r){return t===0||r[t-1]<=a}var A8=["connection","include","skip","client","rest","export","nonreactive"],yb=P2;Object.assign(function(a,t,r){if(t&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var u=r.connection.filter?r.connection.filter:[];u.sort();var s={};return u.forEach(function(y){s[y]=t[y]}),"".concat(r.connection.key,"(").concat(yb(s),")")}else return r.connection.key;var h=a;if(t){var g=yb(t);h+="(".concat(g,")")}return r&&Object.keys(r).forEach(function(y){A8.indexOf(y)===-1&&(r[y]&&Object.keys(r[y]).length?h+="@".concat(y,"(").concat(yb(r[y]),")"):h+="@".concat(y))}),h},{setStringify:function(a){var t=yb;return yb=a,t}});function O8(a){return a.alias?a.alias.value:a.name.value}function T8(a){return a.kind==="Field"}function Q2(a){ir(a&&a.kind==="Document",88);var t=a.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw U2(89,r.kind);return r});return ir(t.length<=1,90,t.length),a}function X2(a){return Q2(a),a.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function k8(a){return a.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function N8(a){var t=X2(a);return ir(t&&t.operation==="query",91),t}function R8(a){Q2(a);for(var t,r=0,u=a.definitions;r<u.length;r++){var s=u[r];if(s.kind==="OperationDefinition"){var h=s.operation;if(h==="query"||h==="mutation"||h==="subscription")return s}s.kind==="FragmentDefinition"&&!t&&(t=s)}if(t)return t;throw U2(95)}let du=null;const oT={};let B8=1;const _8=()=>class{constructor(){this.id=["slot",B8++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=du;t;t=t.parent)if(this.id in t.slots){const r=t.slots[this.id];if(r===oT)break;return t!==du&&(du.slots[this.id]=r),!0}return du&&(du.slots[this.id]=oT),!1}getValue(){if(this.hasValue())return du.slots[this.id]}withValue(t,r,u,s){const h={__proto__:null,[this.id]:t},g=du;du={parent:g,slots:h};try{return r.apply(s,u)}finally{du=g}}static bind(t){const r=du;return function(){const u=du;try{return du=r,t.apply(this,arguments)}finally{du=u}}}static noContext(t,r,u){if(du){const s=du;try{return du=null,t.apply(u,r)}finally{du=s}}else return t.apply(u,r)}};function sT(a){try{return a()}catch{}}const ME="@wry/context:Slot",F8=sT(()=>globalThis)||sT(()=>global)||Object.create(null),cT=F8,rw=cT[ME]||Array[ME]||function(a){try{Object.defineProperty(cT,ME,{value:a,enumerable:!1,writable:!1,configurable:!0})}finally{return a}}(_8()),{bind:Z5,noContext:K5}=rw;new rw;function I2(a){return Array.isArray(a)&&a.length>0}function M8(a,t){var r=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(r)return(r=r.call(a)).next.bind(r);if(Array.isArray(a)||(r=z8(a))||t){r&&(a=r);var u=0;return function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z8(a,t){if(a){if(typeof a=="string")return fT(a,t);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fT(a,t)}}function fT(a,t){(t==null||t>a.length)&&(t=a.length);for(var r=0,u=new Array(t);r<t;r++)u[r]=a[r];return u}function dT(a,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,u.key,u)}}function iw(a,t,r){return t&&dT(a.prototype,t),r&&dT(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}var uw=function(){return typeof Symbol=="function"},lw=function(a){return uw()&&!!Symbol[a]},ow=function(a){return lw(a)?Symbol[a]:"@@"+a};uw()&&!lw("observable")&&(Symbol.observable=Symbol("observable"));var j8=ow("iterator"),yC=ow("observable"),Z2=ow("species");function AS(a,t){var r=a[t];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function bb(a){var t=a.constructor;return t!==void 0&&(t=t[Z2],t===null&&(t=void 0)),t!==void 0?t:O0}function L8(a){return a instanceof O0}function D0(a){D0.log?D0.log(a):setTimeout(function(){throw a})}function fS(a){Promise.resolve().then(function(){try{a()}catch(t){D0(t)}})}function K2(a){var t=a._cleanup;if(t!==void 0&&(a._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var r=AS(t,"unsubscribe");r&&r.call(t)}}catch(u){D0(u)}}function bC(a){a._observer=void 0,a._queue=void 0,a._state="closed"}function U8(a){var t=a._queue;if(t){a._queue=void 0,a._state="ready";for(var r=0;r<t.length&&(W2(a,t[r].type,t[r].value),a._state!=="closed");++r);}}function W2(a,t,r){a._state="running";var u=a._observer;try{var s=AS(u,t);switch(t){case"next":s&&s.call(u,r);break;case"error":if(bC(a),s)s.call(u,r);else throw r;break;case"complete":bC(a),s&&s.call(u);break}}catch(h){D0(h)}a._state==="closed"?K2(a):a._state==="running"&&(a._state="ready")}function zE(a,t,r){if(a._state!=="closed"){if(a._state==="buffering"){a._queue.push({type:t,value:r});return}if(a._state!=="ready"){a._state="buffering",a._queue=[{type:t,value:r}],fS(function(){return U8(a)});return}W2(a,t,r)}}var H8=function(){function a(r,u){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var s=new V8(this);try{this._cleanup=u.call(void 0,s)}catch(h){s.error(h)}this._state==="initializing"&&(this._state="ready")}var t=a.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(bC(this),K2(this))},iw(a,[{key:"closed",get:function(){return this._state==="closed"}}]),a}(),V8=function(){function a(r){this._subscription=r}var t=a.prototype;return t.next=function(u){zE(this._subscription,"next",u)},t.error=function(u){zE(this._subscription,"error",u)},t.complete=function(){zE(this._subscription,"complete")},iw(a,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),a}(),O0=function(){function a(r){if(!(this instanceof a))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var t=a.prototype;return t.subscribe=function(u){return(typeof u!="object"||u===null)&&(u={next:u,error:arguments[1],complete:arguments[2]}),new H8(u,this._subscriber)},t.forEach=function(u){var s=this;return new Promise(function(h,g){if(typeof u!="function"){g(new TypeError(u+" is not a function"));return}function y(){E.unsubscribe(),h()}var E=s.subscribe({next:function(C){try{u(C,y)}catch(A){g(A),E.unsubscribe()}},error:g,complete:h})})},t.map=function(u){var s=this;if(typeof u!="function")throw new TypeError(u+" is not a function");var h=bb(this);return new h(function(g){return s.subscribe({next:function(y){try{y=u(y)}catch(E){return g.error(E)}g.next(y)},error:function(y){g.error(y)},complete:function(){g.complete()}})})},t.filter=function(u){var s=this;if(typeof u!="function")throw new TypeError(u+" is not a function");var h=bb(this);return new h(function(g){return s.subscribe({next:function(y){try{if(!u(y))return}catch(E){return g.error(E)}g.next(y)},error:function(y){g.error(y)},complete:function(){g.complete()}})})},t.reduce=function(u){var s=this;if(typeof u!="function")throw new TypeError(u+" is not a function");var h=bb(this),g=arguments.length>1,y=!1,E=arguments[1],C=E;return new h(function(A){return s.subscribe({next:function(T){var N=!y;if(y=!0,!N||g)try{C=u(C,T)}catch(R){return A.error(R)}else C=T},error:function(T){A.error(T)},complete:function(){if(!y&&!g)return A.error(new TypeError("Cannot reduce an empty sequence"));A.next(C),A.complete()}})})},t.concat=function(){for(var u=this,s=arguments.length,h=new Array(s),g=0;g<s;g++)h[g]=arguments[g];var y=bb(this);return new y(function(E){var C,A=0;function T(N){C=N.subscribe({next:function(R){E.next(R)},error:function(R){E.error(R)},complete:function(){A===h.length?(C=void 0,E.complete()):T(y.from(h[A++]))}})}return T(u),function(){C&&(C.unsubscribe(),C=void 0)}})},t.flatMap=function(u){var s=this;if(typeof u!="function")throw new TypeError(u+" is not a function");var h=bb(this);return new h(function(g){var y=[],E=s.subscribe({next:function(A){if(u)try{A=u(A)}catch(N){return g.error(N)}var T=h.from(A).subscribe({next:function(N){g.next(N)},error:function(N){g.error(N)},complete:function(){var N=y.indexOf(T);N>=0&&y.splice(N,1),C()}});y.push(T)},error:function(A){g.error(A)},complete:function(){C()}});function C(){E.closed&&y.length===0&&g.complete()}return function(){y.forEach(function(A){return A.unsubscribe()}),E.unsubscribe()}})},t[yC]=function(){return this},a.from=function(u){var s=typeof this=="function"?this:a;if(u==null)throw new TypeError(u+" is not an object");var h=AS(u,yC);if(h){var g=h.call(u);if(Object(g)!==g)throw new TypeError(g+" is not an object");return L8(g)&&g.constructor===s?g:new s(function(y){return g.subscribe(y)})}if(lw("iterator")&&(h=AS(u,j8),h))return new s(function(y){fS(function(){if(!y.closed){for(var E=M8(h.call(u)),C;!(C=E()).done;){var A=C.value;if(y.next(A),y.closed)return}y.complete()}})});if(Array.isArray(u))return new s(function(y){fS(function(){if(!y.closed){for(var E=0;E<u.length;++E)if(y.next(u[E]),y.closed)return;y.complete()}})});throw new TypeError(u+" is not observable")},a.of=function(){for(var u=arguments.length,s=new Array(u),h=0;h<u;h++)s[h]=arguments[h];var g=typeof this=="function"?this:a;return new g(function(y){fS(function(){if(!y.closed){for(var E=0;E<s.length;++E)if(y.next(s[E]),y.closed)return;y.complete()}})})},iw(a,null,[{key:Z2,get:function(){return this}}]),a}();uw()&&Object.defineProperty(O0,Symbol("extensions"),{value:{symbol:yC,hostReportError:D0},configurable:!0});function q8(a){var t,r=a.Symbol;if(typeof r=="function")if(r.observable)t=r.observable;else{typeof r.for=="function"?t=r.for("https://github.com/benlesh/symbol-observable"):t=r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch{}}else t="@@observable";return t}var s0;typeof self<"u"?s0=self:typeof window<"u"?s0=window:typeof global<"u"?s0=global:typeof module<"u"?s0=module:s0=Function("return this")();q8(s0);var hT=O0.prototype,pT="@@observable";hT[pT]||(hT[pT]=function(){return this});function $8(a){return a.catch(function(){}),a}var G8=Object.prototype.toString;function Y8(a){return SC(a)}function SC(a,t){switch(G8.call(a)){case"[object Array]":{if(t=t||new Map,t.has(a))return t.get(a);var r=a.slice(0);return t.set(a,r),r.forEach(function(s,h){r[h]=SC(s,t)}),r}case"[object Object]":{if(t=t||new Map,t.has(a))return t.get(a);var u=Object.create(Object.getPrototypeOf(a));return t.set(a,u),Object.keys(a).forEach(function(s){u[s]=SC(a[s],t)}),u}default:return a}}function P8(a){var t=new Set([a]);return t.forEach(function(r){vC(r)&&Q8(r)===r&&Object.getOwnPropertyNames(r).forEach(function(u){vC(r[u])&&t.add(r[u])})}),a}function Q8(a){if(globalThis.__DEV__!==!1&&!Object.isFrozen(a))try{Object.freeze(a)}catch(t){if(t instanceof TypeError)return null;throw t}return a}function J2(a){return globalThis.__DEV__!==!1&&P8(a),a}function mT(a,t,r){var u=[];a.forEach(function(s){return s[t]&&u.push(s)}),u.forEach(function(s){return s[t](r)})}function X8(a){function t(r){Object.defineProperty(a,r,{value:O0})}return V2&&Symbol.species&&t(Symbol.species),t("@@species"),a}function Vb(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];var r=Object.create(null);return a.forEach(function(u){u&&Object.keys(u).forEach(function(s){var h=u[s];h!==void 0&&(r[s]=h)})}),r}function OS(a,t){return Vb(a,t,t.variables&&{variables:Vb(Qt(Qt({},a&&a.variables),t.variables))})}function I8(a){return a.hasOwnProperty("graphQLErrors")}var Z8=function(a){var t=v0(v0(v0([],a.graphQLErrors,!0),a.clientErrors,!0),a.protocolErrors,!0);return a.networkError&&t.push(a.networkError),t.map(function(r){return vC(r)&&r.message||"Error message not found."}).join(`
|
|
70
|
-
`)},qS=function(a){tw(t,a);function t(r){var u=r.graphQLErrors,s=r.protocolErrors,h=r.clientErrors,g=r.networkError,y=r.errorMessage,E=r.extraInfo,C=a.call(this,y)||this;return C.name="ApolloError",C.graphQLErrors=u||[],C.protocolErrors=s||[],C.clientErrors=h||[],C.networkError=g||null,C.message=y||Z8(C),C.extraInfo=E,C.cause=v0(v0(v0([g],u||[],!0),s||[],!0),h||[],!0).find(function(A){return!!A})||null,C.__proto__=t.prototype,C}return t}(Error);const{toString:vT,hasOwnProperty:K8}=Object.prototype,gT=Function.prototype.toString,DC=new Map;function mu(a,t){try{return EC(a,t)}finally{DC.clear()}}function EC(a,t){if(a===t)return!0;const r=vT.call(a),u=vT.call(t);if(r!==u)return!1;switch(r){case"[object Array]":if(a.length!==t.length)return!1;case"[object Object]":{if(bT(a,t))return!0;const s=yT(a),h=yT(t),g=s.length;if(g!==h.length)return!1;for(let y=0;y<g;++y)if(!K8.call(t,s[y]))return!1;for(let y=0;y<g;++y){const E=s[y];if(!EC(a[E],t[E]))return!1}return!0}case"[object Error]":return a.name===t.name&&a.message===t.message;case"[object Number]":if(a!==a)return t!==t;case"[object Boolean]":case"[object Date]":return+a==+t;case"[object RegExp]":case"[object String]":return a==`${t}`;case"[object Map]":case"[object Set]":{if(a.size!==t.size)return!1;if(bT(a,t))return!0;const s=a.entries(),h=r==="[object Map]";for(;;){const g=s.next();if(g.done)break;const[y,E]=g.value;if(!t.has(y)||h&&!EC(E,t.get(y)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":a=new Uint8Array(a),t=new Uint8Array(t);case"[object DataView]":{let s=a.byteLength;if(s===t.byteLength)for(;s--&&a[s]===t[s];);return s===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const s=gT.call(a);return s!==gT.call(t)?!1:!ez(s,J8)}}return!1}function yT(a){return Object.keys(a).filter(W8,a)}function W8(a){return this[a]!==void 0}const J8="{ [native code] }";function ez(a,t){const r=a.length-t.length;return r>=0&&a.indexOf(t,r)===r}function bT(a,t){let r=DC.get(a);if(r){if(r.has(t))return!0}else DC.set(a,r=new Set);return r.add(t),!1}function tz(a,t,r,u){var s=t.data,h=xS(t,["data"]),g=r.data,y=xS(r,["data"]);return mu(h,y)&&dS(R8(a).selectionSet,s,g,{fragmentMap:d8(k8(a)),variables:u})}function dS(a,t,r,u){if(t===r)return!0;var s=new Set;return a.selections.every(function(h){if(s.has(h)||(s.add(h),!u8(h,u.variables))||ST(h))return!0;if(T8(h)){var g=O8(h),y=t&&t[g],E=r&&r[g],C=h.selectionSet;if(!C)return mu(y,E);var A=Array.isArray(y),T=Array.isArray(E);if(A!==T)return!1;if(A&&T){var N=y.length;if(E.length!==N)return!1;for(var R=0;R<N;++R)if(!dS(C,y[R],E[R],u))return!1;return!0}return dS(C,y,E,u)}else{var z=h8(h,u.fragmentMap);if(z)return ST(z)?!0:dS(z.selectionSet,t,r,u)}})}function ST(a){return!!a.directives&&a.directives.some(nz)}function nz(a){return a.name.value==="nonreactive"}var pr;(function(a){a[a.loading=1]="loading",a[a.setVariables=2]="setVariables",a[a.fetchMore=3]="fetchMore",a[a.refetch=4]="refetch",a[a.poll=6]="poll",a[a.ready=7]="ready",a[a.error=8]="error"})(pr||(pr={}));function J1(a){return a?a<7:!1}var DT=Object.assign,az=Object.hasOwnProperty,eN=function(a){tw(t,a);function t(r){var u=r.queryManager,s=r.queryInfo,h=r.options,g=this,y=t.inactiveOnCreation.getValue();g=a.call(this,function(M){g._getOrCreateQuery();try{var x=M._subscription._observer;x&&!x.error&&(x.error=rz)}catch{}var B=!g.observers.size;g.observers.add(M);var H=g.last;return H&&H.error?M.error&&M.error(H.error):H&&H.result&&M.next&&M.next(g.maskResult(H.result)),B&&g.reobserve().catch(function(){}),function(){g.observers.delete(M)&&!g.observers.size&&g.tearDownQuery()}})||this,g.observers=new Set,g.subscriptions=new Set,g.dirty=!1,g._getOrCreateQuery=function(){return y&&(u.queries.set(g.queryId,s),y=!1),g.queryManager.getOrCreateQuery(g.queryId)},g.queryInfo=s,g.queryManager=u,g.waitForOwnResult=jE(h.fetchPolicy),g.isTornDown=!1,g.subscribeToMore=g.subscribeToMore.bind(g),g.maskResult=g.maskResult.bind(g);var E=u.defaultOptions.watchQuery,C=E===void 0?{}:E,A=C.fetchPolicy,T=A===void 0?"cache-first":A,N=h.fetchPolicy,R=N===void 0?T:N,z=h.initialFetchPolicy,V=z===void 0?R==="standby"?T:R:z;g.options=Qt(Qt({},h),{initialFetchPolicy:V,fetchPolicy:R}),g.queryId=s.queryId||u.generateQueryId();var L=X2(g.query);return g.queryName=L&&L.name&&L.name.value,g}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var r=this;return new Promise(function(u,s){var h={next:function(y){u(y),r.observers.delete(h),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){g.unsubscribe()},0)},error:s},g=r.subscribe(h)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(r){r===void 0&&(r=!0);var u=this.getLastResult(!0),s=this.queryInfo.networkStatus||u&&u.networkStatus||pr.ready,h=Qt(Qt({},u),{loading:J1(s),networkStatus:s}),g=this.options.fetchPolicy,y=g===void 0?"cache-first":g;if(!(jE(y)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var E=this.queryInfo.getDiff();(E.complete||this.options.returnPartialData)&&(h.data=E.result),mu(h.data,{})&&(h.data=void 0),E.complete?(delete h.partial,E.complete&&h.networkStatus===pr.loading&&(y==="cache-first"||y==="cache-only")&&(h.networkStatus=pr.ready,h.loading=!1)):h.partial=!0,h.networkStatus===pr.ready&&(h.error||h.errors)&&(h.networkStatus=pr.error),globalThis.__DEV__!==!1&&!E.complete&&!this.options.partialRefetch&&!h.loading&&!h.data&&!h.error&&iz(E.missing)}return r&&this.updateLastResult(h),h},t.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},t.prototype.isDifferentFromLastResult=function(r,u){if(!this.last)return!0;var s=this.queryManager.getDocumentInfo(this.query),h=this.queryManager.dataMasking,g=h?s.nonReactiveQuery:this.query,y=h||s.hasNonreactiveDirective?!tz(g,this.last.result,r,this.variables):!mu(this.last.result,r);return y||u&&!mu(this.last.variables,u)},t.prototype.getLast=function(r,u){var s=this.last;if(s&&s[r]&&(!u||mu(s.variables,this.variables)))return s[r]},t.prototype.getLastResult=function(r){return this.getLast("result",r)},t.prototype.getLastError=function(r){return this.getLast("error",r)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(r){var u,s={pollInterval:0},h=this.options.fetchPolicy;if(h==="no-cache"?s.fetchPolicy="no-cache":s.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&az.call(r,"variables")){var g=N8(this.query),y=g.variableDefinitions;(!y||!y.some(function(E){return E.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&ir.warn(21,r,((u=g.name)===null||u===void 0?void 0:u.value)||g)}return r&&!mu(this.options.variables,r)&&(s.variables=this.options.variables=Qt(Qt({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(s,pr.refetch)},t.prototype.fetchMore=function(r){var u=this,s=Qt(Qt({},r.query?r:Qt(Qt(Qt(Qt({},this.options),{query:this.options.query}),r),{variables:Qt(Qt({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});s.query=this.transformDocument(s.query);var h=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):s.query;var g=this.queryInfo,y=g.networkStatus;g.networkStatus=pr.fetchMore,s.notifyOnNetworkStatusChange&&this.observe();var E=new Set,C=r?.updateQuery,A=this.options.fetchPolicy!=="no-cache";return A||ir(C,22),this.queryManager.fetchQuery(h,s,pr.fetchMore).then(function(T){if(u.queryManager.removeQuery(h),g.networkStatus===pr.fetchMore&&(g.networkStatus=y),A)u.queryManager.cache.batch({update:function(z){var V=r.updateQuery;V?z.updateQuery({query:u.query,variables:u.variables,returnPartialData:!0,optimistic:!1},function(L){return V(L,{fetchMoreResult:T.data,variables:s.variables})}):z.writeQuery({query:s.query,variables:s.variables,data:T.data})},onWatchUpdated:function(z){E.add(z.query)}});else{var N=u.getLast("result"),R=C(N.data,{fetchMoreResult:T.data,variables:s.variables});u.reportResult(Qt(Qt({},N),{networkStatus:y,loading:J1(y),data:R}),u.variables)}return u.maskResult(T)}).finally(function(){A&&!E.has(u.query)&&u.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(r){var u=this,s=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(h){var g=r.updateQuery;g&&u.updateQuery(function(y,E){return g(y,Qt({subscriptionData:h},E))})},error:function(h){if(r.onError){r.onError(h);return}globalThis.__DEV__!==!1&&ir.error(23,h)}});return this.subscriptions.add(s),function(){u.subscriptions.delete(s)&&s.unsubscribe()}},t.prototype.setOptions=function(r){return this.reobserve(r)},t.prototype.silentSetOptions=function(r){var u=Vb(this.options,r||{});DT(this.options,u)},t.prototype.setVariables=function(r){return mu(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},pr.setVariables):Promise.resolve())},t.prototype.updateQuery=function(r){var u=this.queryManager,s=u.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),h=s.result,g=s.complete,y=r(h,{variables:this.variables,complete:!!g,previousData:h});y&&(u.cache.writeQuery({query:this.options.query,data:y,variables:this.variables}),u.broadcastQueries())},t.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(r,u){if(u.nextFetchPolicy){var s=u.fetchPolicy,h=s===void 0?"cache-first":s,g=u.initialFetchPolicy,y=g===void 0?h:g;h==="standby"||(typeof u.nextFetchPolicy=="function"?u.fetchPolicy=u.nextFetchPolicy(h,{reason:r,options:u,observable:this,initialFetchPolicy:y}):r==="variables-changed"?u.fetchPolicy=y:u.fetchPolicy=u.nextFetchPolicy)}return u.fetchPolicy},t.prototype.fetch=function(r,u,s){var h=this._getOrCreateQuery();return h.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(h,r,u,s)},t.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var u=this,s=u.pollingInfo,h=u.options.pollInterval;if(!h||!this.hasObservers()){s&&(clearTimeout(s.timeout),delete this.pollingInfo);return}if(!(s&&s.interval===h)){ir(h,24);var g=s||(this.pollingInfo={});g.interval=h;var y=function(){var C,A;r.pollingInfo&&(!J1(r.queryInfo.networkStatus)&&!(!((A=(C=r.options).skipPollAttempt)===null||A===void 0)&&A.call(C))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},pr.poll).then(E,E):E())},E=function(){var C=r.pollingInfo;C&&(clearTimeout(C.timeout),C.timeout=setTimeout(y,C.interval))};E()}}},t.prototype.updateLastResult=function(r,u){u===void 0&&(u=this.variables);var s=this.getLastError();return s&&this.last&&!mu(u,this.last.variables)&&(s=void 0),this.last=Qt({result:this.queryManager.assumeImmutableResults?r:Y8(r),variables:u},s?{error:s}:null)},t.prototype.reobserveAsConcast=function(r,u){var s=this;this.isTornDown=!1;var h=u===pr.refetch||u===pr.fetchMore||u===pr.poll,g=this.options.variables,y=this.options.fetchPolicy,E=Vb(this.options,r||{}),C=h?E:DT(this.options,E),A=this.transformDocument(C.query);this.lastQuery=A,h||(this.updatePolling(),r&&r.variables&&!mu(r.variables,g)&&C.fetchPolicy!=="standby"&&(C.fetchPolicy===y||typeof C.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",C),u===void 0&&(u=pr.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=jE(C.fetchPolicy));var T=function(){s.concast===z&&(s.waitForOwnResult=!1)},N=C.variables&&Qt({},C.variables),R=this.fetch(C,u,A),z=R.concast,V=R.fromLink,L={next:function(M){mu(s.variables,N)&&(T(),s.reportResult(M,N))},error:function(M){mu(s.variables,N)&&(I8(M)||(M=new qS({networkError:M})),T(),s.reportError(M,N))}};return!h&&(V||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=z,this.observer=L),z.addObserver(L),z},t.prototype.reobserve=function(r,u){return $8(this.reobserveAsConcast(r,u).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var s=this.last;this.resetLastResults();var h=this.subscribe.apply(this,r);return this.last=s,h},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(r,u){var s=this.getLastError(),h=this.isDifferentFromLastResult(r,u);(s||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,u),(s||h)&&mT(this.observers,"next",this.maskResult(r))},t.prototype.reportError=function(r,u){var s=Qt(Qt({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:pr.error,loading:!1});this.updateLastResult(s,u),mT(this.observers,"error",this.last.error=r)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(r){return this.queryManager.transform(r)},t.prototype.maskResult=function(r){return r&&"data"in r?Qt(Qt({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!J1(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var r=this.options,u=r.fetchPolicy,s=r.nextFetchPolicy;return u==="cache-and-network"||u==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(h,g){return this.nextFetchPolicy=s,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(h,g):u}}):this.reobserve()},t.inactiveOnCreation=new rw,t}(O0);X8(eN);function rz(a){globalThis.__DEV__!==!1&&ir.error(25,a.message,a.stack)}function iz(a){globalThis.__DEV__!==!1&&a&&globalThis.__DEV__!==!1&&ir.debug(26,a)}function jE(a){return a==="network-only"||a==="no-cache"||a==="standby"}var LE={exports:{}},ET;function uz(){return ET||(ET=1,function(a){a.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,a.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,a.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(a.exports,Z)}(LE)),LE.exports}var Kn=uz();const lz=Xm(Kn),oz=vR({__proto__:null,default:lz},[Kn]);var CT=V2?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function sw(){ir(!0,54);var a=Kn.createContext[CT];return a||(Object.defineProperty(Kn.createContext,CT,{value:a=Kn.createContext({}),enumerable:!1,writable:!1,configurable:!0}),a.displayName="ApolloContext"),a}var sz=function(a){var t=a.client,r=a.children,u=sw(),s=Kn.useContext(u),h=Kn.useMemo(function(){return Qt(Qt({},s),{client:t||s.client})},[s,t]);return ir(h.client,55),Kn.createElement(u.Provider,{value:h},r)};function cw(a){var t=Kn.useContext(sw()),r=a||t.client;return ir(!!r,58),r}var wT=!1,cz="useSyncExternalStore",fz=oz[cz],dz=fz||function(a,t,r){var u=t();globalThis.__DEV__!==!1&&!wT&&u!==t()&&(wT=!0,globalThis.__DEV__!==!1&&ir.error(68));var s=Kn.useState({inst:{value:u,getSnapshot:t}}),h=s[0].inst,g=s[1];return f8?Kn.useLayoutEffect(function(){Object.assign(h,{value:u,getSnapshot:t}),UE(h)&&g({inst:h})},[a,u,t]):Object.assign(h,{value:u,getSnapshot:t}),Kn.useEffect(function(){return UE(h)&&g({inst:h}),a(function(){UE(h)&&g({inst:h})})},[a]),u};function UE(a){var t=a.value,r=a.getSnapshot;try{return t!==r()}catch{return!0}}var hd;(function(a){a[a.Query=0]="Query",a[a.Mutation=1]="Mutation",a[a.Subscription=2]="Subscription"})(hd||(hd={}));var jg;function xT(a){var t;switch(a){case hd.Query:t="Query";break;case hd.Mutation:t="Mutation";break;case hd.Subscription:t="Subscription";break}return t}function tN(a){jg||(jg=new S8(G2.parser||1e3));var t=jg.get(a);if(t)return t;var r,u,s;ir(!!a&&!!a.kind,70,a);for(var h=[],g=[],y=[],E=[],C=0,A=a.definitions;C<A.length;C++){var T=A[C];if(T.kind==="FragmentDefinition"){h.push(T);continue}if(T.kind==="OperationDefinition")switch(T.operation){case"query":g.push(T);break;case"mutation":y.push(T);break;case"subscription":E.push(T);break}}ir(!h.length||g.length||y.length||E.length,71),ir(g.length+y.length+E.length<=1,72,a,g.length,E.length,y.length),u=g.length?hd.Query:hd.Mutation,!g.length&&!y.length&&(u=hd.Subscription);var N=g.length?g:y.length?y:E;ir(N.length===1,73,a,N.length);var R=N[0];r=R.variableDefinitions||[],R.name&&R.name.kind==="Name"?s=R.name.value:s="data";var z={name:s,type:u,variables:r};return jg.set(a,z),z}tN.resetCache=function(){jg=void 0};globalThis.__DEV__!==!1&&Y2("parser",function(){return jg?jg.size:0});function nN(a,t){var r=tN(a),u=xT(t),s=xT(r.type);ir(r.type===t,74,u,u,s)}var aN=q2?Kn.useLayoutEffect:Kn.useEffect,hz=Symbol.for("apollo.hook.wrappers");function pz(a,t,r){var u=r.queryManager,s=u&&u[hz],h=s&&s[a];return h?h(t):t}var mz=Object.prototype.hasOwnProperty;function AT(){}var hS=Symbol();function $S(a,t){return t===void 0&&(t=Object.create(null)),pz("useQuery",vz,cw(t&&t.client))(a,t)}function vz(a,t){var r=rN(a,t),u=r.result,s=r.obsQueryFields;return Kn.useMemo(function(){return Qt(Qt({},u),s)},[u,s])}function gz(a,t,r,u,s){function h(T){var N;nN(t,hd.Query);var R={client:a,query:t,observable:u&&u.getSSRObservable(s())||eN.inactiveOnCreation.withValue(!u,function(){return a.watchQuery(fw(void 0,a,r,s()))}),resultData:{previousData:(N=T?.resultData.current)===null||N===void 0?void 0:N.data}};return R}var g=Kn.useState(h),y=g[0],E=g[1];function C(T){var N,R;Object.assign(y.observable,(N={},N[hS]=T,N));var z=y.resultData;E(Qt(Qt({},y),{query:T.query,resultData:Object.assign(z,{previousData:((R=z.current)===null||R===void 0?void 0:R.data)||z.previousData,current:void 0})}))}if(a!==y.client||t!==y.query){var A=h(y);return E(A),[A,C]}return[y,C]}function rN(a,t){var r=cw(t.client),u=Kn.useContext(sw()).renderPromises,s=!!u,h=r.disableNetworkFetches,g=t.ssr!==!1&&!t.skip,y=t.partialRefetch,E=iN(r,a,t,s),C=gz(r,a,t,u,E),A=C[0],T=A.observable,N=A.resultData,R=C[1],z=E(T);Sz(N,T,r,t,z);var V=Kn.useMemo(function(){return wz(T)},[T]);bz(T,u,g);var L=yz(N,T,r,t,z,h,y,s,{onCompleted:t.onCompleted||AT,onError:t.onError||AT});return{result:L,obsQueryFields:V,observable:T,resultData:N,client:r,onQueryExecuted:R}}function yz(a,t,r,u,s,h,g,y,E){var C=Kn.useRef(E);Kn.useEffect(function(){C.current=E});var A=(y||h)&&u.ssr===!1&&!u.skip?uN:u.skip||s.fetchPolicy==="standby"?lN:void 0,T=a.previousData,N=Kn.useMemo(function(){return A&&TS(A,T,t,r)},[r,t,A,T]);return dz(Kn.useCallback(function(R){if(y)return function(){};var z=function(){var M=a.current,x=t.getCurrentResult();M&&M.loading===x.loading&&M.networkStatus===x.networkStatus&&mu(M.data,x.data)||CC(x,a,t,r,g,R,C.current)},V=function(M){if(L.current.unsubscribe(),L.current=t.resubscribeAfterError(z,V),!mz.call(M,"graphQLErrors"))throw M;var x=a.current;(!x||x&&x.loading||!mu(M,x.error))&&CC({data:x&&x.data,error:M,loading:!1,networkStatus:pr.error},a,t,r,g,R,C.current)},L={current:t.subscribe(z,V)};return function(){setTimeout(function(){return L.current.unsubscribe()})}},[h,y,t,a,g,r]),function(){return N||OT(a,t,C.current,g,r)},function(){return N||OT(a,t,C.current,g,r)})}function bz(a,t,r){t&&r&&(t.registerSSRObservable(a),a.getCurrentResult().loading&&t.addObservableQueryPromise(a))}function Sz(a,t,r,u,s){var h;t[hS]&&!mu(t[hS],s)&&(t.reobserve(fw(t,r,u,s)),a.previousData=((h=a.current)===null||h===void 0?void 0:h.data)||a.previousData,a.current=void 0),t[hS]=s}function iN(a,t,r,u){r===void 0&&(r={});var s=r.skip;r.ssr,r.onCompleted,r.onError;var h=r.defaultOptions,g=xS(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(y){var E=Object.assign(g,{query:t});return u&&(E.fetchPolicy==="network-only"||E.fetchPolicy==="cache-and-network")&&(E.fetchPolicy="cache-first"),E.variables||(E.variables={}),s?(E.initialFetchPolicy=E.initialFetchPolicy||E.fetchPolicy||wC(h,a.defaultOptions),E.fetchPolicy="standby"):E.fetchPolicy||(E.fetchPolicy=y?.options.initialFetchPolicy||wC(h,a.defaultOptions)),E}}function fw(a,t,r,u){var s=[],h=t.defaultOptions.watchQuery;return h&&s.push(h),r.defaultOptions&&s.push(r.defaultOptions),s.push(Vb(a&&a.options,u)),s.reduce(OS)}function CC(a,t,r,u,s,h,g){var y=t.current;y&&y.data&&(t.previousData=y.data),!a.error&&I2(a.errors)&&(a.error=new qS({graphQLErrors:a.errors})),t.current=TS(Cz(a,r,s),t.previousData,r,u),h(),Dz(a,y?.networkStatus,g)}function Dz(a,t,r){if(!a.loading){var u=Ez(a);Promise.resolve().then(function(){u?r.onError(u):a.data&&t!==a.networkStatus&&a.networkStatus===pr.ready&&r.onCompleted(a.data)}).catch(function(s){globalThis.__DEV__!==!1&&ir.warn(s)})}}function OT(a,t,r,u,s){return a.current||CC(t.getCurrentResult(),a,t,s,u,function(){},r),a.current}function wC(a,t){var r;return a?.fetchPolicy||((r=t?.watchQuery)===null||r===void 0?void 0:r.fetchPolicy)||"cache-first"}function Ez(a){return I2(a.errors)?new qS({graphQLErrors:a.errors}):a.error}function TS(a,t,r,u){var s=a.data;a.partial;var h=xS(a,["data","partial"]),g=Qt(Qt({data:s},h),{client:u,observable:r,variables:r.variables,called:a!==uN&&a!==lN,previousData:t});return g}function Cz(a,t,r){return a.partial&&r&&!a.loading&&(!a.data||Object.keys(a.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),Qt(Qt({},a),{loading:!0,networkStatus:pr.refetch})):a}var uN=J2({loading:!0,data:void 0,error:void 0,networkStatus:pr.loading}),lN=J2({loading:!1,data:void 0,error:void 0,networkStatus:pr.ready});function wz(a){return{refetch:a.refetch.bind(a),reobserve:a.reobserve.bind(a),fetchMore:a.fetchMore.bind(a),updateQuery:a.updateQuery.bind(a),startPolling:a.startPolling.bind(a),stopPolling:a.stopPolling.bind(a),subscribeToMore:a.subscribeToMore.bind(a)}}var xz=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Az(a,t){var r,u=Kn.useRef(void 0),s=Kn.useRef(void 0),h=Kn.useRef(void 0),g=OS(t,u.current||{}),y=(r=g?.query)!==null&&r!==void 0?r:a;s.current=t,h.current=y;var E=Qt(Qt({},g),{skip:!u.current}),C=rN(y,E),A=C.obsQueryFields,T=C.result,N=C.client,R=C.resultData,z=C.observable,V=C.onQueryExecuted,L=z.options.initialFetchPolicy||wC(E.defaultOptions,N.defaultOptions),M=Kn.useReducer(function(ee){return ee+1},0)[1],x=Kn.useMemo(function(){for(var ee={},J=function(be){var Ee=A[be];ee[be]=function(){return u.current||(u.current=Object.create(null),M()),Ee.apply(this,arguments)}},De=0,ke=xz;De<ke.length;De++){var ye=ke[De];J(ye)}return ee},[M,A]),B=!!u.current,H=Kn.useMemo(function(){return Qt(Qt(Qt({},T),x),{called:B})},[T,x,B]),G=Kn.useCallback(function(ee){u.current=ee?Qt(Qt({},ee),{fetchPolicy:ee.fetchPolicy||L}):{fetchPolicy:L};var J=OS(s.current,Qt({query:h.current},u.current)),De=Oz(R,z,N,y,Qt(Qt({},J),{skip:!1}),V).then(function(ke){return Object.assign(ke,x)});return De.catch(function(){}),De},[N,y,x,L,z,R,V]),W=Kn.useRef(G);aN(function(){W.current=G});var X=Kn.useCallback(function(){for(var ee=[],J=0;J<arguments.length;J++)ee[J]=arguments[J];return W.current.apply(W,ee)},[]);return[X,H]}function Oz(a,t,r,u,s,h){var g=s.query||u,y=iN(r,g,s,!1)(t),E=t.reobserveAsConcast(fw(t,r,s,y));return h(y),new Promise(function(C){var A;E.subscribe({next:function(T){A=T},error:function(){C(TS(t.getCurrentResult(),a.previousData,t,r))},complete:function(){C(TS(t.maskResult(A),a.previousData,t,r))}})})}function Tz(a,t){var r=cw(void 0);nN(a,hd.Mutation);var u=Kn.useState({called:!1,loading:!1,client:r}),s=u[0],h=u[1],g=Kn.useRef({result:s,mutationId:0,isMounted:!0,client:r,mutation:a,options:t});aN(function(){Object.assign(g.current,{client:r,options:t,mutation:a})});var y=Kn.useCallback(function(C){C===void 0&&(C={});var A=g.current,T=A.options,N=A.mutation,R=Qt(Qt({},T),{mutation:N}),z=C.client||g.current.client;!g.current.result.loading&&!R.ignoreResults&&g.current.isMounted&&h(g.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:z});var V=++g.current.mutationId,L=OS(R,C);return z.mutate(L).then(function(M){var x,B,H=M.data,G=M.errors,W=G&&G.length>0?new qS({graphQLErrors:G}):void 0,X=C.onError||((x=g.current.options)===null||x===void 0?void 0:x.onError);if(W&&X&&X(W,L),V===g.current.mutationId&&!L.ignoreResults){var ee={called:!0,loading:!1,data:H,error:W,client:z};g.current.isMounted&&!mu(g.current.result,ee)&&h(g.current.result=ee)}var J=C.onCompleted||((B=g.current.options)===null||B===void 0?void 0:B.onCompleted);return W||J?.(M.data,L),M},function(M){var x;if(V===g.current.mutationId&&g.current.isMounted){var B={loading:!1,error:M,data:void 0,called:!0,client:z};mu(g.current.result,B)||h(g.current.result=B)}var H=C.onError||((x=g.current.options)===null||x===void 0?void 0:x.onError);if(H)return H(M,L),{data:void 0,errors:M};throw M})},[]),E=Kn.useCallback(function(){if(g.current.isMounted){var C={called:!1,loading:!1,client:g.current.client};Object.assign(g.current,{mutationId:0,result:C}),h(C)}},[]);return Kn.useEffect(function(){var C=g.current;return C.isMounted=!0,function(){C.isMounted=!1}},[]),[y,Qt({reset:E},s)]}var GS=(a=>(a.Asc="ASC",a.Desc="DESC",a))(GS||{});const kz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"allContentExperiences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paginate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaginationOptionsInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ContentExperiencesFilterInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderOptionsInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentExperiences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paginate"},value:{kind:"Variable",name:{kind:"Name",value:"paginate"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pagination"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentExperienceFragment"}},{kind:"Field",name:{kind:"Name",value:"pathPart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pathPartFragment"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"channelFragment"}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"tagFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"forceVisibilityOnDescendants"}},{kind:"Field",name:{kind:"Name",value:"stage"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentItems"}},{kind:"Field",name:{kind:"Name",value:"hasForcedVisibility"}},{kind:"Field",name:{kind:"Name",value:"nestingLevel"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"assetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Asset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"fileName"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pagination"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PageInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentExperienceFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentExperience"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"tagFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"preview"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pathPartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PathPart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}},{kind:"Field",name:{kind:"Name",value:"hasContentExperience"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildrenWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendants"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendantsWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"contentExperience"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"channelFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Channel"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}}]},Nz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"contentExperience"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prn"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PRN"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentExperience"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prn"},value:{kind:"Variable",name:{kind:"Name",value:"prn"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentExperienceFragment"}},{kind:"Field",name:{kind:"Name",value:"pathPart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pathPartFragment"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"channelFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"experienceComponent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"experienceComponentFragment"}},{kind:"Field",name:{kind:"Name",value:"grid"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"gridFragment"}},{kind:"Field",name:{kind:"Name",value:"gridPlacements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"gridPlacementFragment"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"tagFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"forceVisibilityOnDescendants"}},{kind:"Field",name:{kind:"Name",value:"stage"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentItems"}},{kind:"Field",name:{kind:"Name",value:"hasForcedVisibility"}},{kind:"Field",name:{kind:"Name",value:"nestingLevel"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"assetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Asset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"fileName"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentExperienceFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentExperience"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"tagFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"preview"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pathPartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PathPart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}},{kind:"Field",name:{kind:"Name",value:"hasContentExperience"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildrenWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendants"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendantsWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"contentExperience"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"channelFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Channel"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"experienceComponentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ExperienceComponent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"stage"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"isDraft"}},{kind:"Field",name:{kind:"Name",value:"preview"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"isGlobal"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"gridFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Grid"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"rows"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"gridPlacementFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GridPlacement"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"row"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}}]},Rz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"allContentItems"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paginate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaginationOptionsInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ContentItemsFilterInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderOptionsInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paginate"},value:{kind:"Variable",name:{kind:"Name",value:"paginate"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pagination"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentItemFragment"}},{kind:"Field",name:{kind:"Name",value:"displayImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"contentValues"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValueFragment"}},{kind:"Field",name:{kind:"Name",value:"contentField"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}},{kind:"Field",name:{kind:"Name",value:"contentValidationRules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValidationRuleFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"relatedAsset"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"relatedContentItem"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentItemFragment"}},{kind:"Field",name:{kind:"Name",value:"contentValues"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValueFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"contentType"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentTypeFragment"}},{kind:"Field",name:{kind:"Name",value:"contentFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"tagFragment"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"assetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Asset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"fileName"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentFieldFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentField"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pagination"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PageInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"isDraft"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"displayImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentValueFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"primitiveValue"}},{kind:"Field",name:{kind:"Name",value:"interpolatedSmartText"}},{kind:"Field",name:{kind:"Name",value:"isReusable"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentValidationRuleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentValidationRule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"ruleType"}},{kind:"Field",name:{kind:"Name",value:"settings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CountContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"}},{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValueTypeContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedTypes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AllowedValuesContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedValues"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DateBetweenContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}},{kind:"Field",name:{kind:"Name",value:"end"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DecimalCountContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NumberBetweenContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"}},{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelatableContentTypesContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedContentTypes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StringFormatContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedFormat"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentTypeFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentType"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"displayNameTemplate"}},{kind:"Field",name:{kind:"Name",value:"displayImageField"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"tagFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"forceVisibilityOnDescendants"}},{kind:"Field",name:{kind:"Name",value:"stage"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfContentItems"}},{kind:"Field",name:{kind:"Name",value:"hasForcedVisibility"}},{kind:"Field",name:{kind:"Name",value:"nestingLevel"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}}]},Bz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"allContentTypes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paginate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaginationOptionsInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ContentTypesFilterInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OrderOptionsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentTypes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paginate"},value:{kind:"Variable",name:{kind:"Name",value:"paginate"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pagination"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentTypeFragment"}},{kind:"Field",name:{kind:"Name",value:"contentFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}},{kind:"Field",name:{kind:"Name",value:"contentValidationRules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValidationRuleFragment"}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentFieldFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentField"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pagination"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PageInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentTypeFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentType"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"displayNameTemplate"}},{kind:"Field",name:{kind:"Name",value:"displayImageField"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentValidationRuleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentValidationRule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"ruleType"}},{kind:"Field",name:{kind:"Name",value:"settings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CountContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"}},{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValueTypeContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedTypes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AllowedValuesContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedValues"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DateBetweenContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}},{kind:"Field",name:{kind:"Name",value:"end"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DecimalCountContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NumberBetweenContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"}},{kind:"Field",name:{kind:"Name",value:"max"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelatableContentTypesContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedContentTypes"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StringFormatContentValidationRuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedFormat"}}]}}]}}]}}]},_z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"allContentValues"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paginate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaginationOptionsInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ContentValuesFilterInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderOptionsInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentValues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paginate"},value:{kind:"Variable",name:{kind:"Name",value:"paginate"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pagination"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValueFragment"}},{kind:"Field",name:{kind:"Name",value:"contentField"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"contentItem"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentItemFragment"}},{kind:"Field",name:{kind:"Name",value:"contentType"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentTypeFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"relatedAsset"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedGridPlacement"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"gridPlacementFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedPathPart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pathPartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"relatedContentItem"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentItemFragment"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"assetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Asset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"fileName"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentFieldFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentField"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pagination"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PageInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentValueFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"primitiveValue"}},{kind:"Field",name:{kind:"Name",value:"interpolatedSmartText"}},{kind:"Field",name:{kind:"Name",value:"isReusable"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"isDraft"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"displayImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentTypeFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentType"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"displayNameTemplate"}},{kind:"Field",name:{kind:"Name",value:"displayImageField"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentFieldFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"gridPlacementFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GridPlacement"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"row"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pathPartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PathPart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}},{kind:"Field",name:{kind:"Name",value:"hasContentExperience"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildrenWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendants"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendantsWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"contentExperience"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}}]}}]},Fz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createContentValue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createContentValueInput"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateContentValueInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createContentValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"createContentValueInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentValueFragment"}},{kind:"Field",name:{kind:"Name",value:"relatedAsset"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"relatedContentItem"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"contentItemFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedGridPlacement"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"gridPlacementFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedPathPart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pathPartFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"assetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Asset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"fileName"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentValueFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"primitiveValue"}},{kind:"Field",name:{kind:"Name",value:"interpolatedSmartText"}},{kind:"Field",name:{kind:"Name",value:"isReusable"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"contentItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"isDraft"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"displayImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"assetFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"gridPlacementFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GridPlacement"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"row"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pathPartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PathPart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"prn"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"channel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}},{kind:"Field",name:{kind:"Name",value:"hasContentExperience"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildren"}},{kind:"Field",name:{kind:"Name",value:"amountOfChildrenWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendants"}},{kind:"Field",name:{kind:"Name",value:"amountOfDescendantsWithContentExperiences"}},{kind:"Field",name:{kind:"Name",value:"contentExperience"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prn"}}]}}]}}]};var wb={exports:{}};/**
|
|
71
|
-
* @license
|
|
72
|
-
* Lodash <https://lodash.com/>
|
|
73
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
74
|
-
* Released under MIT license <https://lodash.com/license>
|
|
75
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
76
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
77
|
-
*/var Mz=wb.exports,TT;function zz(){return TT||(TT=1,function(a,t){(function(){var r,u="4.17.21",s=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",C=500,A="__lodash_placeholder__",T=1,N=2,R=4,z=1,V=2,L=1,M=2,x=4,B=8,H=16,G=32,W=64,X=128,ee=256,J=512,De=30,ke="...",ye=800,be=16,Ee=1,ze=2,K=3,ue=1/0,pe=9007199254740991,Ve=17976931348623157e292,fe=NaN,Re=4294967295,Le=Re-1,he=Re>>>1,nt=[["ary",X],["bind",L],["bindKey",M],["curry",B],["curryRight",H],["flip",J],["partial",G],["partialRight",W],["rearg",ee]],bt="[object Arguments]",rt="[object Array]",_n="[object AsyncFunction]",Ft="[object Boolean]",oe="[object Date]",Qe="[object DOMException]",Ne="[object Error]",Ie="[object Function]",St="[object GeneratorFunction]",tt="[object Map]",jn="[object Number]",Ut="[object Null]",Ot="[object Object]",Fn="[object Promise]",Zt="[object Proxy]",Rt="[object RegExp]",Yt="[object Set]",Ln="[object String]",va="[object Symbol]",Ur="[object Undefined]",Ba="[object WeakMap]",xa="[object WeakSet]",Xt="[object ArrayBuffer]",Dn="[object DataView]",Kt="[object Float32Array]",mr="[object Float64Array]",ai="[object Int8Array]",ge="[object Int16Array]",xe="[object Int32Array]",Fe="[object Uint8Array]",Ke="[object Uint8ClampedArray]",vt="[object Uint16Array]",nn="[object Uint32Array]",Wt=/\b__p \+= '';/g,zt=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ut=/&(?:amp|lt|gt|quot|#39);/g,st=/[&<>"']/g,gt=RegExp(ut.source),Pt=RegExp(st.source),Vt=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,Dt=/<%=([\s\S]+?)%>/g,pn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xr=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/[\\^$.*+?()[\]{}|]/g,Ct=RegExp(at.source),jt=/^\s+/,Aa=/\s/,ur=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ri=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vr=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$o=/\w*$/,Yu=/^[-+]0x[0-9a-f]+$/i,za=/^0b[01]+$/i,Go=/^\[object .+?Constructor\]$/,Hr=/^0o[0-7]+$/i,Pu=/^(?:0|[1-9]\d*)$/,Qu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Un=/($^)/,Ai=/['\n\r\u2028\u2029\\]/g,bl="\\ud800-\\udfff",Yo="\\u0300-\\u036f",Xu="\\ufe20-\\ufe2f",ro="\\u20d0-\\u20ff",Iu=Yo+Xu+ro,yd="\\u2700-\\u27bf",Ih="a-z\\xdf-\\xf6\\xf8-\\xff",Ys="\\xac\\xb1\\xd7\\xf7",ii="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Po="\\u2000-\\u206f",Ps=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Zh="A-Z\\xc0-\\xd6\\xd8-\\xde",Ar="\\ufe0e\\ufe0f",Zc=Ys+ii+Po+Ps,bd="['’]",Qo="["+bl+"]",Xo="["+Zc+"]",io="["+Iu+"]",Ig="\\d+",gu="["+yd+"]",Sd="["+Ih+"]",Dd="[^"+bl+Zc+Ig+yd+Ih+Zh+"]",Qs="\\ud83c[\\udffb-\\udfff]",Xs="(?:"+io+"|"+Qs+")",Kh="[^"+bl+"]",Ed="(?:\\ud83c[\\udde6-\\uddff]){2}",Io="[\\ud800-\\udbff][\\udc00-\\udfff]",Is="["+Zh+"]",Cd="\\u200d",Kc="(?:"+Sd+"|"+Dd+")",Zs="(?:"+Is+"|"+Dd+")",Zg="(?:"+bd+"(?:d|ll|m|re|s|t|ve))?",Im="(?:"+bd+"(?:D|LL|M|RE|S|T|VE))?",Wc=Xs+"?",Zo="["+Ar+"]?",Wh="(?:"+Cd+"(?:"+[Kh,Ed,Io].join("|")+")"+Zo+Wc+")*",Jc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ef="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zm=Zo+Wc+Wh,Km="(?:"+[gu,Ed,Io].join("|")+")"+Zm,tf="(?:"+[Kh+io+"?",io,Ed,Io,Qo].join("|")+")",Ks=RegExp(bd,"g"),Sl=RegExp(io,"g"),nf=RegExp(Qs+"(?="+Qs+")|"+tf+Zm,"g"),uo=RegExp([Is+"?"+Sd+"+"+Zg+"(?="+[Xo,Is,"$"].join("|")+")",Zs+"+"+Im+"(?="+[Xo,Is+Kc,"$"].join("|")+")",Is+"?"+Kc+"+"+Zg,Is+"+"+Im,ef,Jc,Ig,Km].join("|"),"g"),lo=RegExp("["+Cd+bl+Iu+Ar+"]"),af=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ws=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wm=-1,dn={};dn[Kt]=dn[mr]=dn[ai]=dn[ge]=dn[xe]=dn[Fe]=dn[Ke]=dn[vt]=dn[nn]=!0,dn[bt]=dn[rt]=dn[Xt]=dn[Ft]=dn[Dn]=dn[oe]=dn[Ne]=dn[Ie]=dn[tt]=dn[jn]=dn[Ot]=dn[Rt]=dn[Yt]=dn[Ln]=dn[Ba]=!1;var ua={};ua[bt]=ua[rt]=ua[Xt]=ua[Dn]=ua[Ft]=ua[oe]=ua[Kt]=ua[mr]=ua[ai]=ua[ge]=ua[xe]=ua[tt]=ua[jn]=ua[Ot]=ua[Rt]=ua[Yt]=ua[Ln]=ua[va]=ua[Fe]=ua[Ke]=ua[vt]=ua[nn]=!0,ua[Ne]=ua[Ie]=ua[Ba]=!1;var Jh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Ko={"&":"&","<":"<",">":">",""":'"',"'":"'"},ep={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wd=parseFloat,Kg=parseInt,tp=typeof qs=="object"&&qs&&qs.Object===Object&&qs,np=typeof self=="object"&&self&&self.Object===Object&&self,Qa=tp||np||Function("return this")(),oo=t&&!t.nodeType&&t,so=oo&&!0&&a&&!a.nodeType&&a,Jm=so&&so.exports===oo,ap=Jm&&tp.process,yu=function(){try{var de=so&&so.require&&so.require("util").types;return de||ap&&ap.binding&&ap.binding("util")}catch{}}(),rp=yu&&yu.isArrayBuffer,Wg=yu&&yu.isDate,Jg=yu&&yu.isMap,ey=yu&&yu.isRegExp,rf=yu&&yu.isSet,ev=yu&&yu.isTypedArray;function li(de,qe,Be){switch(Be.length){case 0:return de.call(qe);case 1:return de.call(qe,Be[0]);case 2:return de.call(qe,Be[0],Be[1]);case 3:return de.call(qe,Be[0],Be[1],Be[2])}return de.apply(qe,Be)}function ty(de,qe,Be,ht){for(var qt=-1,rn=de==null?0:de.length;++qt<rn;){var la=de[qt];qe(ht,la,Be(la),de)}return ht}function Ki(de,qe){for(var Be=-1,ht=de==null?0:de.length;++Be<ht&&qe(de[Be],Be,de)!==!1;);return de}function tv(de,qe){for(var Be=de==null?0:de.length;Be--&&qe(de[Be],Be,de)!==!1;);return de}function nv(de,qe){for(var Be=-1,ht=de==null?0:de.length;++Be<ht;)if(!qe(de[Be],Be,de))return!1;return!0}function Vr(de,qe){for(var Be=-1,ht=de==null?0:de.length,qt=0,rn=[];++Be<ht;){var la=de[Be];qe(la,Be,de)&&(rn[qt++]=la)}return rn}function Dl(de,qe){var Be=de==null?0:de.length;return!!Be&&ec(de,qe,0)>-1}function Wi(de,qe,Be){for(var ht=-1,qt=de==null?0:de.length;++ht<qt;)if(Be(qe,de[ht]))return!0;return!1}function Mn(de,qe){for(var Be=-1,ht=de==null?0:de.length,qt=Array(ht);++Be<ht;)qt[Be]=qe(de[Be],Be,de);return qt}function bu(de,qe){for(var Be=-1,ht=qe.length,qt=de.length;++Be<ht;)de[qt+Be]=qe[Be];return de}function uf(de,qe,Be,ht){var qt=-1,rn=de==null?0:de.length;for(ht&&rn&&(Be=de[++qt]);++qt<rn;)Be=qe(Be,de[qt],qt,de);return Be}function av(de,qe,Be,ht){var qt=de==null?0:de.length;for(ht&&qt&&(Be=de[--qt]);qt--;)Be=qe(Be,de[qt],qt,de);return Be}function qr(de,qe){for(var Be=-1,ht=de==null?0:de.length;++Be<ht;)if(qe(de[Be],Be,de))return!0;return!1}var ny=Su("length");function ip(de){return de.split("")}function Js(de){return de.match(ot)||[]}function up(de,qe,Be){var ht;return Be(de,function(qt,rn,la){if(qe(qt,rn,la))return ht=rn,!1}),ht}function xd(de,qe,Be,ht){for(var qt=de.length,rn=Be+(ht?1:-1);ht?rn--:++rn<qt;)if(qe(de[rn],rn,de))return rn;return-1}function ec(de,qe,Be){return qe===qe?cv(de,qe,Be):xd(de,lf,Be)}function Ad(de,qe,Be,ht){for(var qt=Be-1,rn=de.length;++qt<rn;)if(ht(de[qt],qe))return qt;return-1}function lf(de){return de!==de}function lp(de,qe){var Be=de==null?0:de.length;return Be?El(de,qe)/Be:fe}function Su(de){return function(qe){return qe==null?r:qe[de]}}function Od(de){return function(qe){return de==null?r:de[qe]}}function Td(de,qe,Be,ht,qt){return qt(de,function(rn,la,zn){Be=ht?(ht=!1,rn):qe(Be,rn,la,zn)}),Be}function kd(de,qe){var Be=de.length;for(de.sort(qe);Be--;)de[Be]=de[Be].value;return de}function El(de,qe){for(var Be,ht=-1,qt=de.length;++ht<qt;){var rn=qe(de[ht]);rn!==r&&(Be=Be===r?rn:Be+rn)}return Be}function Cl(de,qe){for(var Be=-1,ht=Array(de);++Be<de;)ht[Be]=qe(Be);return ht}function rv(de,qe){return Mn(qe,function(Be){return[Be,de[Be]]})}function Wo(de){return de&&de.slice(0,ga(de)+1).replace(jt,"")}function Oi(de){return function(qe){return de(qe)}}function of(de,qe){return Mn(qe,function(Be){return de[Be]})}function Jo(de,qe){return de.has(qe)}function Du(de,qe){for(var Be=-1,ht=de.length;++Be<ht&&ec(qe,de[Be],0)>-1;);return Be}function Eu(de,qe){for(var Be=de.length;Be--&&ec(qe,de[Be],0)>-1;);return Be}function iv(de,qe){for(var Be=de.length,ht=0;Be--;)de[Be]===qe&&++ht;return ht}var wl=Od(Jh),uv=Od(ui);function lv(de){return"\\"+ep[de]}function tc(de,qe){return de==null?r:de[qe]}function Cu(de){return lo.test(de)}function ov(de){return af.test(de)}function sf(de){for(var qe,Be=[];!(qe=de.next()).done;)Be.push(qe.value);return Be}function Nd(de){var qe=-1,Be=Array(de.size);return de.forEach(function(ht,qt){Be[++qe]=[qt,ht]}),Be}function Rd(de,qe){return function(Be){return de(qe(Be))}}function oi(de,qe){for(var Be=-1,ht=de.length,qt=0,rn=[];++Be<ht;){var la=de[Be];(la===qe||la===A)&&(de[Be]=A,rn[qt++]=Be)}return rn}function wu(de){var qe=-1,Be=Array(de.size);return de.forEach(function(ht){Be[++qe]=ht}),Be}function sv(de){var qe=-1,Be=Array(de.size);return de.forEach(function(ht){Be[++qe]=[ht,ht]}),Be}function cv(de,qe,Be){for(var ht=Be-1,qt=de.length;++ht<qt;)if(de[ht]===qe)return ht;return-1}function Or(de,qe,Be){for(var ht=Be+1;ht--;)if(de[ht]===qe)return ht;return ht}function Ji(de){return Cu(de)?fv(de):ny(de)}function gr(de){return Cu(de)?_d(de):ip(de)}function ga(de){for(var qe=de.length;qe--&&Aa.test(de.charAt(qe)););return qe}var Bd=Od(Ko);function fv(de){for(var qe=nf.lastIndex=0;nf.test(de);)++qe;return qe}function _d(de){return de.match(nf)||[]}function nc(de){return de.match(uo)||[]}var xl=function de(qe){qe=qe==null?Qa:$r.defaults(Qa.Object(),qe,$r.pick(Qa,Ws));var Be=qe.Array,ht=qe.Date,qt=qe.Error,rn=qe.Function,la=qe.Math,zn=qe.Object,op=qe.RegExp,dv=qe.String,eu=qe.TypeError,cf=Be.prototype,sp=rn.prototype,ac=zn.prototype,ff=qe["__core-js_shared__"],df=sp.toString,$n=ac.hasOwnProperty,xu=0,cp=function(){var f=/[^.]+$/.exec(ff&&ff.keys&&ff.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),Gr=ac.toString,Ti=df.call(zn),es=Qa._,Al=op("^"+df.call($n).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ki=Jm?qe.Buffer:r,si=qe.Symbol,co=qe.Uint8Array,Zu=ki?ki.allocUnsafe:r,fo=Rd(zn.getPrototypeOf,zn),hf=zn.create,rc=ac.propertyIsEnumerable,Fd=cf.splice,ci=si?si.isConcatSpreadable:r,ho=si?si.iterator:r,Tr=si?si.toStringTag:r,un=function(){try{var f=Ll(zn,"defineProperty");return f({},"",{}),f}catch{}}(),et=qe.clearTimeout!==Qa.clearTimeout&&qe.clearTimeout,Au=ht&&ht.now!==Qa.Date.now&&ht.now,pf=qe.setTimeout!==Qa.setTimeout&&qe.setTimeout,ya=la.ceil,Ku=la.floor,Ol=zn.getOwnPropertySymbols,Md=ki?ki.isBuffer:r,ic=qe.isFinite,Ou=cf.join,Ni=Rd(zn.keys,zn),ca=la.max,ba=la.min,ja=ht.now,Hn=qe.parseInt,zd=la.random,uc=cf.reverse,Tu=Ll(qe,"DataView"),Ea=Ll(qe,"Map"),Gn=Ll(qe,"Promise"),xn=Ll(qe,"Set"),Yr=Ll(qe,"WeakMap"),Pr=Ll(zn,"create"),Tl=Yr&&new Yr,Ri={},jd=Vl(Tu),hv=Vl(Ea),mf=Vl(Gn),vf=Vl(xn),pv=Vl(Yr),po=si?si.prototype:r,mo=po?po.valueOf:r,kl=po?po.toString:r;function q(f){if(pa(f)&&!Ht(f)&&!(f instanceof An)){if(f instanceof fi)return f;if($n.call(f,"__wrapped__"))return er(f)}return new fi(f)}var Bi=function(){function f(){}return function(p){if(!ta(p))return{};if(hf)return hf(p);f.prototype=p;var D=new f;return f.prototype=r,D}}();function tu(){}function fi(f,p){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=r}q.templateSettings={escape:Vt,evaluate:It,interpolate:Dt,variable:"",imports:{_:q}},q.prototype=tu.prototype,q.prototype.constructor=q,fi.prototype=Bi(tu.prototype),fi.prototype.constructor=fi;function An(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Re,this.__views__=[]}function gf(){var f=new An(this.__wrapped__);return f.__actions__=Ja(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ja(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ja(this.__views__),f}function Ld(){if(this.__filtered__){var f=new An(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function ts(){var f=this.__wrapped__.value(),p=this.__dir__,D=Ht(f),k=p<0,U=D?f.length:0,P=Av(0,U,this.__views__),ne=P.start,le=P.end,ve=le-ne,We=k?le:ne-1,Pe=this.__iteratees__,Je=Pe.length,ft=0,At=ba(ve,this.__takeCount__);if(!D||!k&&U==ve&&At==ve)return ly(f,this.__actions__);var Lt=[];e:for(;ve--&&ft<At;){We+=p;for(var gn=-1,Mt=f[We];++gn<Je;){var Rn=Pe[gn],Yn=Rn.iteratee,Hu=Rn.type,Pi=Yn(Mt);if(Hu==ze)Mt=Pi;else if(!Pi){if(Hu==Ee)continue e;break e}}Lt[ft++]=Mt}return Lt}An.prototype=Bi(tu.prototype),An.prototype.constructor=An;function Oa(f){var p=-1,D=f==null?0:f.length;for(this.clear();++p<D;){var k=f[p];this.set(k[0],k[1])}}function Ud(){this.__data__=Pr?Pr(null):{},this.size=0}function mv(f){var p=this.has(f)&&delete this.__data__[f];return this.size-=p?1:0,p}function yf(f){var p=this.__data__;if(Pr){var D=p[f];return D===E?r:D}return $n.call(p,f)?p[f]:r}function fp(f){var p=this.__data__;return Pr?p[f]!==r:$n.call(p,f)}function ay(f,p){var D=this.__data__;return this.size+=this.has(f)?0:1,D[f]=Pr&&p===r?E:p,this}Oa.prototype.clear=Ud,Oa.prototype.delete=mv,Oa.prototype.get=yf,Oa.prototype.has=fp,Oa.prototype.set=ay;function fa(f){var p=-1,D=f==null?0:f.length;for(this.clear();++p<D;){var k=f[p];this.set(k[0],k[1])}}function bf(){this.__data__=[],this.size=0}function Nl(f){var p=this.__data__,D=oc(p,f);if(D<0)return!1;var k=p.length-1;return D==k?p.pop():Fd.call(p,D,1),--this.size,!0}function ns(f){var p=this.__data__,D=oc(p,f);return D<0?r:p[D][1]}function Hd(f){return oc(this.__data__,f)>-1}function ku(f,p){var D=this.__data__,k=oc(D,f);return k<0?(++this.size,D.push([f,p])):D[k][1]=p,this}fa.prototype.clear=bf,fa.prototype.delete=Nl,fa.prototype.get=ns,fa.prototype.has=Hd,fa.prototype.set=ku;function da(f){var p=-1,D=f==null?0:f.length;for(this.clear();++p<D;){var k=f[p];this.set(k[0],k[1])}}function dp(){this.size=0,this.__data__={hash:new Oa,map:new(Ea||fa),string:new Oa}}function hp(f){var p=bc(this,f).delete(f);return this.size-=p?1:0,p}function ry(f){return bc(this,f).get(f)}function pp(f){return bc(this,f).has(f)}function Rl(f,p){var D=bc(this,f),k=D.size;return D.set(f,p),this.size+=D.size==k?0:1,this}da.prototype.clear=dp,da.prototype.delete=hp,da.prototype.get=ry,da.prototype.has=pp,da.prototype.set=Rl;function Wu(f){var p=-1,D=f==null?0:f.length;for(this.__data__=new da;++p<D;)this.add(f[p])}function lc(f){return this.__data__.set(f,E),this}function mp(f){return this.__data__.has(f)}Wu.prototype.add=Wu.prototype.push=lc,Wu.prototype.has=mp;function yr(f){var p=this.__data__=new fa(f);this.size=p.size}function vp(){this.__data__=new fa,this.size=0}function Vd(f){var p=this.__data__,D=p.delete(f);return this.size=p.size,D}function gp(f){return this.__data__.get(f)}function yp(f){return this.__data__.has(f)}function qd(f,p){var D=this.__data__;if(D instanceof fa){var k=D.__data__;if(!Ea||k.length<s-1)return k.push([f,p]),this.size=++D.size,this;D=this.__data__=new da(k)}return D.set(f,p),this.size=D.size,this}yr.prototype.clear=vp,yr.prototype.delete=Vd,yr.prototype.get=gp,yr.prototype.has=yp,yr.prototype.set=qd;function bp(f,p){var D=Ht(f),k=!D&&Dr(f),U=!D&&!k&&Il(f),P=!D&&!k&&!U&&Wf(f),ne=D||k||U||P,le=ne?Cl(f.length,dv):[],ve=le.length;for(var We in f)(p||$n.call(f,We))&&!(ne&&(We=="length"||U&&(We=="offset"||We=="parent")||P&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||Mu(We,ve)))&&le.push(We);return le}function as(f){var p=f.length;return p?f[Bu(0,p-1)]:r}function vv(f,p){return Dc(Ja(f),Ru(p,0,f.length))}function gv(f){return Dc(Ja(f))}function Nu(f,p,D){(D!==r&&!Wr(f[p],D)||D===r&&!(p in f))&&el(f,p,D)}function rs(f,p,D){var k=f[p];(!($n.call(f,p)&&Wr(k,D))||D===r&&!(p in f))&&el(f,p,D)}function oc(f,p){for(var D=f.length;D--;)if(Wr(f[D][0],p))return D;return-1}function _i(f,p,D,k){return Ca(f,function(U,P,ne){p(k,U,D(U),ne)}),k}function Ju(f,p){return f&&pi(p,tr(p),f)}function sc(f,p){return f&&pi(p,fr(p),f)}function el(f,p,D){p=="__proto__"&&un?un(f,p,{configurable:!0,enumerable:!0,value:D,writable:!0}):f[p]=D}function $d(f,p){for(var D=-1,k=p.length,U=Be(k),P=f==null;++D<k;)U[D]=P?r:nd(f,p[D]);return U}function Ru(f,p,D){return f===f&&(D!==r&&(f=f<=D?f:D),p!==r&&(f=f>=p?f:p)),f}function Ka(f,p,D,k,U,P){var ne,le=p&T,ve=p&N,We=p&R;if(D&&(ne=U?D(f,k,U,P):D(f)),ne!==r)return ne;if(!ta(f))return f;var Pe=Ht(f);if(Pe){if(ne=ds(f),!le)return Ja(f,ne)}else{var Je=br(f),ft=Je==Ie||Je==St;if(Il(f))return _p(f,le);if(Je==Ot||Je==bt||ft&&!U){if(ne=ve||ft?{}:Ff(f),!le)return ve?mc(f,sc(ne,f)):zp(f,Ju(ne,f))}else{if(!ua[Je])return U?f:{};ne=$p(f,Je,le)}}P||(P=new yr);var At=P.get(f);if(At)return At;P.set(f,ne),Nc(f)?f.forEach(function(Mt){ne.add(Ka(Mt,p,D,Mt,f,P))}):ol(f)&&f.forEach(function(Mt,Rn){ne.set(Rn,Ka(Mt,p,D,Rn,f,P))});var Lt=We?ve?il:Up:ve?fr:tr,gn=Pe?r:Lt(f);return Ki(gn||f,function(Mt,Rn){gn&&(Rn=Mt,Mt=f[Rn]),rs(ne,Rn,Ka(Mt,p,D,Rn,f,P))}),ne}function Sp(f){var p=tr(f);return function(D){return Sf(D,f,p)}}function Sf(f,p,D){var k=D.length;if(f==null)return!k;for(f=zn(f);k--;){var U=D[k],P=p[U],ne=f[U];if(ne===r&&!(U in f)||!P(ne))return!1}return!0}function is(f,p,D){if(typeof f!="function")throw new eu(g);return zf(function(){f.apply(r,D)},p)}function vo(f,p,D,k){var U=-1,P=Dl,ne=!0,le=f.length,ve=[],We=p.length;if(!le)return ve;D&&(p=Mn(p,Oi(D))),k?(P=Wi,ne=!1):p.length>=s&&(P=Jo,ne=!1,p=new Wu(p));e:for(;++U<le;){var Pe=f[U],Je=D==null?Pe:D(Pe);if(Pe=k||Pe!==0?Pe:0,ne&&Je===Je){for(var ft=We;ft--;)if(p[ft]===Je)continue e;ve.push(Pe)}else P(p,Je,k)||ve.push(Pe)}return ve}var Ca=mi(kr),cc=mi(nu,!0);function Df(f,p){var D=!0;return Ca(f,function(k,U,P){return D=!!p(k,U,P),D}),D}function di(f,p,D){for(var k=-1,U=f.length;++k<U;){var P=f[k],ne=p(P);if(ne!=null&&(le===r?ne===ne&&!Fr(ne):D(ne,le)))var le=ne,ve=P}return ve}function ln(f,p,D,k){var U=f.length;for(D=tn(D),D<0&&(D=-D>U?0:U+D),k=k===r||k>U?U:tn(k),k<0&&(k+=U),k=D>k?0:Zl(k);D<k;)f[D++]=p;return f}function Xn(f,p){var D=[];return Ca(f,function(k,U,P){p(k,U,P)&&D.push(k)}),D}function En(f,p,D,k,U){var P=-1,ne=f.length;for(D||(D=Ul),U||(U=[]);++P<ne;){var le=f[P];p>0&&D(le)?p>1?En(le,p-1,D,k,U):bu(U,le):k||(U[U.length]=le)}return U}var fc=cs(),Fi=cs(!0);function kr(f,p){return f&&fc(f,p,tr)}function nu(f,p){return f&&Fi(f,p,tr)}function Qr(f,p){return Vr(p,function(D){return lu(f[D])})}function hi(f,p){p=Fl(p,f);for(var D=0,k=p.length;f!=null&&D<k;)f=f[Jn(p[D++])];return D&&D==k?f:r}function Dp(f,p,D){var k=p(f);return Ht(f)?k:bu(k,D(f))}function Tn(f){return f==null?f===r?Ur:Ut:Tr&&Tr in zn(f)?Hp(f):Qp(f)}function Ef(f,p){return f>p}function Ep(f,p){return f!=null&&$n.call(f,p)}function us(f,p){return f!=null&&p in zn(f)}function yv(f,p,D){return f>=ba(p,D)&&f<ca(p,D)}function Cp(f,p,D){for(var k=D?Wi:Dl,U=f[0].length,P=f.length,ne=P,le=Be(P),ve=1/0,We=[];ne--;){var Pe=f[ne];ne&&p&&(Pe=Mn(Pe,Oi(p))),ve=ba(Pe.length,ve),le[ne]=!D&&(p||U>=120&&Pe.length>=120)?new Wu(ne&&Pe):r}Pe=f[0];var Je=-1,ft=le[0];e:for(;++Je<U&&We.length<ve;){var At=Pe[Je],Lt=p?p(At):At;if(At=D||At!==0?At:0,!(ft?Jo(ft,Lt):k(We,Lt,D))){for(ne=P;--ne;){var gn=le[ne];if(!(gn?Jo(gn,Lt):k(f[ne],Lt,D)))continue e}ft&&ft.push(Lt),We.push(At)}}return We}function wp(f,p,D,k){return kr(f,function(U,P,ne){p(k,D(U),P,ne)}),k}function Bl(f,p,D){p=Fl(p,f),f=Sc(f,p);var k=f==null?f:f[Jn(Sr(p))];return k==null?r:li(k,f,D)}function Gd(f){return pa(f)&&Tn(f)==bt}function Xr(f){return pa(f)&&Tn(f)==Xt}function La(f){return pa(f)&&Tn(f)==oe}function go(f,p,D,k,U){return f===p?!0:f==null||p==null||!pa(f)&&!pa(p)?f!==f&&p!==p:Yd(f,p,D,k,go,U)}function Yd(f,p,D,k,U,P){var ne=Ht(f),le=Ht(p),ve=ne?rt:br(f),We=le?rt:br(p);ve=ve==bt?Ot:ve,We=We==bt?Ot:We;var Pe=ve==Ot,Je=We==Ot,ft=ve==We;if(ft&&Il(f)){if(!Il(p))return!1;ne=!0,Pe=!1}if(ft&&!Pe)return P||(P=new yr),ne||Wf(f)?xv(f,p,D,k,U,P):Ua(f,p,ve,D,k,U,P);if(!(D&z)){var At=Pe&&$n.call(f,"__wrapped__"),Lt=Je&&$n.call(p,"__wrapped__");if(At||Lt){var gn=At?f.value():f,Mt=Lt?p.value():p;return P||(P=new yr),U(gn,Mt,D,k,P)}}return ft?(P||(P=new yr),sr(f,p,D,k,U,P)):!1}function Wa(f){return pa(f)&&br(f)==tt}function Cf(f,p,D,k){var U=D.length,P=U,ne=!k;if(f==null)return!P;for(f=zn(f);U--;){var le=D[U];if(ne&&le[2]?le[1]!==f[le[0]]:!(le[0]in f))return!1}for(;++U<P;){le=D[U];var ve=le[0],We=f[ve],Pe=le[1];if(ne&&le[2]){if(We===r&&!(ve in f))return!1}else{var Je=new yr;if(k)var ft=k(We,Pe,ve,f,p,Je);if(!(ft===r?go(Pe,We,z|V,k,Je):ft))return!1}}return!0}function tl(f){if(!ta(f)||lh(f))return!1;var p=lu(f)?Al:Go;return p.test(Vl(f))}function Pd(f){return pa(f)&&Tn(f)==Rt}function xp(f){return pa(f)&&br(f)==Yt}function Ap(f){return pa(f)&&yi(f.length)&&!!dn[Tn(f)]}function wf(f){return typeof f=="function"?f:f==null?we:typeof f=="object"?Ht(f)?Af(f[0],f[1]):Xd(f):Vn(f)}function xf(f){if(!Bt(f))return Ni(f);var p=[];for(var D in zn(f))$n.call(f,D)&&D!="constructor"&&p.push(D);return p}function bv(f){if(!ta(f))return ps(f);var p=Bt(f),D=[];for(var k in f)k=="constructor"&&(p||!$n.call(f,k))||D.push(k);return D}function Qd(f,p){return f<p}function Op(f,p){var D=-1,k=Ia(f)?Be(f.length):[];return Ca(f,function(U,P,ne){k[++D]=p(U,P,ne)}),k}function Xd(f){var p=ih(f);return p.length==1&&p[0][2]?cy(p[0][0],p[0][1]):function(D){return D===f||Cf(D,f,p)}}function Af(f,p){return Yp(f)&&Pp(p)?cy(Jn(f),p):function(D){var k=nd(D,f);return k===r&&k===p?Kl(D,f):go(p,k,z|V)}}function dc(f,p,D,k,U){f!==p&&fc(p,function(P,ne){if(U||(U=new yr),ta(P))iy(f,p,ne,D,dc,k,U);else{var le=k?k(ms(f,ne),P,ne+"",f,p,U):r;le===r&&(le=P),Nu(f,ne,le)}},fr)}function iy(f,p,D,k,U,P,ne){var le=ms(f,D),ve=ms(p,D),We=ne.get(ve);if(We){Nu(f,D,We);return}var Pe=P?P(le,ve,D+"",f,p,ne):r,Je=Pe===r;if(Je){var ft=Ht(ve),At=!ft&&Il(ve),Lt=!ft&&!At&&Wf(ve);Pe=ve,ft||At||Lt?Ht(le)?Pe=le:wa(le)?Pe=Ja(le):At?(Je=!1,Pe=_p(ve,!0)):Lt?(Je=!1,Pe=Fp(ve,!0)):Pe=[]:Lu(ve)||Dr(ve)?(Pe=le,Dr(le)?Pe=Eh(le):(!ta(le)||lu(le))&&(Pe=Ff(ve))):Je=!1}Je&&(ne.set(ve,Pe),U(Pe,ve,k,P,ne),ne.delete(ve)),Nu(f,D,Pe)}function Id(f,p){var D=f.length;if(D)return p+=p<0?D:0,Mu(p,D)?f[p]:r}function Of(f,p,D){p.length?p=Mn(p,function(P){return Ht(P)?function(ne){return hi(ne,P.length===1?P[0]:P)}:P}):p=[we];var k=-1;p=Mn(p,Oi(Nt()));var U=Op(f,function(P,ne,le){var ve=Mn(p,function(We){return We(P)});return{criteria:ve,index:++k,value:P}});return kd(U,function(P,ne){return wv(P,ne,D)})}function Tp(f,p){return Zd(f,p,function(D,k){return Kl(f,k)})}function Zd(f,p,D){for(var k=-1,U=p.length,P={};++k<U;){var ne=p[k],le=hi(f,ne);D(le,ne)&&yo(P,Fl(ne,f),le)}return P}function Sv(f){return function(p){return hi(p,f)}}function Tf(f,p,D,k){var U=k?Ad:ec,P=-1,ne=p.length,le=f;for(f===p&&(p=Ja(p)),D&&(le=Mn(f,Oi(D)));++P<ne;)for(var ve=0,We=p[P],Pe=D?D(We):We;(ve=U(le,Pe,ve,k))>-1;)le!==f&&Fd.call(le,ve,1),Fd.call(f,ve,1);return f}function kp(f,p){for(var D=f?p.length:0,k=D-1;D--;){var U=p[D];if(D==k||U!==P){var P=U;Mu(U)?Fd.call(f,U,1):hc(f,U)}}return f}function Bu(f,p){return f+Ku(zd()*(p-f+1))}function Np(f,p,D,k){for(var U=-1,P=ca(ya((p-f)/(D||1)),0),ne=Be(P);P--;)ne[k?P:++U]=f,f+=D;return ne}function Dv(f,p){var D="";if(!f||p<1||p>pe)return D;do p%2&&(D+=f),p=Ku(p/2),p&&(f+=f);while(p);return D}function on(f,p){return Hi(Xp(f,p,we),f+"")}function Mi(f){return as(Bc(f))}function Kd(f,p){var D=Bc(f);return Dc(D,Ru(p,0,D.length))}function yo(f,p,D,k){if(!ta(f))return f;p=Fl(p,f);for(var U=-1,P=p.length,ne=P-1,le=f;le!=null&&++U<P;){var ve=Jn(p[U]),We=D;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return f;if(U!=ne){var Pe=le[ve];We=k?k(Pe,ve,le):r,We===r&&(We=ta(Pe)?Pe:Mu(p[U+1])?[]:{})}rs(le,ve,We),le=le[ve]}return f}var bo=Tl?function(f,p){return Tl.set(f,p),f}:we,sa=un?function(f,p){return un(f,"toString",{configurable:!0,enumerable:!1,value:Ce(p),writable:!0})}:we;function uy(f){return Dc(Bc(f))}function au(f,p,D){var k=-1,U=f.length;p<0&&(p=-p>U?0:U+p),D=D>U?U:D,D<0&&(D+=U),U=p>D?0:D-p>>>0,p>>>=0;for(var P=Be(U);++k<U;)P[k]=f[k+p];return P}function Ev(f,p){var D;return Ca(f,function(k,U,P){return D=p(k,U,P),!D}),!!D}function zi(f,p,D){var k=0,U=f==null?k:f.length;if(typeof p=="number"&&p===p&&U<=he){for(;k<U;){var P=k+U>>>1,ne=f[P];ne!==null&&!Fr(ne)&&(D?ne<=p:ne<p)?k=P+1:U=P}return U}return Wd(f,p,we,D)}function Wd(f,p,D,k){var U=0,P=f==null?0:f.length;if(P===0)return 0;p=D(p);for(var ne=p!==p,le=p===null,ve=Fr(p),We=p===r;U<P;){var Pe=Ku((U+P)/2),Je=D(f[Pe]),ft=Je!==r,At=Je===null,Lt=Je===Je,gn=Fr(Je);if(ne)var Mt=k||Lt;else We?Mt=Lt&&(k||ft):le?Mt=Lt&&ft&&(k||!At):ve?Mt=Lt&&ft&&!At&&(k||!gn):At||gn?Mt=!1:Mt=k?Je<=p:Je<p;Mt?U=Pe+1:P=Pe}return ba(P,Le)}function Jd(f,p){for(var D=-1,k=f.length,U=0,P=[];++D<k;){var ne=f[D],le=p?p(ne):ne;if(!D||!Wr(le,ve)){var ve=le;P[U++]=ne===0?0:ne}}return P}function ls(f){return typeof f=="number"?f:Fr(f)?fe:+f}function lr(f){if(typeof f=="string")return f;if(Ht(f))return Mn(f,lr)+"";if(Fr(f))return kl?kl.call(f):"";var p=f+"";return p=="0"&&1/f==-ue?"-0":p}function _l(f,p,D){var k=-1,U=Dl,P=f.length,ne=!0,le=[],ve=le;if(D)ne=!1,U=Wi;else if(P>=s){var We=p?null:rh(f);if(We)return wu(We);ne=!1,U=Jo,ve=new Wu}else ve=p?[]:le;e:for(;++k<P;){var Pe=f[k],Je=p?p(Pe):Pe;if(Pe=D||Pe!==0?Pe:0,ne&&Je===Je){for(var ft=ve.length;ft--;)if(ve[ft]===Je)continue e;p&&ve.push(Je),le.push(Pe)}else U(ve,Je,D)||(ve!==le&&ve.push(Je),le.push(Pe))}return le}function hc(f,p){return p=Fl(p,f),f=Sc(f,p),f==null||delete f[Jn(Sr(p))]}function Rp(f,p,D,k){return yo(f,p,D(hi(f,p)),k)}function eh(f,p,D,k){for(var U=f.length,P=k?U:-1;(k?P--:++P<U)&&p(f[P],P,f););return D?au(f,k?0:P,k?P+1:U):au(f,k?P+1:0,k?U:P)}function ly(f,p){var D=f;return D instanceof An&&(D=D.value()),uf(p,function(k,U){return U.func.apply(U.thisArg,bu([k],U.args))},D)}function kf(f,p,D){var k=f.length;if(k<2)return k?_l(f[0]):[];for(var U=-1,P=Be(k);++U<k;)for(var ne=f[U],le=-1;++le<k;)le!=U&&(P[U]=vo(P[U]||ne,f[le],p,D));return _l(En(P,1),p,D)}function Cv(f,p,D){for(var k=-1,U=f.length,P=p.length,ne={};++k<U;){var le=k<P?p[k]:r;D(ne,f[k],le)}return ne}function os(f){return wa(f)?f:[]}function ji(f){return typeof f=="function"?f:we}function Fl(f,p){return Ht(f)?f:Yp(f,p)?[f]:ll(vn(f))}var oy=on;function So(f,p,D){var k=f.length;return D=D===r?k:D,!p&&D>=k?f:au(f,p,D)}var Bp=et||function(f){return Qa.clearTimeout(f)};function _p(f,p){if(p)return f.slice();var D=f.length,k=Zu?Zu(D):new f.constructor(D);return f.copy(k),k}function Do(f){var p=new f.constructor(f.byteLength);return new co(p).set(new co(f)),p}function th(f,p){var D=p?Do(f.buffer):f.buffer;return new f.constructor(D,f.byteOffset,f.byteLength)}function pc(f){var p=new f.constructor(f.source,$o.exec(f));return p.lastIndex=f.lastIndex,p}function sy(f){return mo?zn(mo.call(f)):{}}function Fp(f,p){var D=p?Do(f.buffer):f.buffer;return new f.constructor(D,f.byteOffset,f.length)}function nh(f,p){if(f!==p){var D=f!==r,k=f===null,U=f===f,P=Fr(f),ne=p!==r,le=p===null,ve=p===p,We=Fr(p);if(!le&&!We&&!P&&f>p||P&&ne&&ve&&!le&&!We||k&&ne&&ve||!D&&ve||!U)return 1;if(!k&&!P&&!We&&f<p||We&&D&&U&&!k&&!P||le&&D&&U||!ne&&U||!ve)return-1}return 0}function wv(f,p,D){for(var k=-1,U=f.criteria,P=p.criteria,ne=U.length,le=D.length;++k<ne;){var ve=nh(U[k],P[k]);if(ve){if(k>=le)return ve;var We=D[k];return ve*(We=="desc"?-1:1)}}return f.index-p.index}function Mp(f,p,D,k){for(var U=-1,P=f.length,ne=D.length,le=-1,ve=p.length,We=ca(P-ne,0),Pe=Be(ve+We),Je=!k;++le<ve;)Pe[le]=p[le];for(;++U<ne;)(Je||U<P)&&(Pe[D[U]]=f[U]);for(;We--;)Pe[le++]=f[U++];return Pe}function Ml(f,p,D,k){for(var U=-1,P=f.length,ne=-1,le=D.length,ve=-1,We=p.length,Pe=ca(P-le,0),Je=Be(Pe+We),ft=!k;++U<Pe;)Je[U]=f[U];for(var At=U;++ve<We;)Je[At+ve]=p[ve];for(;++ne<le;)(ft||U<P)&&(Je[At+D[ne]]=f[U++]);return Je}function Ja(f,p){var D=-1,k=f.length;for(p||(p=Be(k));++D<k;)p[D]=f[D];return p}function pi(f,p,D,k){var U=!D;D||(D={});for(var P=-1,ne=p.length;++P<ne;){var le=p[P],ve=k?k(D[le],f[le],le,D,f):r;ve===r&&(ve=f[le]),U?el(D,le,ve):rs(D,le,ve)}return D}function zp(f,p){return pi(f,_f(f),p)}function mc(f,p){return pi(f,Vp(f),p)}function or(f,p){return function(D,k){var U=Ht(D)?ty:_i,P=p?p():{};return U(D,f,Nt(k,2),P)}}function ss(f){return on(function(p,D){var k=-1,U=D.length,P=U>1?D[U-1]:r,ne=U>2?D[2]:r;for(P=f.length>3&&typeof P=="function"?(U--,P):r,ne&&Ir(D[0],D[1],ne)&&(P=U<3?r:P,U=1),p=zn(p);++k<U;){var le=D[k];le&&f(p,le,k,P)}return p})}function mi(f,p){return function(D,k){if(D==null)return D;if(!Ia(D))return f(D,k);for(var U=D.length,P=p?U:-1,ne=zn(D);(p?P--:++P<U)&&k(ne[P],P,ne)!==!1;);return D}}function cs(f){return function(p,D,k){for(var U=-1,P=zn(p),ne=k(p),le=ne.length;le--;){var ve=ne[f?le:++U];if(D(P[ve],ve,P)===!1)break}return p}}function zl(f,p,D){var k=p&L,U=ru(f);function P(){var ne=this&&this!==Qa&&this instanceof P?U:f;return ne.apply(k?D:this,arguments)}return P}function Li(f){return function(p){p=vn(p);var D=Cu(p)?gr(p):r,k=D?D[0]:p.charAt(0),U=D?So(D,1).join(""):p.slice(1);return k[f]()+U}}function Xa(f){return function(p){return uf(S(dl(p).replace(Ks,"")),f,"")}}function ru(f){return function(){var p=arguments;switch(p.length){case 0:return new f;case 1:return new f(p[0]);case 2:return new f(p[0],p[1]);case 3:return new f(p[0],p[1],p[2]);case 4:return new f(p[0],p[1],p[2],p[3]);case 5:return new f(p[0],p[1],p[2],p[3],p[4]);case 6:return new f(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new f(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var D=Bi(f.prototype),k=f.apply(D,p);return ta(k)?k:D}}function jl(f,p,D){var k=ru(f);function U(){for(var P=arguments.length,ne=Be(P),le=P,ve=Fu(U);le--;)ne[le]=arguments[le];var We=P<3&&ne[0]!==ve&&ne[P-1]!==ve?[]:oi(ne,ve);if(P-=We.length,P<D)return gc(f,p,Wn,U.placeholder,r,ne,We,r,r,D-P);var Pe=this&&this!==Qa&&this instanceof U?k:f;return li(Pe,this,ne)}return U}function nl(f){return function(p,D,k){var U=zn(p);if(!Ia(p)){var P=Nt(D,3);p=tr(p),D=function(le){return P(U[le],le,U)}}var ne=f(p,D,k);return ne>-1?U[P?p[ne]:ne]:r}}function _u(f){return Sa(function(p){var D=p.length,k=D,U=fi.prototype.thru;for(f&&p.reverse();k--;){var P=p[k];if(typeof P!="function")throw new eu(g);if(U&&!ne&&yc(P)=="wrapper")var ne=new fi([],!0)}for(k=ne?k:D;++k<D;){P=p[k];var le=yc(P),ve=le=="wrapper"?wo(P):r;ve&&hs(ve[0])&&ve[1]==(X|B|G|ee)&&!ve[4].length&&ve[9]==1?ne=ne[yc(ve[0])].apply(ne,ve[3]):ne=P.length==1&&hs(P)?ne[le]():ne.thru(P)}return function(){var We=arguments,Pe=We[0];if(ne&&We.length==1&&Ht(Pe))return ne.plant(Pe).value();for(var Je=0,ft=D?p[Je].apply(this,We):Pe;++Je<D;)ft=p[Je].call(this,ft);return ft}})}function Wn(f,p,D,k,U,P,ne,le,ve,We){var Pe=p&X,Je=p&L,ft=p&M,At=p&(B|H),Lt=p&J,gn=ft?r:ru(f);function Mt(){for(var Rn=arguments.length,Yn=Be(Rn),Hu=Rn;Hu--;)Yn[Hu]=arguments[Hu];if(At)var Pi=Fu(Mt),Vu=iv(Yn,Pi);if(k&&(Yn=Mp(Yn,k,U,At)),P&&(Yn=Ml(Yn,P,ne,At)),Rn-=Vu,At&&Rn<We){var dr=oi(Yn,Pi);return gc(f,p,Wn,Mt.placeholder,D,Yn,dr,le,ve,We-Rn)}var Mo=Je?D:this,jc=ft?Mo[f]:f;return Rn=Yn.length,le?Yn=ul(Yn,le):Lt&&Rn>1&&Yn.reverse(),Pe&&ve<Rn&&(Yn.length=ve),this&&this!==Qa&&this instanceof Mt&&(jc=gn||ru(jc)),jc.apply(Mo,Yn)}return Mt}function Nf(f,p){return function(D,k){return wp(D,f,p(k),{})}}function al(f,p){return function(D,k){var U;if(D===r&&k===r)return p;if(D!==r&&(U=D),k!==r){if(U===r)return k;typeof D=="string"||typeof k=="string"?(D=lr(D),k=lr(k)):(D=ls(D),k=ls(k)),U=f(D,k)}return U}}function Rf(f){return Sa(function(p){return p=Mn(p,Oi(Nt())),on(function(D){var k=this;return f(p,function(U){return li(U,k,D)})})})}function Eo(f,p){p=p===r?" ":lr(p);var D=p.length;if(D<2)return D?Dv(p,f):p;var k=Dv(p,ya(f/Ji(p)));return Cu(p)?So(gr(k),0,f).join(""):k.slice(0,f)}function vc(f,p,D,k){var U=p&L,P=ru(f);function ne(){for(var le=-1,ve=arguments.length,We=-1,Pe=k.length,Je=Be(Pe+ve),ft=this&&this!==Qa&&this instanceof ne?P:f;++We<Pe;)Je[We]=k[We];for(;ve--;)Je[We++]=arguments[++le];return li(ft,U?D:this,Je)}return ne}function Co(f){return function(p,D,k){return k&&typeof k!="number"&&Ir(p,D,k)&&(D=k=r),p=Na(p),D===r?(D=p,p=0):D=Na(D),k=k===r?p<D?1:-1:Na(k),Np(p,D,k,f)}}function fs(f){return function(p,D){return typeof p=="string"&&typeof D=="string"||(p=bi(p),D=bi(D)),f(p,D)}}function gc(f,p,D,k,U,P,ne,le,ve,We){var Pe=p&B,Je=Pe?ne:r,ft=Pe?r:ne,At=Pe?P:r,Lt=Pe?r:P;p|=Pe?G:W,p&=~(Pe?W:G),p&x||(p&=-4);var gn=[f,p,U,At,Je,Lt,ft,le,ve,We],Mt=D.apply(r,gn);return hs(f)&&Ip(Mt,gn),Mt.placeholder=k,vs(Mt,f,p)}function ah(f){var p=la[f];return function(D,k){if(D=bi(D),k=k==null?0:ba(tn(k),292),k&&ic(D)){var U=(vn(D)+"e").split("e"),P=p(U[0]+"e"+(+U[1]+k));return U=(vn(P)+"e").split("e"),+(U[0]+"e"+(+U[1]-k))}return p(D)}}var rh=xn&&1/wu(new xn([,-0]))[1]==ue?function(f){return new xn(f)}:yt;function Bf(f){return function(p){var D=br(p);return D==tt?Nd(p):D==Yt?sv(p):rv(p,f(p))}}function rl(f,p,D,k,U,P,ne,le){var ve=p&M;if(!ve&&typeof f!="function")throw new eu(g);var We=k?k.length:0;if(We||(p&=-97,k=U=r),ne=ne===r?ne:ca(tn(ne),0),le=le===r?le:tn(le),We-=U?U.length:0,p&W){var Pe=k,Je=U;k=U=r}var ft=ve?r:wo(f),At=[f,p,D,k,U,Pe,Je,P,ne,le];if(ft&&oh(At,ft),f=At[0],p=At[1],D=At[2],k=At[3],U=At[4],le=At[9]=At[9]===r?ve?0:f.length:ca(At[9]-We,0),!le&&p&(B|H)&&(p&=-25),!p||p==L)var Lt=zl(f,p,D);else p==B||p==H?Lt=jl(f,p,le):(p==G||p==(L|G))&&!U.length?Lt=vc(f,p,D,k):Lt=Wn.apply(r,At);var gn=ft?bo:Ip;return vs(gn(Lt,At),f,p)}function jp(f,p,D,k){return f===r||Wr(f,ac[D])&&!$n.call(k,D)?p:f}function Lp(f,p,D,k,U,P){return ta(f)&&ta(p)&&(P.set(p,f),dc(f,p,r,Lp,P),P.delete(p)),f}function Ui(f){return Lu(f)?r:f}function xv(f,p,D,k,U,P){var ne=D&z,le=f.length,ve=p.length;if(le!=ve&&!(ne&&ve>le))return!1;var We=P.get(f),Pe=P.get(p);if(We&&Pe)return We==p&&Pe==f;var Je=-1,ft=!0,At=D&V?new Wu:r;for(P.set(f,p),P.set(p,f);++Je<le;){var Lt=f[Je],gn=p[Je];if(k)var Mt=ne?k(gn,Lt,Je,p,f,P):k(Lt,gn,Je,f,p,P);if(Mt!==r){if(Mt)continue;ft=!1;break}if(At){if(!qr(p,function(Rn,Yn){if(!Jo(At,Yn)&&(Lt===Rn||U(Lt,Rn,D,k,P)))return At.push(Yn)})){ft=!1;break}}else if(!(Lt===gn||U(Lt,gn,D,k,P))){ft=!1;break}}return P.delete(f),P.delete(p),ft}function Ua(f,p,D,k,U,P,ne){switch(D){case Dn:if(f.byteLength!=p.byteLength||f.byteOffset!=p.byteOffset)return!1;f=f.buffer,p=p.buffer;case Xt:return!(f.byteLength!=p.byteLength||!P(new co(f),new co(p)));case Ft:case oe:case jn:return Wr(+f,+p);case Ne:return f.name==p.name&&f.message==p.message;case Rt:case Ln:return f==p+"";case tt:var le=Nd;case Yt:var ve=k&z;if(le||(le=wu),f.size!=p.size&&!ve)return!1;var We=ne.get(f);if(We)return We==p;k|=V,ne.set(f,p);var Pe=xv(le(f),le(p),k,U,P,ne);return ne.delete(f),Pe;case va:if(mo)return mo.call(f)==mo.call(p)}return!1}function sr(f,p,D,k,U,P){var ne=D&z,le=Up(f),ve=le.length,We=Up(p),Pe=We.length;if(ve!=Pe&&!ne)return!1;for(var Je=ve;Je--;){var ft=le[Je];if(!(ne?ft in p:$n.call(p,ft)))return!1}var At=P.get(f),Lt=P.get(p);if(At&&Lt)return At==p&&Lt==f;var gn=!0;P.set(f,p),P.set(p,f);for(var Mt=ne;++Je<ve;){ft=le[Je];var Rn=f[ft],Yn=p[ft];if(k)var Hu=ne?k(Yn,Rn,ft,p,f,P):k(Rn,Yn,ft,f,p,P);if(!(Hu===r?Rn===Yn||U(Rn,Yn,D,k,P):Hu)){gn=!1;break}Mt||(Mt=ft=="constructor")}if(gn&&!Mt){var Pi=f.constructor,Vu=p.constructor;Pi!=Vu&&"constructor"in f&&"constructor"in p&&!(typeof Pi=="function"&&Pi instanceof Pi&&typeof Vu=="function"&&Vu instanceof Vu)&&(gn=!1)}return P.delete(f),P.delete(p),gn}function Sa(f){return Hi(Xp(f,r,cr),f+"")}function Up(f){return Dp(f,tr,_f)}function il(f){return Dp(f,fr,Vp)}var wo=Tl?function(f){return Tl.get(f)}:yt;function yc(f){for(var p=f.name+"",D=Ri[p],k=$n.call(Ri,p)?D.length:0;k--;){var U=D[k],P=U.func;if(P==null||P==f)return U.name}return p}function Fu(f){var p=$n.call(q,"placeholder")?q:f;return p.placeholder}function Nt(){var f=q.iteratee||kt;return f=f===kt?wf:f,arguments.length?f(arguments[0],arguments[1]):f}function bc(f,p){var D=f.__data__;return Hl(p)?D[typeof p=="string"?"string":"hash"]:D.map}function ih(f){for(var p=tr(f),D=p.length;D--;){var k=p[D],U=f[k];p[D]=[k,U,Pp(U)]}return p}function Ll(f,p){var D=tc(f,p);return tl(D)?D:r}function Hp(f){var p=$n.call(f,Tr),D=f[Tr];try{f[Tr]=r;var k=!0}catch{}var U=Gr.call(f);return k&&(p?f[Tr]=D:delete f[Tr]),U}var _f=Ol?function(f){return f==null?[]:(f=zn(f),Vr(Ol(f),function(p){return rc.call(f,p)}))}:z0,Vp=Ol?function(f){for(var p=[];f;)bu(p,_f(f)),f=fo(f);return p}:z0,br=Tn;(Tu&&br(new Tu(new ArrayBuffer(1)))!=Dn||Ea&&br(new Ea)!=tt||Gn&&br(Gn.resolve())!=Fn||xn&&br(new xn)!=Yt||Yr&&br(new Yr)!=Ba)&&(br=function(f){var p=Tn(f),D=p==Ot?f.constructor:r,k=D?Vl(D):"";if(k)switch(k){case jd:return Dn;case hv:return tt;case mf:return Fn;case vf:return Yt;case pv:return Ba}return p});function Av(f,p,D){for(var k=-1,U=D.length;++k<U;){var P=D[k],ne=P.size;switch(P.type){case"drop":f+=ne;break;case"dropRight":p-=ne;break;case"take":p=ba(p,f+ne);break;case"takeRight":f=ca(f,p-ne);break}}return{start:f,end:p}}function qp(f){var p=f.match(ri);return p?p[1].split(Zi):[]}function uh(f,p,D){p=Fl(p,f);for(var k=-1,U=p.length,P=!1;++k<U;){var ne=Jn(p[k]);if(!(P=f!=null&&D(f,ne)))break;f=f[ne]}return P||++k!=U?P:(U=f==null?0:f.length,!!U&&yi(U)&&Mu(ne,U)&&(Ht(f)||Dr(f)))}function ds(f){var p=f.length,D=new f.constructor(p);return p&&typeof f[0]=="string"&&$n.call(f,"index")&&(D.index=f.index,D.input=f.input),D}function Ff(f){return typeof f.constructor=="function"&&!Bt(f)?Bi(fo(f)):{}}function $p(f,p,D){var k=f.constructor;switch(p){case Xt:return Do(f);case Ft:case oe:return new k(+f);case Dn:return th(f,D);case Kt:case mr:case ai:case ge:case xe:case Fe:case Ke:case vt:case nn:return Fp(f,D);case tt:return new k;case jn:case Ln:return new k(f);case Rt:return pc(f);case Yt:return new k;case va:return sy(f)}}function Gp(f,p){var D=p.length;if(!D)return f;var k=D-1;return p[k]=(D>1?"& ":"")+p[k],p=p.join(D>2?", ":" "),f.replace(ur,`{
|
|
78
|
-
/* [wrapped with `+p+`] */
|
|
79
|
-
`)}function Ul(f){return Ht(f)||Dr(f)||!!(ci&&f&&f[ci])}function Mu(f,p){var D=typeof f;return p=p??pe,!!p&&(D=="number"||D!="symbol"&&Pu.test(f))&&f>-1&&f%1==0&&f<p}function Ir(f,p,D){if(!ta(D))return!1;var k=typeof p;return(k=="number"?Ia(D)&&Mu(p,D.length):k=="string"&&p in D)?Wr(D[p],f):!1}function Yp(f,p){if(Ht(f))return!1;var D=typeof f;return D=="number"||D=="symbol"||D=="boolean"||f==null||Fr(f)?!0:xr.test(f)||!pn.test(f)||p!=null&&f in zn(p)}function Hl(f){var p=typeof f;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?f!=="__proto__":f===null}function hs(f){var p=yc(f),D=q[p];if(typeof D!="function"||!(p in An.prototype))return!1;if(f===D)return!0;var k=wo(D);return!!k&&f===k[0]}function lh(f){return!!cp&&cp in f}var Mf=ff?lu:j0;function Bt(f){var p=f&&f.constructor,D=typeof p=="function"&&p.prototype||ac;return f===D}function Pp(f){return f===f&&!ta(f)}function cy(f,p){return function(D){return D==null?!1:D[f]===p&&(p!==r||f in zn(D))}}function Ov(f){var p=Ss(f,function(k){return D.size===C&&D.clear(),k}),D=p.cache;return p}function oh(f,p){var D=f[1],k=p[1],U=D|k,P=U<(L|M|X),ne=k==X&&D==B||k==X&&D==ee&&f[7].length<=p[8]||k==(X|ee)&&p[7].length<=p[8]&&D==B;if(!(P||ne))return f;k&L&&(f[2]=p[2],U|=D&L?0:x);var le=p[3];if(le){var ve=f[3];f[3]=ve?Mp(ve,le,p[4]):le,f[4]=ve?oi(f[3],A):p[4]}return le=p[5],le&&(ve=f[5],f[5]=ve?Ml(ve,le,p[6]):le,f[6]=ve?oi(f[5],A):p[6]),le=p[7],le&&(f[7]=le),k&X&&(f[8]=f[8]==null?p[8]:ba(f[8],p[8])),f[9]==null&&(f[9]=p[9]),f[0]=p[0],f[1]=U,f}function ps(f){var p=[];if(f!=null)for(var D in zn(f))p.push(D);return p}function Qp(f){return Gr.call(f)}function Xp(f,p,D){return p=ca(p===r?f.length-1:p,0),function(){for(var k=arguments,U=-1,P=ca(k.length-p,0),ne=Be(P);++U<P;)ne[U]=k[p+U];U=-1;for(var le=Be(p+1);++U<p;)le[U]=k[U];return le[p]=D(ne),li(f,this,le)}}function Sc(f,p){return p.length<2?f:hi(f,au(p,0,-1))}function ul(f,p){for(var D=f.length,k=ba(p.length,D),U=Ja(f);k--;){var P=p[k];f[k]=Mu(P,D)?U[P]:r}return f}function ms(f,p){if(!(p==="constructor"&&typeof f[p]=="function")&&p!="__proto__")return f[p]}var Ip=sh(bo),zf=pf||function(f,p){return Qa.setTimeout(f,p)},Hi=sh(sa);function vs(f,p,D){var k=p+"";return Hi(f,Gp(k,Zp(qp(k),D)))}function sh(f){var p=0,D=0;return function(){var k=ja(),U=be-(k-D);if(D=k,U>0){if(++p>=ye)return arguments[0]}else p=0;return f.apply(r,arguments)}}function Dc(f,p){var D=-1,k=f.length,U=k-1;for(p=p===r?k:p;++D<p;){var P=Bu(D,U),ne=f[P];f[P]=f[D],f[D]=ne}return f.length=p,f}var ll=Ov(function(f){var p=[];return f.charCodeAt(0)===46&&p.push(""),f.replace(ia,function(D,k,U,P){p.push(U?P.replace(an,"$1"):k||D)}),p});function Jn(f){if(typeof f=="string"||Fr(f))return f;var p=f+"";return p=="0"&&1/f==-ue?"-0":p}function Vl(f){if(f!=null){try{return df.call(f)}catch{}try{return f+""}catch{}}return""}function Zp(f,p){return Ki(nt,function(D){var k="_."+D[0];p&D[1]&&!Dl(f,k)&&f.push(k)}),f.sort()}function er(f){if(f instanceof An)return f.clone();var p=new fi(f.__wrapped__,f.__chain__);return p.__actions__=Ja(f.__actions__),p.__index__=f.__index__,p.__values__=f.__values__,p}function Tv(f,p,D){(D?Ir(f,p,D):p===r)?p=1:p=ca(tn(p),0);var k=f==null?0:f.length;if(!k||p<1)return[];for(var U=0,P=0,ne=Be(ya(k/p));U<k;)ne[P++]=au(f,U,U+=p);return ne}function kv(f){for(var p=-1,D=f==null?0:f.length,k=0,U=[];++p<D;){var P=f[p];P&&(U[k++]=P)}return U}function Nv(){var f=arguments.length;if(!f)return[];for(var p=Be(f-1),D=arguments[0],k=f;k--;)p[k-1]=arguments[k];return bu(Ht(D)?Ja(D):[D],En(p,1))}var Ta=on(function(f,p){return wa(f)?vo(f,En(p,1,wa,!0)):[]}),Nr=on(function(f,p){var D=Sr(p);return wa(D)&&(D=r),wa(f)?vo(f,En(p,1,wa,!0),Nt(D,2)):[]}),ql=on(function(f,p){var D=Sr(p);return wa(D)&&(D=r),wa(f)?vo(f,En(p,1,wa,!0),r,D):[]});function On(f,p,D){var k=f==null?0:f.length;return k?(p=D||p===r?1:tn(p),au(f,p<0?0:p,k)):[]}function Kp(f,p,D){var k=f==null?0:f.length;return k?(p=D||p===r?1:tn(p),p=k-p,au(f,0,p<0?0:p)):[]}function Rv(f,p){return f&&f.length?eh(f,Nt(p,3),!0,!0):[]}function Wp(f,p){return f&&f.length?eh(f,Nt(p,3),!0):[]}function vi(f,p,D,k){var U=f==null?0:f.length;return U?(D&&typeof D!="number"&&Ir(f,p,D)&&(D=0,k=U),ln(f,p,D,k)):[]}function Zr(f,p,D){var k=f==null?0:f.length;if(!k)return-1;var U=D==null?0:tn(D);return U<0&&(U=ca(k+U,0)),xd(f,Nt(p,3),U)}function jf(f,p,D){var k=f==null?0:f.length;if(!k)return-1;var U=k-1;return D!==r&&(U=tn(D),U=D<0?ca(k+U,0):ba(U,k-1)),xd(f,Nt(p,3),U,!0)}function cr(f){var p=f==null?0:f.length;return p?En(f,1):[]}function Bv(f){var p=f==null?0:f.length;return p?En(f,ue):[]}function $l(f,p){var D=f==null?0:f.length;return D?(p=p===r?1:tn(p),En(f,p)):[]}function ka(f){for(var p=-1,D=f==null?0:f.length,k={};++p<D;){var U=f[p];k[U[0]]=U[1]}return k}function xo(f){return f&&f.length?f[0]:r}function zu(f,p,D){var k=f==null?0:f.length;if(!k)return-1;var U=D==null?0:tn(D);return U<0&&(U=ca(k+U,0)),ec(f,p,U)}function Jp(f){var p=f==null?0:f.length;return p?au(f,0,-1):[]}var Rr=on(function(f){var p=Mn(f,os);return p.length&&p[0]===f[0]?Cp(p):[]}),_v=on(function(f){var p=Sr(f),D=Mn(f,os);return p===Sr(D)?p=r:D.pop(),D.length&&D[0]===f[0]?Cp(D,Nt(p,2)):[]}),Ao=on(function(f){var p=Sr(f),D=Mn(f,os);return p=typeof p=="function"?p:r,p&&D.pop(),D.length&&D[0]===f[0]?Cp(D,r,p):[]});function In(f,p){return f==null?"":Ou.call(f,p)}function Sr(f){var p=f==null?0:f.length;return p?f[p-1]:r}function Ha(f,p,D){var k=f==null?0:f.length;if(!k)return-1;var U=k;return D!==r&&(U=tn(D),U=U<0?ca(k+U,0):ba(U,k-1)),p===p?Or(f,p,U):xd(f,lf,U,!0)}function fy(f,p){return f&&f.length?Id(f,tn(p)):r}var Fv=on(gs);function gs(f,p){return f&&f.length&&p&&p.length?Tf(f,p):f}function Mv(f,p,D){return f&&f.length&&p&&p.length?Tf(f,p,Nt(D,2)):f}function gi(f,p,D){return f&&f.length&&p&&p.length?Tf(f,p,r,D):f}var zv=Sa(function(f,p){var D=f==null?0:f.length,k=$d(f,p);return kp(f,Mn(p,function(U){return Mu(U,D)?+U:U}).sort(nh)),k});function jv(f,p){var D=[];if(!(f&&f.length))return D;var k=-1,U=[],P=f.length;for(p=Nt(p,3);++k<P;){var ne=f[k];p(ne,k,f)&&(D.push(ne),U.push(k))}return kp(f,U),D}function em(f){return f==null?f:uc.call(f)}function ea(f,p,D){var k=f==null?0:f.length;return k?(D&&typeof D!="number"&&Ir(f,p,D)?(p=0,D=k):(p=p==null?0:tn(p),D=D===r?k:tn(D)),au(f,p,D)):[]}function ha(f,p){return zi(f,p)}function kn(f,p,D){return Wd(f,p,Nt(D,2))}function Nn(f,p){var D=f==null?0:f.length;if(D){var k=zi(f,p);if(k<D&&Wr(f[k],p))return k}return-1}function na(f,p){return zi(f,p,!0)}function Vi(f,p,D){return Wd(f,p,Nt(D,2),!0)}function Gl(f,p){var D=f==null?0:f.length;if(D){var k=zi(f,p,!0)-1;if(Wr(f[k],p))return k}return-1}function Lf(f){return f&&f.length?Jd(f):[]}function Lv(f,p){return f&&f.length?Jd(f,Nt(p,2)):[]}function Oo(f){var p=f==null?0:f.length;return p?au(f,1,p):[]}function Va(f,p,D){return f&&f.length?(p=D||p===r?1:tn(p),au(f,0,p<0?0:p)):[]}function To(f,p,D){var k=f==null?0:f.length;return k?(p=D||p===r?1:tn(p),p=k-p,au(f,p<0?0:p,k)):[]}function Ec(f,p){return f&&f.length?eh(f,Nt(p,3),!1,!0):[]}function Yl(f,p){return f&&f.length?eh(f,Nt(p,3)):[]}var ju=on(function(f){return _l(En(f,1,wa,!0))}),Uf=on(function(f){var p=Sr(f);return wa(p)&&(p=r),_l(En(f,1,wa,!0),Nt(p,2))}),Hf=on(function(f){var p=Sr(f);return p=typeof p=="function"?p:r,_l(En(f,1,wa,!0),r,p)});function qi(f){return f&&f.length?_l(f):[]}function Uv(f,p){return f&&f.length?_l(f,Nt(p,2)):[]}function Hv(f,p){return p=typeof p=="function"?p:r,f&&f.length?_l(f,r,p):[]}function Vf(f){if(!(f&&f.length))return[];var p=0;return f=Vr(f,function(D){if(wa(D))return p=ca(D.length,p),!0}),Cl(p,function(D){return Mn(f,Su(D))})}function Cc(f,p){if(!(f&&f.length))return[];var D=Vf(f);return p==null?D:Mn(D,function(k){return li(p,r,k)})}var ys=on(function(f,p){return wa(f)?vo(f,p):[]}),Br=on(function(f){return kf(Vr(f,wa))}),Pl=on(function(f){var p=Sr(f);return wa(p)&&(p=r),kf(Vr(f,wa),Nt(p,2))}),qf=on(function(f){var p=Sr(f);return p=typeof p=="function"?p:r,kf(Vr(f,wa),r,p)}),_r=on(Vf);function tm(f,p){return Cv(f||[],p||[],rs)}function nm(f,p){return Cv(f||[],p||[],yo)}var Vv=on(function(f){var p=f.length,D=p>1?f[p-1]:r;return D=typeof D=="function"?(f.pop(),D):r,Cc(f,D)});function wc(f){var p=q(f);return p.__chain__=!0,p}function qv(f,p){return p(f),f}function Kr(f,p){return p(f)}var $v=Sa(function(f){var p=f.length,D=p?f[0]:0,k=this.__wrapped__,U=function(P){return $d(P,f)};return p>1||this.__actions__.length||!(k instanceof An)||!Mu(D)?this.thru(U):(k=k.slice(D,+D+(p?1:0)),k.__actions__.push({func:Kr,args:[U],thisArg:r}),new fi(k,this.__chain__).thru(function(P){return p&&!P.length&&P.push(r),P}))});function iu(){return wc(this)}function $f(){return new fi(this.value(),this.__chain__)}function ch(){this.__values__===r&&(this.__values__=_a(this.value()));var f=this.__index__>=this.__values__.length,p=f?r:this.__values__[this.__index__++];return{done:f,value:p}}function dy(){return this}function ko(f){for(var p,D=this;D instanceof tu;){var k=er(D);k.__index__=0,k.__values__=r,p?U.__wrapped__=k:p=k;var U=k;D=D.__wrapped__}return U.__wrapped__=f,p}function xc(){var f=this.__wrapped__;if(f instanceof An){var p=f;return this.__actions__.length&&(p=new An(this)),p=p.reverse(),p.__actions__.push({func:Kr,args:[em],thisArg:r}),new fi(p,this.__chain__)}return this.thru(em)}function bs(){return ly(this.__wrapped__,this.__actions__)}var Ql=or(function(f,p,D){$n.call(f,D)?++f[D]:el(f,D,1)});function Gv(f,p,D){var k=Ht(f)?nv:Df;return D&&Ir(f,p,D)&&(p=r),k(f,Nt(p,3))}function hy(f,p){var D=Ht(f)?Vr:Xn;return D(f,Nt(p,3))}var Ac=nl(Zr),Oc=nl(jf);function am(f,p){return En(dh(f,p),1)}function rm(f,p){return En(dh(f,p),ue)}function Yv(f,p,D){return D=D===r?1:tn(D),En(dh(f,p),D)}function im(f,p){var D=Ht(f)?Ki:Ca;return D(f,Nt(p,3))}function um(f,p){var D=Ht(f)?tv:cc;return D(f,Nt(p,3))}var Pv=or(function(f,p,D){$n.call(f,D)?f[D].push(p):el(f,D,[p])});function Gf(f,p,D,k){f=Ia(f)?f:Bc(f),D=D&&!k?tn(D):0;var U=f.length;return D<0&&(D=ca(U+D,0)),vm(f)?D<=U&&f.indexOf(p,D)>-1:!!U&&ec(f,p,D)>-1}var fh=on(function(f,p,D){var k=-1,U=typeof p=="function",P=Ia(f)?Be(f.length):[];return Ca(f,function(ne){P[++k]=U?li(p,ne,D):Bl(ne,p,D)}),P}),py=or(function(f,p,D){el(f,D,p)});function dh(f,p){var D=Ht(f)?Mn:Op;return D(f,Nt(p,3))}function my(f,p,D,k){return f==null?[]:(Ht(p)||(p=p==null?[]:[p]),D=k?r:D,Ht(D)||(D=D==null?[]:[D]),Of(f,p,D))}var hh=or(function(f,p,D){f[D?0:1].push(p)},function(){return[[],[]]});function lm(f,p,D){var k=Ht(f)?uf:Td,U=arguments.length<3;return k(f,Nt(p,4),D,U,Ca)}function vy(f,p,D){var k=Ht(f)?av:Td,U=arguments.length<3;return k(f,Nt(p,4),D,U,cc)}function om(f,p){var D=Ht(f)?Vr:Xn;return D(f,Pf(Nt(p,3)))}function Qv(f){var p=Ht(f)?as:Mi;return p(f)}function Xv(f,p,D){(D?Ir(f,p,D):p===r)?p=1:p=tn(p);var k=Ht(f)?vv:Kd;return k(f,p)}function oa(f){var p=Ht(f)?gv:uy;return p(f)}function sm(f){if(f==null)return 0;if(Ia(f))return vm(f)?Ji(f):f.length;var p=br(f);return p==tt||p==Yt?f.size:xf(f).length}function Iv(f,p,D){var k=Ht(f)?qr:Ev;return D&&Ir(f,p,D)&&(p=r),k(f,Nt(p,3))}var Zv=on(function(f,p){if(f==null)return[];var D=p.length;return D>1&&Ir(f,p[0],p[1])?p=[]:D>2&&Ir(p[0],p[1],p[2])&&(p=[p[0]]),Of(f,En(p,1),[])}),cm=Au||function(){return Qa.Date.now()};function k0(f,p){if(typeof p!="function")throw new eu(g);return f=tn(f),function(){if(--f<1)return p.apply(this,arguments)}}function gy(f,p,D){return p=D?r:p,p=f&&p==null?f.length:p,rl(f,X,r,r,r,r,p)}function ph(f,p){var D;if(typeof p!="function")throw new eu(g);return f=tn(f),function(){return--f>0&&(D=p.apply(this,arguments)),f<=1&&(p=r),D}}var Xl=on(function(f,p,D){var k=L;if(D.length){var U=oi(D,Fu(Xl));k|=G}return rl(f,k,p,D,U)}),Yf=on(function(f,p,D){var k=L|M;if(D.length){var U=oi(D,Fu(Yf));k|=G}return rl(p,k,f,D,U)});function Tc(f,p,D){p=D?r:p;var k=rl(f,B,r,r,r,r,r,p);return k.placeholder=Tc.placeholder,k}function mh(f,p,D){p=D?r:p;var k=rl(f,H,r,r,r,r,r,p);return k.placeholder=mh.placeholder,k}function No(f,p,D){var k,U,P,ne,le,ve,We=0,Pe=!1,Je=!1,ft=!0;if(typeof f!="function")throw new eu(g);p=bi(p)||0,ta(D)&&(Pe=!!D.leading,Je="maxWait"in D,P=Je?ca(bi(D.maxWait)||0,p):P,ft="trailing"in D?!!D.trailing:ft);function At(dr){var Mo=k,jc=U;return k=U=r,We=dr,ne=f.apply(jc,Mo),ne}function Lt(dr){return We=dr,le=zf(Rn,p),Pe?At(dr):ne}function gn(dr){var Mo=dr-ve,jc=dr-We,U0=p-Mo;return Je?ba(U0,P-jc):U0}function Mt(dr){var Mo=dr-ve,jc=dr-We;return ve===r||Mo>=p||Mo<0||Je&&jc>=P}function Rn(){var dr=cm();if(Mt(dr))return Yn(dr);le=zf(Rn,gn(dr))}function Yn(dr){return le=r,ft&&k?At(dr):(k=U=r,ne)}function Hu(){le!==r&&Bp(le),We=0,k=ve=U=le=r}function Pi(){return le===r?ne:Yn(cm())}function Vu(){var dr=cm(),Mo=Mt(dr);if(k=arguments,U=this,ve=dr,Mo){if(le===r)return Lt(ve);if(Je)return Bp(le),le=zf(Rn,p),At(ve)}return le===r&&(le=zf(Rn,p)),ne}return Vu.cancel=Hu,Vu.flush=Pi,Vu}var $i=on(function(f,p){return is(f,1,p)}),vh=on(function(f,p,D){return is(f,bi(p)||0,D)});function yy(f){return rl(f,J)}function Ss(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new eu(g);var D=function(){var k=arguments,U=p?p.apply(this,k):k[0],P=D.cache;if(P.has(U))return P.get(U);var ne=f.apply(this,k);return D.cache=P.set(U,ne)||P,ne};return D.cache=new(Ss.Cache||da),D}Ss.Cache=da;function Pf(f){if(typeof f!="function")throw new eu(g);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function by(f){return ph(2,f)}var gh=oy(function(f,p){p=p.length==1&&Ht(p[0])?Mn(p[0],Oi(Nt())):Mn(En(p,1),Oi(Nt()));var D=p.length;return on(function(k){for(var U=-1,P=ba(k.length,D);++U<P;)k[U]=p[U].call(this,k[U]);return li(f,this,k)})}),fm=on(function(f,p){var D=oi(p,Fu(fm));return rl(f,G,r,p,D)}),Ds=on(function(f,p){var D=oi(p,Fu(Ds));return rl(f,W,r,p,D)}),dm=Sa(function(f,p){return rl(f,ee,r,r,r,p)});function yh(f,p){if(typeof f!="function")throw new eu(g);return p=p===r?p:tn(p),on(f,p)}function Sy(f,p){if(typeof f!="function")throw new eu(g);return p=p==null?0:ca(tn(p),0),on(function(D){var k=D[p],U=So(D,0,p);return k&&bu(U,k),li(f,this,U)})}function qa(f,p,D){var k=!0,U=!0;if(typeof f!="function")throw new eu(g);return ta(D)&&(k="leading"in D?!!D.leading:k,U="trailing"in D?!!D.trailing:U),No(f,p,{leading:k,maxWait:p,trailing:U})}function bh(f){return gy(f,1)}function N0(f,p){return fm(ji(p),f)}function mn(){if(!arguments.length)return[];var f=arguments[0];return Ht(f)?f:[f]}function Sh(f){return Ka(f,R)}function Es(f,p){return p=typeof p=="function"?p:r,Ka(f,R,p)}function kc(f){return Ka(f,T|R)}function sn(f,p){return p=typeof p=="function"?p:r,Ka(f,T|R,p)}function Qf(f,p){return p==null||Sf(f,p,tr(p))}function Wr(f,p){return f===p||f!==f&&p!==p}var Kv=fs(Ef),hm=fs(function(f,p){return f>=p}),Dr=Gd(function(){return arguments}())?Gd:function(f){return pa(f)&&$n.call(f,"callee")&&!rc.call(f,"callee")},Ht=Be.isArray,Xf=rp?Oi(rp):Xr;function Ia(f){return f!=null&&yi(f.length)&&!lu(f)}function wa(f){return pa(f)&&Ia(f)}function uu(f){return f===!0||f===!1||pa(f)&&Tn(f)==Ft}var Il=Md||j0,Dy=Wg?Oi(Wg):La;function Wv(f){return pa(f)&&f.nodeType===1&&!Lu(f)}function pm(f){if(f==null)return!0;if(Ia(f)&&(Ht(f)||typeof f=="string"||typeof f.splice=="function"||Il(f)||Wf(f)||Dr(f)))return!f.length;var p=br(f);if(p==tt||p==Yt)return!f.size;if(Bt(f))return!xf(f).length;for(var D in f)if($n.call(f,D))return!1;return!0}function en(f,p){return go(f,p)}function Me(f,p,D){D=typeof D=="function"?D:r;var k=D?D(f,p):r;return k===r?go(f,p,r,D):!!k}function Gt(f){if(!pa(f))return!1;var p=Tn(f);return p==Ne||p==Qe||typeof f.message=="string"&&typeof f.name=="string"&&!Lu(f)}function R0(f){return typeof f=="number"&&ic(f)}function lu(f){if(!ta(f))return!1;var p=Tn(f);return p==Ie||p==St||p==_n||p==Zt}function If(f){return typeof f=="number"&&f==tn(f)}function yi(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=pe}function ta(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function pa(f){return f!=null&&typeof f=="object"}var ol=Jg?Oi(Jg):Wa;function Zf(f,p){return f===p||Cf(f,p,ih(p))}function Ro(f,p,D){return D=typeof D=="function"?D:r,Cf(f,p,ih(p),D)}function mm(f){return sl(f)&&f!=+f}function B0(f){if(Mf(f))throw new qt(h);return tl(f)}function Ey(f){return f===null}function _0(f){return f==null}function sl(f){return typeof f=="number"||pa(f)&&Tn(f)==jn}function Lu(f){if(!pa(f)||Tn(f)!=Ot)return!1;var p=fo(f);if(p===null)return!0;var D=$n.call(p,"constructor")&&p.constructor;return typeof D=="function"&&D instanceof D&&df.call(D)==Ti}var Kf=ey?Oi(ey):Pd;function Dh(f){return If(f)&&f>=-pe&&f<=pe}var Nc=rf?Oi(rf):xp;function vm(f){return typeof f=="string"||!Ht(f)&&pa(f)&&Tn(f)==Ln}function Fr(f){return typeof f=="symbol"||pa(f)&&Tn(f)==va}var Wf=ev?Oi(ev):Ap;function cl(f){return f===r}function Cs(f){return pa(f)&&br(f)==Ba}function Mr(f){return pa(f)&&Tn(f)==xa}var pt=fs(Qd),Gi=fs(function(f,p){return f<=p});function _a(f){if(!f)return[];if(Ia(f))return vm(f)?gr(f):Ja(f);if(ho&&f[ho])return sf(f[ho]());var p=br(f),D=p==tt?Nd:p==Yt?wu:Bc;return D(f)}function Na(f){if(!f)return f===0?f:0;if(f=bi(f),f===ue||f===-ue){var p=f<0?-1:1;return p*Ve}return f===f?f:0}function tn(f){var p=Na(f),D=p%1;return p===p?D?p-D:p:0}function Zl(f){return f?Ru(tn(f),0,Re):0}function bi(f){if(typeof f=="number")return f;if(Fr(f))return fe;if(ta(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=ta(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=Wo(f);var D=za.test(f);return D||Hr.test(f)?Kg(f.slice(2),D?2:8):Yu.test(f)?fe:+f}function Eh(f){return pi(f,fr(f))}function zr(f){return f?Ru(tn(f),-pe,pe):f===0?f:0}function vn(f){return f==null?"":lr(f)}var Bo=ss(function(f,p){if(Bt(p)||Ia(p)){pi(p,tr(p),f);return}for(var D in p)$n.call(p,D)&&rs(f,D,p[D])}),Ch=ss(function(f,p){pi(p,fr(p),f)}),fl=ss(function(f,p,D,k){pi(p,fr(p),f,k)}),Jr=ss(function(f,p,D,k){pi(p,tr(p),f,k)}),Yi=Sa($d);function ws(f,p){var D=Bi(f);return p==null?D:Ju(D,p)}var Jv=on(function(f,p){f=zn(f);var D=-1,k=p.length,U=k>2?p[2]:r;for(U&&Ir(p[0],p[1],U)&&(k=1);++D<k;)for(var P=p[D],ne=fr(P),le=-1,ve=ne.length;++le<ve;){var We=ne[le],Pe=f[We];(Pe===r||Wr(Pe,ac[We])&&!$n.call(f,We))&&(f[We]=P[We])}return f}),Cy=on(function(f){return f.push(r,Lp),li(ad,r,f)});function Jf(f,p){return up(f,Nt(p,3),kr)}function ed(f,p){return up(f,Nt(p,3),nu)}function td(f,p){return f==null?f:fc(f,Nt(p,3),fr)}function wy(f,p){return f==null?f:Fi(f,Nt(p,3),fr)}function Uu(f,p){return f&&kr(f,Nt(p,3))}function Rc(f,p){return f&&nu(f,Nt(p,3))}function xy(f){return f==null?[]:Qr(f,tr(f))}function gm(f){return f==null?[]:Qr(f,fr(f))}function nd(f,p,D){var k=f==null?r:hi(f,p);return k===r?D:k}function ym(f,p){return f!=null&&uh(f,p,Ep)}function Kl(f,p){return f!=null&&uh(f,p,us)}var eg=Nf(function(f,p,D){p!=null&&typeof p.toString!="function"&&(p=Gr.call(p)),f[p]=D},Ce(we)),tg=Nf(function(f,p,D){p!=null&&typeof p.toString!="function"&&(p=Gr.call(p)),$n.call(f,p)?f[p].push(D):f[p]=[D]},Nt),Ay=on(Bl);function tr(f){return Ia(f)?bp(f):xf(f)}function fr(f){return Ia(f)?bp(f,!0):bv(f)}function Oy(f,p){var D={};return p=Nt(p,3),kr(f,function(k,U,P){el(D,p(k,U,P),k)}),D}function Ty(f,p){var D={};return p=Nt(p,3),kr(f,function(k,U,P){el(D,U,p(k,U,P))}),D}var ng=ss(function(f,p,D){dc(f,p,D)}),ad=ss(function(f,p,D,k){dc(f,p,D,k)}),rd=Sa(function(f,p){var D={};if(f==null)return D;var k=!1;p=Mn(p,function(P){return P=Fl(P,f),k||(k=P.length>1),P}),pi(f,il(f),D),k&&(D=Ka(D,T|N|R,Ui));for(var U=p.length;U--;)hc(D,p[U]);return D});function wh(f,p){return Si(f,Pf(Nt(p)))}var ou=Sa(function(f,p){return f==null?{}:Tp(f,p)});function Si(f,p){if(f==null)return{};var D=Mn(il(f),function(k){return[k]});return p=Nt(p),Zd(f,D,function(k,U){return p(k,U[0])})}function F0(f,p,D){p=Fl(p,f);var k=-1,U=p.length;for(U||(U=1,f=r);++k<U;){var P=f==null?r:f[Jn(p[k])];P===r&&(k=U,P=D),f=lu(P)?P.call(f):P}return f}function ag(f,p,D){return f==null?f:yo(f,p,D)}function rg(f,p,D,k){return k=typeof k=="function"?k:r,f==null?f:yo(f,p,D,k)}var bm=Bf(tr),Sm=Bf(fr);function Dm(f,p,D){var k=Ht(f),U=k||Il(f)||Wf(f);if(p=Nt(p,4),D==null){var P=f&&f.constructor;U?D=k?new P:[]:ta(f)?D=lu(P)?Bi(fo(f)):{}:D={}}return(U?Ki:kr)(f,function(ne,le,ve){return p(D,ne,le,ve)}),D}function ig(f,p){return f==null?!0:hc(f,p)}function xh(f,p,D){return f==null?f:Rp(f,p,ji(D))}function ky(f,p,D,k){return k=typeof k=="function"?k:r,f==null?f:Rp(f,p,ji(D),k)}function Bc(f){return f==null?[]:of(f,tr(f))}function ug(f){return f==null?[]:of(f,fr(f))}function Em(f,p,D){return D===r&&(D=p,p=r),D!==r&&(D=bi(D),D=D===D?D:0),p!==r&&(p=bi(p),p=p===p?p:0),Ru(bi(f),p,D)}function Cm(f,p,D){return p=Na(p),D===r?(D=p,p=0):D=Na(D),f=bi(f),yv(f,p,D)}function lg(f,p,D){if(D&&typeof D!="boolean"&&Ir(f,p,D)&&(p=D=r),D===r&&(typeof p=="boolean"?(D=p,p=r):typeof f=="boolean"&&(D=f,f=r)),f===r&&p===r?(f=0,p=1):(f=Na(f),p===r?(p=f,f=0):p=Na(p)),f>p){var k=f;f=p,p=k}if(D||f%1||p%1){var U=zd();return ba(f+U*(p-f+wd("1e-"+((U+"").length-1))),p)}return Bu(f,p)}var og=Xa(function(f,p,D){return p=p.toLowerCase(),f+(D?_c(p):p)});function _c(f){return m(vn(f).toLowerCase())}function dl(f){return f=vn(f),f&&f.replace(Qu,wl).replace(Sl,"")}function _o(f,p,D){f=vn(f),p=lr(p);var k=f.length;D=D===r?k:Ru(tn(D),0,k);var U=D;return D-=p.length,D>=0&&f.slice(D,U)==p}function Fo(f){return f=vn(f),f&&Pt.test(f)?f.replace(st,uv):f}function Ah(f){return f=vn(f),f&&Ct.test(f)?f.replace(at,"\\$&"):f}var Oh=Xa(function(f,p,D){return f+(D?"-":"")+p.toLowerCase()}),xs=Xa(function(f,p,D){return f+(D?" ":"")+p.toLowerCase()}),Ny=Li("toLowerCase");function Fc(f,p,D){f=vn(f),p=tn(p);var k=p?Ji(f):0;if(!p||k>=p)return f;var U=(p-k)/2;return Eo(Ku(U),D)+f+Eo(ya(U),D)}function Mc(f,p,D){f=vn(f),p=tn(p);var k=p?Ji(f):0;return p&&k<p?f+Eo(p-k,D):f}function Ry(f,p,D){f=vn(f),p=tn(p);var k=p?Ji(f):0;return p&&k<p?Eo(p-k,D)+f:f}function sg(f,p,D){return D||p==null?p=0:p&&(p=+p),Hn(vn(f).replace(jt,""),p||0)}function Th(f,p,D){return(D?Ir(f,p,D):p===r)?p=1:p=tn(p),Dv(vn(f),p)}function kh(){var f=arguments,p=vn(f[0]);return f.length<3?p:p.replace(f[1],f[2])}var id=Xa(function(f,p,D){return f+(D?"_":"")+p.toLowerCase()});function wm(f,p,D){return D&&typeof D!="number"&&Ir(f,p,D)&&(p=D=r),D=D===r?Re:D>>>0,D?(f=vn(f),f&&(typeof p=="string"||p!=null&&!Kf(p))&&(p=lr(p),!p&&Cu(f))?So(gr(f),0,D):f.split(p,D)):[]}var zc=Xa(function(f,p,D){return f+(D?" ":"")+m(p)});function cg(f,p,D){return f=vn(f),D=D==null?0:Ru(tn(D),0,f.length),p=lr(p),f.slice(D,D+p.length)==p}function Wl(f,p,D){var k=q.templateSettings;D&&Ir(f,p,D)&&(p=r),f=vn(f),p=fl({},p,k,jp);var U=fl({},p.imports,k.imports,jp),P=tr(U),ne=of(U,P),le,ve,We=0,Pe=p.interpolate||Un,Je="__p += '",ft=op((p.escape||Un).source+"|"+Pe.source+"|"+(Pe===Dt?xi:Un).source+"|"+(p.evaluate||Un).source+"|$","g"),At="//# sourceURL="+($n.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wm+"]")+`
|
|
80
|
-
`;f.replace(ft,function(Mt,Rn,Yn,Hu,Pi,Vu){return Yn||(Yn=Hu),Je+=f.slice(We,Vu).replace(Ai,lv),Rn&&(le=!0,Je+=`' +
|
|
81
|
-
__e(`+Rn+`) +
|
|
82
|
-
'`),Pi&&(ve=!0,Je+=`';
|
|
83
|
-
`+Pi+`;
|
|
84
|
-
__p += '`),Yn&&(Je+=`' +
|
|
85
|
-
((__t = (`+Yn+`)) == null ? '' : __t) +
|
|
86
|
-
'`),We=Vu+Mt.length,Mt}),Je+=`';
|
|
87
|
-
`;var Lt=$n.call(p,"variable")&&p.variable;if(!Lt)Je=`with (obj) {
|
|
88
|
-
`+Je+`
|
|
89
|
-
}
|
|
90
|
-
`;else if(vr.test(Lt))throw new qt(y);Je=(ve?Je.replace(Wt,""):Je).replace(zt,"$1").replace(it,"$1;"),Je="function("+(Lt||"obj")+`) {
|
|
91
|
-
`+(Lt?"":`obj || (obj = {});
|
|
92
|
-
`)+"var __t, __p = ''"+(le?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
93
|
-
function print() { __p += __j.call(arguments, '') }
|
|
94
|
-
`:`;
|
|
95
|
-
`)+Je+`return __p
|
|
96
|
-
}`;var gn=w(function(){return rn(P,At+"return "+Je).apply(r,ne)});if(gn.source=Je,Gt(gn))throw gn;return gn}function fg(f){return vn(f).toLowerCase()}function xm(f){return vn(f).toUpperCase()}function dg(f,p,D){if(f=vn(f),f&&(D||p===r))return Wo(f);if(!f||!(p=lr(p)))return f;var k=gr(f),U=gr(p),P=Du(k,U),ne=Eu(k,U)+1;return So(k,P,ne).join("")}function Di(f,p,D){if(f=vn(f),f&&(D||p===r))return f.slice(0,ga(f)+1);if(!f||!(p=lr(p)))return f;var k=gr(f),U=Eu(k,gr(p))+1;return So(k,0,U).join("")}function Nh(f,p,D){if(f=vn(f),f&&(D||p===r))return f.replace(jt,"");if(!f||!(p=lr(p)))return f;var k=gr(f),U=Du(k,gr(p));return So(k,U).join("")}function i(f,p){var D=De,k=ke;if(ta(p)){var U="separator"in p?p.separator:U;D="length"in p?tn(p.length):D,k="omission"in p?lr(p.omission):k}f=vn(f);var P=f.length;if(Cu(f)){var ne=gr(f);P=ne.length}if(D>=P)return f;var le=D-Ji(k);if(le<1)return k;var ve=ne?So(ne,0,le).join(""):f.slice(0,le);if(U===r)return ve+k;if(ne&&(le+=ve.length-le),Kf(U)){if(f.slice(le).search(U)){var We,Pe=ve;for(U.global||(U=op(U.source,vn($o.exec(U))+"g")),U.lastIndex=0;We=U.exec(Pe);)var Je=We.index;ve=ve.slice(0,Je===r?le:Je)}}else if(f.indexOf(lr(U),le)!=le){var ft=ve.lastIndexOf(U);ft>-1&&(ve=ve.slice(0,ft))}return ve+k}function o(f){return f=vn(f),f&>.test(f)?f.replace(ut,Bd):f}var c=Xa(function(f,p,D){return f+(D?" ":"")+p.toUpperCase()}),m=Li("toUpperCase");function S(f,p,D){return f=vn(f),p=D?r:p,p===r?ov(f)?nc(f):Js(f):f.match(p)||[]}var w=on(function(f,p){try{return li(f,r,p)}catch(D){return Gt(D)?D:new qt(D)}}),F=Sa(function(f,p){return Ki(p,function(D){D=Jn(D),el(f,D,Xl(f[D],f))}),f});function $(f){var p=f==null?0:f.length,D=Nt();return f=p?Mn(f,function(k){if(typeof k[1]!="function")throw new eu(g);return[D(k[0]),k[1]]}):[],on(function(k){for(var U=-1;++U<p;){var P=f[U];if(li(P[0],this,k))return li(P[1],this,k)}})}function te(f){return Sp(Ka(f,T))}function Ce(f){return function(){return f}}function Ye(f,p){return f==null||f!==f?p:f}var Ze=_u(),Oe=_u(!0);function we(f){return f}function kt(f){return wf(typeof f=="function"?f:Ka(f,T))}function _t(f){return Xd(Ka(f,T))}function Zn(f,p){return Af(f,Ka(p,T))}var me=on(function(f,p){return function(D){return Bl(D,f,p)}}),se=on(function(f,p){return function(D){return Bl(f,D,p)}});function Se(f,p,D){var k=tr(p),U=Qr(p,k);D==null&&!(ta(p)&&(U.length||!k.length))&&(D=p,p=f,f=this,U=Qr(p,tr(p)));var P=!(ta(D)&&"chain"in D)||!!D.chain,ne=lu(f);return Ki(U,function(le){var ve=p[le];f[le]=ve,ne&&(f.prototype[le]=function(){var We=this.__chain__;if(P||We){var Pe=f(this.__wrapped__),Je=Pe.__actions__=Ja(this.__actions__);return Je.push({func:ve,args:arguments,thisArg:f}),Pe.__chain__=We,Pe}return ve.apply(f,bu([this.value()],arguments))})}),f}function Xe(){return Qa._===this&&(Qa._=es),this}function yt(){}function Cn(f){return f=tn(f),on(function(p){return Id(p,f)})}var Tt=Rf(Mn),$t=Rf(nv),Er=Rf(qr);function Vn(f){return Yp(f)?Su(Jn(f)):Sv(f)}function As(f){return function(p){return f==null?r:hi(f,p)}}var M0=Co(),ZS=Co(!0);function z0(){return[]}function j0(){return!1}function Kb(){return{}}function KS(){return""}function WS(){return!0}function JS(f,p){if(f=tn(f),f<1||f>pe)return[];var D=Re,k=ba(f,Re);p=Nt(p),f-=Re;for(var U=Cl(k,p);++D<f;)p(D);return U}function eD(f){return Ht(f)?Mn(f,Jn):Fr(f)?[f]:Ja(ll(vn(f)))}function tD(f){var p=++xu;return vn(f)+p}var nD=al(function(f,p){return f+p},0),aD=ah("ceil"),Wb=al(function(f,p){return f/p},1),rD=ah("floor");function iD(f){return f&&f.length?di(f,we,Ef):r}function uD(f,p){return f&&f.length?di(f,Nt(p,2),Ef):r}function lD(f){return lp(f,we)}function oD(f,p){return lp(f,Nt(p,2))}function sD(f){return f&&f.length?di(f,we,Qd):r}function cD(f,p){return f&&f.length?di(f,Nt(p,2),Qd):r}var fD=al(function(f,p){return f*p},1),dD=ah("round"),Jb=al(function(f,p){return f-p},0);function L0(f){return f&&f.length?El(f,we):0}function hg(f,p){return f&&f.length?El(f,Nt(p,2)):0}return q.after=k0,q.ary=gy,q.assign=Bo,q.assignIn=Ch,q.assignInWith=fl,q.assignWith=Jr,q.at=Yi,q.before=ph,q.bind=Xl,q.bindAll=F,q.bindKey=Yf,q.castArray=mn,q.chain=wc,q.chunk=Tv,q.compact=kv,q.concat=Nv,q.cond=$,q.conforms=te,q.constant=Ce,q.countBy=Ql,q.create=ws,q.curry=Tc,q.curryRight=mh,q.debounce=No,q.defaults=Jv,q.defaultsDeep=Cy,q.defer=$i,q.delay=vh,q.difference=Ta,q.differenceBy=Nr,q.differenceWith=ql,q.drop=On,q.dropRight=Kp,q.dropRightWhile=Rv,q.dropWhile=Wp,q.fill=vi,q.filter=hy,q.flatMap=am,q.flatMapDeep=rm,q.flatMapDepth=Yv,q.flatten=cr,q.flattenDeep=Bv,q.flattenDepth=$l,q.flip=yy,q.flow=Ze,q.flowRight=Oe,q.fromPairs=ka,q.functions=xy,q.functionsIn=gm,q.groupBy=Pv,q.initial=Jp,q.intersection=Rr,q.intersectionBy=_v,q.intersectionWith=Ao,q.invert=eg,q.invertBy=tg,q.invokeMap=fh,q.iteratee=kt,q.keyBy=py,q.keys=tr,q.keysIn=fr,q.map=dh,q.mapKeys=Oy,q.mapValues=Ty,q.matches=_t,q.matchesProperty=Zn,q.memoize=Ss,q.merge=ng,q.mergeWith=ad,q.method=me,q.methodOf=se,q.mixin=Se,q.negate=Pf,q.nthArg=Cn,q.omit=rd,q.omitBy=wh,q.once=by,q.orderBy=my,q.over=Tt,q.overArgs=gh,q.overEvery=$t,q.overSome=Er,q.partial=fm,q.partialRight=Ds,q.partition=hh,q.pick=ou,q.pickBy=Si,q.property=Vn,q.propertyOf=As,q.pull=Fv,q.pullAll=gs,q.pullAllBy=Mv,q.pullAllWith=gi,q.pullAt=zv,q.range=M0,q.rangeRight=ZS,q.rearg=dm,q.reject=om,q.remove=jv,q.rest=yh,q.reverse=em,q.sampleSize=Xv,q.set=ag,q.setWith=rg,q.shuffle=oa,q.slice=ea,q.sortBy=Zv,q.sortedUniq=Lf,q.sortedUniqBy=Lv,q.split=wm,q.spread=Sy,q.tail=Oo,q.take=Va,q.takeRight=To,q.takeRightWhile=Ec,q.takeWhile=Yl,q.tap=qv,q.throttle=qa,q.thru=Kr,q.toArray=_a,q.toPairs=bm,q.toPairsIn=Sm,q.toPath=eD,q.toPlainObject=Eh,q.transform=Dm,q.unary=bh,q.union=ju,q.unionBy=Uf,q.unionWith=Hf,q.uniq=qi,q.uniqBy=Uv,q.uniqWith=Hv,q.unset=ig,q.unzip=Vf,q.unzipWith=Cc,q.update=xh,q.updateWith=ky,q.values=Bc,q.valuesIn=ug,q.without=ys,q.words=S,q.wrap=N0,q.xor=Br,q.xorBy=Pl,q.xorWith=qf,q.zip=_r,q.zipObject=tm,q.zipObjectDeep=nm,q.zipWith=Vv,q.entries=bm,q.entriesIn=Sm,q.extend=Ch,q.extendWith=fl,Se(q,q),q.add=nD,q.attempt=w,q.camelCase=og,q.capitalize=_c,q.ceil=aD,q.clamp=Em,q.clone=Sh,q.cloneDeep=kc,q.cloneDeepWith=sn,q.cloneWith=Es,q.conformsTo=Qf,q.deburr=dl,q.defaultTo=Ye,q.divide=Wb,q.endsWith=_o,q.eq=Wr,q.escape=Fo,q.escapeRegExp=Ah,q.every=Gv,q.find=Ac,q.findIndex=Zr,q.findKey=Jf,q.findLast=Oc,q.findLastIndex=jf,q.findLastKey=ed,q.floor=rD,q.forEach=im,q.forEachRight=um,q.forIn=td,q.forInRight=wy,q.forOwn=Uu,q.forOwnRight=Rc,q.get=nd,q.gt=Kv,q.gte=hm,q.has=ym,q.hasIn=Kl,q.head=xo,q.identity=we,q.includes=Gf,q.indexOf=zu,q.inRange=Cm,q.invoke=Ay,q.isArguments=Dr,q.isArray=Ht,q.isArrayBuffer=Xf,q.isArrayLike=Ia,q.isArrayLikeObject=wa,q.isBoolean=uu,q.isBuffer=Il,q.isDate=Dy,q.isElement=Wv,q.isEmpty=pm,q.isEqual=en,q.isEqualWith=Me,q.isError=Gt,q.isFinite=R0,q.isFunction=lu,q.isInteger=If,q.isLength=yi,q.isMap=ol,q.isMatch=Zf,q.isMatchWith=Ro,q.isNaN=mm,q.isNative=B0,q.isNil=_0,q.isNull=Ey,q.isNumber=sl,q.isObject=ta,q.isObjectLike=pa,q.isPlainObject=Lu,q.isRegExp=Kf,q.isSafeInteger=Dh,q.isSet=Nc,q.isString=vm,q.isSymbol=Fr,q.isTypedArray=Wf,q.isUndefined=cl,q.isWeakMap=Cs,q.isWeakSet=Mr,q.join=In,q.kebabCase=Oh,q.last=Sr,q.lastIndexOf=Ha,q.lowerCase=xs,q.lowerFirst=Ny,q.lt=pt,q.lte=Gi,q.max=iD,q.maxBy=uD,q.mean=lD,q.meanBy=oD,q.min=sD,q.minBy=cD,q.stubArray=z0,q.stubFalse=j0,q.stubObject=Kb,q.stubString=KS,q.stubTrue=WS,q.multiply=fD,q.nth=fy,q.noConflict=Xe,q.noop=yt,q.now=cm,q.pad=Fc,q.padEnd=Mc,q.padStart=Ry,q.parseInt=sg,q.random=lg,q.reduce=lm,q.reduceRight=vy,q.repeat=Th,q.replace=kh,q.result=F0,q.round=dD,q.runInContext=de,q.sample=Qv,q.size=sm,q.snakeCase=id,q.some=Iv,q.sortedIndex=ha,q.sortedIndexBy=kn,q.sortedIndexOf=Nn,q.sortedLastIndex=na,q.sortedLastIndexBy=Vi,q.sortedLastIndexOf=Gl,q.startCase=zc,q.startsWith=cg,q.subtract=Jb,q.sum=L0,q.sumBy=hg,q.template=Wl,q.times=JS,q.toFinite=Na,q.toInteger=tn,q.toLength=Zl,q.toLower=fg,q.toNumber=bi,q.toSafeInteger=zr,q.toString=vn,q.toUpper=xm,q.trim=dg,q.trimEnd=Di,q.trimStart=Nh,q.truncate=i,q.unescape=o,q.uniqueId=tD,q.upperCase=c,q.upperFirst=m,q.each=im,q.eachRight=um,q.first=xo,Se(q,function(){var f={};return kr(q,function(p,D){$n.call(q.prototype,D)||(f[D]=p)}),f}(),{chain:!1}),q.VERSION=u,Ki(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){q[f].placeholder=q}),Ki(["drop","take"],function(f,p){An.prototype[f]=function(D){D=D===r?1:ca(tn(D),0);var k=this.__filtered__&&!p?new An(this):this.clone();return k.__filtered__?k.__takeCount__=ba(D,k.__takeCount__):k.__views__.push({size:ba(D,Re),type:f+(k.__dir__<0?"Right":"")}),k},An.prototype[f+"Right"]=function(D){return this.reverse()[f](D).reverse()}}),Ki(["filter","map","takeWhile"],function(f,p){var D=p+1,k=D==Ee||D==K;An.prototype[f]=function(U){var P=this.clone();return P.__iteratees__.push({iteratee:Nt(U,3),type:D}),P.__filtered__=P.__filtered__||k,P}}),Ki(["head","last"],function(f,p){var D="take"+(p?"Right":"");An.prototype[f]=function(){return this[D](1).value()[0]}}),Ki(["initial","tail"],function(f,p){var D="drop"+(p?"":"Right");An.prototype[f]=function(){return this.__filtered__?new An(this):this[D](1)}}),An.prototype.compact=function(){return this.filter(we)},An.prototype.find=function(f){return this.filter(f).head()},An.prototype.findLast=function(f){return this.reverse().find(f)},An.prototype.invokeMap=on(function(f,p){return typeof f=="function"?new An(this):this.map(function(D){return Bl(D,f,p)})}),An.prototype.reject=function(f){return this.filter(Pf(Nt(f)))},An.prototype.slice=function(f,p){f=tn(f);var D=this;return D.__filtered__&&(f>0||p<0)?new An(D):(f<0?D=D.takeRight(-f):f&&(D=D.drop(f)),p!==r&&(p=tn(p),D=p<0?D.dropRight(-p):D.take(p-f)),D)},An.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},An.prototype.toArray=function(){return this.take(Re)},kr(An.prototype,function(f,p){var D=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),U=q[k?"take"+(p=="last"?"Right":""):p],P=k||/^find/.test(p);U&&(q.prototype[p]=function(){var ne=this.__wrapped__,le=k?[1]:arguments,ve=ne instanceof An,We=le[0],Pe=ve||Ht(ne),Je=function(Rn){var Yn=U.apply(q,bu([Rn],le));return k&&ft?Yn[0]:Yn};Pe&&D&&typeof We=="function"&&We.length!=1&&(ve=Pe=!1);var ft=this.__chain__,At=!!this.__actions__.length,Lt=P&&!ft,gn=ve&&!At;if(!P&&Pe){ne=gn?ne:new An(this);var Mt=f.apply(ne,le);return Mt.__actions__.push({func:Kr,args:[Je],thisArg:r}),new fi(Mt,ft)}return Lt&&gn?f.apply(this,le):(Mt=this.thru(Je),Lt?k?Mt.value()[0]:Mt.value():Mt)})}),Ki(["pop","push","shift","sort","splice","unshift"],function(f){var p=cf[f],D=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",k=/^(?:pop|shift)$/.test(f);q.prototype[f]=function(){var U=arguments;if(k&&!this.__chain__){var P=this.value();return p.apply(Ht(P)?P:[],U)}return this[D](function(ne){return p.apply(Ht(ne)?ne:[],U)})}}),kr(An.prototype,function(f,p){var D=q[p];if(D){var k=D.name+"";$n.call(Ri,k)||(Ri[k]=[]),Ri[k].push({name:p,func:D})}}),Ri[Wn(r,M).name]=[{name:"wrapper",func:r}],An.prototype.clone=gf,An.prototype.reverse=Ld,An.prototype.value=ts,q.prototype.at=$v,q.prototype.chain=iu,q.prototype.commit=$f,q.prototype.next=ch,q.prototype.plant=ko,q.prototype.reverse=xc,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=bs,q.prototype.first=q.prototype.head,ho&&(q.prototype[ho]=dy),q},$r=xl();so?((so.exports=$r)._=$r,oo._=$r):Qa._=$r}).call(Mz)}(wb,wb.exports)),wb.exports}var E0=zz();const jz=(a,t,r,u)=>{const s=[r,{code:t,...u||{}}];if(a?.services?.logger?.forward)return a.services.logger.forward(s,"warn","react-i18next::",!0);qg(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),a?.services?.logger?.warn?a.services.logger.warn(...s):console?.warn&&console.warn(...s)},kT={},xC=(a,t,r,u)=>{qg(r)&&kT[r]||(qg(r)&&(kT[r]=new Date),jz(a,t,r,u))},oN=(a,t)=>()=>{if(a.isInitialized)t();else{const r=()=>{setTimeout(()=>{a.off("initialized",r)},0),t()};a.on("initialized",r)}},AC=(a,t,r)=>{a.loadNamespaces(t,oN(a,r))},NT=(a,t,r,u)=>{if(qg(r)&&(r=[r]),a.options.preload&&a.options.preload.indexOf(t)>-1)return AC(a,r,u);r.forEach(s=>{a.options.ns.indexOf(s)<0&&a.options.ns.push(s)}),a.loadLanguages(t,oN(a,u))},Lz=(a,t,r={})=>!t.languages||!t.languages.length?(xC(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(a,{lng:r.lng,precheck:(u,s)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!s(u.isLanguageChangingTo,a))return!1}}),qg=a=>typeof a=="string",Uz=a=>typeof a=="object"&&a!==null,Hz=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vz={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qz=a=>Vz[a],$z=a=>a.replace(Hz,qz);let OC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$z};const Gz=(a={})=>{OC={...OC,...a}},Yz=()=>OC;let sN;const Pz=a=>{sN=a},Qz=()=>sN,Xz={type:"3rdParty",init(a){Gz(a.options.react),Pz(a)}},Iz=Z.createContext();class Zz{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Kz=(a,t)=>{const r=Z.useRef();return Z.useEffect(()=>{r.current=a},[a,t]),r.current},cN=(a,t,r,u)=>a.getFixedT(t,r,u),Wz=(a,t,r,u)=>Z.useCallback(cN(a,t,r,u),[a,t,r,u]),Ic=(a,t={})=>{const{i18n:r}=t,{i18n:u,defaultNS:s}=Z.useContext(Iz)||{},h=r||u||Qz();if(h&&!h.reportNamespaces&&(h.reportNamespaces=new Zz),!h){xC(h,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const H=(W,X)=>qg(X)?X:Uz(X)&&qg(X.defaultValue)?X.defaultValue:Array.isArray(W)?W[W.length-1]:W,G=[H,{},!1];return G.t=H,G.i18n={},G.ready=!1,G}h.options.react?.wait&&xC(h,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const g={...Yz(),...h.options.react,...t},{useSuspense:y,keyPrefix:E}=g;let C=s||h.options?.defaultNS;C=qg(C)?[C]:C||["translation"],h.reportNamespaces.addUsedNamespaces?.(C);const A=(h.isInitialized||h.initializedStoreOnce)&&C.every(H=>Lz(H,h,g)),T=Wz(h,t.lng||null,g.nsMode==="fallback"?C:C[0],E),N=()=>T,R=()=>cN(h,t.lng||null,g.nsMode==="fallback"?C:C[0],E),[z,V]=Z.useState(N);let L=C.join();t.lng&&(L=`${t.lng}${L}`);const M=Kz(L),x=Z.useRef(!0);Z.useEffect(()=>{const{bindI18n:H,bindI18nStore:G}=g;x.current=!0,!A&&!y&&(t.lng?NT(h,t.lng,C,()=>{x.current&&V(R)}):AC(h,C,()=>{x.current&&V(R)})),A&&M&&M!==L&&x.current&&V(R);const W=()=>{x.current&&V(R)};return H&&h?.on(H,W),G&&h?.store.on(G,W),()=>{x.current=!1,h&&H&&H?.split(" ").forEach(X=>h.off(X,W)),G&&h&&G.split(" ").forEach(X=>h.store.off(X,W))}},[h,L]),Z.useEffect(()=>{x.current&&A&&V(N)},[h,E,A]);const B=[z,h,A];if(B.t=z,B.i18n=h,B.ready=A,A||!A&&!y)return B;throw new Promise(H=>{t.lng?NT(h,t.lng,C,()=>H()):AC(h,C,()=>H())})};function Jz({onChange:a,onContentExperienceChanged:t,value:r,placeholder:u,label:s,contentExperiencePrn:h,gridPlacementPrn:g}){const E=Z.useRef(null),[C,A]=Z.useState(!1),[T,N]=Z.useState(""),[R,z]=Z.useState(!1),V=Z.useRef(null),[L,{data:M,loading:x}]=Az(kz,{variables:{paginate:{first:5},orderBy:{key:"createdAt",direction:GS.Desc},where:{title:[{_ilike:T}]}},notifyOnNetworkStatusChange:!0}),{t:B}=Ic(),H=Z.useMemo(()=>M?.contentExperiences.edges.find(ee=>ee.node.prn===h),[M,h]);VS(E,()=>{A(!1)}),Z.useEffect(()=>{C&&(V.current&&V.current.focus(),L())},[C]);const G=Z.useCallback(E0.debounce(ee=>{N(ee),z(!1)},1e3),[]);function W(ee){ee.target.value.length>0&&A(!0),z(!0),t(void 0),a({url:ee.target.value}),G(ee.target.value)}function X(ee){t(ee),N(""),A(!1)}return I.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[I.jsx("label",{className:"font-semibold text-xs",children:s}),I.jsxs("div",{ref:E,className:"relative w-full",children:[I.jsxs("div",{className:"flex items-center gap-4 border border-gray-300 rounded-md h-12 px-5",children:[I.jsx("div",{className:"",children:h!==void 0||g!==void 0?I.jsx(Pa,{icon:["fal","sparkles"],className:"text-primary"}):I.jsx(Pa,{icon:["fal","globe"],className:"text-primary"})}),C?I.jsx("input",{ref:V,onChange:W,placeholder:u,value:r,className:"w-full outline-none",type:"text","data-testid":"link-input"}):null,C?null:I.jsxs("div",{className:"w-full truncate leading-none",onClick:()=>A(!C),children:[H?I.jsx("p",{className:"text-sm",children:H?.node?.title}):null,I.jsx("p",{"data-testid":"link-input-value",className:`${H?"text-xs text-gray-500":""}`,children:r!==""?r:u})]}),I.jsx("div",{onClick:()=>A(!C),className:"p-3 -mr-5 cursor-pointer",children:I.jsx(Pa,{icon:["fal","chevron-down"],className:`text-gray-500 transition-all duration-300 ${C?"rotate-180":""}`})})]}),C?I.jsxs("div",{className:"absolute w-full bg-white shadow-md rounded-md border border-gray-300 mt-1 z-10",children:[x||R?Array.from({length:5}).map((ee,J)=>I.jsx("div",{className:"px-5 py-3 flex items-center gap-2",children:I.jsx("div",{className:"w-full h-5 bg-slate-100 rounded-sm animate-pulse"})},`loading-${J}`)):null,M?.contentExperiences.edges.length===0&&!R?I.jsx("div",{className:"px-5 py-3",children:I.jsx("p",{children:B("smart_text.toolbar.link.no_results_found")})}):null,!R&&M?.contentExperiences.edges.map(ee=>I.jsxs("div",{className:"px-5 py-2 hover:bg-gray-100/20 cursor-pointer flex justify-between items-center",onClick:()=>X(ee.node),children:[I.jsxs("div",{children:[I.jsx("p",{children:ee.node.title}),I.jsx("p",{className:"text-sm text-gray-500",children:`${ee.node.pathPart.channel.domain}${ee.node.pathPart.path}`})]}),h===ee.node.prn?I.jsx(Pa,{icon:["fal","check"],className:"text-primary"}):null]},ee.node.prn))]}):null]})]})}class eS extends Error{constructor(t){super(`The PRN '${t}' is invalid or malformed.`)}}const RT=/^prn(:[A-Za-z0-9-_]+){5}$/u;var fN=(a=>(a.ASSET_MANAGER="am",a.CONTENT_EXPERIENCE_CENTER="cxc",a.ACCESS_CONTROL="ac",a.EMAILS_SERVICE="es",a.ORGANIZATIONS_CENTER="oc",a))(fN||{});class qb{constructor(t,r,u,s,h){const g=[t,u,r,s,h];if(!g.every(y=>typeof y=="string"&&y.length>0))throw new eS("Invalid PRN component(s). All components must be a non-empty string.");if(g.some(y=>y.includes(":")))throw new eS("Invalid PRN string specification. Components cannot contain ':'.");this.partition=t,this.organizationId=r,this.service=u,this.resourceType=s,this.resourceId=h}static fromString(t){if(!RT.test(t))throw new eS(`Invalid PRN string '${t}'. Should match the pattern '${RT.source}'`);const[r,u,s,h,g,y]=t.split(":");if(!Object.values(fN).map(String).includes(h))throw new eS(`Invalid ServiceAbbreviation '${h}'. Use the ServiceAbbreviation enum.`);return new qb(u,s,h,g,y)}toString(){return`prn:${this.partition}:${this.organizationId}:${this.service}:${this.resourceType}:${this.resourceId}`}equals(t){if(!(t instanceof qb))return!1;for(const r of Object.keys(this))if(this[r]!==t[r])return!1;return!0}}var BT={};/*! *****************************************************************************
|
|
97
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
98
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
99
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
100
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
-
|
|
102
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
103
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
104
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
105
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
106
|
-
|
|
107
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
108
|
-
and limitations under the License.
|
|
109
|
-
***************************************************************************** */var _T;function e6(){if(_T)return BT;_T=1;var a;return function(t){(function(r){var u=typeof globalThis=="object"?globalThis:typeof qs=="object"?qs:typeof self=="object"?self:typeof this=="object"?this:E(),s=h(t);typeof u.Reflect<"u"&&(s=h(u.Reflect,s)),r(s,u),typeof u.Reflect>"u"&&(u.Reflect=t);function h(C,A){return function(T,N){Object.defineProperty(C,T,{configurable:!0,writable:!0,value:N}),A&&A(T,N)}}function g(){try{return Function("return this;")()}catch{}}function y(){try{return(0,eval)("(function() { return this; })()")}catch{}}function E(){return g()||y()}})(function(r,u){var s=Object.prototype.hasOwnProperty,h=typeof Symbol=="function",g=h&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",y=h&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",E=typeof Object.create=="function",C={__proto__:[]}instanceof Array,A=!E&&!C,T={create:E?function(){return ai(Object.create(null))}:C?function(){return ai({__proto__:null})}:function(){return ai({})},has:A?function(ge,xe){return s.call(ge,xe)}:function(ge,xe){return xe in ge},get:A?function(ge,xe){return s.call(ge,xe)?ge[xe]:void 0}:function(ge,xe){return ge[xe]}},N=Object.getPrototypeOf(Function),R=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Dn(),z=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Kt(),V=typeof WeakMap=="function"?WeakMap:mr(),L=h?Symbol.for("@reflect-metadata:registry"):void 0,M=Ur(),x=Ba(M);function B(ge,xe,Fe,Ke){if(he(Fe)){if(!Ie(ge))throw new TypeError;if(!tt(xe))throw new TypeError;return be(ge,xe)}else{if(!Ie(ge))throw new TypeError;if(!rt(xe))throw new TypeError;if(!rt(Ke)&&!he(Ke)&&!nt(Ke))throw new TypeError;return nt(Ke)&&(Ke=void 0),Fe=Ne(Fe),Ee(ge,xe,Fe,Ke)}}r("decorate",B);function H(ge,xe){function Fe(Ke,vt){if(!rt(Ke))throw new TypeError;if(!he(vt)&&!jn(vt))throw new TypeError;Ve(ge,xe,Ke,vt)}return Fe}r("metadata",H);function G(ge,xe,Fe,Ke){if(!rt(Fe))throw new TypeError;return he(Ke)||(Ke=Ne(Ke)),Ve(ge,xe,Fe,Ke)}r("defineMetadata",G);function W(ge,xe,Fe){if(!rt(xe))throw new TypeError;return he(Fe)||(Fe=Ne(Fe)),ze(ge,xe,Fe)}r("hasMetadata",W);function X(ge,xe,Fe){if(!rt(xe))throw new TypeError;return he(Fe)||(Fe=Ne(Fe)),K(ge,xe,Fe)}r("hasOwnMetadata",X);function ee(ge,xe,Fe){if(!rt(xe))throw new TypeError;return he(Fe)||(Fe=Ne(Fe)),ue(ge,xe,Fe)}r("getMetadata",ee);function J(ge,xe,Fe){if(!rt(xe))throw new TypeError;return he(Fe)||(Fe=Ne(Fe)),pe(ge,xe,Fe)}r("getOwnMetadata",J);function De(ge,xe){if(!rt(ge))throw new TypeError;return he(xe)||(xe=Ne(xe)),fe(ge,xe)}r("getMetadataKeys",De);function ke(ge,xe){if(!rt(ge))throw new TypeError;return he(xe)||(xe=Ne(xe)),Re(ge,xe)}r("getOwnMetadataKeys",ke);function ye(ge,xe,Fe){if(!rt(xe))throw new TypeError;if(he(Fe)||(Fe=Ne(Fe)),!rt(xe))throw new TypeError;he(Fe)||(Fe=Ne(Fe));var Ke=Xt(xe,Fe,!1);return he(Ke)?!1:Ke.OrdinaryDeleteMetadata(ge,xe,Fe)}r("deleteMetadata",ye);function be(ge,xe){for(var Fe=ge.length-1;Fe>=0;--Fe){var Ke=ge[Fe],vt=Ke(xe);if(!he(vt)&&!nt(vt)){if(!tt(vt))throw new TypeError;xe=vt}}return xe}function Ee(ge,xe,Fe,Ke){for(var vt=ge.length-1;vt>=0;--vt){var nn=ge[vt],Wt=nn(xe,Fe,Ke);if(!he(Wt)&&!nt(Wt)){if(!rt(Wt))throw new TypeError;Ke=Wt}}return Ke}function ze(ge,xe,Fe){var Ke=K(ge,xe,Fe);if(Ke)return!0;var vt=Ln(xe);return nt(vt)?!1:ze(ge,vt,Fe)}function K(ge,xe,Fe){var Ke=Xt(xe,Fe,!1);return he(Ke)?!1:oe(Ke.OrdinaryHasOwnMetadata(ge,xe,Fe))}function ue(ge,xe,Fe){var Ke=K(ge,xe,Fe);if(Ke)return pe(ge,xe,Fe);var vt=Ln(xe);if(!nt(vt))return ue(ge,vt,Fe)}function pe(ge,xe,Fe){var Ke=Xt(xe,Fe,!1);if(!he(Ke))return Ke.OrdinaryGetOwnMetadata(ge,xe,Fe)}function Ve(ge,xe,Fe,Ke){var vt=Xt(Fe,Ke,!0);vt.OrdinaryDefineOwnMetadata(ge,xe,Fe,Ke)}function fe(ge,xe){var Fe=Re(ge,xe),Ke=Ln(ge);if(Ke===null)return Fe;var vt=fe(Ke,xe);if(vt.length<=0)return Fe;if(Fe.length<=0)return vt;for(var nn=new z,Wt=[],zt=0,it=Fe;zt<it.length;zt++){var ut=it[zt],st=nn.has(ut);st||(nn.add(ut),Wt.push(ut))}for(var gt=0,Pt=vt;gt<Pt.length;gt++){var ut=Pt[gt],st=nn.has(ut);st||(nn.add(ut),Wt.push(ut))}return Wt}function Re(ge,xe){var Fe=Xt(ge,xe,!1);return Fe?Fe.OrdinaryOwnMetadataKeys(ge,xe):[]}function Le(ge){if(ge===null)return 1;switch(typeof ge){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ge===null?1:6;default:return 6}}function he(ge){return ge===void 0}function nt(ge){return ge===null}function bt(ge){return typeof ge=="symbol"}function rt(ge){return typeof ge=="object"?ge!==null:typeof ge=="function"}function _n(ge,xe){switch(Le(ge)){case 0:return ge;case 1:return ge;case 2:return ge;case 3:return ge;case 4:return ge;case 5:return ge}var Fe="string",Ke=Ot(ge,g);if(Ke!==void 0){var vt=Ke.call(ge,Fe);if(rt(vt))throw new TypeError;return vt}return Ft(ge)}function Ft(ge,xe){var Fe,Ke,vt;{var nn=ge.toString;if(St(nn)){var Ke=nn.call(ge);if(!rt(Ke))return Ke}var Fe=ge.valueOf;if(St(Fe)){var Ke=Fe.call(ge);if(!rt(Ke))return Ke}}throw new TypeError}function oe(ge){return!!ge}function Qe(ge){return""+ge}function Ne(ge){var xe=_n(ge);return bt(xe)?xe:Qe(xe)}function Ie(ge){return Array.isArray?Array.isArray(ge):ge instanceof Object?ge instanceof Array:Object.prototype.toString.call(ge)==="[object Array]"}function St(ge){return typeof ge=="function"}function tt(ge){return typeof ge=="function"}function jn(ge){switch(Le(ge)){case 3:return!0;case 4:return!0;default:return!1}}function Ut(ge,xe){return ge===xe||ge!==ge&&xe!==xe}function Ot(ge,xe){var Fe=ge[xe];if(Fe!=null){if(!St(Fe))throw new TypeError;return Fe}}function Fn(ge){var xe=Ot(ge,y);if(!St(xe))throw new TypeError;var Fe=xe.call(ge);if(!rt(Fe))throw new TypeError;return Fe}function Zt(ge){return ge.value}function Rt(ge){var xe=ge.next();return xe.done?!1:xe}function Yt(ge){var xe=ge.return;xe&&xe.call(ge)}function Ln(ge){var xe=Object.getPrototypeOf(ge);if(typeof ge!="function"||ge===N||xe!==N)return xe;var Fe=ge.prototype,Ke=Fe&&Object.getPrototypeOf(Fe);if(Ke==null||Ke===Object.prototype)return xe;var vt=Ke.constructor;return typeof vt!="function"||vt===ge?xe:vt}function va(){var ge;!he(L)&&typeof u.Reflect<"u"&&!(L in u.Reflect)&&typeof u.Reflect.defineMetadata=="function"&&(ge=xa(u.Reflect));var xe,Fe,Ke,vt=new V,nn={registerProvider:Wt,getProvider:it,setProvider:st};return nn;function Wt(gt){if(!Object.isExtensible(nn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case ge===gt:break;case he(xe):xe=gt;break;case xe===gt:break;case he(Fe):Fe=gt;break;case Fe===gt:break;default:Ke===void 0&&(Ke=new z),Ke.add(gt);break}}function zt(gt,Pt){if(!he(xe)){if(xe.isProviderFor(gt,Pt))return xe;if(!he(Fe)){if(Fe.isProviderFor(gt,Pt))return xe;if(!he(Ke))for(var Vt=Fn(Ke);;){var It=Rt(Vt);if(!It)return;var Dt=Zt(It);if(Dt.isProviderFor(gt,Pt))return Yt(Vt),Dt}}}if(!he(ge)&&ge.isProviderFor(gt,Pt))return ge}function it(gt,Pt){var Vt=vt.get(gt),It;return he(Vt)||(It=Vt.get(Pt)),he(It)&&(It=zt(gt,Pt),he(It)||(he(Vt)&&(Vt=new R,vt.set(gt,Vt)),Vt.set(Pt,It))),It}function ut(gt){if(he(gt))throw new TypeError;return xe===gt||Fe===gt||!he(Ke)&&Ke.has(gt)}function st(gt,Pt,Vt){if(!ut(Vt))throw new Error("Metadata provider not registered.");var It=it(gt,Pt);if(It!==Vt){if(!he(It))return!1;var Dt=vt.get(gt);he(Dt)&&(Dt=new R,vt.set(gt,Dt)),Dt.set(Pt,Vt)}return!0}}function Ur(){var ge;return!he(L)&&rt(u.Reflect)&&Object.isExtensible(u.Reflect)&&(ge=u.Reflect[L]),he(ge)&&(ge=va()),!he(L)&&rt(u.Reflect)&&Object.isExtensible(u.Reflect)&&Object.defineProperty(u.Reflect,L,{enumerable:!1,configurable:!1,writable:!1,value:ge}),ge}function Ba(ge){var xe=new V,Fe={isProviderFor:function(ut,st){var gt=xe.get(ut);return he(gt)?!1:gt.has(st)},OrdinaryDefineOwnMetadata:Wt,OrdinaryHasOwnMetadata:vt,OrdinaryGetOwnMetadata:nn,OrdinaryOwnMetadataKeys:zt,OrdinaryDeleteMetadata:it};return M.registerProvider(Fe),Fe;function Ke(ut,st,gt){var Pt=xe.get(ut),Vt=!1;if(he(Pt)){if(!gt)return;Pt=new R,xe.set(ut,Pt),Vt=!0}var It=Pt.get(st);if(he(It)){if(!gt)return;if(It=new R,Pt.set(st,It),!ge.setProvider(ut,st,Fe))throw Pt.delete(st),Vt&&xe.delete(ut),new Error("Wrong provider for target.")}return It}function vt(ut,st,gt){var Pt=Ke(st,gt,!1);return he(Pt)?!1:oe(Pt.has(ut))}function nn(ut,st,gt){var Pt=Ke(st,gt,!1);if(!he(Pt))return Pt.get(ut)}function Wt(ut,st,gt,Pt){var Vt=Ke(gt,Pt,!0);Vt.set(ut,st)}function zt(ut,st){var gt=[],Pt=Ke(ut,st,!1);if(he(Pt))return gt;for(var Vt=Pt.keys(),It=Fn(Vt),Dt=0;;){var pn=Rt(It);if(!pn)return gt.length=Dt,gt;var xr=Zt(pn);try{gt[Dt]=xr}catch(ia){try{Yt(It)}finally{throw ia}}Dt++}}function it(ut,st,gt){var Pt=Ke(st,gt,!1);if(he(Pt)||!Pt.delete(ut))return!1;if(Pt.size===0){var Vt=xe.get(st);he(Vt)||(Vt.delete(gt),Vt.size===0&&xe.delete(Vt))}return!0}}function xa(ge){var xe=ge.defineMetadata,Fe=ge.hasOwnMetadata,Ke=ge.getOwnMetadata,vt=ge.getOwnMetadataKeys,nn=ge.deleteMetadata,Wt=new V,zt={isProviderFor:function(it,ut){var st=Wt.get(it);return!he(st)&&st.has(ut)?!0:vt(it,ut).length?(he(st)&&(st=new z,Wt.set(it,st)),st.add(ut),!0):!1},OrdinaryDefineOwnMetadata:xe,OrdinaryHasOwnMetadata:Fe,OrdinaryGetOwnMetadata:Ke,OrdinaryOwnMetadataKeys:vt,OrdinaryDeleteMetadata:nn};return zt}function Xt(ge,xe,Fe){var Ke=M.getProvider(ge,xe);if(!he(Ke))return Ke;if(Fe){if(M.setProvider(ge,xe,x))return x;throw new Error("Illegal state.")}}function Dn(){var ge={},xe=[],Fe=function(){function zt(it,ut,st){this._index=0,this._keys=it,this._values=ut,this._selector=st}return zt.prototype["@@iterator"]=function(){return this},zt.prototype[y]=function(){return this},zt.prototype.next=function(){var it=this._index;if(it>=0&&it<this._keys.length){var ut=this._selector(this._keys[it],this._values[it]);return it+1>=this._keys.length?(this._index=-1,this._keys=xe,this._values=xe):this._index++,{value:ut,done:!1}}return{value:void 0,done:!0}},zt.prototype.throw=function(it){throw this._index>=0&&(this._index=-1,this._keys=xe,this._values=xe),it},zt.prototype.return=function(it){return this._index>=0&&(this._index=-1,this._keys=xe,this._values=xe),{value:it,done:!0}},zt}(),Ke=function(){function zt(){this._keys=[],this._values=[],this._cacheKey=ge,this._cacheIndex=-2}return Object.defineProperty(zt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),zt.prototype.has=function(it){return this._find(it,!1)>=0},zt.prototype.get=function(it){var ut=this._find(it,!1);return ut>=0?this._values[ut]:void 0},zt.prototype.set=function(it,ut){var st=this._find(it,!0);return this._values[st]=ut,this},zt.prototype.delete=function(it){var ut=this._find(it,!1);if(ut>=0){for(var st=this._keys.length,gt=ut+1;gt<st;gt++)this._keys[gt-1]=this._keys[gt],this._values[gt-1]=this._values[gt];return this._keys.length--,this._values.length--,Ut(it,this._cacheKey)&&(this._cacheKey=ge,this._cacheIndex=-2),!0}return!1},zt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ge,this._cacheIndex=-2},zt.prototype.keys=function(){return new Fe(this._keys,this._values,vt)},zt.prototype.values=function(){return new Fe(this._keys,this._values,nn)},zt.prototype.entries=function(){return new Fe(this._keys,this._values,Wt)},zt.prototype["@@iterator"]=function(){return this.entries()},zt.prototype[y]=function(){return this.entries()},zt.prototype._find=function(it,ut){if(!Ut(this._cacheKey,it)){this._cacheIndex=-1;for(var st=0;st<this._keys.length;st++)if(Ut(this._keys[st],it)){this._cacheIndex=st;break}}return this._cacheIndex<0&&ut&&(this._cacheIndex=this._keys.length,this._keys.push(it),this._values.push(void 0)),this._cacheIndex},zt}();return Ke;function vt(zt,it){return zt}function nn(zt,it){return it}function Wt(zt,it){return[zt,it]}}function Kt(){var ge=function(){function xe(){this._map=new R}return Object.defineProperty(xe.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),xe.prototype.has=function(Fe){return this._map.has(Fe)},xe.prototype.add=function(Fe){return this._map.set(Fe,Fe),this},xe.prototype.delete=function(Fe){return this._map.delete(Fe)},xe.prototype.clear=function(){this._map.clear()},xe.prototype.keys=function(){return this._map.keys()},xe.prototype.values=function(){return this._map.keys()},xe.prototype.entries=function(){return this._map.entries()},xe.prototype["@@iterator"]=function(){return this.keys()},xe.prototype[y]=function(){return this.keys()},xe}();return ge}function mr(){var ge=16,xe=T.create(),Fe=Ke();return function(){function it(){this._key=Ke()}return it.prototype.has=function(ut){var st=vt(ut,!1);return st!==void 0?T.has(st,this._key):!1},it.prototype.get=function(ut){var st=vt(ut,!1);return st!==void 0?T.get(st,this._key):void 0},it.prototype.set=function(ut,st){var gt=vt(ut,!0);return gt[this._key]=st,this},it.prototype.delete=function(ut){var st=vt(ut,!1);return st!==void 0?delete st[this._key]:!1},it.prototype.clear=function(){this._key=Ke()},it}();function Ke(){var it;do it="@@WeakMap@@"+zt();while(T.has(xe,it));return xe[it]=!0,it}function vt(it,ut){if(!s.call(it,Fe)){if(!ut)return;Object.defineProperty(it,Fe,{value:T.create()})}return it[Fe]}function nn(it,ut){for(var st=0;st<ut;++st)it[st]=Math.random()*255|0;return it}function Wt(it){if(typeof Uint8Array=="function"){var ut=new Uint8Array(it);return typeof crypto<"u"?crypto.getRandomValues(ut):typeof msCrypto<"u"?msCrypto.getRandomValues(ut):nn(ut,it),ut}return nn(new Array(it),it)}function zt(){var it=Wt(ge);it[6]=it[6]&79|64,it[8]=it[8]&191|128;for(var ut="",st=0;st<ge;++st){var gt=it[st];(st===4||st===6||st===8)&&(ut+="-"),gt<16&&(ut+="0"),ut+=gt.toString(16).toLowerCase()}return ut}}function ai(ge){return ge.__=void 0,delete ge.__,ge}})}(a||(a={})),BT}e6();const t6=/^(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)|mailto:[^\s@]+@[^\s@]+\.[^\s@]+|tel:\+?[0-9\s\-().]{7,}|\/[^\s]*)$/u;function n6({onChange:a,name:t="text",value:r,placeholder:u,label:s}){return I.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[I.jsx("label",{className:"font-semibold text-xs",children:s}),I.jsx("input",{onChange:h=>{a(h.target.value)},placeholder:u,value:r,name:t,className:"w-full outline-none rounded-md px-5 py-3 border border-gray-300",type:"text","data-testid":"text-input"})]})}function a6({label:a,value:t,contentExperiencePrn:r,gridPlacementPrn:u,onGridPlacementChanged:s}){const g=Z.useRef(null),[y,E]=Z.useState(!1),{t:C}=Ic(),{data:A,loading:T}=$S(Nz,{variables:{prn:r},notifyOnNetworkStatusChange:!0});VS(g,()=>{E(!1)});const N=Z.useMemo(()=>t.split("#")[1],[t]),R=Z.useMemo(()=>{const z=A?.contentExperience[0];return z?E0.sortBy(z.experienceComponent.grid?.gridPlacements??[],"row"):[]},[A]);return R.length===0?null:I.jsxs("div",{className:"flex flex-col gap-1",children:[I.jsx("label",{className:"font-semibold text-xs",children:a}),I.jsxs("div",{ref:g,className:"relative w-full",children:[I.jsxs("div",{className:"w-full outline-none rounded-md px-5 h-12 border border-gray-300 flex items-center gap-4",onClick:()=>{E(!y)},children:[I.jsx("p",{className:"w-full truncate leading-none",children:N?`${C("smart_text.toolbar.link.row")} ${N}`:C("smart_text.toolbar.link.select_section")}),I.jsx(Pa,{icon:["fal","chevron-down"],className:`text-gray-500 cursor-pointer transition-all duration-300 ${y?"rotate-180":""}`})]}),y?I.jsxs("div",{className:"absolute w-full bg-white shadow-md rounded-md border border-gray-300 mt-1 z-10",children:[T?Array.from({length:5}).map((z,V)=>I.jsx("div",{className:"px-5 py-3 flex items-center gap-2",children:I.jsx("div",{className:"w-full h-5 bg-slate-100 rounded-sm animate-pulse"})},`loading-${V}`)):null,!T&&R.map(z=>I.jsxs("div",{className:"px-5 py-2 hover:bg-gray-100/20 cursor-pointer flex justify-between items-center",onClick:()=>{s(z),E(!1)},children:[I.jsx("div",{children:I.jsxs("p",{children:[C("smart_text.toolbar.link.row")," ",z.row]})}),z.prn===u?I.jsx(Pa,{icon:["fal","check"],className:"text-primary"}):null]},z.prn)),N?I.jsx("div",{className:"px-5 py-2 hover:bg-gray-100/20 cursor-pointer flex justify-between items-center text-red-500 border-t border-gray-200",onClick:()=>{s(void 0),E(!1)},children:I.jsx("p",{children:C("smart_text.toolbar.link.remove_anchor")})}):null]}):null]}),I.jsx("p",{className:"text-xs text-gray-500",children:C("smart_text.toolbar.link.select_section_description")})]})}const r6=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),i6=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),u6=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),l6=/[^\p{L}\d]+/giu,FT="$1\0$2",MT="";function dN(a){let t=a.trim();t=t.replace(r6,FT).replace(i6,FT),t=t.replace(l6,"\0");let r=0,u=t.length;for(;t.charAt(r)==="\0";)r++;if(r===u)return[];for(;t.charAt(u-1)==="\0";)u--;return t.slice(r,u).split(/\0/g)}function o6(a){const t=dN(a);for(let r=0;r<t.length;r++){const u=t[r],s=u6.exec(u);if(s){const h=s.index+(s[1]??s[2]).length;t.splice(r,1,u.slice(0,h),u.slice(h))}}return t}function dw(a,t){const[r,u,s]=d6(a,t),h=s6(t?.locale),g=c6(t?.locale);return r+u.map(f6(h,g)).join(" ")+s}function s6(a){return t=>t.toLocaleLowerCase(a)}function c6(a){return t=>t.toLocaleUpperCase(a)}function f6(a,t){return r=>`${t(r[0])}${a(r.slice(1))}`}function d6(a,t={}){const r=t.split??(t.separateNumbers?o6:dN),u=t.prefixCharacters??MT,s=t.suffixCharacters??MT;let h=0,g=a.length;for(;h<a.length;){const y=a.charAt(h);if(!u.includes(y))break;h++}for(;g>h;){const y=g-1,E=a.charAt(y);if(!s.includes(E))break;g=y}return[a.slice(0,h),r(a.slice(h,g)),a.slice(g)]}function hN({showLinkTextInput:a=!1,buttonText:t,menuClass:r,showMenu:u,onClose:s}){const h=Ii(),{selection:g}=h,[y,E]=_e.edges(g??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}),[C,A]=Z.useState({text:j.string(h,j.range(h,y,E)),url:"",target:"self"}),[T,N]=Z.useState(void 0),[R,z]=Z.useState(void 0);Z.useEffect(()=>{function ee(J){J.key==="Escape"&&s?.()}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[s]),Z.useEffect(()=>{L()&&W()},[u]);function V(ee){A({text:ee.text??C.text,url:ee.url??C.url,target:ee.target??C.target,internal:ee.internal===void 0?void 0:ee.internal??C.internal})}function L(){return Rb(h,"link")!==void 0}function M(){L()?H():x(),G(),s()}function x(){He.insertNodes(h,{type:"link",url:C.url,target:C.target,children:[{text:C.text}],internal:C.internal},{at:{anchor:y,focus:E}})}const{t:B}=Ic();function H(){const ee=Rb(h,"link");if(!ee)return;const[,J]=ee;He.setNodes(h,{url:C.url,target:C.target,internal:C.internal},{at:J})}function G(){A({text:"",url:"",target:"self"})}function W(){const ee=Rb(h,"link");if(!ee)return;const[J]=ee;A({text:J.children[0].text,url:J.url,target:J.target,internal:J.internal}),J.internal?.anchor?z(J.internal.prn):J.internal?.prn&&N(J.internal.prn)}const X=t6.test(C.url);return g?I.jsx("div",{className:`absolute left-0 mt-1 z-10 min-w-sm w-[20vw] ${r??""}`,children:u?I.jsxs("div",{className:"bg-white py-3 shadow-2xl outline-1 outline-gray-100 rounded-md",children:[I.jsxs("div",{className:"px-4 flex flex-col gap-4",children:[I.jsx(Jz,{onChange:V,placeholder:B("smart_text.toolbar.link.enter_link"),label:B("smart_text.toolbar.link.title"),value:C.url,contentExperiencePrn:T,gridPlacementPrn:R,onContentExperienceChanged:ee=>{ee?(N(ee.prn),z(void 0),V({url:`${ee.pathPart.channel.domain}${ee.pathPart.path}`,text:C.text,internal:{prn:ee.prn,anchor:!1}})):(N(void 0),z(void 0),V({internal:void 0}))}}),T?I.jsx(a6,{label:B("smart_text.toolbar.link.select_section"),value:C.url,contentExperiencePrn:T,gridPlacementPrn:R,onGridPlacementChanged:ee=>{ee?(z(ee.prn),V({url:`${C.url.split("#")[0]}#${ee.row}`,internal:{prn:ee.prn,anchor:!0}})):(z(void 0),V({url:C.url.split("#")[0],internal:{prn:T,anchor:!1}}))}}):null,a?I.jsx(n6,{onChange:ee=>V({text:ee}),placeholder:B("smart_text.toolbar.link.enter_display_text"),value:C.text,label:B("smart_text.toolbar.link.display_text")}):null,I.jsx("div",{className:"flex items-center gap-2",children:I.jsxs("div",{className:"flex items-center gap-2 cursor-pointer pt-1 pb-3",onClick:()=>A({...C,target:C.target==="blank"?"self":"blank"}),children:[I.jsxs("div",{className:"relative w-5 h-5",children:[I.jsx("input",{type:"checkbox",name:"target",id:"target",className:"w-5 h-5 opacity-0 z-10 absolute cursor-pointer pointer-events-none",checked:C.target==="blank",onChange:()=>A({...C,target:C.target==="blank"?"self":"blank"})}),I.jsx("div",{className:`h-5 w-5 rounded-md absolute z-0 top-0 left-0 flex items-center justify-center border border-gray-200 ${C.target==="blank"?"bg-primary":"bg-white"}`,children:C.target==="blank"?I.jsx(Pa,{icon:["fal","check"],className:"text-white",size:"sm"}):null})]}),I.jsx("label",{className:"cursor-pointer pointer-events-none -mb-1",htmlFor:"target",children:B("smart_text.toolbar.link.new_tab")})]})})]}),I.jsxs("div",{className:"flex justify-end gap-2 border-t border-gray-100 px-4 pt-4",children:[I.jsx("button",{onClick:s,className:"border border-gray-300 text-gray-500 px-4 pt-2 pb-1.5 rounded-md cursor-pointer hover:shadow-md transition-all duration-300",children:dw(B("general.word.cancel"))}),I.jsx("button",{onClick:M,disabled:!X,className:`bg-primary text-white px-4 pt-2 pb-1.5 rounded-md cursor-pointer hover:shadow-md transition-all duration-300 ${X?"":"opacity-50 cursor-not-allowed"}`,children:t})]})]}):null}):null}function zT({icon:a,mode:t="create"}){const[r,u]=Z.useState(!1),{t:s}=Ic();return I.jsxs("div",{className:"relative",children:[I.jsx("button",{onClick:()=>u(!r),className:`transition-colors duration-200 cursor-pointer ${t==="edit"?"p-2 rounded-md flex items-center justify-center hover:bg-white/10":"pt-3.5 pb-1.5 px-2 border-b-[3px] border-b-transparent hover:border-white/50"}`,children:I.jsx(Pa,{icon:a,className:"text-white"})}),I.jsx(hN,{buttonText:s(t==="edit"?"general.word.save":"smart_text.toolbar.link.add_link"),onClose:()=>u(!1),showMenu:r})]})}function h6(){const a=Ii(),t=[1,2,3,4,5,6],[r,u]=Z.useState(!1);function s(){return t.find(h=>ew(a,"heading",{level:h}))}return I.jsxs("div",{className:"relative",children:[I.jsxs("div",{className:`pt-3.5 pb-1.5 px-2 border-b-[3px] flex items-center ${s()?"border-[#705ED9]":"border-b-transparent hover:border-white/50"}`,children:[I.jsx("div",{onClick:()=>cS(a,"heading",{level:s()??t[0]}),className:"cursor-pointer whitespace-nowrap",children:s()?I.jsx(Pa,{icon:["fal",`h${s()}`],className:"text-white hover:text-white transition-all duration-200"}):I.jsx(Pa,{icon:["fal","h"],className:"text-white hover:text-white transition-all duration-200"})}),I.jsx("span",{onClick:()=>{u(!r)},children:I.jsx(Pa,{icon:["fal","chevron-down"],size:"sm",className:"text-white cursor-pointer"})})]}),r?I.jsxs("div",{className:"absolute bg-black/80 rounded-b-md backdrop-blur-sm w-full flex flex-col items-center p-1 pb-2",children:[s()&&I.jsx("div",{className:"px-3 py-2 text-white whitespace-nowrap hover:bg-black cursor-pointer rounded-md",onClick:()=>cS(a,"heading",{level:s()}),children:I.jsx(Pa,{icon:["fal","paragraph"]})},"toolbar-heading-dropdown-option-clear"),t.map(h=>I.jsx("div",{className:`px-3 py-2 text-white whitespace-nowrap hover:bg-black cursor-pointer rounded-md transition-colors duration-200 ${s()===h?"bg-black/50":""}`,onClick:()=>cS(a,"heading",{level:h}),children:I.jsx(Pa,{icon:["fal",`h${h}`]})},`toolbar-heading-dropdown-option-${h}`))]}):null]})}const jT={}.hasOwnProperty;function p6(a,t){const r=t||{};function u(s,...h){let g=u.invalid;const y=u.handlers;if(s&&jT.call(s,a)){const E=String(s[a]);g=jT.call(y,E)?y[E]:u.unknown}if(g)return g.call(this,s,...h)}return u.handlers=r.handlers||{},u.invalid=r.invalid,u.unknown=r.unknown,u}const $s=" ";function YS(a){return Gs(a.children,{}).join($s)}const m6=p6("type",{handlers:{heading:v6,list:g6,listItem:y6,blockquote:O6,code:b6,paragraph:D6,contentValue:S6,bold:E6,italic:C6,underline:w6,strikethrough:x6,text:A6,externalLink:HE,internalLink:HE,internalAnchorLink:HE},unknown:(a,t={})=>T6(a)});function Gs(a,t={}){let r=-1;const u=[];for(;++r<a.length;){const s=m6(a[r],t);u.push(s)}return u}function v6(a,t={}){return Gs(a.children,t).join($s)}function g6(a,t={}){return Gs(a.children,t).join($s)}function y6(a,t={}){return Gs(a.children,t).join($s)}function b6(a,t={}){return Gs(a.children,t).join($s)}function S6(a){return a.value?YS(a.value):""}function D6(a,t={}){return Gs(a.children,t).join($s)}function E6(a,t={}){return Gs(a.children,t).join($s)}function C6(a,t={}){return Gs(a.children,t).join($s)}function w6(a,t={}){return Gs(a.children,t).join($s)}function x6(a,t={}){return Gs(a.children,t).join($s)}function A6(a){return a.value}function O6(a){return Gs(a.children).join($s)}function HE(a){return Gs(a.children).join($s)}function T6(a){return`Unknown node type (${a.type})`}function k6(a){return typeof a=="string"}function N6(a){return E0.isObject(a)}function R6(a){return Array.isArray(a)}function LT(a,t){a.children??=[],a.children.push(t)}function B6(){function a(t,...r){const u={type:t};return r.forEach(s=>{if(!E0.isUndefined(s))if(k6(s))t==="text"?u.value=s:LT(u,{type:"text",value:s});else if(R6(s))for(const h of s)LT(u,h);else N6(s)&&Object.assign(u,s)}),u}return a}const VE=B6(),C0=Math.min,$g=Math.max,kS=Math.round,tS=Math.floor,pd=a=>({x:a,y:a}),_6={left:"right",right:"left",bottom:"top",top:"bottom"},F6={start:"end",end:"start"};function TC(a,t,r){return $g(a,C0(t,r))}function Xb(a,t){return typeof a=="function"?a(t):a}function Qg(a){return a.split("-")[0]}function Ib(a){return a.split("-")[1]}function pN(a){return a==="x"?"y":"x"}function hw(a){return a==="y"?"height":"width"}function w0(a){return["top","bottom"].includes(Qg(a))?"y":"x"}function pw(a){return pN(w0(a))}function M6(a,t,r){r===void 0&&(r=!1);const u=Ib(a),s=pw(a),h=hw(s);let g=s==="x"?u===(r?"end":"start")?"right":"left":u==="start"?"bottom":"top";return t.reference[h]>t.floating[h]&&(g=NS(g)),[g,NS(g)]}function z6(a){const t=NS(a);return[kC(a),t,kC(t)]}function kC(a){return a.replace(/start|end/g,t=>F6[t])}function j6(a,t,r){const u=["left","right"],s=["right","left"],h=["top","bottom"],g=["bottom","top"];switch(a){case"top":case"bottom":return r?t?s:u:t?u:s;case"left":case"right":return t?h:g;default:return[]}}function L6(a,t,r,u){const s=Ib(a);let h=j6(Qg(a),r==="start",u);return s&&(h=h.map(g=>g+"-"+s),t&&(h=h.concat(h.map(kC)))),h}function NS(a){return a.replace(/left|right|bottom|top/g,t=>_6[t])}function U6(a){return{top:0,right:0,bottom:0,left:0,...a}}function mN(a){return typeof a!="number"?U6(a):{top:a,right:a,bottom:a,left:a}}function RS(a){const{x:t,y:r,width:u,height:s}=a;return{width:u,height:s,top:r,left:t,right:t+u,bottom:r+s,x:t,y:r}}function UT(a,t,r){let{reference:u,floating:s}=a;const h=w0(t),g=pw(t),y=hw(g),E=Qg(t),C=h==="y",A=u.x+u.width/2-s.width/2,T=u.y+u.height/2-s.height/2,N=u[y]/2-s[y]/2;let R;switch(E){case"top":R={x:A,y:u.y-s.height};break;case"bottom":R={x:A,y:u.y+u.height};break;case"right":R={x:u.x+u.width,y:T};break;case"left":R={x:u.x-s.width,y:T};break;default:R={x:u.x,y:u.y}}switch(Ib(t)){case"start":R[g]-=N*(r&&C?-1:1);break;case"end":R[g]+=N*(r&&C?-1:1);break}return R}const H6=async(a,t,r)=>{const{placement:u="bottom",strategy:s="absolute",middleware:h=[],platform:g}=r,y=h.filter(Boolean),E=await(g.isRTL==null?void 0:g.isRTL(t));let C=await g.getElementRects({reference:a,floating:t,strategy:s}),{x:A,y:T}=UT(C,u,E),N=u,R={},z=0;for(let V=0;V<y.length;V++){const{name:L,fn:M}=y[V],{x,y:B,data:H,reset:G}=await M({x:A,y:T,initialPlacement:u,placement:N,strategy:s,middlewareData:R,rects:C,platform:g,elements:{reference:a,floating:t}});A=x??A,T=B??T,R={...R,[L]:{...R[L],...H}},G&&z<=50&&(z++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(C=G.rects===!0?await g.getElementRects({reference:a,floating:t,strategy:s}):G.rects),{x:A,y:T}=UT(C,N,E)),V=-1)}return{x:A,y:T,placement:N,strategy:s,middlewareData:R}};async function vN(a,t){var r;t===void 0&&(t={});const{x:u,y:s,platform:h,rects:g,elements:y,strategy:E}=a,{boundary:C="clippingAncestors",rootBoundary:A="viewport",elementContext:T="floating",altBoundary:N=!1,padding:R=0}=Xb(t,a),z=mN(R),L=y[N?T==="floating"?"reference":"floating":T],M=RS(await h.getClippingRect({element:(r=await(h.isElement==null?void 0:h.isElement(L)))==null||r?L:L.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(y.floating)),boundary:C,rootBoundary:A,strategy:E})),x=T==="floating"?{x:u,y:s,width:g.floating.width,height:g.floating.height}:g.reference,B=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y.floating)),H=await(h.isElement==null?void 0:h.isElement(B))?await(h.getScale==null?void 0:h.getScale(B))||{x:1,y:1}:{x:1,y:1},G=RS(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:y,rect:x,offsetParent:B,strategy:E}):x);return{top:(M.top-G.top+z.top)/H.y,bottom:(G.bottom-M.bottom+z.bottom)/H.y,left:(M.left-G.left+z.left)/H.x,right:(G.right-M.right+z.right)/H.x}}const V6=a=>({name:"arrow",options:a,async fn(t){const{x:r,y:u,placement:s,rects:h,platform:g,elements:y,middlewareData:E}=t,{element:C,padding:A=0}=Xb(a,t)||{};if(C==null)return{};const T=mN(A),N={x:r,y:u},R=pw(s),z=hw(R),V=await g.getDimensions(C),L=R==="y",M=L?"top":"left",x=L?"bottom":"right",B=L?"clientHeight":"clientWidth",H=h.reference[z]+h.reference[R]-N[R]-h.floating[z],G=N[R]-h.reference[R],W=await(g.getOffsetParent==null?void 0:g.getOffsetParent(C));let X=W?W[B]:0;(!X||!await(g.isElement==null?void 0:g.isElement(W)))&&(X=y.floating[B]||h.floating[z]);const ee=H/2-G/2,J=X/2-V[z]/2-1,De=C0(T[M],J),ke=C0(T[x],J),ye=De,be=X-V[z]-ke,Ee=X/2-V[z]/2+ee,ze=TC(ye,Ee,be),K=!E.arrow&&Ib(s)!=null&&Ee!==ze&&h.reference[z]/2-(Ee<ye?De:ke)-V[z]/2<0,ue=K?Ee<ye?Ee-ye:Ee-be:0;return{[R]:N[R]+ue,data:{[R]:ze,centerOffset:Ee-ze-ue,...K&&{alignmentOffset:ue}},reset:K}}}),q6=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var r,u;const{placement:s,middlewareData:h,rects:g,initialPlacement:y,platform:E,elements:C}=t,{mainAxis:A=!0,crossAxis:T=!0,fallbackPlacements:N,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:V=!0,...L}=Xb(a,t);if((r=h.arrow)!=null&&r.alignmentOffset)return{};const M=Qg(s),x=w0(y),B=Qg(y)===y,H=await(E.isRTL==null?void 0:E.isRTL(C.floating)),G=N||(B||!V?[NS(y)]:z6(y)),W=z!=="none";!N&&W&&G.push(...L6(y,V,z,H));const X=[y,...G],ee=await vN(t,L),J=[];let De=((u=h.flip)==null?void 0:u.overflows)||[];if(A&&J.push(ee[M]),T){const Ee=M6(s,g,H);J.push(ee[Ee[0]],ee[Ee[1]])}if(De=[...De,{placement:s,overflows:J}],!J.every(Ee=>Ee<=0)){var ke,ye;const Ee=(((ke=h.flip)==null?void 0:ke.index)||0)+1,ze=X[Ee];if(ze)return{data:{index:Ee,overflows:De},reset:{placement:ze}};let K=(ye=De.filter(ue=>ue.overflows[0]<=0).sort((ue,pe)=>ue.overflows[1]-pe.overflows[1])[0])==null?void 0:ye.placement;if(!K)switch(R){case"bestFit":{var be;const ue=(be=De.filter(pe=>{if(W){const Ve=w0(pe.placement);return Ve===x||Ve==="y"}return!0}).map(pe=>[pe.placement,pe.overflows.filter(Ve=>Ve>0).reduce((Ve,fe)=>Ve+fe,0)]).sort((pe,Ve)=>pe[1]-Ve[1])[0])==null?void 0:be[0];ue&&(K=ue);break}case"initialPlacement":K=y;break}if(s!==K)return{reset:{placement:K}}}return{}}}};async function $6(a,t){const{placement:r,platform:u,elements:s}=a,h=await(u.isRTL==null?void 0:u.isRTL(s.floating)),g=Qg(r),y=Ib(r),E=w0(r)==="y",C=["left","top"].includes(g)?-1:1,A=h&&E?-1:1,T=Xb(t,a);let{mainAxis:N,crossAxis:R,alignmentAxis:z}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return y&&typeof z=="number"&&(R=y==="end"?z*-1:z),E?{x:R*A,y:N*C}:{x:N*C,y:R*A}}const G6=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(t){var r,u;const{x:s,y:h,placement:g,middlewareData:y}=t,E=await $6(t,a);return g===((r=y.offset)==null?void 0:r.placement)&&(u=y.arrow)!=null&&u.alignmentOffset?{}:{x:s+E.x,y:h+E.y,data:{...E,placement:g}}}}},Y6=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(t){const{x:r,y:u,placement:s}=t,{mainAxis:h=!0,crossAxis:g=!1,limiter:y={fn:L=>{let{x:M,y:x}=L;return{x:M,y:x}}},...E}=Xb(a,t),C={x:r,y:u},A=await vN(t,E),T=w0(Qg(s)),N=pN(T);let R=C[N],z=C[T];if(h){const L=N==="y"?"top":"left",M=N==="y"?"bottom":"right",x=R+A[L],B=R-A[M];R=TC(x,R,B)}if(g){const L=T==="y"?"top":"left",M=T==="y"?"bottom":"right",x=z+A[L],B=z-A[M];z=TC(x,z,B)}const V=y.fn({...t,[N]:R,[T]:z});return{...V,data:{x:V.x-r,y:V.y-u,enabled:{[N]:h,[T]:g}}}}}};function PS(){return typeof window<"u"}function T0(a){return gN(a)?(a.nodeName||"").toLowerCase():"#document"}function Ho(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function gd(a){var t;return(t=(gN(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function gN(a){return PS()?a instanceof Node||a instanceof Ho(a).Node:!1}function Pc(a){return PS()?a instanceof Element||a instanceof Ho(a).Element:!1}function vd(a){return PS()?a instanceof HTMLElement||a instanceof Ho(a).HTMLElement:!1}function HT(a){return!PS()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ho(a).ShadowRoot}function Zb(a){const{overflow:t,overflowX:r,overflowY:u,display:s}=Qc(a);return/auto|scroll|overlay|hidden|clip/.test(t+u+r)&&!["inline","contents"].includes(s)}function P6(a){return["table","td","th"].includes(T0(a))}function QS(a){return[":popover-open",":modal"].some(t=>{try{return a.matches(t)}catch{return!1}})}function mw(a){const t=vw(),r=Pc(a)?Qc(a):a;return["transform","translate","scale","rotate","perspective"].some(u=>r[u]?r[u]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(u=>(r.willChange||"").includes(u))||["paint","layout","strict","content"].some(u=>(r.contain||"").includes(u))}function Q6(a){let t=Qm(a);for(;vd(t)&&!x0(t);){if(mw(t))return t;if(QS(t))return null;t=Qm(t)}return null}function vw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function x0(a){return["html","body","#document"].includes(T0(a))}function Qc(a){return Ho(a).getComputedStyle(a)}function XS(a){return Pc(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Qm(a){if(T0(a)==="html")return a;const t=a.assignedSlot||a.parentNode||HT(a)&&a.host||gd(a);return HT(t)?t.host:t}function yN(a){const t=Qm(a);return x0(t)?a.ownerDocument?a.ownerDocument.body:a.body:vd(t)&&Zb(t)?t:yN(t)}function $b(a,t,r){var u;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=yN(a),h=s===((u=a.ownerDocument)==null?void 0:u.body),g=Ho(s);if(h){const y=NC(g);return t.concat(g,g.visualViewport||[],Zb(s)?s:[],y&&r?$b(y):[])}return t.concat(s,$b(s,[],r))}function NC(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function bN(a){const t=Qc(a);let r=parseFloat(t.width)||0,u=parseFloat(t.height)||0;const s=vd(a),h=s?a.offsetWidth:r,g=s?a.offsetHeight:u,y=kS(r)!==h||kS(u)!==g;return y&&(r=h,u=g),{width:r,height:u,$:y}}function gw(a){return Pc(a)?a:a.contextElement}function g0(a){const t=gw(a);if(!vd(t))return pd(1);const r=t.getBoundingClientRect(),{width:u,height:s,$:h}=bN(t);let g=(h?kS(r.width):r.width)/u,y=(h?kS(r.height):r.height)/s;return(!g||!Number.isFinite(g))&&(g=1),(!y||!Number.isFinite(y))&&(y=1),{x:g,y}}const X6=pd(0);function SN(a){const t=Ho(a);return!vw()||!t.visualViewport?X6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I6(a,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ho(a)?!1:t}function Xg(a,t,r,u){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=a.getBoundingClientRect(),h=gw(a);let g=pd(1);t&&(u?Pc(u)&&(g=g0(u)):g=g0(a));const y=I6(h,r,u)?SN(h):pd(0);let E=(s.left+y.x)/g.x,C=(s.top+y.y)/g.y,A=s.width/g.x,T=s.height/g.y;if(h){const N=Ho(h),R=u&&Pc(u)?Ho(u):u;let z=N,V=NC(z);for(;V&&u&&R!==z;){const L=g0(V),M=V.getBoundingClientRect(),x=Qc(V),B=M.left+(V.clientLeft+parseFloat(x.paddingLeft))*L.x,H=M.top+(V.clientTop+parseFloat(x.paddingTop))*L.y;E*=L.x,C*=L.y,A*=L.x,T*=L.y,E+=B,C+=H,z=Ho(V),V=NC(z)}}return RS({width:A,height:T,x:E,y:C})}function yw(a,t){const r=XS(a).scrollLeft;return t?t.left+r:Xg(gd(a)).left+r}function DN(a,t,r){r===void 0&&(r=!1);const u=a.getBoundingClientRect(),s=u.left+t.scrollLeft-(r?0:yw(a,u)),h=u.top+t.scrollTop;return{x:s,y:h}}function Z6(a){let{elements:t,rect:r,offsetParent:u,strategy:s}=a;const h=s==="fixed",g=gd(u),y=t?QS(t.floating):!1;if(u===g||y&&h)return r;let E={scrollLeft:0,scrollTop:0},C=pd(1);const A=pd(0),T=vd(u);if((T||!T&&!h)&&((T0(u)!=="body"||Zb(g))&&(E=XS(u)),vd(u))){const R=Xg(u);C=g0(u),A.x=R.x+u.clientLeft,A.y=R.y+u.clientTop}const N=g&&!T&&!h?DN(g,E,!0):pd(0);return{width:r.width*C.x,height:r.height*C.y,x:r.x*C.x-E.scrollLeft*C.x+A.x+N.x,y:r.y*C.y-E.scrollTop*C.y+A.y+N.y}}function K6(a){return Array.from(a.getClientRects())}function W6(a){const t=gd(a),r=XS(a),u=a.ownerDocument.body,s=$g(t.scrollWidth,t.clientWidth,u.scrollWidth,u.clientWidth),h=$g(t.scrollHeight,t.clientHeight,u.scrollHeight,u.clientHeight);let g=-r.scrollLeft+yw(a);const y=-r.scrollTop;return Qc(u).direction==="rtl"&&(g+=$g(t.clientWidth,u.clientWidth)-s),{width:s,height:h,x:g,y}}function J6(a,t){const r=Ho(a),u=gd(a),s=r.visualViewport;let h=u.clientWidth,g=u.clientHeight,y=0,E=0;if(s){h=s.width,g=s.height;const C=vw();(!C||C&&t==="fixed")&&(y=s.offsetLeft,E=s.offsetTop)}return{width:h,height:g,x:y,y:E}}function e7(a,t){const r=Xg(a,!0,t==="fixed"),u=r.top+a.clientTop,s=r.left+a.clientLeft,h=vd(a)?g0(a):pd(1),g=a.clientWidth*h.x,y=a.clientHeight*h.y,E=s*h.x,C=u*h.y;return{width:g,height:y,x:E,y:C}}function VT(a,t,r){let u;if(t==="viewport")u=J6(a,r);else if(t==="document")u=W6(gd(a));else if(Pc(t))u=e7(t,r);else{const s=SN(a);u={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return RS(u)}function EN(a,t){const r=Qm(a);return r===t||!Pc(r)||x0(r)?!1:Qc(r).position==="fixed"||EN(r,t)}function t7(a,t){const r=t.get(a);if(r)return r;let u=$b(a,[],!1).filter(y=>Pc(y)&&T0(y)!=="body"),s=null;const h=Qc(a).position==="fixed";let g=h?Qm(a):a;for(;Pc(g)&&!x0(g);){const y=Qc(g),E=mw(g);!E&&y.position==="fixed"&&(s=null),(h?!E&&!s:!E&&y.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Zb(g)&&!E&&EN(a,g))?u=u.filter(A=>A!==g):s=y,g=Qm(g)}return t.set(a,u),u}function n7(a){let{element:t,boundary:r,rootBoundary:u,strategy:s}=a;const g=[...r==="clippingAncestors"?QS(t)?[]:t7(t,this._c):[].concat(r),u],y=g[0],E=g.reduce((C,A)=>{const T=VT(t,A,s);return C.top=$g(T.top,C.top),C.right=C0(T.right,C.right),C.bottom=C0(T.bottom,C.bottom),C.left=$g(T.left,C.left),C},VT(t,y,s));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}function a7(a){const{width:t,height:r}=bN(a);return{width:t,height:r}}function r7(a,t,r){const u=vd(t),s=gd(t),h=r==="fixed",g=Xg(a,!0,h,t);let y={scrollLeft:0,scrollTop:0};const E=pd(0);if(u||!u&&!h)if((T0(t)!=="body"||Zb(s))&&(y=XS(t)),u){const N=Xg(t,!0,h,t);E.x=N.x+t.clientLeft,E.y=N.y+t.clientTop}else s&&(E.x=yw(s));const C=s&&!u&&!h?DN(s,y):pd(0),A=g.left+y.scrollLeft-E.x-C.x,T=g.top+y.scrollTop-E.y-C.y;return{x:A,y:T,width:g.width,height:g.height}}function qE(a){return Qc(a).position==="static"}function qT(a,t){if(!vd(a)||Qc(a).position==="fixed")return null;if(t)return t(a);let r=a.offsetParent;return gd(a)===r&&(r=r.ownerDocument.body),r}function CN(a,t){const r=Ho(a);if(QS(a))return r;if(!vd(a)){let s=Qm(a);for(;s&&!x0(s);){if(Pc(s)&&!qE(s))return s;s=Qm(s)}return r}let u=qT(a,t);for(;u&&P6(u)&&qE(u);)u=qT(u,t);return u&&x0(u)&&qE(u)&&!mw(u)?r:u||Q6(a)||r}const i7=async function(a){const t=this.getOffsetParent||CN,r=this.getDimensions,u=await r(a.floating);return{reference:r7(a.reference,await t(a.floating),a.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function u7(a){return Qc(a).direction==="rtl"}const l7={convertOffsetParentRelativeRectToViewportRelativeRect:Z6,getDocumentElement:gd,getClippingRect:n7,getOffsetParent:CN,getElementRects:i7,getClientRects:K6,getDimensions:a7,getScale:g0,isElement:Pc,isRTL:u7};function wN(a,t){return a.x===t.x&&a.y===t.y&&a.width===t.width&&a.height===t.height}function o7(a,t){let r=null,u;const s=gd(a);function h(){var y;clearTimeout(u),(y=r)==null||y.disconnect(),r=null}function g(y,E){y===void 0&&(y=!1),E===void 0&&(E=1),h();const C=a.getBoundingClientRect(),{left:A,top:T,width:N,height:R}=C;if(y||t(),!N||!R)return;const z=tS(T),V=tS(s.clientWidth-(A+N)),L=tS(s.clientHeight-(T+R)),M=tS(A),B={rootMargin:-z+"px "+-V+"px "+-L+"px "+-M+"px",threshold:$g(0,C0(1,E))||1};let H=!0;function G(W){const X=W[0].intersectionRatio;if(X!==E){if(!H)return g();X?g(!1,X):u=setTimeout(()=>{g(!1,1e-7)},1e3)}X===1&&!wN(C,a.getBoundingClientRect())&&g(),H=!1}try{r=new IntersectionObserver(G,{...B,root:s.ownerDocument})}catch{r=new IntersectionObserver(G,B)}r.observe(a)}return g(!0),h}function s7(a,t,r,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:h=!0,elementResize:g=typeof ResizeObserver=="function",layoutShift:y=typeof IntersectionObserver=="function",animationFrame:E=!1}=u,C=gw(a),A=s||h?[...C?$b(C):[],...$b(t)]:[];A.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),h&&M.addEventListener("resize",r)});const T=C&&y?o7(C,r):null;let N=-1,R=null;g&&(R=new ResizeObserver(M=>{let[x]=M;x&&x.target===C&&R&&(R.unobserve(t),cancelAnimationFrame(N),N=requestAnimationFrame(()=>{var B;(B=R)==null||B.observe(t)})),r()}),C&&!E&&R.observe(C),R.observe(t));let z,V=E?Xg(a):null;E&&L();function L(){const M=Xg(a);V&&!wN(V,M)&&r(),V=M,z=requestAnimationFrame(L)}return r(),()=>{var M;A.forEach(x=>{s&&x.removeEventListener("scroll",r),h&&x.removeEventListener("resize",r)}),T?.(),(M=R)==null||M.disconnect(),R=null,E&&cancelAnimationFrame(z)}}const c7=G6,f7=Y6,d7=q6,h7=V6,$T=(a,t,r)=>{const u=new Map,s={platform:l7,...r},h={...s.platform,_c:u};return H6(a,t,{...s,platform:h})};var $E={exports:{}};/*!
|
|
110
|
-
Copyright (c) 2018 Jed Watson.
|
|
111
|
-
Licensed under the MIT License (MIT), see
|
|
112
|
-
http://jedwatson.github.io/classnames
|
|
113
|
-
*/var GT;function p7(){return GT||(GT=1,function(a){(function(){var t={}.hasOwnProperty;function r(){for(var h="",g=0;g<arguments.length;g++){var y=arguments[g];y&&(h=s(h,u(y)))}return h}function u(h){if(typeof h=="string"||typeof h=="number")return h;if(typeof h!="object")return"";if(Array.isArray(h))return r.apply(null,h);if(h.toString!==Object.prototype.toString&&!h.toString.toString().includes("[native code]"))return h.toString();var g="";for(var y in h)t.call(h,y)&&h[y]&&(g=s(g,y));return g}function s(h,g){return g?h?h+" "+g:h+g:h}a.exports?(r.default=r,a.exports=r):window.classNames=r})()}($E)),$E.exports}var m7=p7();const RC=Xm(m7);/*
|
|
114
|
-
* React Tooltip
|
|
115
|
-
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
116
|
-
* @copyright ReactTooltip Team
|
|
117
|
-
* @license MIT
|
|
118
|
-
*/const v7="react-tooltip-core-styles",g7="react-tooltip-base-styles",YT={core:!1,base:!1};function PT({css:a,id:t=g7,type:r="base",ref:u}){var s,h;if(!a||typeof document>"u"||YT[r]||r==="core"&&typeof process<"u"&&(!((s=process==null?void 0:process.env)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((h=process==null?void 0:process.env)===null||h===void 0)&&h.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(t=v7),u||(u={});const{insertAt:g}=u;if(document.getElementById(t))return;const y=document.head||document.getElementsByTagName("head")[0],E=document.createElement("style");E.id=t,E.type="text/css",g==="top"&&y.firstChild?y.insertBefore(E,y.firstChild):y.appendChild(E),E.styleSheet?E.styleSheet.cssText=a:E.appendChild(document.createTextNode(a)),YT[r]=!0}const QT=async({elementReference:a=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:u="top",offset:s=10,strategy:h="absolute",middlewares:g=[c7(Number(s)),d7({fallbackAxisSideDirection:"start"}),f7({padding:5})],border:y,arrowSize:E=8})=>{if(!a)return{tooltipStyles:{},tooltipArrowStyles:{},place:u};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:u};const C=g;return r?(C.push(h7({element:r,padding:5})),$T(a,t,{placement:u,strategy:h,middleware:C}).then(({x:A,y:T,placement:N,middlewareData:R})=>{var z,V;const L={left:`${A}px`,top:`${T}px`,border:y},{x:M,y:x}=(z=R.arrow)!==null&&z!==void 0?z:{x:0,y:0},B=(V={top:"bottom",right:"left",bottom:"top",left:"right"}[N.split("-")[0]])!==null&&V!==void 0?V:"bottom",H=y&&{borderBottom:y,borderRight:y};let G=0;if(y){const W=`${y}`.match(/(\d+)px/);G=W?.[1]?Number(W[1]):1}return{tooltipStyles:L,tooltipArrowStyles:{left:M!=null?`${M}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...H,[B]:`-${E/2+G}px`},place:N}})):$T(a,t,{placement:"bottom",strategy:h,middleware:C}).then(({x:A,y:T,placement:N})=>({tooltipStyles:{left:`${A}px`,top:`${T}px`},tooltipArrowStyles:{},place:N}))},XT=(a,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(a,t),IT=(a,t,r)=>{let u=null;const s=function(...h){const g=()=>{u=null};!u&&(a.apply(this,h),u=setTimeout(g,t))};return s.cancel=()=>{u&&(clearTimeout(u),u=null)},s},ZT=a=>a!==null&&!Array.isArray(a)&&typeof a=="object",BC=(a,t)=>{if(a===t)return!0;if(Array.isArray(a)&&Array.isArray(t))return a.length===t.length&&a.every((s,h)=>BC(s,t[h]));if(Array.isArray(a)!==Array.isArray(t))return!1;if(!ZT(a)||!ZT(t))return a===t;const r=Object.keys(a),u=Object.keys(t);return r.length===u.length&&r.every(s=>BC(a[s],t[s]))},y7=a=>{if(!(a instanceof HTMLElement||a instanceof SVGElement))return!1;const t=getComputedStyle(a);return["overflow","overflow-x","overflow-y"].some(r=>{const u=t.getPropertyValue(r);return u==="auto"||u==="scroll"})},KT=a=>{if(!a)return null;let t=a.parentElement;for(;t;){if(y7(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},b7=typeof window<"u"?Z.useLayoutEffect:Z.useEffect,Ls=a=>{a.current&&(clearTimeout(a.current),a.current=null)},S7="DEFAULT_TOOLTIP_ID",D7={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},E7=Z.createContext({getTooltipData:()=>D7});function xN(a=S7){return Z.useContext(E7).getTooltipData(a)}var l0={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},GE={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const C7=({forwardRef:a,id:t,className:r,classNameArrow:u,variant:s="dark",anchorId:h,anchorSelect:g,place:y="top",offset:E=10,events:C=["hover"],openOnClick:A=!1,positionStrategy:T="absolute",middlewares:N,wrapper:R,delayShow:z=0,delayHide:V=0,float:L=!1,hidden:M=!1,noArrow:x=!1,clickable:B=!1,closeOnEsc:H=!1,closeOnScroll:G=!1,closeOnResize:W=!1,openEvents:X,closeEvents:ee,globalCloseEvents:J,imperativeModeOnly:De,style:ke,position:ye,afterShow:be,afterHide:Ee,disableTooltip:ze,content:K,contentWrapperRef:ue,isOpen:pe,defaultIsOpen:Ve=!1,setIsOpen:fe,activeAnchor:Re,setActiveAnchor:Le,border:he,opacity:nt,arrowColor:bt,arrowSize:rt=8,role:_n="tooltip"})=>{var Ft;const oe=Z.useRef(null),Qe=Z.useRef(null),Ne=Z.useRef(null),Ie=Z.useRef(null),St=Z.useRef(null),[tt,jn]=Z.useState({tooltipStyles:{},tooltipArrowStyles:{},place:y}),[Ut,Ot]=Z.useState(!1),[Fn,Zt]=Z.useState(!1),[Rt,Yt]=Z.useState(null),Ln=Z.useRef(!1),va=Z.useRef(null),{anchorRefs:Ur,setActiveAnchor:Ba}=xN(t),xa=Z.useRef(!1),[Xt,Dn]=Z.useState([]),Kt=Z.useRef(!1),mr=A||C.includes("click"),ai=mr||X?.click||X?.dblclick||X?.mousedown,ge=X?{...X}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!X&&mr&&Object.assign(ge,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const xe=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&mr&&Object.assign(xe,{mouseleave:!1,blur:!1,mouseout:!1});const Fe=J?{...J}:{escape:H||!1,scroll:G||!1,resize:W||!1,clickOutsideAnchor:ai||!1};De&&(Object.assign(ge,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(xe,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Fe,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),b7(()=>(Kt.current=!0,()=>{Kt.current=!1}),[]);const Ke=at=>{Kt.current&&(at&&Zt(!0),setTimeout(()=>{Kt.current&&(fe?.(at),pe===void 0&&Ot(at))},10))};Z.useEffect(()=>{if(pe===void 0)return()=>null;pe&&Zt(!0);const at=setTimeout(()=>{Ot(pe)},10);return()=>{clearTimeout(at)}},[pe]),Z.useEffect(()=>{if(Ut!==Ln.current)if(Ls(St),Ln.current=Ut,Ut)be?.();else{const at=(Ct=>{const jt=Ct.match(/^([\d.]+)(ms|s)$/);if(!jt)return 0;const[,Aa,ur]=jt;return Number(Aa)*(ur==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));St.current=setTimeout(()=>{Zt(!1),Yt(null),Ee?.()},at+25)}},[Ut]);const vt=at=>{jn(Ct=>BC(Ct,at)?Ct:at)},nn=(at=z)=>{Ls(Ne),Fn?Ke(!0):Ne.current=setTimeout(()=>{Ke(!0)},at)},Wt=(at=V)=>{Ls(Ie),Ie.current=setTimeout(()=>{xa.current||Ke(!1)},at)},zt=at=>{var Ct;if(!at)return;const jt=(Ct=at.currentTarget)!==null&&Ct!==void 0?Ct:at.target;if(!jt?.isConnected)return Le(null),void Ba({current:null});z?nn():Ke(!0),Le(jt),Ba({current:jt}),Ls(Ie)},it=()=>{B?Wt(V||100):V?Wt():Ke(!1),Ls(Ne)},ut=({x:at,y:Ct})=>{var jt;const Aa={getBoundingClientRect:()=>({x:at,y:Ct,width:0,height:0,top:Ct,left:at,right:at,bottom:Ct})};QT({place:(jt=Rt?.place)!==null&&jt!==void 0?jt:y,offset:E,elementReference:Aa,tooltipReference:oe.current,tooltipArrowReference:Qe.current,strategy:T,middlewares:N,border:he,arrowSize:rt}).then(ur=>{vt(ur)})},st=at=>{if(!at)return;const Ct=at,jt={x:Ct.clientX,y:Ct.clientY};ut(jt),va.current=jt},gt=at=>{var Ct;if(!Ut)return;const jt=at.target;jt.isConnected&&(!((Ct=oe.current)===null||Ct===void 0)&&Ct.contains(jt)||[document.querySelector(`[id='${h}']`),...Xt].some(Aa=>Aa?.contains(jt))||(Ke(!1),Ls(Ne)))},Pt=IT(zt,50),Vt=IT(it,50),It=at=>{Vt.cancel(),Pt(at)},Dt=()=>{Pt.cancel(),Vt()},pn=Z.useCallback(()=>{var at,Ct;const jt=(at=Rt?.position)!==null&&at!==void 0?at:ye;jt?ut(jt):L?va.current&&ut(va.current):Re?.isConnected&&QT({place:(Ct=Rt?.place)!==null&&Ct!==void 0?Ct:y,offset:E,elementReference:Re,tooltipReference:oe.current,tooltipArrowReference:Qe.current,strategy:T,middlewares:N,border:he,arrowSize:rt}).then(Aa=>{Kt.current&&vt(Aa)})},[Ut,Re,K,ke,y,Rt?.place,E,T,ye,Rt?.position,L,rt]);Z.useEffect(()=>{var at,Ct;const jt=new Set(Ur);Xt.forEach(Un=>{ze?.(Un)||jt.add({current:Un})});const Aa=document.querySelector(`[id='${h}']`);Aa&&!ze?.(Aa)&&jt.add({current:Aa});const ur=()=>{Ke(!1)},ri=KT(Re),Zi=KT(oe.current);Fe.scroll&&(window.addEventListener("scroll",ur),ri?.addEventListener("scroll",ur),Zi?.addEventListener("scroll",ur));let ot=null;Fe.resize?window.addEventListener("resize",ur):Re&&oe.current&&(ot=s7(Re,oe.current,pn,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const vr=Un=>{Un.key==="Escape"&&Ke(!1)};Fe.escape&&window.addEventListener("keydown",vr),Fe.clickOutsideAnchor&&window.addEventListener("click",gt);const an=[],xi=Un=>!!(Un?.target&&Re?.contains(Un.target)),$o=Un=>{Ut&&xi(Un)||zt(Un)},Yu=Un=>{Ut&&xi(Un)&&it()},za=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Go=["click","dblclick","mousedown","mouseup"];Object.entries(ge).forEach(([Un,Ai])=>{Ai&&(za.includes(Un)?an.push({event:Un,listener:It}):Go.includes(Un)&&an.push({event:Un,listener:$o}))}),Object.entries(xe).forEach(([Un,Ai])=>{Ai&&(za.includes(Un)?an.push({event:Un,listener:Dt}):Go.includes(Un)&&an.push({event:Un,listener:Yu}))}),L&&an.push({event:"pointermove",listener:st});const Hr=()=>{xa.current=!0},Pu=()=>{xa.current=!1,it()},Qu=B&&(xe.mouseout||xe.mouseleave);return Qu&&((at=oe.current)===null||at===void 0||at.addEventListener("mouseover",Hr),(Ct=oe.current)===null||Ct===void 0||Ct.addEventListener("mouseout",Pu)),an.forEach(({event:Un,listener:Ai})=>{jt.forEach(bl=>{var Yo;(Yo=bl.current)===null||Yo===void 0||Yo.addEventListener(Un,Ai)})}),()=>{var Un,Ai;Fe.scroll&&(window.removeEventListener("scroll",ur),ri?.removeEventListener("scroll",ur),Zi?.removeEventListener("scroll",ur)),Fe.resize?window.removeEventListener("resize",ur):ot?.(),Fe.clickOutsideAnchor&&window.removeEventListener("click",gt),Fe.escape&&window.removeEventListener("keydown",vr),Qu&&((Un=oe.current)===null||Un===void 0||Un.removeEventListener("mouseover",Hr),(Ai=oe.current)===null||Ai===void 0||Ai.removeEventListener("mouseout",Pu)),an.forEach(({event:bl,listener:Yo})=>{jt.forEach(Xu=>{var ro;(ro=Xu.current)===null||ro===void 0||ro.removeEventListener(bl,Yo)})})}},[Re,pn,Fn,Ur,Xt,X,ee,J,mr,z,V]),Z.useEffect(()=>{var at,Ct;let jt=(Ct=(at=Rt?.anchorSelect)!==null&&at!==void 0?at:g)!==null&&Ct!==void 0?Ct:"";!jt&&t&&(jt=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Aa=new MutationObserver(ur=>{const ri=[],Zi=[];ur.forEach(ot=>{if(ot.type==="attributes"&&ot.attributeName==="data-tooltip-id"&&(ot.target.getAttribute("data-tooltip-id")===t?ri.push(ot.target):ot.oldValue===t&&Zi.push(ot.target)),ot.type==="childList"){if(Re){const vr=[...ot.removedNodes].filter(an=>an.nodeType===1);if(jt)try{Zi.push(...vr.filter(an=>an.matches(jt))),Zi.push(...vr.flatMap(an=>[...an.querySelectorAll(jt)]))}catch{}vr.some(an=>{var xi;return!!(!((xi=an?.contains)===null||xi===void 0)&&xi.call(an,Re))&&(Zt(!1),Ke(!1),Le(null),Ls(Ne),Ls(Ie),!0)})}if(jt)try{const vr=[...ot.addedNodes].filter(an=>an.nodeType===1);ri.push(...vr.filter(an=>an.matches(jt))),ri.push(...vr.flatMap(an=>[...an.querySelectorAll(jt)]))}catch{}}}),(ri.length||Zi.length)&&Dn(ot=>[...ot.filter(vr=>!Zi.includes(vr)),...ri])});return Aa.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Aa.disconnect()}},[t,g,Rt?.anchorSelect,Re]),Z.useEffect(()=>{pn()},[pn]),Z.useEffect(()=>{if(!ue?.current)return()=>null;const at=new ResizeObserver(()=>{setTimeout(()=>pn())});return at.observe(ue.current),()=>{at.disconnect()}},[K,ue?.current]),Z.useEffect(()=>{var at;const Ct=document.querySelector(`[id='${h}']`),jt=[...Xt,Ct];Re&&jt.includes(Re)||Le((at=Xt[0])!==null&&at!==void 0?at:Ct)},[h,Xt,Re]),Z.useEffect(()=>(Ve&&Ke(!0),()=>{Ls(Ne),Ls(Ie)}),[]),Z.useEffect(()=>{var at;let Ct=(at=Rt?.anchorSelect)!==null&&at!==void 0?at:g;if(!Ct&&t&&(Ct=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Ct)try{const jt=Array.from(document.querySelectorAll(Ct));Dn(jt)}catch{Dn([])}},[t,g,Rt?.anchorSelect]),Z.useEffect(()=>{Ne.current&&(Ls(Ne),nn(z))},[z]);const xr=(Ft=Rt?.content)!==null&&Ft!==void 0?Ft:K,ia=Ut&&Object.keys(tt.tooltipStyles).length>0;return Z.useImperativeHandle(a,()=>({open:at=>{if(at?.anchorSelect)try{document.querySelector(at.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${at.anchorSelect}" is not a valid CSS selector`)}Yt(at??null),at?.delay?nn(at.delay):Ke(!0)},close:at=>{at?.delay?Wt(at.delay):Ke(!1)},activeAnchor:Re,place:tt.place,isOpen:!!(Fn&&!M&&xr&&ia)})),Fn&&!M&&xr?Z.createElement(R,{id:t,role:_n,className:RC("react-tooltip",l0.tooltip,GE.tooltip,GE[s],r,`react-tooltip__place-${tt.place}`,l0[ia?"show":"closing"],ia?"react-tooltip__show":"react-tooltip__closing",T==="fixed"&&l0.fixed,B&&l0.clickable),onTransitionEnd:at=>{Ls(St),Ut||at.propertyName!=="opacity"||(Zt(!1),Yt(null),Ee?.())},style:{...ke,...tt.tooltipStyles,opacity:nt!==void 0&&ia?nt:void 0},ref:oe},xr,Z.createElement(R,{className:RC("react-tooltip-arrow",l0.arrow,GE.arrow,u,x&&l0.noArrow),style:{...tt.tooltipArrowStyles,background:bt?`linear-gradient(to right bottom, transparent 50%, ${bt} 50%)`:void 0,"--rt-arrow-size":`${rt}px`},ref:Qe})):null},w7=({content:a})=>Z.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),x7=Z.forwardRef(({id:a,anchorId:t,anchorSelect:r,content:u,html:s,render:h,className:g,classNameArrow:y,variant:E="dark",place:C="top",offset:A=10,wrapper:T="div",children:N=null,events:R=["hover"],openOnClick:z=!1,positionStrategy:V="absolute",middlewares:L,delayShow:M=0,delayHide:x=0,float:B=!1,hidden:H=!1,noArrow:G=!1,clickable:W=!1,closeOnEsc:X=!1,closeOnScroll:ee=!1,closeOnResize:J=!1,openEvents:De,closeEvents:ke,globalCloseEvents:ye,imperativeModeOnly:be=!1,style:Ee,position:ze,isOpen:K,defaultIsOpen:ue=!1,disableStyleInjection:pe=!1,border:Ve,opacity:fe,arrowColor:Re,arrowSize:Le,setIsOpen:he,afterShow:nt,afterHide:bt,disableTooltip:rt,role:_n="tooltip"},Ft)=>{const[oe,Qe]=Z.useState(u),[Ne,Ie]=Z.useState(s),[St,tt]=Z.useState(C),[jn,Ut]=Z.useState(E),[Ot,Fn]=Z.useState(A),[Zt,Rt]=Z.useState(M),[Yt,Ln]=Z.useState(x),[va,Ur]=Z.useState(B),[Ba,xa]=Z.useState(H),[Xt,Dn]=Z.useState(T),[Kt,mr]=Z.useState(R),[ai,ge]=Z.useState(V),[xe,Fe]=Z.useState(null),[Ke,vt]=Z.useState(null),nn=Z.useRef(pe),{anchorRefs:Wt,activeAnchor:zt}=xN(a),it=Vt=>Vt?.getAttributeNames().reduce((It,Dt)=>{var pn;return Dt.startsWith("data-tooltip-")&&(It[Dt.replace(/^data-tooltip-/,"")]=(pn=Vt?.getAttribute(Dt))!==null&&pn!==void 0?pn:null),It},{}),ut=Vt=>{const It={place:Dt=>{var pn;tt((pn=Dt)!==null&&pn!==void 0?pn:C)},content:Dt=>{Qe(Dt??u)},html:Dt=>{Ie(Dt??s)},variant:Dt=>{var pn;Ut((pn=Dt)!==null&&pn!==void 0?pn:E)},offset:Dt=>{Fn(Dt===null?A:Number(Dt))},wrapper:Dt=>{var pn;Dn((pn=Dt)!==null&&pn!==void 0?pn:T)},events:Dt=>{const pn=Dt?.split(" ");mr(pn??R)},"position-strategy":Dt=>{var pn;ge((pn=Dt)!==null&&pn!==void 0?pn:V)},"delay-show":Dt=>{Rt(Dt===null?M:Number(Dt))},"delay-hide":Dt=>{Ln(Dt===null?x:Number(Dt))},float:Dt=>{Ur(Dt===null?B:Dt==="true")},hidden:Dt=>{xa(Dt===null?H:Dt==="true")},"class-name":Dt=>{Fe(Dt)}};Object.values(It).forEach(Dt=>Dt(null)),Object.entries(Vt).forEach(([Dt,pn])=>{var xr;(xr=It[Dt])===null||xr===void 0||xr.call(It,pn)})};Z.useEffect(()=>{Qe(u)},[u]),Z.useEffect(()=>{Ie(s)},[s]),Z.useEffect(()=>{tt(C)},[C]),Z.useEffect(()=>{Ut(E)},[E]),Z.useEffect(()=>{Fn(A)},[A]),Z.useEffect(()=>{Rt(M)},[M]),Z.useEffect(()=>{Ln(x)},[x]),Z.useEffect(()=>{Ur(B)},[B]),Z.useEffect(()=>{xa(H)},[H]),Z.useEffect(()=>{ge(V)},[V]),Z.useEffect(()=>{nn.current!==pe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[pe]),Z.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:pe==="core",disableBase:pe}}))},[]),Z.useEffect(()=>{var Vt;const It=new Set(Wt);let Dt=r;if(!Dt&&a&&(Dt=`[data-tooltip-id='${a.replace(/'/g,"\\'")}']`),Dt)try{document.querySelectorAll(Dt).forEach(Ct=>{It.add({current:Ct})})}catch{console.warn(`[react-tooltip] "${Dt}" is not a valid CSS selector`)}const pn=document.querySelector(`[id='${t}']`);if(pn&&It.add({current:pn}),!It.size)return()=>null;const xr=(Vt=Ke??pn)!==null&&Vt!==void 0?Vt:zt.current,ia=new MutationObserver(Ct=>{Ct.forEach(jt=>{var Aa;if(!xr||jt.type!=="attributes"||!(!((Aa=jt.attributeName)===null||Aa===void 0)&&Aa.startsWith("data-tooltip-")))return;const ur=it(xr);ut(ur)})}),at={attributes:!0,childList:!1,subtree:!1};if(xr){const Ct=it(xr);ut(Ct),ia.observe(xr,at)}return()=>{ia.disconnect()}},[Wt,zt,Ke,t,r]),Z.useEffect(()=>{Ee?.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Ve&&!XT("border",`${Ve}`)&&console.warn(`[react-tooltip] "${Ve}" is not a valid \`border\`.`),Ee?.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),fe&&!XT("opacity",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`opacity\`.`)},[]);let st=N;const gt=Z.useRef(null);if(h){const Vt=h({content:Ke?.getAttribute("data-tooltip-content")||oe||null,activeAnchor:Ke});st=Vt?Z.createElement("div",{ref:gt,className:"react-tooltip-content-wrapper"},Vt):null}else oe&&(st=oe);Ne&&(st=Z.createElement(w7,{content:Ne}));const Pt={forwardRef:Ft,id:a,anchorId:t,anchorSelect:r,className:RC(g,xe),classNameArrow:y,content:st,contentWrapperRef:gt,place:St,variant:jn,offset:Ot,wrapper:Xt,events:Kt,openOnClick:z,positionStrategy:ai,middlewares:L,delayShow:Zt,delayHide:Yt,float:va,hidden:Ba,noArrow:G,clickable:W,closeOnEsc:X,closeOnScroll:ee,closeOnResize:J,openEvents:De,closeEvents:ke,globalCloseEvents:ye,imperativeModeOnly:be,style:Ee,position:ze,isOpen:K,defaultIsOpen:ue,border:Ve,opacity:fe,arrowColor:Re,arrowSize:Le,setIsOpen:he,afterShow:nt,afterHide:bt,disableTooltip:rt,activeAnchor:Ke,setActiveAnchor:Vt=>vt(Vt),role:_n};return Z.createElement(C7,{...Pt})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",a=>{a.detail.disableCore||PT({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),a.detail.disableBase||PT({css:`
|
|
119
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function A7(){const a=Ii(),{selection:t}=Ii(),{t:r}=Ic(),[u,{loading:s}]=Tz(Fz);async function h(){if(!t)return;const[g,y]=_e.edges(t),E=j.string(a,j.range(a,g,y)),{data:C}=await u({variables:{createContentValueInput:{isReusable:!0,smartText:VE("root",[VE("paragraph",[VE("text",E)])])}}});if(C?.createContentValue[0]){const A={type:"contentValue",prn:C.createContentValue[0].prn,root:C.createContentValue[0].interpolatedSmartText,children:[{text:""}]};He.insertNodes(a,A)}}return I.jsxs(I.Fragment,{children:[I.jsx("button",{"data-tooltip-id":"extract-content-tooltip","data-tooltip-content":r("smart_text.toolbar.content.content_extract"),onClick:()=>{h()},className:"p-2 rounded-md hover:bg-white/10 cursor-pointer flex items-center",children:I.jsx(Pa,{icon:["fal","arrows-rotate"],className:"text-white transition-all duration-200",spin:s})}),I.jsx(x7,{id:"extract-content-tooltip"})]})}function Gb({text:a,icon:t}){return I.jsxs("div",{className:"px-2 py-2 whitespace-nowrap flex items-center gap-2",children:[t?I.jsx(Pa,{icon:t,size:"xs"}):null,I.jsx("p",{className:"font-semibold uppercase text-xs",children:a})]})}function bw({children:a}){return I.jsx("div",{className:"bg-white px-4 py-2 shadow-2xl outline outline-1 outline-gray-100 rounded-md space-y-2",children:a})}function y0({icon:a,text:t,onClick:r,children:u}){const[s,h]=Z.useState(!1),g=Z.useRef(null);VS(g,()=>{h(!1)});function y(E){u&&h(!s),r&&r(E),E.preventDefault()}return I.jsxs("div",{ref:g,children:[I.jsxs("div",{onClick:E=>y(E),className:`px-3 py-2 flex items-center justify-between gap-2 cursor-pointer hover:bg-gray-50 transition-colors rounded-md ${s?"bg-primary-light":""}`,children:[I.jsxs("div",{className:"flex items-center gap-2",children:[a?I.jsx(Pa,{icon:a,className:"text-[#705ED9]"}):null,I.jsx("p",{className:"w-40 text-base",children:t})]}),u?I.jsx(Pa,{icon:["fal","chevron-right"],className:"text-gray-400",size:"xs"}):null]}),s?I.jsx("div",{className:"absolute top-0 left-full ml-1",children:u}):null]})}function O7({onChange:a,value:t,placeholder:r}){return I.jsx("input",{onChange:u=>{a(u.target.value)},placeholder:r,value:t,name:"search",className:"bg-gray-50 w-full outline-none rounded-md px-3 py-2",type:"text"})}function T7({onContentTypeClick:a}){const[r,u]=Z.useState(""),{t:s}=Ic(),{loading:h,data:g,fetchMore:y}=$S(Bz,{variables:{paginate:{first:6},orderBy:{key:"createdAt",direction:GS.Desc},where:{name:[{_ilike:r}]}},notifyOnNetworkStatusChange:!0});async function E(){await y({variables:{paginate:{first:6,after:(g?.contentTypes.pageInfo).endCursor}},updateQuery:(T,{fetchMoreResult:N})=>N?{contentTypes:{...N.contentTypes,edges:[...T.contentTypes.edges,...N.contentTypes.edges]}}:T})}function C(){return I.jsx("div",{children:Array.from({length:g?.contentTypes.totalCount??10}).map((T,N)=>I.jsxs("div",{className:"px-3 py-2 flex items-center justify-between gap-2",children:[I.jsx("span",{className:"w-4 h-4 bg-slate-100 rounded-md animate-pulse"}),I.jsx("p",{className:"w-40 h-5 bg-slate-100 rounded-md animate-pulse"})]},N))})}function A(){return I.jsxs(I.Fragment,{children:[g?.contentTypes.edges.map(T=>I.jsx(y0,{onClick:N=>{N.stopPropagation(),a(T.node)},icon:["fal","cube"],text:T.node.name},T.node.prn)),!h&&(g?.contentTypes.pageInfo).hasNextPage?I.jsx("div",{className:"flex items-center justify-center py-2 cursor-pointer group border-t border-slate-100",onClick:()=>{E()},children:I.jsx("p",{className:"group-hover:text-[#705ED9]",children:dw(s("general.word.load_more"))})}):null]})}return I.jsxs(I.Fragment,{children:[I.jsx(Gb,{text:`${s("smart_text.toolbar.content.content_types")} (${g?.contentTypes.totalCount??0})`}),I.jsx(O7,{onChange:u,placeholder:s("smart_text.toolbar.content.search_content_types"),value:r}),I.jsxs("div",{className:"overflow-y-auto max-h-[280px]",children:[I.jsx(A,{}),h?I.jsx(C,{}):null,g?.contentTypes.totalCount===0?I.jsx("div",{children:I.jsx("p",{className:"text-center text-gray-500 w-48",children:s("smart_text.toolbar.content.no_content_types_found")})}):null]})]})}function k7({name:a,children:t}){return I.jsxs("div",{className:"space-y-1",children:[I.jsx("p",{className:"px-2 text-gray-500",children:a}),t]})}function AN({contentValue:a,onClick:t}){function r(u){a.interpolatedSmartText&&(t&&t(u),u.preventDefault())}return I.jsx("div",{className:"relative",children:I.jsx("div",{onClick:u=>r(u),className:`px-3 py-2 flex items-center justify-between gap-2 rounded-md truncate ${a.interpolatedSmartText?"cursor-pointer hover:bg-gray-50":"cursor-not-allowed"}`,children:I.jsxs("div",{className:"flex items-center gap-2",children:[a.primitiveValue?I.jsx("p",{children:a.primitiveValue}):null,a.relatedContentItem?I.jsx("p",{children:a.relatedContentItem.displayName}):null,a.interpolatedSmartText?I.jsx("p",{children:YS(a.interpolatedSmartText)}):null,a.relatedAsset?I.jsxs("div",{className:"flex gap-2 items-center",children:[a.relatedAsset.url?I.jsx("img",{src:a.relatedAsset.url,className:"w-8 h-8 rounded-md object-cover",alt:a.relatedAsset.fileName}):null,I.jsx("p",{children:a.relatedAsset.fileName})]}):null]})})})}function N7({uuid:a,prn:t}){const r=Ii(),{t:u}=Ic(),s=6,h=ES(L=>JC(L,a)),g=ES(L=>W4(L)),{data:y,loading:E,fetchMore:C}=$S(Rz,{variables:{paginate:{first:s},where:{contentTypeId:[{_eq:qb.fromString(t).resourceId}]}},notifyOnNetworkStatusChange:!0});function A(){if(!r.selection)return;const[,L]=j.node(r,r.selection);if(L.length===0)return;const[,M]=j.parent(r,r.selection),[x]=j.node(r,M);if(mt.isElement(x)&&x.type==="contentValue")return[x,M]}function T(L){const M=A();if(M){const[,x]=M;if(!L.interpolatedSmartText)return;He.setNodes(r,{prn:L.prn,root:L.interpolatedSmartText},{at:x});return}N(L)}function N(L){if(!L.interpolatedSmartText)return;const M={type:"contentValue",prn:L.prn,root:L.interpolatedSmartText,children:[{text:""}]};if(h){He.select(r,h),He.insertNodes(r,M);return}He.insertNodes(r,M)}async function R(){await C({variables:{paginate:{first:s,after:(y?.contentItems.pageInfo).endCursor}},updateQuery:(L,{fetchMoreResult:M})=>M?{contentItems:{...M.contentItems,edges:[...L.contentItems.edges,...M.contentItems.edges]}}:L})}function z(){return I.jsx("div",{children:Array.from({length:y?.contentItems.totalCount??10}).map((L,M)=>I.jsxs("div",{className:"px-3 py-2 flex items-center justify-between gap-2",children:[I.jsx("span",{className:"w-4 h-4 bg-slate-100 rounded-md animate-pulse"}),I.jsx("p",{className:"w-40 h-5 bg-slate-100 rounded-md animate-pulse"})]},M))})}function V(){return I.jsxs(I.Fragment,{children:[y?.contentItems.edges.map(L=>I.jsx(y0,{text:L.node.displayName,children:I.jsxs("div",{className:"bg-white py-2 shadow-2xl outline outline-gray-100 rounded-md",children:[I.jsx("div",{className:"px-3",children:I.jsxs("div",{className:"py-3 border-b flex items-center gap-2 whitespace-nowrap",children:[I.jsx(Pa,{icon:["fal","cube"]}),I.jsx("p",{className:"font-semibold uppercase text-xs w-32 truncate",children:L.node.displayName}),g?I.jsx("a",{href:`/${g.slug}/content/library/${qb.fromString(L.node.prn).resourceId}`,target:"_blank",className:"underline text-xs cursor-pointer",children:"Open in library"}):null]})}),I.jsx("div",{className:"px-2 space-y-2 mt-2",children:Object.keys(E0.groupBy(L.node.contentValues,"contentField.name")).map(M=>I.jsx(k7,{name:M,children:E0.groupBy(L.node.contentValues,"contentField.name")[M].map(x=>I.jsx(AN,{contentValue:x,onClick:()=>T(x)},x.prn))},M))})]})},L.node.prn)),!E&&(y?.contentItems.pageInfo).hasNextPage?I.jsx("div",{className:"flex items-center justify-center py-2 cursor-pointer group border-t border-slate-100",onClick:()=>{R()},children:I.jsx("p",{className:"group-hover:text-[#705ED9]",children:u("general.word.load_more")})}):null]})}return I.jsx(I.Fragment,{children:I.jsxs("div",{className:"overflow-y-auto max-h-[280px]",children:[I.jsx(V,{}),E?I.jsx(z,{}):null,y?.contentItems.totalCount===0?I.jsx("div",{children:I.jsx("p",{className:"text-center text-gray-500 w-48",children:"No content items found"})}):null]})})}function ON({uuid:a}){const t=Ii(),{t:r}=Ic(),u=ES(V=>JC(V,a)),s=6,{data:h,loading:g,fetchMore:y,refetch:E}=$S(_z,{variables:{paginate:{first:s},orderBy:{key:"createdAt",direction:GS.Desc},where:{isReusable:[{_eq:!0}]}},notifyOnNetworkStatusChange:!0});Z.useEffect(()=>{E()},[E]);async function C(){await y({variables:{paginate:{first:s,after:(h?.contentValues.pageInfo).endCursor},where:{isReusable:[{_eq:!0}]}},updateQuery:(V,{fetchMoreResult:L})=>L?{contentValues:{...L.contentValues,edges:[...V.contentValues.edges,...L.contentValues.edges]}}:V})}function A(){if(!t.selection)return;const[,V]=j.node(t,t.selection);if(V.length===0)return;const[,L]=j.parent(t,t.selection),[M]=j.node(t,L);if(mt.isElement(M)&&M.type==="contentValue")return[M,L]}function T(V){const L=A();if(L){const[,M]=L;if(!V.interpolatedSmartText)return;He.setNodes(t,{prn:V.prn,root:V.interpolatedSmartText},{at:M});return}N(V)}function N(V){if(!V.interpolatedSmartText)return;const L={type:"contentValue",prn:V.prn,root:V.interpolatedSmartText,children:[{text:""}]};if(u){He.select(t,u),He.insertNodes(t,L);return}He.insertNodes(t,L)}function R(){return I.jsx("div",{children:Array.from({length:h?.contentValues.totalCount??s}).map((V,L)=>I.jsxs("div",{className:"px-3 py-2 flex items-center justify-between gap-2",children:[I.jsx("span",{className:"w-4 h-4 bg-slate-100 rounded-md animate-pulse"}),I.jsx("p",{className:"w-40 h-5 bg-slate-100 rounded-md animate-pulse"})]},L))})}function z(){return I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"flex flex-col min-w-48 overflow-y-auto max-h-[280px]",children:h?.contentValues.edges.map(V=>I.jsx(AN,{contentValue:V.node,onClick:()=>T(V.node)},V.node.prn))}),!g&&(h?.contentValues.pageInfo).hasNextPage?I.jsx("div",{className:"flex items-center justify-center py-2 cursor-pointer group border-t border-slate-100",onClick:()=>{C()},children:I.jsx("p",{className:"group-hover:text-[#705ED9]",children:dw(r("general.word.load_more"))})}):null]})}return I.jsxs(bw,{children:[I.jsx(Gb,{text:r("smart_text.toolbar.content.reusable_content")}),g?I.jsx(R,{}):I.jsx(z,{}),h?.contentValues.totalCount===0?I.jsx("div",{children:I.jsx("p",{className:"text-center text-gray-500 w-48",children:r("smart_text.toolbar.content.no_reusable_content_found")})}):null]})}function TN({uuid:a}){const[t,r]=Z.useState(void 0),{t:u}=Ic();return I.jsxs(bw,{children:[I.jsx("div",{className:"cursor-pointer",onClick:()=>{r(void 0)},children:I.jsx(Gb,{icon:t?["fal","arrow-left"]:void 0,text:`${t?u("general.word.back_to"):""} ${u("smart_text.toolbar.content.content_library")}`})}),t?null:I.jsx(y0,{icon:["fal","arrows-rotate"],text:u("smart_text.toolbar.content.reusable_content"),children:I.jsx(ON,{uuid:a})}),I.jsx("div",{className:"mt-2",children:t?I.jsx(N7,{uuid:a,prn:t}):I.jsx(T7,{uuid:a,onContentTypeClick:s=>{r(s.prn)}})})]})}function kN({uuid:a}){const{selection:t}=Ii(),[r,u]=Z.useState(!1);Z.useEffect(()=>{t||u(!1)},[t]);const s=Ii(),h=Us(s,"contentValue")?"left-0":"right-0";return I.jsxs("div",{children:[I.jsx("button",{onClick:()=>{u(!r)},className:`p-2 rounded-md flex items-center ${r?"bg-white/10":"hover:bg-white/10 cursor-pointer"}`,children:I.jsx(Pa,{icon:["fal","folder-magnifying-glass"],className:"text-white transition-all duration-200"})}),r?I.jsx("div",{className:`absolute ${h} mt-3`,children:I.jsx(TN,{uuid:a})}):null]})}function R7({uuid:a}){const t=Ii(),{selection:r}=t;function u(){if(!r||_e.isCollapsed(r))return!1;const[s]=j.nodes(t,{match:h=>mt.isElement(h)&&h.type==="contentValue"});return s!==void 0}return I.jsxs("div",{className:"flex items-center gap-1 p-1.5 rounded-md bg-[#705ED9] relative",children:[I.jsx(kN,{uuid:a}),!Us(t,"contentValue")&&!u()&&I.jsxs(I.Fragment,{children:[I.jsx("span",{className:"w-[1px] h-2 bg-white/10"}),I.jsx(A7,{})]})]})}function B7(){const a=Ii();function t(){He.unwrapNodes(a,{match:r=>!j.isEditor(r)&&mt.isElement(r)&&r.type==="link"})}return I.jsx(I.Fragment,{children:I.jsx("button",{onClick:t,className:"p-2 rounded-md text-white flex items-center justify-center hover:bg-white/10 transition-colors duration-200 cursor-pointer",children:I.jsx(Pa,{icon:["fal","link-slash"],className:"text-white"})})})}function _7(){const a=Ii(),[[t]]=j.nodes(a,{match:u=>mt.isElement(u)&&u.type==="link"}),r=t.internal?"internal":"external";return I.jsx(I.Fragment,{children:I.jsxs("p",{className:"py-2 px-3 flex items-center gap-2",children:[r==="external"?I.jsx(Pa,{icon:["fal","globe"],className:"text-white"}):I.jsx(Pa,{icon:["fal","sparkles"],className:"text-white"}),r==="external"?I.jsx("span",{className:"text-white flex flex-col",children:I.jsx("span",{children:t?.url})}):I.jsxs("span",{className:"text-white flex flex-col",children:[I.jsx("span",{children:"Content Experience"}),I.jsx("span",{className:"text-xs truncate",children:t?.url})]})]})})}function F7({uuid:a,context:t}){const r=Z.useRef(null),u=Ii(),[s,h]=Z.useState(0),[g,y]=Z.useState(0),[E,C]=Z.useState(!1),{selection:A}=u;function T(){if(!A)return;const x=window.getSelection(),B=document.getElementById(a);if(!x||!B||!r.current)return;const H=x.getRangeAt(0).getBoundingClientRect(),G=t?t.getBoundingClientRect().left:0,W=t?t.getBoundingClientRect().width:window.outerWidth,X=B.getBoundingClientRect().top,ee=B.getBoundingClientRect().left,J=H.top-X,De=H.left-ee,ke=r.current.offsetWidth,ye=ke/2,be=r.current.offsetHeight;let Ee=J-Math.floor(be*1.1),ze=De+H.width/2-ye;const K=De+ke;Ee+X<=0&&(Ee=H.bottom+be*.1),ze+ee<=G&&(ze=0-ee+G+15),K>=W&&(ze=B.getBoundingClientRect().width-ke+15),y(Ee),h(ze)}function N(){if(A&&(!_e.isCollapsed(A)||Us(u,"contentValue")||Us(u,"link"))){C(!0);return}C(!1)}Z.useEffect(()=>{T(),N()},[A]),Z.useEffect(()=>{function x(B){r.current?.contains(B.target)||C(!1)}return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[r]);function R(){return I.jsx("div",{className:"w-0.5 h-3 bg-[#667080]/60 mx-2"})}function z(){return I.jsxs(I.Fragment,{children:[I.jsx(Z1,{format:"bold",icon:["fal","bold"]}),I.jsx(Z1,{format:"italic",icon:["fal","italic"]}),I.jsx(Z1,{format:"underline",icon:["fal","underline"]}),I.jsx(Z1,{format:"strikethrough",icon:["fal","strikethrough"]}),I.jsx(R,{})]})}function V(){return I.jsxs(I.Fragment,{children:[I.jsx(h6,{}),I.jsx(R,{}),I.jsx(nT,{format:"list",properties:{ordered:!1},icon:["fal","list-ul"]}),I.jsx(nT,{format:"list",properties:{ordered:!0},icon:["fal","list-ol"]}),I.jsx(R,{}),I.jsx(zT,{mode:"create",icon:["fal","link"]})]})}function L(){return Us(u,"contentValue")?I.jsxs("div",{className:"my-1 -mx-1 flex items-center",children:[Us(u,"contentValue")&&I.jsx(I.Fragment,{children:I.jsx(kN,{uuid:a})}),I.jsx("div",{children:I.jsx("button",{onClick:()=>{const[x,B]=j.parent(u,A);if(!mt.isElement(x)||x.type!=="contentValue")return;He.removeNodes(u,{at:B});const H={text:x.root?YS(x.root):""};He.insertNodes(u,H)},className:"p-2 rounded-md flex items-center justify-center text-white hover:bg-white/10 transition-colors duration-200 cursor-pointer",children:I.jsx(Pa,{icon:["fal","unlink"]})})}),I.jsx("div",{children:I.jsx("button",{onClick:()=>{const[x,B]=j.parent(u,A);!mt.isElement(x)||x.type!=="contentValue"||He.removeNodes(u,{at:B})},className:"p-2 rounded-md text-white flex items-center justify-center hover:bg-white/10 transition-colors duration-200 cursor-pointer",children:I.jsx(Pa,{icon:["fal","trash-can"]})})})]}):null}function M(){return I.jsxs(I.Fragment,{children:[I.jsx(_7,{}),I.jsx(zT,{mode:"edit",icon:["fal","pencil"]}),I.jsx(B7,{})]})}return I.jsxs("div",{ref:r,className:"flex w-fit items-start gap-2 absolute z-10 right-0",style:{opacity:E?1:0,zIndex:E?10:-1,left:`${s}px`,top:`${g}px`,transition:"opacity 0.5s ease-in-out, top 0.1s ease-in-out, left 0.1s ease-in-out, z-index 0.5s ease-in-out"},onMouseDown:x=>{x.target instanceof HTMLInputElement||x.preventDefault()},children:[I.jsxs("div",{className:"flex items-center px-2 bg-black/80 rounded-md backdrop-blur-sm",children:[Us(u,"link")&&I.jsx(M,{}),Us(u,"contentValue")&&I.jsx(L,{}),!Us(u,"link")&&!Us(u,"contentValue")&&I.jsxs(I.Fragment,{children:[I.jsx(z,{}),I.jsx(V,{}),I.jsx(L,{})]})]}),!Us(u,"link")&&!Us(u,"contentValue")&&I.jsx(R7,{uuid:a})]},`toolbar-${a}`)}function M7(a,t){return a.bold&&t.push("font-bold"),t}function z7(a,t){return a.title&&t.push("text-2xl"),t}function j7(a,t){return a.italic&&t.push("italic"),t}function L7(a,t){return a.underline&&t.push("underline"),a.strikethrough&&t.push("line-through"),t}class U7{constructor(t){this.element=t,this.decorators=[]}add(t){return this.decorators.push(t),this}build(){return t=>(this.decorators.forEach(r=>r(this.element,t)),t)}}function H7(a){function t(){return new U7(a.leaf).add(M7).add(z7).add(j7).add(L7).build()([]).join(" ")}return I.jsx("span",{...a.attributes,className:`${t()} ${a.leaf.text===""?"pl-0.5":""}`,children:a.children})}function V7({attributes:a,children:t,element:r}){const u=g2(),s={fontWeight:r.children[0].bold?"bold":"normal",fontStyle:r.children[0].italic?"italic":"normal",textDecoration:`${r.children[0].underline?"underline":""} ${r.children[0].strikethrough?"line-through":""}`};return I.jsx("span",{className:`${u?"bg-[#EAEAFA]":""} border border-[#705ED9] py-1 rounded-l-sm`,children:I.jsxs("span",{...a,contentEditable:!1,className:"border-[#705ED9] px-2 py-1.5 border-r-3",style:s,children:[t,r.root?YS(r.root):""]})})}function q7(a){return I.jsx("pre",{...a.attributes,children:I.jsx("code",{children:a.children})})}function $7({attributes:a,children:t,element:r}){const u=g2(),s=Ii(),h={fontWeight:r.children[0].bold?"bold":"normal",fontStyle:r.children[0].italic?"italic":"normal"};return Z.useEffect(()=>{r.children[0].text.length===0&&He.unwrapNodes(s,{match:g=>!j.isEditor(g)&&mt.isElement(g)&&g.type==="link"})},[r]),I.jsx("span",{className:"relative",children:I.jsx("div",{className:`${u?"bg-blue-400/20 px-1":"border-transparent underline text-primary"} inline-block transition-all duration-300`,style:h,...a,children:t})})}function G7({attributes:a,children:t,element:r,lastKey:u}){const s={},h=Ii();switch(Z.useEffect(()=>{if(r.type==="list"||r.type==="listItem"){const g=Rb(h,"list");if(!g)return;u==="Enter"&&g[0].children?.length>1&&g[0].children[g[0].children.length-2].children?.[0]?.text?.length===0&&(He.removeNodes(h,{match:y=>!j.isEditor(y)&&mt.isElement(y)&&y.type==="listItem"&&y.children?.[0]?.text?.length===0}),He.unwrapNodes(h,{match:y=>!j.isEditor(y)&&mt.isElement(y)&&y.type==="list",split:!0}),He.setNodes(h,{type:"paragraph"})),u==="Backspace"&&g[0].children?.[0]?.children?.[0]?.text?.length===0&&(He.removeNodes(h,{match:y=>!j.isEditor(y)&&mt.isElement(y)&&y.type==="list"}),He.insertNodes(h,{type:"paragraph",children:[{text:""}]}))}},[u]),r.type){case"heading":switch(r.level){case 1:return I.jsx("h1",{style:s,...a,className:"text-5xl",children:t});case 2:return I.jsx("h2",{style:s,...a,className:"text-4xl",children:t});case 3:return I.jsx("h3",{style:s,...a,className:"text-3xl",children:t});case 4:return I.jsx("h4",{style:s,...a,className:"text-2xl",children:t});case 5:return I.jsx("h5",{style:s,...a,className:"text-xl",children:t});default:return I.jsx("h5",{style:s,...a,className:"text-xl",children:t})}case"list":return r.ordered?I.jsx("ol",{style:s,...a,className:"list-decimal pl-4",children:t}):I.jsx("ul",{style:s,...a,className:"list-disc pl-4",children:t});case"blockquote":return I.jsx("blockquote",{style:s,...a,children:t});case"listItem":return I.jsx("li",{style:s,...a,children:t});case"code":return I.jsx(q7,{element:r,attributes:a,children:t});case"contentValue":return I.jsx(V7,{element:r,attributes:a,children:t});case"link":return I.jsx($7,{element:r,attributes:a,children:t});default:return I.jsx("p",{style:s,...a,children:t})}}const Gc=z4({reducer:{editor:t8}}),WT={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+-":"strikethrough"};var YE={exports:{}},JT;function Y7(){return JT||(JT=1,function(a){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
120
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
121
|
-
*
|
|
122
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
123
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
124
|
-
* @namespace
|
|
125
|
-
* @public
|
|
126
|
-
*/var r=function(u){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,h=0,g={},y={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function x(B){return B instanceof E?new E(B.type,x(B.content),B.alias):Array.isArray(B)?B.map(x):B.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++h}),x.__id},clone:function x(B,H){H=H||{};var G,W;switch(y.util.type(B)){case"Object":if(W=y.util.objId(B),H[W])return H[W];G={},H[W]=G;for(var X in B)B.hasOwnProperty(X)&&(G[X]=x(B[X],H));return G;case"Array":return W=y.util.objId(B),H[W]?H[W]:(G=[],H[W]=G,B.forEach(function(ee,J){G[J]=x(ee,H)}),G);default:return B}},getLanguage:function(x){for(;x;){var B=s.exec(x.className);if(B)return B[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,B){x.className=x.className.replace(RegExp(s,"gi"),""),x.classList.add("language-"+B)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(G){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(G.stack)||[])[1];if(x){var B=document.getElementsByTagName("script");for(var H in B)if(B[H].src==x)return B[H]}return null}},isActive:function(x,B,H){for(var G="no-"+B;x;){var W=x.classList;if(W.contains(B))return!0;if(W.contains(G))return!1;x=x.parentElement}return!!H}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(x,B){var H=y.util.clone(y.languages[x]);for(var G in B)H[G]=B[G];return H},insertBefore:function(x,B,H,G){G=G||y.languages;var W=G[x],X={};for(var ee in W)if(W.hasOwnProperty(ee)){if(ee==B)for(var J in H)H.hasOwnProperty(J)&&(X[J]=H[J]);H.hasOwnProperty(ee)||(X[ee]=W[ee])}var De=G[x];return G[x]=X,y.languages.DFS(y.languages,function(ke,ye){ye===De&&ke!=x&&(this[ke]=X)}),X},DFS:function x(B,H,G,W){W=W||{};var X=y.util.objId;for(var ee in B)if(B.hasOwnProperty(ee)){H.call(B,ee,B[ee],G||ee);var J=B[ee],De=y.util.type(J);De==="Object"&&!W[X(J)]?(W[X(J)]=!0,x(J,H,null,W)):De==="Array"&&!W[X(J)]&&(W[X(J)]=!0,x(J,H,ee,W))}}},plugins:{},highlightAll:function(x,B){y.highlightAllUnder(document,x,B)},highlightAllUnder:function(x,B,H){var G={callback:H,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};y.hooks.run("before-highlightall",G),G.elements=Array.prototype.slice.apply(G.container.querySelectorAll(G.selector)),y.hooks.run("before-all-elements-highlight",G);for(var W=0,X;X=G.elements[W++];)y.highlightElement(X,B===!0,G.callback)},highlightElement:function(x,B,H){var G=y.util.getLanguage(x),W=y.languages[G];y.util.setLanguage(x,G);var X=x.parentElement;X&&X.nodeName.toLowerCase()==="pre"&&y.util.setLanguage(X,G);var ee=x.textContent,J={element:x,language:G,grammar:W,code:ee};function De(ye){J.highlightedCode=ye,y.hooks.run("before-insert",J),J.element.innerHTML=J.highlightedCode,y.hooks.run("after-highlight",J),y.hooks.run("complete",J),H&&H.call(J.element)}if(y.hooks.run("before-sanity-check",J),X=J.element.parentElement,X&&X.nodeName.toLowerCase()==="pre"&&!X.hasAttribute("tabindex")&&X.setAttribute("tabindex","0"),!J.code){y.hooks.run("complete",J),H&&H.call(J.element);return}if(y.hooks.run("before-highlight",J),!J.grammar){De(y.util.encode(J.code));return}if(B&&u.Worker){var ke=new Worker(y.filename);ke.onmessage=function(ye){De(ye.data)},ke.postMessage(JSON.stringify({language:J.language,code:J.code,immediateClose:!0}))}else De(y.highlight(J.code,J.grammar,J.language))},highlight:function(x,B,H){var G={code:x,grammar:B,language:H};if(y.hooks.run("before-tokenize",G),!G.grammar)throw new Error('The language "'+G.language+'" has no grammar.');return G.tokens=y.tokenize(G.code,G.grammar),y.hooks.run("after-tokenize",G),E.stringify(y.util.encode(G.tokens),G.language)},tokenize:function(x,B){var H=B.rest;if(H){for(var G in H)B[G]=H[G];delete B.rest}var W=new T;return N(W,W.head,x),A(x,W,B,W.head,0),z(W)},hooks:{all:{},add:function(x,B){var H=y.hooks.all;H[x]=H[x]||[],H[x].push(B)},run:function(x,B){var H=y.hooks.all[x];if(!(!H||!H.length))for(var G=0,W;W=H[G++];)W(B)}},Token:E};u.Prism=y;function E(x,B,H,G){this.type=x,this.content=B,this.alias=H,this.length=(G||"").length|0}E.stringify=function x(B,H){if(typeof B=="string")return B;if(Array.isArray(B)){var G="";return B.forEach(function(De){G+=x(De,H)}),G}var W={type:B.type,content:x(B.content,H),tag:"span",classes:["token",B.type],attributes:{},language:H},X=B.alias;X&&(Array.isArray(X)?Array.prototype.push.apply(W.classes,X):W.classes.push(X)),y.hooks.run("wrap",W);var ee="";for(var J in W.attributes)ee+=" "+J+'="'+(W.attributes[J]||"").replace(/"/g,""")+'"';return"<"+W.tag+' class="'+W.classes.join(" ")+'"'+ee+">"+W.content+"</"+W.tag+">"};function C(x,B,H,G){x.lastIndex=B;var W=x.exec(H);if(W&&G&&W[1]){var X=W[1].length;W.index+=X,W[0]=W[0].slice(X)}return W}function A(x,B,H,G,W,X){for(var ee in H)if(!(!H.hasOwnProperty(ee)||!H[ee])){var J=H[ee];J=Array.isArray(J)?J:[J];for(var De=0;De<J.length;++De){if(X&&X.cause==ee+","+De)return;var ke=J[De],ye=ke.inside,be=!!ke.lookbehind,Ee=!!ke.greedy,ze=ke.alias;if(Ee&&!ke.pattern.global){var K=ke.pattern.toString().match(/[imsuy]*$/)[0];ke.pattern=RegExp(ke.pattern.source,K+"g")}for(var ue=ke.pattern||ke,pe=G.next,Ve=W;pe!==B.tail&&!(X&&Ve>=X.reach);Ve+=pe.value.length,pe=pe.next){var fe=pe.value;if(B.length>x.length)return;if(!(fe instanceof E)){var Re=1,Le;if(Ee){if(Le=C(ue,Ve,x,be),!Le||Le.index>=x.length)break;var rt=Le.index,he=Le.index+Le[0].length,nt=Ve;for(nt+=pe.value.length;rt>=nt;)pe=pe.next,nt+=pe.value.length;if(nt-=pe.value.length,Ve=nt,pe.value instanceof E)continue;for(var bt=pe;bt!==B.tail&&(nt<he||typeof bt.value=="string");bt=bt.next)Re++,nt+=bt.value.length;Re--,fe=x.slice(Ve,nt),Le.index-=Ve}else if(Le=C(ue,0,fe,be),!Le)continue;var rt=Le.index,_n=Le[0],Ft=fe.slice(0,rt),oe=fe.slice(rt+_n.length),Qe=Ve+fe.length;X&&Qe>X.reach&&(X.reach=Qe);var Ne=pe.prev;Ft&&(Ne=N(B,Ne,Ft),Ve+=Ft.length),R(B,Ne,Re);var Ie=new E(ee,ye?y.tokenize(_n,ye):_n,ze,_n);if(pe=N(B,Ne,Ie),oe&&N(B,pe,oe),Re>1){var St={cause:ee+","+De,reach:Qe};A(x,B,H,pe.prev,Ve,St),X&&St.reach>X.reach&&(X.reach=St.reach)}}}}}}function T(){var x={value:null,prev:null,next:null},B={value:null,prev:x,next:null};x.next=B,this.head=x,this.tail=B,this.length=0}function N(x,B,H){var G=B.next,W={value:H,prev:B,next:G};return B.next=W,G.prev=W,x.length++,W}function R(x,B,H){for(var G=B.next,W=0;W<H&&G!==x.tail;W++)G=G.next;B.next=G,G.prev=B,x.length-=W}function z(x){for(var B=[],H=x.head.next;H!==x.tail;)B.push(H.value),H=H.next;return B}if(!u.document)return u.addEventListener&&(y.disableWorkerMessageHandler||u.addEventListener("message",function(x){var B=JSON.parse(x.data),H=B.language,G=B.code,W=B.immediateClose;u.postMessage(y.highlight(G,y.languages[H],H)),W&&u.close()},!1)),y;var V=y.util.currentScript();V&&(y.filename=V.src,V.hasAttribute("data-manual")&&(y.manual=!0));function L(){y.manual||y.highlightAll()}if(!y.manual){var M=document.readyState;M==="loading"||M==="interactive"&&V&&V.defer?document.addEventListener("DOMContentLoaded",L):window.requestAnimationFrame?window.requestAnimationFrame(L):window.setTimeout(L,16)}return y}(t);a.exports&&(a.exports=r),typeof qs<"u"&&(qs.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(s,h){var g={};g["language-"+h]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[h]},g.cdata=/^<!\[CDATA\[|\]\]>$/i;var y={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:g}};y["language-"+h]={pattern:/[\s\S]+/,inside:r.languages[h]};var E={};E[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:y},r.languages.insertBefore("markup","cdata",E)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(u,s){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:r.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(u){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var h=u.languages.markup;h&&(h.tag.addInlined("style","css"),h.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(typeof r>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",s=function(V,L){return"✖ Error "+V+" while fetching file: "+L},h="✖ Error: File does not exist or is empty",g={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},y="data-src-status",E="loading",C="loaded",A="failed",T="pre[data-src]:not(["+y+'="'+C+'"]):not(['+y+'="'+E+'"])';function N(V,L,M){var x=new XMLHttpRequest;x.open("GET",V,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?L(x.responseText):x.status>=400?M(s(x.status,x.statusText)):M(h))},x.send(null)}function R(V){var L=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(V||"");if(L){var M=Number(L[1]),x=L[2],B=L[3];return x?B?[M,Number(B)]:[M,void 0]:[M,M]}}r.hooks.add("before-highlightall",function(V){V.selector+=", "+T}),r.hooks.add("before-sanity-check",function(V){var L=V.element;if(L.matches(T)){V.code="",L.setAttribute(y,E);var M=L.appendChild(document.createElement("CODE"));M.textContent=u;var x=L.getAttribute("data-src"),B=V.language;if(B==="none"){var H=(/\.(\w+)$/.exec(x)||[,"none"])[1];B=g[H]||H}r.util.setLanguage(M,B),r.util.setLanguage(L,B);var G=r.plugins.autoloader;G&&G.loadLanguages(B),N(x,function(W){L.setAttribute(y,C);var X=R(L.getAttribute("data-range"));if(X){var ee=W.split(/\r\n?|\n/g),J=X[0],De=X[1]==null?ee.length:X[1];J<0&&(J+=ee.length),J=Math.max(0,Math.min(J-1,ee.length)),De<0&&(De+=ee.length),De=Math.max(0,Math.min(De,ee.length)),W=ee.slice(J,De).join(`
|
|
127
|
-
`),L.hasAttribute("data-start")||L.setAttribute("data-start",String(J+1))}M.textContent=W,r.highlightElement(M)},function(W){L.setAttribute(y,A),M.textContent=W})}}),r.plugins.fileHighlight={highlight:function(L){for(var M=(L||document).querySelectorAll(T),x=0,B;B=M[x++];)r.highlightElement(B)}};var z=!1;r.fileHighlight=function(){z||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),z=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(YE)),YE.exports}var P7=Y7();const ek=Xm(P7);function Q7(a){const{isInline:t,isVoid:r,markableVoid:u}=a;return a.isInline=s=>s.type==="contentValue"||s.type==="link"?!0:t(s),a.isVoid=s=>s.type==="contentValue"?!0:r(s),a.markableVoid=s=>s.type==="contentValue"?!0:u(s),a}function X7([a,t]){const r=[];if(!Et.isText(a))return r;function u(g){return typeof g=="string"?g.length:typeof g.content=="string"?g.content.length:Array.isArray(g.content)?g.content.reduce((y,E)=>y+u(E),0):0}const s=ek.tokenize(a.text,ek.languages.markdown);let h=0;for(const g of s){const y=u(g),E=h+y;typeof g!="string"&&r.push({[g.type]:!0,anchor:{path:t,offset:h},focus:{path:t,offset:E}}),h=E}return r}function I7({uuid:a,ref:t,linkMenuIsOpen:r,openLinkMenu:u,searchValue:s}){const h=Ii(),g=S2(),{t:y}=Ic(),E=ES(B=>JC(B,a)),C=Z.useRef(null);VS(C,()=>{g(Pg({uuid:a,state:{target:void 0}}))}),Z.useImperativeHandle(t,()=>({escapeContentAndFormatMenu:M}));const A=[{icon:["fal","paragraph"],text:y("smart_text.content_and_format.paragraph"),structure:{type:"paragraph",children:[{text:""}]}},{icon:["fal","h1"],text:`${y("smart_text.content_and_format.heading")} 1`,structure:{type:"heading",level:1,children:[{text:""}]}},{icon:["fal","h2"],text:`${y("smart_text.content_and_format.heading")} 2`,structure:{type:"heading",level:2,children:[{text:""}]}},{icon:["fal","h3"],text:`${y("smart_text.content_and_format.heading")} 3`,structure:{type:"heading",level:3,children:[{text:""}]}},{icon:["fal","h4"],text:`${y("smart_text.content_and_format.heading")} 4`,structure:{type:"heading",level:4,children:[{text:""}]}},{icon:["fal","h5"],text:`${y("smart_text.content_and_format.heading")} 5`,structure:{type:"heading",level:5,children:[{text:""}]}},{icon:["fal","list-ul"],text:y("smart_text.content_and_format.bulleted_list"),structure:{type:"list",ordered:!1,children:[{type:"listItem",children:[{text:""}]}]}},{icon:["fal","list-ol"],text:y("smart_text.content_and_format.numbered_list"),structure:{type:"list",ordered:!0,children:[{type:"listItem",children:[{text:""}]}]}},{icon:["fal","code"],text:y("smart_text.content_and_format.code"),structure:{type:"code",children:[{text:""}]}},{icon:["fal","link"],text:y("smart_text.content_and_format.link"),structure:{type:"link",url:"",children:[{text:""}]}}],[T,N]=Z.useState(!0),[R,z]=Z.useState(!0),[V,L]=Z.useState([]);Z.useEffect(()=>{if(s){const B=A.filter(H=>H.text.toLowerCase().includes(s.toLowerCase()));L(B),N(y("smart_text.toolbar.content.smart_content").toLowerCase().includes(s.toLowerCase())),z(y("smart_text.toolbar.content.reusable_content").toLowerCase().includes(s.toLowerCase()))}else L(A),N(!0),z(!0)},[s]);function M(){E&&g(Pg({uuid:a,state:{target:void 0}}))}function x(B){if(!E)return;const[H,G]=j.parent(h,E);He.select(h,E),dt.string(H).startsWith("/")&&!dt.string(H).includes(" ")&&He.removeNodes(h,{at:G}),B.type==="link"?(h.children.length===0&&He.insertNodes(h,{type:"paragraph",children:[{text:""}]}),u()):He.insertNodes(h,B)}return!E||r?null:I.jsx(I.Fragment,{children:I.jsx("div",{ref:C,className:"absolute left-0 mt-1 z-10",onMouseDown:B=>{B.preventDefault()},children:I.jsxs(bw,{children:[T&&R&&I.jsx(Gb,{text:y("smart_text.content_and_format.content")}),T&&I.jsx(y0,{icon:["fal","folder"],text:y("smart_text.toolbar.content.smart_content"),children:I.jsx(TN,{uuid:a})}),R&&I.jsx(y0,{icon:["fal","arrows-rotate"],text:y("smart_text.toolbar.content.reusable_content"),children:I.jsx(ON,{uuid:a})}),T&&R&&V.length>0&&I.jsx("hr",{className:"border-gray-100"}),V.length>0&&I.jsx(Gb,{text:y("smart_text.content_and_format.format")}),V.map((B,H)=>I.jsx(y0,{icon:B.icon,text:B.text,onClick:()=>x(B.structure)},`format-option-${H}`))]})})})}(function(a){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(A){return A=A.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+A+")")}var u=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return u}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+h+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+h+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(u),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(u),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(A){["url","bold","italic","strike","code-snippet"].forEach(function(T){A!==T&&(a.languages.markdown[A].inside.content.inside[T]=a.languages.markdown[T])})}),a.hooks.add("after-tokenize",function(A){if(A.language!=="markdown"&&A.language!=="md")return;function T(N){if(!(!N||typeof N=="string"))for(var R=0,z=N.length;R<z;R++){var V=N[R];if(V.type!=="code"){T(V.content);continue}var L=V.content[1],M=V.content[3];if(L&&M&&L.type==="code-language"&&M.type==="code-block"&&typeof L.content=="string"){var x=L.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");x=(/[a-z][\w-]*/i.exec(x)||[""])[0].toLowerCase();var B="language-"+x;M.alias?typeof M.alias=="string"?M.alias=[M.alias,B]:M.alias.push(B):M.alias=[B]}}}T(A.tokens)}),a.hooks.add("wrap",function(A){if(A.type==="code-block"){for(var T="",N=0,R=A.classes.length;N<R;N++){var z=A.classes[N],V=/language-(.+)/.exec(z);if(V){T=V[1];break}}var L=a.languages[T];if(L)A.content=a.highlight(C(A.content),L,T);else if(T&&T!=="none"&&a.plugins.autoloader){var M="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);A.attributes.id=M,a.plugins.autoloader.loadLanguages(T,function(){var x=document.getElementById(M);x&&(x.innerHTML=a.highlight(x.textContent,a.languages[T],T))})}}});var g=RegExp(a.languages.markup.tag.pattern.source,"gi"),y={amp:"&",lt:"<",gt:">",quot:'"'},E=String.fromCodePoint||String.fromCharCode;function C(A){var T=A.replace(g,"");return T=T.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(N,R){if(R=R.toLowerCase(),R[0]==="#"){var z;return R[1]==="x"?z=parseInt(R.slice(2),16):z=Number(R.slice(1)),E(z)}else{var V=y[R];return V||N}}),T}a.languages.md=a.languages.markdown})(Prism);var pS={exports:{}},Z7=pS.exports,tk;function K7(){return tk||(tk=1,function(a){(function(t,r){a.exports=r()})(Z7,function(){var t=Object.prototype.toString;function r(T,N){return T==null?!1:Object.prototype.hasOwnProperty.call(T,N)}function u(T){if(!T||g(T)&&T.length===0)return!0;if(typeof T!="string"){for(var N in T)if(r(T,N))return!1;return!0}return!1}function s(T){return t.call(T)}function h(T){return typeof T=="object"&&s(T)==="[object Object]"}var g=Array.isArray||function(T){return t.call(T)==="[object Array]"};function y(T){return typeof T=="boolean"||s(T)==="[object Boolean]"}function E(T){var N=parseInt(T);return N.toString()===T?N:T}function C(T){T=T||{};var N=function(M){return Object.keys(N).reduce(function(x,B){return B==="create"||typeof N[B]=="function"&&(x[B]=N[B].bind(N,M)),x},{})},R;T.includeInheritedProps?R=function(){return!0}:R=function(M,x){return typeof x=="number"&&Array.isArray(M)||r(M,x)};function z(M,x){if(R(M,x))return M[x]}var V;T.includeInheritedProps?V=function(M,x){typeof x!="string"&&typeof x!="number"&&(x=String(x));var B=z(M,x);if(x==="__proto__"||x==="prototype"||x==="constructor"&&typeof B=="function")throw new Error("For security reasons, object's magic properties cannot be set");return B}:V=function(M,x){return z(M,x)};function L(M,x,B,H){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return M;if(typeof x=="string")return L(M,x.split(".").map(E),B,H);var G=x[0],W=V(M,G);return x.length===1?((W===void 0||!H)&&(M[G]=B),W):(W===void 0&&(typeof x[1]=="number"?M[G]=[]:M[G]={}),L(M[G],x.slice(1),B,H))}return N.has=function(M,x){if(typeof x=="number"?x=[x]:typeof x=="string"&&(x=x.split(".")),!x||x.length===0)return!!M;for(var B=0;B<x.length;B++){var H=E(x[B]);if(typeof H=="number"&&g(M)&&H<M.length||(T.includeInheritedProps?H in Object(M):r(M,H)))M=M[H];else return!1}return!0},N.ensureExists=function(M,x,B){return L(M,x,B,!0)},N.set=function(M,x,B,H){return L(M,x,B,H)},N.insert=function(M,x,B,H){var G=N.get(M,x);H=~~H,g(G)||(G=[],N.set(M,x,G)),G.splice(H,0,B)},N.empty=function(M,x){if(!u(x)&&M!=null){var B,H;if(B=N.get(M,x)){if(typeof B=="string")return N.set(M,x,"");if(y(B))return N.set(M,x,!1);if(typeof B=="number")return N.set(M,x,0);if(g(B))B.length=0;else if(h(B))for(H in B)R(B,H)&&delete B[H];else return N.set(M,x,null)}}},N.push=function(M,x){var B=N.get(M,x);g(B)||(B=[],N.set(M,x,B)),B.push.apply(B,Array.prototype.slice.call(arguments,2))},N.coalesce=function(M,x,B){for(var H,G=0,W=x.length;G<W;G++)if((H=N.get(M,x[G]))!==void 0)return H;return B},N.get=function(M,x,B){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return M;if(M==null)return B;if(typeof x=="string")return N.get(M,x.split("."),B);var H=E(x[0]),G=V(M,H);return G===void 0?B:x.length===1?G:N.get(M[H],x.slice(1),B)},N.del=function(x,B){if(typeof B=="number"&&(B=[B]),x==null||u(B))return x;if(typeof B=="string")return N.del(x,B.split("."));var H=E(B[0]);if(V(x,H),!R(x,H))return x;if(B.length===1)g(x)?x.splice(H,1):delete x[H];else return N.del(x[H],B.slice(1));return x},N}var A=C();return A.create=C,A.withInheritedProps=C({includeInheritedProps:!0}),A})}(pS)),pS.exports}var PE,nk;function W7(){if(nk)return PE;nk=1;var a=K7().get;function t(u,s){return u===s}function r(u,s,h){h=h||t;var g=a(u(),s);return function(E){return function(){var C=a(u(),s);if(!h(g,C)){var A=g;g=C,E(C,A,s)}}}}return PE=r,PE}var J7=W7();const NN=Xm(J7);/*!
|
|
128
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
129
|
-
*
|
|
130
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
131
|
-
* Released under the MIT License.
|
|
132
|
-
*/function ak(a){return Object.prototype.toString.call(a)==="[object Object]"}function e5(a){var t,r;return ak(a)===!1?!1:(t=a.constructor,t===void 0?!0:(r=t.prototype,!(ak(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var t5={isHistory(a){return e5(a)&&Array.isArray(a.redos)&&Array.isArray(a.undos)&&(a.redos.length===0||$m.isOperationList(a.redos[0].operations))&&(a.undos.length===0||$m.isOperationList(a.undos[0].operations))}},QE=new WeakMap,Bg=new WeakMap,nS=new WeakMap,Hs={isHistoryEditor(a){return t5.isHistory(a.history)&&j.isEditor(a)},isMerging(a){return Bg.get(a)},isSplittingOnce(a){return nS.get(a)},setSplittingOnce(a,t){nS.set(a,t)},isSaving(a){return QE.get(a)},redo(a){a.redo()},undo(a){a.undo()},withMerging(a,t){var r=Hs.isMerging(a);Bg.set(a,!0),t(),Bg.set(a,r)},withNewBatch(a,t){var r=Hs.isMerging(a);Bg.set(a,!0),nS.set(a,!0),t(),Bg.set(a,r),nS.delete(a)},withoutMerging(a,t){var r=Hs.isMerging(a);Bg.set(a,!1),t(),Bg.set(a,r)},withoutSaving(a,t){var r=Hs.isSaving(a);QE.set(a,!1);try{t()}finally{QE.set(a,r)}}},n5=a=>{var t=a,{apply:r}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:u}=t,{redos:s}=u;if(s.length>0){var h=s[s.length-1];h.selectionBefore&&He.setSelection(t,h.selectionBefore),Hs.withoutSaving(t,()=>{j.withoutNormalizing(t,()=>{for(var g of h.operations)t.apply(g)})}),u.redos.pop(),t.writeHistory("undos",h)}},t.undo=()=>{var{history:u}=t,{undos:s}=u;if(s.length>0){var h=s[s.length-1];Hs.withoutSaving(t,()=>{j.withoutNormalizing(t,()=>{var g=h.operations.map($m.inverse).reverse();for(var y of g)t.apply(y);h.selectionBefore&&He.setSelection(t,h.selectionBefore)})}),t.writeHistory("redos",h),u.undos.pop()}},t.apply=u=>{var{operations:s,history:h}=t,{undos:g}=h,y=g[g.length-1],E=y&&y.operations[y.operations.length-1],C=Hs.isSaving(t),A=Hs.isMerging(t);if(C==null&&(C=r5(u)),C){if(A==null&&(y==null?A=!1:s.length!==0?A=!0:A=a5(u,E)),Hs.isSplittingOnce(t)&&(A=!1,Hs.setSplittingOnce(t,void 0)),y&&A)y.operations.push(u);else{var T={operations:[u],selectionBefore:t.selection};t.writeHistory("undos",T)}for(;g.length>100;)g.shift();h.redos=[]}r(u)},t.writeHistory=(u,s)=>{t.history[u].push(s)},t},a5=(a,t)=>!!(t&&a.type==="insert_text"&&t.type==="insert_text"&&a.offset===t.offset+t.text.length&&ie.equals(a.path,t.path)||t&&a.type==="remove_text"&&t.type==="remove_text"&&a.offset+a.text.length===t.offset&&ie.equals(a.path,t.path)),r5=(a,t)=>a.type!=="set_selection";function i5({uuid:a,context:t,isDisabled:r}){const[u]=Z.useState(hC(Gc.getState(),a)?.initialValue??[]),s=S2(),h=Z.useMemo(()=>Q7(kM(n5(Z3()))),[]),[g,y]=Z.useState(),E=Z.useCallback(X=>I.jsx(H7,{...X}),[]),C=Z.useCallback(X=>I.jsx(G7,{...X,lastKey:g}),[g]),A=Z.useCallback(X=>I.jsx("div",{...X.attributes,className:"py-2",children:X.children}),[]),[T,N]=Z.useState(null);function R(){V(!0),r=!0}const[z,V]=Z.useState(!1),{t:L}=Ic(),M=NN(()=>hC(Gc.getState(),a).initialValue);Gc.subscribe(M(X=>{He.select(h,[]),He.removeNodes(h),He.insertNodes(h,X)}));function x(X){B(X),s(Pg({uuid:a,state:{target:H()}}));const{selection:ee}=h;if(ee&&_e.isCollapsed(ee)){const[J]=_e.edges(ee),De=j.before(h,J,{unit:"word"}),ke=De&&j.before(h,De),ye=ke&&j.range(h,ke,J),Ee=(ye&&j.string(h,ye))?.match(/^\/(\w+)$/u),ze=Ee?Ee[1]:null;N(ze)}else N(null)}function B(X){h.operations.some(J=>J.type!=="set_selection")&&s(Pg({uuid:a,state:{value:X}}))}function H(){const{selection:X}=h;if(!X||!_e.isCollapsed(X))return;const[ee]=_e.edges(X),J=j.before(h,ee,{unit:"character"}),De=J&&j.string(h,j.range(h,J,{...J,offset:J.offset+1}));if(De===" ")return;if(J&&De==="/"){const be=j.after(h,J,{unit:"word"});return be&&j.string(h,j.range(h,J,be)).includes(" ")?j.range(h,J,{...J,offset:J.offset+1}):j.range(h,J,be)}const ke=j.before(h,ee,{unit:"word"});if(!ke)return;const ye=j.before(h,ke,{unit:"character"});if(ye&&j.string(h,j.range(h,ye,ke))==="/")return j.range(h,ye,j.after(h,ke,{unit:"word"}))}const G=Z.useRef(null);function W(X){y(X.key);for(const J in WT)if(H1(J,X)){X.preventDefault();const De=WT[J];M2(h,De)}const{selection:ee}=h;if(ee&&_e.isCollapsed(ee)){const{nativeEvent:J}=X;if(H1("left",J)){X.preventDefault(),He.move(h,{unit:"offset",reverse:!0});return}H1("right",J)&&(X.preventDefault(),He.move(h,{unit:"offset"}))}H1("escape",X)&&G.current?.escapeContentAndFormatMenu(),(X.ctrlKey||X.metaKey)&&X.key==="z"&&(X.preventDefault(),X.shiftKey?Hs.redo(h):Hs.undo(h))}return I.jsx("div",{className:"relative",children:I.jsxs(TM,{editor:h,initialValue:u,onChange:x,children:[I.jsx(F7,{uuid:a,context:t}),I.jsx(DM,{placeholder:L("smart_text.placeholder"),decorate:Z.useCallback(X7,[]),renderLeaf:E,renderElement:C,renderPlaceholder:A,className:"outline-none py-2 max-h-32 overflow-y-auto overflow-x-hidden",onKeyDown:W,autoFocus:!r,readOnly:r}),!r&&I.jsx(I7,{uuid:a,ref:G,openLinkMenu:()=>R(),linkMenuIsOpen:z,searchValue:T}),I.jsx(hN,{menuClass:"top-full -translate-y-3",buttonText:L("smart_text.toolbar.link.add_link"),showLinkTextInput:!0,onClose:()=>V(!1),showMenu:z})]})})}var aS={exports:{}},Sb={},rS={exports:{}},XE={};/**
|
|
133
|
-
* @license React
|
|
134
|
-
* scheduler.production.js
|
|
135
|
-
*
|
|
136
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the MIT license found in the
|
|
139
|
-
* LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/var rk;function u5(){return rk||(rk=1,function(a){function t(K,ue){var pe=K.length;K.push(ue);e:for(;0<pe;){var Ve=pe-1>>>1,fe=K[Ve];if(0<s(fe,ue))K[Ve]=ue,K[pe]=fe,pe=Ve;else break e}}function r(K){return K.length===0?null:K[0]}function u(K){if(K.length===0)return null;var ue=K[0],pe=K.pop();if(pe!==ue){K[0]=pe;e:for(var Ve=0,fe=K.length,Re=fe>>>1;Ve<Re;){var Le=2*(Ve+1)-1,he=K[Le],nt=Le+1,bt=K[nt];if(0>s(he,pe))nt<fe&&0>s(bt,he)?(K[Ve]=bt,K[nt]=pe,Ve=nt):(K[Ve]=he,K[Le]=pe,Ve=Le);else if(nt<fe&&0>s(bt,pe))K[Ve]=bt,K[nt]=pe,Ve=nt;else break e}}return ue}function s(K,ue){var pe=K.sortIndex-ue.sortIndex;return pe!==0?pe:K.id-ue.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var g=Date,y=g.now();a.unstable_now=function(){return g.now()-y}}var E=[],C=[],A=1,T=null,N=3,R=!1,z=!1,V=!1,L=!1,M=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function H(K){for(var ue=r(C);ue!==null;){if(ue.callback===null)u(C);else if(ue.startTime<=K)u(C),ue.sortIndex=ue.expirationTime,t(E,ue);else break;ue=r(C)}}function G(K){if(V=!1,H(K),!z)if(r(E)!==null)z=!0,W||(W=!0,ye());else{var ue=r(C);ue!==null&&ze(G,ue.startTime-K)}}var W=!1,X=-1,ee=5,J=-1;function De(){return L?!0:!(a.unstable_now()-J<ee)}function ke(){if(L=!1,W){var K=a.unstable_now();J=K;var ue=!0;try{e:{z=!1,V&&(V=!1,x(X),X=-1),R=!0;var pe=N;try{t:{for(H(K),T=r(E);T!==null&&!(T.expirationTime>K&&De());){var Ve=T.callback;if(typeof Ve=="function"){T.callback=null,N=T.priorityLevel;var fe=Ve(T.expirationTime<=K);if(K=a.unstable_now(),typeof fe=="function"){T.callback=fe,H(K),ue=!0;break t}T===r(E)&&u(E),H(K)}else u(E);T=r(E)}if(T!==null)ue=!0;else{var Re=r(C);Re!==null&&ze(G,Re.startTime-K),ue=!1}}break e}finally{T=null,N=pe,R=!1}ue=void 0}}finally{ue?ye():W=!1}}}var ye;if(typeof B=="function")ye=function(){B(ke)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Ee=be.port2;be.port1.onmessage=ke,ye=function(){Ee.postMessage(null)}}else ye=function(){M(ke,0)};function ze(K,ue){X=M(function(){K(a.unstable_now())},ue)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(K){K.callback=null},a.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<K?Math.floor(1e3/K):5},a.unstable_getCurrentPriorityLevel=function(){return N},a.unstable_next=function(K){switch(N){case 1:case 2:case 3:var ue=3;break;default:ue=N}var pe=N;N=ue;try{return K()}finally{N=pe}},a.unstable_requestPaint=function(){L=!0},a.unstable_runWithPriority=function(K,ue){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var pe=N;N=K;try{return ue()}finally{N=pe}},a.unstable_scheduleCallback=function(K,ue,pe){var Ve=a.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?Ve+pe:Ve):pe=Ve,K){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=pe+fe,K={id:A++,callback:ue,priorityLevel:K,startTime:pe,expirationTime:fe,sortIndex:-1},pe>Ve?(K.sortIndex=pe,t(C,K),r(E)===null&&K===r(C)&&(V?(x(X),X=-1):V=!0,ze(G,pe-Ve))):(K.sortIndex=fe,t(E,K),z||R||(z=!0,W||(W=!0,ye()))),K},a.unstable_shouldYield=De,a.unstable_wrapCallback=function(K){var ue=N;return function(){var pe=N;N=ue;try{return K.apply(this,arguments)}finally{N=pe}}}}(XE)),XE}var IE={};/**
|
|
141
|
-
* @license React
|
|
142
|
-
* scheduler.development.js
|
|
143
|
-
*
|
|
144
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the MIT license found in the
|
|
147
|
-
* LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/var ik;function l5(){return ik||(ik=1,function(a){process.env.NODE_ENV!=="production"&&function(){function t(){if(G=!1,J){var K=a.unstable_now();ye=K;var ue=!0;try{e:{B=!1,H&&(H=!1,X(De),De=-1),x=!0;var pe=M;try{t:{for(g(K),L=u(R);L!==null&&!(L.expirationTime>K&&E());){var Ve=L.callback;if(typeof Ve=="function"){L.callback=null,M=L.priorityLevel;var fe=Ve(L.expirationTime<=K);if(K=a.unstable_now(),typeof fe=="function"){L.callback=fe,g(K),ue=!0;break t}L===u(R)&&s(R),g(K)}else s(R);L=u(R)}if(L!==null)ue=!0;else{var Re=u(z);Re!==null&&C(y,Re.startTime-K),ue=!1}}break e}finally{L=null,M=pe,x=!1}ue=void 0}}finally{ue?be():J=!1}}}function r(K,ue){var pe=K.length;K.push(ue);e:for(;0<pe;){var Ve=pe-1>>>1,fe=K[Ve];if(0<h(fe,ue))K[Ve]=ue,K[pe]=fe,pe=Ve;else break e}}function u(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ue=K[0],pe=K.pop();if(pe!==ue){K[0]=pe;e:for(var Ve=0,fe=K.length,Re=fe>>>1;Ve<Re;){var Le=2*(Ve+1)-1,he=K[Le],nt=Le+1,bt=K[nt];if(0>h(he,pe))nt<fe&&0>h(bt,he)?(K[Ve]=bt,K[nt]=pe,Ve=nt):(K[Ve]=he,K[Le]=pe,Ve=Le);else if(nt<fe&&0>h(bt,pe))K[Ve]=bt,K[nt]=pe,Ve=nt;else break e}}return ue}function h(K,ue){var pe=K.sortIndex-ue.sortIndex;return pe!==0?pe:K.id-ue.id}function g(K){for(var ue=u(z);ue!==null;){if(ue.callback===null)s(z);else if(ue.startTime<=K)s(z),ue.sortIndex=ue.expirationTime,r(R,ue);else break;ue=u(z)}}function y(K){if(H=!1,g(K),!B)if(u(R)!==null)B=!0,J||(J=!0,be());else{var ue=u(z);ue!==null&&C(y,ue.startTime-K)}}function E(){return G?!0:!(a.unstable_now()-ye<ke)}function C(K,ue){De=W(function(){K(a.unstable_now())},ue)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;a.unstable_now=function(){return A.now()}}else{var T=Date,N=T.now();a.unstable_now=function(){return T.now()-N}}var R=[],z=[],V=1,L=null,M=3,x=!1,B=!1,H=!1,G=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,J=!1,De=-1,ke=5,ye=-1;if(typeof ee=="function")var be=function(){ee(t)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,ze=Ee.port2;Ee.port1.onmessage=t,be=function(){ze.postMessage(null)}}else be=function(){W(t,0)};a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(K){K.callback=null},a.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ke=0<K?Math.floor(1e3/K):5},a.unstable_getCurrentPriorityLevel=function(){return M},a.unstable_next=function(K){switch(M){case 1:case 2:case 3:var ue=3;break;default:ue=M}var pe=M;M=ue;try{return K()}finally{M=pe}},a.unstable_requestPaint=function(){G=!0},a.unstable_runWithPriority=function(K,ue){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var pe=M;M=K;try{return ue()}finally{M=pe}},a.unstable_scheduleCallback=function(K,ue,pe){var Ve=a.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?Ve+pe:Ve):pe=Ve,K){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=pe+fe,K={id:V++,callback:ue,priorityLevel:K,startTime:pe,expirationTime:fe,sortIndex:-1},pe>Ve?(K.sortIndex=pe,r(z,K),u(R)===null&&K===u(z)&&(H?(X(De),De=-1):H=!0,C(y,pe-Ve))):(K.sortIndex=fe,r(R,K),B||x||(B=!0,J||(J=!0,be()))),K},a.unstable_shouldYield=E,a.unstable_wrapCallback=function(K){var ue=M;return function(){var pe=M;M=ue;try{return K.apply(this,arguments)}finally{M=pe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(IE)),IE}var uk;function RN(){return uk||(uk=1,process.env.NODE_ENV==="production"?rS.exports=u5():rS.exports=l5()),rS.exports}/**
|
|
149
|
-
* @license React
|
|
150
|
-
* react-dom-client.production.js
|
|
151
|
-
*
|
|
152
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the MIT license found in the
|
|
155
|
-
* LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/var lk;function o5(){if(lk)return Sb;lk=1;var a=RN(),t=Z,r=FC;function u(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function h(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function g(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function y(i){if(h(i)!==i)throw Error(u(188))}function E(i){var o=i.alternate;if(!o){if(o=h(i),o===null)throw Error(u(188));return o!==i?null:i}for(var c=i,m=o;;){var S=c.return;if(S===null)break;var w=S.alternate;if(w===null){if(m=S.return,m!==null){c=m;continue}break}if(S.child===w.child){for(w=S.child;w;){if(w===c)return y(S),i;if(w===m)return y(S),o;w=w.sibling}throw Error(u(188))}if(c.return!==m.return)c=S,m=w;else{for(var F=!1,$=S.child;$;){if($===c){F=!0,c=S,m=w;break}if($===m){F=!0,m=S,c=w;break}$=$.sibling}if(!F){for($=w.child;$;){if($===c){F=!0,c=w,m=S;break}if($===m){F=!0,m=w,c=S;break}$=$.sibling}if(!F)throw Error(u(189))}}if(c.alternate!==m)throw Error(u(190))}if(c.tag!==3)throw Error(u(188));return c.stateNode.current===c?i:o}function C(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=C(i),o!==null)return o;i=i.sibling}return null}var A=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function ye(i){return i===null||typeof i!="object"?null:(i=ke&&i[ke]||i["@@iterator"],typeof i=="function"?i:null)}var be=Symbol.for("react.client.reference");function Ee(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===be?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case z:return"Fragment";case L:return"Profiler";case V:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList";case J:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case R:return"Portal";case B:return(i.displayName||"Context")+".Provider";case x:return(i._context.displayName||"Context")+".Consumer";case H:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case X:return o=i.displayName||null,o!==null?o:Ee(i.type)||"Memo";case ee:o=i._payload,i=i._init;try{return Ee(i(o))}catch{}}return null}var ze=Array.isArray,K=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},Ve=[],fe=-1;function Re(i){return{current:i}}function Le(i){0>fe||(i.current=Ve[fe],Ve[fe]=null,fe--)}function he(i,o){fe++,Ve[fe]=i.current,i.current=o}var nt=Re(null),bt=Re(null),rt=Re(null),_n=Re(null);function Ft(i,o){switch(he(rt,o),he(bt,i),he(nt,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?ta(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=ta(o),i=pa(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Le(nt),he(nt,i)}function oe(){Le(nt),Le(bt),Le(rt)}function Qe(i){i.memoizedState!==null&&he(_n,i);var o=nt.current,c=pa(o,i.type);o!==c&&(he(bt,i),he(nt,c))}function Ne(i){bt.current===i&&(Le(nt),Le(bt)),_n.current===i&&(Le(_n),Si._currentValue=pe)}var Ie=Object.prototype.hasOwnProperty,St=a.unstable_scheduleCallback,tt=a.unstable_cancelCallback,jn=a.unstable_shouldYield,Ut=a.unstable_requestPaint,Ot=a.unstable_now,Fn=a.unstable_getCurrentPriorityLevel,Zt=a.unstable_ImmediatePriority,Rt=a.unstable_UserBlockingPriority,Yt=a.unstable_NormalPriority,Ln=a.unstable_LowPriority,va=a.unstable_IdlePriority,Ur=a.log,Ba=a.unstable_setDisableYieldValue,xa=null,Xt=null;function Dn(i){if(typeof Ur=="function"&&Ba(i),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(xa,i)}catch{}}var Kt=Math.clz32?Math.clz32:ge,mr=Math.log,ai=Math.LN2;function ge(i){return i>>>=0,i===0?32:31-(mr(i)/ai|0)|0}var xe=256,Fe=4194304;function Ke(i){var o=i&42;if(o!==0)return o;switch(i&-i){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:return 64;case 128:return 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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function vt(i,o,c){var m=i.pendingLanes;if(m===0)return 0;var S=0,w=i.suspendedLanes,F=i.pingedLanes;i=i.warmLanes;var $=m&134217727;return $!==0?(m=$&~w,m!==0?S=Ke(m):(F&=$,F!==0?S=Ke(F):c||(c=$&~i,c!==0&&(S=Ke(c))))):($=m&~w,$!==0?S=Ke($):F!==0?S=Ke(F):c||(c=m&~i,c!==0&&(S=Ke(c)))),S===0?0:o!==0&&o!==S&&(o&w)===0&&(w=S&-S,c=o&-o,w>=c||w===32&&(c&4194048)!==0)?o:S}function nn(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function Wt(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zt(){var i=xe;return xe<<=1,(xe&4194048)===0&&(xe=256),i}function it(){var i=Fe;return Fe<<=1,(Fe&62914560)===0&&(Fe=4194304),i}function ut(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function st(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function gt(i,o,c,m,S,w){var F=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var $=i.entanglements,te=i.expirationTimes,Ce=i.hiddenUpdates;for(c=F&~c;0<c;){var Ye=31-Kt(c),Ze=1<<Ye;$[Ye]=0,te[Ye]=-1;var Oe=Ce[Ye];if(Oe!==null)for(Ce[Ye]=null,Ye=0;Ye<Oe.length;Ye++){var we=Oe[Ye];we!==null&&(we.lane&=-536870913)}c&=~Ze}m!==0&&Pt(i,m,0),w!==0&&S===0&&i.tag!==0&&(i.suspendedLanes|=w&~(F&~o))}function Pt(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var m=31-Kt(o);i.entangledLanes|=o,i.entanglements[m]=i.entanglements[m]|1073741824|c&4194090}function Vt(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var m=31-Kt(c),S=1<<m;S&o|i[m]&o&&(i[m]|=o),c&=~S}}function It(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Dt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function pn(){var i=ue.p;return i!==0?i:(i=window.event,i===void 0?32:og(i.type))}function xr(i,o){var c=ue.p;try{return ue.p=i,o()}finally{ue.p=c}}var ia=Math.random().toString(36).slice(2),at="__reactFiber$"+ia,Ct="__reactProps$"+ia,jt="__reactContainer$"+ia,Aa="__reactEvents$"+ia,ur="__reactListeners$"+ia,ri="__reactHandles$"+ia,Zi="__reactResources$"+ia,ot="__reactMarker$"+ia;function vr(i){delete i[at],delete i[Ct],delete i[Aa],delete i[ur],delete i[ri]}function an(i){var o=i[at];if(o)return o;for(var c=i.parentNode;c;){if(o=c[jt]||c[at]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=Mr(i);i!==null;){if(c=i[at])return c;i=Mr(i)}return o}i=c,c=i.parentNode}return null}function xi(i){if(i=i[at]||i[jt]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function $o(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(u(33))}function Yu(i){var o=i[Zi];return o||(o=i[Zi]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function za(i){i[ot]=!0}var Go=new Set,Hr={};function Pu(i,o){Qu(i,o),Qu(i+"Capture",o)}function Qu(i,o){for(Hr[i]=o,i=0;i<o.length;i++)Go.add(o[i])}var Un=RegExp("^[: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]*$"),Ai={},bl={};function Yo(i){return Ie.call(bl,i)?!0:Ie.call(Ai,i)?!1:Un.test(i)?bl[i]=!0:(Ai[i]=!0,!1)}function Xu(i,o,c){if(Yo(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function ro(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function Iu(i,o,c,m){if(m===null)i.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(o,c,""+m)}}var yd,Ih;function Ys(i){if(yd===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);yd=o&&o[1]||"",Ih=-1<c.stack.indexOf(`
|
|
157
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
158
|
-
`+yd+i+Ih}var ii=!1;function Po(i,o){if(!i||ii)return"";ii=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(o){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(we){var Oe=we}Reflect.construct(i,[],Ze)}else{try{Ze.call()}catch(we){Oe=we}i.call(Ze.prototype)}}else{try{throw Error()}catch(we){Oe=we}(Ze=i())&&typeof Ze.catch=="function"&&Ze.catch(function(){})}}catch(we){if(we&&Oe&&typeof we.stack=="string")return[we.stack,Oe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),F=w[0],$=w[1];if(F&&$){var te=F.split(`
|
|
159
|
-
`),Ce=$.split(`
|
|
160
|
-
`);for(S=m=0;m<te.length&&!te[m].includes("DetermineComponentFrameRoot");)m++;for(;S<Ce.length&&!Ce[S].includes("DetermineComponentFrameRoot");)S++;if(m===te.length||S===Ce.length)for(m=te.length-1,S=Ce.length-1;1<=m&&0<=S&&te[m]!==Ce[S];)S--;for(;1<=m&&0<=S;m--,S--)if(te[m]!==Ce[S]){if(m!==1||S!==1)do if(m--,S--,0>S||te[m]!==Ce[S]){var Ye=`
|
|
161
|
-
`+te[m].replace(" at new "," at ");return i.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",i.displayName)),Ye}while(1<=m&&0<=S);break}}}finally{ii=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?Ys(c):""}function Ps(i){switch(i.tag){case 26:case 27:case 5:return Ys(i.type);case 16:return Ys("Lazy");case 13:return Ys("Suspense");case 19:return Ys("SuspenseList");case 0:case 15:return Po(i.type,!1);case 11:return Po(i.type.render,!1);case 1:return Po(i.type,!0);case 31:return Ys("Activity");default:return""}}function Zh(i){try{var o="";do o+=Ps(i),i=i.return;while(i);return o}catch(c){return`
|
|
162
|
-
Error generating stack: `+c.message+`
|
|
163
|
-
`+c.stack}}function Ar(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Zc(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function bd(i){var o=Zc(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),m=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var S=c.get,w=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return S.call(this)},set:function(F){m=""+F,w.call(this,F)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(F){m=""+F},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Qo(i){i._valueTracker||(i._valueTracker=bd(i))}function Xo(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),m="";return i&&(m=Zc(i)?i.checked?"true":"false":i.value),i=m,i!==c?(o.setValue(i),!0):!1}function io(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Ig=/[\n"\\]/g;function gu(i){return i.replace(Ig,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Sd(i,o,c,m,S,w,F,$){i.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?i.type=F:i.removeAttribute("type"),o!=null?F==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Ar(o)):i.value!==""+Ar(o)&&(i.value=""+Ar(o)):F!=="submit"&&F!=="reset"||i.removeAttribute("value"),o!=null?Qs(i,F,Ar(o)):c!=null?Qs(i,F,Ar(c)):m!=null&&i.removeAttribute("value"),S==null&&w!=null&&(i.defaultChecked=!!w),S!=null&&(i.checked=S&&typeof S!="function"&&typeof S!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?i.name=""+Ar($):i.removeAttribute("name")}function Dd(i,o,c,m,S,w,F,$){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),o!=null||c!=null){if(!(w!=="submit"&&w!=="reset"||o!=null))return;c=c!=null?""+Ar(c):"",o=o!=null?""+Ar(o):c,$||o===i.value||(i.value=o),i.defaultValue=o}m=m??S,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=$?i.checked:!!m,i.defaultChecked=!!m,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(i.name=F)}function Qs(i,o,c){o==="number"&&io(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Xs(i,o,c,m){if(i=i.options,o){o={};for(var S=0;S<c.length;S++)o["$"+c[S]]=!0;for(c=0;c<i.length;c++)S=o.hasOwnProperty("$"+i[c].value),i[c].selected!==S&&(i[c].selected=S),S&&m&&(i[c].defaultSelected=!0)}else{for(c=""+Ar(c),o=null,S=0;S<i.length;S++){if(i[S].value===c){i[S].selected=!0,m&&(i[S].defaultSelected=!0);return}o!==null||i[S].disabled||(o=i[S])}o!==null&&(o.selected=!0)}}function Kh(i,o,c){if(o!=null&&(o=""+Ar(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Ar(c):""}function Ed(i,o,c,m){if(o==null){if(m!=null){if(c!=null)throw Error(u(92));if(ze(m)){if(1<m.length)throw Error(u(93));m=m[0]}c=m}c==null&&(c=""),o=c}c=Ar(o),i.defaultValue=c,m=i.textContent,m===c&&m!==""&&m!==null&&(i.value=m)}function Io(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var Is=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cd(i,o,c){var m=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?m?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":m?i.setProperty(o,c):typeof c!="number"||c===0||Is.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function Kc(i,o,c){if(o!=null&&typeof o!="object")throw Error(u(62));if(i=i.style,c!=null){for(var m in c)!c.hasOwnProperty(m)||o!=null&&o.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var S in o)m=o[S],o.hasOwnProperty(S)&&c[S]!==m&&Cd(i,S,m)}else for(var w in o)o.hasOwnProperty(w)&&Cd(i,w,o[w])}function Zs(i){if(i.indexOf("-")===-1)return!1;switch(i){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 Zg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Im=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wc(i){return Im.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Zo=null;function Wh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Jc=null,ef=null;function Zm(i){var o=xi(i);if(o&&(i=o.stateNode)){var c=i[Ct]||null;e:switch(i=o.stateNode,o.type){case"input":if(Sd(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+gu(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var m=c[o];if(m!==i&&m.form===i.form){var S=m[Ct]||null;if(!S)throw Error(u(90));Sd(m,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(o=0;o<c.length;o++)m=c[o],m.form===i.form&&Xo(m)}break e;case"textarea":Kh(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Xs(i,!!c.multiple,o,!1)}}}var Km=!1;function tf(i,o,c){if(Km)return i(o,c);Km=!0;try{var m=i(o);return m}finally{if(Km=!1,(Jc!==null||ef!==null)&&(xc(),Jc&&(o=Jc,i=ef,ef=Jc=null,Zm(o),i)))for(o=0;o<i.length;o++)Zm(i[o])}}function Ks(i,o){var c=i.stateNode;if(c===null)return null;var m=c[Ct]||null;if(m===null)return null;c=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(u(231,o,typeof c));return c}var Sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nf=!1;if(Sl)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){nf=!0}}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{nf=!1}var lo=null,af=null,Ws=null;function Wm(){if(Ws)return Ws;var i,o=af,c=o.length,m,S="value"in lo?lo.value:lo.textContent,w=S.length;for(i=0;i<c&&o[i]===S[i];i++);var F=c-i;for(m=1;m<=F&&o[c-m]===S[w-m];m++);return Ws=S.slice(i,1<m?1-m:void 0)}function dn(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function ua(){return!0}function Jh(){return!1}function ui(i){function o(c,m,S,w,F){this._reactName=c,this._targetInst=S,this.type=m,this.nativeEvent=w,this.target=F,this.currentTarget=null;for(var $ in i)i.hasOwnProperty($)&&(c=i[$],this[$]=c?c(w):w[$]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?ua:Jh,this.isPropagationStopped=Jh,this}return A(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=ua)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=ua)},persist:function(){},isPersistent:ua}),o}var Ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ep=ui(Ko),wd=A({},Ko,{view:0,detail:0}),Kg=ui(wd),tp,np,Qa,oo=A({},wd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vr,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Qa&&(Qa&&i.type==="mousemove"?(tp=i.screenX-Qa.screenX,np=i.screenY-Qa.screenY):np=tp=0,Qa=i),tp)},movementY:function(i){return"movementY"in i?i.movementY:np}}),so=ui(oo),Jm=A({},oo,{dataTransfer:0}),ap=ui(Jm),yu=A({},wd,{relatedTarget:0}),rp=ui(yu),Wg=A({},Ko,{animationName:0,elapsedTime:0,pseudoElement:0}),Jg=ui(Wg),ey=A({},Ko,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),rf=ui(ey),ev=A({},Ko,{data:0}),li=ui(ev),ty={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ki={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nv(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=tv[i])?!!o[i]:!1}function Vr(){return nv}var Dl=A({},wd,{key:function(i){if(i.key){var o=ty[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=dn(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Ki[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vr,charCode:function(i){return i.type==="keypress"?dn(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?dn(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Wi=ui(Dl),Mn=A({},oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bu=ui(Mn),uf=A({},wd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vr}),av=ui(uf),qr=A({},Ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),ny=ui(qr),ip=A({},oo,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Js=ui(ip),up=A({},Ko,{newState:0,oldState:0}),xd=ui(up),ec=[9,13,27,32],Ad=Sl&&"CompositionEvent"in window,lf=null;Sl&&"documentMode"in document&&(lf=document.documentMode);var lp=Sl&&"TextEvent"in window&&!lf,Su=Sl&&(!Ad||lf&&8<lf&&11>=lf),Od=" ",Td=!1;function kd(i,o){switch(i){case"keyup":return ec.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function El(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Cl=!1;function rv(i,o){switch(i){case"compositionend":return El(o);case"keypress":return o.which!==32?null:(Td=!0,Od);case"textInput":return i=o.data,i===Od&&Td?null:i;default:return null}}function Wo(i,o){if(Cl)return i==="compositionend"||!Ad&&kd(i,o)?(i=Wm(),Ws=af=lo=null,Cl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Su&&o.locale!=="ko"?null:o.data;default:return null}}var Oi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function of(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!Oi[i.type]:o==="textarea"}function Jo(i,o,c,m){Jc?ef?ef.push(m):ef=[m]:Jc=m,o=Xf(o,"onChange"),0<o.length&&(c=new ep("onChange","change",null,c,m),i.push({event:c,listeners:o}))}var Du=null,Eu=null;function iv(i){kc(i,0)}function wl(i){var o=$o(i);if(Xo(o))return i}function uv(i,o){if(i==="change")return o}var lv=!1;if(Sl){var tc;if(Sl){var Cu="oninput"in document;if(!Cu){var ov=document.createElement("div");ov.setAttribute("oninput","return;"),Cu=typeof ov.oninput=="function"}tc=Cu}else tc=!1;lv=tc&&(!document.documentMode||9<document.documentMode)}function sf(){Du&&(Du.detachEvent("onpropertychange",Nd),Eu=Du=null)}function Nd(i){if(i.propertyName==="value"&&wl(Eu)){var o=[];Jo(o,Eu,i,Wh(i)),tf(iv,o)}}function Rd(i,o,c){i==="focusin"?(sf(),Du=o,Eu=c,Du.attachEvent("onpropertychange",Nd)):i==="focusout"&&sf()}function oi(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return wl(Eu)}function wu(i,o){if(i==="click")return wl(o)}function sv(i,o){if(i==="input"||i==="change")return wl(o)}function cv(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Or=typeof Object.is=="function"?Object.is:cv;function Ji(i,o){if(Or(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),m=Object.keys(o);if(c.length!==m.length)return!1;for(m=0;m<c.length;m++){var S=c[m];if(!Ie.call(o,S)||!Or(i[S],o[S]))return!1}return!0}function gr(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function ga(i,o){var c=gr(i);i=0;for(var m;c;){if(c.nodeType===3){if(m=i+c.textContent.length,i<=o&&m>=o)return{node:c,offset:o-i};i=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=gr(c)}}function Bd(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Bd(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function fv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=io(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=io(i.document)}return o}function _d(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var nc=Sl&&"documentMode"in document&&11>=document.documentMode,xl=null,$r=null,de=null,qe=!1;function Be(i,o,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;qe||xl==null||xl!==io(m)||(m=xl,"selectionStart"in m&&_d(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),de&&Ji(de,m)||(de=m,m=Xf($r,"onSelect"),0<m.length&&(o=new ep("onSelect","select",null,o,c),i.push({event:o,listeners:m}),o.target=xl)))}function ht(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var qt={animationend:ht("Animation","AnimationEnd"),animationiteration:ht("Animation","AnimationIteration"),animationstart:ht("Animation","AnimationStart"),transitionrun:ht("Transition","TransitionRun"),transitionstart:ht("Transition","TransitionStart"),transitioncancel:ht("Transition","TransitionCancel"),transitionend:ht("Transition","TransitionEnd")},rn={},la={};Sl&&(la=document.createElement("div").style,"AnimationEvent"in window||(delete qt.animationend.animation,delete qt.animationiteration.animation,delete qt.animationstart.animation),"TransitionEvent"in window||delete qt.transitionend.transition);function zn(i){if(rn[i])return rn[i];if(!qt[i])return i;var o=qt[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in la)return rn[i]=o[c];return i}var op=zn("animationend"),dv=zn("animationiteration"),eu=zn("animationstart"),cf=zn("transitionrun"),sp=zn("transitionstart"),ac=zn("transitioncancel"),ff=zn("transitionend"),df=new Map,$n="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$n.push("scrollEnd");function xu(i,o){df.set(i,o),Pu(o,[i])}var cp=new WeakMap;function Gr(i,o){if(typeof i=="object"&&i!==null){var c=cp.get(i);return c!==void 0?c:(o={value:i,source:o,stack:Zh(o)},cp.set(i,o),o)}return{value:i,source:o,stack:Zh(o)}}var Ti=[],es=0,Al=0;function ki(){for(var i=es,o=Al=es=0;o<i;){var c=Ti[o];Ti[o++]=null;var m=Ti[o];Ti[o++]=null;var S=Ti[o];Ti[o++]=null;var w=Ti[o];if(Ti[o++]=null,m!==null&&S!==null){var F=m.pending;F===null?S.next=S:(S.next=F.next,F.next=S),m.pending=S}w!==0&&fo(c,S,w)}}function si(i,o,c,m){Ti[es++]=i,Ti[es++]=o,Ti[es++]=c,Ti[es++]=m,Al|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function co(i,o,c,m){return si(i,o,c,m),hf(i)}function Zu(i,o){return si(i,null,null,o),hf(i)}function fo(i,o,c){i.lanes|=c;var m=i.alternate;m!==null&&(m.lanes|=c);for(var S=!1,w=i.return;w!==null;)w.childLanes|=c,m=w.alternate,m!==null&&(m.childLanes|=c),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(S=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,S&&o!==null&&(S=31-Kt(c),i=w.hiddenUpdates,m=i[S],m===null?i[S]=[o]:m.push(o),o.lane=c|536870912),w):null}function hf(i){if(50<wc)throw wc=0,qv=null,Error(u(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var rc={};function Fd(i,o,c,m){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(i,o,c,m){return new Fd(i,o,c,m)}function ho(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Tr(i,o){var c=i.alternate;return c===null?(c=ci(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function un(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function et(i,o,c,m,S,w){var F=0;if(m=i,typeof i=="function")ho(i)&&(F=1);else if(typeof i=="string")F=Ay(i,c,nt.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case J:return i=ci(31,c,o,S),i.elementType=J,i.lanes=w,i;case z:return Au(c.children,S,w,o);case V:F=8,S|=24;break;case L:return i=ci(12,c,o,S|2),i.elementType=L,i.lanes=w,i;case G:return i=ci(13,c,o,S),i.elementType=G,i.lanes=w,i;case W:return i=ci(19,c,o,S),i.elementType=W,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case M:case B:F=10;break e;case x:F=9;break e;case H:F=11;break e;case X:F=14;break e;case ee:F=16,m=null;break e}F=29,c=Error(u(130,i===null?"null":typeof i,"")),m=null}return o=ci(F,c,o,S),o.elementType=i,o.type=m,o.lanes=w,o}function Au(i,o,c,m){return i=ci(7,i,m,o),i.lanes=c,i}function pf(i,o,c){return i=ci(6,i,null,o),i.lanes=c,i}function ya(i,o,c){return o=ci(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Ku=[],Ol=0,Md=null,ic=0,Ou=[],Ni=0,ca=null,ba=1,ja="";function Hn(i,o){Ku[Ol++]=ic,Ku[Ol++]=Md,Md=i,ic=o}function zd(i,o,c){Ou[Ni++]=ba,Ou[Ni++]=ja,Ou[Ni++]=ca,ca=i;var m=ba;i=ja;var S=32-Kt(m)-1;m&=~(1<<S),c+=1;var w=32-Kt(o)+S;if(30<w){var F=S-S%5;w=(m&(1<<F)-1).toString(32),m>>=F,S-=F,ba=1<<32-Kt(o)+S|c<<S|m,ja=w+i}else ba=1<<w|c<<S|m,ja=i}function uc(i){i.return!==null&&(Hn(i,1),zd(i,1,0))}function Tu(i){for(;i===Md;)Md=Ku[--Ol],Ku[Ol]=null,ic=Ku[--Ol],Ku[Ol]=null;for(;i===ca;)ca=Ou[--Ni],Ou[Ni]=null,ja=Ou[--Ni],Ou[Ni]=null,ba=Ou[--Ni],Ou[Ni]=null}var Ea=null,Gn=null,xn=!1,Yr=null,Pr=!1,Tl=Error(u(519));function Ri(i){var o=Error(u(418,""));throw po(Gr(o,i)),Tl}function jd(i){var o=i.stateNode,c=i.type,m=i.memoizedProps;switch(o[at]=i,o[Ct]=m,c){case"dialog":sn("cancel",o),sn("close",o);break;case"iframe":case"object":case"embed":sn("load",o);break;case"video":case"audio":for(c=0;c<Sh.length;c++)sn(Sh[c],o);break;case"source":sn("error",o);break;case"img":case"image":case"link":sn("error",o),sn("load",o);break;case"details":sn("toggle",o);break;case"input":sn("invalid",o),Dd(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Qo(o);break;case"select":sn("invalid",o);break;case"textarea":sn("invalid",o),Ed(o,m.value,m.defaultValue,m.children),Qo(o)}c=m.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||m.suppressHydrationWarning===!0||Wv(o.textContent,c)?(m.popover!=null&&(sn("beforetoggle",o),sn("toggle",o)),m.onScroll!=null&&sn("scroll",o),m.onScrollEnd!=null&&sn("scrollend",o),m.onClick!=null&&(o.onclick=pm),o=!0):o=!1,o||Ri(i)}function hv(i){for(Ea=i.return;Ea;)switch(Ea.tag){case 5:case 13:Pr=!1;return;case 27:case 3:Pr=!0;return;default:Ea=Ea.return}}function mf(i){if(i!==Ea)return!1;if(!xn)return hv(i),xn=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||ol(i.type,i.memoizedProps)),c=!c),c&&Gn&&Ri(i),hv(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){Gn=cl(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}Gn=null}}else o===27?(o=Gn,Lu(i.type)?(i=Cs,Cs=null,Gn=i):Gn=o):Gn=Ea?cl(i.stateNode.nextSibling):null;return!0}function vf(){Gn=Ea=null,xn=!1}function pv(){var i=Yr;return i!==null&&(qi===null?qi=i:qi.push.apply(qi,i),Yr=null),i}function po(i){Yr===null?Yr=[i]:Yr.push(i)}var mo=Re(null),kl=null,q=null;function Bi(i,o,c){he(mo,o._currentValue),o._currentValue=c}function tu(i){i._currentValue=mo.current,Le(mo)}function fi(i,o,c){for(;i!==null;){var m=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),i===c)break;i=i.return}}function An(i,o,c,m){var S=i.child;for(S!==null&&(S.return=i);S!==null;){var w=S.dependencies;if(w!==null){var F=S.child;w=w.firstContext;e:for(;w!==null;){var $=w;w=S;for(var te=0;te<o.length;te++)if($.context===o[te]){w.lanes|=c,$=w.alternate,$!==null&&($.lanes|=c),fi(w.return,c,i),m||(F=null);break e}w=$.next}}else if(S.tag===18){if(F=S.return,F===null)throw Error(u(341));F.lanes|=c,w=F.alternate,w!==null&&(w.lanes|=c),fi(F,c,i),F=null}else F=S.child;if(F!==null)F.return=S;else for(F=S;F!==null;){if(F===i){F=null;break}if(S=F.sibling,S!==null){S.return=F.return,F=S;break}F=F.return}S=F}}function gf(i,o,c,m){i=null;for(var S=o,w=!1;S!==null;){if(!w){if((S.flags&524288)!==0)w=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var F=S.alternate;if(F===null)throw Error(u(387));if(F=F.memoizedProps,F!==null){var $=S.type;Or(S.pendingProps.value,F.value)||(i!==null?i.push($):i=[$])}}else if(S===_n.current){if(F=S.alternate,F===null)throw Error(u(387));F.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(i!==null?i.push(Si):i=[Si])}S=S.return}i!==null&&An(o,i,c,m),o.flags|=262144}function Ld(i){for(i=i.firstContext;i!==null;){if(!Or(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function ts(i){kl=i,q=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Oa(i){return mv(kl,i)}function Ud(i,o){return kl===null&&ts(i),mv(i,o)}function mv(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},q===null){if(i===null)throw Error(u(308));q=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else q=q.next=o;return c}var yf=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,m){i.push(m)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},fp=a.unstable_scheduleCallback,ay=a.unstable_NormalPriority,fa={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bf(){return{controller:new yf,data:new Map,refCount:0}}function Nl(i){i.refCount--,i.refCount===0&&fp(ay,function(){i.controller.abort()})}var ns=null,Hd=0,ku=0,da=null;function dp(i,o){if(ns===null){var c=ns=[];Hd=0,ku=Ds(),da={status:"pending",value:void 0,then:function(m){c.push(m)}}}return Hd++,o.then(hp,hp),o}function hp(){if(--Hd===0&&ns!==null){da!==null&&(da.status="fulfilled");var i=ns;ns=null,ku=0,da=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function ry(i,o){var c=[],m={status:"pending",value:null,reason:null,then:function(S){c.push(S)}};return i.then(function(){m.status="fulfilled",m.value=o;for(var S=0;S<c.length;S++)(0,c[S])(o)},function(S){for(m.status="rejected",m.reason=S,S=0;S<c.length;S++)(0,c[S])(void 0)}),m}var pp=K.S;K.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&dp(i,o),pp!==null&&pp(i,o)};var Rl=Re(null);function Wu(){var i=Rl.current;return i!==null?i:ha.pooledCache}function lc(i,o){o===null?he(Rl,Rl.current):he(Rl,o.pool)}function mp(){var i=Wu();return i===null?null:{parent:fa._currentValue,pool:i}}var yr=Error(u(460)),vp=Error(u(474)),Vd=Error(u(542)),gp={then:function(){}};function yp(i){return i=i.status,i==="fulfilled"||i==="rejected"}function qd(){}function bp(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(qd,qd),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,gv(i),i;default:if(typeof o.status=="string")o.then(qd,qd);else{if(i=ha,i!==null&&100<i.shellSuspendCounter)throw Error(u(482));i=o,i.status="pending",i.then(function(m){if(o.status==="pending"){var S=o;S.status="fulfilled",S.value=m}},function(m){if(o.status==="pending"){var S=o;S.status="rejected",S.reason=m}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,gv(i),i}throw as=o,yr}}var as=null;function vv(){if(as===null)throw Error(u(459));var i=as;return as=null,i}function gv(i){if(i===yr||i===Vd)throw Error(u(483))}var Nu=!1;function rs(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function _i(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ju(i,o,c){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(ea&2)!==0){var S=m.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),m.pending=o,o=hf(i),fo(i,null,c),o}return si(i,m,o,c),hf(i)}function sc(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var m=o.lanes;m&=i.pendingLanes,c|=m,o.lanes=c,Vt(i,c)}}function el(i,o){var c=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var S=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var F={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};w===null?S=w=F:w=w.next=F,c=c.next}while(c!==null);w===null?S=w=o:w=w.next=o}else S=w=o;c={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var $d=!1;function Ru(){if($d){var i=da;if(i!==null)throw i}}function Ka(i,o,c,m){$d=!1;var S=i.updateQueue;Nu=!1;var w=S.firstBaseUpdate,F=S.lastBaseUpdate,$=S.shared.pending;if($!==null){S.shared.pending=null;var te=$,Ce=te.next;te.next=null,F===null?w=Ce:F.next=Ce,F=te;var Ye=i.alternate;Ye!==null&&(Ye=Ye.updateQueue,$=Ye.lastBaseUpdate,$!==F&&($===null?Ye.firstBaseUpdate=Ce:$.next=Ce,Ye.lastBaseUpdate=te))}if(w!==null){var Ze=S.baseState;F=0,Ye=Ce=te=null,$=w;do{var Oe=$.lane&-536870913,we=Oe!==$.lane;if(we?(Nn&Oe)===Oe:(m&Oe)===Oe){Oe!==0&&Oe===ku&&($d=!0),Ye!==null&&(Ye=Ye.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var kt=i,_t=$;Oe=o;var Zn=c;switch(_t.tag){case 1:if(kt=_t.payload,typeof kt=="function"){Ze=kt.call(Zn,Ze,Oe);break e}Ze=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=_t.payload,Oe=typeof kt=="function"?kt.call(Zn,Ze,Oe):kt,Oe==null)break e;Ze=A({},Ze,Oe);break e;case 2:Nu=!0}}Oe=$.callback,Oe!==null&&(i.flags|=64,we&&(i.flags|=8192),we=S.callbacks,we===null?S.callbacks=[Oe]:we.push(Oe))}else we={lane:Oe,tag:$.tag,payload:$.payload,callback:$.callback,next:null},Ye===null?(Ce=Ye=we,te=Ze):Ye=Ye.next=we,F|=Oe;if($=$.next,$===null){if($=S.shared.pending,$===null)break;we=$,$=we.next,we.next=null,S.lastBaseUpdate=we,S.shared.pending=null}}while(!0);Ye===null&&(te=Ze),S.baseState=te,S.firstBaseUpdate=Ce,S.lastBaseUpdate=Ye,w===null&&(S.shared.lanes=0),To|=F,i.lanes=F,i.memoizedState=Ze}}function Sp(i,o){if(typeof i!="function")throw Error(u(191,i));i.call(o)}function Sf(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)Sp(c[i],o)}var is=Re(null),vo=Re(0);function Ca(i,o){i=Oo,he(vo,i),he(is,o),Oo=i|o.baseLanes}function cc(){he(vo,Oo),he(is,is.current)}function Df(){Oo=vo.current,Le(is),Le(vo)}var di=0,ln=null,Xn=null,En=null,fc=!1,Fi=!1,kr=!1,nu=0,Qr=0,hi=null,Dp=0;function Tn(){throw Error(u(321))}function Ef(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Or(i[c],o[c]))return!1;return!0}function Ep(i,o,c,m,S,w){return di=w,ln=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,K.H=i===null||i.memoizedState===null?wv:Mp,kr=!1,w=c(m,S),kr=!1,Fi&&(w=yv(o,c,m,S)),us(i),w}function us(i){K.H=nh;var o=Xn!==null&&Xn.next!==null;if(di=0,En=Xn=ln=null,fc=!1,Qr=0,hi=null,o)throw Error(u(300));i===null||sr||(i=i.dependencies,i!==null&&Ld(i)&&(sr=!0))}function yv(i,o,c,m){ln=i;var S=0;do{if(Fi&&(hi=null),Qr=0,Fi=!1,25<=S)throw Error(u(301));if(S+=1,En=Xn=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}K.H=Ml,w=o(c,m)}while(Fi);return w}function Cp(){var i=K.H,o=i.useState()[0];return o=typeof o.then=="function"?Yd(o):o,i=i.useState()[0],(Xn!==null?Xn.memoizedState:null)!==i&&(ln.flags|=1024),o}function wp(){var i=nu!==0;return nu=0,i}function Bl(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function Gd(i){if(fc){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}fc=!1}di=0,En=Xn=ln=null,Fi=!1,Qr=nu=0,hi=null}function Xr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?ln.memoizedState=En=i:En=En.next=i,En}function La(){if(Xn===null){var i=ln.alternate;i=i!==null?i.memoizedState:null}else i=Xn.next;var o=En===null?ln.memoizedState:En.next;if(o!==null)En=o,Xn=i;else{if(i===null)throw ln.alternate===null?Error(u(467)):Error(u(310));Xn=i,i={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},En===null?ln.memoizedState=En=i:En=En.next=i}return En}function go(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yd(i){var o=Qr;return Qr+=1,hi===null&&(hi=[]),i=bp(hi,i,o),o=ln,(En===null?o.memoizedState:En.next)===null&&(o=o.alternate,K.H=o===null||o.memoizedState===null?wv:Mp),i}function Wa(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Yd(i);if(i.$$typeof===B)return Oa(i)}throw Error(u(438,String(i)))}function Cf(i){var o=null,c=ln.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var m=ln.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(S){return S.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=go(),ln.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),m=0;m<i;m++)c[m]=De;return o.index++,c}function tl(i,o){return typeof o=="function"?o(i):o}function Pd(i){var o=La();return xp(o,Xn,i)}function xp(i,o,c){var m=i.queue;if(m===null)throw Error(u(311));m.lastRenderedReducer=c;var S=i.baseQueue,w=m.pending;if(w!==null){if(S!==null){var F=S.next;S.next=w.next,w.next=F}o.baseQueue=S=w,m.pending=null}if(w=i.baseState,S===null)i.memoizedState=w;else{o=S.next;var $=F=null,te=null,Ce=o,Ye=!1;do{var Ze=Ce.lane&-536870913;if(Ze!==Ce.lane?(Nn&Ze)===Ze:(di&Ze)===Ze){var Oe=Ce.revertLane;if(Oe===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),Ze===ku&&(Ye=!0);else if((di&Oe)===Oe){Ce=Ce.next,Oe===ku&&(Ye=!0);continue}else Ze={lane:0,revertLane:Ce.revertLane,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},te===null?($=te=Ze,F=w):te=te.next=Ze,ln.lanes|=Oe,To|=Oe;Ze=Ce.action,kr&&c(w,Ze),w=Ce.hasEagerState?Ce.eagerState:c(w,Ze)}else Oe={lane:Ze,revertLane:Ce.revertLane,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},te===null?($=te=Oe,F=w):te=te.next=Oe,ln.lanes|=Ze,To|=Ze;Ce=Ce.next}while(Ce!==null&&Ce!==o);if(te===null?F=w:te.next=$,!Or(w,i.memoizedState)&&(sr=!0,Ye&&(c=da,c!==null)))throw c;i.memoizedState=w,i.baseState=F,i.baseQueue=te,m.lastRenderedState=w}return S===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function Ap(i){var o=La(),c=o.queue;if(c===null)throw Error(u(311));c.lastRenderedReducer=i;var m=c.dispatch,S=c.pending,w=o.memoizedState;if(S!==null){c.pending=null;var F=S=S.next;do w=i(w,F.action),F=F.next;while(F!==S);Or(w,o.memoizedState)||(sr=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),c.lastRenderedState=w}return[w,m]}function wf(i,o,c){var m=ln,S=La(),w=xn;if(w){if(c===void 0)throw Error(u(407));c=c()}else c=o();var F=!Or((Xn||S).memoizedState,c);F&&(S.memoizedState=c,sr=!0),S=S.queue;var $=Qd.bind(null,m,S,i);if(sa(2048,8,$,[i]),S.getSnapshot!==o||F||En!==null&&En.memoizedState.tag&1){if(m.flags|=2048,Mi(9,Kd(),bv.bind(null,m,S,c,o),null),ha===null)throw Error(u(349));w||(di&124)!==0||xf(m,o,c)}return c}function xf(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=ln.updateQueue,o===null?(o=go(),ln.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function bv(i,o,c,m){o.value=c,o.getSnapshot=m,Op(o)&&Xd(i)}function Qd(i,o,c){return c(function(){Op(o)&&Xd(i)})}function Op(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Or(i,c)}catch{return!0}}function Xd(i){var o=Zu(i,2);o!==null&&iu(o,i,2)}function Af(i){var o=Xr();if(typeof i=="function"){var c=i;if(i=c(),kr){Dn(!0);try{c()}finally{Dn(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:i},o}function dc(i,o,c,m){return i.baseState=c,xp(i,Xn,typeof m=="function"?m:tl)}function iy(i,o,c,m,S){if(pc(i))throw Error(u(485));if(i=o.action,i!==null){var w={payload:S,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){w.listeners.push(F)}};K.T!==null?c(!0):w.isTransition=!1,m(w),c=o.pending,c===null?(w.next=o.pending=w,Id(o,w)):(w.next=c.next,o.pending=c.next=w)}}function Id(i,o){var c=o.action,m=o.payload,S=i.state;if(o.isTransition){var w=K.T,F={};K.T=F;try{var $=c(S,m),te=K.S;te!==null&&te(F,$),Of(i,o,$)}catch(Ce){Zd(i,o,Ce)}finally{K.T=w}}else try{w=c(S,m),Of(i,o,w)}catch(Ce){Zd(i,o,Ce)}}function Of(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(m){Tp(i,o,m)},function(m){return Zd(i,o,m)}):Tp(i,o,c)}function Tp(i,o,c){o.status="fulfilled",o.value=c,Sv(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,Id(i,c)))}function Zd(i,o,c){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=c,Sv(o),o=o.next;while(o!==m)}i.action=null}function Sv(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function Tf(i,o){return o}function kp(i,o){if(xn){var c=ha.formState;if(c!==null){e:{var m=ln;if(xn){if(Gn){t:{for(var S=Gn,w=Pr;S.nodeType!==8;){if(!w){S=null;break t}if(S=cl(S.nextSibling),S===null){S=null;break t}}w=S.data,S=w==="F!"||w==="F"?S:null}if(S){Gn=cl(S.nextSibling),m=S.data==="F!";break e}}Ri(m)}m=!1}m&&(o=c[0])}}return c=Xr(),c.memoizedState=c.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tf,lastRenderedState:o},c.queue=m,c=_p.bind(null,ln,m),m.dispatch=c,m=Af(!1),w=th.bind(null,ln,!1,m.queue),m=Xr(),S={state:o,dispatch:null,action:i,pending:null},m.queue=S,c=iy.bind(null,ln,S,w,c),S.dispatch=c,m.memoizedState=i,[o,c,!1]}function Bu(i){var o=La();return Np(o,Xn,i)}function Np(i,o,c){if(o=xp(i,o,Tf)[0],i=Pd(tl)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var m=Yd(o)}catch(F){throw F===yr?Vd:F}else m=o;o=La();var S=o.queue,w=S.dispatch;return c!==o.memoizedState&&(ln.flags|=2048,Mi(9,Kd(),Dv.bind(null,S,c),null)),[m,w,i]}function Dv(i,o){i.action=o}function on(i){var o=La(),c=Xn;if(c!==null)return Np(o,c,i);La(),o=o.memoizedState,c=La();var m=c.queue.dispatch;return c.memoizedState=i,[o,m,!1]}function Mi(i,o,c,m){return i={tag:i,create:c,deps:m,inst:o,next:null},o=ln.updateQueue,o===null&&(o=go(),ln.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(m=c.next,c.next=i,i.next=m,o.lastEffect=i),i}function Kd(){return{destroy:void 0,resource:void 0}}function yo(){return La().memoizedState}function bo(i,o,c,m){var S=Xr();m=m===void 0?null:m,ln.flags|=i,S.memoizedState=Mi(1|o,Kd(),c,m)}function sa(i,o,c,m){var S=La();m=m===void 0?null:m;var w=S.memoizedState.inst;Xn!==null&&m!==null&&Ef(m,Xn.memoizedState.deps)?S.memoizedState=Mi(o,w,c,m):(ln.flags|=i,S.memoizedState=Mi(1|o,w,c,m))}function uy(i,o){bo(8390656,8,i,o)}function au(i,o){sa(2048,8,i,o)}function Ev(i,o){return sa(4,2,i,o)}function zi(i,o){return sa(4,4,i,o)}function Wd(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Jd(i,o,c){c=c!=null?c.concat([i]):null,sa(4,4,Wd.bind(null,o,i),c)}function ls(){}function lr(i,o){var c=La();o=o===void 0?null:o;var m=c.memoizedState;return o!==null&&Ef(o,m[1])?m[0]:(c.memoizedState=[i,o],i)}function _l(i,o){var c=La();o=o===void 0?null:o;var m=c.memoizedState;if(o!==null&&Ef(o,m[1]))return m[0];if(m=i(),kr){Dn(!0);try{i()}finally{Dn(!1)}}return c.memoizedState=[m,o],m}function hc(i,o,c){return c===void 0||(di&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=$v(),ln.lanes|=i,To|=i,c)}function Rp(i,o,c,m){return Or(c,o)?c:is.current!==null?(i=hc(i,c,m),Or(i,o)||(sr=!0),i):(di&42)===0?(sr=!0,i.memoizedState=c):(i=$v(),ln.lanes|=i,To|=i,o)}function eh(i,o,c,m,S){var w=ue.p;ue.p=w!==0&&8>w?w:8;var F=K.T,$={};K.T=$,th(i,!1,o,c);try{var te=S(),Ce=K.S;if(Ce!==null&&Ce($,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Ye=ry(te,m);Do(i,o,Ye,Kr(i))}else Do(i,o,m,Kr(i))}catch(Ze){Do(i,o,{then:function(){},status:"rejected",reason:Ze},Kr())}finally{ue.p=w,K.T=F}}function ly(){}function kf(i,o,c,m){if(i.tag!==5)throw Error(u(476));var S=Cv(i).queue;eh(i,S,o,pe,c===null?ly:function(){return os(i),c(m)})}function Cv(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:pe},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function os(i){var o=Cv(i).next.queue;Do(i,o,{},Kr())}function ji(){return Oa(Si)}function Fl(){return La().memoizedState}function oy(){return La().memoizedState}function So(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Kr();i=_i(c);var m=Ju(o,i,c);m!==null&&(iu(m,o,c),sc(m,o,c)),o={cache:bf()},i.payload=o;return}o=o.return}}function Bp(i,o,c){var m=Kr();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},pc(i)?sy(o,c):(c=co(i,o,c,m),c!==null&&(iu(c,i,m),Fp(c,o,m)))}function _p(i,o,c){var m=Kr();Do(i,o,c,m)}function Do(i,o,c,m){var S={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(pc(i))sy(o,S);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var F=o.lastRenderedState,$=w(F,c);if(S.hasEagerState=!0,S.eagerState=$,Or($,F))return si(i,o,S,0),ha===null&&ki(),!1}catch{}finally{}if(c=co(i,o,S,m),c!==null)return iu(c,i,m),Fp(c,o,m),!0}return!1}function th(i,o,c,m){if(m={lane:2,revertLane:Ds(),action:m,hasEagerState:!1,eagerState:null,next:null},pc(i)){if(o)throw Error(u(479))}else o=co(i,c,m,2),o!==null&&iu(o,i,2)}function pc(i){var o=i.alternate;return i===ln||o!==null&&o===ln}function sy(i,o){Fi=fc=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function Fp(i,o,c){if((c&4194048)!==0){var m=o.lanes;m&=i.pendingLanes,c|=m,o.lanes=c,Vt(i,c)}}var nh={readContext:Oa,use:Wa,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useLayoutEffect:Tn,useInsertionEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useSyncExternalStore:Tn,useId:Tn,useHostTransitionStatus:Tn,useFormState:Tn,useActionState:Tn,useOptimistic:Tn,useMemoCache:Tn,useCacheRefresh:Tn},wv={readContext:Oa,use:Wa,useCallback:function(i,o){return Xr().memoizedState=[i,o===void 0?null:o],i},useContext:Oa,useEffect:uy,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,bo(4194308,4,Wd.bind(null,o,i),c)},useLayoutEffect:function(i,o){return bo(4194308,4,i,o)},useInsertionEffect:function(i,o){bo(4,2,i,o)},useMemo:function(i,o){var c=Xr();o=o===void 0?null:o;var m=i();if(kr){Dn(!0);try{i()}finally{Dn(!1)}}return c.memoizedState=[m,o],m},useReducer:function(i,o,c){var m=Xr();if(c!==void 0){var S=c(o);if(kr){Dn(!0);try{c(o)}finally{Dn(!1)}}}else S=o;return m.memoizedState=m.baseState=S,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:S},m.queue=i,i=i.dispatch=Bp.bind(null,ln,i),[m.memoizedState,i]},useRef:function(i){var o=Xr();return i={current:i},o.memoizedState=i},useState:function(i){i=Af(i);var o=i.queue,c=_p.bind(null,ln,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:ls,useDeferredValue:function(i,o){var c=Xr();return hc(c,i,o)},useTransition:function(){var i=Af(!1);return i=eh.bind(null,ln,i.queue,!0,!1),Xr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var m=ln,S=Xr();if(xn){if(c===void 0)throw Error(u(407));c=c()}else{if(c=o(),ha===null)throw Error(u(349));(Nn&124)!==0||xf(m,o,c)}S.memoizedState=c;var w={value:c,getSnapshot:o};return S.queue=w,uy(Qd.bind(null,m,w,i),[i]),m.flags|=2048,Mi(9,Kd(),bv.bind(null,m,w,c,o),null),c},useId:function(){var i=Xr(),o=ha.identifierPrefix;if(xn){var c=ja,m=ba;c=(m&~(1<<32-Kt(m)-1)).toString(32)+c,o="«"+o+"R"+c,c=nu++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=Dp++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:ji,useFormState:kp,useActionState:kp,useOptimistic:function(i){var o=Xr();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=th.bind(null,ln,!0,c),c.dispatch=o,[i,o]},useMemoCache:Cf,useCacheRefresh:function(){return Xr().memoizedState=So.bind(null,ln)}},Mp={readContext:Oa,use:Wa,useCallback:lr,useContext:Oa,useEffect:au,useImperativeHandle:Jd,useInsertionEffect:Ev,useLayoutEffect:zi,useMemo:_l,useReducer:Pd,useRef:yo,useState:function(){return Pd(tl)},useDebugValue:ls,useDeferredValue:function(i,o){var c=La();return Rp(c,Xn.memoizedState,i,o)},useTransition:function(){var i=Pd(tl)[0],o=La().memoizedState;return[typeof i=="boolean"?i:Yd(i),o]},useSyncExternalStore:wf,useId:Fl,useHostTransitionStatus:ji,useFormState:Bu,useActionState:Bu,useOptimistic:function(i,o){var c=La();return dc(c,Xn,i,o)},useMemoCache:Cf,useCacheRefresh:oy},Ml={readContext:Oa,use:Wa,useCallback:lr,useContext:Oa,useEffect:au,useImperativeHandle:Jd,useInsertionEffect:Ev,useLayoutEffect:zi,useMemo:_l,useReducer:Ap,useRef:yo,useState:function(){return Ap(tl)},useDebugValue:ls,useDeferredValue:function(i,o){var c=La();return Xn===null?hc(c,i,o):Rp(c,Xn.memoizedState,i,o)},useTransition:function(){var i=Ap(tl)[0],o=La().memoizedState;return[typeof i=="boolean"?i:Yd(i),o]},useSyncExternalStore:wf,useId:Fl,useHostTransitionStatus:ji,useFormState:on,useActionState:on,useOptimistic:function(i,o){var c=La();return Xn!==null?dc(c,Xn,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:Cf,useCacheRefresh:oy},Ja=null,pi=0;function zp(i){var o=pi;return pi+=1,Ja===null&&(Ja=[]),bp(Ja,i,o)}function mc(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function or(i,o){throw o.$$typeof===T?Error(u(525)):(i=Object.prototype.toString.call(o),Error(u(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function ss(i){var o=i._init;return o(i._payload)}function mi(i){function o(me,se){if(i){var Se=me.deletions;Se===null?(me.deletions=[se],me.flags|=16):Se.push(se)}}function c(me,se){if(!i)return null;for(;se!==null;)o(me,se),se=se.sibling;return null}function m(me){for(var se=new Map;me!==null;)me.key!==null?se.set(me.key,me):se.set(me.index,me),me=me.sibling;return se}function S(me,se){return me=Tr(me,se),me.index=0,me.sibling=null,me}function w(me,se,Se){return me.index=Se,i?(Se=me.alternate,Se!==null?(Se=Se.index,Se<se?(me.flags|=67108866,se):Se):(me.flags|=67108866,se)):(me.flags|=1048576,se)}function F(me){return i&&me.alternate===null&&(me.flags|=67108866),me}function $(me,se,Se,Xe){return se===null||se.tag!==6?(se=pf(Se,me.mode,Xe),se.return=me,se):(se=S(se,Se),se.return=me,se)}function te(me,se,Se,Xe){var yt=Se.type;return yt===z?Ye(me,se,Se.props.children,Xe,Se.key):se!==null&&(se.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===ee&&ss(yt)===se.type)?(se=S(se,Se.props),mc(se,Se),se.return=me,se):(se=et(Se.type,Se.key,Se.props,null,me.mode,Xe),mc(se,Se),se.return=me,se)}function Ce(me,se,Se,Xe){return se===null||se.tag!==4||se.stateNode.containerInfo!==Se.containerInfo||se.stateNode.implementation!==Se.implementation?(se=ya(Se,me.mode,Xe),se.return=me,se):(se=S(se,Se.children||[]),se.return=me,se)}function Ye(me,se,Se,Xe,yt){return se===null||se.tag!==7?(se=Au(Se,me.mode,Xe,yt),se.return=me,se):(se=S(se,Se),se.return=me,se)}function Ze(me,se,Se){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=pf(""+se,me.mode,Se),se.return=me,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case N:return Se=et(se.type,se.key,se.props,null,me.mode,Se),mc(Se,se),Se.return=me,Se;case R:return se=ya(se,me.mode,Se),se.return=me,se;case ee:var Xe=se._init;return se=Xe(se._payload),Ze(me,se,Se)}if(ze(se)||ye(se))return se=Au(se,me.mode,Se,null),se.return=me,se;if(typeof se.then=="function")return Ze(me,zp(se),Se);if(se.$$typeof===B)return Ze(me,Ud(me,se),Se);or(me,se)}return null}function Oe(me,se,Se,Xe){var yt=se!==null?se.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return yt!==null?null:$(me,se,""+Se,Xe);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case N:return Se.key===yt?te(me,se,Se,Xe):null;case R:return Se.key===yt?Ce(me,se,Se,Xe):null;case ee:return yt=Se._init,Se=yt(Se._payload),Oe(me,se,Se,Xe)}if(ze(Se)||ye(Se))return yt!==null?null:Ye(me,se,Se,Xe,null);if(typeof Se.then=="function")return Oe(me,se,zp(Se),Xe);if(Se.$$typeof===B)return Oe(me,se,Ud(me,Se),Xe);or(me,Se)}return null}function we(me,se,Se,Xe,yt){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint")return me=me.get(Se)||null,$(se,me,""+Xe,yt);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case N:return me=me.get(Xe.key===null?Se:Xe.key)||null,te(se,me,Xe,yt);case R:return me=me.get(Xe.key===null?Se:Xe.key)||null,Ce(se,me,Xe,yt);case ee:var Cn=Xe._init;return Xe=Cn(Xe._payload),we(me,se,Se,Xe,yt)}if(ze(Xe)||ye(Xe))return me=me.get(Se)||null,Ye(se,me,Xe,yt,null);if(typeof Xe.then=="function")return we(me,se,Se,zp(Xe),yt);if(Xe.$$typeof===B)return we(me,se,Se,Ud(se,Xe),yt);or(se,Xe)}return null}function kt(me,se,Se,Xe){for(var yt=null,Cn=null,Tt=se,$t=se=0,Er=null;Tt!==null&&$t<Se.length;$t++){Tt.index>$t?(Er=Tt,Tt=null):Er=Tt.sibling;var Vn=Oe(me,Tt,Se[$t],Xe);if(Vn===null){Tt===null&&(Tt=Er);break}i&&Tt&&Vn.alternate===null&&o(me,Tt),se=w(Vn,se,$t),Cn===null?yt=Vn:Cn.sibling=Vn,Cn=Vn,Tt=Er}if($t===Se.length)return c(me,Tt),xn&&Hn(me,$t),yt;if(Tt===null){for(;$t<Se.length;$t++)Tt=Ze(me,Se[$t],Xe),Tt!==null&&(se=w(Tt,se,$t),Cn===null?yt=Tt:Cn.sibling=Tt,Cn=Tt);return xn&&Hn(me,$t),yt}for(Tt=m(Tt);$t<Se.length;$t++)Er=we(Tt,me,$t,Se[$t],Xe),Er!==null&&(i&&Er.alternate!==null&&Tt.delete(Er.key===null?$t:Er.key),se=w(Er,se,$t),Cn===null?yt=Er:Cn.sibling=Er,Cn=Er);return i&&Tt.forEach(function(As){return o(me,As)}),xn&&Hn(me,$t),yt}function _t(me,se,Se,Xe){if(Se==null)throw Error(u(151));for(var yt=null,Cn=null,Tt=se,$t=se=0,Er=null,Vn=Se.next();Tt!==null&&!Vn.done;$t++,Vn=Se.next()){Tt.index>$t?(Er=Tt,Tt=null):Er=Tt.sibling;var As=Oe(me,Tt,Vn.value,Xe);if(As===null){Tt===null&&(Tt=Er);break}i&&Tt&&As.alternate===null&&o(me,Tt),se=w(As,se,$t),Cn===null?yt=As:Cn.sibling=As,Cn=As,Tt=Er}if(Vn.done)return c(me,Tt),xn&&Hn(me,$t),yt;if(Tt===null){for(;!Vn.done;$t++,Vn=Se.next())Vn=Ze(me,Vn.value,Xe),Vn!==null&&(se=w(Vn,se,$t),Cn===null?yt=Vn:Cn.sibling=Vn,Cn=Vn);return xn&&Hn(me,$t),yt}for(Tt=m(Tt);!Vn.done;$t++,Vn=Se.next())Vn=we(Tt,me,$t,Vn.value,Xe),Vn!==null&&(i&&Vn.alternate!==null&&Tt.delete(Vn.key===null?$t:Vn.key),se=w(Vn,se,$t),Cn===null?yt=Vn:Cn.sibling=Vn,Cn=Vn);return i&&Tt.forEach(function(M0){return o(me,M0)}),xn&&Hn(me,$t),yt}function Zn(me,se,Se,Xe){if(typeof Se=="object"&&Se!==null&&Se.type===z&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case N:e:{for(var yt=Se.key;se!==null;){if(se.key===yt){if(yt=Se.type,yt===z){if(se.tag===7){c(me,se.sibling),Xe=S(se,Se.props.children),Xe.return=me,me=Xe;break e}}else if(se.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===ee&&ss(yt)===se.type){c(me,se.sibling),Xe=S(se,Se.props),mc(Xe,Se),Xe.return=me,me=Xe;break e}c(me,se);break}else o(me,se);se=se.sibling}Se.type===z?(Xe=Au(Se.props.children,me.mode,Xe,Se.key),Xe.return=me,me=Xe):(Xe=et(Se.type,Se.key,Se.props,null,me.mode,Xe),mc(Xe,Se),Xe.return=me,me=Xe)}return F(me);case R:e:{for(yt=Se.key;se!==null;){if(se.key===yt)if(se.tag===4&&se.stateNode.containerInfo===Se.containerInfo&&se.stateNode.implementation===Se.implementation){c(me,se.sibling),Xe=S(se,Se.children||[]),Xe.return=me,me=Xe;break e}else{c(me,se);break}else o(me,se);se=se.sibling}Xe=ya(Se,me.mode,Xe),Xe.return=me,me=Xe}return F(me);case ee:return yt=Se._init,Se=yt(Se._payload),Zn(me,se,Se,Xe)}if(ze(Se))return kt(me,se,Se,Xe);if(ye(Se)){if(yt=ye(Se),typeof yt!="function")throw Error(u(150));return Se=yt.call(Se),_t(me,se,Se,Xe)}if(typeof Se.then=="function")return Zn(me,se,zp(Se),Xe);if(Se.$$typeof===B)return Zn(me,se,Ud(me,Se),Xe);or(me,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint"?(Se=""+Se,se!==null&&se.tag===6?(c(me,se.sibling),Xe=S(se,Se),Xe.return=me,me=Xe):(c(me,se),Xe=pf(Se,me.mode,Xe),Xe.return=me,me=Xe),F(me)):c(me,se)}return function(me,se,Se,Xe){try{pi=0;var yt=Zn(me,se,Se,Xe);return Ja=null,yt}catch(Tt){if(Tt===yr||Tt===Vd)throw Tt;var Cn=ci(29,Tt,null,me.mode);return Cn.lanes=Xe,Cn.return=me,Cn}finally{}}}var cs=mi(!0),zl=mi(!1),Li=Re(null),Xa=null;function ru(i){var o=i.alternate;he(Wn,Wn.current&1),he(Li,i),Xa===null&&(o===null||is.current!==null||o.memoizedState!==null)&&(Xa=i)}function jl(i){if(i.tag===22){if(he(Wn,Wn.current),he(Li,i),Xa===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Xa=i)}}else nl()}function nl(){he(Wn,Wn.current),he(Li,Li.current)}function _u(i){Le(Li),Xa===i&&(Xa=null),Le(Wn)}var Wn=Re(0);function Nf(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Fr(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function al(i,o,c,m){o=i.memoizedState,c=c(m,o),c=c==null?o:A({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var Rf={enqueueSetState:function(i,o,c){i=i._reactInternals;var m=Kr(),S=_i(m);S.payload=o,c!=null&&(S.callback=c),o=Ju(i,S,m),o!==null&&(iu(o,i,m),sc(o,i,m))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var m=Kr(),S=_i(m);S.tag=1,S.payload=o,c!=null&&(S.callback=c),o=Ju(i,S,m),o!==null&&(iu(o,i,m),sc(o,i,m))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Kr(),m=_i(c);m.tag=2,o!=null&&(m.callback=o),o=Ju(i,m,c),o!==null&&(iu(o,i,c),sc(o,i,c))}};function Eo(i,o,c,m,S,w,F){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,w,F):o.prototype&&o.prototype.isPureReactComponent?!Ji(c,m)||!Ji(S,w):!0}function vc(i,o,c,m){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,m),o.state!==i&&Rf.enqueueReplaceState(o,o.state,null)}function Co(i,o){var c=o;if("ref"in o){c={};for(var m in o)m!=="ref"&&(c[m]=o[m])}if(i=i.defaultProps){c===o&&(c=A({},c));for(var S in i)c[S]===void 0&&(c[S]=i[S])}return c}var fs=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function gc(i){fs(i)}function ah(i){console.error(i)}function rh(i){fs(i)}function Bf(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(m){setTimeout(function(){throw m})}}function rl(i,o,c){try{var m=i.onCaughtError;m(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function jp(i,o,c){return c=_i(c),c.tag=3,c.payload={element:null},c.callback=function(){Bf(i,o)},c}function Lp(i){return i=_i(i),i.tag=3,i}function Ui(i,o,c,m){var S=c.type.getDerivedStateFromError;if(typeof S=="function"){var w=m.value;i.payload=function(){return S(w)},i.callback=function(){rl(o,c,m)}}var F=c.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(i.callback=function(){rl(o,c,m),typeof S!="function"&&(ys===null?ys=new Set([this]):ys.add(this));var $=m.stack;this.componentDidCatch(m.value,{componentStack:$!==null?$:""})})}function xv(i,o,c,m,S){if(c.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(o=c.alternate,o!==null&&gf(o,c,S,!0),c=Li.current,c!==null){switch(c.tag){case 13:return Xa===null?Oc():c.alternate===null&&Va===0&&(Va=3),c.flags&=-257,c.flags|=65536,c.lanes=S,m===gp?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([m]):o.add(m),sm(i,m,S)),!1;case 22:return c.flags|=65536,m===gp?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([m]):c.add(m)),sm(i,m,S)),!1}throw Error(u(435,c.tag))}return sm(i,m,S),Oc(),!1}if(xn)return o=Li.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=S,m!==Tl&&(i=Error(u(422),{cause:m}),po(Gr(i,c)))):(m!==Tl&&(o=Error(u(423),{cause:m}),po(Gr(o,c))),i=i.current.alternate,i.flags|=65536,S&=-S,i.lanes|=S,m=Gr(m,c),S=jp(i.stateNode,m,S),el(i,S),Va!==4&&(Va=2)),!1;var w=Error(u(520),{cause:m});if(w=Gr(w,c),Hf===null?Hf=[w]:Hf.push(w),Va!==4&&(Va=2),o===null)return!0;m=Gr(m,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=S&-S,c.lanes|=i,i=jp(c.stateNode,m,i),el(c,i),!1;case 1:if(o=c.type,w=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ys===null||!ys.has(w))))return c.flags|=65536,S&=-S,c.lanes|=S,S=Lp(S),Ui(S,i,c,m),el(c,S),!1}c=c.return}while(c!==null);return!1}var Ua=Error(u(461)),sr=!1;function Sa(i,o,c,m){o.child=i===null?zl(o,null,c,m):cs(o,i.child,c,m)}function Up(i,o,c,m,S){c=c.render;var w=o.ref;if("ref"in m){var F={};for(var $ in m)$!=="ref"&&(F[$]=m[$])}else F=m;return ts(o),m=Ep(i,o,c,F,w,S),$=wp(),i!==null&&!sr?(Bl(i,o,S),Ul(i,o,S)):(xn&&$&&uc(o),o.flags|=1,Sa(i,o,m,S),o.child)}function il(i,o,c,m,S){if(i===null){var w=c.type;return typeof w=="function"&&!ho(w)&&w.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=w,wo(i,o,w,m,S)):(i=et(c.type,null,m,o,o.mode,S),i.ref=o.ref,i.return=o,o.child=i)}if(w=i.child,!Mu(i,S)){var F=w.memoizedProps;if(c=c.compare,c=c!==null?c:Ji,c(F,m)&&i.ref===o.ref)return Ul(i,o,S)}return o.flags|=1,i=Tr(w,m),i.ref=o.ref,i.return=o,o.child=i}function wo(i,o,c,m,S){if(i!==null){var w=i.memoizedProps;if(Ji(w,m)&&i.ref===o.ref)if(sr=!1,o.pendingProps=m=w,Mu(i,S))(i.flags&131072)!==0&&(sr=!0);else return o.lanes=i.lanes,Ul(i,o,S)}return bc(i,o,c,m,S)}function yc(i,o,c){var m=o.pendingProps,S=m.children,w=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((o.flags&128)!==0){if(m=w!==null?w.baseLanes|c:c,i!==null){for(S=o.child=i.child,w=0;S!==null;)w=w|S.lanes|S.childLanes,S=S.sibling;o.childLanes=w&~m}else o.childLanes=0,o.child=null;return Fu(i,o,m,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&lc(o,w!==null?w.cachePool:null),w!==null?Ca(o,w):cc(),jl(o);else return o.lanes=o.childLanes=536870912,Fu(i,o,w!==null?w.baseLanes|c:c,c)}else w!==null?(lc(o,w.cachePool),Ca(o,w),nl(),o.memoizedState=null):(i!==null&&lc(o,null),cc(),nl());return Sa(i,o,S,c),o.child}function Fu(i,o,c,m){var S=Wu();return S=S===null?null:{parent:fa._currentValue,pool:S},o.memoizedState={baseLanes:c,cachePool:S},i!==null&&lc(o,null),cc(),jl(o),i!==null&&gf(i,o,m,!0),null}function Nt(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(u(284));(i===null||i.ref!==c)&&(o.flags|=4194816)}}function bc(i,o,c,m,S){return ts(o),c=Ep(i,o,c,m,void 0,S),m=wp(),i!==null&&!sr?(Bl(i,o,S),Ul(i,o,S)):(xn&&m&&uc(o),o.flags|=1,Sa(i,o,c,S),o.child)}function ih(i,o,c,m,S,w){return ts(o),o.updateQueue=null,c=yv(o,m,c,S),us(i),m=wp(),i!==null&&!sr?(Bl(i,o,w),Ul(i,o,w)):(xn&&m&&uc(o),o.flags|=1,Sa(i,o,c,w),o.child)}function Ll(i,o,c,m,S){if(ts(o),o.stateNode===null){var w=rc,F=c.contextType;typeof F=="object"&&F!==null&&(w=Oa(F)),w=new c(m,w),o.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Rf,o.stateNode=w,w._reactInternals=o,w=o.stateNode,w.props=m,w.state=o.memoizedState,w.refs={},rs(o),F=c.contextType,w.context=typeof F=="object"&&F!==null?Oa(F):rc,w.state=o.memoizedState,F=c.getDerivedStateFromProps,typeof F=="function"&&(al(o,c,F,m),w.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(F=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),F!==w.state&&Rf.enqueueReplaceState(w,w.state,null),Ka(o,m,w,S),Ru(),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308),m=!0}else if(i===null){w=o.stateNode;var $=o.memoizedProps,te=Co(c,$);w.props=te;var Ce=w.context,Ye=c.contextType;F=rc,typeof Ye=="object"&&Ye!==null&&(F=Oa(Ye));var Ze=c.getDerivedStateFromProps;Ye=typeof Ze=="function"||typeof w.getSnapshotBeforeUpdate=="function",$=o.pendingProps!==$,Ye||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||($||Ce!==F)&&vc(o,w,m,F),Nu=!1;var Oe=o.memoizedState;w.state=Oe,Ka(o,m,w,S),Ru(),Ce=o.memoizedState,$||Oe!==Ce||Nu?(typeof Ze=="function"&&(al(o,c,Ze,m),Ce=o.memoizedState),(te=Nu||Eo(o,c,te,m,Oe,Ce,F))?(Ye||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=Ce),w.props=m,w.state=Ce,w.context=F,m=te):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{w=o.stateNode,oc(i,o),F=o.memoizedProps,Ye=Co(c,F),w.props=Ye,Ze=o.pendingProps,Oe=w.context,Ce=c.contextType,te=rc,typeof Ce=="object"&&Ce!==null&&(te=Oa(Ce)),$=c.getDerivedStateFromProps,(Ce=typeof $=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(F!==Ze||Oe!==te)&&vc(o,w,m,te),Nu=!1,Oe=o.memoizedState,w.state=Oe,Ka(o,m,w,S),Ru();var we=o.memoizedState;F!==Ze||Oe!==we||Nu||i!==null&&i.dependencies!==null&&Ld(i.dependencies)?(typeof $=="function"&&(al(o,c,$,m),we=o.memoizedState),(Ye=Nu||Eo(o,c,Ye,m,Oe,we,te)||i!==null&&i.dependencies!==null&&Ld(i.dependencies))?(Ce||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,we,te),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,we,te)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||F===i.memoizedProps&&Oe===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||F===i.memoizedProps&&Oe===i.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=we),w.props=m,w.state=we,w.context=te,m=Ye):(typeof w.componentDidUpdate!="function"||F===i.memoizedProps&&Oe===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||F===i.memoizedProps&&Oe===i.memoizedState||(o.flags|=1024),m=!1)}return w=m,Nt(i,o),m=(o.flags&128)!==0,w||m?(w=o.stateNode,c=m&&typeof c.getDerivedStateFromError!="function"?null:w.render(),o.flags|=1,i!==null&&m?(o.child=cs(o,i.child,null,S),o.child=cs(o,null,c,S)):Sa(i,o,c,S),o.memoizedState=w.state,i=o.child):i=Ul(i,o,S),i}function Hp(i,o,c,m){return vf(),o.flags|=256,Sa(i,o,c,m),o.child}var _f={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vp(i){return{baseLanes:i,cachePool:mp()}}function br(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=ju),i}function Av(i,o,c){var m=o.pendingProps,S=!1,w=(o.flags&128)!==0,F;if((F=w)||(F=i!==null&&i.memoizedState===null?!1:(Wn.current&2)!==0),F&&(S=!0,o.flags&=-129),F=(o.flags&32)!==0,o.flags&=-33,i===null){if(xn){if(S?ru(o):nl(),xn){var $=Gn,te;if(te=$){e:{for(te=$,$=Pr;te.nodeType!==8;){if(!$){$=null;break e}if(te=cl(te.nextSibling),te===null){$=null;break e}}$=te}$!==null?(o.memoizedState={dehydrated:$,treeContext:ca!==null?{id:ba,overflow:ja}:null,retryLane:536870912,hydrationErrors:null},te=ci(18,null,null,0),te.stateNode=$,te.return=o,o.child=te,Ea=o,Gn=null,te=!0):te=!1}te||Ri(o)}if($=o.memoizedState,$!==null&&($=$.dehydrated,$!==null))return Fr($)?o.lanes=32:o.lanes=536870912,null;_u(o)}return $=m.children,m=m.fallback,S?(nl(),S=o.mode,$=uh({mode:"hidden",children:$},S),m=Au(m,S,c,null),$.return=o,m.return=o,$.sibling=m,o.child=$,S=o.child,S.memoizedState=Vp(c),S.childLanes=br(i,F,c),o.memoizedState=_f,m):(ru(o),qp(o,$))}if(te=i.memoizedState,te!==null&&($=te.dehydrated,$!==null)){if(w)o.flags&256?(ru(o),o.flags&=-257,o=ds(i,o,c)):o.memoizedState!==null?(nl(),o.child=i.child,o.flags|=128,o=null):(nl(),S=m.fallback,$=o.mode,m=uh({mode:"visible",children:m.children},$),S=Au(S,$,c,null),S.flags|=2,m.return=o,S.return=o,m.sibling=S,o.child=m,cs(o,i.child,null,c),m=o.child,m.memoizedState=Vp(c),m.childLanes=br(i,F,c),o.memoizedState=_f,o=S);else if(ru(o),Fr($)){if(F=$.nextSibling&&$.nextSibling.dataset,F)var Ce=F.dgst;F=Ce,m=Error(u(419)),m.stack="",m.digest=F,po({value:m,source:null,stack:null}),o=ds(i,o,c)}else if(sr||gf(i,o,c,!1),F=(c&i.childLanes)!==0,sr||F){if(F=ha,F!==null&&(m=c&-c,m=(m&42)!==0?1:It(m),m=(m&(F.suspendedLanes|c))!==0?0:m,m!==0&&m!==te.retryLane))throw te.retryLane=m,Zu(i,m),iu(F,i,m),Ua;$.data==="$?"||Oc(),o=ds(i,o,c)}else $.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=te.treeContext,Gn=cl($.nextSibling),Ea=o,xn=!0,Yr=null,Pr=!1,i!==null&&(Ou[Ni++]=ba,Ou[Ni++]=ja,Ou[Ni++]=ca,ba=i.id,ja=i.overflow,ca=o),o=qp(o,m.children),o.flags|=4096);return o}return S?(nl(),S=m.fallback,$=o.mode,te=i.child,Ce=te.sibling,m=Tr(te,{mode:"hidden",children:m.children}),m.subtreeFlags=te.subtreeFlags&65011712,Ce!==null?S=Tr(Ce,S):(S=Au(S,$,c,null),S.flags|=2),S.return=o,m.return=o,m.sibling=S,o.child=m,m=S,S=o.child,$=i.child.memoizedState,$===null?$=Vp(c):(te=$.cachePool,te!==null?(Ce=fa._currentValue,te=te.parent!==Ce?{parent:Ce,pool:Ce}:te):te=mp(),$={baseLanes:$.baseLanes|c,cachePool:te}),S.memoizedState=$,S.childLanes=br(i,F,c),o.memoizedState=_f,m):(ru(o),c=i.child,i=c.sibling,c=Tr(c,{mode:"visible",children:m.children}),c.return=o,c.sibling=null,i!==null&&(F=o.deletions,F===null?(o.deletions=[i],o.flags|=16):F.push(i)),o.child=c,o.memoizedState=null,c)}function qp(i,o){return o=uh({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function uh(i,o){return i=ci(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function ds(i,o,c){return cs(o,i.child,null,c),i=qp(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Ff(i,o,c){i.lanes|=o;var m=i.alternate;m!==null&&(m.lanes|=o),fi(i.return,o,c)}function $p(i,o,c,m,S){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:S}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=c,w.tailMode=S)}function Gp(i,o,c){var m=o.pendingProps,S=m.revealOrder,w=m.tail;if(Sa(i,o,m.children,c),m=Wn.current,(m&2)!==0)m=m&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Ff(i,c,o);else if(i.tag===19)Ff(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(he(Wn,m),S){case"forwards":for(c=o.child,S=null;c!==null;)i=c.alternate,i!==null&&Nf(i)===null&&(S=c),c=c.sibling;c=S,c===null?(S=o.child,o.child=null):(S=c.sibling,c.sibling=null),$p(o,!1,S,c,w);break;case"backwards":for(c=null,S=o.child,o.child=null;S!==null;){if(i=S.alternate,i!==null&&Nf(i)===null){o.child=S;break}i=S.sibling,S.sibling=c,c=S,S=i}$p(o,!0,c,null,w);break;case"together":$p(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ul(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),To|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(gf(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(u(153));if(o.child!==null){for(i=o.child,c=Tr(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Tr(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function Mu(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Ld(i)))}function Ir(i,o,c){switch(o.tag){case 3:Ft(o,o.stateNode.containerInfo),Bi(o,fa,i.memoizedState.cache),vf();break;case 27:case 5:Qe(o);break;case 4:Ft(o,o.stateNode.containerInfo);break;case 10:Bi(o,o.type,o.memoizedProps.value);break;case 13:var m=o.memoizedState;if(m!==null)return m.dehydrated!==null?(ru(o),o.flags|=128,null):(c&o.child.childLanes)!==0?Av(i,o,c):(ru(o),i=Ul(i,o,c),i!==null?i.sibling:null);ru(o);break;case 19:var S=(i.flags&128)!==0;if(m=(c&o.childLanes)!==0,m||(gf(i,o,c,!1),m=(c&o.childLanes)!==0),S){if(m)return Gp(i,o,c);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),he(Wn,Wn.current),m)break;return null;case 22:case 23:return o.lanes=0,yc(i,o,c);case 24:Bi(o,fa,i.memoizedState.cache)}return Ul(i,o,c)}function Yp(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)sr=!0;else{if(!Mu(i,c)&&(o.flags&128)===0)return sr=!1,Ir(i,o,c);sr=(i.flags&131072)!==0}else sr=!1,xn&&(o.flags&1048576)!==0&&zd(o,ic,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var m=o.elementType,S=m._init;if(m=S(m._payload),o.type=m,typeof m=="function")ho(m)?(i=Co(m,i),o.tag=1,o=Ll(null,o,m,i,c)):(o.tag=0,o=bc(null,o,m,i,c));else{if(m!=null){if(S=m.$$typeof,S===H){o.tag=11,o=Up(null,o,m,i,c);break e}else if(S===X){o.tag=14,o=il(null,o,m,i,c);break e}}throw o=Ee(m)||m,Error(u(306,o,""))}}return o;case 0:return bc(i,o,o.type,o.pendingProps,c);case 1:return m=o.type,S=Co(m,o.pendingProps),Ll(i,o,m,S,c);case 3:e:{if(Ft(o,o.stateNode.containerInfo),i===null)throw Error(u(387));m=o.pendingProps;var w=o.memoizedState;S=w.element,oc(i,o),Ka(o,m,null,c);var F=o.memoizedState;if(m=F.cache,Bi(o,fa,m),m!==w.cache&&An(o,[fa],c,!0),Ru(),m=F.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:F.cache},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){o=Hp(i,o,m,c);break e}else if(m!==S){S=Gr(Error(u(424)),o),po(S),o=Hp(i,o,m,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Gn=cl(i.firstChild),Ea=o,xn=!0,Yr=null,Pr=!0,c=zl(o,null,m,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(vf(),m===S){o=Ul(i,o,c);break e}Sa(i,o,m,c)}o=o.child}return o;case 26:return Nt(i,o),i===null?(c=Cy(o.type,null,o.pendingProps,null))?o.memoizedState=c:xn||(c=o.type,i=o.pendingProps,m=yi(rt.current).createElement(c),m[at]=o,m[Ct]=i,Gt(m,c,i),za(m),o.stateNode=m):o.memoizedState=Cy(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Qe(o),i===null&&xn&&(m=o.stateNode=pt(o.type,o.pendingProps,rt.current),Ea=o,Pr=!0,S=Gn,Lu(o.type)?(Cs=S,Gn=cl(m.firstChild)):Gn=S),Sa(i,o,o.pendingProps.children,c),Nt(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&xn&&((S=m=Gn)&&(m=Nc(m,o.type,o.pendingProps,Pr),m!==null?(o.stateNode=m,Ea=o,Gn=cl(m.firstChild),Pr=!1,S=!0):S=!1),S||Ri(o)),Qe(o),S=o.type,w=o.pendingProps,F=i!==null?i.memoizedProps:null,m=w.children,ol(S,w)?m=null:F!==null&&ol(S,F)&&(o.flags|=32),o.memoizedState!==null&&(S=Ep(i,o,Cp,null,null,c),Si._currentValue=S),Nt(i,o),Sa(i,o,m,c),o.child;case 6:return i===null&&xn&&((i=c=Gn)&&(c=vm(c,o.pendingProps,Pr),c!==null?(o.stateNode=c,Ea=o,Gn=null,i=!0):i=!1),i||Ri(o)),null;case 13:return Av(i,o,c);case 4:return Ft(o,o.stateNode.containerInfo),m=o.pendingProps,i===null?o.child=cs(o,null,m,c):Sa(i,o,m,c),o.child;case 11:return Up(i,o,o.type,o.pendingProps,c);case 7:return Sa(i,o,o.pendingProps,c),o.child;case 8:return Sa(i,o,o.pendingProps.children,c),o.child;case 12:return Sa(i,o,o.pendingProps.children,c),o.child;case 10:return m=o.pendingProps,Bi(o,o.type,m.value),Sa(i,o,m.children,c),o.child;case 9:return S=o.type._context,m=o.pendingProps.children,ts(o),S=Oa(S),m=m(S),o.flags|=1,Sa(i,o,m,c),o.child;case 14:return il(i,o,o.type,o.pendingProps,c);case 15:return wo(i,o,o.type,o.pendingProps,c);case 19:return Gp(i,o,c);case 31:return m=o.pendingProps,c=o.mode,m={mode:m.mode,children:m.children},i===null?(c=uh(m,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Tr(i.child,m),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return yc(i,o,c);case 24:return ts(o),m=Oa(fa),i===null?(S=Wu(),S===null&&(S=ha,w=bf(),S.pooledCache=w,w.refCount++,w!==null&&(S.pooledCacheLanes|=c),S=w),o.memoizedState={parent:m,cache:S},rs(o),Bi(o,fa,S)):((i.lanes&c)!==0&&(oc(i,o),Ka(o,null,null,c),Ru()),S=i.memoizedState,w=o.memoizedState,S.parent!==m?(S={parent:m,cache:m},o.memoizedState=S,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=S),Bi(o,fa,m)):(m=w.cache,Bi(o,fa,m),m!==S.cache&&An(o,[fa],c,!0))),Sa(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(u(156,o.tag))}function Hl(i){i.flags|=4}function hs(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!tr(o)){if(o=Li.current,o!==null&&((Nn&4194048)===Nn?Xa!==null:(Nn&62914560)!==Nn&&(Nn&536870912)===0||o!==Xa))throw as=gp,vp;i.flags|=8192}}function lh(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?it():536870912,i.lanes|=o,Uf|=o)}function Mf(i,o){if(!xn)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Bt(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,m=0;if(o)for(var S=i.child;S!==null;)c|=S.lanes|S.childLanes,m|=S.subtreeFlags&65011712,m|=S.flags&65011712,S.return=i,S=S.sibling;else for(S=i.child;S!==null;)c|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=i,S=S.sibling;return i.subtreeFlags|=m,i.childLanes=c,o}function Pp(i,o,c){var m=o.pendingProps;switch(Tu(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(o),null;case 1:return Bt(o),null;case 3:return c=o.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),tu(fa),oe(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(mf(o)?Hl(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,pv())),Bt(o),null;case 26:return c=o.memoizedState,i===null?(Hl(o),c!==null?(Bt(o),hs(o,c)):(Bt(o),o.flags&=-16777217)):c?c!==i.memoizedState?(Hl(o),Bt(o),hs(o,c)):(Bt(o),o.flags&=-16777217):(i.memoizedProps!==m&&Hl(o),Bt(o),o.flags&=-16777217),null;case 27:Ne(o),c=rt.current;var S=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Hl(o);else{if(!m){if(o.stateNode===null)throw Error(u(166));return Bt(o),null}i=nt.current,mf(o)?jd(o):(i=pt(S,m,c),o.stateNode=i,Hl(o))}return Bt(o),null;case 5:if(Ne(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Hl(o);else{if(!m){if(o.stateNode===null)throw Error(u(166));return Bt(o),null}if(i=nt.current,mf(o))jd(o);else{switch(S=yi(rt.current),i){case 1:i=S.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=S.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=S.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=S.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=S.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?S.createElement("select",{is:m.is}):S.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?S.createElement(c,{is:m.is}):S.createElement(c)}}i[at]=o,i[Ct]=m;e:for(S=o.child;S!==null;){if(S.tag===5||S.tag===6)i.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===o)break e;for(;S.sibling===null;){if(S.return===null||S.return===o)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}o.stateNode=i;e:switch(Gt(i,c,m),c){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Hl(o)}}return Bt(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==m&&Hl(o);else{if(typeof m!="string"&&o.stateNode===null)throw Error(u(166));if(i=rt.current,mf(o)){if(i=o.stateNode,c=o.memoizedProps,m=null,S=Ea,S!==null)switch(S.tag){case 27:case 5:m=S.memoizedProps}i[at]=o,i=!!(i.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Wv(i.nodeValue,c)),i||Ri(o)}else i=yi(i).createTextNode(m),i[at]=o,o.stateNode=i}return Bt(o),null;case 13:if(m=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(S=mf(o),m!==null&&m.dehydrated!==null){if(i===null){if(!S)throw Error(u(318));if(S=o.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(u(317));S[at]=o}else vf(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Bt(o),S=!1}else S=pv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=S),S=!0;if(!S)return o.flags&256?(_u(o),o):(_u(o),null)}if(_u(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=m!==null,i=i!==null&&i.memoizedState!==null,c){m=o.child,S=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(S=m.alternate.memoizedState.cachePool.pool);var w=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==S&&(m.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),lh(o,o.updateQueue),Bt(o),null;case 4:return oe(),i===null&&Kv(o.stateNode.containerInfo),Bt(o),null;case 10:return tu(o.type),Bt(o),null;case 19:if(Le(Wn),S=o.memoizedState,S===null)return Bt(o),null;if(m=(o.flags&128)!==0,w=S.rendering,w===null)if(m)Mf(S,!1);else{if(Va!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(w=Nf(i),w!==null){for(o.flags|=128,Mf(S,!1),i=w.updateQueue,o.updateQueue=i,lh(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)un(c,i),c=c.sibling;return he(Wn,Wn.current&1|2),o.child}i=i.sibling}S.tail!==null&&Ot()>Vf&&(o.flags|=128,m=!0,Mf(S,!1),o.lanes=4194304)}else{if(!m)if(i=Nf(w),i!==null){if(o.flags|=128,m=!0,i=i.updateQueue,o.updateQueue=i,lh(o,i),Mf(S,!0),S.tail===null&&S.tailMode==="hidden"&&!w.alternate&&!xn)return Bt(o),null}else 2*Ot()-S.renderingStartTime>Vf&&c!==536870912&&(o.flags|=128,m=!0,Mf(S,!1),o.lanes=4194304);S.isBackwards?(w.sibling=o.child,o.child=w):(i=S.last,i!==null?i.sibling=w:o.child=w,S.last=w)}return S.tail!==null?(o=S.tail,S.rendering=o,S.tail=o.sibling,S.renderingStartTime=Ot(),o.sibling=null,i=Wn.current,he(Wn,m?i&1|2:i&1),o):(Bt(o),null);case 22:case 23:return _u(o),Df(),m=o.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(c&536870912)!==0&&(o.flags&128)===0&&(Bt(o),o.subtreeFlags&6&&(o.flags|=8192)):Bt(o),c=o.updateQueue,c!==null&&lh(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==c&&(o.flags|=2048),i!==null&&Le(Rl),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),tu(fa),Bt(o),null;case 25:return null;case 30:return null}throw Error(u(156,o.tag))}function cy(i,o){switch(Tu(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return tu(fa),oe(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ne(o),null;case 13:if(_u(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(u(340));vf()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Le(Wn),null;case 4:return oe(),null;case 10:return tu(o.type),null;case 22:case 23:return _u(o),Df(),i!==null&&Le(Rl),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return tu(fa),null;case 25:return null;default:return null}}function Ov(i,o){switch(Tu(o),o.tag){case 3:tu(fa),oe();break;case 26:case 27:case 5:Ne(o);break;case 4:oe();break;case 13:_u(o);break;case 19:Le(Wn);break;case 10:tu(o.type);break;case 22:case 23:_u(o),Df(),i!==null&&Le(Rl);break;case 24:tu(fa)}}function oh(i,o){try{var c=o.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var S=m.next;c=S;do{if((c.tag&i)===i){m=void 0;var w=c.create,F=c.inst;m=w(),F.destroy=m}c=c.next}while(c!==S)}}catch($){oa(o,o.return,$)}}function ps(i,o,c){try{var m=o.updateQueue,S=m!==null?m.lastEffect:null;if(S!==null){var w=S.next;m=w;do{if((m.tag&i)===i){var F=m.inst,$=F.destroy;if($!==void 0){F.destroy=void 0,S=o;var te=c,Ce=$;try{Ce()}catch(Ye){oa(S,te,Ye)}}}m=m.next}while(m!==w)}}catch(Ye){oa(o,o.return,Ye)}}function Qp(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{Sf(o,c)}catch(m){oa(i,i.return,m)}}}function Xp(i,o,c){c.props=Co(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(m){oa(i,o,m)}}function Sc(i,o){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof c=="function"?i.refCleanup=c(m):c.current=m}}catch(S){oa(i,o,S)}}function ul(i,o){var c=i.ref,m=i.refCleanup;if(c!==null)if(typeof m=="function")try{m()}catch(S){oa(i,o,S)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(S){oa(i,o,S)}else c.current=null}function ms(i){var o=i.type,c=i.memoizedProps,m=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&m.focus();break e;case"img":c.src?m.src=c.src:c.srcSet&&(m.srcset=c.srcSet)}}catch(S){oa(i,i.return,S)}}function Ip(i,o,c){try{var m=i.stateNode;R0(m,i.type,c,o),m[Ct]=o}catch(S){oa(i,i.return,S)}}function zf(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Lu(i.type)||i.tag===4}function Hi(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||zf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Lu(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function vs(i,o,c){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=pm));else if(m!==4&&(m===27&&Lu(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(vs(i,o,c),i=i.sibling;i!==null;)vs(i,o,c),i=i.sibling}function sh(i,o,c){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(m!==4&&(m===27&&Lu(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(sh(i,o,c),i=i.sibling;i!==null;)sh(i,o,c),i=i.sibling}function Dc(i){var o=i.stateNode,c=i.memoizedProps;try{for(var m=i.type,S=o.attributes;S.length;)o.removeAttributeNode(S[0]);Gt(o,m,c),o[at]=i,o[Ct]=c}catch(w){oa(i,i.return,w)}}var ll=!1,Jn=!1,Vl=!1,Zp=typeof WeakSet=="function"?WeakSet:Set,er=null;function Tv(i,o){if(i=i.containerInfo,lu=xh,i=fv(i),_d(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var S=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var F=0,$=-1,te=-1,Ce=0,Ye=0,Ze=i,Oe=null;t:for(;;){for(var we;Ze!==c||S!==0&&Ze.nodeType!==3||($=F+S),Ze!==w||m!==0&&Ze.nodeType!==3||(te=F+m),Ze.nodeType===3&&(F+=Ze.nodeValue.length),(we=Ze.firstChild)!==null;)Oe=Ze,Ze=we;for(;;){if(Ze===i)break t;if(Oe===c&&++Ce===S&&($=F),Oe===w&&++Ye===m&&(te=F),(we=Ze.nextSibling)!==null)break;Ze=Oe,Oe=Ze.parentNode}Ze=we}c=$===-1||te===-1?null:{start:$,end:te}}else c=null}c=c||{start:0,end:0}}else c=null;for(If={focusedElem:i,selectionRange:c},xh=!1,er=o;er!==null;)if(o=er,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,er=i;else for(;er!==null;){switch(o=er,w=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,c=o,S=w.memoizedProps,w=w.memoizedState,m=c.stateNode;try{var kt=Co(c.type,S,c.elementType===c.type);i=m.getSnapshotBeforeUpdate(kt,w),m.__reactInternalSnapshotBeforeUpdate=i}catch(_t){oa(c,c.return,_t)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)Dh(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Dh(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(u(163))}if(i=o.sibling,i!==null){i.return=o.return,er=i;break}er=o.return}}function kv(i,o,c){var m=c.flags;switch(c.tag){case 0:case 11:case 15:$l(i,c),m&4&&oh(5,c);break;case 1:if($l(i,c),m&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(F){oa(c,c.return,F)}else{var S=Co(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(S,o,i.__reactInternalSnapshotBeforeUpdate)}catch(F){oa(c,c.return,F)}}m&64&&Qp(c),m&512&&Sc(c,c.return);break;case 3:if($l(i,c),m&64&&(i=c.updateQueue,i!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{Sf(i,o)}catch(F){oa(c,c.return,F)}}break;case 27:o===null&&m&4&&Dc(c);case 26:case 5:$l(i,c),o===null&&m&4&&ms(c),m&512&&Sc(c,c.return);break;case 12:$l(i,c);break;case 13:$l(i,c),m&4&&Kp(i,c),m&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=cm.bind(null,c),Wf(i,c))));break;case 22:if(m=c.memoizedState!==null||ll,!m){o=o!==null&&o.memoizedState!==null||Jn,S=ll;var w=Jn;ll=m,(Jn=o)&&!w?xo(i,c,(c.subtreeFlags&8772)!==0):$l(i,c),ll=S,Jn=w}break;case 30:break;default:$l(i,c)}}function Nv(i){var o=i.alternate;o!==null&&(i.alternate=null,Nv(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&vr(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Ta=null,Nr=!1;function ql(i,o,c){for(c=c.child;c!==null;)On(i,o,c),c=c.sibling}function On(i,o,c){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(xa,c)}catch{}switch(c.tag){case 26:Jn||ul(c,o),ql(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Jn||ul(c,o);var m=Ta,S=Nr;Lu(c.type)&&(Ta=c.stateNode,Nr=!1),ql(i,o,c),Gi(c.stateNode),Ta=m,Nr=S;break;case 5:Jn||ul(c,o);case 6:if(m=Ta,S=Nr,Ta=null,ql(i,o,c),Ta=m,Nr=S,Ta!==null)if(Nr)try{(Ta.nodeType===9?Ta.body:Ta.nodeName==="HTML"?Ta.ownerDocument.body:Ta).removeChild(c.stateNode)}catch(w){oa(c,o,w)}else try{Ta.removeChild(c.stateNode)}catch(w){oa(c,o,w)}break;case 18:Ta!==null&&(Nr?(i=Ta,Kf(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Wl(i)):Kf(Ta,c.stateNode));break;case 4:m=Ta,S=Nr,Ta=c.stateNode.containerInfo,Nr=!0,ql(i,o,c),Ta=m,Nr=S;break;case 0:case 11:case 14:case 15:Jn||ps(2,c,o),Jn||ps(4,c,o),ql(i,o,c);break;case 1:Jn||(ul(c,o),m=c.stateNode,typeof m.componentWillUnmount=="function"&&Xp(c,o,m)),ql(i,o,c);break;case 21:ql(i,o,c);break;case 22:Jn=(m=Jn)||c.memoizedState!==null,ql(i,o,c),Jn=m;break;default:ql(i,o,c)}}function Kp(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Wl(i)}catch(c){oa(o,o.return,c)}}function Rv(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new Zp),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new Zp),o;default:throw Error(u(435,i.tag))}}function Wp(i,o){var c=Rv(i);o.forEach(function(m){var S=k0.bind(null,i,m);c.has(m)||(c.add(m),m.then(S,S))})}function vi(i,o){var c=o.deletions;if(c!==null)for(var m=0;m<c.length;m++){var S=c[m],w=i,F=o,$=F;e:for(;$!==null;){switch($.tag){case 27:if(Lu($.type)){Ta=$.stateNode,Nr=!1;break e}break;case 5:Ta=$.stateNode,Nr=!1;break e;case 3:case 4:Ta=$.stateNode.containerInfo,Nr=!0;break e}$=$.return}if(Ta===null)throw Error(u(160));On(w,F,S),Ta=null,Nr=!1,w=S.alternate,w!==null&&(w.return=null),S.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)jf(o,i),o=o.sibling}var Zr=null;function jf(i,o){var c=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:vi(o,i),cr(i),m&4&&(ps(3,i,i.return),oh(3,i),ps(5,i,i.return));break;case 1:vi(o,i),cr(i),m&512&&(Jn||c===null||ul(c,c.return)),m&64&&ll&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?m:c.concat(m))));break;case 26:var S=Zr;if(vi(o,i),cr(i),m&512&&(Jn||c===null||ul(c,c.return)),m&4){var w=c!==null?c.memoizedState:null;if(m=i.memoizedState,c===null)if(m===null)if(i.stateNode===null){e:{m=i.type,c=i.memoizedProps,S=S.ownerDocument||S;t:switch(m){case"title":w=S.getElementsByTagName("title")[0],(!w||w[ot]||w[at]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=S.createElement(m),S.head.insertBefore(w,S.querySelector("head > title"))),Gt(w,m,c),w[at]=i,za(w),m=w;break e;case"link":var F=eg("link","href",S).get(m+(c.href||""));if(F){for(var $=0;$<F.length;$++)if(w=F[$],w.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&w.getAttribute("rel")===(c.rel==null?null:c.rel)&&w.getAttribute("title")===(c.title==null?null:c.title)&&w.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){F.splice($,1);break t}}w=S.createElement(m),Gt(w,m,c),S.head.appendChild(w);break;case"meta":if(F=eg("meta","content",S).get(m+(c.content||""))){for($=0;$<F.length;$++)if(w=F[$],w.getAttribute("content")===(c.content==null?null:""+c.content)&&w.getAttribute("name")===(c.name==null?null:c.name)&&w.getAttribute("property")===(c.property==null?null:c.property)&&w.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&w.getAttribute("charset")===(c.charSet==null?null:c.charSet)){F.splice($,1);break t}}w=S.createElement(m),Gt(w,m,c),S.head.appendChild(w);break;default:throw Error(u(468,m))}w[at]=i,za(w),m=w}i.stateNode=m}else tg(S,i.type,i.stateNode);else i.stateNode=xy(S,m,i.memoizedProps);else w!==m?(w===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):w.count--,m===null?tg(S,i.type,i.stateNode):xy(S,m,i.memoizedProps)):m===null&&i.stateNode!==null&&Ip(i,i.memoizedProps,c.memoizedProps)}break;case 27:vi(o,i),cr(i),m&512&&(Jn||c===null||ul(c,c.return)),c!==null&&m&4&&Ip(i,i.memoizedProps,c.memoizedProps);break;case 5:if(vi(o,i),cr(i),m&512&&(Jn||c===null||ul(c,c.return)),i.flags&32){S=i.stateNode;try{Io(S,"")}catch(we){oa(i,i.return,we)}}m&4&&i.stateNode!=null&&(S=i.memoizedProps,Ip(i,S,c!==null?c.memoizedProps:S)),m&1024&&(Vl=!0);break;case 6:if(vi(o,i),cr(i),m&4){if(i.stateNode===null)throw Error(u(162));m=i.memoizedProps,c=i.stateNode;try{c.nodeValue=m}catch(we){oa(i,i.return,we)}}break;case 3:if(Kl=null,S=Zr,Zr=tn(o.containerInfo),vi(o,i),Zr=S,cr(i),m&4&&c!==null&&c.memoizedState.isDehydrated)try{Wl(o.containerInfo)}catch(we){oa(i,i.return,we)}Vl&&(Vl=!1,Bv(i));break;case 4:m=Zr,Zr=tn(i.stateNode.containerInfo),vi(o,i),cr(i),Zr=m;break;case 12:vi(o,i),cr(i);break;case 13:vi(o,i),cr(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Hv=Ot()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Wp(i,m)));break;case 22:S=i.memoizedState!==null;var te=c!==null&&c.memoizedState!==null,Ce=ll,Ye=Jn;if(ll=Ce||S,Jn=Ye||te,vi(o,i),Jn=Ye,ll=Ce,cr(i),m&8192)e:for(o=i.stateNode,o._visibility=S?o._visibility&-2:o._visibility|1,S&&(c===null||te||ll||Jn||ka(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){te=c=o;try{if(w=te.stateNode,S)F=w.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{$=te.stateNode;var Ze=te.memoizedProps.style,Oe=Ze!=null&&Ze.hasOwnProperty("display")?Ze.display:null;$.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(we){oa(te,te.return,we)}}}else if(o.tag===6){if(c===null){te=o;try{te.stateNode.nodeValue=S?"":te.memoizedProps}catch(we){oa(te,te.return,we)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}m&4&&(m=i.updateQueue,m!==null&&(c=m.retryQueue,c!==null&&(m.retryQueue=null,Wp(i,c))));break;case 19:vi(o,i),cr(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Wp(i,m)));break;case 30:break;case 21:break;default:vi(o,i),cr(i)}}function cr(i){var o=i.flags;if(o&2){try{for(var c,m=i.return;m!==null;){if(zf(m)){c=m;break}m=m.return}if(c==null)throw Error(u(160));switch(c.tag){case 27:var S=c.stateNode,w=Hi(i);sh(i,w,S);break;case 5:var F=c.stateNode;c.flags&32&&(Io(F,""),c.flags&=-33);var $=Hi(i);sh(i,$,F);break;case 3:case 4:var te=c.stateNode.containerInfo,Ce=Hi(i);vs(i,Ce,te);break;default:throw Error(u(161))}}catch(Ye){oa(i,i.return,Ye)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function Bv(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;Bv(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function $l(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)kv(i,o.alternate,o),o=o.sibling}function ka(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:ps(4,o,o.return),ka(o);break;case 1:ul(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&Xp(o,o.return,c),ka(o);break;case 27:Gi(o.stateNode);case 26:case 5:ul(o,o.return),ka(o);break;case 22:o.memoizedState===null&&ka(o);break;case 30:ka(o);break;default:ka(o)}i=i.sibling}}function xo(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var m=o.alternate,S=i,w=o,F=w.flags;switch(w.tag){case 0:case 11:case 15:xo(S,w,c),oh(4,w);break;case 1:if(xo(S,w,c),m=w,S=m.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(Ce){oa(m,m.return,Ce)}if(m=w,S=m.updateQueue,S!==null){var $=m.stateNode;try{var te=S.shared.hiddenCallbacks;if(te!==null)for(S.shared.hiddenCallbacks=null,S=0;S<te.length;S++)Sp(te[S],$)}catch(Ce){oa(m,m.return,Ce)}}c&&F&64&&Qp(w),Sc(w,w.return);break;case 27:Dc(w);case 26:case 5:xo(S,w,c),c&&m===null&&F&4&&ms(w),Sc(w,w.return);break;case 12:xo(S,w,c);break;case 13:xo(S,w,c),c&&F&4&&Kp(S,w);break;case 22:w.memoizedState===null&&xo(S,w,c),Sc(w,w.return);break;case 30:break;default:xo(S,w,c)}o=o.sibling}}function zu(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&Nl(c))}function Jp(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Nl(i))}function Rr(i,o,c,m){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)_v(i,o,c,m),o=o.sibling}function _v(i,o,c,m){var S=o.flags;switch(o.tag){case 0:case 11:case 15:Rr(i,o,c,m),S&2048&&oh(9,o);break;case 1:Rr(i,o,c,m);break;case 3:Rr(i,o,c,m),S&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Nl(i)));break;case 12:if(S&2048){Rr(i,o,c,m),i=o.stateNode;try{var w=o.memoizedProps,F=w.id,$=w.onPostCommit;typeof $=="function"&&$(F,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(te){oa(o,o.return,te)}}else Rr(i,o,c,m);break;case 13:Rr(i,o,c,m);break;case 23:break;case 22:w=o.stateNode,F=o.alternate,o.memoizedState!==null?w._visibility&2?Rr(i,o,c,m):In(i,o):w._visibility&2?Rr(i,o,c,m):(w._visibility|=2,Ao(i,o,c,m,(o.subtreeFlags&10256)!==0)),S&2048&&zu(F,o);break;case 24:Rr(i,o,c,m),S&2048&&Jp(o.alternate,o);break;default:Rr(i,o,c,m)}}function Ao(i,o,c,m,S){for(S=S&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var w=i,F=o,$=c,te=m,Ce=F.flags;switch(F.tag){case 0:case 11:case 15:Ao(w,F,$,te,S),oh(8,F);break;case 23:break;case 22:var Ye=F.stateNode;F.memoizedState!==null?Ye._visibility&2?Ao(w,F,$,te,S):In(w,F):(Ye._visibility|=2,Ao(w,F,$,te,S)),S&&Ce&2048&&zu(F.alternate,F);break;case 24:Ao(w,F,$,te,S),S&&Ce&2048&&Jp(F.alternate,F);break;default:Ao(w,F,$,te,S)}o=o.sibling}}function In(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,m=o,S=m.flags;switch(m.tag){case 22:In(c,m),S&2048&&zu(m.alternate,m);break;case 24:In(c,m),S&2048&&Jp(m.alternate,m);break;default:In(c,m)}o=o.sibling}}var Sr=8192;function Ha(i){if(i.subtreeFlags&Sr)for(i=i.child;i!==null;)fy(i),i=i.sibling}function fy(i){switch(i.tag){case 26:Ha(i),i.flags&Sr&&i.memoizedState!==null&&Ty(Zr,i.memoizedState,i.memoizedProps);break;case 5:Ha(i);break;case 3:case 4:var o=Zr;Zr=tn(i.stateNode.containerInfo),Ha(i),Zr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Sr,Sr=16777216,Ha(i),Sr=o):Ha(i));break;default:Ha(i)}}function Fv(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function gs(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var m=o[c];er=m,zv(m,i)}Fv(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Mv(i),i=i.sibling}function Mv(i){switch(i.tag){case 0:case 11:case 15:gs(i),i.flags&2048&&ps(9,i,i.return);break;case 3:gs(i);break;case 12:gs(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,gi(i)):gs(i);break;default:gs(i)}}function gi(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var m=o[c];er=m,zv(m,i)}Fv(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:ps(8,o,o.return),gi(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,gi(o));break;default:gi(o)}i=i.sibling}}function zv(i,o){for(;er!==null;){var c=er;switch(c.tag){case 0:case 11:case 15:ps(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var m=c.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Nl(c.memoizedState.cache)}if(m=c.child,m!==null)m.return=c,er=m;else e:for(c=i;er!==null;){m=er;var S=m.sibling,w=m.return;if(Nv(m),m===c){er=null;break e}if(S!==null){S.return=w,er=S;break e}er=w}}}var jv={getCacheForType:function(i){var o=Oa(fa),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},em=typeof WeakMap=="function"?WeakMap:Map,ea=0,ha=null,kn=null,Nn=0,na=0,Vi=null,Gl=!1,Lf=!1,Lv=!1,Oo=0,Va=0,To=0,Ec=0,Yl=0,ju=0,Uf=0,Hf=null,qi=null,Uv=!1,Hv=0,Vf=1/0,Cc=null,ys=null,Br=0,Pl=null,qf=null,_r=0,tm=0,nm=null,Vv=null,wc=0,qv=null;function Kr(){if((ea&2)!==0&&Nn!==0)return Nn&-Nn;if(K.T!==null){var i=ku;return i!==0?i:Ds()}return pn()}function $v(){ju===0&&(ju=(Nn&536870912)===0||xn?zt():536870912);var i=Li.current;return i!==null&&(i.flags|=32),ju}function iu(i,o,c){(i===ha&&(na===2||na===9)||i.cancelPendingCommit!==null)&&(Ql(i,0),ko(i,Nn,ju,!1)),st(i,c),((ea&2)===0||i!==ha)&&(i===ha&&((ea&2)===0&&(Ec|=c),Va===4&&ko(i,Nn,ju,!1)),$i(i))}function $f(i,o,c){if((ea&6)!==0)throw Error(u(327));var m=!c&&(o&124)===0&&(o&i.expiredLanes)===0||nn(i,o),S=m?Yv(i,o):am(i,o,!0),w=m;do{if(S===0){Lf&&!m&&ko(i,o,0,!1);break}else{if(c=i.current.alternate,w&&!dy(c)){S=am(i,o,!1),w=!1;continue}if(S===2){if(w=o,i.errorRecoveryDisabledLanes&w)var F=0;else F=i.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){o=F;e:{var $=i;S=Hf;var te=$.current.memoizedState.isDehydrated;if(te&&(Ql($,F).flags|=256),F=am($,F,!1),F!==2){if(Lv&&!te){$.errorRecoveryDisabledLanes|=w,Ec|=w,S=4;break e}w=qi,qi=S,w!==null&&(qi===null?qi=w:qi.push.apply(qi,w))}S=F}if(w=!1,S!==2)continue}}if(S===1){Ql(i,0),ko(i,o,0,!0);break}e:{switch(m=i,w=S,w){case 0:case 1:throw Error(u(345));case 4:if((o&4194048)!==o)break;case 6:ko(m,o,ju,!Gl);break e;case 2:qi=null;break;case 3:case 5:break;default:throw Error(u(329))}if((o&62914560)===o&&(S=Hv+300-Ot(),10<S)){if(ko(m,o,ju,!Gl),vt(m,0,!0)!==0)break e;m.timeoutHandle=mm(ch.bind(null,m,c,qi,Cc,Uv,o,ju,Ec,Uf,Gl,w,2,-0,0),S);break e}ch(m,c,qi,Cc,Uv,o,ju,Ec,Uf,Gl,w,0,-0,0)}}break}while(!0);$i(i)}function ch(i,o,c,m,S,w,F,$,te,Ce,Ye,Ze,Oe,we){if(i.timeoutHandle=-1,Ze=o.subtreeFlags,(Ze&8192||(Ze&16785408)===16785408)&&(fr={stylesheets:null,count:0,unsuspend:Oy},fy(o),Ze=ng(),Ze!==null)){i.cancelPendingCommit=Ze(dh.bind(null,i,o,w,c,m,S,F,$,te,Ye,1,Oe,we)),ko(i,w,F,!Ce);return}dh(i,o,w,c,m,S,F,$,te)}function dy(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var m=0;m<c.length;m++){var S=c[m],w=S.getSnapshot;S=S.value;try{if(!Or(w(),S))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ko(i,o,c,m){o&=~Yl,o&=~Ec,i.suspendedLanes|=o,i.pingedLanes&=~o,m&&(i.warmLanes|=o),m=i.expirationTimes;for(var S=o;0<S;){var w=31-Kt(S),F=1<<w;m[w]=-1,S&=~F}c!==0&&Pt(i,c,o)}function xc(){return(ea&6)===0?(vh(0),!1):!0}function bs(){if(kn!==null){if(na===0)var i=kn.return;else i=kn,q=kl=null,Gd(i),Ja=null,pi=0,i=kn;for(;i!==null;)Ov(i.alternate,i),i=i.return;kn=null}}function Ql(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,B0(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),bs(),ha=i,kn=c=Tr(i.current,null),Nn=o,na=0,Vi=null,Gl=!1,Lf=nn(i,o),Lv=!1,Uf=ju=Yl=Ec=To=Va=0,qi=Hf=null,Uv=!1,(o&8)!==0&&(o|=o&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=o;0<m;){var S=31-Kt(m),w=1<<S;o|=i[S],m&=~w}return Oo=o,ki(),c}function Gv(i,o){ln=null,K.H=nh,o===yr||o===Vd?(o=vv(),na=3):o===vp?(o=vv(),na=4):na=o===Ua?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Vi=o,kn===null&&(Va=1,Bf(i,Gr(o,i.current)))}function hy(){var i=K.H;return K.H=nh,i===null?nh:i}function Ac(){var i=K.A;return K.A=jv,i}function Oc(){Va=4,Gl||(Nn&4194048)!==Nn&&Li.current!==null||(Lf=!0),(To&134217727)===0&&(Ec&134217727)===0||ha===null||ko(ha,Nn,ju,!1)}function am(i,o,c){var m=ea;ea|=2;var S=hy(),w=Ac();(ha!==i||Nn!==o)&&(Cc=null,Ql(i,o)),o=!1;var F=Va;e:do try{if(na!==0&&kn!==null){var $=kn,te=Vi;switch(na){case 8:bs(),F=6;break e;case 3:case 2:case 9:case 6:Li.current===null&&(o=!0);var Ce=na;if(na=0,Vi=null,Gf(i,$,te,Ce),c&&Lf){F=0;break e}break;default:Ce=na,na=0,Vi=null,Gf(i,$,te,Ce)}}rm(),F=Va;break}catch(Ye){Gv(i,Ye)}while(!0);return o&&i.shellSuspendCounter++,q=kl=null,ea=m,K.H=S,K.A=w,kn===null&&(ha=null,Nn=0,ki()),F}function rm(){for(;kn!==null;)um(kn)}function Yv(i,o){var c=ea;ea|=2;var m=hy(),S=Ac();ha!==i||Nn!==o?(Cc=null,Vf=Ot()+500,Ql(i,o)):Lf=nn(i,o);e:do try{if(na!==0&&kn!==null){o=kn;var w=Vi;t:switch(na){case 1:na=0,Vi=null,Gf(i,o,w,1);break;case 2:case 9:if(yp(w)){na=0,Vi=null,Pv(o);break}o=function(){na!==2&&na!==9||ha!==i||(na=7),$i(i)},w.then(o,o);break e;case 3:na=7;break e;case 4:na=5;break e;case 7:yp(w)?(na=0,Vi=null,Pv(o)):(na=0,Vi=null,Gf(i,o,w,7));break;case 5:var F=null;switch(kn.tag){case 26:F=kn.memoizedState;case 5:case 27:var $=kn;if(!F||tr(F)){na=0,Vi=null;var te=$.sibling;if(te!==null)kn=te;else{var Ce=$.return;Ce!==null?(kn=Ce,fh(Ce)):kn=null}break t}}na=0,Vi=null,Gf(i,o,w,5);break;case 6:na=0,Vi=null,Gf(i,o,w,6);break;case 8:bs(),Va=6;break e;default:throw Error(u(462))}}im();break}catch(Ye){Gv(i,Ye)}while(!0);return q=kl=null,K.H=m,K.A=S,ea=c,kn!==null?0:(ha=null,Nn=0,ki(),Va)}function im(){for(;kn!==null&&!jn();)um(kn)}function um(i){var o=Yp(i.alternate,i,Oo);i.memoizedProps=i.pendingProps,o===null?fh(i):kn=o}function Pv(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=ih(c,o,o.pendingProps,o.type,void 0,Nn);break;case 11:o=ih(c,o,o.pendingProps,o.type.render,o.ref,Nn);break;case 5:Gd(o);default:Ov(c,o),o=kn=un(o,Oo),o=Yp(c,o,Oo)}i.memoizedProps=i.pendingProps,o===null?fh(i):kn=o}function Gf(i,o,c,m){q=kl=null,Gd(o),Ja=null,pi=0;var S=o.return;try{if(xv(i,S,o,c,Nn)){Va=1,Bf(i,Gr(c,i.current)),kn=null;return}}catch(w){if(S!==null)throw kn=S,w;Va=1,Bf(i,Gr(c,i.current)),kn=null;return}o.flags&32768?(xn||m===1?i=!0:Lf||(Nn&536870912)!==0?i=!1:(Gl=i=!0,(m===2||m===9||m===3||m===6)&&(m=Li.current,m!==null&&m.tag===13&&(m.flags|=16384))),py(o,i)):fh(o)}function fh(i){var o=i;do{if((o.flags&32768)!==0){py(o,Gl);return}i=o.return;var c=Pp(o.alternate,o,Oo);if(c!==null){kn=c;return}if(o=o.sibling,o!==null){kn=o;return}kn=o=i}while(o!==null);Va===0&&(Va=5)}function py(i,o){do{var c=cy(i.alternate,i);if(c!==null){c.flags&=32767,kn=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){kn=i;return}kn=i=c}while(i!==null);Va=6,kn=null}function dh(i,o,c,m,S,w,F,$,te){i.cancelPendingCommit=null;do om();while(Br!==0);if((ea&6)!==0)throw Error(u(327));if(o!==null){if(o===i.current)throw Error(u(177));if(w=o.lanes|o.childLanes,w|=Al,gt(i,c,w,F,$,te),i===ha&&(kn=ha=null,Nn=0),qf=o,Pl=i,_r=c,tm=w,nm=S,Vv=m,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,gy(Yt,function(){return Qv(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=K.T,K.T=null,S=ue.p,ue.p=2,F=ea,ea|=4;try{Tv(i,o,c)}finally{ea=F,ue.p=S,K.T=m}}Br=1,my(),hh(),lm()}}function my(){if(Br===1){Br=0;var i=Pl,o=qf,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=K.T,K.T=null;var m=ue.p;ue.p=2;var S=ea;ea|=4;try{jf(o,i);var w=If,F=fv(i.containerInfo),$=w.focusedElem,te=w.selectionRange;if(F!==$&&$&&$.ownerDocument&&Bd($.ownerDocument.documentElement,$)){if(te!==null&&_d($)){var Ce=te.start,Ye=te.end;if(Ye===void 0&&(Ye=Ce),"selectionStart"in $)$.selectionStart=Ce,$.selectionEnd=Math.min(Ye,$.value.length);else{var Ze=$.ownerDocument||document,Oe=Ze&&Ze.defaultView||window;if(Oe.getSelection){var we=Oe.getSelection(),kt=$.textContent.length,_t=Math.min(te.start,kt),Zn=te.end===void 0?_t:Math.min(te.end,kt);!we.extend&&_t>Zn&&(F=Zn,Zn=_t,_t=F);var me=ga($,_t),se=ga($,Zn);if(me&&se&&(we.rangeCount!==1||we.anchorNode!==me.node||we.anchorOffset!==me.offset||we.focusNode!==se.node||we.focusOffset!==se.offset)){var Se=Ze.createRange();Se.setStart(me.node,me.offset),we.removeAllRanges(),_t>Zn?(we.addRange(Se),we.extend(se.node,se.offset)):(Se.setEnd(se.node,se.offset),we.addRange(Se))}}}}for(Ze=[],we=$;we=we.parentNode;)we.nodeType===1&&Ze.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<Ze.length;$++){var Xe=Ze[$];Xe.element.scrollLeft=Xe.left,Xe.element.scrollTop=Xe.top}}xh=!!lu,If=lu=null}finally{ea=S,ue.p=m,K.T=c}}i.current=o,Br=2}}function hh(){if(Br===2){Br=0;var i=Pl,o=qf,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=K.T,K.T=null;var m=ue.p;ue.p=2;var S=ea;ea|=4;try{kv(i,o.alternate,o)}finally{ea=S,ue.p=m,K.T=c}}Br=3}}function lm(){if(Br===4||Br===3){Br=0,Ut();var i=Pl,o=qf,c=_r,m=Vv;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Br=5:(Br=0,qf=Pl=null,vy(i,i.pendingLanes));var S=i.pendingLanes;if(S===0&&(ys=null),Dt(c),o=o.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(xa,o,void 0,(o.current.flags&128)===128)}catch{}if(m!==null){o=K.T,S=ue.p,ue.p=2,K.T=null;try{for(var w=i.onRecoverableError,F=0;F<m.length;F++){var $=m[F];w($.value,{componentStack:$.stack})}}finally{K.T=o,ue.p=S}}(_r&3)!==0&&om(),$i(i),S=i.pendingLanes,(c&4194090)!==0&&(S&42)!==0?i===qv?wc++:(wc=0,qv=i):wc=0,vh(0)}}function vy(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Nl(o)))}function om(i){return my(),hh(),lm(),Qv()}function Qv(){if(Br!==5)return!1;var i=Pl,o=tm;tm=0;var c=Dt(_r),m=K.T,S=ue.p;try{ue.p=32>c?32:c,K.T=null,c=nm,nm=null;var w=Pl,F=_r;if(Br=0,qf=Pl=null,_r=0,(ea&6)!==0)throw Error(u(331));var $=ea;if(ea|=4,Mv(w.current),_v(w,w.current,F,c),ea=$,vh(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(xa,w)}catch{}return!0}finally{ue.p=S,K.T=m,vy(i,o)}}function Xv(i,o,c){o=Gr(c,o),o=jp(i.stateNode,o,2),i=Ju(i,o,2),i!==null&&(st(i,2),$i(i))}function oa(i,o,c){if(i.tag===3)Xv(i,i,c);else for(;o!==null;){if(o.tag===3){Xv(o,i,c);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(ys===null||!ys.has(m))){i=Gr(c,i),c=Lp(2),m=Ju(o,c,2),m!==null&&(Ui(c,m,o,i),st(m,2),$i(m));break}}o=o.return}}function sm(i,o,c){var m=i.pingCache;if(m===null){m=i.pingCache=new em;var S=new Set;m.set(o,S)}else S=m.get(o),S===void 0&&(S=new Set,m.set(o,S));S.has(c)||(Lv=!0,S.add(c),i=Iv.bind(null,i,o,c),o.then(i,i))}function Iv(i,o,c){var m=i.pingCache;m!==null&&m.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,ha===i&&(Nn&c)===c&&(Va===4||Va===3&&(Nn&62914560)===Nn&&300>Ot()-Hv?(ea&2)===0&&Ql(i,0):Yl|=c,Uf===Nn&&(Uf=0)),$i(i)}function Zv(i,o){o===0&&(o=it()),i=Zu(i,o),i!==null&&(st(i,o),$i(i))}function cm(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Zv(i,c)}function k0(i,o){var c=0;switch(i.tag){case 13:var m=i.stateNode,S=i.memoizedState;S!==null&&(c=S.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(u(314))}m!==null&&m.delete(o),Zv(i,c)}function gy(i,o){return St(i,o)}var ph=null,Xl=null,Yf=!1,Tc=!1,mh=!1,No=0;function $i(i){i!==Xl&&i.next===null&&(Xl===null?ph=Xl=i:Xl=Xl.next=i),Tc=!0,Yf||(Yf=!0,fm())}function vh(i,o){if(!mh&&Tc){mh=!0;do for(var c=!1,m=ph;m!==null;){if(i!==0){var S=m.pendingLanes;if(S===0)var w=0;else{var F=m.suspendedLanes,$=m.pingedLanes;w=(1<<31-Kt(42|i)+1)-1,w&=S&~(F&~$),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(c=!0,gh(m,w))}else w=Nn,w=vt(m,m===ha?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||nn(m,w)||(c=!0,gh(m,w));m=m.next}while(c);mh=!1}}function yy(){Ss()}function Ss(){Tc=Yf=!1;var i=0;No!==0&&(Ro()&&(i=No),No=0);for(var o=Ot(),c=null,m=ph;m!==null;){var S=m.next,w=Pf(m,o);w===0?(m.next=null,c===null?ph=S:c.next=S,S===null&&(Xl=c)):(c=m,(i!==0||(w&3)!==0)&&(Tc=!0)),m=S}vh(i)}function Pf(i,o){for(var c=i.suspendedLanes,m=i.pingedLanes,S=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var F=31-Kt(w),$=1<<F,te=S[F];te===-1?(($&c)===0||($&m)!==0)&&(S[F]=Wt($,o)):te<=o&&(i.expiredLanes|=$),w&=~$}if(o=ha,c=Nn,c=vt(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,c===0||i===o&&(na===2||na===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&tt(m),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||nn(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(m!==null&&tt(m),Dt(c)){case 2:case 8:c=Rt;break;case 32:c=Yt;break;case 268435456:c=va;break;default:c=Yt}return m=by.bind(null,i),c=St(c,m),i.callbackPriority=o,i.callbackNode=c,o}return m!==null&&m!==null&&tt(m),i.callbackPriority=2,i.callbackNode=null,2}function by(i,o){if(Br!==0&&Br!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(om()&&i.callbackNode!==c)return null;var m=Nn;return m=vt(i,i===ha?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:($f(i,m,o),Pf(i,Ot()),i.callbackNode!=null&&i.callbackNode===c?by.bind(null,i):null)}function gh(i,o){if(om())return null;$f(i,o,!0)}function fm(){_0(function(){(ea&6)!==0?St(Zt,yy):Ss()})}function Ds(){return No===0&&(No=zt()),No}function dm(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Wc(""+i)}function yh(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function Sy(i,o,c,m,S){if(o==="submit"&&c&&c.stateNode===S){var w=dm((S[Ct]||null).action),F=m.submitter;F&&(o=(o=F[Ct]||null)?dm(o.formAction):F.getAttribute("formAction"),o!==null&&(w=o,F=null));var $=new ep("action","action",null,m,S);i.push({event:$,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(No!==0){var te=F?yh(S,F):new FormData(S);kf(c,{pending:!0,data:te,method:S.method,action:w},null,te)}}else typeof w=="function"&&($.preventDefault(),te=F?yh(S,F):new FormData(S),kf(c,{pending:!0,data:te,method:S.method,action:w},w,te))},currentTarget:S}]})}}for(var qa=0;qa<$n.length;qa++){var bh=$n[qa],N0=bh.toLowerCase(),mn=bh[0].toUpperCase()+bh.slice(1);xu(N0,"on"+mn)}xu(op,"onAnimationEnd"),xu(dv,"onAnimationIteration"),xu(eu,"onAnimationStart"),xu("dblclick","onDoubleClick"),xu("focusin","onFocus"),xu("focusout","onBlur"),xu(cf,"onTransitionRun"),xu(sp,"onTransitionStart"),xu(ac,"onTransitionCancel"),xu(ff,"onTransitionEnd"),Qu("onMouseEnter",["mouseout","mouseover"]),Qu("onMouseLeave",["mouseout","mouseover"]),Qu("onPointerEnter",["pointerout","pointerover"]),Qu("onPointerLeave",["pointerout","pointerover"]),Pu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pu("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Es=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sh));function kc(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var m=i[c],S=m.event;m=m.listeners;e:{var w=void 0;if(o)for(var F=m.length-1;0<=F;F--){var $=m[F],te=$.instance,Ce=$.currentTarget;if($=$.listener,te!==w&&S.isPropagationStopped())break e;w=$,S.currentTarget=Ce;try{w(S)}catch(Ye){fs(Ye)}S.currentTarget=null,w=te}else for(F=0;F<m.length;F++){if($=m[F],te=$.instance,Ce=$.currentTarget,$=$.listener,te!==w&&S.isPropagationStopped())break e;w=$,S.currentTarget=Ce;try{w(S)}catch(Ye){fs(Ye)}S.currentTarget=null,w=te}}}}function sn(i,o){var c=o[Aa];c===void 0&&(c=o[Aa]=new Set);var m=i+"__bubble";c.has(m)||(hm(o,i,2,!1),c.add(m))}function Qf(i,o,c){var m=0;o&&(m|=4),hm(c,i,m,o)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function Kv(i){if(!i[Wr]){i[Wr]=!0,Go.forEach(function(c){c!=="selectionchange"&&(Es.has(c)||Qf(c,!1,i),Qf(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Wr]||(o[Wr]=!0,Qf("selectionchange",!1,o))}}function hm(i,o,c,m){switch(og(o)){case 2:var S=ky;break;case 8:S=Bc;break;default:S=ug}c=S.bind(null,o,c,i),S=void 0,!nf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),m?S!==void 0?i.addEventListener(o,c,{capture:!0,passive:S}):i.addEventListener(o,c,!0):S!==void 0?i.addEventListener(o,c,{passive:S}):i.addEventListener(o,c,!1)}function Dr(i,o,c,m,S){var w=m;if((o&1)===0&&(o&2)===0&&m!==null)e:for(;;){if(m===null)return;var F=m.tag;if(F===3||F===4){var $=m.stateNode.containerInfo;if($===S)break;if(F===4)for(F=m.return;F!==null;){var te=F.tag;if((te===3||te===4)&&F.stateNode.containerInfo===S)return;F=F.return}for(;$!==null;){if(F=an($),F===null)return;if(te=F.tag,te===5||te===6||te===26||te===27){m=w=F;continue e}$=$.parentNode}}m=m.return}tf(function(){var Ce=w,Ye=Wh(c),Ze=[];e:{var Oe=df.get(i);if(Oe!==void 0){var we=ep,kt=i;switch(i){case"keypress":if(dn(c)===0)break e;case"keydown":case"keyup":we=Wi;break;case"focusin":kt="focus",we=rp;break;case"focusout":kt="blur",we=rp;break;case"beforeblur":case"afterblur":we=rp;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=so;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=ap;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=av;break;case op:case dv:case eu:we=Jg;break;case ff:we=ny;break;case"scroll":case"scrollend":we=Kg;break;case"wheel":we=Js;break;case"copy":case"cut":case"paste":we=rf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=bu;break;case"toggle":case"beforetoggle":we=xd}var _t=(o&4)!==0,Zn=!_t&&(i==="scroll"||i==="scrollend"),me=_t?Oe!==null?Oe+"Capture":null:Oe;_t=[];for(var se=Ce,Se;se!==null;){var Xe=se;if(Se=Xe.stateNode,Xe=Xe.tag,Xe!==5&&Xe!==26&&Xe!==27||Se===null||me===null||(Xe=Ks(se,me),Xe!=null&&_t.push(Ht(se,Xe,Se))),Zn)break;se=se.return}0<_t.length&&(Oe=new we(Oe,kt,null,c,Ye),Ze.push({event:Oe,listeners:_t}))}}if((o&7)===0){e:{if(Oe=i==="mouseover"||i==="pointerover",we=i==="mouseout"||i==="pointerout",Oe&&c!==Zo&&(kt=c.relatedTarget||c.fromElement)&&(an(kt)||kt[jt]))break e;if((we||Oe)&&(Oe=Ye.window===Ye?Ye:(Oe=Ye.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,we?(kt=c.relatedTarget||c.toElement,we=Ce,kt=kt?an(kt):null,kt!==null&&(Zn=h(kt),_t=kt.tag,kt!==Zn||_t!==5&&_t!==27&&_t!==6)&&(kt=null)):(we=null,kt=Ce),we!==kt)){if(_t=so,Xe="onMouseLeave",me="onMouseEnter",se="mouse",(i==="pointerout"||i==="pointerover")&&(_t=bu,Xe="onPointerLeave",me="onPointerEnter",se="pointer"),Zn=we==null?Oe:$o(we),Se=kt==null?Oe:$o(kt),Oe=new _t(Xe,se+"leave",we,c,Ye),Oe.target=Zn,Oe.relatedTarget=Se,Xe=null,an(Ye)===Ce&&(_t=new _t(me,se+"enter",kt,c,Ye),_t.target=Se,_t.relatedTarget=Zn,Xe=_t),Zn=Xe,we&&kt)t:{for(_t=we,me=kt,se=0,Se=_t;Se;Se=Ia(Se))se++;for(Se=0,Xe=me;Xe;Xe=Ia(Xe))Se++;for(;0<se-Se;)_t=Ia(_t),se--;for(;0<Se-se;)me=Ia(me),Se--;for(;se--;){if(_t===me||me!==null&&_t===me.alternate)break t;_t=Ia(_t),me=Ia(me)}_t=null}else _t=null;we!==null&&wa(Ze,Oe,we,_t,!1),kt!==null&&Zn!==null&&wa(Ze,Zn,kt,_t,!0)}}e:{if(Oe=Ce?$o(Ce):window,we=Oe.nodeName&&Oe.nodeName.toLowerCase(),we==="select"||we==="input"&&Oe.type==="file")var yt=uv;else if(of(Oe))if(lv)yt=sv;else{yt=oi;var Cn=Rd}else we=Oe.nodeName,!we||we.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Ce&&Zs(Ce.elementType)&&(yt=uv):yt=wu;if(yt&&(yt=yt(i,Ce))){Jo(Ze,yt,c,Ye);break e}Cn&&Cn(i,Oe,Ce),i==="focusout"&&Ce&&Oe.type==="number"&&Ce.memoizedProps.value!=null&&Qs(Oe,"number",Oe.value)}switch(Cn=Ce?$o(Ce):window,i){case"focusin":(of(Cn)||Cn.contentEditable==="true")&&(xl=Cn,$r=Ce,de=null);break;case"focusout":de=$r=xl=null;break;case"mousedown":qe=!0;break;case"contextmenu":case"mouseup":case"dragend":qe=!1,Be(Ze,c,Ye);break;case"selectionchange":if(nc)break;case"keydown":case"keyup":Be(Ze,c,Ye)}var Tt;if(Ad)e:{switch(i){case"compositionstart":var $t="onCompositionStart";break e;case"compositionend":$t="onCompositionEnd";break e;case"compositionupdate":$t="onCompositionUpdate";break e}$t=void 0}else Cl?kd(i,c)&&($t="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&($t="onCompositionStart");$t&&(Su&&c.locale!=="ko"&&(Cl||$t!=="onCompositionStart"?$t==="onCompositionEnd"&&Cl&&(Tt=Wm()):(lo=Ye,af="value"in lo?lo.value:lo.textContent,Cl=!0)),Cn=Xf(Ce,$t),0<Cn.length&&($t=new li($t,i,null,c,Ye),Ze.push({event:$t,listeners:Cn}),Tt?$t.data=Tt:(Tt=El(c),Tt!==null&&($t.data=Tt)))),(Tt=lp?rv(i,c):Wo(i,c))&&($t=Xf(Ce,"onBeforeInput"),0<$t.length&&(Cn=new li("onBeforeInput","beforeinput",null,c,Ye),Ze.push({event:Cn,listeners:$t}),Cn.data=Tt)),Sy(Ze,i,Ce,c,Ye)}kc(Ze,o)})}function Ht(i,o,c){return{instance:i,listener:o,currentTarget:c}}function Xf(i,o){for(var c=o+"Capture",m=[];i!==null;){var S=i,w=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||w===null||(S=Ks(i,c),S!=null&&m.unshift(Ht(i,S,w)),S=Ks(i,o),S!=null&&m.push(Ht(i,S,w))),i.tag===3)return m;i=i.return}return[]}function Ia(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function wa(i,o,c,m,S){for(var w=o._reactName,F=[];c!==null&&c!==m;){var $=c,te=$.alternate,Ce=$.stateNode;if($=$.tag,te!==null&&te===m)break;$!==5&&$!==26&&$!==27||Ce===null||(te=Ce,S?(Ce=Ks(c,w),Ce!=null&&F.unshift(Ht(c,Ce,te))):S||(Ce=Ks(c,w),Ce!=null&&F.push(Ht(c,Ce,te)))),c=c.return}F.length!==0&&i.push({event:o,listeners:F})}var uu=/\r\n?/g,Il=/\u0000|\uFFFD/g;function Dy(i){return(typeof i=="string"?i:""+i).replace(uu,`
|
|
164
|
-
`).replace(Il,"")}function Wv(i,o){return o=Dy(o),Dy(i)===o}function pm(){}function en(i,o,c,m,S,w){switch(c){case"children":typeof m=="string"?o==="body"||o==="textarea"&&m===""||Io(i,m):(typeof m=="number"||typeof m=="bigint")&&o!=="body"&&Io(i,""+m);break;case"className":ro(i,"class",m);break;case"tabIndex":ro(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(i,c,m);break;case"style":Kc(i,m,w);break;case"data":if(o!=="object"){ro(i,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(c);break}m=Wc(""+m),i.setAttribute(c,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(c==="formAction"?(o!=="input"&&en(i,o,"name",S.name,S,null),en(i,o,"formEncType",S.formEncType,S,null),en(i,o,"formMethod",S.formMethod,S,null),en(i,o,"formTarget",S.formTarget,S,null)):(en(i,o,"encType",S.encType,S,null),en(i,o,"method",S.method,S,null),en(i,o,"target",S.target,S,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(c);break}m=Wc(""+m),i.setAttribute(c,m);break;case"onClick":m!=null&&(i.onclick=pm);break;case"onScroll":m!=null&&sn("scroll",i);break;case"onScrollEnd":m!=null&&sn("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(u(61));if(c=m.__html,c!=null){if(S.children!=null)throw Error(u(60));i.innerHTML=c}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}c=Wc(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(c,""+m):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":m===!0?i.setAttribute(c,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(c,m):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(c,m):i.removeAttribute(c);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(c):i.setAttribute(c,m);break;case"popover":sn("beforetoggle",i),sn("toggle",i),Xu(i,"popover",m);break;case"xlinkActuate":Iu(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Iu(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Iu(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Iu(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Iu(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Iu(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Iu(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Iu(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Iu(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Xu(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Zg.get(c)||c,Xu(i,c,m))}}function Me(i,o,c,m,S,w){switch(c){case"style":Kc(i,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(u(61));if(c=m.__html,c!=null){if(S.children!=null)throw Error(u(60));i.innerHTML=c}}break;case"children":typeof m=="string"?Io(i,m):(typeof m=="number"||typeof m=="bigint")&&Io(i,""+m);break;case"onScroll":m!=null&&sn("scroll",i);break;case"onScrollEnd":m!=null&&sn("scrollend",i);break;case"onClick":m!=null&&(i.onclick=pm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hr.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(S=c.endsWith("Capture"),o=c.slice(2,S?c.length-7:void 0),w=i[Ct]||null,w=w!=null?w[c]:null,typeof w=="function"&&i.removeEventListener(o,w,S),typeof m=="function")){typeof w!="function"&&w!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,m,S);break e}c in i?i[c]=m:m===!0?i.setAttribute(c,""):Xu(i,c,m)}}}function Gt(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",i),sn("load",i);var m=!1,S=!1,w;for(w in c)if(c.hasOwnProperty(w)){var F=c[w];if(F!=null)switch(w){case"src":m=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,o));default:en(i,o,w,F,c,null)}}S&&en(i,o,"srcSet",c.srcSet,c,null),m&&en(i,o,"src",c.src,c,null);return;case"input":sn("invalid",i);var $=w=F=S=null,te=null,Ce=null;for(m in c)if(c.hasOwnProperty(m)){var Ye=c[m];if(Ye!=null)switch(m){case"name":S=Ye;break;case"type":F=Ye;break;case"checked":te=Ye;break;case"defaultChecked":Ce=Ye;break;case"value":w=Ye;break;case"defaultValue":$=Ye;break;case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(u(137,o));break;default:en(i,o,m,Ye,c,null)}}Dd(i,w,$,te,Ce,F,S,!1),Qo(i);return;case"select":sn("invalid",i),m=F=w=null;for(S in c)if(c.hasOwnProperty(S)&&($=c[S],$!=null))switch(S){case"value":w=$;break;case"defaultValue":F=$;break;case"multiple":m=$;default:en(i,o,S,$,c,null)}o=w,c=F,i.multiple=!!m,o!=null?Xs(i,!!m,o,!1):c!=null&&Xs(i,!!m,c,!0);return;case"textarea":sn("invalid",i),w=S=m=null;for(F in c)if(c.hasOwnProperty(F)&&($=c[F],$!=null))switch(F){case"value":m=$;break;case"defaultValue":S=$;break;case"children":w=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(u(91));break;default:en(i,o,F,$,c,null)}Ed(i,m,S,w),Qo(i);return;case"option":for(te in c)if(c.hasOwnProperty(te)&&(m=c[te],m!=null))switch(te){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:en(i,o,te,m,c,null)}return;case"dialog":sn("beforetoggle",i),sn("toggle",i),sn("cancel",i),sn("close",i);break;case"iframe":case"object":sn("load",i);break;case"video":case"audio":for(m=0;m<Sh.length;m++)sn(Sh[m],i);break;case"image":sn("error",i),sn("load",i);break;case"details":sn("toggle",i);break;case"embed":case"source":case"link":sn("error",i),sn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ce in c)if(c.hasOwnProperty(Ce)&&(m=c[Ce],m!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,o));default:en(i,o,Ce,m,c,null)}return;default:if(Zs(o)){for(Ye in c)c.hasOwnProperty(Ye)&&(m=c[Ye],m!==void 0&&Me(i,o,Ye,m,c,void 0));return}}for($ in c)c.hasOwnProperty($)&&(m=c[$],m!=null&&en(i,o,$,m,c,null))}function R0(i,o,c,m){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,w=null,F=null,$=null,te=null,Ce=null,Ye=null;for(we in c){var Ze=c[we];if(c.hasOwnProperty(we)&&Ze!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":te=Ze;default:m.hasOwnProperty(we)||en(i,o,we,null,m,Ze)}}for(var Oe in m){var we=m[Oe];if(Ze=c[Oe],m.hasOwnProperty(Oe)&&(we!=null||Ze!=null))switch(Oe){case"type":w=we;break;case"name":S=we;break;case"checked":Ce=we;break;case"defaultChecked":Ye=we;break;case"value":F=we;break;case"defaultValue":$=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(u(137,o));break;default:we!==Ze&&en(i,o,Oe,we,m,Ze)}}Sd(i,F,$,te,Ce,Ye,w,S);return;case"select":we=F=$=Oe=null;for(w in c)if(te=c[w],c.hasOwnProperty(w)&&te!=null)switch(w){case"value":break;case"multiple":we=te;default:m.hasOwnProperty(w)||en(i,o,w,null,m,te)}for(S in m)if(w=m[S],te=c[S],m.hasOwnProperty(S)&&(w!=null||te!=null))switch(S){case"value":Oe=w;break;case"defaultValue":$=w;break;case"multiple":F=w;default:w!==te&&en(i,o,S,w,m,te)}o=$,c=F,m=we,Oe!=null?Xs(i,!!c,Oe,!1):!!m!=!!c&&(o!=null?Xs(i,!!c,o,!0):Xs(i,!!c,c?[]:"",!1));return;case"textarea":we=Oe=null;for($ in c)if(S=c[$],c.hasOwnProperty($)&&S!=null&&!m.hasOwnProperty($))switch($){case"value":break;case"children":break;default:en(i,o,$,null,m,S)}for(F in m)if(S=m[F],w=c[F],m.hasOwnProperty(F)&&(S!=null||w!=null))switch(F){case"value":Oe=S;break;case"defaultValue":we=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:S!==w&&en(i,o,F,S,m,w)}Kh(i,Oe,we);return;case"option":for(var kt in c)if(Oe=c[kt],c.hasOwnProperty(kt)&&Oe!=null&&!m.hasOwnProperty(kt))switch(kt){case"selected":i.selected=!1;break;default:en(i,o,kt,null,m,Oe)}for(te in m)if(Oe=m[te],we=c[te],m.hasOwnProperty(te)&&Oe!==we&&(Oe!=null||we!=null))switch(te){case"selected":i.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:en(i,o,te,Oe,m,we)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _t in c)Oe=c[_t],c.hasOwnProperty(_t)&&Oe!=null&&!m.hasOwnProperty(_t)&&en(i,o,_t,null,m,Oe);for(Ce in m)if(Oe=m[Ce],we=c[Ce],m.hasOwnProperty(Ce)&&Oe!==we&&(Oe!=null||we!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(u(137,o));break;default:en(i,o,Ce,Oe,m,we)}return;default:if(Zs(o)){for(var Zn in c)Oe=c[Zn],c.hasOwnProperty(Zn)&&Oe!==void 0&&!m.hasOwnProperty(Zn)&&Me(i,o,Zn,void 0,m,Oe);for(Ye in m)Oe=m[Ye],we=c[Ye],!m.hasOwnProperty(Ye)||Oe===we||Oe===void 0&&we===void 0||Me(i,o,Ye,Oe,m,we);return}}for(var me in c)Oe=c[me],c.hasOwnProperty(me)&&Oe!=null&&!m.hasOwnProperty(me)&&en(i,o,me,null,m,Oe);for(Ze in m)Oe=m[Ze],we=c[Ze],!m.hasOwnProperty(Ze)||Oe===we||Oe==null&&we==null||en(i,o,Ze,Oe,m,we)}var lu=null,If=null;function yi(i){return i.nodeType===9?i:i.ownerDocument}function ta(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pa(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function ol(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Zf=null;function Ro(){var i=window.event;return i&&i.type==="popstate"?i===Zf?!1:(Zf=i,!0):(Zf=null,!1)}var mm=typeof setTimeout=="function"?setTimeout:void 0,B0=typeof clearTimeout=="function"?clearTimeout:void 0,Ey=typeof Promise=="function"?Promise:void 0,_0=typeof queueMicrotask=="function"?queueMicrotask:typeof Ey<"u"?function(i){return Ey.resolve(null).then(i).catch(sl)}:mm;function sl(i){setTimeout(function(){throw i})}function Lu(i){return i==="head"}function Kf(i,o){var c=o,m=0,S=0;do{var w=c.nextSibling;if(i.removeChild(c),w&&w.nodeType===8)if(c=w.data,c==="/$"){if(0<m&&8>m){c=m;var F=i.ownerDocument;if(c&1&&Gi(F.documentElement),c&2&&Gi(F.body),c&4)for(c=F.head,Gi(c),F=c.firstChild;F;){var $=F.nextSibling,te=F.nodeName;F[ot]||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&F.rel.toLowerCase()==="stylesheet"||c.removeChild(F),F=$}}if(S===0){i.removeChild(w),Wl(o);return}S--}else c==="$"||c==="$?"||c==="$!"?S++:m=c.charCodeAt(0)-48;else m=0;c=w}while(c);Wl(o)}function Dh(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Dh(c),vr(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function Nc(i,o,c,m){for(;i.nodeType===1;){var S=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[ot])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==S.rel||i.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||i.getAttribute("title")!==(S.title==null?null:S.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(S.src==null?null:S.src)||i.getAttribute("type")!==(S.type==null?null:S.type)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var w=S.name==null?null:""+S.name;if(S.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=cl(i.nextSibling),i===null)break}return null}function vm(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=cl(i.nextSibling),i===null))return null;return i}function Fr(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Wf(i,o){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")o();else{var m=function(){o(),c.removeEventListener("DOMContentLoaded",m)};c.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function cl(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var Cs=null;function Mr(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function pt(i,o,c){switch(o=yi(c),i){case"html":if(i=o.documentElement,!i)throw Error(u(452));return i;case"head":if(i=o.head,!i)throw Error(u(453));return i;case"body":if(i=o.body,!i)throw Error(u(454));return i;default:throw Error(u(451))}}function Gi(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);vr(i)}var _a=new Map,Na=new Set;function tn(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Zl=ue.d;ue.d={f:bi,r:Eh,D:Bo,C:Ch,L:fl,m:Jr,X:ws,S:Yi,M:Jv};function bi(){var i=Zl.f(),o=xc();return i||o}function Eh(i){var o=xi(i);o!==null&&o.tag===5&&o.type==="form"?os(o):Zl.r(i)}var zr=typeof document>"u"?null:document;function vn(i,o,c){var m=zr;if(m&&typeof o=="string"&&o){var S=gu(o);S='link[rel="'+i+'"][href="'+S+'"]',typeof c=="string"&&(S+='[crossorigin="'+c+'"]'),Na.has(S)||(Na.add(S),i={rel:i,crossOrigin:c,href:o},m.querySelector(S)===null&&(o=m.createElement("link"),Gt(o,"link",i),za(o),m.head.appendChild(o)))}}function Bo(i){Zl.D(i),vn("dns-prefetch",i,null)}function Ch(i,o){Zl.C(i,o),vn("preconnect",i,o)}function fl(i,o,c){Zl.L(i,o,c);var m=zr;if(m&&i&&o){var S='link[rel="preload"][as="'+gu(o)+'"]';o==="image"&&c&&c.imageSrcSet?(S+='[imagesrcset="'+gu(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(S+='[imagesizes="'+gu(c.imageSizes)+'"]')):S+='[href="'+gu(i)+'"]';var w=S;switch(o){case"style":w=Jf(i);break;case"script":w=Uu(i)}_a.has(w)||(i=A({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),_a.set(w,i),m.querySelector(S)!==null||o==="style"&&m.querySelector(ed(w))||o==="script"&&m.querySelector(Rc(w))||(o=m.createElement("link"),Gt(o,"link",i),za(o),m.head.appendChild(o)))}}function Jr(i,o){Zl.m(i,o);var c=zr;if(c&&i){var m=o&&typeof o.as=="string"?o.as:"script",S='link[rel="modulepreload"][as="'+gu(m)+'"][href="'+gu(i)+'"]',w=S;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Uu(i)}if(!_a.has(w)&&(i=A({rel:"modulepreload",href:i},o),_a.set(w,i),c.querySelector(S)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Rc(w)))return}m=c.createElement("link"),Gt(m,"link",i),za(m),c.head.appendChild(m)}}}function Yi(i,o,c){Zl.S(i,o,c);var m=zr;if(m&&i){var S=Yu(m).hoistableStyles,w=Jf(i);o=o||"default";var F=S.get(w);if(!F){var $={loading:0,preload:null};if(F=m.querySelector(ed(w)))$.loading=5;else{i=A({rel:"stylesheet",href:i,"data-precedence":o},c),(c=_a.get(w))&&nd(i,c);var te=F=m.createElement("link");za(te),Gt(te,"link",i),te._p=new Promise(function(Ce,Ye){te.onload=Ce,te.onerror=Ye}),te.addEventListener("load",function(){$.loading|=1}),te.addEventListener("error",function(){$.loading|=2}),$.loading|=4,gm(F,o,m)}F={type:"stylesheet",instance:F,count:1,state:$},S.set(w,F)}}}function ws(i,o){Zl.X(i,o);var c=zr;if(c&&i){var m=Yu(c).hoistableScripts,S=Uu(i),w=m.get(S);w||(w=c.querySelector(Rc(S)),w||(i=A({src:i,async:!0},o),(o=_a.get(S))&&ym(i,o),w=c.createElement("script"),za(w),Gt(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(S,w))}}function Jv(i,o){Zl.M(i,o);var c=zr;if(c&&i){var m=Yu(c).hoistableScripts,S=Uu(i),w=m.get(S);w||(w=c.querySelector(Rc(S)),w||(i=A({src:i,async:!0,type:"module"},o),(o=_a.get(S))&&ym(i,o),w=c.createElement("script"),za(w),Gt(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(S,w))}}function Cy(i,o,c,m){var S=(S=rt.current)?tn(S):null;if(!S)throw Error(u(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Jf(c.href),c=Yu(S).hoistableStyles,m=c.get(o),m||(m={type:"style",instance:null,count:0,state:null},c.set(o,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Jf(c.href);var w=Yu(S).hoistableStyles,F=w.get(i);if(F||(S=S.ownerDocument||S,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,F),(w=S.querySelector(ed(i)))&&!w._p&&(F.instance=w,F.state.loading=5),_a.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},_a.set(i,c),w||wy(S,i,c,F.state))),o&&m===null)throw Error(u(528,""));return F}if(o&&m!==null)throw Error(u(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Uu(c),c=Yu(S).hoistableScripts,m=c.get(o),m||(m={type:"script",instance:null,count:0,state:null},c.set(o,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,i))}}function Jf(i){return'href="'+gu(i)+'"'}function ed(i){return'link[rel="stylesheet"]['+i+"]"}function td(i){return A({},i,{"data-precedence":i.precedence,precedence:null})}function wy(i,o,c,m){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=1:(o=i.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=1}),o.addEventListener("error",function(){return m.loading|=2}),Gt(o,"link",c),za(o),i.head.appendChild(o))}function Uu(i){return'[src="'+gu(i)+'"]'}function Rc(i){return"script[async]"+i}function xy(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var m=i.querySelector('style[data-href~="'+gu(c.href)+'"]');if(m)return o.instance=m,za(m),m;var S=A({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),za(m),Gt(m,"style",S),gm(m,c.precedence,i),o.instance=m;case"stylesheet":S=Jf(c.href);var w=i.querySelector(ed(S));if(w)return o.state.loading|=4,o.instance=w,za(w),w;m=td(c),(S=_a.get(S))&&nd(m,S),w=(i.ownerDocument||i).createElement("link"),za(w);var F=w;return F._p=new Promise(function($,te){F.onload=$,F.onerror=te}),Gt(w,"link",m),o.state.loading|=4,gm(w,c.precedence,i),o.instance=w;case"script":return w=Uu(c.src),(S=i.querySelector(Rc(w)))?(o.instance=S,za(S),S):(m=c,(S=_a.get(w))&&(m=A({},c),ym(m,S)),i=i.ownerDocument||i,S=i.createElement("script"),za(S),Gt(S,"link",m),i.head.appendChild(S),o.instance=S);case"void":return null;default:throw Error(u(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(m=o.instance,o.state.loading|=4,gm(m,c.precedence,i));return o.instance}function gm(i,o,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=m.length?m[m.length-1]:null,w=S,F=0;F<m.length;F++){var $=m[F];if($.dataset.precedence===o)w=$;else if(w!==S)break}w?w.parentNode.insertBefore(i,w.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function nd(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function ym(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var Kl=null;function eg(i,o,c){if(Kl===null){var m=new Map,S=Kl=new Map;S.set(c,m)}else S=Kl,m=S.get(c),m||(m=new Map,S.set(c,m));if(m.has(i))return m;for(m.set(i,null),c=c.getElementsByTagName(i),S=0;S<c.length;S++){var w=c[S];if(!(w[ot]||w[at]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var F=w.getAttribute(o)||"";F=i+F;var $=m.get(F);$?$.push(w):m.set(F,[w])}}return m}function tg(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function Ay(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function tr(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var fr=null;function Oy(){}function Ty(i,o,c){if(fr===null)throw Error(u(475));var m=fr;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var S=Jf(c.href),w=i.querySelector(ed(S));if(w){i=w._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=ad.bind(m),i.then(m,m)),o.state.loading|=4,o.instance=w,za(w);return}w=i.ownerDocument||i,c=td(c),(S=_a.get(S))&&nd(c,S),w=w.createElement("link"),za(w);var F=w;F._p=new Promise(function($,te){F.onload=$,F.onerror=te}),Gt(w,"link",c),o.instance=w}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(m.count++,o=ad.bind(m),i.addEventListener("load",o),i.addEventListener("error",o))}}function ng(){if(fr===null)throw Error(u(475));var i=fr;return i.stylesheets&&i.count===0&&wh(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&wh(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function ad(){if(this.count--,this.count===0){if(this.stylesheets)wh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var rd=null;function wh(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,rd=new Map,o.forEach(ou,i),rd=null,ad.call(i))}function ou(i,o){if(!(o.state.loading&4)){var c=rd.get(i);if(c)var m=c.get(null);else{c=new Map,rd.set(i,c);for(var S=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<S.length;w++){var F=S[w];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(c.set(F.dataset.precedence,F),m=F)}m&&c.set(null,m)}S=o.instance,F=S.getAttribute("data-precedence"),w=c.get(F)||m,w===m&&c.set(null,S),c.set(F,S),this.count++,m=ad.bind(this),S.addEventListener("load",m),S.addEventListener("error",m),w?w.parentNode.insertBefore(S,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(S,i.firstChild)),o.state.loading|=4}}var Si={$$typeof:B,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function F0(i,o,c,m,S,w,F,$){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ut(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ut(0),this.hiddenUpdates=ut(null),this.identifierPrefix=m,this.onUncaughtError=S,this.onCaughtError=w,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function ag(i,o,c,m,S,w,F,$,te,Ce,Ye,Ze){return i=new F0(i,o,c,F,$,te,Ce,Ze),o=1,w===!0&&(o|=24),w=ci(3,null,null,o),i.current=w,w.stateNode=i,o=bf(),o.refCount++,i.pooledCache=o,o.refCount++,w.memoizedState={element:m,isDehydrated:c,cache:o},rs(w),i}function rg(i){return i?(i=rc,i):rc}function bm(i,o,c,m,S,w){S=rg(S),m.context===null?m.context=S:m.pendingContext=S,m=_i(o),m.payload={element:c},w=w===void 0?null:w,w!==null&&(m.callback=w),c=Ju(i,m,o),c!==null&&(iu(c,i,o),sc(c,i,o))}function Sm(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Dm(i,o){Sm(i,o),(i=i.alternate)&&Sm(i,o)}function ig(i){if(i.tag===13){var o=Zu(i,67108864);o!==null&&iu(o,i,67108864),Dm(i,67108864)}}var xh=!0;function ky(i,o,c,m){var S=K.T;K.T=null;var w=ue.p;try{ue.p=2,ug(i,o,c,m)}finally{ue.p=w,K.T=S}}function Bc(i,o,c,m){var S=K.T;K.T=null;var w=ue.p;try{ue.p=8,ug(i,o,c,m)}finally{ue.p=w,K.T=S}}function ug(i,o,c,m){if(xh){var S=Em(m);if(S===null)Dr(i,o,m,Cm,c),Fc(i,m);else if(Ry(S,i,o,c,m))m.stopPropagation();else if(Fc(i,m),o&4&&-1<Ny.indexOf(i)){for(;S!==null;){var w=xi(S);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var F=Ke(w.pendingLanes);if(F!==0){var $=w;for($.pendingLanes|=2,$.entangledLanes|=2;F;){var te=1<<31-Kt(F);$.entanglements[1]|=te,F&=~te}$i(w),(ea&6)===0&&(Vf=Ot()+500,vh(0))}}break;case 13:$=Zu(w,2),$!==null&&iu($,w,2),xc(),Dm(w,2)}if(w=Em(m),w===null&&Dr(i,o,m,Cm,c),w===S)break;S=w}S!==null&&m.stopPropagation()}else Dr(i,o,m,null,c)}}function Em(i){return i=Wh(i),lg(i)}var Cm=null;function lg(i){if(Cm=null,i=an(i),i!==null){var o=h(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=g(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Cm=i,null}function og(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fn()){case Zt:return 2;case Rt:return 8;case Yt:case Ln:return 32;case va:return 268435456;default:return 32}default:return 32}}var _c=!1,dl=null,_o=null,Fo=null,Ah=new Map,Oh=new Map,xs=[],Ny="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fc(i,o){switch(i){case"focusin":case"focusout":dl=null;break;case"dragenter":case"dragleave":_o=null;break;case"mouseover":case"mouseout":Fo=null;break;case"pointerover":case"pointerout":Ah.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oh.delete(o.pointerId)}}function Mc(i,o,c,m,S,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:c,eventSystemFlags:m,nativeEvent:w,targetContainers:[S]},o!==null&&(o=xi(o),o!==null&&ig(o)),i):(i.eventSystemFlags|=m,o=i.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),i)}function Ry(i,o,c,m,S){switch(o){case"focusin":return dl=Mc(dl,i,o,c,m,S),!0;case"dragenter":return _o=Mc(_o,i,o,c,m,S),!0;case"mouseover":return Fo=Mc(Fo,i,o,c,m,S),!0;case"pointerover":var w=S.pointerId;return Ah.set(w,Mc(Ah.get(w)||null,i,o,c,m,S)),!0;case"gotpointercapture":return w=S.pointerId,Oh.set(w,Mc(Oh.get(w)||null,i,o,c,m,S)),!0}return!1}function sg(i){var o=an(i.target);if(o!==null){var c=h(o);if(c!==null){if(o=c.tag,o===13){if(o=g(c),o!==null){i.blockedOn=o,xr(i.priority,function(){if(c.tag===13){var m=Kr();m=It(m);var S=Zu(c,m);S!==null&&iu(S,c,m),Dm(c,m)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Th(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Em(i.nativeEvent);if(c===null){c=i.nativeEvent;var m=new c.constructor(c.type,c);Zo=m,c.target.dispatchEvent(m),Zo=null}else return o=xi(c),o!==null&&ig(o),i.blockedOn=c,!1;o.shift()}return!0}function kh(i,o,c){Th(i)&&c.delete(o)}function id(){_c=!1,dl!==null&&Th(dl)&&(dl=null),_o!==null&&Th(_o)&&(_o=null),Fo!==null&&Th(Fo)&&(Fo=null),Ah.forEach(kh),Oh.forEach(kh)}function wm(i,o){i.blockedOn===o&&(i.blockedOn=null,_c||(_c=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,id)))}var zc=null;function cg(i){zc!==i&&(zc=i,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){zc===i&&(zc=null);for(var o=0;o<i.length;o+=3){var c=i[o],m=i[o+1],S=i[o+2];if(typeof m!="function"){if(lg(m||c)===null)continue;break}var w=xi(c);w!==null&&(i.splice(o,3),o-=3,kf(w,{pending:!0,data:S,method:c.method,action:m},m,S))}}))}function Wl(i){function o(te){return wm(te,i)}dl!==null&&wm(dl,i),_o!==null&&wm(_o,i),Fo!==null&&wm(Fo,i),Ah.forEach(o),Oh.forEach(o);for(var c=0;c<xs.length;c++){var m=xs[c];m.blockedOn===i&&(m.blockedOn=null)}for(;0<xs.length&&(c=xs[0],c.blockedOn===null);)sg(c),c.blockedOn===null&&xs.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(m=0;m<c.length;m+=3){var S=c[m],w=c[m+1],F=S[Ct]||null;if(typeof w=="function")F||cg(c);else if(F){var $=null;if(w&&w.hasAttribute("formAction")){if(S=w,F=w[Ct]||null)$=F.formAction;else if(lg(S)!==null)continue}else $=F.action;typeof $=="function"?c[m+1]=$:(c.splice(m,3),m-=3),cg(c)}}}function fg(i){this._internalRoot=i}xm.prototype.render=fg.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(u(409));var c=o.current,m=Kr();bm(c,m,i,o,null,null)},xm.prototype.unmount=fg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;bm(i.current,2,null,i,null,null),xc(),o[jt]=null}};function xm(i){this._internalRoot=i}xm.prototype.unstable_scheduleHydration=function(i){if(i){var o=pn();i={blockedOn:null,target:i,priority:o};for(var c=0;c<xs.length&&o!==0&&o<xs[c].priority;c++);xs.splice(c,0,i),c===0&&sg(i)}};var dg=t.version;if(dg!=="19.1.1")throw Error(u(527,dg,"19.1.1"));ue.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(u(188)):(i=Object.keys(i).join(","),Error(u(268,i)));return i=E(o),i=i!==null?C(i):null,i=i===null?null:i.stateNode,i};var Di={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nh.isDisabled&&Nh.supportsFiber)try{xa=Nh.inject(Di),Xt=Nh}catch{}}return Sb.createRoot=function(i,o){if(!s(i))throw Error(u(299));var c=!1,m="",S=gc,w=ah,F=rh,$=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(S=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(F=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&($=o.unstable_transitionCallbacks)),o=ag(i,1,!1,null,null,c,m,S,w,F,$,null),i[jt]=o.current,Kv(i),new fg(o)},Sb.hydrateRoot=function(i,o,c){if(!s(i))throw Error(u(299));var m=!1,S="",w=gc,F=ah,$=rh,te=null,Ce=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(S=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(F=c.onCaughtError),c.onRecoverableError!==void 0&&($=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(te=c.unstable_transitionCallbacks),c.formState!==void 0&&(Ce=c.formState)),o=ag(i,1,!0,o,c??null,m,S,w,F,$,te,Ce),o.context=rg(null),c=o.current,m=Kr(),m=It(m),S=_i(m),S.callback=null,Ju(c,S,m),c=m,o.current.lanes=c,st(o,c),$i(o),i[jt]=o.current,Kv(i),new xm(o)},Sb.version="19.1.1",Sb}var Db={};/**
|
|
165
|
-
* @license React
|
|
166
|
-
* react-dom-client.development.js
|
|
167
|
-
*
|
|
168
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the MIT license found in the
|
|
171
|
-
* LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/var ok;function s5(){return ok||(ok=1,process.env.NODE_ENV!=="production"&&function(){function a(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function t(e,n,l,d){if(l>=n.length)return d;var v=n[l],b=en(e)?e.slice():mn({},e);return b[v]=t(e[v],n,l+1,d),b}function r(e,n,l){if(n.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(n[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(e,n,l,0)}}function u(e,n,l,d){var v=n[d],b=en(e)?e.slice():mn({},e);return d+1===n.length?(b[l[d]]=b[v],en(b)?b.splice(v,1):delete b[v]):b[v]=u(e[v],n,l,d+1),b}function s(e,n,l){var d=n[l],v=en(e)?e.slice():mn({},e);return l+1===n.length?(en(v)?v.splice(d,1):delete v[d],v):(v[d]=s(e[d],n,l+1),v)}function h(){return!1}function g(){return null}function y(){}function E(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function C(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function A(){}function T(e){var n=[];return e.forEach(function(l){n.push(l)}),n.sort().join(", ")}function N(e,n,l,d){return new lf(e,n,l,d)}function R(e,n){e.context===Am&&(oa(e.current,2,n,e,null,null),wo())}function z(e,n){if(Ts!==null){var l=n.staleFamilies;n=n.updatedFamilies,hs(),Ad(e.current,n,l),wo()}}function V(e){Ts=e}function L(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function M(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function x(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function B(e){if(M(e)!==e)throw Error("Unable to find node on an unmounted component.")}function H(e){var n=e.alternate;if(!n){if(n=M(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var l=e,d=n;;){var v=l.return;if(v===null)break;var b=v.alternate;if(b===null){if(d=v.return,d!==null){l=d;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===l)return B(v),e;if(b===d)return B(v),n;b=b.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=v,d=b;else{for(var O=!1,_=v.child;_;){if(_===l){O=!0,l=v,d=b;break}if(_===d){O=!0,d=v,l=b;break}_=_.sibling}if(!O){for(_=b.child;_;){if(_===l){O=!0,l=b,d=v;break}if(_===d){O=!0,d=b,l=v;break}_=_.sibling}if(!O)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?e:n}function G(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=G(e),n!==null)return n;e=e.sibling}return null}function W(e){return e===null||typeof e!="object"?null:(e=Wv&&e[Wv]||e["@@iterator"],typeof e=="function"?e:null)}function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pm?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sn:return"Fragment";case Wr:return"Profiler";case Qf:return"StrictMode";case Xf:return"Suspense";case Ia:return"SuspenseList";case Il:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case kc:return"Portal";case Dr:return(e.displayName||"Context")+".Provider";case hm:return(e._context.displayName||"Context")+".Consumer";case Ht:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wa:return n=e.displayName||null,n!==null?n:X(e.type)||"Memo";case uu:n=e._payload,e=e._init;try{return X(e(n))}catch{}}return null}function ee(e){return typeof e.tag=="number"?J(e):typeof e.name=="string"?e.name:null}function J(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return(n.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(n);case 8:return n===Qf?"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 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var l=n.length-1;0<=l;l--)if(typeof n[l].name=="string")return n[l].name}if(e.return!==null)return J(e.return)}return null}function De(e){return{current:e}}function ke(e,n){0>yi?console.error("Unexpected pop."):(n!==If[yi]&&console.error("Unexpected Fiber popped."),e.current=lu[yi],lu[yi]=null,If[yi]=null,yi--)}function ye(e,n,l){yi++,lu[yi]=e.current,If[yi]=l,e.current=n}function be(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Ee(e,n){ye(ol,n,e),ye(pa,e,e),ye(ta,null,e);var l=n.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?na(n):Hh;break;default:if(l=n.tagName,n=n.namespaceURI)n=na(n),n=Vi(n,l);else switch(l){case"svg":n=n0;break;case"math":n=k1;break;default:n=Hh}}l=l.toLowerCase(),l=Kh(null,l),l={context:n,ancestorInfo:l},ke(ta,e),ye(ta,l,e)}function ze(e){ke(ta,e),ke(pa,e),ke(ol,e)}function K(){return be(ta.current)}function ue(e){e.memoizedState!==null&&ye(Zf,e,e);var n=be(ta.current),l=e.type,d=Vi(n.context,l);l=Kh(n.ancestorInfo,l),d={context:d,ancestorInfo:l},n!==d&&(ye(pa,e,e),ye(ta,d,e))}function pe(e){pa.current===e&&(ke(ta,e),ke(pa,e)),Zf.current===e&&(ke(Zf,e),hb._currentValue=Rg)}function Ve(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function fe(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Le(e,n){if(fe(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ve(e)),Re(e)}function he(e,n){if(fe(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ve(e)),Re(e)}function nt(e){if(fe(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ve(e)),Re(e)}function bt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Cs=n.inject(e),Mr=n}catch(l){console.error("React instrumentation encountered an error: %s.",l)}return!!n.checkDCE}function rt(e){if(typeof Wf=="function"&&cl(e),Mr&&typeof Mr.setStrictMode=="function")try{Mr.setStrictMode(Cs,e)}catch(n){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %s",n))}}function _n(e){pt=e}function Ft(){pt!==null&&typeof pt.markCommitStopped=="function"&&pt.markCommitStopped()}function oe(e){pt!==null&&typeof pt.markComponentRenderStarted=="function"&&pt.markComponentRenderStarted(e)}function Qe(){pt!==null&&typeof pt.markComponentRenderStopped=="function"&&pt.markComponentRenderStopped()}function Ne(e){pt!==null&&typeof pt.markRenderStarted=="function"&&pt.markRenderStarted(e)}function Ie(){pt!==null&&typeof pt.markRenderStopped=="function"&&pt.markRenderStopped()}function St(e,n){pt!==null&&typeof pt.markStateUpdateScheduled=="function"&&pt.markStateUpdateScheduled(e,n)}function tt(e){return e>>>=0,e===0?32:31-(tn(e)/Zl|0)|0}function jn(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function Ut(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Ot(e,n,l){var d=e.pendingLanes;if(d===0)return 0;var v=0,b=e.suspendedLanes,O=e.pingedLanes;e=e.warmLanes;var _=d&134217727;return _!==0?(d=_&~b,d!==0?v=Ut(d):(O&=_,O!==0?v=Ut(O):l||(l=_&~e,l!==0&&(v=Ut(l))))):(_=d&~b,_!==0?v=Ut(_):O!==0?v=Ut(O):l||(l=d&~e,l!==0&&(v=Ut(l)))),v===0?0:n!==0&&n!==v&&(n&b)===0&&(b=v&-v,l=n&-n,b>=l||b===32&&(l&4194048)!==0)?n:v}function Fn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Zt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Rt(){var e=bi;return bi<<=1,(bi&4194048)===0&&(bi=256),e}function Yt(){var e=Eh;return Eh<<=1,(Eh&62914560)===0&&(Eh=4194304),e}function Ln(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function va(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ur(e,n,l,d,v,b){var O=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var _=e.entanglements,Y=e.expirationTimes,Q=e.hiddenUpdates;for(l=O&~l;0<l;){var Te=31-Na(l),Ue=1<<Te;_[Te]=0,Y[Te]=-1;var Ae=Q[Te];if(Ae!==null)for(Q[Te]=null,Te=0;Te<Ae.length;Te++){var $e=Ae[Te];$e!==null&&($e.lane&=-536870913)}l&=~Ue}d!==0&&Ba(e,d,0),b!==0&&v===0&&e.tag!==0&&(e.suspendedLanes|=b&~(O&~n))}function Ba(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var d=31-Na(n);e.entangledLanes|=n,e.entanglements[d]=e.entanglements[d]|1073741824|l&4194090}function xa(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var d=31-Na(l),v=1<<d;v&n|e[d]&n&&(e[d]|=n),l&=~v}}function Xt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Dn(e,n,l){if(_a)for(e=e.pendingUpdatersLaneMap;0<l;){var d=31-Na(l),v=1<<d;e[d].add(n),l&=~v}}function Kt(e,n){if(_a)for(var l=e.pendingUpdatersLaneMap,d=e.memoizedUpdaters;0<n;){var v=31-Na(n);e=1<<v,v=l[v],0<v.size&&(v.forEach(function(b){var O=b.alternate;O!==null&&d.has(O)||d.add(b)}),v.clear()),n&=~e}}function mr(e){return e&=-e,zr<e?vn<e?(e&134217727)!==0?Bo:Ch:vn:zr}function ai(){var e=Gt.p;return e!==0?e:(e=window.event,e===void 0?Bo:mh(e.type))}function ge(e,n){var l=Gt.p;try{return Gt.p=e,n()}finally{Gt.p=l}}function xe(e){delete e[Jr],delete e[Yi],delete e[Jv],delete e[Cy],delete e[Jf]}function Fe(e){var n=e[Jr];if(n)return n;for(var l=e.parentNode;l;){if(n=l[ws]||l[Jr]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=wc(e);e!==null;){if(l=e[Jr])return l;e=wc(e)}return n}e=l,l=e.parentNode}return null}function Ke(e){if(e=e[Jr]||e[ws]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function vt(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function nn(e){var n=e[ed];return n||(n=e[ed]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Wt(e){e[td]=!0}function zt(e,n){it(e,n),it(e+"Capture",n)}function it(e,n){Uu[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Uu[e]=n;var l=e.toLowerCase();for(Rc[l]=e,e==="onDoubleClick"&&(Rc.ondblclick=e),e=0;e<n.length;e++)wy.add(n[e])}function ut(e,n){xy[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function st(e){return Ro.call(ym,e)?!0:Ro.call(nd,e)?!1:gm.test(e)?ym[e]=!0:(nd[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function gt(e,n,l){if(st(n)){if(!e.hasAttribute(n)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return e=e.getAttribute(n),e===""&&l===!0?!0:(Le(l,n),e===""+l?l:e)}}function Pt(e,n,l){if(st(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var d=n.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){e.removeAttribute(n);return}}Le(l,n),e.setAttribute(n,""+l)}}function Vt(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Le(l,n),e.setAttribute(n,""+l)}}function It(e,n,l,d){if(d===null)e.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}Le(d,l),e.setAttributeNS(n,l,""+d)}}function Dt(){}function pn(){if(Kl===0){eg=console.log,tg=console.info,Ay=console.warn,tr=console.error,fr=console.group,Oy=console.groupCollapsed,Ty=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Dt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Kl++}function xr(){if(Kl--,Kl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mn({},e,{value:eg}),info:mn({},e,{value:tg}),warn:mn({},e,{value:Ay}),error:mn({},e,{value:tr}),group:mn({},e,{value:fr}),groupCollapsed:mn({},e,{value:Oy}),groupEnd:mn({},e,{value:Ty})})}0>Kl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ia(e){if(ng===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);ng=n&&n[1]||"",ad=-1<l.stack.indexOf(`
|
|
173
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
174
|
-
`+ng+e+ad}function at(e,n){if(!e||rd)return"";var l=wh.get(e);if(l!==void 0)return l;rd=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=Me.H,Me.H=null,pn();try{var v={DetermineComponentFrameRoot:function(){try{if(n){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(wt){var $e=wt}Reflect.construct(e,[],Ae)}else{try{Ae.call()}catch(wt){$e=wt}e.call(Ae.prototype)}}else{try{throw Error()}catch(wt){$e=wt}(Ae=e())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(wt){if(wt&&$e&&typeof wt.stack=="string")return[wt.stack,$e.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=v.DetermineComponentFrameRoot(),_=O[0],Y=O[1];if(_&&Y){var Q=_.split(`
|
|
175
|
-
`),Te=Y.split(`
|
|
176
|
-
`);for(O=b=0;b<Q.length&&!Q[b].includes("DetermineComponentFrameRoot");)b++;for(;O<Te.length&&!Te[O].includes("DetermineComponentFrameRoot");)O++;if(b===Q.length||O===Te.length)for(b=Q.length-1,O=Te.length-1;1<=b&&0<=O&&Q[b]!==Te[O];)O--;for(;1<=b&&0<=O;b--,O--)if(Q[b]!==Te[O]){if(b!==1||O!==1)do if(b--,O--,0>O||Q[b]!==Te[O]){var Ue=`
|
|
177
|
-
`+Q[b].replace(" at new "," at ");return e.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",e.displayName)),typeof e=="function"&&wh.set(e,Ue),Ue}while(1<=b&&0<=O);break}}}finally{rd=!1,Me.H=d,xr(),Error.prepareStackTrace=l}return Q=(Q=e?e.displayName||e.name:"")?ia(Q):"",typeof e=="function"&&wh.set(e,Q),Q}function Ct(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
|
|
178
|
-
`)&&(e=e.slice(29)),n=e.indexOf(`
|
|
179
|
-
`),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
|
|
180
|
-
`,n)),n!==-1)e=e.slice(0,n);else return"";return e}function jt(e){switch(e.tag){case 26:case 27:case 5:return ia(e.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return ia("Activity");default:return""}}function Aa(e){try{var n="";do{n+=jt(e);var l=e._debugInfo;if(l)for(var d=l.length-1;0<=d;d--){var v=l[d];if(typeof v.name=="string"){var b=n,O=v.env,_=ia(v.name+(O?" ["+O+"]":""));n=b+_}}e=e.return}while(e);return n}catch(Y){return`
|
|
181
|
-
Error generating stack: `+Y.message+`
|
|
182
|
-
`+Y.stack}}function ur(e){return(e=e?e.displayName||e.name:"")?ia(e):""}function ri(){if(ou===null)return null;var e=ou._debugOwner;return e!=null?ee(e):null}function Zi(){if(ou===null)return"";var e=ou;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=ia(e.type);break;case 13:n+=ia("Suspense");break;case 19:n+=ia("SuspenseList");break;case 31:n+=ia("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=ur(e.type));break;case 11:e._debugOwner||n!==""||(n+=ur(e.type.render))}for(;e;)if(typeof e.tag=="number"){var l=e;e=l._debugOwner;var d=l._debugStack;e&&d&&(typeof d!="string"&&(l._debugStack=d=Ct(d)),d!==""&&(n+=`
|
|
183
|
-
`+d))}else if(e.debugStack!=null){var v=e.debugStack;(e=e.owner)&&v&&(n+=`
|
|
184
|
-
`+Ct(v))}else break;var b=n}catch(O){b=`
|
|
185
|
-
Error generating stack: `+O.message+`
|
|
186
|
-
`+O.stack}return b}function ot(e,n,l,d,v,b,O){var _=ou;vr(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,l,d,v,b,O)):n(l,d,v,b,O)}finally{vr(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function vr(e){Me.getCurrentStack=e===null?null:Zi,Si=!1,ou=e}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return nt(e),e;default:return""}}function xi(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function $o(e){var n=xi(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);nt(e[n]);var d=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var v=l.get,b=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return v.call(this)},set:function(O){nt(O),d=""+O,b.call(this,O)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(O){nt(O),d=""+O},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Yu(e){e._valueTracker||(e._valueTracker=$o(e))}function za(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),d="";return e&&(d=xi(e)?e.checked?"true":"false":e.value),e=d,e!==l?(n.setValue(e),!0):!1}function Go(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 Hr(e){return e.replace(F0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Pu(e,n){n.checked===void 0||n.defaultChecked===void 0||rg||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ri()||"A component",n.type),rg=!0),n.value===void 0||n.defaultValue===void 0||ag||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ri()||"A component",n.type),ag=!0)}function Qu(e,n,l,d,v,b,O,_){e.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?(Le(O,"type"),e.type=O):e.removeAttribute("type"),n!=null?O==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+an(n)):e.value!==""+an(n)&&(e.value=""+an(n)):O!=="submit"&&O!=="reset"||e.removeAttribute("value"),n!=null?Ai(e,O,an(n)):l!=null?Ai(e,O,an(l)):d!=null&&e.removeAttribute("value"),v==null&&b!=null&&(e.defaultChecked=!!b),v!=null&&(e.checked=v&&typeof v!="function"&&typeof v!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(Le(_,"name"),e.name=""+an(_)):e.removeAttribute("name")}function Un(e,n,l,d,v,b,O,_){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(Le(b,"type"),e.type=b),n!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||n!=null))return;l=l!=null?""+an(l):"",n=n!=null?""+an(n):l,_||n===e.value||(e.value=n),e.defaultValue=n}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,e.checked=_?e.checked:!!d,e.defaultChecked=!!d,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(Le(O,"name"),e.name=O)}function Ai(e,n,l){n==="number"&&Go(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function bl(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?bh.Children.forEach(n.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||Sm||(Sm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||Dm||(Dm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||bm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),bm=!0)}function Yo(){var e=ri();return e?`
|
|
187
|
-
|
|
188
|
-
Check the render method of \``+e+"`.":""}function Xu(e,n,l,d){if(e=e.options,n){n={};for(var v=0;v<l.length;v++)n["$"+l[v]]=!0;for(l=0;l<e.length;l++)v=n.hasOwnProperty("$"+e[l].value),e[l].selected!==v&&(e[l].selected=v),v&&d&&(e[l].defaultSelected=!0)}else{for(l=""+an(l),n=null,v=0;v<e.length;v++){if(e[v].value===l){e[v].selected=!0,d&&(e[v].defaultSelected=!0);return}n!==null||e[v].disabled||(n=e[v])}n!==null&&(n.selected=!0)}}function ro(e,n){for(e=0;e<xh.length;e++){var l=xh[e];if(n[l]!=null){var d=en(n[l]);n.multiple&&!d?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,Yo()):!n.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,Yo())}}n.value===void 0||n.defaultValue===void 0||ig||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ig=!0)}function Iu(e,n){n.value===void 0||n.defaultValue===void 0||ky||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ri()||"A component"),ky=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function yd(e,n,l){if(n!=null&&(n=""+an(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+an(l):""}function Ih(e,n,l,d){if(n==null){if(d!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(en(d)){if(1<d.length)throw Error("<textarea> can only have at most one child.");d=d[0]}l=d}l==null&&(l=""),n=l}l=an(n),e.defaultValue=l,d=e.textContent,d===l&&d!==""&&d!==null&&(e.value=d)}function Ys(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?Ys(e.children[0],n):e}function ii(e){return" "+" ".repeat(e)}function Po(e){return"+ "+" ".repeat(e)}function Ps(e){return"- "+" ".repeat(e)}function Zh(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ar(e,n){return Bc.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function Zc(e,n,l){var d=120-2*l;if(n===null)return Po(l)+Ar(e,d)+`
|
|
189
|
-
`;if(typeof n=="string"){for(var v=0;v<n.length&&v<e.length&&n.charCodeAt(v)===e.charCodeAt(v);v++);return v>d-8&&10<v&&(e="..."+e.slice(v-8),n="..."+n.slice(v-8)),Po(l)+Ar(e,d)+`
|
|
190
|
-
`+Ps(l)+Ar(n,d)+`
|
|
191
|
-
`}return ii(l)+Ar(e,d)+`
|
|
192
|
-
`}function bd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,l){return l})}function Qo(e,n){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(e===null)return"null";if(en(e))return"[...]";if(e.$$typeof===Es)return(n=X(e.type))?"<"+n+">":"<...>";var l=bd(e);if(l==="Object"){l="",n-=2;for(var d in e)if(e.hasOwnProperty(d)){var v=JSON.stringify(d);if(v!=='"'+d+'"'&&(d=v),n-=d.length-2,v=Qo(e[d],15>n?n:15),n-=v.length,0>n){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+v}return"{"+l+"}"}return l;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Xo(e,n){return typeof e!="string"||Bc.test(e)?"{"+Qo(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function io(e,n,l){var d=120-l.length-e.length,v=[],b;for(b in n)if(n.hasOwnProperty(b)&&b!=="children"){var O=Xo(n[b],120-l.length-b.length-1);d-=b.length+O.length+2,v.push(b+"="+O)}return v.length===0?l+"<"+e+`>
|
|
193
|
-
`:0<d?l+"<"+e+" "+v.join(" ")+`>
|
|
194
|
-
`:l+"<"+e+`
|
|
195
|
-
`+l+" "+v.join(`
|
|
196
|
-
`+l+" ")+`
|
|
197
|
-
`+l+`>
|
|
198
|
-
`}function Ig(e,n,l){var d="",v=mn({},n),b;for(b in e)if(e.hasOwnProperty(b)){delete v[b];var O=120-2*l-b.length-2,_=Qo(e[b],O);n.hasOwnProperty(b)?(O=Qo(n[b],O),d+=Po(l)+b+": "+_+`
|
|
199
|
-
`,d+=Ps(l)+b+": "+O+`
|
|
200
|
-
`):d+=Po(l)+b+": "+_+`
|
|
201
|
-
`}for(var Y in v)v.hasOwnProperty(Y)&&(e=Qo(v[Y],120-2*l-Y.length-2),d+=Ps(l)+Y+": "+e+`
|
|
202
|
-
`);return d}function gu(e,n,l,d){var v="",b=new Map;for(Q in l)l.hasOwnProperty(Q)&&b.set(Q.toLowerCase(),Q);if(b.size===1&&b.has("children"))v+=io(e,n,ii(d));else{for(var O in n)if(n.hasOwnProperty(O)&&O!=="children"){var _=120-2*(d+1)-O.length-1,Y=b.get(O.toLowerCase());if(Y!==void 0){b.delete(O.toLowerCase());var Q=n[O];Y=l[Y];var Te=Xo(Q,_);_=Xo(Y,_),typeof Q=="object"&&Q!==null&&typeof Y=="object"&&Y!==null&&bd(Q)==="Object"&&bd(Y)==="Object"&&(2<Object.keys(Q).length||2<Object.keys(Y).length||-1<Te.indexOf("...")||-1<_.indexOf("..."))?v+=ii(d+1)+O+`={{
|
|
203
|
-
`+Ig(Q,Y,d+2)+ii(d+1)+`}}
|
|
204
|
-
`:(v+=Po(d+1)+O+"="+Te+`
|
|
205
|
-
`,v+=Ps(d+1)+O+"="+_+`
|
|
206
|
-
`)}else v+=ii(d+1)+O+"="+Xo(n[O],_)+`
|
|
207
|
-
`}b.forEach(function(Ue){if(Ue!=="children"){var Ae=120-2*(d+1)-Ue.length-1;v+=Ps(d+1)+Ue+"="+Xo(l[Ue],Ae)+`
|
|
208
|
-
`}}),v=v===""?ii(d)+"<"+e+`>
|
|
209
|
-
`:ii(d)+"<"+e+`
|
|
210
|
-
`+v+ii(d)+`>
|
|
211
|
-
`}return e=l.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(b="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(b=""+n),v+=Zc(b,""+e,d+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(v=e==null?v+Zc(""+n,null,d+1):v+Zc(""+n,void 0,d+1)),v}function Sd(e,n){var l=Zh(e);if(l===null){for(l="",e=e.child;e;)l+=Sd(e,n),e=e.sibling;return l}return ii(n)+"<"+l+`>
|
|
212
|
-
`}function Dd(e,n){var l=Ys(e,n);if(l!==e&&(e.children.length!==1||e.children[0]!==l))return ii(n)+`...
|
|
213
|
-
`+Dd(l,n+1);l="";var d=e.fiber._debugInfo;if(d)for(var v=0;v<d.length;v++){var b=d[v].name;typeof b=="string"&&(l+=ii(n)+"<"+b+`>
|
|
214
|
-
`,n++)}if(d="",v=e.fiber.pendingProps,e.fiber.tag===6)d=Zc(v,e.serverProps,n),n++;else if(b=Zh(e.fiber),b!==null)if(e.serverProps===void 0){d=n;var O=120-2*d-b.length-2,_="";for(Q in v)if(v.hasOwnProperty(Q)&&Q!=="children"){var Y=Xo(v[Q],15);if(O-=Q.length+Y.length+2,0>O){_+=" ...";break}_+=" "+Q+"="+Y}d=ii(d)+"<"+b+_+`>
|
|
215
|
-
`,n++}else e.serverProps===null?(d=io(b,v,Po(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=gu(b,v,e.serverProps,n),n++);var Q="";for(v=e.fiber.child,b=0;v&&b<e.children.length;)O=e.children[b],O.fiber===v?(Q+=Dd(O,n),b++):Q+=Sd(v,n),v=v.sibling;for(v&&0<e.children.length&&(Q+=ii(n)+`...
|
|
216
|
-
`),v=e.serverTail,e.serverProps===null&&n--,e=0;e<v.length;e++)b=v[e],Q=typeof b=="string"?Q+(Ps(n)+Ar(b,120-2*n)+`
|
|
217
|
-
`):Q+io(b.type,b.props,Ps(n));return l+d+Q}function Qs(e){try{return`
|
|
218
|
-
|
|
219
|
-
`+Dd(e,0)}catch{return""}}function Xs(e,n,l){for(var d=n,v=null,b=0;d;)d===e&&(b=0),v={fiber:d,children:v!==null?[v]:[],serverProps:d===n?l:d===e?null:void 0,serverTail:[],distanceFromLeaf:b},b++,d=d.return;return v!==null?Qs(v).replaceAll(/^[+-]/gm,">"):""}function Kh(e,n){var l=mn({},e||og),d={tag:n};return Em.indexOf(n)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),Cm.indexOf(n)!==-1&&(l.pTagInButtonScope=null),ug.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=d,n==="form"&&(l.formTag=d),n==="a"&&(l.aTagInScope=d),n==="button"&&(l.buttonTagInScope=d),n==="nobr"&&(l.nobrTagInScope=d),n==="p"&&(l.pTagInButtonScope=d),n==="li"&&(l.listItemTagAutoclosing=d),(n==="dd"||n==="dt")&&(l.dlItemTagAutoclosing=d),n==="#document"||n==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=d),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function Ed(e,n,l){switch(n){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(l)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!l)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return lg.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return l||n===null;case"html":return l&&n==="#document"||n===null;case"body":return l&&(n==="#document"||n==="html")||n===null}return!0}function Io(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function Is(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function Cd(e,n){n=n||og;var l=n.current;if(n=(l=Ed(e,l&&l.tag,n.implicitRootScope)?null:l)?null:Io(e,n),n=l||n,!n)return!0;var d=n.tag;if(n=String(!!l)+"|"+e+"|"+d,_c[n])return!1;_c[n]=!0;var v=(n=ou)?Is(n.return,d):null,b=n!==null&&v!==null?Xs(v,n,null):"",O="<"+e+">";return l?(l="",d==="table"&&e==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
220
|
-
This will cause a hydration error.%s`,O,d,l,b)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
221
|
-
This will cause a hydration error.%s`,O,d,b),n&&(e=n.return,v===null||e===null||v===e&&e._debugOwner===n._debugOwner||ot(v,function(){console.error(`<%s> cannot contain a nested %s.
|
|
222
|
-
See this log for the ancestor stack trace.`,d,O)})),!1}function Kc(e,n,l){if(l||Ed("#text",n,!1))return!0;if(l="#text|"+n,_c[l])return!1;_c[l]=!0;var d=(l=ou)?Is(l,n):null;return l=l!==null&&d!==null?Xs(d,l,l.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
223
|
-
This will cause a hydration error.%s`,n,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
224
|
-
This will cause a hydration error.%s`,n,l),!1}function Zs(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}function Zg(e){return e.replace(xs,function(n,l){return l.toUpperCase()})}function Im(e,n,l){var d=n.indexOf("--")===0;d||(-1<n.indexOf("-")?Fc.hasOwnProperty(n)&&Fc[n]||(Fc[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,Zg(n.replace(Oh,"ms-")))):Ah.test(n)?Fc.hasOwnProperty(n)&&Fc[n]||(Fc[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!Ny.test(l)||Mc.hasOwnProperty(l)&&Mc[l]||(Mc[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,l.replace(Ny,""))),typeof l=="number"&&(isNaN(l)?Ry||(Ry=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(l)||sg||(sg=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),l==null||typeof l=="boolean"||l===""?d?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":d?e.setProperty(n,l):typeof l!="number"||l===0||Th.has(n)?n==="float"?e.cssFloat=l:(he(l,n),e[n]=(""+l).trim()):e[n]=l+"px"}function Wc(e,n,l){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,l!=null){if(n){var d={};if(l){for(var v in l)if(l.hasOwnProperty(v)&&!n.hasOwnProperty(v))for(var b=dl[v]||[v],O=0;O<b.length;O++)d[b[O]]=v}for(var _ in n)if(n.hasOwnProperty(_)&&(!l||l[_]!==n[_]))for(v=dl[_]||[_],b=0;b<v.length;b++)d[v[b]]=_;_={};for(var Y in n)for(v=dl[Y]||[Y],b=0;b<v.length;b++)_[v[b]]=Y;Y={};for(var Q in d)if(v=d[Q],(b=_[Q])&&v!==b&&(O=v+","+b,!Y[O])){Y[O]=!0,O=console;var Te=n[v];O.error.call(O,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Te==null||typeof Te=="boolean"||Te===""?"Removing":"Updating",v,b)}}for(var Ue in l)!l.hasOwnProperty(Ue)||n!=null&&n.hasOwnProperty(Ue)||(Ue.indexOf("--")===0?e.setProperty(Ue,""):Ue==="float"?e.cssFloat="":e[Ue]="");for(var Ae in n)Q=n[Ae],n.hasOwnProperty(Ae)&&l[Ae]!==Q&&Im(e,Ae,Q)}else for(d in n)n.hasOwnProperty(d)&&Im(e,d,n[d])}function Zo(e){if(e.indexOf("-")===-1)return!1;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}}function Wh(e){return wm.get(e)||e}function Jc(e,n){if(Ro.call(Wl,n)&&Wl[n])return!0;if(xm.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=cg.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Wl[n]=!0;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),Wl[n]=!0}if(fg.test(n)){if(e=n.toLowerCase(),e=cg.hasOwnProperty(e)?e:null,e==null)return Wl[n]=!0,!1;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),Wl[n]=!0)}return!0}function ef(e,n){var l=[],d;for(d in n)Jc(e,d)||l.push(d);n=l.map(function(v){return"`"+v+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e)}function Zm(e,n,l,d){if(Ro.call(Di,n)&&Di[n])return!0;var v=n.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Di[n]=!0;if(typeof l=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return!0;if(d!=null){if(e=d.possibleRegistrationNames,d.registrationNameDependencies.hasOwnProperty(n))return!0;if(d=e.hasOwnProperty(v)?e[v]:null,d!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,d),Di[n]=!0;if(Nh.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),Di[n]=!0}else if(Nh.test(n))return i.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Di[n]=!0;if(o.test(n)||c.test(n))return!0;if(v==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Di[n]=!0;if(v==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Di[n]=!0;if(v==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Di[n]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Di[n]=!0;if(zc.hasOwnProperty(v)){if(v=zc[v],v!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,v),Di[n]=!0}else if(n!==v)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,v),Di[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return v=n.toLowerCase().slice(0,5),v==="data-"||v==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,n,n,l,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,n,n,l,n,n,n),Di[n]=!0)}case"function":case"symbol":return Di[n]=!0,!1;case"string":if(l==="false"||l==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,n,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,l),Di[n]=!0}}return!0}function Km(e,n,l){var d=[],v;for(v in n)Zm(e,v,n[v],l)||d.push(v);n=d.map(function(b){return"`"+b+"`"}).join(", "),d.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<d.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e)}function tf(e){return m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Sl(e){var n=Ke(e);if(n&&(e=n.stateNode)){var l=e[Yi]||null;e:switch(e=n.stateNode,n.type){case"input":if(Qu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(Le(n,"name"),l=l.querySelectorAll('input[name="'+Hr(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var d=l[n];if(d!==e&&d.form===e.form){var v=d[Yi]||null;if(!v)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Qu(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(n=0;n<l.length;n++)d=l[n],d.form===e.form&&za(d)}break e;case"textarea":yd(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Xu(e,!!l.multiple,n,!1)}}}function nf(e,n,l){if($)return e(n,l);$=!0;try{var d=e(n);return d}finally{if($=!1,(w!==null||F!==null)&&(wo(),w&&(n=w,e=F,F=w=null,Sl(n),e)))for(n=0;n<e.length;n++)Sl(e[n])}}function uo(e,n){var l=e.stateNode;if(l===null)return null;var d=l[Yi]||null;if(d===null)return null;l=d[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(e=e.type,d=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!d;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function lo(){if(we)return we;var e,n=Oe,l=n.length,d,v="value"in Ze?Ze.value:Ze.textContent,b=v.length;for(e=0;e<l&&n[e]===v[e];e++);var O=l-e;for(d=1;d<=O&&n[l-d]===v[b-d];d++);return we=v.slice(e,1<d?1-d:void 0)}function af(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ws(){return!0}function Wm(){return!1}function dn(e){function n(l,d,v,b,O){this._reactName=l,this._targetInst=v,this.type=d,this.nativeEvent=b,this.target=O,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(l=e[_],this[_]=l?l(b):b[_]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ws:Wm,this.isPropagationStopped=Wm,this}return mn(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ws)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),n}function ua(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=eD[e])?!!n[e]:!1}function Jh(){return ua}function ui(e,n){switch(e){case"keyup":return dD.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==Jb;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function ep(e,n){switch(e){case"compositionend":return Ko(n);case"keypress":return n.which!==D?null:(U=!0,k);case"textInput":return e=n.data,e===k&&U?null:e;default:return null}}function wd(e,n){if(P)return e==="compositionend"||!L0&&ui(e,n)?(e=lo(),we=Oe=Ze=null,P=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return p&&n.locale!=="ko"?null:n.data;default:return null}}function Kg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ne[e.type]:n==="textarea"}function tp(e){if(!te)return!1;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function np(e,n,l,d){w?F?F.push(d):F=[d]:w=d,n=jf(n,"onChange"),0<n.length&&(l=new _t("onChange","change",null,l,d),e.push({event:l,listeners:n}))}function Qa(e){ql(e,0)}function oo(e){var n=vt(e);if(za(n))return e}function so(e,n){if(e==="change")return n}function Jm(){le&&(le.detachEvent("onpropertychange",ap),ve=le=null)}function ap(e){if(e.propertyName==="value"&&oo(ve)){var n=[];np(n,ve,e,Ks(e)),nf(Qa,n)}}function yu(e,n,l){e==="focusin"?(Jm(),le=n,ve=l,le.attachEvent("onpropertychange",ap)):e==="focusout"&&Jm()}function rp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(ve)}function Wg(e,n){if(e==="click")return oo(n)}function Jg(e,n){if(e==="input"||e==="change")return oo(n)}function ey(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function rf(e,n){if(Pe(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),d=Object.keys(n);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var v=l[d];if(!Ro.call(n,v)||!Pe(e[v],n[v]))return!1}return!0}function ev(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function li(e,n){var l=ev(e);e=0;for(var d;l;){if(l.nodeType===3){if(d=e+l.textContent.length,e<=n&&d>=n)return{node:l,offset:n-e};e=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ev(l)}}function ty(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ty(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ki(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Go(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Go(e.document)}return n}function tv(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function nv(e,n,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gn||ft==null||ft!==Go(d)||(d=ft,"selectionStart"in d&&tv(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Lt&&rf(Lt,d)||(Lt=d,d=jf(At,"onSelect"),0<d.length&&(n=new _t("onSelect","select",null,n,l),e.push({event:n,listeners:d}),n.target=ft)))}function Vr(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}function Dl(e){if(Rn[e])return Rn[e];if(!Mt[e])return e;var n=Mt[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Yn)return Rn[e]=n[l];return e}function Wi(e,n){Sw.set(e,n),zt(n,[e])}function Mn(e,n){if(typeof e=="object"&&e!==null){var l=pD.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Aa(n)},pD.set(e,n),n)}return{value:e,source:n,stack:Aa(n)}}function bu(){for(var e=By,n=mD=By=0;n<e;){var l=Os[n];Os[n++]=null;var d=Os[n];Os[n++]=null;var v=Os[n];Os[n++]=null;var b=Os[n];if(Os[n++]=null,d!==null&&v!==null){var O=d.pending;O===null?v.next=v:(v.next=O.next,O.next=v),d.pending=v}b!==0&&ny(l,v,b)}}function uf(e,n,l,d){Os[By++]=e,Os[By++]=n,Os[By++]=l,Os[By++]=d,mD|=d,e.lanes|=d,e=e.alternate,e!==null&&(e.lanes|=d)}function av(e,n,l,d){return uf(e,n,l,d),ip(e)}function qr(e,n){return uf(e,null,null,n),ip(e)}function ny(e,n,l){e.lanes|=l;var d=e.alternate;d!==null&&(d.lanes|=l);for(var v=!1,b=e.return;b!==null;)b.childLanes|=l,d=b.alternate,d!==null&&(d.childLanes|=l),b.tag===22&&(e=b.stateNode,e===null||e._visibility&e1||(v=!0)),e=b,b=b.return;return e.tag===3?(b=e.stateNode,v&&n!==null&&(v=31-Na(l),e=b.hiddenUpdates,d=e[v],d===null?e[v]=[n]:d.push(n),n.lane=l|536870912),b):null}function ip(e){if(lb>JN)throw Ag=lb=0,ob=YD=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ag>eR&&(Ag=0,ob=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&ul(e);for(var n=e,l=n.return;l!==null;)n.alternate===null&&(n.flags&4098)!==0&&ul(e),n=l,l=n.return;return n.tag===3?n.stateNode:null}function Js(e){if(Ts===null)return e;var n=Ts(e);return n===void 0?e:n.current}function up(e){if(Ts===null)return e;var n=Ts(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=Js(e.render),e.render!==n)?(n={$$typeof:Ht,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function xd(e,n){if(Ts===null)return!1;var l=e.elementType;n=n.type;var d=!1,v=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(d=!0);break;case 0:(typeof n=="function"||v===uu)&&(d=!0);break;case 11:(v===Ht||v===uu)&&(d=!0);break;case 14:case 15:(v===wa||v===uu)&&(d=!0);break;default:return!1}return!!(d&&(e=Ts(l),e!==void 0&&e===Ts(n)))}function ec(e){Ts!==null&&typeof WeakSet=="function"&&(_y===null&&(_y=new WeakSet),_y.add(e))}function Ad(e,n,l){var d=e.alternate,v=e.child,b=e.sibling,O=e.tag,_=e.type,Y=null;switch(O){case 0:case 15:case 1:Y=_;break;case 11:Y=_.render}if(Ts===null)throw Error("Expected resolveFamily to be set during hot reload.");var Q=!1;_=!1,Y!==null&&(Y=Ts(Y),Y!==void 0&&(l.has(Y)?_=!0:n.has(Y)&&(O===1?_=!0:Q=!0))),_y!==null&&(_y.has(e)||d!==null&&_y.has(d))&&(_=!0),_&&(e._debugNeedsRemount=!0),(_||Q)&&(d=qr(e,2),d!==null&&Ua(d,e,2)),v===null||_||Ad(v,n,l),b!==null&&Ad(b,n,l)}function lf(e,n,l,d){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Ew||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function lp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Su(e,n){var l=e.alternate;switch(l===null?(l=N(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l._debugOwner=e._debugOwner,l._debugStack=e._debugStack,l._debugTask=e._debugTask,l._debugHookTypes=e._debugHookTypes,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l.selfBaseDuration=e.selfBaseDuration,l.treeBaseDuration=e.treeBaseDuration,l._debugInfo=e._debugInfo,l._debugNeedsRemount=e._debugNeedsRemount,l.tag){case 0:case 15:l.type=Js(e.type);break;case 1:l.type=Js(e.type);break;case 11:l.type=up(e.type)}return l}function Od(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=l.selfBaseDuration,e.treeBaseDuration=l.treeBaseDuration),e}function Td(e,n,l,d,v,b){var O=0,_=e;if(typeof e=="function")lp(e)&&(O=1),_=Js(_);else if(typeof e=="string")O=K(),O=Gf(e,l,O)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Il:return n=N(31,l,n,v),n.elementType=Il,n.lanes=b,n;case sn:return El(l.children,v,b,n);case Qf:O=8,v|=qu,v|=Lc;break;case Wr:return e=l,d=v,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=N(12,e,n,d|su),n.elementType=Wr,n.lanes=b,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Xf:return n=N(13,l,n,v),n.elementType=Xf,n.lanes=b,n;case Ia:return n=N(19,l,n,v),n.elementType=Ia,n.lanes=b,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kv:case Dr:O=10;break e;case hm:O=9;break e;case Ht:O=11,_=up(_);break e;case wa:O=14;break e;case uu:O=16,_=null;break e}_="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?l="null":en(e)?l="array":e!==void 0&&e.$$typeof===Es?(l="<"+(X(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,(O=d?ee(d):null)&&(_+=`
|
|
225
|
-
|
|
226
|
-
Check the render method of \``+O+"`."),O=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+_)),_=null}return n=N(O,l,n,v),n.elementType=e,n.type=_,n.lanes=b,n._debugOwner=d,n}function kd(e,n,l){return n=Td(e.type,e.key,e.props,e._owner,n,l),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function El(e,n,l,d){return e=N(7,e,d,n),e.lanes=l,e}function Cl(e,n,l){return e=N(6,e,null,n),e.lanes=l,e}function rv(e,n,l){return n=N(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Wo(e,n){Du(),Fy[My++]=n1,Fy[My++]=t1,t1=e,n1=n}function Oi(e,n,l){Du(),ks[Ns++]=Bh,ks[Ns++]=_h,ks[Ns++]=pg,pg=e;var d=Bh;e=_h;var v=32-Na(d)-1;d&=~(1<<v),l+=1;var b=32-Na(n)+v;if(30<b){var O=v-v%5;b=(d&(1<<O)-1).toString(32),d>>=O,v-=O,Bh=1<<32-Na(n)+v|l<<v|d,_h=b+e}else Bh=1<<b|l<<v|d,_h=e}function of(e){Du(),e.return!==null&&(Wo(e,1),Oi(e,1,0))}function Jo(e){for(;e===t1;)t1=Fy[--My],Fy[My]=null,n1=Fy[--My],Fy[My]=null;for(;e===pg;)pg=ks[--Ns],ks[Ns]=null,_h=ks[--Ns],ks[Ns]=null,Bh=ks[--Ns],ks[Ns]=null}function Du(){aa||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Eu(e,n){if(e.return===null){if(Rs===null)Rs={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Rs.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Rs.distanceFromLeaf>n&&(Rs.distanceFromLeaf=n)}return Rs}var l=Eu(e.return,n+1).children;return 0<l.length&&l[l.length-1].fiber===e?(l=l[l.length-1],l.distanceFromLeaf>n&&(l.distanceFromLeaf=n),l):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},l.push(n),n)}function iv(e,n){Fh||(e=Eu(e,0),e.serverProps=null,n!==null&&(n=tm(n),e.serverTail.push(n)))}function wl(e){var n="",l=Rs;throw l!==null&&(Rs=null,n=Qs(l)),sf(Mn(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
227
|
-
|
|
228
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
229
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
230
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
231
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
232
|
-
- Invalid HTML tag nesting.
|
|
233
|
-
|
|
234
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
235
|
-
|
|
236
|
-
https://react.dev/link/hydration-mismatch`+n),e)),vD}function uv(e){var n=e.stateNode,l=e.type,d=e.memoizedProps;switch(n[Jr]=e,n[Yi]=d,$l(l,d),l){case"dialog":On("cancel",n),On("close",n);break;case"iframe":case"object":case"embed":On("load",n);break;case"video":case"audio":for(l=0;l<sb.length;l++)On(sb[l],n);break;case"source":On("error",n);break;case"img":case"image":case"link":On("error",n),On("load",n);break;case"details":On("toggle",n);break;case"input":ut("input",d),On("invalid",n),Pu(n,d),Un(n,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Yu(n);break;case"option":bl(n,d);break;case"select":ut("select",d),On("invalid",n),ro(n,d);break;case"textarea":ut("textarea",d),On("invalid",n),Iu(n,d),Ih(n,d.value,d.defaultValue,d.children),Yu(n)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||d.suppressHydrationWarning===!0||_v(n.textContent,l)?(d.popover!=null&&(On("beforetoggle",n),On("toggle",n)),d.onScroll!=null&&On("scroll",n),d.onScrollEnd!=null&&On("scrollend",n),d.onClick!=null&&(n.onclick=Ao),n=!0):n=!1,n||wl(e)}function lv(e){for(hl=e.return;hl;)switch(hl.tag){case 5:case 13:ud=!1;return;case 27:case 3:ud=!0;return;default:hl=hl.return}}function tc(e){if(e!==hl)return!1;if(!aa)return lv(e),aa=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gl(e.type,e.memoizedProps)),l=!l),l&&Cr){for(l=Cr;l;){var d=Eu(e,0),v=tm(l);d.serverTail.push(v),l=v.type==="Suspense"?Vv(l):_r(l.nextSibling)}wl(e)}if(lv(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Cr=Vv(e)}else n===27?(n=Cr,Yl(e.type)?(e=aE,aE=null,Cr=e):Cr=n):Cr=hl?_r(e.stateNode.nextSibling):null;return!0}function Cu(){Cr=hl=null,Fh=aa=!1}function ov(){var e=mg;return e!==null&&(vl===null?vl=e:vl.push.apply(vl,e),mg=null),e}function sf(e){mg===null?mg=[e]:mg.push(e)}function Nd(){var e=Rs;if(e!==null){Rs=null;for(var n=Qs(e);0<e.children.length;)e=e.children[0];ot(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
237
|
-
|
|
238
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
239
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
240
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
241
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
242
|
-
- Invalid HTML tag nesting.
|
|
243
|
-
|
|
244
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
245
|
-
|
|
246
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function Rd(){zy=a1=null,jy=!1}function oi(e,n,l){ye(gD,n._currentValue,e),n._currentValue=l,ye(yD,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==Aw&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=Aw}function wu(e,n){e._currentValue=gD.current;var l=yD.current;ke(yD,n),e._currentRenderer=l,ke(gD,n)}function sv(e,n,l){for(;e!==null;){var d=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),e===l)break;e=e.return}e!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function cv(e,n,l,d){var v=e.child;for(v!==null&&(v.return=e);v!==null;){var b=v.dependencies;if(b!==null){var O=v.child;b=b.firstContext;e:for(;b!==null;){var _=b;b=v;for(var Y=0;Y<n.length;Y++)if(_.context===n[Y]){b.lanes|=l,_=b.alternate,_!==null&&(_.lanes|=l),sv(b.return,l,e),d||(O=null);break e}b=_.next}}else if(v.tag===18){if(O=v.return,O===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");O.lanes|=l,b=O.alternate,b!==null&&(b.lanes|=l),sv(O,l,e),O=null}else O=v.child;if(O!==null)O.return=v;else for(O=v;O!==null;){if(O===e){O=null;break}if(v=O.sibling,v!==null){v.return=O.return,O=v;break}O=O.return}v=O}}function Or(e,n,l,d){e=null;for(var v=n,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var O=v.alternate;if(O===null)throw Error("Should have a current fiber. This is a bug in React.");if(O=O.memoizedProps,O!==null){var _=v.type;Pe(v.pendingProps.value,O.value)||(e!==null?e.push(_):e=[_])}}else if(v===Zf.current){if(O=v.alternate,O===null)throw Error("Should have a current fiber. This is a bug in React.");O.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(e!==null?e.push(hb):e=[hb])}v=v.return}e!==null&&cv(n,e,l,d),n.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!Pe(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gr(e){a1=e,zy=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ga(e){return jy&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),fv(a1,e)}function Bd(e,n){return a1===null&&gr(e),fv(e,n)}function fv(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},zy===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");zy=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288}else zy=zy.next=n;return l}function _d(){return{controller:new LN,data:new Map,refCount:0}}function nc(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function xl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&UN(HN,function(){e.controller.abort()})}function $r(){var e=vg;return vg=0,e}function de(e){var n=vg;return vg=e,n}function qe(e){var n=vg;return vg+=e,n}function Be(e){Jl=Ly(),0>e.actualStartTime&&(e.actualStartTime=Jl)}function ht(e){if(0<=Jl){var n=Ly()-Jl;e.actualDuration+=n,e.selfBaseDuration=n,Jl=-1}}function qt(e){if(0<=Jl){var n=Ly()-Jl;e.actualDuration+=n,Jl=-1}}function rn(){if(0<=Jl){var e=Ly()-Jl;Jl=-1,vg+=e}}function la(){Jl=Ly()}function zn(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function op(e,n){if(H0===null){var l=H0=[];bD=0,gg=Tv(),Uy={status:"pending",value:void 0,then:function(d){l.push(d)}}}return bD++,n.then(dv,dv),n}function dv(){if(--bD===0&&H0!==null){Uy!==null&&(Uy.status="fulfilled");var e=H0;H0=null,gg=0,Uy=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function eu(e,n){var l=[],d={status:"pending",value:null,reason:null,then:function(v){l.push(v)}};return e.then(function(){d.status="fulfilled",d.value=n;for(var v=0;v<l.length;v++)(0,l[v])(n)},function(v){for(d.status="rejected",d.reason=v,v=0;v<l.length;v++)(0,l[v])(void 0)}),d}function cf(){var e=yg.current;return e!==null?e:Fa.pooledCache}function sp(e,n){n===null?ye(yg,yg.current,e):ye(yg,n.pool,e)}function ac(){var e=cf();return e===null?null:{parent:Ei._currentValue,pool:e}}function ff(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $n(){}function xu(e,n,l){Me.actQueue!==null&&(Me.didUsePromise=!0);var d=e.thenables;switch(l=d[l],l===void 0?d.push(n):l!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then($n,$n),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Gr(e),e;default:if(typeof n.status=="string")n.then($n,$n);else{if(e=Fa,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(v){if(n.status==="pending"){var b=n;b.status="fulfilled",b.value=v}},function(v){if(n.status==="pending"){var b=n;b.status="rejected",b.reason=v}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Gr(e),e}throw X0=n,s1=!0,Q0}}function cp(){if(X0===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=X0;return X0=null,s1=!1,e}function Gr(e){if(e===Q0||e===o1)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function es(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Al(e){return{lane:e,tag:Rw,payload:null,callback:null,next:null}}function ki(e,n,l){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,ED===d&&!Fw){var v=J(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
247
|
-
|
|
248
|
-
Please update the following component: %s`,v),Fw=!0}return(ma&ml)!==zo?(v=d.pending,v===null?n.next=n:(n.next=v.next,v.next=n),d.pending=n,n=ip(e),ny(e,null,l),n):(uf(e,d,n,l),ip(e))}function si(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var d=n.lanes;d&=e.pendingLanes,l|=d,n.lanes=l,xa(e,l)}}function co(e,n){var l=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var v=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var O={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?v=b=O:b=b.next=O,l=l.next}while(l!==null);b===null?v=b=n:b=b.next=n}else v=b=n;l={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function Zu(){if(CD){var e=Uy;if(e!==null)throw e}}function fo(e,n,l,d){CD=!1;var v=e.updateQueue;Om=!1,ED=v.shared;var b=v.firstBaseUpdate,O=v.lastBaseUpdate,_=v.shared.pending;if(_!==null){v.shared.pending=null;var Y=_,Q=Y.next;Y.next=null,O===null?b=Q:O.next=Q,O=Y;var Te=e.alternate;Te!==null&&(Te=Te.updateQueue,_=Te.lastBaseUpdate,_!==O&&(_===null?Te.firstBaseUpdate=Q:_.next=Q,Te.lastBaseUpdate=Y))}if(b!==null){var Ue=v.baseState;O=0,Te=Q=Y=null,_=b;do{var Ae=_.lane&-536870913,$e=Ae!==_.lane;if($e?(Pn&Ae)===Ae:(d&Ae)===Ae){Ae!==0&&Ae===gg&&(CD=!0),Te!==null&&(Te=Te.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{Ae=e;var wt=_,Jt=n,Ma=l;switch(wt.tag){case Bw:if(wt=wt.payload,typeof wt=="function"){jy=!0;var Qn=wt.call(Ma,Ue,Jt);if(Ae.mode&qu){rt(!0);try{wt.call(Ma,Ue,Jt)}finally{rt(!1)}}jy=!1,Ue=Qn;break e}Ue=wt;break e;case DD:Ae.flags=Ae.flags&-65537|128;case Rw:if(Qn=wt.payload,typeof Qn=="function"){if(jy=!0,wt=Qn.call(Ma,Ue,Jt),Ae.mode&qu){rt(!0);try{Qn.call(Ma,Ue,Jt)}finally{rt(!1)}}jy=!1}else wt=Qn;if(wt==null)break e;Ue=mn({},Ue,wt);break e;case _w:Om=!0}}Ae=_.callback,Ae!==null&&(e.flags|=64,$e&&(e.flags|=8192),$e=v.callbacks,$e===null?v.callbacks=[Ae]:$e.push(Ae))}else $e={lane:Ae,tag:_.tag,payload:_.payload,callback:_.callback,next:null},Te===null?(Q=Te=$e,Y=Ue):Te=Te.next=$e,O|=Ae;if(_=_.next,_===null){if(_=v.shared.pending,_===null)break;$e=_,_=$e.next,$e.next=null,v.lastBaseUpdate=$e,v.shared.pending=null}}while(!0);Te===null&&(Y=Ue),v.baseState=Y,v.firstBaseUpdate=Q,v.lastBaseUpdate=Te,b===null&&(v.shared.lanes=0),Rm|=O,e.lanes=O,e.memoizedState=Ue}ED=null}function hf(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function rc(e,n){var l=e.shared.hiddenCallbacks;if(l!==null)for(e.shared.hiddenCallbacks=null,e=0;e<l.length;e++)hf(l[e],n)}function Fd(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hf(l[e],n)}function ci(e,n){var l=sd;ye(c1,l,e),ye(Hy,n,e),sd=l|n.baseLanes}function ho(e){ye(c1,sd,e),ye(Hy,Hy.current,e)}function Tr(e){sd=c1.current,ke(Hy,e),ke(c1,e)}function un(){var e=je;Fs===null?Fs=[e]:Fs.push(e)}function et(){var e=je;if(Fs!==null&&(zh++,Fs[zh]!==e)){var n=J(cn);if(!Mw.has(n)&&(Mw.add(n),Fs!==null)){for(var l="",d=0;d<=zh;d++){var v=Fs[d],b=d===zh?e:v;for(v=d+1+". "+v;30>v.length;)v+=" ";v+=b+`
|
|
249
|
-
`,l+=v}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
250
|
-
|
|
251
|
-
Previous render Next render
|
|
252
|
-
------------------------------------------------------
|
|
253
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
254
|
-
`,n,l)}}}function Au(e){e==null||en(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",je,typeof e)}function pf(){var e=J(cn);jw.has(e)||(jw.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ya(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
255
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
256
|
-
2. You might be breaking the Rules of Hooks
|
|
257
|
-
3. You might have more than one copy of React in the same app
|
|
258
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ku(e,n){if(Z0)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",je),!1;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
259
|
-
|
|
260
|
-
Previous: %s
|
|
261
|
-
Incoming: %s`,je,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var l=0;l<n.length&&l<e.length;l++)if(!Pe(e[l],n[l]))return!1;return!0}function Ol(e,n,l,d,v,b){Tm=b,cn=n,Fs=e!==null?e._debugHookTypes:null,zh=-1,Z0=e!==null&&e.type!==n.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(b=J(cn),wD.has(b)||(wD.add(b),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",b===null?"An unknown Component":"<"+b+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Me.H=e!==null&&e.memoizedState!==null?AD:Fs!==null?Lw:xD,Sg=b=(n.mode&qu)!==$a;var O=OD(l,d,v);if(Sg=!1,qy&&(O=ic(n,l,d,v)),b){rt(!0);try{O=ic(n,l,d,v)}finally{rt(!1)}}return Md(e,n),O}function Md(e,n){n._debugHookTypes=Fs,n.dependencies===null?Mh!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Mh}):n.dependencies._debugThenableState=Mh,Me.H=h1;var l=Ra!==null&&Ra.next!==null;if(Tm=0,Fs=je=ei=Ra=cn=null,zh=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),f1=!1,I0=0,Mh=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Qi||(e=e.dependencies,e!==null&&Ji(e)&&(Qi=!0)),s1?(s1=!1,e=!0):e=!1,e&&(n=J(n)||"Unknown",zw.has(n)||wD.has(n)||(zw.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ic(e,n,l,d){cn=e;var v=0;do{if(qy&&(Mh=null),I0=0,qy=!1,v>=qN)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v+=1,Z0=!1,ei=Ra=null,e.updateQueue!=null){var b=e.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}zh=-1,Me.H=Uw,b=OD(n,l,d)}while(qy);return b}function Ou(){var e=Me.H,n=e.useState()[0];return n=typeof n.then=="function"?uc(n):n,e=e.useState()[0],(Ra!==null?Ra.memoizedState:null)!==e&&(cn.flags|=1024),n}function Ni(){var e=d1!==0;return d1=0,e}function ca(e,n,l){n.updateQueue=e.updateQueue,n.flags=(n.mode&Lc)!==$a?n.flags&-402655237:n.flags&-2053,e.lanes&=~l}function ba(e){if(f1){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}f1=!1}Tm=0,Fs=ei=Ra=cn=null,zh=-1,je=null,qy=!1,I0=d1=0,Mh=null}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ei===null?cn.memoizedState=ei=e:ei=ei.next=e,ei}function Hn(){if(Ra===null){var e=cn.alternate;e=e!==null?e.memoizedState:null}else e=Ra.next;var n=ei===null?cn.memoizedState:ei.next;if(n!==null)ei=n,Ra=e;else{if(e===null)throw cn.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ra=e,e={memoizedState:Ra.memoizedState,baseState:Ra.baseState,baseQueue:Ra.baseQueue,queue:Ra.queue,next:null},ei===null?cn.memoizedState=ei=e:ei=ei.next=e}return ei}function zd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uc(e){var n=I0;return I0+=1,Mh===null&&(Mh=ff()),e=xu(Mh,e,n),n=cn,(ei===null?n.memoizedState:ei.next)===null&&(n=n.alternate,Me.H=n!==null&&n.memoizedState!==null?AD:xD),e}function Tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return uc(e);if(e.$$typeof===Dr)return ga(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ea(e){var n=null,l=cn.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var d=cn.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(v){return v.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=zd(),cn.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0||Z0)for(l=n.data[n.index]=Array(e),d=0;d<e;d++)l[d]=Dy;else l.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,e);return n.index++,l}function Gn(e,n){return typeof n=="function"?n(e):n}function xn(e,n,l){var d=ja();if(l!==void 0){var v=l(n);if(Sg){rt(!0);try{l(n)}finally{rt(!1)}}}else v=n;return d.memoizedState=d.baseState=v,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:v},d.queue=e,e=e.dispatch=$d.bind(null,cn,e),[d.memoizedState,e]}function Yr(e){var n=Hn();return Pr(n,Ra,e)}function Pr(e,n,l){var d=e.queue;if(d===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");d.lastRenderedReducer=l;var v=e.baseQueue,b=d.pending;if(b!==null){if(v!==null){var O=v.next;v.next=b.next,b.next=O}n.baseQueue!==v&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=v=b,d.pending=null}if(b=e.baseState,v===null)e.memoizedState=b;else{n=v.next;var _=O=null,Y=null,Q=n,Te=!1;do{var Ue=Q.lane&-536870913;if(Ue!==Q.lane?(Pn&Ue)===Ue:(Tm&Ue)===Ue){var Ae=Q.revertLane;if(Ae===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),Ue===gg&&(Te=!0);else if((Tm&Ae)===Ae){Q=Q.next,Ae===gg&&(Te=!0);continue}else Ue={lane:0,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},Y===null?(_=Y=Ue,O=b):Y=Y.next=Ue,cn.lanes|=Ae,Rm|=Ae;Ue=Q.action,Sg&&l(b,Ue),b=Q.hasEagerState?Q.eagerState:l(b,Ue)}else Ae={lane:Ue,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},Y===null?(_=Y=Ae,O=b):Y=Y.next=Ae,cn.lanes|=Ue,Rm|=Ue;Q=Q.next}while(Q!==null&&Q!==n);if(Y===null?O=b:Y.next=_,!Pe(b,e.memoizedState)&&(Qi=!0,Te&&(l=Uy,l!==null)))throw l;e.memoizedState=b,e.baseState=O,e.baseQueue=Y,d.lastRenderedState=b}return v===null&&(d.lanes=0),[e.memoizedState,d.dispatch]}function Tl(e){var n=Hn(),l=n.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=e;var d=l.dispatch,v=l.pending,b=n.memoizedState;if(v!==null){l.pending=null;var O=v=v.next;do b=e(b,O.action),O=O.next;while(O!==v);Pe(b,n.memoizedState)||(Qi=!0),n.memoizedState=b,n.baseQueue===null&&(n.baseState=b),l.lastRenderedState=b}return[b,d]}function Ri(e,n,l){var d=cn,v=ja();if(aa){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var b=l();Vy||b===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Vy=!0)}else{if(b=n(),Vy||(l=n(),Pe(b,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Vy=!0)),Fa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Pn&124)!==0||hv(d,n,b)}return v.memoizedState=b,l={value:b,getSnapshot:n},v.queue=l,dp(vf.bind(null,d,l,e),[e]),d.flags|=2048,Nl(_s|Ci,ns(),mf.bind(null,d,l,b,n),null),b}function jd(e,n,l){var d=cn,v=Hn(),b=aa;if(b){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=n(),!Vy){var O=n();Pe(l,O)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Vy=!0)}(O=!Pe((Ra||v).memoizedState,l))&&(v.memoizedState=l,Qi=!0),v=v.queue;var _=vf.bind(null,d,v,e);if(da(2048,Ci,_,[e]),v.getSnapshot!==n||O||ei!==null&&ei.memoizedState.tag&_s){if(d.flags|=2048,Nl(_s|Ci,ns(),mf.bind(null,d,v,l,n),null),Fa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b||(Tm&124)!==0||hv(d,n,l)}return l}function hv(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=cn.updateQueue,n===null?(n=zd(),cn.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function mf(e,n,l,d){n.value=l,n.getSnapshot=d,pv(n)&&po(e)}function vf(e,n,l){return l(function(){pv(n)&&po(e)})}function pv(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Pe(e,l)}catch{return!0}}function po(e){var n=qr(e,2);n!==null&&Ua(n,e,2)}function mo(e){var n=ja();if(typeof e=="function"){var l=e;if(e=l(),Sg){rt(!0);try{l()}finally{rt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},n}function kl(e){e=mo(e);var n=e.queue,l=Ru.bind(null,cn,n);return n.dispatch=l,[e.memoizedState,l]}function q(e){var n=ja();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Sp.bind(null,cn,!0,l),l.dispatch=n,[e,n]}function Bi(e,n){var l=Hn();return tu(l,Ra,e,n)}function tu(e,n,l,d){return e.baseState=l,Pr(e,Ra,typeof d=="function"?d:Gn)}function fi(e,n){var l=Hn();return Ra!==null?tu(l,Ra,e,n):(l.baseState=e,[e,l.queue.dispatch])}function An(e,n,l,d,v){if(Sf(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var b={payload:v,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){b.listeners.push(O)}};Me.T!==null?l(!0):b.isTransition=!1,d(b),l=n.pending,l===null?(b.next=n.pending=b,gf(n,b)):(b.next=l.next,n.pending=l.next=b)}}function gf(e,n){var l=n.action,d=n.payload,v=e.state;if(n.isTransition){var b=Me.T,O={};Me.T=O,Me.T._updatedFibers=new Set;try{var _=l(v,d),Y=Me.S;Y!==null&&Y(O,_),Ld(e,n,_)}catch(Q){Oa(e,n,Q)}finally{Me.T=b,b===null&&O._updatedFibers&&(e=O._updatedFibers.size,O._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{O=l(v,d),Ld(e,n,O)}catch(Q){Oa(e,n,Q)}}function Ld(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(l.then(function(d){ts(e,n,d)},function(d){return Oa(e,n,d)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ts(e,n,l)}function ts(e,n,l){n.status="fulfilled",n.value=l,Ud(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,gf(e,l)))}function Oa(e,n,l){var d=e.pending;if(e.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=l,Ud(n),n=n.next;while(n!==d)}e.action=null}function Ud(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function mv(e,n){return n}function yf(e,n){if(aa){var l=Fa.formState;if(l!==null){e:{var d=cn;if(aa){if(Cr){t:{for(var v=Cr,b=ud;v.nodeType!==8;){if(!b){v=null;break t}if(v=_r(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b===JD||b===jx?v:null}if(v){Cr=_r(v.nextSibling),d=v.data===JD;break e}}wl(d)}d=!1}d&&(n=l[0])}}return l=ja(),l.memoizedState=l.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mv,lastRenderedState:n},l.queue=d,l=Ru.bind(null,cn,d),d.dispatch=l,d=mo(!1),b=Sp.bind(null,cn,!1,d.queue),d=ja(),v={state:n,dispatch:null,action:e,pending:null},d.queue=v,l=An.bind(null,cn,v,b,l),v.dispatch=l,d.memoizedState=e,[n,l,!1]}function fp(e){var n=Hn();return ay(n,Ra,e)}function ay(e,n,l){if(n=Pr(e,n,mv)[0],e=Yr(Gn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var d=uc(n)}catch(O){throw O===Q0?o1:O}else d=n;n=Hn();var v=n.queue,b=v.dispatch;return l!==n.memoizedState&&(cn.flags|=2048,Nl(_s|Ci,ns(),fa.bind(null,v,l),null)),[d,b,e]}function fa(e,n){e.action=n}function bf(e){var n=Hn(),l=Ra;if(l!==null)return ay(n,l,e);Hn(),n=n.memoizedState,l=Hn();var d=l.queue.dispatch;return l.memoizedState=e,[n,d,!1]}function Nl(e,n,l,d){return e={tag:e,create:l,deps:d,inst:n,next:null},n=cn.updateQueue,n===null&&(n=zd(),cn.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(d=l.next,l.next=e,e.next=d,n.lastEffect=e),e}function ns(){return{destroy:void 0,resource:void 0}}function Hd(e){var n=ja();return e={current:e},n.memoizedState=e}function ku(e,n,l,d){var v=ja();d=d===void 0?null:d,cn.flags|=e,v.memoizedState=Nl(_s|n,ns(),l,d)}function da(e,n,l,d){var v=Hn();d=d===void 0?null:d;var b=v.memoizedState.inst;Ra!==null&&d!==null&&Ku(d,Ra.memoizedState.deps)?v.memoizedState=Nl(n,b,l,d):(cn.flags|=e,v.memoizedState=Nl(_s|n,b,l,d))}function dp(e,n){(cn.mode&Lc)!==$a&&(cn.mode&Dw)===$a?ku(276826112,Ci,e,n):ku(8390656,Ci,e,n)}function hp(e,n){var l=4194308;return(cn.mode&Lc)!==$a&&(l|=134217728),ku(l,cu,e,n)}function ry(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null}}function pp(e,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([e]):null;var d=4194308;(cn.mode&Lc)!==$a&&(d|=134217728),ku(d,cu,ry.bind(null,n,e),l)}function Rl(e,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([e]):null,da(4,cu,ry.bind(null,n,e),l)}function Wu(e,n){return ja().memoizedState=[e,n===void 0?null:n],e}function lc(e,n){var l=Hn();n=n===void 0?null:n;var d=l.memoizedState;return n!==null&&Ku(n,d[1])?d[0]:(l.memoizedState=[e,n],e)}function mp(e,n){var l=ja();n=n===void 0?null:n;var d=e();if(Sg){rt(!0);try{e()}finally{rt(!1)}}return l.memoizedState=[d,n],d}function yr(e,n){var l=Hn();n=n===void 0?null:n;var d=l.memoizedState;if(n!==null&&Ku(n,d[1]))return d[0];if(d=e(),Sg){rt(!0);try{e()}finally{rt(!1)}}return l.memoizedState=[d,n],d}function vp(e,n){var l=ja();return yp(l,e,n)}function Vd(e,n){var l=Hn();return qd(l,Ra.memoizedState,e,n)}function gp(e,n){var l=Hn();return Ra===null?yp(l,e,n):qd(l,Ra.memoizedState,e,n)}function yp(e,n,l){return l===void 0||(Tm&1073741824)!==0?e.memoizedState=n:(e.memoizedState=l,e=xv(),cn.lanes|=e,Rm|=e,l)}function qd(e,n,l,d){return Pe(l,n)?l:Hy.current!==null?(e=yp(e,l,d),Pe(e,n)||(Qi=!0),e):(Tm&42)===0?(Qi=!0,e.memoizedState=l):(e=xv(),cn.lanes|=e,Rm|=e,n)}function bp(e,n,l,d,v){var b=Gt.p;Gt.p=b!==0&&b<vn?b:vn;var O=Me.T,_={};Me.T=_,Sp(e,!1,n,l),_._updatedFibers=new Set;try{var Y=v(),Q=Me.S;if(Q!==null&&Q(_,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var Te=eu(Y,d);Ka(e,n,Te,Ui(e))}else Ka(e,n,d,Ui(e))}catch(Ue){Ka(e,n,{then:function(){},status:"rejected",reason:Ue},Ui(e))}finally{Gt.p=b,Me.T=O,O===null&&_._updatedFibers&&(e=_._updatedFibers.size,_._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function as(e,n,l,d){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var v=vv(e).queue;bp(e,v,n,Rg,l===null?A:function(){return gv(e),l(d)})}function vv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Rg,baseState:Rg,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:Rg},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function gv(e){Me.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=vv(e).next.queue;Ka(e,n,{},Ui(e))}function Nu(){var e=mo(!1);return e=bp.bind(null,cn,e.queue,!0,!1),ja().memoizedState=e,[!1,e]}function rs(){var e=Yr(Gn)[0],n=Hn().memoizedState;return[typeof e=="boolean"?e:uc(e),n]}function oc(){var e=Tl(Gn)[0],n=Hn().memoizedState;return[typeof e=="boolean"?e:uc(e),n]}function _i(){return ga(hb)}function Ju(){var e=ja(),n=Fa.identifierPrefix;if(aa){var l=_h,d=Bh;l=(d&~(1<<32-Na(d)-1)).toString(32)+l,n="«"+n+"R"+l,l=d1++,0<l&&(n+="H"+l.toString(32)),n+="»"}else l=VN++,n="«"+n+"r"+l.toString(32)+"»";return e.memoizedState=n}function sc(){return ja().memoizedState=el.bind(null,cn)}function el(e,n){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var d=Ui(l);e=Al(d);var v=ki(l,e,d);v!==null&&(Ua(v,l,d),si(v,l,d)),l=_d(),n!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:l};return}l=l.return}}function $d(e,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=Ui(e);var v={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};Sf(e)?is(n,v):(v=av(e,n,v,d),v!==null&&(Ua(v,e,d),vo(v,n,d))),St(e,d)}function Ru(e,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=Ui(e),Ka(e,n,l,d),St(e,d)}function Ka(e,n,l,d){var v={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Sf(e))is(n,v);else{var b=e.alternate;if(e.lanes===0&&(b===null||b.lanes===0)&&(b=n.lastRenderedReducer,b!==null)){var O=Me.H;Me.H=Hc;try{var _=n.lastRenderedState,Y=b(_,l);if(v.hasEagerState=!0,v.eagerState=Y,Pe(Y,_))return uf(e,n,v,0),Fa===null&&bu(),!1}catch{}finally{Me.H=O}}if(l=av(e,n,v,d),l!==null)return Ua(l,e,d),vo(l,n,d),!0}return!1}function Sp(e,n,l,d){if(Me.T===null&&gg===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),d={lane:2,revertLane:Tv(),action:d,hasEagerState:!1,eagerState:null,next:null},Sf(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=av(e,l,d,2),n!==null&&Ua(n,e,2);St(e,2)}function Sf(e){var n=e.alternate;return e===cn||n!==null&&n===cn}function is(e,n){qy=f1=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function vo(e,n,l){if((l&4194048)!==0){var d=n.lanes;d&=e.pendingLanes,l|=d,n.lanes=l,xa(e,l)}}function Ca(e){var n=Bn;return e!=null&&(Bn=n===null?e:n.concat(e)),n}function cc(e,n,l){for(var d=Object.keys(e.props),v=0;v<d.length;v++){var b=d[v];if(b!=="children"&&b!=="key"){n===null&&(n=kd(e,l.mode,0),n._debugInfo=Bn,n.return=l),ot(n,function(O){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O)},b);break}}}function Df(e){var n=K0;return K0+=1,$y===null&&($y=ff()),xu($y,e,n)}function di(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ln(e,n){throw n.$$typeof===Sh?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
262
|
-
- Multiple copies of the "react" package is used.
|
|
263
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
264
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Xn(e,n){var l=J(e)||"Component";ex[l]||(ex[l]=!0,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
265
|
-
root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
266
|
-
<%s>{%s}</%s>`,n,n,l,n,l))}function En(e,n){var l=J(e)||"Component";tx[l]||(tx[l]=!0,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
267
|
-
root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
|
|
268
|
-
<%s>%s</%s>`,l,n,l))}function fc(e){function n(ae,re){if(e){var ce=ae.deletions;ce===null?(ae.deletions=[re],ae.flags|=16):ce.push(re)}}function l(ae,re){if(!e)return null;for(;re!==null;)n(ae,re),re=re.sibling;return null}function d(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function v(ae,re){return ae=Su(ae,re),ae.index=0,ae.sibling=null,ae}function b(ae,re,ce){return ae.index=ce,e?(ce=ae.alternate,ce!==null?(ce=ce.index,ce<re?(ae.flags|=67108866,re):ce):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function O(ae){return e&&ae.alternate===null&&(ae.flags|=67108866),ae}function _(ae,re,ce,Ge){return re===null||re.tag!==6?(re=Cl(ce,ae.mode,Ge),re.return=ae,re._debugOwner=ae,re._debugTask=ae._debugTask,re._debugInfo=Bn,re):(re=v(re,ce),re.return=ae,re._debugInfo=Bn,re)}function Y(ae,re,ce,Ge){var ct=ce.type;return ct===sn?(re=Te(ae,re,ce.props.children,Ge,ce.key),cc(ce,re,ae),re):re!==null&&(re.elementType===ct||xd(re,ce)||typeof ct=="object"&&ct!==null&&ct.$$typeof===uu&&km(ct)===re.type)?(re=v(re,ce.props),di(re,ce),re.return=ae,re._debugOwner=ce._owner,re._debugInfo=Bn,re):(re=kd(ce,ae.mode,Ge),di(re,ce),re.return=ae,re._debugInfo=Bn,re)}function Q(ae,re,ce,Ge){return re===null||re.tag!==4||re.stateNode.containerInfo!==ce.containerInfo||re.stateNode.implementation!==ce.implementation?(re=rv(ce,ae.mode,Ge),re.return=ae,re._debugInfo=Bn,re):(re=v(re,ce.children||[]),re.return=ae,re._debugInfo=Bn,re)}function Te(ae,re,ce,Ge,ct){return re===null||re.tag!==7?(re=El(ce,ae.mode,Ge,ct),re.return=ae,re._debugOwner=ae,re._debugTask=ae._debugTask,re._debugInfo=Bn,re):(re=v(re,ce),re.return=ae,re._debugInfo=Bn,re)}function Ue(ae,re,ce){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Cl(""+re,ae.mode,ce),re.return=ae,re._debugOwner=ae,re._debugTask=ae._debugTask,re._debugInfo=Bn,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Es:return ce=kd(re,ae.mode,ce),di(ce,re),ce.return=ae,ae=Ca(re._debugInfo),ce._debugInfo=Bn,Bn=ae,ce;case kc:return re=rv(re,ae.mode,ce),re.return=ae,re._debugInfo=Bn,re;case uu:var Ge=Ca(re._debugInfo);return re=km(re),ae=Ue(ae,re,ce),Bn=Ge,ae}if(en(re)||W(re))return ce=El(re,ae.mode,ce,null),ce.return=ae,ce._debugOwner=ae,ce._debugTask=ae._debugTask,ae=Ca(re._debugInfo),ce._debugInfo=Bn,Bn=ae,ce;if(typeof re.then=="function")return Ge=Ca(re._debugInfo),ae=Ue(ae,Df(re),ce),Bn=Ge,ae;if(re.$$typeof===Dr)return Ue(ae,Bd(ae,re),ce);ln(ae,re)}return typeof re=="function"&&Xn(ae,re),typeof re=="symbol"&&En(ae,re),null}function Ae(ae,re,ce,Ge){var ct=re!==null?re.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return ct!==null?null:_(ae,re,""+ce,Ge);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case Es:return ce.key===ct?(ct=Ca(ce._debugInfo),ae=Y(ae,re,ce,Ge),Bn=ct,ae):null;case kc:return ce.key===ct?Q(ae,re,ce,Ge):null;case uu:return ct=Ca(ce._debugInfo),ce=km(ce),ae=Ae(ae,re,ce,Ge),Bn=ct,ae}if(en(ce)||W(ce))return ct!==null?null:(ct=Ca(ce._debugInfo),ae=Te(ae,re,ce,Ge,null),Bn=ct,ae);if(typeof ce.then=="function")return ct=Ca(ce._debugInfo),ae=Ae(ae,re,Df(ce),Ge),Bn=ct,ae;if(ce.$$typeof===Dr)return Ae(ae,re,Bd(ae,ce),Ge);ln(ae,ce)}return typeof ce=="function"&&Xn(ae,ce),typeof ce=="symbol"&&En(ae,ce),null}function $e(ae,re,ce,Ge,ct){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return ae=ae.get(ce)||null,_(re,ae,""+Ge,ct);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case Es:return ce=ae.get(Ge.key===null?ce:Ge.key)||null,ae=Ca(Ge._debugInfo),re=Y(re,ce,Ge,ct),Bn=ae,re;case kc:return ae=ae.get(Ge.key===null?ce:Ge.key)||null,Q(re,ae,Ge,ct);case uu:var yn=Ca(Ge._debugInfo);return Ge=km(Ge),re=$e(ae,re,ce,Ge,ct),Bn=yn,re}if(en(Ge)||W(Ge))return ce=ae.get(ce)||null,ae=Ca(Ge._debugInfo),re=Te(re,ce,Ge,ct,null),Bn=ae,re;if(typeof Ge.then=="function")return yn=Ca(Ge._debugInfo),re=$e(ae,re,ce,Df(Ge),ct),Bn=yn,re;if(Ge.$$typeof===Dr)return $e(ae,re,ce,Bd(re,Ge),ct);ln(re,Ge)}return typeof Ge=="function"&&Xn(re,Ge),typeof Ge=="symbol"&&En(re,Ge),null}function wt(ae,re,ce,Ge){if(typeof ce!="object"||ce===null)return Ge;switch(ce.$$typeof){case Es:case kc:y(ae,re,ce);var ct=ce.key;if(typeof ct!="string")break;if(Ge===null){Ge=new Set,Ge.add(ct);break}if(!Ge.has(ct)){Ge.add(ct);break}ot(re,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ct)});break;case uu:ce=km(ce),wt(ae,re,ce,Ge)}return Ge}function Jt(ae,re,ce,Ge){for(var ct=null,yn=null,xt=null,bn=re,wn=re=0,Ga=null;bn!==null&&wn<ce.length;wn++){bn.index>wn?(Ga=bn,bn=null):Ga=bn.sibling;var Lr=Ae(ae,bn,ce[wn],Ge);if(Lr===null){bn===null&&(bn=Ga);break}ct=wt(ae,Lr,ce[wn],ct),e&&bn&&Lr.alternate===null&&n(ae,bn),re=b(Lr,re,wn),xt===null?yn=Lr:xt.sibling=Lr,xt=Lr,bn=Ga}if(wn===ce.length)return l(ae,bn),aa&&Wo(ae,wn),yn;if(bn===null){for(;wn<ce.length;wn++)bn=Ue(ae,ce[wn],Ge),bn!==null&&(ct=wt(ae,bn,ce[wn],ct),re=b(bn,re,wn),xt===null?yn=bn:xt.sibling=bn,xt=bn);return aa&&Wo(ae,wn),yn}for(bn=d(bn);wn<ce.length;wn++)Ga=$e(bn,ae,wn,ce[wn],Ge),Ga!==null&&(ct=wt(ae,Ga,ce[wn],ct),e&&Ga.alternate!==null&&bn.delete(Ga.key===null?wn:Ga.key),re=b(Ga,re,wn),xt===null?yn=Ga:xt.sibling=Ga,xt=Ga);return e&&bn.forEach(function(qh){return n(ae,qh)}),aa&&Wo(ae,wn),yn}function Ma(ae,re,ce,Ge){if(ce==null)throw Error("An iterable object provided no iterator.");for(var ct=null,yn=null,xt=re,bn=re=0,wn=null,Ga=null,Lr=ce.next();xt!==null&&!Lr.done;bn++,Lr=ce.next()){xt.index>bn?(wn=xt,xt=null):wn=xt.sibling;var qh=Ae(ae,xt,Lr.value,Ge);if(qh===null){xt===null&&(xt=wn);break}Ga=wt(ae,qh,Lr.value,Ga),e&&xt&&qh.alternate===null&&n(ae,xt),re=b(qh,re,bn),yn===null?ct=qh:yn.sibling=qh,yn=qh,xt=wn}if(Lr.done)return l(ae,xt),aa&&Wo(ae,bn),ct;if(xt===null){for(;!Lr.done;bn++,Lr=ce.next())xt=Ue(ae,Lr.value,Ge),xt!==null&&(Ga=wt(ae,xt,Lr.value,Ga),re=b(xt,re,bn),yn===null?ct=xt:yn.sibling=xt,yn=xt);return aa&&Wo(ae,bn),ct}for(xt=d(xt);!Lr.done;bn++,Lr=ce.next())wn=$e(xt,ae,bn,Lr.value,Ge),wn!==null&&(Ga=wt(ae,wn,Lr.value,Ga),e&&wn.alternate!==null&&xt.delete(wn.key===null?bn:wn.key),re=b(wn,re,bn),yn===null?ct=wn:yn.sibling=wn,yn=wn);return e&&xt.forEach(function(pR){return n(ae,pR)}),aa&&Wo(ae,bn),ct}function Qn(ae,re,ce,Ge){if(typeof ce=="object"&&ce!==null&&ce.type===sn&&ce.key===null&&(cc(ce,null,ae),ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case Es:var ct=Ca(ce._debugInfo);e:{for(var yn=ce.key;re!==null;){if(re.key===yn){if(yn=ce.type,yn===sn){if(re.tag===7){l(ae,re.sibling),Ge=v(re,ce.props.children),Ge.return=ae,Ge._debugOwner=ce._owner,Ge._debugInfo=Bn,cc(ce,Ge,ae),ae=Ge;break e}}else if(re.elementType===yn||xd(re,ce)||typeof yn=="object"&&yn!==null&&yn.$$typeof===uu&&km(yn)===re.type){l(ae,re.sibling),Ge=v(re,ce.props),di(Ge,ce),Ge.return=ae,Ge._debugOwner=ce._owner,Ge._debugInfo=Bn,ae=Ge;break e}l(ae,re);break}else n(ae,re);re=re.sibling}ce.type===sn?(Ge=El(ce.props.children,ae.mode,Ge,ce.key),Ge.return=ae,Ge._debugOwner=ae,Ge._debugTask=ae._debugTask,Ge._debugInfo=Bn,cc(ce,Ge,ae),ae=Ge):(Ge=kd(ce,ae.mode,Ge),di(Ge,ce),Ge.return=ae,Ge._debugInfo=Bn,ae=Ge)}return ae=O(ae),Bn=ct,ae;case kc:e:{for(ct=ce,ce=ct.key;re!==null;){if(re.key===ce)if(re.tag===4&&re.stateNode.containerInfo===ct.containerInfo&&re.stateNode.implementation===ct.implementation){l(ae,re.sibling),Ge=v(re,ct.children||[]),Ge.return=ae,ae=Ge;break e}else{l(ae,re);break}else n(ae,re);re=re.sibling}Ge=rv(ct,ae.mode,Ge),Ge.return=ae,ae=Ge}return O(ae);case uu:return ct=Ca(ce._debugInfo),ce=km(ce),ae=Qn(ae,re,ce,Ge),Bn=ct,ae}if(en(ce))return ct=Ca(ce._debugInfo),ae=Jt(ae,re,ce,Ge),Bn=ct,ae;if(W(ce)){if(ct=Ca(ce._debugInfo),yn=W(ce),typeof yn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var xt=yn.call(ce);return xt===ce?(ae.tag!==0||Object.prototype.toString.call(ae.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(xt)!=="[object Generator]")&&(Ww||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Ww=!0):ce.entries!==yn||kD||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kD=!0),ae=Ma(ae,re,xt,Ge),Bn=ct,ae}if(typeof ce.then=="function")return ct=Ca(ce._debugInfo),ae=Qn(ae,re,Df(ce),Ge),Bn=ct,ae;if(ce.$$typeof===Dr)return Qn(ae,re,Bd(ae,ce),Ge);ln(ae,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ct=""+ce,re!==null&&re.tag===6?(l(ae,re.sibling),Ge=v(re,ct),Ge.return=ae,ae=Ge):(l(ae,re),Ge=Cl(ct,ae.mode,Ge),Ge.return=ae,Ge._debugOwner=ae,Ge._debugTask=ae._debugTask,Ge._debugInfo=Bn,ae=Ge),O(ae)):(typeof ce=="function"&&Xn(ae,ce),typeof ce=="symbol"&&En(ae,ce),l(ae,re))}return function(ae,re,ce,Ge){var ct=Bn;Bn=null;try{K0=0;var yn=Qn(ae,re,ce,Ge);return $y=null,yn}catch(Ga){if(Ga===Q0||Ga===o1)throw Ga;var xt=N(29,Ga,null,ae.mode);xt.lanes=Ge,xt.return=ae;var bn=xt._debugInfo=Bn;if(xt._debugOwner=ae._debugOwner,xt._debugTask=ae._debugTask,bn!=null){for(var wn=bn.length-1;0<=wn;wn--)if(typeof bn[wn].stack=="string"){xt._debugOwner=bn[wn],xt._debugTask=bn[wn].debugTask;break}}return xt}finally{Bn=ct}}}function Fi(e){var n=e.alternate;ye(wi,wi.current&Yy,e),ye(Ms,e,e),od===null&&(n===null||Hy.current!==null||n.memoizedState!==null)&&(od=e)}function kr(e){if(e.tag===22){if(ye(wi,wi.current,e),ye(Ms,e,e),od===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(od=e)}}else nu(e)}function nu(e){ye(wi,wi.current,e),ye(Ms,Ms.current,e)}function Qr(e){ke(Ms,e),od===e&&(od=null),ke(wi,e)}function hi(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data===Uh||Pl(l)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Dp(e){if(e!==null&&typeof e!="function"){var n=String(e);hx.has(n)||(hx.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Tn(e,n,l,d){var v=e.memoizedState,b=l(d,v);if(e.mode&qu){rt(!0);try{b=l(d,v)}finally{rt(!1)}}b===void 0&&(n=X(n)||"Component",sx.has(n)||(sx.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),v=b==null?v:mn({},v,b),e.memoizedState=v,e.lanes===0&&(e.updateQueue.baseState=v)}function Ef(e,n,l,d,v,b,O){var _=e.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(l=_.shouldComponentUpdate(d,b,O),e.mode&qu){rt(!0);try{l=_.shouldComponentUpdate(d,b,O)}finally{rt(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",X(n)||"Component"),l}return n.prototype&&n.prototype.isPureReactComponent?!rf(l,d)||!rf(v,b):!0}function Ep(e,n,l,d){var v=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,d),n.state!==v&&(e=J(e)||"Component",rx.has(e)||(rx.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),ND.enqueueReplaceState(n,n.state,null))}function us(e,n){var l=n;if("ref"in n){l={};for(var d in n)d!=="ref"&&(l[d]=n[d])}if(e=e.defaultProps){l===n&&(l=mn({},l));for(var v in e)l[v]===void 0&&(l[v]=e[v])}return l}function yv(e){RD(e),console.warn(`%s
|
|
269
|
-
|
|
270
|
-
%s
|
|
271
|
-
`,Py?"An error occurred in the <"+Py+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
272
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Cp(e){var n=Py?"The above error occurred in the <"+Py+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((BD||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var d=e.environmentName;e=[`%o
|
|
273
|
-
|
|
274
|
-
%s
|
|
275
|
-
|
|
276
|
-
%s
|
|
277
|
-
`,e,n,l].slice(0),typeof e[0]=="string"?e.splice(0,1,Yx+e[0],Px,B1+d+B1,Qx):e.splice(0,0,Yx,Px,B1+d+B1,Qx),e.unshift(console),d=dR.apply(console.error,e),d()}else console.error(`%o
|
|
278
|
-
|
|
279
|
-
%s
|
|
280
|
-
|
|
281
|
-
%s
|
|
282
|
-
`,e,n,l)}function wp(e){RD(e)}function Bl(e,n){try{Py=n.source?J(n.source):null,BD=null;var l=n.value;if(Me.actQueue!==null)Me.thrownErrors.push(l);else{var d=e.onUncaughtError;d(l,{componentStack:n.stack})}}catch(v){setTimeout(function(){throw v})}}function Gd(e,n,l){try{Py=l.source?J(l.source):null,BD=J(n);var d=e.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Xr(e,n,l){return l=Al(l),l.tag=DD,l.payload={element:null},l.callback=function(){ot(n.source,Bl,e,n)},l}function La(e){return e=Al(e),e.tag=DD,e}function go(e,n,l,d){var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var b=d.value;e.payload=function(){return v(b)},e.callback=function(){ec(l),ot(d.source,Gd,n,l,d)}}var O=l.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(e.callback=function(){ec(l),ot(d.source,Gd,n,l,d),typeof v!="function"&&(_m===null?_m=new Set([this]):_m.add(this)),$N(this,d),typeof v=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",J(l)||"Unknown")})}function Yd(e,n,l,d,v){if(l.flags|=32768,_a&&ms(e,v),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=l.alternate,n!==null&&Or(n,l,v,!0),aa&&(Fh=!0),l=Ms.current,l!==null){switch(l.tag){case 13:return od===null?Ll():l.alternate===null&&wr===Lh&&(wr=zD),l.flags&=-257,l.flags|=65536,l.lanes=v,d===SD?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([d]):n.add(d),Pp(e,d,v)),!1;case 22:return l.flags|=65536,d===SD?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([d]):l.add(d)),Pp(e,d,v)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Pp(e,d,v),Ll(),!1}if(aa)return Fh=!0,n=Ms.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=v,d!==vD&&sf(Mn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:d}),l))):(d!==vD&&sf(Mn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:d}),l)),e=e.current.alternate,e.flags|=65536,v&=-v,e.lanes|=v,d=Mn(d,l),v=Xr(e.stateNode,d,v),co(e,v),wr!==Dg&&(wr=Zy)),!1;var b=Mn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:d}),l);if(ib===null?ib=[b]:ib.push(b),wr!==Dg&&(wr=Zy),n===null)return!0;d=Mn(d,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=v&-v,l.lanes|=e,e=Xr(l.stateNode,d,e),co(l,e),!1;case 1:if(n=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(_m===null||!_m.has(b))))return l.flags|=65536,v&=-v,l.lanes|=v,v=La(v),go(v,e,l,d),co(l,v),!1}l=l.return}while(l!==null);return!1}function Wa(e,n,l,d){n.child=e===null?nx(n,null,l,d):Gy(n,e.child,l,d)}function Cf(e,n,l,d,v){l=l.render;var b=n.ref;if("ref"in d){var O={};for(var _ in d)_!=="ref"&&(O[_]=d[_])}else O=d;return gr(n),oe(n),d=Ol(e,n,l,O,b,v),_=Ni(),Qe(),e!==null&&!Qi?(ca(e,n,v),Bu(e,n,v)):(aa&&_&&of(n),n.flags|=1,Wa(e,n,d,v),n.child)}function tl(e,n,l,d,v){if(e===null){var b=l.type;return typeof b=="function"&&!lp(b)&&b.defaultProps===void 0&&l.compare===null?(l=Js(b),n.tag=15,n.type=l,Xd(n,b),Pd(e,n,l,d,v)):(e=Td(l.type,null,d,n,n.mode,v),e.ref=n.ref,e.return=n,n.child=e)}if(b=e.child,!Np(e,v)){var O=b.memoizedProps;if(l=l.compare,l=l!==null?l:rf,l(O,d)&&e.ref===n.ref)return Bu(e,n,v)}return n.flags|=1,e=Su(b,d),e.ref=n.ref,e.return=n,n.child=e}function Pd(e,n,l,d,v){if(e!==null){var b=e.memoizedProps;if(rf(b,d)&&e.ref===n.ref&&n.type===e.type)if(Qi=!1,n.pendingProps=d=b,Np(e,v))(e.flags&131072)!==0&&(Qi=!0);else return n.lanes=e.lanes,Bu(e,n,v)}return xf(e,n,l,d,v)}function xp(e,n,l){var d=n.pendingProps,v=d.children,b=e!==null?e.memoizedState:null;if(d.mode==="hidden"){if((n.flags&128)!==0){if(d=b!==null?b.baseLanes|l:l,e!==null){for(v=n.child=e.child,b=0;v!==null;)b=b|v.lanes|v.childLanes,v=v.sibling;n.childLanes=b&~d}else n.childLanes=0,n.child=null;return Ap(e,n,d,l)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&sp(n,b!==null?b.cachePool:null),b!==null?ci(n,b):ho(n),kr(n);else return n.lanes=n.childLanes=536870912,Ap(e,n,b!==null?b.baseLanes|l:l,l)}else b!==null?(sp(n,b.cachePool),ci(n,b),nu(n),n.memoizedState=null):(e!==null&&sp(n,null),ho(n),nu(n));return Wa(e,n,v,l),n.child}function Ap(e,n,l,d){var v=cf();return v=v===null?null:{parent:Ei._currentValue,pool:v},n.memoizedState={baseLanes:l,cachePool:v},e!==null&&sp(n,null),ho(n),kr(n),e!==null&&Or(e,n,d,!0),null}function wf(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==l)&&(n.flags|=4194816)}}function xf(e,n,l,d,v){if(l.prototype&&typeof l.prototype.render=="function"){var b=X(l)||"Unknown";mx[b]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),mx[b]=!0)}return n.mode&qu&&Uc.recordLegacyContextWarning(n,null),e===null&&(Xd(n,n.type),l.contextTypes&&(b=X(l)||"Unknown",gx[b]||(gx[b]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",b)))),gr(n),oe(n),l=Ol(e,n,l,d,void 0,v),d=Ni(),Qe(),e!==null&&!Qi?(ca(e,n,v),Bu(e,n,v)):(aa&&d&&of(n),n.flags|=1,Wa(e,n,l,v),n.child)}function bv(e,n,l,d,v,b){return gr(n),oe(n),zh=-1,Z0=e!==null&&e.type!==n.type,n.updateQueue=null,l=ic(n,d,l,v),Md(e,n),d=Ni(),Qe(),e!==null&&!Qi?(ca(e,n,b),Bu(e,n,b)):(aa&&d&&of(n),n.flags|=1,Wa(e,n,l,b),n.child)}function Qd(e,n,l,d,v){switch(g(n)){case!1:var b=n.stateNode,O=new n.type(n.memoizedProps,b.context).state;b.updater.enqueueSetState(b,O,null);break;case!0:n.flags|=128,n.flags|=65536,b=Error("Simulated error coming from DevTools");var _=v&-v;if(n.lanes|=_,O=Fa,O===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=La(_),go(_,O,n,Mn(b,n)),co(n,_)}if(gr(n),n.stateNode===null){if(O=Am,b=l.contextType,"contextType"in l&&b!==null&&(b===void 0||b.$$typeof!==Dr)&&!dx.has(l)&&(dx.add(l),_=b===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?" However, it is set to a "+typeof b+".":b.$$typeof===hm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",X(l)||"Component",_)),typeof b=="object"&&b!==null&&(O=ga(b)),b=new l(d,O),n.mode&qu){rt(!0);try{b=new l(d,O)}finally{rt(!1)}}if(O=n.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=ND,n.stateNode=b,b._reactInternals=n,b._reactInternalInstance=ax,typeof l.getDerivedStateFromProps=="function"&&O===null&&(O=X(l)||"Component",ix.has(O)||(ix.add(O),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",O,b.state===null?"null":"undefined",O))),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"){var Y=_=O=null;if(typeof b.componentWillMount=="function"&&b.componentWillMount.__suppressDeprecationWarning!==!0?O="componentWillMount":typeof b.UNSAFE_componentWillMount=="function"&&(O="UNSAFE_componentWillMount"),typeof b.componentWillReceiveProps=="function"&&b.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof b.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof b.componentWillUpdate=="function"&&b.componentWillUpdate.__suppressDeprecationWarning!==!0?Y="componentWillUpdate":typeof b.UNSAFE_componentWillUpdate=="function"&&(Y="UNSAFE_componentWillUpdate"),O!==null||_!==null||Y!==null){b=X(l)||"Component";var Q=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";lx.has(b)||(lx.add(b),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
283
|
-
|
|
284
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
285
|
-
|
|
286
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
287
|
-
https://react.dev/link/unsafe-component-lifecycles`,b,Q,O!==null?`
|
|
288
|
-
`+O:"",_!==null?`
|
|
289
|
-
`+_:"",Y!==null?`
|
|
290
|
-
`+Y:""))}}b=n.stateNode,O=X(l)||"Component",b.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",O):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",O)),!b.getInitialState||b.getInitialState.isReactClassApproved||b.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",O),b.getDefaultProps&&!b.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",O),b.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",O),l.childContextTypes&&!fx.has(l)&&(fx.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",O)),l.contextTypes&&!cx.has(l)&&(cx.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",O)),typeof b.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",O),l.prototype&&l.prototype.isPureReactComponent&&typeof b.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",X(l)||"A pure component"),typeof b.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",O),typeof b.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",O),typeof b.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",O),typeof b.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",O),_=b.props!==d,b.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",O),b.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",O,O),typeof b.getSnapshotBeforeUpdate!="function"||typeof b.componentDidUpdate=="function"||ux.has(l)||(ux.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",X(l))),typeof b.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",O),typeof b.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",O),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",O),(_=b.state)&&(typeof _!="object"||en(_))&&console.error("%s.state: must be set to an object or null",O),typeof b.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",O),b=n.stateNode,b.props=d,b.state=n.memoizedState,b.refs={},Ti(n),O=l.contextType,b.context=typeof O=="object"&&O!==null?ga(O):Am,b.state===d&&(O=X(l)||"Component",ox.has(O)||(ox.add(O),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",O))),n.mode&qu&&Uc.recordLegacyContextWarning(n,b),Uc.recordUnsafeLifecycleWarnings(n,b),b.state=n.memoizedState,O=l.getDerivedStateFromProps,typeof O=="function"&&(Tn(n,l,O,d),b.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(O=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),O!==b.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J(n)||"Component"),ND.enqueueReplaceState(b,b.state,null)),fo(n,d,b,v),Zu(),b.state=n.memoizedState),typeof b.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Lc)!==$a&&(n.flags|=134217728),b=!0}else if(e===null){b=n.stateNode;var Te=n.memoizedProps;_=us(l,Te),b.props=_;var Ue=b.context;Y=l.contextType,O=Am,typeof Y=="object"&&Y!==null&&(O=ga(Y)),Q=l.getDerivedStateFromProps,Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",Te=n.pendingProps!==Te,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(Te||Ue!==O)&&Ep(n,b,d,O),Om=!1;var Ae=n.memoizedState;b.state=Ae,fo(n,d,b,v),Zu(),Ue=n.memoizedState,Te||Ae!==Ue||Om?(typeof Q=="function"&&(Tn(n,l,Q,d),Ue=n.memoizedState),(_=Om||Ef(n,l,_,d,Ae,Ue,O))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Lc)!==$a&&(n.flags|=134217728)):(typeof b.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Lc)!==$a&&(n.flags|=134217728),n.memoizedProps=d,n.memoizedState=Ue),b.props=d,b.state=Ue,b.context=O,b=_):(typeof b.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Lc)!==$a&&(n.flags|=134217728),b=!1)}else{b=n.stateNode,es(e,n),O=n.memoizedProps,Y=us(l,O),b.props=Y,Q=n.pendingProps,Ae=b.context,Ue=l.contextType,_=Am,typeof Ue=="object"&&Ue!==null&&(_=ga(Ue)),Te=l.getDerivedStateFromProps,(Ue=typeof Te=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O!==Q||Ae!==_)&&Ep(n,b,d,_),Om=!1,Ae=n.memoizedState,b.state=Ae,fo(n,d,b,v),Zu();var $e=n.memoizedState;O!==Q||Ae!==$e||Om||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof Te=="function"&&(Tn(n,l,Te,d),$e=n.memoizedState),(Y=Om||Ef(n,l,Y,d,Ae,$e,_)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(Ue||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,$e,_),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,$e,_)),typeof b.componentDidUpdate=="function"&&(n.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof b.componentDidUpdate!="function"||O===e.memoizedProps&&Ae===e.memoizedState||(n.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&Ae===e.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=$e),b.props=d,b.state=$e,b.context=_,b=Y):(typeof b.componentDidUpdate!="function"||O===e.memoizedProps&&Ae===e.memoizedState||(n.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&Ae===e.memoizedState||(n.flags|=1024),b=!1)}if(_=b,wf(e,n),O=(n.flags&128)!==0,_||O){if(_=n.stateNode,vr(n),O&&typeof l.getDerivedStateFromError!="function")l=null,Jl=-1;else{if(oe(n),l=qw(_),n.mode&qu){rt(!0);try{qw(_)}finally{rt(!1)}}Qe()}n.flags|=1,e!==null&&O?(n.child=Gy(n,e.child,null,v),n.child=Gy(n,null,l,v)):Wa(e,n,l,v),n.memoizedState=_.state,e=n.child}else e=Bu(e,n,v);return v=n.stateNode,b&&v.props!==d&&(Qy||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",J(n)||"a component"),Qy=!0),e}function Op(e,n,l,d){return Cu(),n.flags|=256,Wa(e,n,l,d),n.child}function Xd(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
291
|
-
%s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=X(n)||"Unknown",yx[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),yx[e]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=X(n)||"Unknown",vx[n]||(console.error("%s: Function components do not support contextType.",n),vx[n]=!0))}function Af(e){return{baseLanes:e,cachePool:ac()}}function dc(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Lo),e}function iy(e,n,l){var d,v=n.pendingProps;h(n)&&(n.flags|=128);var b=!1,O=(n.flags&128)!==0;if((d=O)||(d=e!==null&&e.memoizedState===null?!1:(wi.current&W0)!==0),d&&(b=!0,n.flags&=-129),d=(n.flags&32)!==0,n.flags&=-33,e===null){if(aa){if(b?Fi(n):nu(n),aa){var _=Cr,Y;if(!(Y=!_)){e:{var Q=_;for(Y=ud;Q.nodeType!==8;){if(!Y){Y=null;break e}if(Q=_r(Q.nextSibling),Q===null){Y=null;break e}}Y=Q}Y!==null?(Du(),n.memoizedState={dehydrated:Y,treeContext:pg!==null?{id:Bh,overflow:_h}:null,retryLane:536870912,hydrationErrors:null},Q=N(18,null,null,$a),Q.stateNode=Y,Q.return=n,n.child=Q,hl=n,Cr=null,Y=!0):Y=!1,Y=!Y}Y&&(iv(n,_),wl(n))}if(_=n.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Pl(_)?n.lanes=32:n.lanes=536870912,null;Qr(n)}return _=v.children,v=v.fallback,b?(nu(n),b=n.mode,_=Of({mode:"hidden",children:_},b),v=El(v,b,l,null),_.return=n,v.return=n,_.sibling=v,n.child=_,b=n.child,b.memoizedState=Af(l),b.childLanes=dc(e,d,l),n.memoizedState=FD,v):(Fi(n),Id(n,_))}var Te=e.memoizedState;if(Te!==null&&(_=Te.dehydrated,_!==null)){if(O)n.flags&256?(Fi(n),n.flags&=-257,n=Tp(e,n,l)):n.memoizedState!==null?(nu(n),n.child=e.child,n.flags|=128,n=null):(nu(n),b=v.fallback,_=n.mode,v=Of({mode:"visible",children:v.children},_),b=El(b,_,l,null),b.flags|=2,v.return=n,b.return=n,v.sibling=b,n.child=v,Gy(n,e.child,null,l),v=n.child,v.memoizedState=Af(l),v.childLanes=dc(e,d,l),n.memoizedState=FD,n=b);else if(Fi(n),aa&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Pl(_)){if(d=_.nextSibling&&_.nextSibling.dataset,d){Y=d.dgst;var Ue=d.msg;Q=d.stck;var Ae=d.cstck}_=Ue,d=Y,v=Q,Y=b=Ae,b=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),b.stack=v||"",b.digest=d,d=Y===void 0?null:Y,v={value:b,source:null,stack:d},typeof d=="string"&&pD.set(b,v),sf(v),n=Tp(e,n,l)}else if(Qi||Or(e,n,l,!1),d=(l&e.childLanes)!==0,Qi||d){if(d=Fa,d!==null&&(v=l&-l,v=(v&42)!==0?1:Xt(v),v=(v&(d.suspendedLanes|l))!==0?0:v,v!==0&&v!==Te.retryLane))throw Te.retryLane=v,qr(e,v),Ua(d,e,v),px;_.data===Uh||Ll(),n=Tp(e,n,l)}else _.data===Uh?(n.flags|=192,n.child=e.child,n=null):(e=Te.treeContext,Cr=_r(_.nextSibling),hl=n,aa=!0,mg=null,Fh=!1,Rs=null,ud=!1,e!==null&&(Du(),ks[Ns++]=Bh,ks[Ns++]=_h,ks[Ns++]=pg,Bh=e.id,_h=e.overflow,pg=n),n=Id(n,v.children),n.flags|=4096);return n}return b?(nu(n),b=v.fallback,_=n.mode,Y=e.child,Q=Y.sibling,v=Su(Y,{mode:"hidden",children:v.children}),v.subtreeFlags=Y.subtreeFlags&65011712,Q!==null?b=Su(Q,b):(b=El(b,_,l,null),b.flags|=2),b.return=n,v.return=n,v.sibling=b,n.child=v,v=b,b=n.child,_=e.child.memoizedState,_===null?_=Af(l):(Y=_.cachePool,Y!==null?(Q=Ei._currentValue,Y=Y.parent!==Q?{parent:Q,pool:Q}:Y):Y=ac(),_={baseLanes:_.baseLanes|l,cachePool:Y}),b.memoizedState=_,b.childLanes=dc(e,d,l),n.memoizedState=FD,v):(Fi(n),l=e.child,e=l.sibling,l=Su(l,{mode:"visible",children:v.children}),l.return=n,l.sibling=null,e!==null&&(d=n.deletions,d===null?(n.deletions=[e],n.flags|=16):d.push(e)),n.child=l,n.memoizedState=null,l)}function Id(e,n){return n=Of({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Of(e,n){return e=N(22,e,null,n),e.lanes=0,e.stateNode={_visibility:e1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Tp(e,n,l){return Gy(n,e.child,null,l),e=Id(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Zd(e,n,l){e.lanes|=n;var d=e.alternate;d!==null&&(d.lanes|=n),sv(e.return,n,l)}function Sv(e,n){var l=en(e);return e=!l&&typeof W(e)=="function",l||e?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,n,l),!1):!0}function Tf(e,n,l,d,v){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:v}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=l,b.tailMode=v)}function kp(e,n,l){var d=n.pendingProps,v=d.revealOrder,b=d.tail;if(d=d.children,v!==void 0&&v!=="forwards"&&v!=="backwards"&&v!=="together"&&!bx[v])if(bx[v]=!0,typeof v=="string")switch(v.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',v,v.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',v,v.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v);b===void 0||_D[b]||(b!=="collapsed"&&b!=="hidden"?(_D[b]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',b)):v!=="forwards"&&v!=="backwards"&&(_D[b]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',b)));e:if((v==="forwards"||v==="backwards")&&d!==void 0&&d!==null&&d!==!1)if(en(d)){for(var O=0;O<d.length;O++)if(!Sv(d[O],O))break e}else if(O=W(d),typeof O=="function"){if(O=O.call(d))for(var _=O.next(),Y=0;!_.done;_=O.next()){if(!Sv(_.value,Y))break e;Y++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',v);if(Wa(e,n,d,l),d=wi.current,(d&W0)!==0)d=d&Yy|W0,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zd(e,l,n);else if(e.tag===19)Zd(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=Yy}switch(ye(wi,d,n),v){case"forwards":for(l=n.child,v=null;l!==null;)e=l.alternate,e!==null&&hi(e)===null&&(v=l),l=l.sibling;l=v,l===null?(v=n.child,n.child=null):(v=l.sibling,l.sibling=null),Tf(n,!1,v,l,b);break;case"backwards":for(l=null,v=n.child,n.child=null;v!==null;){if(e=v.alternate,e!==null&&hi(e)===null){n.child=v;break}e=v.sibling,v.sibling=l,l=v,v=e}Tf(n,!0,l,null,b);break;case"together":Tf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Bu(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Jl=-1,Rm|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(Or(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,l=Su(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Su(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Np(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ji(e)))}function Dv(e,n,l){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),oi(n,Ei,e.memoizedState.cache),Cu();break;case 27:case 5:ue(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:oi(n,n.type,n.memoizedProps.value);break;case 12:(l&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var d=n.stateNode;d.effectDuration=-0,d.passiveEffectDuration=-0;break;case 13:if(d=n.memoizedState,d!==null)return d.dehydrated!==null?(Fi(n),n.flags|=128,null):(l&n.child.childLanes)!==0?iy(e,n,l):(Fi(n),e=Bu(e,n,l),e!==null?e.sibling:null);Fi(n);break;case 19:var v=(e.flags&128)!==0;if(d=(l&n.childLanes)!==0,d||(Or(e,n,l,!1),d=(l&n.childLanes)!==0),v){if(d)return kp(e,n,l);n.flags|=128}if(v=n.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ye(wi,wi.current,n),d)break;return null;case 22:case 23:return n.lanes=0,xp(e,n,l);case 24:oi(n,Ei,e.memoizedState.cache)}return Bu(e,n,l)}function on(e,n,l){if(n._debugNeedsRemount&&e!==null){l=Td(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),l._debugStack=n._debugStack,l._debugTask=n._debugTask;var d=n.return;if(d===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,l.index=n.index,l.sibling=n.sibling,l.return=n.return,l.ref=n.ref,l._debugInfo=n._debugInfo,n===d.child)d.child=l;else{var v=d.child;if(v===null)throw Error("Expected parent to have a child.");for(;v.sibling!==n;)if(v=v.sibling,v===null)throw Error("Expected to find the previous sibling.");v.sibling=l}return n=d.deletions,n===null?(d.deletions=[e],d.flags|=16):n.push(e),l.flags|=2,l}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)Qi=!0;else{if(!Np(e,l)&&(n.flags&128)===0)return Qi=!1,Dv(e,n,l);Qi=(e.flags&131072)!==0}else Qi=!1,(d=aa)&&(Du(),d=(n.flags&1048576)!==0),d&&(d=n.index,Du(),Oi(n,n1,d));switch(n.lanes=0,n.tag){case 16:e:if(d=n.pendingProps,e=km(n.elementType),n.type=e,typeof e=="function")lp(e)?(d=us(e,d),n.tag=1,n.type=e=Js(e),n=Qd(null,n,e,d,l)):(n.tag=0,Xd(n,e),n.type=e=Js(e),n=xf(null,n,e,d,l));else{if(e!=null){if(v=e.$$typeof,v===Ht){n.tag=11,n.type=e=up(e),n=Cf(null,n,e,d,l);break e}else if(v===wa){n.tag=14,n=tl(null,n,e,d,l);break e}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===uu&&(n=" Did you wrap a component in React.lazy() more than once?"),e=X(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return xf(e,n,n.type,n.pendingProps,l);case 1:return d=n.type,v=us(d,n.pendingProps),Qd(e,n,d,v,l);case 3:e:{if(Ee(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");d=n.pendingProps;var b=n.memoizedState;v=b.element,es(e,n),fo(n,d,null,l);var O=n.memoizedState;if(d=O.cache,oi(n,Ei,d),d!==b.cache&&cv(n,[Ei],l,!0),Zu(),d=O.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=b,n.memoizedState=b,n.flags&256){n=Op(e,n,d,l);break e}else if(d!==v){v=Mn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),sf(v),n=Op(e,n,d,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Cr=_r(e.firstChild),hl=n,aa=!0,mg=null,Fh=!1,Rs=null,ud=!0,e=nx(n,null,d,l),n.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Cu(),d===v){n=Bu(e,n,l);break e}Wa(e,n,d,l)}n=n.child}return n;case 26:return wf(e,n),e===null?(e=ko(n.type,null,n.pendingProps,null))?n.memoizedState=e:aa||(e=n.type,l=n.pendingProps,d=be(ol.current),d=Nn(d).createElement(e),d[Jr]=n,d[Yi]=l,Ha(d,e,l),Wt(d),n.stateNode=d):n.memoizedState=ko(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ue(n),e===null&&aa&&(d=be(ol.current),v=K(),d=n.stateNode=$v(n.type,n.pendingProps,d,v,!1),Fh||(v=ha(d,n.type,n.pendingProps,v),v!==null&&(Eu(n,0).serverProps=v)),hl=n,ud=!0,v=Cr,Yl(n.type)?(aE=v,Cr=_r(d.firstChild)):Cr=v),Wa(e,n,n.pendingProps.children,l),wf(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&aa&&(b=K(),d=Cd(n.type,b.ancestorInfo),v=Cr,(O=!v)||(O=ys(v,n.type,n.pendingProps,ud),O!==null?(n.stateNode=O,Fh||(b=ha(O,n.type,n.pendingProps,b),b!==null&&(Eu(n,0).serverProps=b)),hl=n,Cr=_r(O.firstChild),ud=!1,b=!0):b=!1,O=!b),O&&(d&&iv(n,v),wl(n))),ue(n),v=n.type,b=n.pendingProps,O=e!==null?e.memoizedProps:null,d=b.children,Gl(v,b)?d=null:O!==null&&Gl(v,O)&&(n.flags|=32),n.memoizedState!==null&&(v=Ol(e,n,Ou,null,null,l),hb._currentValue=v),wf(e,n),Wa(e,n,d,l),n.child;case 6:return e===null&&aa&&(e=n.pendingProps,l=K(),d=l.ancestorInfo.current,e=d!=null?Kc(e,d.tag,l.ancestorInfo.implicitRootScope):!0,l=Cr,(d=!l)||(d=Br(l,n.pendingProps,ud),d!==null?(n.stateNode=d,hl=n,Cr=null,d=!0):d=!1,d=!d),d&&(e&&iv(n,l),wl(n))),null;case 13:return iy(e,n,l);case 4:return Ee(n,n.stateNode.containerInfo),d=n.pendingProps,e===null?n.child=Gy(n,null,d,l):Wa(e,n,d,l),n.child;case 11:return Cf(e,n,n.type,n.pendingProps,l);case 7:return Wa(e,n,n.pendingProps,l),n.child;case 8:return Wa(e,n,n.pendingProps.children,l),n.child;case 12:return n.flags|=4,n.flags|=2048,d=n.stateNode,d.effectDuration=-0,d.passiveEffectDuration=-0,Wa(e,n,n.pendingProps.children,l),n.child;case 10:return d=n.type,v=n.pendingProps,b=v.value,"value"in v||Sx||(Sx=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),oi(n,d,b),Wa(e,n,v.children,l),n.child;case 9:return v=n.type._context,d=n.pendingProps.children,typeof d!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),gr(n),v=ga(v),oe(n),d=OD(d,v,void 0),Qe(),n.flags|=1,Wa(e,n,d,l),n.child;case 14:return tl(e,n,n.type,n.pendingProps,l);case 15:return Pd(e,n,n.type,n.pendingProps,l);case 19:return kp(e,n,l);case 31:return d=n.pendingProps,l=n.mode,d={mode:d.mode,children:d.children},e===null?(e=Of(d,l),e.ref=n.ref,n.child=e,e.return=n,n=e):(e=Su(e.child,d),e.ref=n.ref,n.child=e,e.return=n,n=e),n;case 22:return xp(e,n,l);case 24:return gr(n),d=ga(Ei),e===null?(v=cf(),v===null&&(v=Fa,b=_d(),v.pooledCache=b,nc(b),b!==null&&(v.pooledCacheLanes|=l),v=b),n.memoizedState={parent:d,cache:v},Ti(n),oi(n,Ei,v)):((e.lanes&l)!==0&&(es(e,n),fo(n,null,null,l),Zu()),v=e.memoizedState,b=n.memoizedState,v.parent!==d?(v={parent:d,cache:d},n.memoizedState=v,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=v),oi(n,Ei,d)):(d=b.cache,oi(n,Ei,d),d!==v.cache&&cv(n,[Ei],l,!0))),Wa(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Mi(e){e.flags|=4}function Kd(e,n){if(n.type!=="stylesheet"||(n.state.loading&zs)!==Ng)e.flags&=-16777217;else if(e.flags|=16777216,!fh(n)){if(n=Ms.current,n!==null&&((Pn&4194048)===Pn?od!==null:(Pn&62914560)!==Pn&&(Pn&536870912)===0||n!==od))throw X0=SD,Nw;e.flags|=8192}}function yo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Yt():536870912,e.lanes|=n,wg|=n)}function bo(e,n){if(!aa)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:d.sibling=null}}function sa(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,d=0;if(n)if((e.mode&su)!==$a){for(var v=e.selfBaseDuration,b=e.child;b!==null;)l|=b.lanes|b.childLanes,d|=b.subtreeFlags&65011712,d|=b.flags&65011712,v+=b.treeBaseDuration,b=b.sibling;e.treeBaseDuration=v}else for(v=e.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=e,v=v.sibling;else if((e.mode&su)!==$a){v=e.actualDuration,b=e.selfBaseDuration;for(var O=e.child;O!==null;)l|=O.lanes|O.childLanes,d|=O.subtreeFlags,d|=O.flags,v+=O.actualDuration,b+=O.treeBaseDuration,O=O.sibling;e.actualDuration=v,e.treeBaseDuration=b}else for(v=e.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=e,v=v.sibling;return e.subtreeFlags|=d,e.childLanes=l,n}function uy(e,n,l){var d=n.pendingProps;switch(Jo(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sa(n),null;case 1:return sa(n),null;case 3:return l=n.stateNode,d=null,e!==null&&(d=e.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),wu(Ei,n),ze(n),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(tc(n)?(Nd(),Mi(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ov())),sa(n),null;case 26:return l=n.memoizedState,e===null?(Mi(n),l!==null?(sa(n),Kd(n,l)):(sa(n),n.flags&=-16777217)):l?l!==e.memoizedState?(Mi(n),sa(n),Kd(n,l)):(sa(n),n.flags&=-16777217):(e.memoizedProps!==d&&Mi(n),sa(n),n.flags&=-16777217),null;case 27:pe(n),l=be(ol.current);var v=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==d&&Mi(n);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return sa(n),null}e=K(),tc(n)?uv(n):(e=$v(v,d,l,e,!0),n.stateNode=e,Mi(n))}return sa(n),null;case 5:if(pe(n),l=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==d&&Mi(n);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return sa(n),null}if(v=K(),tc(n))uv(n);else{switch(e=be(ol.current),Cd(l,v.ancestorInfo),v=v.context,e=Nn(e),v){case n0:e=e.createElementNS(id,l);break;case k1:e=e.createElementNS(kh,l);break;default:switch(l){case"svg":e=e.createElementNS(id,l);break;case"math":e=e.createElementNS(kh,l);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof d.is=="string"?e.createElement("select",{is:d.is}):e.createElement("select"),d.multiple?e.multiple=!0:d.size&&(e.size=d.size);break;default:e=typeof d.is=="string"?e.createElement(l,{is:d.is}):e.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||Ro.call(Ux,l)||(Ux[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}e[Jr]=n,e[Yi]=d;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)e.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=e;e:switch(Ha(e,l,d),l){case"button":case"input":case"select":case"textarea":e=!!d.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Mi(n)}}return sa(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==d&&Mi(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=be(ol.current),l=K(),tc(n)){e=n.stateNode,l=n.memoizedProps,v=!Fh,d=null;var b=hl;if(b!==null)switch(b.tag){case 3:v&&(v=nm(e,l,d),v!==null&&(Eu(n,0).serverProps=v));break;case 27:case 5:d=b.memoizedProps,v&&(v=nm(e,l,d),v!==null&&(Eu(n,0).serverProps=v))}e[Jr]=n,e=!!(e.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||_v(e.nodeValue,l)),e||wl(n)}else v=l.ancestorInfo.current,v!=null&&Kc(d,v.tag,l.ancestorInfo.implicitRootScope),e=Nn(e).createTextNode(d),e[Jr]=n,n.stateNode=e}return sa(n),null;case 13:if(d=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(v=tc(n),d!==null&&d.dehydrated!==null){if(e===null){if(!v)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(v=n.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v[Jr]=n,sa(n),(n.mode&su)!==$a&&d!==null&&(v=n.child,v!==null&&(n.treeBaseDuration-=v.treeBaseDuration))}else Nd(),Cu(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4,sa(n),(n.mode&su)!==$a&&d!==null&&(v=n.child,v!==null&&(n.treeBaseDuration-=v.treeBaseDuration));v=!1}else v=ov(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=v),v=!0;if(!v)return n.flags&256?(Qr(n),n):(Qr(n),null)}return Qr(n),(n.flags&128)!==0?(n.lanes=l,(n.mode&su)!==$a&&zn(n),n):(l=d!==null,e=e!==null&&e.memoizedState!==null,l&&(d=n.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==v&&(d.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),yo(n,n.updateQueue),sa(n),(n.mode&su)!==$a&&l&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ze(n),e===null&&Rv(n.stateNode.containerInfo),sa(n),null;case 10:return wu(n.type,n),sa(n),null;case 19:if(ke(wi,n),v=n.memoizedState,v===null)return sa(n),null;if(d=(n.flags&128)!==0,b=v.rendering,b===null)if(d)bo(v,!1);else{if(wr!==Lh||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(b=hi(e),b!==null){for(n.flags|=128,bo(v,!1),e=b.updateQueue,n.updateQueue=e,yo(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Od(l,e),l=l.sibling;return ye(wi,wi.current&Yy|W0,n),n.child}e=e.sibling}v.tail!==null&&sl()>g1&&(n.flags|=128,d=!0,bo(v,!1),n.lanes=4194304)}else{if(!d)if(e=hi(b),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,yo(n,e),bo(v,!0),v.tail===null&&v.tailMode==="hidden"&&!b.alternate&&!aa)return sa(n),null}else 2*sl()-v.renderingStartTime>g1&&l!==536870912&&(n.flags|=128,d=!0,bo(v,!1),n.lanes=4194304);v.isBackwards?(b.sibling=n.child,n.child=b):(e=v.last,e!==null?e.sibling=b:n.child=b,v.last=b)}return v.tail!==null?(e=v.tail,v.rendering=e,v.tail=e.sibling,v.renderingStartTime=sl(),e.sibling=null,l=wi.current,l=d?l&Yy|W0:l&Yy,ye(wi,l,n),e):(sa(n),null);case 22:case 23:return Qr(n),Tr(n),d=n.memoizedState!==null,e!==null?e.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(l&536870912)!==0&&(n.flags&128)===0&&(sa(n),n.subtreeFlags&6&&(n.flags|=8192)):sa(n),l=n.updateQueue,l!==null&&yo(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==l&&(n.flags|=2048),e!==null&&ke(yg,n),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),wu(Ei,n),sa(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function au(e,n){switch(Jo(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&su)!==$a&&zn(n),n):null;case 3:return wu(Ei,n),ze(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return pe(n),null;case 13:if(Qr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Cu()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&su)!==$a&&zn(n),n):null;case 19:return ke(wi,n),null;case 4:return ze(n),null;case 10:return wu(n.type,n),null;case 22:case 23:return Qr(n),Tr(n),e!==null&&ke(yg,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&su)!==$a&&zn(n),n):null;case 24:return wu(Ei,n),null;case 25:return null;default:return null}}function Ev(e,n){switch(Jo(n),n.tag){case 3:wu(Ei,n),ze(n);break;case 26:case 27:case 5:pe(n);break;case 4:ze(n);break;case 13:Qr(n);break;case 19:ke(wi,n);break;case 10:wu(n.type,n);break;case 22:case 23:Qr(n),Tr(n),e!==null&&ke(yg,n);break;case 24:wu(Ei,n)}}function zi(e){return(e.mode&su)!==$a}function Wd(e,n){zi(e)?(la(),ls(n,e),rn()):ls(n,e)}function Jd(e,n,l){zi(e)?(la(),lr(l,e,n),rn()):lr(l,e,n)}function ls(e,n){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var v=d.next;l=v;do{if((l.tag&e)===e&&((e&Ci)!==Bs?pt!==null&&typeof pt.markComponentPassiveEffectMountStarted=="function"&&pt.markComponentPassiveEffectMountStarted(n):(e&cu)!==Bs&&pt!==null&&typeof pt.markComponentLayoutEffectMountStarted=="function"&&pt.markComponentLayoutEffectMountStarted(n),d=void 0,(e&pl)!==Bs&&(e0=!0),d=ot(n,GN,l),(e&pl)!==Bs&&(e0=!1),(e&Ci)!==Bs?pt!==null&&typeof pt.markComponentPassiveEffectMountStopped=="function"&&pt.markComponentPassiveEffectMountStopped():(e&cu)!==Bs&&pt!==null&&typeof pt.markComponentLayoutEffectMountStopped=="function"&&pt.markComponentLayoutEffectMountStopped(),d!==void 0&&typeof d!="function")){var b=void 0;b=(l.tag&cu)!==0?"useLayoutEffect":(l.tag&pl)!==0?"useInsertionEffect":"useEffect";var O=void 0;O=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
|
|
292
|
-
|
|
293
|
-
It looks like you wrote `+b+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
294
|
-
|
|
295
|
-
`+b+`(() => {
|
|
296
|
-
async function fetchData() {
|
|
297
|
-
// You can await here
|
|
298
|
-
const response = await MyAPI.getData(someId);
|
|
299
|
-
// ...
|
|
300
|
-
}
|
|
301
|
-
fetchData();
|
|
302
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
303
|
-
|
|
304
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,ot(n,function(_,Y){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,Y)},b,O)}l=l.next}while(l!==v)}}catch(_){Bt(n,n.return,_)}}function lr(e,n,l){try{var d=n.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var b=v.next;d=b;do{if((d.tag&e)===e){var O=d.inst,_=O.destroy;_!==void 0&&(O.destroy=void 0,(e&Ci)!==Bs?pt!==null&&typeof pt.markComponentPassiveEffectUnmountStarted=="function"&&pt.markComponentPassiveEffectUnmountStarted(n):(e&cu)!==Bs&&pt!==null&&typeof pt.markComponentLayoutEffectUnmountStarted=="function"&&pt.markComponentLayoutEffectUnmountStarted(n),(e&pl)!==Bs&&(e0=!0),v=n,ot(v,YN,v,l,_),(e&pl)!==Bs&&(e0=!1),(e&Ci)!==Bs?pt!==null&&typeof pt.markComponentPassiveEffectUnmountStopped=="function"&&pt.markComponentPassiveEffectUnmountStopped():(e&cu)!==Bs&&pt!==null&&typeof pt.markComponentLayoutEffectUnmountStopped=="function"&&pt.markComponentLayoutEffectUnmountStopped())}d=d.next}while(d!==b)}}catch(Y){Bt(n,n.return,Y)}}function _l(e,n){zi(e)?(la(),ls(n,e),rn()):ls(n,e)}function hc(e,n,l){zi(e)?(la(),lr(l,e,n),rn()):lr(l,e,n)}function Rp(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Qy||(l.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),l.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{ot(e,Fd,n,l)}catch(d){Bt(e,e.return,d)}}}function eh(e,n,l){return e.getSnapshotBeforeUpdate(n,l)}function ly(e,n){var l=n.memoizedProps,d=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qy||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{var v=us(e.type,l,e.elementType===e.type),b=ot(e,eh,n,v,d);l=Dx,b!==void 0||l.has(e.type)||(l.add(e.type),ot(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",J(e))})),n.__reactInternalSnapshotBeforeUpdate=b}catch(O){Bt(e,e.return,O)}}function kf(e,n,l){l.props=us(e.type,e.memoizedProps),l.state=e.memoizedState,zi(e)?(la(),ot(e,Xw,e,n,l),rn()):ot(e,Xw,e,n,l)}function Cv(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}if(typeof n=="function")if(zi(e))try{la(),e.refCleanup=n(l)}finally{rn()}else e.refCleanup=n(l);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",J(e)),n.current=l}}function os(e,n){try{ot(e,Cv,e)}catch(l){Bt(e,n,l)}}function ji(e,n){var l=e.ref,d=e.refCleanup;if(l!==null)if(typeof d=="function")try{if(zi(e))try{la(),ot(e,d)}finally{rn(e)}else ot(e,d)}catch(v){Bt(e,n,v)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{if(zi(e))try{la(),ot(e,l,null)}finally{rn(e)}else ot(e,l,null)}catch(v){Bt(e,n,v)}else l.current=null}function Fl(e,n,l,d){var v=e.memoizedProps,b=v.id,O=v.onCommit;v=v.onRender,n=n===null?"mount":"update",i1&&(n="nested-update"),typeof v=="function"&&v(b,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,l),typeof O=="function"&&O(e.memoizedProps.id,n,d,l)}function oy(e,n,l,d){var v=e.memoizedProps;e=v.id,v=v.onPostCommit,n=n===null?"mount":"update",i1&&(n="nested-update"),typeof v=="function"&&v(e,n,d,l)}function So(e){var n=e.type,l=e.memoizedProps,d=e.stateNode;try{ot(e,Oo,d,n,l,e)}catch(v){Bt(e,e.return,v)}}function Bp(e,n,l){try{ot(e,Va,e.stateNode,e.type,l,n,e)}catch(d){Bt(e,e.return,d)}}function _p(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yl(e.type)||e.tag===4}function Do(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(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.tag===27&&Yl(e.type)||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 th(e,n,l){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Ao));else if(d!==4&&(d===27&&Yl(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(th(e,n,l),e=e.sibling;e!==null;)th(e,n,l),e=e.sibling}function pc(e,n,l){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(d!==4&&(d===27&&Yl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(pc(e,n,l),e=e.sibling;e!==null;)pc(e,n,l),e=e.sibling}function sy(e){for(var n,l=e.return;l!==null;){if(_p(l)){n=l;break}l=l.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,l=Do(e),pc(e,l,n);break;case 5:l=n.stateNode,n.flags&32&&(To(l),n.flags&=-33),n=Do(e),pc(e,n,l);break;case 3:case 4:n=n.stateNode.containerInfo,l=Do(e),th(e,l,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Fp(e){var n=e.stateNode,l=e.memoizedProps;try{ot(e,iu,e.type,l,n,e)}catch(d){Bt(e,e.return,d)}}function nh(e,n){if(e=e.containerInfo,eE=_1,e=Ki(e),tv(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var v=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var O=0,_=-1,Y=-1,Q=0,Te=0,Ue=e,Ae=null;t:for(;;){for(var $e;Ue!==l||v!==0&&Ue.nodeType!==3||(_=O+v),Ue!==b||d!==0&&Ue.nodeType!==3||(Y=O+d),Ue.nodeType===3&&(O+=Ue.nodeValue.length),($e=Ue.firstChild)!==null;)Ae=Ue,Ue=$e;for(;;){if(Ue===e)break t;if(Ae===l&&++Q===v&&(_=O),Ae===b&&++Te===d&&(Y=O),($e=Ue.nextSibling)!==null)break;Ue=Ae,Ae=Ue.parentNode}Ue=$e}l=_===-1||Y===-1?null:{start:_,end:Y}}else l=null}l=l||{start:0,end:0}}else l=null;for(tE={focusedElem:e,selectionRange:l},_1=!1,Xi=n;Xi!==null;)if(n=Xi,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,Xi=e;else for(;Xi!==null;){switch(e=n=Xi,l=e.alternate,v=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(v&1024)!==0&&l!==null&&ly(e,l);break;case 3:if((v&1024)!==0){if(e=e.stateNode.containerInfo,l=e.nodeType,l===9)Cc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((v&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,Xi=e;break}Xi=n.return}}function wv(e,n,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:zl(e,l),d&4&&Wd(l,cu|_s);break;case 1:if(zl(e,l),d&4)if(e=l.stateNode,n===null)l.type.defaultProps||"ref"in l.memoizedProps||Qy||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(l)||"instance")),zi(l)?(la(),ot(l,TD,l,e),rn()):ot(l,TD,l,e);else{var v=us(l.type,n.memoizedProps);n=n.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Qy||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(l)||"instance")),zi(l)?(la(),ot(l,Yw,l,e,v,n,e.__reactInternalSnapshotBeforeUpdate),rn()):ot(l,Yw,l,e,v,n,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Rp(l),d&512&&os(l,l.return);break;case 3:if(n=$r(),zl(e,l),d&64&&(d=l.updateQueue,d!==null)){if(v=null,l.child!==null)switch(l.child.tag){case 27:case 5:v=l.child.stateNode;break;case 1:v=l.child.stateNode}try{ot(l,Fd,d,v)}catch(O){Bt(l,l.return,O)}}e.effectDuration+=de(n);break;case 27:n===null&&d&4&&Fp(l);case 26:case 5:zl(e,l),n===null&&d&4&&So(l),d&512&&os(l,l.return);break;case 12:if(d&4){d=$r(),zl(e,l),e=l.stateNode,e.effectDuration+=qe(d);try{ot(l,Fl,l,n,r1,e.effectDuration)}catch(O){Bt(l,l.return,O)}}else zl(e,l);break;case 13:zl(e,l),d&4&&pi(e,l),d&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=oh.bind(null,l),qf(e,l))));break;case 22:if(d=l.memoizedState!==null||jh,!d){n=n!==null&&n.memoizedState!==null||jr,v=jh;var b=jr;jh=d,(jr=n)&&!b?jl(e,l,(l.subtreeFlags&8772)!==0):zl(e,l),jh=v,jr=b}break;case 30:break;default:zl(e,l)}}function Mp(e){var n=e.alternate;n!==null&&(e.alternate=null,Mp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&xe(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ml(e,n,l){for(l=l.child;l!==null;)Ja(e,n,l),l=l.sibling}function Ja(e,n,l){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(Cs,l)}catch(b){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %s",b))}switch(l.tag){case 26:jr||ji(l,n),Ml(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:jr||ji(l,n);var d=ti,v=eo;Yl(l.type)&&(ti=l.stateNode,eo=!1),Ml(e,n,l),ot(l,$f,l.stateNode),ti=d,eo=v;break;case 5:jr||ji(l,n);case 6:if(d=ti,v=eo,ti=null,Ml(e,n,l),ti=d,eo=v,ti!==null)if(eo)try{ot(l,Uf,ti,l.stateNode)}catch(b){Bt(l,n,b)}else try{ot(l,ju,ti,l.stateNode)}catch(b){Bt(l,n,b)}break;case 18:ti!==null&&(eo?(e=ti,Hf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ds(e)):Hf(ti,l.stateNode));break;case 4:d=ti,v=eo,ti=l.stateNode.containerInfo,eo=!0,Ml(e,n,l),ti=d,eo=v;break;case 0:case 11:case 14:case 15:jr||lr(pl,l,n),jr||Jd(l,n,cu),Ml(e,n,l);break;case 1:jr||(ji(l,n),d=l.stateNode,typeof d.componentWillUnmount=="function"&&kf(l,n,d)),Ml(e,n,l);break;case 21:Ml(e,n,l);break;case 22:jr=(d=jr)||l.memoizedState!==null,Ml(e,n,l),jr=d;break;default:Ml(e,n,l)}}function pi(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ot(n,Kr,e)}catch(l){Bt(n,n.return,l)}}function zp(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ex),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ex),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function mc(e,n){var l=zp(e);n.forEach(function(d){var v=ps.bind(null,e,d);if(!l.has(d)){if(l.add(d),_a)if(Xy!==null&&Iy!==null)ms(Iy,Xy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");d.then(v,v)}})}function or(e,n){var l=n.deletions;if(l!==null)for(var d=0;d<l.length;d++){var v=e,b=n,O=l[d],_=b;e:for(;_!==null;){switch(_.tag){case 27:if(Yl(_.type)){ti=_.stateNode,eo=!1;break e}break;case 5:ti=_.stateNode,eo=!1;break e;case 3:case 4:ti=_.stateNode.containerInfo,eo=!0;break e}_=_.return}if(ti===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ja(v,b,O),ti=null,eo=!1,v=O,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)ss(n,e),n=n.sibling}function ss(e,n){var l=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:or(n,e),mi(e),d&4&&(lr(pl|_s,e,e.return),ls(pl|_s,e),Jd(e,e.return,cu|_s));break;case 1:or(n,e),mi(e),d&512&&(jr||l===null||ji(l,l.return)),d&64&&jh&&(e=e.updateQueue,e!==null&&(d=e.callbacks,d!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var v=Vc;if(or(n,e),mi(e),d&512&&(jr||l===null||ji(l,l.return)),d&4)if(n=l!==null?l.memoizedState:null,d=e.memoizedState,l===null)if(d===null)if(e.stateNode===null){e:{d=e.type,l=e.memoizedProps,n=v.ownerDocument||v;t:switch(d){case"title":v=n.getElementsByTagName("title")[0],(!v||v[td]||v[Jr]||v.namespaceURI===id||v.hasAttribute("itemprop"))&&(v=n.createElement(d),n.head.insertBefore(v,n.querySelector("head > title"))),Ha(v,d,l),v[Jr]=e,Wt(v),d=v;break e;case"link":var b=um("link","href",n).get(d+(l.href||""));if(b){for(var O=0;O<b.length;O++)if(v=b[O],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(O,1);break t}}v=n.createElement(d),Ha(v,d,l),n.head.appendChild(v);break;case"meta":if(b=um("meta","content",n).get(d+(l.content||""))){for(O=0;O<b.length;O++)if(v=b[O],Le(l.content,"content"),v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(O,1);break t}}v=n.createElement(d),Ha(v,d,l),n.head.appendChild(v);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}v[Jr]=e,Wt(v),d=v}e.stateNode=d}else Pv(v,e.type,e.stateNode);else e.stateNode=am(v,d,e.memoizedProps);else n!==d?(n===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):n.count--,d===null?Pv(v,e.type,e.stateNode):am(v,d,e.memoizedProps)):d===null&&e.stateNode!==null&&Bp(e,e.memoizedProps,l.memoizedProps);break;case 27:or(n,e),mi(e),d&512&&(jr||l===null||ji(l,l.return)),l!==null&&d&4&&Bp(e,e.memoizedProps,l.memoizedProps);break;case 5:if(or(n,e),mi(e),d&512&&(jr||l===null||ji(l,l.return)),e.flags&32){n=e.stateNode;try{ot(e,To,n)}catch(Te){Bt(e,e.return,Te)}}d&4&&e.stateNode!=null&&(n=e.memoizedProps,Bp(e,n,l!==null?l.memoizedProps:n)),d&1024&&(MD=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(or(n,e),mi(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,l=l!==null?l.memoizedProps:d,n=e.stateNode;try{ot(e,Ec,n,l,d)}catch(Te){Bt(e,e.return,Te)}}break;case 3:if(v=$r(),N1=null,b=Vc,Vc=ch(n.containerInfo),or(n,e),Vc=b,mi(e),d&4&&l!==null&&l.memoizedState.isDehydrated)try{ot(e,qv,n.containerInfo)}catch(Te){Bt(e,e.return,Te)}MD&&(MD=!1,cs(e)),n.effectDuration+=de(v);break;case 4:d=Vc,Vc=ch(e.stateNode.containerInfo),or(n,e),mi(e),Vc=d;break;case 12:d=$r(),or(n,e),mi(e),e.stateNode.effectDuration+=qe(d);break;case 13:or(n,e),mi(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(VD=sl()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,mc(e,d)));break;case 22:v=e.memoizedState!==null;var _=l!==null&&l.memoizedState!==null,Y=jh,Q=jr;if(jh=Y||v,jr=Q||_,or(n,e),jr=Q,jh=Y,mi(e),d&8192)e:for(n=e.stateNode,n._visibility=v?n._visibility&~e1:n._visibility|e1,v&&(l===null||_||jh||jr||Xa(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){_=l=n;try{b=_.stateNode,v?ot(_,qi,b):ot(_,Hv,_.stateNode,_.memoizedProps)}catch(Te){Bt(_,_.return,Te)}}}else if(n.tag===6){if(l===null){_=n;try{O=_.stateNode,v?ot(_,Uv,O):ot(_,Vf,O,_.memoizedProps)}catch(Te){Bt(_,_.return,Te)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}d&4&&(d=e.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,mc(e,l))));break;case 19:or(n,e),mi(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,mc(e,d)));break;case 30:break;case 21:break;default:or(n,e),mi(e)}}function mi(e){var n=e.flags;if(n&2){try{ot(e,sy,e)}catch(l){Bt(e,e.return,l)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function cs(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;cs(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function zl(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)wv(e,n.alternate,n),n=n.sibling}function Li(e){switch(e.tag){case 0:case 11:case 14:case 15:Jd(e,e.return,cu),Xa(e);break;case 1:ji(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&kf(e,e.return,n),Xa(e);break;case 27:ot(e,$f,e.stateNode);case 26:case 5:ji(e,e.return),Xa(e);break;case 22:e.memoizedState===null&&Xa(e);break;case 30:Xa(e);break;default:Xa(e)}}function Xa(e){for(e=e.child;e!==null;)Li(e),e=e.sibling}function ru(e,n,l,d){var v=l.flags;switch(l.tag){case 0:case 11:case 15:jl(e,l,d),Wd(l,cu);break;case 1:if(jl(e,l,d),n=l.stateNode,typeof n.componentDidMount=="function"&&ot(l,TD,l,n),n=l.updateQueue,n!==null){e=l.stateNode;try{ot(l,rc,n,e)}catch(b){Bt(l,l.return,b)}}d&&v&64&&Rp(l),os(l,l.return);break;case 27:Fp(l);case 26:case 5:jl(e,l,d),d&&n===null&&v&4&&So(l),os(l,l.return);break;case 12:if(d&&v&4){v=$r(),jl(e,l,d),d=l.stateNode,d.effectDuration+=qe(v);try{ot(l,Fl,l,n,r1,d.effectDuration)}catch(b){Bt(l,l.return,b)}}else jl(e,l,d);break;case 13:jl(e,l,d),d&&v&4&&pi(e,l);break;case 22:l.memoizedState===null&&jl(e,l,d),os(l,l.return);break;case 30:break;default:jl(e,l,d)}}function jl(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)ru(e,n.alternate,n,l),n=n.sibling}function nl(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&nc(e),l!=null&&xl(l))}function _u(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(nc(n),e!=null&&xl(e))}function Wn(e,n,l,d){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Nf(e,n,l,d),n=n.sibling}function Nf(e,n,l,d){var v=n.flags;switch(n.tag){case 0:case 11:case 15:Wn(e,n,l,d),v&2048&&_l(n,Ci|_s);break;case 1:Wn(e,n,l,d);break;case 3:var b=$r();Wn(e,n,l,d),v&2048&&(l=null,n.alternate!==null&&(l=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==l&&(nc(n),l!=null&&xl(l))),e.passiveEffectDuration+=de(b);break;case 12:if(v&2048){v=$r(),Wn(e,n,l,d),e=n.stateNode,e.passiveEffectDuration+=qe(v);try{ot(n,oy,n,n.alternate,r1,e.passiveEffectDuration)}catch(_){Bt(n,n.return,_)}}else Wn(e,n,l,d);break;case 13:Wn(e,n,l,d);break;case 23:break;case 22:b=n.stateNode;var O=n.alternate;n.memoizedState!==null?b._visibility&Rh?Wn(e,n,l,d):Eo(e,n):b._visibility&Rh?Wn(e,n,l,d):(b._visibility|=Rh,al(e,n,l,d,(n.subtreeFlags&10256)!==0)),v&2048&&nl(O,n);break;case 24:Wn(e,n,l,d),v&2048&&_u(n.alternate,n);break;default:Wn(e,n,l,d)}}function al(e,n,l,d,v){for(v=v&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;)Rf(e,n,l,d,v),n=n.sibling}function Rf(e,n,l,d,v){var b=n.flags;switch(n.tag){case 0:case 11:case 15:al(e,n,l,d,v),_l(n,Ci);break;case 23:break;case 22:var O=n.stateNode;n.memoizedState!==null?O._visibility&Rh?al(e,n,l,d,v):Eo(e,n):(O._visibility|=Rh,al(e,n,l,d,v)),v&&b&2048&&nl(n.alternate,n);break;case 24:al(e,n,l,d,v),v&&b&2048&&_u(n.alternate,n);break;default:al(e,n,l,d,v)}}function Eo(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,d=n,v=d.flags;switch(d.tag){case 22:Eo(l,d),v&2048&&nl(d.alternate,d);break;case 24:Eo(l,d),v&2048&&_u(d.alternate,d);break;default:Eo(l,d)}n=n.sibling}}function vc(e){if(e.subtreeFlags&J0)for(e=e.child;e!==null;)Co(e),e=e.sibling}function Co(e){switch(e.tag){case 26:vc(e),e.flags&J0&&e.memoizedState!==null&&dh(Vc,e.memoizedState,e.memoizedProps);break;case 5:vc(e);break;case 3:case 4:var n=Vc;Vc=ch(e.stateNode.containerInfo),vc(e),Vc=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=J0,J0=16777216,vc(e),J0=n):vc(e));break;default:vc(e)}}function fs(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function gc(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l];Xi=d,rl(d,e)}fs(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ah(e),e=e.sibling}function ah(e){switch(e.tag){case 0:case 11:case 15:gc(e),e.flags&2048&&hc(e,e.return,Ci|_s);break;case 3:var n=$r();gc(e),e.stateNode.passiveEffectDuration+=de(n);break;case 12:n=$r(),gc(e),e.stateNode.passiveEffectDuration+=qe(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Rh&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Rh,rh(e)):gc(e);break;default:gc(e)}}function rh(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l];Xi=d,rl(d,e)}fs(e)}for(e=e.child;e!==null;)Bf(e),e=e.sibling}function Bf(e){switch(e.tag){case 0:case 11:case 15:hc(e,e.return,Ci),rh(e);break;case 22:var n=e.stateNode;n._visibility&Rh&&(n._visibility&=~Rh,rh(e));break;default:rh(e)}}function rl(e,n){for(;Xi!==null;){var l=Xi,d=l;switch(d.tag){case 0:case 11:case 15:hc(d,n,Ci);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(d=d.memoizedState.cachePool.pool,d!=null&&nc(d));break;case 24:xl(d.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,Xi=d;else e:for(l=e;Xi!==null;){d=Xi;var v=d.sibling,b=d.return;if(Mp(d),d===l){Xi=null;break e}if(v!==null){v.return=b,Xi=v;break e}Xi=b}}}function jp(){QN.forEach(function(e){return e()})}function Lp(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Me.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ui(e){if((ma&ml)!==zo&&Pn!==0)return Pn&-Pn;var n=Me.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),e=gg,e!==0?e:Tv()):ai()}function xv(){Lo===0&&(Lo=(Pn&536870912)===0||aa?Rt():536870912);var e=Ms.current;return e!==null&&(e.flags|=32),Lo}function Ua(e,n,l){if(e0&&console.error("useInsertionEffect must not schedule updates."),PD&&(y1=!0),(e===Fa&&(Da===Eg||Da===Cg)||e.cancelPendingCommit!==null)&&(Fu(e,0),il(e,Pn,Lo,!1)),va(e,l),(ma&ml)!==0&&e===Fa){if(Si)switch(n.tag){case 0:case 11:case 15:e=qn&&J(qn)||"Unknown",Bx.has(e)||(Bx.add(e),n=J(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:Rx||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Rx=!0)}}else _a&&Dn(e,n,l),zf(n),e===Fa&&((ma&ml)===zo&&(Bm|=l),wr===Dg&&il(e,Pn,Lo,!1)),Hi(e)}function sr(e,n,l){if((ma&(ml|qc))!==zo)throw Error("Should not already be working.");var d=!l&&(n&124)===0&&(n&e.expiredLanes)===0||Fn(e,n),v=d?Vp(e,n):Hp(e,n,!0),b=d;do{if(v===Lh){Wy&&!d&&il(e,n,0,!1);break}else{if(l=e.current.alternate,b&&!Up(l)){v=Hp(e,n,!1),b=!1;continue}if(v===Zy){if(b=n,e.errorRecoveryDisabledLanes&b)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{v=e;var _=O;O=ib;var Y=v.current.memoizedState.isDehydrated;if(Y&&(Fu(v,_).flags|=256),_=Hp(v,_,!1),_!==Zy){if(UD&&!Y){v.errorRecoveryDisabledLanes|=b,Bm|=b,v=Dg;break e}v=vl,vl=O,v!==null&&(vl===null?vl=v:vl.push.apply(vl,v))}v=_}if(b=!1,v!==Zy)continue}}if(v===tb){Fu(e,0),il(e,n,0,!0);break}e:{switch(d=e,v){case Lh:case tb:throw Error("Root did not complete. This is a bug in React.");case Dg:if((n&4194048)!==n)break;case m1:il(d,n,Lo,!Nm);break e;case Zy:vl=null;break;case zD:case Cx:break;default:throw Error("Unknown root exit status.")}if(Me.actQueue!==null)Gp(d,l,n,vl,ub,v1,Lo,Bm,wg);else{if((n&62914560)===n&&(b=VD+xx-sl(),10<b)){if(il(d,n,Lo,!Nm),Ot(d,0,!0)!==0)break e;d.timeoutHandle=Hx(Sa.bind(null,d,l,vl,ub,v1,n,Lo,Bm,wg,Nm,v,KN,Ow,0),b);break e}Sa(d,l,vl,ub,v1,n,Lo,Bm,wg,Nm,v,IN,Ow,0)}}}break}while(!0);Hi(e)}function Sa(e,n,l,d,v,b,O,_,Y,Q,Te,Ue,Ae,$e){if(e.timeoutHandle=kg,Ue=n.subtreeFlags,(Ue&8192||(Ue&16785408)===16785408)&&(db={stylesheets:null,count:0,unsuspend:py},Co(n),Ue=my(),Ue!==null)){e.cancelPendingCommit=Ue(Gp.bind(null,e,n,b,l,d,v,O,_,Y,Te,ZN,Ae,$e)),il(e,b,O,!Q);return}Gp(e,n,b,l,d,v,O,_,Y)}function Up(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var v=l[d],b=v.getSnapshot;v=v.value;try{if(!Pe(b(),v))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function il(e,n,l,d){n&=~HD,n&=~Bm,e.suspendedLanes|=n,e.pingedLanes&=~n,d&&(e.warmLanes|=n),d=e.expirationTimes;for(var v=n;0<v;){var b=31-Na(v),O=1<<b;d[b]=-1,v&=~O}l!==0&&Ba(e,l,n)}function wo(){return(ma&(ml|qc))===zo?(vs(0),!1):!0}function yc(){if(qn!==null){if(Da===to)var e=qn.return;else e=qn,Rd(),ba(e),$y=null,K0=0,e=qn;for(;e!==null;)Ev(e.alternate,e),e=e.return;qn=null}}function Fu(e,n){var l=e.timeoutHandle;l!==kg&&(e.timeoutHandle=kg,cR(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),yc(),Fa=e,qn=l=Su(e.current,null),Pn=n,Da=to,jo=null,Nm=!1,Wy=Fn(e,n),UD=!1,wr=Lh,wg=Lo=HD=Bm=Rm=0,vl=ib=null,v1=!1,(n&8)!==0&&(n|=n&32);var d=e.entangledLanes;if(d!==0)for(e=e.entanglements,d&=n;0<d;){var v=31-Na(d),b=1<<v;n|=e[v],d&=~b}return sd=n,bu(),n=xw(),1e3<n-ww&&(Me.recentlyCreatedOwnerStacks=0,ww=n),Uc.discardPendingWarnings(),l}function Nt(e,n){cn=null,Me.H=h1,Me.getCurrentStack=null,Si=!1,ou=null,n===Q0||n===o1?(n=cp(),Da=ab):n===Nw?(n=cp(),Da=wx):Da=n===px?LD:n!==null&&typeof n=="object"&&typeof n.then=="function"?Ky:nb,jo=n;var l=qn;if(l===null)wr=tb,Bl(e,Mn(n,e.current));else switch(l.mode&su&&ht(l),Qe(),Da){case nb:pt!==null&&typeof pt.markComponentErrored=="function"&&pt.markComponentErrored(l,n,Pn);break;case Eg:case Cg:case ab:case Ky:case rb:pt!==null&&typeof pt.markComponentSuspended=="function"&&pt.markComponentSuspended(l,n,Pn)}}function bc(){var e=Me.H;return Me.H=h1,e===null?h1:e}function ih(){var e=Me.A;return Me.A=PN,e}function Ll(){wr=Dg,Nm||(Pn&4194048)!==Pn&&Ms.current!==null||(Wy=!0),(Rm&134217727)===0&&(Bm&134217727)===0||Fa===null||il(Fa,Pn,Lo,!1)}function Hp(e,n,l){var d=ma;ma|=ml;var v=bc(),b=ih();if(Fa!==e||Pn!==n){if(_a){var O=e.memoizedUpdaters;0<O.size&&(ms(e,Pn),O.clear()),Kt(e,n)}ub=null,Fu(e,n)}Ne(n),n=!1,O=wr;e:do try{if(Da!==to&&qn!==null){var _=qn,Y=jo;switch(Da){case LD:yc(),O=m1;break e;case ab:case Eg:case Cg:case Ky:Ms.current===null&&(n=!0);var Q=Da;if(Da=to,jo=null,ds(e,_,Y,Q),l&&Wy){O=Lh;break e}break;default:Q=Da,Da=to,jo=null,ds(e,_,Y,Q)}}_f(),O=wr;break}catch(Te){Nt(e,Te)}while(!0);return n&&e.shellSuspendCounter++,Rd(),ma=d,Me.H=v,Me.A=b,Ie(),qn===null&&(Fa=null,Pn=0,bu()),O}function _f(){for(;qn!==null;)Av(qn)}function Vp(e,n){var l=ma;ma|=ml;var d=bc(),v=ih();if(Fa!==e||Pn!==n){if(_a){var b=e.memoizedUpdaters;0<b.size&&(ms(e,Pn),b.clear()),Kt(e,n)}ub=null,g1=sl()+Ax,Fu(e,n)}else Wy=Fn(e,n);Ne(n);e:do try{if(Da!==to&&qn!==null)t:switch(n=qn,b=jo,Da){case nb:Da=to,jo=null,ds(e,n,b,nb);break;case Eg:case Cg:if(df(b)){Da=to,jo=null,qp(n);break}n=function(){Da!==Eg&&Da!==Cg||Fa!==e||(Da=rb),Hi(e)},b.then(n,n);break e;case ab:Da=rb;break e;case wx:Da=jD;break e;case rb:df(b)?(Da=to,jo=null,qp(n)):(Da=to,jo=null,ds(e,n,b,rb));break;case jD:var O=null;switch(qn.tag){case 26:O=qn.memoizedState;case 5:case 27:var _=qn;if(!O||fh(O)){Da=to,jo=null;var Y=_.sibling;if(Y!==null)qn=Y;else{var Q=_.return;Q!==null?(qn=Q,Ff(Q)):qn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Da=to,jo=null,ds(e,n,b,jD);break;case Ky:Da=to,jo=null,ds(e,n,b,Ky);break;case LD:yc(),wr=m1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Me.actQueue!==null?_f():br();break}catch(Te){Nt(e,Te)}while(!0);return Rd(),Me.H=d,Me.A=v,ma=l,qn!==null?(pt!==null&&typeof pt.markRenderYielded=="function"&&pt.markRenderYielded(),Lh):(Ie(),Fa=null,Pn=0,bu(),wr)}function br(){for(;qn!==null&&!Ey();)Av(qn)}function Av(e){var n=e.alternate;(e.mode&su)!==$a?(Be(e),n=ot(e,on,n,e,sd),ht(e)):n=ot(e,on,n,e,sd),e.memoizedProps=e.pendingProps,n===null?Ff(e):qn=n}function qp(e){var n=ot(e,uh,e);e.memoizedProps=e.pendingProps,n===null?Ff(e):qn=n}function uh(e){var n=e.alternate,l=(e.mode&su)!==$a;switch(l&&Be(e),e.tag){case 15:case 0:n=bv(n,e,e.pendingProps,e.type,void 0,Pn);break;case 11:n=bv(n,e,e.pendingProps,e.type.render,e.ref,Pn);break;case 5:ba(e);default:Ev(n,e),e=qn=Od(e,sd),n=on(n,e,sd)}return l&&ht(e),n}function ds(e,n,l,d){Rd(),ba(n),$y=null,K0=0;var v=n.return;try{if(Yd(e,v,n,l,Pn)){wr=tb,Bl(e,Mn(l,e.current)),qn=null;return}}catch(b){if(v!==null)throw qn=v,b;wr=tb,Bl(e,Mn(l,e.current)),qn=null;return}n.flags&32768?(aa||d===nb?e=!0:Wy||(Pn&536870912)!==0?e=!1:(Nm=e=!0,(d===Eg||d===Cg||d===ab||d===Ky)&&(d=Ms.current,d!==null&&d.tag===13&&(d.flags|=16384))),$p(n,e)):Ff(n)}function Ff(e){var n=e;do{if((n.flags&32768)!==0){$p(n,Nm);return}var l=n.alternate;if(e=n.return,Be(n),l=ot(n,uy,l,n,sd),(n.mode&su)!==$a&&qt(n),l!==null){qn=l;return}if(n=n.sibling,n!==null){qn=n;return}qn=n=e}while(n!==null);wr===Lh&&(wr=Cx)}function $p(e,n){do{var l=au(e.alternate,e);if(l!==null){l.flags&=32767,qn=l;return}if((e.mode&su)!==$a){qt(e),l=e.actualDuration;for(var d=e.child;d!==null;)l+=d.actualDuration,d=d.sibling;e.actualDuration=l}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){qn=e;return}qn=e=l}while(e!==null);wr=m1,qn=null}function Gp(e,n,l,d,v,b,O,_,Y){e.cancelPendingCommit=null;do hs();while(fu!==xg);if(Uc.flushLegacyContextWarning(),Uc.flushPendingUnsafeLifecycleWarnings(),(ma&(ml|qc))!==zo)throw Error("Should not already be working.");if(pt!==null&&typeof pt.markCommitStarted=="function"&&pt.markCommitStarted(l),n===null)Ft();else{if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(b=n.lanes|n.childLanes,b|=mD,Ur(e,l,b,O,_,Y),e===Fa&&(qn=Fa=null,Pn=0),Jy=n,Fm=e,Mm=l,$D=b,GD=v,Nx=d,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ip(Nc,function(){return lh(),null})):(e.callbackNode=null,e.callbackPriority=0),r1=Ly(),d=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||d){d=Me.T,Me.T=null,v=Gt.p,Gt.p=zr,O=ma,ma|=qc;try{nh(e,n,l)}finally{ma=O,Gt.p=v,Me.T=d}}fu=Ox,Ul(),Mu(),Ir()}}function Ul(){if(fu===Ox){fu=xg;var e=Fm,n=Jy,l=Mm,d=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||d){d=Me.T,Me.T=null;var v=Gt.p;Gt.p=zr;var b=ma;ma|=qc;try{Xy=l,Iy=e,ss(n,e),Iy=Xy=null,l=tE;var O=Ki(e.containerInfo),_=l.focusedElem,Y=l.selectionRange;if(O!==_&&_&&_.ownerDocument&&ty(_.ownerDocument.documentElement,_)){if(Y!==null&&tv(_)){var Q=Y.start,Te=Y.end;if(Te===void 0&&(Te=Q),"selectionStart"in _)_.selectionStart=Q,_.selectionEnd=Math.min(Te,_.value.length);else{var Ue=_.ownerDocument||document,Ae=Ue&&Ue.defaultView||window;if(Ae.getSelection){var $e=Ae.getSelection(),wt=_.textContent.length,Jt=Math.min(Y.start,wt),Ma=Y.end===void 0?Jt:Math.min(Y.end,wt);!$e.extend&&Jt>Ma&&(O=Ma,Ma=Jt,Jt=O);var Qn=li(_,Jt),ae=li(_,Ma);if(Qn&&ae&&($e.rangeCount!==1||$e.anchorNode!==Qn.node||$e.anchorOffset!==Qn.offset||$e.focusNode!==ae.node||$e.focusOffset!==ae.offset)){var re=Ue.createRange();re.setStart(Qn.node,Qn.offset),$e.removeAllRanges(),Jt>Ma?($e.addRange(re),$e.extend(ae.node,ae.offset)):(re.setEnd(ae.node,ae.offset),$e.addRange(re))}}}}for(Ue=[],$e=_;$e=$e.parentNode;)$e.nodeType===1&&Ue.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<Ue.length;_++){var ce=Ue[_];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}_1=!!eE,tE=eE=null}finally{ma=b,Gt.p=v,Me.T=d}}e.current=n,fu=Tx}}function Mu(){if(fu===Tx){fu=xg;var e=Fm,n=Jy,l=Mm,d=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||d){d=Me.T,Me.T=null;var v=Gt.p;Gt.p=zr;var b=ma;ma|=qc;try{pt!==null&&typeof pt.markLayoutEffectsStarted=="function"&&pt.markLayoutEffectsStarted(l),Xy=l,Iy=e,wv(e,n.alternate,n),Iy=Xy=null,pt!==null&&typeof pt.markLayoutEffectsStopped=="function"&&pt.markLayoutEffectsStopped()}finally{ma=b,Gt.p=v,Me.T=d}}fu=kx}}function Ir(){if(fu===WN||fu===kx){fu=xg,_0();var e=Fm,n=Jy,l=Mm,d=Nx,v=(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;v?fu=qD:(fu=xg,Jy=Fm=null,Hl(e,e.pendingLanes),Ag=0,ob=null);var b=e.pendingLanes;if(b===0&&(_m=null),v||Sc(e),v=mr(l),n=n.stateNode,Mr&&typeof Mr.onCommitFiberRoot=="function")try{var O=(n.current.flags&128)===128;switch(v){case zr:var _=Kf;break;case vn:_=Dh;break;case Bo:_=Nc;break;case Ch:_=Fr;break;default:_=Nc}Mr.onCommitFiberRoot(Cs,n,_,O)}catch(Ue){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %s",Ue))}if(_a&&e.memoizedUpdaters.clear(),jp(),d!==null){O=Me.T,_=Gt.p,Gt.p=zr,Me.T=null;try{var Y=e.onRecoverableError;for(n=0;n<d.length;n++){var Q=d[n],Te=Yp(Q.stack);ot(Q.source,Y,Q.value,Te)}}finally{Me.T=O,Gt.p=_}}(Mm&3)!==0&&hs(),Hi(e),b=e.pendingLanes,(l&4194090)!==0&&(b&42)!==0?(u1=!0,e===YD?lb++:(lb=0,YD=e)):lb=0,vs(0),Ft()}}function Yp(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Hl(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,xl(n)))}function hs(e){return Ul(),Mu(),Ir(),lh()}function lh(){if(fu!==qD)return!1;var e=Fm,n=$D;$D=0;var l=mr(Mm),d=Bo>l?Bo:l;l=Me.T;var v=Gt.p;try{Gt.p=d,Me.T=null,d=GD,GD=null;var b=Fm,O=Mm;if(fu=xg,Jy=Fm=null,Mm=0,(ma&(ml|qc))!==zo)throw Error("Cannot flush passive effects while already rendering.");PD=!0,y1=!1,pt!==null&&typeof pt.markPassiveEffectsStarted=="function"&&pt.markPassiveEffectsStarted(O);var _=ma;if(ma|=qc,ah(b.current),Nf(b,b.current,O,d),pt!==null&&typeof pt.markPassiveEffectsStopped=="function"&&pt.markPassiveEffectsStopped(),Sc(b),ma=_,vs(0,!1),y1?b===ob?Ag++:(Ag=0,ob=b):Ag=0,y1=PD=!1,Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(Cs,b)}catch(Q){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %s",Q))}var Y=b.current.stateNode;return Y.effectDuration=0,Y.passiveEffectDuration=0,!0}finally{Gt.p=v,Me.T=l,Hl(e,n)}}function Mf(e,n,l){n=Mn(l,n),n=Xr(e.stateNode,n,2),e=ki(e,n,2),e!==null&&(va(e,2),Hi(e))}function Bt(e,n,l){if(e0=!1,e.tag===3)Mf(e,e,l);else{for(;n!==null;){if(n.tag===3){Mf(n,e,l);return}if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(_m===null||!_m.has(d))){e=Mn(l,e),l=La(2),d=ki(n,l,2),d!==null&&(go(l,d,n,e),va(d,2),Hi(d));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
305
|
-
|
|
306
|
-
Error message:
|
|
307
|
-
|
|
308
|
-
%s`,l)}}function Pp(e,n,l){var d=e.pingCache;if(d===null){d=e.pingCache=new XN;var v=new Set;d.set(n,v)}else v=d.get(n),v===void 0&&(v=new Set,d.set(n,v));v.has(l)||(UD=!0,v.add(l),d=cy.bind(null,e,n,l),_a&&ms(e,l),n.then(d,d))}function cy(e,n,l){var d=e.pingCache;d!==null&&d.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Lp()&&Me.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
309
|
-
|
|
310
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
311
|
-
|
|
312
|
-
act(() => {
|
|
313
|
-
/* finish loading suspended data */
|
|
314
|
-
});
|
|
315
|
-
/* assert on the output */
|
|
316
|
-
|
|
317
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Fa===e&&(Pn&l)===l&&(wr===Dg||wr===zD&&(Pn&62914560)===Pn&&sl()-VD<xx?(ma&ml)===zo&&Fu(e,0):HD|=l,wg===Pn&&(wg=0)),Hi(e)}function Ov(e,n){n===0&&(n=Yt()),e=qr(e,n),e!==null&&(va(e,n),Hi(e))}function oh(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Ov(e,l)}function ps(e,n){var l=0;switch(e.tag){case 13:var d=e.stateNode,v=e.memoizedState;v!==null&&(l=v.retryLane);break;case 19:d=e.stateNode;break;case 22:d=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(n),Ov(e,l)}function Qp(e,n,l){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var d=e,v=n,b=v.type===Qf;b=l||b,v.tag!==22?v.flags&67108864?b&&ot(v,Xp,d,v,(v.mode&Dw)===$a):Qp(d,v,b):v.memoizedState===null&&(b&&v.flags&8192?ot(v,Xp,d,v):v.subtreeFlags&67108864&&ot(v,Qp,d,v,b)),n=n.sibling}}function Xp(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;rt(!0);try{Li(n),l&&Bf(n),ru(e,n.alternate,n,!1),l&&Rf(e,n,0,null,!1,0)}finally{rt(!1)}}function Sc(e){var n=!0;e.current.mode&(qu|Lc)||(n=!1),Qp(e,e.current,n)}function ul(e){if((ma&ml)===zo){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=J(e)||"ReactComponent",b1!==null){if(b1.has(n))return;b1.add(n)}else b1=new Set([n]);ot(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function ms(e,n){_a&&e.memoizedUpdaters.forEach(function(l){Dn(e,l,n)})}function Ip(e,n){var l=Me.actQueue;return l!==null?(l.push(n),tR):mm(e,n)}function zf(e){Lp()&&Me.actQueue===null&&ot(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
318
|
-
|
|
319
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
320
|
-
|
|
321
|
-
act(() => {
|
|
322
|
-
/* fire events that update state */
|
|
323
|
-
});
|
|
324
|
-
/* assert on the output */
|
|
325
|
-
|
|
326
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(e))})}function Hi(e){e!==t0&&e.next===null&&(t0===null?S1=t0=e:t0=t0.next=e),D1=!0,Me.actQueue!==null?XD||(XD=!0,er()):QD||(QD=!0,er())}function vs(e,n){if(!ID&&D1){ID=!0;do for(var l=!1,d=S1;d!==null;){if(e!==0){var v=d.pendingLanes;if(v===0)var b=0;else{var O=d.suspendedLanes,_=d.pingedLanes;b=(1<<31-Na(42|e)+1)-1,b&=v&~(O&~_),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,Vl(d,b))}else b=Pn,b=Ot(d,d===Fa?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==kg),(b&3)===0||Fn(d,b)||(l=!0,Vl(d,b));d=d.next}while(l);ID=!1}}function sh(){Dc()}function Dc(){D1=XD=QD=!1;var e=0;Og!==0&&(Lf()&&(e=Og),Og=0);for(var n=sl(),l=null,d=S1;d!==null;){var v=d.next,b=ll(d,n);b===0?(d.next=null,l===null?S1=v:l.next=v,v===null&&(t0=l)):(l=d,(e!==0||(b&3)!==0)&&(D1=!0)),d=v}vs(e)}function ll(e,n){for(var l=e.suspendedLanes,d=e.pingedLanes,v=e.expirationTimes,b=e.pendingLanes&-62914561;0<b;){var O=31-Na(b),_=1<<O,Y=v[O];Y===-1?((_&l)===0||(_&d)!==0)&&(v[O]=Zt(_,n)):Y<=n&&(e.expiredLanes|=_),b&=~_}if(n=Fa,l=Pn,l=Ot(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==kg),d=e.callbackNode,l===0||e===n&&(Da===Eg||Da===Cg)||e.cancelPendingCommit!==null)return d!==null&&Zp(d),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fn(e,l)){if(n=l&-l,n!==e.callbackPriority||Me.actQueue!==null&&d!==ZD)Zp(d);else return n;switch(mr(l)){case zr:case vn:l=Dh;break;case Bo:l=Nc;break;case Ch:l=Fr;break;default:l=Nc}return d=Jn.bind(null,e),Me.actQueue!==null?(Me.actQueue.push(d),l=ZD):l=mm(l,d),e.callbackPriority=n,e.callbackNode=l,n}return d!==null&&Zp(d),e.callbackPriority=2,e.callbackNode=null,2}function Jn(e,n){if(u1=i1=!1,fu!==xg&&fu!==qD)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(hs()&&e.callbackNode!==l)return null;var d=Pn;return d=Ot(e,e===Fa?d:0,e.cancelPendingCommit!==null||e.timeoutHandle!==kg),d===0?null:(sr(e,d,n),ll(e,sl()),e.callbackNode!=null&&e.callbackNode===l?Jn.bind(null,e):null)}function Vl(e,n){if(hs())return null;i1=u1,u1=!1,sr(e,n,!0)}function Zp(e){e!==ZD&&e!==null&&B0(e)}function er(){Me.actQueue!==null&&Me.actQueue.push(function(){return Dc(),null}),fR(function(){(ma&(ml|qc))!==zo?mm(Kf,sh):Dc()})}function Tv(){return Og===0&&(Og=Rt()),Og}function kv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Le(e,"action"),tf(""+e))}function Nv(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function Ta(e,n,l,d,v){if(n==="submit"&&l&&l.stateNode===v){var b=kv((v[Yi]||null).action),O=d.submitter;O&&(n=(n=O[Yi]||null)?kv(n.formAction):O.getAttribute("formAction"),n!==null&&(b=n,O=null));var _=new _t("action","action",null,d,v);e.push({event:_,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Og!==0){var Y=O?Nv(v,O):new FormData(v),Q={pending:!0,data:Y,method:v.method,action:b};Object.freeze(Q),as(l,Q,null,Y)}}else typeof b=="function"&&(_.preventDefault(),Y=O?Nv(v,O):new FormData(v),Q={pending:!0,data:Y,method:v.method,action:b},Object.freeze(Q),as(l,Q,b,Y))},currentTarget:v}]})}}function Nr(e,n,l){e.currentTarget=l;try{n(e)}catch(d){RD(d)}e.currentTarget=null}function ql(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var d=e[l];e:{var v=void 0,b=d.event;if(d=d.listeners,n)for(var O=d.length-1;0<=O;O--){var _=d[O],Y=_.instance,Q=_.currentTarget;if(_=_.listener,Y!==v&&b.isPropagationStopped())break e;Y!==null?ot(Y,Nr,b,_,Q):Nr(b,_,Q),v=Y}else for(O=0;O<d.length;O++){if(_=d[O],Y=_.instance,Q=_.currentTarget,_=_.listener,Y!==v&&b.isPropagationStopped())break e;Y!==null?ot(Y,Nr,b,_,Q):Nr(b,_,Q),v=Y}}}}function On(e,n){KD.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var l=n[Jv];l===void 0&&(l=n[Jv]=new Set);var d=e+"__bubble";l.has(d)||(Wp(n,e,2,!1),l.add(d))}function Kp(e,n,l){KD.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var d=0;n&&(d|=4),Wp(l,e,d,n)}function Rv(e){if(!e[E1]){e[E1]=!0,wy.forEach(function(l){l!=="selectionchange"&&(KD.has(l)||Kp(l,!1,e),Kp(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[E1]||(n[E1]=!0,Kp("selectionchange",!1,n))}}function Wp(e,n,l,d){switch(mh(n)){case zr:var v=gy;break;case vn:v=ph;break;default:v=Xl}l=v.bind(null,n,l,e),v=void 0,!Ce||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(v=!0),d?v!==void 0?e.addEventListener(n,l,{capture:!0,passive:v}):e.addEventListener(n,l,!0):v!==void 0?e.addEventListener(n,l,{passive:v}):e.addEventListener(n,l,!1)}function vi(e,n,l,d,v){var b=d;if((n&1)===0&&(n&2)===0&&d!==null)e:for(;;){if(d===null)return;var O=d.tag;if(O===3||O===4){var _=d.stateNode.containerInfo;if(_===v)break;if(O===4)for(O=d.return;O!==null;){var Y=O.tag;if((Y===3||Y===4)&&O.stateNode.containerInfo===v)return;O=O.return}for(;_!==null;){if(O=Fe(_),O===null)return;if(Y=O.tag,Y===5||Y===6||Y===26||Y===27){d=b=O;continue e}_=_.parentNode}}d=d.return}nf(function(){var Q=b,Te=Ks(l),Ue=[];e:{var Ae=Sw.get(e);if(Ae!==void 0){var $e=_t,wt=e;switch(e){case"keypress":if(af(l)===0)break e;case"keydown":case"keyup":$e=nD;break;case"focusin":wt="focus",$e=Vn;break;case"focusout":wt="blur",$e=Vn;break;case"beforeblur":case"afterblur":$e=Vn;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=Cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=$t;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=iD;break;case Hu:case Pi:case Vu:$e=M0;break;case U0:$e=lD;break;case"scroll":case"scrollend":$e=me;break;case"wheel":$e=sD;break;case"copy":case"cut":case"paste":$e=z0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=Wb;break;case"toggle":case"beforetoggle":$e=fD}var Jt=(n&4)!==0,Ma=!Jt&&(e==="scroll"||e==="scrollend"),Qn=Jt?Ae!==null?Ae+"Capture":null:Ae;Jt=[];for(var ae=Q,re;ae!==null;){var ce=ae;if(re=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||re===null||Qn===null||(ce=uo(ae,Qn),ce!=null&&Jt.push(Zr(ae,ce,re))),Ma)break;ae=ae.return}0<Jt.length&&(Ae=new $e(Ae,wt,null,l,Te),Ue.push({event:Ae,listeners:Jt}))}}if((n&7)===0){e:{if(Ae=e==="mouseover"||e==="pointerover",$e=e==="mouseout"||e==="pointerout",Ae&&l!==S&&(wt=l.relatedTarget||l.fromElement)&&(Fe(wt)||wt[ws]))break e;if(($e||Ae)&&(Ae=Te.window===Te?Te:(Ae=Te.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,$e?(wt=l.relatedTarget||l.toElement,$e=Q,wt=wt?Fe(wt):null,wt!==null&&(Ma=M(wt),Jt=wt.tag,wt!==Ma||Jt!==5&&Jt!==27&&Jt!==6)&&(wt=null)):($e=null,wt=Q),$e!==wt)){if(Jt=Cn,ce="onMouseLeave",Qn="onMouseEnter",ae="mouse",(e==="pointerout"||e==="pointerover")&&(Jt=Wb,ce="onPointerLeave",Qn="onPointerEnter",ae="pointer"),Ma=$e==null?Ae:vt($e),re=wt==null?Ae:vt(wt),Ae=new Jt(ce,ae+"leave",$e,l,Te),Ae.target=Ma,Ae.relatedTarget=re,ce=null,Fe(Te)===Q&&(Jt=new Jt(Qn,ae+"enter",wt,l,Te),Jt.target=re,Jt.relatedTarget=Ma,ce=Jt),Ma=ce,$e&&wt)t:{for(Jt=$e,Qn=wt,ae=0,re=Jt;re;re=cr(re))ae++;for(re=0,ce=Qn;ce;ce=cr(ce))re++;for(;0<ae-re;)Jt=cr(Jt),ae--;for(;0<re-ae;)Qn=cr(Qn),re--;for(;ae--;){if(Jt===Qn||Qn!==null&&Jt===Qn.alternate)break t;Jt=cr(Jt),Qn=cr(Qn)}Jt=null}else Jt=null;$e!==null&&Bv(Ue,Ae,$e,Jt,!1),wt!==null&&Ma!==null&&Bv(Ue,Ma,wt,Jt,!0)}}e:{if(Ae=Q?vt(Q):window,$e=Ae.nodeName&&Ae.nodeName.toLowerCase(),$e==="select"||$e==="input"&&Ae.type==="file")var Ge=so;else if(Kg(Ae))if(We)Ge=Jg;else{Ge=rp;var ct=yu}else $e=Ae.nodeName,!$e||$e.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?Q&&Zo(Q.elementType)&&(Ge=so):Ge=Wg;if(Ge&&(Ge=Ge(e,Q))){np(Ue,Ge,l,Te);break e}ct&&ct(e,Ae,Q),e==="focusout"&&Q&&Ae.type==="number"&&Q.memoizedProps.value!=null&&Ai(Ae,"number",Ae.value)}switch(ct=Q?vt(Q):window,e){case"focusin":(Kg(ct)||ct.contentEditable==="true")&&(ft=ct,At=Q,Lt=null);break;case"focusout":Lt=At=ft=null;break;case"mousedown":gn=!0;break;case"contextmenu":case"mouseup":case"dragend":gn=!1,nv(Ue,l,Te);break;case"selectionchange":if(Je)break;case"keydown":case"keyup":nv(Ue,l,Te)}var yn;if(L0)e:{switch(e){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else P?ui(e,l)&&(xt="onCompositionEnd"):e==="keydown"&&l.keyCode===Jb&&(xt="onCompositionStart");xt&&(p&&l.locale!=="ko"&&(P||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&P&&(yn=lo()):(Ze=Te,Oe="value"in Ze?Ze.value:Ze.textContent,P=!0)),ct=jf(Q,xt),0<ct.length&&(xt=new Kb(xt,e,null,l,Te),Ue.push({event:xt,listeners:ct}),yn?xt.data=yn:(yn=Ko(l),yn!==null&&(xt.data=yn)))),(yn=f?ep(e,l):wd(e,l))&&(xt=jf(Q,"onBeforeInput"),0<xt.length&&(ct=new KS("onBeforeInput","beforeinput",null,l,Te),Ue.push({event:ct,listeners:xt}),ct.data=yn)),Ta(Ue,e,Q,l,Te)}ql(Ue,n)})}function Zr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function jf(e,n){for(var l=n+"Capture",d=[];e!==null;){var v=e,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=uo(e,l),v!=null&&d.unshift(Zr(e,v,b)),v=uo(e,n),v!=null&&d.push(Zr(e,v,b))),e.tag===3)return d;e=e.return}return[]}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bv(e,n,l,d,v){for(var b=n._reactName,O=[];l!==null&&l!==d;){var _=l,Y=_.alternate,Q=_.stateNode;if(_=_.tag,Y!==null&&Y===d)break;_!==5&&_!==26&&_!==27||Q===null||(Y=Q,v?(Q=uo(l,b),Q!=null&&O.unshift(Zr(l,Q,Y))):v||(Q=uo(l,b),Q!=null&&O.push(Zr(l,Q,Y)))),l=l.return}O.length!==0&&e.push({event:n,listeners:O})}function $l(e,n){ef(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||dg||(dg=!0,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var l={registrationNameDependencies:Uu,possibleRegistrationNames:Rc};Zo(e)||typeof n.is=="string"||Km(e,n,l),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function ka(e,n,l,d){n!==l&&(l=Rr(l),Rr(n)!==l&&(d[e]=n))}function xo(e,n,l){n.forEach(function(d){l[Fv(d)]=d==="style"?gs(e):e.getAttribute(d)})}function zu(e,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)}function Jp(e,n){return e=e.namespaceURI===kh||e.namespaceURI===id?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function Rr(e){return fe(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ve(e)),Re(e)),(typeof e=="string"?e:""+e).replace(nR,`
|
|
327
|
-
`).replace(aR,"")}function _v(e,n){return n=Rr(n),Rr(e)===n}function Ao(){}function In(e,n,l,d,v,b){switch(l){case"children":typeof d=="string"?(Kc(d,n,!1),n==="body"||n==="textarea"&&d===""||Zs(e,d)):(typeof d=="number"||typeof d=="bigint")&&(Kc(""+d,n,!1),n!=="body"&&Zs(e,""+d));break;case"className":Vt(e,"class",d);break;case"tabIndex":Vt(e,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Vt(e,l,d);break;case"style":Wc(e,d,b);break;case"data":if(n!=="object"){Vt(e,"data",d);break}case"src":case"href":if(d===""&&(n!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),e.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){e.removeAttribute(l);break}Le(d,l),d=tf(""+d),e.setAttribute(l,d);break;case"action":case"formAction":if(d!=null&&(n==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof d=="function"&&(v.encType==null&&v.method==null||x1||(x1=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),v.target==null||w1||(w1=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||v.type==="submit"||v.type==="image"||C1?n!=="button"||v.type==null||v.type==="submit"||C1?typeof d=="function"&&(v.name==null||Mx||(Mx=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),v.formEncType==null&&v.formMethod==null||x1||(x1=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),v.formTarget==null||w1||(w1=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(C1=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(C1=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof d=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(n!=="input"&&In(e,n,"name",v.name,v,null),In(e,n,"formEncType",v.formEncType,v,null),In(e,n,"formMethod",v.formMethod,v,null),In(e,n,"formTarget",v.formTarget,v,null)):(In(e,n,"encType",v.encType,v,null),In(e,n,"method",v.method,v,null),In(e,n,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){e.removeAttribute(l);break}Le(d,l),d=tf(""+d),e.setAttribute(l,d);break;case"onClick":d!=null&&(typeof d!="function"&&zu(l,d),e.onclick=Ao);break;case"onScroll":d!=null&&(typeof d!="function"&&zu(l,d),On("scroll",e));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&zu(l,d),On("scrollend",e));break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"multiple":e.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":e.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){e.removeAttribute("xlink:href");break}Le(d,l),l=tf(""+d),e.setAttributeNS(Tg,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?(Le(d,l),e.setAttribute(l,""+d)):e.removeAttribute(l);break;case"inert":d!==""||A1[l]||(A1[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":d===!0?e.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?(Le(d,l),e.setAttribute(l,d)):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?(Le(d,l),e.setAttribute(l,d)):e.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?e.removeAttribute(l):(Le(d,l),e.setAttribute(l,d));break;case"popover":On("beforetoggle",e),On("toggle",e),Pt(e,"popover",d);break;case"xlinkActuate":It(e,Tg,"xlink:actuate",d);break;case"xlinkArcrole":It(e,Tg,"xlink:arcrole",d);break;case"xlinkRole":It(e,Tg,"xlink:role",d);break;case"xlinkShow":It(e,Tg,"xlink:show",d);break;case"xlinkTitle":It(e,Tg,"xlink:title",d);break;case"xlinkType":It(e,Tg,"xlink:type",d);break;case"xmlBase":It(e,WD,"xml:base",d);break;case"xmlLang":It(e,WD,"xml:lang",d);break;case"xmlSpace":It(e,WD,"xml:space",d);break;case"is":b!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Pt(e,"is",d);break;case"innerText":case"textContent":break;case"popoverTarget":zx||d==null||typeof d!="object"||(zx=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",d));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=Wh(l),Pt(e,l,d)):Uu.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&zu(l,d)}}function Sr(e,n,l,d,v,b){switch(l){case"style":Wc(e,d,b);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"children":typeof d=="string"?Zs(e,d):(typeof d=="number"||typeof d=="bigint")&&Zs(e,""+d);break;case"onScroll":d!=null&&(typeof d!="function"&&zu(l,d),On("scroll",e));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&zu(l,d),On("scrollend",e));break;case"onClick":d!=null&&(typeof d!="function"&&zu(l,d),e.onclick=Ao);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Uu.hasOwnProperty(l))d!=null&&typeof d!="function"&&zu(l,d);else e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),n=l.slice(2,v?l.length-7:void 0),b=e[Yi]||null,b=b!=null?b[l]:null,typeof b=="function"&&e.removeEventListener(n,b,v),typeof d=="function")){typeof b!="function"&&b!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,d,v);break e}l in e?e[l]=d:d===!0?e.setAttribute(l,""):Pt(e,l,d)}}}function Ha(e,n,l){switch($l(n,l),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":On("error",e),On("load",e);var d=!1,v=!1,b;for(b in l)if(l.hasOwnProperty(b)){var O=l[b];if(O!=null)switch(b){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:In(e,n,b,O,l,null)}}v&&In(e,n,"srcSet",l.srcSet,l,null),d&&In(e,n,"src",l.src,l,null);return;case"input":ut("input",l),On("invalid",e);var _=b=O=v=null,Y=null,Q=null;for(d in l)if(l.hasOwnProperty(d)){var Te=l[d];if(Te!=null)switch(d){case"name":v=Te;break;case"type":O=Te;break;case"checked":Y=Te;break;case"defaultChecked":Q=Te;break;case"value":b=Te;break;case"defaultValue":_=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:In(e,n,d,Te,l,null)}}Pu(e,l),Un(e,b,_,Y,Q,O,v,!1),Yu(e);return;case"select":ut("select",l),On("invalid",e),d=O=b=null;for(v in l)if(l.hasOwnProperty(v)&&(_=l[v],_!=null))switch(v){case"value":b=_;break;case"defaultValue":O=_;break;case"multiple":d=_;default:In(e,n,v,_,l,null)}ro(e,l),n=b,l=O,e.multiple=!!d,n!=null?Xu(e,!!d,n,!1):l!=null&&Xu(e,!!d,l,!0);return;case"textarea":ut("textarea",l),On("invalid",e),b=v=d=null;for(O in l)if(l.hasOwnProperty(O)&&(_=l[O],_!=null))switch(O){case"value":d=_;break;case"defaultValue":v=_;break;case"children":b=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:In(e,n,O,_,l,null)}Iu(e,l),Ih(e,d,v,b),Yu(e);return;case"option":bl(e,l);for(Y in l)if(l.hasOwnProperty(Y)&&(d=l[Y],d!=null))switch(Y){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:In(e,n,Y,d,l,null)}return;case"dialog":On("beforetoggle",e),On("toggle",e),On("cancel",e),On("close",e);break;case"iframe":case"object":On("load",e);break;case"video":case"audio":for(d=0;d<sb.length;d++)On(sb[d],e);break;case"image":On("error",e),On("load",e);break;case"details":On("toggle",e);break;case"embed":case"source":case"link":On("error",e),On("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(d=l[Q],d!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:In(e,n,Q,d,l,null)}return;default:if(Zo(n)){for(Te in l)l.hasOwnProperty(Te)&&(d=l[Te],d!==void 0&&Sr(e,n,Te,d,l,void 0));return}}for(_ in l)l.hasOwnProperty(_)&&(d=l[_],d!=null&&In(e,n,_,d,l,null))}function fy(e,n,l,d){switch($l(n,d),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,O=null,_=null,Y=null,Q=null,Te=null;for($e in l){var Ue=l[$e];if(l.hasOwnProperty($e)&&Ue!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":Y=Ue;default:d.hasOwnProperty($e)||In(e,n,$e,null,d,Ue)}}for(var Ae in d){var $e=d[Ae];if(Ue=l[Ae],d.hasOwnProperty(Ae)&&($e!=null||Ue!=null))switch(Ae){case"type":b=$e;break;case"name":v=$e;break;case"checked":Q=$e;break;case"defaultChecked":Te=$e;break;case"value":O=$e;break;case"defaultValue":_=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:$e!==Ue&&In(e,n,Ae,$e,d,Ue)}}n=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,d=d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null,n||!d||Fx||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Fx=!0),!n||d||_x||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),_x=!0),Qu(e,O,_,Y,Q,Te,b,v);return;case"select":$e=O=_=Ae=null;for(b in l)if(Y=l[b],l.hasOwnProperty(b)&&Y!=null)switch(b){case"value":break;case"multiple":$e=Y;default:d.hasOwnProperty(b)||In(e,n,b,null,d,Y)}for(v in d)if(b=d[v],Y=l[v],d.hasOwnProperty(v)&&(b!=null||Y!=null))switch(v){case"value":Ae=b;break;case"defaultValue":_=b;break;case"multiple":O=b;default:b!==Y&&In(e,n,v,b,d,Y)}d=_,n=O,l=$e,Ae!=null?Xu(e,!!n,Ae,!1):!!l!=!!n&&(d!=null?Xu(e,!!n,d,!0):Xu(e,!!n,n?[]:"",!1));return;case"textarea":$e=Ae=null;for(_ in l)if(v=l[_],l.hasOwnProperty(_)&&v!=null&&!d.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:In(e,n,_,null,d,v)}for(O in d)if(v=d[O],b=l[O],d.hasOwnProperty(O)&&(v!=null||b!=null))switch(O){case"value":Ae=v;break;case"defaultValue":$e=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:v!==b&&In(e,n,O,v,d,b)}yd(e,Ae,$e);return;case"option":for(var wt in l)if(Ae=l[wt],l.hasOwnProperty(wt)&&Ae!=null&&!d.hasOwnProperty(wt))switch(wt){case"selected":e.selected=!1;break;default:In(e,n,wt,null,d,Ae)}for(Y in d)if(Ae=d[Y],$e=l[Y],d.hasOwnProperty(Y)&&Ae!==$e&&(Ae!=null||$e!=null))switch(Y){case"selected":e.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol";break;default:In(e,n,Y,Ae,d,$e)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Jt in l)Ae=l[Jt],l.hasOwnProperty(Jt)&&Ae!=null&&!d.hasOwnProperty(Jt)&&In(e,n,Jt,null,d,Ae);for(Q in d)if(Ae=d[Q],$e=l[Q],d.hasOwnProperty(Q)&&Ae!==$e&&(Ae!=null||$e!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:In(e,n,Q,Ae,d,$e)}return;default:if(Zo(n)){for(var Ma in l)Ae=l[Ma],l.hasOwnProperty(Ma)&&Ae!==void 0&&!d.hasOwnProperty(Ma)&&Sr(e,n,Ma,void 0,d,Ae);for(Te in d)Ae=d[Te],$e=l[Te],!d.hasOwnProperty(Te)||Ae===$e||Ae===void 0&&$e===void 0||Sr(e,n,Te,Ae,d,$e);return}}for(var Qn in l)Ae=l[Qn],l.hasOwnProperty(Qn)&&Ae!=null&&!d.hasOwnProperty(Qn)&&In(e,n,Qn,null,d,Ae);for(Ue in d)Ae=d[Ue],$e=l[Ue],!d.hasOwnProperty(Ue)||Ae===$e||Ae==null&&$e==null||In(e,n,Ue,Ae,d,$e)}function Fv(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function gs(e){var n={};e=e.style;for(var l=0;l<e.length;l++){var d=e[l];n[d]=e.getPropertyValue(d)}return n}function Mv(e,n,l){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var d,v=d="",b;for(b in n)if(n.hasOwnProperty(b)){var O=n[b];O!=null&&typeof O!="boolean"&&O!==""&&(b.indexOf("--")===0?(he(O,b),d+=v+b+":"+(""+O).trim()):typeof O!="number"||O===0||Th.has(b)?(he(O,b),d+=v+b.replace(_o,"-$1").toLowerCase().replace(Fo,"-ms-")+":"+(""+O).trim()):d+=v+b.replace(_o,"-$1").toLowerCase().replace(Fo,"-ms-")+":"+O+"px",v=";")}d=d||null,n=e.getAttribute("style"),n!==d&&(d=Rr(d),Rr(n)!==d&&(l.style=gs(e)))}}function gi(e,n,l,d,v,b){if(v.delete(l),e=e.getAttribute(l),e===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(Le(d,n),e===""+d)return}ka(n,e,d,b)}function zv(e,n,l,d,v,b){if(v.delete(l),e=e.getAttribute(l),e===null){switch(typeof d){case"function":case"symbol":return}if(!d)return}else switch(typeof d){case"function":case"symbol":break;default:if(d)return}ka(n,e,d,b)}function jv(e,n,l,d,v,b){if(v.delete(l),e=e.getAttribute(l),e===null)switch(typeof d){case"undefined":case"function":case"symbol":return}else if(d!=null)switch(typeof d){case"function":case"symbol":break;default:if(Le(d,l),e===""+d)return}ka(n,e,d,b)}function em(e,n,l,d,v,b){if(v.delete(l),e=e.getAttribute(l),e===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(d))return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(!isNaN(d)&&(Le(d,n),e===""+d))return}ka(n,e,d,b)}function ea(e,n,l,d,v,b){if(v.delete(l),e=e.getAttribute(l),e===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(Le(d,n),l=tf(""+d),e===l)return}ka(n,e,d,b)}function ha(e,n,l,d){for(var v={},b=new Set,O=e.attributes,_=0;_<O.length;_++)switch(O[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:b.add(O[_].name)}if(Zo(n)){for(var Y in l)if(l.hasOwnProperty(Y)){var Q=l[Y];if(Q!=null){if(Uu.hasOwnProperty(Y))typeof Q!="function"&&zu(Y,Q);else if(l.suppressHydrationWarning!==!0)switch(Y){case"children":typeof Q!="string"&&typeof Q!="number"||ka("children",e.textContent,Q,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":O=e.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Jp(e,Q),ka(Y,O,Q,v));continue;case"style":b.delete(Y),Mv(e,Q,v);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":b.delete(Y.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Y);continue;case"className":b.delete("class"),O=gt(e,"class",Q),ka("className",O,Q,v);continue;default:d.context===Hh&&n!=="svg"&&n!=="math"?b.delete(Y.toLowerCase()):b.delete(Y),O=gt(e,Y,Q),ka(Y,O,Q,v)}}}}else for(Q in l)if(l.hasOwnProperty(Q)&&(Y=l[Q],Y!=null)){if(Uu.hasOwnProperty(Q))typeof Y!="function"&&zu(Q,Y);else if(l.suppressHydrationWarning!==!0)switch(Q){case"children":typeof Y!="string"&&typeof Y!="number"||ka("children",e.textContent,Y,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":O=e.innerHTML,Y=Y?Y.__html:void 0,Y!=null&&(Y=Jp(e,Y),O!==Y&&(v[Q]={__html:O}));continue;case"className":gi(e,Q,"class",Y,b,v);continue;case"tabIndex":gi(e,Q,"tabindex",Y,b,v);continue;case"style":b.delete(Q),Mv(e,Y,v);continue;case"multiple":b.delete(Q),ka(Q,e.multiple,Y,v);continue;case"muted":b.delete(Q),ka(Q,e.muted,Y,v);continue;case"autoFocus":b.delete("autofocus"),ka(Q,e.autofocus,Y,v);continue;case"data":if(n!=="object"){b.delete(Q),O=e.getAttribute("data"),ka(Q,O,Y,v);continue}case"src":case"href":if(!(Y!==""||n==="a"&&Q==="href"||n==="object"&&Q==="data")){console.error(Q==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Q,Q);continue}ea(e,Q,Q,Y,b,v);continue;case"action":case"formAction":if(O=e.getAttribute(Q),typeof Y=="function"){b.delete(Q.toLowerCase()),Q==="formAction"?(b.delete("name"),b.delete("formenctype"),b.delete("formmethod"),b.delete("formtarget")):(b.delete("enctype"),b.delete("method"),b.delete("target"));continue}else if(O===rR){b.delete(Q.toLowerCase()),ka(Q,"function",Y,v);continue}ea(e,Q,Q.toLowerCase(),Y,b,v);continue;case"xlinkHref":ea(e,Q,"xlink:href",Y,b,v);continue;case"contentEditable":jv(e,Q,"contenteditable",Y,b,v);continue;case"spellCheck":jv(e,Q,"spellcheck",Y,b,v);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":jv(e,Q,Q,Y,b,v);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":zv(e,Q,Q.toLowerCase(),Y,b,v);continue;case"capture":case"download":e:{_=e;var Te=O=Q,Ue=v;if(b.delete(Te),_=_.getAttribute(Te),_===null)switch(typeof Y){case"undefined":case"function":case"symbol":break e;default:if(Y===!1)break e}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;case"boolean":if(Y===!0&&_==="")break e;break;default:if(Le(Y,O),_===""+Y)break e}ka(O,_,Y,Ue)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=e,Te=O=Q,Ue=v,b.delete(Te),_=_.getAttribute(Te),_===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Y)||1>Y)break e}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Y)||1>Y)&&(Le(Y,O),_===""+Y))break e}ka(O,_,Y,Ue)}continue;case"rowSpan":em(e,Q,"rowspan",Y,b,v);continue;case"start":em(e,Q,Q,Y,b,v);continue;case"xHeight":gi(e,Q,"x-height",Y,b,v);continue;case"xlinkActuate":gi(e,Q,"xlink:actuate",Y,b,v);continue;case"xlinkArcrole":gi(e,Q,"xlink:arcrole",Y,b,v);continue;case"xlinkRole":gi(e,Q,"xlink:role",Y,b,v);continue;case"xlinkShow":gi(e,Q,"xlink:show",Y,b,v);continue;case"xlinkTitle":gi(e,Q,"xlink:title",Y,b,v);continue;case"xlinkType":gi(e,Q,"xlink:type",Y,b,v);continue;case"xmlBase":gi(e,Q,"xml:base",Y,b,v);continue;case"xmlLang":gi(e,Q,"xml:lang",Y,b,v);continue;case"xmlSpace":gi(e,Q,"xml:space",Y,b,v);continue;case"inert":Y!==""||A1[Q]||(A1[Q]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Q)),zv(e,Q,Q,Y,b,v);continue;default:if(!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"){_=Wh(Q),O=!1,d.context===Hh&&n!=="svg"&&n!=="math"?b.delete(_.toLowerCase()):(Te=Q.toLowerCase(),Te=zc.hasOwnProperty(Te)&&zc[Te]||null,Te!==null&&Te!==Q&&(O=!0,b.delete(Te)),b.delete(_));e:if(Te=e,Ue=_,_=Y,st(Ue))if(Te.hasAttribute(Ue))Te=Te.getAttribute(Ue),Le(_,Ue),_=Te===""+_?_:Te;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(Te=Ue.toLowerCase().slice(0,5),Te!=="data-"&&Te!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;O||ka(Q,_,Y,v)}}}return 0<b.size&&l.suppressHydrationWarning!==!0&&xo(e,b,v),Object.keys(v).length===0?null:v}function kn(e,n){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function Nn(e){return e.nodeType===9?e:e.ownerDocument}function na(e){switch(e){case id:return n0;case kh:return k1;default:return Hh}}function Vi(e,n){if(e===Hh)switch(n){case"svg":return n0;case"math":return k1;default:return Hh}return e===n0&&n==="foreignObject"?Hh:e}function Gl(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function Lf(){var e=window.event;return e&&e.type==="popstate"?e===nE?!1:(nE=e,!0):(nE=null,!1)}function Lv(e){setTimeout(function(){throw e})}function Oo(e,n,l){switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src?e.src=l.src:l.srcSet&&(e.srcset=l.srcSet)}}function Va(e,n,l,d){fy(e,n,l,d),e[Yi]=d}function To(e){Zs(e,"")}function Ec(e,n,l){e.nodeValue=l}function Yl(e){return e==="head"}function ju(e,n){e.removeChild(n)}function Uf(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n)}function Hf(e,n){var l=n,d=0,v=0;do{var b=l.nextSibling;if(e.removeChild(l),b&&b.nodeType===8)if(l=b.data,l===T1){if(0<d&&8>d){l=d;var O=e.ownerDocument;if(l&uR&&$f(O.documentElement),l&lR&&$f(O.body),l&oR)for(l=O.head,$f(l),O=l.firstChild;O;){var _=O.nextSibling,Y=O.nodeName;O[td]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&O.rel.toLowerCase()==="stylesheet"||l.removeChild(O),O=_}}if(v===0){e.removeChild(b),Ds(n);return}v--}else l===O1||l===Uh||l===cb?v++:d=l.charCodeAt(0)-48;else d=0;l=b}while(l);Ds(n)}function qi(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function Uv(e){e.nodeValue=""}function Hv(e,n){n=n[sR],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function Vf(e,n){e.nodeValue=n}function Cc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Cc(l),xe(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ys(e,n,l,d){for(;e.nodeType===1;){var v=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!d&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(d){if(!e[td])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(b=e.getAttribute("rel"),b==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(b!==v.rel||e.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||e.getAttribute("title")!==(v.title==null?null:v.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(b=e.getAttribute("src"),(b!==(v.src==null?null:v.src)||e.getAttribute("type")!==(v.type==null?null:v.type)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){Le(v.name,"name");var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&e.getAttribute("name")===b)return e}else return e;if(e=_r(e.nextSibling),e===null)break}return null}function Br(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_r(e.nextSibling),e===null))return null;return e}function Pl(e){return e.data===cb||e.data===Uh&&e.ownerDocument.readyState===Lx}function qf(e,n){var l=e.ownerDocument;if(e.data!==Uh||l.readyState===Lx)n();else{var d=function(){n(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),e._reactRetry=d}}function _r(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n===O1||n===cb||n===Uh||n===JD||n===jx)break;if(n===T1)return null}}return e}function tm(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),l={},d=e.attributes,v=0;v<d.length;v++){var b=d[v];l[Fv(b.name)]=b.name.toLowerCase()==="style"?gs(e):b.value}return{type:n,props:l}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function nm(e,n,l){return l===null||l[iR]!==!0?(e.nodeValue===n?e=null:(n=Rr(n),e=Rr(e.nodeValue)===n?null:e.nodeValue),e):null}function Vv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l===T1){if(n===0)return _r(e.nextSibling);n--}else l!==O1&&l!==cb&&l!==Uh||n++}e=e.nextSibling}return null}function wc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l===O1||l===cb||l===Uh){if(n===0)return e;n--}else l===T1&&n++}e=e.previousSibling}return null}function qv(e){Ds(e)}function Kr(e){Ds(e)}function $v(e,n,l,d,v){switch(v&&Cd(e,d.ancestorInfo),n=Nn(l),e){case"html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function iu(e,n,l,d){if(!l[ws]&&Ke(l)){var v=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",v,v,v)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(v=l.attributes;v.length;)l.removeAttributeNode(v[0]);Ha(l,e,n),l[Jr]=d,l[Yi]=n}function $f(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);xe(e)}function ch(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function dy(e,n,l){var d=a0;if(d&&typeof n=="string"&&n){var v=Hr(n);v='link[rel="'+e+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),Gx.has(v)||(Gx.add(v),e={rel:e,crossOrigin:l,href:n},d.querySelector(v)===null&&(n=d.createElement("link"),Ha(n,"link",e),Wt(n),d.head.appendChild(n)))}}function ko(e,n,l,d){var v=(v=ol.current)?ch(v):null;if(!v)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=bs(l.href),n=nn(v).hoistableStyles,d=n.get(l),d||(d={type:"style",instance:null,count:0,state:null},n.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=bs(l.href);var b=nn(v).hoistableStyles,O=b.get(e);if(!O&&(v=v.ownerDocument||v,O={type:"stylesheet",instance:null,count:0,state:{loading:Ng,preload:null}},b.set(e,O),(b=v.querySelector(Ql(e)))&&!b._p&&(O.instance=b,O.state.loading=fb|zs),!js.has(e))){var _={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};js.set(e,_),b||hy(v,e,_,O.state)}if(n&&d===null)throw l=`
|
|
328
|
-
|
|
329
|
-
- `+xc(n)+`
|
|
330
|
-
+ `+xc(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return O}if(n&&d!==null)throw l=`
|
|
331
|
-
|
|
332
|
-
- `+xc(n)+`
|
|
333
|
-
+ `+xc(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(l=Ac(l),n=nn(v).hoistableScripts,d=n.get(l),d||(d={type:"script",instance:null,count:0,state:null},n.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function xc(e){var n=0,l="<link";return typeof e.rel=="string"?(n++,l+=' rel="'+e.rel+'"'):Ro.call(e,"rel")&&(n++,l+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,l+=' href="'+e.href+'"'):Ro.call(e,"href")&&(n++,l+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,l+=' precedence="'+e.precedence+'"'):Ro.call(e,"precedence")&&(n++,l+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(l+=" ..."),l+" />"}function bs(e){return'href="'+Hr(e)+'"'}function Ql(e){return'link[rel="stylesheet"]['+e+"]"}function Gv(e){return mn({},e,{"data-precedence":e.precedence,precedence:null})}function hy(e,n,l,d){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=fb:(n=e.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=fb}),n.addEventListener("error",function(){return d.loading|=qx}),Ha(n,"link",l),Wt(n),e.head.appendChild(n))}function Ac(e){return'[src="'+Hr(e)+'"]'}function Oc(e){return"script[async]"+e}function am(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var d=e.querySelector('style[data-href~="'+Hr(l.href)+'"]');if(d)return n.instance=d,Wt(d),d;var v=mn({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(e.ownerDocument||e).createElement("style"),Wt(d),Ha(d,"style",v),rm(d,l.precedence,e),n.instance=d;case"stylesheet":v=bs(l.href);var b=e.querySelector(Ql(v));if(b)return n.state.loading|=zs,n.instance=b,Wt(b),b;d=Gv(l),(v=js.get(v))&&Yv(d,v),b=(e.ownerDocument||e).createElement("link"),Wt(b);var O=b;return O._p=new Promise(function(_,Y){O.onload=_,O.onerror=Y}),Ha(b,"link",d),n.state.loading|=zs,rm(b,l.precedence,e),n.instance=b;case"script":return b=Ac(l.src),(v=e.querySelector(Oc(b)))?(n.instance=v,Wt(v),v):(d=l,(v=js.get(b))&&(d=mn({},l),im(d,v)),e=e.ownerDocument||e,v=e.createElement("script"),Wt(v),Ha(v,"link",d),e.head.appendChild(v),n.instance=v);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&zs)===Ng&&(d=n.instance,n.state.loading|=zs,rm(d,l.precedence,e));return n.instance}function rm(e,n,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,b=v,O=0;O<d.length;O++){var _=d[O];if(_.dataset.precedence===n)b=_;else if(b!==v)break}b?b.parentNode.insertBefore(e,b.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function Yv(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function im(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}function um(e,n,l){if(N1===null){var d=new Map,v=N1=new Map;v.set(l,d)}else v=N1,d=v.get(l),d||(d=new Map,v.set(l,d));if(d.has(e))return d;for(d.set(e,null),l=l.getElementsByTagName(e),v=0;v<l.length;v++){var b=l[v];if(!(b[td]||b[Jr]||e==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!==id){var O=b.getAttribute(n)||"";O=e+O;var _=d.get(O);_?_.push(b):d.set(O,[b])}}return d}function Pv(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function Gf(e,n,l){var d=!l.ancestorInfo.containerTagInScope;if(l.context===n0||n.itemProp!=null)return!d||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){d&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var v=n.onError,b=n.disabled;l=[],n.onLoad&&l.push("`onLoad`"),v&&l.push("`onError`"),b!=null&&l.push("`disabled`"),v=kn(l,"and"),v+=l.length===1?" prop":" props",b=l.length===1?"an "+v:"the "+v,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,b,v)}d&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(n.rel){case"stylesheet":return e=n.precedence,n=n.disabled,typeof e!="string"&&d&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null;default:return!0}case"script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){d&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":d&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function fh(e){return!(e.type==="stylesheet"&&(e.state.loading&$x)===Ng)}function py(){}function dh(e,n,l){if(db===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var d=db;if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&zs)===Ng){if(n.instance===null){var v=bs(l.href),b=e.querySelector(Ql(v));if(b){e=b._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(d.count++,d=hh.bind(d),e.then(d,d)),n.state.loading|=zs,n.instance=b,Wt(b);return}b=e.ownerDocument||e,l=Gv(l),(v=js.get(v))&&Yv(l,v),b=b.createElement("link"),Wt(b);var O=b;O._p=new Promise(function(_,Y){O.onload=_,O.onerror=Y}),Ha(b,"link",l),n.instance=b}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&$x)===Ng&&(d.count++,n=hh.bind(d),e.addEventListener("load",n),e.addEventListener("error",n))}}function my(){if(db===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=db;return e.stylesheets&&e.count===0&&lm(e,e.stylesheets),0<e.count?function(n){var l=setTimeout(function(){if(e.stylesheets&&lm(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l)}}:null}function hh(){if(this.count--,this.count===0){if(this.stylesheets)lm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function lm(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,R1=new Map,n.forEach(vy,e),R1=null,hh.call(e))}function vy(e,n){if(!(n.state.loading&zs)){var l=R1.get(e);if(l)var d=l.get(rE);else{l=new Map,R1.set(e,l);for(var v=e.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var O=v[b];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(l.set(O.dataset.precedence,O),d=O)}d&&l.set(rE,d)}v=n.instance,O=v.getAttribute("data-precedence"),b=l.get(O)||d,b===d&&l.set(rE,v),l.set(O,v),this.count++,d=hh.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),b?b.parentNode.insertBefore(v,b.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(v,e.firstChild)),n.state.loading|=zs}}function om(e,n,l,d,v,b,O,_){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=kg,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ln(0),this.hiddenUpdates=Ln(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function Qv(e,n,l,d,v,b,O,_,Y,Q,Te,Ue){return e=new om(e,n,l,O,_,Y,Q,Ue),n=MN,b===!0&&(n|=qu|Lc),_a&&(n|=su),b=N(3,null,null,n),e.current=b,b.stateNode=e,n=_d(),nc(n),e.pooledCache=n,nc(n),b.memoizedState={element:d,isDehydrated:l,cache:n},Ti(b),e}function Xv(e){return e?(e=Am,e):Am}function oa(e,n,l,d,v,b){if(Mr&&typeof Mr.onScheduleFiberRoot=="function")try{Mr.onScheduleFiberRoot(Cs,d,l)}catch(O){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %s",O))}pt!==null&&typeof pt.markRenderScheduled=="function"&&pt.markRenderScheduled(n),v=Xv(v),d.context===null?d.context=v:d.pendingContext=v,Si&&ou!==null&&!Xx&&(Xx=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
334
|
-
|
|
335
|
-
Check the render method of %s.`,J(ou)||"Unknown")),d=Al(n),d.payload={element:l},b=b===void 0?null:b,b!==null&&(typeof b!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",b),d.callback=b),l=ki(e,d,n),l!==null&&(Ua(l,e,n),si(l,e,n))}function sm(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Iv(e,n){sm(e,n),(e=e.alternate)&&sm(e,n)}function Zv(e){if(e.tag===13){var n=qr(e,67108864);n!==null&&Ua(n,e,67108864),Iv(e,67108864)}}function cm(){return ou}function k0(){for(var e=new Map,n=1,l=0;31>l;l++){var d=jn(n);e.set(n,d),n*=2}return e}function gy(e,n,l,d){var v=Me.T;Me.T=null;var b=Gt.p;try{Gt.p=zr,Xl(e,n,l,d)}finally{Gt.p=b,Me.T=v}}function ph(e,n,l,d){var v=Me.T;Me.T=null;var b=Gt.p;try{Gt.p=vn,Xl(e,n,l,d)}finally{Gt.p=b,Me.T=v}}function Xl(e,n,l,d){if(_1){var v=Yf(d);if(v===null)vi(e,n,d,F1,l),No(e,d);else if(vh(v,e,n,l,d))d.stopPropagation();else if(No(e,d),n&4&&-1<hR.indexOf(e)){for(;v!==null;){var b=Ke(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var O=Ut(b.pendingLanes);if(O!==0){var _=b;for(_.pendingLanes|=2,_.entangledLanes|=2;O;){var Y=1<<31-Na(O);_.entanglements[1]|=Y,O&=~Y}Hi(b),(ma&(ml|qc))===zo&&(g1=sl()+Ax,vs(0))}}break;case 13:_=qr(b,2),_!==null&&Ua(_,b,2),wo(),Iv(b,2)}if(b=Yf(d),b===null&&vi(e,n,d,F1,l),b===v)break;v=b}v!==null&&d.stopPropagation()}else vi(e,n,d,null,l)}}function Yf(e){return e=Ks(e),Tc(e)}function Tc(e){if(F1=null,e=Fe(e),e!==null){var n=M(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=x(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return F1=e,null}function mh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return zr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return vn;case"message":switch(Lu()){case Kf:return zr;case Dh:return vn;case Nc:case vm:return Bo;case Fr:return Ch;default:return Bo}default:return Bo}}function No(e,n){switch(e){case"focusin":case"focusout":zm=null;break;case"dragenter":case"dragleave":jm=null;break;case"mouseover":case"mouseout":Lm=null;break;case"pointerover":case"pointerout":pb.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":mb.delete(n.pointerId)}}function $i(e,n,l,d,v,b){return e===null||e.nativeEvent!==b?(e={blockedOn:n,domEventName:l,eventSystemFlags:d,nativeEvent:b,targetContainers:[v]},n!==null&&(n=Ke(n),n!==null&&Zv(n)),e):(e.eventSystemFlags|=d,n=e.targetContainers,v!==null&&n.indexOf(v)===-1&&n.push(v),e)}function vh(e,n,l,d,v){switch(n){case"focusin":return zm=$i(zm,e,n,l,d,v),!0;case"dragenter":return jm=$i(jm,e,n,l,d,v),!0;case"mouseover":return Lm=$i(Lm,e,n,l,d,v),!0;case"pointerover":var b=v.pointerId;return pb.set(b,$i(pb.get(b)||null,e,n,l,d,v)),!0;case"gotpointercapture":return b=v.pointerId,mb.set(b,$i(mb.get(b)||null,e,n,l,d,v)),!0}return!1}function yy(e){var n=Fe(e.target);if(n!==null){var l=M(n);if(l!==null){if(n=l.tag,n===13){if(n=x(l),n!==null){e.blockedOn=n,ge(e.priority,function(){if(l.tag===13){var d=Ui(l);d=Xt(d);var v=qr(l,d);v!==null&&Ua(v,l,d),Iv(l,d)}});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ss(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Yf(e.nativeEvent);if(l===null){l=e.nativeEvent;var d=new l.constructor(l.type,l),v=d;S!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),S=v,l.target.dispatchEvent(d),S===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),S=null}else return n=Ke(l),n!==null&&Zv(n),e.blockedOn=l,!1;n.shift()}return!0}function Pf(e,n,l){Ss(e)&&l.delete(n)}function by(){iE=!1,zm!==null&&Ss(zm)&&(zm=null),jm!==null&&Ss(jm)&&(jm=null),Lm!==null&&Ss(Lm)&&(Lm=null),pb.forEach(Pf),mb.forEach(Pf)}function gh(e,n){e.blockedOn===n&&(e.blockedOn=null,iE||(iE=!0,qa.unstable_scheduleCallback(qa.unstable_NormalPriority,by)))}function fm(e){M1!==e&&(M1=e,qa.unstable_scheduleCallback(qa.unstable_NormalPriority,function(){M1===e&&(M1=null);for(var n=0;n<e.length;n+=3){var l=e[n],d=e[n+1],v=e[n+2];if(typeof d!="function"){if(Tc(d||l)===null)continue;break}var b=Ke(l);b!==null&&(e.splice(n,3),n-=3,l={pending:!0,data:v,method:l.method,action:d},Object.freeze(l),as(b,l,d,v))}}))}function Ds(e){function n(Y){return gh(Y,e)}zm!==null&&gh(zm,e),jm!==null&&gh(jm,e),Lm!==null&&gh(Lm,e),pb.forEach(n),mb.forEach(n);for(var l=0;l<Um.length;l++){var d=Um[l];d.blockedOn===e&&(d.blockedOn=null)}for(;0<Um.length&&(l=Um[0],l.blockedOn===null);)yy(l),l.blockedOn===null&&Um.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var v=l[d],b=l[d+1],O=v[Yi]||null;if(typeof b=="function")O||fm(l);else if(O){var _=null;if(b&&b.hasAttribute("formAction")){if(v=b,O=b[Yi]||null)_=O.formAction;else if(Tc(v)!==null)continue}else _=O.action;typeof _=="function"?l[d+1]=_:(l.splice(d,3),d-=3),fm(l)}}}function dm(e){this._internalRoot=e}function yh(e){this._internalRoot=e}function Sy(e){e[ws]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var qa=RN(),bh=Z,N0=FC,mn=Object.assign,Sh=Symbol.for("react.element"),Es=Symbol.for("react.transitional.element"),kc=Symbol.for("react.portal"),sn=Symbol.for("react.fragment"),Qf=Symbol.for("react.strict_mode"),Wr=Symbol.for("react.profiler"),Kv=Symbol.for("react.provider"),hm=Symbol.for("react.consumer"),Dr=Symbol.for("react.context"),Ht=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Ia=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),uu=Symbol.for("react.lazy"),Il=Symbol.for("react.activity"),Dy=Symbol.for("react.memo_cache_sentinel"),Wv=Symbol.iterator,pm=Symbol.for("react.client.reference"),en=Array.isArray,Me=bh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gt=N0.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R0=Object.freeze({pending:!1,data:null,method:null,action:null}),lu=[],If=[],yi=-1,ta=De(null),pa=De(null),ol=De(null),Zf=De(null),Ro=Object.prototype.hasOwnProperty,mm=qa.unstable_scheduleCallback,B0=qa.unstable_cancelCallback,Ey=qa.unstable_shouldYield,_0=qa.unstable_requestPaint,sl=qa.unstable_now,Lu=qa.unstable_getCurrentPriorityLevel,Kf=qa.unstable_ImmediatePriority,Dh=qa.unstable_UserBlockingPriority,Nc=qa.unstable_NormalPriority,vm=qa.unstable_LowPriority,Fr=qa.unstable_IdlePriority,Wf=qa.log,cl=qa.unstable_setDisableYieldValue,Cs=null,Mr=null,pt=null,Gi=!1,_a=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Na=Math.clz32?Math.clz32:tt,tn=Math.log,Zl=Math.LN2,bi=256,Eh=4194304,zr=2,vn=8,Bo=32,Ch=268435456,fl=Math.random().toString(36).slice(2),Jr="__reactFiber$"+fl,Yi="__reactProps$"+fl,ws="__reactContainer$"+fl,Jv="__reactEvents$"+fl,Cy="__reactListeners$"+fl,Jf="__reactHandles$"+fl,ed="__reactResources$"+fl,td="__reactMarker$"+fl,wy=new Set,Uu={},Rc={},xy={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gm=RegExp("^[: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]*$"),nd={},ym={},Kl=0,eg,tg,Ay,tr,fr,Oy,Ty;Dt.__reactDisabledLog=!0;var ng,ad,rd=!1,wh=new(typeof WeakMap=="function"?WeakMap:Map),ou=null,Si=!1,F0=/[\n"\\]/g,ag=!1,rg=!1,bm=!1,Sm=!1,Dm=!1,ig=!1,xh=["value","defaultValue"],ky=!1,Bc=/["'&<>\n\t]|^\s|\s$/,ug="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Em="applet caption html table td th marquee object template foreignObject desc title".split(" "),Cm=Em.concat(["button"]),lg="dd dt li option optgroup p rp rt".split(" "),og={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_c={},dl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_o=/([A-Z])/g,Fo=/^ms-/,Ah=/^(?:webkit|moz|o)[A-Z]/,Oh=/^-ms-/,xs=/-(.)/g,Ny=/;\s*$/,Fc={},Mc={},Ry=!1,sg=!1,Th=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),kh="http://www.w3.org/1998/Math/MathML",id="http://www.w3.org/2000/svg",wm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},cg={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Wl={},fg=RegExp("^(aria)-[: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]*$"),xm=RegExp("^(aria)[A-Z][: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]*$"),dg=!1,Di={},Nh=/^on./,i=/^on[^A-Z]/,o=RegExp("^(aria)-[: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]*$"),c=RegExp("^(aria)[A-Z][: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]*$"),m=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,S=null,w=null,F=null,$=!1,te=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ce=!1;if(te)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){Ce=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{Ce=!1}var Ze=null,Oe=null,we=null,kt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_t=dn(kt),Zn=mn({},kt,{view:0,detail:0}),me=dn(Zn),se,Se,Xe,yt=mn({},Zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xe&&(Xe&&e.type==="mousemove"?(se=e.screenX-Xe.screenX,Se=e.screenY-Xe.screenY):Se=se=0,Xe=e),se)},movementY:function(e){return"movementY"in e?e.movementY:Se}}),Cn=dn(yt),Tt=mn({},yt,{dataTransfer:0}),$t=dn(Tt),Er=mn({},Zn,{relatedTarget:0}),Vn=dn(Er),As=mn({},kt,{animationName:0,elapsedTime:0,pseudoElement:0}),M0=dn(As),ZS=mn({},kt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z0=dn(ZS),j0=mn({},kt,{data:0}),Kb=dn(j0),KS=Kb,WS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},tD=mn({},Zn,{key:function(e){if(e.key){var n=WS[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=af(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(e){return e.type==="keypress"?af(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?af(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nD=dn(tD),aD=mn({},yt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wb=dn(aD),rD=mn({},Zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),iD=dn(rD),uD=mn({},kt,{propertyName:0,elapsedTime:0,pseudoElement:0}),lD=dn(uD),oD=mn({},yt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sD=dn(oD),cD=mn({},kt,{newState:0,oldState:0}),fD=dn(cD),dD=[9,13,27,32],Jb=229,L0=te&&"CompositionEvent"in window,hg=null;te&&"documentMode"in document&&(hg=document.documentMode);var f=te&&"TextEvent"in window&&!hg,p=te&&(!L0||hg&&8<hg&&11>=hg),D=32,k=String.fromCharCode(D),U=!1,P=!1,ne={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},le=null,ve=null,We=!1;te&&(We=tp("input")&&(!document.documentMode||9<document.documentMode));var Pe=typeof Object.is=="function"?Object.is:ey,Je=te&&"documentMode"in document&&11>=document.documentMode,ft=null,At=null,Lt=null,gn=!1,Mt={animationend:Vr("Animation","AnimationEnd"),animationiteration:Vr("Animation","AnimationIteration"),animationstart:Vr("Animation","AnimationStart"),transitionrun:Vr("Transition","TransitionRun"),transitionstart:Vr("Transition","TransitionStart"),transitioncancel:Vr("Transition","TransitionCancel"),transitionend:Vr("Transition","TransitionEnd")},Rn={},Yn={};te&&(Yn=document.createElement("div").style,"AnimationEvent"in window||(delete Mt.animationend.animation,delete Mt.animationiteration.animation,delete Mt.animationstart.animation),"TransitionEvent"in window||delete Mt.transitionend.transition);var Hu=Dl("animationend"),Pi=Dl("animationiteration"),Vu=Dl("animationstart"),dr=Dl("transitionrun"),Mo=Dl("transitionstart"),jc=Dl("transitioncancel"),U0=Dl("transitionend"),Sw=new Map,hD="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hD.push("scrollEnd");var pD=new WeakMap,e1=1,Rh=2,Os=[],By=0,mD=0,Am={};Object.freeze(Am);var Ts=null,_y=null,$a=0,MN=1,su=2,qu=8,Lc=16,Dw=64,Ew=!1;try{var Cw=Object.preventExtensions({})}catch{Ew=!0}var Fy=[],My=0,t1=null,n1=0,ks=[],Ns=0,pg=null,Bh=1,_h="",hl=null,Cr=null,aa=!1,Fh=!1,Rs=null,mg=null,ud=!1,vD=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ww=0;if(typeof performance=="object"&&typeof performance.now=="function")var zN=performance,xw=function(){return zN.now()};else{var jN=Date;xw=function(){return jN.now()}}var gD=De(null),yD=De(null),Aw={},a1=null,zy=null,jy=!1,LN=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,d){e.push(d)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},UN=qa.unstable_scheduleCallback,HN=qa.unstable_NormalPriority,Ei={$$typeof:Dr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ly=qa.unstable_now,Ow=-0,r1=-0,Jl=-1.1,vg=-0,i1=!1,u1=!1,H0=null,bD=0,gg=0,Uy=null,Tw=Me.S;Me.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&op(e,n),Tw!==null&&Tw(e,n)};var yg=De(null),Uc={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},V0=[],q0=[],$0=[],G0=[],Y0=[],P0=[],bg=new Set;Uc.recordUnsafeLifecycleWarnings=function(e,n){bg.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&V0.push(e),e.mode&qu&&typeof n.UNSAFE_componentWillMount=="function"&&q0.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&$0.push(e),e.mode&qu&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&G0.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Y0.push(e),e.mode&qu&&typeof n.UNSAFE_componentWillUpdate=="function"&&P0.push(e))},Uc.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<V0.length&&(V0.forEach(function(_){e.add(J(_)||"Component"),bg.add(_.type)}),V0=[]);var n=new Set;0<q0.length&&(q0.forEach(function(_){n.add(J(_)||"Component"),bg.add(_.type)}),q0=[]);var l=new Set;0<$0.length&&($0.forEach(function(_){l.add(J(_)||"Component"),bg.add(_.type)}),$0=[]);var d=new Set;0<G0.length&&(G0.forEach(function(_){d.add(J(_)||"Component"),bg.add(_.type)}),G0=[]);var v=new Set;0<Y0.length&&(Y0.forEach(function(_){v.add(J(_)||"Component"),bg.add(_.type)}),Y0=[]);var b=new Set;if(0<P0.length&&(P0.forEach(function(_){b.add(J(_)||"Component"),bg.add(_.type)}),P0=[]),0<n.size){var O=T(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
336
|
-
|
|
337
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
338
|
-
|
|
339
|
-
Please update the following components: %s`,O)}0<d.size&&(O=T(d),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
340
|
-
|
|
341
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
342
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
343
|
-
|
|
344
|
-
Please update the following components: %s`,O)),0<b.size&&(O=T(b),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
345
|
-
|
|
346
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
347
|
-
|
|
348
|
-
Please update the following components: %s`,O)),0<e.size&&(O=T(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
349
|
-
|
|
350
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
351
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
352
|
-
|
|
353
|
-
Please update the following components: %s`,O)),0<l.size&&(O=T(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
354
|
-
|
|
355
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
356
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
357
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
358
|
-
|
|
359
|
-
Please update the following components: %s`,O)),0<v.size&&(O=T(v),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
360
|
-
|
|
361
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
362
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
363
|
-
|
|
364
|
-
Please update the following components: %s`,O))};var l1=new Map,kw=new Set;Uc.recordLegacyContextWarning=function(e,n){for(var l=null,d=e;d!==null;)d.mode&qu&&(l=d),d=d.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!kw.has(e.type)&&(d=l1.get(l),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(d===void 0&&(d=[],l1.set(l,d)),d.push(e))},Uc.flushLegacyContextWarning=function(){l1.forEach(function(e){if(e.length!==0){var n=e[0],l=new Set;e.forEach(function(v){l.add(J(v)||"Component"),kw.add(v.type)});var d=T(l);ot(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
365
|
-
|
|
366
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
367
|
-
|
|
368
|
-
Please update the following components: %s
|
|
369
|
-
|
|
370
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,d)})}})},Uc.discardPendingWarnings=function(){V0=[],q0=[],$0=[],G0=[],Y0=[],P0=[],l1=new Map};var Q0=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Nw=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),o1=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),SD={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},X0=null,s1=!1,Bs=0,_s=1,pl=2,cu=4,Ci=8,Rw=0,Bw=1,_w=2,DD=3,Om=!1,Fw=!1,ED=null,CD=!1,Hy=De(null),c1=De(0),Vy,Mw=new Set,zw=new Set,wD=new Set,jw=new Set,Tm=0,cn=null,Ra=null,ei=null,f1=!1,qy=!1,Sg=!1,d1=0,I0=0,Mh=null,VN=0,qN=25,je=null,Fs=null,zh=-1,Z0=!1,h1={readContext:ga,use:Tu,useCallback:ya,useContext:ya,useEffect:ya,useImperativeHandle:ya,useLayoutEffect:ya,useInsertionEffect:ya,useMemo:ya,useReducer:ya,useRef:ya,useState:ya,useDebugValue:ya,useDeferredValue:ya,useTransition:ya,useSyncExternalStore:ya,useId:ya,useHostTransitionStatus:ya,useFormState:ya,useActionState:ya,useOptimistic:ya,useMemoCache:ya,useCacheRefresh:ya},xD=null,Lw=null,AD=null,Uw=null,ld=null,Hc=null,p1=null;xD={readContext:function(e){return ga(e)},use:Tu,useCallback:function(e,n){return je="useCallback",un(),Au(n),Wu(e,n)},useContext:function(e){return je="useContext",un(),ga(e)},useEffect:function(e,n){return je="useEffect",un(),Au(n),dp(e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",un(),Au(l),pp(e,n,l)},useInsertionEffect:function(e,n){je="useInsertionEffect",un(),Au(n),ku(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",un(),Au(n),hp(e,n)},useMemo:function(e,n){je="useMemo",un(),Au(n);var l=Me.H;Me.H=ld;try{return mp(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",un();var d=Me.H;Me.H=ld;try{return xn(e,n,l)}finally{Me.H=d}},useRef:function(e){return je="useRef",un(),Hd(e)},useState:function(e){je="useState",un();var n=Me.H;Me.H=ld;try{return kl(e)}finally{Me.H=n}},useDebugValue:function(){je="useDebugValue",un()},useDeferredValue:function(e,n){return je="useDeferredValue",un(),vp(e,n)},useTransition:function(){return je="useTransition",un(),Nu()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",un(),Ri(e,n,l)},useId:function(){return je="useId",un(),Ju()},useFormState:function(e,n){return je="useFormState",un(),pf(),yf(e,n)},useActionState:function(e,n){return je="useActionState",un(),yf(e,n)},useOptimistic:function(e){return je="useOptimistic",un(),q(e)},useHostTransitionStatus:_i,useMemoCache:Ea,useCacheRefresh:function(){return je="useCacheRefresh",un(),sc()}},Lw={readContext:function(e){return ga(e)},use:Tu,useCallback:function(e,n){return je="useCallback",et(),Wu(e,n)},useContext:function(e){return je="useContext",et(),ga(e)},useEffect:function(e,n){return je="useEffect",et(),dp(e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",et(),pp(e,n,l)},useInsertionEffect:function(e,n){je="useInsertionEffect",et(),ku(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",et(),hp(e,n)},useMemo:function(e,n){je="useMemo",et();var l=Me.H;Me.H=ld;try{return mp(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",et();var d=Me.H;Me.H=ld;try{return xn(e,n,l)}finally{Me.H=d}},useRef:function(e){return je="useRef",et(),Hd(e)},useState:function(e){je="useState",et();var n=Me.H;Me.H=ld;try{return kl(e)}finally{Me.H=n}},useDebugValue:function(){je="useDebugValue",et()},useDeferredValue:function(e,n){return je="useDeferredValue",et(),vp(e,n)},useTransition:function(){return je="useTransition",et(),Nu()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",et(),Ri(e,n,l)},useId:function(){return je="useId",et(),Ju()},useActionState:function(e,n){return je="useActionState",et(),yf(e,n)},useFormState:function(e,n){return je="useFormState",et(),pf(),yf(e,n)},useOptimistic:function(e){return je="useOptimistic",et(),q(e)},useHostTransitionStatus:_i,useMemoCache:Ea,useCacheRefresh:function(){return je="useCacheRefresh",et(),sc()}},AD={readContext:function(e){return ga(e)},use:Tu,useCallback:function(e,n){return je="useCallback",et(),lc(e,n)},useContext:function(e){return je="useContext",et(),ga(e)},useEffect:function(e,n){je="useEffect",et(),da(2048,Ci,e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",et(),Rl(e,n,l)},useInsertionEffect:function(e,n){return je="useInsertionEffect",et(),da(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",et(),da(4,cu,e,n)},useMemo:function(e,n){je="useMemo",et();var l=Me.H;Me.H=Hc;try{return yr(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",et();var d=Me.H;Me.H=Hc;try{return Yr(e,n,l)}finally{Me.H=d}},useRef:function(){return je="useRef",et(),Hn().memoizedState},useState:function(){je="useState",et();var e=Me.H;Me.H=Hc;try{return Yr(Gn)}finally{Me.H=e}},useDebugValue:function(){je="useDebugValue",et()},useDeferredValue:function(e,n){return je="useDeferredValue",et(),Vd(e,n)},useTransition:function(){return je="useTransition",et(),rs()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",et(),jd(e,n,l)},useId:function(){return je="useId",et(),Hn().memoizedState},useFormState:function(e){return je="useFormState",et(),pf(),fp(e)},useActionState:function(e){return je="useActionState",et(),fp(e)},useOptimistic:function(e,n){return je="useOptimistic",et(),Bi(e,n)},useHostTransitionStatus:_i,useMemoCache:Ea,useCacheRefresh:function(){return je="useCacheRefresh",et(),Hn().memoizedState}},Uw={readContext:function(e){return ga(e)},use:Tu,useCallback:function(e,n){return je="useCallback",et(),lc(e,n)},useContext:function(e){return je="useContext",et(),ga(e)},useEffect:function(e,n){je="useEffect",et(),da(2048,Ci,e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",et(),Rl(e,n,l)},useInsertionEffect:function(e,n){return je="useInsertionEffect",et(),da(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",et(),da(4,cu,e,n)},useMemo:function(e,n){je="useMemo",et();var l=Me.H;Me.H=p1;try{return yr(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",et();var d=Me.H;Me.H=p1;try{return Tl(e,n,l)}finally{Me.H=d}},useRef:function(){return je="useRef",et(),Hn().memoizedState},useState:function(){je="useState",et();var e=Me.H;Me.H=p1;try{return Tl(Gn)}finally{Me.H=e}},useDebugValue:function(){je="useDebugValue",et()},useDeferredValue:function(e,n){return je="useDeferredValue",et(),gp(e,n)},useTransition:function(){return je="useTransition",et(),oc()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",et(),jd(e,n,l)},useId:function(){return je="useId",et(),Hn().memoizedState},useFormState:function(e){return je="useFormState",et(),pf(),bf(e)},useActionState:function(e){return je="useActionState",et(),bf(e)},useOptimistic:function(e,n){return je="useOptimistic",et(),fi(e,n)},useHostTransitionStatus:_i,useMemoCache:Ea,useCacheRefresh:function(){return je="useCacheRefresh",et(),Hn().memoizedState}},ld={readContext:function(e){return C(),ga(e)},use:function(e){return E(),Tu(e)},useCallback:function(e,n){return je="useCallback",E(),un(),Wu(e,n)},useContext:function(e){return je="useContext",E(),un(),ga(e)},useEffect:function(e,n){return je="useEffect",E(),un(),dp(e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",E(),un(),pp(e,n,l)},useInsertionEffect:function(e,n){je="useInsertionEffect",E(),un(),ku(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",E(),un(),hp(e,n)},useMemo:function(e,n){je="useMemo",E(),un();var l=Me.H;Me.H=ld;try{return mp(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",E(),un();var d=Me.H;Me.H=ld;try{return xn(e,n,l)}finally{Me.H=d}},useRef:function(e){return je="useRef",E(),un(),Hd(e)},useState:function(e){je="useState",E(),un();var n=Me.H;Me.H=ld;try{return kl(e)}finally{Me.H=n}},useDebugValue:function(){je="useDebugValue",E(),un()},useDeferredValue:function(e,n){return je="useDeferredValue",E(),un(),vp(e,n)},useTransition:function(){return je="useTransition",E(),un(),Nu()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",E(),un(),Ri(e,n,l)},useId:function(){return je="useId",E(),un(),Ju()},useFormState:function(e,n){return je="useFormState",E(),un(),yf(e,n)},useActionState:function(e,n){return je="useActionState",E(),un(),yf(e,n)},useOptimistic:function(e){return je="useOptimistic",E(),un(),q(e)},useMemoCache:function(e){return E(),Ea(e)},useHostTransitionStatus:_i,useCacheRefresh:function(){return je="useCacheRefresh",un(),sc()}},Hc={readContext:function(e){return C(),ga(e)},use:function(e){return E(),Tu(e)},useCallback:function(e,n){return je="useCallback",E(),et(),lc(e,n)},useContext:function(e){return je="useContext",E(),et(),ga(e)},useEffect:function(e,n){je="useEffect",E(),et(),da(2048,Ci,e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",E(),et(),Rl(e,n,l)},useInsertionEffect:function(e,n){return je="useInsertionEffect",E(),et(),da(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",E(),et(),da(4,cu,e,n)},useMemo:function(e,n){je="useMemo",E(),et();var l=Me.H;Me.H=Hc;try{return yr(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",E(),et();var d=Me.H;Me.H=Hc;try{return Yr(e,n,l)}finally{Me.H=d}},useRef:function(){return je="useRef",E(),et(),Hn().memoizedState},useState:function(){je="useState",E(),et();var e=Me.H;Me.H=Hc;try{return Yr(Gn)}finally{Me.H=e}},useDebugValue:function(){je="useDebugValue",E(),et()},useDeferredValue:function(e,n){return je="useDeferredValue",E(),et(),Vd(e,n)},useTransition:function(){return je="useTransition",E(),et(),rs()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",E(),et(),jd(e,n,l)},useId:function(){return je="useId",E(),et(),Hn().memoizedState},useFormState:function(e){return je="useFormState",E(),et(),fp(e)},useActionState:function(e){return je="useActionState",E(),et(),fp(e)},useOptimistic:function(e,n){return je="useOptimistic",E(),et(),Bi(e,n)},useMemoCache:function(e){return E(),Ea(e)},useHostTransitionStatus:_i,useCacheRefresh:function(){return je="useCacheRefresh",et(),Hn().memoizedState}},p1={readContext:function(e){return C(),ga(e)},use:function(e){return E(),Tu(e)},useCallback:function(e,n){return je="useCallback",E(),et(),lc(e,n)},useContext:function(e){return je="useContext",E(),et(),ga(e)},useEffect:function(e,n){je="useEffect",E(),et(),da(2048,Ci,e,n)},useImperativeHandle:function(e,n,l){return je="useImperativeHandle",E(),et(),Rl(e,n,l)},useInsertionEffect:function(e,n){return je="useInsertionEffect",E(),et(),da(4,pl,e,n)},useLayoutEffect:function(e,n){return je="useLayoutEffect",E(),et(),da(4,cu,e,n)},useMemo:function(e,n){je="useMemo",E(),et();var l=Me.H;Me.H=Hc;try{return yr(e,n)}finally{Me.H=l}},useReducer:function(e,n,l){je="useReducer",E(),et();var d=Me.H;Me.H=Hc;try{return Tl(e,n,l)}finally{Me.H=d}},useRef:function(){return je="useRef",E(),et(),Hn().memoizedState},useState:function(){je="useState",E(),et();var e=Me.H;Me.H=Hc;try{return Tl(Gn)}finally{Me.H=e}},useDebugValue:function(){je="useDebugValue",E(),et()},useDeferredValue:function(e,n){return je="useDeferredValue",E(),et(),gp(e,n)},useTransition:function(){return je="useTransition",E(),et(),oc()},useSyncExternalStore:function(e,n,l){return je="useSyncExternalStore",E(),et(),jd(e,n,l)},useId:function(){return je="useId",E(),et(),Hn().memoizedState},useFormState:function(e){return je="useFormState",E(),et(),bf(e)},useActionState:function(e){return je="useActionState",E(),et(),bf(e)},useOptimistic:function(e,n){return je="useOptimistic",E(),et(),fi(e,n)},useMemoCache:function(e){return E(),Ea(e)},useHostTransitionStatus:_i,useCacheRefresh:function(){return je="useCacheRefresh",et(),Hn().memoizedState}};var Hw={react_stack_bottom_frame:function(e,n,l){var d=Si;Si=!0;try{return e(n,l)}finally{Si=d}}},OD=Hw.react_stack_bottom_frame.bind(Hw),Vw={react_stack_bottom_frame:function(e){var n=Si;Si=!0;try{return e.render()}finally{Si=n}}},qw=Vw.react_stack_bottom_frame.bind(Vw),$w={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(l){Bt(e,e.return,l)}}},TD=$w.react_stack_bottom_frame.bind($w),Gw={react_stack_bottom_frame:function(e,n,l,d,v){try{n.componentDidUpdate(l,d,v)}catch(b){Bt(e,e.return,b)}}},Yw=Gw.react_stack_bottom_frame.bind(Gw),Pw={react_stack_bottom_frame:function(e,n){var l=n.stack;e.componentDidCatch(n.value,{componentStack:l!==null?l:""})}},$N=Pw.react_stack_bottom_frame.bind(Pw),Qw={react_stack_bottom_frame:function(e,n,l){try{l.componentWillUnmount()}catch(d){Bt(e,n,d)}}},Xw=Qw.react_stack_bottom_frame.bind(Qw),Iw={react_stack_bottom_frame:function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var n=e.create;return e=e.inst,n=n(),e.destroy=n}},GN=Iw.react_stack_bottom_frame.bind(Iw),Zw={react_stack_bottom_frame:function(e,n,l){try{l()}catch(d){Bt(e,n,d)}}},YN=Zw.react_stack_bottom_frame.bind(Zw),Kw={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},km=Kw.react_stack_bottom_frame.bind(Kw),$y=null,K0=0,Bn=null,kD,Ww=kD=!1,Jw={},ex={},tx={};y=function(e,n,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var d=J(e),v=d||"null";if(!Jw[v]){Jw[v]=!0,l=l._owner,e=e._debugOwner;var b="";e&&typeof e.tag=="number"&&(v=J(e))&&(b=`
|
|
371
|
-
|
|
372
|
-
Check the render method of \``+v+"`."),b||d&&(b=`
|
|
373
|
-
|
|
374
|
-
Check the top-level render call using <`+d+">.");var O="";l!=null&&e!==l&&(d=null,typeof l.tag=="number"?d=J(l):typeof l.name=="string"&&(d=l.name),d&&(O=" It was passed a child from "+d+".")),ot(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',b,O)})}}};var Gy=fc(!0),nx=fc(!1),Ms=De(null),od=null,Yy=1,W0=2,wi=De(0),ax={},rx=new Set,ix=new Set,ux=new Set,lx=new Set,ox=new Set,sx=new Set,cx=new Set,fx=new Set,dx=new Set,hx=new Set;Object.freeze(ax);var ND={enqueueSetState:function(e,n,l){e=e._reactInternals;var d=Ui(e),v=Al(d);v.payload=n,l!=null&&(Dp(l),v.callback=l),n=ki(e,v,d),n!==null&&(Ua(n,e,d),si(n,e,d)),St(e,d)},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var d=Ui(e),v=Al(d);v.tag=Bw,v.payload=n,l!=null&&(Dp(l),v.callback=l),n=ki(e,v,d),n!==null&&(Ua(n,e,d),si(n,e,d)),St(e,d)},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Ui(e),d=Al(l);d.tag=_w,n!=null&&(Dp(n),d.callback=n),n=ki(e,d,l),n!==null&&(Ua(n,e,l),si(n,e,l)),pt!==null&&typeof pt.markForceUpdateScheduled=="function"&&pt.markForceUpdateScheduled(e,l)}},RD=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Py=null,BD=null,px=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Qi=!1,mx={},vx={},gx={},yx={},Qy=!1,bx={},_D={},FD={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Sx=!1,Dx=null;Dx=new Set;var jh=!1,jr=!1,MD=!1,Ex=typeof WeakSet=="function"?WeakSet:Set,Xi=null,Xy=null,Iy=null,ti=null,eo=!1,Vc=null,J0=8192,PN={getCacheForType:function(e){var n=ga(Ei),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},getOwner:function(){return ou}};if(typeof Symbol=="function"&&Symbol.for){var eb=Symbol.for;eb("selector.component"),eb("selector.has_pseudo_class"),eb("selector.role"),eb("selector.test_id"),eb("selector.text")}var QN=[],XN=typeof WeakMap=="function"?WeakMap:Map,zo=0,ml=2,qc=4,Lh=0,tb=1,Zy=2,zD=3,Dg=4,m1=6,Cx=5,ma=zo,Fa=null,qn=null,Pn=0,to=0,nb=1,Eg=2,ab=3,wx=4,jD=5,Ky=6,rb=7,LD=8,Cg=9,Da=to,jo=null,Nm=!1,Wy=!1,UD=!1,sd=0,wr=Lh,Rm=0,Bm=0,HD=0,Lo=0,wg=0,ib=null,vl=null,v1=!1,VD=0,xx=300,g1=1/0,Ax=500,ub=null,_m=null,IN=0,ZN=1,KN=2,xg=0,Ox=1,Tx=2,kx=3,WN=4,qD=5,fu=0,Fm=null,Jy=null,Mm=0,$D=0,GD=null,Nx=null,JN=50,lb=0,YD=null,PD=!1,y1=!1,eR=50,Ag=0,ob=null,e0=!1,b1=null,Rx=!1,Bx=new Set,tR={},S1=null,t0=null,QD=!1,XD=!1,D1=!1,ID=!1,Og=0,ZD={};(function(){for(var e=0;e<hD.length;e++){var n=hD[e],l=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Wi(l,"on"+n)}Wi(Hu,"onAnimationEnd"),Wi(Pi,"onAnimationIteration"),Wi(Vu,"onAnimationStart"),Wi("dblclick","onDoubleClick"),Wi("focusin","onFocus"),Wi("focusout","onBlur"),Wi(dr,"onTransitionRun"),Wi(Mo,"onTransitionStart"),Wi(jc,"onTransitionCancel"),Wi(U0,"onTransitionEnd")})(),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sb="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),KD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sb)),E1="_reactListening"+Math.random().toString(36).slice(2),_x=!1,Fx=!1,C1=!1,Mx=!1,w1=!1,x1=!1,zx=!1,A1={},nR=/\r\n?/g,aR=/\u0000|\uFFFD/g,Tg="http://www.w3.org/1999/xlink",WD="http://www.w3.org/XML/1998/namespace",rR="javascript:throw new Error('React form unexpectedly submitted.')",iR="suppressHydrationWarning",O1="$",T1="/$",Uh="$?",cb="$!",uR=1,lR=2,oR=4,JD="F!",jx="F",Lx="complete",sR="style",Hh=0,n0=1,k1=2,eE=null,tE=null,Ux={dialog:!0,webview:!0},nE=null,Hx=typeof setTimeout=="function"?setTimeout:void 0,cR=typeof clearTimeout=="function"?clearTimeout:void 0,kg=-1,Vx=typeof Promise=="function"?Promise:void 0,fR=typeof queueMicrotask=="function"?queueMicrotask:typeof Vx<"u"?function(e){return Vx.resolve(null).then(e).catch(Lv)}:Hx,aE=null,Ng=0,fb=1,qx=2,$x=3,zs=4,js=new Map,Gx=new Set,Vh=Gt.d;Gt.d={f:function(){var e=Vh.f(),n=wo();return e||n},r:function(e){var n=Ke(e);n!==null&&n.tag===5&&n.type==="form"?gv(n):Vh.r(e)},D:function(e){Vh.D(e),dy("dns-prefetch",e,null)},C:function(e,n){Vh.C(e,n),dy("preconnect",e,n)},L:function(e,n,l){Vh.L(e,n,l);var d=a0;if(d&&e&&n){var v='link[rel="preload"][as="'+Hr(n)+'"]';n==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+Hr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+Hr(l.imageSizes)+'"]')):v+='[href="'+Hr(e)+'"]';var b=v;switch(n){case"style":b=bs(e);break;case"script":b=Ac(e)}js.has(b)||(e=mn({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),js.set(b,e),d.querySelector(v)!==null||n==="style"&&d.querySelector(Ql(b))||n==="script"&&d.querySelector(Oc(b))||(n=d.createElement("link"),Ha(n,"link",e),Wt(n),d.head.appendChild(n)))}},m:function(e,n){Vh.m(e,n);var l=a0;if(l&&e){var d=n&&typeof n.as=="string"?n.as:"script",v='link[rel="modulepreload"][as="'+Hr(d)+'"][href="'+Hr(e)+'"]',b=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Ac(e)}if(!js.has(b)&&(e=mn({rel:"modulepreload",href:e},n),js.set(b,e),l.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Oc(b)))return}d=l.createElement("link"),Ha(d,"link",e),Wt(d),l.head.appendChild(d)}}},X:function(e,n){Vh.X(e,n);var l=a0;if(l&&e){var d=nn(l).hoistableScripts,v=Ac(e),b=d.get(v);b||(b=l.querySelector(Oc(v)),b||(e=mn({src:e,async:!0},n),(n=js.get(v))&&im(e,n),b=l.createElement("script"),Wt(b),Ha(b,"link",e),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(v,b))}},S:function(e,n,l){Vh.S(e,n,l);var d=a0;if(d&&e){var v=nn(d).hoistableStyles,b=bs(e);n=n||"default";var O=v.get(b);if(!O){var _={loading:Ng,preload:null};if(O=d.querySelector(Ql(b)))_.loading=fb|zs;else{e=mn({rel:"stylesheet",href:e,"data-precedence":n},l),(l=js.get(b))&&Yv(e,l);var Y=O=d.createElement("link");Wt(Y),Ha(Y,"link",e),Y._p=new Promise(function(Q,Te){Y.onload=Q,Y.onerror=Te}),Y.addEventListener("load",function(){_.loading|=fb}),Y.addEventListener("error",function(){_.loading|=qx}),_.loading|=zs,rm(O,n,d)}O={type:"stylesheet",instance:O,count:1,state:_},v.set(b,O)}}},M:function(e,n){Vh.M(e,n);var l=a0;if(l&&e){var d=nn(l).hoistableScripts,v=Ac(e),b=d.get(v);b||(b=l.querySelector(Oc(v)),b||(e=mn({src:e,async:!0,type:"module"},n),(n=js.get(v))&&im(e,n),b=l.createElement("script"),Wt(b),Ha(b,"link",e),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(v,b))}}};var a0=typeof document>"u"?null:document,N1=null,db=null,rE=null,R1=null,Rg=R0,hb={$$typeof:Dr,Provider:null,Consumer:null,_currentValue:Rg,_currentValue2:Rg,_threadCount:0},Yx="%c%s%c ",Px="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Qx="",B1=" ",dR=Function.prototype.bind,Xx=!1,Ix=null,Zx=null,Kx=null,Wx=null,Jx=null,eA=null,tA=null,nA=null,aA=null;Ix=function(e,n,l,d){n=a(e,n),n!==null&&(l=t(n.memoizedState,l,0,d),n.memoizedState=l,n.baseState=l,e.memoizedProps=mn({},e.memoizedProps),l=qr(e,2),l!==null&&Ua(l,e,2))},Zx=function(e,n,l){n=a(e,n),n!==null&&(l=s(n.memoizedState,l,0),n.memoizedState=l,n.baseState=l,e.memoizedProps=mn({},e.memoizedProps),l=qr(e,2),l!==null&&Ua(l,e,2))},Kx=function(e,n,l,d){n=a(e,n),n!==null&&(l=r(n.memoizedState,l,d),n.memoizedState=l,n.baseState=l,e.memoizedProps=mn({},e.memoizedProps),l=qr(e,2),l!==null&&Ua(l,e,2))},Wx=function(e,n,l){e.pendingProps=t(e.memoizedProps,n,0,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=qr(e,2),n!==null&&Ua(n,e,2)},Jx=function(e,n){e.pendingProps=s(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=qr(e,2),n!==null&&Ua(n,e,2)},eA=function(e,n,l){e.pendingProps=r(e.memoizedProps,n,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=qr(e,2),n!==null&&Ua(n,e,2)},tA=function(e){var n=qr(e,2);n!==null&&Ua(n,e,2)},nA=function(e){g=e},aA=function(e){h=e};var _1=!0,F1=null,iE=!1,zm=null,jm=null,Lm=null,pb=new Map,mb=new Map,Um=[],hR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),M1=null;if(yh.prototype.render=dm.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=e;var d=n.current,v=Ui(d);oa(d,v,l,n,null,null)},yh.prototype.unmount=dm.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(ma&(ml|qc))!==zo&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),oa(e.current,2,null,e,null,null),wo(),n[ws]=null}},yh.prototype.unstable_scheduleHydration=function(e){if(e){var n=ai();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Um.length&&n!==0&&n<Um[l].priority;l++);Um.splice(l,0,e),l===0&&yy(e)}},function(){var e=bh.version;if(e!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
375
|
-
- react: `+(e+`
|
|
376
|
-
- react-dom: 19.1.1
|
|
377
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Gt.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=H(n),e=e!==null?G(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Me,reconcilerVersion:"19.1.1"};return e.overrideHookState=Ix,e.overrideHookStateDeletePath=Zx,e.overrideHookStateRenamePath=Kx,e.overrideProps=Wx,e.overridePropsDeletePath=Jx,e.overridePropsRenamePath=eA,e.scheduleUpdate=tA,e.setErrorHandler=nA,e.setSuspenseHandler=aA,e.scheduleRefresh=z,e.scheduleRoot=R,e.setRefreshHandler=V,e.getCurrentFiber=cm,e.getLaneLabelMap=k0,e.injectProfilingHooks=_n,bt(e)}()&&te&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var rA=window.location.protocol;/^(https?|file):$/.test(rA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(rA==="file:"?`
|
|
378
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Db.createRoot=function(e,n){if(!L(e))throw Error("Target container is not a DOM element.");Sy(e);var l=!1,d="",v=yv,b=Cp,O=wp,_=null;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===Es&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
379
|
-
|
|
380
|
-
let root = createRoot(domContainer);
|
|
381
|
-
root.render(<App />);`),n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onUncaughtError!==void 0&&(v=n.onUncaughtError),n.onCaughtError!==void 0&&(b=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(_=n.unstable_transitionCallbacks)),n=Qv(e,1,!1,null,null,l,d,v,b,O,_,null),e[ws]=n.current,Rv(e),new dm(n)},Db.hydrateRoot=function(e,n,l){if(!L(e))throw Error("Target container is not a DOM element.");Sy(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=!1,v="",b=yv,O=Cp,_=wp,Y=null,Q=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(O=l.onCaughtError),l.onRecoverableError!==void 0&&(_=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(Y=l.unstable_transitionCallbacks),l.formState!==void 0&&(Q=l.formState)),n=Qv(e,1,!0,n,l??null,d,v,b,O,_,Y,Q),n.context=Xv(null),l=n.current,d=Ui(l),d=Xt(d),v=Al(d),v.callback=null,ki(l,v,d),l=d,n.current.lanes=l,va(n,l),Hi(n),e[ws]=n.current,Rv(e),new yh(n)},Db.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Db}var sk;function c5(){if(sk)return aS.exports;sk=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(a(),aS.exports=o5()):aS.exports=s5(),aS.exports}var f5=c5();const fn=a=>typeof a=="string",Eb=()=>{let a,t;const r=new Promise((u,s)=>{a=u,t=s});return r.resolve=a,r.reject=t,r},ck=a=>a==null?"":""+a,d5=(a,t,r)=>{a.forEach(u=>{t[u]&&(r[u]=t[u])})},h5=/###/g,fk=a=>a&&a.indexOf("###")>-1?a.replace(h5,"."):a,dk=a=>!a||fn(a),Bb=(a,t,r)=>{const u=fn(t)?t.split("."):t;let s=0;for(;s<u.length-1;){if(dk(a))return{};const h=fk(u[s]);!a[h]&&r&&(a[h]=new r),Object.prototype.hasOwnProperty.call(a,h)?a=a[h]:a={},++s}return dk(a)?{}:{obj:a,k:fk(u[s])}},hk=(a,t,r)=>{const{obj:u,k:s}=Bb(a,t,Object);if(u!==void 0||t.length===1){u[s]=r;return}let h=t[t.length-1],g=t.slice(0,t.length-1),y=Bb(a,g,Object);for(;y.obj===void 0&&g.length;)h=`${g[g.length-1]}.${h}`,g=g.slice(0,g.length-1),y=Bb(a,g,Object),y?.obj&&typeof y.obj[`${y.k}.${h}`]<"u"&&(y.obj=void 0);y.obj[`${y.k}.${h}`]=r},p5=(a,t,r,u)=>{const{obj:s,k:h}=Bb(a,t,Object);s[h]=s[h]||[],s[h].push(r)},BS=(a,t)=>{const{obj:r,k:u}=Bb(a,t);if(r&&Object.prototype.hasOwnProperty.call(r,u))return r[u]},m5=(a,t,r)=>{const u=BS(a,r);return u!==void 0?u:BS(t,r)},BN=(a,t,r)=>{for(const u in t)u!=="__proto__"&&u!=="constructor"&&(u in a?fn(a[u])||a[u]instanceof String||fn(t[u])||t[u]instanceof String?r&&(a[u]=t[u]):BN(a[u],t[u],r):a[u]=t[u]);return a},o0=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var v5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g5=a=>fn(a)?a.replace(/[&<>"'\/]/g,t=>v5[t]):a;class y5{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const u=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,u),this.regExpQueue.push(t),u}}const b5=[" ",",","?","!",";"],S5=new y5(20),D5=(a,t,r)=>{t=t||"",r=r||"";const u=b5.filter(g=>t.indexOf(g)<0&&r.indexOf(g)<0);if(u.length===0)return!0;const s=S5.getRegExp(`(${u.map(g=>g==="?"?"\\?":g).join("|")})`);let h=!s.test(a);if(!h){const g=a.indexOf(r);g>0&&!s.test(a.substring(0,g))&&(h=!0)}return h},_C=(a,t,r=".")=>{if(!a)return;if(a[t])return Object.prototype.hasOwnProperty.call(a,t)?a[t]:void 0;const u=t.split(r);let s=a;for(let h=0;h<u.length;){if(!s||typeof s!="object")return;let g,y="";for(let E=h;E<u.length;++E)if(E!==h&&(y+=r),y+=u[E],g=s[y],g!==void 0){if(["string","number","boolean"].indexOf(typeof g)>-1&&E<u.length-1)continue;h+=E-h+1;break}s=g}return s},Yb=a=>a?.replace("_","-"),E5={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,t){console?.[a]?.apply?.(console,t)}};class _S{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||E5,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,u,s){return s&&!this.debug?null:(fn(t[0])&&(t[0]=`${u}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new _S(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _S(this.logger,t)}}var dd=new _S;class IS{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(u=>{this.observers[u]||(this.observers[u]=new Map);const s=this.observers[u].get(r)||0;this.observers[u].set(r,s+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([s,h])=>{for(let g=0;g<h;g++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,h])=>{for(let g=0;g<h;g++)s.apply(s,[t,...r])})}}class pk extends IS{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,u,s={}){const h=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,g=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let y;t.indexOf(".")>-1?y=t.split("."):(y=[t,r],u&&(Array.isArray(u)?y.push(...u):fn(u)&&h?y.push(...u.split(h)):y.push(u)));const E=BS(this.data,y);return!E&&!r&&!u&&t.indexOf(".")>-1&&(t=y[0],r=y[1],u=y.slice(2).join(".")),E||!g||!fn(u)?E:_C(this.data?.[t]?.[r],u,h)}addResource(t,r,u,s,h={silent:!1}){const g=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator;let y=[t,r];u&&(y=y.concat(g?u.split(g):u)),t.indexOf(".")>-1&&(y=t.split("."),s=r,r=y[1]),this.addNamespaces(r),hk(this.data,y,s),h.silent||this.emit("added",t,r,u,s)}addResources(t,r,u,s={silent:!1}){for(const h in u)(fn(u[h])||Array.isArray(u[h]))&&this.addResource(t,r,h,u[h],{silent:!0});s.silent||this.emit("added",t,r,u)}addResourceBundle(t,r,u,s,h,g={silent:!1,skipCopy:!1}){let y=[t,r];t.indexOf(".")>-1&&(y=t.split("."),s=u,u=r,r=y[1]),this.addNamespaces(r);let E=BS(this.data,y)||{};g.skipCopy||(u=JSON.parse(JSON.stringify(u))),s?BN(E,u,h):E={...E,...u},hk(this.data,y,E),g.silent||this.emit("added",t,r,u)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(s=>r[s]&&Object.keys(r[s]).length>0)}toJSON(){return this.data}}var _N={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,t,r,u,s){return a.forEach(h=>{t=this.processors[h]?.process(t,r,u,s)??t}),t}};const FN=Symbol("i18next/PATH_KEY");function C5(){const a=[],t=Object.create(null);let r;return t.get=(u,s)=>(r?.revoke?.(),s===FN?a:(a.push(s),r=Proxy.revocable(u,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function w5(a,t){const{[FN]:r}=a(C5());return r.join(t?.keySeparator??".")}const mk={},vk=a=>!fn(a)&&typeof a!="boolean"&&typeof a!="number";class FS extends IS{constructor(t,r={}){super(),d5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dd.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const u={...r};return t==null?!1:this.resolve(t,u)?.res!==void 0}extractFromKey(t,r){let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let h=r.ns||this.options.defaultNS||[];const g=u&&t.indexOf(u)>-1,y=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!D5(t,u,s);if(g&&!y){const E=t.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:t,namespaces:fn(h)?[h]:h};const C=t.split(u);(u!==s||u===s&&this.options.ns.indexOf(C[0])>-1)&&(h=C.shift()),t=C.join(s)}return{key:t,namespaces:fn(h)?[h]:h}}translate(t,r,u){let s=typeof r=="object"?{...r}:r;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),t==null)return"";typeof t=="function"&&(t=w5(t,s)),Array.isArray(t)||(t=[String(t)]);const h=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,g=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:y,namespaces:E}=this.extractFromKey(t[t.length-1],s),C=E[E.length-1];let A=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;A===void 0&&(A=":");const T=s.lng||this.language,N=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(T?.toLowerCase()==="cimode")return N?h?{res:`${C}${A}${y}`,usedKey:y,exactUsedKey:y,usedLng:T,usedNS:C,usedParams:this.getUsedParamsDetails(s)}:`${C}${A}${y}`:h?{res:y,usedKey:y,exactUsedKey:y,usedLng:T,usedNS:C,usedParams:this.getUsedParamsDetails(s)}:y;const R=this.resolve(t,s);let z=R?.res;const V=R?.usedKey||y,L=R?.exactUsedKey||y,M=["[object Number]","[object Function]","[object RegExp]"],x=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,B=!this.i18nFormat||this.i18nFormat.handleAsObject,H=s.count!==void 0&&!fn(s.count),G=FS.hasDefaultValue(s),W=H?this.pluralResolver.getSuffix(T,s.count,s):"",X=s.ordinal&&H?this.pluralResolver.getSuffix(T,s.count,{ordinal:!1}):"",ee=H&&!s.ordinal&&s.count===0,J=ee&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${W}`]||s[`defaultValue${X}`]||s.defaultValue;let De=z;B&&!z&&G&&(De=J);const ke=vk(De),ye=Object.prototype.toString.apply(De);if(B&&De&&ke&&M.indexOf(ye)<0&&!(fn(x)&&Array.isArray(De))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const be=this.options.returnedObjectHandler?this.options.returnedObjectHandler(V,De,{...s,ns:E}):`key '${y} (${this.language})' returned an object instead of string.`;return h?(R.res=be,R.usedParams=this.getUsedParamsDetails(s),R):be}if(g){const be=Array.isArray(De),Ee=be?[]:{},ze=be?L:V;for(const K in De)if(Object.prototype.hasOwnProperty.call(De,K)){const ue=`${ze}${g}${K}`;G&&!z?Ee[K]=this.translate(ue,{...s,defaultValue:vk(J)?J[K]:void 0,joinArrays:!1,ns:E}):Ee[K]=this.translate(ue,{...s,joinArrays:!1,ns:E}),Ee[K]===ue&&(Ee[K]=De[K])}z=Ee}}else if(B&&fn(x)&&Array.isArray(z))z=z.join(x),z&&(z=this.extendTranslation(z,t,s,u));else{let be=!1,Ee=!1;!this.isValidLookup(z)&&G&&(be=!0,z=J),this.isValidLookup(z)||(Ee=!0,z=y);const K=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ee?void 0:z,ue=G&&J!==z&&this.options.updateMissing;if(Ee||be||ue){if(this.logger.log(ue?"updateKey":"missingKey",T,C,y,ue?J:z),g){const Re=this.resolve(y,{...s,keySeparator:!1});Re&&Re.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let pe=[];const Ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ve&&Ve[0])for(let Re=0;Re<Ve.length;Re++)pe.push(Ve[Re]);else this.options.saveMissingTo==="all"?pe=this.languageUtils.toResolveHierarchy(s.lng||this.language):pe.push(s.lng||this.language);const fe=(Re,Le,he)=>{const nt=G&&he!==z?he:K;this.options.missingKeyHandler?this.options.missingKeyHandler(Re,C,Le,nt,ue,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Re,C,Le,nt,ue,s),this.emit("missingKey",Re,C,Le,z)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?pe.forEach(Re=>{const Le=this.pluralResolver.getSuffixes(Re,s);ee&&s[`defaultValue${this.options.pluralSeparator}zero`]&&Le.indexOf(`${this.options.pluralSeparator}zero`)<0&&Le.push(`${this.options.pluralSeparator}zero`),Le.forEach(he=>{fe([Re],y+he,s[`defaultValue${he}`]||J)})}):fe(pe,y,J))}z=this.extendTranslation(z,t,s,R,u),Ee&&z===y&&this.options.appendNamespaceToMissingKey&&(z=`${C}${A}${y}`),(Ee||be)&&this.options.parseMissingKeyHandler&&(z=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${C}${A}${y}`:y,be?z:void 0,s))}return h?(R.res=z,R.usedParams=this.getUsedParamsDetails(s),R):z}extendTranslation(t,r,u,s,h){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const E=fn(t)&&(u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let C;if(E){const T=t.match(this.interpolator.nestingRegexp);C=T&&T.length}let A=u.replace&&!fn(u.replace)?u.replace:u;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),t=this.interpolator.interpolate(t,A,u.lng||this.language||s.usedLng,u),E){const T=t.match(this.interpolator.nestingRegexp),N=T&&T.length;C<N&&(u.nest=!1)}!u.lng&&s&&s.res&&(u.lng=this.language||s.usedLng),u.nest!==!1&&(t=this.interpolator.nest(t,(...T)=>h?.[0]===T[0]&&!u.context?(this.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${r[0]}`),null):this.translate(...T,r),u)),u.interpolation&&this.interpolator.reset()}const g=u.postProcess||this.options.postProcess,y=fn(g)?[g]:g;return t!=null&&y?.length&&u.applyPostProcessor!==!1&&(t=_N.handle(y,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),t}resolve(t,r={}){let u,s,h,g,y;return fn(t)&&(t=[t]),t.forEach(E=>{if(this.isValidLookup(u))return;const C=this.extractFromKey(E,r),A=C.key;s=A;let T=C.namespaces;this.options.fallbackNS&&(T=T.concat(this.options.fallbackNS));const N=r.count!==void 0&&!fn(r.count),R=N&&!r.ordinal&&r.count===0,z=r.context!==void 0&&(fn(r.context)||typeof r.context=="number")&&r.context!=="",V=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);T.forEach(L=>{this.isValidLookup(u)||(y=L,!mk[`${V[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(y)&&(mk[`${V[0]}-${L}`]=!0,this.logger.warn(`key "${s}" for languages "${V.join(", ")}" won't get resolved as namespace "${y}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),V.forEach(M=>{if(this.isValidLookup(u))return;g=M;const x=[A];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(x,A,M,L,r);else{let H;N&&(H=this.pluralResolver.getSuffix(M,r.count,r));const G=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(r.ordinal&&H.indexOf(W)===0&&x.push(A+H.replace(W,this.options.pluralSeparator)),x.push(A+H),R&&x.push(A+G)),z){const X=`${A}${this.options.contextSeparator||"_"}${r.context}`;x.push(X),N&&(r.ordinal&&H.indexOf(W)===0&&x.push(X+H.replace(W,this.options.pluralSeparator)),x.push(X+H),R&&x.push(X+G))}}let B;for(;B=x.pop();)this.isValidLookup(u)||(h=B,u=this.getResource(M,L,B,r))}))})}),{res:u,usedKey:s,exactUsedKey:h,usedLng:g,usedNS:y}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,u,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,u,s):this.resourceStore.getResource(t,r,u,s)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=t.replace&&!fn(t.replace);let s=u?t.replace:t;if(u&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!u){s={...s};for(const h of r)delete s[h]}return s}static hasDefaultValue(t){const r="defaultValue";for(const u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&r===u.substring(0,r.length)&&t[u]!==void 0)return!0;return!1}}class gk{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dd.create("languageUtils")}getScriptPartFromCode(t){if(t=Yb(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Yb(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(fn(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(u=>{if(r)return;const s=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(s))&&(r=s)}),!r&&this.options.supportedLngs&&t.forEach(u=>{if(r)return;const s=this.getScriptPartFromCode(u);if(this.isSupportedCode(s))return r=s;const h=this.getLanguagePartFromCode(u);if(this.isSupportedCode(h))return r=h;r=this.options.supportedLngs.find(g=>{if(g===h)return g;if(!(g.indexOf("-")<0&&h.indexOf("-")<0)&&(g.indexOf("-")>0&&h.indexOf("-")<0&&g.substring(0,g.indexOf("-"))===h||g.indexOf(h)===0&&h.length>1))return g})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),fn(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let u=t[r];return u||(u=t[this.getScriptPartFromCode(r)]),u||(u=t[this.formatLanguageCode(r)]),u||(u=t[this.getLanguagePartFromCode(r)]),u||(u=t.default),u||[]}toResolveHierarchy(t,r){const u=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),s=[],h=g=>{g&&(this.isSupportedCode(g)?s.push(g):this.logger.warn(`rejecting language code not found in supportedLngs: ${g}`))};return fn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&h(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&h(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&h(this.getLanguagePartFromCode(t))):fn(t)&&h(this.formatLanguageCode(t)),u.forEach(g=>{s.indexOf(g)<0&&h(this.formatLanguageCode(g))}),s}}const yk={zero:0,one:1,two:2,few:3,many:4,other:5},bk={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class x5{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=dd.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const u=Yb(t==="dev"?"en":t),s=r.ordinal?"ordinal":"cardinal",h=JSON.stringify({cleanedCode:u,type:s});if(h in this.pluralRulesCache)return this.pluralRulesCache[h];let g;try{g=new Intl.PluralRules(u,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),bk;if(!t.match(/-|_/))return bk;const E=this.languageUtils.getLanguagePartFromCode(t);g=this.getRule(E,r)}return this.pluralRulesCache[h]=g,g}needsPlural(t,r={}){let u=this.getRule(t,r);return u||(u=this.getRule("dev",r)),u?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,u={}){return this.getSuffixes(t,u).map(s=>`${r}${s}`)}getSuffixes(t,r={}){let u=this.getRule(t,r);return u||(u=this.getRule("dev",r)),u?u.resolvedOptions().pluralCategories.sort((s,h)=>yk[s]-yk[h]).map(s=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(t,r,u={}){const s=this.getRule(t,u);return s?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${s.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,u))}}const Sk=(a,t,r,u=".",s=!0)=>{let h=m5(a,t,r);return!h&&s&&fn(r)&&(h=_C(a,r,u),h===void 0&&(h=_C(t,r,u))),h},ZE=a=>a.replace(/\$/g,"$$$$");class A5{constructor(t={}){this.logger=dd.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:u,useRawValueToEscape:s,prefix:h,prefixEscaped:g,suffix:y,suffixEscaped:E,formatSeparator:C,unescapeSuffix:A,unescapePrefix:T,nestingPrefix:N,nestingPrefixEscaped:R,nestingSuffix:z,nestingSuffixEscaped:V,nestingOptionsSeparator:L,maxReplaces:M,alwaysFormat:x}=t.interpolation;this.escape=r!==void 0?r:g5,this.escapeValue=u!==void 0?u:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=h?o0(h):g||"{{",this.suffix=y?o0(y):E||"}}",this.formatSeparator=C||",",this.unescapePrefix=A?"":T||"-",this.unescapeSuffix=this.unescapePrefix?"":A||"",this.nestingPrefix=N?o0(N):R||o0("$t("),this.nestingSuffix=z?o0(z):V||o0(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=M||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,u)=>r?.source===u?(r.lastIndex=0,r):new RegExp(u,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,u,s){let h,g,y;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},C=R=>{if(R.indexOf(this.formatSeparator)<0){const M=Sk(r,E,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,u,{...s,...r,interpolationkey:R}):M}const z=R.split(this.formatSeparator),V=z.shift().trim(),L=z.join(this.formatSeparator).trim();return this.format(Sk(r,E,V,this.options.keySeparator,this.options.ignoreJSONStructure),L,u,{...s,...r,interpolationkey:V})};this.resetRegExp();const A=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,T=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>ZE(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?ZE(this.escape(R)):ZE(R)}].forEach(R=>{for(y=0;h=R.regex.exec(t);){const z=h[1].trim();if(g=C(z),g===void 0)if(typeof A=="function"){const L=A(t,h,s);g=fn(L)?L:""}else if(s&&Object.prototype.hasOwnProperty.call(s,z))g="";else if(T){g=h[0];continue}else this.logger.warn(`missed to pass in variable ${z} for interpolating ${t}`),g="";else!fn(g)&&!this.useRawValueToEscape&&(g=ck(g));const V=R.safeValue(g);if(t=t.replace(h[0],V),T?(R.regex.lastIndex+=g.length,R.regex.lastIndex-=h[0].length):R.regex.lastIndex=0,y++,y>=this.maxReplaces)break}}),t}nest(t,r,u={}){let s,h,g;const y=(E,C)=>{const A=this.nestingOptionsSeparator;if(E.indexOf(A)<0)return E;const T=E.split(new RegExp(`${A}[ ]*{`));let N=`{${T[1]}`;E=T[0],N=this.interpolate(N,g);const R=N.match(/'/g),z=N.match(/"/g);((R?.length??0)%2===0&&!z||z.length%2!==0)&&(N=N.replace(/'/g,'"'));try{g=JSON.parse(N),C&&(g={...C,...g})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,V),`${E}${A}${N}`}return g.defaultValue&&g.defaultValue.indexOf(this.prefix)>-1&&delete g.defaultValue,E};for(;s=this.nestingRegexp.exec(t);){let E=[];g={...u},g=g.replace&&!fn(g.replace)?g.replace:g,g.applyPostProcessor=!1,delete g.defaultValue;const C=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(C!==-1&&(E=s[1].slice(C).split(this.formatSeparator).map(A=>A.trim()).filter(Boolean),s[1]=s[1].slice(0,C)),h=r(y.call(this,s[1].trim(),g),g),h&&s[0]===t&&!fn(h))return h;fn(h)||(h=ck(h)),h||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),h=""),E.length&&(h=E.reduce((A,T)=>this.format(A,T,u.lng,{...u,interpolationkey:s[1].trim()}),h.trim())),t=t.replace(s[0],h),this.regexp.lastIndex=0}return t}}const O5=a=>{let t=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const u=a.split("(");t=u[0].toLowerCase().trim();const s=u[1].substring(0,u[1].length-1);t==="currency"&&s.indexOf(":")<0?r.currency||(r.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?r.range||(r.range=s.trim()):s.split(";").forEach(g=>{if(g){const[y,...E]=g.split(":"),C=E.join(":").trim().replace(/^'+|'+$/g,""),A=y.trim();r[A]||(r[A]=C),C==="false"&&(r[A]=!1),C==="true"&&(r[A]=!0),isNaN(C)||(r[A]=parseInt(C,10))}})}return{formatName:t,formatOptions:r}},Dk=a=>{const t={};return(r,u,s)=>{let h=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(h={...h,[s.interpolationkey]:void 0});const g=u+JSON.stringify(h);let y=t[g];return y||(y=a(Yb(u),s),t[g]=y),y(r)}},T5=a=>(t,r,u)=>a(Yb(r),u)(t);class k5{constructor(t={}){this.logger=dd.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const u=r.cacheInBuiltFormats?Dk:T5;this.formats={number:u((s,h)=>{const g=new Intl.NumberFormat(s,{...h});return y=>g.format(y)}),currency:u((s,h)=>{const g=new Intl.NumberFormat(s,{...h,style:"currency"});return y=>g.format(y)}),datetime:u((s,h)=>{const g=new Intl.DateTimeFormat(s,{...h});return y=>g.format(y)}),relativetime:u((s,h)=>{const g=new Intl.RelativeTimeFormat(s,{...h});return y=>g.format(y,h.range||"day")}),list:u((s,h)=>{const g=new Intl.ListFormat(s,{...h});return y=>g.format(y)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Dk(r)}format(t,r,u,s={}){const h=r.split(this.formatSeparator);if(h.length>1&&h[0].indexOf("(")>1&&h[0].indexOf(")")<0&&h.find(y=>y.indexOf(")")>-1)){const y=h.findIndex(E=>E.indexOf(")")>-1);h[0]=[h[0],...h.splice(1,y)].join(this.formatSeparator)}return h.reduce((y,E)=>{const{formatName:C,formatOptions:A}=O5(E);if(this.formats[C]){let T=y;try{const N=s?.formatParams?.[s.interpolationkey]||{},R=N.locale||N.lng||s.locale||s.lng||u;T=this.formats[C](y,R,{...A,...s,...N})}catch(N){this.logger.warn(N)}return T}else this.logger.warn(`there was no format function for ${C}`);return y},t)}}const N5=(a,t)=>{a.pending[t]!==void 0&&(delete a.pending[t],a.pendingCount--)};class R5 extends IS{constructor(t,r,u,s={}){super(),this.backend=t,this.store=r,this.services=u,this.languageUtils=u.languageUtils,this.options=s,this.logger=dd.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(u,s.backend,s)}queueLoad(t,r,u,s){const h={},g={},y={},E={};return t.forEach(C=>{let A=!0;r.forEach(T=>{const N=`${C}|${T}`;!u.reload&&this.store.hasResourceBundle(C,T)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?g[N]===void 0&&(g[N]=!0):(this.state[N]=1,A=!1,g[N]===void 0&&(g[N]=!0),h[N]===void 0&&(h[N]=!0),E[T]===void 0&&(E[T]=!0)))}),A||(y[C]=!0)}),(Object.keys(h).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(h),pending:Object.keys(g),toLoadLanguages:Object.keys(y),toLoadNamespaces:Object.keys(E)}}loaded(t,r,u){const s=t.split("|"),h=s[0],g=s[1];r&&this.emit("failedLoading",h,g,r),!r&&u&&this.store.addResourceBundle(h,g,u,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&u&&(this.state[t]=0);const y={};this.queue.forEach(E=>{p5(E.loaded,[h],g),N5(E,t),r&&E.errors.push(r),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(C=>{y[C]||(y[C]={});const A=E.loaded[C];A.length&&A.forEach(T=>{y[C][T]===void 0&&(y[C][T]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(E=>!E.done)}read(t,r,u,s=0,h=this.retryTimeout,g){if(!t.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:u,tried:s,wait:h,callback:g});return}this.readingCalls++;const y=(C,A)=>{if(this.readingCalls--,this.waitingReads.length>0){const T=this.waitingReads.shift();this.read(T.lng,T.ns,T.fcName,T.tried,T.wait,T.callback)}if(C&&A&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,u,s+1,h*2,g)},h);return}g(C,A)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const C=E(t,r);C&&typeof C.then=="function"?C.then(A=>y(null,A)).catch(y):y(null,C)}catch(C){y(C)}return}return E(t,r,y)}prepareLoading(t,r,u={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();fn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),fn(r)&&(r=[r]);const h=this.queueLoad(t,r,u,s);if(!h.toLoad.length)return h.pending.length||s(),null;h.toLoad.forEach(g=>{this.loadOne(g)})}load(t,r,u){this.prepareLoading(t,r,{},u)}reload(t,r,u){this.prepareLoading(t,r,{reload:!0},u)}loadOne(t,r=""){const u=t.split("|"),s=u[0],h=u[1];this.read(s,h,"read",void 0,void 0,(g,y)=>{g&&this.logger.warn(`${r}loading namespace ${h} for language ${s} failed`,g),!g&&y&&this.logger.log(`${r}loaded namespace ${h} for language ${s}`,y),this.loaded(t,g,y)})}saveMissing(t,r,u,s,h,g={},y=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${u}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(u==null||u==="")){if(this.backend?.create){const E={...g,isUpdate:h},C=this.backend.create.bind(this.backend);if(C.length<6)try{let A;C.length===5?A=C(t,r,u,s,E):A=C(t,r,u,s),A&&typeof A.then=="function"?A.then(T=>y(null,T)).catch(y):y(null,A)}catch(A){y(A)}else C(t,r,u,s,y,E)}!t||!t[0]||this.store.addResource(t[0],r,u,s)}}}const Ek=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let t={};if(typeof a[1]=="object"&&(t=a[1]),fn(a[1])&&(t.defaultValue=a[1]),fn(a[2])&&(t.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const r=a[3]||a[2];Object.keys(r).forEach(u=>{t[u]=r[u]})}return t},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ck=a=>(fn(a.ns)&&(a.ns=[a.ns]),fn(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),fn(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a),iS=()=>{},B5=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})};class Pb extends IS{constructor(t={},r){if(super(),this.options=Ck(t),this.services={},this.logger=dd,this.modules={external:[]},B5(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(fn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const u=Ek();this.options={...u,...this.options,...Ck(t)},this.options.interpolation={...u.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const s=C=>C?typeof C=="function"?new C:C:null;if(!this.options.isClone){this.modules.logger?dd.init(s(this.modules.logger),this.options):dd.init(null,this.options);let C;this.modules.formatter?C=this.modules.formatter:C=k5;const A=new gk(this.options);this.store=new pk(this.options.resources,this.options);const T=this.services;T.logger=dd,T.resourceStore=this.store,T.languageUtils=A,T.pluralResolver=new x5(A,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==u.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),C&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(T.formatter=s(C),T.formatter.init&&T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new A5(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new R5(s(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",(R,...z)=>{this.emit(R,...z)}),this.modules.languageDetector&&(T.languageDetector=s(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=s(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new FS(this.services,this.options),this.translator.on("*",(R,...z)=>{this.emit(R,...z)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,r||(r=iS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const C=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);C.length>0&&C[0]!=="dev"&&(this.options.lng=C[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(C=>{this[C]=(...A)=>this.store[C](...A)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(C=>{this[C]=(...A)=>(this.store[C](...A),this)});const y=Eb(),E=()=>{const C=(A,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),y.resolve(T),r(A,T)};if(this.languages&&!this.isInitialized)return C(null,this.t.bind(this));this.changeLanguage(this.options.lng,C)};return this.options.resources||!this.options.initAsync?E():setTimeout(E,0),y}loadResources(t,r=iS){let u=r;const s=fn(t)?t:this.language;if(typeof t=="function"&&(u=t),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const h=[],g=y=>{if(!y||y==="cimode")return;this.services.languageUtils.toResolveHierarchy(y).forEach(C=>{C!=="cimode"&&h.indexOf(C)<0&&h.push(C)})};s?g(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>g(E)),this.options.preload?.forEach?.(y=>g(y)),this.services.backendConnector.load(h,this.options.ns,y=>{!y&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(y)})}else u(null)}reloadResources(t,r,u){const s=Eb();return typeof t=="function"&&(u=t,t=void 0),typeof r=="function"&&(u=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),u||(u=iS),this.services.backendConnector.reload(t,r,h=>{s.resolve(),u(h)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&_N.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r<this.languages.length;r++){const u=this.languages[r];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const u=Eb();this.emit("languageChanging",t);const s=y=>{this.language=y,this.languages=this.services.languageUtils.toResolveHierarchy(y),this.resolvedLanguage=void 0,this.setResolvedLanguage(y)},h=(y,E)=>{E?this.isLanguageChangingTo===t&&(s(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,u.resolve((...C)=>this.t(...C)),r&&r(y,(...C)=>this.t(...C))},g=y=>{!t&&!y&&this.services.languageDetector&&(y=[]);const E=fn(y)?y:y&&y[0],C=this.store.hasLanguageSomeTranslations(E)?E:this.services.languageUtils.getBestMatchFromCodes(fn(y)?[y]:y);C&&(this.language||s(C),this.translator.language||this.translator.changeLanguage(C),this.services.languageDetector?.cacheUserLanguage?.(C)),this.loadResources(C,A=>{h(A,C)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(t),u}getFixedT(t,r,u){const s=(h,g,...y)=>{let E;typeof g!="object"?E=this.options.overloadTranslationOptionHandler([h,g].concat(y)):E={...g},E.lng=E.lng||s.lng,E.lngs=E.lngs||s.lngs,E.ns=E.ns||s.ns,E.keyPrefix!==""&&(E.keyPrefix=E.keyPrefix||u||s.keyPrefix);const C=this.options.keySeparator||".";let A;return E.keyPrefix&&Array.isArray(h)?A=h.map(T=>`${E.keyPrefix}${C}${T}`):A=E.keyPrefix?`${E.keyPrefix}${C}${h}`:h,this.t(A,E)};return fn(t)?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=u,s}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const u=r.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,h=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const g=(y,E)=>{const C=this.services.backendConnector.state[`${y}|${E}`];return C===-1||C===0||C===2};if(r.precheck){const y=r.precheck(this,g);if(y!==void 0)return y}return!!(this.hasResourceBundle(u,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(u,t)&&(!s||g(h,t)))}loadNamespaces(t,r){const u=Eb();return this.options.ns?(fn(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{u.resolve(),r&&r(s)}),u):(r&&r(),Promise.resolve())}loadLanguages(t,r){const u=Eb();fn(t)&&(t=[t]);const s=this.options.preload||[],h=t.filter(g=>s.indexOf(g)<0&&this.services.languageUtils.isSupportedCode(g));return h.length?(this.options.preload=s.concat(h),this.loadResources(g=>{u.resolve(),r&&r(g)}),u):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const h=s.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],u=this.services?.languageUtils||new gk(Ek());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(u.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){return new Pb(t,r)}cloneInstance(t={},r=iS){const u=t.forkResourceStore;u&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},h=new Pb(s);if((t.debug!==void 0||t.prefix!==void 0)&&(h.logger=h.logger.clone(t)),["store","services","language"].forEach(y=>{h[y]=this[y]}),h.services={...this.services},h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},u){const y=Object.keys(this.store.data).reduce((E,C)=>(E[C]={...this.store.data[C]},E[C]=Object.keys(E[C]).reduce((A,T)=>(A[T]={...E[C][T]},A),E[C]),E),{});h.store=new pk(y,s),h.services.resourceStore=h.store}return h.translator=new FS(h.services,s),h.translator.on("*",(y,...E)=>{h.emit(y,...E)}),h.init(s,r),h.translator.options=s,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vu=Pb.createInstance();vu.createInstance=Pb.createInstance;vu.createInstance;vu.dir;vu.init;vu.loadResources;vu.reloadResources;vu.use;vu.changeLanguage;vu.getFixedT;vu.t;vu.exists;vu.setDefaultNamespace;vu.hasLoadedNamespace;vu.loadNamespaces;vu.loadLanguages;const _5={word:{cancel:"Cancel",save:"Save",load_more:"Load more",back_to:"Back to"}},F5={placeholder:"Enter some text or use the / command",toolbar:{link:{title:"Link",enter_link:"Enter a link",new_tab:"Open link in new tab",add_link:"Add link",select_section:"Select a section",select_section_description:"Select a content block to link to a specific section",no_results_found:"No results found",enter_display_text:"Enter a display text",display_text:"Display text",row:"Row",remove_anchor:"Remove anchor"},content:{smart_content:"Smart content",content_library:"Content library",content_types:"Content types",no_content_types_found:"No content types found",search_content_types:"Search content types",reusable_content:"Reusable content",no_reusable_content_found:"No reusable content found",content_extract:"Save the selected text as reusable content for easy reuse across your site."}},content_and_format:{paragraph:"Paragraph",heading:"Heading",bulleted_list:"Bulleted list",numbered_list:"Numbered list",quote:"Quote",code:"Code",image:"Image",video:"Video",audio:"Audio",link:"Link",format:"Format",content:"Content"}},M5={general:_5,smart_text:F5},z5={word:{cancel:"Annuleren",save:"Opslaan",load_more:"Meer laden",back_to:"Terug naar"}},j5={placeholder:"Voer tekst in of gebruik de / commando",toolbar:{link:{title:"Link",enter_link:"Voer een link in",new_tab:"Open link in nieuw tabblad",add_link:"Link toevoegen",select_section:"Selecteer een sectie",select_section_description:"Selecteer een content blok om naar een specifieke sectie te linken",no_results_found:"Geen resultaten gevonden",enter_display_text:"Voer een weergavenaam in",display_text:"Weergavenaam",row:"Rij",remove_anchor:"Verwijder anchor"},content_library:{smart_content:"Smart content",content_library:"Content library",content_types:"Content types",no_content_types_found:"Geen content types gevonden",search_content_types:"Zoek content types",reusable_content:"Hergebruikbare content",no_reusable_content_found:"Geen hergebruikbare content gevonden",content_extract:"Sla de geselecteerde tekst op als hergebruikbare content voor eenvoudige hergebruik op je site."}},content_and_format:{paragraph:"Paragraaf",heading:"Kop",bulleted_list:"Lijst met opsommingtekens",numbered_list:"Genummerde lijst",quote:"Citaat",code:"Code",image:"Afbeelding",video:"Video",audio:"Audio",link:"Link",format:"Format",content:"Content"}},L5={general:z5,smart_text:j5};vu.use(Xz).init({resources:{en:{translation:M5},nl:{translation:L5}},lng:localStorage.getItem("locale")??"en",fallbackLng:"en",interpolation:{escapeValue:!1},defaultNS:!1,react:{useSuspense:!1}});window.addEventListener("change-locale",a=>{vu.changeLanguage(a.detail)});class U5{constructor(t,r,u,s,h,g){this.uuid=r,this.context=s,this.client=u,this.organization=h,this.isDisabled=g,Gc.dispatch(Pg({uuid:r})),Gc.dispatch(J4({organization:h})),this.root=f5.createRoot(t)}render(){this.root.render(I.jsx("div",{children:I.jsx(sz,{client:this.client,children:I.jsx(QM,{store:Gc,children:I.jsx(i5,{uuid:this.uuid,context:this.context,isDisabled:this.isDisabled??!1})})})}))}}const hu=[];for(let a=0;a<256;++a)hu.push((a+256).toString(16).slice(1));function H5(a,t=0){return(hu[a[t+0]]+hu[a[t+1]]+hu[a[t+2]]+hu[a[t+3]]+"-"+hu[a[t+4]]+hu[a[t+5]]+"-"+hu[a[t+6]]+hu[a[t+7]]+"-"+hu[a[t+8]]+hu[a[t+9]]+"-"+hu[a[t+10]]+hu[a[t+11]]+hu[a[t+12]]+hu[a[t+13]]+hu[a[t+14]]+hu[a[t+15]]).toLowerCase()}let KE;const V5=new Uint8Array(16);function q5(){if(!KE){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");KE=crypto.getRandomValues.bind(crypto)}return KE(V5)}const $5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wk={randomUUID:$5};function G5(a,t,r){if(wk.randomUUID&&!a)return wk.randomUUID();a=a||{};const u=a.random??a.rng?.()??q5();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,H5(u)}const Y5=["id"],P5=r0.defineComponent({__name:"DeltaSlateEditor",props:r0.mergeModels({uuid:{default:()=>G5()},initialValue:{default:()=>[{type:"paragraph",children:[{text:""}]}]},context:{},client:{},organization:{},isDisabled:{type:Boolean}},{tree:{},treeModifiers:{}}),emits:["update:tree"],setup(a,{expose:t}){let r;const u=a,s=r0.useModel(a,"tree");t({setValue:y=>{Gc.dispatch(Pg({uuid:u.uuid,state:{value:y,initialValue:y}}))},setInitialValue:y=>{Gc.dispatch(e8({uuid:u.uuid,initialValue:y}))}});function h(){const y=NN(()=>hC(Gc.getState(),u.uuid).value);Gc.subscribe(y(E=>{s.value=E}))}function g(){r=new U5(document.getElementById(u.uuid),u.uuid,u.client,u.context,u.organization,u.isDisabled),r.render(),Gc.dispatch(Pg({uuid:u.uuid,state:{initialValue:u.initialValue,value:u.initialValue}})),h()}return r0.onMounted(()=>{g()}),(y,E)=>(r0.openBlock(),r0.createElementBlock("div",{id:y.uuid},null,8,Y5))}}),Q5={install(a){a.component("DeltaSlateEditor",P5)}};exports.smartText=Q5;
|