@confidencesystemsinc/sdk 1.5.4 → 1.5.5
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/dist/SelfShadowComponent.d.ts +1 -1
- package/dist/components/comments/CommentBoxRoot.d.ts +1 -0
- package/dist/components/comments/CommentContainer.d.ts +13 -0
- package/dist/components/comments/CommentContextMenu.d.ts +9 -0
- package/dist/components/comments/CommentEditor/CommentEditor.d.ts +18 -0
- package/dist/components/comments/CommentEditor/CommentFileThumbnail.d.ts +7 -0
- package/dist/components/comments/CommentEditor/CommentImageThumbnail.d.ts +5 -0
- package/dist/components/comments/CommentEditor/CommentToolbar.d.ts +9 -0
- package/dist/components/comments/CommentEditor/FloatingLinkEditorPlugin.d.ts +6 -0
- package/dist/components/comments/CommentEditor/theme.d.ts +15 -0
- package/dist/components/comments/CommentFilePreview.d.ts +4 -0
- package/dist/components/comments/CommentImagePreview.d.ts +6 -0
- package/dist/components/comments/ConfidenceCommentBox.d.ts +49 -0
- package/dist/components/playbook/{playbook-header.d.ts → PlaybookHeader.d.ts} +1 -1
- package/dist/components/task/CommentButton.d.ts +7 -0
- package/dist/components/task/{confidence-task.d.ts → ConfidenceTask.d.ts} +3 -2
- package/dist/components/task/{task-dropdown-badge.d.ts → TaskDropdownBadge.d.ts} +5 -2
- package/dist/components/ui/avatar.d.ts +5 -0
- package/dist/components/ui/context-menu.d.ts +10 -0
- package/dist/components/ui/input.d.ts +2 -1
- package/dist/components/ui/modal.d.ts +2 -2
- package/dist/context/comment-context.d.ts +18 -0
- package/dist/context/confidence-context.d.ts +5 -1
- package/dist/empty.png +0 -0
- package/dist/hooks/comments/useComments.d.ts +178 -0
- package/dist/hooks/comments/useManageComment.d.ts +408 -0
- package/dist/hooks/task/useTaskDetails.d.ts +6 -0
- package/dist/hooks/useTaskButtons.d.ts +1 -0
- package/dist/index.cjs +94 -66
- package/dist/index.css +1 -0
- package/dist/index.js +23078 -10849
- package/dist/profile-ghost.jpg +0 -0
- package/dist/services/get-comments.service.d.ts +4 -0
- package/dist/services/manage-comment.service.d.ts +19 -0
- package/dist/services/upload-attachment.service.d.ts +6 -0
- package/dist/stories/{confidence-task.stories.d.ts → ConfidenceTask.stories.d.ts} +3 -0
- package/dist/stories/modal.stories.d.ts +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/comments.types.d.ts +38 -0
- package/dist/types/task.types.d.ts +5 -0
- package/dist/utils/asset.d.ts +23 -0
- package/dist/utils/editor.d.ts +1 -0
- package/dist/utils/encode.d.ts +2 -0
- package/dist/utils/url.d.ts +2 -0
- package/package.json +13 -2
- /package/dist/components/playbook/{confidence-playbook.d.ts → ConfidencePlaybook.d.ts} +0 -0
- /package/dist/components/task/{task-buttons.d.ts → TaskButtons.d.ts} +0 -0
- /package/dist/components/task/{task-expanded-content.d.ts → TaskExpandedContent.d.ts} +0 -0
- /package/dist/components/task/{task-left-panel.d.ts → TaskLeftPanel.d.ts} +0 -0
- /package/dist/components/task/{task-status-badge.d.ts → TaskStatusBadge.d.ts} +0 -0
- /package/dist/stories/{confidence-playbook-button.stories.d.ts → ConfidencePlaybookButton.stories.d.ts} +0 -0
- /package/dist/stories/{initiate-playbook-modal.stories.d.ts → InitiatePlaybookModal.stories.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";require('./index.css');var Ik=Object.defineProperty;var Sb=e=>{throw TypeError(e)};var Ok=(e,t,n)=>t in e?Ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ce=(e,t,n)=>Ok(e,typeof t!="symbol"?t+"":t,n),bg=(e,t,n)=>t.has(e)||Sb("Cannot "+n);var V=(e,t,n)=>(bg(e,t,"read from private field"),n?n.call(e):t.get(e)),Ke=(e,t,n)=>t.has(e)?Sb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Me=(e,t,n,r)=>(bg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),it=(e,t,n)=>(bg(e,t,"access private method"),n);var Sp=(e,t,n,r)=>({set _(o){Me(e,t,o,n)},get _(){return V(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),Y=require("react"),ui=require("react-dom");function cS(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=cS(Y),uS=cS(ui);function Mk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _a={},zs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-dom-server-legacy.browser.production.min.js
|
|
4
4
|
*
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
10
|
-
`&&
|
|
11
|
-
`),
|
|
12
|
-
`?
|
|
13
|
-
`,
|
|
14
|
-
`&&
|
|
15
|
-
`),L;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":c.push(_e(y));for(var Et in k)if(o.call(k,Et)&&(L=k[Et],L!=null))switch(Et){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,y));default:ie(c,T,Et,L)}return c.push("/>"),null;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 ae(c,k,y,T);case"html":return $.insertionMode===0&&c.push("<!DOCTYPE html>"),ae(c,k,y,T);default:if(y.indexOf("-")===-1&&typeof k.is!="string")return ae(c,k,y,T);c.push(_e(y)),H=L=null;for(Pe in k)if(o.call(k,Pe)&&(te=k[Pe],te!=null))switch(Pe){case"children":L=te;break;case"dangerouslySetInnerHTML":H=te;break;case"style":_(c,T,te);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:h(Pe)&&typeof te!="function"&&typeof te!="symbol"&&c.push(" ",Pe,'="',B(te),'"')}return c.push(">"),ce(c,H,L),L}}function Qe(c,y,k){if(c.push('<!--$?--><template id="'),k===null)throw Error(r(395));return c.push(k),c.push('"></template>')}function ke(c,y,k,T){switch(k.insertionMode){case 0:case 1:return c.push('<div hidden id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 2:return c.push('<svg aria-hidden="true" style="display:none" id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 3:return c.push('<math aria-hidden="true" style="display:none" id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 4:return c.push('<table hidden id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 5:return c.push('<table hidden><tbody id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 6:return c.push('<table hidden><tr id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');case 7:return c.push('<table hidden><colgroup id="'),c.push(y.segmentPrefix),y=T.toString(16),c.push(y),c.push('">');default:throw Error(r(397))}}function Ce(c,y){switch(y.insertionMode){case 0:case 1:return c.push("</div>");case 2:return c.push("</svg>");case 3:return c.push("</math>");case 4:return c.push("</table>");case 5:return c.push("</tbody></table>");case 6:return c.push("</tr></table>");case 7:return c.push("</colgroup></table>");default:throw Error(r(397))}}var je=/[<\u2028\u2029]/g;function Z(c){return JSON.stringify(c).replace(je,function(y){switch(y){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function be(c,y){return y=y===void 0?"":y,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:y+"P:",segmentPrefix:y+"S:",boundaryPrefix:y+"B:",idPrefix:y,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:c}}function Q(c,y,k,T){return k.generateStaticMarkup?(c.push(B(y)),!1):(y===""?c=T:(T&&c.push("<!-- -->"),c.push(B(y)),c=!0),c)}var J=Object.assign,fe=Symbol.for("react.element"),me=Symbol.for("react.portal"),pe=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),Te=Symbol.for("react.context"),Ee=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),$e=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),nt=Symbol.for("react.scope"),Lt=Symbol.for("react.debug_trace_mode"),Lr=Symbol.for("react.legacy_hidden"),so=Symbol.for("react.default_value"),jt=Symbol.iterator;function jr(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case pe:return"Fragment";case me:return"Portal";case se:return"Profiler";case ge:return"StrictMode";case Re:return"Suspense";case $e:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Te:return(c.displayName||"Context")+".Consumer";case ue:return(c._context.displayName||"Context")+".Provider";case Ee:var y=c.render;return c=c.displayName,c||(c=y.displayName||y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case oe:return y=c.displayName||null,y!==null?y:jr(c.type)||"Memo";case Ue:y=c._payload,c=c._init;try{return jr(c(y))}catch{}}return null}var Nr={};function lo(c,y){if(c=c.contextTypes,!c)return Nr;var k={},T;for(T in c)k[T]=y[T];return k}var Nt=null;function mt(c,y){if(c!==y){c.context._currentValue2=c.parentValue,c=c.parent;var k=y.parent;if(c===null){if(k!==null)throw Error(r(401))}else{if(k===null)throw Error(r(401));mt(c,k)}y.context._currentValue2=y.value}}function ct(c){c.context._currentValue2=c.parentValue,c=c.parent,c!==null&&ct(c)}function kn(c){var y=c.parent;y!==null&&kn(y),c.context._currentValue2=c.value}function En(c,y){if(c.context._currentValue2=c.parentValue,c=c.parent,c===null)throw Error(r(402));c.depth===y.depth?mt(c,y):En(c,y)}function Cn(c,y){var k=y.parent;if(k===null)throw Error(r(402));c.depth===k.depth?mt(c,k):Cn(c,k),y.context._currentValue2=y.value}function at(c){var y=Nt;y!==c&&(y===null?kn(c):c===null?ct(y):y.depth===c.depth?mt(y,c):y.depth>c.depth?En(y,c):Cn(y,c),Nt=c)}var Tn={isMounted:function(){return!1},enqueueSetState:function(c,y){c=c._reactInternals,c.queue!==null&&c.queue.push(y)},enqueueReplaceState:function(c,y){c=c._reactInternals,c.replace=!0,c.queue=[y]},enqueueForceUpdate:function(){}};function uo(c,y,k,T){var $=c.state!==void 0?c.state:null;c.updater=Tn,c.props=k,c.state=$;var L={queue:[],replace:!1};c._reactInternals=L;var H=y.contextType;if(c.context=typeof H=="object"&&H!==null?H._currentValue2:T,H=y.getDerivedStateFromProps,typeof H=="function"&&(H=H(k,$),$=H==null?$:J({},$,H),c.state=$),typeof y.getDerivedStateFromProps!="function"&&typeof c.getSnapshotBeforeUpdate!="function"&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function"))if(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&Tn.enqueueReplaceState(c,c.state,null),L.queue!==null&&0<L.queue.length)if(y=L.queue,H=L.replace,L.queue=null,L.replace=!1,H&&y.length===1)c.state=y[0];else{for(L=H?y[0]:c.state,$=!0,H=H?1:0;H<y.length;H++){var te=y[H];te=typeof te=="function"?te.call(c,L,k,T):te,te!=null&&($?($=!1,L=J({},L,te)):J(L,te))}c.state=L}else L.queue=null}var co={id:1,overflow:""};function Rn(c,y,k){var T=c.id;c=c.overflow;var $=32-en(T)-1;T&=~(1<<$),k+=1;var L=32-en(y)+$;if(30<L){var H=$-$%5;return L=(T&(1<<H)-1).toString(32),T>>=H,$-=H,{id:1<<32-en(y)+$|k<<$|T,overflow:L+c}}return{id:1<<L|k<<$|T,overflow:c}}var en=Math.clz32?Math.clz32:yr,li=Math.log,Pn=Math.LN2;function yr(c){return c>>>=0,c===0?32:31-(li(c)/Pn|0)|0}function An(c,y){return c===y&&(c!==0||1/c===1/y)||c!==c&&y!==y}var fo=typeof Object.is=="function"?Object.is:An,xt=null,Jt=null,br=null,Xe=null,xr=!1,tn=!1,$r=0,Kt=null,rn=0;function cr(){if(xt===null)throw Error(r(321));return xt}function ft(){if(0<rn)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function In(){return Xe===null?br===null?(xr=!1,br=Xe=ft()):(xr=!0,Xe=br):Xe.next===null?(xr=!1,Xe=Xe.next=ft()):(xr=!0,Xe=Xe.next),Xe}function On(){Jt=xt=null,tn=!1,br=null,rn=0,Xe=Kt=null}function po(c,y){return typeof y=="function"?y(c):y}function st(c,y,k){if(xt=cr(),Xe=In(),xr){var T=Xe.queue;if(y=T.dispatch,Kt!==null&&(k=Kt.get(T),k!==void 0)){Kt.delete(T),T=Xe.memoizedState;do T=c(T,k.action),k=k.next;while(k!==null);return Xe.memoizedState=T,[T,y]}return[Xe.memoizedState,y]}return c=c===po?typeof y=="function"?y():y:k!==void 0?k(y):y,Xe.memoizedState=c,c=Xe.queue={last:null,dispatch:null},c=c.dispatch=ui.bind(null,xt,c),[Xe.memoizedState,c]}function Fn(c,y){if(xt=cr(),Xe=In(),y=y===void 0?null:y,Xe!==null){var k=Xe.memoizedState;if(k!==null&&y!==null){var T=k[1];e:if(T===null)T=!1;else{for(var $=0;$<T.length&&$<y.length;$++)if(!fo(y[$],T[$])){T=!1;break e}T=!0}if(T)return k[0]}}return c=c(),Xe.memoizedState=[c,y],c}function ui(c,y,k){if(25<=rn)throw Error(r(301));if(c===xt)if(tn=!0,c={action:k,next:null},Kt===null&&(Kt=new Map),k=Kt.get(y),k===void 0)Kt.set(y,c);else{for(y=k;y.next!==null;)y=y.next;y.next=c}}function ci(){throw Error(r(394))}function Zt(){}var Mn={readContext:function(c){return c._currentValue2},useContext:function(c){return cr(),c._currentValue2},useMemo:Fn,useReducer:st,useRef:function(c){xt=cr(),Xe=In();var y=Xe.memoizedState;return y===null?(c={current:c},Xe.memoizedState=c):y},useState:function(c){return st(po,c)},useInsertionEffect:Zt,useLayoutEffect:function(){},useCallback:function(c,y){return Fn(function(){return c},y)},useImperativeHandle:Zt,useEffect:Zt,useDebugValue:Zt,useDeferredValue:function(c){return cr(),c},useTransition:function(){return cr(),[!1,ci]},useId:function(){var c=Jt.treeContext,y=c.overflow;c=c.id,c=(c&~(1<<32-en(c)-1)).toString(32)+y;var k=nn;if(k===null)throw Error(r(404));return y=$r++,c=":"+k.idPrefix+"R"+c,0<y&&(c+="H"+y.toString(32)),c+":"},useMutableSource:function(c,y){return cr(),y(c._source)},useSyncExternalStore:function(c,y,k){if(k===void 0)throw Error(r(407));return k()}},nn=null,wr=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Tt(c){return console.error(c),null}function er(){}function on(c,y,k,T,$,L,H,te,xe){var Pe=[],we=new Set;return y={destination:null,responseState:y,progressiveChunkSize:T===void 0?12800:T,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:we,pingedTasks:Pe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:$===void 0?Tt:$,onAllReady:er,onShellReady:H===void 0?er:H,onShellError:er,onFatalError:er},k=kr(y,0,null,k,!1,!1),k.parentFlushed=!0,c=Sr(y,c,null,k,we,Nr,null,co),Pe.push(c),y}function Sr(c,y,k,T,$,L,H,te){c.allPendingTasks++,k===null?c.pendingRootTasks++:k.pendingTasks++;var xe={node:y,ping:function(){var Pe=c.pingedTasks;Pe.push(xe),Pe.length===1&&wt(c)},blockedBoundary:k,blockedSegment:T,abortSet:$,legacyContext:L,context:H,treeContext:te};return $.add(xe),xe}function kr(c,y,k,T,$,L){return{status:0,id:-1,index:y,parentFlushed:!1,chunks:[],children:[],formatContext:T,boundary:k,lastPushedText:$,textEmbedded:L}}function tr(c,y){if(c=c.onError(y),c!=null&&typeof c!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function Er(c,y){var k=c.onShellError;k(y),k=c.onFatalError,k(y),c.destination!==null?(c.status=2,c.destination.destroy(y)):(c.status=1,c.fatalError=y)}function Rt(c,y,k,T,$){for(xt={},Jt=y,$r=0,c=k(T,$);tn;)tn=!1,$r=0,rn+=1,Xe=null,c=k(T,$);return On(),c}function ho(c,y,k,T){var $=k.render(),L=T.childContextTypes;if(L!=null){var H=y.legacyContext;if(typeof k.getChildContext!="function")T=H;else{k=k.getChildContext();for(var te in k)if(!(te in L))throw Error(r(108,jr(T)||"Unknown",te));T=J({},H,k)}y.legacyContext=T,lt(c,y,$),y.legacyContext=H}else lt(c,y,$)}function mo(c,y){if(c&&c.defaultProps){y=J({},y),c=c.defaultProps;for(var k in c)y[k]===void 0&&(y[k]=c[k]);return y}return y}function fr(c,y,k,T,$){if(typeof k=="function")if(k.prototype&&k.prototype.isReactComponent){$=lo(k,y.legacyContext);var L=k.contextType;L=new k(T,typeof L=="object"&&L!==null?L._currentValue2:$),uo(L,k,T,$),ho(c,y,L,k)}else{L=lo(k,y.legacyContext),$=Rt(c,y,k,T,L);var H=$r!==0;if(typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0)uo($,k,T,L),ho(c,y,$,k);else if(H){T=y.treeContext,y.treeContext=Rn(T,1,0);try{lt(c,y,$)}finally{y.treeContext=T}}else lt(c,y,$)}else if(typeof k=="string"){switch($=y.blockedSegment,L=Ge($.chunks,k,T,c.responseState,$.formatContext),$.lastPushedText=!1,H=$.formatContext,$.formatContext=U(H,k,T),nr(c,y,L),$.formatContext=H,k){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:$.chunks.push("</",k,">")}$.lastPushedText=!1}else{switch(k){case Lr:case Lt:case ge:case se:case pe:lt(c,y,T.children);return;case $e:lt(c,y,T.children);return;case nt:throw Error(r(343));case Re:e:{k=y.blockedBoundary,$=y.blockedSegment,L=T.fallback,T=T.children,H=new Set;var te={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:H,errorDigest:null},xe=kr(c,$.chunks.length,te,$.formatContext,!1,!1);$.children.push(xe),$.lastPushedText=!1;var Pe=kr(c,0,null,$.formatContext,!1,!1);Pe.parentFlushed=!0,y.blockedBoundary=te,y.blockedSegment=Pe;try{if(nr(c,y,T),c.responseState.generateStaticMarkup||Pe.lastPushedText&&Pe.textEmbedded&&Pe.chunks.push("<!-- -->"),Pe.status=1,$t(te,Pe),te.pendingTasks===0)break e}catch(we){Pe.status=4,te.forceClientRender=!0,te.errorDigest=tr(c,we)}finally{y.blockedBoundary=k,y.blockedSegment=$}y=Sr(c,L,k,xe,H,y.legacyContext,y.context,y.treeContext),c.pingedTasks.push(y)}return}if(typeof k=="object"&&k!==null)switch(k.$$typeof){case Ee:if(T=Rt(c,y,k.render,T,$),$r!==0){k=y.treeContext,y.treeContext=Rn(k,1,0);try{lt(c,y,T)}finally{y.treeContext=k}}else lt(c,y,T);return;case oe:k=k.type,T=mo(k,T),fr(c,y,k,T,$);return;case ue:if($=T.children,k=k._context,T=T.value,L=k._currentValue2,k._currentValue2=T,H=Nt,Nt=T={parent:H,depth:H===null?0:H.depth+1,context:k,parentValue:L,value:T},y.context=T,lt(c,y,$),c=Nt,c===null)throw Error(r(403));T=c.parentValue,c.context._currentValue2=T===so?c.context._defaultValue:T,c=Nt=c.parent,y.context=c;return;case Te:T=T.children,T=T(k._currentValue2),lt(c,y,T);return;case Ue:$=k._init,k=$(k._payload),T=mo(k,T),fr(c,y,k,T,void 0);return}throw Error(r(130,k==null?k:typeof k,""))}}function lt(c,y,k){if(y.node=k,typeof k=="object"&&k!==null){switch(k.$$typeof){case fe:fr(c,y,k.type,k.props,k.ref);return;case me:throw Error(r(257));case Ue:var T=k._init;k=T(k._payload),lt(c,y,k);return}if(I(k)){rr(c,y,k);return}if(k===null||typeof k!="object"?T=null:(T=jt&&k[jt]||k["@@iterator"],T=typeof T=="function"?T:null),T&&(T=T.call(k))){if(k=T.next(),!k.done){var $=[];do $.push(k.value),k=T.next();while(!k.done);rr(c,y,$)}return}throw c=Object.prototype.toString.call(k),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":c))}typeof k=="string"?(T=y.blockedSegment,T.lastPushedText=Q(y.blockedSegment.chunks,k,c.responseState,T.lastPushedText)):typeof k=="number"&&(T=y.blockedSegment,T.lastPushedText=Q(y.blockedSegment.chunks,""+k,c.responseState,T.lastPushedText))}function rr(c,y,k){for(var T=k.length,$=0;$<T;$++){var L=y.treeContext;y.treeContext=Rn(L,T,$);try{nr(c,y,k[$])}finally{y.treeContext=L}}}function nr(c,y,k){var T=y.blockedSegment.formatContext,$=y.legacyContext,L=y.context;try{return lt(c,y,k)}catch(xe){if(On(),typeof xe=="object"&&xe!==null&&typeof xe.then=="function"){k=xe;var H=y.blockedSegment,te=kr(c,H.chunks.length,null,H.formatContext,H.lastPushedText,!0);H.children.push(te),H.lastPushedText=!1,c=Sr(c,y.node,y.blockedBoundary,te,y.abortSet,y.legacyContext,y.context,y.treeContext).ping,k.then(c,c),y.blockedSegment.formatContext=T,y.legacyContext=$,y.context=L,at(L)}else throw y.blockedSegment.formatContext=T,y.legacyContext=$,y.context=L,at(L),xe}}function Cr(c){var y=c.blockedBoundary;c=c.blockedSegment,c.status=3,or(this,y,c)}function an(c,y,k){var T=c.blockedBoundary;c.blockedSegment.status=3,T===null?(y.allPendingTasks--,y.status!==2&&(y.status=2,y.destination!==null&&y.destination.push(null))):(T.pendingTasks--,T.forceClientRender||(T.forceClientRender=!0,c=k===void 0?Error(r(432)):k,T.errorDigest=y.onError(c),T.parentFlushed&&y.clientRenderedBoundaries.push(T)),T.fallbackAbortableTasks.forEach(function($){return an($,y,k)}),T.fallbackAbortableTasks.clear(),y.allPendingTasks--,y.allPendingTasks===0&&(T=y.onAllReady,T()))}function $t(c,y){if(y.chunks.length===0&&y.children.length===1&&y.children[0].boundary===null){var k=y.children[0];k.id=y.id,k.parentFlushed=!0,k.status===1&&$t(c,k)}else c.completedSegments.push(y)}function or(c,y,k){if(y===null){if(k.parentFlushed){if(c.completedRootSegment!==null)throw Error(r(389));c.completedRootSegment=k}c.pendingRootTasks--,c.pendingRootTasks===0&&(c.onShellError=er,y=c.onShellReady,y())}else y.pendingTasks--,y.forceClientRender||(y.pendingTasks===0?(k.parentFlushed&&k.status===1&&$t(y,k),y.parentFlushed&&c.completedBoundaries.push(y),y.fallbackAbortableTasks.forEach(Cr,c),y.fallbackAbortableTasks.clear()):k.parentFlushed&&k.status===1&&($t(y,k),y.completedSegments.length===1&&y.parentFlushed&&c.partialBoundaries.push(y)));c.allPendingTasks--,c.allPendingTasks===0&&(c=c.onAllReady,c())}function wt(c){if(c.status!==2){var y=Nt,k=wr.current;wr.current=Mn;var T=nn;nn=c.responseState;try{var $=c.pingedTasks,L;for(L=0;L<$.length;L++){var H=$[L],te=c,xe=H.blockedSegment;if(xe.status===0){at(H.context);try{lt(te,H,H.node),te.responseState.generateStaticMarkup||xe.lastPushedText&&xe.textEmbedded&&xe.chunks.push("<!-- -->"),H.abortSet.delete(H),xe.status=1,or(te,H.blockedBoundary,xe)}catch(Ct){if(On(),typeof Ct=="object"&&Ct!==null&&typeof Ct.then=="function"){var Pe=H.ping;Ct.then(Pe,Pe)}else{H.abortSet.delete(H),xe.status=4;var we=H.blockedBoundary,He=Ct,kt=tr(te,He);if(we===null?Er(te,He):(we.pendingTasks--,we.forceClientRender||(we.forceClientRender=!0,we.errorDigest=kt,we.parentFlushed&&te.clientRenderedBoundaries.push(we))),te.allPendingTasks--,te.allPendingTasks===0){var Et=te.onAllReady;Et()}}}finally{}}}$.splice(0,L),c.destination!==null&&St(c,c.destination)}catch(Ct){tr(c,Ct),Er(c,Ct)}finally{nn=T,wr.current=k,k===Mn&&at(y)}}}function Tr(c,y,k){switch(k.parentFlushed=!0,k.status){case 0:var T=k.id=c.nextSegmentId++;return k.lastPushedText=!1,k.textEmbedded=!1,c=c.responseState,y.push('<template id="'),y.push(c.placeholderPrefix),c=T.toString(16),y.push(c),y.push('"></template>');case 1:k.status=2;var $=!0;T=k.chunks;var L=0;k=k.children;for(var H=0;H<k.length;H++){for($=k[H];L<$.index;L++)y.push(T[L]);$=zr(c,y,$)}for(;L<T.length-1;L++)y.push(T[L]);return L<T.length&&($=y.push(T[L])),$;default:throw Error(r(390))}}function zr(c,y,k){var T=k.boundary;if(T===null)return Tr(c,y,k);if(T.parentFlushed=!0,T.forceClientRender)return c.responseState.generateStaticMarkup||(T=T.errorDigest,y.push("<!--$!-->"),y.push("<template"),T&&(y.push(' data-dgst="'),T=B(T),y.push(T),y.push('"')),y.push("></template>")),Tr(c,y,k),c=c.responseState.generateStaticMarkup?!0:y.push("<!--/$-->"),c;if(0<T.pendingTasks){T.rootSegmentID=c.nextSegmentId++,0<T.completedSegments.length&&c.partialBoundaries.push(T);var $=c.responseState,L=$.nextSuspenseID++;return $=$.boundaryPrefix+L.toString(16),T=T.id=$,Qe(y,c.responseState,T),Tr(c,y,k),y.push("<!--/$-->")}if(T.byteSize>c.progressiveChunkSize)return T.rootSegmentID=c.nextSegmentId++,c.completedBoundaries.push(T),Qe(y,c.responseState,T.id),Tr(c,y,k),y.push("<!--/$-->");if(c.responseState.generateStaticMarkup||y.push("<!--$-->"),k=T.completedSegments,k.length!==1)throw Error(r(391));return zr(c,y,k[0]),c=c.responseState.generateStaticMarkup?!0:y.push("<!--/$-->"),c}function sn(c,y,k){return ke(y,c.responseState,k.formatContext,k.id),zr(c,y,k),Ce(y,k.formatContext)}function Ft(c,y,k){for(var T=k.completedSegments,$=0;$<T.length;$++)ir(c,y,k,T[$]);if(T.length=0,c=c.responseState,T=k.id,k=k.rootSegmentID,y.push(c.startInlineScript),c.sentCompleteBoundaryFunction?y.push('$RC("'):(c.sentCompleteBoundaryFunction=!0,y.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),T===null)throw Error(r(395));return k=k.toString(16),y.push(T),y.push('","'),y.push(c.segmentPrefix),y.push(k),y.push('")<\/script>')}function ir(c,y,k,T){if(T.status===2)return!0;var $=T.id;if($===-1){if((T.id=k.rootSegmentID)===-1)throw Error(r(392));return sn(c,y,T)}return sn(c,y,T),c=c.responseState,y.push(c.startInlineScript),c.sentCompleteSegmentFunction?y.push('$RS("'):(c.sentCompleteSegmentFunction=!0,y.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),y.push(c.segmentPrefix),$=$.toString(16),y.push($),y.push('","'),y.push(c.placeholderPrefix),y.push($),y.push('")<\/script>')}function St(c,y){try{var k=c.completedRootSegment;if(k!==null&&c.pendingRootTasks===0){zr(c,y,k),c.completedRootSegment=null;var T=c.responseState.bootstrapChunks;for(k=0;k<T.length-1;k++)y.push(T[k]);k<T.length&&y.push(T[k])}var $=c.clientRenderedBoundaries,L;for(L=0;L<$.length;L++){var H=$[L];T=y;var te=c.responseState,xe=H.id,Pe=H.errorDigest,we=H.errorMessage,He=H.errorComponentStack;if(T.push(te.startInlineScript),te.sentClientRenderFunction?T.push('$RX("'):(te.sentClientRenderFunction=!0,T.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),xe===null)throw Error(r(395));if(T.push(xe),T.push('"'),Pe||we||He){T.push(",");var kt=Z(Pe||"");T.push(kt)}if(we||He){T.push(",");var Et=Z(we||"");T.push(Et)}if(He){T.push(",");var Ct=Z(He);T.push(Ct)}if(!T.push(")<\/script>")){c.destination=null,L++,$.splice(0,L);return}}$.splice(0,L);var Rr=c.completedBoundaries;for(L=0;L<Rr.length;L++)if(!Ft(c,y,Rr[L])){c.destination=null,L++,Rr.splice(0,L);return}Rr.splice(0,L);var ar=c.partialBoundaries;for(L=0;L<ar.length;L++){var un=ar[L];e:{$=c,H=y;var Pr=un.completedSegments;for(te=0;te<Pr.length;te++)if(!ir($,H,un,Pr[te])){te++,Pr.splice(0,te);var Br=!1;break e}Pr.splice(0,te),Br=!0}if(!Br){c.destination=null,L++,ar.splice(0,L);return}}ar.splice(0,L);var dr=c.completedBoundaries;for(L=0;L<dr.length;L++)if(!Ft(c,y,dr[L])){c.destination=null,L++,dr.splice(0,L);return}dr.splice(0,L)}finally{c.allPendingTasks===0&&c.pingedTasks.length===0&&c.clientRenderedBoundaries.length===0&&c.completedBoundaries.length===0&&y.push(null)}}function ln(c,y){try{var k=c.abortableTasks;k.forEach(function(T){return an(T,c,y)}),k.clear(),c.destination!==null&&St(c,c.destination)}catch(T){tr(c,T),Er(c,T)}}function ht(){}function Pt(c,y,k,T){var $=!1,L=null,H="",te={push:function(Pe){return Pe!==null&&(H+=Pe),!0},destroy:function(Pe){$=!0,L=Pe}},xe=!1;if(c=on(c,be(k,y?y.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ht,void 0,function(){xe=!0}),wt(c),ln(c,T),c.status===1)c.status=2,te.destroy(c.fatalError);else if(c.status!==2&&c.destination===null){c.destination=te;try{St(c,te)}catch(Pe){tr(c,Pe),Er(c,Pe)}}if($)throw L;if(!xe)throw Error(r(426));return H}return Hi.renderToNodeStream=function(){throw Error(r(207))},Hi.renderToStaticMarkup=function(c,y){return Pt(c,y,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Hi.renderToStaticNodeStream=function(){throw Error(r(208))},Hi.renderToString=function(c,y){return Pt(c,y,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Hi.version="18.3.1",Hi}var zu={};/**
|
|
9
|
+
*/var Cb;function Nk(){if(Cb)return zs;Cb=1;var e=Y;function t(y){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+y,N=1;N<arguments.length;N++)T+="&args[]="+encodeURIComponent(arguments[N]);return"Minified React error #"+y+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[: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]*$/,o={},i={};function s(y){return n.call(i,y)?!0:n.call(o,y)?!1:r.test(y)?i[y]=!0:(o[y]=!0,!1)}function c(y,T,N,B,ee,Z,oe){this.acceptsBooleans=T===2||T===3||T===4,this.attributeName=B,this.attributeNamespace=ee,this.mustUseProperty=N,this.propertyName=y,this.type=T,this.sanitizeURL=Z,this.removeEmptyString=oe}var u={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){u[y]=new c(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var T=y[0];u[T]=new c(T,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){u[y]=new c(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){u[y]=new c(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){u[y]=new c(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){u[y]=new c(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){u[y]=new c(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){u[y]=new c(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){u[y]=new c(y,5,!1,y.toLowerCase(),null,!1,!1)});var f=/[\-:]([a-z])/g;function m(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){u[y]=new c(y,1,!1,y.toLowerCase(),null,!1,!1)}),u.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){u[y]=new c(y,1,!1,y.toLowerCase(),null,!0,!0)});var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v=["Webkit","ms","Moz","O"];Object.keys(h).forEach(function(y){v.forEach(function(T){T=T+y.charAt(0).toUpperCase()+y.substring(1),h[T]=h[y]})});var w=/["'&<>]/;function C(y){if(typeof y=="boolean"||typeof y=="number")return""+y;y=""+y;var T=w.exec(y);if(T){var N="",B,ee=0;for(B=T.index;B<y.length;B++){switch(y.charCodeAt(B)){case 34:T=""";break;case 38:T="&";break;case 39:T="'";break;case 60:T="<";break;case 62:T=">";break;default:continue}ee!==B&&(N+=y.substring(ee,B)),ee=B+1,N+=T}y=ee!==B?N+y.substring(ee,B):N}return y}var A=/([A-Z])/g,x=/^ms-/,E=Array.isArray;function R(y,T){return{insertionMode:y,selectedValue:T}}function O(y,T,N){switch(T){case"select":return R(1,N.value!=null?N.value:N.defaultValue);case"svg":return R(2,null);case"math":return R(3,null);case"foreignObject":return R(1,null);case"table":return R(4,null);case"thead":case"tbody":case"tfoot":return R(5,null);case"colgroup":return R(7,null);case"tr":return R(6,null)}return 4<=y.insertionMode||y.insertionMode===0?R(1,null):y}var L=new Map;function M(y,T,N){if(typeof N!="object")throw Error(t(62));T=!0;for(var B in N)if(n.call(N,B)){var ee=N[B];if(ee!=null&&typeof ee!="boolean"&&ee!==""){if(B.indexOf("--")===0){var Z=C(B);ee=C((""+ee).trim())}else{Z=B;var oe=L.get(Z);oe!==void 0||(oe=C(Z.replace(A,"-$1").toLowerCase().replace(x,"-ms-")),L.set(Z,oe)),Z=oe,ee=typeof ee=="number"?ee===0||n.call(h,B)?""+ee:ee+"px":C((""+ee).trim())}T?(T=!1,y.push(' style="',Z,":",ee)):y.push(";",Z,":",ee)}}T||y.push('"')}function U(y,T,N,B){switch(N){case"style":M(y,T,B);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){if(T=u.hasOwnProperty(N)?u[N]:null,T!==null){switch(typeof B){case"function":case"symbol":return;case"boolean":if(!T.acceptsBooleans)return}switch(N=T.attributeName,T.type){case 3:B&&y.push(" ",N,'=""');break;case 4:B===!0?y.push(" ",N,'=""'):B!==!1&&y.push(" ",N,'="',C(B),'"');break;case 5:isNaN(B)||y.push(" ",N,'="',C(B),'"');break;case 6:!isNaN(B)&&1<=B&&y.push(" ",N,'="',C(B),'"');break;default:T.sanitizeURL&&(B=""+B),y.push(" ",N,'="',C(B),'"')}}else if(s(N)){switch(typeof B){case"function":case"symbol":return;case"boolean":if(T=N.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")return}y.push(" ",N,'="',C(B),'"')}}}function j(y,T,N){if(T!=null){if(N!=null)throw Error(t(60));if(typeof T!="object"||!("__html"in T))throw Error(t(61));T=T.__html,T!=null&&y.push(""+T)}}function $(y){var T="";return e.Children.forEach(y,function(N){N!=null&&(T+=N)}),T}function H(y,T,N,B){y.push(pe(N));var ee=N=null,Z;for(Z in T)if(n.call(T,Z)){var oe=T[Z];if(oe!=null)switch(Z){case"children":N=oe;break;case"dangerouslySetInnerHTML":ee=oe;break;default:U(y,B,Z,oe)}}return y.push(">"),j(y,ee,N),typeof N=="string"?(y.push(C(N)),null):N}var G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,q=new Map;function pe(y){var T=q.get(y);if(T===void 0){if(!G.test(y))throw Error(t(65,y));T="<"+y,q.set(y,T)}return T}function ie(y,T,N,B,ee){switch(T){case"select":y.push(pe("select"));var Z=null,oe=null;for(He in N)if(n.call(N,He)){var we=N[He];if(we!=null)switch(He){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;case"defaultValue":case"value":break;default:U(y,B,He,we)}}return y.push(">"),j(y,oe,Z),Z;case"option":oe=ee.selectedValue,y.push(pe("option"));var $e=we=null,Ge=null,He=null;for(Z in N)if(n.call(N,Z)){var pt=N[Z];if(pt!=null)switch(Z){case"children":we=pt;break;case"selected":Ge=pt;break;case"dangerouslySetInnerHTML":He=pt;break;case"value":$e=pt;default:U(y,B,Z,pt)}}if(oe!=null)if(N=$e!==null?""+$e:$(we),E(oe)){for(B=0;B<oe.length;B++)if(""+oe[B]===N){y.push(' selected=""');break}}else""+oe===N&&y.push(' selected=""');else Ge&&y.push(' selected=""');return y.push(">"),j(y,He,we),we;case"textarea":y.push(pe("textarea")),He=oe=Z=null;for(we in N)if(n.call(N,we)&&($e=N[we],$e!=null))switch(we){case"children":He=$e;break;case"value":Z=$e;break;case"defaultValue":oe=$e;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:U(y,B,we,$e)}if(Z===null&&oe!==null&&(Z=oe),y.push(">"),He!=null){if(Z!=null)throw Error(t(92));if(E(He)&&1<He.length)throw Error(t(93));Z=""+He}return typeof Z=="string"&&Z[0]===`
|
|
10
|
+
`&&y.push(`
|
|
11
|
+
`),Z!==null&&y.push(C(""+Z)),null;case"input":y.push(pe("input")),$e=He=we=Z=null;for(oe in N)if(n.call(N,oe)&&(Ge=N[oe],Ge!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":$e=Ge;break;case"defaultValue":we=Ge;break;case"checked":He=Ge;break;case"value":Z=Ge;break;default:U(y,B,oe,Ge)}return He!==null?U(y,B,"checked",He):$e!==null&&U(y,B,"checked",$e),Z!==null?U(y,B,"value",Z):we!==null&&U(y,B,"value",we),y.push("/>"),null;case"menuitem":y.push(pe("menuitem"));for(var kn in N)if(n.call(N,kn)&&(Z=N[kn],Z!=null))switch(kn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:U(y,B,kn,Z)}return y.push(">"),null;case"title":y.push(pe("title")),Z=null;for(pt in N)if(n.call(N,pt)&&(oe=N[pt],oe!=null))switch(pt){case"children":Z=oe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:U(y,B,pt,oe)}return y.push(">"),Z;case"listing":case"pre":y.push(pe(T)),oe=Z=null;for($e in N)if(n.call(N,$e)&&(we=N[$e],we!=null))switch($e){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;default:U(y,B,$e,we)}if(y.push(">"),oe!=null){if(Z!=null)throw Error(t(60));if(typeof oe!="object"||!("__html"in oe))throw Error(t(61));N=oe.__html,N!=null&&(typeof N=="string"&&0<N.length&&N[0]===`
|
|
12
|
+
`?y.push(`
|
|
13
|
+
`,N):y.push(""+N))}return typeof Z=="string"&&Z[0]===`
|
|
14
|
+
`&&y.push(`
|
|
15
|
+
`),Z;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":y.push(pe(T));for(var Tn in N)if(n.call(N,Tn)&&(Z=N[Tn],Z!=null))switch(Tn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,T));default:U(y,B,Tn,Z)}return y.push("/>"),null;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 H(y,N,T,B);case"html":return ee.insertionMode===0&&y.push("<!DOCTYPE html>"),H(y,N,T,B);default:if(T.indexOf("-")===-1&&typeof N.is!="string")return H(y,N,T,B);y.push(pe(T)),oe=Z=null;for(Ge in N)if(n.call(N,Ge)&&(we=N[Ge],we!=null))switch(Ge){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;case"style":M(y,B,we);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Ge)&&typeof we!="function"&&typeof we!="symbol"&&y.push(" ",Ge,'="',C(we),'"')}return y.push(">"),j(y,oe,Z),Z}}function se(y,T,N){if(y.push('<!--$?--><template id="'),N===null)throw Error(t(395));return y.push(N),y.push('"></template>')}function xe(y,T,N,B){switch(N.insertionMode){case 0:case 1:return y.push('<div hidden id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 2:return y.push('<svg aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 3:return y.push('<math aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 4:return y.push('<table hidden id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 5:return y.push('<table hidden><tbody id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 6:return y.push('<table hidden><tr id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 7:return y.push('<table hidden><colgroup id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');default:throw Error(t(397))}}function Ae(y,T){switch(T.insertionMode){case 0:case 1:return y.push("</div>");case 2:return y.push("</svg>");case 3:return y.push("</math>");case 4:return y.push("</table>");case 5:return y.push("</tbody></table>");case 6:return y.push("</tr></table>");case 7:return y.push("</colgroup></table>");default:throw Error(t(397))}}var Re=/[<\u2028\u2029]/g;function Q(y){return JSON.stringify(y).replace(Re,function(T){switch(T){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ee(y,T){return T=T===void 0?"":T,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:T+"P:",segmentPrefix:T+"S:",boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:y}}function ne(y,T,N,B){return N.generateStaticMarkup?(y.push(C(T)),!1):(T===""?y=B:(B&&y.push("<!-- -->"),y.push(C(T)),y=!0),y)}var re=Object.assign,ue=Symbol.for("react.element"),me=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),_e=Symbol.for("react.provider"),je=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),xt=Symbol.for("react.scope"),zt=Symbol.for("react.debug_trace_mode"),xn=Symbol.for("react.legacy_hidden"),kr=Symbol.for("react.default_value"),Vt=Symbol.iterator;function un(y){if(y==null)return null;if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case Te:return"Fragment";case me:return"Portal";case ve:return"Profiler";case de:return"StrictMode";case Be:return"Suspense";case Je:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case je:return(y.displayName||"Context")+".Consumer";case _e:return(y._context.displayName||"Context")+".Provider";case ze:var T=y.render;return y=y.displayName,y||(y=T.displayName||T.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case ke:return T=y.displayName||null,T!==null?T:un(y.type)||"Memo";case tt:T=y._payload,y=y._init;try{return un(y(T))}catch{}}return null}var wn={};function Ne(y,T){if(y=y.contextTypes,!y)return wn;var N={},B;for(B in y)N[B]=T[B];return N}var nt=null;function ct(y,T){if(y!==T){y.context._currentValue2=y.parentValue,y=y.parent;var N=T.parent;if(y===null){if(N!==null)throw Error(t(401))}else{if(N===null)throw Error(t(401));ct(y,N)}T.context._currentValue2=T.value}}function ut(y){y.context._currentValue2=y.parentValue,y=y.parent,y!==null&&ut(y)}function Dt(y){var T=y.parent;T!==null&&Dt(T),y.context._currentValue2=y.value}function Jt(y,T){if(y.context._currentValue2=y.parentValue,y=y.parent,y===null)throw Error(t(402));y.depth===T.depth?ct(y,T):Jt(y,T)}function Kt(y,T){var N=T.parent;if(N===null)throw Error(t(402));y.depth===N.depth?ct(y,N):Kt(y,N),T.context._currentValue2=T.value}function wt(y){var T=nt;T!==y&&(T===null?Dt(y):y===null?ut(T):T.depth===y.depth?ct(T,y):T.depth>y.depth?Jt(T,y):Kt(T,y),nt=y)}var Qn={isMounted:function(){return!1},enqueueSetState:function(y,T){y=y._reactInternals,y.queue!==null&&y.queue.push(T)},enqueueReplaceState:function(y,T){y=y._reactInternals,y.replace=!0,y.queue=[T]},enqueueForceUpdate:function(){}};function qt(y,T,N,B){var ee=y.state!==void 0?y.state:null;y.updater=Qn,y.props=N,y.state=ee;var Z={queue:[],replace:!1};y._reactInternals=Z;var oe=T.contextType;if(y.context=typeof oe=="object"&&oe!==null?oe._currentValue2:B,oe=T.getDerivedStateFromProps,typeof oe=="function"&&(oe=oe(N,ee),ee=oe==null?ee:re({},ee,oe),y.state=ee),typeof T.getDerivedStateFromProps!="function"&&typeof y.getSnapshotBeforeUpdate!="function"&&(typeof y.UNSAFE_componentWillMount=="function"||typeof y.componentWillMount=="function"))if(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&Qn.enqueueReplaceState(y,y.state,null),Z.queue!==null&&0<Z.queue.length)if(T=Z.queue,oe=Z.replace,Z.queue=null,Z.replace=!1,oe&&T.length===1)y.state=T[0];else{for(Z=oe?T[0]:y.state,ee=!0,oe=oe?1:0;oe<T.length;oe++){var we=T[oe];we=typeof we=="function"?we.call(y,Z,N,B):we,we!=null&&(ee?(ee=!1,Z=re({},Z,we)):re(Z,we))}y.state=Z}else Z.queue=null}var Zn={id:1,overflow:""};function Sn(y,T,N){var B=y.id;y=y.overflow;var ee=32-Cn(B)-1;B&=~(1<<ee),N+=1;var Z=32-Cn(T)+ee;if(30<Z){var oe=ee-ee%5;return Z=(B&(1<<oe)-1).toString(32),B>>=oe,ee-=oe,{id:1<<32-Cn(T)+ee|N<<ee|B,overflow:Z+y}}return{id:1<<Z|N<<ee|B,overflow:y}}var Cn=Math.clz32?Math.clz32:dn,Xn=Math.log,fn=Math.LN2;function dn(y){return y>>>=0,y===0?32:31-(Xn(y)/fn|0)|0}function Fr(y,T){return y===T&&(y!==0||1/y===1/T)||y!==y&&T!==T}var Zr=typeof Object.is=="function"?Object.is:Fr,an=null,pn=null,Dn=null,dt=null,An=!1,Xr=!1,jr=0,vt=null,Fn=0;function ar(){if(an===null)throw Error(t(321));return an}function Yt(){if(0<Fn)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function zr(){return dt===null?Dn===null?(An=!1,Dn=dt=Yt()):(An=!0,dt=Dn):dt.next===null?(An=!1,dt=dt.next=Yt()):(An=!0,dt=dt.next),dt}function Jr(){pn=an=null,Xr=!1,Dn=null,Fn=0,dt=vt=null}function vo(y,T){return typeof T=="function"?T(y):T}function Wt(y,T,N){if(an=ar(),dt=zr(),An){var B=dt.queue;if(T=B.dispatch,vt!==null&&(N=vt.get(B),N!==void 0)){vt.delete(B),B=dt.memoizedState;do B=y(B,N.action),N=N.next;while(N!==null);return dt.memoizedState=B,[B,T]}return[dt.memoizedState,T]}return y=y===vo?typeof T=="function"?T():T:N!==void 0?N(T):T,dt.memoizedState=y,y=dt.queue={last:null,dispatch:null},y=y.dispatch=sr.bind(null,an,y),[dt.memoizedState,y]}function sn(y,T){if(an=ar(),dt=zr(),T=T===void 0?null:T,dt!==null){var N=dt.memoizedState;if(N!==null&&T!==null){var B=N[1];e:if(B===null)B=!1;else{for(var ee=0;ee<B.length&&ee<T.length;ee++)if(!Zr(T[ee],B[ee])){B=!1;break e}B=!0}if(B)return N[0]}}return y=y(),dt.memoizedState=[y,T],y}function sr(y,T,N){if(25<=Fn)throw Error(t(301));if(y===an)if(Xr=!0,y={action:N,next:null},vt===null&&(vt=new Map),N=vt.get(T),N===void 0)vt.set(T,y);else{for(T=N;T.next!==null;)T=T.next;T.next=y}}function zo(){throw Error(t(394))}function jn(){}var Br={readContext:function(y){return y._currentValue2},useContext:function(y){return ar(),y._currentValue2},useMemo:sn,useReducer:Wt,useRef:function(y){an=ar(),dt=zr();var T=dt.memoizedState;return T===null?(y={current:y},dt.memoizedState=y):T},useState:function(y){return Wt(vo,y)},useInsertionEffect:jn,useLayoutEffect:function(){},useCallback:function(y,T){return sn(function(){return y},T)},useImperativeHandle:jn,useEffect:jn,useDebugValue:jn,useDeferredValue:function(y){return ar(),y},useTransition:function(){return ar(),[!1,zo]},useId:function(){var y=pn.treeContext,T=y.overflow;y=y.id,y=(y&~(1<<32-Cn(y)-1)).toString(32)+T;var N=Ur;if(N===null)throw Error(t(404));return T=jr++,y=":"+N.idPrefix+"R"+y,0<T&&(y+="H"+T.toString(32)),y+":"},useMutableSource:function(y,T){return ar(),T(y._source)},useSyncExternalStore:function(y,T,N){if(N===void 0)throw Error(t(407));return N()}},Ur=null,en=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(y){return console.error(y),null}function zn(){}function Wr(y,T,N,B,ee,Z,oe,we,$e){var Ge=[],He=new Set;return T={destination:null,responseState:T,progressiveChunkSize:B===void 0?12800:B,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:He,pingedTasks:Ge,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ee===void 0?ln:ee,onAllReady:zn,onShellReady:oe===void 0?zn:oe,onShellError:zn,onFatalError:zn},N=Tr(T,0,null,N,!1,!1),N.parentFlushed=!0,y=lr(T,y,null,N,He,wn,null,Zn),Ge.push(y),T}function lr(y,T,N,B,ee,Z,oe,we){y.allPendingTasks++,N===null?y.pendingRootTasks++:N.pendingTasks++;var $e={node:T,ping:function(){var Ge=y.pingedTasks;Ge.push($e),Ge.length===1&&rn(y)},blockedBoundary:N,blockedSegment:B,abortSet:ee,legacyContext:Z,context:oe,treeContext:we};return ee.add($e),$e}function Tr(y,T,N,B,ee,Z){return{status:0,id:-1,index:T,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:N,lastPushedText:ee,textEmbedded:Z}}function De(y,T){if(y=y.onError(T),y!=null&&typeof y!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof y+'" instead');return y}function K(y,T){var N=y.onShellError;N(T),N=y.onFatalError,N(T),y.destination!==null?(y.status=2,y.destination.destroy(T)):(y.status=1,y.fatalError=T)}function he(y,T,N,B,ee){for(an={},pn=T,jr=0,y=N(B,ee);Xr;)Xr=!1,jr=0,Fn+=1,dt=null,y=N(B,ee);return Jr(),y}function Fe(y,T,N,B){var ee=N.render(),Z=B.childContextTypes;if(Z!=null){var oe=T.legacyContext;if(typeof N.getChildContext!="function")B=oe;else{N=N.getChildContext();for(var we in N)if(!(we in Z))throw Error(t(108,un(B)||"Unknown",we));B=re({},oe,N)}T.legacyContext=B,qe(y,T,ee),T.legacyContext=oe}else qe(y,T,ee)}function St(y,T){if(y&&y.defaultProps){T=re({},T),y=y.defaultProps;for(var N in y)T[N]===void 0&&(T[N]=y[N]);return T}return T}function kt(y,T,N,B,ee){if(typeof N=="function")if(N.prototype&&N.prototype.isReactComponent){ee=Ne(N,T.legacyContext);var Z=N.contextType;Z=new N(B,typeof Z=="object"&&Z!==null?Z._currentValue2:ee),qt(Z,N,B,ee),Fe(y,T,Z,N)}else{Z=Ne(N,T.legacyContext),ee=he(y,T,N,B,Z);var oe=jr!==0;if(typeof ee=="object"&&ee!==null&&typeof ee.render=="function"&&ee.$$typeof===void 0)qt(ee,N,B,Z),Fe(y,T,ee,N);else if(oe){B=T.treeContext,T.treeContext=Sn(B,1,0);try{qe(y,T,ee)}finally{T.treeContext=B}}else qe(y,T,ee)}else if(typeof N=="string"){switch(ee=T.blockedSegment,Z=ie(ee.chunks,N,B,y.responseState,ee.formatContext),ee.lastPushedText=!1,oe=ee.formatContext,ee.formatContext=O(oe,N,B),Qt(y,T,Z),ee.formatContext=oe,N){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ee.chunks.push("</",N,">")}ee.lastPushedText=!1}else{switch(N){case xn:case zt:case de:case ve:case Te:qe(y,T,B.children);return;case Je:qe(y,T,B.children);return;case xt:throw Error(t(343));case Be:e:{N=T.blockedBoundary,ee=T.blockedSegment,Z=B.fallback,B=B.children,oe=new Set;var we={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:oe,errorDigest:null},$e=Tr(y,ee.chunks.length,we,ee.formatContext,!1,!1);ee.children.push($e),ee.lastPushedText=!1;var Ge=Tr(y,0,null,ee.formatContext,!1,!1);Ge.parentFlushed=!0,T.blockedBoundary=we,T.blockedSegment=Ge;try{if(Qt(y,T,B),y.responseState.generateStaticMarkup||Ge.lastPushedText&&Ge.textEmbedded&&Ge.chunks.push("<!-- -->"),Ge.status=1,Ct(we,Ge),we.pendingTasks===0)break e}catch(He){Ge.status=4,we.forceClientRender=!0,we.errorDigest=De(y,He)}finally{T.blockedBoundary=N,T.blockedSegment=ee}T=lr(y,Z,N,$e,oe,T.legacyContext,T.context,T.treeContext),y.pingedTasks.push(T)}return}if(typeof N=="object"&&N!==null)switch(N.$$typeof){case ze:if(B=he(y,T,N.render,B,ee),jr!==0){N=T.treeContext,T.treeContext=Sn(N,1,0);try{qe(y,T,B)}finally{T.treeContext=N}}else qe(y,T,B);return;case ke:N=N.type,B=St(N,B),kt(y,T,N,B,ee);return;case _e:if(ee=B.children,N=N._context,B=B.value,Z=N._currentValue2,N._currentValue2=B,oe=nt,nt=B={parent:oe,depth:oe===null?0:oe.depth+1,context:N,parentValue:Z,value:B},T.context=B,qe(y,T,ee),y=nt,y===null)throw Error(t(403));B=y.parentValue,y.context._currentValue2=B===kr?y.context._defaultValue:B,y=nt=y.parent,T.context=y;return;case je:B=B.children,B=B(N._currentValue2),qe(y,T,B);return;case tt:ee=N._init,N=ee(N._payload),B=St(N,B),kt(y,T,N,B,void 0);return}throw Error(t(130,N==null?N:typeof N,""))}}function qe(y,T,N){if(T.node=N,typeof N=="object"&&N!==null){switch(N.$$typeof){case ue:kt(y,T,N.type,N.props,N.ref);return;case me:throw Error(t(257));case tt:var B=N._init;N=B(N._payload),qe(y,T,N);return}if(E(N)){Ot(y,T,N);return}if(N===null||typeof N!="object"?B=null:(B=Vt&&N[Vt]||N["@@iterator"],B=typeof B=="function"?B:null),B&&(B=B.call(N))){if(N=B.next(),!N.done){var ee=[];do ee.push(N.value),N=B.next();while(!N.done);Ot(y,T,ee)}return}throw y=Object.prototype.toString.call(N),Error(t(31,y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":y))}typeof N=="string"?(B=T.blockedSegment,B.lastPushedText=ne(T.blockedSegment.chunks,N,y.responseState,B.lastPushedText)):typeof N=="number"&&(B=T.blockedSegment,B.lastPushedText=ne(T.blockedSegment.chunks,""+N,y.responseState,B.lastPushedText))}function Ot(y,T,N){for(var B=N.length,ee=0;ee<B;ee++){var Z=T.treeContext;T.treeContext=Sn(Z,B,ee);try{Qt(y,T,N[ee])}finally{T.treeContext=Z}}}function Qt(y,T,N){var B=T.blockedSegment.formatContext,ee=T.legacyContext,Z=T.context;try{return qe(y,T,N)}catch($e){if(Jr(),typeof $e=="object"&&$e!==null&&typeof $e.then=="function"){N=$e;var oe=T.blockedSegment,we=Tr(y,oe.chunks.length,null,oe.formatContext,oe.lastPushedText,!0);oe.children.push(we),oe.lastPushedText=!1,y=lr(y,T.node,T.blockedBoundary,we,T.abortSet,T.legacyContext,T.context,T.treeContext).ping,N.then(y,y),T.blockedSegment.formatContext=B,T.legacyContext=ee,T.context=Z,wt(Z)}else throw T.blockedSegment.formatContext=B,T.legacyContext=ee,T.context=Z,wt(Z),$e}}function hn(y){var T=y.blockedBoundary;y=y.blockedSegment,y.status=3,Bn(this,T,y)}function _r(y,T,N){var B=y.blockedBoundary;y.blockedSegment.status=3,B===null?(T.allPendingTasks--,T.status!==2&&(T.status=2,T.destination!==null&&T.destination.push(null))):(B.pendingTasks--,B.forceClientRender||(B.forceClientRender=!0,y=N===void 0?Error(t(432)):N,B.errorDigest=T.onError(y),B.parentFlushed&&T.clientRenderedBoundaries.push(B)),B.fallbackAbortableTasks.forEach(function(ee){return _r(ee,T,N)}),B.fallbackAbortableTasks.clear(),T.allPendingTasks--,T.allPendingTasks===0&&(B=T.onAllReady,B()))}function Ct(y,T){if(T.chunks.length===0&&T.children.length===1&&T.children[0].boundary===null){var N=T.children[0];N.id=T.id,N.parentFlushed=!0,N.status===1&&Ct(y,N)}else y.completedSegments.push(T)}function Bn(y,T,N){if(T===null){if(N.parentFlushed){if(y.completedRootSegment!==null)throw Error(t(389));y.completedRootSegment=N}y.pendingRootTasks--,y.pendingRootTasks===0&&(y.onShellError=zn,T=y.onShellReady,T())}else T.pendingTasks--,T.forceClientRender||(T.pendingTasks===0?(N.parentFlushed&&N.status===1&&Ct(T,N),T.parentFlushed&&y.completedBoundaries.push(T),T.fallbackAbortableTasks.forEach(hn,y),T.fallbackAbortableTasks.clear()):N.parentFlushed&&N.status===1&&(Ct(T,N),T.completedSegments.length===1&&T.parentFlushed&&y.partialBoundaries.push(T)));y.allPendingTasks--,y.allPendingTasks===0&&(y=y.onAllReady,y())}function rn(y){if(y.status!==2){var T=nt,N=en.current;en.current=Br;var B=Ur;Ur=y.responseState;try{var ee=y.pingedTasks,Z;for(Z=0;Z<ee.length;Z++){var oe=ee[Z],we=y,$e=oe.blockedSegment;if($e.status===0){wt(oe.context);try{qe(we,oe,oe.node),we.responseState.generateStaticMarkup||$e.lastPushedText&&$e.textEmbedded&&$e.chunks.push("<!-- -->"),oe.abortSet.delete(oe),$e.status=1,Bn(we,oe.blockedBoundary,$e)}catch(_n){if(Jr(),typeof _n=="object"&&_n!==null&&typeof _n.then=="function"){var Ge=oe.ping;_n.then(Ge,Ge)}else{oe.abortSet.delete(oe),$e.status=4;var He=oe.blockedBoundary,pt=_n,kn=De(we,pt);if(He===null?K(we,pt):(He.pendingTasks--,He.forceClientRender||(He.forceClientRender=!0,He.errorDigest=kn,He.parentFlushed&&we.clientRenderedBoundaries.push(He))),we.allPendingTasks--,we.allPendingTasks===0){var Tn=we.onAllReady;Tn()}}}finally{}}}ee.splice(0,Z),y.destination!==null&&En(y,y.destination)}catch(_n){De(y,_n),K(y,_n)}finally{Ur=B,en.current=N,N===Br&&wt(T)}}}function qr(y,T,N){switch(N.parentFlushed=!0,N.status){case 0:var B=N.id=y.nextSegmentId++;return N.lastPushedText=!1,N.textEmbedded=!1,y=y.responseState,T.push('<template id="'),T.push(y.placeholderPrefix),y=B.toString(16),T.push(y),T.push('"></template>');case 1:N.status=2;var ee=!0;B=N.chunks;var Z=0;N=N.children;for(var oe=0;oe<N.length;oe++){for(ee=N[oe];Z<ee.index;Z++)T.push(B[Z]);ee=yo(y,T,ee)}for(;Z<B.length-1;Z++)T.push(B[Z]);return Z<B.length&&(ee=T.push(B[Z])),ee;default:throw Error(t(390))}}function yo(y,T,N){var B=N.boundary;if(B===null)return qr(y,T,N);if(B.parentFlushed=!0,B.forceClientRender)return y.responseState.generateStaticMarkup||(B=B.errorDigest,T.push("<!--$!-->"),T.push("<template"),B&&(T.push(' data-dgst="'),B=C(B),T.push(B),T.push('"')),T.push("></template>")),qr(y,T,N),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y;if(0<B.pendingTasks){B.rootSegmentID=y.nextSegmentId++,0<B.completedSegments.length&&y.partialBoundaries.push(B);var ee=y.responseState,Z=ee.nextSuspenseID++;return ee=ee.boundaryPrefix+Z.toString(16),B=B.id=ee,se(T,y.responseState,B),qr(y,T,N),T.push("<!--/$-->")}if(B.byteSize>y.progressiveChunkSize)return B.rootSegmentID=y.nextSegmentId++,y.completedBoundaries.push(B),se(T,y.responseState,B.id),qr(y,T,N),T.push("<!--/$-->");if(y.responseState.generateStaticMarkup||T.push("<!--$-->"),N=B.completedSegments,N.length!==1)throw Error(t(391));return yo(y,T,N[0]),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y}function Bo(y,T,N){return xe(T,y.responseState,N.formatContext,N.id),yo(y,T,N),Ae(T,N.formatContext)}function Jn(y,T,N){for(var B=N.completedSegments,ee=0;ee<B.length;ee++)Rr(y,T,N,B[ee]);if(B.length=0,y=y.responseState,B=N.id,N=N.rootSegmentID,T.push(y.startInlineScript),y.sentCompleteBoundaryFunction?T.push('$RC("'):(y.sentCompleteBoundaryFunction=!0,T.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),B===null)throw Error(t(395));return N=N.toString(16),T.push(B),T.push('","'),T.push(y.segmentPrefix),T.push(N),T.push('")<\/script>')}function Rr(y,T,N,B){if(B.status===2)return!0;var ee=B.id;if(ee===-1){if((B.id=N.rootSegmentID)===-1)throw Error(t(392));return Bo(y,T,B)}return Bo(y,T,B),y=y.responseState,T.push(y.startInlineScript),y.sentCompleteSegmentFunction?T.push('$RS("'):(y.sentCompleteSegmentFunction=!0,T.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),T.push(y.segmentPrefix),ee=ee.toString(16),T.push(ee),T.push('","'),T.push(y.placeholderPrefix),T.push(ee),T.push('")<\/script>')}function En(y,T){try{var N=y.completedRootSegment;if(N!==null&&y.pendingRootTasks===0){yo(y,T,N),y.completedRootSegment=null;var B=y.responseState.bootstrapChunks;for(N=0;N<B.length-1;N++)T.push(B[N]);N<B.length&&T.push(B[N])}var ee=y.clientRenderedBoundaries,Z;for(Z=0;Z<ee.length;Z++){var oe=ee[Z];B=T;var we=y.responseState,$e=oe.id,Ge=oe.errorDigest,He=oe.errorMessage,pt=oe.errorComponentStack;if(B.push(we.startInlineScript),we.sentClientRenderFunction?B.push('$RX("'):(we.sentClientRenderFunction=!0,B.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),$e===null)throw Error(t(395));if(B.push($e),B.push('"'),Ge||He||pt){B.push(",");var kn=Q(Ge||"");B.push(kn)}if(He||pt){B.push(",");var Tn=Q(He||"");B.push(Tn)}if(pt){B.push(",");var _n=Q(pt);B.push(_n)}if(!B.push(")<\/script>")){y.destination=null,Z++,ee.splice(0,Z);return}}ee.splice(0,Z);var eo=y.completedBoundaries;for(Z=0;Z<eo.length;Z++)if(!Jn(y,T,eo[Z])){y.destination=null,Z++,eo.splice(0,Z);return}eo.splice(0,Z);var Pr=y.partialBoundaries;for(Z=0;Z<Pr.length;Z++){var Wo=Pr[Z];e:{ee=y,oe=T;var to=Wo.completedSegments;for(we=0;we<to.length;we++)if(!Rr(ee,oe,Wo,to[we])){we++,to.splice(0,we);var bo=!1;break e}to.splice(0,we),bo=!0}if(!bo){y.destination=null,Z++,Pr.splice(0,Z);return}}Pr.splice(0,Z);var $r=y.completedBoundaries;for(Z=0;Z<$r.length;Z++)if(!Jn(y,T,$r[Z])){y.destination=null,Z++,$r.splice(0,Z);return}$r.splice(0,Z)}finally{y.allPendingTasks===0&&y.pingedTasks.length===0&&y.clientRenderedBoundaries.length===0&&y.completedBoundaries.length===0&&T.push(null)}}function Uo(y,T){try{var N=y.abortableTasks;N.forEach(function(B){return _r(B,y,T)}),N.clear(),y.destination!==null&&En(y,y.destination)}catch(B){De(y,B),K(y,B)}}function on(){}function Un(y,T,N,B){var ee=!1,Z=null,oe="",we={push:function(Ge){return Ge!==null&&(oe+=Ge),!0},destroy:function(Ge){ee=!0,Z=Ge}},$e=!1;if(y=Wr(y,Ee(N,T?T.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,on,void 0,function(){$e=!0}),rn(y),Uo(y,B),y.status===1)y.status=2,we.destroy(y.fatalError);else if(y.status!==2&&y.destination===null){y.destination=we;try{En(y,we)}catch(Ge){De(y,Ge),K(y,Ge)}}if(ee)throw Z;if(!$e)throw Error(t(426));return oe}return zs.renderToNodeStream=function(){throw Error(t(207))},zs.renderToStaticMarkup=function(y,T){return Un(y,T,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},zs.renderToStaticNodeStream=function(){throw Error(t(208))},zs.renderToString=function(y,T){return Un(y,T,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},zs.version="18.3.1",zs}var Cp={};/**
|
|
16
16
|
* @license React
|
|
17
17
|
* react-dom-server.browser.production.min.js
|
|
18
18
|
*
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var
|
|
24
|
-
`),
|
|
25
|
-
`&&
|
|
26
|
-
`?
|
|
27
|
-
`&&f.push(Nr),N;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":f.push(mt(g));for(var Bt in w)if(E.call(w,Bt)&&(N=w[Bt],N!=null))switch(Bt){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,g));default:Ue(f,C,Bt,N)}return f.push(Lt),null;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 jr(f,w,g,C);case"html":return z.insertionMode===0&&f.push(ct),jr(f,w,g,C);default:if(g.indexOf("-")===-1&&typeof w.is!="string")return jr(f,w,g,C);f.push(mt(g)),G=N=null;for(Le in w)if(E.call(w,Le)&&(re=w[Le],re!=null))switch(Le){case"children":N=re;break;case"dangerouslySetInnerHTML":G=re;break;case"style":Te(f,C,re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:D(Le)&&typeof re!="function"&&typeof re!="symbol"&&f.push(Ee,m(Le),Re,m(ce(re)),$e)}return f.push(nt),Lr(f,G,N),N}}var En=x("</"),Cn=x(">"),at=x('<template id="'),Tn=x('"></template>'),uo=x("<!--$-->"),co=x('<!--$?--><template id="'),Rn=x('"></template>'),en=x("<!--$!-->"),li=x("<!--/$-->"),Pn=x("<template"),yr=x('"'),An=x(' data-dgst="');x(' data-msg="'),x(' data-stck="');var fo=x("></template>");function xt(f,g,w){if(a(f,co),w===null)throw Error(r(395));return a(f,w),d(f,Rn)}var Jt=x('<div hidden id="'),br=x('">'),Xe=x("</div>"),xr=x('<svg aria-hidden="true" style="display:none" id="'),tn=x('">'),$r=x("</svg>"),Kt=x('<math aria-hidden="true" style="display:none" id="'),rn=x('">'),cr=x("</math>"),ft=x('<table hidden id="'),In=x('">'),On=x("</table>"),po=x('<table hidden><tbody id="'),st=x('">'),Fn=x("</tbody></table>"),ui=x('<table hidden><tr id="'),ci=x('">'),Zt=x("</tr></table>"),Mn=x('<table hidden><colgroup id="'),nn=x('">'),wr=x("</colgroup></table>");function Tt(f,g,w,C){switch(w.insertionMode){case 0:case 1:return a(f,Jt),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,br);case 2:return a(f,xr),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,tn);case 3:return a(f,Kt),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,rn);case 4:return a(f,ft),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,In);case 5:return a(f,po),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,st);case 6:return a(f,ui),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,ci);case 7:return a(f,Mn),a(f,g.segmentPrefix),a(f,m(C.toString(16))),d(f,nn);default:throw Error(r(397))}}function er(f,g){switch(g.insertionMode){case 0:case 1:return d(f,Xe);case 2:return d(f,$r);case 3:return d(f,cr);case 4:return d(f,On);case 5:return d(f,Fn);case 6:return d(f,Zt);case 7:return d(f,wr);default:throw Error(r(397))}}var on=x('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Sr=x('$RS("'),kr=x('","'),tr=x('")<\/script>'),Er=x('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Rt=x('$RC("'),ho=x('","'),mo=x('")<\/script>'),fr=x('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),lt=x('$RX("'),rr=x('"'),nr=x(")<\/script>"),Cr=x(","),an=/[<\u2028\u2029]/g;function $t(f){return JSON.stringify(f).replace(an,function(g){switch(g){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var or=Object.assign,wt=Symbol.for("react.element"),Tr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),sn=Symbol.for("react.strict_mode"),Ft=Symbol.for("react.profiler"),ir=Symbol.for("react.provider"),St=Symbol.for("react.context"),ln=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Pt=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),k=Symbol.for("react.scope"),T=Symbol.for("react.debug_trace_mode"),$=Symbol.for("react.legacy_hidden"),L=Symbol.for("react.default_value"),H=Symbol.iterator;function te(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case zr:return"Fragment";case Tr:return"Portal";case Ft:return"Profiler";case sn:return"StrictMode";case ht:return"Suspense";case Pt:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case St:return(f.displayName||"Context")+".Consumer";case ir:return(f._context.displayName||"Context")+".Provider";case ln:var g=f.render;return f=f.displayName,f||(f=g.displayName||g.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case c:return g=f.displayName||null,g!==null?g:te(f.type)||"Memo";case y:g=f._payload,f=f._init;try{return te(f(g))}catch{}}return null}var xe={};function Pe(f,g){if(f=f.contextTypes,!f)return xe;var w={},C;for(C in f)w[C]=g[C];return w}var we=null;function He(f,g){if(f!==g){f.context._currentValue=f.parentValue,f=f.parent;var w=g.parent;if(f===null){if(w!==null)throw Error(r(401))}else{if(w===null)throw Error(r(401));He(f,w)}g.context._currentValue=g.value}}function kt(f){f.context._currentValue=f.parentValue,f=f.parent,f!==null&&kt(f)}function Et(f){var g=f.parent;g!==null&&Et(g),f.context._currentValue=f.value}function Ct(f,g){if(f.context._currentValue=f.parentValue,f=f.parent,f===null)throw Error(r(402));f.depth===g.depth?He(f,g):Ct(f,g)}function Rr(f,g){var w=g.parent;if(w===null)throw Error(r(402));f.depth===w.depth?He(f,w):Rr(f,w),g.context._currentValue=g.value}function ar(f){var g=we;g!==f&&(g===null?Et(f):f===null?kt(g):g.depth===f.depth?He(g,f):g.depth>f.depth?Ct(g,f):Rr(g,f),we=f)}var un={isMounted:function(){return!1},enqueueSetState:function(f,g){f=f._reactInternals,f.queue!==null&&f.queue.push(g)},enqueueReplaceState:function(f,g){f=f._reactInternals,f.replace=!0,f.queue=[g]},enqueueForceUpdate:function(){}};function Pr(f,g,w,C){var z=f.state!==void 0?f.state:null;f.updater=un,f.props=w,f.state=z;var N={queue:[],replace:!1};f._reactInternals=N;var G=g.contextType;if(f.context=typeof G=="object"&&G!==null?G._currentValue:C,G=g.getDerivedStateFromProps,typeof G=="function"&&(G=G(w,z),z=G==null?z:or({},z,G),f.state=z),typeof g.getDerivedStateFromProps!="function"&&typeof f.getSnapshotBeforeUpdate!="function"&&(typeof f.UNSAFE_componentWillMount=="function"||typeof f.componentWillMount=="function"))if(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&un.enqueueReplaceState(f,f.state,null),N.queue!==null&&0<N.queue.length)if(g=N.queue,G=N.replace,N.queue=null,N.replace=!1,G&&g.length===1)f.state=g[0];else{for(N=G?g[0]:f.state,z=!0,G=G?1:0;G<g.length;G++){var re=g[G];re=typeof re=="function"?re.call(f,N,w,C):re,re!=null&&(z?(z=!1,N=or({},N,re)):or(N,re))}f.state=N}else N.queue=null}var Br={id:1,overflow:""};function dr(f,g,w){var C=f.id;f=f.overflow;var z=32-Ur(C)-1;C&=~(1<<z),w+=1;var N=32-Ur(g)+z;if(30<N){var G=z-z%5;return N=(C&(1<<G)-1).toString(32),C>>=G,z-=G,{id:1<<32-Ur(g)+z|w<<z|C,overflow:N+f}}return{id:1<<N|w<<z|C,overflow:f}}var Ur=Math.clz32?Math.clz32:go,_s=Math.log,Ls=Math.LN2;function go(f){return f>>>=0,f===0?32:31-(_s(f)/Ls|0)|0}function sr(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var js=typeof Object.is=="function"?Object.is:sr,pr=null,fi=null,vo=null,qe=null,Hr=!1,yo=!1,Wr=0,Ar=null,bo=0;function Ir(){if(pr===null)throw Error(r(321));return pr}function zt(){if(0<bo)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function di(){return qe===null?vo===null?(Hr=!1,vo=qe=zt()):(Hr=!0,qe=vo):qe.next===null?(Hr=!1,qe=qe.next=zt()):(Hr=!0,qe=qe.next),qe}function Dn(){fi=pr=null,yo=!1,vo=null,bo=0,qe=Ar=null}function sa(f,g){return typeof g=="function"?g(f):g}function xo(f,g,w){if(pr=Ir(),qe=di(),Hr){var C=qe.queue;if(g=C.dispatch,Ar!==null&&(w=Ar.get(C),w!==void 0)){Ar.delete(C),C=qe.memoizedState;do C=f(C,w.action),w=w.next;while(w!==null);return qe.memoizedState=C,[C,g]}return[qe.memoizedState,g]}return f=f===sa?typeof g=="function"?g():g:w!==void 0?w(g):g,qe.memoizedState=f,f=qe.queue={last:null,dispatch:null},f=f.dispatch=Ns.bind(null,pr,f),[qe.memoizedState,f]}function la(f,g){if(pr=Ir(),qe=di(),g=g===void 0?null:g,qe!==null){var w=qe.memoizedState;if(w!==null&&g!==null){var C=w[1];e:if(C===null)C=!1;else{for(var z=0;z<C.length&&z<g.length;z++)if(!js(g[z],C[z])){C=!1;break e}C=!0}if(C)return w[0]}}return f=f(),qe.memoizedState=[f,g],f}function Ns(f,g,w){if(25<=bo)throw Error(r(301));if(f===pr)if(yo=!0,f={action:w,next:null},Ar===null&&(Ar=new Map),w=Ar.get(g),w===void 0)Ar.set(g,f);else{for(g=w;g.next!==null;)g=g.next;g.next=f}}function $s(){throw Error(r(394))}function wo(){}var ua={readContext:function(f){return f._currentValue},useContext:function(f){return Ir(),f._currentValue},useMemo:la,useReducer:xo,useRef:function(f){pr=Ir(),qe=di();var g=qe.memoizedState;return g===null?(f={current:f},qe.memoizedState=f):g},useState:function(f){return xo(sa,f)},useInsertionEffect:wo,useLayoutEffect:function(){},useCallback:function(f,g){return la(function(){return f},g)},useImperativeHandle:wo,useEffect:wo,useDebugValue:wo,useDeferredValue:function(f){return Ir(),f},useTransition:function(){return Ir(),[!1,$s]},useId:function(){var f=fi.treeContext,g=f.overflow;f=f.id,f=(f&~(1<<32-Ur(f)-1)).toString(32)+g;var w=_n;if(w===null)throw Error(r(404));return g=Wr++,f=":"+w.idPrefix+"R"+f,0<g&&(f+="H"+g.toString(32)),f+":"},useMutableSource:function(f,g){return Ir(),g(f._source)},useSyncExternalStore:function(f,g,w){if(w===void 0)throw Error(r(407));return w()}},_n=null,pi=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zs(f){return console.error(f),null}function cn(){}function hi(f,g,w,C,z,N,G,re,Ae){var Le=[],De=new Set;return g={destination:null,responseState:g,progressiveChunkSize:C===void 0?12800:C,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:De,pingedTasks:Le,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:z===void 0?zs:z,onAllReady:N===void 0?cn:N,onShellReady:G===void 0?cn:G,onShellError:re===void 0?cn:re,onFatalError:Ae===void 0?cn:Ae},w=fn(g,0,null,w,!1,!1),w.parentFlushed=!0,f=mi(g,f,null,w,De,xe,null,Br),Le.push(f),g}function mi(f,g,w,C,z,N,G,re){f.allPendingTasks++,w===null?f.pendingRootTasks++:w.pendingTasks++;var Ae={node:g,ping:function(){var Le=f.pingedTasks;Le.push(Ae),Le.length===1&&ga(f)},blockedBoundary:w,blockedSegment:C,abortSet:z,legacyContext:N,context:G,treeContext:re};return z.add(Ae),Ae}function fn(f,g,w,C,z,N){return{status:0,id:-1,index:g,parentFlushed:!1,chunks:[],children:[],formatContext:C,boundary:w,lastPushedText:z,textEmbedded:N}}function Ln(f,g){if(f=f.onError(g),f!=null&&typeof f!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function So(f,g){var w=f.onShellError;w(g),w=f.onFatalError,w(g),f.destination!==null?(f.status=2,R(f.destination,g)):(f.status=1,f.fatalError=g)}function ca(f,g,w,C,z){for(pr={},fi=g,Wr=0,f=w(C,z);yo;)yo=!1,Wr=0,bo+=1,qe=null,f=w(C,z);return Dn(),f}function fa(f,g,w,C){var z=w.render(),N=C.childContextTypes;if(N!=null){var G=g.legacyContext;if(typeof w.getChildContext!="function")C=G;else{w=w.getChildContext();for(var re in w)if(!(re in N))throw Error(r(108,te(C)||"Unknown",re));C=or({},G,w)}g.legacyContext=C,At(f,g,z),g.legacyContext=G}else At(f,g,z)}function da(f,g){if(f&&f.defaultProps){g=or({},g),f=f.defaultProps;for(var w in f)g[w]===void 0&&(g[w]=f[w]);return g}return g}function ko(f,g,w,C,z){if(typeof w=="function")if(w.prototype&&w.prototype.isReactComponent){z=Pe(w,g.legacyContext);var N=w.contextType;N=new w(C,typeof N=="object"&&N!==null?N._currentValue:z),Pr(N,w,C,z),fa(f,g,N,w)}else{N=Pe(w,g.legacyContext),z=ca(f,g,w,C,N);var G=Wr!==0;if(typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0)Pr(z,w,C,N),fa(f,g,z,w);else if(G){C=g.treeContext,g.treeContext=dr(C,1,0);try{At(f,g,z)}finally{g.treeContext=C}}else At(f,g,z)}else if(typeof w=="string"){switch(z=g.blockedSegment,N=kn(z.chunks,w,C,f.responseState,z.formatContext),z.lastPushedText=!1,G=z.formatContext,z.formatContext=J(G,w,C),Eo(f,g,N),z.formatContext=G,w){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:z.chunks.push(En,m(w),Cn)}z.lastPushedText=!1}else{switch(w){case $:case T:case sn:case Ft:case zr:At(f,g,C.children);return;case Pt:At(f,g,C.children);return;case k:throw Error(r(343));case ht:e:{w=g.blockedBoundary,z=g.blockedSegment,N=C.fallback,C=C.children,G=new Set;var re={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:G,errorDigest:null},Ae=fn(f,z.chunks.length,re,z.formatContext,!1,!1);z.children.push(Ae),z.lastPushedText=!1;var Le=fn(f,0,null,z.formatContext,!1,!1);Le.parentFlushed=!0,g.blockedBoundary=re,g.blockedSegment=Le;try{if(Eo(f,g,C),Le.lastPushedText&&Le.textEmbedded&&Le.chunks.push(fe),Le.status=1,Co(re,Le),re.pendingTasks===0)break e}catch(De){Le.status=4,re.forceClientRender=!0,re.errorDigest=Ln(f,De)}finally{g.blockedBoundary=w,g.blockedSegment=z}g=mi(f,N,w,Ae,G,g.legacyContext,g.context,g.treeContext),f.pingedTasks.push(g)}return}if(typeof w=="object"&&w!==null)switch(w.$$typeof){case ln:if(C=ca(f,g,w.render,C,z),Wr!==0){w=g.treeContext,g.treeContext=dr(w,1,0);try{At(f,g,C)}finally{g.treeContext=w}}else At(f,g,C);return;case c:w=w.type,C=da(w,C),ko(f,g,w,C,z);return;case ir:if(z=C.children,w=w._context,C=C.value,N=w._currentValue,w._currentValue=C,G=we,we=C={parent:G,depth:G===null?0:G.depth+1,context:w,parentValue:N,value:C},g.context=C,At(f,g,z),f=we,f===null)throw Error(r(403));C=f.parentValue,f.context._currentValue=C===L?f.context._defaultValue:C,f=we=f.parent,g.context=f;return;case St:C=C.children,C=C(w._currentValue),At(f,g,C);return;case y:z=w._init,w=z(w._payload),C=da(w,C),ko(f,g,w,C,void 0);return}throw Error(r(130,w==null?w:typeof w,""))}}function At(f,g,w){if(g.node=w,typeof w=="object"&&w!==null){switch(w.$$typeof){case wt:ko(f,g,w.type,w.props,w.ref);return;case Tr:throw Error(r(257));case y:var C=w._init;w=C(w._payload),At(f,g,w);return}if(Fe(w)){pa(f,g,w);return}if(w===null||typeof w!="object"?C=null:(C=H&&w[H]||w["@@iterator"],C=typeof C=="function"?C:null),C&&(C=C.call(w))){if(w=C.next(),!w.done){var z=[];do z.push(w.value),w=C.next();while(!w.done);pa(f,g,z)}return}throw f=Object.prototype.toString.call(w),Error(r(31,f==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":f))}typeof w=="string"?(C=g.blockedSegment,C.lastPushedText=me(g.blockedSegment.chunks,w,f.responseState,C.lastPushedText)):typeof w=="number"&&(C=g.blockedSegment,C.lastPushedText=me(g.blockedSegment.chunks,""+w,f.responseState,C.lastPushedText))}function pa(f,g,w){for(var C=w.length,z=0;z<C;z++){var N=g.treeContext;g.treeContext=dr(N,C,z);try{Eo(f,g,w[z])}finally{g.treeContext=N}}}function Eo(f,g,w){var C=g.blockedSegment.formatContext,z=g.legacyContext,N=g.context;try{return At(f,g,w)}catch(Ae){if(Dn(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){w=Ae;var G=g.blockedSegment,re=fn(f,G.chunks.length,null,G.formatContext,G.lastPushedText,!0);G.children.push(re),G.lastPushedText=!1,f=mi(f,g.node,g.blockedBoundary,re,g.abortSet,g.legacyContext,g.context,g.treeContext).ping,w.then(f,f),g.blockedSegment.formatContext=C,g.legacyContext=z,g.context=N,ar(N)}else throw g.blockedSegment.formatContext=C,g.legacyContext=z,g.context=N,ar(N),Ae}}function Bs(f){var g=f.blockedBoundary;f=f.blockedSegment,f.status=3,ma(this,g,f)}function ha(f,g,w){var C=f.blockedBoundary;f.blockedSegment.status=3,C===null?(g.allPendingTasks--,g.status!==2&&(g.status=2,g.destination!==null&&g.destination.close())):(C.pendingTasks--,C.forceClientRender||(C.forceClientRender=!0,f=w===void 0?Error(r(432)):w,C.errorDigest=g.onError(f),C.parentFlushed&&g.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(z){return ha(z,g,w)}),C.fallbackAbortableTasks.clear(),g.allPendingTasks--,g.allPendingTasks===0&&(C=g.onAllReady,C()))}function Co(f,g){if(g.chunks.length===0&&g.children.length===1&&g.children[0].boundary===null){var w=g.children[0];w.id=g.id,w.parentFlushed=!0,w.status===1&&Co(f,w)}else f.completedSegments.push(g)}function ma(f,g,w){if(g===null){if(w.parentFlushed){if(f.completedRootSegment!==null)throw Error(r(389));f.completedRootSegment=w}f.pendingRootTasks--,f.pendingRootTasks===0&&(f.onShellError=cn,g=f.onShellReady,g())}else g.pendingTasks--,g.forceClientRender||(g.pendingTasks===0?(w.parentFlushed&&w.status===1&&Co(g,w),g.parentFlushed&&f.completedBoundaries.push(g),g.fallbackAbortableTasks.forEach(Bs,f),g.fallbackAbortableTasks.clear()):w.parentFlushed&&w.status===1&&(Co(g,w),g.completedSegments.length===1&&g.parentFlushed&&f.partialBoundaries.push(g)));f.allPendingTasks--,f.allPendingTasks===0&&(f=f.onAllReady,f())}function ga(f){if(f.status!==2){var g=we,w=pi.current;pi.current=ua;var C=_n;_n=f.responseState;try{var z=f.pingedTasks,N;for(N=0;N<z.length;N++){var G=z[N],re=f,Ae=G.blockedSegment;if(Ae.status===0){ar(G.context);try{At(re,G,G.node),Ae.lastPushedText&&Ae.textEmbedded&&Ae.chunks.push(fe),G.abortSet.delete(G),Ae.status=1,ma(re,G.blockedBoundary,Ae)}catch(Ut){if(Dn(),typeof Ut=="object"&&Ut!==null&&typeof Ut.then=="function"){var Le=G.ping;Ut.then(Le,Le)}else{G.abortSet.delete(G),Ae.status=4;var De=G.blockedBoundary,et=Ut,It=Ln(re,et);if(De===null?So(re,et):(De.pendingTasks--,De.forceClientRender||(De.forceClientRender=!0,De.errorDigest=It,De.parentFlushed&&re.clientRenderedBoundaries.push(De))),re.allPendingTasks--,re.allPendingTasks===0){var Bt=re.onAllReady;Bt()}}}finally{}}}z.splice(0,N),f.destination!==null&&gi(f,f.destination)}catch(Ut){Ln(f,Ut),So(f,Ut)}finally{_n=C,pi.current=w,w===ua&&ar(g)}}}function To(f,g,w){switch(w.parentFlushed=!0,w.status){case 0:var C=w.id=f.nextSegmentId++;return w.lastPushedText=!1,w.textEmbedded=!1,f=f.responseState,a(g,at),a(g,f.placeholderPrefix),f=m(C.toString(16)),a(g,f),d(g,Tn);case 1:w.status=2;var z=!0;C=w.chunks;var N=0;w=w.children;for(var G=0;G<w.length;G++){for(z=w[G];N<z.index;N++)a(g,C[N]);z=Ro(f,g,z)}for(;N<C.length-1;N++)a(g,C[N]);return N<C.length&&(z=d(g,C[N])),z;default:throw Error(r(390))}}function Ro(f,g,w){var C=w.boundary;if(C===null)return To(f,g,w);if(C.parentFlushed=!0,C.forceClientRender)C=C.errorDigest,d(g,en),a(g,Pn),C&&(a(g,An),a(g,m(ce(C))),a(g,yr)),d(g,fo),To(f,g,w);else if(0<C.pendingTasks){C.rootSegmentID=f.nextSegmentId++,0<C.completedSegments.length&&f.partialBoundaries.push(C);var z=f.responseState,N=z.nextSuspenseID++;z=x(z.boundaryPrefix+N.toString(16)),C=C.id=z,xt(g,f.responseState,C),To(f,g,w)}else if(C.byteSize>f.progressiveChunkSize)C.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(C),xt(g,f.responseState,C.id),To(f,g,w);else{if(d(g,uo),w=C.completedSegments,w.length!==1)throw Error(r(391));Ro(f,g,w[0])}return d(g,li)}function va(f,g,w){return Tt(g,f.responseState,w.formatContext,w.id),Ro(f,g,w),er(g,w.formatContext)}function ya(f,g,w){for(var C=w.completedSegments,z=0;z<C.length;z++)ba(f,g,w,C[z]);if(C.length=0,f=f.responseState,C=w.id,w=w.rootSegmentID,a(g,f.startInlineScript),f.sentCompleteBoundaryFunction?a(g,Rt):(f.sentCompleteBoundaryFunction=!0,a(g,Er)),C===null)throw Error(r(395));return w=m(w.toString(16)),a(g,C),a(g,ho),a(g,f.segmentPrefix),a(g,w),d(g,mo)}function ba(f,g,w,C){if(C.status===2)return!0;var z=C.id;if(z===-1){if((C.id=w.rootSegmentID)===-1)throw Error(r(392));return va(f,g,C)}return va(f,g,C),f=f.responseState,a(g,f.startInlineScript),f.sentCompleteSegmentFunction?a(g,Sr):(f.sentCompleteSegmentFunction=!0,a(g,on)),a(g,f.segmentPrefix),z=m(z.toString(16)),a(g,z),a(g,kr),a(g,f.placeholderPrefix),a(g,z),d(g,tr)}function gi(f,g){o=new Uint8Array(512),i=0;try{var w=f.completedRootSegment;if(w!==null&&f.pendingRootTasks===0){Ro(f,g,w),f.completedRootSegment=null;var C=f.responseState.bootstrapChunks;for(w=0;w<C.length-1;w++)a(g,C[w]);w<C.length&&d(g,C[w])}var z=f.clientRenderedBoundaries,N;for(N=0;N<z.length;N++){var G=z[N];C=g;var re=f.responseState,Ae=G.id,Le=G.errorDigest,De=G.errorMessage,et=G.errorComponentStack;if(a(C,re.startInlineScript),re.sentClientRenderFunction?a(C,lt):(re.sentClientRenderFunction=!0,a(C,fr)),Ae===null)throw Error(r(395));a(C,Ae),a(C,rr),(Le||De||et)&&(a(C,Cr),a(C,m($t(Le||"")))),(De||et)&&(a(C,Cr),a(C,m($t(De||"")))),et&&(a(C,Cr),a(C,m($t(et)))),d(C,nr)}z.splice(0,N);var It=f.completedBoundaries;for(N=0;N<It.length;N++)ya(f,g,It[N]);It.splice(0,N),h(g),o=new Uint8Array(512),i=0;var Bt=f.partialBoundaries;for(N=0;N<Bt.length;N++){var Ut=Bt[N];e:{z=f,G=g;var Po=Ut.completedSegments;for(re=0;re<Po.length;re++)if(!ba(z,G,Ut,Po[re])){re++,Po.splice(0,re);var wa=!1;break e}Po.splice(0,re),wa=!0}if(!wa){f.destination=null,N++,Bt.splice(0,N);return}}Bt.splice(0,N);var jn=f.completedBoundaries;for(N=0;N<jn.length;N++)ya(f,g,jn[N]);jn.splice(0,N)}finally{h(g),f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&g.close()}}function xa(f,g){try{var w=f.abortableTasks;w.forEach(function(C){return ha(C,f,g)}),w.clear(),f.destination!==null&&gi(f,f.destination)}catch(C){Ln(f,C),So(f,C)}}return zu.renderToReadableStream=function(f,g){return new Promise(function(w,C){var z,N,G=new Promise(function(De,et){N=De,z=et}),re=hi(f,Z(g?g.identifierPrefix:void 0,g?g.nonce:void 0,g?g.bootstrapScriptContent:void 0,g?g.bootstrapScripts:void 0,g?g.bootstrapModules:void 0),Q(g?g.namespaceURI:void 0),g?g.progressiveChunkSize:void 0,g?g.onError:void 0,N,function(){var De=new ReadableStream({type:"bytes",pull:function(et){if(re.status===1)re.status=2,R(et,re.fatalError);else if(re.status!==2&&re.destination===null){re.destination=et;try{gi(re,et)}catch(It){Ln(re,It),So(re,It)}}},cancel:function(){xa(re)}},{highWaterMark:0});De.allReady=G,w(De)},function(De){G.catch(function(){}),C(De)},z);if(g&&g.signal){var Ae=g.signal,Le=function(){xa(re,Ae.reason),Ae.removeEventListener("abort",Le)};Ae.addEventListener("abort",Le)}ga(re)})},zu.version="18.3.1",zu}var Wi={};/**
|
|
23
|
+
*/var Ab;function Lk(){if(Ab)return Cp;Ab=1;var e=Y;function t(b){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+b,P=1;P<arguments.length;P++)k+="&args[]="+encodeURIComponent(arguments[P]);return"Minified React error #"+b+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function o(b,k){if(k.length!==0)if(512<k.length)0<r&&(b.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),b.enqueue(k);else{var P=n.length-r;P<k.length&&(P===0?b.enqueue(n):(n.set(k.subarray(0,P),r),b.enqueue(n),k=k.subarray(P)),n=new Uint8Array(512),r=0),n.set(k,r),r+=k.length}}function i(b,k){return o(b,k),!0}function s(b){n&&0<r&&(b.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function u(b){return c.encode(b)}function f(b){return c.encode(b)}function m(b,k){typeof b.error=="function"?b.error(k):b.close()}var h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,w={},C={};function A(b){return h.call(C,b)?!0:h.call(w,b)?!1:v.test(b)?C[b]=!0:(w[b]=!0,!1)}function x(b,k,P,z,te,J,le){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=z,this.attributeNamespace=te,this.mustUseProperty=P,this.propertyName=b,this.type=k,this.sanitizeURL=J,this.removeEmptyString=le}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(b){E[b]=new x(b,0,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var k=b[0];E[k]=new x(k,1,!1,b[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){E[b]=new x(b,2,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){E[b]=new x(b,2,!1,b,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(b){E[b]=new x(b,3,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){E[b]=new x(b,3,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){E[b]=new x(b,4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){E[b]=new x(b,6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){E[b]=new x(b,5,!1,b.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function O(b){return b[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(b){var k=b.replace(R,O);E[k]=new x(k,1,!1,b,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(b){var k=b.replace(R,O);E[k]=new x(k,1,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var k=b.replace(R,O);E[k]=new x(k,1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){E[b]=new x(b,1,!1,b.toLowerCase(),null,!1,!1)}),E.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){E[b]=new x(b,1,!1,b.toLowerCase(),null,!0,!0)});var L={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},M=["Webkit","ms","Moz","O"];Object.keys(L).forEach(function(b){M.forEach(function(k){k=k+b.charAt(0).toUpperCase()+b.substring(1),L[k]=L[b]})});var U=/["'&<>]/;function j(b){if(typeof b=="boolean"||typeof b=="number")return""+b;b=""+b;var k=U.exec(b);if(k){var P="",z,te=0;for(z=k.index;z<b.length;z++){switch(b.charCodeAt(z)){case 34:k=""";break;case 38:k="&";break;case 39:k="'";break;case 60:k="<";break;case 62:k=">";break;default:continue}te!==z&&(P+=b.substring(te,z)),te=z+1,P+=k}b=te!==z?P+b.substring(te,z):P}return b}var $=/([A-Z])/g,H=/^ms-/,G=Array.isArray,q=f("<script>"),pe=f("<\/script>"),ie=f('<script src="'),se=f('<script type="module" src="'),xe=f('" async=""><\/script>'),Ae=/(<\/|<)(s)(cript)/gi;function Re(b,k,P,z){return""+k+(P==="s"?"\\u0073":"\\u0053")+z}function Q(b,k,P,z,te){b=b===void 0?"":b,k=k===void 0?q:f('<script nonce="'+j(k)+'">');var J=[];if(P!==void 0&&J.push(k,u((""+P).replace(Ae,Re)),pe),z!==void 0)for(P=0;P<z.length;P++)J.push(ie,u(j(z[P])),xe);if(te!==void 0)for(z=0;z<te.length;z++)J.push(se,u(j(te[z])),xe);return{bootstrapChunks:J,startInlineScript:k,placeholderPrefix:f(b+"P:"),segmentPrefix:f(b+"S:"),boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ee(b,k){return{insertionMode:b,selectedValue:k}}function ne(b){return Ee(b==="http://www.w3.org/2000/svg"?2:b==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function re(b,k,P){switch(k){case"select":return Ee(1,P.value!=null?P.value:P.defaultValue);case"svg":return Ee(2,null);case"math":return Ee(3,null);case"foreignObject":return Ee(1,null);case"table":return Ee(4,null);case"thead":case"tbody":case"tfoot":return Ee(5,null);case"colgroup":return Ee(7,null);case"tr":return Ee(6,null)}return 4<=b.insertionMode||b.insertionMode===0?Ee(1,null):b}var ue=f("<!-- -->");function me(b,k,P,z){return k===""?z:(z&&b.push(ue),b.push(u(j(k))),!0)}var Te=new Map,de=f(' style="'),ve=f(":"),_e=f(";");function je(b,k,P){if(typeof P!="object")throw Error(t(62));k=!0;for(var z in P)if(h.call(P,z)){var te=P[z];if(te!=null&&typeof te!="boolean"&&te!==""){if(z.indexOf("--")===0){var J=u(j(z));te=u(j((""+te).trim()))}else{J=z;var le=Te.get(J);le!==void 0||(le=f(j(J.replace($,"-$1").toLowerCase().replace(H,"-ms-"))),Te.set(J,le)),J=le,te=typeof te=="number"?te===0||h.call(L,z)?u(""+te):u(te+"px"):u(j((""+te).trim()))}k?(k=!1,b.push(de,J,ve,te)):b.push(_e,J,ve,te)}}k||b.push(Je)}var ze=f(" "),Be=f('="'),Je=f('"'),ke=f('=""');function tt(b,k,P,z){switch(P){case"style":je(b,k,z);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){if(k=E.hasOwnProperty(P)?E[P]:null,k!==null){switch(typeof z){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}switch(P=u(k.attributeName),k.type){case 3:z&&b.push(ze,P,ke);break;case 4:z===!0?b.push(ze,P,ke):z!==!1&&b.push(ze,P,Be,u(j(z)),Je);break;case 5:isNaN(z)||b.push(ze,P,Be,u(j(z)),Je);break;case 6:!isNaN(z)&&1<=z&&b.push(ze,P,Be,u(j(z)),Je);break;default:k.sanitizeURL&&(z=""+z),b.push(ze,P,Be,u(j(z)),Je)}}else if(A(P)){switch(typeof z){case"function":case"symbol":return;case"boolean":if(k=P.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")return}b.push(ze,u(P),Be,u(j(z)),Je)}}}var xt=f(">"),zt=f("/>");function xn(b,k,P){if(k!=null){if(P!=null)throw Error(t(60));if(typeof k!="object"||!("__html"in k))throw Error(t(61));k=k.__html,k!=null&&b.push(u(""+k))}}function kr(b){var k="";return e.Children.forEach(b,function(P){P!=null&&(k+=P)}),k}var Vt=f(' selected=""');function un(b,k,P,z){b.push(ct(P));var te=P=null,J;for(J in k)if(h.call(k,J)){var le=k[J];if(le!=null)switch(J){case"children":P=le;break;case"dangerouslySetInnerHTML":te=le;break;default:tt(b,z,J,le)}}return b.push(xt),xn(b,te,P),typeof P=="string"?(b.push(u(j(P))),null):P}var wn=f(`
|
|
24
|
+
`),Ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,nt=new Map;function ct(b){var k=nt.get(b);if(k===void 0){if(!Ne.test(b))throw Error(t(65,b));k=f("<"+b),nt.set(b,k)}return k}var ut=f("<!DOCTYPE html>");function Dt(b,k,P,z,te){switch(k){case"select":b.push(ct("select"));var J=null,le=null;for(et in P)if(h.call(P,et)){var Se=P[et];if(Se!=null)switch(et){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;case"defaultValue":case"value":break;default:tt(b,z,et,Se)}}return b.push(xt),xn(b,le,J),J;case"option":le=te.selectedValue,b.push(ct("option"));var Qe=Se=null,rt=null,et=null;for(J in P)if(h.call(P,J)){var Mt=P[J];if(Mt!=null)switch(J){case"children":Se=Mt;break;case"selected":rt=Mt;break;case"dangerouslySetInnerHTML":et=Mt;break;case"value":Qe=Mt;default:tt(b,z,J,Mt)}}if(le!=null)if(P=Qe!==null?""+Qe:kr(Se),G(le)){for(z=0;z<le.length;z++)if(""+le[z]===P){b.push(Vt);break}}else""+le===P&&b.push(Vt);else rt&&b.push(Vt);return b.push(xt),xn(b,et,Se),Se;case"textarea":b.push(ct("textarea")),et=le=J=null;for(Se in P)if(h.call(P,Se)&&(Qe=P[Se],Qe!=null))switch(Se){case"children":et=Qe;break;case"value":J=Qe;break;case"defaultValue":le=Qe;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:tt(b,z,Se,Qe)}if(J===null&&le!==null&&(J=le),b.push(xt),et!=null){if(J!=null)throw Error(t(92));if(G(et)&&1<et.length)throw Error(t(93));J=""+et}return typeof J=="string"&&J[0]===`
|
|
25
|
+
`&&b.push(wn),J!==null&&b.push(u(j(""+J))),null;case"input":b.push(ct("input")),Qe=et=Se=J=null;for(le in P)if(h.call(P,le)&&(rt=P[le],rt!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":Qe=rt;break;case"defaultValue":Se=rt;break;case"checked":et=rt;break;case"value":J=rt;break;default:tt(b,z,le,rt)}return et!==null?tt(b,z,"checked",et):Qe!==null&&tt(b,z,"checked",Qe),J!==null?tt(b,z,"value",J):Se!==null&&tt(b,z,"value",Se),b.push(zt),null;case"menuitem":b.push(ct("menuitem"));for(var $n in P)if(h.call(P,$n)&&(J=P[$n],J!=null))switch($n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:tt(b,z,$n,J)}return b.push(xt),null;case"title":b.push(ct("title")),J=null;for(Mt in P)if(h.call(P,Mt)&&(le=P[Mt],le!=null))switch(Mt){case"children":J=le;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:tt(b,z,Mt,le)}return b.push(xt),J;case"listing":case"pre":b.push(ct(k)),le=J=null;for(Qe in P)if(h.call(P,Qe)&&(Se=P[Qe],Se!=null))switch(Qe){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;default:tt(b,z,Qe,Se)}if(b.push(xt),le!=null){if(J!=null)throw Error(t(60));if(typeof le!="object"||!("__html"in le))throw Error(t(61));P=le.__html,P!=null&&(typeof P=="string"&&0<P.length&&P[0]===`
|
|
26
|
+
`?b.push(wn,u(P)):b.push(u(""+P)))}return typeof J=="string"&&J[0]===`
|
|
27
|
+
`&&b.push(wn),J;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":b.push(ct(k));for(var ur in P)if(h.call(P,ur)&&(J=P[ur],J!=null))switch(ur){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,k));default:tt(b,z,ur,J)}return b.push(zt),null;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 un(b,P,k,z);case"html":return te.insertionMode===0&&b.push(ut),un(b,P,k,z);default:if(k.indexOf("-")===-1&&typeof P.is!="string")return un(b,P,k,z);b.push(ct(k)),le=J=null;for(rt in P)if(h.call(P,rt)&&(Se=P[rt],Se!=null))switch(rt){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;case"style":je(b,z,Se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(rt)&&typeof Se!="function"&&typeof Se!="symbol"&&b.push(ze,u(rt),Be,u(j(Se)),Je)}return b.push(xt),xn(b,le,J),J}}var Jt=f("</"),Kt=f(">"),wt=f('<template id="'),Qn=f('"></template>'),qt=f("<!--$-->"),Zn=f('<!--$?--><template id="'),Sn=f('"></template>'),Cn=f("<!--$!-->"),Xn=f("<!--/$-->"),fn=f("<template"),dn=f('"'),Fr=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var Zr=f("></template>");function an(b,k,P){if(o(b,Zn),P===null)throw Error(t(395));return o(b,P),i(b,Sn)}var pn=f('<div hidden id="'),Dn=f('">'),dt=f("</div>"),An=f('<svg aria-hidden="true" style="display:none" id="'),Xr=f('">'),jr=f("</svg>"),vt=f('<math aria-hidden="true" style="display:none" id="'),Fn=f('">'),ar=f("</math>"),Yt=f('<table hidden id="'),zr=f('">'),Jr=f("</table>"),vo=f('<table hidden><tbody id="'),Wt=f('">'),sn=f("</tbody></table>"),sr=f('<table hidden><tr id="'),zo=f('">'),jn=f("</tr></table>"),Br=f('<table hidden><colgroup id="'),Ur=f('">'),en=f("</colgroup></table>");function ln(b,k,P,z){switch(P.insertionMode){case 0:case 1:return o(b,pn),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Dn);case 2:return o(b,An),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Xr);case 3:return o(b,vt),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Fn);case 4:return o(b,Yt),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,zr);case 5:return o(b,vo),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Wt);case 6:return o(b,sr),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,zo);case 7:return o(b,Br),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Ur);default:throw Error(t(397))}}function zn(b,k){switch(k.insertionMode){case 0:case 1:return i(b,dt);case 2:return i(b,jr);case 3:return i(b,ar);case 4:return i(b,Jr);case 5:return i(b,sn);case 6:return i(b,jn);case 7:return i(b,en);default:throw Error(t(397))}}var Wr=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),lr=f('$RS("'),Tr=f('","'),De=f('")<\/script>'),K=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),he=f('$RC("'),Fe=f('","'),St=f('")<\/script>'),kt=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),qe=f('$RX("'),Ot=f('"'),Qt=f(")<\/script>"),hn=f(","),_r=/[<\u2028\u2029]/g;function Ct(b){return JSON.stringify(b).replace(_r,function(k){switch(k){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Bn=Object.assign,rn=Symbol.for("react.element"),qr=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),Bo=Symbol.for("react.strict_mode"),Jn=Symbol.for("react.profiler"),Rr=Symbol.for("react.provider"),En=Symbol.for("react.context"),Uo=Symbol.for("react.forward_ref"),on=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),B=Symbol.for("react.debug_trace_mode"),ee=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),oe=Symbol.iterator;function we(b){if(b==null)return null;if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case yo:return"Fragment";case qr:return"Portal";case Jn:return"Profiler";case Bo:return"StrictMode";case on:return"Suspense";case Un:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case En:return(b.displayName||"Context")+".Consumer";case Rr:return(b._context.displayName||"Context")+".Provider";case Uo:var k=b.render;return b=b.displayName,b||(b=k.displayName||k.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case y:return k=b.displayName||null,k!==null?k:we(b.type)||"Memo";case T:k=b._payload,b=b._init;try{return we(b(k))}catch{}}return null}var $e={};function Ge(b,k){if(b=b.contextTypes,!b)return $e;var P={},z;for(z in b)P[z]=k[z];return P}var He=null;function pt(b,k){if(b!==k){b.context._currentValue=b.parentValue,b=b.parent;var P=k.parent;if(b===null){if(P!==null)throw Error(t(401))}else{if(P===null)throw Error(t(401));pt(b,P)}k.context._currentValue=k.value}}function kn(b){b.context._currentValue=b.parentValue,b=b.parent,b!==null&&kn(b)}function Tn(b){var k=b.parent;k!==null&&Tn(k),b.context._currentValue=b.value}function _n(b,k){if(b.context._currentValue=b.parentValue,b=b.parent,b===null)throw Error(t(402));b.depth===k.depth?pt(b,k):_n(b,k)}function eo(b,k){var P=k.parent;if(P===null)throw Error(t(402));b.depth===P.depth?pt(b,P):eo(b,P),k.context._currentValue=k.value}function Pr(b){var k=He;k!==b&&(k===null?Tn(b):b===null?kn(k):k.depth===b.depth?pt(k,b):k.depth>b.depth?_n(k,b):eo(k,b),He=b)}var Wo={isMounted:function(){return!1},enqueueSetState:function(b,k){b=b._reactInternals,b.queue!==null&&b.queue.push(k)},enqueueReplaceState:function(b,k){b=b._reactInternals,b.replace=!0,b.queue=[k]},enqueueForceUpdate:function(){}};function to(b,k,P,z){var te=b.state!==void 0?b.state:null;b.updater=Wo,b.props=P,b.state=te;var J={queue:[],replace:!1};b._reactInternals=J;var le=k.contextType;if(b.context=typeof le=="object"&&le!==null?le._currentValue:z,le=k.getDerivedStateFromProps,typeof le=="function"&&(le=le(P,te),te=le==null?te:Bn({},te,le),b.state=te),typeof k.getDerivedStateFromProps!="function"&&typeof b.getSnapshotBeforeUpdate!="function"&&(typeof b.UNSAFE_componentWillMount=="function"||typeof b.componentWillMount=="function"))if(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&Wo.enqueueReplaceState(b,b.state,null),J.queue!==null&&0<J.queue.length)if(k=J.queue,le=J.replace,J.queue=null,J.replace=!1,le&&k.length===1)b.state=k[0];else{for(J=le?k[0]:b.state,te=!0,le=le?1:0;le<k.length;le++){var Se=k[le];Se=typeof Se=="function"?Se.call(b,J,P,z):Se,Se!=null&&(te?(te=!1,J=Bn({},J,Se)):Bn(J,Se))}b.state=J}else J.queue=null}var bo={id:1,overflow:""};function $r(b,k,P){var z=b.id;b=b.overflow;var te=32-xo(z)-1;z&=~(1<<te),P+=1;var J=32-xo(k)+te;if(30<J){var le=te-te%5;return J=(z&(1<<le)-1).toString(32),z>>=le,te-=le,{id:1<<32-xo(k)+te|P<<te|z,overflow:J+b}}return{id:1<<J|P<<te|z,overflow:b}}var xo=Math.clz32?Math.clz32:ra,ju=Math.log,zu=Math.LN2;function ra(b){return b>>>=0,b===0?32:31-(ju(b)/zu|0)|0}function Ir(b,k){return b===k&&(b!==0||1/b===1/k)||b!==b&&k!==k}var Bu=typeof Object.is=="function"?Object.is:Ir,Hr=null,ss=null,oa=null,Tt=null,wo=!1,ia=!1,So=0,no=null,aa=0;function ro(){if(Hr===null)throw Error(t(321));return Hr}function cr(){if(0<aa)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function ls(){return Tt===null?oa===null?(wo=!1,oa=Tt=cr()):(wo=!0,Tt=oa):Tt.next===null?(wo=!1,Tt=Tt.next=cr()):(wo=!0,Tt=Tt.next),Tt}function mi(){ss=Hr=null,ia=!1,oa=null,aa=0,Tt=no=null}function Dl(b,k){return typeof k=="function"?k(b):k}function sa(b,k,P){if(Hr=ro(),Tt=ls(),wo){var z=Tt.queue;if(k=z.dispatch,no!==null&&(P=no.get(z),P!==void 0)){no.delete(z),z=Tt.memoizedState;do z=b(z,P.action),P=P.next;while(P!==null);return Tt.memoizedState=z,[z,k]}return[Tt.memoizedState,k]}return b=b===Dl?typeof k=="function"?k():k:P!==void 0?P(k):k,Tt.memoizedState=b,b=Tt.queue={last:null,dispatch:null},b=b.dispatch=Uu.bind(null,Hr,b),[Tt.memoizedState,b]}function Fl(b,k){if(Hr=ro(),Tt=ls(),k=k===void 0?null:k,Tt!==null){var P=Tt.memoizedState;if(P!==null&&k!==null){var z=P[1];e:if(z===null)z=!1;else{for(var te=0;te<z.length&&te<k.length;te++)if(!Bu(k[te],z[te])){z=!1;break e}z=!0}if(z)return P[0]}}return b=b(),Tt.memoizedState=[b,k],b}function Uu(b,k,P){if(25<=aa)throw Error(t(301));if(b===Hr)if(ia=!0,b={action:P,next:null},no===null&&(no=new Map),P=no.get(k),P===void 0)no.set(k,b);else{for(k=P;k.next!==null;)k=k.next;k.next=b}}function Wu(){throw Error(t(394))}function la(){}var jl={readContext:function(b){return b._currentValue},useContext:function(b){return ro(),b._currentValue},useMemo:Fl,useReducer:sa,useRef:function(b){Hr=ro(),Tt=ls();var k=Tt.memoizedState;return k===null?(b={current:b},Tt.memoizedState=b):k},useState:function(b){return sa(Dl,b)},useInsertionEffect:la,useLayoutEffect:function(){},useCallback:function(b,k){return Fl(function(){return b},k)},useImperativeHandle:la,useEffect:la,useDebugValue:la,useDeferredValue:function(b){return ro(),b},useTransition:function(){return ro(),[!1,Wu]},useId:function(){var b=ss.treeContext,k=b.overflow;b=b.id,b=(b&~(1<<32-xo(b)-1)).toString(32)+k;var P=gi;if(P===null)throw Error(t(404));return k=So++,b=":"+P.idPrefix+"R"+b,0<k&&(b+="H"+k.toString(32)),b+":"},useMutableSource:function(b,k){return ro(),k(b._source)},useSyncExternalStore:function(b,k,P){if(P===void 0)throw Error(t(407));return P()}},gi=null,cs=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $u(b){return console.error(b),null}function $o(){}function us(b,k,P,z,te,J,le,Se,Qe){var rt=[],et=new Set;return k={destination:null,responseState:k,progressiveChunkSize:z===void 0?12800:z,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:et,pingedTasks:rt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:te===void 0?$u:te,onAllReady:J===void 0?$o:J,onShellReady:le===void 0?$o:le,onShellError:Se===void 0?$o:Se,onFatalError:Qe===void 0?$o:Qe},P=Ho(k,0,null,P,!1,!1),P.parentFlushed=!0,b=fs(k,b,null,P,et,$e,null,bo),rt.push(b),k}function fs(b,k,P,z,te,J,le,Se){b.allPendingTasks++,P===null?b.pendingRootTasks++:P.pendingTasks++;var Qe={node:k,ping:function(){var rt=b.pingedTasks;rt.push(Qe),rt.length===1&&Vl(b)},blockedBoundary:P,blockedSegment:z,abortSet:te,legacyContext:J,context:le,treeContext:Se};return te.add(Qe),Qe}function Ho(b,k,P,z,te,J){return{status:0,id:-1,index:k,parentFlushed:!1,chunks:[],children:[],formatContext:z,boundary:P,lastPushedText:te,textEmbedded:J}}function vi(b,k){if(b=b.onError(k),b!=null&&typeof b!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b}function ca(b,k){var P=b.onShellError;P(k),P=b.onFatalError,P(k),b.destination!==null?(b.status=2,m(b.destination,k)):(b.status=1,b.fatalError=k)}function zl(b,k,P,z,te){for(Hr={},ss=k,So=0,b=P(z,te);ia;)ia=!1,So=0,aa+=1,Tt=null,b=P(z,te);return mi(),b}function Bl(b,k,P,z){var te=P.render(),J=z.childContextTypes;if(J!=null){var le=k.legacyContext;if(typeof P.getChildContext!="function")z=le;else{P=P.getChildContext();for(var Se in P)if(!(Se in J))throw Error(t(108,we(z)||"Unknown",Se));z=Bn({},le,P)}k.legacyContext=z,Wn(b,k,te),k.legacyContext=le}else Wn(b,k,te)}function Ul(b,k){if(b&&b.defaultProps){k=Bn({},k),b=b.defaultProps;for(var P in b)k[P]===void 0&&(k[P]=b[P]);return k}return k}function ua(b,k,P,z,te){if(typeof P=="function")if(P.prototype&&P.prototype.isReactComponent){te=Ge(P,k.legacyContext);var J=P.contextType;J=new P(z,typeof J=="object"&&J!==null?J._currentValue:te),to(J,P,z,te),Bl(b,k,J,P)}else{J=Ge(P,k.legacyContext),te=zl(b,k,P,z,J);var le=So!==0;if(typeof te=="object"&&te!==null&&typeof te.render=="function"&&te.$$typeof===void 0)to(te,P,z,J),Bl(b,k,te,P);else if(le){z=k.treeContext,k.treeContext=$r(z,1,0);try{Wn(b,k,te)}finally{k.treeContext=z}}else Wn(b,k,te)}else if(typeof P=="string"){switch(te=k.blockedSegment,J=Dt(te.chunks,P,z,b.responseState,te.formatContext),te.lastPushedText=!1,le=te.formatContext,te.formatContext=re(le,P,z),fa(b,k,J),te.formatContext=le,P){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:te.chunks.push(Jt,u(P),Kt)}te.lastPushedText=!1}else{switch(P){case ee:case B:case Bo:case Jn:case yo:Wn(b,k,z.children);return;case Un:Wn(b,k,z.children);return;case N:throw Error(t(343));case on:e:{P=k.blockedBoundary,te=k.blockedSegment,J=z.fallback,z=z.children,le=new Set;var Se={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:le,errorDigest:null},Qe=Ho(b,te.chunks.length,Se,te.formatContext,!1,!1);te.children.push(Qe),te.lastPushedText=!1;var rt=Ho(b,0,null,te.formatContext,!1,!1);rt.parentFlushed=!0,k.blockedBoundary=Se,k.blockedSegment=rt;try{if(fa(b,k,z),rt.lastPushedText&&rt.textEmbedded&&rt.chunks.push(ue),rt.status=1,da(Se,rt),Se.pendingTasks===0)break e}catch(et){rt.status=4,Se.forceClientRender=!0,Se.errorDigest=vi(b,et)}finally{k.blockedBoundary=P,k.blockedSegment=te}k=fs(b,J,P,Qe,le,k.legacyContext,k.context,k.treeContext),b.pingedTasks.push(k)}return}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case Uo:if(z=zl(b,k,P.render,z,te),So!==0){P=k.treeContext,k.treeContext=$r(P,1,0);try{Wn(b,k,z)}finally{k.treeContext=P}}else Wn(b,k,z);return;case y:P=P.type,z=Ul(P,z),ua(b,k,P,z,te);return;case Rr:if(te=z.children,P=P._context,z=z.value,J=P._currentValue,P._currentValue=z,le=He,He=z={parent:le,depth:le===null?0:le.depth+1,context:P,parentValue:J,value:z},k.context=z,Wn(b,k,te),b=He,b===null)throw Error(t(403));z=b.parentValue,b.context._currentValue=z===Z?b.context._defaultValue:z,b=He=b.parent,k.context=b;return;case En:z=z.children,z=z(P._currentValue),Wn(b,k,z);return;case T:te=P._init,P=te(P._payload),z=Ul(P,z),ua(b,k,P,z,void 0);return}throw Error(t(130,P==null?P:typeof P,""))}}function Wn(b,k,P){if(k.node=P,typeof P=="object"&&P!==null){switch(P.$$typeof){case rn:ua(b,k,P.type,P.props,P.ref);return;case qr:throw Error(t(257));case T:var z=P._init;P=z(P._payload),Wn(b,k,P);return}if(G(P)){Wl(b,k,P);return}if(P===null||typeof P!="object"?z=null:(z=oe&&P[oe]||P["@@iterator"],z=typeof z=="function"?z:null),z&&(z=z.call(P))){if(P=z.next(),!P.done){var te=[];do te.push(P.value),P=z.next();while(!P.done);Wl(b,k,te)}return}throw b=Object.prototype.toString.call(P),Error(t(31,b==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":b))}typeof P=="string"?(z=k.blockedSegment,z.lastPushedText=me(k.blockedSegment.chunks,P,b.responseState,z.lastPushedText)):typeof P=="number"&&(z=k.blockedSegment,z.lastPushedText=me(k.blockedSegment.chunks,""+P,b.responseState,z.lastPushedText))}function Wl(b,k,P){for(var z=P.length,te=0;te<z;te++){var J=k.treeContext;k.treeContext=$r(J,z,te);try{fa(b,k,P[te])}finally{k.treeContext=J}}}function fa(b,k,P){var z=k.blockedSegment.formatContext,te=k.legacyContext,J=k.context;try{return Wn(b,k,P)}catch(Qe){if(mi(),typeof Qe=="object"&&Qe!==null&&typeof Qe.then=="function"){P=Qe;var le=k.blockedSegment,Se=Ho(b,le.chunks.length,null,le.formatContext,le.lastPushedText,!0);le.children.push(Se),le.lastPushedText=!1,b=fs(b,k.node,k.blockedBoundary,Se,k.abortSet,k.legacyContext,k.context,k.treeContext).ping,P.then(b,b),k.blockedSegment.formatContext=z,k.legacyContext=te,k.context=J,Pr(J)}else throw k.blockedSegment.formatContext=z,k.legacyContext=te,k.context=J,Pr(J),Qe}}function Hu(b){var k=b.blockedBoundary;b=b.blockedSegment,b.status=3,Hl(this,k,b)}function $l(b,k,P){var z=b.blockedBoundary;b.blockedSegment.status=3,z===null?(k.allPendingTasks--,k.status!==2&&(k.status=2,k.destination!==null&&k.destination.close())):(z.pendingTasks--,z.forceClientRender||(z.forceClientRender=!0,b=P===void 0?Error(t(432)):P,z.errorDigest=k.onError(b),z.parentFlushed&&k.clientRenderedBoundaries.push(z)),z.fallbackAbortableTasks.forEach(function(te){return $l(te,k,P)}),z.fallbackAbortableTasks.clear(),k.allPendingTasks--,k.allPendingTasks===0&&(z=k.onAllReady,z()))}function da(b,k){if(k.chunks.length===0&&k.children.length===1&&k.children[0].boundary===null){var P=k.children[0];P.id=k.id,P.parentFlushed=!0,P.status===1&&da(b,P)}else b.completedSegments.push(k)}function Hl(b,k,P){if(k===null){if(P.parentFlushed){if(b.completedRootSegment!==null)throw Error(t(389));b.completedRootSegment=P}b.pendingRootTasks--,b.pendingRootTasks===0&&(b.onShellError=$o,k=b.onShellReady,k())}else k.pendingTasks--,k.forceClientRender||(k.pendingTasks===0?(P.parentFlushed&&P.status===1&&da(k,P),k.parentFlushed&&b.completedBoundaries.push(k),k.fallbackAbortableTasks.forEach(Hu,b),k.fallbackAbortableTasks.clear()):P.parentFlushed&&P.status===1&&(da(k,P),k.completedSegments.length===1&&k.parentFlushed&&b.partialBoundaries.push(k)));b.allPendingTasks--,b.allPendingTasks===0&&(b=b.onAllReady,b())}function Vl(b){if(b.status!==2){var k=He,P=cs.current;cs.current=jl;var z=gi;gi=b.responseState;try{var te=b.pingedTasks,J;for(J=0;J<te.length;J++){var le=te[J],Se=b,Qe=le.blockedSegment;if(Qe.status===0){Pr(le.context);try{Wn(Se,le,le.node),Qe.lastPushedText&&Qe.textEmbedded&&Qe.chunks.push(ue),le.abortSet.delete(le),Qe.status=1,Hl(Se,le.blockedBoundary,Qe)}catch(fr){if(mi(),typeof fr=="object"&&fr!==null&&typeof fr.then=="function"){var rt=le.ping;fr.then(rt,rt)}else{le.abortSet.delete(le),Qe.status=4;var et=le.blockedBoundary,Mt=fr,$n=vi(Se,Mt);if(et===null?ca(Se,Mt):(et.pendingTasks--,et.forceClientRender||(et.forceClientRender=!0,et.errorDigest=$n,et.parentFlushed&&Se.clientRenderedBoundaries.push(et))),Se.allPendingTasks--,Se.allPendingTasks===0){var ur=Se.onAllReady;ur()}}}finally{}}}te.splice(0,J),b.destination!==null&&ds(b,b.destination)}catch(fr){vi(b,fr),ca(b,fr)}finally{gi=z,cs.current=P,P===jl&&Pr(k)}}}function pa(b,k,P){switch(P.parentFlushed=!0,P.status){case 0:var z=P.id=b.nextSegmentId++;return P.lastPushedText=!1,P.textEmbedded=!1,b=b.responseState,o(k,wt),o(k,b.placeholderPrefix),b=u(z.toString(16)),o(k,b),i(k,Qn);case 1:P.status=2;var te=!0;z=P.chunks;var J=0;P=P.children;for(var le=0;le<P.length;le++){for(te=P[le];J<te.index;J++)o(k,z[J]);te=ha(b,k,te)}for(;J<z.length-1;J++)o(k,z[J]);return J<z.length&&(te=i(k,z[J])),te;default:throw Error(t(390))}}function ha(b,k,P){var z=P.boundary;if(z===null)return pa(b,k,P);if(z.parentFlushed=!0,z.forceClientRender)z=z.errorDigest,i(k,Cn),o(k,fn),z&&(o(k,Fr),o(k,u(j(z))),o(k,dn)),i(k,Zr),pa(b,k,P);else if(0<z.pendingTasks){z.rootSegmentID=b.nextSegmentId++,0<z.completedSegments.length&&b.partialBoundaries.push(z);var te=b.responseState,J=te.nextSuspenseID++;te=f(te.boundaryPrefix+J.toString(16)),z=z.id=te,an(k,b.responseState,z),pa(b,k,P)}else if(z.byteSize>b.progressiveChunkSize)z.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(z),an(k,b.responseState,z.id),pa(b,k,P);else{if(i(k,qt),P=z.completedSegments,P.length!==1)throw Error(t(391));ha(b,k,P[0])}return i(k,Xn)}function Kl(b,k,P){return ln(k,b.responseState,P.formatContext,P.id),ha(b,k,P),zn(k,P.formatContext)}function Yl(b,k,P){for(var z=P.completedSegments,te=0;te<z.length;te++)Gl(b,k,P,z[te]);if(z.length=0,b=b.responseState,z=P.id,P=P.rootSegmentID,o(k,b.startInlineScript),b.sentCompleteBoundaryFunction?o(k,he):(b.sentCompleteBoundaryFunction=!0,o(k,K)),z===null)throw Error(t(395));return P=u(P.toString(16)),o(k,z),o(k,Fe),o(k,b.segmentPrefix),o(k,P),i(k,St)}function Gl(b,k,P,z){if(z.status===2)return!0;var te=z.id;if(te===-1){if((z.id=P.rootSegmentID)===-1)throw Error(t(392));return Kl(b,k,z)}return Kl(b,k,z),b=b.responseState,o(k,b.startInlineScript),b.sentCompleteSegmentFunction?o(k,lr):(b.sentCompleteSegmentFunction=!0,o(k,Wr)),o(k,b.segmentPrefix),te=u(te.toString(16)),o(k,te),o(k,Tr),o(k,b.placeholderPrefix),o(k,te),i(k,De)}function ds(b,k){n=new Uint8Array(512),r=0;try{var P=b.completedRootSegment;if(P!==null&&b.pendingRootTasks===0){ha(b,k,P),b.completedRootSegment=null;var z=b.responseState.bootstrapChunks;for(P=0;P<z.length-1;P++)o(k,z[P]);P<z.length&&i(k,z[P])}var te=b.clientRenderedBoundaries,J;for(J=0;J<te.length;J++){var le=te[J];z=k;var Se=b.responseState,Qe=le.id,rt=le.errorDigest,et=le.errorMessage,Mt=le.errorComponentStack;if(o(z,Se.startInlineScript),Se.sentClientRenderFunction?o(z,qe):(Se.sentClientRenderFunction=!0,o(z,kt)),Qe===null)throw Error(t(395));o(z,Qe),o(z,Ot),(rt||et||Mt)&&(o(z,hn),o(z,u(Ct(rt||"")))),(et||Mt)&&(o(z,hn),o(z,u(Ct(et||"")))),Mt&&(o(z,hn),o(z,u(Ct(Mt)))),i(z,Qt)}te.splice(0,J);var $n=b.completedBoundaries;for(J=0;J<$n.length;J++)Yl(b,k,$n[J]);$n.splice(0,J),s(k),n=new Uint8Array(512),r=0;var ur=b.partialBoundaries;for(J=0;J<ur.length;J++){var fr=ur[J];e:{te=b,le=k;var ma=fr.completedSegments;for(Se=0;Se<ma.length;Se++)if(!Gl(te,le,fr,ma[Se])){Se++,ma.splice(0,Se);var Zl=!1;break e}ma.splice(0,Se),Zl=!0}if(!Zl){b.destination=null,J++,ur.splice(0,J);return}}ur.splice(0,J);var yi=b.completedBoundaries;for(J=0;J<yi.length;J++)Yl(b,k,yi[J]);yi.splice(0,J)}finally{s(k),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&k.close()}}function Ql(b,k){try{var P=b.abortableTasks;P.forEach(function(z){return $l(z,b,k)}),P.clear(),b.destination!==null&&ds(b,b.destination)}catch(z){vi(b,z),ca(b,z)}}return Cp.renderToReadableStream=function(b,k){return new Promise(function(P,z){var te,J,le=new Promise(function(et,Mt){J=et,te=Mt}),Se=us(b,Q(k?k.identifierPrefix:void 0,k?k.nonce:void 0,k?k.bootstrapScriptContent:void 0,k?k.bootstrapScripts:void 0,k?k.bootstrapModules:void 0),ne(k?k.namespaceURI:void 0),k?k.progressiveChunkSize:void 0,k?k.onError:void 0,J,function(){var et=new ReadableStream({type:"bytes",pull:function(Mt){if(Se.status===1)Se.status=2,m(Mt,Se.fatalError);else if(Se.status!==2&&Se.destination===null){Se.destination=Mt;try{ds(Se,Mt)}catch($n){vi(Se,$n),ca(Se,$n)}}},cancel:function(){Ql(Se)}},{highWaterMark:0});et.allReady=le,P(et)},function(et){le.catch(function(){}),z(et)},te);if(k&&k.signal){var Qe=k.signal,rt=function(){Ql(Se,Qe.reason),Qe.removeEventListener("abort",rt)};Qe.addEventListener("abort",rt)}Vl(Se)})},Cp.version="18.3.1",Cp}var Bs={};/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-dom-server-legacy.browser.development.js
|
|
30
30
|
*
|
|
@@ -32,38 +32,38 @@
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var hp;function ov(){return hp||(hp=1,process.env.NODE_ENV!=="production"&&function(){var e=V,r="18.3.1",o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(t){{for(var n=arguments.length,s=new Array(n>1?n-1:0),u=1;u<n;u++)s[u-1]=arguments[u];d("warn",t,s)}}function a(t){{for(var n=arguments.length,s=new Array(n>1?n-1:0),u=1;u<n;u++)s[u-1]=arguments[u];d("error",t,s)}}function d(t,n,s){{var u=o.ReactDebugCurrentFrame,p=u.getStackAddendum();p!==""&&(n+="%s",s=s.concat([p]));var b=s.map(function(S){return String(S)});b.unshift("Warning: "+n),Function.prototype.apply.call(console[t],console,b)}}function h(t){t()}function v(t){}function m(t,n){x(t,n)}function x(t,n){return t.push(n)}function R(t){}function E(t){t.push(null)}function F(t){return t}function M(t){return t}function B(t,n){t.destroy(n)}function D(t){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function P(t){try{return I(t),!1}catch{return!0}}function I(t){return""+t}function W(t,n){if(P(t))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,D(t)),I(t)}function U(t,n){if(P(t))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,D(t)),I(t)}function q(t){if(P(t))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",D(t)),I(t)}var _=Object.prototype.hasOwnProperty,ie=0,ce=1,ee=2,ae=3,Fe=4,Ne=5,_e=6,Ge=":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",Qe=Ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("^["+Ge+"]["+Qe+"]*$"),Ce={},je={};function Z(t){return _.call(je,t)?!0:_.call(Ce,t)?!1:ke.test(t)?(je[t]=!0,!0):(Ce[t]=!0,a("Invalid attribute name: `%s`",t),!1)}function be(t,n,s,u){if(s!==null&&s.type===ie)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(s!==null)return!s.acceptsBooleans;var p=t.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Q(t){return fe.hasOwnProperty(t)?fe[t]:null}function J(t,n,s,u,p,b,S){this.acceptsBooleans=n===ee||n===ae||n===Fe,this.attributeName=u,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=t,this.type=n,this.sanitizeURL=b,this.removeEmptyString=S}var fe={},me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];me.forEach(function(t){fe[t]=new J(t,ie,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0],s=t[1];fe[n]=new J(n,ce,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){fe[t]=new J(t,ee,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){fe[t]=new J(t,ee,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){fe[t]=new J(t,ae,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){fe[t]=new J(t,ae,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){fe[t]=new J(t,Fe,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){fe[t]=new J(t,_e,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){fe[t]=new J(t,Ne,!1,t.toLowerCase(),null,!1,!1)});var pe=/[\-\:]([a-z])/g,ge=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var n=t.replace(pe,ge);fe[n]=new J(n,ce,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var n=t.replace(pe,ge);fe[n]=new J(n,ce,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(pe,ge);fe[n]=new J(n,ce,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){fe[t]=new J(t,ce,!1,t.toLowerCase(),null,!1,!1)});var se="xlinkHref";fe[se]=new J("xlinkHref",ce,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){fe[t]=new J(t,ce,!1,t.toLowerCase(),null,!0,!0)});var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Te(t,n){return t+n.charAt(0).toUpperCase()+n.substring(1)}var Ee=["Webkit","ms","Moz","O"];Object.keys(ue).forEach(function(t){Ee.forEach(function(n){ue[Te(n,t)]=ue[t]})});var Re={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function $e(t,n){Re[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||a("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||a("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 oe(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){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 Ue={"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},nt={},Lt=new RegExp("^(aria)-["+Qe+"]*$"),Lr=new RegExp("^(aria)[A-Z]["+Qe+"]*$");function so(t,n){{if(_.call(nt,n)&&nt[n])return!0;if(Lr.test(n)){var s="aria-"+n.slice(4).toLowerCase(),u=Ue.hasOwnProperty(s)?s:null;if(u==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),nt[n]=!0,!0;if(n!==u)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,u),nt[n]=!0,!0}if(Lt.test(n)){var p=n.toLowerCase(),b=Ue.hasOwnProperty(p)?p:null;if(b==null)return nt[n]=!0,!1;if(n!==b)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,b),nt[n]=!0,!0}}return!0}function jt(t,n){{var s=[];for(var u in n){var p=so(t,u);p||s.push(u)}var b=s.map(function(S){return"`"+S+"`"}).join(", ");s.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,t):s.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,t)}}function jr(t,n){oe(t,n)||jt(t,n)}var Nr=!1;function lo(t,n){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;n!=null&&n.value===null&&!Nr&&(Nr=!0,t==="select"&&n.multiple?a("`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.",t):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var Nt={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",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",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",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",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"},mt=function(){};{var ct={},kn=/^on./,En=/^on[^A-Z]/,Cn=new RegExp("^(aria)-["+Qe+"]*$"),at=new RegExp("^(aria)[A-Z]["+Qe+"]*$");mt=function(t,n,s,u){if(_.call(ct,n)&&ct[n])return!0;var p=n.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return a("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."),ct[n]=!0,!0;if(u!=null){var b=u.registrationNameDependencies,S=u.possibleRegistrationNames;if(b.hasOwnProperty(n))return!0;var A=S.hasOwnProperty(p)?S[p]:null;if(A!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",n,A),ct[n]=!0,!0;if(kn.test(n))return a("Unknown event handler property `%s`. It will be ignored.",n),ct[n]=!0,!0}else if(kn.test(n))return En.test(n)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),ct[n]=!0,!0;if(Cn.test(n)||at.test(n))return!0;if(p==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ct[n]=!0,!0;if(p==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ct[n]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),ct[n]=!0,!0;if(typeof s=="number"&&isNaN(s))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),ct[n]=!0,!0;var j=Q(n),X=j!==null&&j.type===ie;if(Nt.hasOwnProperty(p)){var K=Nt[p];if(K!==n)return a("Invalid DOM property `%s`. Did you mean `%s`?",n,K),ct[n]=!0,!0}else if(!X&&n!==p)return a("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,p),ct[n]=!0,!0;return typeof s=="boolean"&&be(n,s,j)?(s?a('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()}.',s,n,n,s,n):a('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.',s,n,n,s,n,n,n),ct[n]=!0,!0):X?!0:be(n,s,j)?(ct[n]=!0,!1):((s==="false"||s==="true")&&j!==null&&j.type===ae&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,n,s==="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,s),ct[n]=!0),!0)}}var Tn=function(t,n,s){{var u=[];for(var p in n){var b=mt(t,p,n[p],s);b||u.push(p)}var S=u.map(function(A){return"`"+A+"`"}).join(", ");u.length===1?a("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://reactjs.org/link/attribute-behavior ",S,t):u.length>1&&a("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://reactjs.org/link/attribute-behavior ",S,t)}};function uo(t,n,s){oe(t,n)||Tn(t,n,s)}var co=function(){};{var Rn=/^(?:webkit|moz|o)[A-Z]/,en=/^-ms-/,li=/-(.)/g,Pn=/;\s*$/,yr={},An={},fo=!1,xt=!1,Jt=function(t){return t.replace(li,function(n,s){return s.toUpperCase()})},br=function(t){yr.hasOwnProperty(t)&&yr[t]||(yr[t]=!0,a("Unsupported style property %s. Did you mean %s?",t,Jt(t.replace(en,"ms-"))))},Xe=function(t){yr.hasOwnProperty(t)&&yr[t]||(yr[t]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},xr=function(t,n){An.hasOwnProperty(n)&&An[n]||(An[n]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Pn,"")))},tn=function(t,n){fo||(fo=!0,a("`NaN` is an invalid value for the `%s` css style property.",t))},$r=function(t,n){xt||(xt=!0,a("`Infinity` is an invalid value for the `%s` css style property.",t))};co=function(t,n){t.indexOf("-")>-1?br(t):Rn.test(t)?Xe(t):Pn.test(n)&&xr(t,n),typeof n=="number"&&(isNaN(n)?tn(t,n):isFinite(n)||$r(t,n))}}var Kt=co,rn=/["'&<>]/;function cr(t){q(t);var n=""+t,s=rn.exec(n);if(!s)return n;var u,p="",b,S=0;for(b=s.index;b<n.length;b++){switch(n.charCodeAt(b)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}S!==b&&(p+=n.substring(S,b)),S=b+1,p+=u}return S!==b?p+n.substring(S,b):p}function ft(t){return typeof t=="boolean"||typeof t=="number"?""+t:cr(t)}var In=/([A-Z])/g,On=/^ms-/;function po(t){return t.replace(In,"-$1").toLowerCase().replace(On,"-ms-")}var st=/^[\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,Fn=!1;function ui(t){!Fn&&st.test(t)&&(Fn=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}var ci=Array.isArray;function Zt(t){return ci(t)}var Mn="<script>";function nn(t,n,s,u,p){var b=t===void 0?"":t,S=Mn,A=[];return{bootstrapChunks:A,startInlineScript:S,placeholderPrefix:b+"P:",segmentPrefix:b+"S:",boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var wr=0,Tt=1,er=2,on=3,Sr=4,kr=5,tr=6,Er=7;function Rt(t,n){return{insertionMode:t,selectedValue:n}}function ho(t,n,s){switch(n){case"select":return Rt(Tt,s.value!=null?s.value:s.defaultValue);case"svg":return Rt(er,null);case"math":return Rt(on,null);case"foreignObject":return Rt(Tt,null);case"table":return Rt(Sr,null);case"thead":case"tbody":case"tfoot":return Rt(kr,null);case"colgroup":return Rt(Er,null);case"tr":return Rt(tr,null)}return t.insertionMode>=Sr||t.insertionMode===wr?Rt(Tt,null):t}var mo=null;function fr(t){var n=t.nextSuspenseID++;return t.boundaryPrefix+n.toString(16)}function lt(t,n,s){var u=t.idPrefix,p=":"+u+"R"+n;return s>0&&(p+="H"+s.toString(32)),p+":"}function rr(t){return ft(t)}var nr="<!-- -->";function Cr(t,n,s,u){return n===""?u:(u&&t.push(nr),t.push(rr(n)),!0)}function an(t,n,s,u){s&&u&&t.push(nr)}var $t=new Map;function or(t){var n=$t.get(t);if(n!==void 0)return n;var s=ft(po(t));return $t.set(t,s),s}var wt=' style="',Tr=":",zr=";";function sn(t,n,s){if(typeof s!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var u=!0;for(var p in s)if(_.call(s,p)){var b=s[p];if(!(b==null||typeof b=="boolean"||b==="")){var S=void 0,A=void 0,j=p.indexOf("--")===0;j?(S=ft(p),U(b,p),A=ft((""+b).trim())):(Kt(p,b),S=or(p),typeof b=="number"?b!==0&&!_.call(ue,p)?A=b+"px":A=""+b:(U(b,p),A=ft((""+b).trim()))),u?(u=!1,t.push(wt,S,Tr,A)):t.push(zr,S,Tr,A)}}u||t.push(St)}var Ft=" ",ir='="',St='"',ln='=""';function ht(t,n,s,u){switch(s){case"style":{sn(t,n,u);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(s.length>2&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N"))){var p=Q(s);if(p!==null){switch(typeof u){case"function":case"symbol":return;case"boolean":if(!p.acceptsBooleans)return}var b=p.attributeName,S=b;switch(p.type){case ae:u&&t.push(Ft,S,ln);return;case Fe:u===!0?t.push(Ft,S,ln):u===!1||t.push(Ft,S,ir,ft(u),St);return;case Ne:isNaN(u)||t.push(Ft,S,ir,ft(u),St);break;case _e:!isNaN(u)&&u>=1&&t.push(Ft,S,ir,ft(u),St);break;default:p.sanitizeURL&&(W(u,b),u=""+u,ui(u)),t.push(Ft,S,ir,ft(u),St)}}else if(Z(s)){switch(typeof u){case"function":case"symbol":return;case"boolean":{var A=s.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-")return}}t.push(Ft,s,ir,ft(u),St)}}}var Pt=">",c="/>";function y(t,n,s){if(n!=null){if(s!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n!="object"||!("__html"in n))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var u=n.__html;u!=null&&(q(u),t.push(""+u))}}var k=!1,T=!1,$=!1,L=!1,H=!1,te=!1,xe=!1;function Pe(t,n){{var s=t[n];if(s!=null){var u=Zt(s);t.multiple&&!u?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",n):!t.multiple&&u&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",n)}}}function we(t,n,s){$e("select",n),Pe(n,"value"),Pe(n,"defaultValue"),n.value!==void 0&&n.defaultValue!==void 0&&!$&&(a("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://reactjs.org/link/controlled-components"),$=!0),t.push(sr("select"));var u=null,p=null;for(var b in n)if(_.call(n,b)){var S=n[b];if(S==null)continue;switch(b){case"children":u=S;break;case"dangerouslySetInnerHTML":p=S;break;case"defaultValue":case"value":break;default:ht(t,s,b,S);break}}return t.push(Pt),y(t,p,u),u}function He(t){var n="";return e.Children.forEach(t,function(s){s!=null&&(n+=s,!H&&typeof s!="string"&&typeof s!="number"&&(H=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),n}var kt=' selected=""';function Et(t,n,s,u){var p=u.selectedValue;t.push(sr("option"));var b=null,S=null,A=null,j=null;for(var X in n)if(_.call(n,X)){var K=n[X];if(K==null)continue;switch(X){case"children":b=K;break;case"selected":A=K,xe||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),xe=!0);break;case"dangerouslySetInnerHTML":j=K;break;case"value":S=K;default:ht(t,s,X,K);break}}if(p!=null){var le;if(S!==null?(W(S,"value"),le=""+S):(j!==null&&(te||(te=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),le=He(b)),Zt(p))for(var Oe=0;Oe<p.length;Oe++){W(p[Oe],"value");var Ye=""+p[Oe];if(Ye===le){t.push(kt);break}}else W(p,"select.value"),""+p===le&&t.push(kt)}else A&&t.push(kt);return t.push(Pt),y(t,j,b),b}function Ct(t,n,s){$e("input",n),n.checked!==void 0&&n.defaultChecked!==void 0&&!T&&(a("%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://reactjs.org/link/controlled-components","A component",n.type),T=!0),n.value!==void 0&&n.defaultValue!==void 0&&!k&&(a("%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://reactjs.org/link/controlled-components","A component",n.type),k=!0),t.push(sr("input"));var u=null,p=null,b=null,S=null;for(var A in n)if(_.call(n,A)){var j=n[A];if(j==null)continue;switch(A){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":S=j;break;case"defaultValue":p=j;break;case"checked":b=j;break;case"value":u=j;break;default:ht(t,s,A,j);break}}return b!==null?ht(t,s,"checked",b):S!==null&&ht(t,s,"checked",S),u!==null?ht(t,s,"value",u):p!==null&&ht(t,s,"value",p),t.push(c),null}function Rr(t,n,s){$e("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!L&&(a("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://reactjs.org/link/controlled-components"),L=!0),t.push(sr("textarea"));var u=null,p=null,b=null;for(var S in n)if(_.call(n,S)){var A=n[S];if(A==null)continue;switch(S){case"children":b=A;break;case"value":u=A;break;case"defaultValue":p=A;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ht(t,s,S,A);break}}if(u===null&&p!==null&&(u=p),t.push(Pt),b!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),u!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zt(b)){if(b.length>1)throw new Error("<textarea> can only have at most one child.");q(b[0]),u=""+b[0]}q(b),u=""+b}return typeof u=="string"&&u[0]===`
|
|
36
|
-
`&&
|
|
37
|
-
`;function
|
|
38
|
-
`?
|
|
39
|
-
`&&
|
|
40
|
-
`+
|
|
41
|
-
`),
|
|
42
|
-
`),
|
|
43
|
-
`+
|
|
44
|
-
|
|
45
|
-
Please check the code for the %s component.`,
|
|
35
|
+
*/var Eb;function Dk(){return Eb||(Eb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Y,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(a){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];i("warn",a,d)}}function o(a){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];i("error",a,d)}}function i(a,l,d){{var g=n.ReactDebugCurrentFrame,S=g.getStackAddendum();S!==""&&(l+="%s",d=d.concat([S]));var _=d.map(function(I){return String(I)});_.unshift("Warning: "+l),Function.prototype.apply.call(console[a],console,_)}}function s(a){a()}function c(a){}function u(a,l){f(a,l)}function f(a,l){return a.push(l)}function m(a){}function h(a){a.push(null)}function v(a){return a}function w(a){return a}function C(a,l){a.destroy(l)}function A(a){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&a[Symbol.toStringTag]||a.constructor.name||"Object";return d}}function x(a){try{return E(a),!1}catch{return!0}}function E(a){return""+a}function R(a,l){if(x(a))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,A(a)),E(a)}function O(a,l){if(x(a))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,A(a)),E(a)}function L(a){if(x(a))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",A(a)),E(a)}var M=Object.prototype.hasOwnProperty,U=0,j=1,$=2,H=3,G=4,q=5,pe=6,ie=":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",se=ie+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+ie+"]["+se+"]*$"),Ae={},Re={};function Q(a){return M.call(Re,a)?!0:M.call(Ae,a)?!1:xe.test(a)?(Re[a]=!0,!0):(Ae[a]=!0,o("Invalid attribute name: `%s`",a),!1)}function Ee(a,l,d,g){if(d!==null&&d.type===U)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var S=a.toLowerCase().slice(0,5);return S!=="data-"&&S!=="aria-"}default:return!1}}function ne(a){return ue.hasOwnProperty(a)?ue[a]:null}function re(a,l,d,g,S,_,I){this.acceptsBooleans=l===$||l===H||l===G,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=d,this.propertyName=a,this.type=l,this.sanitizeURL=_,this.removeEmptyString=I}var ue={},me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];me.forEach(function(a){ue[a]=new re(a,U,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var l=a[0],d=a[1];ue[l]=new re(l,j,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){ue[a]=new re(a,$,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){ue[a]=new re(a,$,!1,a,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(a){ue[a]=new re(a,H,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){ue[a]=new re(a,H,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){ue[a]=new re(a,G,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){ue[a]=new re(a,pe,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){ue[a]=new re(a,q,!1,a.toLowerCase(),null,!1,!1)});var Te=/[\-\:]([a-z])/g,de=function(a){return a[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){ue[a]=new re(a,j,!1,a.toLowerCase(),null,!1,!1)});var ve="xlinkHref";ue[ve]=new re("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){ue[a]=new re(a,j,!1,a.toLowerCase(),null,!0,!0)});var _e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function je(a,l){return a+l.charAt(0).toUpperCase()+l.substring(1)}var ze=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(a){ze.forEach(function(l){_e[je(l,a)]=_e[a]})});var Be={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(a,l){Be[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("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`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("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 ke(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){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 tt={"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},xt={},zt=new RegExp("^(aria)-["+se+"]*$"),xn=new RegExp("^(aria)[A-Z]["+se+"]*$");function kr(a,l){{if(M.call(xt,l)&&xt[l])return!0;if(xn.test(l)){var d="aria-"+l.slice(4).toLowerCase(),g=tt.hasOwnProperty(d)?d:null;if(g==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),xt[l]=!0,!0;if(l!==g)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),xt[l]=!0,!0}if(zt.test(l)){var S=l.toLowerCase(),_=tt.hasOwnProperty(S)?S:null;if(_==null)return xt[l]=!0,!1;if(l!==_)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,_),xt[l]=!0,!0}}return!0}function Vt(a,l){{var d=[];for(var g in l){var S=kr(a,g);S||d.push(g)}var _=d.map(function(I){return"`"+I+"`"}).join(", ");d.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,a):d.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,a)}}function un(a,l){ke(a,l)||Vt(a,l)}var wn=!1;function Ne(a,l){{if(a!=="input"&&a!=="textarea"&&a!=="select")return;l!=null&&l.value===null&&!wn&&(wn=!0,a==="select"&&l.multiple?o("`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.",a):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a))}}var nt={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",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",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",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",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"},ct=function(){};{var ut={},Dt=/^on./,Jt=/^on[^A-Z]/,Kt=new RegExp("^(aria)-["+se+"]*$"),wt=new RegExp("^(aria)[A-Z]["+se+"]*$");ct=function(a,l,d,g){if(M.call(ut,l)&&ut[l])return!0;var S=l.toLowerCase();if(S==="onfocusin"||S==="onfocusout")return o("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."),ut[l]=!0,!0;if(g!=null){var _=g.registrationNameDependencies,I=g.possibleRegistrationNames;if(_.hasOwnProperty(l))return!0;var W=I.hasOwnProperty(S)?I[S]:null;if(W!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,W),ut[l]=!0,!0;if(Dt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),ut[l]=!0,!0}else if(Dt.test(l))return Jt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),ut[l]=!0,!0;if(Kt.test(l)||wt.test(l))return!0;if(S==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ut[l]=!0,!0;if(S==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ut[l]=!0,!0;if(S==="is"&&d!==null&&d!==void 0&&typeof d!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),ut[l]=!0,!0;if(typeof d=="number"&&isNaN(d))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),ut[l]=!0,!0;var X=ne(l),fe=X!==null&&X.type===U;if(nt.hasOwnProperty(S)){var ye=nt[S];if(ye!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,ye),ut[l]=!0,!0}else if(!fe&&l!==S)return o("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.",l,S),ut[l]=!0,!0;return typeof d=="boolean"&&Ee(l,d,X)?(d?o('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()}.',d,l,l,d,l):o('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.',d,l,l,d,l,l,l),ut[l]=!0,!0):fe?!0:Ee(l,d,X)?(ut[l]=!0,!1):((d==="false"||d==="true")&&X!==null&&X.type===H&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="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".',l,d),ut[l]=!0),!0)}}var Qn=function(a,l,d){{var g=[];for(var S in l){var _=ct(a,S,l[S],d);_||g.push(S)}var I=g.map(function(W){return"`"+W+"`"}).join(", ");g.length===1?o("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://reactjs.org/link/attribute-behavior ",I,a):g.length>1&&o("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://reactjs.org/link/attribute-behavior ",I,a)}};function qt(a,l,d){ke(a,l)||Qn(a,l,d)}var Zn=function(){};{var Sn=/^(?:webkit|moz|o)[A-Z]/,Cn=/^-ms-/,Xn=/-(.)/g,fn=/;\s*$/,dn={},Fr={},Zr=!1,an=!1,pn=function(a){return a.replace(Xn,function(l,d){return d.toUpperCase()})},Dn=function(a){dn.hasOwnProperty(a)&&dn[a]||(dn[a]=!0,o("Unsupported style property %s. Did you mean %s?",a,pn(a.replace(Cn,"ms-"))))},dt=function(a){dn.hasOwnProperty(a)&&dn[a]||(dn[a]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1)))},An=function(a,l){Fr.hasOwnProperty(l)&&Fr[l]||(Fr[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,l.replace(fn,"")))},Xr=function(a,l){Zr||(Zr=!0,o("`NaN` is an invalid value for the `%s` css style property.",a))},jr=function(a,l){an||(an=!0,o("`Infinity` is an invalid value for the `%s` css style property.",a))};Zn=function(a,l){a.indexOf("-")>-1?Dn(a):Sn.test(a)?dt(a):fn.test(l)&&An(a,l),typeof l=="number"&&(isNaN(l)?Xr(a,l):isFinite(l)||jr(a,l))}}var vt=Zn,Fn=/["'&<>]/;function ar(a){L(a);var l=""+a,d=Fn.exec(l);if(!d)return l;var g,S="",_,I=0;for(_=d.index;_<l.length;_++){switch(l.charCodeAt(_)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}I!==_&&(S+=l.substring(I,_)),I=_+1,S+=g}return I!==_?S+l.substring(I,_):S}function Yt(a){return typeof a=="boolean"||typeof a=="number"?""+a:ar(a)}var zr=/([A-Z])/g,Jr=/^ms-/;function vo(a){return a.replace(zr,"-$1").toLowerCase().replace(Jr,"-ms-")}var Wt=/^[\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,sn=!1;function sr(a){!sn&&Wt.test(a)&&(sn=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}var zo=Array.isArray;function jn(a){return zo(a)}var Br="<script>";function Ur(a,l,d,g,S){var _=a===void 0?"":a,I=Br,W=[];return{bootstrapChunks:W,startInlineScript:I,placeholderPrefix:_+"P:",segmentPrefix:_+"S:",boundaryPrefix:_+"B:",idPrefix:_,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var en=0,ln=1,zn=2,Wr=3,lr=4,Tr=5,De=6,K=7;function he(a,l){return{insertionMode:a,selectedValue:l}}function Fe(a,l,d){switch(l){case"select":return he(ln,d.value!=null?d.value:d.defaultValue);case"svg":return he(zn,null);case"math":return he(Wr,null);case"foreignObject":return he(ln,null);case"table":return he(lr,null);case"thead":case"tbody":case"tfoot":return he(Tr,null);case"colgroup":return he(K,null);case"tr":return he(De,null)}return a.insertionMode>=lr||a.insertionMode===en?he(ln,null):a}var St=null;function kt(a){var l=a.nextSuspenseID++;return a.boundaryPrefix+l.toString(16)}function qe(a,l,d){var g=a.idPrefix,S=":"+g+"R"+l;return d>0&&(S+="H"+d.toString(32)),S+":"}function Ot(a){return Yt(a)}var Qt="<!-- -->";function hn(a,l,d,g){return l===""?g:(g&&a.push(Qt),a.push(Ot(l)),!0)}function _r(a,l,d,g){d&&g&&a.push(Qt)}var Ct=new Map;function Bn(a){var l=Ct.get(a);if(l!==void 0)return l;var d=Yt(vo(a));return Ct.set(a,d),d}var rn=' style="',qr=":",yo=";";function Bo(a,l,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var S in d)if(M.call(d,S)){var _=d[S];if(!(_==null||typeof _=="boolean"||_==="")){var I=void 0,W=void 0,X=S.indexOf("--")===0;X?(I=Yt(S),O(_,S),W=Yt((""+_).trim())):(vt(S,_),I=Bn(S),typeof _=="number"?_!==0&&!M.call(_e,S)?W=_+"px":W=""+_:(O(_,S),W=Yt((""+_).trim()))),g?(g=!1,a.push(rn,I,qr,W)):a.push(yo,I,qr,W)}}g||a.push(En)}var Jn=" ",Rr='="',En='"',Uo='=""';function on(a,l,d,g){switch(d){case"style":{Bo(a,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var S=ne(d);if(S!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}var _=S.attributeName,I=_;switch(S.type){case H:g&&a.push(Jn,I,Uo);return;case G:g===!0?a.push(Jn,I,Uo):g===!1||a.push(Jn,I,Rr,Yt(g),En);return;case q:isNaN(g)||a.push(Jn,I,Rr,Yt(g),En);break;case pe:!isNaN(g)&&g>=1&&a.push(Jn,I,Rr,Yt(g),En);break;default:S.sanitizeURL&&(R(g,_),g=""+g,sr(g)),a.push(Jn,I,Rr,Yt(g),En)}}else if(Q(d)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var W=d.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}a.push(Jn,d,Rr,Yt(g),En)}}}var Un=">",y="/>";function T(a,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(L(g),a.push(""+g))}}var N=!1,B=!1,ee=!1,Z=!1,oe=!1,we=!1,$e=!1;function Ge(a,l){{var d=a[l];if(d!=null){var g=jn(d);a.multiple&&!g?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!a.multiple&&g&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function He(a,l,d){Je("select",l),Ge(l,"value"),Ge(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!ee&&(o("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://reactjs.org/link/controlled-components"),ee=!0),a.push(Ir("select"));var g=null,S=null;for(var _ in l)if(M.call(l,_)){var I=l[_];if(I==null)continue;switch(_){case"children":g=I;break;case"dangerouslySetInnerHTML":S=I;break;case"defaultValue":case"value":break;default:on(a,d,_,I);break}}return a.push(Un),T(a,S,g),g}function pt(a){var l="";return e.Children.forEach(a,function(d){d!=null&&(l+=d,!oe&&typeof d!="string"&&typeof d!="number"&&(oe=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var kn=' selected=""';function Tn(a,l,d,g){var S=g.selectedValue;a.push(Ir("option"));var _=null,I=null,W=null,X=null;for(var fe in l)if(M.call(l,fe)){var ye=l[fe];if(ye==null)continue;switch(fe){case"children":_=ye;break;case"selected":W=ye,$e||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),$e=!0);break;case"dangerouslySetInnerHTML":X=ye;break;case"value":I=ye;default:on(a,d,fe,ye);break}}if(S!=null){var Pe;if(I!==null?(R(I,"value"),Pe=""+I):(X!==null&&(we||(we=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pe=pt(_)),jn(S))for(var Ze=0;Ze<S.length;Ze++){R(S[Ze],"value");var yt=""+S[Ze];if(yt===Pe){a.push(kn);break}}else R(S,"select.value"),""+S===Pe&&a.push(kn)}else W&&a.push(kn);return a.push(Un),T(a,X,_),_}function _n(a,l,d){Je("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!B&&(o("%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://reactjs.org/link/controlled-components","A component",l.type),B=!0),l.value!==void 0&&l.defaultValue!==void 0&&!N&&(o("%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://reactjs.org/link/controlled-components","A component",l.type),N=!0),a.push(Ir("input"));var g=null,S=null,_=null,I=null;for(var W in l)if(M.call(l,W)){var X=l[W];if(X==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":I=X;break;case"defaultValue":S=X;break;case"checked":_=X;break;case"value":g=X;break;default:on(a,d,W,X);break}}return _!==null?on(a,d,"checked",_):I!==null&&on(a,d,"checked",I),g!==null?on(a,d,"value",g):S!==null&&on(a,d,"value",S),a.push(y),null}function eo(a,l,d){Je("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Z&&(o("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://reactjs.org/link/controlled-components"),Z=!0),a.push(Ir("textarea"));var g=null,S=null,_=null;for(var I in l)if(M.call(l,I)){var W=l[I];if(W==null)continue;switch(I){case"children":_=W;break;case"value":g=W;break;case"defaultValue":S=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:on(a,d,I,W);break}}if(g===null&&S!==null&&(g=S),a.push(Un),_!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(_)){if(_.length>1)throw new Error("<textarea> can only have at most one child.");L(_[0]),g=""+_[0]}L(_),g=""+_}return typeof g=="string"&&g[0]===`
|
|
36
|
+
`&&a.push(xo),g!==null&&(R(g,"value"),a.push(Ot(""+g))),null}function Pr(a,l,d,g){a.push(Ir(d));for(var S in l)if(M.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:on(a,g,S,_);break}}return a.push(y),null}function Wo(a,l,d){a.push(Ir("menuitem"));for(var g in l)if(M.call(l,g)){var S=l[g];if(S==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:on(a,d,g,S);break}}return a.push(Un),null}function to(a,l,d){a.push(Ir("title"));var g=null;for(var S in l)if(M.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":g=_;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:on(a,d,S,_);break}}a.push(Un);{var I=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):I!=null&&I.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):I!=null&&typeof I!="string"&&typeof I!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function bo(a,l,d,g){a.push(Ir(d));var S=null,_=null;for(var I in l)if(M.call(l,I)){var W=l[I];if(W==null)continue;switch(I){case"children":S=W;break;case"dangerouslySetInnerHTML":_=W;break;default:on(a,g,I,W);break}}return a.push(Un),T(a,_,S),typeof S=="string"?(a.push(Ot(S)),null):S}function $r(a,l,d,g){a.push(Ir(d));var S=null,_=null;for(var I in l)if(M.call(l,I)){var W=l[I];if(W==null)continue;switch(I){case"children":S=W;break;case"dangerouslySetInnerHTML":_=W;break;case"style":Bo(a,g,W);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Q(I)&&typeof W!="function"&&typeof W!="symbol"&&a.push(Jn,I,Rr,Yt(W),En);break}}return a.push(Un),T(a,_,S),S}var xo=`
|
|
37
|
+
`;function ju(a,l,d,g){a.push(Ir(d));var S=null,_=null;for(var I in l)if(M.call(l,I)){var W=l[I];if(W==null)continue;switch(I){case"children":S=W;break;case"dangerouslySetInnerHTML":_=W;break;default:on(a,g,I,W);break}}if(a.push(Un),_!=null){if(S!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof _!="object"||!("__html"in _))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var X=_.__html;X!=null&&(typeof X=="string"&&X.length>0&&X[0]===`
|
|
38
|
+
`?a.push(xo,X):(L(X),a.push(""+X)))}return typeof S=="string"&&S[0]===`
|
|
39
|
+
`&&a.push(xo),S}var zu=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ra=new Map;function Ir(a){var l=ra.get(a);if(l===void 0){if(!zu.test(a))throw new Error("Invalid tag: "+a);l="<"+a,ra.set(a,l)}return l}var Bu="<!DOCTYPE html>";function Hr(a,l,d,g,S){switch(un(l,d),Ne(l,d),qt(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&o("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."),S.insertionMode!==zn&&S.insertionMode!==Wr&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return He(a,d,g);case"option":return Tn(a,d,g,S);case"textarea":return eo(a,d,g);case"input":return _n(a,d,g);case"menuitem":return Wo(a,d,g);case"title":return to(a,d,g);case"listing":case"pre":return ju(a,d,l,g);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Pr(a,d,l,g);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 bo(a,d,l,g);case"html":return S.insertionMode===en&&a.push(Bu),bo(a,d,l,g);default:return l.indexOf("-")===-1&&typeof d.is!="string"?bo(a,d,l,g):$r(a,d,l,g)}}var ss="</",oa=">";function Tt(a,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.push(ss,l,oa)}}function wo(a,l){for(var d=l.bootstrapChunks,g=0;g<d.length-1;g++)u(a,d[g]);return g<d.length?f(a,d[g]):!0}var ia='<template id="',So='"></template>';function no(a,l,d){u(a,ia),u(a,l.placeholderPrefix);var g=d.toString(16);return u(a,g),f(a,So)}var aa="<!--$-->",ro='<!--$?--><template id="',cr='"></template>',ls="<!--$!-->",mi="<!--/$-->",Dl="<template",sa='"',Fl=' data-dgst="',Uu=' data-msg="',Wu=' data-stck="',la="></template>";function jl(a,l){return f(a,aa)}function gi(a,l,d){if(u(a,ro),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(a,d),f(a,cr)}function cs(a,l,d,g,S){var _;return _=f(a,ls),u(a,Dl),d&&(u(a,Fl),u(a,Yt(d)),u(a,sa)),g&&(u(a,Uu),u(a,Yt(g)),u(a,sa)),S&&(u(a,Wu),u(a,Yt(S)),u(a,sa)),_=f(a,la),_}function $u(a,l){return f(a,mi)}function $o(a,l){return f(a,mi)}function us(a,l){return f(a,mi)}var fs='<div hidden id="',Ho='">',vi="</div>",ca='<svg aria-hidden="true" style="display:none" id="',zl='">',Bl="</svg>",Ul='<math aria-hidden="true" style="display:none" id="',ua='">',Wn="</math>",Wl='<table hidden id="',fa='">',Hu="</table>",$l='<table hidden><tbody id="',da='">',Hl="</tbody></table>",Vl='<table hidden><tr id="',pa='">',ha="</tr></table>",Kl='<table hidden><colgroup id="',Yl='">',Gl="</colgroup></table>";function ds(a,l,d,g){switch(d.insertionMode){case en:case ln:return u(a,fs),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,Ho);case zn:return u(a,ca),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,zl);case Wr:return u(a,Ul),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,ua);case lr:return u(a,Wl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,fa);case Tr:return u(a,$l),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,da);case De:return u(a,Vl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,pa);case K:return u(a,Kl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,Yl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ql(a,l){switch(l.insertionMode){case en:case ln:return f(a,vi);case zn:return f(a,Bl);case Wr:return f(a,Wn);case lr:return f(a,Hu);case Tr:return f(a,Hl);case De:return f(a,ha);case K:return f(a,Gl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var b="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",k='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',P='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',z=b+';$RS("',te='$RS("',J='","',le='")<\/script>';function Se(a,l,d){u(a,l.startInlineScript),l.sentCompleteSegmentFunction?u(a,te):(l.sentCompleteSegmentFunction=!0,u(a,z)),u(a,l.segmentPrefix);var g=d.toString(16);return u(a,g),u(a,J),u(a,l.placeholderPrefix),u(a,g),f(a,le)}var Qe=k+';$RC("',rt='$RC("',et='","',Mt='")<\/script>';function $n(a,l,d,g){if(u(a,l.startInlineScript),l.sentCompleteBoundaryFunction?u(a,rt):(l.sentCompleteBoundaryFunction=!0,u(a,Qe)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var S=g.toString(16);return u(a,d),u(a,et),u(a,l.segmentPrefix),u(a,S),f(a,Mt)}var ur=P+';$RX("',fr='$RX("',ma='"',Zl=")<\/script>",yi=",";function Cm(a,l,d,g,S,_){if(u(a,l.startInlineScript),l.sentClientRenderFunction?u(a,fr):(l.sentClientRenderFunction=!0,u(a,ur)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(a,d),u(a,ma),(g||S||_)&&(u(a,yi),u(a,Vu(g||""))),(S||_)&&(u(a,yi),u(a,Vu(S||""))),_&&(u(a,yi),u(a,Vu(_))),f(a,Zl)}var Am=/[<\u2028\u2029]/g;function Vu(a){var l=JSON.stringify(a);return l.replace(Am,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Em(a,l){var d=Ur(l);return{bootstrapChunks:d.bootstrapChunks,startInlineScript:d.startInlineScript,placeholderPrefix:d.placeholderPrefix,segmentPrefix:d.segmentPrefix,boundaryPrefix:d.boundaryPrefix,idPrefix:d.idPrefix,nextSuspenseID:d.nextSuspenseID,sentCompleteSegmentFunction:d.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:d.sentCompleteBoundaryFunction,sentClientRenderFunction:d.sentClientRenderFunction,generateStaticMarkup:a}}function km(){return{insertionMode:ln,selectedValue:null}}function Dd(a,l,d,g){return d.generateStaticMarkup?(a.push(Yt(l)),!1):hn(a,l,d,g)}function Fd(a,l,d,g){if(!l.generateStaticMarkup)return _r(a,l,d,g)}function Tm(a,l){return l.generateStaticMarkup?!0:jl(a)}function _m(a,l,d,g,S){return l.generateStaticMarkup?!0:cs(a,l,d,g,S)}function Rm(a,l){return l.generateStaticMarkup?!0:$u(a)}function Pm(a,l){return l.generateStaticMarkup?!0:us(a)}var qn=Object.assign,Im=Symbol.for("react.element"),jd=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),dr=Symbol.for("react.strict_mode"),zd=Symbol.for("react.profiler"),Jl=Symbol.for("react.provider"),ql=Symbol.for("react.context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),ps=Symbol.for("react.suspense_list"),hs=Symbol.for("react.memo"),ga=Symbol.for("react.lazy"),Ku=Symbol.for("react.scope"),Yu=Symbol.for("react.debug_trace_mode"),Gu=Symbol.for("react.legacy_hidden"),nc=Symbol.for("react.default_value"),Bd=Symbol.iterator,Om="@@iterator";function Mm(a){if(a===null||typeof a!="object")return null;var l=Bd&&a[Bd]||a[Om];return typeof l=="function"?l:null}function Nm(a,l,d){var g=a.displayName;if(g)return g;var S=l.displayName||l.name||"";return S!==""?d+"("+S+")":d}function Qu(a){return a.displayName||"Context"}function $t(a){if(a==null)return null;if(typeof a.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Xl:return"Fragment";case jd:return"Portal";case zd:return"Profiler";case dr:return"StrictMode";case tc:return"Suspense";case ps:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ql:var l=a;return Qu(l)+".Consumer";case Jl:var d=a;return Qu(d._context)+".Provider";case ec:return Nm(a,a.render,"ForwardRef");case hs:var g=a.displayName||null;return g!==null?g:$t(a.type)||"Memo";case ga:{var S=a,_=S._payload,I=S._init;try{return $t(I(_))}catch{return null}}}return null}var ms=0,Ud,Zu,Bt,va,Xu,Ju,qu;function ef(){}ef.__reactDisabledLog=!0;function Wd(){{if(ms===0){Ud=console.log,Zu=console.info,Bt=console.warn,va=console.error,Xu=console.group,Ju=console.groupCollapsed,qu=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ef,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}ms++}}function $d(){{if(ms--,ms===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qn({},a,{value:Ud}),info:qn({},a,{value:Zu}),warn:qn({},a,{value:Bt}),error:qn({},a,{value:va}),group:qn({},a,{value:Xu}),groupCollapsed:qn({},a,{value:Ju}),groupEnd:qn({},a,{value:qu})})}ms<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rc=n.ReactCurrentDispatcher,oc;function gs(a,l,d){{if(oc===void 0)try{throw Error()}catch(S){var g=S.stack.trim().match(/\n( *(at )?)/);oc=g&&g[1]||""}return`
|
|
40
|
+
`+oc+a}}var tf=!1,ya;{var nf=typeof WeakMap=="function"?WeakMap:Map;ya=new nf}function bi(a,l){if(!a||tf)return"";{var d=ya.get(a);if(d!==void 0)return d}var g;tf=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=rc.current,rc.current=null,Wd();try{if(l){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(mn){g=mn}Reflect.construct(a,[],I)}else{try{I.call()}catch(mn){g=mn}a.call(I.prototype)}}else{try{throw Error()}catch(mn){g=mn}a()}}catch(mn){if(mn&&g&&typeof mn.stack=="string"){for(var W=mn.stack.split(`
|
|
41
|
+
`),X=g.stack.split(`
|
|
42
|
+
`),fe=W.length-1,ye=X.length-1;fe>=1&&ye>=0&&W[fe]!==X[ye];)ye--;for(;fe>=1&&ye>=0;fe--,ye--)if(W[fe]!==X[ye]){if(fe!==1||ye!==1)do if(fe--,ye--,ye<0||W[fe]!==X[ye]){var Pe=`
|
|
43
|
+
`+W[fe].replace(" at new "," at ");return a.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",a.displayName)),typeof a=="function"&&ya.set(a,Pe),Pe}while(fe>=1&&ye>=0);break}}}finally{tf=!1,rc.current=_,$d(),Error.prepareStackTrace=S}var Ze=a?a.displayName||a.name:"",yt=Ze?gs(Ze):"";return typeof a=="function"&&ya.set(a,yt),yt}function rf(a,l,d){return bi(a,!0)}function vs(a,l,d){return bi(a,!1)}function Lm(a){var l=a.prototype;return!!(l&&l.isReactComponent)}function ys(a,l,d){if(a==null)return"";if(typeof a=="function")return bi(a,Lm(a));if(typeof a=="string")return gs(a);switch(a){case tc:return gs("Suspense");case ps:return gs("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case ec:return vs(a.render);case hs:return ys(a.type,l,d);case ga:{var g=a,S=g._payload,_=g._init;try{return ys(_(S),l,d)}catch{}}}return""}var Hd={},of=n.ReactDebugCurrentFrame;function ic(a){if(a){var l=a._owner,d=ys(a.type,a._source,l?l.type:null);of.setExtraStackFrame(d)}else of.setExtraStackFrame(null)}function ac(a,l,d,g,S){{var _=Function.call.bind(M);for(var I in a)if(_(a,I)){var W=void 0;try{if(typeof a[I]!="function"){var X=Error((g||"React class")+": "+d+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}W=a[I](l,I,g,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fe){W=fe}W&&!(W instanceof Error)&&(ic(S),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",d,I,typeof W),ic(null)),W instanceof Error&&!(W.message in Hd)&&(Hd[W.message]=!0,ic(S),o("Failed %s type: %s",d,W.message),ic(null))}}}var sc;sc={};var bs={};Object.freeze(bs);function xs(a,l){{var d=a.contextTypes;if(!d)return bs;var g={};for(var S in d)g[S]=l[S];{var _=$t(a)||"Unknown";ac(d,g,"context",_)}return g}}function Vd(a,l,d,g){{if(typeof a.getChildContext!="function"){{var S=$t(l)||"Unknown";sc[S]||(sc[S]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return d}var _=a.getChildContext();for(var I in _)if(!(I in g))throw new Error(($t(l)||"Unknown")+'.getChildContext(): key "'+I+'" is not defined in childContextTypes.');{var W=$t(l)||"Unknown";ac(g,_,"child context",W)}return qn({},d,_)}}var xi;xi={};var lc=null,Vo=null;function af(a){a.context._currentValue2=a.parentValue}function wi(a){a.context._currentValue2=a.value}function cc(a,l){if(a!==l){af(a);var d=a.parent,g=l.parent;if(d===null){if(g!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(g===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");cc(d,g)}wi(l)}}function Ko(a){af(a);var l=a.parent;l!==null&&Ko(l)}function uc(a){var l=a.parent;l!==null&&uc(l),wi(a)}function fc(a,l){af(a);var d=a.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?cc(d,l):fc(d,l)}function ws(a,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?cc(a,d):ws(a,d),wi(l)}function Ss(a){var l=Vo,d=a;l!==d&&(l===null?uc(d):d===null?Ko(l):l.depth===d.depth?cc(l,d):l.depth>d.depth?fc(l,d):ws(l,d),Vo=d)}function Kd(a,l){var d;d=a._currentValue2,a._currentValue2=l,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==xi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=xi;var g=Vo,S={parent:g,depth:g===null?0:g.depth+1,context:a,parentValue:d,value:l};return Vo=S,S}function Yd(a){var l=Vo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==a&&o("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===nc?l.context._currentValue2=l.context._defaultValue:l.context._currentValue2=d,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==xi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=xi}return Vo=l.parent}function Gd(){return Vo}function Yo(a){var l=a._currentValue2;return l}function sf(a){return a._reactInternals}function Dm(a,l){a._reactInternals=l}var Qd={},ba={},Cs,lf,dc,pc,hc,xa,As,Es,mc;{Cs=new Set,lf=new Set,dc=new Set,As=new Set,pc=new Set,Es=new Set,mc=new Set;var ks=new Set;xa=function(a,l){if(!(a===null||typeof a=="function")){var d=l+"_"+a;ks.has(d)||(ks.add(d),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,a))}},hc=function(a,l){if(l===void 0){var d=$t(a)||"Component";pc.has(d)||(pc.add(d),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function gc(a,l){{var d=a.constructor,g=d&&$t(d)||"ReactClass",S=g+"."+l;if(Qd[S])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
44
|
+
|
|
45
|
+
Please check the code for the %s component.`,l,l,g),Qd[S]=!0}}var vc={isMounted:function(a){return!1},enqueueSetState:function(a,l,d){var g=sf(a);g.queue===null?gc(a,"setState"):(g.queue.push(l),d!=null&&xa(d,"setState"))},enqueueReplaceState:function(a,l,d){var g=sf(a);g.replace=!0,g.queue=[l],d!=null&&xa(d,"setState")},enqueueForceUpdate:function(a,l){var d=sf(a);d.queue===null?gc(a,"forceUpdate"):l!=null&&xa(l,"setState")}};function cf(a,l,d,g,S){var _=d(S,g);hc(l,_);var I=_==null?g:qn({},g,_);return I}function Zd(a,l,d){var g=bs,S=a.contextType;if("contextType"in a){var _=S===null||S!==void 0&&S.$$typeof===ql&&S._context===void 0;if(!_&&!mc.has(a)){mc.add(a);var I="";S===void 0?I=" 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 S!="object"?I=" However, it is set to a "+typeof S+".":S.$$typeof===Jl?I=" Did you accidentally pass the Context.Provider instead?":S._context!==void 0?I=" Did you accidentally pass the Context.Consumer instead?":I=" However, it is set to an object with keys {"+Object.keys(S).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",$t(a)||"Component",I)}}typeof S=="object"&&S!==null?g=Yo(S):g=d;var W=new a(l,g);{if(typeof a.getDerivedStateFromProps=="function"&&(W.state===null||W.state===void 0)){var X=$t(a)||"Component";Cs.has(X)||(Cs.add(X),o("`%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.",X,W.state===null?"null":"undefined",X))}if(typeof a.getDerivedStateFromProps=="function"||typeof W.getSnapshotBeforeUpdate=="function"){var fe=null,ye=null,Pe=null;if(typeof W.componentWillMount=="function"&&W.componentWillMount.__suppressDeprecationWarning!==!0?fe="componentWillMount":typeof W.UNSAFE_componentWillMount=="function"&&(fe="UNSAFE_componentWillMount"),typeof W.componentWillReceiveProps=="function"&&W.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ye="componentWillReceiveProps":typeof W.UNSAFE_componentWillReceiveProps=="function"&&(ye="UNSAFE_componentWillReceiveProps"),typeof W.componentWillUpdate=="function"&&W.componentWillUpdate.__suppressDeprecationWarning!==!0?Pe="componentWillUpdate":typeof W.UNSAFE_componentWillUpdate=="function"&&(Pe="UNSAFE_componentWillUpdate"),fe!==null||ye!==null||Pe!==null){var Ze=$t(a)||"Component",yt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";dc.has(Ze)||(dc.add(Ze),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
46
46
|
|
|
47
47
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
48
48
|
|
|
49
49
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
50
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,
|
|
51
|
-
`+
|
|
52
|
-
`+
|
|
53
|
-
`+
|
|
50
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Ze,yt,fe!==null?`
|
|
51
|
+
`+fe:"",ye!==null?`
|
|
52
|
+
`+ye:"",Pe!==null?`
|
|
53
|
+
`+Pe:""))}}}return W}function Xd(a,l,d){{var g=$t(l)||"Component",S=a.render;S||(l.prototype&&typeof l.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&o("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?",g),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&o("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.",g),a.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),a.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),a.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),l.contextType&&l.contextTypes&&!Es.has(l)&&(Es.add(l),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof a.componentShouldUpdate=="function"&&o("%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.",g),l.prototype&&l.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",$t(l)||"A pure component"),typeof a.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof a.componentDidReceiveProps=="function"&&o("%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().",g),typeof a.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof a.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var _=a.props!==d;a.props!==void 0&&_&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),a.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!lf.has(l)&&(lf.add(l),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",$t(l))),typeof a.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof a.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof l.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var I=a.state;I&&(typeof I!="object"||jn(I))&&o("%s.state: must be set to an object or null",g),typeof a.getChildContext=="function"&&typeof l.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function Jd(a,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var g=$t(a)||"Unknown";ba[g]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
54
54
|
|
|
55
55
|
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
56
56
|
|
|
57
|
-
Please update the following components: %s`,
|
|
57
|
+
Please update the following components: %s`,g),ba[g]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$t(a)||"Component"),vc.enqueueReplaceState(l,l.state,null))}function Fm(a,l,d,g){if(a.queue!==null&&a.queue.length>0){var S=a.queue,_=a.replace;if(a.queue=null,a.replace=!1,_&&S.length===1)l.state=S[0];else{for(var I=_?S[0]:l.state,W=!0,X=_?1:0;X<S.length;X++){var fe=S[X],ye=typeof fe=="function"?fe.call(l,I,d,g):fe;ye!=null&&(W?(W=!1,I=qn({},I,ye)):qn(I,ye))}l.state=I}}else a.queue=null}function qd(a,l,d,g){Xd(a,l,d);var S=a.state!==void 0?a.state:null;a.updater=vc,a.props=d,a.state=S;var _={queue:[],replace:!1};Dm(a,_);var I=l.contextType;if(typeof I=="object"&&I!==null?a.context=Yo(I):a.context=g,a.state===d){var W=$t(l)||"Component";As.has(W)||(As.add(W),o("%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.",W))}var X=l.getDerivedStateFromProps;typeof X=="function"&&(a.state=cf(a,l,X,S,d)),typeof l.getDerivedStateFromProps!="function"&&typeof a.getSnapshotBeforeUpdate!="function"&&(typeof a.UNSAFE_componentWillMount=="function"||typeof a.componentWillMount=="function")&&(Jd(l,a),Fm(_,a,d,g))}var jm={id:1,overflow:""};function zm(a){var l=a.overflow,d=a.id,g=d&~Bm(d);return g.toString(32)+l}function uf(a,l,d){var g=a.id,S=a.overflow,_=Ts(g)-1,I=g&~(1<<_),W=d+1,X=Ts(l)+_;if(X>30){var fe=_-_%5,ye=(1<<fe)-1,Pe=(I&ye).toString(32),Ze=I>>fe,yt=_-fe,mn=Ts(l)+yt,_i=W<<yt,Ri=_i|Ze,To=Pe+S;return{id:1<<mn|Ri,overflow:To}}else{var Ta=W<<_,yg=Ta|I,Pk=S;return{id:1<<X|yg,overflow:Pk}}}function Ts(a){return 32-Um(a)}function Bm(a){return 1<<Ts(a)-1}var Um=Math.clz32?Math.clz32:Wm,ff=Math.log,yc=Math.LN2;function Wm(a){var l=a>>>0;return l===0?32:31-(ff(l)/yc|0)|0}function $m(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var Hm=typeof Object.is=="function"?Object.is:$m,Co=null,df=null,bc=null,Ft=null,pr=!1,wa=!1,Si=0,ht=null,Go=0,xc=25,hr=!1,mr;function oo(){if(Co===null)throw new 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:
|
|
58
58
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
59
|
2. You might be breaking the Rules of Hooks
|
|
60
60
|
3. You might have more than one copy of React in the same app
|
|
61
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return
|
|
61
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return hr&&o("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://reactjs.org/link/rules-of-hooks"),Co}function Vm(a,l){if(l===null)return o("%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.",mr),!1;a.length!==l.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
62
62
|
|
|
63
63
|
Previous: %s
|
|
64
|
-
Incoming: %s`,
|
|
65
|
-
Error generating stack: `+
|
|
66
|
-
`+u.stack}}var Xa=o.ReactCurrentDispatcher,Mi=o.ReactDebugCurrentFrame,qa=0,_o=1,Ja=2,Ka=3,Za=4,Lo=0,pl=1,Hn=2,ku=12800;function af(t){return console.error(t),null}function jo(){}function No(t,n,s,u,p,b,S,A,j){var X=[],K=new Set,le={destination:null,responseState:n,progressiveChunkSize:u===void 0?ku:u,status:Lo,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:K,pingedTasks:X,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:p===void 0?af:p,onAllReady:jo,onShellReady:S===void 0?jo:S,onShellError:jo,onFatalError:jo},Oe=es(le,0,null,s,!1,!1);Oe.parentFlushed=!0;var Ye=Wn(le,t,null,Oe,K,ki,Ma,Bc);return X.push(Ye),le}function sf(t,n){var s=t.pingedTasks;s.push(n),s.length===1&&h(function(){return kl(t)})}function lf(t,n){return{id:mo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null}}function Wn(t,n,s,u,p,b,S,A){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var j={node:n,ping:function(){return sf(t,j)},blockedBoundary:s,blockedSegment:u,abortSet:p,legacyContext:b,context:S,treeContext:A};return j.componentStack=null,p.add(j),j}function es(t,n,s,u,p,b){return{status:qa,id:-1,index:n,parentFlushed:!1,chunks:[],children:[],formatContext:u,boundary:s,lastPushedText:p,textEmbedded:b}}var Yr=null;function hl(){return Yr===null||Yr.componentStack===null?"":Qa(Yr.componentStack)}function Vn(t,n){t.componentStack={tag:0,parent:t.componentStack,type:n}}function Di(t,n){t.componentStack={tag:1,parent:t.componentStack,type:n}}function Gr(t,n){t.componentStack={tag:2,parent:t.componentStack,type:n}}function Fr(t){t.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var Qr=null;function ts(t,n){{var s;typeof n=="string"?s=n:n&&typeof n.message=="string"?s=n.message:s=String(n);var u=Qr||hl();Qr=null,t.errorMessage=s,t.errorComponentStack=u}}function _i(t,n){var s=t.onError(n);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function mr(t,n){var s=t.onShellError;s(n);var u=t.onFatalError;u(n),t.destination!==null?(t.status=Hn,B(t.destination,n)):(t.status=pl,t.fatalError=n)}function Li(t,n,s){Vn(n,"Suspense");var u=n.blockedBoundary,p=n.blockedSegment,b=s.fallback,S=s.children,A=new Set,j=lf(t,A),X=p.chunks.length,K=es(t,X,j,p.formatContext,!1,!1);p.children.push(K),p.lastPushedText=!1;var le=es(t,0,null,p.formatContext,!1,!1);le.parentFlushed=!0,n.blockedBoundary=j,n.blockedSegment=le;try{if(Ot(t,n,S),eu(le.chunks,t.responseState,le.lastPushedText,le.textEmbedded),le.status=_o,$o(j,le),j.pendingTasks===0){Fr(n);return}}catch(Ye){le.status=Za,j.forceClientRender=!0,j.errorDigest=_i(t,Ye),ts(j,Ye)}finally{n.blockedBoundary=u,n.blockedSegment=p}var Oe=Wn(t,b,u,K,A,n.legacyContext,n.context,n.treeContext);Oe.componentStack=n.componentStack,t.pingedTasks.push(Oe),Fr(n)}function ml(t,n,s,u){Vn(n,s);var p=n.blockedSegment,b=pr(p.chunks,s,u,t.responseState,p.formatContext);p.lastPushedText=!1;var S=p.formatContext;p.formatContext=ho(S,s,u),Ot(t,n,b),p.formatContext=S,qe(p.chunks,s),p.lastPushedText=!1,Fr(n)}function ji(t){return t.prototype&&t.prototype.isReactComponent}function Ni(t,n,s,u,p){var b={};Un(n,b);var S=s(u,p);return Xc(s,u,S,p)}function Eu(t,n,s,u,p){var b=s.render();s.props!==p&&(vl||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ot(u)||"a component"),vl=!0);{var S=u.childContextTypes;if(S!=null){var A=n.legacyContext,j=lu(s,u,A,S);n.legacyContext=j,Gt(t,n,b),n.legacyContext=A;return}}Gt(t,n,b)}function uf(t,n,s,u){Gr(n,s);var p=Ei(s,n.legacyContext),b=pu(s,u,p);gu(b,s,u,p),Eu(t,n,b,s,u),Fr(n)}var Cu={},$i={},gl={},Tu={},vl=!1,zi={},yl=!1,bl=!1,xl=!1;function Ru(t,n,s,u){var p;if(p=Ei(s,n.legacyContext),Di(n,s),s.prototype&&typeof s.prototype.render=="function"){var b=ot(s)||"Unknown";Cu[b]||(a("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),Cu[b]=!0)}var S=Ni(t,n,s,u,p),A=ul();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var j=ot(s)||"Unknown";$i[j]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",j,j,j),$i[j]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var X=ot(s)||"Unknown";$i[X]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),$i[X]=!0)}gu(S,s,u,p),Eu(t,n,S,s,u)}else if(Pu(s),A){var K=n.treeContext,le=1,Oe=0;n.treeContext=al(K,le,Oe);try{Gt(t,n,S)}finally{n.treeContext=K}}else Gt(t,n,S);Fr(n)}function Pu(t){{if(t&&t.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var n=ot(t)||"Unknown";zi[n]||(a("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",n),zi[n]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=ot(t)||"Unknown";Tu[s]||(a("%s: Function components do not support getDerivedStateFromProps.",s),Tu[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=ot(t)||"Unknown";gl[u]||(a("%s: Function components do not support contextType.",u),gl[u]=!0)}}}function wl(t,n){if(t&&t.defaultProps){var s=Mt({},n),u=t.defaultProps;for(var p in u)s[p]===void 0&&(s[p]=u[p]);return s}return n}function Au(t,n,s,u,p){Di(n,s.render);var b=Ni(t,n,s.render,u,p),S=ul();if(S){var A=n.treeContext,j=1,X=0;n.treeContext=al(A,j,X);try{Gt(t,n,b)}finally{n.treeContext=A}}else Gt(t,n,b);Fr(n)}function cf(t,n,s,u,p){var b=s.type,S=wl(b,u);Sl(t,n,b,S,p)}function ff(t,n,s,u){s._context===void 0?s!==s.Consumer&&(xl||(xl=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var p=u.children;typeof p!="function"&&a("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.");var b=hn(s),S=p(b);Gt(t,n,S)}function Iu(t,n,s,u){var p=s._context,b=u.value,S=u.children,A;A=n.context,n.context=uu(p,b),Gt(t,n,S),n.context=cu(p),A!==n.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function df(t,n,s,u,p){Vn(n,"Lazy");var b=s._payload,S=s._init,A=S(b),j=wl(A,u);Sl(t,n,A,j,p),Fr(n)}function Sl(t,n,s,u,p){if(typeof s=="function")if(ji(s)){uf(t,n,s,u);return}else{Ru(t,n,s,u);return}if(typeof s=="string"){ml(t,n,s,u);return}switch(s){case Vs:case Ws:case Ht:case ru:case Sa:{Gt(t,n,u.children);return}case vi:{Vn(n,"SuspenseList"),Gt(t,n,u.children),Fr(n);return}case Hs:throw new Error("ReactDOMServer does not yet support scope components.");case Ta:{Li(t,n,u);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ca:{Au(t,n,s,u,p);return}case yi:{cf(t,n,s,u,p);return}case ka:{Iu(t,n,s,u);return}case Ea:{ff(t,n,s,u);return}case Ao:{df(t,n,s,u);return}}var b="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+b))}function pf(t,n){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(yl||a("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),yl=!0),t.entries===n&&(bl||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bl=!0)}function Gt(t,n,s){try{return hf(t,n,s)}catch(u){throw typeof u=="object"&&u!==null&&typeof u.then=="function"||(Qr=Qr!==null?Qr:hl()),u}}function hf(t,n,s){if(n.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case Dc:{var u=s,p=u.type,b=u.props,S=u.ref;Sl(t,n,p,b,S);return}case tu:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ao:{var A=s,j=A._payload,X=A._init,K;try{K=X(j)}catch(zo){throw typeof zo=="object"&&zo!==null&&typeof zo.then=="function"&&Vn(n,"Lazy"),zo}Gt(t,n,K);return}}if(Zt(s)){rs(t,n,s);return}var le=Lc(s);if(le){pf(s,le);var Oe=le.call(s);if(Oe){var Ye=Oe.next();if(!Ye.done){var vt=[];do vt.push(Ye.value),Ye=Oe.next();while(!Ye.done);rs(t,n,vt);return}return}}var Gn=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Gn==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Gn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Qn=n.blockedSegment;Qn.lastPushedText=Zl(n.blockedSegment.chunks,s,t.responseState,Qn.lastPushedText);return}if(typeof s=="number"){var Xr=n.blockedSegment;Xr.lastPushedText=Zl(n.blockedSegment.chunks,""+s,t.responseState,Xr.lastPushedText);return}typeof s=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function rs(t,n,s){for(var u=s.length,p=0;p<u;p++){var b=n.treeContext;n.treeContext=al(b,u,p);try{Ot(t,n,s[p])}finally{n.treeContext=b}}}function mf(t,n,s){var u=n.blockedSegment,p=u.chunks.length,b=es(t,p,null,u.formatContext,u.lastPushedText,!0);u.children.push(b),u.lastPushedText=!1;var S=Wn(t,n.node,n.blockedBoundary,b,n.abortSet,n.legacyContext,n.context,n.treeContext);n.componentStack!==null&&(S.componentStack=n.componentStack.parent);var A=S.ping;s.then(A,A)}function Ot(t,n,s){var u=n.blockedSegment.formatContext,p=n.legacyContext,b=n.context,S=null;S=n.componentStack;try{return Gt(t,n,s)}catch(A){if(Fi(),typeof A=="object"&&A!==null&&typeof A.then=="function"){mf(t,n,A),n.blockedSegment.formatContext=u,n.legacyContext=p,n.context=b,Ti(b),n.componentStack=S;return}else throw n.blockedSegment.formatContext=u,n.legacyContext=p,n.context=b,Ti(b),n.componentStack=S,A}}function gf(t,n,s,u){var p=_i(t,u);if(n===null?mr(t,u):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,n.errorDigest=p,ts(n,u),n.parentFlushed&&t.clientRenderedBoundaries.push(n))),t.allPendingTasks--,t.allPendingTasks===0){var b=t.onAllReady;b()}}function Ou(t){var n=this,s=t.blockedBoundary,u=t.blockedSegment;u.status=Ka,Mu(n,s,u)}function Fu(t,n,s){var u=t.blockedBoundary,p=t.blockedSegment;if(p.status=Ka,u===null)n.allPendingTasks--,n.status!==Hn&&(n.status=Hn,n.destination!==null&&E(n.destination));else{if(u.pendingTasks--,!u.forceClientRender){u.forceClientRender=!0;var b=s===void 0?new Error("The render was aborted by the server without a reason."):s;u.errorDigest=n.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var A=Yr;Yr=t;try{ts(u,b)}finally{Yr=A}}u.parentFlushed&&n.clientRenderedBoundaries.push(u)}if(u.fallbackAbortableTasks.forEach(function(X){return Fu(X,n,s)}),u.fallbackAbortableTasks.clear(),n.allPendingTasks--,n.allPendingTasks===0){var j=n.onAllReady;j()}}}function $o(t,n){if(n.chunks.length===0&&n.children.length===1&&n.children[0].boundary===null){var s=n.children[0];s.id=n.id,s.parentFlushed=!0,s.status===_o&&$o(t,s)}else{var u=t.completedSegments;u.push(n)}}function Mu(t,n,s){if(n===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=jo;var u=t.onShellReady;u()}}else if(n.pendingTasks--,!n.forceClientRender){if(n.pendingTasks===0)s.parentFlushed&&s.status===_o&&$o(n,s),n.parentFlushed&&t.completedBoundaries.push(n),n.fallbackAbortableTasks.forEach(Ou,t),n.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===_o){$o(n,s);var p=n.completedSegments;p.length===1&&n.parentFlushed&&t.partialBoundaries.push(n)}}if(t.allPendingTasks--,t.allPendingTasks===0){var b=t.onAllReady;b()}}function vf(t,n){var s=n.blockedSegment;if(s.status===qa){Ti(n.context);var u=null;u=Yr,Yr=n;try{Gt(t,n,n.node),eu(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),n.abortSet.delete(n),s.status=_o,Mu(t,n.blockedBoundary,s)}catch(b){if(Fi(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var p=n.ping;b.then(p,p)}else n.abortSet.delete(n),s.status=Za,gf(t,n.blockedBoundary,s,b)}finally{Yr=u}}}function kl(t){if(t.status!==Hn){var n=fu(),s=Xa.current;Xa.current=wu;var u;u=Mi.getCurrentStack,Mi.getCurrentStack=hl;var p=dl;Su(t.responseState);try{var b=t.pingedTasks,S;for(S=0;S<b.length;S++){var A=b[S];vf(t,A)}b.splice(0,S),t.destination!==null&&os(t,t.destination)}catch(j){_i(t,j),mr(t,j)}finally{Su(p),Xa.current=s,Mi.getCurrentStack=u,s===wu&&Ti(n)}}}function Yn(t,n,s){switch(s.parentFlushed=!0,s.status){case qa:{var u=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,Ar(n,t.responseState,u)}case _o:{s.status=Ja;for(var p=!0,b=s.chunks,S=0,A=s.children,j=0;j<A.length;j++){for(var X=A[j];S<X.index;S++)m(n,b[S]);p=Bi(t,n,X)}for(;S<b.length-1;S++)m(n,b[S]);return S<b.length&&(p=x(n,b[S])),p}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Bi(t,n,s){var u=s.boundary;if(u===null)return Yn(t,n,s);if(u.parentFlushed=!0,u.forceClientRender)return Oc(n,t.responseState,u.errorDigest,u.errorMessage,u.errorComponentStack),Yn(t,n,s),Mc(n,t.responseState);if(u.pendingTasks>0){u.rootSegmentID=t.nextSegmentId++,u.completedSegments.length>0&&t.partialBoundaries.push(u);var p=u.id=fr(t.responseState);return _n(n,t.responseState,p),Yn(t,n,s),cn(n,t.responseState)}else{if(u.byteSize>t.progressiveChunkSize)return u.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(u),_n(n,t.responseState,u.id),Yn(t,n,s),cn(n,t.responseState);Ic(n,t.responseState);var b=u.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Bi(t,n,S),Fc(n,t.responseState)}}function yf(t,n,s){return Tc(n,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function El(t,n,s){return gi(n,t.responseState,s.formatContext,s.id),Bi(t,n,s),xa(n,s.formatContext)}function Ui(t,n,s){for(var u=s.completedSegments,p=0;p<u.length;p++){var b=u[p];Du(t,n,s,b)}return u.length=0,It(n,t.responseState,s.id,s.rootSegmentID)}function ns(t,n,s){for(var u=s.completedSegments,p=0;p<u.length;p++){var b=u[p];if(!Du(t,n,s,b))return p++,u.splice(0,p),!1}return u.splice(0,p),!0}function Du(t,n,s,u){if(u.status===Ja)return!0;var p=u.id;if(p===-1){var b=u.id=s.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return El(t,n,u)}else return El(t,n,u),re(n,t.responseState,p)}function os(t,n){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(Bi(t,n,s),t.completedRootSegment=null,Hr(n,t.responseState));var u=t.clientRenderedBoundaries,p;for(p=0;p<u.length;p++){var b=u[p];if(!yf(t,n,b)){t.destination=null,p++,u.splice(0,p);return}}u.splice(0,p);var S=t.completedBoundaries;for(p=0;p<S.length;p++){var A=S[p];if(!Ui(t,n,A)){t.destination=null,p++,S.splice(0,p);return}}S.splice(0,p);var j=t.partialBoundaries;for(p=0;p<j.length;p++){var X=j[p];if(!ns(t,n,X)){t.destination=null,p++,j.splice(0,p);return}}j.splice(0,p);var K=t.completedBoundaries;for(p=0;p<K.length;p++){var le=K[p];if(!Ui(t,n,le)){t.destination=null,p++,K.splice(0,p);return}}K.splice(0,p)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),E(n))}}function _u(t){h(function(){return kl(t)})}function bf(t,n){if(t.status===pl){t.status=Hn,B(n,t.fatalError);return}if(t.status!==Hn&&t.destination===null){t.destination=n;try{os(t,n)}catch(s){_i(t,s),mr(t,s)}}}function Lu(t,n){try{var s=t.abortableTasks;s.forEach(function(u){return Fu(u,t,n)}),s.clear(),t.destination!==null&&os(t,t.destination)}catch(u){_i(t,u),mr(t,u)}}function Cl(){}function ju(t,n,s,u){var p=!1,b=null,S="",A={push:function(le){return le!==null&&(S+=le),!0},destroy:function(le){p=!0,b=le}},j=!1;function X(){j=!0}var K=No(t,Pc(s,n?n.identifierPrefix:void 0),Ac(),1/0,Cl,void 0,X);if(_u(K),Lu(K,u),bf(K,A),p)throw b;if(!j)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return S}function xf(t,n){return ju(t,n,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Nu(t,n){return ju(t,n,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function wf(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Wi.renderToNodeStream=wf,Wi.renderToStaticMarkup=Nu,Wi.renderToStaticNodeStream=l,Wi.renderToString=xf,Wi.version=r}()),Wi}var Bu={};/**
|
|
64
|
+
Incoming: %s`,mr,"["+a.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<a.length;d++)if(!Hm(a[d],l[d]))return!1;return!0}function Vr(){if(Go>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Qo(){return Ft===null?bc===null?(pr=!1,bc=Ft=Vr()):(pr=!0,Ft=bc):Ft.next===null?(pr=!1,Ft=Ft.next=Vr()):(pr=!0,Ft=Ft.next),Ft}function Ci(a,l){Co=l,df=a,hr=!1,Si=0}function Km(a,l,d,g){for(;wa;)wa=!1,Si=0,Go+=1,Ft=null,d=a(l,g);return _s(),d}function pf(){var a=Si!==0;return a}function _s(){hr=!1,Co=null,df=null,wa=!1,bc=null,Go=0,ht=null,Ft=null}function Ym(a){return hr&&o("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()."),Yo(a)}function Gm(a){return mr="useContext",oo(),Yo(a)}function wc(a,l){return typeof l=="function"?l(a):l}function hf(a){return mr="useState",ep(wc,a)}function ep(a,l,d){if(a!==wc&&(mr="useReducer"),Co=oo(),Ft=Qo(),pr){var g=Ft.queue,S=g.dispatch;if(ht!==null){var _=ht.get(g);if(_!==void 0){ht.delete(g);var I=Ft.memoizedState,W=_;do{var X=W.action;hr=!0,I=a(I,X),hr=!1,W=W.next}while(W!==null);return Ft.memoizedState=I,[I,S]}}return[Ft.memoizedState,S]}else{hr=!0;var fe;a===wc?fe=typeof l=="function"?l():l:fe=d!==void 0?d(l):l,hr=!1,Ft.memoizedState=fe;var ye=Ft.queue={last:null,dispatch:null},Pe=ye.dispatch=np.bind(null,Co,ye);return[Ft.memoizedState,Pe]}}function tp(a,l){Co=oo(),Ft=Qo();var d=l===void 0?null:l;if(Ft!==null){var g=Ft.memoizedState;if(g!==null&&d!==null){var S=g[1];if(Vm(d,S))return g[0]}}hr=!0;var _=a();return hr=!1,Ft.memoizedState=[_,d],_}function mf(a){Co=oo(),Ft=Qo();var l=Ft.memoizedState;if(l===null){var d={current:a};return Object.seal(d),Ft.memoizedState=d,d}else return l}function Qm(a,l){mr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function np(a,l,d){if(Go>=xc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===Co){wa=!0;var g={action:d,next:null};ht===null&&(ht=new Map);var S=ht.get(l);if(S===void 0)ht.set(l,g);else{for(var _=S;_.next!==null;)_=_.next;_.next=g}}}function rp(a,l){return tp(function(){return a},l)}function Zm(a,l,d){return oo(),l(a._source)}function Xm(a,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Jm(a){return oo(),a}function qm(){throw new Error("startTransition cannot be called during server rendering.")}function eg(){return oo(),[!1,qm]}function tg(){var a=df,l=zm(a.treeContext),d=gf;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=Si++;return qe(d,l,g)}function Sc(){}var op={readContext:Ym,useContext:Gm,useMemo:tp,useReducer:ep,useRef:mf,useState:hf,useInsertionEffect:Sc,useLayoutEffect:Qm,useCallback:rp,useImperativeHandle:Sc,useEffect:Sc,useDebugValue:Sc,useDeferredValue:Jm,useTransition:eg,useId:tg,useMutableSource:Zm,useSyncExternalStore:Xm},gf=null;function ip(a){gf=a}function Cc(a){try{var l="",d=a;do{switch(d.tag){case 0:l+=gs(d.type,null,null);break;case 1:l+=vs(d.type,null,null);break;case 2:l+=rf(d.type,null,null);break}d=d.parent}while(d);return l}catch(g){return`
|
|
65
|
+
Error generating stack: `+g.message+`
|
|
66
|
+
`+g.stack}}var Ac=n.ReactCurrentDispatcher,Rs=n.ReactDebugCurrentFrame,Ec=0,Sa=1,kc=2,Tc=3,_c=4,Ca=0,vf=1,Ai=2,ap=12800;function ng(a){return console.error(a),null}function Aa(){}function Ea(a,l,d,g,S,_,I,W,X){var fe=[],ye=new Set,Pe={destination:null,responseState:l,progressiveChunkSize:g===void 0?ap:g,status:Ca,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ye,pingedTasks:fe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?ng:S,onAllReady:Aa,onShellReady:I===void 0?Aa:I,onShellError:Aa,onFatalError:Aa},Ze=Rc(Pe,0,null,d,!1,!1);Ze.parentFlushed=!0;var yt=Ei(Pe,a,null,Ze,ye,bs,lc,jm);return fe.push(yt),Pe}function rg(a,l){var d=a.pingedTasks;d.push(l),d.length===1&&s(function(){return Tf(a)})}function og(a,l){return{id:St,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ei(a,l,d,g,S,_,I,W){a.allPendingTasks++,d===null?a.pendingRootTasks++:d.pendingTasks++;var X={node:l,ping:function(){return rg(a,X)},blockedBoundary:d,blockedSegment:g,abortSet:S,legacyContext:_,context:I,treeContext:W};return X.componentStack=null,S.add(X),X}function Rc(a,l,d,g,S,_){return{status:Ec,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:d,lastPushedText:S,textEmbedded:_}}var Ao=null;function yf(){return Ao===null||Ao.componentStack===null?"":Cc(Ao.componentStack)}function ki(a,l){a.componentStack={tag:0,parent:a.componentStack,type:l}}function Ps(a,l){a.componentStack={tag:1,parent:a.componentStack,type:l}}function Eo(a,l){a.componentStack={tag:2,parent:a.componentStack,type:l}}function io(a){a.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):a.componentStack=a.componentStack.parent}var ko=null;function Pc(a,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var g=ko||yf();ko=null,a.errorMessage=d,a.errorComponentStack=g}}function Is(a,l){var d=a.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Kr(a,l){var d=a.onShellError;d(l);var g=a.onFatalError;g(l),a.destination!==null?(a.status=Ai,C(a.destination,l)):(a.status=vf,a.fatalError=l)}function Os(a,l,d){ki(l,"Suspense");var g=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,I=d.children,W=new Set,X=og(a,W),fe=S.chunks.length,ye=Rc(a,fe,X,S.formatContext,!1,!1);S.children.push(ye),S.lastPushedText=!1;var Pe=Rc(a,0,null,S.formatContext,!1,!1);Pe.parentFlushed=!0,l.blockedBoundary=X,l.blockedSegment=Pe;try{if(Hn(a,l,I),Fd(Pe.chunks,a.responseState,Pe.lastPushedText,Pe.textEmbedded),Pe.status=Sa,ka(X,Pe),X.pendingTasks===0){io(l);return}}catch(yt){Pe.status=_c,X.forceClientRender=!0,X.errorDigest=Is(a,yt),Pc(X,yt)}finally{l.blockedBoundary=g,l.blockedSegment=S}var Ze=Ei(a,_,g,ye,W,l.legacyContext,l.context,l.treeContext);Ze.componentStack=l.componentStack,a.pingedTasks.push(Ze),io(l)}function bf(a,l,d,g){ki(l,d);var S=l.blockedSegment,_=Hr(S.chunks,d,g,a.responseState,S.formatContext);S.lastPushedText=!1;var I=S.formatContext;S.formatContext=Fe(I,d,g),Hn(a,l,_),S.formatContext=I,Tt(S.chunks,d),S.lastPushedText=!1,io(l)}function Ms(a){return a.prototype&&a.prototype.isReactComponent}function Ns(a,l,d,g,S){var _={};Ci(l,_);var I=d(g,S);return Km(d,g,I,S)}function sp(a,l,d,g,S){var _=d.render();d.props!==S&&(wf||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",$t(g)||"a component"),wf=!0);{var I=g.childContextTypes;if(I!=null){var W=l.legacyContext,X=Vd(d,g,W,I);l.legacyContext=X,gr(a,l,_),l.legacyContext=W;return}}gr(a,l,_)}function ig(a,l,d,g){Eo(l,d);var S=xs(d,l.legacyContext),_=Zd(d,g,S);qd(_,d,g,S),sp(a,l,_,d,g),io(l)}var lp={},Ls={},xf={},cp={},wf=!1,Ds={},Sf=!1,Cf=!1,Af=!1;function up(a,l,d,g){var S;if(S=xs(d,l.legacyContext),Ps(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=$t(d)||"Unknown";lp[_]||(o("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.",_,_),lp[_]=!0)}var I=Ns(a,l,d,g,S),W=pf();if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){var X=$t(d)||"Unknown";Ls[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),Ls[X]=!0)}if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){{var fe=$t(d)||"Unknown";Ls[fe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",fe,fe,fe),Ls[fe]=!0)}qd(I,d,g,S),sp(a,l,I,d,g)}else if(fp(d),W){var ye=l.treeContext,Pe=1,Ze=0;l.treeContext=uf(ye,Pe,Ze);try{gr(a,l,I)}finally{l.treeContext=ye}}else gr(a,l,I);io(l)}function fp(a){{if(a&&a.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),a.defaultProps!==void 0){var l=$t(a)||"Unknown";Ds[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Ds[l]=!0)}if(typeof a.getDerivedStateFromProps=="function"){var d=$t(a)||"Unknown";cp[d]||(o("%s: Function components do not support getDerivedStateFromProps.",d),cp[d]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var g=$t(a)||"Unknown";xf[g]||(o("%s: Function components do not support contextType.",g),xf[g]=!0)}}}function Ef(a,l){if(a&&a.defaultProps){var d=qn({},l),g=a.defaultProps;for(var S in g)d[S]===void 0&&(d[S]=g[S]);return d}return l}function dp(a,l,d,g,S){Ps(l,d.render);var _=Ns(a,l,d.render,g,S),I=pf();if(I){var W=l.treeContext,X=1,fe=0;l.treeContext=uf(W,X,fe);try{gr(a,l,_)}finally{l.treeContext=W}}else gr(a,l,_);io(l)}function ag(a,l,d,g,S){var _=d.type,I=Ef(_,g);kf(a,l,_,I,S)}function sg(a,l,d,g){d._context===void 0?d!==d.Consumer&&(Af||(Af=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=g.children;typeof S!="function"&&o("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.");var _=Yo(d),I=S(_);gr(a,l,I)}function pp(a,l,d,g){var S=d._context,_=g.value,I=g.children,W;W=l.context,l.context=Kd(S,_),gr(a,l,I),l.context=Yd(S),W!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function lg(a,l,d,g,S){ki(l,"Lazy");var _=d._payload,I=d._init,W=I(_),X=Ef(W,g);kf(a,l,W,X,S),io(l)}function kf(a,l,d,g,S){if(typeof d=="function")if(Ms(d)){ig(a,l,d,g);return}else{up(a,l,d,g);return}if(typeof d=="string"){bf(a,l,d,g);return}switch(d){case Gu:case Yu:case dr:case zd:case Xl:{gr(a,l,g.children);return}case ps:{ki(l,"SuspenseList"),gr(a,l,g.children),io(l);return}case Ku:throw new Error("ReactDOMServer does not yet support scope components.");case tc:{Os(a,l,g);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case ec:{dp(a,l,d,g,S);return}case hs:{ag(a,l,d,g,S);return}case Jl:{pp(a,l,d,g);return}case ql:{sg(a,l,d,g);return}case ga:{lg(a,l,d,g);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function cg(a,l){typeof Symbol=="function"&&a[Symbol.toStringTag]==="Generator"&&(Sf||o("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),Sf=!0),a.entries===l&&(Cf||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Cf=!0)}function gr(a,l,d){try{return ug(a,l,d)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(ko=ko!==null?ko:yf()),g}}function ug(a,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case Im:{var g=d,S=g.type,_=g.props,I=g.ref;kf(a,l,S,_,I);return}case jd:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case ga:{var W=d,X=W._payload,fe=W._init,ye;try{ye=fe(X)}catch(Ta){throw typeof Ta=="object"&&Ta!==null&&typeof Ta.then=="function"&&ki(l,"Lazy"),Ta}gr(a,l,ye);return}}if(jn(d)){Ic(a,l,d);return}var Pe=Mm(d);if(Pe){cg(d,Pe);var Ze=Pe.call(d);if(Ze){var yt=Ze.next();if(!yt.done){var mn=[];do mn.push(yt.value),yt=Ze.next();while(!yt.done);Ic(a,l,mn);return}return}}var _i=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(_i==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":_i)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Ri=l.blockedSegment;Ri.lastPushedText=Dd(l.blockedSegment.chunks,d,a.responseState,Ri.lastPushedText);return}if(typeof d=="number"){var To=l.blockedSegment;To.lastPushedText=Dd(l.blockedSegment.chunks,""+d,a.responseState,To.lastPushedText);return}typeof d=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ic(a,l,d){for(var g=d.length,S=0;S<g;S++){var _=l.treeContext;l.treeContext=uf(_,g,S);try{Hn(a,l,d[S])}finally{l.treeContext=_}}}function fg(a,l,d){var g=l.blockedSegment,S=g.chunks.length,_=Rc(a,S,null,g.formatContext,g.lastPushedText,!0);g.children.push(_),g.lastPushedText=!1;var I=Ei(a,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(I.componentStack=l.componentStack.parent);var W=I.ping;d.then(W,W)}function Hn(a,l,d){var g=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,I=null;I=l.componentStack;try{return gr(a,l,d)}catch(W){if(_s(),typeof W=="object"&&W!==null&&typeof W.then=="function"){fg(a,l,W),l.blockedSegment.formatContext=g,l.legacyContext=S,l.context=_,Ss(_),l.componentStack=I;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=S,l.context=_,Ss(_),l.componentStack=I,W}}function dg(a,l,d,g){var S=Is(a,g);if(l===null?Kr(a,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Pc(l,g),l.parentFlushed&&a.clientRenderedBoundaries.push(l))),a.allPendingTasks--,a.allPendingTasks===0){var _=a.onAllReady;_()}}function hp(a){var l=this,d=a.blockedBoundary,g=a.blockedSegment;g.status=Tc,gp(l,d,g)}function mp(a,l,d){var g=a.blockedBoundary,S=a.blockedSegment;if(S.status=Tc,g===null)l.allPendingTasks--,l.status!==Ai&&(l.status=Ai,l.destination!==null&&h(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;g.errorDigest=l.onError(_);{var I="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=I+_.message:_=I+String(_);var W=Ao;Ao=a;try{Pc(g,_)}finally{Ao=W}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(fe){return mp(fe,l,d)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var X=l.onAllReady;X()}}}function ka(a,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===Sa&&ka(a,d)}else{var g=a.completedSegments;g.push(l)}}function gp(a,l,d){if(l===null){if(d.parentFlushed){if(a.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=d}if(a.pendingRootTasks--,a.pendingRootTasks===0){a.onShellError=Aa;var g=a.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===Sa&&ka(l,d),l.parentFlushed&&a.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(hp,a),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===Sa){ka(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&a.partialBoundaries.push(l)}}if(a.allPendingTasks--,a.allPendingTasks===0){var _=a.onAllReady;_()}}function pg(a,l){var d=l.blockedSegment;if(d.status===Ec){Ss(l.context);var g=null;g=Ao,Ao=l;try{gr(a,l,l.node),Fd(d.chunks,a.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Sa,gp(a,l.blockedBoundary,d)}catch(_){if(_s(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=_c,dg(a,l.blockedBoundary,d,_)}finally{Ao=g}}}function Tf(a){if(a.status!==Ai){var l=Gd(),d=Ac.current;Ac.current=op;var g;g=Rs.getCurrentStack,Rs.getCurrentStack=yf;var S=gf;ip(a.responseState);try{var _=a.pingedTasks,I;for(I=0;I<_.length;I++){var W=_[I];pg(a,W)}_.splice(0,I),a.destination!==null&&Mc(a,a.destination)}catch(X){Is(a,X),Kr(a,X)}finally{ip(S),Ac.current=d,Rs.getCurrentStack=g,d===op&&Ss(l)}}}function Ti(a,l,d){switch(d.parentFlushed=!0,d.status){case Ec:{var g=d.id=a.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,no(l,a.responseState,g)}case Sa:{d.status=kc;for(var S=!0,_=d.chunks,I=0,W=d.children,X=0;X<W.length;X++){for(var fe=W[X];I<fe.index;I++)u(l,_[I]);S=Fs(a,l,fe)}for(;I<_.length-1;I++)u(l,_[I]);return I<_.length&&(S=f(l,_[I])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Fs(a,l,d){var g=d.boundary;if(g===null)return Ti(a,l,d);if(g.parentFlushed=!0,g.forceClientRender)return _m(l,a.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),Ti(a,l,d),Pm(l,a.responseState);if(g.pendingTasks>0){g.rootSegmentID=a.nextSegmentId++,g.completedSegments.length>0&&a.partialBoundaries.push(g);var S=g.id=kt(a.responseState);return gi(l,a.responseState,S),Ti(a,l,d),$o(l,a.responseState)}else{if(g.byteSize>a.progressiveChunkSize)return g.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(g),gi(l,a.responseState,g.id),Ti(a,l,d),$o(l,a.responseState);Tm(l,a.responseState);var _=g.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var I=_[0];return Fs(a,l,I),Rm(l,a.responseState)}}function hg(a,l,d){return Cm(l,a.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function _f(a,l,d){return ds(l,a.responseState,d.formatContext,d.id),Fs(a,l,d),Ql(l,d.formatContext)}function js(a,l,d){for(var g=d.completedSegments,S=0;S<g.length;S++){var _=g[S];vp(a,l,d,_)}return g.length=0,$n(l,a.responseState,d.id,d.rootSegmentID)}function Oc(a,l,d){for(var g=d.completedSegments,S=0;S<g.length;S++){var _=g[S];if(!vp(a,l,d,_))return S++,g.splice(0,S),!1}return g.splice(0,S),!0}function vp(a,l,d,g){if(g.status===kc)return!0;var S=g.id;if(S===-1){var _=g.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return _f(a,l,g)}else return _f(a,l,g),Se(l,a.responseState,S)}function Mc(a,l){try{var d=a.completedRootSegment;d!==null&&a.pendingRootTasks===0&&(Fs(a,l,d),a.completedRootSegment=null,wo(l,a.responseState));var g=a.clientRenderedBoundaries,S;for(S=0;S<g.length;S++){var _=g[S];if(!hg(a,l,_)){a.destination=null,S++,g.splice(0,S);return}}g.splice(0,S);var I=a.completedBoundaries;for(S=0;S<I.length;S++){var W=I[S];if(!js(a,l,W)){a.destination=null,S++,I.splice(0,S);return}}I.splice(0,S);var X=a.partialBoundaries;for(S=0;S<X.length;S++){var fe=X[S];if(!Oc(a,l,fe)){a.destination=null,S++,X.splice(0,S);return}}X.splice(0,S);var ye=a.completedBoundaries;for(S=0;S<ye.length;S++){var Pe=ye[S];if(!js(a,l,Pe)){a.destination=null,S++,ye.splice(0,S);return}}ye.splice(0,S)}finally{a.allPendingTasks===0&&a.pingedTasks.length===0&&a.clientRenderedBoundaries.length===0&&a.completedBoundaries.length===0&&(a.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),h(l))}}function yp(a){s(function(){return Tf(a)})}function mg(a,l){if(a.status===vf){a.status=Ai,C(l,a.fatalError);return}if(a.status!==Ai&&a.destination===null){a.destination=l;try{Mc(a,l)}catch(d){Is(a,d),Kr(a,d)}}}function bp(a,l){try{var d=a.abortableTasks;d.forEach(function(g){return mp(g,a,l)}),d.clear(),a.destination!==null&&Mc(a,a.destination)}catch(g){Is(a,g),Kr(a,g)}}function Rf(){}function xp(a,l,d,g){var S=!1,_=null,I="",W={push:function(Pe){return Pe!==null&&(I+=Pe),!0},destroy:function(Pe){S=!0,_=Pe}},X=!1;function fe(){X=!0}var ye=Ea(a,Em(d,l?l.identifierPrefix:void 0),km(),1/0,Rf,void 0,fe);if(yp(ye),bp(ye,g),mg(ye,W),S)throw _;if(!X)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return I}function gg(a,l){return xp(a,l,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function wp(a,l){return xp(a,l,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function vg(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function p(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Bs.renderToNodeStream=vg,Bs.renderToStaticMarkup=wp,Bs.renderToStaticNodeStream=p,Bs.renderToString=gg,Bs.version=t})()),Bs}var Ap={};/**
|
|
67
67
|
* @license React
|
|
68
68
|
* react-dom-server.browser.development.js
|
|
69
69
|
*
|
|
@@ -71,69 +71,72 @@ Error generating stack: `+u.message+`
|
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the MIT license found in the
|
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var mp;function iv(){return mp||(mp=1,process.env.NODE_ENV!=="production"&&function(){var e=V,r="18.3.1",o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(l){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];d("warn",l,n)}}function a(l){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];d("error",l,n)}}function d(l,t,n){{var s=o.ReactDebugCurrentFrame,u=s.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var p=n.map(function(b){return String(b)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[l],console,p)}}function h(l){l()}var v=512,m=null,x=0;function R(l){m=new Uint8Array(v),x=0}function E(l,t){if(t.length!==0){if(t.length>v){x>0&&(l.enqueue(new Uint8Array(m.buffer,0,x)),m=new Uint8Array(v),x=0),l.enqueue(t);return}var n=t,s=m.length-x;s<n.length&&(s===0?l.enqueue(m):(m.set(n.subarray(0,s),x),l.enqueue(m),n=n.subarray(s)),m=new Uint8Array(v),x=0),m.set(n,x),x+=n.length}}function F(l,t){return E(l,t),!0}function M(l){m&&x>0&&(l.enqueue(new Uint8Array(m.buffer,0,x)),m=null,x=0)}function B(l){l.close()}var D=new TextEncoder;function P(l){return D.encode(l)}function I(l){return D.encode(l)}function W(l,t){typeof l.error=="function"?l.error(t):l.close()}function U(l){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&l[Symbol.toStringTag]||l.constructor.name||"Object";return n}}function q(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function ie(l,t){if(q(l))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,U(l)),_(l)}function ce(l,t){if(q(l))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,U(l)),_(l)}function ee(l){if(q(l))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",U(l)),_(l)}var ae=Object.prototype.hasOwnProperty,Fe=0,Ne=1,_e=2,Ge=3,Qe=4,ke=5,Ce=6,je=":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",Z=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("^["+je+"]["+Z+"]*$"),Q={},J={};function fe(l){return ae.call(J,l)?!0:ae.call(Q,l)?!1:be.test(l)?(J[l]=!0,!0):(Q[l]=!0,a("Invalid attribute name: `%s`",l),!1)}function me(l,t,n,s){if(n!==null&&n.type===Fe)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(n!==null)return!n.acceptsBooleans;var u=l.toLowerCase().slice(0,5);return u!=="data-"&&u!=="aria-"}default:return!1}}function pe(l){return se.hasOwnProperty(l)?se[l]:null}function ge(l,t,n,s,u,p,b){this.acceptsBooleans=t===_e||t===Ge||t===Qe,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=l,this.type=t,this.sanitizeURL=p,this.removeEmptyString=b}var se={},ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ue.forEach(function(l){se[l]=new ge(l,Fe,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var t=l[0],n=l[1];se[t]=new ge(t,Ne,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){se[l]=new ge(l,_e,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){se[l]=new ge(l,_e,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){se[l]=new ge(l,Ge,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){se[l]=new ge(l,Ge,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){se[l]=new ge(l,Qe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){se[l]=new ge(l,Ce,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){se[l]=new ge(l,ke,!1,l.toLowerCase(),null,!1,!1)});var Te=/[\-\:]([a-z])/g,Ee=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var t=l.replace(Te,Ee);se[t]=new ge(t,Ne,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var t=l.replace(Te,Ee);se[t]=new ge(t,Ne,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var t=l.replace(Te,Ee);se[t]=new ge(t,Ne,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){se[l]=new ge(l,Ne,!1,l.toLowerCase(),null,!1,!1)});var Re="xlinkHref";se[Re]=new ge("xlinkHref",Ne,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){se[l]=new ge(l,Ne,!1,l.toLowerCase(),null,!0,!0)});var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function oe(l,t){return l+t.charAt(0).toUpperCase()+t.substring(1)}var Ue=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(l){Ue.forEach(function(t){$e[oe(t,l)]=$e[l]})});var nt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Lt(l,t){nt[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||a("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`."),t.onChange||t.readOnly||t.disabled||t.checked==null||a("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 Lr(l,t){if(l.indexOf("-")===-1)return typeof t.is=="string";switch(l){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 so={"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},jt={},jr=new RegExp("^(aria)-["+Z+"]*$"),Nr=new RegExp("^(aria)[A-Z]["+Z+"]*$");function lo(l,t){{if(ae.call(jt,t)&&jt[t])return!0;if(Nr.test(t)){var n="aria-"+t.slice(4).toLowerCase(),s=so.hasOwnProperty(n)?n:null;if(s==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),jt[t]=!0,!0;if(t!==s)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,s),jt[t]=!0,!0}if(jr.test(t)){var u=t.toLowerCase(),p=so.hasOwnProperty(u)?u:null;if(p==null)return jt[t]=!0,!1;if(t!==p)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,p),jt[t]=!0,!0}}return!0}function Nt(l,t){{var n=[];for(var s in t){var u=lo(l,s);u||n.push(s)}var p=n.map(function(b){return"`"+b+"`"}).join(", ");n.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,l):n.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,l)}}function mt(l,t){Lr(l,t)||Nt(l,t)}var ct=!1;function kn(l,t){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;t!=null&&t.value===null&&!ct&&(ct=!0,l==="select"&&t.multiple?a("`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.",l):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var En={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",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",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",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",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"},Cn=function(){};{var at={},Tn=/^on./,uo=/^on[^A-Z]/,co=new RegExp("^(aria)-["+Z+"]*$"),Rn=new RegExp("^(aria)[A-Z]["+Z+"]*$");Cn=function(l,t,n,s){if(ae.call(at,t)&&at[t])return!0;var u=t.toLowerCase();if(u==="onfocusin"||u==="onfocusout")return a("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."),at[t]=!0,!0;if(s!=null){var p=s.registrationNameDependencies,b=s.possibleRegistrationNames;if(p.hasOwnProperty(t))return!0;var S=b.hasOwnProperty(u)?b[u]:null;if(S!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",t,S),at[t]=!0,!0;if(Tn.test(t))return a("Unknown event handler property `%s`. It will be ignored.",t),at[t]=!0,!0}else if(Tn.test(t))return uo.test(t)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),at[t]=!0,!0;if(co.test(t)||Rn.test(t))return!0;if(u==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),at[t]=!0,!0;if(u==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),at[t]=!0,!0;if(u==="is"&&n!==null&&n!==void 0&&typeof n!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),at[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),at[t]=!0,!0;var A=pe(t),j=A!==null&&A.type===Fe;if(En.hasOwnProperty(u)){var X=En[u];if(X!==t)return a("Invalid DOM property `%s`. Did you mean `%s`?",t,X),at[t]=!0,!0}else if(!j&&t!==u)return a("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.",t,u),at[t]=!0,!0;return typeof n=="boolean"&&me(t,n,A)?(n?a('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,t,t,n,t):a('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.',n,t,t,n,t,t,t),at[t]=!0,!0):j?!0:me(t,n,A)?(at[t]=!0,!1):((n==="false"||n==="true")&&A!==null&&A.type===Ge&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="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".',t,n),at[t]=!0),!0)}}var en=function(l,t,n){{var s=[];for(var u in t){var p=Cn(l,u,t[u],n);p||s.push(u)}var b=s.map(function(S){return"`"+S+"`"}).join(", ");s.length===1?a("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://reactjs.org/link/attribute-behavior ",b,l):s.length>1&&a("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://reactjs.org/link/attribute-behavior ",b,l)}};function li(l,t,n){Lr(l,t)||en(l,t,n)}var Pn=function(){};{var yr=/^(?:webkit|moz|o)[A-Z]/,An=/^-ms-/,fo=/-(.)/g,xt=/;\s*$/,Jt={},br={},Xe=!1,xr=!1,tn=function(l){return l.replace(fo,function(t,n){return n.toUpperCase()})},$r=function(l){Jt.hasOwnProperty(l)&&Jt[l]||(Jt[l]=!0,a("Unsupported style property %s. Did you mean %s?",l,tn(l.replace(An,"ms-"))))},Kt=function(l){Jt.hasOwnProperty(l)&&Jt[l]||(Jt[l]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},rn=function(l,t){br.hasOwnProperty(t)&&br[t]||(br[t]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,t.replace(xt,"")))},cr=function(l,t){Xe||(Xe=!0,a("`NaN` is an invalid value for the `%s` css style property.",l))},ft=function(l,t){xr||(xr=!0,a("`Infinity` is an invalid value for the `%s` css style property.",l))};Pn=function(l,t){l.indexOf("-")>-1?$r(l):yr.test(l)?Kt(l):xt.test(t)&&rn(l,t),typeof t=="number"&&(isNaN(t)?cr(l,t):isFinite(t)||ft(l,t))}}var In=Pn,On=/["'&<>]/;function po(l){ee(l);var t=""+l,n=On.exec(t);if(!n)return t;var s,u="",p,b=0;for(p=n.index;p<t.length;p++){switch(t.charCodeAt(p)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}b!==p&&(u+=t.substring(b,p)),b=p+1,u+=s}return b!==p?u+t.substring(b,p):u}function st(l){return typeof l=="boolean"||typeof l=="number"?""+l:po(l)}var Fn=/([A-Z])/g,ui=/^ms-/;function ci(l){return l.replace(Fn,"-$1").toLowerCase().replace(ui,"-ms-")}var Zt=/^[\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,Mn=!1;function nn(l){!Mn&&Zt.test(l)&&(Mn=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var wr=Array.isArray;function Tt(l){return wr(l)}var er=I("<script>"),on=I("<\/script>"),Sr=I('<script src="'),kr=I('<script type="module" src="'),tr=I('" async=""><\/script>');function Er(l){return ee(l),(""+l).replace(Rt,ho)}var Rt=/(<\/|<)(s)(cript)/gi,ho=function(l,t,n,s){return""+t+(n==="s"?"\\u0073":"\\u0053")+s};function mo(l,t,n,s,u){var p=l===void 0?"":l,b=t===void 0?er:I('<script nonce="'+st(t)+'">'),S=[];if(n!==void 0&&S.push(b,P(Er(n)),on),s!==void 0)for(var A=0;A<s.length;A++)S.push(Sr,P(st(s[A])),tr);if(u!==void 0)for(var j=0;j<u.length;j++)S.push(kr,P(st(u[j])),tr);return{bootstrapChunks:S,startInlineScript:b,placeholderPrefix:I(p+"P:"),segmentPrefix:I(p+"S:"),boundaryPrefix:p+"B:",idPrefix:p,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var fr=0,lt=1,rr=2,nr=3,Cr=4,an=5,$t=6,or=7;function wt(l,t){return{insertionMode:l,selectedValue:t}}function Tr(l){var t=l==="http://www.w3.org/2000/svg"?rr:l==="http://www.w3.org/1998/Math/MathML"?nr:fr;return wt(t,null)}function zr(l,t,n){switch(t){case"select":return wt(lt,n.value!=null?n.value:n.defaultValue);case"svg":return wt(rr,null);case"math":return wt(nr,null);case"foreignObject":return wt(lt,null);case"table":return wt(Cr,null);case"thead":case"tbody":case"tfoot":return wt(an,null);case"colgroup":return wt(or,null);case"tr":return wt($t,null)}return l.insertionMode>=Cr||l.insertionMode===fr?wt(lt,null):l}var sn=null;function Ft(l){var t=l.nextSuspenseID++;return I(l.boundaryPrefix+t.toString(16))}function ir(l,t,n){var s=l.idPrefix,u=":"+s+"R"+t;return n>0&&(u+="H"+n.toString(32)),u+":"}function St(l){return st(l)}var ln=I("<!-- -->");function ht(l,t,n,s){return t===""?s:(s&&l.push(ln),l.push(P(St(t))),!0)}function Pt(l,t,n,s){n&&s&&l.push(ln)}var c=new Map;function y(l){var t=c.get(l);if(t!==void 0)return t;var n=I(st(ci(l)));return c.set(l,n),n}var k=I(' style="'),T=I(":"),$=I(";");function L(l,t,n){if(typeof n!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var s=!0;for(var u in n)if(ae.call(n,u)){var p=n[u];if(!(p==null||typeof p=="boolean"||p==="")){var b=void 0,S=void 0,A=u.indexOf("--")===0;A?(b=P(st(u)),ce(p,u),S=P(st((""+p).trim()))):(In(u,p),b=y(u),typeof p=="number"?p!==0&&!ae.call($e,u)?S=P(p+"px"):S=P(""+p):(ce(p,u),S=P(st((""+p).trim())))),s?(s=!1,l.push(k,b,T,S)):l.push($,b,T,S)}}s||l.push(xe)}var H=I(" "),te=I('="'),xe=I('"'),Pe=I('=""');function we(l,t,n,s){switch(n){case"style":{L(l,t,s);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N"))){var u=pe(n);if(u!==null){switch(typeof s){case"function":case"symbol":return;case"boolean":if(!u.acceptsBooleans)return}var p=u.attributeName,b=P(p);switch(u.type){case Ge:s&&l.push(H,b,Pe);return;case Qe:s===!0?l.push(H,b,Pe):s===!1||l.push(H,b,te,P(st(s)),xe);return;case ke:isNaN(s)||l.push(H,b,te,P(st(s)),xe);break;case Ce:!isNaN(s)&&s>=1&&l.push(H,b,te,P(st(s)),xe);break;default:u.sanitizeURL&&(ie(s,p),s=""+s,nn(s)),l.push(H,b,te,P(st(s)),xe)}}else if(fe(n)){switch(typeof s){case"function":case"symbol":return;case"boolean":{var S=n.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-")return}}l.push(H,P(n),te,P(st(s)),xe)}}}var He=I(">"),kt=I("/>");function Et(l,t,n){if(t!=null){if(n!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!="object"||!("__html"in t))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var s=t.__html;s!=null&&(ee(s),l.push(P(""+s)))}}var Ct=!1,Rr=!1,ar=!1,un=!1,Pr=!1,Br=!1,dr=!1;function Ur(l,t){{var n=l[t];if(n!=null){var s=Tt(n);l.multiple&&!s?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!l.multiple&&s&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}}function _s(l,t,n){Lt("select",t),Ur(t,"value"),Ur(t,"defaultValue"),t.value!==void 0&&t.defaultValue!==void 0&&!ar&&(a("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://reactjs.org/link/controlled-components"),ar=!0),l.push(zt("select"));var s=null,u=null;for(var p in t)if(ae.call(t,p)){var b=t[p];if(b==null)continue;switch(p){case"children":s=b;break;case"dangerouslySetInnerHTML":u=b;break;case"defaultValue":case"value":break;default:we(l,n,p,b);break}}return l.push(He),Et(l,u,s),s}function Ls(l){var t="";return e.Children.forEach(l,function(n){n!=null&&(t+=n,!Pr&&typeof n!="string"&&typeof n!="number"&&(Pr=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}var go=I(' selected=""');function sr(l,t,n,s){var u=s.selectedValue;l.push(zt("option"));var p=null,b=null,S=null,A=null;for(var j in t)if(ae.call(t,j)){var X=t[j];if(X==null)continue;switch(j){case"children":p=X;break;case"selected":S=X,dr||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),dr=!0);break;case"dangerouslySetInnerHTML":A=X;break;case"value":b=X;default:we(l,n,j,X);break}}if(u!=null){var K;if(b!==null?(ie(b,"value"),K=""+b):(A!==null&&(Br||(Br=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),K=Ls(p)),Tt(u))for(var le=0;le<u.length;le++){ie(u[le],"value");var Oe=""+u[le];if(Oe===K){l.push(go);break}}else ie(u,"select.value"),""+u===K&&l.push(go)}else S&&l.push(go);return l.push(He),Et(l,A,p),p}function js(l,t,n){Lt("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Rr&&(a("%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://reactjs.org/link/controlled-components","A component",t.type),Rr=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Ct&&(a("%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://reactjs.org/link/controlled-components","A component",t.type),Ct=!0),l.push(zt("input"));var s=null,u=null,p=null,b=null;for(var S in t)if(ae.call(t,S)){var A=t[S];if(A==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":b=A;break;case"defaultValue":u=A;break;case"checked":p=A;break;case"value":s=A;break;default:we(l,n,S,A);break}}return p!==null?we(l,n,"checked",p):b!==null&&we(l,n,"checked",b),s!==null?we(l,n,"value",s):u!==null&&we(l,n,"value",u),l.push(kt),null}function pr(l,t,n){Lt("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!un&&(a("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://reactjs.org/link/controlled-components"),un=!0),l.push(zt("textarea"));var s=null,u=null,p=null;for(var b in t)if(ae.call(t,b)){var S=t[b];if(S==null)continue;switch(b){case"children":p=S;break;case"value":s=S;break;case"defaultValue":u=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:we(l,n,b,S);break}}if(s===null&&u!==null&&(s=u),l.push(He),p!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),s!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Tt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");ee(p[0]),s=""+p[0]}ee(p),s=""+p}return typeof s=="string"&&s[0]===`
|
|
75
|
-
`&&
|
|
76
|
-
`);function
|
|
77
|
-
`?
|
|
78
|
-
`&&
|
|
79
|
-
`+
|
|
80
|
-
`),
|
|
81
|
-
`),
|
|
82
|
-
`+
|
|
83
|
-
|
|
84
|
-
Please check the code for the %s component.`,
|
|
74
|
+
*/var kb;function Fk(){return kb||(kb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Y,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(p){{for(var a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];i("warn",p,l)}}function o(p){{for(var a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];i("error",p,l)}}function i(p,a,l){{var d=n.ReactDebugCurrentFrame,g=d.getStackAddendum();g!==""&&(a+="%s",l=l.concat([g]));var S=l.map(function(_){return String(_)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[p],console,S)}}function s(p){p()}var c=512,u=null,f=0;function m(p){u=new Uint8Array(c),f=0}function h(p,a){if(a.length!==0){if(a.length>c){f>0&&(p.enqueue(new Uint8Array(u.buffer,0,f)),u=new Uint8Array(c),f=0),p.enqueue(a);return}var l=a,d=u.length-f;d<l.length&&(d===0?p.enqueue(u):(u.set(l.subarray(0,d),f),p.enqueue(u),l=l.subarray(d)),u=new Uint8Array(c),f=0),u.set(l,f),f+=l.length}}function v(p,a){return h(p,a),!0}function w(p){u&&f>0&&(p.enqueue(new Uint8Array(u.buffer,0,f)),u=null,f=0)}function C(p){p.close()}var A=new TextEncoder;function x(p){return A.encode(p)}function E(p){return A.encode(p)}function R(p,a){typeof p.error=="function"?p.error(a):p.close()}function O(p){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&p[Symbol.toStringTag]||p.constructor.name||"Object";return l}}function L(p){try{return M(p),!1}catch{return!0}}function M(p){return""+p}function U(p,a){if(L(p))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,O(p)),M(p)}function j(p,a){if(L(p))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,O(p)),M(p)}function $(p){if(L(p))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(p)),M(p)}var H=Object.prototype.hasOwnProperty,G=0,q=1,pe=2,ie=3,se=4,xe=5,Ae=6,Re=":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",Q=Re+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("^["+Re+"]["+Q+"]*$"),ne={},re={};function ue(p){return H.call(re,p)?!0:H.call(ne,p)?!1:Ee.test(p)?(re[p]=!0,!0):(ne[p]=!0,o("Invalid attribute name: `%s`",p),!1)}function me(p,a,l,d){if(l!==null&&l.type===G)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(l!==null)return!l.acceptsBooleans;var g=p.toLowerCase().slice(0,5);return g!=="data-"&&g!=="aria-"}default:return!1}}function Te(p){return ve.hasOwnProperty(p)?ve[p]:null}function de(p,a,l,d,g,S,_){this.acceptsBooleans=a===pe||a===ie||a===se,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=p,this.type=a,this.sanitizeURL=S,this.removeEmptyString=_}var ve={},_e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];_e.forEach(function(p){ve[p]=new de(p,G,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var a=p[0],l=p[1];ve[a]=new de(a,q,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){ve[p]=new de(p,pe,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){ve[p]=new de(p,pe,!1,p,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(p){ve[p]=new de(p,ie,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){ve[p]=new de(p,ie,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){ve[p]=new de(p,se,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){ve[p]=new de(p,Ae,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){ve[p]=new de(p,xe,!1,p.toLowerCase(),null,!1,!1)});var je=/[\-\:]([a-z])/g,ze=function(p){return p[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){ve[p]=new de(p,q,!1,p.toLowerCase(),null,!1,!1)});var Be="xlinkHref";ve[Be]=new de("xlinkHref",q,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){ve[p]=new de(p,q,!1,p.toLowerCase(),null,!0,!0)});var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ke(p,a){return p+a.charAt(0).toUpperCase()+a.substring(1)}var tt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(p){tt.forEach(function(a){Je[ke(a,p)]=Je[p]})});var xt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function zt(p,a){xt[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||o("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`."),a.onChange||a.readOnly||a.disabled||a.checked==null||o("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 xn(p,a){if(p.indexOf("-")===-1)return typeof a.is=="string";switch(p){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 kr={"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},Vt={},un=new RegExp("^(aria)-["+Q+"]*$"),wn=new RegExp("^(aria)[A-Z]["+Q+"]*$");function Ne(p,a){{if(H.call(Vt,a)&&Vt[a])return!0;if(wn.test(a)){var l="aria-"+a.slice(4).toLowerCase(),d=kr.hasOwnProperty(l)?l:null;if(d==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vt[a]=!0,!0;if(a!==d)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,d),Vt[a]=!0,!0}if(un.test(a)){var g=a.toLowerCase(),S=kr.hasOwnProperty(g)?g:null;if(S==null)return Vt[a]=!0,!1;if(a!==S)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vt[a]=!0,!0}}return!0}function nt(p,a){{var l=[];for(var d in a){var g=Ne(p,d);g||l.push(d)}var S=l.map(function(_){return"`"+_+"`"}).join(", ");l.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,p):l.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,p)}}function ct(p,a){xn(p,a)||nt(p,a)}var ut=!1;function Dt(p,a){{if(p!=="input"&&p!=="textarea"&&p!=="select")return;a!=null&&a.value===null&&!ut&&(ut=!0,p==="select"&&a.multiple?o("`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.",p):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",p))}}var Jt={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",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",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",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",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"},Kt=function(){};{var wt={},Qn=/^on./,qt=/^on[^A-Z]/,Zn=new RegExp("^(aria)-["+Q+"]*$"),Sn=new RegExp("^(aria)[A-Z]["+Q+"]*$");Kt=function(p,a,l,d){if(H.call(wt,a)&&wt[a])return!0;var g=a.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return o("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."),wt[a]=!0,!0;if(d!=null){var S=d.registrationNameDependencies,_=d.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var I=_.hasOwnProperty(g)?_[g]:null;if(I!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",a,I),wt[a]=!0,!0;if(Qn.test(a))return o("Unknown event handler property `%s`. It will be ignored.",a),wt[a]=!0,!0}else if(Qn.test(a))return qt.test(a)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),wt[a]=!0,!0;if(Zn.test(a)||Sn.test(a))return!0;if(g==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),wt[a]=!0,!0;if(g==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),wt[a]=!0,!0;if(g==="is"&&l!==null&&l!==void 0&&typeof l!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),wt[a]=!0,!0;if(typeof l=="number"&&isNaN(l))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),wt[a]=!0,!0;var W=Te(a),X=W!==null&&W.type===G;if(Jt.hasOwnProperty(g)){var fe=Jt[g];if(fe!==a)return o("Invalid DOM property `%s`. Did you mean `%s`?",a,fe),wt[a]=!0,!0}else if(!X&&a!==g)return o("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.",a,g),wt[a]=!0,!0;return typeof l=="boolean"&&me(a,l,W)?(l?o('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,a,a,l,a):o('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,a,a,l,a,a,a),wt[a]=!0,!0):X?!0:me(a,l,W)?(wt[a]=!0,!1):((l==="false"||l==="true")&&W!==null&&W.type===ie&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,a,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".',a,l),wt[a]=!0),!0)}}var Cn=function(p,a,l){{var d=[];for(var g in a){var S=Kt(p,g,a[g],l);S||d.push(g)}var _=d.map(function(I){return"`"+I+"`"}).join(", ");d.length===1?o("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://reactjs.org/link/attribute-behavior ",_,p):d.length>1&&o("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://reactjs.org/link/attribute-behavior ",_,p)}};function Xn(p,a,l){xn(p,a)||Cn(p,a,l)}var fn=function(){};{var dn=/^(?:webkit|moz|o)[A-Z]/,Fr=/^-ms-/,Zr=/-(.)/g,an=/;\s*$/,pn={},Dn={},dt=!1,An=!1,Xr=function(p){return p.replace(Zr,function(a,l){return l.toUpperCase()})},jr=function(p){pn.hasOwnProperty(p)&&pn[p]||(pn[p]=!0,o("Unsupported style property %s. Did you mean %s?",p,Xr(p.replace(Fr,"ms-"))))},vt=function(p){pn.hasOwnProperty(p)&&pn[p]||(pn[p]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",p,p.charAt(0).toUpperCase()+p.slice(1)))},Fn=function(p,a){Dn.hasOwnProperty(a)&&Dn[a]||(Dn[a]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,p,a.replace(an,"")))},ar=function(p,a){dt||(dt=!0,o("`NaN` is an invalid value for the `%s` css style property.",p))},Yt=function(p,a){An||(An=!0,o("`Infinity` is an invalid value for the `%s` css style property.",p))};fn=function(p,a){p.indexOf("-")>-1?jr(p):dn.test(p)?vt(p):an.test(a)&&Fn(p,a),typeof a=="number"&&(isNaN(a)?ar(p,a):isFinite(a)||Yt(p,a))}}var zr=fn,Jr=/["'&<>]/;function vo(p){$(p);var a=""+p,l=Jr.exec(a);if(!l)return a;var d,g="",S,_=0;for(S=l.index;S<a.length;S++){switch(a.charCodeAt(S)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}_!==S&&(g+=a.substring(_,S)),_=S+1,g+=d}return _!==S?g+a.substring(_,S):g}function Wt(p){return typeof p=="boolean"||typeof p=="number"?""+p:vo(p)}var sn=/([A-Z])/g,sr=/^ms-/;function zo(p){return p.replace(sn,"-$1").toLowerCase().replace(sr,"-ms-")}var jn=/^[\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,Br=!1;function Ur(p){!Br&&jn.test(p)&&(Br=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(p)))}var en=Array.isArray;function ln(p){return en(p)}var zn=E("<script>"),Wr=E("<\/script>"),lr=E('<script src="'),Tr=E('<script type="module" src="'),De=E('" async=""><\/script>');function K(p){return $(p),(""+p).replace(he,Fe)}var he=/(<\/|<)(s)(cript)/gi,Fe=function(p,a,l,d){return""+a+(l==="s"?"\\u0073":"\\u0053")+d};function St(p,a,l,d,g){var S=p===void 0?"":p,_=a===void 0?zn:E('<script nonce="'+Wt(a)+'">'),I=[];if(l!==void 0&&I.push(_,x(K(l)),Wr),d!==void 0)for(var W=0;W<d.length;W++)I.push(lr,x(Wt(d[W])),De);if(g!==void 0)for(var X=0;X<g.length;X++)I.push(Tr,x(Wt(g[X])),De);return{bootstrapChunks:I,startInlineScript:_,placeholderPrefix:E(S+"P:"),segmentPrefix:E(S+"S:"),boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var kt=0,qe=1,Ot=2,Qt=3,hn=4,_r=5,Ct=6,Bn=7;function rn(p,a){return{insertionMode:p,selectedValue:a}}function qr(p){var a=p==="http://www.w3.org/2000/svg"?Ot:p==="http://www.w3.org/1998/Math/MathML"?Qt:kt;return rn(a,null)}function yo(p,a,l){switch(a){case"select":return rn(qe,l.value!=null?l.value:l.defaultValue);case"svg":return rn(Ot,null);case"math":return rn(Qt,null);case"foreignObject":return rn(qe,null);case"table":return rn(hn,null);case"thead":case"tbody":case"tfoot":return rn(_r,null);case"colgroup":return rn(Bn,null);case"tr":return rn(Ct,null)}return p.insertionMode>=hn||p.insertionMode===kt?rn(qe,null):p}var Bo=null;function Jn(p){var a=p.nextSuspenseID++;return E(p.boundaryPrefix+a.toString(16))}function Rr(p,a,l){var d=p.idPrefix,g=":"+d+"R"+a;return l>0&&(g+="H"+l.toString(32)),g+":"}function En(p){return Wt(p)}var Uo=E("<!-- -->");function on(p,a,l,d){return a===""?d:(d&&p.push(Uo),p.push(x(En(a))),!0)}function Un(p,a,l,d){l&&d&&p.push(Uo)}var y=new Map;function T(p){var a=y.get(p);if(a!==void 0)return a;var l=E(Wt(zo(p)));return y.set(p,l),l}var N=E(' style="'),B=E(":"),ee=E(";");function Z(p,a,l){if(typeof l!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var d=!0;for(var g in l)if(H.call(l,g)){var S=l[g];if(!(S==null||typeof S=="boolean"||S==="")){var _=void 0,I=void 0,W=g.indexOf("--")===0;W?(_=x(Wt(g)),j(S,g),I=x(Wt((""+S).trim()))):(zr(g,S),_=T(g),typeof S=="number"?S!==0&&!H.call(Je,g)?I=x(S+"px"):I=x(""+S):(j(S,g),I=x(Wt((""+S).trim())))),d?(d=!1,p.push(N,_,B,I)):p.push(ee,_,B,I)}}d||p.push($e)}var oe=E(" "),we=E('="'),$e=E('"'),Ge=E('=""');function He(p,a,l,d){switch(l){case"style":{Z(p,a,d);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(l.length>2&&(l[0]==="o"||l[0]==="O")&&(l[1]==="n"||l[1]==="N"))){var g=Te(l);if(g!==null){switch(typeof d){case"function":case"symbol":return;case"boolean":if(!g.acceptsBooleans)return}var S=g.attributeName,_=x(S);switch(g.type){case ie:d&&p.push(oe,_,Ge);return;case se:d===!0?p.push(oe,_,Ge):d===!1||p.push(oe,_,we,x(Wt(d)),$e);return;case xe:isNaN(d)||p.push(oe,_,we,x(Wt(d)),$e);break;case Ae:!isNaN(d)&&d>=1&&p.push(oe,_,we,x(Wt(d)),$e);break;default:g.sanitizeURL&&(U(d,S),d=""+d,Ur(d)),p.push(oe,_,we,x(Wt(d)),$e)}}else if(ue(l)){switch(typeof d){case"function":case"symbol":return;case"boolean":{var I=l.toLowerCase().slice(0,5);if(I!=="data-"&&I!=="aria-")return}}p.push(oe,x(l),we,x(Wt(d)),$e)}}}var pt=E(">"),kn=E("/>");function Tn(p,a,l){if(a!=null){if(l!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a!="object"||!("__html"in a))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var d=a.__html;d!=null&&($(d),p.push(x(""+d)))}}var _n=!1,eo=!1,Pr=!1,Wo=!1,to=!1,bo=!1,$r=!1;function xo(p,a){{var l=p[a];if(l!=null){var d=ln(l);p.multiple&&!d?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",a):!p.multiple&&d&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",a)}}}function ju(p,a,l){zt("select",a),xo(a,"value"),xo(a,"defaultValue"),a.value!==void 0&&a.defaultValue!==void 0&&!Pr&&(o("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://reactjs.org/link/controlled-components"),Pr=!0),p.push(cr("select"));var d=null,g=null;for(var S in a)if(H.call(a,S)){var _=a[S];if(_==null)continue;switch(S){case"children":d=_;break;case"dangerouslySetInnerHTML":g=_;break;case"defaultValue":case"value":break;default:He(p,l,S,_);break}}return p.push(pt),Tn(p,g,d),d}function zu(p){var a="";return e.Children.forEach(p,function(l){l!=null&&(a+=l,!to&&typeof l!="string"&&typeof l!="number"&&(to=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),a}var ra=E(' selected=""');function Ir(p,a,l,d){var g=d.selectedValue;p.push(cr("option"));var S=null,_=null,I=null,W=null;for(var X in a)if(H.call(a,X)){var fe=a[X];if(fe==null)continue;switch(X){case"children":S=fe;break;case"selected":I=fe,$r||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),$r=!0);break;case"dangerouslySetInnerHTML":W=fe;break;case"value":_=fe;default:He(p,l,X,fe);break}}if(g!=null){var ye;if(_!==null?(U(_,"value"),ye=""+_):(W!==null&&(bo||(bo=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ye=zu(S)),ln(g))for(var Pe=0;Pe<g.length;Pe++){U(g[Pe],"value");var Ze=""+g[Pe];if(Ze===ye){p.push(ra);break}}else U(g,"select.value"),""+g===ye&&p.push(ra)}else I&&p.push(ra);return p.push(pt),Tn(p,W,S),S}function Bu(p,a,l){zt("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!eo&&(o("%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://reactjs.org/link/controlled-components","A component",a.type),eo=!0),a.value!==void 0&&a.defaultValue!==void 0&&!_n&&(o("%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://reactjs.org/link/controlled-components","A component",a.type),_n=!0),p.push(cr("input"));var d=null,g=null,S=null,_=null;for(var I in a)if(H.call(a,I)){var W=a[I];if(W==null)continue;switch(I){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":_=W;break;case"defaultValue":g=W;break;case"checked":S=W;break;case"value":d=W;break;default:He(p,l,I,W);break}}return S!==null?He(p,l,"checked",S):_!==null&&He(p,l,"checked",_),d!==null?He(p,l,"value",d):g!==null&&He(p,l,"value",g),p.push(kn),null}function Hr(p,a,l){zt("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Wo&&(o("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://reactjs.org/link/controlled-components"),Wo=!0),p.push(cr("textarea"));var d=null,g=null,S=null;for(var _ in a)if(H.call(a,_)){var I=a[_];if(I==null)continue;switch(_){case"children":S=I;break;case"value":d=I;break;case"defaultValue":g=I;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:He(p,l,_,I);break}}if(d===null&&g!==null&&(d=g),p.push(pt),S!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),d!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ln(S)){if(S.length>1)throw new Error("<textarea> can only have at most one child.");$(S[0]),d=""+S[0]}$(S),d=""+S}return typeof d=="string"&&d[0]===`
|
|
75
|
+
`&&p.push(So),d!==null&&(U(d,"value"),p.push(x(En(""+d)))),null}function ss(p,a,l,d){p.push(cr(l));for(var g in a)if(H.call(a,g)){var S=a[g];if(S==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error(l+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:He(p,d,g,S);break}}return p.push(kn),null}function oa(p,a,l){p.push(cr("menuitem"));for(var d in a)if(H.call(a,d)){var g=a[d];if(g==null)continue;switch(d){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:He(p,l,d,g);break}}return p.push(pt),null}function Tt(p,a,l){p.push(cr("title"));var d=null;for(var g in a)if(H.call(a,g)){var S=a[g];if(S==null)continue;switch(g){case"children":d=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:He(p,l,g,S);break}}p.push(pt);{var _=Array.isArray(d)&&d.length<2?d[0]||null:d;Array.isArray(d)&&d.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):_!=null&&_.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):_!=null&&typeof _!="string"&&typeof _!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return d}function wo(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var I=a[_];if(I==null)continue;switch(_){case"children":g=I;break;case"dangerouslySetInnerHTML":S=I;break;default:He(p,d,_,I);break}}return p.push(pt),Tn(p,S,g),typeof g=="string"?(p.push(x(En(g))),null):g}function ia(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var I=a[_];if(I==null)continue;switch(_){case"children":g=I;break;case"dangerouslySetInnerHTML":S=I;break;case"style":Z(p,d,I);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ue(_)&&typeof I!="function"&&typeof I!="symbol"&&p.push(oe,x(_),we,x(Wt(I)),$e);break}}return p.push(pt),Tn(p,S,g),g}var So=E(`
|
|
76
|
+
`);function no(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var I=a[_];if(I==null)continue;switch(_){case"children":g=I;break;case"dangerouslySetInnerHTML":S=I;break;default:He(p,d,_,I);break}}if(p.push(pt),S!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof S!="object"||!("__html"in S))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var W=S.__html;W!=null&&(typeof W=="string"&&W.length>0&&W[0]===`
|
|
77
|
+
`?p.push(So,x(W)):($(W),p.push(x(""+W))))}return typeof g=="string"&&g[0]===`
|
|
78
|
+
`&&p.push(So),g}var aa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ro=new Map;function cr(p){var a=ro.get(p);if(a===void 0){if(!aa.test(p))throw new Error("Invalid tag: "+p);a=E("<"+p),ro.set(p,a)}return a}var ls=E("<!DOCTYPE html>");function mi(p,a,l,d,g){switch(ct(a,l),Dt(a,l),Xn(a,l,null),!l.suppressContentEditableWarning&&l.contentEditable&&l.children!=null&&o("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."),g.insertionMode!==Ot&&g.insertionMode!==Qt&&a.indexOf("-")===-1&&typeof l.is!="string"&&a.toLowerCase()!==a&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",a),a){case"select":return ju(p,l,d);case"option":return Ir(p,l,d,g);case"textarea":return Hr(p,l,d);case"input":return Bu(p,l,d);case"menuitem":return oa(p,l,d);case"title":return Tt(p,l,d);case"listing":case"pre":return no(p,l,a,d);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ss(p,l,a,d);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 wo(p,l,a,d);case"html":return g.insertionMode===kt&&p.push(ls),wo(p,l,a,d);default:return a.indexOf("-")===-1&&typeof l.is!="string"?wo(p,l,a,d):ia(p,l,a,d)}}var Dl=E("</"),sa=E(">");function Fl(p,a,l){switch(a){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:p.push(Dl,x(a),sa)}}function Uu(p,a){for(var l=a.bootstrapChunks,d=0;d<l.length-1;d++)h(p,l[d]);return d<l.length?v(p,l[d]):!0}var Wu=E('<template id="'),la=E('"></template>');function jl(p,a,l){h(p,Wu),h(p,a.placeholderPrefix);var d=x(l.toString(16));return h(p,d),v(p,la)}var gi=E("<!--$-->"),cs=E('<!--$?--><template id="'),$u=E('"></template>'),$o=E("<!--$!-->"),us=E("<!--/$-->"),fs=E("<template"),Ho=E('"'),vi=E(' data-dgst="'),ca=E(' data-msg="'),zl=E(' data-stck="'),Bl=E("></template>");function Ul(p,a){return v(p,gi)}function ua(p,a,l){if(h(p,cs),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return h(p,l),v(p,$u)}function Wn(p,a,l,d,g){var S;return S=v(p,$o),h(p,fs),l&&(h(p,vi),h(p,x(Wt(l))),h(p,Ho)),d&&(h(p,ca),h(p,x(Wt(d))),h(p,Ho)),g&&(h(p,zl),h(p,x(Wt(g))),h(p,Ho)),S=v(p,Bl),S}function Wl(p,a){return v(p,us)}function fa(p,a){return v(p,us)}function Hu(p,a){return v(p,us)}var $l=E('<div hidden id="'),da=E('">'),Hl=E("</div>"),Vl=E('<svg aria-hidden="true" style="display:none" id="'),pa=E('">'),ha=E("</svg>"),Kl=E('<math aria-hidden="true" style="display:none" id="'),Yl=E('">'),Gl=E("</math>"),ds=E('<table hidden id="'),Ql=E('">'),b=E("</table>"),k=E('<table hidden><tbody id="'),P=E('">'),z=E("</tbody></table>"),te=E('<table hidden><tr id="'),J=E('">'),le=E("</tr></table>"),Se=E('<table hidden><colgroup id="'),Qe=E('">'),rt=E("</colgroup></table>");function et(p,a,l,d){switch(l.insertionMode){case kt:case qe:return h(p,$l),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,da);case Ot:return h(p,Vl),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,pa);case Qt:return h(p,Kl),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Yl);case hn:return h(p,ds),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Ql);case _r:return h(p,k),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,P);case Ct:return h(p,te),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,J);case Bn:return h(p,Se),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Qe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Mt(p,a){switch(a.insertionMode){case kt:case qe:return v(p,Hl);case Ot:return v(p,ha);case Qt:return v(p,Gl);case hn:return v(p,b);case _r:return v(p,z);case Ct:return v(p,le);case Bn:return v(p,rt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var $n="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",ur='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',fr='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',ma=E($n+';$RS("'),Zl=E('$RS("'),yi=E('","'),Cm=E('")<\/script>');function Am(p,a,l){h(p,a.startInlineScript),a.sentCompleteSegmentFunction?h(p,Zl):(a.sentCompleteSegmentFunction=!0,h(p,ma)),h(p,a.segmentPrefix);var d=x(l.toString(16));return h(p,d),h(p,yi),h(p,a.placeholderPrefix),h(p,d),v(p,Cm)}var Vu=E(ur+';$RC("'),Em=E('$RC("'),km=E('","'),Dd=E('")<\/script>');function Fd(p,a,l,d){if(h(p,a.startInlineScript),a.sentCompleteBoundaryFunction?h(p,Em):(a.sentCompleteBoundaryFunction=!0,h(p,Vu)),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var g=x(d.toString(16));return h(p,l),h(p,km),h(p,a.segmentPrefix),h(p,g),v(p,Dd)}var Tm=E(fr+';$RX("'),_m=E('$RX("'),Rm=E('"'),Pm=E(")<\/script>"),qn=E(",");function Im(p,a,l,d,g,S){if(h(p,a.startInlineScript),a.sentClientRenderFunction?h(p,_m):(a.sentClientRenderFunction=!0,h(p,Tm)),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return h(p,l),h(p,Rm),(d||g||S)&&(h(p,qn),h(p,x(Xl(d||"")))),(g||S)&&(h(p,qn),h(p,x(Xl(g||"")))),S&&(h(p,qn),h(p,x(Xl(S)))),v(p,Pm)}var jd=/[<\u2028\u2029]/g;function Xl(p){var a=JSON.stringify(p);return a.replace(jd,function(l){switch(l){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var dr=Object.assign,zd=Symbol.for("react.element"),Jl=Symbol.for("react.portal"),ql=Symbol.for("react.fragment"),ec=Symbol.for("react.strict_mode"),tc=Symbol.for("react.profiler"),ps=Symbol.for("react.provider"),hs=Symbol.for("react.context"),ga=Symbol.for("react.forward_ref"),Ku=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),Gu=Symbol.for("react.memo"),nc=Symbol.for("react.lazy"),Bd=Symbol.for("react.scope"),Om=Symbol.for("react.debug_trace_mode"),Mm=Symbol.for("react.legacy_hidden"),Nm=Symbol.for("react.default_value"),Qu=Symbol.iterator,$t="@@iterator";function ms(p){if(p===null||typeof p!="object")return null;var a=Qu&&p[Qu]||p[$t];return typeof a=="function"?a:null}function Ud(p,a,l){var d=p.displayName;if(d)return d;var g=a.displayName||a.name||"";return g!==""?l+"("+g+")":l}function Zu(p){return p.displayName||"Context"}function Bt(p){if(p==null)return null;if(typeof p.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case ql:return"Fragment";case Jl:return"Portal";case tc:return"Profiler";case ec:return"StrictMode";case Ku:return"Suspense";case Yu:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case hs:var a=p;return Zu(a)+".Consumer";case ps:var l=p;return Zu(l._context)+".Provider";case ga:return Ud(p,p.render,"ForwardRef");case Gu:var d=p.displayName||null;return d!==null?d:Bt(p.type)||"Memo";case nc:{var g=p,S=g._payload,_=g._init;try{return Bt(_(S))}catch{return null}}}return null}var va=0,Xu,Ju,qu,ef,Wd,$d,rc;function oc(){}oc.__reactDisabledLog=!0;function gs(){{if(va===0){Xu=console.log,Ju=console.info,qu=console.warn,ef=console.error,Wd=console.group,$d=console.groupCollapsed,rc=console.groupEnd;var p={configurable:!0,enumerable:!0,value:oc,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}va++}}function tf(){{if(va--,va===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dr({},p,{value:Xu}),info:dr({},p,{value:Ju}),warn:dr({},p,{value:qu}),error:dr({},p,{value:ef}),group:dr({},p,{value:Wd}),groupCollapsed:dr({},p,{value:$d}),groupEnd:dr({},p,{value:rc})})}va<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ya=n.ReactCurrentDispatcher,nf;function bi(p,a,l){{if(nf===void 0)try{throw Error()}catch(g){var d=g.stack.trim().match(/\n( *(at )?)/);nf=d&&d[1]||""}return`
|
|
79
|
+
`+nf+p}}var rf=!1,vs;{var Lm=typeof WeakMap=="function"?WeakMap:Map;vs=new Lm}function ys(p,a){if(!p||rf)return"";{var l=vs.get(p);if(l!==void 0)return l}var d;rf=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=ya.current,ya.current=null,gs();try{if(a){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(yt){d=yt}Reflect.construct(p,[],_)}else{try{_.call()}catch(yt){d=yt}p.call(_.prototype)}}else{try{throw Error()}catch(yt){d=yt}p()}}catch(yt){if(yt&&d&&typeof yt.stack=="string"){for(var I=yt.stack.split(`
|
|
80
|
+
`),W=d.stack.split(`
|
|
81
|
+
`),X=I.length-1,fe=W.length-1;X>=1&&fe>=0&&I[X]!==W[fe];)fe--;for(;X>=1&&fe>=0;X--,fe--)if(I[X]!==W[fe]){if(X!==1||fe!==1)do if(X--,fe--,fe<0||I[X]!==W[fe]){var ye=`
|
|
82
|
+
`+I[X].replace(" at new "," at ");return p.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&vs.set(p,ye),ye}while(X>=1&&fe>=0);break}}}finally{rf=!1,ya.current=S,tf(),Error.prepareStackTrace=g}var Pe=p?p.displayName||p.name:"",Ze=Pe?bi(Pe):"";return typeof p=="function"&&vs.set(p,Ze),Ze}function Hd(p,a,l){return ys(p,!0)}function of(p,a,l){return ys(p,!1)}function ic(p){var a=p.prototype;return!!(a&&a.isReactComponent)}function ac(p,a,l){if(p==null)return"";if(typeof p=="function")return ys(p,ic(p));if(typeof p=="string")return bi(p);switch(p){case Ku:return bi("Suspense");case Yu:return bi("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case ga:return of(p.render);case Gu:return ac(p.type,a,l);case nc:{var d=p,g=d._payload,S=d._init;try{return ac(S(g),a,l)}catch{}}}return""}var sc={},bs=n.ReactDebugCurrentFrame;function xs(p){if(p){var a=p._owner,l=ac(p.type,p._source,a?a.type:null);bs.setExtraStackFrame(l)}else bs.setExtraStackFrame(null)}function Vd(p,a,l,d,g){{var S=Function.call.bind(H);for(var _ in p)if(S(p,_)){var I=void 0;try{if(typeof p[_]!="function"){var W=Error((d||"React class")+": "+l+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}I=p[_](a,_,d,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){I=X}I&&!(I instanceof Error)&&(xs(g),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",l,_,typeof I),xs(null)),I instanceof Error&&!(I.message in sc)&&(sc[I.message]=!0,xs(g),o("Failed %s type: %s",l,I.message),xs(null))}}}var xi;xi={};var lc={};Object.freeze(lc);function Vo(p,a){{var l=p.contextTypes;if(!l)return lc;var d={};for(var g in l)d[g]=a[g];{var S=Bt(p)||"Unknown";Vd(l,d,"context",S)}return d}}function af(p,a,l,d){{if(typeof p.getChildContext!="function"){{var g=Bt(a)||"Unknown";xi[g]||(xi[g]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return l}var S=p.getChildContext();for(var _ in S)if(!(_ in d))throw new Error((Bt(a)||"Unknown")+'.getChildContext(): key "'+_+'" is not defined in childContextTypes.');{var I=Bt(a)||"Unknown";Vd(d,S,"child context",I)}return dr({},l,S)}}var wi;wi={};var cc=null,Ko=null;function uc(p){p.context._currentValue=p.parentValue}function fc(p){p.context._currentValue=p.value}function ws(p,a){if(p!==a){uc(p);var l=p.parent,d=a.parent;if(l===null){if(d!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(d===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ws(l,d)}fc(a)}}function Ss(p){uc(p);var a=p.parent;a!==null&&Ss(a)}function Kd(p){var a=p.parent;a!==null&&Kd(a),fc(p)}function Yd(p,a){uc(p);var l=p.parent;if(l===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===a.depth?ws(l,a):Yd(l,a)}function Gd(p,a){var l=a.parent;if(l===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");p.depth===l.depth?ws(p,l):Gd(p,l),fc(a)}function Yo(p){var a=Ko,l=p;a!==l&&(a===null?Kd(l):l===null?Ss(a):a.depth===l.depth?ws(a,l):a.depth>l.depth?Yd(a,l):Gd(a,l),Ko=l)}function sf(p,a){var l;l=p._currentValue,p._currentValue=a,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==wi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=wi;var d=Ko,g={parent:d,depth:d===null?0:d.depth+1,context:p,parentValue:l,value:a};return Ko=g,g}function Dm(p){var a=Ko;if(a===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");a.context!==p&&o("The parent context is not the expected context. This is probably a bug in React.");{var l=a.parentValue;l===Nm?a.context._currentValue=a.context._defaultValue:a.context._currentValue=l,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==wi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=wi}return Ko=a.parent}function Qd(){return Ko}function ba(p){var a=p._currentValue;return a}function Cs(p){return p._reactInternals}function lf(p,a){p._reactInternals=a}var dc={},pc={},hc,xa,As,Es,mc,ks,gc,vc,cf;{hc=new Set,xa=new Set,As=new Set,gc=new Set,Es=new Set,vc=new Set,cf=new Set;var Zd=new Set;ks=function(p,a){if(!(p===null||typeof p=="function")){var l=a+"_"+p;Zd.has(l)||(Zd.add(l),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,p))}},mc=function(p,a){if(a===void 0){var l=Bt(p)||"Component";Es.has(l)||(Es.add(l),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",l))}}}function Xd(p,a){{var l=p.constructor,d=l&&Bt(l)||"ReactClass",g=d+"."+a;if(dc[g])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
83
|
+
|
|
84
|
+
Please check the code for the %s component.`,a,a,d),dc[g]=!0}}var Jd={isMounted:function(p){return!1},enqueueSetState:function(p,a,l){var d=Cs(p);d.queue===null?Xd(p,"setState"):(d.queue.push(a),l!=null&&ks(l,"setState"))},enqueueReplaceState:function(p,a,l){var d=Cs(p);d.replace=!0,d.queue=[a],l!=null&&ks(l,"setState")},enqueueForceUpdate:function(p,a){var l=Cs(p);l.queue===null?Xd(p,"forceUpdate"):a!=null&&ks(a,"setState")}};function Fm(p,a,l,d,g){var S=l(g,d);mc(a,S);var _=S==null?d:dr({},d,S);return _}function qd(p,a,l){var d=lc,g=p.contextType;if("contextType"in p){var S=g===null||g!==void 0&&g.$$typeof===hs&&g._context===void 0;if(!S&&!cf.has(p)){cf.add(p);var _="";g===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 g!="object"?_=" However, it is set to a "+typeof g+".":g.$$typeof===ps?_=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?_=" Did you accidentally pass the Context.Consumer instead?":_=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Bt(p)||"Component",_)}}typeof g=="object"&&g!==null?d=ba(g):d=l;var I=new p(a,d);{if(typeof p.getDerivedStateFromProps=="function"&&(I.state===null||I.state===void 0)){var W=Bt(p)||"Component";hc.has(W)||(hc.add(W),o("`%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.",W,I.state===null?"null":"undefined",W))}if(typeof p.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"){var X=null,fe=null,ye=null;if(typeof I.componentWillMount=="function"&&I.componentWillMount.__suppressDeprecationWarning!==!0?X="componentWillMount":typeof I.UNSAFE_componentWillMount=="function"&&(X="UNSAFE_componentWillMount"),typeof I.componentWillReceiveProps=="function"&&I.componentWillReceiveProps.__suppressDeprecationWarning!==!0?fe="componentWillReceiveProps":typeof I.UNSAFE_componentWillReceiveProps=="function"&&(fe="UNSAFE_componentWillReceiveProps"),typeof I.componentWillUpdate=="function"&&I.componentWillUpdate.__suppressDeprecationWarning!==!0?ye="componentWillUpdate":typeof I.UNSAFE_componentWillUpdate=="function"&&(ye="UNSAFE_componentWillUpdate"),X!==null||fe!==null||ye!==null){var Pe=Bt(p)||"Component",Ze=typeof p.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";As.has(Pe)||(As.add(Pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
85
85
|
|
|
86
86
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
87
87
|
|
|
88
88
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
89
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,
|
|
90
|
-
`+
|
|
91
|
-
`+
|
|
92
|
-
`+
|
|
89
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Pe,Ze,X!==null?`
|
|
90
|
+
`+X:"",fe!==null?`
|
|
91
|
+
`+fe:"",ye!==null?`
|
|
92
|
+
`+ye:""))}}}return I}function jm(p,a,l){{var d=Bt(a)||"Component",g=p.render;g||(a.prototype&&typeof a.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.state&&o("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?",d),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&o("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.",d),p.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),p.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),p.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),a.contextType&&a.contextTypes&&!vc.has(a)&&(vc.add(a),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof p.componentShouldUpdate=="function"&&o("%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.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Bt(a)||"A pure component"),typeof p.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof p.componentDidReceiveProps=="function"&&o("%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().",d),typeof p.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof p.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var S=p.props!==l;p.props!==void 0&&S&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),p.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!xa.has(a)&&(xa.add(a),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Bt(a))),typeof p.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof p.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof a.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var _=p.state;_&&(typeof _!="object"||ln(_))&&o("%s.state: must be set to an object or null",d),typeof p.getChildContext=="function"&&typeof a.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function zm(p,a){var l=a.state;if(typeof a.componentWillMount=="function"){if(a.componentWillMount.__suppressDeprecationWarning!==!0){var d=Bt(p)||"Unknown";pc[d]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
93
93
|
|
|
94
94
|
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
95
95
|
|
|
96
|
-
Please update the following components: %s`,
|
|
96
|
+
Please update the following components: %s`,d),pc[d]=!0)}a.componentWillMount()}typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),l!==a.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Bt(p)||"Component"),Jd.enqueueReplaceState(a,a.state,null))}function uf(p,a,l,d){if(p.queue!==null&&p.queue.length>0){var g=p.queue,S=p.replace;if(p.queue=null,p.replace=!1,S&&g.length===1)a.state=g[0];else{for(var _=S?g[0]:a.state,I=!0,W=S?1:0;W<g.length;W++){var X=g[W],fe=typeof X=="function"?X.call(a,_,l,d):X;fe!=null&&(I?(I=!1,_=dr({},_,fe)):dr(_,fe))}a.state=_}}else p.queue=null}function Ts(p,a,l,d){jm(p,a,l);var g=p.state!==void 0?p.state:null;p.updater=Jd,p.props=l,p.state=g;var S={queue:[],replace:!1};lf(p,S);var _=a.contextType;if(typeof _=="object"&&_!==null?p.context=ba(_):p.context=d,p.state===l){var I=Bt(a)||"Component";gc.has(I)||(gc.add(I),o("%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.",I))}var W=a.getDerivedStateFromProps;typeof W=="function"&&(p.state=Fm(p,a,W,g,l)),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(zm(a,p),uf(S,p,l,d))}var Bm={id:1,overflow:""};function Um(p){var a=p.overflow,l=p.id,d=l&~Wm(l);return d.toString(32)+a}function ff(p,a,l){var d=p.id,g=p.overflow,S=yc(d)-1,_=d&~(1<<S),I=l+1,W=yc(a)+S;if(W>30){var X=S-S%5,fe=(1<<X)-1,ye=(_&fe).toString(32),Pe=_>>X,Ze=S-X,yt=yc(a)+Ze,mn=I<<Ze,_i=mn|Pe,Ri=ye+g;return{id:1<<yt|_i,overflow:Ri}}else{var To=I<<S,Ta=To|_,yg=g;return{id:1<<W|Ta,overflow:yg}}}function yc(p){return 32-$m(p)}function Wm(p){return 1<<yc(p)-1}var $m=Math.clz32?Math.clz32:df,Hm=Math.log,Co=Math.LN2;function df(p){var a=p>>>0;return a===0?32:31-(Hm(a)/Co|0)|0}function bc(p,a){return p===a&&(p!==0||1/p===1/a)||p!==p&&a!==a}var Ft=typeof Object.is=="function"?Object.is:bc,pr=null,wa=null,Si=null,ht=null,Go=!1,xc=!1,hr=0,mr=null,oo=0,Vm=25,Vr=!1,Qo;function Ci(){if(pr===null)throw new 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:
|
|
97
97
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
98
|
2. You might be breaking the Rules of Hooks
|
|
99
99
|
3. You might have more than one copy of React in the same app
|
|
100
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return
|
|
100
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Vr&&o("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://reactjs.org/link/rules-of-hooks"),pr}function Km(p,a){if(a===null)return o("%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.",Qo),!1;p.length!==a.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
101
|
|
|
102
102
|
Previous: %s
|
|
103
|
-
Incoming: %s`,
|
|
104
|
-
Error generating stack: `+
|
|
105
|
-
`+s.stack}}var Ja=o.ReactCurrentDispatcher,Ka=o.ReactDebugCurrentFrame,Za=0,Lo=1,pl=2,Hn=3,ku=4,af=0,jo=1,No=2,sf=12800;function lf(l){return console.error(l),null}function Wn(){}function es(l,t,n,s,u,p,b,S,A){var j=[],X=new Set,K={destination:null,responseState:t,progressiveChunkSize:s===void 0?sf:s,status:af,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:X,pingedTasks:j,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:u===void 0?lf:u,onAllReady:p===void 0?Wn:p,onShellReady:b===void 0?Wn:b,onShellError:S===void 0?Wn:S,onFatalError:A===void 0?Wn:A},le=Di(K,0,null,n,!1,!1);le.parentFlushed=!0;var Oe=Vn(K,l,null,le,X,Ma,Da,Hc);return j.push(Oe),K}function Yr(l,t){var n=l.pingedTasks;n.push(t),n.length===1&&h(function(){return El(l)})}function hl(l,t){return{id:sn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Vn(l,t,n,s,u,p,b,S){l.allPendingTasks++,n===null?l.pendingRootTasks++:n.pendingTasks++;var A={node:t,ping:function(){return Yr(l,A)},blockedBoundary:n,blockedSegment:s,abortSet:u,legacyContext:p,context:b,treeContext:S};return A.componentStack=null,u.add(A),A}function Di(l,t,n,s,u,p){return{status:Za,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:n,lastPushedText:u,textEmbedded:p}}var Gr=null;function Fr(){return Gr===null||Gr.componentStack===null?"":_o(Gr.componentStack)}function Qr(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function ts(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function _i(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function mr(l){l.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Li=null;function ml(l,t){{var n;typeof t=="string"?n=t:t&&typeof t.message=="string"?n=t.message:n=String(t);var s=Li||Fr();Li=null,l.errorMessage=n,l.errorComponentStack=s}}function ji(l,t){var n=l.onError(t);if(n!=null&&typeof n!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof n+'" instead');return n}function Ni(l,t){var n=l.onShellError;n(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=No,W(l.destination,t)):(l.status=jo,l.fatalError=t)}function Eu(l,t,n){Qr(t,"Suspense");var s=t.blockedBoundary,u=t.blockedSegment,p=n.fallback,b=n.children,S=new Set,A=hl(l,S),j=u.chunks.length,X=Di(l,j,A,u.formatContext,!1,!1);u.children.push(X),u.lastPushedText=!1;var K=Di(l,0,null,u.formatContext,!1,!1);K.parentFlushed=!0,t.blockedBoundary=A,t.blockedSegment=K;try{if($o(l,t,b),Pt(K.chunks,l.responseState,K.lastPushedText,K.textEmbedded),K.status=Lo,Yn(A,K),A.pendingTasks===0){mr(t);return}}catch(Oe){K.status=ku,A.forceClientRender=!0,A.errorDigest=ji(l,Oe),ml(A,Oe)}finally{t.blockedBoundary=s,t.blockedSegment=u}var le=Vn(l,p,s,X,S,t.legacyContext,t.context,t.treeContext);le.componentStack=t.componentStack,l.pingedTasks.push(le),mr(t)}function uf(l,t,n,s){Qr(t,n);var u=t.blockedSegment,p=Dn(u.chunks,n,s,l.responseState,u.formatContext);u.lastPushedText=!1;var b=u.formatContext;u.formatContext=zr(b,n,s),$o(l,t,p),u.formatContext=b,la(u.chunks,n),u.lastPushedText=!1,mr(t)}function Cu(l){return l.prototype&&l.prototype.isReactComponent}function $i(l,t,n,s,u){var p={};qc(t,p);var b=n(s,u);return Jc(n,s,b,u)}function gl(l,t,n,s,u){var p=n.render();n.props!==u&&(xl||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",rt(s)||"a component"),xl=!0);{var b=s.childContextTypes;if(b!=null){var S=t.legacyContext,A=rl(n,s,S,b);t.legacyContext=A,Ot(l,t,p),t.legacyContext=S;return}}Ot(l,t,p)}function Tu(l,t,n,s){_i(t,n);var u=dn(n,t.legacyContext),p=gu(n,s,u);Oi(p,n,s,u),gl(l,t,p,n,s),mr(t)}var vl={},zi={},yl={},bl={},xl=!1,Ru={},Pu=!1,wl=!1,Au=!1;function cf(l,t,n,s){var u;if(u=dn(n,t.legacyContext),ts(t,n),n.prototype&&typeof n.prototype.render=="function"){var p=rt(n)||"Unknown";vl[p]||(a("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.",p,p),vl[p]=!0)}var b=$i(l,t,n,s,u),S=Ya();if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){var A=rt(n)||"Unknown";zi[A]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",A,A,A),zi[A]=!0)}if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){{var j=rt(n)||"Unknown";zi[j]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",j,j,j),zi[j]=!0)}Oi(b,n,s,u),gl(l,t,b,n,s)}else if(ff(n),S){var X=t.treeContext,K=1,le=0;t.treeContext=sl(X,K,le);try{Ot(l,t,b)}finally{t.treeContext=X}}else Ot(l,t,b);mr(t)}function ff(l){{if(l&&l.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=rt(l)||"Unknown";Ru[t]||(a("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),Ru[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var n=rt(l)||"Unknown";bl[n]||(a("%s: Function components do not support getDerivedStateFromProps.",n),bl[n]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=rt(l)||"Unknown";yl[s]||(a("%s: Function components do not support contextType.",s),yl[s]=!0)}}}function Iu(l,t){if(l&&l.defaultProps){var n=Ht({},t),s=l.defaultProps;for(var u in s)n[u]===void 0&&(n[u]=s[u]);return n}return t}function df(l,t,n,s,u){ts(t,n.render);var p=$i(l,t,n.render,s,u),b=Ya();if(b){var S=t.treeContext,A=1,j=0;t.treeContext=sl(S,A,j);try{Ot(l,t,p)}finally{t.treeContext=S}}else Ot(l,t,p);mr(t)}function Sl(l,t,n,s,u){var p=n.type,b=Iu(p,s);rs(l,t,p,b,u)}function pf(l,t,n,s){n._context===void 0?n!==n.Consumer&&(Au||(Au=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):n=n._context;var u=s.children;typeof u!="function"&&a("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.");var p=Fo(n),b=u(p);Ot(l,t,b)}function Gt(l,t,n,s){var u=n._context,p=s.value,b=s.children,S;S=t.context,t.context=nl(u,p),Ot(l,t,b),t.context=$c(u),S!==t.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function hf(l,t,n,s,u){Qr(t,"Lazy");var p=n._payload,b=n._init,S=b(p),A=Iu(S,s);rs(l,t,S,A,u),mr(t)}function rs(l,t,n,s,u){if(typeof n=="function")if(Cu(n)){Tu(l,t,n,s);return}else{cf(l,t,n,s);return}if(typeof n=="string"){uf(l,t,n,s);return}switch(n){case Lc:case _c:case Ca:case Ta:case Ea:{Ot(l,t,s.children);return}case Ws:{Qr(t,"SuspenseList"),Ot(l,t,s.children),mr(t);return}case nu:throw new Error("ReactDOMServer does not yet support scope components.");case Hs:{Eu(l,t,s);return}}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Ao:{df(l,t,n,s,u);return}case Vs:{Sl(l,t,n,s,u);return}case vi:{Gt(l,t,n,s);return}case yi:{pf(l,t,n,s);return}case Ra:{hf(l,t,n,s);return}}var p="";throw(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+p))}function mf(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Pu||a("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),Pu=!0),l.entries===t&&(wl||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),wl=!0)}function Ot(l,t,n){try{return gf(l,t,n)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(Li=Li!==null?Li:Fr()),s}}function gf(l,t,n){if(t.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case ru:{var s=n,u=s.type,p=s.props,b=s.ref;rs(l,t,u,p,b);return}case ka:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ra:{var S=n,A=S._payload,j=S._init,X;try{X=j(A)}catch(Xr){throw typeof Xr=="object"&&Xr!==null&&typeof Xr.then=="function"&&Qr(t,"Lazy"),Xr}Ot(l,t,X);return}}if(Tt(n)){Ou(l,t,n);return}var K=bi(n);if(K){mf(n,K);var le=K.call(n);if(le){var Oe=le.next();if(!Oe.done){var Ye=[];do Ye.push(Oe.value),Oe=le.next();while(!Oe.done);Ou(l,t,Ye);return}return}}var vt=Object.prototype.toString.call(n);throw new Error("Objects are not valid as a React child (found: "+(vt==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":vt)+"). If you meant to render a collection of children, use an array instead.")}if(typeof n=="string"){var Gn=t.blockedSegment;Gn.lastPushedText=ht(t.blockedSegment.chunks,n,l.responseState,Gn.lastPushedText);return}if(typeof n=="number"){var Qn=t.blockedSegment;Qn.lastPushedText=ht(t.blockedSegment.chunks,""+n,l.responseState,Qn.lastPushedText);return}typeof n=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ou(l,t,n){for(var s=n.length,u=0;u<s;u++){var p=t.treeContext;t.treeContext=sl(p,s,u);try{$o(l,t,n[u])}finally{t.treeContext=p}}}function Fu(l,t,n){var s=t.blockedSegment,u=s.chunks.length,p=Di(l,u,null,s.formatContext,s.lastPushedText,!0);s.children.push(p),s.lastPushedText=!1;var b=Vn(l,t.node,t.blockedBoundary,p,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(b.componentStack=t.componentStack.parent);var S=b.ping;n.then(S,S)}function $o(l,t,n){var s=t.blockedSegment.formatContext,u=t.legacyContext,p=t.context,b=null;b=t.componentStack;try{return Ot(l,t,n)}catch(S){if(cl(),typeof S=="object"&&S!==null&&typeof S.then=="function"){Fu(l,t,S),t.blockedSegment.formatContext=s,t.legacyContext=u,t.context=p,hn(p),t.componentStack=b;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=u,t.context=p,hn(p),t.componentStack=b,S}}function Mu(l,t,n,s){var u=ji(l,s);if(t===null?Ni(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=u,ml(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var p=l.onAllReady;p()}}function vf(l){var t=this,n=l.blockedBoundary,s=l.blockedSegment;s.status=Hn,Bi(t,n,s)}function kl(l,t,n){var s=l.blockedBoundary,u=l.blockedSegment;if(u.status=Hn,s===null)t.allPendingTasks--,t.status!==No&&(t.status=No,t.destination!==null&&B(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var p=n===void 0?new Error("The render was aborted by the server without a reason."):n;s.errorDigest=t.onError(p);{var b="The server did not finish this Suspense boundary: ";p&&typeof p.message=="string"?p=b+p.message:p=b+String(p);var S=Gr;Gr=l;try{ml(s,p)}finally{Gr=S}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(j){return kl(j,t,n)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var A=t.onAllReady;A()}}}function Yn(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===Lo&&Yn(l,n)}else{var s=l.completedSegments;s.push(t)}}function Bi(l,t,n){if(t===null){if(n.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=n}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Wn;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)n.parentFlushed&&n.status===Lo&&Yn(t,n),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(vf,l),t.fallbackAbortableTasks.clear();else if(n.parentFlushed&&n.status===Lo){Yn(t,n);var u=t.completedSegments;u.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var p=l.onAllReady;p()}}function yf(l,t){var n=t.blockedSegment;if(n.status===Za){hn(t.context);var s=null;s=Gr,Gr=t;try{Ot(l,t,t.node),Pt(n.chunks,l.responseState,n.lastPushedText,n.textEmbedded),t.abortSet.delete(t),n.status=Lo,Bi(l,t.blockedBoundary,n)}catch(p){if(cl(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=t.ping;p.then(u,u)}else t.abortSet.delete(t),n.status=ku,Mu(l,t.blockedBoundary,n,p)}finally{Gr=s}}}function El(l){if(l.status!==No){var t=du(),n=Ja.current;Ja.current=Xa;var s;s=Ka.getCurrentStack,Ka.getCurrentStack=Fr;var u=Mi;qa(l.responseState);try{var p=l.pingedTasks,b;for(b=0;b<p.length;b++){var S=p[b];yf(l,S)}p.splice(0,b),l.destination!==null&&Cl(l,l.destination)}catch(A){ji(l,A),Ni(l,A)}finally{qa(u),Ja.current=n,Ka.getCurrentStack=s,n===Xa&&hn(t)}}}function Ui(l,t,n){switch(n.parentFlushed=!0,n.status){case Za:{var s=n.id=l.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,ua(t,l.responseState,s)}case Lo:{n.status=pl;for(var u=!0,p=n.chunks,b=0,S=n.children,A=0;A<S.length;A++){for(var j=S[A];b<j.index;b++)E(t,p[b]);u=ns(l,t,j)}for(;b<p.length-1;b++)E(t,p[b]);return b<p.length&&(u=F(t,p[b])),u}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ns(l,t,n){var s=n.boundary;if(s===null)return Ui(l,t,n);if(s.parentFlushed=!0,s.forceClientRender)return At(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),Ui(l,t,n),Bs(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var u=s.id=Ft(l.responseState);return ko(t,l.responseState,u),Ui(l,t,n),Eo(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),ko(t,l.responseState,s.id),Ui(l,t,n),Eo(t,l.responseState);da(t,l.responseState);var p=s.completedSegments;if(p.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var b=p[0];return ns(l,t,b),pa(t,l.responseState)}}function Du(l,t,n){return Dc(t,l.responseState,n.id,n.errorDigest,n.errorMessage,n.errorComponentStack)}function os(l,t,n){return De(t,l.responseState,n.formatContext,n.id),ns(l,t,n),et(t,n.formatContext)}function _u(l,t,n){for(var s=n.completedSegments,u=0;u<s.length;u++){var p=s[u];Lu(l,t,n,p)}return s.length=0,eu(t,l.responseState,n.id,n.rootSegmentID)}function bf(l,t,n){for(var s=n.completedSegments,u=0;u<s.length;u++){var p=s[u];if(!Lu(l,t,n,p))return u++,s.splice(0,u),!1}return s.splice(0,u),!0}function Lu(l,t,n,s){if(s.status===pl)return!0;var u=s.id;if(u===-1){var p=s.id=n.rootSegmentID;if(p===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return os(l,t,s)}else return os(l,t,s),Rc(t,l.responseState,u)}function Cl(l,t){R();try{var n=l.completedRootSegment;n!==null&&l.pendingRootTasks===0&&(ns(l,t,n),l.completedRootSegment=null,Ns(t,l.responseState));var s=l.clientRenderedBoundaries,u;for(u=0;u<s.length;u++){var p=s[u];Du(l,t,p)}s.splice(0,u);var b=l.completedBoundaries;for(u=0;u<b.length;u++){var S=b[u];_u(l,t,S)}b.splice(0,u),M(t),R(t);var A=l.partialBoundaries;for(u=0;u<A.length;u++){var j=A[u];if(!bf(l,t,j)){l.destination=null,u++,A.splice(0,u);return}}A.splice(0,u);var X=l.completedBoundaries;for(u=0;u<X.length;u++){var K=X[u];_u(l,t,K)}X.splice(0,u)}finally{M(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),B(t))}}function ju(l){h(function(){return El(l)})}function xf(l,t){if(l.status===jo){l.status=No,W(t,l.fatalError);return}if(l.status!==No&&l.destination===null){l.destination=t;try{Cl(l,t)}catch(n){ji(l,n),Ni(l,n)}}}function Nu(l,t){try{var n=l.abortableTasks;n.forEach(function(s){return kl(s,l,t)}),n.clear(),l.destination!==null&&Cl(l,l.destination)}catch(s){ji(l,s),Ni(l,s)}}function wf(l,t){return new Promise(function(n,s){var u,p,b=new Promise(function(le,Oe){p=le,u=Oe});function S(){var le=new ReadableStream({type:"bytes",pull:function(Oe){xf(j,Oe)},cancel:function(Oe){Nu(j)}},{highWaterMark:0});le.allReady=b,n(le)}function A(le){b.catch(function(){}),s(le)}var j=es(l,mo(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Tr(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,p,S,A,u);if(t&&t.signal){var X=t.signal,K=function(){Nu(j,X.reason),X.removeEventListener("abort",K)};X.addEventListener("abort",K)}ju(j)})}Bu.renderToReadableStream=wf,Bu.version=r}()),Bu}var gp;function av(){if(gp)return Bo;gp=1;var e,r;return process.env.NODE_ENV==="production"?(e=rv(),r=nv()):(e=ov(),r=iv()),Bo.version=e.version,Bo.renderToString=e.renderToString,Bo.renderToStaticMarkup=e.renderToStaticMarkup,Bo.renderToNodeStream=e.renderToNodeStream,Bo.renderToStaticNodeStream=e.renderToStaticNodeStream,Bo.renderToReadableStream=r.renderToReadableStream,Bo}var sv=av(),Uu={exports:{}},Hu={exports:{}},Je={};/** @license React v16.13.1
|
|
103
|
+
Incoming: %s`,Qo,"["+p.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<a.length&&l<p.length;l++)if(!Ft(p[l],a[l]))return!1;return!0}function pf(){if(oo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function _s(){return ht===null?Si===null?(Go=!1,Si=ht=pf()):(Go=!0,ht=Si):ht.next===null?(Go=!1,ht=ht.next=pf()):(Go=!0,ht=ht.next),ht}function Ym(p,a){pr=a,wa=p,Vr=!1,hr=0}function Gm(p,a,l,d){for(;xc;)xc=!1,hr=0,oo+=1,ht=null,l=p(a,d);return hf(),l}function wc(){var p=hr!==0;return p}function hf(){Vr=!1,pr=null,wa=null,xc=!1,Si=null,oo=0,mr=null,ht=null}function ep(p){return Vr&&o("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()."),ba(p)}function tp(p){return Qo="useContext",Ci(),ba(p)}function mf(p,a){return typeof a=="function"?a(p):a}function Qm(p){return Qo="useState",np(mf,p)}function np(p,a,l){if(p!==mf&&(Qo="useReducer"),pr=Ci(),ht=_s(),Go){var d=ht.queue,g=d.dispatch;if(mr!==null){var S=mr.get(d);if(S!==void 0){mr.delete(d);var _=ht.memoizedState,I=S;do{var W=I.action;Vr=!0,_=p(_,W),Vr=!1,I=I.next}while(I!==null);return ht.memoizedState=_,[_,g]}}return[ht.memoizedState,g]}else{Vr=!0;var X;p===mf?X=typeof a=="function"?a():a:X=l!==void 0?l(a):a,Vr=!1,ht.memoizedState=X;var fe=ht.queue={last:null,dispatch:null},ye=fe.dispatch=Jm.bind(null,pr,fe);return[ht.memoizedState,ye]}}function rp(p,a){pr=Ci(),ht=_s();var l=a===void 0?null:a;if(ht!==null){var d=ht.memoizedState;if(d!==null&&l!==null){var g=d[1];if(Km(l,g))return d[0]}}Vr=!0;var S=p();return Vr=!1,ht.memoizedState=[S,l],S}function Zm(p){pr=Ci(),ht=_s();var a=ht.memoizedState;if(a===null){var l={current:p};return Object.seal(l),ht.memoizedState=l,l}else return a}function Xm(p,a){Qo="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Jm(p,a,l){if(oo>=Vm)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p===pr){xc=!0;var d={action:l,next:null};mr===null&&(mr=new Map);var g=mr.get(a);if(g===void 0)mr.set(a,d);else{for(var S=g;S.next!==null;)S=S.next;S.next=d}}}function qm(p,a){return rp(function(){return p},a)}function eg(p,a,l){return Ci(),a(p._source)}function tg(p,a,l){if(l===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return l()}function Sc(p){return Ci(),p}function op(){throw new Error("startTransition cannot be called during server rendering.")}function gf(){return Ci(),[!1,op]}function ip(){var p=wa,a=Um(p.treeContext),l=Rs;if(l===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var d=hr++;return Rr(l,a,d)}function Cc(){}var Ac={readContext:ep,useContext:tp,useMemo:rp,useReducer:np,useRef:Zm,useState:Qm,useInsertionEffect:Cc,useLayoutEffect:Xm,useCallback:qm,useImperativeHandle:Cc,useEffect:Cc,useDebugValue:Cc,useDeferredValue:Sc,useTransition:gf,useId:ip,useMutableSource:eg,useSyncExternalStore:tg},Rs=null;function Ec(p){Rs=p}function Sa(p){try{var a="",l=p;do{switch(l.tag){case 0:a+=bi(l.type,null,null);break;case 1:a+=of(l.type,null,null);break;case 2:a+=Hd(l.type,null,null);break}l=l.parent}while(l);return a}catch(d){return`
|
|
104
|
+
Error generating stack: `+d.message+`
|
|
105
|
+
`+d.stack}}var kc=n.ReactCurrentDispatcher,Tc=n.ReactDebugCurrentFrame,_c=0,Ca=1,vf=2,Ai=3,ap=4,ng=0,Aa=1,Ea=2,rg=12800;function og(p){return console.error(p),null}function Ei(){}function Rc(p,a,l,d,g,S,_,I,W){var X=[],fe=new Set,ye={destination:null,responseState:a,progressiveChunkSize:d===void 0?rg:d,status:ng,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:fe,pingedTasks:X,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:g===void 0?og:g,onAllReady:S===void 0?Ei:S,onShellReady:_===void 0?Ei:_,onShellError:I===void 0?Ei:I,onFatalError:W===void 0?Ei:W},Pe=Ps(ye,0,null,l,!1,!1);Pe.parentFlushed=!0;var Ze=ki(ye,p,null,Pe,fe,lc,cc,Bm);return X.push(Ze),ye}function Ao(p,a){var l=p.pingedTasks;l.push(a),l.length===1&&s(function(){return _f(p)})}function yf(p,a){return{id:Bo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null}}function ki(p,a,l,d,g,S,_,I){p.allPendingTasks++,l===null?p.pendingRootTasks++:l.pendingTasks++;var W={node:a,ping:function(){return Ao(p,W)},blockedBoundary:l,blockedSegment:d,abortSet:g,legacyContext:S,context:_,treeContext:I};return W.componentStack=null,g.add(W),W}function Ps(p,a,l,d,g,S){return{status:_c,id:-1,index:a,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:l,lastPushedText:g,textEmbedded:S}}var Eo=null;function io(){return Eo===null||Eo.componentStack===null?"":Sa(Eo.componentStack)}function ko(p,a){p.componentStack={tag:0,parent:p.componentStack,type:a}}function Pc(p,a){p.componentStack={tag:1,parent:p.componentStack,type:a}}function Is(p,a){p.componentStack={tag:2,parent:p.componentStack,type:a}}function Kr(p){p.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):p.componentStack=p.componentStack.parent}var Os=null;function bf(p,a){{var l;typeof a=="string"?l=a:a&&typeof a.message=="string"?l=a.message:l=String(a);var d=Os||io();Os=null,p.errorMessage=l,p.errorComponentStack=d}}function Ms(p,a){var l=p.onError(a);if(l!=null&&typeof l!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof l+'" instead');return l}function Ns(p,a){var l=p.onShellError;l(a);var d=p.onFatalError;d(a),p.destination!==null?(p.status=Ea,R(p.destination,a)):(p.status=Aa,p.fatalError=a)}function sp(p,a,l){ko(a,"Suspense");var d=a.blockedBoundary,g=a.blockedSegment,S=l.fallback,_=l.children,I=new Set,W=yf(p,I),X=g.chunks.length,fe=Ps(p,X,W,g.formatContext,!1,!1);g.children.push(fe),g.lastPushedText=!1;var ye=Ps(p,0,null,g.formatContext,!1,!1);ye.parentFlushed=!0,a.blockedBoundary=W,a.blockedSegment=ye;try{if(ka(p,a,_),Un(ye.chunks,p.responseState,ye.lastPushedText,ye.textEmbedded),ye.status=Ca,Ti(W,ye),W.pendingTasks===0){Kr(a);return}}catch(Ze){ye.status=ap,W.forceClientRender=!0,W.errorDigest=Ms(p,Ze),bf(W,Ze)}finally{a.blockedBoundary=d,a.blockedSegment=g}var Pe=ki(p,S,d,fe,I,a.legacyContext,a.context,a.treeContext);Pe.componentStack=a.componentStack,p.pingedTasks.push(Pe),Kr(a)}function ig(p,a,l,d){ko(a,l);var g=a.blockedSegment,S=mi(g.chunks,l,d,p.responseState,g.formatContext);g.lastPushedText=!1;var _=g.formatContext;g.formatContext=yo(_,l,d),ka(p,a,S),g.formatContext=_,Fl(g.chunks,l),g.lastPushedText=!1,Kr(a)}function lp(p){return p.prototype&&p.prototype.isReactComponent}function Ls(p,a,l,d,g){var S={};Ym(a,S);var _=l(d,g);return Gm(l,d,_,g)}function xf(p,a,l,d,g){var S=l.render();l.props!==g&&(Af||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Bt(d)||"a component"),Af=!0);{var _=d.childContextTypes;if(_!=null){var I=a.legacyContext,W=af(l,d,I,_);a.legacyContext=W,Hn(p,a,S),a.legacyContext=I;return}}Hn(p,a,S)}function cp(p,a,l,d){Is(a,l);var g=Vo(l,a.legacyContext),S=qd(l,d,g);Ts(S,l,d,g),xf(p,a,S,l,d),Kr(a)}var wf={},Ds={},Sf={},Cf={},Af=!1,up={},fp=!1,Ef=!1,dp=!1;function ag(p,a,l,d){var g;if(g=Vo(l,a.legacyContext),Pc(a,l),l.prototype&&typeof l.prototype.render=="function"){var S=Bt(l)||"Unknown";wf[S]||(o("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.",S,S),wf[S]=!0)}var _=Ls(p,a,l,d,g),I=wc();if(typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0){var W=Bt(l)||"Unknown";Ds[W]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",W,W,W),Ds[W]=!0)}if(typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0){{var X=Bt(l)||"Unknown";Ds[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),Ds[X]=!0)}Ts(_,l,d,g),xf(p,a,_,l,d)}else if(sg(l),I){var fe=a.treeContext,ye=1,Pe=0;a.treeContext=ff(fe,ye,Pe);try{Hn(p,a,_)}finally{a.treeContext=fe}}else Hn(p,a,_);Kr(a)}function sg(p){{if(p&&p.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",p.displayName||p.name||"Component"),p.defaultProps!==void 0){var a=Bt(p)||"Unknown";up[a]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",a),up[a]=!0)}if(typeof p.getDerivedStateFromProps=="function"){var l=Bt(p)||"Unknown";Cf[l]||(o("%s: Function components do not support getDerivedStateFromProps.",l),Cf[l]=!0)}if(typeof p.contextType=="object"&&p.contextType!==null){var d=Bt(p)||"Unknown";Sf[d]||(o("%s: Function components do not support contextType.",d),Sf[d]=!0)}}}function pp(p,a){if(p&&p.defaultProps){var l=dr({},a),d=p.defaultProps;for(var g in d)l[g]===void 0&&(l[g]=d[g]);return l}return a}function lg(p,a,l,d,g){Pc(a,l.render);var S=Ls(p,a,l.render,d,g),_=wc();if(_){var I=a.treeContext,W=1,X=0;a.treeContext=ff(I,W,X);try{Hn(p,a,S)}finally{a.treeContext=I}}else Hn(p,a,S);Kr(a)}function kf(p,a,l,d,g){var S=l.type,_=pp(S,d);Ic(p,a,S,_,g)}function cg(p,a,l,d){l._context===void 0?l!==l.Consumer&&(dp||(dp=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var g=d.children;typeof g!="function"&&o("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.");var S=ba(l),_=g(S);Hn(p,a,_)}function gr(p,a,l,d){var g=l._context,S=d.value,_=d.children,I;I=a.context,a.context=sf(g,S),Hn(p,a,_),a.context=Dm(g),I!==a.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ug(p,a,l,d,g){ko(a,"Lazy");var S=l._payload,_=l._init,I=_(S),W=pp(I,d);Ic(p,a,I,W,g),Kr(a)}function Ic(p,a,l,d,g){if(typeof l=="function")if(lp(l)){cp(p,a,l,d);return}else{ag(p,a,l,d);return}if(typeof l=="string"){ig(p,a,l,d);return}switch(l){case Mm:case Om:case ec:case tc:case ql:{Hn(p,a,d.children);return}case Yu:{ko(a,"SuspenseList"),Hn(p,a,d.children),Kr(a);return}case Bd:throw new Error("ReactDOMServer does not yet support scope components.");case Ku:{sp(p,a,d);return}}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ga:{lg(p,a,l,d,g);return}case Gu:{kf(p,a,l,d,g);return}case ps:{gr(p,a,l,d);return}case hs:{cg(p,a,l,d);return}case nc:{ug(p,a,l,d);return}}var S="";throw(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(l==null?l:typeof l)+"."+S))}function fg(p,a){typeof Symbol=="function"&&p[Symbol.toStringTag]==="Generator"&&(fp||o("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),fp=!0),p.entries===a&&(Ef||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ef=!0)}function Hn(p,a,l){try{return dg(p,a,l)}catch(d){throw typeof d=="object"&&d!==null&&typeof d.then=="function"||(Os=Os!==null?Os:io()),d}}function dg(p,a,l){if(a.node=l,typeof l=="object"&&l!==null){switch(l.$$typeof){case zd:{var d=l,g=d.type,S=d.props,_=d.ref;Ic(p,a,g,S,_);return}case Jl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case nc:{var I=l,W=I._payload,X=I._init,fe;try{fe=X(W)}catch(To){throw typeof To=="object"&&To!==null&&typeof To.then=="function"&&ko(a,"Lazy"),To}Hn(p,a,fe);return}}if(ln(l)){hp(p,a,l);return}var ye=ms(l);if(ye){fg(l,ye);var Pe=ye.call(l);if(Pe){var Ze=Pe.next();if(!Ze.done){var yt=[];do yt.push(Ze.value),Ze=Pe.next();while(!Ze.done);hp(p,a,yt);return}return}}var mn=Object.prototype.toString.call(l);throw new Error("Objects are not valid as a React child (found: "+(mn==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":mn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof l=="string"){var _i=a.blockedSegment;_i.lastPushedText=on(a.blockedSegment.chunks,l,p.responseState,_i.lastPushedText);return}if(typeof l=="number"){var Ri=a.blockedSegment;Ri.lastPushedText=on(a.blockedSegment.chunks,""+l,p.responseState,Ri.lastPushedText);return}typeof l=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function hp(p,a,l){for(var d=l.length,g=0;g<d;g++){var S=a.treeContext;a.treeContext=ff(S,d,g);try{ka(p,a,l[g])}finally{a.treeContext=S}}}function mp(p,a,l){var d=a.blockedSegment,g=d.chunks.length,S=Ps(p,g,null,d.formatContext,d.lastPushedText,!0);d.children.push(S),d.lastPushedText=!1;var _=ki(p,a.node,a.blockedBoundary,S,a.abortSet,a.legacyContext,a.context,a.treeContext);a.componentStack!==null&&(_.componentStack=a.componentStack.parent);var I=_.ping;l.then(I,I)}function ka(p,a,l){var d=a.blockedSegment.formatContext,g=a.legacyContext,S=a.context,_=null;_=a.componentStack;try{return Hn(p,a,l)}catch(I){if(hf(),typeof I=="object"&&I!==null&&typeof I.then=="function"){mp(p,a,I),a.blockedSegment.formatContext=d,a.legacyContext=g,a.context=S,Yo(S),a.componentStack=_;return}else throw a.blockedSegment.formatContext=d,a.legacyContext=g,a.context=S,Yo(S),a.componentStack=_,I}}function gp(p,a,l,d){var g=Ms(p,d);if(a===null?Ns(p,d):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,a.errorDigest=g,bf(a,d),a.parentFlushed&&p.clientRenderedBoundaries.push(a))),p.allPendingTasks--,p.allPendingTasks===0){var S=p.onAllReady;S()}}function pg(p){var a=this,l=p.blockedBoundary,d=p.blockedSegment;d.status=Ai,Fs(a,l,d)}function Tf(p,a,l){var d=p.blockedBoundary,g=p.blockedSegment;if(g.status=Ai,d===null)a.allPendingTasks--,a.status!==Ea&&(a.status=Ea,a.destination!==null&&C(a.destination));else{if(d.pendingTasks--,!d.forceClientRender){d.forceClientRender=!0;var S=l===void 0?new Error("The render was aborted by the server without a reason."):l;d.errorDigest=a.onError(S);{var _="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=_+S.message:S=_+String(S);var I=Eo;Eo=p;try{bf(d,S)}finally{Eo=I}}d.parentFlushed&&a.clientRenderedBoundaries.push(d)}if(d.fallbackAbortableTasks.forEach(function(X){return Tf(X,a,l)}),d.fallbackAbortableTasks.clear(),a.allPendingTasks--,a.allPendingTasks===0){var W=a.onAllReady;W()}}}function Ti(p,a){if(a.chunks.length===0&&a.children.length===1&&a.children[0].boundary===null){var l=a.children[0];l.id=a.id,l.parentFlushed=!0,l.status===Ca&&Ti(p,l)}else{var d=p.completedSegments;d.push(a)}}function Fs(p,a,l){if(a===null){if(l.parentFlushed){if(p.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");p.completedRootSegment=l}if(p.pendingRootTasks--,p.pendingRootTasks===0){p.onShellError=Ei;var d=p.onShellReady;d()}}else if(a.pendingTasks--,!a.forceClientRender){if(a.pendingTasks===0)l.parentFlushed&&l.status===Ca&&Ti(a,l),a.parentFlushed&&p.completedBoundaries.push(a),a.fallbackAbortableTasks.forEach(pg,p),a.fallbackAbortableTasks.clear();else if(l.parentFlushed&&l.status===Ca){Ti(a,l);var g=a.completedSegments;g.length===1&&a.parentFlushed&&p.partialBoundaries.push(a)}}if(p.allPendingTasks--,p.allPendingTasks===0){var S=p.onAllReady;S()}}function hg(p,a){var l=a.blockedSegment;if(l.status===_c){Yo(a.context);var d=null;d=Eo,Eo=a;try{Hn(p,a,a.node),Un(l.chunks,p.responseState,l.lastPushedText,l.textEmbedded),a.abortSet.delete(a),l.status=Ca,Fs(p,a.blockedBoundary,l)}catch(S){if(hf(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var g=a.ping;S.then(g,g)}else a.abortSet.delete(a),l.status=ap,gp(p,a.blockedBoundary,l,S)}finally{Eo=d}}}function _f(p){if(p.status!==Ea){var a=Qd(),l=kc.current;kc.current=Ac;var d;d=Tc.getCurrentStack,Tc.getCurrentStack=io;var g=Rs;Ec(p.responseState);try{var S=p.pingedTasks,_;for(_=0;_<S.length;_++){var I=S[_];hg(p,I)}S.splice(0,_),p.destination!==null&&Rf(p,p.destination)}catch(W){Ms(p,W),Ns(p,W)}finally{Ec(g),kc.current=l,Tc.getCurrentStack=d,l===Ac&&Yo(a)}}}function js(p,a,l){switch(l.parentFlushed=!0,l.status){case _c:{var d=l.id=p.nextSegmentId++;return l.lastPushedText=!1,l.textEmbedded=!1,jl(a,p.responseState,d)}case Ca:{l.status=vf;for(var g=!0,S=l.chunks,_=0,I=l.children,W=0;W<I.length;W++){for(var X=I[W];_<X.index;_++)h(a,S[_]);g=Oc(p,a,X)}for(;_<S.length-1;_++)h(a,S[_]);return _<S.length&&(g=v(a,S[_])),g}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Oc(p,a,l){var d=l.boundary;if(d===null)return js(p,a,l);if(d.parentFlushed=!0,d.forceClientRender)return Wn(a,p.responseState,d.errorDigest,d.errorMessage,d.errorComponentStack),js(p,a,l),Hu(a,p.responseState);if(d.pendingTasks>0){d.rootSegmentID=p.nextSegmentId++,d.completedSegments.length>0&&p.partialBoundaries.push(d);var g=d.id=Jn(p.responseState);return ua(a,p.responseState,g),js(p,a,l),fa(a,p.responseState)}else{if(d.byteSize>p.progressiveChunkSize)return d.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push(d),ua(a,p.responseState,d.id),js(p,a,l),fa(a,p.responseState);Ul(a,p.responseState);var S=d.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var _=S[0];return Oc(p,a,_),Wl(a,p.responseState)}}function vp(p,a,l){return Im(a,p.responseState,l.id,l.errorDigest,l.errorMessage,l.errorComponentStack)}function Mc(p,a,l){return et(a,p.responseState,l.formatContext,l.id),Oc(p,a,l),Mt(a,l.formatContext)}function yp(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];bp(p,a,l,S)}return d.length=0,Fd(a,p.responseState,l.id,l.rootSegmentID)}function mg(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];if(!bp(p,a,l,S))return g++,d.splice(0,g),!1}return d.splice(0,g),!0}function bp(p,a,l,d){if(d.status===vf)return!0;var g=d.id;if(g===-1){var S=d.id=l.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Mc(p,a,d)}else return Mc(p,a,d),Am(a,p.responseState,g)}function Rf(p,a){m();try{var l=p.completedRootSegment;l!==null&&p.pendingRootTasks===0&&(Oc(p,a,l),p.completedRootSegment=null,Uu(a,p.responseState));var d=p.clientRenderedBoundaries,g;for(g=0;g<d.length;g++){var S=d[g];vp(p,a,S)}d.splice(0,g);var _=p.completedBoundaries;for(g=0;g<_.length;g++){var I=_[g];yp(p,a,I)}_.splice(0,g),w(a),m(a);var W=p.partialBoundaries;for(g=0;g<W.length;g++){var X=W[g];if(!mg(p,a,X)){p.destination=null,g++,W.splice(0,g);return}}W.splice(0,g);var fe=p.completedBoundaries;for(g=0;g<fe.length;g++){var ye=fe[g];yp(p,a,ye)}fe.splice(0,g)}finally{w(a),p.allPendingTasks===0&&p.pingedTasks.length===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0&&(p.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),C(a))}}function xp(p){s(function(){return _f(p)})}function gg(p,a){if(p.status===Aa){p.status=Ea,R(a,p.fatalError);return}if(p.status!==Ea&&p.destination===null){p.destination=a;try{Rf(p,a)}catch(l){Ms(p,l),Ns(p,l)}}}function wp(p,a){try{var l=p.abortableTasks;l.forEach(function(d){return Tf(d,p,a)}),l.clear(),p.destination!==null&&Rf(p,p.destination)}catch(d){Ms(p,d),Ns(p,d)}}function vg(p,a){return new Promise(function(l,d){var g,S,_=new Promise(function(Pe,Ze){S=Pe,g=Ze});function I(){var Pe=new ReadableStream({type:"bytes",pull:function(Ze){gg(X,Ze)},cancel:function(Ze){wp(X)}},{highWaterMark:0});Pe.allReady=_,l(Pe)}function W(Pe){_.catch(function(){}),d(Pe)}var X=Rc(p,St(a?a.identifierPrefix:void 0,a?a.nonce:void 0,a?a.bootstrapScriptContent:void 0,a?a.bootstrapScripts:void 0,a?a.bootstrapModules:void 0),qr(a?a.namespaceURI:void 0),a?a.progressiveChunkSize:void 0,a?a.onError:void 0,S,I,W,g);if(a&&a.signal){var fe=a.signal,ye=function(){wp(X,fe.reason),fe.removeEventListener("abort",ye)};fe.addEventListener("abort",ye)}xp(X)})}Ap.renderToReadableStream=vg,Ap.version=t})()),Ap}var Tb;function jk(){if(Tb)return _a;Tb=1;var e,t;return process.env.NODE_ENV==="production"?(e=Nk(),t=Lk()):(e=Dk(),t=Fk()),_a.version=e.version,_a.renderToString=e.renderToString,_a.renderToStaticMarkup=e.renderToStaticMarkup,_a.renderToNodeStream=e.renderToNodeStream,_a.renderToStaticNodeStream=e.renderToStaticNodeStream,_a.renderToReadableStream=t.renderToReadableStream,_a}var zk=jk(),Ep={exports:{}},kp={exports:{}},_t={};/** @license React v16.13.1
|
|
106
106
|
* react-is.production.min.js
|
|
107
107
|
*
|
|
108
108
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the MIT license found in the
|
|
111
111
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var
|
|
112
|
+
*/var _b;function Bk(){if(_b)return _t;_b=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var U=M.$$typeof;switch(U){case t:switch(M=M.type,M){case u:case f:case r:case i:case o:case h:return M;default:switch(M=M&&M.$$typeof,M){case c:case m:case C:case w:case s:return M;default:return U}}case n:return U}}}function L(M){return O(M)===f}return _t.AsyncMode=u,_t.ConcurrentMode=f,_t.ContextConsumer=c,_t.ContextProvider=s,_t.Element=t,_t.ForwardRef=m,_t.Fragment=r,_t.Lazy=C,_t.Memo=w,_t.Portal=n,_t.Profiler=i,_t.StrictMode=o,_t.Suspense=h,_t.isAsyncMode=function(M){return L(M)||O(M)===u},_t.isConcurrentMode=L,_t.isContextConsumer=function(M){return O(M)===c},_t.isContextProvider=function(M){return O(M)===s},_t.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},_t.isForwardRef=function(M){return O(M)===m},_t.isFragment=function(M){return O(M)===r},_t.isLazy=function(M){return O(M)===C},_t.isMemo=function(M){return O(M)===w},_t.isPortal=function(M){return O(M)===n},_t.isProfiler=function(M){return O(M)===i},_t.isStrictMode=function(M){return O(M)===o},_t.isSuspense=function(M){return O(M)===h},_t.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===f||M===i||M===o||M===h||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===C||M.$$typeof===w||M.$$typeof===s||M.$$typeof===c||M.$$typeof===m||M.$$typeof===x||M.$$typeof===E||M.$$typeof===R||M.$$typeof===A)},_t.typeOf=O,_t}var Rt={};/** @license React v16.13.1
|
|
113
113
|
* react-is.development.js
|
|
114
114
|
*
|
|
115
115
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the MIT license found in the
|
|
118
118
|
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/var
|
|
119
|
+
*/var Rb;function Uk(){return Rb||(Rb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O(ke){return typeof ke=="string"||typeof ke=="function"||ke===r||ke===f||ke===i||ke===o||ke===h||ke===v||typeof ke=="object"&&ke!==null&&(ke.$$typeof===C||ke.$$typeof===w||ke.$$typeof===s||ke.$$typeof===c||ke.$$typeof===m||ke.$$typeof===x||ke.$$typeof===E||ke.$$typeof===R||ke.$$typeof===A)}function L(ke){if(typeof ke=="object"&&ke!==null){var tt=ke.$$typeof;switch(tt){case t:var xt=ke.type;switch(xt){case u:case f:case r:case i:case o:case h:return xt;default:var zt=xt&&xt.$$typeof;switch(zt){case c:case m:case C:case w:case s:return zt;default:return tt}}case n:return tt}}}var M=u,U=f,j=c,$=s,H=t,G=m,q=r,pe=C,ie=w,se=n,xe=i,Ae=o,Re=h,Q=!1;function Ee(ke){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ne(ke)||L(ke)===u}function ne(ke){return L(ke)===f}function re(ke){return L(ke)===c}function ue(ke){return L(ke)===s}function me(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===t}function Te(ke){return L(ke)===m}function de(ke){return L(ke)===r}function ve(ke){return L(ke)===C}function _e(ke){return L(ke)===w}function je(ke){return L(ke)===n}function ze(ke){return L(ke)===i}function Be(ke){return L(ke)===o}function Je(ke){return L(ke)===h}Rt.AsyncMode=M,Rt.ConcurrentMode=U,Rt.ContextConsumer=j,Rt.ContextProvider=$,Rt.Element=H,Rt.ForwardRef=G,Rt.Fragment=q,Rt.Lazy=pe,Rt.Memo=ie,Rt.Portal=se,Rt.Profiler=xe,Rt.StrictMode=Ae,Rt.Suspense=Re,Rt.isAsyncMode=Ee,Rt.isConcurrentMode=ne,Rt.isContextConsumer=re,Rt.isContextProvider=ue,Rt.isElement=me,Rt.isForwardRef=Te,Rt.isFragment=de,Rt.isLazy=ve,Rt.isMemo=_e,Rt.isPortal=je,Rt.isProfiler=ze,Rt.isStrictMode=Be,Rt.isSuspense=Je,Rt.isValidElementType=O,Rt.typeOf=L})()),Rt}var Pb;function fS(){return Pb||(Pb=1,process.env.NODE_ENV==="production"?kp.exports=Bk():kp.exports=Uk()),kp.exports}/*
|
|
120
120
|
object-assign
|
|
121
121
|
(c) Sindre Sorhus
|
|
122
122
|
@license MIT
|
|
123
|
-
*/var
|
|
124
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Sv=function(e,r){return yv(e)||bv(e,r)||xv(e,r)||wv()},Gh=Yh(function(e){function r(){return e.exports=r=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(o[d]=a[d])}return o},r.apply(this,arguments)}e.exports=r}),kv=function(e,r){if(e==null)return{};var o,i,a={},d=Object.keys(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||(a[o]=e[o]);return a},Qh=function(e,r){if(e==null)return{};var o,i,a=kv(e,r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a},Ev=V.createContext(null);function Xh(e){var r=e.children,o=r===void 0?"":r,i=Qh(e,["children"]);return typeof o!="string"&&(o=sv.renderToString(o)),V.createElement("template",Gh({},i,{dangerouslySetInnerHTML:{__html:o}}))}function qh(e){var r=e.root,o=e.children;return Vl.createPortal(o===void 0?null:o,r)}function Cv(e){var r=V.forwardRef(function(o,i){var a,d,h=o.mode,v=h===void 0?"open":h,m=o.delegatesFocus,x=m!==void 0&&m,R=o.styleSheets,E=R===void 0?[]:R,F=o.ssr,M=F!==void 0&&F,B=o.children,D=Qh(o,["mode","delegatesFocus","styleSheets","ssr","children"]),P=(d=V.useRef((a=i)&&a.current),V.useEffect(function(){a&&(a.current=d.current)},[a]),d),I=V.useState(null),W=Sv(I,2),U=W[0],q=W[1],_="node_".concat(v).concat(x);return V.useLayoutEffect(function(){if(P.current)try{if(typeof i=="function"&&i(P.current),M){var ie=P.current.shadowRoot;return void q(ie)}var ce=P.current.attachShadow({mode:v,delegatesFocus:x});E.length>0&&(ce.adoptedStyleSheets=E),q(ce)}catch(ee){(function(ae){var Fe=ae.error,Ne=ae.styleSheets,_e=ae.root;switch(Fe.name){case"NotSupportedError":Ne.length>0&&(_e.adoptedStyleSheets=Ne);break;default:throw Fe}})({error:ee,styleSheets:E,root:U})}},[i,P,E]),V.createElement(V.Fragment,null,V.createElement(e.tag,Gh({key:_,ref:P},D),(U||M)&&V.createElement(Ev.Provider,{value:U},M?V.createElement(Xh,{shadowroot:v,shadowrootmode:v},e.render({root:U,ssr:M,children:B})):V.createElement(qh,{root:U},e.render({root:U,ssr:M,children:B})))))});return r.propTypes={mode:Me.oneOf(["open","closed"]),delegatesFocus:Me.bool,styleSheets:Me.arrayOf(Me.instanceOf(globalThis.CSSStyleSheet)),ssr:Me.bool,children:Me.node},r}Xh.propTypes={children:Me.oneOfType([Me.string,Me.node])},qh.propTypes={root:Me.object.isRequired,children:Me.node};var If=new Map;function Tv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i.children};return new Proxy(e,{get:function(i,a){var d=vv(a,{separator:"-"}),h="".concat(r,"-").concat(d);return If.has(h)||If.set(h,Cv({tag:d,render:o})),If.get(h)}})}var cc=Tv();const Jh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var As=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ra=typeof window>"u"||"Deno"in globalThis;function qt(){}function Rv(e,r){return typeof e=="function"?e(r):e}function Xf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Kh(e,r){return Math.max(e+(r||0)-Date.now(),0)}function cs(e,r){return typeof e=="function"?e(r):e}function Kr(e,r){return typeof e=="function"?e(r):e}function Pp(e,r){const{type:o="all",exact:i,fetchStatus:a,predicate:d,queryKey:h,stale:v}=e;if(h){if(i){if(r.queryHash!==Bd(h,r.options))return!1}else if(!_l(r.queryKey,h))return!1}if(o!=="all"){const m=r.isActive();if(o==="active"&&!m||o==="inactive"&&m)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||a&&a!==r.state.fetchStatus||d&&!d(r))}function Ap(e,r){const{exact:o,status:i,predicate:a,mutationKey:d}=e;if(d){if(!r.options.mutationKey)return!1;if(o){if(na(r.options.mutationKey)!==na(d))return!1}else if(!_l(r.options.mutationKey,d))return!1}return!(i&&r.state.status!==i||a&&!a(r))}function Bd(e,r){return((r==null?void 0:r.queryKeyHashFn)||na)(e)}function na(e){return JSON.stringify(e,(r,o)=>Jf(o)?Object.keys(o).sort().reduce((i,a)=>(i[a]=o[a],i),{}):o)}function _l(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(r).every(o=>_l(e[o],r[o])):!1}function qf(e,r){if(e===r)return e;const o=Ip(e)&&Ip(r);if(o||Jf(e)&&Jf(r)){const i=o?e:Object.keys(e),a=i.length,d=o?r:Object.keys(r),h=d.length,v=o?[]:{};let m=0;for(let x=0;x<h;x++){const R=o?x:d[x];(!o&&i.includes(R)||o)&&e[R]===void 0&&r[R]===void 0?(v[R]=void 0,m++):(v[R]=qf(e[R],r[R]),v[R]===e[R]&&e[R]!==void 0&&m++)}return a===h&&m===a?e:v}return r}function ec(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(e[o]!==r[o])return!1;return!0}function Ip(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jf(e){if(!Op(e))return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(!Op(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Op(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pv(e){return new Promise(r=>{setTimeout(r,e)})}function Kf(e,r,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,r);if(o.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return qf(e,r)}catch(i){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${i}`),i}return qf(e,r)}return r}function Av(e,r,o=0){const i=[...e,r];return o&&i.length>o?i.slice(1):i}function Iv(e,r,o=0){const i=[r,...e];return o&&i.length>o?i.slice(0,-1):i}var tc=Symbol();function Zh(e,r){return process.env.NODE_ENV!=="production"&&e.queryFn===tc&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===tc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function em(e,r){return typeof e=="function"?e(...r):!!e}var Qi,Vo,ms,Mh,Ov=(Mh=class extends As{constructor(){super();Ie(this,Qi);Ie(this,Vo);Ie(this,ms);he(this,ms,r=>{if(!ra&&window.addEventListener){const o=()=>r();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){O(this,Vo)||this.setEventListener(O(this,ms))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Vo))==null||r.call(this),he(this,Vo,void 0))}setEventListener(r){var o;he(this,ms,r),(o=O(this,Vo))==null||o.call(this),he(this,Vo,r(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(r){O(this,Qi)!==r&&(he(this,Qi,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(o=>{o(r)})}isFocused(){var r;return typeof O(this,Qi)=="boolean"?O(this,Qi):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Qi=new WeakMap,Vo=new WeakMap,ms=new WeakMap,Mh),Ud=new Ov,gs,Yo,vs,Dh,Fv=(Dh=class extends As{constructor(){super();Ie(this,gs,!0);Ie(this,Yo);Ie(this,vs);he(this,vs,r=>{if(!ra&&window.addEventListener){const o=()=>r(!0),i=()=>r(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",i)}}})}onSubscribe(){O(this,Yo)||this.setEventListener(O(this,vs))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Yo))==null||r.call(this),he(this,Yo,void 0))}setEventListener(r){var o;he(this,vs,r),(o=O(this,Yo))==null||o.call(this),he(this,Yo,r(this.setOnline.bind(this)))}setOnline(r){O(this,gs)!==r&&(he(this,gs,r),this.listeners.forEach(i=>{i(r)}))}isOnline(){return O(this,gs)}},gs=new WeakMap,Yo=new WeakMap,vs=new WeakMap,Dh),rc=new Fv;function Zf(){let e,r;const o=new Promise((a,d)=>{e=a,r=d});o.status="pending",o.catch(()=>{});function i(a){Object.assign(o,a),delete o.resolve,delete o.reject}return o.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},o.reject=a=>{i({status:"rejected",reason:a}),r(a)},o}function Mv(e){return Math.min(1e3*2**e,3e4)}function tm(e){return(e??"online")==="online"?rc.isOnline():!0}var rm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Of(e){return e instanceof rm}function nm(e){let r=!1,o=0,i=!1,a;const d=Zf(),h=D=>{var P;i||(F(new rm(D)),(P=e.abort)==null||P.call(e))},v=()=>{r=!0},m=()=>{r=!1},x=()=>Ud.isFocused()&&(e.networkMode==="always"||rc.isOnline())&&e.canRun(),R=()=>tm(e.networkMode)&&e.canRun(),E=D=>{var P;i||(i=!0,(P=e.onSuccess)==null||P.call(e,D),a==null||a(),d.resolve(D))},F=D=>{var P;i||(i=!0,(P=e.onError)==null||P.call(e,D),a==null||a(),d.reject(D))},M=()=>new Promise(D=>{var P;a=I=>{(i||x())&&D(I)},(P=e.onPause)==null||P.call(e)}).then(()=>{var D;a=void 0,i||(D=e.onContinue)==null||D.call(e)}),B=()=>{if(i)return;let D;const P=o===0?e.initialPromise:void 0;try{D=P??e.fn()}catch(I){D=Promise.reject(I)}Promise.resolve(D).then(E).catch(I=>{var ie;if(i)return;const W=e.retry??(ra?0:3),U=e.retryDelay??Mv,q=typeof U=="function"?U(o,I):U,_=W===!0||typeof W=="number"&&o<W||typeof W=="function"&&W(o,I);if(r||!_){F(I);return}o++,(ie=e.onFail)==null||ie.call(e,o,I),Pv(q).then(()=>x()?void 0:M()).then(()=>{r?F(I):B()})})};return{promise:d,cancel:h,continue:()=>(a==null||a(),d),cancelRetry:v,continueRetry:m,canStart:R,start:()=>(R()?B():M().then(B),d)}}var Dv=e=>setTimeout(e,0);function _v(){let e=[],r=0,o=v=>{v()},i=v=>{v()},a=Dv;const d=v=>{r?e.push(v):a(()=>{o(v)})},h=()=>{const v=e;e=[],v.length&&a(()=>{i(()=>{v.forEach(m=>{o(m)})})})};return{batch:v=>{let m;r++;try{m=v()}finally{r--,r||h()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{o=v},setBatchNotifyFunction:v=>{i=v},setScheduler:v=>{a=v}}}var bt=_v(),Xi,_h,om=(_h=class{constructor(){Ie(this,Xi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xf(this.gcTime)&&he(this,Xi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ra?1/0:5*60*1e3))}clearGcTimeout(){O(this,Xi)&&(clearTimeout(O(this,Xi)),he(this,Xi,void 0))}},Xi=new WeakMap,_h),ys,bs,Mr,qi,Dt,Bl,Ji,qr,qn,Lh,Lv=(Lh=class extends om{constructor(r){super();Ie(this,qr);Ie(this,ys);Ie(this,bs);Ie(this,Mr);Ie(this,qi);Ie(this,Dt);Ie(this,Bl);Ie(this,Ji);he(this,Ji,!1),he(this,Bl,r.defaultOptions),this.setOptions(r.options),this.observers=[],he(this,qi,r.client),he(this,Mr,O(this,qi).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,he(this,ys,jv(this.options)),this.state=r.state??O(this,ys),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=O(this,Dt))==null?void 0:r.promise}setOptions(r){this.options={...O(this,Bl),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Mr).remove(this)}setData(r,o){const i=Kf(this.state.data,r,this.options);return ze(this,qr,qn).call(this,{data:i,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),i}setState(r,o){ze(this,qr,qn).call(this,{type:"setState",state:r,setStateOptions:o})}cancel(r){var i,a;const o=(i=O(this,Dt))==null?void 0:i.promise;return(a=O(this,Dt))==null||a.cancel(r),o?o.then(qt).catch(qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,ys))}isActive(){return this.observers.some(r=>Kr(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Kh(this.state.dataUpdatedAt,r)}onFocus(){var o;const r=this.observers.find(i=>i.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}onOnline(){var o;const r=this.observers.find(i=>i.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),O(this,Mr).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(o=>o!==r),this.observers.length||(O(this,Dt)&&(O(this,Ji)?O(this,Dt).cancel({revert:!0}):O(this,Dt).cancelRetry()),this.scheduleGc()),O(this,Mr).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,qr,qn).call(this,{type:"invalidate"})}fetch(r,o){var m,x,R;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(O(this,Dt))return O(this,Dt).continueRetry(),O(this,Dt).promise}if(r&&this.setOptions(r),!this.options.queryFn){const E=this.observers.find(F=>F.options.queryFn);E&&this.setOptions(E.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=new AbortController,a=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(he(this,Ji,!0),i.signal)})},d=()=>{const E=Zh(this.options,o),F={client:O(this,qi),queryKey:this.queryKey,meta:this.meta};return a(F),he(this,Ji,!1),this.options.persister?this.options.persister(E,F,this):E(F)},h={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:O(this,qi),state:this.state,fetchFn:d};a(h),(m=this.options.behavior)==null||m.onFetch(h,this),he(this,bs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=h.fetchOptions)==null?void 0:x.meta))&&ze(this,qr,qn).call(this,{type:"fetch",meta:(R=h.fetchOptions)==null?void 0:R.meta});const v=E=>{var F,M,B,D;Of(E)&&E.silent||ze(this,qr,qn).call(this,{type:"error",error:E}),Of(E)||((M=(F=O(this,Mr).config).onError)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,this.state.data,E,this)),this.scheduleGc()};return he(this,Dt,nm({initialPromise:o==null?void 0:o.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:E=>{var F,M,B,D;if(E===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(E)}catch(P){v(P);return}(M=(F=O(this,Mr).config).onSuccess)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,E,this.state.error,this),this.scheduleGc()},onError:v,onFail:(E,F)=>{ze(this,qr,qn).call(this,{type:"failed",failureCount:E,error:F})},onPause:()=>{ze(this,qr,qn).call(this,{type:"pause"})},onContinue:()=>{ze(this,qr,qn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),O(this,Dt).start()}},ys=new WeakMap,bs=new WeakMap,Mr=new WeakMap,qi=new WeakMap,Dt=new WeakMap,Bl=new WeakMap,Ji=new WeakMap,qr=new WeakSet,qn=function(r){const o=i=>{switch(r.type){case"failed":return{...i,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...im(i.data,this.options),fetchMeta:r.meta??null};case"success":return{...i,data:r.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=r.error;return Of(a)&&a.revert&&O(this,bs)?{...O(this,bs),fetchStatus:"idle"}:{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...r.state}}};this.state=o(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,Mr).notify({query:this,type:"updated",action:r})})},Lh);function im(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tm(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jv(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,o=r!==void 0,i=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:o?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var vn,jh,Nv=(jh=class extends As{constructor(r={}){super();Ie(this,vn);this.config=r,he(this,vn,new Map)}build(r,o,i){const a=o.queryKey,d=o.queryHash??Bd(a,o);let h=this.get(d);return h||(h=new Lv({client:r,queryKey:a,queryHash:d,options:r.defaultQueryOptions(o),state:i,defaultOptions:r.getQueryDefaults(a)}),this.add(h)),h}add(r){O(this,vn).has(r.queryHash)||(O(this,vn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const o=O(this,vn).get(r.queryHash);o&&(r.destroy(),o===r&&O(this,vn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){bt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return O(this,vn).get(r)}getAll(){return[...O(this,vn).values()]}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Pp(o,i))}findAll(r={}){const o=this.getAll();return Object.keys(r).length>0?o.filter(i=>Pp(r,i)):o}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},vn=new WeakMap,jh),yn,Qt,Ki,bn,Wo,Nh,$v=(Nh=class extends om{constructor(r){super();Ie(this,bn);Ie(this,yn);Ie(this,Qt);Ie(this,Ki);this.mutationId=r.mutationId,he(this,Qt,r.mutationCache),he(this,yn,[]),this.state=r.state||am(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){O(this,yn).includes(r)||(O(this,yn).push(r),this.clearGcTimeout(),O(this,Qt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){he(this,yn,O(this,yn).filter(o=>o!==r)),this.scheduleGc(),O(this,Qt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){O(this,yn).length||(this.state.status==="pending"?this.scheduleGc():O(this,Qt).remove(this))}continue(){var r;return((r=O(this,Ki))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,h,v,m,x,R,E,F,M,B,D,P,I,W,U,q,_,ie,ce,ee;const o=()=>{ze(this,bn,Wo).call(this,{type:"continue"})};he(this,Ki,nm({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(ae,Fe)=>{ze(this,bn,Wo).call(this,{type:"failed",failureCount:ae,error:Fe})},onPause:()=>{ze(this,bn,Wo).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Qt).canRun(this)}));const i=this.state.status==="pending",a=!O(this,Ki).canStart();try{if(i)o();else{ze(this,bn,Wo).call(this,{type:"pending",variables:r,isPaused:a}),await((h=(d=O(this,Qt).config).onMutate)==null?void 0:h.call(d,r,this));const Fe=await((m=(v=this.options).onMutate)==null?void 0:m.call(v,r));Fe!==this.state.context&&ze(this,bn,Wo).call(this,{type:"pending",context:Fe,variables:r,isPaused:a})}const ae=await O(this,Ki).start();return await((R=(x=O(this,Qt).config).onSuccess)==null?void 0:R.call(x,ae,r,this.state.context,this)),await((F=(E=this.options).onSuccess)==null?void 0:F.call(E,ae,r,this.state.context)),await((B=(M=O(this,Qt).config).onSettled)==null?void 0:B.call(M,ae,null,this.state.variables,this.state.context,this)),await((P=(D=this.options).onSettled)==null?void 0:P.call(D,ae,null,r,this.state.context)),ze(this,bn,Wo).call(this,{type:"success",data:ae}),ae}catch(ae){try{throw await((W=(I=O(this,Qt).config).onError)==null?void 0:W.call(I,ae,r,this.state.context,this)),await((q=(U=this.options).onError)==null?void 0:q.call(U,ae,r,this.state.context)),await((ie=(_=O(this,Qt).config).onSettled)==null?void 0:ie.call(_,void 0,ae,this.state.variables,this.state.context,this)),await((ee=(ce=this.options).onSettled)==null?void 0:ee.call(ce,void 0,ae,r,this.state.context)),ae}finally{ze(this,bn,Wo).call(this,{type:"error",error:ae})}}finally{O(this,Qt).runNext(this)}}},yn=new WeakMap,Qt=new WeakMap,Ki=new WeakMap,bn=new WeakSet,Wo=function(r){const o=i=>{switch(r.type){case"failed":return{...i,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...i,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:r.error,failureCount:i.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=o(this.state),bt.batch(()=>{O(this,yn).forEach(i=>{i.onMutationUpdate(r)}),O(this,Qt).notify({mutation:this,type:"updated",action:r})})},Nh);function am(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jn,Jr,Ul,$h,zv=($h=class extends As{constructor(r={}){super();Ie(this,Jn);Ie(this,Jr);Ie(this,Ul);this.config=r,he(this,Jn,new Set),he(this,Jr,new Map),he(this,Ul,0)}build(r,o,i){const a=new $v({mutationCache:this,mutationId:++$u(this,Ul)._,options:r.defaultMutationOptions(o),state:i});return this.add(a),a}add(r){O(this,Jn).add(r);const o=Wu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);i?i.push(r):O(this,Jr).set(o,[r])}this.notify({type:"added",mutation:r})}remove(r){if(O(this,Jn).delete(r)){const o=Wu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);if(i)if(i.length>1){const a=i.indexOf(r);a!==-1&&i.splice(a,1)}else i[0]===r&&O(this,Jr).delete(o)}}this.notify({type:"removed",mutation:r})}canRun(r){const o=Wu(r);if(typeof o=="string"){const i=O(this,Jr).get(o),a=i==null?void 0:i.find(d=>d.state.status==="pending");return!a||a===r}else return!0}runNext(r){var i;const o=Wu(r);if(typeof o=="string"){const a=(i=O(this,Jr).get(o))==null?void 0:i.find(d=>d!==r&&d.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{O(this,Jn).forEach(r=>{this.notify({type:"removed",mutation:r})}),O(this,Jn).clear(),O(this,Jr).clear()})}getAll(){return Array.from(O(this,Jn))}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Ap(o,i))}findAll(r={}){return this.getAll().filter(o=>Ap(r,o))}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}resumePausedMutations(){const r=this.getAll().filter(o=>o.state.isPaused);return bt.batch(()=>Promise.all(r.map(o=>o.continue().catch(qt))))}},Jn=new WeakMap,Jr=new WeakMap,Ul=new WeakMap,$h);function Wu(e){var r;return(r=e.options.scope)==null?void 0:r.id}function Fp(e){return{onFetch:(r,o)=>{var R,E,F,M,B;const i=r.options,a=(F=(E=(R=r.fetchOptions)==null?void 0:R.meta)==null?void 0:E.fetchMore)==null?void 0:F.direction,d=((M=r.state.data)==null?void 0:M.pages)||[],h=((B=r.state.data)==null?void 0:B.pageParams)||[];let v={pages:[],pageParams:[]},m=0;const x=async()=>{let D=!1;const P=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(r.signal.aborted?D=!0:r.signal.addEventListener("abort",()=>{D=!0}),r.signal)})},I=Zh(r.options,r.fetchOptions),W=async(U,q,_)=>{if(D)return Promise.reject();if(q==null&&U.pages.length)return Promise.resolve(U);const ie={client:r.client,queryKey:r.queryKey,pageParam:q,direction:_?"backward":"forward",meta:r.options.meta};P(ie);const ce=await I(ie),{maxPages:ee}=r.options,ae=_?Iv:Av;return{pages:ae(U.pages,ce,ee),pageParams:ae(U.pageParams,q,ee)}};if(a&&d.length){const U=a==="backward",q=U?Bv:Mp,_={pages:d,pageParams:h},ie=q(i,_);v=await W(_,ie,U)}else{const U=e??d.length;do{const q=m===0?h[0]??i.initialPageParam:Mp(i,v);if(m>0&&q==null)break;v=await W(v,q),m++}while(m<U)}return v};r.options.persister?r.fetchFn=()=>{var D,P;return(P=(D=r.options).persister)==null?void 0:P.call(D,x,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},o)}:r.fetchFn=x}}}function Mp(e,{pages:r,pageParams:o}){const i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,o[i],o):void 0}function Bv(e,{pages:r,pageParams:o}){var i;return r.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,r[0],r,o[0],o):void 0}var dt,Go,Qo,xs,ws,Xo,Ss,ks,zh,Uv=(zh=class{constructor(e={}){Ie(this,dt);Ie(this,Go);Ie(this,Qo);Ie(this,xs);Ie(this,ws);Ie(this,Xo);Ie(this,Ss);Ie(this,ks);he(this,dt,e.queryCache||new Nv),he(this,Go,e.mutationCache||new zv),he(this,Qo,e.defaultOptions||{}),he(this,xs,new Map),he(this,ws,new Map),he(this,Xo,0)}mount(){$u(this,Xo)._++,O(this,Xo)===1&&(he(this,Ss,Ud.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onFocus())})),he(this,ks,rc.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onOnline())})))}unmount(){var e,r;$u(this,Xo)._--,O(this,Xo)===0&&((e=O(this,Ss))==null||e.call(this),he(this,Ss,void 0),(r=O(this,ks))==null||r.call(this),he(this,ks,void 0))}isFetching(e){return O(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Go).findAll({...e,status:"pending"}).length}getQueryData(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),o=O(this,dt).build(this,r),i=o.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(cs(r.staleTime,o))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(e){return O(this,dt).findAll(e).map(({queryKey:r,state:o})=>{const i=o.data;return[r,i]})}setQueryData(e,r,o){const i=this.defaultQueryOptions({queryKey:e}),a=O(this,dt).get(i.queryHash),d=a==null?void 0:a.state.data,h=Rv(r,d);if(h!==void 0)return O(this,dt).build(this,i).setData(h,{...o,manual:!0})}setQueriesData(e,r,o){return bt.batch(()=>O(this,dt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,o)]))}getQueryState(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state}removeQueries(e){const r=O(this,dt);bt.batch(()=>{r.findAll(e).forEach(o=>{r.remove(o)})})}resetQueries(e,r){const o=O(this,dt);return bt.batch(()=>(o.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const o={revert:!0,...r},i=bt.batch(()=>O(this,dt).findAll(e).map(a=>a.cancel(o)));return Promise.all(i).then(qt).catch(qt)}invalidateQueries(e,r={}){return bt.batch(()=>(O(this,dt).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},r)))}refetchQueries(e,r={}){const o={...r,cancelRefetch:r.cancelRefetch??!0},i=bt.batch(()=>O(this,dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let d=a.fetch(void 0,o);return o.throwOnError||(d=d.catch(qt)),a.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then(qt)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const o=O(this,dt).build(this,r);return o.isStaleByTime(cs(r.staleTime,o))?o.fetch(r):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qt).catch(qt)}fetchInfiniteQuery(e){return e.behavior=Fp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qt).catch(qt)}ensureInfiniteQueryData(e){return e.behavior=Fp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return rc.isOnline()?O(this,Go).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,dt)}getMutationCache(){return O(this,Go)}getDefaultOptions(){return O(this,Qo)}setDefaultOptions(e){he(this,Qo,e)}setQueryDefaults(e,r){O(this,xs).set(na(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...O(this,xs).values()],o={};return r.forEach(i=>{_l(e,i.queryKey)&&Object.assign(o,i.defaultOptions)}),o}setMutationDefaults(e,r){O(this,ws).set(na(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...O(this,ws).values()],o={};return r.forEach(i=>{_l(e,i.mutationKey)&&Object.assign(o,i.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const r={...O(this,Qo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=Bd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===tc&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Qo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,dt).clear(),O(this,Go).clear()}},dt=new WeakMap,Go=new WeakMap,Qo=new WeakMap,xs=new WeakMap,ws=new WeakMap,Xo=new WeakMap,Ss=new WeakMap,ks=new WeakMap,zh),lr,Ve,Hl,Xt,Zi,Es,qo,Jo,Wl,Cs,Ts,ea,ta,Ko,Rs,Ze,Pl,ed,td,rd,nd,od,id,ad,sm,Bh,Hv=(Bh=class extends As{constructor(r,o){super();Ie(this,Ze);Ie(this,lr);Ie(this,Ve);Ie(this,Hl);Ie(this,Xt);Ie(this,Zi);Ie(this,Es);Ie(this,qo);Ie(this,Jo);Ie(this,Wl);Ie(this,Cs);Ie(this,Ts);Ie(this,ea);Ie(this,ta);Ie(this,Ko);Ie(this,Rs,new Set);this.options=o,he(this,lr,r),he(this,Jo,null),he(this,qo,Zf()),this.options.experimental_prefetchInRender||O(this,qo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Ve).addObserver(this),Dp(O(this,Ve),this.options)?ze(this,Ze,Pl).call(this):this.updateResult(),ze(this,Ze,nd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sd(O(this,Ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sd(O(this,Ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,Ze,od).call(this),ze(this,Ze,id).call(this),O(this,Ve).removeObserver(this)}setOptions(r){const o=this.options,i=O(this,Ve);if(this.options=O(this,lr).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kr(this.options.enabled,O(this,Ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,Ze,ad).call(this),O(this,Ve).setOptions(this.options),o._defaulted&&!ec(this.options,o)&&O(this,lr).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Ve),observer:this});const a=this.hasListeners();a&&_p(O(this,Ve),i,this.options,o)&&ze(this,Ze,Pl).call(this),this.updateResult(),a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||cs(this.options.staleTime,O(this,Ve))!==cs(o.staleTime,O(this,Ve)))&&ze(this,Ze,ed).call(this);const d=ze(this,Ze,td).call(this);a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||d!==O(this,Ko))&&ze(this,Ze,rd).call(this,d)}getOptimisticResult(r){const o=O(this,lr).getQueryCache().build(O(this,lr),r),i=this.createResult(o,r);return Vv(this,i)&&(he(this,Xt,i),he(this,Es,this.options),he(this,Zi,O(this,Ve).state)),i}getCurrentResult(){return O(this,Xt)}trackResult(r,o){return new Proxy(r,{get:(i,a)=>(this.trackProp(a),o==null||o(a),Reflect.get(i,a))})}trackProp(r){O(this,Rs).add(r)}getCurrentQuery(){return O(this,Ve)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const o=O(this,lr).defaultQueryOptions(r),i=O(this,lr).getQueryCache().build(O(this,lr),o);return i.fetch().then(()=>this.createResult(i,o))}fetch(r){return ze(this,Ze,Pl).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Xt)))}createResult(r,o){var ae;const i=O(this,Ve),a=this.options,d=O(this,Xt),h=O(this,Zi),v=O(this,Es),x=r!==i?r.state:O(this,Hl),{state:R}=r;let E={...R},F=!1,M;if(o._optimisticResults){const Fe=this.hasListeners(),Ne=!Fe&&Dp(r,o),_e=Fe&&_p(r,i,o,a);(Ne||_e)&&(E={...E,...im(R.data,r.options)}),o._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:B,errorUpdatedAt:D,status:P}=E;M=E.data;let I=!1;if(o.placeholderData!==void 0&&M===void 0&&P==="pending"){let Fe;d!=null&&d.isPlaceholderData&&o.placeholderData===(v==null?void 0:v.placeholderData)?(Fe=d.data,I=!0):Fe=typeof o.placeholderData=="function"?o.placeholderData((ae=O(this,Ts))==null?void 0:ae.state.data,O(this,Ts)):o.placeholderData,Fe!==void 0&&(P="success",M=Kf(d==null?void 0:d.data,Fe,o),F=!0)}if(o.select&&M!==void 0&&!I)if(d&&M===(h==null?void 0:h.data)&&o.select===O(this,Wl))M=O(this,Cs);else try{he(this,Wl,o.select),M=o.select(M),M=Kf(d==null?void 0:d.data,M,o),he(this,Cs,M),he(this,Jo,null)}catch(Fe){he(this,Jo,Fe)}O(this,Jo)&&(B=O(this,Jo),M=O(this,Cs),D=Date.now(),P="error");const W=E.fetchStatus==="fetching",U=P==="pending",q=P==="error",_=U&&W,ie=M!==void 0,ee={status:P,fetchStatus:E.fetchStatus,isPending:U,isSuccess:P==="success",isError:q,isInitialLoading:_,isLoading:_,data:M,dataUpdatedAt:E.dataUpdatedAt,error:B,errorUpdatedAt:D,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>x.dataUpdateCount||E.errorUpdateCount>x.errorUpdateCount,isFetching:W,isRefetching:W&&!U,isLoadingError:q&&!ie,isPaused:E.fetchStatus==="paused",isPlaceholderData:F,isRefetchError:q&&ie,isStale:Hd(r,o),refetch:this.refetch,promise:O(this,qo)};if(this.options.experimental_prefetchInRender){const Fe=Ge=>{ee.status==="error"?Ge.reject(ee.error):ee.data!==void 0&&Ge.resolve(ee.data)},Ne=()=>{const Ge=he(this,qo,ee.promise=Zf());Fe(Ge)},_e=O(this,qo);switch(_e.status){case"pending":r.queryHash===i.queryHash&&Fe(_e);break;case"fulfilled":(ee.status==="error"||ee.data!==_e.value)&&Ne();break;case"rejected":(ee.status!=="error"||ee.error!==_e.reason)&&Ne();break}}return ee}updateResult(){const r=O(this,Xt),o=this.createResult(O(this,Ve),this.options);if(he(this,Zi,O(this,Ve).state),he(this,Es,this.options),O(this,Zi).data!==void 0&&he(this,Ts,O(this,Ve)),ec(o,r))return;he(this,Xt,o);const i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,d=typeof a=="function"?a():a;if(d==="all"||!d&&!O(this,Rs).size)return!0;const h=new Set(d??O(this,Rs));return this.options.throwOnError&&h.add("error"),Object.keys(O(this,Xt)).some(v=>{const m=v;return O(this,Xt)[m]!==r[m]&&h.has(m)})};ze(this,Ze,sm).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,Ze,nd).call(this)}},lr=new WeakMap,Ve=new WeakMap,Hl=new WeakMap,Xt=new WeakMap,Zi=new WeakMap,Es=new WeakMap,qo=new WeakMap,Jo=new WeakMap,Wl=new WeakMap,Cs=new WeakMap,Ts=new WeakMap,ea=new WeakMap,ta=new WeakMap,Ko=new WeakMap,Rs=new WeakMap,Ze=new WeakSet,Pl=function(r){ze(this,Ze,ad).call(this);let o=O(this,Ve).fetch(this.options,r);return r!=null&&r.throwOnError||(o=o.catch(qt)),o},ed=function(){ze(this,Ze,od).call(this);const r=cs(this.options.staleTime,O(this,Ve));if(ra||O(this,Xt).isStale||!Xf(r))return;const i=Kh(O(this,Xt).dataUpdatedAt,r)+1;he(this,ea,setTimeout(()=>{O(this,Xt).isStale||this.updateResult()},i))},td=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Ve)):this.options.refetchInterval)??!1},rd=function(r){ze(this,Ze,id).call(this),he(this,Ko,r),!(ra||Kr(this.options.enabled,O(this,Ve))===!1||!Xf(O(this,Ko))||O(this,Ko)===0)&&he(this,ta,setInterval(()=>{(this.options.refetchIntervalInBackground||Ud.isFocused())&&ze(this,Ze,Pl).call(this)},O(this,Ko)))},nd=function(){ze(this,Ze,ed).call(this),ze(this,Ze,rd).call(this,ze(this,Ze,td).call(this))},od=function(){O(this,ea)&&(clearTimeout(O(this,ea)),he(this,ea,void 0))},id=function(){O(this,ta)&&(clearInterval(O(this,ta)),he(this,ta,void 0))},ad=function(){const r=O(this,lr).getQueryCache().build(O(this,lr),this.options);if(r===O(this,Ve))return;const o=O(this,Ve);he(this,Ve,r),he(this,Hl,r.state),this.hasListeners()&&(o==null||o.removeObserver(this),r.addObserver(this))},sm=function(r){bt.batch(()=>{r.listeners&&this.listeners.forEach(o=>{o(O(this,Xt))}),O(this,lr).getQueryCache().notify({query:O(this,Ve),type:"observerResultsUpdated"})})},Bh);function Wv(e,r){return Kr(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function Dp(e,r){return Wv(e,r)||e.state.data!==void 0&&sd(e,r,r.refetchOnMount)}function sd(e,r,o){if(Kr(r.enabled,e)!==!1){const i=typeof o=="function"?o(e):o;return i==="always"||i!==!1&&Hd(e,r)}return!1}function _p(e,r,o,i){return(e!==r||Kr(i.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&Hd(e,o)}function Hd(e,r){return Kr(r.enabled,e)!==!1&&e.isStaleByTime(cs(r.staleTime,e))}function Vv(e,r){return!ec(e.getCurrentResult(),r)}var Zo,ei,ur,Kn,eo,qu,ld,Uh,Yv=(Uh=class extends As{constructor(o,i){super();Ie(this,eo);Ie(this,Zo);Ie(this,ei);Ie(this,ur);Ie(this,Kn);he(this,Zo,o),this.setOptions(i),this.bindMethods(),ze(this,eo,qu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){var a;const i=this.options;this.options=O(this,Zo).defaultMutationOptions(o),ec(this.options,i)||O(this,Zo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,ur),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&na(i.mutationKey)!==na(this.options.mutationKey)?this.reset():((a=O(this,ur))==null?void 0:a.state.status)==="pending"&&O(this,ur).setOptions(this.options)}onUnsubscribe(){var o;this.hasListeners()||(o=O(this,ur))==null||o.removeObserver(this)}onMutationUpdate(o){ze(this,eo,qu).call(this),ze(this,eo,ld).call(this,o)}getCurrentResult(){return O(this,ei)}reset(){var o;(o=O(this,ur))==null||o.removeObserver(this),he(this,ur,void 0),ze(this,eo,qu).call(this),ze(this,eo,ld).call(this)}mutate(o,i){var a;return he(this,Kn,i),(a=O(this,ur))==null||a.removeObserver(this),he(this,ur,O(this,Zo).getMutationCache().build(O(this,Zo),this.options)),O(this,ur).addObserver(this),O(this,ur).execute(o)}},Zo=new WeakMap,ei=new WeakMap,ur=new WeakMap,Kn=new WeakMap,eo=new WeakSet,qu=function(){var i;const o=((i=O(this,ur))==null?void 0:i.state)??am();he(this,ei,{...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset})},ld=function(o){bt.batch(()=>{var i,a,d,h,v,m,x,R;if(O(this,Kn)&&this.hasListeners()){const E=O(this,ei).variables,F=O(this,ei).context;(o==null?void 0:o.type)==="success"?((a=(i=O(this,Kn)).onSuccess)==null||a.call(i,o.data,E,F),(h=(d=O(this,Kn)).onSettled)==null||h.call(d,o.data,null,E,F)):(o==null?void 0:o.type)==="error"&&((m=(v=O(this,Kn)).onError)==null||m.call(v,o.error,E,F),(R=(x=O(this,Kn)).onSettled)==null||R.call(x,void 0,o.error,E,F))}this.listeners.forEach(E=>{E(O(this,ei))})})},Uh),lm=de.createContext(void 0),um=e=>{const r=de.useContext(lm);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Gv=({client:e,children:r})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Y.jsx(lm.Provider,{value:e,children:r})),cm=de.createContext(!1),Qv=()=>de.useContext(cm);cm.Provider;function Xv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var qv=de.createContext(Xv()),Jv=()=>de.useContext(qv),Kv=(e,r)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(r.isReset()||(e.retryOnMount=!1))},Zv=e=>{de.useEffect(()=>{e.clearReset()},[e])},ey=({result:e,errorResetBoundary:r,throwOnError:o,query:i,suspense:a})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||em(o,[e.error,i])),ty=e=>{const r=e.staleTime;e.suspense&&(e.staleTime=typeof r=="function"?(...o)=>Math.max(r(...o),1e3):Math.max(r??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},ry=(e,r)=>e.isLoading&&e.isFetching&&!r,ny=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,Lp=(e,r,o)=>r.fetchOptimistic(e).catch(()=>{o.clearReset()});function oy(e,r,o){var E,F,M,B,D;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const i=um(o),a=Qv(),d=Jv(),h=i.defaultQueryOptions(e);(F=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||F.call(E,h),process.env.NODE_ENV!=="production"&&(h.queryFn||console.error(`[${h.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),h._optimisticResults=a?"isRestoring":"optimistic",ty(h),Kv(h,d),Zv(d);const v=!i.getQueryCache().get(h.queryHash),[m]=de.useState(()=>new r(i,h)),x=m.getOptimisticResult(h),R=!a&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(P=>{const I=R?m.subscribe(bt.batchCalls(P)):qt;return m.updateResult(),I},[m,R]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),de.useEffect(()=>{m.setOptions(h)},[h,m]),ny(h,x))throw Lp(h,m,d);if(ey({result:x,errorResetBoundary:d,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw x.error;if((B=(M=i.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||B.call(M,h,x),h.experimental_prefetchInRender&&!ra&&ry(x,a)){const P=v?Lp(h,m,d):(D=i.getQueryCache().get(h.queryHash))==null?void 0:D.promise;P==null||P.catch(qt).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?x:m.trackResult(x)}function Wd(e,r){return oy(e,Hv,r)}function fm(e,r){const o=um(r),[i]=de.useState(()=>new Yv(o,e));de.useEffect(()=>{i.setOptions(e)},[i,e]);const a=de.useSyncExternalStore(de.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=de.useCallback((h,v)=>{i.mutate(h,v).catch(qt)},[i]);if(a.error&&em(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:d,mutateAsync:a.mutate}}const Vd=V.createContext(null);Vd.Provider;const Is=()=>V.useContext(Vd),dm=({children:e})=>{const[r]=V.useState(new Uv);return Y.jsx(Vd.Provider,{value:{queryClient:r},children:Y.jsx(Gv,{client:r,children:e})})},ut={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},pm="https://marketplace.confidence.com/api",Yl=pm+"/confidence",jp=pm+"/dropbox/prod",iy=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Yl}/playbook-task-complete`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},ay=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>iy(i)},e);return{completeTask:async i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task completed successfully")},onError:a=>{console.error("Error completing task:",a)}}),...r}},sy=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Yl}/playbook-task-start`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},ly=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>await sy(i)},e);return{startTask:i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task started successfully")},onError:a=>{console.error("Error starting task:",a)}}),...r}},hm=(e,r)=>{const{queryClient:o}=Is(),i=Wd({initialData:{},queryFn:()=>o.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),a=v=>{var m;return((m=i.data)==null?void 0:m[v.toString()])??!1},d=(v,m)=>{var x;o.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[v]:m!==void 0?m:!a(v)})),(x=r==null?void 0:r.onTaskExpanded)==null||x.call(r,v,a(v))},h=V.useMemo(()=>Object.values(i.data??{}).some(v=>v),[i.data]);return{isTaskExpanded:a,toggleTaskExpanded:d,isAtLeastOneTaskExpanded:h}},uy=(e,r)=>{const{queryClient:o}=Is(),{completeTask:i}=ay(),{startTask:a}=ly(),{toggleTaskExpanded:d}=hm(e);return{completeTask:async(m,x)=>{const{status:R}=await i(m.toString());R&&(d(m,!1),o.setQueryData(["playbook",+e],E=>{if(!E)return E;const F=E.tasks.map(M=>M.sequenceOrder===x+1&&r.quickComplete?{...M,workflowStatus:ut.IN_PROGRESS}:M.taskInstanceId===m?{...M,workflowStatus:R}:M);return{...E,tasks:F}}))},startTask:async m=>{const{status:x}=await a(m.toString());x&&(d(m,!0),o.setQueryData(["playbook",+e],R=>{if(!R)return R;const E=R.tasks.map(F=>F.taskInstanceId===m?{...F,workflowStatus:x}:F);return{...R,tasks:E}}))}}},cy=e=>{var a;const{queryClient:r}=Is(),o=Wd({queryFn:async()=>{const d=new Headers,h=await fetch(`${Yl}/playbook-details`,{method:"POST",cache:"no-store",headers:d,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!h.ok)throw new Error("Network response was not ok");const v=await h.json();if(v.error)throw new Error(v.error);return v},queryKey:["playbook",+e]},r),i=uy(e,{quickComplete:(a=o.data)==null?void 0:a.quickComplete});return{playbook:o.data,isLoading:o.isLoading,error:o.error,actions:i}},Il={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE"},fy={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},dy=e=>{const{taskStatus:r,canStart:o}=e;return{buttons:V.useMemo(()=>r===ut.OPEN&&o?[Il.START]:r===ut.IN_PROGRESS?[Il.PAUSE,Il.COMPLETE]:r===ut.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},mm=async e=>{const r=new Headers;return r.append("Content-Type","application/json"),await(await fetch(`${Yl}/playbook-initiate`,{method:"POST",headers:r,body:JSON.stringify(e)})).json()},fc='/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */@layer properties{.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-3{top:calc(var(--spacing)*3)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.z-2{z-index:2!important}.z-50{z-index:50!important}.z-\\[99999999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media (min-width:40rem){.container{max-width:40rem!important}}@media (min-width:48rem){.container{max-width:48rem!important}}@media (min-width:64rem){.container{max-width:64rem!important}}@media (min-width:80rem){.container{max-width:80rem!important}}@media (min-width:96rem){.container{max-width:96rem!important}}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-\\[18px\\]{height:18px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[400px\\]{width:400px!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.rotate-180{rotate:180deg!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-600{border-color:#218838!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.text-center{text-align:center!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-danger-500{color:#dc3545!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-warning-500{color:#ffc107!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.line-through{text-decoration-line:line-through!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media (hover:hover){.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media (min-width:48rem){.md\\:min-w-fit{min-width:fit-content!important}}}.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}',Yd="-",py=e=>{const r=my(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:h=>{const v=h.split(Yd);return v[0]===""&&v.length!==1&&v.shift(),gm(v,r)||hy(h)},getConflictingClassGroupIds:(h,v)=>{const m=o[h]||[];return v&&i[h]?[...m,...i[h]]:m}}},gm=(e,r)=>{var h;if(e.length===0)return r.classGroupId;const o=e[0],i=r.nextPart.get(o),a=i?gm(e.slice(1),i):void 0;if(a)return a;if(r.validators.length===0)return;const d=e.join(Yd);return(h=r.validators.find(({validator:v})=>v(d)))==null?void 0:h.classGroupId},Np=/^\[(.+)\]$/,hy=e=>{if(Np.test(e)){const r=Np.exec(e)[1],o=r==null?void 0:r.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},my=e=>{const{theme:r,classGroups:o}=e,i={nextPart:new Map,validators:[]};for(const a in o)ud(o[a],i,a,r);return i},ud=(e,r,o,i)=>{e.forEach(a=>{if(typeof a=="string"){const d=a===""?r:$p(r,a);d.classGroupId=o;return}if(typeof a=="function"){if(gy(a)){ud(a(i),r,o,i);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([d,h])=>{ud(h,$p(r,d),o,i)})})},$p=(e,r)=>{let o=e;return r.split(Yd).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},gy=e=>e.isThemeGetter,vy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,i=new Map;const a=(d,h)=>{o.set(d,h),r++,r>e&&(r=0,i=o,o=new Map)};return{get(d){let h=o.get(d);if(h!==void 0)return h;if((h=i.get(d))!==void 0)return a(d,h),h},set(d,h){o.has(d)?o.set(d,h):a(d,h)}}},cd="!",fd=":",yy=fd.length,by=e=>{const{prefix:r,experimentalParseClassName:o}=e;let i=a=>{const d=[];let h=0,v=0,m=0,x;for(let B=0;B<a.length;B++){let D=a[B];if(h===0&&v===0){if(D===fd){d.push(a.slice(m,B)),m=B+yy;continue}if(D==="/"){x=B;continue}}D==="["?h++:D==="]"?h--:D==="("?v++:D===")"&&v--}const R=d.length===0?a:a.substring(m),E=xy(R),F=E!==R,M=x&&x>m?x-m:void 0;return{modifiers:d,hasImportantModifier:F,baseClassName:E,maybePostfixModifierPosition:M}};if(r){const a=r+fd,d=i;i=h=>h.startsWith(a)?d(h.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(o){const a=i;i=d=>o({className:d,parseClassName:a})}return i},xy=e=>e.endsWith(cd)?e.substring(0,e.length-1):e.startsWith(cd)?e.substring(1):e,wy=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let d=[];return i.forEach(h=>{h[0]==="["||r[h]?(a.push(...d.sort(),h),d=[]):d.push(h)}),a.push(...d.sort()),a}},Sy=e=>({cache:vy(e.cacheSize),parseClassName:by(e),sortModifiers:wy(e),...py(e)}),ky=/\s+/,Ey=(e,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:d}=r,h=[],v=e.trim().split(ky);let m="";for(let x=v.length-1;x>=0;x-=1){const R=v[x],{isExternal:E,modifiers:F,hasImportantModifier:M,baseClassName:B,maybePostfixModifierPosition:D}=o(R);if(E){m=R+(m.length>0?" "+m:m);continue}let P=!!D,I=i(P?B.substring(0,D):B);if(!I){if(!P){m=R+(m.length>0?" "+m:m);continue}if(I=i(B),!I){m=R+(m.length>0?" "+m:m);continue}P=!1}const W=d(F).join(":"),U=M?W+cd:W,q=U+I;if(h.includes(q))continue;h.push(q);const _=a(I,P);for(let ie=0;ie<_.length;++ie){const ce=_[ie];h.push(U+ce)}m=R+(m.length>0?" "+m:m)}return m};function Cy(){let e=0,r,o,i="";for(;e<arguments.length;)(r=arguments[e++])&&(o=vm(r))&&(i&&(i+=" "),i+=o);return i}const vm=e=>{if(typeof e=="string")return e;let r,o="";for(let i=0;i<e.length;i++)e[i]&&(r=vm(e[i]))&&(o&&(o+=" "),o+=r);return o};function Ty(e,...r){let o,i,a,d=h;function h(m){const x=r.reduce((R,E)=>E(R),e());return o=Sy(x),i=o.cache.get,a=o.cache.set,d=v,v(m)}function v(m){const x=i(m);if(x)return x;const R=Ey(m,o);return a(m,R),R}return function(){return d(Cy.apply(null,arguments))}}const yt=e=>{const r=o=>o[e]||[];return r.isThemeGetter=!0,r},ym=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ry=/^\d+\/\d+$/,Py=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ay=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Iy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Oy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,is=e=>Ry.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Uo=e=>!!e&&Number.isInteger(Number(e)),Ff=e=>e.endsWith("%")&&Be(e.slice(0,-1)),Xn=e=>Py.test(e),My=()=>!0,Dy=e=>Ay.test(e)&&!Iy.test(e),xm=()=>!1,_y=e=>Oy.test(e),Ly=e=>Fy.test(e),jy=e=>!ve(e)&&!ye(e),Ny=e=>Os(e,km,xm),ve=e=>ym.test(e),Vi=e=>Os(e,Em,Dy),Mf=e=>Os(e,Hy,Be),zp=e=>Os(e,wm,xm),$y=e=>Os(e,Sm,Ly),Vu=e=>Os(e,Cm,_y),ye=e=>bm.test(e),Tl=e=>Fs(e,Em),zy=e=>Fs(e,Wy),Bp=e=>Fs(e,wm),By=e=>Fs(e,km),Uy=e=>Fs(e,Sm),Yu=e=>Fs(e,Cm,!0),Os=(e,r,o)=>{const i=ym.exec(e);return i?i[1]?r(i[1]):o(i[2]):!1},Fs=(e,r,o=!1)=>{const i=bm.exec(e);return i?i[1]?r(i[1]):o:!1},wm=e=>e==="position"||e==="percentage",Sm=e=>e==="image"||e==="url",km=e=>e==="length"||e==="size"||e==="bg-size",Em=e=>e==="length",Hy=e=>e==="number",Wy=e=>e==="family-name",Cm=e=>e==="shadow",Vy=()=>{const e=yt("color"),r=yt("font"),o=yt("text"),i=yt("font-weight"),a=yt("tracking"),d=yt("leading"),h=yt("breakpoint"),v=yt("container"),m=yt("spacing"),x=yt("radius"),R=yt("shadow"),E=yt("inset-shadow"),F=yt("text-shadow"),M=yt("drop-shadow"),B=yt("blur"),D=yt("perspective"),P=yt("aspect"),I=yt("ease"),W=yt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...q(),ye,ve],ie=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto","contain","none"],ee=()=>[ye,ve,m],ae=()=>[is,"full","auto",...ee()],Fe=()=>[Uo,"none","subgrid",ye,ve],Ne=()=>["auto",{span:["full",Uo,ye,ve]},Uo,ye,ve],_e=()=>[Uo,"auto",ye,ve],Ge=()=>["auto","min","max","fr",ye,ve],Qe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],Ce=()=>["auto",...ee()],je=()=>[is,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ee()],Z=()=>[e,ye,ve],be=()=>[...q(),Bp,zp,{position:[ye,ve]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",By,Ny,{size:[ye,ve]}],fe=()=>[Ff,Tl,Vi],me=()=>["","none","full",x,ye,ve],pe=()=>["",Be,Tl,Vi],ge=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Be,Ff,Bp,zp],Te=()=>["","none",B,ye,ve],Ee=()=>["none",Be,ye,ve],Re=()=>["none",Be,ye,ve],$e=()=>[Be,ye,ve],oe=()=>[is,"full",...ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[My],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[jy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",Be],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",is,ve,ye,P]}],container:["container"],columns:[{columns:[Be,ve,ye,v]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Uo,"auto",ye,ve]}],basis:[{basis:[is,"full","auto",v,...ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,is,"auto","initial","none",ve]}],grow:[{grow:["",Be,ye,ve]}],shrink:[{shrink:["",Be,ye,ve]}],order:[{order:[Uo,"first","last","none",ye,ve]}],"grid-cols":[{"grid-cols":Fe()}],"col-start-end":[{col:Ne()}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":Fe()}],"row-start-end":[{row:Ne()}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:ee()}],"gap-x":[{"gap-x":ee()}],"gap-y":[{"gap-y":ee()}],"justify-content":[{justify:[...Qe(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Qe()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Qe()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:ee()}],px:[{px:ee()}],py:[{py:ee()}],ps:[{ps:ee()}],pe:[{pe:ee()}],pt:[{pt:ee()}],pr:[{pr:ee()}],pb:[{pb:ee()}],pl:[{pl:ee()}],m:[{m:Ce()}],mx:[{mx:Ce()}],my:[{my:Ce()}],ms:[{ms:Ce()}],me:[{me:Ce()}],mt:[{mt:Ce()}],mr:[{mr:Ce()}],mb:[{mb:Ce()}],ml:[{ml:Ce()}],"space-x":[{"space-x":ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:je()}],w:[{w:[v,"screen",...je()]}],"min-w":[{"min-w":[v,"screen","none",...je()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...je()]}],h:[{h:["screen",...je()]}],"min-h":[{"min-h":["screen","none",...je()]}],"max-h":[{"max-h":["screen",...je()]}],"font-size":[{text:["base",o,Tl,Vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ye,Mf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ff,ve]}],"font-family":[{font:[zy,ve,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ye,ve]}],"line-clamp":[{"line-clamp":[Be,"none",ye,Mf]}],leading:[{leading:[d,...ee()]}],"list-image":[{"list-image":["none",ye,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",ye,Vi]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Be,"auto",ye,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Uo,ye,ve],radial:["",ye,ve],conic:[Uo,ye,ve]},Uy,$y]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,ye,ve]}],"outline-w":[{outline:["",Be,Tl,Vi]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",R,Yu,Vu]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",E,Yu,Vu]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Be,Vi]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",F,Yu,Vu]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Be,ye,ve]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[ye,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ve]}],filter:[{filter:["","none",ye,ve]}],blur:[{blur:Te()}],brightness:[{brightness:[Be,ye,ve]}],contrast:[{contrast:[Be,ye,ve]}],"drop-shadow":[{"drop-shadow":["","none",M,Yu,Vu]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Be,ye,ve]}],"hue-rotate":[{"hue-rotate":[Be,ye,ve]}],invert:[{invert:["",Be,ye,ve]}],saturate:[{saturate:[Be,ye,ve]}],sepia:[{sepia:["",Be,ye,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ve]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,ye,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Be,ye,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,ye,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,ye,ve]}],"backdrop-invert":[{"backdrop-invert":["",Be,ye,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Be,ye,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Be,ye,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,ye,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ee()}],"border-spacing-x":[{"border-spacing-x":ee()}],"border-spacing-y":[{"border-spacing-y":ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",ye,ve]}],ease:[{ease:["linear","initial",I,ye,ve]}],delay:[{delay:[Be,ye,ve]}],animate:[{animate:["none",W,ye,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,ye,ve]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[ye,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ve]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Be,Tl,Vi,Mf]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fs=Ty(Vy);function Tm(e){var r,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(o=Tm(e[r]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function Ll(){for(var e,r,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(r=Tm(e))&&(i&&(i+=" "),i+=r);return i}function gt(...e){return fs(Ll(e))}const Yy="whitespace-nowrap font-normal flex items-center justify-center",Gy="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",Qy="disabled:opacity-15 disabled:pointer-events-none",Rm=e=>e==="grayLight"||e==="warning",Pm=(e,r)=>!r||r==="none"?"":e(),Xy=(e,r)=>Pm(()=>{const o=e==="gray400"?"gray":e,i=Rm(o)?"active:text-black":"active:text-white";return e==="primary"?r?`bg-${o}-800 text-white`:`hover:bg-${o}-800 active:bg-${o}-800 hover:text-white ${i}`:o==="grayDark"?r?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${i}`:o==="grayLight"?r?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${i}`:e==="gray400"?r?`bg-${o}-500 text-white`:`hover:bg-${o}-500 active:bg-${o}-500 hover:text-white ${i}`:r?`bg-${o}-700 text-white`:`hover:bg-${o}-600 active:bg-${o}-700 hover:text-white ${i}`},e),qy=e=>Pm(()=>{const r=Rm(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${r}`:e==="gray400"?`bg-gray-400 ${r}`:`bg-${e}-500 ${r}`},e),Jy=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",Ky=(e,r)=>e&&{dark:r?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:r?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:r?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:r?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:r?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:r?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:r?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:r?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:r?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:r?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:r?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:r?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":r?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:r?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:r?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:r?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",Zy=(e,r)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${r?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${r?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${r?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${r?"":"text-gray-400"}`:`border border-${e}-500 ${r?"":`text-${e}-500`}`,eb=(e,r)=>({solid:qy(e),link:Jy(e),linkHoverSolid:Ky(e,r),outline:Zy(e,r)}),tb={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},rb={none:"",default:"rounded",pill:"rounded-pill"},nb=({active:e=!1,children:r,color:o="primary",size:i="normal",category:a="solid",className:d,type:h="button",rounded:v="default",style:m={},primaryColor:x,...R},E)=>{var U;const F=Qy,M=/link/.test(a)?null:Xy(o,e),B=Gy,D=tb[i],P=(U=eb(o,e))==null?void 0:U[a],I=fs(M,P),W=rb[v];return Y.jsx("button",{...R,style:{...m,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:x?x+"!important":void 0},type:h,ref:E,className:fs(Yy,B,F,D,I,W,d,"cursor-pointer"),children:r})},jl=V.forwardRef(nb),ob=({isOpen:e,close:r,title:o,dismissOptions:i,confirmOptions:a,children:d,className:h})=>Y.jsx(Y.Fragment,{children:e&&Vl.createPortal(Y.jsxs(cc.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",h),children:[Y.jsx("div",{className:"fixed inset-0 bg-black/30"}),Y.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:Y.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[o&&Y.jsx("div",{className:" text-gray-900 p-4",children:o}),Y.jsx("div",{className:"p-4",children:d}),i||a?Y.jsxs("div",{className:"flex gap-4 p-4",children:[i?Y.jsx(jl,{className:"flex-1",onClick:()=>{i.onClick(),r()},size:"small",color:"secondary",children:i.label}):Y.jsx(Y.Fragment,{}),a?Y.jsx(jl,{className:"flex-1",disabled:a.disabled,onClick:()=>{a.onClick(),r()},size:"small",color:"primary",children:a.label}):Y.jsx(Y.Fragment,{})]}):Y.jsx(Y.Fragment,{})]})}),Y.jsx("style",{type:"text/css",children:fc})]}),document.body,"confidence-modal")}),Am=typeof document<"u"?V.useLayoutEffect:()=>{};function ib(e){const r=V.useRef(null);return Am(()=>{r.current=e},[e]),V.useCallback((...o)=>{const i=r.current;return i==null?void 0:i(...o)},[])}const ai=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Yi=e=>e&&"window"in e&&e.window===e?e:ai(e).defaultView||window;function ab(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function sb(e){return ab(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let lb=!1;function Gd(){return lb}function Im(e,r){if(!Gd())return r&&e?e.contains(r):!1;if(!e||!r)return!1;let o=r;for(;o!==null;){if(o===e)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:sb(o)?o=o.host:o=o.parentNode}return!1}const dd=(e=document)=>{var r;if(!Gd())return e.activeElement;let o=e.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function Om(e){return Gd()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function dc(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function Qd(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function oo(e){if(process.env.NODE_ENV==="test")return e;let r=null;return()=>(r==null&&(r=e()),r)}const Xd=oo(function(){return Qd(/^Mac/i)}),ub=oo(function(){return Qd(/^iPhone/i)}),cb=oo(function(){return Qd(/^iPad/i)||Xd()&&navigator.maxTouchPoints>1}),fb=oo(function(){return ub()||cb()});oo(function(){return Xd()||fb()});oo(function(){return dc(/AppleWebKit/i)&&!db()});const db=oo(function(){return dc(/Chrome/i)}),pb=oo(function(){return dc(/Android/i)});oo(function(){return dc(/Firefox/i)});function Fm(){let e=V.useRef(new Map),r=V.useCallback((a,d,h,v)=>{let m=v!=null&&v.once?(...x)=>{e.current.delete(h),h(...x)}:h;e.current.set(h,{type:d,eventTarget:a,fn:m,options:v}),a.addEventListener(d,m,v)},[]),o=V.useCallback((a,d,h,v)=>{var m;let x=((m=e.current.get(h))===null||m===void 0?void 0:m.fn)||h;a.removeEventListener(d,x,v),e.current.delete(h)},[]),i=V.useCallback(()=>{e.current.forEach((a,d)=>{o(a.eventTarget,a.type,d,a.options)})},[o]);return V.useEffect(()=>i,[i]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:i}}function hb(e){return e.mozInputSource===0&&e.isTrusted?!0:pb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Mm(e){let r=e;return r.nativeEvent=e,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function mb(e,r){Object.defineProperty(e,"target",{value:r}),Object.defineProperty(e,"currentTarget",{value:r})}function Dm(e){let r=V.useRef({isFocused:!1,observer:null});Am(()=>{const i=r.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let o=ib(i=>{e==null||e(i)});return V.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){r.current.isFocused=!0;let a=i.target,d=h=>{if(r.current.isFocused=!1,a.disabled){let v=Mm(h);o(v)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};a.addEventListener("focusout",d,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&a.disabled){var h;(h=r.current.observer)===null||h===void 0||h.disconnect();let v=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:v})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:v}))}}),r.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let gb=!1,Gl=null,pd=new Set,Ol=new Map,oa=!1,hd=!1;const vb={Tab:!0,Escape:!0};function qd(e,r){for(let o of pd)o(e,r)}function yb(e){return!(e.metaKey||!Xd()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nc(e){oa=!0,yb(e)&&(Gl="keyboard",qd("keyboard",e))}function Dr(e){Gl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(oa=!0,qd("pointer",e))}function _m(e){hb(e)&&(oa=!0,Gl="virtual")}function Lm(e){e.target===window||e.target===document||gb||!e.isTrusted||(!oa&&!hd&&(Gl="virtual",qd("virtual",e)),oa=!1,hd=!1)}function jm(){oa=!1,hd=!0}function md(e){if(typeof window>"u"||typeof document>"u"||Ol.get(Yi(e)))return;const r=Yi(e),o=ai(e);let i=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){oa=!0,i.apply(this,arguments)},o.addEventListener("keydown",nc,!0),o.addEventListener("keyup",nc,!0),o.addEventListener("click",_m,!0),r.addEventListener("focus",Lm,!0),r.addEventListener("blur",jm,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",Dr,!0),o.addEventListener("pointermove",Dr,!0),o.addEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",Dr,!0),o.addEventListener("mousemove",Dr,!0),o.addEventListener("mouseup",Dr,!0)),r.addEventListener("beforeunload",()=>{Nm(e)},{once:!0}),Ol.set(r,{focus:i})}const Nm=(e,r)=>{const o=Yi(e),i=ai(e);r&&i.removeEventListener("DOMContentLoaded",r),Ol.has(o)&&(o.HTMLElement.prototype.focus=Ol.get(o).focus,i.removeEventListener("keydown",nc,!0),i.removeEventListener("keyup",nc,!0),i.removeEventListener("click",_m,!0),o.removeEventListener("focus",Lm,!0),o.removeEventListener("blur",jm,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",Dr,!0),i.removeEventListener("pointermove",Dr,!0),i.removeEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(i.removeEventListener("mousedown",Dr,!0),i.removeEventListener("mousemove",Dr,!0),i.removeEventListener("mouseup",Dr,!0)),Ol.delete(o))};function bb(e){const r=ai(e);let o;return r.readyState!=="loading"?md(e):(o=()=>{md(e)},r.addEventListener("DOMContentLoaded",o)),()=>Nm(e,o)}typeof document<"u"&&bb();function $m(){return Gl!=="pointer"}const xb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wb(e,r,o){let i=ai(o==null?void 0:o.target);const a=typeof window<"u"?Yi(o==null?void 0:o.target).HTMLInputElement:HTMLInputElement,d=typeof window<"u"?Yi(o==null?void 0:o.target).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Yi(o==null?void 0:o.target).HTMLElement:HTMLElement,v=typeof window<"u"?Yi(o==null?void 0:o.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof a&&!xb.has(i.activeElement.type)||i.activeElement instanceof d||i.activeElement instanceof h&&i.activeElement.isContentEditable,!(e&&r==="keyboard"&&o instanceof v&&!vb[o.key])}function Sb(e,r,o){md(),V.useEffect(()=>{let i=(a,d)=>{wb(!!(o!=null&&o.isTextInput),a,d)&&e($m())};return pd.add(i),()=>{pd.delete(i)}},r)}function kb(e){let{isDisabled:r,onFocus:o,onBlur:i,onFocusChange:a}=e;const d=V.useCallback(m=>{if(m.target===m.currentTarget)return i&&i(m),a&&a(!1),!0},[i,a]),h=Dm(d),v=V.useCallback(m=>{const x=ai(m.target),R=x?dd(x):dd();m.target===m.currentTarget&&R===Om(m.nativeEvent)&&(o&&o(m),a&&a(!0),h(m))},[a,o,h]);return{focusProps:{onFocus:!r&&(o||a||i)?v:void 0,onBlur:!r&&(i||a)?d:void 0}}}function Eb(e){let{isDisabled:r,onBlurWithin:o,onFocusWithin:i,onFocusWithinChange:a}=e,d=V.useRef({isFocusWithin:!1}),{addGlobalListener:h,removeAllGlobalListeners:v}=Fm(),m=V.useCallback(E=>{E.currentTarget.contains(E.target)&&d.current.isFocusWithin&&!E.currentTarget.contains(E.relatedTarget)&&(d.current.isFocusWithin=!1,v(),o&&o(E),a&&a(!1))},[o,a,d,v]),x=Dm(m),R=V.useCallback(E=>{if(!E.currentTarget.contains(E.target))return;const F=ai(E.target),M=dd(F);if(!d.current.isFocusWithin&&M===Om(E.nativeEvent)){i&&i(E),a&&a(!0),d.current.isFocusWithin=!0,x(E);let B=E.currentTarget;h(F,"focus",D=>{if(d.current.isFocusWithin&&!Im(B,D.target)){let P=new F.defaultView.FocusEvent("blur",{relatedTarget:D.target});mb(P,B);let I=Mm(P);m(I)}},{capture:!0})}},[i,a,x,h,m]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:R,onBlur:m}}}let oc=!1,Df=0;function gd(){oc=!0,setTimeout(()=>{oc=!1},50)}function Up(e){e.pointerType==="touch"&&gd()}function Cb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",gd),Df++,()=>{Df--,!(Df>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",gd))}}function Tb(e){let{onHoverStart:r,onHoverChange:o,onHoverEnd:i,isDisabled:a}=e,[d,h]=V.useState(!1),v=V.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;V.useEffect(Cb,[]);let{addGlobalListener:m,removeAllGlobalListeners:x}=Fm(),{hoverProps:R,triggerHoverEnd:E}=V.useMemo(()=>{let F=(D,P)=>{if(v.pointerType=P,a||P==="touch"||v.isHovered||!D.currentTarget.contains(D.target))return;v.isHovered=!0;let I=D.currentTarget;v.target=I,m(ai(D.target),"pointerover",W=>{v.isHovered&&v.target&&!Im(v.target,W.target)&&M(W,W.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:I,pointerType:P}),o&&o(!0),h(!0)},M=(D,P)=>{let I=v.target;v.pointerType="",v.target=null,!(P==="touch"||!v.isHovered||!I)&&(v.isHovered=!1,x(),i&&i({type:"hoverend",target:I,pointerType:P}),o&&o(!1),h(!1))},B={};return typeof PointerEvent<"u"?(B.onPointerEnter=D=>{oc&&D.pointerType==="mouse"||F(D,D.pointerType)},B.onPointerLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,D.pointerType)}):process.env.NODE_ENV==="test"&&(B.onTouchStart=()=>{v.ignoreEmulatedMouseEvents=!0},B.onMouseEnter=D=>{!v.ignoreEmulatedMouseEvents&&!oc&&F(D,"mouse"),v.ignoreEmulatedMouseEvents=!1},B.onMouseLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,"mouse")}),{hoverProps:B,triggerHoverEnd:M}},[r,o,i,a,v,m,x]);return V.useEffect(()=>{a&&E({currentTarget:v.target},v.pointerType)},[a]),{hoverProps:R,isHovered:d}}function Rb(e={}){let{autoFocus:r=!1,isTextInput:o,within:i}=e,a=V.useRef({isFocused:!1,isFocusVisible:r||$m()}),[d,h]=V.useState(!1),[v,m]=V.useState(()=>a.current.isFocused&&a.current.isFocusVisible),x=V.useCallback(()=>m(a.current.isFocused&&a.current.isFocusVisible),[]),R=V.useCallback(M=>{a.current.isFocused=M,h(M),x()},[x]);Sb(M=>{a.current.isFocusVisible=M,x()},[],{isTextInput:o});let{focusProps:E}=kb({isDisabled:i,onFocusChange:R}),{focusWithinProps:F}=Eb({isDisabled:!i,onFocusWithinChange:R});return{isFocused:d,isFocusVisible:v,focusProps:i?F:E}}var Pb=Object.defineProperty,Ab=(e,r,o)=>r in e?Pb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,_f=(e,r,o)=>(Ab(e,typeof r!="symbol"?r+"":r,o),o);let Ib=class{constructor(){_f(this,"current",this.detect()),_f(this,"handoffState","pending"),_f(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ob=new Ib,Jd=(e,r)=>{Ob.isServer?V.useEffect(e,r):V.useLayoutEffect(e,r)};function Fb(e){let r=V.useRef(e);return Jd(()=>{r.current=e},[e]),r}let pc=function(e){let r=Fb(e);return V.useCallback((...o)=>r.current(...o),[r])},zm=V.createContext(void 0);function hc(){return V.useContext(zm)}function Mb({value:e,children:r}){return V.createElement(zm.Provider,{value:e},r)}function Hp(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Bm(e,r,...o){if(e in r){let a=r[e];return typeof a=="function"?a(...o):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Bm),i}var Db=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Db||{}),_b=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_b||{});function Ql(){let e=jb();return V.useCallback(r=>Lb({mergeRefs:e,...r}),[e])}function Lb({ourProps:e,theirProps:r,slot:o,defaultTag:i,features:a,visible:d=!0,name:h,mergeRefs:v}){v=v??Nb;let m=Um(r,e);if(d)return Gu(m,o,i,h,v);let x=a??0;if(x&2){let{static:R=!1,...E}=m;if(R)return Gu(E,o,i,h,v)}if(x&1){let{unmount:R=!0,...E}=m;return Bm(R?0:1,{0(){return null},1(){return Gu({...E,hidden:!0,style:{display:"none"}},o,i,h,v)}})}return Gu(m,o,i,h,v)}function Gu(e,r={},o,i,a){let{as:d=o,children:h,refName:v="ref",...m}=Lf(e,["unmount","static"]),x=e.ref!==void 0?{[v]:e.ref}:{},R=typeof h=="function"?h(r):h;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(r)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let E={};if(r){let F=!1,M=[];for(let[B,D]of Object.entries(r))typeof D=="boolean"&&(F=!0),D===!0&&M.push(B.replace(/([A-Z])/g,P=>`-${P.toLowerCase()}`));if(F){E["data-headlessui-state"]=M.join(" ");for(let B of M)E[`data-${B}`]=""}}if(d===V.Fragment&&(Object.keys(as(m)).length>0||Object.keys(as(E)).length>0))if(!V.isValidElement(R)||Array.isArray(R)&&R.length>1){if(Object.keys(as(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(as(m)).concat(Object.keys(as(E))).map(F=>` - ${F}`).join(`
|
|
126
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
123
|
+
*/var xg,Ib;function Wk(){if(Ib)return xg;Ib=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(s).map(function(m){return s[m]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xg=o()?Object.assign:function(i,s){for(var c,u=r(i),f,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){f=e(c);for(var v=0;v<f.length;v++)n.call(c,f[v])&&(u[f[v]]=c[f[v]])}}return u},xg}var wg,Ob;function ey(){if(Ob)return wg;Ob=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wg=e,wg}var Sg,Mb;function dS(){return Mb||(Mb=1,Sg=Function.call.bind(Object.prototype.hasOwnProperty)),Sg}var Cg,Nb;function $k(){if(Nb)return Cg;Nb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ey(),n={},r=dS();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,c,u,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var h;try{if(typeof i[m]!="function"){var v=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}h=i[m](s,m,u,c,null,t)}catch(C){h=C}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var w=f?f():"";e("Failed "+c+" type: "+h.message+(w??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Cg=o,Cg}var Ag,Lb;function Hk(){if(Lb)return Ag;Lb=1;var e=fS(),t=Wk(),n=ey(),r=dS(),o=$k(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return Ag=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(ne){var re=ne&&(f&&ne[f]||ne[m]);if(typeof re=="function")return re}var v="<<anonymous>>",w={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:R(),arrayOf:O,element:L(),elementType:M(),instanceOf:U,node:G(),objectOf:$,oneOf:j,oneOfType:H,shape:pe,exact:ie};function C(ne,re){return ne===re?ne!==0||1/ne===1/re:ne!==ne&&re!==re}function A(ne,re){this.message=ne,this.data=re&&typeof re=="object"?re:{},this.stack=""}A.prototype=Error.prototype;function x(ne){if(process.env.NODE_ENV!=="production")var re={},ue=0;function me(de,ve,_e,je,ze,Be,Je){if(je=je||v,Be=Be||_e,Je!==n){if(u){var ke=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ke.name="Invariant Violation",ke}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var tt=je+":"+_e;!re[tt]&&ue<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Be+"` prop on `"+je+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),re[tt]=!0,ue++)}}return ve[_e]==null?de?ve[_e]===null?new A("The "+ze+" `"+Be+"` is marked as required "+("in `"+je+"`, but its value is `null`.")):new A("The "+ze+" `"+Be+"` is marked as required in "+("`"+je+"`, but its value is `undefined`.")):null:ne(ve,_e,je,ze,Be)}var Te=me.bind(null,!1);return Te.isRequired=me.bind(null,!0),Te}function E(ne){function re(ue,me,Te,de,ve,_e){var je=ue[me],ze=Ae(je);if(ze!==ne){var Be=Re(je);return new A("Invalid "+de+" `"+ve+"` of type "+("`"+Be+"` supplied to `"+Te+"`, expected ")+("`"+ne+"`."),{expectedType:ne})}return null}return x(re)}function R(){return x(s)}function O(ne){function re(ue,me,Te,de,ve){if(typeof ne!="function")return new A("Property `"+ve+"` of component `"+Te+"` has invalid PropType notation inside arrayOf.");var _e=ue[me];if(!Array.isArray(_e)){var je=Ae(_e);return new A("Invalid "+de+" `"+ve+"` of type "+("`"+je+"` supplied to `"+Te+"`, expected an array."))}for(var ze=0;ze<_e.length;ze++){var Be=ne(_e,ze,Te,de,ve+"["+ze+"]",n);if(Be instanceof Error)return Be}return null}return x(re)}function L(){function ne(re,ue,me,Te,de){var ve=re[ue];if(!c(ve)){var _e=Ae(ve);return new A("Invalid "+Te+" `"+de+"` of type "+("`"+_e+"` supplied to `"+me+"`, expected a single ReactElement."))}return null}return x(ne)}function M(){function ne(re,ue,me,Te,de){var ve=re[ue];if(!e.isValidElementType(ve)){var _e=Ae(ve);return new A("Invalid "+Te+" `"+de+"` of type "+("`"+_e+"` supplied to `"+me+"`, expected a single ReactElement type."))}return null}return x(ne)}function U(ne){function re(ue,me,Te,de,ve){if(!(ue[me]instanceof ne)){var _e=ne.name||v,je=Ee(ue[me]);return new A("Invalid "+de+" `"+ve+"` of type "+("`"+je+"` supplied to `"+Te+"`, expected ")+("instance of `"+_e+"`."))}return null}return x(re)}function j(ne){if(!Array.isArray(ne))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function re(ue,me,Te,de,ve){for(var _e=ue[me],je=0;je<ne.length;je++)if(C(_e,ne[je]))return null;var ze=JSON.stringify(ne,function(Je,ke){var tt=Re(ke);return tt==="symbol"?String(ke):ke});return new A("Invalid "+de+" `"+ve+"` of value `"+String(_e)+"` "+("supplied to `"+Te+"`, expected one of "+ze+"."))}return x(re)}function $(ne){function re(ue,me,Te,de,ve){if(typeof ne!="function")return new A("Property `"+ve+"` of component `"+Te+"` has invalid PropType notation inside objectOf.");var _e=ue[me],je=Ae(_e);if(je!=="object")return new A("Invalid "+de+" `"+ve+"` of type "+("`"+je+"` supplied to `"+Te+"`, expected an object."));for(var ze in _e)if(r(_e,ze)){var Be=ne(_e,ze,Te,de,ve+"."+ze,n);if(Be instanceof Error)return Be}return null}return x(re)}function H(ne){if(!Array.isArray(ne))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var re=0;re<ne.length;re++){var ue=ne[re];if(typeof ue!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(ue)+" at index "+re+"."),s}function me(Te,de,ve,_e,je){for(var ze=[],Be=0;Be<ne.length;Be++){var Je=ne[Be],ke=Je(Te,de,ve,_e,je,n);if(ke==null)return null;ke.data&&r(ke.data,"expectedType")&&ze.push(ke.data.expectedType)}var tt=ze.length>0?", expected one of type ["+ze.join(", ")+"]":"";return new A("Invalid "+_e+" `"+je+"` supplied to "+("`"+ve+"`"+tt+"."))}return x(me)}function G(){function ne(re,ue,me,Te,de){return se(re[ue])?null:new A("Invalid "+Te+" `"+de+"` supplied to "+("`"+me+"`, expected a ReactNode."))}return x(ne)}function q(ne,re,ue,me,Te){return new A((ne||"React class")+": "+re+" type `"+ue+"."+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Te+"`.")}function pe(ne){function re(ue,me,Te,de,ve){var _e=ue[me],je=Ae(_e);if(je!=="object")return new A("Invalid "+de+" `"+ve+"` of type `"+je+"` "+("supplied to `"+Te+"`, expected `object`."));for(var ze in ne){var Be=ne[ze];if(typeof Be!="function")return q(Te,de,ve,ze,Re(Be));var Je=Be(_e,ze,Te,de,ve+"."+ze,n);if(Je)return Je}return null}return x(re)}function ie(ne){function re(ue,me,Te,de,ve){var _e=ue[me],je=Ae(_e);if(je!=="object")return new A("Invalid "+de+" `"+ve+"` of type `"+je+"` "+("supplied to `"+Te+"`, expected `object`."));var ze=t({},ue[me],ne);for(var Be in ze){var Je=ne[Be];if(r(ne,Be)&&typeof Je!="function")return q(Te,de,ve,Be,Re(Je));if(!Je)return new A("Invalid "+de+" `"+ve+"` key `"+Be+"` supplied to `"+Te+"`.\nBad object: "+JSON.stringify(ue[me],null," ")+`
|
|
124
|
+
Valid keys: `+JSON.stringify(Object.keys(ne),null," "));var ke=Je(_e,Be,Te,de,ve+"."+Be,n);if(ke)return ke}return null}return x(re)}function se(ne){switch(typeof ne){case"number":case"string":case"undefined":return!0;case"boolean":return!ne;case"object":if(Array.isArray(ne))return ne.every(se);if(ne===null||c(ne))return!0;var re=h(ne);if(re){var ue=re.call(ne),me;if(re!==ne.entries){for(;!(me=ue.next()).done;)if(!se(me.value))return!1}else for(;!(me=ue.next()).done;){var Te=me.value;if(Te&&!se(Te[1]))return!1}}else return!1;return!0;default:return!1}}function xe(ne,re){return ne==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Ae(ne){var re=typeof ne;return Array.isArray(ne)?"array":ne instanceof RegExp?"object":xe(re,ne)?"symbol":re}function Re(ne){if(typeof ne>"u"||ne===null)return""+ne;var re=Ae(ne);if(re==="object"){if(ne instanceof Date)return"date";if(ne instanceof RegExp)return"regexp"}return re}function Q(ne){var re=Re(ne);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function Ee(ne){return!ne.constructor||!ne.constructor.name?v:ne.constructor.name}return w.checkPropTypes=o,w.resetWarningCache=o.resetWarningCache,w.PropTypes=w,w},Ag}var Eg,Db;function Vk(){if(Db)return Eg;Db=1;var e=ey();function t(){}function n(){}return n.resetWarningCache=t,Eg=function(){function r(s,c,u,f,m,h){if(h!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Eg}var Fb;function Kk(){if(Fb)return Ep.exports;if(Fb=1,process.env.NODE_ENV!=="production"){var e=fS(),t=!0;Ep.exports=Hk()(e.isElement,t)}else Ep.exports=Vk()();return Ep.exports}var Yk=Kk();const Xe=Mk(Yk);var Gk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pS(e,t){return e(t={exports:{}},t.exports),t.exports}var Qk=pS((function(e){(function(t){var n=function(x,E,R){if(!u(E)||m(E)||h(E)||v(E)||c(E))return E;var O,L=0,M=0;if(f(E))for(O=[],M=E.length;L<M;L++)O.push(n(x,E[L],R));else for(var U in O={},E)Object.prototype.hasOwnProperty.call(E,U)&&(O[x(U,R)]=n(x,E[U],R));return O},r=function(x){return w(x)?x:(x=x.replace(/[\-_\s]+(.)?/g,(function(E,R){return R?R.toUpperCase():""}))).substr(0,1).toLowerCase()+x.substr(1)},o=function(x){var E=r(x);return E.substr(0,1).toUpperCase()+E.substr(1)},i=function(x,E){return(function(R,O){var L=(O=O||{}).separator||"_",M=O.split||/(?=[A-Z])/;return R.split(M).join(L)})(x,E).toLowerCase()},s=Object.prototype.toString,c=function(x){return typeof x=="function"},u=function(x){return x===Object(x)},f=function(x){return s.call(x)=="[object Array]"},m=function(x){return s.call(x)=="[object Date]"},h=function(x){return s.call(x)=="[object RegExp]"},v=function(x){return s.call(x)=="[object Boolean]"},w=function(x){return(x-=0)==x},C=function(x,E){var R=E&&"process"in E?E.process:E;return typeof R!="function"?x:function(O,L){return R(O,x,L)}},A={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(x,E){return n(C(r,E),x)},decamelizeKeys:function(x,E){return n(C(i,E),x,E)},pascalizeKeys:function(x,E){return n(C(o,E),x)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(Gk)})).decamelize,Zk=function(e){if(Array.isArray(e))return e},Xk=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,c=e[Symbol.iterator]();!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||c.return==null||c.return()}finally{if(o)throw i}}return n}},jb=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Jk=function(e,t){if(e){if(typeof e=="string")return jb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jb(e,t):void 0}},qk=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},eT=function(e,t){return Zk(e)||Xk(e,t)||Jk(e,t)||qk()},hS=pS((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},t.apply(this,arguments)}e.exports=t})),tT=function(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},mS=function(e,t){if(e==null)return{};var n,r,o=tT(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},nT=Y.createContext(null);function gS(e){var t=e.children,n=t===void 0?"":t,r=mS(e,["children"]);return typeof n!="string"&&(n=zk.renderToString(n)),Y.createElement("template",hS({},r,{dangerouslySetInnerHTML:{__html:n}}))}function vS(e){var t=e.root,n=e.children;return ui.createPortal(n===void 0?null:n,t)}function rT(e){var t=Y.forwardRef((function(n,r){var o,i,s=n.mode,c=s===void 0?"open":s,u=n.delegatesFocus,f=u!==void 0&&u,m=n.styleSheets,h=m===void 0?[]:m,v=n.ssr,w=v!==void 0&&v,C=n.children,A=mS(n,["mode","delegatesFocus","styleSheets","ssr","children"]),x=(i=Y.useRef((o=r)&&o.current),Y.useEffect((function(){o&&(o.current=i.current)}),[o]),i),E=Y.useState(null),R=eT(E,2),O=R[0],L=R[1],M="node_".concat(c).concat(f);return Y.useLayoutEffect((function(){if(x.current)try{if(typeof r=="function"&&r(x.current),w){var U=x.current.shadowRoot;return void L(U)}var j=x.current.attachShadow({mode:c,delegatesFocus:f});h.length>0&&(j.adoptedStyleSheets=h),L(j)}catch($){(function(H){var G=H.error,q=H.styleSheets,pe=H.root;switch(G.name){case"NotSupportedError":q.length>0&&(pe.adoptedStyleSheets=q);break;default:throw G}})({error:$,styleSheets:h,root:O})}}),[r,x,h]),Y.createElement(Y.Fragment,null,Y.createElement(e.tag,hS({key:M,ref:x},A),(O||w)&&Y.createElement(nT.Provider,{value:O},w?Y.createElement(gS,{shadowroot:c,shadowrootmode:c},e.render({root:O,ssr:w,children:C})):Y.createElement(vS,{root:O},e.render({root:O,ssr:w,children:C})))))}));return t.propTypes={mode:Xe.oneOf(["open","closed"]),delegatesFocus:Xe.bool,styleSheets:Xe.arrayOf(Xe.instanceOf(globalThis.CSSStyleSheet)),ssr:Xe.bool,children:Xe.node},t}gS.propTypes={children:Xe.oneOfType([Xe.string,Xe.node])},vS.propTypes={root:Xe.object.isRequired,children:Xe.node};var kg=new Map;function oT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,o){var i=Qk(o,{separator:"-"}),s="".concat(t,"-").concat(i);return kg.has(s)||kg.set(s,rT({tag:i,render:n})),kg.get(s)}})}var zh=oT();const yS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},iT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jo,Js,J1,aT=(J1=class{constructor(){Ke(this,Jo,iT);Ke(this,Js,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&V(this,Js)&&e!==V(this,Jo)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:V(this,Jo),provider:e}),Me(this,Jo,e),process.env.NODE_ENV!=="production"&&Me(this,Js,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&Me(this,Js,!0),V(this,Jo).setTimeout(e,t)}clearTimeout(e){V(this,Jo).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&Me(this,Js,!0),V(this,Jo).setInterval(e,t)}clearInterval(e){V(this,Jo).clearInterval(e)}},Jo=new WeakMap,Js=new WeakMap,J1),Gs=new aT;function sT(e){setTimeout(e,0)}var ml=typeof window>"u"||"Deno"in globalThis;function wr(){}function lT(e,t){return typeof e=="function"?e(t):e}function bv(e){return typeof e=="number"&&e>=0&&e!==1/0}function bS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Va(e,t){return typeof e=="function"?e(t):e}function so(e,t){return typeof e=="function"?e(t):e}function zb(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==ty(s,t.options))return!1}else if(!Xf(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||i&&!i(t))}function Bb(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(gl(t.options.mutationKey)!==gl(i))return!1}else if(!Xf(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ty(e,t){return((t==null?void 0:t.queryKeyHashFn)||gl)(e)}function gl(e){return JSON.stringify(e,(t,n)=>wv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Xf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xf(e[n],t[n])):!1}var cT=Object.prototype.hasOwnProperty;function xv(e,t){if(e===t)return e;const n=Ub(e)&&Ub(t);if(!n&&!(wv(e)&&wv(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,c=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const m=n?f:i[f],h=e[m],v=t[m];if(h===v){c[m]=h,(n?f<o:cT.call(e,m))&&u++;continue}if(h===null||v===null||typeof h!="object"||typeof v!="object"){c[m]=v;continue}const w=xv(h,v);c[m]=w,w===h&&u++}return o===s&&u===o?e:c}function lh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ub(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wv(e){if(!Wb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Wb(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Wb(e){return Object.prototype.toString.call(e)==="[object Object]"}function uT(e){return new Promise(t=>{Gs.setTimeout(t,e)})}function Sv(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return xv(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return xv(e,t)}return t}function fT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ch=Symbol();function xS(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===ch&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ch?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ny(e,t){return typeof e=="function"?e(...t):!!e}function pT(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var qs,Ma,ru,q1,hT=(q1=class extends Cu{constructor(){super();Ke(this,qs);Ke(this,Ma);Ke(this,ru);Me(this,ru,t=>{if(!ml&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,Ma)||this.setEventListener(V(this,ru))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Ma))==null||t.call(this),Me(this,Ma,void 0))}setEventListener(t){var n;Me(this,ru,t),(n=V(this,Ma))==null||n.call(this),Me(this,Ma,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,qs)!==t&&(Me(this,qs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,qs)=="boolean"?V(this,qs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qs=new WeakMap,Ma=new WeakMap,ru=new WeakMap,q1),ry=new hT;function Cv(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var mT=sT;function gT(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=mT;const i=c=>{t?e.push(c):o(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{i(()=>{c(...u)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var vn=gT(),ou,Na,iu,eS,vT=(eS=class extends Cu{constructor(){super();Ke(this,ou,!0);Ke(this,Na);Ke(this,iu);Me(this,iu,t=>{if(!ml&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,Na)||this.setEventListener(V(this,iu))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Na))==null||t.call(this),Me(this,Na,void 0))}setEventListener(t){var n;Me(this,iu,t),(n=V(this,Na))==null||n.call(this),Me(this,Na,t(this.setOnline.bind(this)))}setOnline(t){V(this,ou)!==t&&(Me(this,ou,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,ou)}},ou=new WeakMap,Na=new WeakMap,iu=new WeakMap,eS),uh=new vT;function yT(e){return Math.min(1e3*2**e,3e4)}function wS(e){return(e??"online")==="online"?uh.isOnline():!0}var Av=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function SS(e){let t=!1,n=0,r;const o=Cv(),i=()=>o.status!=="pending",s=A=>{var x;if(!i()){const E=new Av(A);v(E),(x=e.onCancel)==null||x.call(e,E)}},c=()=>{t=!0},u=()=>{t=!1},f=()=>ry.isFocused()&&(e.networkMode==="always"||uh.isOnline())&&e.canRun(),m=()=>wS(e.networkMode)&&e.canRun(),h=A=>{i()||(r==null||r(),o.resolve(A))},v=A=>{i()||(r==null||r(),o.reject(A))},w=()=>new Promise(A=>{var x;r=E=>{(i()||f())&&A(E)},(x=e.onPause)==null||x.call(e)}).then(()=>{var A;r=void 0,i()||(A=e.onContinue)==null||A.call(e)}),C=()=>{if(i())return;let A;const x=n===0?e.initialPromise:void 0;try{A=x??e.fn()}catch(E){A=Promise.reject(E)}Promise.resolve(A).then(h).catch(E=>{var U;if(i())return;const R=e.retry??(ml?0:3),O=e.retryDelay??yT,L=typeof O=="function"?O(n,E):O,M=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,E);if(t||!M){v(E);return}n++,(U=e.onFail)==null||U.call(e,n,E),uT(L).then(()=>f()?void 0:w()).then(()=>{t?v(E):C()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:c,continueRetry:u,canStart:m,start:()=>(m()?C():w().then(C),o)}}var el,tS,CS=(tS=class{constructor(){Ke(this,el)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bv(this.gcTime)&&Me(this,el,Gs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ml?1/0:300*1e3))}clearGcTimeout(){V(this,el)&&(Gs.clearTimeout(V(this,el)),Me(this,el,void 0))}},el=new WeakMap,tS),tl,au,ao,nl,Rn,gd,rl,Po,Mi,nS,bT=(nS=class extends CS{constructor(t){super();Ke(this,Po);Ke(this,tl);Ke(this,au);Ke(this,ao);Ke(this,nl);Ke(this,Rn);Ke(this,gd);Ke(this,rl);Me(this,rl,!1),Me(this,gd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Me(this,nl,t.client),Me(this,ao,V(this,nl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Me(this,tl,Hb(this.options)),this.state=t.state??V(this,tl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,Rn))==null?void 0:t.promise}setOptions(t){if(this.options={...V(this,gd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Hb(this.options);n.data!==void 0&&(this.setState($b(n.data,n.dataUpdatedAt)),Me(this,tl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ao).remove(this)}setData(t,n){const r=Sv(this.state.data,t,this.options);return it(this,Po,Mi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){it(this,Po,Mi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=V(this,Rn))==null?void 0:r.promise;return(o=V(this,Rn))==null||o.cancel(t),n?n.then(wr).catch(wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,tl))}isActive(){return this.observers.some(t=>so(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ch||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Va(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!bS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Rn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Rn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ao).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,Rn)&&(V(this,rl)?V(this,Rn).cancel({revert:!0}):V(this,Rn).cancelRetry()),this.scheduleGc()),V(this,ao).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||it(this,Po,Mi).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,m,h,v,w,C,A,x,E,R,O;if(this.state.fetchStatus!=="idle"&&((u=V(this,Rn))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,Rn))return V(this,Rn).continueRetry(),V(this,Rn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const L=this.observers.find(M=>M.options.queryFn);L&&this.setOptions(L.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(Me(this,rl,!0),r.signal)})},i=()=>{const L=xS(this.options,n),U=(()=>{const j={client:V(this,nl),queryKey:this.queryKey,meta:this.meta};return o(j),j})();return Me(this,rl,!1),this.options.persister?this.options.persister(L,U,this):L(U)},c=(()=>{const L={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:V(this,nl),state:this.state,fetchFn:i};return o(L),L})();(f=this.options.behavior)==null||f.onFetch(c,this),Me(this,au,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&it(this,Po,Mi).call(this,{type:"fetch",meta:(h=c.fetchOptions)==null?void 0:h.meta}),Me(this,Rn,SS({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:L=>{L instanceof Av&&L.revert&&this.setState({...V(this,au),fetchStatus:"idle"}),r.abort()},onFail:(L,M)=>{it(this,Po,Mi).call(this,{type:"failed",failureCount:L,error:M})},onPause:()=>{it(this,Po,Mi).call(this,{type:"pause"})},onContinue:()=>{it(this,Po,Mi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const L=await V(this,Rn).start();if(L===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(L),(w=(v=V(this,ao).config).onSuccess)==null||w.call(v,L,this),(A=(C=V(this,ao).config).onSettled)==null||A.call(C,L,this.state.error,this),L}catch(L){if(L instanceof Av){if(L.silent)return V(this,Rn).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw it(this,Po,Mi).call(this,{type:"error",error:L}),(E=(x=V(this,ao).config).onError)==null||E.call(x,L,this),(O=(R=V(this,ao).config).onSettled)==null||O.call(R,this.state.data,L,this),L}finally{this.scheduleGc()}}},tl=new WeakMap,au=new WeakMap,ao=new WeakMap,nl=new WeakMap,Rn=new WeakMap,gd=new WeakMap,rl=new WeakMap,Po=new WeakSet,Mi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...AS(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...$b(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Me(this,au,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),vn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,ao).notify({query:this,type:"updated",action:t})})},nS);function AS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $b(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Hb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Or,mt,vd,br,ol,su,ji,La,yd,lu,cu,il,al,Da,uu,It,zf,Ev,kv,Tv,_v,Rv,Pv,Iv,ES,rS,xT=(rS=class extends Cu{constructor(t,n){super();Ke(this,It);Ke(this,Or);Ke(this,mt);Ke(this,vd);Ke(this,br);Ke(this,ol);Ke(this,su);Ke(this,ji);Ke(this,La);Ke(this,yd);Ke(this,lu);Ke(this,cu);Ke(this,il);Ke(this,al);Ke(this,Da);Ke(this,uu,new Set);this.options=n,Me(this,Or,t),Me(this,La,null),Me(this,ji,Cv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,mt).addObserver(this),Vb(V(this,mt),this.options)?it(this,It,zf).call(this):this.updateResult(),it(this,It,_v).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ov(V(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ov(V(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,it(this,It,Rv).call(this),it(this,It,Pv).call(this),V(this,mt).removeObserver(this)}setOptions(t){const n=this.options,r=V(this,mt);if(this.options=V(this,Or).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof so(this.options.enabled,V(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");it(this,It,Iv).call(this),V(this,mt).setOptions(this.options),n._defaulted&&!lh(this.options,n)&&V(this,Or).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,mt),observer:this});const o=this.hasListeners();o&&Kb(V(this,mt),r,this.options,n)&&it(this,It,zf).call(this),this.updateResult(),o&&(V(this,mt)!==r||so(this.options.enabled,V(this,mt))!==so(n.enabled,V(this,mt))||Va(this.options.staleTime,V(this,mt))!==Va(n.staleTime,V(this,mt)))&&it(this,It,Ev).call(this);const i=it(this,It,kv).call(this);o&&(V(this,mt)!==r||so(this.options.enabled,V(this,mt))!==so(n.enabled,V(this,mt))||i!==V(this,Da))&&it(this,It,Tv).call(this,i)}getOptimisticResult(t){const n=V(this,Or).getQueryCache().build(V(this,Or),t),r=this.createResult(n,t);return ST(this,r)&&(Me(this,br,r),Me(this,su,this.options),Me(this,ol,V(this,mt).state)),r}getCurrentResult(){return V(this,br)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&V(this,ji).status==="pending"&&V(this,ji).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){V(this,uu).add(t)}getCurrentQuery(){return V(this,mt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Or).defaultQueryOptions(t),r=V(this,Or).getQueryCache().build(V(this,Or),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return it(this,It,zf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,br)))}createResult(t,n){var H;const r=V(this,mt),o=this.options,i=V(this,br),s=V(this,ol),c=V(this,su),f=t!==r?t.state:V(this,vd),{state:m}=t;let h={...m},v=!1,w;if(n._optimisticResults){const G=this.hasListeners(),q=!G&&Vb(t,n),pe=G&&Kb(t,r,n,o);(q||pe)&&(h={...h,...AS(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:C,errorUpdatedAt:A,status:x}=h;w=h.data;let E=!1;if(n.placeholderData!==void 0&&w===void 0&&x==="pending"){let G;i!=null&&i.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(G=i.data,E=!0):G=typeof n.placeholderData=="function"?n.placeholderData((H=V(this,cu))==null?void 0:H.state.data,V(this,cu)):n.placeholderData,G!==void 0&&(x="success",w=Sv(i==null?void 0:i.data,G,n),v=!0)}if(n.select&&w!==void 0&&!E)if(i&&w===(s==null?void 0:s.data)&&n.select===V(this,yd))w=V(this,lu);else try{Me(this,yd,n.select),w=n.select(w),w=Sv(i==null?void 0:i.data,w,n),Me(this,lu,w),Me(this,La,null)}catch(G){Me(this,La,G)}V(this,La)&&(C=V(this,La),w=V(this,lu),A=Date.now(),x="error");const R=h.fetchStatus==="fetching",O=x==="pending",L=x==="error",M=O&&R,U=w!==void 0,$={status:x,fetchStatus:h.fetchStatus,isPending:O,isSuccess:x==="success",isError:L,isInitialLoading:M,isLoading:M,data:w,dataUpdatedAt:h.dataUpdatedAt,error:C,errorUpdatedAt:A,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:R,isRefetching:R&&!O,isLoadingError:L&&!U,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:L&&U,isStale:oy(t,n),refetch:this.refetch,promise:V(this,ji),isEnabled:so(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=ie=>{$.status==="error"?ie.reject($.error):$.data!==void 0&&ie.resolve($.data)},q=()=>{const ie=Me(this,ji,$.promise=Cv());G(ie)},pe=V(this,ji);switch(pe.status){case"pending":t.queryHash===r.queryHash&&G(pe);break;case"fulfilled":($.status==="error"||$.data!==pe.value)&&q();break;case"rejected":($.status!=="error"||$.error!==pe.reason)&&q();break}}return $}updateResult(){const t=V(this,br),n=this.createResult(V(this,mt),this.options);if(Me(this,ol,V(this,mt).state),Me(this,su,this.options),V(this,ol).data!==void 0&&Me(this,cu,V(this,mt)),lh(n,t))return;Me(this,br,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!V(this,uu).size)return!0;const s=new Set(i??V(this,uu));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,br)).some(c=>{const u=c;return V(this,br)[u]!==t[u]&&s.has(u)})};it(this,It,ES).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&it(this,It,_v).call(this)}},Or=new WeakMap,mt=new WeakMap,vd=new WeakMap,br=new WeakMap,ol=new WeakMap,su=new WeakMap,ji=new WeakMap,La=new WeakMap,yd=new WeakMap,lu=new WeakMap,cu=new WeakMap,il=new WeakMap,al=new WeakMap,Da=new WeakMap,uu=new WeakMap,It=new WeakSet,zf=function(t){it(this,It,Iv).call(this);let n=V(this,mt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(wr)),n},Ev=function(){it(this,It,Rv).call(this);const t=Va(this.options.staleTime,V(this,mt));if(ml||V(this,br).isStale||!bv(t))return;const r=bS(V(this,br).dataUpdatedAt,t)+1;Me(this,il,Gs.setTimeout(()=>{V(this,br).isStale||this.updateResult()},r))},kv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,mt)):this.options.refetchInterval)??!1},Tv=function(t){it(this,It,Pv).call(this),Me(this,Da,t),!(ml||so(this.options.enabled,V(this,mt))===!1||!bv(V(this,Da))||V(this,Da)===0)&&Me(this,al,Gs.setInterval(()=>{(this.options.refetchIntervalInBackground||ry.isFocused())&&it(this,It,zf).call(this)},V(this,Da)))},_v=function(){it(this,It,Ev).call(this),it(this,It,Tv).call(this,it(this,It,kv).call(this))},Rv=function(){V(this,il)&&(Gs.clearTimeout(V(this,il)),Me(this,il,void 0))},Pv=function(){V(this,al)&&(Gs.clearInterval(V(this,al)),Me(this,al,void 0))},Iv=function(){const t=V(this,Or).getQueryCache().build(V(this,Or),this.options);if(t===V(this,mt))return;const n=V(this,mt);Me(this,mt,t),Me(this,vd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ES=function(t){vn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,br))}),V(this,Or).getQueryCache().notify({query:V(this,mt),type:"observerResultsUpdated"})})},rS);function wT(e,t){return so(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vb(e,t){return wT(e,t)||e.state.data!==void 0&&Ov(e,t,t.refetchOnMount)}function Ov(e,t,n){if(so(t.enabled,e)!==!1&&Va(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oy(e,t)}return!1}function Kb(e,t,n,r){return(e!==t||so(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&oy(e,n)}function oy(e,t){return so(t.enabled,e)!==!1&&e.isStaleByTime(Va(t.staleTime,e))}function ST(e,t){return!lh(e.getCurrentResult(),t)}function Yb(e){return{onFetch:(t,n)=>{var m,h,v,w,C;const r=t.options,o=(v=(h=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:h.fetchMore)==null?void 0:v.direction,i=((w=t.state.data)==null?void 0:w.pages)||[],s=((C=t.state.data)==null?void 0:C.pageParams)||[];let c={pages:[],pageParams:[]},u=0;const f=async()=>{let A=!1;const x=O=>{pT(O,()=>t.signal,()=>A=!0)},E=xS(t.options,t.fetchOptions),R=async(O,L,M)=>{if(A)return Promise.reject();if(L==null&&O.pages.length)return Promise.resolve(O);const j=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:L,direction:M?"backward":"forward",meta:t.options.meta};return x(q),q})(),$=await E(j),{maxPages:H}=t.options,G=M?dT:fT;return{pages:G(O.pages,$,H),pageParams:G(O.pageParams,L,H)}};if(o&&i.length){const O=o==="backward",L=O?CT:Gb,M={pages:i,pageParams:s},U=L(r,M);c=await R(M,U,O)}else{const O=e??i.length;do{const L=u===0?s[0]??r.initialPageParam:Gb(r,c);if(u>0&&L==null)break;c=await R(c,L),u++}while(u<O)}return c};t.options.persister?t.fetchFn=()=>{var A,x;return(x=(A=t.options).persister)==null?void 0:x.call(A,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Gb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function CT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var bd,qo,xr,sl,ei,Ia,oS,AT=(oS=class extends CS{constructor(t){super();Ke(this,ei);Ke(this,bd);Ke(this,qo);Ke(this,xr);Ke(this,sl);Me(this,bd,t.client),this.mutationId=t.mutationId,Me(this,xr,t.mutationCache),Me(this,qo,[]),this.state=t.state||kS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,qo).includes(t)||(V(this,qo).push(t),this.clearGcTimeout(),V(this,xr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Me(this,qo,V(this,qo).filter(n=>n!==t)),this.scheduleGc(),V(this,xr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,qo).length||(this.state.status==="pending"?this.scheduleGc():V(this,xr).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,c,u,f,m,h,v,w,C,A,x,E,R,O,L,M,U,j,$,H;const n=()=>{it(this,ei,Ia).call(this,{type:"continue"})},r={client:V(this,bd),meta:this.options.meta,mutationKey:this.options.mutationKey};Me(this,sl,SS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(G,q)=>{it(this,ei,Ia).call(this,{type:"failed",failureCount:G,error:q})},onPause:()=>{it(this,ei,Ia).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,xr).canRun(this)}));const o=this.state.status==="pending",i=!V(this,sl).canStart();try{if(o)n();else{it(this,ei,Ia).call(this,{type:"pending",variables:t,isPaused:i}),await((c=(s=V(this,xr).config).onMutate)==null?void 0:c.call(s,t,this,r));const q=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,r));q!==this.state.context&&it(this,ei,Ia).call(this,{type:"pending",context:q,variables:t,isPaused:i})}const G=await V(this,sl).start();return await((h=(m=V(this,xr).config).onSuccess)==null?void 0:h.call(m,G,t,this.state.context,this,r)),await((w=(v=this.options).onSuccess)==null?void 0:w.call(v,G,t,this.state.context,r)),await((A=(C=V(this,xr).config).onSettled)==null?void 0:A.call(C,G,null,this.state.variables,this.state.context,this,r)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,G,null,t,this.state.context,r)),it(this,ei,Ia).call(this,{type:"success",data:G}),G}catch(G){try{await((O=(R=V(this,xr).config).onError)==null?void 0:O.call(R,G,t,this.state.context,this,r))}catch(q){Promise.reject(q)}try{await((M=(L=this.options).onError)==null?void 0:M.call(L,G,t,this.state.context,r))}catch(q){Promise.reject(q)}try{await((j=(U=V(this,xr).config).onSettled)==null?void 0:j.call(U,void 0,G,this.state.variables,this.state.context,this,r))}catch(q){Promise.reject(q)}try{await((H=($=this.options).onSettled)==null?void 0:H.call($,void 0,G,t,this.state.context,r))}catch(q){Promise.reject(q)}throw it(this,ei,Ia).call(this,{type:"error",error:G}),G}finally{V(this,xr).runNext(this)}}},bd=new WeakMap,qo=new WeakMap,xr=new WeakMap,sl=new WeakMap,ei=new WeakSet,Ia=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),vn.batch(()=>{V(this,qo).forEach(r=>{r.onMutationUpdate(t)}),V(this,xr).notify({mutation:this,type:"updated",action:t})})},oS);function kS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zi,Io,xd,iS,ET=(iS=class extends Cu{constructor(t={}){super();Ke(this,zi);Ke(this,Io);Ke(this,xd);this.config=t,Me(this,zi,new Set),Me(this,Io,new Map),Me(this,xd,0)}build(t,n,r){const o=new AT({client:t,mutationCache:this,mutationId:++Sp(this,xd)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){V(this,zi).add(t);const n=Tp(t);if(typeof n=="string"){const r=V(this,Io).get(n);r?r.push(t):V(this,Io).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,zi).delete(t)){const n=Tp(t);if(typeof n=="string"){const r=V(this,Io).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&V(this,Io).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Tp(t);if(typeof n=="string"){const r=V(this,Io).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Tp(t);if(typeof n=="string"){const o=(r=V(this,Io).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vn.batch(()=>{V(this,zi).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,zi).clear(),V(this,Io).clear()})}getAll(){return Array.from(V(this,zi))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bb(n,r))}findAll(t={}){return this.getAll().filter(n=>Bb(t,n))}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return vn.batch(()=>Promise.all(t.map(n=>n.continue().catch(wr))))}},zi=new WeakMap,Io=new WeakMap,xd=new WeakMap,iS);function Tp(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Bi,Fa,Mr,Ui,Vi,Yp,Mv,aS,kT=(aS=class extends Cu{constructor(n,r){super();Ke(this,Vi);Ke(this,Bi);Ke(this,Fa);Ke(this,Mr);Ke(this,Ui);Me(this,Bi,n),this.setOptions(r),this.bindMethods(),it(this,Vi,Yp).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=V(this,Bi).defaultMutationOptions(n),lh(this.options,r)||V(this,Bi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,Mr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&gl(r.mutationKey)!==gl(this.options.mutationKey)?this.reset():((o=V(this,Mr))==null?void 0:o.state.status)==="pending"&&V(this,Mr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=V(this,Mr))==null||n.removeObserver(this)}onMutationUpdate(n){it(this,Vi,Yp).call(this),it(this,Vi,Mv).call(this,n)}getCurrentResult(){return V(this,Fa)}reset(){var n;(n=V(this,Mr))==null||n.removeObserver(this),Me(this,Mr,void 0),it(this,Vi,Yp).call(this),it(this,Vi,Mv).call(this)}mutate(n,r){var o;return Me(this,Ui,r),(o=V(this,Mr))==null||o.removeObserver(this),Me(this,Mr,V(this,Bi).getMutationCache().build(V(this,Bi),this.options)),V(this,Mr).addObserver(this),V(this,Mr).execute(n)}},Bi=new WeakMap,Fa=new WeakMap,Mr=new WeakMap,Ui=new WeakMap,Vi=new WeakSet,Yp=function(){var r;const n=((r=V(this,Mr))==null?void 0:r.state)??kS();Me(this,Fa,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Mv=function(n){vn.batch(()=>{var r,o,i,s,c,u,f,m;if(V(this,Ui)&&this.hasListeners()){const h=V(this,Fa).variables,v=V(this,Fa).context,w={client:V(this,Bi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=V(this,Ui)).onSuccess)==null||o.call(r,n.data,h,v,w)}catch(C){Promise.reject(C)}try{(s=(i=V(this,Ui)).onSettled)==null||s.call(i,n.data,null,h,v,w)}catch(C){Promise.reject(C)}}else if((n==null?void 0:n.type)==="error"){try{(u=(c=V(this,Ui)).onError)==null||u.call(c,n.error,h,v,w)}catch(C){Promise.reject(C)}try{(m=(f=V(this,Ui)).onSettled)==null||m.call(f,void 0,n.error,h,v,w)}catch(C){Promise.reject(C)}}}this.listeners.forEach(h=>{h(V(this,Fa))})})},aS),ti,sS,TT=(sS=class extends Cu{constructor(t={}){super();Ke(this,ti);this.config=t,Me(this,ti,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??ty(o,n);let s=this.get(i);return s||(s=new bT({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){V(this,ti).has(t.queryHash)||(V(this,ti).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ti).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ti).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){vn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ti).get(t)}getAll(){return[...V(this,ti).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zb(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>zb(t,r)):n}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){vn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){vn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ti=new WeakMap,sS),tn,ja,za,fu,du,Ba,pu,hu,lS,TS=(lS=class{constructor(e={}){Ke(this,tn);Ke(this,ja);Ke(this,za);Ke(this,fu);Ke(this,du);Ke(this,Ba);Ke(this,pu);Ke(this,hu);Me(this,tn,e.queryCache||new TT),Me(this,ja,e.mutationCache||new ET),Me(this,za,e.defaultOptions||{}),Me(this,fu,new Map),Me(this,du,new Map),Me(this,Ba,0)}mount(){Sp(this,Ba)._++,V(this,Ba)===1&&(Me(this,pu,ry.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onFocus())})),Me(this,hu,uh.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onOnline())})))}unmount(){var e,t;Sp(this,Ba)._--,V(this,Ba)===0&&((e=V(this,pu))==null||e.call(this),Me(this,pu,void 0),(t=V(this,hu))==null||t.call(this),Me(this,hu,void 0))}isFetching(e){return V(this,tn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ja).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,tn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=V(this,tn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Va(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return V(this,tn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=V(this,tn).get(r.queryHash),i=o==null?void 0:o.state.data,s=lT(t,i);if(s!==void 0)return V(this,tn).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return vn.batch(()=>V(this,tn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,tn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,tn);vn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,tn);return vn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=vn.batch(()=>V(this,tn).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(wr).catch(wr)}invalidateQueries(e,t={}){return vn.batch(()=>(V(this,tn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=vn.batch(()=>V(this,tn).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(wr)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,tn).build(this,t);return n.isStaleByTime(Va(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}fetchInfiniteQuery(e){return e.behavior=Yb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e.behavior=Yb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return uh.isOnline()?V(this,ja).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,tn)}getMutationCache(){return V(this,ja)}getDefaultOptions(){return V(this,za)}setDefaultOptions(e){Me(this,za,e)}setQueryDefaults(e,t){V(this,fu).set(gl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,fu).values()],n={};return t.forEach(r=>{Xf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){V(this,du).set(gl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,du).values()],n={};return t.forEach(r=>{Xf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,za).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ty(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ch&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,za).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,tn).clear(),V(this,ja).clear()}},tn=new WeakMap,ja=new WeakMap,za=new WeakMap,fu=new WeakMap,du=new WeakMap,Ba=new WeakMap,pu=new WeakMap,hu=new WeakMap,lS),_S=F.createContext(void 0),RS=e=>{const t=F.useContext(_S);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_T=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(_S.Provider,{value:e,children:t})),PS=F.createContext(!1),RT=()=>F.useContext(PS);PS.Provider;function PT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IT=F.createContext(PT()),OT=()=>F.useContext(IT),MT=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ny(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},NT=e=>{F.useEffect(()=>{e.clearReset()},[e])},LT=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ny(n,[e.error,r])),DT=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},FT=(e,t)=>e.isLoading&&e.isFetching&&!t,jT=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zT(e,t,n){var v,w,C,A;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=RT(),o=OT(),i=RS(n),s=i.defaultQueryOptions(e);(w=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||w.call(v,s);const c=i.getQueryCache().get(s.queryHash);process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",DT(s),MT(s,o,c),NT(o);const u=!i.getQueryCache().get(s.queryHash),[f]=F.useState(()=>new t(i,s)),m=f.getOptimisticResult(s),h=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(x=>{const E=h?f.subscribe(vn.batchCalls(x)):wr;return f.updateResult(),E},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),F.useEffect(()=>{f.setOptions(s)},[s,f]),jT(s,m))throw Qb(s,f,o);if(LT({result:m,errorResetBoundary:o,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw m.error;if((A=(C=i.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||A.call(C,s,m),s.experimental_prefetchInRender&&!ml&&FT(m,r)){const x=u?Qb(s,f,o):c==null?void 0:c.promise;x==null||x.catch(wr).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?m:f.trackResult(m)}function Bh(e,t){return zT(e,xT,t)}function iy(e,t){const n=RS(t),[r]=F.useState(()=>new kT(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);const o=F.useSyncExternalStore(F.useCallback(s=>r.subscribe(vn.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=F.useCallback((s,c)=>{r.mutate(s,c).catch(wr)},[r]);if(o.error&&ny(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const ay=Y.createContext({queryClient:new TS,username:"",setUsername:()=>{}});ay.Provider;const hi=()=>{const e=Y.useContext(ay);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},IS=({children:e})=>{const[t]=Y.useState(new TS),[n,r]=Y.useState("");return D.jsx(ay.Provider,{value:{queryClient:t,username:n,setUsername:r},children:D.jsx(_T,{client:t,children:e})})},Zt={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},OS="https://marketplace.confidence.com/api",Zi=OS+"/confidence",Zb=OS+"/dropbox/prod",BT=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Zi}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},UT=()=>{const{queryClient:e}=hi(),t=iy({mutationFn:async r=>BT(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},WT=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Zi}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},$T=()=>{const{queryClient:e}=hi(),t=iy({mutationFn:async r=>await WT(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},MS=(e,t)=>{const{queryClient:n}=hi(),r=Bh({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=c=>{var u;return((u=r.data)==null?void 0:u[c.toString()])??!1},i=(c,u)=>{var f;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[c]:u!==void 0?u:!o(c)})),(f=t==null?void 0:t.onTaskExpanded)==null||f.call(t,c,o(c))},s=Y.useMemo(()=>Object.values(r.data??{}).some(c=>c),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},HT=(e,t)=>{const{queryClient:n}=hi(),{completeTask:r}=UT(),{startTask:o}=$T(),{toggleTaskExpanded:i}=MS(e);return{completeTask:async(u,f)=>{const{status:m}=await r(u.toString());m&&(i(u,!1),n.setQueryData(["playbook",+e],h=>{if(!h)return h;const v=h.tasks.map(w=>w.sequenceOrder===f+1&&t.quickComplete?{...w,workflowStatus:Zt.IN_PROGRESS}:w.taskInstanceId===u?{...w,workflowStatus:m}:w);return{...h,tasks:v}}))},startTask:async u=>{const{status:f}=await o(u.toString());f&&(i(u,!0),n.setQueryData(["playbook",+e],m=>{if(!m)return m;const h=m.tasks.map(v=>v.taskInstanceId===u?{...v,workflowStatus:f}:v);return{...m,tasks:h}}))}}},VT=e=>{var o;const{queryClient:t}=hi(),n=Bh({queryFn:async()=>{const i=new Headers,s=await fetch(`${Zi}/playbook-details`,{method:"POST",cache:"no-store",headers:i,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const c=await s.json();if(c.error)throw new Error(c.error);return c},queryKey:["playbook",+e]},t),r=HT(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},Yc={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},KT={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},YT=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:Y.useMemo(()=>t===Zt.OPEN&&n?[Yc.START]:t===Zt.IN_PROGRESS?[Yc.PAUSE,Yc.COMPLETE]:t===Zt.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},NS=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Zi}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Uh='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-0\\.5{top:calc(var(--spacing)*.5)!important}.top-1{top:calc(var(--spacing)*1)!important}.top-3{top:calc(var(--spacing)*3)!important}.-right-0,.right-0{right:calc(var(--spacing)*0)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.bottom-2{bottom:calc(var(--spacing)*2)!important}.left-0{left:calc(var(--spacing)*0)!important}.left-1{left:calc(var(--spacing)*1)!important}.left-1\\/2{left:50%!important}.left-4{left:calc(var(--spacing)*4)!important}.z-2{z-index:2!important}.z-10{z-index:10!important}.z-50{z-index:50!important}.z-\\[9999999997\\],.z-\\[9999999998\\],.z-\\[9999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media(min-width:40rem){.container{max-width:40rem!important}}@media(min-width:48rem){.container{max-width:48rem!important}}@media(min-width:64rem){.container{max-width:64rem!important}}@media(min-width:80rem){.container{max-width:80rem!important}}@media(min-width:96rem){.container{max-width:96rem!important}}.m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-2{margin-inline:calc(var(--spacing)*2)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.mx-auto{margin-inline:auto!important}.my-1{margin-block:calc(var(--spacing)*1)!important}.my-2{margin-block:calc(var(--spacing)*2)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.mr-2{margin-right:calc(var(--spacing)*2)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.inline-flex{display:inline-flex!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-2{height:calc(var(--spacing)*2)!important}.h-3{height:calc(var(--spacing)*3)!important}.h-4{height:calc(var(--spacing)*4)!important}.h-16{height:calc(var(--spacing)*16)!important}.h-\\[18px\\]{height:18px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-\\[75px\\]{height:75px!important}.h-\\[100vh\\]{height:100vh!important}.h-\\[110px\\]{height:110px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-1\\/3{width:33.3333%!important}.w-3{width:calc(var(--spacing)*3)!important}.w-4{width:calc(var(--spacing)*4)!important}.w-\\[20px\\]{width:20px!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[75px\\]{width:75px!important}.w-\\[400px\\]{width:400px!important}.w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-400{max-width:calc(var(--spacing)*400)!important}.max-w-\\[300px\\]{max-width:300px!important}.max-w-\\[420px\\]{max-width:420px!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-0{min-width:calc(var(--spacing)*0)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-\\[270px\\]{min-width:270px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.rotate-180{rotate:180deg!important}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-progress{animation:1.5s ease-in-out infinite progress!important}.animate-pulse{animation:var(--animate-pulse)!important}.animate-spin{animation:var(--animate-spin)!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-zoom-in{cursor:zoom-in!important}.resize{resize:both!important}.list-decimal{list-style-type:decimal!important}.list-disc{list-style-type:disc!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.items-start{align-items:flex-start!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.justify-start{justify-content:flex-start!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:3.40282e38px!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.border-danger-200{border-color:#f0aab1!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-200{border-color:#94c8ff!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-200{border-color:#a5dab1!important}.border-success-600{border-color:#218838!important}.border-warning-200{border-color:#ffe597!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.border-t-blue-500{border-top-color:var(--color-blue-500)!important}.border-l-danger-500{border-left-color:#dc3545!important}.border-l-primary-500{border-left-color:#007bff!important}.border-l-success-500{border-left-color:#28a745!important}.border-l-warning-500{border-left-color:#ffc107!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-blue-500{background-color:var(--color-blue-500)!important}.bg-danger-100{background-color:#f6ccd0!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-200{background-color:#ced1d6!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-100{background-color:#bfdeff!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-100{background-color:#c9e9d0!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-100{background-color:#ffefc1!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-3{padding:calc(var(--spacing)*3)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-0{padding-inline:calc(var(--spacing)*0)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-2{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.pb-\\[102px\\]{padding-bottom:102px!important}.pl-4{padding-left:calc(var(--spacing)*4)!important}.text-center{text-align:center!important}.text-left{text-align:left!important}.font-mono{font-family:var(--font-mono)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-\\[10px\\]{font-size:10px!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-blue-600{color:var(--color-blue-600)!important}.text-danger-500{color:#dc3545!important}.text-danger-600{color:#c82333!important}.text-danger-900{color:#721c24!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-300{color:#b0b5bd!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-primary-900{color:#004085!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-success-900{color:#155724!important}.text-warning-500{color:#ffc107!important}.text-warning-600{color:#f59e0b!important}.text-warning-900{color:#935f07!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.line-through{text-decoration-line:line-through!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-100{opacity:1!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.outline-none{--tw-outline-style:none!important;outline-style:none!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.hover\\:border-primary-500:hover{border-color:#007bff!important}.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-700:hover{background-color:#0062cc!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-transparent:hover{background-color:#0000!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)!important}.hover\\:text-danger-600:hover{color:#c82333!important}.hover\\:text-danger-700:hover{color:#bd2130!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-600:hover{color:#0069d9!important}.hover\\:text-primary-700:hover{color:#0062cc!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-600:hover{color:#218838!important}.hover\\:text-success-700:hover{color:#1e7e34!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-600:hover{color:#f59e0b!important}.hover\\:text-warning-700:hover{color:#dd8e0a!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.md\\:min-w-fit{min-width:fit-content!important}}}:root,:host{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Pro";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Pro";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-regular:normal 400 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-light:normal 300 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-thin:normal 100 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-light:normal 300 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-thin:normal 100 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-duotone-solid:normal 900 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-regular:normal 400 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-light:normal 300 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-thin:normal 100 1em/1 "Font Awesome 6 Sharp Duotone"}svg.svg-inline--fa:not(:root),svg.svg-inline--fa:not(:host){box-sizing:content-box;overflow:visible}.svg-inline--fa{display:var(--fa-display,inline-block);vertical-align:-.125em;height:1em;overflow:visible}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.07143em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fa-layers-counter,.fa-layers-text{text-align:center;display:inline-block;position:absolute}.fa-layers{text-align:center;vertical-align:-.125em;width:1em;height:1em;display:inline-block;position:relative}.fa-layers svg.svg-inline--fa{transform-origin:50%}.fa-layers-text{transform-origin:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:100% 0;overflow:hidden}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 100%;top:auto}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 100%;top:auto;right:auto}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 0}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 0}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{vertical-align:.225em;font-size:.625em;line-height:.1em}.fa-xs{vertical-align:.125em;font-size:.75em;line-height:.08333em}.fa-sm{vertical-align:.05357em;font-size:.875em;line-height:.07143em}.fa-lg{vertical-align:-.075em;font-size:1.25em;line-height:.05em}.fa-xl{vertical-align:-.125em;font-size:1.5em;line-height:.04167em}.fa-2xl{vertical-align:-.1875em;font-size:2em;line-height:.03125em}.fa-fw{text-align:center;width:1.25em}.fa-ul{margin-left:var(--fa-li-margin,2.5em);padding-left:0;list-style-type:none}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width,2em));text-align:center;width:var(--fa-li-width,2em);line-height:inherit;position:absolute}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media(prefers-reduced-motion:reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-iteration-count:1;animation-delay:-1ms}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1)translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9))translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1))translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95))translateY(0)}57%{transform:scale(1)translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1)translateY(0)}to{transform:scale(1)translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{vertical-align:middle;width:2.5em;height:2em;display:inline-block;position:relative}.fa-stack-1x,.fa-stack-2x{z-index:var(--fa-stack-z-index,auto);margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.svg-inline--fa.fa-stack-1x{width:1.25em;height:1em}.svg-inline--fa.fa-stack-2x{width:2.5em;height:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.sr-only,.fa-sr-only,.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',GT=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},QT=(e,t)=>({classGroupId:e,validator:t}),LS=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),fh="-",Xb=[],ZT="arbitrary..",XT=e=>{const t=qT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return JT(s);const c=s.split(fh),u=c[0]===""&&c.length>1?1:0;return DS(c,u,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const u=r[s],f=n[s];return u?f?GT(f,u):u:f||Xb}return n[s]||Xb}}},DS=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const f=DS(e,t+1,i);if(f)return f}const s=n.validators;if(s===null)return;const c=t===0?e.join(fh):e.slice(t).join(fh),u=s.length;for(let f=0;f<u;f++){const m=s[f];if(m.validator(c))return m.classGroupId}},JT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?ZT+r:void 0})(),qT=e=>{const{theme:t,classGroups:n}=e;return e_(n,t)},e_=(e,t)=>{const n=LS();for(const r in e){const o=e[r];sy(o,n,r,t)}return n},sy=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];t_(s,t,n,r)}},t_=(e,t,n,r)=>{if(typeof e=="string"){n_(e,t,n);return}if(typeof e=="function"){r_(e,t,n,r);return}o_(e,t,n,r)},n_=(e,t,n)=>{const r=e===""?t:FS(t,e);r.classGroupId=n},r_=(e,t,n,r)=>{if(i_(e)){sy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(QT(n,e))},o_=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[c,u]=o[s];sy(u,FS(t,c),n,r)}},FS=(e,t)=>{let n=e;const r=t.split(fh),o=r.length;for(let i=0;i<o;i++){const s=r[i];let c=n.nextPart.get(s);c||(c=LS(),n.nextPart.set(s,c)),n=c}return n},i_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,a_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Nv="!",Jb=":",s_=[],qb=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),l_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,c=0,u=0,f;const m=o.length;for(let A=0;A<m;A++){const x=o[A];if(s===0&&c===0){if(x===Jb){i.push(o.slice(u,A)),u=A+1;continue}if(x==="/"){f=A;continue}}x==="["?s++:x==="]"?s--:x==="("?c++:x===")"&&c--}const h=i.length===0?o:o.slice(u);let v=h,w=!1;h.endsWith(Nv)?(v=h.slice(0,-1),w=!0):h.startsWith(Nv)&&(v=h.slice(1),w=!0);const C=f&&f>u?f-u:void 0;return qb(i,w,v,C)};if(t){const o=t+Jb,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):qb(s_,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},c_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],c=s[0]==="[",u=t.has(s);c||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},u_=e=>({cache:a_(e.cacheSize),parseClassName:l_(e),sortModifiers:c_(e),...XT(e)}),f_=/\s+/,d_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],c=e.trim().split(f_);let u="";for(let f=c.length-1;f>=0;f-=1){const m=c[f],{isExternal:h,modifiers:v,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:A}=n(m);if(h){u=m+(u.length>0?" "+u:u);continue}let x=!!A,E=r(x?C.substring(0,A):C);if(!E){if(!x){u=m+(u.length>0?" "+u:u);continue}if(E=r(C),!E){u=m+(u.length>0?" "+u:u);continue}x=!1}const R=v.length===0?"":v.length===1?v[0]:i(v).join(":"),O=w?R+Nv:R,L=O+E;if(s.indexOf(L)>-1)continue;s.push(L);const M=o(E,x);for(let U=0;U<M.length;++U){const j=M[U];s.push(O+j)}u=m+(u.length>0?" "+u:u)}return u},p_=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=jS(n))&&(o&&(o+=" "),o+=r);return o},jS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jS(e[r]))&&(n&&(n+=" "),n+=t);return n},h_=(e,...t)=>{let n,r,o,i;const s=u=>{const f=t.reduce((m,h)=>h(m),e());return n=u_(f),r=n.cache.get,o=n.cache.set,i=c,c(u)},c=u=>{const f=r(u);if(f)return f;const m=d_(u,n);return o(u,m),m};return i=s,(...u)=>i(p_(...u))},m_=[],gn=e=>{const t=n=>n[e]||m_;return t.isThemeGetter=!0,t},zS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,BS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g_=/^\d+\/\d+$/,v_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,b_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nc=e=>g_.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),Ra=e=>!!e&&Number.isInteger(Number(e)),Tg=e=>e.endsWith("%")&&st(e.slice(0,-1)),Pi=e=>v_.test(e),S_=()=>!0,C_=e=>y_.test(e)&&!b_.test(e),US=()=>!1,A_=e=>x_.test(e),E_=e=>w_.test(e),k_=e=>!Ue(e)&&!We(e),T_=e=>Au(e,HS,US),Ue=e=>zS.test(e),Us=e=>Au(e,VS,C_),_g=e=>Au(e,O_,st),ex=e=>Au(e,WS,US),__=e=>Au(e,$S,E_),_p=e=>Au(e,KS,A_),We=e=>BS.test(e),Pf=e=>Eu(e,VS),R_=e=>Eu(e,M_),tx=e=>Eu(e,WS),P_=e=>Eu(e,HS),I_=e=>Eu(e,$S),Rp=e=>Eu(e,KS,!0),Au=(e,t,n)=>{const r=zS.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Eu=(e,t,n=!1)=>{const r=BS.exec(e);return r?r[1]?t(r[1]):n:!1},WS=e=>e==="position"||e==="percentage",$S=e=>e==="image"||e==="url",HS=e=>e==="length"||e==="size"||e==="bg-size",VS=e=>e==="length",O_=e=>e==="number",M_=e=>e==="family-name",KS=e=>e==="shadow",N_=()=>{const e=gn("color"),t=gn("font"),n=gn("text"),r=gn("font-weight"),o=gn("tracking"),i=gn("leading"),s=gn("breakpoint"),c=gn("container"),u=gn("spacing"),f=gn("radius"),m=gn("shadow"),h=gn("inset-shadow"),v=gn("text-shadow"),w=gn("drop-shadow"),C=gn("blur"),A=gn("perspective"),x=gn("aspect"),E=gn("ease"),R=gn("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...L(),We,Ue],U=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],$=()=>[We,Ue,u],H=()=>[Nc,"full","auto",...$()],G=()=>[Ra,"none","subgrid",We,Ue],q=()=>["auto",{span:["full",Ra,We,Ue]},Ra,We,Ue],pe=()=>[Ra,"auto",We,Ue],ie=()=>["auto","min","max","fr",We,Ue],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],xe=()=>["start","end","center","stretch","center-safe","end-safe"],Ae=()=>["auto",...$()],Re=()=>[Nc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],Q=()=>[e,We,Ue],Ee=()=>[...L(),tx,ex,{position:[We,Ue]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",P_,T_,{size:[We,Ue]}],ue=()=>[Tg,Pf,Us],me=()=>["","none","full",f,We,Ue],Te=()=>["",st,Pf,Us],de=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[st,Tg,tx,ex],je=()=>["","none",C,We,Ue],ze=()=>["none",st,We,Ue],Be=()=>["none",st,We,Ue],Je=()=>[st,We,Ue],ke=()=>[Nc,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pi],breakpoint:[Pi],color:[S_],container:[Pi],"drop-shadow":[Pi],ease:["in","out","in-out"],font:[k_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pi],shadow:[Pi],spacing:["px",st],text:[Pi],"text-shadow":[Pi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nc,Ue,We,x]}],container:["container"],columns:[{columns:[st,Ue,We,c]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ra,"auto",We,Ue]}],basis:[{basis:[Nc,"full","auto",c,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[st,Nc,"auto","initial","none",Ue]}],grow:[{grow:["",st,We,Ue]}],shrink:[{shrink:["",st,We,Ue]}],order:[{order:[Ra,"first","last","none",We,Ue]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...xe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...xe(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:Ae()}],mx:[{mx:Ae()}],my:[{my:Ae()}],ms:[{ms:Ae()}],me:[{me:Ae()}],mt:[{mt:Ae()}],mr:[{mr:Ae()}],mb:[{mb:Ae()}],ml:[{ml:Ae()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:Re()}],w:[{w:[c,"screen",...Re()]}],"min-w":[{"min-w":[c,"screen","none",...Re()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...Re()]}],h:[{h:["screen","lh",...Re()]}],"min-h":[{"min-h":["screen","lh","none",...Re()]}],"max-h":[{"max-h":["screen","lh",...Re()]}],"font-size":[{text:["base",n,Pf,Us]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,We,_g]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tg,Ue]}],"font-family":[{font:[R_,Ue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,We,Ue]}],"line-clamp":[{"line-clamp":[st,"none",We,_g]}],leading:[{leading:[i,...$()]}],"list-image":[{"list-image":["none",We,Ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",We,Ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[st,"from-font","auto",We,Us]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[st,"auto",We,Ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",We,Ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",We,Ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ra,We,Ue],radial:["",We,Ue],conic:[Ra,We,Ue]},I_,__]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Te()}],"border-w-x":[{"border-x":Te()}],"border-w-y":[{"border-y":Te()}],"border-w-s":[{"border-s":Te()}],"border-w-e":[{"border-e":Te()}],"border-w-t":[{"border-t":Te()}],"border-w-r":[{"border-r":Te()}],"border-w-b":[{"border-b":Te()}],"border-w-l":[{"border-l":Te()}],"divide-x":[{"divide-x":Te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[st,We,Ue]}],"outline-w":[{outline:["",st,Pf,Us]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",m,Rp,_p]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Rp,_p]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[st,Us]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":Te()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",v,Rp,_p]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[st,We,Ue]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[st]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[We,Ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[st]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",We,Ue]}],filter:[{filter:["","none",We,Ue]}],blur:[{blur:je()}],brightness:[{brightness:[st,We,Ue]}],contrast:[{contrast:[st,We,Ue]}],"drop-shadow":[{"drop-shadow":["","none",w,Rp,_p]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",st,We,Ue]}],"hue-rotate":[{"hue-rotate":[st,We,Ue]}],invert:[{invert:["",st,We,Ue]}],saturate:[{saturate:[st,We,Ue]}],sepia:[{sepia:["",st,We,Ue]}],"backdrop-filter":[{"backdrop-filter":["","none",We,Ue]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[st,We,Ue]}],"backdrop-contrast":[{"backdrop-contrast":[st,We,Ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",st,We,Ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[st,We,Ue]}],"backdrop-invert":[{"backdrop-invert":["",st,We,Ue]}],"backdrop-opacity":[{"backdrop-opacity":[st,We,Ue]}],"backdrop-saturate":[{"backdrop-saturate":[st,We,Ue]}],"backdrop-sepia":[{"backdrop-sepia":["",st,We,Ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",We,Ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[st,"initial",We,Ue]}],ease:[{ease:["linear","initial",E,We,Ue]}],delay:[{delay:[st,We,Ue]}],animate:[{animate:["none",R,We,Ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,We,Ue]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[We,Ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",We,Ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",We,Ue]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[st,Pf,Us,_g]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Gc=h_(N_);function YS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=YS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jf(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=YS(e))&&(r&&(r+=" "),r+=t);return r}function gt(...e){return Gc(Jf(e))}const L_="whitespace-nowrap font-normal flex items-center justify-center",D_="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",F_="disabled:opacity-15 disabled:pointer-events-none",GS=e=>e==="grayLight"||e==="warning",QS=(e,t)=>!t||t==="none"?"":e(),j_=(e,t)=>QS(()=>{const n=e==="gray400"?"gray":e,r=GS(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),z_=e=>QS(()=>{const t=GS(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),B_=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",U_=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",W_=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,$_=(e,t)=>({solid:z_(e),link:B_(e),linkHoverSolid:U_(e,t),outline:W_(e,t)}),H_={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},V_={none:"",default:"rounded",pill:"rounded-pill"},K_=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:c="default",style:u={},primaryColor:f,...m},h)=>{var O;const v=F_,w=/link/.test(o)?null:j_(n,e),C=D_,A=H_[r],x=(O=$_(n,e))==null?void 0:O[o],E=Gc(w,x),R=V_[c];return D.jsx("button",{...m,style:{...u,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:f?f+"!important":void 0},type:s,ref:h,className:Gc(L_,C,v,A,E,R,i,"cursor-pointer"),children:t})},Ht=Y.forwardRef(K_),Y_=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>D.jsx(D.Fragment,{children:e&&ui.createPortal(D.jsxs(zh.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[D.jsx("div",{className:"fixed inset-0 bg-black/30"}),D.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:D.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&D.jsx("div",{className:" text-gray-900 p-4",children:n}),D.jsx("div",{className:"p-4",children:i}),r||o?D.jsxs("div",{className:"flex gap-4 p-4",children:[r?D.jsx(Ht,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):D.jsx(D.Fragment,{}),o?D.jsx(Ht,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):D.jsx(D.Fragment,{})]}):D.jsx(D.Fragment,{})]})}),D.jsx("style",{type:"text/css",children:Uh})]}),document.body,"confidence-modal")}),G_=typeof document<"u"?Y.useLayoutEffect:()=>{},es=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qs=e=>e&&"window"in e&&e.window===e?e:es(e).defaultView||window;function Q_(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Z_(e){return Q_(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let X_=!1;function ly(){return X_}function ZS(e,t){if(!ly())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Z_(n)?n=n.host:n=n.parentNode}return!1}const Lv=(e=document)=>{var t;if(!ly())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function XS(e){return ly()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function J_(e){if(q_())e.focus({preventScroll:!0});else{let t=e4(e);e.focus(),t4(t)}}let Pp=null;function q_(){if(Pp==null){Pp=!1;try{document.createElement("div").focus({get preventScroll(){return Pp=!0,!0}})}catch{}}return Pp}function e4(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function t4(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Wh(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function cy(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Xi(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const qf=Xi(function(){return cy(/^Mac/i)}),n4=Xi(function(){return cy(/^iPhone/i)}),JS=Xi(function(){return cy(/^iPad/i)||qf()&&navigator.maxTouchPoints>1}),r4=Xi(function(){return n4()||JS()});Xi(function(){return qf()||r4()});const o4=Xi(function(){return Wh(/AppleWebKit/i)&&!i4()}),i4=Xi(function(){return Wh(/Chrome/i)}),a4=Xi(function(){return Wh(/Android/i)}),s4=Xi(function(){return Wh(/Firefox/i)});function ed(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:c,shiftKey:u}=t;s4()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(qf()?i=!0:s=!0);let f=o4()&&qf()&&!JS()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:c,shiftKey:u,detail:1,bubbles:!0,cancelable:!0});ed.isOpening=n,J_(e),e.dispatchEvent(f),ed.isOpening=!1}ed.isOpening=!1;function qS(){let e=Y.useRef(new Map),t=Y.useCallback((o,i,s,c)=>{let u=c!=null&&c.once?(...f)=>{e.current.delete(s),s(...f)}:s;e.current.set(s,{type:i,eventTarget:o,fn:u,options:c}),o.addEventListener(i,u,c)},[]),n=Y.useCallback((o,i,s,c)=>{var u;let f=((u=e.current.get(s))===null||u===void 0?void 0:u.fn)||s;o.removeEventListener(i,f,c),e.current.delete(s)},[]),r=Y.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return Y.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function l4(e){return e.pointerType===""&&e.isTrusted?!0:a4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function eC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function c4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function tC(e){let t=Y.useRef({isFocused:!1,observer:null});return G_(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),Y.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let s=eC(i);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let u4=!1,wd=null,Dv=new Set,$f=new Map,vl=!1,Fv=!1;const f4={Tab:!0,Escape:!0};function uy(e,t){for(let n of Dv)n(e,t)}function d4(e){return!(e.metaKey||!qf()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function dh(e){vl=!0,!ed.isOpening&&d4(e)&&(wd="keyboard",uy("keyboard",e))}function lo(e){wd="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(vl=!0,uy("pointer",e))}function nC(e){!ed.isOpening&&l4(e)&&(vl=!0,wd="virtual")}function rC(e){e.target===window||e.target===document||u4||!e.isTrusted||(!vl&&!Fv&&(wd="virtual",uy("virtual",e)),vl=!1,Fv=!1)}function oC(){vl=!1,Fv=!0}function jv(e){if(typeof window>"u"||typeof document>"u"||$f.get(Qs(e)))return;const t=Qs(e),n=es(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){vl=!0,r.apply(this,arguments)},n.addEventListener("keydown",dh,!0),n.addEventListener("keyup",dh,!0),n.addEventListener("click",nC,!0),t.addEventListener("focus",rC,!0),t.addEventListener("blur",oC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",lo,!0),n.addEventListener("pointermove",lo,!0),n.addEventListener("pointerup",lo,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",lo,!0),n.addEventListener("mousemove",lo,!0),n.addEventListener("mouseup",lo,!0)),t.addEventListener("beforeunload",()=>{iC(e)},{once:!0}),$f.set(t,{focus:r})}const iC=(e,t)=>{const n=Qs(e),r=es(e);t&&r.removeEventListener("DOMContentLoaded",t),$f.has(n)&&(n.HTMLElement.prototype.focus=$f.get(n).focus,r.removeEventListener("keydown",dh,!0),r.removeEventListener("keyup",dh,!0),r.removeEventListener("click",nC,!0),n.removeEventListener("focus",rC,!0),n.removeEventListener("blur",oC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",lo,!0),r.removeEventListener("pointermove",lo,!0),r.removeEventListener("pointerup",lo,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",lo,!0),r.removeEventListener("mousemove",lo,!0),r.removeEventListener("mouseup",lo,!0)),$f.delete(n))};function p4(e){const t=es(e);let n;return t.readyState!=="loading"?jv(e):(n=()=>{jv(e)},t.addEventListener("DOMContentLoaded",n)),()=>iC(e,n)}typeof document<"u"&&p4();function aC(){return wd!=="pointer"}const h4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function m4(e,t,n){let r=es(n==null?void 0:n.target);const o=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?Qs(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!h4.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!f4[n.key])}function g4(e,t,n){jv(),Y.useEffect(()=>{let r=(o,i)=>{m4(!!(n!=null&&n.isTextInput),o,i)&&e(aC())};return Dv.add(r),()=>{Dv.delete(r)}},t)}function v4(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=Y.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),s=tC(i),c=Y.useCallback(u=>{const f=es(u.target),m=f?Lv(f):Lv();u.target===u.currentTarget&&m===XS(u.nativeEvent)&&(n&&n(u),o&&o(!0),s(u))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:!t&&(r||o)?i:void 0}}}function y4(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=Y.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=qS(),u=Y.useCallback(h=>{h.currentTarget.contains(h.target)&&i.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(i.current.isFocusWithin=!1,c(),n&&n(h),o&&o(!1))},[n,o,i,c]),f=tC(u),m=Y.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const v=es(h.target),w=Lv(v);if(!i.current.isFocusWithin&&w===XS(h.nativeEvent)){r&&r(h),o&&o(!0),i.current.isFocusWithin=!0,f(h);let C=h.currentTarget;s(v,"focus",A=>{if(i.current.isFocusWithin&&!ZS(C,A.target)){let x=new v.defaultView.FocusEvent("blur",{relatedTarget:A.target});c4(x,C);let E=eC(x);u(E)}},{capture:!0})}},[r,o,f,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:u}}}let ph=!1,Ip=0;function zv(){ph=!0,setTimeout(()=>{ph=!1},50)}function nx(e){e.pointerType==="touch"&&zv()}function b4(){if(!(typeof document>"u"))return Ip===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",nx):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",zv)),Ip++,()=>{Ip--,!(Ip>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",nx):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",zv))}}function x4(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=Y.useState(!1),c=Y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Y.useEffect(b4,[]);let{addGlobalListener:u,removeAllGlobalListeners:f}=qS(),{hoverProps:m,triggerHoverEnd:h}=Y.useMemo(()=>{let v=(A,x)=>{if(c.pointerType=x,o||x==="touch"||c.isHovered||!A.currentTarget.contains(A.target))return;c.isHovered=!0;let E=A.currentTarget;c.target=E,u(es(A.target),"pointerover",R=>{c.isHovered&&c.target&&!ZS(c.target,R.target)&&w(R,R.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:x}),n&&n(!0),s(!0)},w=(A,x)=>{let E=c.target;c.pointerType="",c.target=null,!(x==="touch"||!c.isHovered||!E)&&(c.isHovered=!1,f(),r&&r({type:"hoverend",target:E,pointerType:x}),n&&n(!1),s(!1))},C={};return typeof PointerEvent<"u"?(C.onPointerEnter=A=>{ph&&A.pointerType==="mouse"||v(A,A.pointerType)},C.onPointerLeave=A=>{!o&&A.currentTarget.contains(A.target)&&w(A,A.pointerType)}):process.env.NODE_ENV==="test"&&(C.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},C.onMouseEnter=A=>{!c.ignoreEmulatedMouseEvents&&!ph&&v(A,"mouse"),c.ignoreEmulatedMouseEvents=!1},C.onMouseLeave=A=>{!o&&A.currentTarget.contains(A.target)&&w(A,"mouse")}),{hoverProps:C,triggerHoverEnd:w}},[t,n,r,o,c,u,f]);return Y.useEffect(()=>{o&&h({currentTarget:c.target},c.pointerType)},[o]),{hoverProps:m,isHovered:i}}function w4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=Y.useRef({isFocused:!1,isFocusVisible:t||aC()}),[i,s]=Y.useState(!1),[c,u]=Y.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=Y.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),m=Y.useCallback(w=>{o.current.isFocused=w,s(w),f()},[f]);g4(w=>{o.current.isFocusVisible=w,f()},[],{isTextInput:n});let{focusProps:h}=v4({isDisabled:r,onFocusChange:m}),{focusWithinProps:v}=y4({isDisabled:!r,onFocusWithinChange:m});return{isFocused:i,isFocusVisible:c,focusProps:r?v:h}}var S4=Object.defineProperty,C4=(e,t,n)=>t in e?S4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rg=(e,t,n)=>(C4(e,typeof t!="symbol"?t+"":t,n),n);let A4=class{constructor(){Rg(this,"current",this.detect()),Rg(this,"handoffState","pending"),Rg(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},E4=new A4,fy=(e,t)=>{E4.isServer?Y.useEffect(e,t):Y.useLayoutEffect(e,t)};function k4(e){let t=Y.useRef(e);return fy(()=>{t.current=e},[e]),t}let $h=function(e){let t=k4(e);return Y.useCallback((...n)=>t.current(...n),[t])};function Hh(e){return Y.useMemo(()=>e,Object.values(e))}let sC=Y.createContext(void 0);function Vh(){return Y.useContext(sC)}function T4({value:e,children:t}){return Y.createElement(sC.Provider,{value:e},t)}function rx(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function lC(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lC),r}var _4=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_4||{}),R4=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(R4||{});function Sd(){let e=I4();return Y.useCallback(t=>P4({mergeRefs:e,...t}),[e])}function P4({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:c}){c=c??O4;let u=cC(t,e);if(i)return Op(u,n,r,s,c);let f=o??0;if(f&2){let{static:m=!1,...h}=u;if(m)return Op(h,n,r,s,c)}if(f&1){let{unmount:m=!0,...h}=u;return lC(m?0:1,{0(){return null},1(){return Op({...h,hidden:!0,style:{display:"none"}},n,r,s,c)}})}return Op(u,n,r,s,c)}function Op(e,t={},n,r,o){let{as:i=n,children:s,refName:c="ref",...u}=Pg(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},m=typeof s=="function"?s(t):s;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let h={};if(t){let v=!1,w=[];for(let[C,A]of Object.entries(t))typeof A=="boolean"&&(v=!0),A===!0&&w.push(C.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(v){h["data-headlessui-state"]=w.join(" ");for(let C of w)h[`data-${C}`]=""}}if(Gp(i)&&(Object.keys(Lc(u)).length>0||Object.keys(Lc(h)).length>0))if(!Y.isValidElement(m)||Array.isArray(m)&&m.length>1||L4(m)){if(Object.keys(Lc(u)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Lc(u)).concat(Object.keys(Lc(h))).map(v=>` - ${v}`).join(`
|
|
126
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
127
127
|
`)].join(`
|
|
128
|
-
`))}else{let F=R.props,M=F==null?void 0:F.className,B=typeof M=="function"?(...I)=>Hp(M(...I),m.className):Hp(M,m.className),D=B?{className:B}:{},P=Um(R.props,as(Lf(m,["ref"])));for(let I in E)I in P&&delete E[I];return V.cloneElement(R,Object.assign({},P,E,x,{ref:a(zb(R),x.ref)},D))}return V.createElement(d,Object.assign({},Lf(m,["ref"]),d!==V.Fragment&&x,d!==V.Fragment&&E),R)}function jb(){let e=V.useRef([]),r=V.useCallback(o=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(o):i.current=o)},[]);return(...o)=>{if(!o.every(i=>i==null))return e.current=o,r}}function Nb(...e){return e.every(r=>r==null)?void 0:r=>{for(let o of e)o!=null&&(typeof o=="function"?o(r):o.current=r)}}function Um(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},o={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(o[a]!=null||(o[a]=[]),o[a].push(i[a])):r[a]=i[a];if(r.disabled||r["aria-disabled"])for(let i in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(o[i]=[a=>{var d;return(d=a==null?void 0:a.preventDefault)==null?void 0:d.call(a)}]);for(let i in o)Object.assign(r,{[i](a,...d){let h=o[i];for(let v of h){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;v(a,...d)}}});return r}function $b(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},o={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(o[a]!=null||(o[a]=[]),o[a].push(i[a])):r[a]=i[a];for(let i in o)Object.assign(r,{[i](...a){let d=o[i];for(let h of d)h==null||h(...a)}});return r}function Xl(e){var r;return Object.assign(V.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function as(e){let r=Object.assign({},e);for(let o in r)r[o]===void 0&&delete r[o];return r}function Lf(e,r=[]){let o=Object.assign({},e);for(let i of r)i in o&&delete o[i];return o}function zb(e){return V.version.split(".")[0]>="19"?e.props.ref:e.ref}let Bb="span";var Hm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Hm||{});function Ub(e,r){var o;let{features:i=1,...a}=e,d={ref:r,"aria-hidden":(i&2)===2?!0:(o=a["aria-hidden"])!=null?o:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Ql()({ourProps:d,theirProps:a,slot:{},defaultTag:Bb,name:"Hidden"})}let Hb=Xl(Ub),Wb=V.createContext(null);function Vb(e){let[r,o]=V.useState(null);return V.createElement(Wb.Provider,{value:{target:r}},e.children,V.createElement(Hb,{features:Hm.Hidden,ref:o}))}let Wm=V.createContext(void 0);function Vm(){return V.useContext(Wm)}function Yb({id:e,children:r}){return V.createElement(Wm.Provider,{value:e},r)}function Gb(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Ym(e){return Gb(e)&&"tagName"in e}function Gm(e){return Ym(e)&&"accessKey"in e}function Qb(e){return Gm(e)&&e.nodeName==="INPUT"}function Wp(e){return Gm(e)&&e.nodeName==="LABEL"}function Xb(e){return Ym(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let qb=Symbol();function Qm(...e){let r=V.useRef(e);V.useEffect(()=>{r.current=e},[e]);let o=pc(i=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[qb]))?void 0:o}let mc=V.createContext(null);mc.displayName="DescriptionContext";function Xm(){let e=V.useContext(mc);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Xm),r}return e}function Jb(){var e,r;return(r=(e=V.useContext(mc))==null?void 0:e.value)!=null?r:void 0}function Kb(){let[e,r]=V.useState([]);return[e.length>0?e.join(" "):void 0,V.useMemo(()=>function(o){let i=pc(d=>(r(h=>[...h,d]),()=>r(h=>{let v=h.slice(),m=v.indexOf(d);return m!==-1&&v.splice(m,1),v}))),a=V.useMemo(()=>({register:i,slot:o.slot,name:o.name,props:o.props,value:o.value}),[i,o.slot,o.name,o.props,o.value]);return V.createElement(mc.Provider,{value:a},o.children)},[r])]}let Zb="p";function e0(e,r){let o=V.useId(),i=hc(),{id:a=`headlessui-description-${o}`,...d}=e,h=Xm(),v=Qm(r);Jd(()=>h.register(a),[a,h.register]);let m=i||!1,x=V.useMemo(()=>({...h.slot,disabled:m}),[h.slot,m]),R={ref:v,...h.props,id:a};return Ql()({ourProps:R,theirProps:d,slot:x,defaultTag:Zb,name:h.name||"Description"})}let t0=Xl(e0),r0=Object.assign(t0,{}),gc=V.createContext(null);gc.displayName="LabelContext";function qm(){let e=V.useContext(gc);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,qm),r}return e}function Jm(e){var r,o,i;let a=(o=(r=V.useContext(gc))==null?void 0:r.value)!=null?o:void 0;return((i=void 0)!=null?i:0)>0?[a,...e].filter(Boolean).join(" "):a}function n0({inherit:e=!1}={}){let r=Jm(),[o,i]=V.useState([]),a=e?[r,...o].filter(Boolean):o;return[a.length>0?a.join(" "):void 0,V.useMemo(()=>function(d){let h=pc(m=>(i(x=>[...x,m]),()=>i(x=>{let R=x.slice(),E=R.indexOf(m);return E!==-1&&R.splice(E,1),R}))),v=V.useMemo(()=>({register:h,slot:d.slot,name:d.name,props:d.props,value:d.value}),[h,d.slot,d.name,d.props,d.value]);return V.createElement(gc.Provider,{value:v},d.children)},[i])]}let o0="label";function i0(e,r){var o;let i=V.useId(),a=qm(),d=Vm(),h=hc(),{id:v=`headlessui-label-${i}`,htmlFor:m=d??((o=a.props)==null?void 0:o.htmlFor),passive:x=!1,...R}=e,E=Qm(r);Jd(()=>a.register(v),[v,a.register]);let F=pc(P=>{let I=P.currentTarget;if(!(P.target!==P.currentTarget&&Xb(P.target))&&(Wp(I)&&P.preventDefault(),a.props&&"onClick"in a.props&&typeof a.props.onClick=="function"&&a.props.onClick(P),Wp(I))){let W=document.getElementById(I.htmlFor);if(W){let U=W.getAttribute("disabled");if(U==="true"||U==="")return;let q=W.getAttribute("aria-disabled");if(q==="true"||q==="")return;(Qb(W)&&(W.type==="file"||W.type==="radio"||W.type==="checkbox")||W.role==="radio"||W.role==="checkbox"||W.role==="switch")&&W.click(),W.focus({preventScroll:!0})}}}),M=h||!1,B=V.useMemo(()=>({...a.slot,disabled:M}),[a.slot,M]),D={ref:E,...a.props,id:v,htmlFor:m,onClick:F};return x&&("onClick"in D&&(delete D.htmlFor,delete D.onClick),"onClick"in R&&delete R.onClick),Ql()({ourProps:D,theirProps:R,slot:B,defaultTag:m?o0:"div",name:a.name||"Label"})}let a0=Xl(i0),s0=Object.assign(a0,{});function vc(){return typeof window<"u"}function Ms(e){return Km(e)?(e.nodeName||"").toLowerCase():"#document"}function gr(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function io(e){var r;return(r=(Km(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Km(e){return vc()?e instanceof Node||e instanceof gr(e).Node:!1}function pt(e){return vc()?e instanceof Element||e instanceof gr(e).Element:!1}function Zr(e){return vc()?e instanceof HTMLElement||e instanceof gr(e).HTMLElement:!1}function vd(e){return!vc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gr(e).ShadowRoot}function ql(e){const{overflow:r,overflowX:o,overflowY:i,display:a}=_r(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!["inline","contents"].includes(a)}function l0(e){return["table","td","th"].includes(Ms(e))}function yc(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function Kd(e){const r=bc(),o=pt(e)?_r(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function u0(e){let r=to(e);for(;Zr(r)&&!Zn(r);){if(Kd(r))return r;if(yc(r))return null;r=to(r)}return null}function bc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zn(e){return["html","body","#document"].includes(Ms(e))}function _r(e){return gr(e).getComputedStyle(e)}function xc(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(Ms(e)==="html")return e;const r=e.assignedSlot||e.parentNode||vd(e)&&e.host||io(e);return vd(r)?r.host:r}function Zm(e){const r=to(e);return Zn(r)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(r)&&ql(r)?r:Zm(r)}function ds(e,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=Zm(e),d=a===((i=e.ownerDocument)==null?void 0:i.body),h=gr(a);if(d){const v=yd(h);return r.concat(h,h.visualViewport||[],ql(a)?a:[],v&&o?ds(v):[])}return r.concat(a,ds(a,[],o))}function yd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Vp=Math.min,Fl=Math.max,ic=Math.round,Sn=e=>({x:e,y:e});function eg(e){return e.split("-")[0]}function c0(e){return e.split("-")[1]}function f0(e){return e==="x"?"y":"x"}function d0(e){return e==="y"?"height":"width"}function tg(e){return["top","bottom"].includes(eg(e))?"y":"x"}function p0(e){return f0(tg(e))}function rg(e){const{x:r,y:o,width:i,height:a}=e;return{width:i,height:a,top:o,left:r,right:r+i,bottom:o+a,x:r,y:o}}function Yp(e,r,o){let{reference:i,floating:a}=e;const d=tg(r),h=p0(r),v=d0(h),m=eg(r),x=d==="y",R=i.x+i.width/2-a.width/2,E=i.y+i.height/2-a.height/2,F=i[v]/2-a[v]/2;let M;switch(m){case"top":M={x:R,y:i.y-a.height};break;case"bottom":M={x:R,y:i.y+i.height};break;case"right":M={x:i.x+i.width,y:E};break;case"left":M={x:i.x-a.width,y:E};break;default:M={x:i.x,y:i.y}}switch(c0(r)){case"start":M[h]-=F*(o&&x?-1:1);break;case"end":M[h]+=F*(o&&x?-1:1);break}return M}const h0=async(e,r,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:h}=o,v=d.filter(Boolean),m=await(h.isRTL==null?void 0:h.isRTL(r));let x=await h.getElementRects({reference:e,floating:r,strategy:a}),{x:R,y:E}=Yp(x,i,m),F=i,M={},B=0;for(let D=0;D<v.length;D++){const{name:P,fn:I}=v[D],{x:W,y:U,data:q,reset:_}=await I({x:R,y:E,initialPlacement:i,placement:F,strategy:a,middlewareData:M,rects:x,platform:h,elements:{reference:e,floating:r}});R=W??R,E=U??E,M={...M,[P]:{...M[P],...q}},_&&B<=50&&(B++,typeof _=="object"&&(_.placement&&(F=_.placement),_.rects&&(x=_.rects===!0?await h.getElementRects({reference:e,floating:r,strategy:a}):_.rects),{x:R,y:E}=Yp(x,F,m)),D=-1)}return{x:R,y:E,placement:F,strategy:a,middlewareData:M}};function ng(e){const r=_r(e);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const a=Zr(e),d=a?e.offsetWidth:o,h=a?e.offsetHeight:i,v=ic(o)!==d||ic(i)!==h;return v&&(o=d,i=h),{width:o,height:i,$:v}}function og(e){return pt(e)?e:e.contextElement}function ps(e){const r=og(e);if(!Zr(r))return Sn(1);const o=r.getBoundingClientRect(),{width:i,height:a,$:d}=ng(r);let h=(d?ic(o.width):o.width)/i,v=(d?ic(o.height):o.height)/a;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const m0=Sn(0);function ig(e){const r=gr(e);return!bc()||!r.visualViewport?m0:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function g0(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==gr(e)?!1:r}function Nl(e,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),d=og(e);let h=Sn(1);r&&(i?pt(i)&&(h=ps(i)):h=ps(e));const v=g0(d,o,i)?ig(d):Sn(0);let m=(a.left+v.x)/h.x,x=(a.top+v.y)/h.y,R=a.width/h.x,E=a.height/h.y;if(d){const F=gr(d),M=i&&pt(i)?gr(i):i;let B=F,D=yd(B);for(;D&&i&&M!==B;){const P=ps(D),I=D.getBoundingClientRect(),W=_r(D),U=I.left+(D.clientLeft+parseFloat(W.paddingLeft))*P.x,q=I.top+(D.clientTop+parseFloat(W.paddingTop))*P.y;m*=P.x,x*=P.y,R*=P.x,E*=P.y,m+=U,x+=q,B=gr(D),D=yd(B)}}return rg({width:R,height:E,x:m,y:x})}function Zd(e,r){const o=xc(e).scrollLeft;return r?r.left+o:Nl(io(e)).left+o}function ag(e,r,o){o===void 0&&(o=!1);const i=e.getBoundingClientRect(),a=i.left+r.scrollLeft-(o?0:Zd(e,i)),d=i.top+r.scrollTop;return{x:a,y:d}}function v0(e){let{elements:r,rect:o,offsetParent:i,strategy:a}=e;const d=a==="fixed",h=io(i),v=r?yc(r.floating):!1;if(i===h||v&&d)return o;let m={scrollLeft:0,scrollTop:0},x=Sn(1);const R=Sn(0),E=Zr(i);if((E||!E&&!d)&&((Ms(i)!=="body"||ql(h))&&(m=xc(i)),Zr(i))){const M=Nl(i);x=ps(i),R.x=M.x+i.clientLeft,R.y=M.y+i.clientTop}const F=h&&!E&&!d?ag(h,m,!0):Sn(0);return{width:o.width*x.x,height:o.height*x.y,x:o.x*x.x-m.scrollLeft*x.x+R.x+F.x,y:o.y*x.y-m.scrollTop*x.y+R.y+F.y}}function y0(e){return Array.from(e.getClientRects())}function b0(e){const r=io(e),o=xc(e),i=e.ownerDocument.body,a=Fl(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),d=Fl(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let h=-o.scrollLeft+Zd(e);const v=-o.scrollTop;return _r(i).direction==="rtl"&&(h+=Fl(r.clientWidth,i.clientWidth)-a),{width:a,height:d,x:h,y:v}}function x0(e,r){const o=gr(e),i=io(e),a=o.visualViewport;let d=i.clientWidth,h=i.clientHeight,v=0,m=0;if(a){d=a.width,h=a.height;const x=bc();(!x||x&&r==="fixed")&&(v=a.offsetLeft,m=a.offsetTop)}return{width:d,height:h,x:v,y:m}}function w0(e,r){const o=Nl(e,!0,r==="fixed"),i=o.top+e.clientTop,a=o.left+e.clientLeft,d=Zr(e)?ps(e):Sn(1),h=e.clientWidth*d.x,v=e.clientHeight*d.y,m=a*d.x,x=i*d.y;return{width:h,height:v,x:m,y:x}}function Gp(e,r,o){let i;if(r==="viewport")i=x0(e,o);else if(r==="document")i=b0(io(e));else if(pt(r))i=w0(r,o);else{const a=ig(e);i={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return rg(i)}function sg(e,r){const o=to(e);return o===r||!pt(o)||Zn(o)?!1:_r(o).position==="fixed"||sg(o,r)}function S0(e,r){const o=r.get(e);if(o)return o;let i=ds(e,[],!1).filter(v=>pt(v)&&Ms(v)!=="body"),a=null;const d=_r(e).position==="fixed";let h=d?to(e):e;for(;pt(h)&&!Zn(h);){const v=_r(h),m=Kd(h);!m&&v.position==="fixed"&&(a=null),(d?!m&&!a:!m&&v.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ql(h)&&!m&&sg(e,h))?i=i.filter(R=>R!==h):a=v,h=to(h)}return r.set(e,i),i}function k0(e){let{element:r,boundary:o,rootBoundary:i,strategy:a}=e;const h=[...o==="clippingAncestors"?yc(r)?[]:S0(r,this._c):[].concat(o),i],v=h[0],m=h.reduce((x,R)=>{const E=Gp(r,R,a);return x.top=Fl(E.top,x.top),x.right=Vp(E.right,x.right),x.bottom=Vp(E.bottom,x.bottom),x.left=Fl(E.left,x.left),x},Gp(r,v,a));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function E0(e){const{width:r,height:o}=ng(e);return{width:r,height:o}}function C0(e,r,o){const i=Zr(r),a=io(r),d=o==="fixed",h=Nl(e,!0,d,r);let v={scrollLeft:0,scrollTop:0};const m=Sn(0);function x(){m.x=Zd(a)}if(i||!i&&!d)if((Ms(r)!=="body"||ql(a))&&(v=xc(r)),i){const M=Nl(r,!0,d,r);m.x=M.x+r.clientLeft,m.y=M.y+r.clientTop}else a&&x();d&&!i&&a&&x();const R=a&&!i&&!d?ag(a,v):Sn(0),E=h.left+v.scrollLeft-m.x-R.x,F=h.top+v.scrollTop-m.y-R.y;return{x:E,y:F,width:h.width,height:h.height}}function jf(e){return _r(e).position==="static"}function Qp(e,r){if(!Zr(e)||_r(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return io(e)===o&&(o=o.ownerDocument.body),o}function lg(e,r){const o=gr(e);if(yc(e))return o;if(!Zr(e)){let a=to(e);for(;a&&!Zn(a);){if(pt(a)&&!jf(a))return a;a=to(a)}return o}let i=Qp(e,r);for(;i&&l0(i)&&jf(i);)i=Qp(i,r);return i&&Zn(i)&&jf(i)&&!Kd(i)?o:i||u0(e)||o}const T0=async function(e){const r=this.getOffsetParent||lg,o=this.getDimensions,i=await o(e.floating);return{reference:C0(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function R0(e){return _r(e).direction==="rtl"}const P0={convertOffsetParentRelativeRectToViewportRelativeRect:v0,getDocumentElement:io,getClippingRect:k0,getOffsetParent:lg,getElementRects:T0,getClientRects:y0,getDimensions:E0,getScale:ps,isElement:pt,isRTL:R0},A0=(e,r,o)=>{const i=new Map,a={platform:P0,...o},d={...a.platform,_c:i};return h0(e,r,{...a,platform:d})};var I0=typeof document<"u",O0=function(){},Ju=I0?V.useLayoutEffect:O0;function ac(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let o,i,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!ac(e[i],r[i]))return!1;return!0}if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,a[i]))return!1;for(i=o;i--!==0;){const d=a[i];if(!(d==="_owner"&&e.$$typeof)&&!ac(e[d],r[d]))return!1}return!0}return e!==e&&r!==r}function ug(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xp(e,r){const o=ug(e);return Math.round(r*o)/o}function Nf(e){const r=de.useRef(e);return Ju(()=>{r.current=e}),r}function F0(e){e===void 0&&(e={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:d,floating:h}={},transform:v=!0,whileElementsMounted:m,open:x}=e,[R,E]=de.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[F,M]=de.useState(i);ac(F,i)||M(i);const[B,D]=de.useState(null),[P,I]=de.useState(null),W=de.useCallback(Z=>{Z!==ie.current&&(ie.current=Z,D(Z))},[]),U=de.useCallback(Z=>{Z!==ce.current&&(ce.current=Z,I(Z))},[]),q=d||B,_=h||P,ie=de.useRef(null),ce=de.useRef(null),ee=de.useRef(R),ae=m!=null,Fe=Nf(m),Ne=Nf(a),_e=Nf(x),Ge=de.useCallback(()=>{if(!ie.current||!ce.current)return;const Z={placement:r,strategy:o,middleware:F};Ne.current&&(Z.platform=Ne.current),A0(ie.current,ce.current,Z).then(be=>{const Q={...be,isPositioned:_e.current!==!1};Qe.current&&!ac(ee.current,Q)&&(ee.current=Q,ev.flushSync(()=>{E(Q)}))})},[F,r,o,Ne,_e]);Ju(()=>{x===!1&&ee.current.isPositioned&&(ee.current.isPositioned=!1,E(Z=>({...Z,isPositioned:!1})))},[x]);const Qe=de.useRef(!1);Ju(()=>(Qe.current=!0,()=>{Qe.current=!1}),[]),Ju(()=>{if(q&&(ie.current=q),_&&(ce.current=_),q&&_){if(Fe.current)return Fe.current(q,_,Ge);Ge()}},[q,_,Ge,Fe,ae]);const ke=de.useMemo(()=>({reference:ie,floating:ce,setReference:W,setFloating:U}),[W,U]),Ce=de.useMemo(()=>({reference:q,floating:_}),[q,_]),je=de.useMemo(()=>{const Z={position:o,left:0,top:0};if(!Ce.floating)return Z;const be=Xp(Ce.floating,R.x),Q=Xp(Ce.floating,R.y);return v?{...Z,transform:"translate("+be+"px, "+Q+"px)",...ug(Ce.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:be,top:Q}},[o,v,Ce.floating,R.x,R.y]);return de.useMemo(()=>({...R,update:Ge,refs:ke,elements:Ce,floatingStyles:je}),[R,Ge,ke,Ce,je])}let M0="div";function D0(e,r){let o=`headlessui-control-${V.useId()}`,[i,a]=n0(),[d,h]=Kb(),v=hc(),{disabled:m=v||!1,...x}=e,R=V.useMemo(()=>({disabled:m}),[m]),E={ref:r,disabled:m||void 0,"aria-disabled":m||void 0},F=Ql();return V.createElement(Mb,{value:m},V.createElement(a,{value:i},V.createElement(h,{value:d},V.createElement(Yb,{id:o},F({ourProps:E,theirProps:{...x,children:V.createElement(Vb,null,typeof x.children=="function"?x.children(R):x.children)},slot:R,defaultTag:M0,name:"Field"})))))}let _0=Xl(D0),L0="input";function j0(e,r){let o=V.useId(),i=Vm(),a=hc(),{id:d=i||`headlessui-input-${o}`,disabled:h=a||!1,autoFocus:v=!1,invalid:m=!1,...x}=e,R=Jm(),E=Jb(),{isFocused:F,focusProps:M}=Rb({autoFocus:v}),{isHovered:B,hoverProps:D}=Tb({isDisabled:h}),P=$b({ref:r,id:d,"aria-labelledby":R,"aria-describedby":E,"aria-invalid":m?"true":void 0,disabled:h||void 0,autoFocus:v},M,D),I=V.useMemo(()=>({disabled:h,invalid:m,hover:B,focus:F,autofocus:v}),[h,m,B,F,v]);return Ql()({ourProps:P,theirProps:x,slot:I,defaultTag:L0,name:"Input"})}let N0=Xl(j0);const $0=({type:e="text",className:r,label:o,description:i,error:a,...d})=>Y.jsx("div",{className:"w-full max-w-md px-4",children:Y.jsxs(_0,{children:[o&&Y.jsx(s0,{className:"font-medium text-gray-900",children:o}),i&&Y.jsx(r0,{className:"text-sm text-secondary",children:i}),Y.jsx(N0,{type:e,className:gt("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",r,a&&"border-red-500 focus:border-red-500"),...d})]})}),z0=({onConfirm:e,onClose:r,isOpen:o,title:i})=>{const[a,d]=V.useState(""),[h,v]=V.useState(!1),[m,x]=V.useState(!1),R=async()=>{if(a)try{v(!0),await e(a),d("")}catch{x(!0)}finally{v(!1)}else alert("Please enter a valid email address.")};return Y.jsx(ob,{isOpen:o,close:r,dismissOptions:{label:"Cancel",onClick:r},confirmOptions:{label:"Initiate",onClick:R,disabled:h||!a||m},children:Y.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[Y.jsxs("div",{children:[Y.jsx("div",{className:"text-center text-2xl font-medium",children:m?"User already has access":i||"Access Playbook"}),Y.jsx("div",{className:"text-center",children:m?Y.jsxs(Y.Fragment,{children:[Y.jsx("b",{children:a})," has already accessed a playbook. Contact Confidence to speak to representative."]}):Y.jsx(Y.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),Y.jsx($0,{disabled:h||m,placeholder:"Enter company email address",onChange:E=>d(E.target.value)})]})})},B0=({btnClassName:e,buttonNode:r,size:o,playbookId:i,onInitiated:a,disabled:d,btnLabel:h="Run Playbook",btnColor:v="primary"})=>{const[m,x]=V.useState(!1),[R,E]=V.useState(!1);function F(){x(!0)}function M(){x(!1)}const B=async D=>{try{E(!0);const{playbookInstanceId:P,errorCode:I,details:W,message:U}=await mm({bank:"public-sdk",email:D,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:i})||{};if(I)throw new Error(`Error initiating playbook: ${U} (Code: ${I}) - Details: ${W}`);a(P)}finally{E(!1)}};return Y.jsxs(Y.Fragment,{children:[r?{buttonNode:r}:Y.jsxs(jl,{onClick:F,className:gt(e,"flex items-center gap-1"),color:v,size:o,disabled:d||R,children:[Y.jsx("img",{src:Jh,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),h]}),Y.jsx(z0,{isOpen:m,onClose:M,onConfirm:async D=>{await B(D),M()}})]})};/*!
|
|
128
|
+
`))}else{let v=m.props,w=v==null?void 0:v.className,C=typeof w=="function"?(...E)=>rx(w(...E),u.className):rx(w,u.className),A=C?{className:C}:{},x=cC(m.props,Lc(Pg(u,["ref"])));for(let E in h)E in x&&delete h[E];return Y.cloneElement(m,Object.assign({},x,h,f,{ref:o(N4(m),f.ref)},A))}return Y.createElement(i,Object.assign({},Pg(u,["ref"]),!Gp(i)&&f,!Gp(i)&&h),m)}function I4(){let e=Y.useRef([]),t=Y.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function O4(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function cC(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let c of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...i)}}});return t}function M4(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function Cd(e){var t;return Object.assign(Y.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Lc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Pg(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function N4(e){return Y.version.split(".")[0]>="19"?e.props.ref:e.ref}function Gp(e){return e===Y.Fragment||e===Symbol.for("react.fragment")}function L4(e){return Gp(e.type)}let D4="span";var uC=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(uC||{});function F4(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Sd()({ourProps:i,theirProps:o,slot:{},defaultTag:D4,name:"Hidden"})}let j4=Cd(F4),z4=Y.createContext(null);function B4(e){let[t,n]=Y.useState(null);return Y.createElement(z4.Provider,{value:{target:t}},e.children,Y.createElement(j4,{features:uC.Hidden,ref:n}))}let fC=Y.createContext(void 0);function dC(){return Y.useContext(fC)}function U4({id:e,children:t}){return Y.createElement(fC.Provider,{value:e},t)}function W4(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function pC(e){return W4(e)&&"tagName"in e}function hC(e){return pC(e)&&"accessKey"in e}function $4(e){return hC(e)&&e.nodeName==="INPUT"}function ox(e){return hC(e)&&e.nodeName==="LABEL"}function H4(e){return pC(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let V4=Symbol();function mC(...e){let t=Y.useRef(e);Y.useEffect(()=>{t.current=e},[e]);let n=$h(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[V4]))?void 0:n}let Kh=Y.createContext(null);Kh.displayName="DescriptionContext";function gC(){let e=Y.useContext(Kh);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,gC),t}return e}function K4(){var e,t;return(t=(e=Y.useContext(Kh))==null?void 0:e.value)!=null?t:void 0}function Y4(){let[e,t]=Y.useState([]);return[e.length>0?e.join(" "):void 0,Y.useMemo(()=>function(n){let r=$h(i=>(t(s=>[...s,i]),()=>t(s=>{let c=s.slice(),u=c.indexOf(i);return u!==-1&&c.splice(u,1),c}))),o=Y.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return Y.createElement(Kh.Provider,{value:o},n.children)},[t])]}let G4="p";function Q4(e,t){let n=Y.useId(),r=Vh(),{id:o=`headlessui-description-${n}`,...i}=e,s=gC(),c=mC(t);fy(()=>s.register(o),[o,s.register]);let u=Hh({...s.slot,disabled:r||!1}),f={ref:c,...s.props,id:o};return Sd()({ourProps:f,theirProps:i,slot:u,defaultTag:G4,name:s.name||"Description"})}let Z4=Cd(Q4),X4=Object.assign(Z4,{}),Yh=Y.createContext(null);Yh.displayName="LabelContext";function vC(){let e=Y.useContext(Yh);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,vC),t}return e}function yC(e){var t,n,r;let o=(n=(t=Y.useContext(Yh))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function J4({inherit:e=!1}={}){let t=yC(),[n,r]=Y.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,Y.useMemo(()=>function(i){let s=$h(u=>(r(f=>[...f,u]),()=>r(f=>{let m=f.slice(),h=m.indexOf(u);return h!==-1&&m.splice(h,1),m}))),c=Y.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return Y.createElement(Yh.Provider,{value:c},i.children)},[r])]}let q4="label";function e3(e,t){var n;let r=Y.useId(),o=vC(),i=dC(),s=Vh(),{id:c=`headlessui-label-${r}`,htmlFor:u=i??((n=o.props)==null?void 0:n.htmlFor),passive:f=!1,...m}=e,h=mC(t);fy(()=>o.register(c),[c,o.register]);let v=$h(A=>{let x=A.currentTarget;if(!(A.target!==A.currentTarget&&H4(A.target))&&(ox(x)&&A.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(A),ox(x))){let E=document.getElementById(x.htmlFor);if(E){let R=E.getAttribute("disabled");if(R==="true"||R==="")return;let O=E.getAttribute("aria-disabled");if(O==="true"||O==="")return;($4(E)&&(E.type==="file"||E.type==="radio"||E.type==="checkbox")||E.role==="radio"||E.role==="checkbox"||E.role==="switch")&&E.click(),E.focus({preventScroll:!0})}}}),w=Hh({...o.slot,disabled:s||!1}),C={ref:h,...o.props,id:c,htmlFor:u,onClick:v};return f&&("onClick"in C&&(delete C.htmlFor,delete C.onClick),"onClick"in m&&delete m.onClick),Sd()({ourProps:C,theirProps:m,slot:w,defaultTag:u?q4:"div",name:o.name||"Label"})}let t3=Cd(e3),n3=Object.assign(t3,{});function Gh(){return typeof window<"u"}function ku(e){return dy(e)?(e.nodeName||"").toLowerCase():"#document"}function Yr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ji(e){var t;return(t=(dy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dy(e){return Gh()?e instanceof Node||e instanceof Yr(e).Node:!1}function nn(e){return Gh()?e instanceof Element||e instanceof Yr(e).Element:!1}function Lo(e){return Gh()?e instanceof HTMLElement||e instanceof Yr(e).HTMLElement:!1}function Bv(e){return!Gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yr(e).ShadowRoot}const r3=new Set(["inline","contents"]);function Ad(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!r3.has(o)}const o3=new Set(["table","td","th"]);function i3(e){return o3.has(ku(e))}const a3=[":popover-open",":modal"];function Qh(e){return a3.some(t=>{try{return e.matches(t)}catch{return!1}})}const s3=["transform","translate","scale","rotate","perspective"],l3=["transform","translate","scale","rotate","perspective","filter"],c3=["paint","layout","strict","content"];function py(e){const t=Zh(),n=nn(e)?uo(e):e;return s3.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||l3.some(r=>(n.willChange||"").includes(r))||c3.some(r=>(n.contain||"").includes(r))}function u3(e){let t=Ki(e);for(;Lo(t)&&!Hi(t);){if(py(t))return t;if(Qh(t))return null;t=Ki(t)}return null}function Zh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const f3=new Set(["html","body","#document"]);function Hi(e){return f3.has(ku(e))}function uo(e){return Yr(e).getComputedStyle(e)}function Xh(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ki(e){if(ku(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bv(e)&&e.host||Ji(e);return Bv(t)?t.host:t}function bC(e){const t=Ki(e);return Hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lo(t)&&Ad(t)?t:bC(t)}function Qc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bC(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Yr(o);if(i){const c=Uv(s);return t.concat(s,s.visualViewport||[],Ad(o)?o:[],c&&n?Qc(c):[])}return t.concat(o,Qc(o,[],n))}function Uv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ix=Math.min,Hf=Math.max,hh=Math.round,ai=e=>({x:e,y:e});function xC(e){return e.split("-")[0]}function d3(e){return e.split("-")[1]}function p3(e){return e==="x"?"y":"x"}function h3(e){return e==="y"?"height":"width"}const m3=new Set(["top","bottom"]);function wC(e){return m3.has(xC(e))?"y":"x"}function g3(e){return p3(wC(e))}function SC(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
|
|
129
|
+
* tabbable 6.4.0
|
|
130
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
131
|
+
*/var v3=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Wv=v3.join(","),CC=typeof Element>"u",td=CC?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mh=!CC&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gh=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):gh(t.parentNode));return s},y3=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},b3=function(t,n,r){if(gh(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Wv));return n&&td.call(t,Wv)&&o.unshift(t),o=o.filter(r),o},$v=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!gh(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),u=c.length?c:s.children,f=$v(u,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:s,candidates:f})}else{var m=td.call(s,Wv);m&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var h=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),v=!gh(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(h&&v){var w=$v(h===!0?s.children:h.children,!0,r);r.flatten?o.push.apply(o,w):o.push({scopeParent:s,candidates:w})}else i.unshift.apply(i,s.children)}}return o},AC=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},EC=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||y3(t))&&!AC(t)?0:t.tabIndex},x3=function(t,n){var r=EC(t);return r<0&&n&&!AC(t)?0:r},w3=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},kC=function(t){return t.tagName==="INPUT"},S3=function(t){return kC(t)&&t.type==="hidden"},C3=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},A3=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},E3=function(t){if(!t.name)return!0;var n=t.form||mh(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=A3(o,t.form);return!i||i===t},k3=function(t){return kC(t)&&t.type==="radio"},T3=function(t){return k3(t)&&!E3(t)},_3=function(t){var n,r=t&&mh(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,c,u;for(i=!!((s=o)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var f,m,h;r=mh(o),o=(f=r)===null||f===void 0?void 0:f.host,i=!!((m=o)!==null&&m!==void 0&&(h=m.ownerDocument)!==null&&h!==void 0&&h.contains(o))}}return i},ax=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},R3=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=td.call(t,"details>summary:first-of-type"),c=s?t.parentElement:t;if(td.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var f=t.parentElement,m=mh(t);if(f&&!f.shadowRoot&&o(f)===!0)return ax(t);t.assignedSlot?t=t.assignedSlot:!f&&m!==t.ownerDocument?t=m.host:t=f}t=u}if(_3(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ax(t);return!1},P3=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return td.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},I3=function(t,n){return!(n.disabled||S3(n)||R3(n,t)||C3(n)||P3(n))},sx=function(t,n){return!(T3(n)||EC(n)<0||!I3(t,n))},O3=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},TC=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,c=s?o.scopeParent:o,u=x3(c,s),f=s?TC(o.candidates):c;u===0?s?n.push.apply(n,f):n.push(c):r.push({documentOrder:i,tabIndex:u,item:o,isScope:s,content:f})}),r.sort(w3).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},_C=function(t,n){n=n||{};var r;return n.getShadowRoot?r=$v([t],n.includeContainer,{filter:sx.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:O3}):r=b3(t,n.includeContainer,sx.bind(null,n)),TC(r)};function lx(e,t,n){let{reference:r,floating:o}=e;const i=wC(t),s=g3(t),c=h3(s),u=xC(t),f=i==="y",m=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let w;switch(u){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(d3(t)){case"start":w[s]-=v*(n&&f?-1:1);break;case"end":w[s]+=v*(n&&f?-1:1);break}return w}const M3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:h}=lx(f,r,u),v=r,w={},C=0;for(let A=0;A<c.length;A++){const{name:x,fn:E}=c[A],{x:R,y:O,data:L,reset:M}=await E({x:m,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:w,rects:f,platform:s,elements:{reference:e,floating:t}});m=R??m,h=O??h,w={...w,[x]:{...w[x],...L}},M&&C<=50&&(C++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(f=M.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:m,y:h}=lx(f,v,u)),A=-1)}return{x:m,y:h,placement:v,strategy:o,middlewareData:w}};function RC(e){const t=uo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lo(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=hh(n)!==i||hh(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function PC(e){return nn(e)?e:e.contextElement}function Zc(e){const t=PC(e);if(!Lo(t))return ai(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=RC(t);let s=(i?hh(n.width):n.width)/r,c=(i?hh(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const N3=ai(0);function IC(e){const t=Yr(e);return!Zh()||!t.visualViewport?N3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yr(e)?!1:t}function nd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=PC(e);let s=ai(1);t&&(r?nn(r)&&(s=Zc(r)):s=Zc(e));const c=L3(i,n,r)?IC(i):ai(0);let u=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,m=o.width/s.x,h=o.height/s.y;if(i){const v=Yr(i),w=r&&nn(r)?Yr(r):r;let C=v,A=Uv(C);for(;A&&r&&w!==C;){const x=Zc(A),E=A.getBoundingClientRect(),R=uo(A),O=E.left+(A.clientLeft+parseFloat(R.paddingLeft))*x.x,L=E.top+(A.clientTop+parseFloat(R.paddingTop))*x.y;u*=x.x,f*=x.y,m*=x.x,h*=x.y,u+=O,f+=L,C=Yr(A),A=Uv(C)}}return SC({width:m,height:h,x:u,y:f})}function Jh(e,t){const n=Xh(e).scrollLeft;return t?t.left+n:nd(Ji(e)).left+n}function OC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function D3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ji(r),c=t?Qh(t.floating):!1;if(r===s||c&&i)return n;let u={scrollLeft:0,scrollTop:0},f=ai(1);const m=ai(0),h=Lo(r);if((h||!h&&!i)&&((ku(r)!=="body"||Ad(s))&&(u=Xh(r)),Lo(r))){const w=nd(r);f=Zc(r),m.x=w.x+r.clientLeft,m.y=w.y+r.clientTop}const v=s&&!h&&!i?OC(s,u):ai(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-u.scrollTop*f.y+m.y+v.y}}function F3(e){return Array.from(e.getClientRects())}function j3(e){const t=Ji(e),n=Xh(e),r=e.ownerDocument.body,o=Hf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Hf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Jh(e);const c=-n.scrollTop;return uo(r).direction==="rtl"&&(s+=Hf(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}const cx=25;function z3(e,t){const n=Yr(e),r=Ji(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){i=o.width,s=o.height;const m=Zh();(!m||m&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const f=Jh(r);if(f<=0){const m=r.ownerDocument,h=m.body,v=getComputedStyle(h),w=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,C=Math.abs(r.clientWidth-h.clientWidth-w);C<=cx&&(i-=C)}else f<=cx&&(i+=f);return{width:i,height:s,x:c,y:u}}const B3=new Set(["absolute","fixed"]);function U3(e,t){const n=nd(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Lo(e)?Zc(e):ai(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,f=r*i.y;return{width:s,height:c,x:u,y:f}}function ux(e,t,n){let r;if(t==="viewport")r=z3(e,n);else if(t==="document")r=j3(Ji(e));else if(nn(t))r=U3(t,n);else{const o=IC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return SC(r)}function MC(e,t){const n=Ki(e);return n===t||!nn(n)||Hi(n)?!1:uo(n).position==="fixed"||MC(n,t)}function W3(e,t){const n=t.get(e);if(n)return n;let r=Qc(e,[],!1).filter(c=>nn(c)&&ku(c)!=="body"),o=null;const i=uo(e).position==="fixed";let s=i?Ki(e):e;for(;nn(s)&&!Hi(s);){const c=uo(s),u=py(s);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&B3.has(o.position)||Ad(s)&&!u&&MC(e,s))?r=r.filter(m=>m!==s):o=c,s=Ki(s)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Qh(t)?[]:W3(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((f,m)=>{const h=ux(t,m,o);return f.top=Hf(h.top,f.top),f.right=ix(h.right,f.right),f.bottom=ix(h.bottom,f.bottom),f.left=Hf(h.left,f.left),f},ux(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function H3(e){const{width:t,height:n}=RC(e);return{width:t,height:n}}function V3(e,t,n){const r=Lo(t),o=Ji(t),i=n==="fixed",s=nd(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=ai(0);function f(){u.x=Jh(o)}if(r||!r&&!i)if((ku(t)!=="body"||Ad(o))&&(c=Xh(t)),r){const w=nd(t,!0,i,t);u.x=w.x+t.clientLeft,u.y=w.y+t.clientTop}else o&&f();i&&!r&&o&&f();const m=o&&!r&&!i?OC(o,c):ai(0),h=s.left+c.scrollLeft-u.x-m.x,v=s.top+c.scrollTop-u.y-m.y;return{x:h,y:v,width:s.width,height:s.height}}function Ig(e){return uo(e).position==="static"}function fx(e,t){if(!Lo(e)||uo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ji(e)===n&&(n=n.ownerDocument.body),n}function NC(e,t){const n=Yr(e);if(Qh(e))return n;if(!Lo(e)){let o=Ki(e);for(;o&&!Hi(o);){if(nn(o)&&!Ig(o))return o;o=Ki(o)}return n}let r=fx(e,t);for(;r&&i3(r)&&Ig(r);)r=fx(r,t);return r&&Hi(r)&&Ig(r)&&!py(r)?n:r||u3(e)||n}const K3=async function(e){const t=this.getOffsetParent||NC,n=this.getDimensions,r=await n(e.floating);return{reference:V3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Y3(e){return uo(e).direction==="rtl"}const G3={convertOffsetParentRelativeRectToViewportRelativeRect:D3,getDocumentElement:Ji,getClippingRect:$3,getOffsetParent:NC,getElementRects:K3,getClientRects:F3,getDimensions:H3,getScale:Zc,isElement:nn,isRTL:Y3},Q3=(e,t,n)=>{const r=new Map,o={platform:G3,...n},i={...o.platform,_c:r};return M3(e,t,{...o,platform:i})};var Z3=typeof document<"u",X3=function(){},Qp=Z3?Y.useLayoutEffect:X3;function vh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!vh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function LC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dx(e,t){const n=LC(e);return Math.round(t*n)/n}function Og(e){const t=F.useRef(e);return Qp(()=>{t.current=e}),t}function J3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:f}=e,[m,h]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=F.useState(r);vh(v,r)||w(r);const[C,A]=F.useState(null),[x,E]=F.useState(null),R=F.useCallback(Q=>{Q!==U.current&&(U.current=Q,A(Q))},[]),O=F.useCallback(Q=>{Q!==j.current&&(j.current=Q,E(Q))},[]),L=i||C,M=s||x,U=F.useRef(null),j=F.useRef(null),$=F.useRef(m),H=u!=null,G=Og(u),q=Og(o),pe=Og(f),ie=F.useCallback(()=>{if(!U.current||!j.current)return;const Q={placement:t,strategy:n,middleware:v};q.current&&(Q.platform=q.current),Q3(U.current,j.current,Q).then(Ee=>{const ne={...Ee,isPositioned:pe.current!==!1};se.current&&!vh($.current,ne)&&($.current=ne,uS.flushSync(()=>{h(ne)}))})},[v,t,n,q,pe]);Qp(()=>{f===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(Q=>({...Q,isPositioned:!1})))},[f]);const se=F.useRef(!1);Qp(()=>(se.current=!0,()=>{se.current=!1}),[]),Qp(()=>{if(L&&(U.current=L),M&&(j.current=M),L&&M){if(G.current)return G.current(L,M,ie);ie()}},[L,M,ie,G,H]);const xe=F.useMemo(()=>({reference:U,floating:j,setReference:R,setFloating:O}),[R,O]),Ae=F.useMemo(()=>({reference:L,floating:M}),[L,M]),Re=F.useMemo(()=>{const Q={position:n,left:0,top:0};if(!Ae.floating)return Q;const Ee=dx(Ae.floating,m.x),ne=dx(Ae.floating,m.y);return c?{...Q,transform:"translate("+Ee+"px, "+ne+"px)",...LC(Ae.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:ne}},[n,c,Ae.floating,m.x,m.y]);return F.useMemo(()=>({...m,update:ie,refs:xe,elements:Ae,floatingStyles:Re}),[m,ie,xe,Ae,Re])}let q3="div";function eR(e,t){let n=`headlessui-control-${Y.useId()}`,[r,o]=J4(),[i,s]=Y4(),c=Vh(),{disabled:u=c||!1,...f}=e,m=Hh({disabled:u}),h={ref:t,disabled:u||void 0,"aria-disabled":u||void 0},v=Sd();return Y.createElement(T4,{value:u},Y.createElement(o,{value:r},Y.createElement(s,{value:i},Y.createElement(U4,{id:n},v({ourProps:h,theirProps:{...f,children:Y.createElement(B4,null,typeof f.children=="function"?f.children(m):f.children)},slot:m,defaultTag:q3,name:"Field"})))))}let tR=Cd(eR),nR="input";function rR(e,t){let n=Y.useId(),r=dC(),o=Vh(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:c=!1,invalid:u=!1,...f}=e,m=yC(),h=K4(),{isFocused:v,focusProps:w}=w4({autoFocus:c}),{isHovered:C,hoverProps:A}=x4({isDisabled:s}),x=M4({ref:t,id:i,"aria-labelledby":m,"aria-describedby":h,"aria-invalid":u?"true":void 0,disabled:s||void 0,autoFocus:c},w,A),E=Hh({disabled:s,invalid:u,hover:C,focus:v,autofocus:c});return Sd()({ourProps:x,theirProps:f,slot:E,defaultTag:nR,name:"Input"})}let oR=Cd(rR);const DC=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>D.jsx("div",{className:gt("w-full max-w-md px-4",i),children:D.jsxs(tR,{children:[n&&D.jsx(n3,{className:"font-medium text-gray-900",children:n}),r&&D.jsx(X4,{className:"text-sm text-secondary",children:r}),D.jsx(oR,{type:e,className:gt("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",t,o&&"border-red-500 focus:border-red-500"),...s})]})}),iR=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=Y.useState(""),[s,c]=Y.useState(!1),[u,f]=Y.useState(!1),{setUsername:m}=hi(),h=async()=>{if(o)try{c(!0),await e(o),m(o),i("")}catch{f(!0)}finally{c(!1)}else alert("Please enter a valid email address.")};return D.jsx(Y_,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:h,disabled:s||!o||u},children:D.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[D.jsxs("div",{children:[D.jsx("div",{className:"text-center text-2xl font-medium",children:u?"User already has access":r||"Access Playbook"}),D.jsx("div",{className:"text-center",children:u?D.jsxs(D.Fragment,{children:[D.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):D.jsx(D.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),D.jsx(DC,{disabled:s||u,placeholder:"Enter company email address",onChange:v=>i(v.target.value)})]})})},aR=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:c="primary"})=>{const[u,f]=Y.useState(!1),[m,h]=Y.useState(!1);function v(){f(!0)}function w(){f(!1)}const C=async A=>{try{h(!0);const{playbookInstanceId:x,errorCode:E,details:R,message:O}=await NS({bank:"public-sdk",email:A,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(E)throw new Error(`Error initiating playbook: ${O} (Code: ${E}) - Details: ${R}`);o(x)}finally{h(!1)}};return D.jsxs(D.Fragment,{children:[t?{buttonNode:t}:D.jsxs(Ht,{onClick:v,className:gt(e,"flex items-center gap-1"),color:c,size:n,disabled:i||m,children:[D.jsx("img",{src:yS,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),D.jsx(iR,{isOpen:u,onClose:w,onConfirm:async A=>{await C(A),w()}})]})};/*!
|
|
129
132
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
130
133
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
131
134
|
* Copyright 2024 Fonticons, Inc.
|
|
132
|
-
*/const U0={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},H0=U0,W0={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},cg={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]};/*!
|
|
135
|
+
*/const sR={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},lR={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},cR={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},uR=cR,fR={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},dR={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},FC={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},pR=FC,hR={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},mR=hR,jC={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},zC=jC,gR={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]},vR={prefix:"fas",iconName:"file-powerpoint",icon:[384,512,[],"f1c4","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM136 240l68 0c42 0 76 34 76 76s-34 76-76 76l-44 0 0 32c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-104c0-13.3 10.7-24 24-24zm68 104c15.5 0 28-12.5 28-28s-12.5-28-28-28l-44 0 0 56 44 0z"]},yR={prefix:"fas",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z"]},bR=yR,px={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},xR={prefix:"fas",iconName:"file-audio",icon:[384,512,[],"f1c7","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z"]},wR={prefix:"fas",iconName:"file-code",icon:[384,512,[],"f1c9","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM153 289l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L71 337c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM265 255l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},SR={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},CR={prefix:"fas",iconName:"file-video",icon:[384,512,[],"f1c8","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z"]},AR={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]},BC={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ER=BC,kR={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},TR={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},UC={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},qh={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},WC=qh,$C={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},HC={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},_R=HC,RR={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};/*!
|
|
133
136
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
134
137
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
135
138
|
* Copyright 2024 Fonticons, Inc.
|
|
136
|
-
*/function V0(e,r,o){return(r=G0(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function qp(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,i)}return o}function ne(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?qp(Object(o),!0).forEach(function(i){V0(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qp(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}function Y0(e,r){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var i=o.call(e,r);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function G0(e){var r=Y0(e,"string");return typeof r=="symbol"?r:r+""}const Jp=()=>{};let ep={},fg={},dg=null,pg={mark:Jp,measure:Jp};try{typeof window<"u"&&(ep=window),typeof document<"u"&&(fg=document),typeof MutationObserver<"u"&&(dg=MutationObserver),typeof performance<"u"&&(pg=performance)}catch{}const{userAgent:Kp=""}=ep.navigator||{},ri=ep,it=fg,Zp=dg,Qu=pg;ri.document;const ao=!!it.documentElement&&!!it.head&&typeof it.addEventListener=="function"&&typeof it.createElement=="function",hg=~Kp.indexOf("MSIE")||~Kp.indexOf("Trident/");var Q0=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,X0=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,mg={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},q0={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},gg=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_t="classic",wc="duotone",J0="sharp",K0="sharp-duotone",vg=[_t,wc,J0,K0],Z0={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},ex={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},tx=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),rx={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},nx=["fak","fa-kit","fakd","fa-kit-duotone"],eh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},ox=["kit"],ix={kit:{"fa-kit":"fak"}},ax=["fak","fakd"],sx={kit:{fak:"fa-kit"}},th={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Xu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},lx=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],ux=["fak","fa-kit","fakd","fa-kit-duotone"],cx={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},fx={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},dx={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},bd={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},px=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],xd=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...lx,...px],hx=["solid","regular","light","thin","duotone","brands"],yg=[1,2,3,4,5,6,7,8,9,10],mx=yg.concat([11,12,13,14,15,16,17,18,19,20]),gx=[...Object.keys(dx),...hx,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Xu.GROUP,Xu.SWAP_OPACITY,Xu.PRIMARY,Xu.SECONDARY].concat(yg.map(e=>"".concat(e,"x"))).concat(mx.map(e=>"w-".concat(e))),vx={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const ro="___FONT_AWESOME___",wd=16,bg="fa",xg="svg-inline--fa",ia="data-fa-i2svg",Sd="data-fa-pseudo-element",yx="data-fa-pseudo-element-pending",tp="data-prefix",rp="data-icon",rh="fontawesome-i2svg",bx="async",xx=["HTML","HEAD","STYLE","SCRIPT"],wg=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Jl(e){return new Proxy(e,{get(r,o){return o in r?r[o]:r[_t]}})}const Sg=ne({},mg);Sg[_t]=ne(ne(ne(ne({},{"fa-duotone":"duotone"}),mg[_t]),eh.kit),eh["kit-duotone"]);const wx=Jl(Sg),kd=ne({},rx);kd[_t]=ne(ne(ne(ne({},{duotone:"fad"}),kd[_t]),th.kit),th["kit-duotone"]);const nh=Jl(kd),Ed=ne({},bd);Ed[_t]=ne(ne({},Ed[_t]),sx.kit);const np=Jl(Ed),Cd=ne({},fx);Cd[_t]=ne(ne({},Cd[_t]),ix.kit);Jl(Cd);const Sx=Q0,kg="fa-layers-text",kx=X0,Ex=ne({},Z0);Jl(Ex);const Cx=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],$f=q0,Tx=[...ox,...gx],Ml=ri.FontAwesomeConfig||{};function Rx(e){var r=it.querySelector("script["+e+"]");if(r)return r.getAttribute(e)}function Px(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}it&&typeof it.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(r=>{let[o,i]=r;const a=Px(Rx(o));a!=null&&(Ml[i]=a)});const Eg={styleDefault:"solid",familyDefault:_t,cssPrefix:bg,replacementClass:xg,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ml.familyPrefix&&(Ml.cssPrefix=Ml.familyPrefix);const Ps=ne(ne({},Eg),Ml);Ps.autoReplaceSvg||(Ps.observeMutations=!1);const Se={};Object.keys(Eg).forEach(e=>{Object.defineProperty(Se,e,{enumerable:!0,set:function(r){Ps[e]=r,Dl.forEach(o=>o(Se))},get:function(){return Ps[e]}})});Object.defineProperty(Se,"familyPrefix",{enumerable:!0,set:function(e){Ps.cssPrefix=e,Dl.forEach(r=>r(Se))},get:function(){return Ps.cssPrefix}});ri.FontAwesomeConfig=Se;const Dl=[];function Ax(e){return Dl.push(e),()=>{Dl.splice(Dl.indexOf(e),1)}}const Ho=wd,xn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ix(e){if(!e||!ao)return;const r=it.createElement("style");r.setAttribute("type","text/css"),r.innerHTML=e;const o=it.head.childNodes;let i=null;for(let a=o.length-1;a>-1;a--){const d=o[a],h=(d.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(i=d)}return it.head.insertBefore(r,i),e}const Ox="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function $l(){let e=12,r="";for(;e-- >0;)r+=Ox[Math.random()*62|0];return r}function Ds(e){const r=[];for(let o=(e||[]).length>>>0;o--;)r[o]=e[o];return r}function op(e){return e.classList?Ds(e.classList):(e.getAttribute("class")||"").split(" ").filter(r=>r)}function Cg(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Fx(e){return Object.keys(e||{}).reduce((r,o)=>r+"".concat(o,'="').concat(Cg(e[o]),'" '),"").trim()}function Sc(e){return Object.keys(e||{}).reduce((r,o)=>r+"".concat(o,": ").concat(e[o].trim(),";"),"")}function ip(e){return e.size!==xn.size||e.x!==xn.x||e.y!==xn.y||e.rotate!==xn.rotate||e.flipX||e.flipY}function Mx(e){let{transform:r,containerWidth:o,iconWidth:i}=e;const a={transform:"translate(".concat(o/2," 256)")},d="translate(".concat(r.x*32,", ").concat(r.y*32,") "),h="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),v="rotate(".concat(r.rotate," 0 0)"),m={transform:"".concat(d," ").concat(h," ").concat(v)},x={transform:"translate(".concat(i/2*-1," -256)")};return{outer:a,inner:m,path:x}}function Dx(e){let{transform:r,width:o=wd,height:i=wd,startCentered:a=!1}=e,d="";return a&&hg?d+="translate(".concat(r.x/Ho-o/2,"em, ").concat(r.y/Ho-i/2,"em) "):a?d+="translate(calc(-50% + ".concat(r.x/Ho,"em), calc(-50% + ").concat(r.y/Ho,"em)) "):d+="translate(".concat(r.x/Ho,"em, ").concat(r.y/Ho,"em) "),d+="scale(".concat(r.size/Ho*(r.flipX?-1:1),", ").concat(r.size/Ho*(r.flipY?-1:1),") "),d+="rotate(".concat(r.rotate,"deg) "),d}var _x=`:root, :host {
|
|
139
|
+
*/function PR(e,t,n){return(t=OR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hx(Object(n),!0).forEach(function(r){PR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OR(e){var t=IR(e,"string");return typeof t=="symbol"?t:t+""}const mx=()=>{};let hy={},VC={},KC=null,YC={mark:mx,measure:mx};try{typeof window<"u"&&(hy=window),typeof document<"u"&&(VC=document),typeof MutationObserver<"u"&&(KC=MutationObserver),typeof performance<"u"&&(YC=performance)}catch{}const{userAgent:gx=""}=hy.navigator||{},Qa=hy,Gt=VC,vx=KC,Mp=YC;Qa.document;const qi=!!Gt.documentElement&&!!Gt.head&&typeof Gt.addEventListener=="function"&&typeof Gt.createElement=="function",GC=~gx.indexOf("MSIE")||~gx.indexOf("Trident/");var MR=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,NR=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,QC={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},LR={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ZC=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],or="classic",em="duotone",DR="sharp",FR="sharp-duotone",XC=[or,em,DR,FR],jR={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},zR={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},BR=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),UR={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},WR=["fak","fa-kit","fakd","fa-kit-duotone"],yx={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},$R=["kit"],HR={kit:{"fa-kit":"fak"}},VR=["fak","fakd"],KR={kit:{fak:"fa-kit"}},bx={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Np={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},YR=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],GR=["fak","fa-kit","fakd","fa-kit-duotone"],QR={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},ZR={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},XR={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Hv={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},JR=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Vv=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...YR,...JR],qR=["solid","regular","light","thin","duotone","brands"],JC=[1,2,3,4,5,6,7,8,9,10],eP=JC.concat([11,12,13,14,15,16,17,18,19,20]),tP=[...Object.keys(XR),...qR,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Np.GROUP,Np.SWAP_OPACITY,Np.PRIMARY,Np.SECONDARY].concat(JC.map(e=>"".concat(e,"x"))).concat(eP.map(e=>"w-".concat(e))),nP={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Yi="___FONT_AWESOME___",Kv=16,qC="fa",eA="svg-inline--fa",yl="data-fa-i2svg",Yv="data-fa-pseudo-element",rP="data-fa-pseudo-element-pending",my="data-prefix",gy="data-icon",xx="fontawesome-i2svg",oP="async",iP=["HTML","HEAD","STYLE","SCRIPT"],tA=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ed(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[or]}})}const nA=Ce({},QC);nA[or]=Ce(Ce(Ce(Ce({},{"fa-duotone":"duotone"}),QC[or]),yx.kit),yx["kit-duotone"]);const aP=Ed(nA),Gv=Ce({},UR);Gv[or]=Ce(Ce(Ce(Ce({},{duotone:"fad"}),Gv[or]),bx.kit),bx["kit-duotone"]);const wx=Ed(Gv),Qv=Ce({},Hv);Qv[or]=Ce(Ce({},Qv[or]),KR.kit);const vy=Ed(Qv),Zv=Ce({},ZR);Zv[or]=Ce(Ce({},Zv[or]),HR.kit);Ed(Zv);const sP=MR,rA="fa-layers-text",lP=NR,cP=Ce({},jR);Ed(cP);const uP=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Mg=LR,fP=[...$R,...tP],Vf=Qa.FontAwesomeConfig||{};function dP(e){var t=Gt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function pP(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Gt&&typeof Gt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=pP(dP(n));o!=null&&(Vf[r]=o)});const oA={styleDefault:"solid",familyDefault:or,cssPrefix:qC,replacementClass:eA,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vf.familyPrefix&&(Vf.cssPrefix=Vf.familyPrefix);const mu=Ce(Ce({},oA),Vf);mu.autoReplaceSvg||(mu.observeMutations=!1);const Ve={};Object.keys(oA).forEach(e=>{Object.defineProperty(Ve,e,{enumerable:!0,set:function(t){mu[e]=t,Kf.forEach(n=>n(Ve))},get:function(){return mu[e]}})});Object.defineProperty(Ve,"familyPrefix",{enumerable:!0,set:function(e){mu.cssPrefix=e,Kf.forEach(t=>t(Ve))},get:function(){return mu.cssPrefix}});Qa.FontAwesomeConfig=Ve;const Kf=[];function hP(e){return Kf.push(e),()=>{Kf.splice(Kf.indexOf(e),1)}}const Pa=Kv,ri={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function mP(e){if(!e||!qi)return;const t=Gt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Gt.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return Gt.head.insertBefore(t,r),e}const gP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rd(){let e=12,t="";for(;e-- >0;)t+=gP[Math.random()*62|0];return t}function Tu(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yy(e){return e.classList?Tu(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function iA(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function vP(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(iA(e[n]),'" '),"").trim()}function tm(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function by(e){return e.size!==ri.size||e.x!==ri.x||e.y!==ri.y||e.rotate!==ri.rotate||e.flipX||e.flipY}function yP(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(i," ").concat(s," ").concat(c)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:u,path:f}}function bP(e){let{transform:t,width:n=Kv,height:r=Kv,startCentered:o=!1}=e,i="";return o&&GC?i+="translate(".concat(t.x/Pa-n/2,"em, ").concat(t.y/Pa-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/Pa,"em), calc(-50% + ").concat(t.y/Pa,"em)) "):i+="translate(".concat(t.x/Pa,"em, ").concat(t.y/Pa,"em) "),i+="scale(".concat(t.size/Pa*(t.flipX?-1:1),", ").concat(t.size/Pa*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var xP=`:root, :host {
|
|
137
140
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
138
141
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
139
142
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -686,7 +689,32 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
686
689
|
.svg-inline--fa mask .fa-primary,
|
|
687
690
|
.svg-inline--fa mask .fa-secondary {
|
|
688
691
|
fill: black;
|
|
689
|
-
}`;function Tg(){const e=bg,r=xg,o=Se.cssPrefix,i=Se.replacementClass;let a=_x;if(o!==e||i!==r){const d=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),v=new RegExp("\\.".concat(r),"g");a=a.replace(d,".".concat(o,"-")).replace(h,"--".concat(o,"-")).replace(v,".".concat(i))}return a}let oh=!1;function zf(){Se.autoAddCss&&!oh&&(Ix(Tg()),oh=!0)}var Lx={mixout(){return{dom:{css:Tg,insertCss:zf}}},hooks(){return{beforeDOMElementCreation(){zf()},beforeI2svg(){zf()}}}};const no=ri||{};no[ro]||(no[ro]={});no[ro].styles||(no[ro].styles={});no[ro].hooks||(no[ro].hooks={});no[ro].shims||(no[ro].shims=[]);var wn=no[ro];const Rg=[],Pg=function(){it.removeEventListener("DOMContentLoaded",Pg),sc=1,Rg.map(e=>e())};let sc=!1;ao&&(sc=(it.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(it.readyState),sc||it.addEventListener("DOMContentLoaded",Pg));function jx(e){ao&&(sc?setTimeout(e,0):Rg.push(e))}function Kl(e){const{tag:r,attributes:o={},children:i=[]}=e;return typeof e=="string"?Cg(e):"<".concat(r," ").concat(Fx(o),">").concat(i.map(Kl).join(""),"</").concat(r,">")}function ih(e,r,o){if(e&&e[r]&&e[r][o])return{prefix:r,iconName:o,icon:e[r][o]}}var Bf=function(r,o,i,a){var d=Object.keys(r),h=d.length,v=o,m,x,R;for(i===void 0?(m=1,R=r[d[0]]):(m=0,R=i);m<h;m++)x=d[m],R=v(R,r[x],x,r);return R};function Nx(e){const r=[];let o=0;const i=e.length;for(;o<i;){const a=e.charCodeAt(o++);if(a>=55296&&a<=56319&&o<i){const d=e.charCodeAt(o++);(d&64512)==56320?r.push(((a&1023)<<10)+(d&1023)+65536):(r.push(a),o--)}else r.push(a)}return r}function Td(e){const r=Nx(e);return r.length===1?r[0].toString(16):null}function $x(e,r){const o=e.length;let i=e.charCodeAt(r),a;return i>=55296&&i<=56319&&o>r+1&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function ah(e){return Object.keys(e).reduce((r,o)=>{const i=e[o];return!!i.icon?r[i.iconName]=i.icon:r[o]=i,r},{})}function Rd(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=o,a=ah(r);typeof wn.hooks.addPack=="function"&&!i?wn.hooks.addPack(e,ah(r)):wn.styles[e]=ne(ne({},wn.styles[e]||{}),a),e==="fas"&&Rd("fa",r)}const{styles:zl,shims:zx}=wn,Ag=Object.keys(np),Bx=Ag.reduce((e,r)=>(e[r]=Object.keys(np[r]),e),{});let ap=null,Ig={},Og={},Fg={},Mg={},Dg={};function Ux(e){return~Tx.indexOf(e)}function Hx(e,r){const o=r.split("-"),i=o[0],a=o.slice(1).join("-");return i===e&&a!==""&&!Ux(a)?a:null}const _g=()=>{const e=i=>Bf(zl,(a,d,h)=>(a[h]=Bf(d,i,{}),a),{});Ig=e((i,a,d)=>(a[3]&&(i[a[3]]=d),a[2]&&a[2].filter(v=>typeof v=="number").forEach(v=>{i[v.toString(16)]=d}),i)),Og=e((i,a,d)=>(i[d]=d,a[2]&&a[2].filter(v=>typeof v=="string").forEach(v=>{i[v]=d}),i)),Dg=e((i,a,d)=>{const h=a[2];return i[d]=d,h.forEach(v=>{i[v]=d}),i});const r="far"in zl||Se.autoFetchSvg,o=Bf(zx,(i,a)=>{const d=a[0];let h=a[1];const v=a[2];return h==="far"&&!r&&(h="fas"),typeof d=="string"&&(i.names[d]={prefix:h,iconName:v}),typeof d=="number"&&(i.unicodes[d.toString(16)]={prefix:h,iconName:v}),i},{names:{},unicodes:{}});Fg=o.names,Mg=o.unicodes,ap=kc(Se.styleDefault,{family:Se.familyDefault})};Ax(e=>{ap=kc(e.styleDefault,{family:Se.familyDefault})});_g();function sp(e,r){return(Ig[e]||{})[r]}function Wx(e,r){return(Og[e]||{})[r]}function Gi(e,r){return(Dg[e]||{})[r]}function Lg(e){return Fg[e]||{prefix:null,iconName:null}}function Vx(e){const r=Mg[e],o=sp("fas",e);return r||(o?{prefix:"fas",iconName:o}:null)||{prefix:null,iconName:null}}function ni(){return ap}const jg=()=>({prefix:null,iconName:null,rest:[]});function Yx(e){let r=_t;const o=Ag.reduce((i,a)=>(i[a]="".concat(Se.cssPrefix,"-").concat(a),i),{});return vg.forEach(i=>{(e.includes(o[i])||e.some(a=>Bx[i].includes(a)))&&(r=i)}),r}function kc(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:o=_t}=r,i=wx[o][e];if(o===wc&&!e)return"fad";const a=nh[o][e]||nh[o][i],d=e in wn.styles?e:null;return a||d||null}function Gx(e){let r=[],o=null;return e.forEach(i=>{const a=Hx(Se.cssPrefix,i);a?o=a:i&&r.push(i)}),{iconName:o,rest:r}}function sh(e){return e.sort().filter((r,o,i)=>i.indexOf(r)===o)}function Ec(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:o=!1}=r;let i=null;const a=xd.concat(ux),d=sh(e.filter(E=>a.includes(E))),h=sh(e.filter(E=>!xd.includes(E))),v=d.filter(E=>(i=E,!gg.includes(E))),[m=null]=v,x=Yx(d),R=ne(ne({},Gx(h)),{},{prefix:kc(m,{family:x})});return ne(ne(ne({},R),Jx({values:e,family:x,styles:zl,config:Se,canonical:R,givenPrefix:i})),Qx(o,i,R))}function Qx(e,r,o){let{prefix:i,iconName:a}=o;if(e||!i||!a)return{prefix:i,iconName:a};const d=r==="fa"?Lg(a):{},h=Gi(i,a);return a=d.iconName||h||a,i=d.prefix||i,i==="far"&&!zl.far&&zl.fas&&!Se.autoFetchSvg&&(i="fas"),{prefix:i,iconName:a}}const Xx=vg.filter(e=>e!==_t||e!==wc),qx=Object.keys(bd).filter(e=>e!==_t).map(e=>Object.keys(bd[e])).flat();function Jx(e){const{values:r,family:o,canonical:i,givenPrefix:a="",styles:d={},config:h={}}=e,v=o===wc,m=r.includes("fa-duotone")||r.includes("fad"),x=h.familyDefault==="duotone",R=i.prefix==="fad"||i.prefix==="fa-duotone";if(!v&&(m||x||R)&&(i.prefix="fad"),(r.includes("fa-brands")||r.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Xx.includes(o)&&(Object.keys(d).find(F=>qx.includes(F))||h.autoFetchSvg)){const F=tx.get(o).defaultShortPrefixId;i.prefix=F,i.iconName=Gi(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||a==="fa")&&(i.prefix=ni()||"fas"),i}class Kx{constructor(){this.definitions={}}add(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=o.reduce(this._pullDefinitions,{});Object.keys(a).forEach(d=>{this.definitions[d]=ne(ne({},this.definitions[d]||{}),a[d]),Rd(d,a[d]);const h=np[_t][d];h&&Rd(h,a[d]),_g()})}reset(){this.definitions={}}_pullDefinitions(r,o){const i=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(i).map(a=>{const{prefix:d,iconName:h,icon:v}=i[a],m=v[2];r[d]||(r[d]={}),m.length>0&&m.forEach(x=>{typeof x=="string"&&(r[d][x]=v)}),r[d][h]=v}),r}}let lh=[],ls={};const hs={},Zx=Object.keys(hs);function ew(e,r){let{mixoutsTo:o}=r;return lh=e,ls={},Object.keys(hs).forEach(i=>{Zx.indexOf(i)===-1&&delete hs[i]}),lh.forEach(i=>{const a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(d=>{typeof a[d]=="function"&&(o[d]=a[d]),typeof a[d]=="object"&&Object.keys(a[d]).forEach(h=>{o[d]||(o[d]={}),o[d][h]=a[d][h]})}),i.hooks){const d=i.hooks();Object.keys(d).forEach(h=>{ls[h]||(ls[h]=[]),ls[h].push(d[h])})}i.provides&&i.provides(hs)}),o}function Pd(e,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return(ls[e]||[]).forEach(h=>{r=h.apply(null,[r,...i])}),r}function aa(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(ls[e]||[]).forEach(d=>{d.apply(null,o)})}function oi(){const e=arguments[0],r=Array.prototype.slice.call(arguments,1);return hs[e]?hs[e].apply(null,r):void 0}function Ad(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:r}=e;const o=e.prefix||ni();if(r)return r=Gi(o,r)||r,ih(Ng.definitions,o,r)||ih(wn.styles,o,r)}const Ng=new Kx,tw=()=>{Se.autoReplaceSvg=!1,Se.observeMutations=!1,aa("noAuto")},rw={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ao?(aa("beforeI2svg",e),oi("pseudoElements2svg",e),oi("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:r}=e;Se.autoReplaceSvg===!1&&(Se.autoReplaceSvg=!0),Se.observeMutations=!0,jx(()=>{ow({autoReplaceSvgRoot:r}),aa("watch",e)})}},nw={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Gi(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const r=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],o=kc(e[0]);return{prefix:o,iconName:Gi(o,r)||r}}if(typeof e=="string"&&(e.indexOf("".concat(Se.cssPrefix,"-"))>-1||e.match(Sx))){const r=Ec(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||ni(),iconName:Gi(r.prefix,r.iconName)||r.iconName}}if(typeof e=="string"){const r=ni();return{prefix:r,iconName:Gi(r,e)||e}}}},vr={noAuto:tw,config:Se,dom:rw,parse:nw,library:Ng,findIconDefinition:Ad,toHtml:Kl},ow=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:r=it}=e;(Object.keys(wn.styles).length>0||Se.autoFetchSvg)&&ao&&Se.autoReplaceSvg&&vr.dom.i2svg({node:r})};function Cc(e,r){return Object.defineProperty(e,"abstract",{get:r}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(o=>Kl(o))}}),Object.defineProperty(e,"node",{get:function(){if(!ao)return;const o=it.createElement("div");return o.innerHTML=e.html,o.children}}),e}function iw(e){let{children:r,main:o,mask:i,attributes:a,styles:d,transform:h}=e;if(ip(h)&&o.found&&!i.found){const{width:v,height:m}=o,x={x:v/m/2,y:.5};a.style=Sc(ne(ne({},d),{},{"transform-origin":"".concat(x.x+h.x/16,"em ").concat(x.y+h.y/16,"em")}))}return[{tag:"svg",attributes:a,children:r}]}function aw(e){let{prefix:r,iconName:o,children:i,attributes:a,symbol:d}=e;const h=d===!0?"".concat(r,"-").concat(Se.cssPrefix,"-").concat(o):d;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ne(ne({},a),{},{id:h}),children:i}]}]}function lp(e){const{icons:{main:r,mask:o},prefix:i,iconName:a,transform:d,symbol:h,title:v,maskId:m,titleId:x,extra:R,watchable:E=!1}=e,{width:F,height:M}=o.found?o:r,B=ax.includes(i),D=[Se.replacementClass,a?"".concat(Se.cssPrefix,"-").concat(a):""].filter(_=>R.classes.indexOf(_)===-1).filter(_=>_!==""||!!_).concat(R.classes).join(" ");let P={children:[],attributes:ne(ne({},R.attributes),{},{"data-prefix":i,"data-icon":a,class:D,role:R.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(F," ").concat(M)})};const I=B&&!~R.classes.indexOf("fa-fw")?{width:"".concat(F/M*16*.0625,"em")}:{};E&&(P.attributes[ia]=""),v&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(x||$l())},children:[v]}),delete P.attributes.title);const W=ne(ne({},P),{},{prefix:i,iconName:a,main:r,mask:o,maskId:m,transform:d,symbol:h,styles:ne(ne({},I),R.styles)}),{children:U,attributes:q}=o.found&&r.found?oi("generateAbstractMask",W)||{children:[],attributes:{}}:oi("generateAbstractIcon",W)||{children:[],attributes:{}};return W.children=U,W.attributes=q,h?aw(W):iw(W)}function uh(e){const{content:r,width:o,height:i,transform:a,title:d,extra:h,watchable:v=!1}=e,m=ne(ne(ne({},h.attributes),d?{title:d}:{}),{},{class:h.classes.join(" ")});v&&(m[ia]="");const x=ne({},h.styles);ip(a)&&(x.transform=Dx({transform:a,startCentered:!0,width:o,height:i}),x["-webkit-transform"]=x.transform);const R=Sc(x);R.length>0&&(m.style=R);const E=[];return E.push({tag:"span",attributes:m,children:[r]}),d&&E.push({tag:"span",attributes:{class:"sr-only"},children:[d]}),E}function sw(e){const{content:r,title:o,extra:i}=e,a=ne(ne(ne({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")}),d=Sc(i.styles);d.length>0&&(a.style=d);const h=[];return h.push({tag:"span",attributes:a,children:[r]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}const{styles:Uf}=wn;function Id(e){const r=e[0],o=e[1],[i]=e.slice(4);let a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(Se.cssPrefix,"-").concat($f.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat($f.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat($f.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:r,height:o,icon:a}}const lw={found:!1,width:512,height:512};function uw(e,r){!wg&&!Se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(r,'" is missing.'))}function Od(e,r){let o=r;return r==="fa"&&Se.styleDefault!==null&&(r=ni()),new Promise((i,a)=>{if(o==="fa"){const d=Lg(e)||{};e=d.iconName||e,r=d.prefix||r}if(e&&r&&Uf[r]&&Uf[r][e]){const d=Uf[r][e];return i(Id(d))}uw(e,r),i(ne(ne({},lw),{},{icon:Se.showMissingIcons&&e?oi("missingIconAbstract")||{}:{}}))})}const ch=()=>{},Fd=Se.measurePerformance&&Qu&&Qu.mark&&Qu.measure?Qu:{mark:ch,measure:ch},Al='FA "6.7.2"',cw=e=>(Fd.mark("".concat(Al," ").concat(e," begins")),()=>$g(e)),$g=e=>{Fd.mark("".concat(Al," ").concat(e," ends")),Fd.measure("".concat(Al," ").concat(e),"".concat(Al," ").concat(e," begins"),"".concat(Al," ").concat(e," ends"))};var up={begin:cw,end:$g};const Ku=()=>{};function fh(e){return typeof(e.getAttribute?e.getAttribute(ia):null)=="string"}function fw(e){const r=e.getAttribute?e.getAttribute(tp):null,o=e.getAttribute?e.getAttribute(rp):null;return r&&o}function dw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Se.replacementClass)}function pw(){return Se.autoReplaceSvg===!0?Zu.replace:Zu[Se.autoReplaceSvg]||Zu.replace}function hw(e){return it.createElementNS("http://www.w3.org/2000/svg",e)}function mw(e){return it.createElement(e)}function zg(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:o=e.tag==="svg"?hw:mw}=r;if(typeof e=="string")return it.createTextNode(e);const i=o(e.tag);return Object.keys(e.attributes||[]).forEach(function(d){i.setAttribute(d,e.attributes[d])}),(e.children||[]).forEach(function(d){i.appendChild(zg(d,{ceFn:o}))}),i}function gw(e){let r=" ".concat(e.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}const Zu={replace:function(e){const r=e[0];if(r.parentNode)if(e[1].forEach(o=>{r.parentNode.insertBefore(zg(o),r)}),r.getAttribute(ia)===null&&Se.keepOriginalSource){let o=it.createComment(gw(r));r.parentNode.replaceChild(o,r)}else r.remove()},nest:function(e){const r=e[0],o=e[1];if(~op(r).indexOf(Se.replacementClass))return Zu.replace(e);const i=new RegExp("".concat(Se.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){const d=o[0].attributes.class.split(" ").reduce((h,v)=>(v===Se.replacementClass||v.match(i)?h.toSvg.push(v):h.toNode.push(v),h),{toNode:[],toSvg:[]});o[0].attributes.class=d.toSvg.join(" "),d.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",d.toNode.join(" "))}const a=o.map(d=>Kl(d)).join(`
|
|
690
|
-
`);
|
|
691
|
-
`),e.removeAttribute(
|
|
692
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jw(e){var r,o=e.beat,i=e.fade,a=e.beatFade,d=e.bounce,h=e.shake,v=e.flash,m=e.spin,x=e.spinPulse,R=e.spinReverse,E=e.pulse,F=e.fixedWidth,M=e.inverse,B=e.border,D=e.listItem,P=e.flip,I=e.size,W=e.rotation,U=e.pull,q=(r={"fa-beat":o,"fa-fade":i,"fa-beat-fade":a,"fa-bounce":d,"fa-shake":h,"fa-flash":v,"fa-spin":m,"fa-spin-reverse":R,"fa-spin-pulse":x,"fa-pulse":E,"fa-fw":F,"fa-inverse":M,"fa-border":B,"fa-li":D,"fa-flip":P===!0,"fa-flip-horizontal":P==="horizontal"||P==="both","fa-flip-vertical":P==="vertical"||P==="both"},us(r,"fa-".concat(I),typeof I<"u"&&I!==null),us(r,"fa-rotate-".concat(W),typeof W<"u"&&W!==null&&W!==0),us(r,"fa-pull-".concat(U),typeof U<"u"&&U!==null),us(r,"fa-swap-opacity",e.swapOpacity),r);return Object.keys(q).map(function(_){return q[_]?_:null}).filter(function(_){return _})}function Kw(e){return e=e-0,e===e}function Vg(e){return Kw(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(r,o){return o?o.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Zw=["style"];function eS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tS(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,o){var i=o.indexOf(":"),a=Vg(o.slice(0,i)),d=o.slice(i+1).trim();return a.startsWith("webkit")?r[eS(a)]=d:r[a]=d,r},{})}function Yg(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof r=="string")return r;var i=(r.children||[]).map(function(m){return Yg(e,m)}),a=Object.keys(r.attributes||{}).reduce(function(m,x){var R=r.attributes[x];switch(x){case"class":m.attrs.className=R,delete r.attributes.class;break;case"style":m.attrs.style=tS(R);break;default:x.indexOf("aria-")===0||x.indexOf("data-")===0?m.attrs[x.toLowerCase()]=R:m.attrs[Vg(x)]=R}return m},{attrs:{}}),d=o.style,h=d===void 0?{}:d,v=Wg(o,Zw);return a.attrs.style=ti(ti({},a.attrs.style),h),e.apply(void 0,[r.tag,ti(ti({},a.attrs),v)].concat(Ld(i)))}var Gg=!1;try{Gg=process.env.NODE_ENV==="production"}catch{}function rS(){if(!Gg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Eh(e){if(e&&uc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_d.icon)return _d.icon(e);if(e===null)return null;if(e&&uc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Wf(e,r){return Array.isArray(r)&&r.length>0||!Array.isArray(r)&&r?us({},e,r):{}}var nS=["forwardedRef"];function ii(e){var r=e.forwardedRef,o=Wg(e,nS),i=o.icon,a=o.mask,d=o.symbol,h=o.className,v=o.title,m=o.titleId,x=o.maskId,R=Eh(i),E=Wf("classes",[].concat(Ld(Jw(o)),Ld(h.split(" ")))),F=Wf("transform",typeof o.transform=="string"?_d.transform(o.transform):o.transform),M=Wf("mask",Eh(a)),B=Vw(R,ti(ti(ti(ti({},E),F),M),{},{symbol:d,title:v,titleId:m,maskId:x}));if(!B)return rS("Could not find icon",R),null;var D=B.abstract,P={ref:r};return Object.keys(o).forEach(function(I){ii.defaultProps.hasOwnProperty(I)||(P[I]=o[I])}),oS(D[0],P)}ii.displayName="FontAwesomeIcon";ii.propTypes={beat:Me.bool,border:Me.bool,beatFade:Me.bool,bounce:Me.bool,className:Me.string,fade:Me.bool,flash:Me.bool,mask:Me.oneOfType([Me.object,Me.array,Me.string]),maskId:Me.string,fixedWidth:Me.bool,inverse:Me.bool,flip:Me.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Me.oneOfType([Me.object,Me.array,Me.string]),listItem:Me.bool,pull:Me.oneOf(["right","left"]),pulse:Me.bool,rotation:Me.oneOf([0,90,180,270]),shake:Me.bool,size:Me.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Me.bool,spinPulse:Me.bool,spinReverse:Me.bool,symbol:Me.oneOfType([Me.bool,Me.string]),title:Me.string,titleId:Me.string,transform:Me.oneOfType([Me.string,Me.object]),swapOpacity:Me.bool};ii.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var oS=Yg.bind(null,V.createElement);const iS=async e=>await(await fetch(`${Yl}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),aS=({taskId:e,playbookId:r,enabled:o})=>{const{queryClient:i}=Is(),a=async()=>iS({taskId:+e,templateId:r.toString()}),d=["taskDetails",+e,r],h=Wd({queryKey:d,queryFn:a,enabled:o,staleTime:1/0},i),v=()=>{i.prefetchQuery({queryFn:a,queryKey:d,staleTime:1/0})};return{taskDetails:h.data,prefetchQuery:v,...h}},sS=({buttons:e,onButtonClick:r,disabled:o})=>Y.jsx("div",{className:"flex items-center justify-end",children:e.map(i=>Y.jsx(jl,{size:"smallCollapse",className:"ml-2",disabled:o,onClick:()=>{r(i)},children:fy[i]},i))});function Ch(e,r){if(!e||!r)return!1;const o=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(o&&vd(o)){let i=r;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Rl(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Vf(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const o=e;return o.target!=null&&r.contains(o.target)}function lS(e){return e.matches("html,body")}function Th(e){return(e==null?void 0:e.ownerDocument)||document}function Yf(e,r){let o=e.filter(a=>{var d;return a.parentId===r&&((d=a.context)==null?void 0:d.open)}),i=o;for(;i.length;)i=e.filter(a=>{var d;return(d=i)==null?void 0:d.some(h=>{var v;return a.parentId===h.id&&((v=a.context)==null?void 0:v.open)})}),o=o.concat(i);return o}function uS(e){return"nativeEvent"in e}var cS=typeof document<"u",fS=function(){},Nd=cS?V.useLayoutEffect:fS;const dS={...de},pS=dS.useInsertionEffect,hS=pS||(e=>e());function ss(e){const r=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hS(()=>{r.current=e}),de.useCallback(function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.current==null?void 0:r.current(...i)},[])}const mS="data-floating-ui-focusable",Rh="active",Ph="selected",gS={...de};let Ah=!1,vS=0;const Ih=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vS++;function yS(){const[e,r]=de.useState(()=>Ah?Ih():void 0);return Nd(()=>{e==null&&r(Ih())},[]),de.useEffect(()=>{Ah=!0},[]),e}const bS=gS.useId,xS=bS||yS;let $d;process.env.NODE_ENV!=="production"&&($d=new Set);function wS(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a="Floating UI: "+o.join(" ");if(!((e=$d)!=null&&e.has(a))){var d;(d=$d)==null||d.add(a),console.error(a)}}function SS(){const e=new Map;return{emit(r,o){var i;(i=e.get(r))==null||i.forEach(a=>a(o))},on(r,o){e.has(r)||e.set(r,new Set),e.get(r).add(o)},off(r,o){var i;(i=e.get(r))==null||i.delete(o)}}}const kS=de.createContext(null),ES=de.createContext(null),CS=()=>{var e;return((e=de.useContext(kS))==null?void 0:e.id)||null},Qg=()=>de.useContext(ES);function TS(e){return"data-floating-ui-"+e}function RS(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const PS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},AS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Oh=e=>{var r,o;return{escapeKey:typeof e=="boolean"?e:(r=e==null?void 0:e.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(o=e==null?void 0:e.outsidePress)!=null?o:!0}};function IS(e,r){r===void 0&&(r={});const{open:o,onOpenChange:i,elements:a,dataRef:d}=e,{enabled:h=!0,escapeKey:v=!0,outsidePress:m=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:E="pointerdown",ancestorScroll:F=!1,bubbles:M,capture:B}=r,D=Qg(),P=ss(typeof m=="function"?m:()=>!1),I=typeof m=="function"?P:m,W=de.useRef(!1),{escapeKey:U,outsidePress:q}=Oh(M),{escapeKey:_,outsidePress:ie}=Oh(B),ce=de.useRef(!1),ee=de.useRef(-1),ae=ss(ke=>{var Ce;if(!o||!h||!v||ke.key!=="Escape"||ce.current)return;const je=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,Z=D?Yf(D.nodesRef.current,je):[];if(!U&&(ke.stopPropagation(),Z.length>0)){let be=!0;if(Z.forEach(Q=>{var J;if((J=Q.context)!=null&&J.open&&!Q.context.dataRef.current.__escapeKeyBubbles){be=!1;return}}),!be)return}i(!1,uS(ke)?ke.nativeEvent:ke,"escape-key")}),Fe=ss(ke=>{var Ce;const je=()=>{var Z;ae(ke),(Z=Rl(ke))==null||Z.removeEventListener("keydown",je)};(Ce=Rl(ke))==null||Ce.addEventListener("keydown",je)}),Ne=ss(ke=>{var Ce;const je=d.current.insideReactTree;d.current.insideReactTree=!1;const Z=W.current;if(W.current=!1,x==="click"&&Z||je||typeof I=="function"&&!I(ke))return;const be=Rl(ke),Q="["+TS("inert")+"]",J=Th(a.floating).querySelectorAll(Q);let fe=pt(be)?be:null;for(;fe&&!Zn(fe);){const se=to(fe);if(Zn(se)||!pt(se))break;fe=se}if(J.length&&pt(be)&&!lS(be)&&!Ch(be,a.floating)&&Array.from(J).every(se=>!Ch(fe,se)))return;if(Zr(be)&&Qe){const se=Zn(be),ue=_r(be),Te=/auto|scroll/,Ee=se||Te.test(ue.overflowX),Re=se||Te.test(ue.overflowY),$e=Ee&&be.clientWidth>0&&be.scrollWidth>be.clientWidth,oe=Re&&be.clientHeight>0&&be.scrollHeight>be.clientHeight,Ue=ue.direction==="rtl",nt=oe&&(Ue?ke.offsetX<=be.offsetWidth-be.clientWidth:ke.offsetX>be.clientWidth),Lt=$e&&ke.offsetY>be.clientHeight;if(nt||Lt)return}const me=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,pe=D&&Yf(D.nodesRef.current,me).some(se=>{var ue;return Vf(ke,(ue=se.context)==null?void 0:ue.elements.floating)});if(Vf(ke,a.floating)||Vf(ke,a.domReference)||pe)return;const ge=D?Yf(D.nodesRef.current,me):[];if(ge.length>0){let se=!0;if(ge.forEach(ue=>{var Te;if((Te=ue.context)!=null&&Te.open&&!ue.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}i(!1,ke,"outside-press")}),_e=ss(ke=>{var Ce;const je=()=>{var Z;Ne(ke),(Z=Rl(ke))==null||Z.removeEventListener(x,je)};(Ce=Rl(ke))==null||Ce.addEventListener(x,je)});de.useEffect(()=>{if(!o||!h)return;d.current.__escapeKeyBubbles=U,d.current.__outsidePressBubbles=q;let ke=-1;function Ce(J){i(!1,J,"ancestor-scroll")}function je(){window.clearTimeout(ke),ce.current=!0}function Z(){ke=window.setTimeout(()=>{ce.current=!1},bc()?5:0)}const be=Th(a.floating);v&&(be.addEventListener("keydown",_?Fe:ae,_),be.addEventListener("compositionstart",je),be.addEventListener("compositionend",Z)),I&&be.addEventListener(x,ie?_e:Ne,ie);let Q=[];return F&&(pt(a.domReference)&&(Q=ds(a.domReference)),pt(a.floating)&&(Q=Q.concat(ds(a.floating))),!pt(a.reference)&&a.reference&&a.reference.contextElement&&(Q=Q.concat(ds(a.reference.contextElement)))),Q=Q.filter(J=>{var fe;return J!==((fe=be.defaultView)==null?void 0:fe.visualViewport)}),Q.forEach(J=>{J.addEventListener("scroll",Ce,{passive:!0})}),()=>{v&&(be.removeEventListener("keydown",_?Fe:ae,_),be.removeEventListener("compositionstart",je),be.removeEventListener("compositionend",Z)),I&&be.removeEventListener(x,ie?_e:Ne,ie),Q.forEach(J=>{J.removeEventListener("scroll",Ce)}),window.clearTimeout(ke)}},[d,a,v,I,x,o,i,F,h,U,q,ae,_,Fe,Ne,ie,_e]),de.useEffect(()=>{d.current.insideReactTree=!1},[d,I,x]);const Ge=de.useMemo(()=>({onKeyDown:ae,...R&&{[PS[E]]:ke=>{i(!1,ke.nativeEvent,"reference-press")},...E!=="click"&&{onClick(ke){i(!1,ke.nativeEvent,"reference-press")}}}}),[ae,i,R,E]),Qe=de.useMemo(()=>({onKeyDown:ae,onMouseDown(){W.current=!0},onMouseUp(){W.current=!0},[AS[x]]:()=>{d.current.insideReactTree=!0},onBlurCapture(){D||(RS(ee),d.current.insideReactTree=!0,ee.current=window.setTimeout(()=>{d.current.insideReactTree=!1}))}}),[ae,x,d,D]);return de.useMemo(()=>h?{reference:Ge,floating:Qe}:{},[h,Ge,Qe])}function OS(e){const{open:r=!1,onOpenChange:o,elements:i}=e,a=xS(),d=de.useRef({}),[h]=de.useState(()=>SS()),v=CS()!=null;if(process.env.NODE_ENV!=="production"){const M=i.reference;M&&!pt(M)&&wS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[m,x]=de.useState(i.reference),R=ss((M,B,D)=>{d.current.openEvent=M?B:void 0,h.emit("openchange",{open:M,event:B,reason:D,nested:v}),o==null||o(M,B,D)}),E=de.useMemo(()=>({setPositionReference:x}),[]),F=de.useMemo(()=>({reference:m||i.reference||null,floating:i.floating||null,domReference:i.reference}),[m,i.reference,i.floating]);return de.useMemo(()=>({dataRef:d,open:r,onOpenChange:R,elements:F,events:h,floatingId:a,refs:E}),[r,R,F,h,a,E])}function FS(e){e===void 0&&(e={});const{nodeId:r}=e,o=OS({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||o,a=i.elements,[d,h]=de.useState(null),[v,m]=de.useState(null),R=(a==null?void 0:a.domReference)||d,E=de.useRef(null),F=Qg();Nd(()=>{R&&(E.current=R)},[R]);const M=F0({...e,elements:{...a,...v&&{reference:v}}}),B=de.useCallback(U=>{const q=pt(U)?{getBoundingClientRect:()=>U.getBoundingClientRect(),getClientRects:()=>U.getClientRects(),contextElement:U}:U;m(q),M.refs.setReference(q)},[M.refs]),D=de.useCallback(U=>{(pt(U)||U===null)&&(E.current=U,h(U)),(pt(M.refs.reference.current)||M.refs.reference.current===null||U!==null&&!pt(U))&&M.refs.setReference(U)},[M.refs]),P=de.useMemo(()=>({...M.refs,setReference:D,setPositionReference:B,domReference:E}),[M.refs,D,B]),I=de.useMemo(()=>({...M.elements,domReference:R}),[M.elements,R]),W=de.useMemo(()=>({...M,...i,refs:P,elements:I,nodeId:r}),[M,P,I,r,i]);return Nd(()=>{i.dataRef.current.floatingContext=W;const U=F==null?void 0:F.nodesRef.current.find(q=>q.id===r);U&&(U.context=W)}),de.useMemo(()=>({...M,context:W,refs:P,elements:I}),[M,P,I,W])}function Gf(e,r,o){const i=new Map,a=o==="item";let d=e;if(a&&e){const{[Rh]:h,[Ph]:v,...m}=e;d=m}return{...o==="floating"&&{tabIndex:-1,[mS]:""},...d,...r.map(h=>{const v=h?h[o]:null;return typeof v=="function"?e?v(e):null:v}).concat(e).reduce((h,v)=>(v&&Object.entries(v).forEach(m=>{let[x,R]=m;if(!(a&&[Rh,Ph].includes(x)))if(x.indexOf("on")===0){if(i.has(x)||i.set(x,[]),typeof R=="function"){var E;(E=i.get(x))==null||E.push(R),h[x]=function(){for(var F,M=arguments.length,B=new Array(M),D=0;D<M;D++)B[D]=arguments[D];return(F=i.get(x))==null?void 0:F.map(P=>P(...B)).find(P=>P!==void 0)}}}else h[x]=R}),h),{})}}function MS(e){e===void 0&&(e=[]);const r=e.map(v=>v==null?void 0:v.reference),o=e.map(v=>v==null?void 0:v.floating),i=e.map(v=>v==null?void 0:v.item),a=de.useCallback(v=>Gf(v,e,"reference"),r),d=de.useCallback(v=>Gf(v,e,"floating"),o),h=de.useCallback(v=>Gf(v,e,"item"),i);return de.useMemo(()=>({getReferenceProps:a,getFloatingProps:d,getItemProps:h}),[a,d,h])}const DS={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},_S={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},LS={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},jS={normal:"rounded",pill:"rounded-pill"},NS={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},Xg=({category:e="solid",color:r="primary",roundness:o="normal",size:i="medium",textClassName:a="uppercase",children:d,className:h,...v})=>{const m=V.useMemo(()=>LS[r]??"text-white",[r]),x=V.useMemo(()=>fs(m,e==="outline"?_S[r]:DS[r],jS[o],NS[i]),[m,e,r,i,o]);return Y.jsx("div",{className:fs("ui-badge flex items-center font-bold",x,h),style:v==null?void 0:v.style,"data-testid":"badge","data-category":e,"data-color":r,...v,children:Y.jsx("p",{className:fs("mx-1",a),children:d})})},$S={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},zS=({transition:e,onClick:r})=>Y.jsxs("div",{className:"py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",onClick:o=>{o.stopPropagation(),r()},children:[Y.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),Y.jsx(ii,{icon:W0,className:"text-gray-400 size-4"}),Y.jsx(Xg,{category:"outline",color:e.color,children:e.to})]}),BS=({title:e,variant:r="default",transitions:o,onClick:i})=>{const[a,d]=V.useState(!1),{refs:h,floatingStyles:v,context:m}=FS({strategy:"fixed",placement:"bottom-end",open:a,onOpenChange:d}),x=IS(m,{outsidePress:!0}),{getReferenceProps:R,getFloatingProps:E}=MS([x]);return Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{onClick:o!=null&&o.length?()=>d(F=>!F):void 0,ref:h.setReference,className:gt("px-1 uppercase border rounded-sm flex items-center space-x-1",o.length?"cursor-pointer":"pointer-events-none",$S[r]),...R(),children:[Y.jsx("span",{className:"text-sm font-bold",children:e}),o.length>0?Y.jsx(ii,{icon:cg,className:"size-4"}):Y.jsx(Y.Fragment,{})]}),a&&o.length&&Y.jsx("div",{ref:h.setFloating,style:v,className:gt("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...E(),children:o.map((F,M)=>Y.jsx(zS,{transition:F,onClick:()=>{i==null||i(F.id),d(!1)}},M))})]})},Fh=({description:e})=>{const r=V.useMemo(()=>{const o=/https:\/\/[^/]+\/api\/files/g,i=e==null?void 0:e.replaceAll(o,`${jp}`),a=i==null?void 0:i.replaceAll('src="/api/files',`src="${jp}`),v=new DOMParser().parseFromString(a,"text/html").querySelectorAll("img");return v==null||v.forEach(m=>{const x=m.getAttribute("src");x&&(new Image().src=x)}),a},[e]);return V.useEffect(()=>{},[r]),Y.jsx("div",{className:"flex flex-col gap-4",children:Y.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:r}})})},US={SEQUENTIAL:"Sequential"},HS={[ut.IN_REVIEW]:"In Review"},WS={[ut.OPEN]:"bg-secondary-500",[ut.IN_PROGRESS]:"bg-primary-600",[ut.IN_REVIEW]:"bg-success-600",[ut.COMPLETED]:"bg-success-600"},VS=({playbookType:e,status:r,step:o,isSelected:i,onSelect:a})=>Y.jsx("div",{className:Ll("flex flex-col items-center justify-center",i?"bg-[#FFE600]":WS[r],a&&"cursor-pointer"),onClick:d=>{d.stopPropagation(),a==null||a(d.shiftKey)},children:Y.jsx("span",{className:Ll("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",i?"text-black":"text-white"),children:e===US.SEQUENTIAL?`STEP ${o}`:(HS[r]||r).toUpperCase()})}),YS={[ut.OPEN]:"secondary",[ut.IN_PROGRESS]:"primary",[ut.IN_REVIEW]:"success",[ut.COMPLETED]:"success"},GS=({status:e})=>Y.jsx(Xg,{category:"outline",color:YS[e],children:e}),QS={[ut.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[ut.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[ut.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[ut.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Qf={PHOTO:"photo",SCREENSHOT:"screenshot"},XS=({task:e,step:r,playbookType:o,onButtonClick:i,viewMode:a="card",canStart:d=!1,isExpanded:h=!1,toggleExpanded:v,playbookId:m,taskStyle:x,listStickyTopBase:R})=>{const[E,F]=V.useState(!1),{taskDetails:M,prefetchQuery:B}=aS({taskId:e.taskId,playbookId:m,enabled:h}),{buttons:D}=dy({taskStatus:e.workflowStatus,canStart:d}),P=V.useMemo(()=>e.imageRequired===0?null:e.imageRequired===1?Qf.SCREENSHOT:e.imageRequired===2?Qf.PHOTO:null,[e.imageRequired]),I=async W=>{try{F(!0),await i(W)}finally{F(!1)}};if(a==="list"){const W=V.useMemo(()=>e.workflowStatus===ut.COMPLETED?"success":e.workflowStatus===ut.IN_PROGRESS?"primary":"default",[e.workflowStatus]),U=V.useMemo(()=>{const q=[];return D.forEach(_=>{_==="START"&&q.push({id:"START",color:"primary",action:"Start",to:ut.IN_PROGRESS}),_==="COMPLETE"&&q.push({id:"COMPLETE",color:"success",action:"Complete",to:ut.COMPLETED})}),q},[D]);return Y.jsxs("div",{className:gt("flex flex-col"),children:[Y.jsxs("div",{className:gt("flex gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",h&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:h?R:0},children:[Y.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),Y.jsx("div",{onClick:()=>{v==null||v(!h)},onMouseOver:B,className:gt("flex-1 truncate cursor-pointer",h&&"font-medium",e.workflowStatus===ut.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===ut.IN_PROGRESS&&(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),Y.jsx(BS,{title:e.workflowStatus,variant:W,transitions:U,onClick:q=>{i(q)}})]}),(M==null?void 0:M.description)&&Y.jsx("div",{className:gt(!h&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:Y.jsx(Fh,{description:(M==null?void 0:M.description)||""})})]})}return Y.jsxs("div",{className:Ll("flex items-stretch rounded-sm overflow-hidden border",QS[e.workflowStatus]),children:[Y.jsx(VS,{playbookType:o,status:e.workflowStatus,step:r}),Y.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[o==="Sequential"&&Y.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:Y.jsx(GS,{status:e.workflowStatus})}),Y.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[Y.jsx("div",{className:gt("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),P?Y.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[Y.jsx(ii,{icon:H0,className:"size-4"}),Y.jsxs("div",{children:[Y.jsx("span",{className:"font-medium",children:P===Qf.PHOTO?"Photo":"Screenshot"})," ","required"]})]}):Y.jsx(Y.Fragment,{})]}),(M==null?void 0:M.description)&&Y.jsx("div",{className:gt(!h&&"hidden"),children:Y.jsx(Fh,{description:(M==null?void 0:M.description)||""})}),(D.length>0||e.hasDescription)&&Y.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[Y.jsx("div",{className:"flex-1",children:Y.jsx(sS,{buttons:D,onButtonClick:I,disabled:E})}),v&&Y.jsx(jl,{size:"smallCollapse",onMouseOver:B,category:"link",onClick:()=>{v()},title:h?"Hide task description":"Show task description",children:Y.jsx(ii,{icon:cg,className:Ll("cursor-pointer text-[#0069D9]",h?"rotate-180":"")})})]})]})]})},qg=V.forwardRef(({title:e,className:r,playbookStyle:o,...i},a)=>{var d,h,v;return Y.jsx("div",{ref:a,className:gt("border-b border-gray-200 flex items-center",r),style:{backgroundColor:((d=o==null?void 0:o.whiteLabel)==null?void 0:d.titleBackgroundColor)||"#f8f9fa"},...i,children:Y.jsx("div",{className:gt("text-xl min-h-16 p-4 font-medium flex-1",{"text-dark":!((h=o==null?void 0:o.whiteLabel)!=null&&h.titleTextColor)}),style:{color:(v=o==null?void 0:o.whiteLabel)==null?void 0:v.titleTextColor},children:e})})});qg.displayName="PlaybookHeader";const qS=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>{const{playbook:i,actions:a}=cy(e);if(!i)return Y.jsx("div",{});console.log({playbookStyle:o});const d=async(h,v)=>{var m;if(h===Il.COMPLETE){const x=(m=i.tasks.find(R=>R.taskInstanceId===v))==null?void 0:m.sequenceOrder;if(x===void 0){console.error("Task not found in playbook");return}return a.completeTask(v,x)}if(h===Il.START)return a.startTask(v)};return Y.jsx("div",{className:"confidence-playbook",children:Y.jsx(Jg,{playbook:i,playbookMode:r,onTaskButtonClick:d,playbookStyle:o})})},JS=({className:e,children:r,numberOfTasks:o,playbookMode:i})=>Y.jsxs("div",{className:gt("w-full p-4",e),children:[o&&Y.jsxs("div",{className:gt(i==="card"&&"mb-4"),children:[Y.jsx("span",{className:"font-medium",children:"Tasks"})," (",o,")"]}),Y.jsx("div",{className:gt(i==="card"&&"space-y-4"),children:r})]}),Jg=({playbook:e,playbookMode:r,onTaskButtonClick:o,playbookStyle:i})=>{var P,I,W,U,q;const{playbookInstanceName:a,tasks:d}=e,h=V.useRef(null),[v,m]=V.useState(0),[x,R]=V.useState(!0),E=()=>{R(!x)},{isTaskExpanded:F,toggleTaskExpanded:M,isAtLeastOneTaskExpanded:B}=hm(e.playbookInstanceId,{onTaskExpanded:()=>{var _;m(((_=h.current)==null?void 0:_.offsetHeight)||0)}});V.useEffect(()=>{if(B){if(!h.current)throw new Error("Playbook header ref is not set");new ResizeObserver(ie=>{var ce;for(const ee of ie)ee.contentRect&&m(((ce=h.current)==null?void 0:ce.offsetHeight)||0)}).observe(h.current)}return()=>{h.current&&new ResizeObserver(()=>{}).unobserve(h.current)}},[B]);const D=V.useMemo(()=>{const _=d.filter(ie=>ie.workflowStatus===ut.COMPLETED).sort((ie,ce)=>ce.sequenceOrder-ie.sequenceOrder)[0];return _?_.sequenceOrder+1:0},[d]);return Y.jsxs("div",{className:gt(!(i!=null&&i.overlay)&&"min-h-screen",(i==null?void 0:i.overlay)&&"fixed bottom-0 z-[99999999999999] flex","transition-all duration-300 ease-in-out "),...(i==null?void 0:i.overlay)&&{style:{width:"100%",maxWidth:x?((P=i.overlay.size)==null?void 0:P.width)||450:"2.25rem",height:((I=i.overlay.size)==null?void 0:I.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((W=i.overlay.offset)==null?void 0:W.right)!==void 0?i.overlay.offset.right:i.overlay.position==="right"?32:void 0,left:((U=i.overlay.offset)==null?void 0:U.left)!==void 0?i.overlay.offset.left:i.overlay.position==="left"?32:void 0}},children:[(i==null?void 0:i.overlay)&&Y.jsx("div",{onClick:E,className:gt("size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((q=i==null?void 0:i.whiteLabel)==null?void 0:q.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:Y.jsx("img",{src:Jh,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),Y.jsxs("div",{className:gt("flex flex-col flex-1 bg-gray-50",(i==null?void 0:i.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[Y.jsx(qg,{title:a,className:gt("top-0 sticky z-2"),playbookStyle:i,ref:h}),Y.jsx(JS,{playbookMode:r,numberOfTasks:e.numberofTasks,children:d.map((_,ie)=>{var ce;return Y.jsx(XS,{task:_,step:ie+1,viewMode:r,playbookId:e.playbookId,canStart:_.sequenceOrder===D,onButtonClick:ee=>o(ee,_.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(ce=i==null?void 0:i.whiteLabel)==null?void 0:ce.primaryColor},isExpanded:F(_.taskInstanceId),toggleExpanded:()=>M(_.taskInstanceId),listStickyTopBase:v||104},ie)})})]})]})},KS=({email:e,playbookId:r,playbookMode:o,playbookStyle:i,bank:a="public-sdk",timezone:d="America/Los_Angeles"})=>{const[h,v]=V.useState(null);return V.useEffect(()=>{(async()=>{const{playbookInstanceId:m,errorCode:x,details:R,message:E}=await mm({bank:a,email:e,timezone:d,playbookUid:r})||{};if(x)throw new Error(`Error initiating playbook: ${E} (Code: ${x}) - Details: ${R}`);v(m)})()},[]),h?Y.jsx(si,{playbookInstanceId:h,playbookMode:o,playbookStyle:i}):Y.jsx("div",{children:"Loading..."})},ZS=({playbookId:e,playbookMode:r="list",playbookStyle:o,btnLabel:i="Start Playbook",btnColor:a="primary"})=>{const[d,h]=V.useState(null);return Y.jsxs(Y.Fragment,{children:[Y.jsxs(cc.div,{children:[Y.jsx(B0,{playbookId:e,disabled:!!d,onInitiated:h,btnLabel:i,btnColor:a}),Y.jsx("style",{type:"text/css",children:fc})]}),d&&Y.jsx(si,{playbookInstanceId:d,playbookMode:r,playbookStyle:o})]})},si=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>Y.jsx(dm,{children:Y.jsx(qS,{playbookInstanceId:e,playbookMode:r,playbookStyle:o})});si.Context=dm;si.View=Jg;si.AutoInstantiated=KS;si.WithInstantiateButton=ZS;const Kg=e=>Vl.createPortal(Y.jsxs(cc.div,{children:[Y.jsx("style",{children:fc}),Y.jsx(si,{...e})]}),document.body),ek=e=>Vl.createPortal(Y.jsxs(cc.div,{children:[Y.jsx("style",{children:fc}),Y.jsx(si.AutoInstantiated,{...e})]}),document.body);Kg.AutoInstantiated=ek;exports.ConfidencePlaybook=Kg;
|
|
692
|
+
}`;function aA(){const e=qC,t=eA,n=Ve.cssPrefix,r=Ve.replacementClass;let o=xP;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(c,".".concat(r))}return o}let Sx=!1;function Ng(){Ve.autoAddCss&&!Sx&&(mP(aA()),Sx=!0)}var wP={mixout(){return{dom:{css:aA,insertCss:Ng}}},hooks(){return{beforeDOMElementCreation(){Ng()},beforeI2svg(){Ng()}}}};const Gi=Qa||{};Gi[Yi]||(Gi[Yi]={});Gi[Yi].styles||(Gi[Yi].styles={});Gi[Yi].hooks||(Gi[Yi].hooks={});Gi[Yi].shims||(Gi[Yi].shims=[]);var oi=Gi[Yi];const sA=[],lA=function(){Gt.removeEventListener("DOMContentLoaded",lA),yh=1,sA.map(e=>e())};let yh=!1;qi&&(yh=(Gt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gt.readyState),yh||Gt.addEventListener("DOMContentLoaded",lA));function SP(e){qi&&(yh?setTimeout(e,0):sA.push(e))}function kd(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?iA(e):"<".concat(t," ").concat(vP(n),">").concat(r.map(kd).join(""),"</").concat(t,">")}function Cx(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Lg=function(t,n,r,o){var i=Object.keys(t),s=i.length,c=n,u,f,m;for(r===void 0?(u=1,m=t[i[0]]):(u=0,m=r);u<s;u++)f=i[u],m=c(m,t[f],f,t);return m};function CP(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function Xv(e){const t=CP(e);return t.length===1?t[0].toString(16):null}function AP(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Ax(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Jv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Ax(t);typeof oi.hooks.addPack=="function"&&!r?oi.hooks.addPack(e,Ax(t)):oi.styles[e]=Ce(Ce({},oi.styles[e]||{}),o),e==="fas"&&Jv("fa",t)}const{styles:od,shims:EP}=oi,cA=Object.keys(vy),kP=cA.reduce((e,t)=>(e[t]=Object.keys(vy[t]),e),{});let xy=null,uA={},fA={},dA={},pA={},hA={};function TP(e){return~fP.indexOf(e)}function _P(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!TP(o)?o:null}const mA=()=>{const e=r=>Lg(od,(o,i,s)=>(o[s]=Lg(i,r,{}),o),{});uA=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=i}),r)),fA=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=i}),r)),hA=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(c=>{r[c]=i}),r});const t="far"in od||Ve.autoFetchSvg,n=Lg(EP,(r,o)=>{const i=o[0];let s=o[1];const c=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:c}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});dA=n.names,pA=n.unicodes,xy=nm(Ve.styleDefault,{family:Ve.familyDefault})};hP(e=>{xy=nm(e.styleDefault,{family:Ve.familyDefault})});mA();function wy(e,t){return(uA[e]||{})[t]}function RP(e,t){return(fA[e]||{})[t]}function Zs(e,t){return(hA[e]||{})[t]}function gA(e){return dA[e]||{prefix:null,iconName:null}}function PP(e){const t=pA[e],n=wy("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Za(){return xy}const vA=()=>({prefix:null,iconName:null,rest:[]});function IP(e){let t=or;const n=cA.reduce((r,o)=>(r[o]="".concat(Ve.cssPrefix,"-").concat(o),r),{});return XC.forEach(r=>{(e.includes(n[r])||e.some(o=>kP[r].includes(o)))&&(t=r)}),t}function nm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=or}=t,r=aP[n][e];if(n===em&&!e)return"fad";const o=wx[n][e]||wx[n][r],i=e in oi.styles?e:null;return o||i||null}function OP(e){let t=[],n=null;return e.forEach(r=>{const o=_P(Ve.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Ex(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function rm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Vv.concat(GR),i=Ex(e.filter(h=>o.includes(h))),s=Ex(e.filter(h=>!Vv.includes(h))),c=i.filter(h=>(r=h,!ZC.includes(h))),[u=null]=c,f=IP(i),m=Ce(Ce({},OP(s)),{},{prefix:nm(u,{family:f})});return Ce(Ce(Ce({},m),DP({values:e,family:f,styles:od,config:Ve,canonical:m,givenPrefix:r})),MP(n,r,m))}function MP(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?gA(o):{},s=Zs(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!od.far&&od.fas&&!Ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const NP=XC.filter(e=>e!==or||e!==em),LP=Object.keys(Hv).filter(e=>e!==or).map(e=>Object.keys(Hv[e])).flat();function DP(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,c=n===em,u=t.includes("fa-duotone")||t.includes("fad"),f=s.familyDefault==="duotone",m=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||f||m)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&NP.includes(n)&&(Object.keys(i).find(v=>LP.includes(v))||s.autoFetchSvg)){const v=BR.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=Zs(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Za()||"fas"),r}class FP{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=Ce(Ce({},this.definitions[i]||{}),o[i]),Jv(i,o[i]);const s=vy[or][i];s&&Jv(s,o[i]),mA()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:c}=r[o],u=c[2];t[i]||(t[i]={}),u.length>0&&u.forEach(f=>{typeof f=="string"&&(t[i][f]=c)}),t[i][s]=c}),t}}let kx=[],Hc={};const Xc={},jP=Object.keys(Xc);function zP(e,t){let{mixoutsTo:n}=t;return kx=e,Hc={},Object.keys(Xc).forEach(r=>{jP.indexOf(r)===-1&&delete Xc[r]}),kx.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{Hc[s]||(Hc[s]=[]),Hc[s].push(i[s])})}r.provides&&r.provides(Xc)}),n}function qv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(Hc[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function bl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Hc[e]||[]).forEach(i=>{i.apply(null,n)})}function Xa(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Xc[e]?Xc[e].apply(null,t):void 0}function e0(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Za();if(t)return t=Zs(n,t)||t,Cx(yA.definitions,n,t)||Cx(oi.styles,n,t)}const yA=new FP,BP=()=>{Ve.autoReplaceSvg=!1,Ve.observeMutations=!1,bl("noAuto")},UP={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return qi?(bl("beforeI2svg",e),Xa("pseudoElements2svg",e),Xa("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;Ve.autoReplaceSvg===!1&&(Ve.autoReplaceSvg=!0),Ve.observeMutations=!0,SP(()=>{$P({autoReplaceSvgRoot:t}),bl("watch",e)})}},WP={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zs(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=nm(e[0]);return{prefix:n,iconName:Zs(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Ve.cssPrefix,"-"))>-1||e.match(sP))){const t=rm(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Za(),iconName:Zs(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Za();return{prefix:t,iconName:Zs(t,e)||e}}}},Qr={noAuto:BP,config:Ve,dom:UP,parse:WP,library:yA,findIconDefinition:e0,toHtml:kd},$P=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Gt}=e;(Object.keys(oi.styles).length>0||Ve.autoFetchSvg)&&qi&&Ve.autoReplaceSvg&&Qr.dom.i2svg({node:t})};function om(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>kd(n))}}),Object.defineProperty(e,"node",{get:function(){if(!qi)return;const n=Gt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function HP(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(by(s)&&n.found&&!r.found){const{width:c,height:u}=n,f={x:c/u/2,y:.5};o.style=tm(Ce(Ce({},i),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function VP(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(Ve.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ce(Ce({},o),{},{id:s}),children:r}]}]}function Sy(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:c,maskId:u,titleId:f,extra:m,watchable:h=!1}=e,{width:v,height:w}=n.found?n:t,C=VR.includes(r),A=[Ve.replacementClass,o?"".concat(Ve.cssPrefix,"-").concat(o):""].filter(M=>m.classes.indexOf(M)===-1).filter(M=>M!==""||!!M).concat(m.classes).join(" ");let x={children:[],attributes:Ce(Ce({},m.attributes),{},{"data-prefix":r,"data-icon":o,class:A,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(w)})};const E=C&&!~m.classes.indexOf("fa-fw")?{width:"".concat(v/w*16*.0625,"em")}:{};h&&(x.attributes[yl]=""),c&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||rd())},children:[c]}),delete x.attributes.title);const R=Ce(Ce({},x),{},{prefix:r,iconName:o,main:t,mask:n,maskId:u,transform:i,symbol:s,styles:Ce(Ce({},E),m.styles)}),{children:O,attributes:L}=n.found&&t.found?Xa("generateAbstractMask",R)||{children:[],attributes:{}}:Xa("generateAbstractIcon",R)||{children:[],attributes:{}};return R.children=O,R.attributes=L,s?VP(R):HP(R)}function Tx(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:c=!1}=e,u=Ce(Ce(Ce({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(u[yl]="");const f=Ce({},s.styles);by(o)&&(f.transform=bP({transform:o,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);const m=tm(f);m.length>0&&(u.style=m);const h=[];return h.push({tag:"span",attributes:u,children:[t]}),i&&h.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),h}function KP(e){const{content:t,title:n,extra:r}=e,o=Ce(Ce(Ce({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=tm(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Dg}=oi;function t0(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(Mg.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(Mg.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(Mg.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const YP={found:!1,width:512,height:512};function GP(e,t){!tA&&!Ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function n0(e,t){let n=t;return t==="fa"&&Ve.styleDefault!==null&&(t=Za()),new Promise((r,o)=>{if(n==="fa"){const i=gA(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Dg[t]&&Dg[t][e]){const i=Dg[t][e];return r(t0(i))}GP(e,t),r(Ce(Ce({},YP),{},{icon:Ve.showMissingIcons&&e?Xa("missingIconAbstract")||{}:{}}))})}const _x=()=>{},r0=Ve.measurePerformance&&Mp&&Mp.mark&&Mp.measure?Mp:{mark:_x,measure:_x},Bf='FA "6.7.2"',QP=e=>(r0.mark("".concat(Bf," ").concat(e," begins")),()=>bA(e)),bA=e=>{r0.mark("".concat(Bf," ").concat(e," ends")),r0.measure("".concat(Bf," ").concat(e),"".concat(Bf," ").concat(e," begins"),"".concat(Bf," ").concat(e," ends"))};var Cy={begin:QP,end:bA};const Zp=()=>{};function Rx(e){return typeof(e.getAttribute?e.getAttribute(yl):null)=="string"}function ZP(e){const t=e.getAttribute?e.getAttribute(my):null,n=e.getAttribute?e.getAttribute(gy):null;return t&&n}function XP(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ve.replacementClass)}function JP(){return Ve.autoReplaceSvg===!0?Xp.replace:Xp[Ve.autoReplaceSvg]||Xp.replace}function qP(e){return Gt.createElementNS("http://www.w3.org/2000/svg",e)}function eI(e){return Gt.createElement(e)}function xA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?qP:eI}=t;if(typeof e=="string")return Gt.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(xA(i,{ceFn:n}))}),r}function tI(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Xp={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(xA(n),t)}),t.getAttribute(yl)===null&&Ve.keepOriginalSource){let n=Gt.createComment(tI(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~yy(t).indexOf(Ve.replacementClass))return Xp.replace(e);const r=new RegExp("".concat(Ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,c)=>(c===Ve.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>kd(i)).join(`
|
|
693
|
+
`);t.setAttribute(yl,""),t.innerHTML=o}};function Px(e){e()}function wA(e,t){const n=typeof t=="function"?t:Zp;if(e.length===0)n();else{let r=Px;Ve.mutateApproach===oP&&(r=Qa.requestAnimationFrame||Px),r(()=>{const o=JP(),i=Cy.begin("mutate");e.map(o),i(),n()})}}let Ay=!1;function SA(){Ay=!0}function o0(){Ay=!1}let bh=null;function Ix(e){if(!vx||!Ve.observeMutations)return;const{treeCallback:t=Zp,nodeCallback:n=Zp,pseudoElementsCallback:r=Zp,observeMutationsRoot:o=Gt}=e;bh=new vx(i=>{if(Ay)return;const s=Za();Tu(i).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Rx(c.addedNodes[0])&&(Ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&Ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Rx(c.target)&&~uP.indexOf(c.attributeName))if(c.attributeName==="class"&&ZP(c.target)){const{prefix:u,iconName:f}=rm(yy(c.target));c.target.setAttribute(my,u||s),f&&c.target.setAttribute(gy,f)}else XP(c.target)&&n(c.target)})}),qi&&bh.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function nI(){bh&&bh.disconnect()}function rI(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],c=i.slice(1);return s&&c.length>0&&(r[s]=c.join(":").trim()),r},{})),n}function oI(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=rm(yy(e));return o.prefix||(o.prefix=Za()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=RP(o.prefix,e.innerText)||wy(o.prefix,Xv(e.innerText))),!o.iconName&&Ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function iI(e){const t=Tu(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ve.autoA11y&&(n?t["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(r||rd()):(t["aria-hidden"]="true",t.focusable="false")),t}function aI(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ri,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ox(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=oI(e),i=iI(e),s=qv("parseNodeAttributes",{},e);let c=t.styleParser?rI(e):[];return Ce({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:ri,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:i}},s)}const{styles:sI}=oi;function CA(e){const t=Ve.autoReplaceSvg==="nest"?Ox(e,{styleParser:!1}):Ox(e);return~t.extra.classes.indexOf(rA)?Xa("generateLayersText",e,t):Xa("generateSvgReplacementMutation",e,t)}function lI(){return[...WR,...Vv]}function Mx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!qi)return Promise.resolve();const n=Gt.documentElement.classList,r=m=>n.add("".concat(xx,"-").concat(m)),o=m=>n.remove("".concat(xx,"-").concat(m)),i=Ve.autoFetchSvg?lI():ZC.concat(Object.keys(sI));i.includes("fa")||i.push("fa");const s=[".".concat(rA,":not([").concat(yl,"])")].concat(i.map(m=>".".concat(m,":not([").concat(yl,"])"))).join(", ");if(s.length===0)return Promise.resolve();let c=[];try{c=Tu(e.querySelectorAll(s))}catch{}if(c.length>0)r("pending"),o("complete");else return Promise.resolve();const u=Cy.begin("onTree"),f=c.reduce((m,h)=>{try{const v=CA(h);v&&m.push(v)}catch(v){tA||v.name==="MissingIcon"&&console.error(v)}return m},[]);return new Promise((m,h)=>{Promise.all(f).then(v=>{wA(v,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),u(),m()})}).catch(v=>{u(),h(v)})})}function cI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;CA(e).then(n=>{n&&wA([n],t)})}function uI(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:e0(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:e0(o||{})),e(r,Ce(Ce({},n),{},{mask:o}))}}const fI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=ri,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:c=null,classes:u=[],attributes:f={},styles:m={}}=t;if(!e)return;const{prefix:h,iconName:v,icon:w}=e;return om(Ce({type:"icon"},e),()=>(bl("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ve.autoA11y&&(s?f["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(c||rd()):(f["aria-hidden"]="true",f.focusable="false")),Sy({icons:{main:t0(w),mask:o?t0(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:v,transform:Ce(Ce({},ri),n),symbol:r,title:s,maskId:i,titleId:c,extra:{attributes:f,styles:m,classes:u}})))};var dI={mixout(){return{icon:uI(fI)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Mx,e.nodeCallback=cI,e}}},provides(e){e.i2svg=function(t){const{node:n=Gt,callback:r=()=>{}}=t;return Mx(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:c,symbol:u,mask:f,maskId:m,extra:h}=n;return new Promise((v,w)=>{Promise.all([n0(r,s),f.iconName?n0(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(C=>{let[A,x]=C;v([t,Sy({icons:{main:A,mask:x},prefix:s,iconName:r,transform:c,symbol:u,maskId:m,title:o,titleId:i,extra:h,watchable:!0})])}).catch(w)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const c=tm(s);c.length>0&&(r.style=c);let u;return by(i)&&(u=Xa("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(u||o.icon),{children:n,attributes:r}}}},pI={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return om({type:"layer"},()=>{bl("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(Ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},hI={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return om({type:"counter",content:e},()=>(bl("beforeDOMElementCreation",{content:e,params:t}),KP({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(Ve.cssPrefix,"-layers-counter"),...r]}})))}}}},mI={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=ri,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return om({type:"text",content:e},()=>(bl("beforeDOMElementCreation",{content:e,params:t}),Tx({content:e,transform:Ce(Ce({},ri),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(Ve.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,c=null;if(GC){const u=parseInt(getComputedStyle(t).fontSize,10),f=t.getBoundingClientRect();s=f.width/u,c=f.height/u}return Ve.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Tx({content:t.innerHTML,width:s,height:c,transform:o,title:r,extra:i,watchable:!0})])}}};const gI=new RegExp('"',"ug"),Nx=[1105920,1112319],Lx=Ce(Ce(Ce(Ce({},{FontAwesome:{normal:"fas",400:"fas"}}),zR),nP),QR),i0=Object.keys(Lx).reduce((e,t)=>(e[t.toLowerCase()]=Lx[t],e),{}),vI=Object.keys(i0).reduce((e,t)=>{const n=i0[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function yI(e){const t=e.replace(gI,""),n=AP(t,0),r=n>=Nx[0]&&n<=Nx[1],o=t.length===2?t[0]===t[1]:!1;return{value:Xv(o?t[0]:t),isSecondary:r||o}}function bI(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(i0[n]||{})[o]||vI[n]}function Dx(e,t){const n="".concat(rP).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Tu(e.children).filter(v=>v.getAttribute(Yv)===t)[0],c=Qa.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),f=u.match(lP),m=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&h!=="none"&&h!==""){const v=c.getPropertyValue("content");let w=bI(u,m);const{value:C,isSecondary:A}=yI(v),x=f[0].startsWith("FontAwesome");let E=wy(w,C),R=E;if(x){const O=PP(C);O.iconName&&O.prefix&&(E=O.iconName,w=O.prefix)}if(E&&!A&&(!s||s.getAttribute(my)!==w||s.getAttribute(gy)!==R)){e.setAttribute(n,R),s&&e.removeChild(s);const O=aI(),{extra:L}=O;L.attributes[Yv]=t,n0(E,w).then(M=>{const U=Sy(Ce(Ce({},O),{},{icons:{main:M,mask:vA()},prefix:w,iconName:R,extra:L,watchable:!0})),j=Gt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=U.map($=>kd($)).join(`
|
|
694
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function xI(e){return Promise.all([Dx(e,"::before"),Dx(e,"::after")])}function wI(e){return e.parentNode!==document.head&&!~iP.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Fx(e){if(qi)return new Promise((t,n)=>{const r=Tu(e.querySelectorAll("*")).filter(wI).map(xI),o=Cy.begin("searchPseudoElements");SA(),Promise.all(r).then(()=>{o(),o0(),t()}).catch(()=>{o(),o0(),n()})})}var SI={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Fx,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Gt}=t;Ve.searchPseudoElements&&Fx(n)}}};let jx=!1;var CI={mixout(){return{dom:{unwatch(){SA(),jx=!0}}}},hooks(){return{bootstrap(){Ix(qv("mutationObserverCallbacks",{}))},noAuto(){nI()},watch(e){const{observeMutationsRoot:t}=e;jx?o0():Ix(qv("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const zx=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var AI={mixout(){return{parse:{transform:e=>zx(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=zx(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),f="rotate(".concat(r.rotate," 0 0)"),m={transform:"".concat(c," ").concat(u," ").concat(f)},h={transform:"translate(".concat(i/2*-1," -256)")},v={outer:s,inner:m,path:h};return{tag:"g",attributes:Ce({},v.outer),children:[{tag:"g",attributes:Ce({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ce(Ce({},n.icon.attributes),v.path)}]}]}}}};const Fg={x:0,y:0,width:"100%",height:"100%"};function Bx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function EI(e){return e.tag==="g"?e.children:[e]}var kI={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?rm(n.split(" ").map(o=>o.trim())):vA();return r.prefix||(r.prefix=Za()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:c}=t;const{width:u,icon:f}=o,{width:m,icon:h}=i,v=yP({transform:c,containerWidth:m,iconWidth:u}),w={tag:"rect",attributes:Ce(Ce({},Fg),{},{fill:"white"})},C=f.children?{children:f.children.map(Bx)}:{},A={tag:"g",attributes:Ce({},v.inner),children:[Bx(Ce({tag:f.tag,attributes:Ce(Ce({},f.attributes),v.path)},C))]},x={tag:"g",attributes:Ce({},v.outer),children:[A]},E="mask-".concat(s||rd()),R="clip-".concat(s||rd()),O={tag:"mask",attributes:Ce(Ce({},Fg),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,x]},L={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:EI(h)},O]};return n.push(L,{tag:"rect",attributes:Ce({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(E,")")},Fg)}),{children:n,attributes:r}}}},TI={provides(e){let t=!1;Qa.matchMedia&&(t=Qa.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Ce(Ce({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=Ce(Ce({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Ce(Ce({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:Ce(Ce({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ce(Ce({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:Ce(Ce({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ce(Ce({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ce(Ce({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ce(Ce({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},_I={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},RI=[wP,dI,pI,hI,mI,SI,CI,AI,kI,TI,_I];zP(RI,{mixoutsTo:Qr});Qr.noAuto;Qr.config;Qr.library;Qr.dom;const a0=Qr.parse;Qr.findIconDefinition;Qr.toHtml;const PI=Qr.icon;Qr.layer;Qr.text;Qr.counter;function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(r){Vc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xh(e){"@babel/helpers - typeof";return xh=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},xh(e)}function Vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function II(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function AA(e,t){if(e==null)return{};var n=II(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s0(e){return OI(e)||MI(e)||NI(e)||LI()}function OI(e){if(Array.isArray(e))return l0(e)}function MI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NI(e,t){if(e){if(typeof e=="string")return l0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l0(e,t)}}function l0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
695
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DI(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,c=e.flash,u=e.spin,f=e.spinPulse,m=e.spinReverse,h=e.pulse,v=e.fixedWidth,w=e.inverse,C=e.border,A=e.listItem,x=e.flip,E=e.size,R=e.rotation,O=e.pull,L=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":m,"fa-spin-pulse":f,"fa-pulse":h,"fa-fw":v,"fa-inverse":w,"fa-border":C,"fa-li":A,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Vc(t,"fa-".concat(E),typeof E<"u"&&E!==null),Vc(t,"fa-rotate-".concat(R),typeof R<"u"&&R!==null&&R!==0),Vc(t,"fa-pull-".concat(O),typeof O<"u"&&O!==null),Vc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(L).map(function(M){return L[M]?M:null}).filter(function(M){return M})}function FI(e){return e=e-0,e===e}function EA(e){return FI(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var jI=["style"];function zI(e){return e.charAt(0).toUpperCase()+e.slice(1)}function BI(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=EA(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[zI(o)]=i:t[o]=i,t},{})}function kA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return kA(e,u)}),o=Object.keys(t.attributes||{}).reduce(function(u,f){var m=t.attributes[f];switch(f){case"class":u.attrs.className=m,delete t.attributes.class;break;case"style":u.attrs.style=BI(m);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=m:u.attrs[EA(f)]=m}return u},{attrs:{}}),i=n.style,s=i===void 0?{}:i,c=AA(n,jI);return o.attrs.style=Ua(Ua({},o.attrs.style),s),e.apply(void 0,[t.tag,Ua(Ua({},o.attrs),c)].concat(s0(r)))}var TA=!1;try{TA=process.env.NODE_ENV==="production"}catch{}function UI(){if(!TA&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Wx(e){if(e&&xh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(a0.icon)return a0.icon(e);if(e===null)return null;if(e&&xh(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function jg(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Vc({},e,t):{}}var WI=["forwardedRef"];function ot(e){var t=e.forwardedRef,n=AA(e,WI),r=n.icon,o=n.mask,i=n.symbol,s=n.className,c=n.title,u=n.titleId,f=n.maskId,m=Wx(r),h=jg("classes",[].concat(s0(DI(n)),s0(s.split(" ")))),v=jg("transform",typeof n.transform=="string"?a0.transform(n.transform):n.transform),w=jg("mask",Wx(o)),C=PI(m,Ua(Ua(Ua(Ua({},h),v),w),{},{symbol:i,title:c,titleId:u,maskId:f}));if(!C)return UI("Could not find icon",m),null;var A=C.abstract,x={ref:t};return Object.keys(n).forEach(function(E){ot.defaultProps.hasOwnProperty(E)||(x[E]=n[E])}),$I(A[0],x)}ot.displayName="FontAwesomeIcon";ot.propTypes={beat:Xe.bool,border:Xe.bool,beatFade:Xe.bool,bounce:Xe.bool,className:Xe.string,fade:Xe.bool,flash:Xe.bool,mask:Xe.oneOfType([Xe.object,Xe.array,Xe.string]),maskId:Xe.string,fixedWidth:Xe.bool,inverse:Xe.bool,flip:Xe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Xe.oneOfType([Xe.object,Xe.array,Xe.string]),listItem:Xe.bool,pull:Xe.oneOf(["right","left"]),pulse:Xe.bool,rotation:Xe.oneOf([0,90,180,270]),shake:Xe.bool,size:Xe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Xe.bool,spinPulse:Xe.bool,spinReverse:Xe.bool,symbol:Xe.oneOfType([Xe.bool,Xe.string]),title:Xe.string,titleId:Xe.string,transform:Xe.oneOfType([Xe.string,Xe.object]),swapOpacity:Xe.bool};ot.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var $I=kA.bind(null,Y.createElement);const HI=async e=>await(await fetch(`${Zi}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),VI=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=hi(),o=async()=>HI({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Bh({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),c=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:c,...s}},KI=({buttons:e,onButtonClick:t,disabled:n})=>D.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>D.jsx(Ht,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:KT[r]},r))});function YI(){return/apple/i.test(navigator.vendor)}function GI(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function c0(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bv(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function If(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zg(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function QI(e){return e.matches("html,body")}function id(e){return(e==null?void 0:e.ownerDocument)||document}function Jp(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Jp(e,o.id,n)])}function ZI(e){return"nativeEvent"in e}var XI=typeof document<"u",JI=function(){},ll=XI?Y.useLayoutEffect:JI;const qI={...F},eO=qI.useInsertionEffect,tO=eO||(e=>e());function Bc(e){const t=F.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return tO(()=>{t.current=e}),F.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const _A=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function RA(e,t){const n=_C(e,_A()),r=n.length;if(r===0)return;const o=GI(id(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function nO(e){return RA(id(e).body,1)||e}function rO(e){return RA(id(e).body,-1)||e}function Bg(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!c0(n,r)}function oO(e){_C(e,_A()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function $x(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const iO="data-floating-ui-focusable",Hx="active",Vx="selected",aO={...F};let Kx=!1,sO=0;const Yx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sO++;function lO(){const[e,t]=F.useState(()=>Kx?Yx():void 0);return ll(()=>{e==null&&t(Yx())},[]),F.useEffect(()=>{Kx=!0},[]),e}const cO=aO.useId,PA=cO||lO;let u0;process.env.NODE_ENV!=="production"&&(u0=new Set);function uO(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=u0)!=null&&e.has(o))){var i;(i=u0)==null||i.add(o),console.error(o)}}function fO(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const dO=F.createContext(null),pO=F.createContext(null),hO=()=>{var e;return((e=F.useContext(dO))==null?void 0:e.id)||null},IA=()=>F.useContext(pO);function Ey(e){return"data-floating-ui-"+e}const OA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Gx=F.forwardRef(function(t,n){const[r,o]=F.useState();ll(()=>{YI()&&o("button")},[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ey("focus-guard")]:"",style:OA};return D.jsx("span",{...t,...i})}),MA=F.createContext(null),Qx=Ey("portal");function mO(e){e===void 0&&(e={});const{id:t,root:n}=e,r=PA(),o=vO(),[i,s]=F.useState(null),c=F.useRef(null);return ll(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),ll(()=>{if(!r||c.current)return;const u=t?document.getElementById(t):null;if(!u)return;const f=document.createElement("div");f.id=r,f.setAttribute(Qx,""),u.appendChild(f),c.current=f,s(f)},[t,r]),ll(()=>{if(n===null||!r||c.current)return;let u=n||(o==null?void 0:o.portalNode);u&&!dy(u)&&(u=u.current),u=u||document.body;let f=null;t&&(f=document.createElement("div"),f.id=t,u.appendChild(f));const m=document.createElement("div");m.id=r,m.setAttribute(Qx,""),u=f||u,u.appendChild(m),c.current=m,s(m)},[t,n,r,o]),i}function gO(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=mO({id:n,root:r}),[s,c]=F.useState(null),u=F.useRef(null),f=F.useRef(null),m=F.useRef(null),h=F.useRef(null),v=s==null?void 0:s.modal,w=s==null?void 0:s.open,C=!!s&&!s.modal&&s.open&&o&&!!(r||i);return F.useEffect(()=>{if(!i||!o||v)return;function A(x){i&&Bg(x)&&(x.type==="focusin"?$x:oO)(i)}return i.addEventListener("focusin",A,!0),i.addEventListener("focusout",A,!0),()=>{i.removeEventListener("focusin",A,!0),i.removeEventListener("focusout",A,!0)}},[i,o,v]),F.useEffect(()=>{i&&(w||$x(i))},[w,i]),D.jsxs(MA.Provider,{value:F.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:f,beforeInsideRef:m,afterInsideRef:h,portalNode:i,setFocusManagerState:c}),[o,i]),children:[C&&i&&D.jsx(Gx,{"data-type":"outside",ref:u,onFocus:A=>{if(Bg(A,i)){var x;(x=m.current)==null||x.focus()}else{const E=s?s.domReference:null,R=rO(E);R==null||R.focus()}}}),C&&i&&D.jsx("span",{"aria-owns":i.id,style:OA}),i&&uS.createPortal(t,i),C&&i&&D.jsx(Gx,{"data-type":"outside",ref:f,onFocus:A=>{if(Bg(A,i)){var x;(x=h.current)==null||x.focus()}else{const E=s?s.domReference:null,R=nO(E);R==null||R.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,A.nativeEvent,"focus-out"))}}})]})}const vO=()=>F.useContext(MA),yO={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},bO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Zx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function NA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:h="pointerdown",ancestorScroll:v=!1,bubbles:w,capture:C}=t,A=IA(),x=Bc(typeof u=="function"?u:()=>!1),E=typeof u=="function"?x:u,R=F.useRef(!1),{escapeKey:O,outsidePress:L}=Zx(w),{escapeKey:M,outsidePress:U}=Zx(C),j=F.useRef(!1),$=Bc(se=>{var xe;if(!n||!s||!c||se.key!=="Escape"||j.current)return;const Ae=(xe=i.current.floatingContext)==null?void 0:xe.nodeId,Re=A?Jp(A.nodesRef.current,Ae):[];if(!O&&(se.stopPropagation(),Re.length>0)){let Q=!0;if(Re.forEach(Ee=>{var ne;if((ne=Ee.context)!=null&&ne.open&&!Ee.context.dataRef.current.__escapeKeyBubbles){Q=!1;return}}),!Q)return}r(!1,ZI(se)?se.nativeEvent:se,"escape-key")}),H=Bc(se=>{var xe;const Ae=()=>{var Re;$(se),(Re=If(se))==null||Re.removeEventListener("keydown",Ae)};(xe=If(se))==null||xe.addEventListener("keydown",Ae)}),G=Bc(se=>{var xe;const Ae=i.current.insideReactTree;i.current.insideReactTree=!1;const Re=R.current;if(R.current=!1,f==="click"&&Re||Ae||typeof E=="function"&&!E(se))return;const Q=If(se),Ee="["+Ey("inert")+"]",ne=id(o.floating).querySelectorAll(Ee);let re=nn(Q)?Q:null;for(;re&&!Hi(re);){const de=Ki(re);if(Hi(de)||!nn(de))break;re=de}if(ne.length&&nn(Q)&&!QI(Q)&&!c0(Q,o.floating)&&Array.from(ne).every(de=>!c0(re,de)))return;if(Lo(Q)&&ie){const de=Hi(Q),ve=uo(Q),_e=/auto|scroll/,je=de||_e.test(ve.overflowX),ze=de||_e.test(ve.overflowY),Be=je&&Q.clientWidth>0&&Q.scrollWidth>Q.clientWidth,Je=ze&&Q.clientHeight>0&&Q.scrollHeight>Q.clientHeight,ke=ve.direction==="rtl",tt=Je&&(ke?se.offsetX<=Q.offsetWidth-Q.clientWidth:se.offsetX>Q.clientWidth),xt=Be&&se.offsetY>Q.clientHeight;if(tt||xt)return}const ue=(xe=i.current.floatingContext)==null?void 0:xe.nodeId,me=A&&Jp(A.nodesRef.current,ue).some(de=>{var ve;return zg(se,(ve=de.context)==null?void 0:ve.elements.floating)});if(zg(se,o.floating)||zg(se,o.domReference)||me)return;const Te=A?Jp(A.nodesRef.current,ue):[];if(Te.length>0){let de=!0;if(Te.forEach(ve=>{var _e;if((_e=ve.context)!=null&&_e.open&&!ve.context.dataRef.current.__outsidePressBubbles){de=!1;return}}),!de)return}r(!1,se,"outside-press")}),q=Bc(se=>{var xe;const Ae=()=>{var Re;G(se),(Re=If(se))==null||Re.removeEventListener(f,Ae)};(xe=If(se))==null||xe.addEventListener(f,Ae)});F.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=O,i.current.__outsidePressBubbles=L;let se=-1;function xe(ne){r(!1,ne,"ancestor-scroll")}function Ae(){window.clearTimeout(se),j.current=!0}function Re(){se=window.setTimeout(()=>{j.current=!1},Zh()?5:0)}const Q=id(o.floating);c&&(Q.addEventListener("keydown",M?H:$,M),Q.addEventListener("compositionstart",Ae),Q.addEventListener("compositionend",Re)),E&&Q.addEventListener(f,U?q:G,U);let Ee=[];return v&&(nn(o.domReference)&&(Ee=Qc(o.domReference)),nn(o.floating)&&(Ee=Ee.concat(Qc(o.floating))),!nn(o.reference)&&o.reference&&o.reference.contextElement&&(Ee=Ee.concat(Qc(o.reference.contextElement)))),Ee=Ee.filter(ne=>{var re;return ne!==((re=Q.defaultView)==null?void 0:re.visualViewport)}),Ee.forEach(ne=>{ne.addEventListener("scroll",xe,{passive:!0})}),()=>{c&&(Q.removeEventListener("keydown",M?H:$,M),Q.removeEventListener("compositionstart",Ae),Q.removeEventListener("compositionend",Re)),E&&Q.removeEventListener(f,U?q:G,U),Ee.forEach(ne=>{ne.removeEventListener("scroll",xe)}),window.clearTimeout(se)}},[i,o,c,E,f,n,r,v,s,O,L,$,M,H,G,U,q]),F.useEffect(()=>{i.current.insideReactTree=!1},[i,E,f]);const pe=F.useMemo(()=>({onKeyDown:$,...m&&{[yO[h]]:se=>{r(!1,se.nativeEvent,"reference-press")},...h!=="click"&&{onClick(se){r(!1,se.nativeEvent,"reference-press")}}}}),[$,r,m,h]),ie=F.useMemo(()=>({onKeyDown:$,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[bO[f]]:()=>{i.current.insideReactTree=!0}}),[$,f,i]);return F.useMemo(()=>s?{reference:pe,floating:ie}:{},[s,pe,ie])}function xO(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=PA(),i=F.useRef({}),[s]=F.useState(()=>fO()),c=hO()!=null;if(process.env.NODE_ENV!=="production"){const w=r.reference;w&&!nn(w)&&uO("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,f]=F.useState(r.reference),m=Bc((w,C,A)=>{i.current.openEvent=w?C:void 0,s.emit("openchange",{open:w,event:C,reason:A,nested:c}),n==null||n(w,C,A)}),h=F.useMemo(()=>({setPositionReference:f}),[]),v=F.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return F.useMemo(()=>({dataRef:i,open:t,onOpenChange:m,elements:v,events:s,floatingId:o,refs:h}),[t,m,v,s,o,h])}function LA(e){e===void 0&&(e={});const{nodeId:t}=e,n=xO({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=F.useState(null),[c,u]=F.useState(null),m=(o==null?void 0:o.domReference)||i,h=F.useRef(null),v=IA();ll(()=>{m&&(h.current=m)},[m]);const w=J3({...e,elements:{...o,...c&&{reference:c}}}),C=F.useCallback(O=>{const L=nn(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;u(L),w.refs.setReference(L)},[w.refs]),A=F.useCallback(O=>{(nn(O)||O===null)&&(h.current=O,s(O)),(nn(w.refs.reference.current)||w.refs.reference.current===null||O!==null&&!nn(O))&&w.refs.setReference(O)},[w.refs]),x=F.useMemo(()=>({...w.refs,setReference:A,setPositionReference:C,domReference:h}),[w.refs,A,C]),E=F.useMemo(()=>({...w.elements,domReference:m}),[w.elements,m]),R=F.useMemo(()=>({...w,...r,refs:x,elements:E,nodeId:t}),[w,x,E,t,r]);return ll(()=>{r.dataRef.current.floatingContext=R;const O=v==null?void 0:v.nodesRef.current.find(L=>L.id===t);O&&(O.context=R)}),F.useMemo(()=>({...w,context:R,refs:x,elements:E}),[w,x,E,R])}function Ug(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Hx]:s,[Vx]:c,...u}=e;i=u}return{...n==="floating"&&{tabIndex:-1,[iO]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(u=>{let[f,m]=u;if(!(o&&[Hx,Vx].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof m=="function"){var h;(h=r.get(f))==null||h.push(m),s[f]=function(){for(var v,w=arguments.length,C=new Array(w),A=0;A<w;A++)C[A]=arguments[A];return(v=r.get(f))==null?void 0:v.map(x=>x(...C)).find(x=>x!==void 0)}}}else s[f]=m}),s),{})}}function DA(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=F.useCallback(c=>Ug(c,e,"reference"),t),i=F.useCallback(c=>Ug(c,e,"floating"),n),s=F.useCallback(c=>Ug(c,e,"item"),r);return F.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}/*!
|
|
696
|
+
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
697
|
+
* License - https://fontawesome.com/license (Commercial License)
|
|
698
|
+
* Copyright 2024 Fonticons, Inc.
|
|
699
|
+
*/const wO={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},SO=wO,CO={prefix:"fas",iconName:"square-exclamation",icon:[448,512,["exclamation-square"],"f321","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm160 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM192 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},AO={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},EO={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},kO={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},TO={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},_O={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},RO={normal:"rounded",pill:"rounded-pill"},PO={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},FA=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...c})=>{const u=Y.useMemo(()=>_O[t]??"text-white",[t]),f=Y.useMemo(()=>Gc(u,e==="outline"?TO[t]:kO[t],RO[n],PO[r]),[u,e,t,r,n]);return D.jsx("div",{className:Gc("ui-badge flex items-center font-bold",f,s),style:c==null?void 0:c.style,"data-testid":"badge","data-category":e,"data-color":t,...c,children:D.jsx("p",{className:Gc("mx-1",o),children:i})})},IO={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},OO=({transition:e,onClick:t})=>D.jsxs("div",{className:gt("py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",e.disabled&&"opacity-50 cursor-not-allowed hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[D.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),D.jsx(ot,{icon:AO,className:"text-gray-400 size-4"}),D.jsx(FA,{category:"outline",color:e.color,children:e.to})]}),MO=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,c]=Y.useState(!1),{refs:u,floatingStyles:f,context:m}=LA({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:c}),h=NA(m,{outsidePress:!0}),{getReferenceProps:v,getFloatingProps:w}=DA([h]);return D.jsxs(D.Fragment,{children:[D.jsxs("div",{onClick:n!=null&&n.length?()=>c(C=>!C):void 0,ref:u.setReference,className:gt("px-1 uppercase border rounded-sm inline-flex items-center space-x-1 flex-shrink-0 whitespace-nowrap",n.length?"cursor-pointer":"pointer-events-none",IO[t]),...v(),children:[r===Li.COMMENT&&D.jsx(ot,{icon:o?SO:CO,className:gt("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),D.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?D.jsx(ot,{icon:EO,className:"size-4"}):D.jsx(D.Fragment,{})]}),s&&n.length&&D.jsx("div",{ref:u.setFloating,style:f,className:gt("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...w(),children:n.map(C=>D.jsx(OO,{transition:C,onClick:()=>{i==null||i(C.id),c(!1)}},C.id))})]})},Xx=({description:e})=>{const t=Y.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${Zb}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${Zb}`),c=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return c==null||c.forEach(u=>{const f=u.getAttribute("src");f&&(new Image().src=f)}),o},[e]);return Y.useEffect(()=>{},[t]),D.jsx("div",{className:"flex flex-col gap-4",children:D.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},NO={SEQUENTIAL:"Sequential"},LO={[Zt.IN_REVIEW]:"In Review"},DO={[Zt.OPEN]:"bg-secondary-500",[Zt.IN_PROGRESS]:"bg-primary-600",[Zt.IN_REVIEW]:"bg-success-600",[Zt.COMPLETED]:"bg-success-600"},FO=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>D.jsx("div",{className:Jf("flex flex-col items-center justify-center",r?"bg-[#FFE600]":DO[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:D.jsx("span",{className:Jf("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===NO.SEQUENTIAL?`STEP ${n}`:(LO[t]||t).toUpperCase()})}),jO={[Zt.OPEN]:"secondary",[Zt.IN_PROGRESS]:"primary",[Zt.IN_REVIEW]:"success",[Zt.COMPLETED]:"success"},zO=({status:e})=>D.jsx(FA,{category:"outline",color:jO[e],children:e}),Yn={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
700
|
+
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
701
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
702
|
+
* Copyright 2024 Fonticons, Inc.
|
|
703
|
+
*/const BO={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},Jx=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var s,c;const o=n>0,i={[Yn.INFO]:{icon:lR,color:"text-primary-600 hover:text-primary-600"},[Yn.WARNING]:{icon:RR,color:"text-warning-600 hover:text-warning-600"},[Yn.DANGER]:{icon:qh,color:"text-danger-600 hover:text-danger-600"},[Yn.SUCCESS]:{icon:$C,color:"text-success-600 hover:text-success-600"}};return D.jsxs(Ht,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:t,className:gt("relative",(s=i[r])==null?void 0:s.color),title:"View comments",children:[D.jsx("div",{className:"relative flex items-center justify-center",children:o?D.jsxs(D.Fragment,{children:[D.jsx(ot,{icon:sR,size:"lg"}),D.jsx(ot,{icon:(c=i[r])==null?void 0:c.icon,className:"font-bold absolute left-1/2 -translate-x-1/2 top-0.5",size:"xs",color:"white"})]}):D.jsx(ot,{icon:BO,size:"lg"})}),o&&D.jsx("span",{className:"absolute top-0.5 -right-0 flex h-3 w-3 items-center justify-center rounded-full bg-primary-600 text-[10px] text-white",children:n})]})},UO=document.getElementById("lexical-root")??(()=>{const e=document.createElement("div");return e.id="lexical-root",e.style.position="relative",e.style.zIndex="2147483647",document.body.appendChild(e),e})(),jA="carousel",zA="controller",WO="navigation",$O="no-scroll",ky="portal",HO="root",BA="toolbar",qx="zoom",Wg="loading",$g="error",Hg="complete",VO="placeholder",KO=e=>`active-slide-${e}`,YO="fullsize",Ty="flex_center",GO="no_scroll",UA="no_scroll_padding",_y="slide",WA="slide_wrapper",QO="slide_wrapper_interactive",Vs="prev",Ks="next",ew="swipe",gu="close",$A="onPointerDown",HA="onPointerMove",VA="onPointerUp",KA="onPointerLeave",YA="onPointerCancel",Ry="onKeyDown",ZO="onKeyUp",Py="onWheel",XO="Escape",JO="ArrowLeft",qO="ArrowRight",e6="button",f0="icon",GA="contain",tw="cover",QA="Unknown action type",ZA="yarl__";function si(...e){return[...e].filter(Boolean).join(" ")}function bt(e){return`${ZA}${e}`}function Nr(e){return`--${ZA}${e}`}function Td(e,t){return`${e}${t?`_${t}`:""}`}function Iy(e){return t=>Td(e,t)}function vu(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function t6(e,t,n){return vu(e,"{index} of {total}").replace(/\{index}/g,`${Dy(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Oy(...e){return()=>{e.forEach(t=>{t()})}}function ea(e,t,n){return()=>{const r=F.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function My(){return typeof window<"u"}function Ny(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function _u(e){return e.type===void 0||e.type==="image"}function Ly(e,t){return e.imageFit===tw||e.imageFit!==GA&&t===tw}function im(e){return typeof e=="string"?Number.parseInt(e,10):e}function wh(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=im(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function n6(e,t){const n=wh(t),r=n.percent!==void 0?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function r6(){return(My()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Dy(e,t){return t>0?(e%t+t)%t:0}function XA(e){return e.length>0}function JA(e,t){return e[Dy(t,e.length)]}function d0(e,t){return XA(e)?JA(e,t):void 0}function o6(e){return _u(e)?e.src:void 0}function i6(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(c=>c===t),s=F.isValidElement(n)?F.cloneElement(n,{key:t},null):n;if(i>=0){const c=[...r];return c.splice(i,1,s),{buttons:c,...o}}return{buttons:[s,...r],...o}}function a6(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const s6=Number(F.version.split(".")[0])>=19;function l6(e){return{inert:s6?e:e?"":void 0}}function c6(e){e.scrollTop}const p0={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[gu]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:GA,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ts(e,t){return{name:e,component:t}}function Pn(e,t){return{module:e,children:t}}function qA(e,t,n){return e.module.name===t?n(e):e.children?[Pn(e.module,e.children.flatMap(r=>{var o;return(o=qA(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Dc(e,t,n){return e.flatMap(r=>{var o;return(o=qA(r,t,n))!==null&&o!==void 0?o:[]})}function u6(e,t=[],n=[]){let r=e;const o=w=>{const C=[...r];for(;C.length>0;){const A=C.pop();if((A==null?void 0:A.module.name)===w)return!0;A!=null&&A.children&&C.push(...A.children)}return!1},i=(w,C)=>{if(w===""){r=[Pn(C,r)];return}r=Dc(r,w,A=>[Pn(C,[A])])},s=(w,C)=>{r=Dc(r,w,A=>[Pn(A.module,[Pn(C,A.children)])])},c=(w,C,A)=>{r=Dc(r,w,x=>{var E;return[Pn(x.module,[...A?[Pn(C)]:[],...(E=x.children)!==null&&E!==void 0?E:[],...A?[]:[Pn(C)]])]})},u=(w,C,A)=>{r=Dc(r,w,x=>[...A?[Pn(C)]:[],x,...A?[]:[Pn(C)]])},f=w=>{s(zA,w)},m=(w,C)=>{r=Dc(r,w,A=>[Pn(C,A.children)])},h=w=>{r=Dc(r,w,C=>C.children)},v=w=>{n.push(w)};return t.forEach(w=>{w({contains:o,addParent:i,append:s,addChild:c,addSibling:u,addModule:f,replace:m,remove:h,augment:v})}),{config:r,augmentation:w=>n.reduce((C,A)=>A(C),w)}}const eE=F.createContext(null),tE=ea("useA11yContext","A11yContext",eE);function f6({children:e}){const[t,n]=F.useState(!1),[r,o]=F.useState(!1),i=F.useMemo(()=>({focusWithin:t,trackFocusWithin:(c,u)=>{const f=m=>h=>{var v;h.currentTarget.contains(h.relatedTarget)||n(m),(v=m?c:u)===null||v===void 0||v(h)};return{onFocus:f(!0),onBlur:f(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return F.createElement(eE.Provider,{value:i},e)}const nE=F.createContext(null),am=ea("useDocument","DocumentContext",nE);function d6({nodeRef:e,children:t}){const n=F.useMemo(()=>{const r=i=>{var s;return((s=i||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:i=>{var s;return((s=r(i))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return F.createElement(nE.Provider,{value:n},t)}const rE=F.createContext(null),sm=ea("useEvents","EventsContext",rE);function p6({children:e}){const[t]=F.useState({});F.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=F.useMemo(()=>{const r=(s,c)=>{var u;(u=t[s])===null||u===void 0||u.splice(0,t[s].length,...t[s].filter(f=>f!==c))};return{publish:(...[s,c])=>{var u;(u=t[s])===null||u===void 0||u.forEach(f=>f(c))},subscribe:(s,c)=>(t[s]||(t[s]=[]),t[s].push(c),()=>r(s,c)),unsubscribe:r}},[t]);return F.createElement(rE.Provider,{value:n},e)}const oE=F.createContext(null),ho=ea("useLightboxProps","LightboxPropsContext",oE);function h6({children:e,...t}){return F.createElement(oE.Provider,{value:t},e)}const iE=F.createContext(null),ns=ea("useLightboxState","LightboxStateContext",iE),aE=F.createContext(null),m6=ea("useLightboxDispatch","LightboxDispatchContext",aE);function g6(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Dy(o,n.length),s=d0(n,i),c=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:o,currentSlide:s,animation:c}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:d0(t.slides,t.index)}:e;default:throw new Error(QA)}}function v6({slides:e,index:t,children:n}){const[r,o]=F.useReducer(g6,{slides:e,currentIndex:t,globalIndex:t,currentSlide:d0(e,t)});F.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=F.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return F.createElement(aE.Provider,{value:o},F.createElement(iE.Provider,{value:i},n))}const sE=F.createContext(null),lm=ea("useTimeouts","TimeoutsContext",sE);function y6({children:e}){const[t]=F.useState([]);F.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=F.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(c=>c!==s))};return{setTimeout:(s,c)=>{const u=window.setTimeout(()=>{r(u),s()},c);return t.push(u),u},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return F.createElement(sE.Provider,{value:n},e)}const Fy=F.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...c},u){const{styles:f,labels:m}=ho(),h=vu(m,t);return F.createElement("button",{ref:u,type:"button",title:h,"aria-label":h,className:si(bt(e6),n),onClick:i,style:{...s,...f.button},...c},o?o():F.createElement(r,{className:bt(f0),style:f.icon}))});function b6(e,t){const n=r=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return n.displayName=e,n}function Ol(e,t){return b6(e,F.createElement("g",{fill:"currentColor"},F.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const x6=Ol("Close",F.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),w6=Ol("Previous",F.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),S6=Ol("Next",F.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),C6=Ol("Loading",F.createElement(F.Fragment,null,Array.from({length:8}).map((e,t,n)=>F.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),A6=Ol("Error",F.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),fi=My()?F.useLayoutEffect:F.useEffect;function jy(){const[e,t]=F.useState(!1);return F.useEffect(()=>{var n,r;const o=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");t(o==null?void 0:o.matches);const i=s=>t(s.matches);return(r=o==null?void 0:o.addEventListener)===null||r===void 0||r.call(o,"change",i),()=>{var s;return(s=o==null?void 0:o.removeEventListener)===null||s===void 0?void 0:s.call(o,"change",i)}},[]),e}function E6(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(im);s.length===6?(t=s[4],n=s[5]):s.length===16&&(t=s[12],n=s[13],r=s[14])}return{x:t,y:n,z:r}}function nw(e,t){const n=F.useRef(void 0),r=F.useRef(void 0),o=jy();return fi(()=>{var i,s,c;if(e.current&&n.current!==void 0&&!o){const{keyframes:u,duration:f,easing:m,onfinish:h}=t(n.current,e.current.getBoundingClientRect(),E6(e.current))||{};if(u&&f){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(c=(s=e.current).animate)===null||c===void 0?void 0:c.call(s,u,{duration:f,easing:m})}catch(v){console.error(v)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}n.current=void 0}),{prepareAnimation:i=>{n.current=i},isAnimationPlaying:()=>{var i;return((i=r.current)===null||i===void 0?void 0:i.playState)==="running"}}}function lE(){const e=F.useRef(null),t=F.useRef(void 0),[n,r]=F.useState();return{setContainerRef:F.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const c=window.getComputedStyle(i),u=f=>parseFloat(f)||0;r({width:Math.round(i.clientWidth-u(c.paddingLeft)-u(c.paddingRight)),height:Math.round(i.clientHeight-u(c.paddingTop)-u(c.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function qp(){const e=F.useRef(void 0),{setTimeout:t,clearTimeout:n}=lm();return F.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Lt(e){const t=F.useRef(e);return fi(()=>{t.current=e}),F.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function h0(e,t){return F.useMemo(()=>e==null&&t==null?null:n=>{rw(e,n),rw(t,n)},[e,t])}function k6(e,t=!1){const n=F.useRef(!1);fi(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=F.useCallback(()=>{n.current=!0},[]),o=F.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function zy(){const[e,t]=F.useState(!1);return fi(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function T6(){const[e]=F.useState({}),t=F.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(c=>{i.isPropagationStopped()||c(i)})},[e]),n=F.useMemo(()=>({onPointerDown:o=>t($A,o),onPointerMove:o=>t(HA,o),onPointerUp:o=>t(VA,o),onPointerLeave:o=>t(KA,o),onPointerCancel:o=>t(YA,o),onKeyDown:o=>t(Ry,o),onKeyUp:o=>t(ZO,o),onWheel:o=>t(Py,o)}),[t]),r=F.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(c=>c!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function ow(e,t){const n=F.useRef(0),r=qp(),o=Lt((...i)=>{n.current=Date.now(),e(i)});return F.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const Vg=Iy("slide"),Kg=Iy("slide_image");function Sh({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:c,onError:u,style:f}){var m,h,v,w,C,A,x,E;const[R,O]=F.useState(Wg),{publish:L}=sm(),{setTimeout:M}=lm(),U=F.useRef(null);F.useEffect(()=>{t===0&&L(KO(R))},[t,R,L]);const j=Lt(ue=>{("decode"in ue?ue.decode():Promise.resolve()).catch(()=>{}).then(()=>{ue.parentNode&&(O(Hg),M(()=>{c==null||c(ue)},0))})}),$=F.useCallback(ue=>{U.current=ue,ue!=null&&ue.complete&&j(ue)},[j]),H=F.useCallback(ue=>{j(ue.currentTarget)},[j]),G=Lt(()=>{O($g),u==null||u()}),q=Ly(e,o),pe=(ue,me)=>Number.isFinite(ue)?ue:me,ie=pe(Math.max(...((h=(m=e.srcSet)===null||m===void 0?void 0:m.map(ue=>ue.width))!==null&&h!==void 0?h:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((v=U.current)===null||v===void 0?void 0:v.naturalWidth)||0),se=pe(Math.max(...((C=(w=e.srcSet)===null||w===void 0?void 0:w.map(ue=>ue.height))!==null&&C!==void 0?C:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((A=U.current)===null||A===void 0?void 0:A.naturalHeight)||0),xe=ie&&se?{maxWidth:`min(${ie}px, 100%)`,maxHeight:`min(${se}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Ae=(x=e.srcSet)===null||x===void 0?void 0:x.sort((ue,me)=>ue.width-me.width).map(ue=>`${ue.src} ${ue.width}w`).join(", "),Re=()=>r&&!q&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,Q=Ae&&r&&My()?`${Math.round(Math.min(Re(),r.width))}px`:void 0,{style:Ee,className:ne,...re}=i||{};return F.createElement(F.Fragment,null,F.createElement("img",{ref:$,onLoad:H,onError:G,onClick:s,draggable:!1,className:si(bt(Kg()),q&&bt(Kg("cover")),R!==Hg&&bt(Kg("loading")),ne),style:{...xe,...f,...Ee},...re,alt:(E=e.alt)!==null&&E!==void 0?E:"",sizes:Q,srcSet:Ae,src:e.src}),R!==Hg&&F.createElement("div",{className:bt(Vg(VO))},R===Wg&&(n!=null&&n.iconLoading?n.iconLoading():F.createElement(C6,{className:si(bt(f0),bt(Vg(Wg)))})),R===$g&&(n!=null&&n.iconError?n.iconError():F.createElement(A6,{className:si(bt(f0),bt(Vg($g)))}))))}const _6=F.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const c=F.useRef(null),{trackFocusWithin:u}=tE();return F.createElement(d6,{nodeRef:c},F.createElement("div",{ref:h0(s,c),className:si(bt("root"),t),...u(r,o),...i},n))});var er;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(er||(er={}));function cE(e,t,n,r,o){F.useEffect(()=>o?()=>{}:Oy(e($A,t),e(HA,n),e(VA,r),e(KA,r),e(YA,r)),[e,t,n,r,o])}var _o;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(_o||(_o={}));const Yg=30;function R6({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,c,u,f,m,h,v,w,C,A,x){const E=F.useRef(0),R=F.useRef([]),O=F.useRef(void 0),L=F.useRef(0),M=F.useRef(_o.NONE),U=F.useCallback(ie=>{O.current===ie.pointerId&&(O.current=void 0,M.current=_o.NONE);const se=R.current;se.splice(0,se.length,...se.filter(xe=>xe.pointerId!==ie.pointerId))},[]),j=F.useCallback(ie=>{U(ie),ie.persist(),R.current.push(ie)},[U]),$=F.useCallback(ie=>R.current.find(({pointerId:se})=>ie.pointerId===se),[]),H=Lt(ie=>{j(ie)}),G=(ie,se)=>h&&ie>se||m&&ie<-se,q=Lt(ie=>{const se=$(ie);if(se)if(O.current===ie.pointerId){const xe=Date.now()-L.current,Ae=E.current;M.current===_o.SWIPE?Math.abs(Ae)>.3*o||Math.abs(Ae)>5&&xe<i?u(Ae,xe):f(Ae):M.current===_o.PULL&&(G(Ae,2*Yg)?C(Ae,xe):A(Ae)),E.current=0,M.current=_o.NONE}else{const{target:xe}=ie;t&&xe instanceof HTMLElement&&xe===se.target&&(xe.classList.contains(bt(_y))||xe.classList.contains(bt(WA)))&&x()}U(ie)}),pe=Lt(ie=>{const se=$(ie);if(se){const xe=O.current===ie.pointerId;if(ie.buttons===0){xe&&E.current!==0?q(ie):U(se);return}const Ae=ie.clientX-se.clientX,Re=ie.clientY-se.clientY;if(O.current===void 0){const Q=Ee=>{j(ie),O.current=ie.pointerId,L.current=Date.now(),M.current=Ee};Math.abs(Ae)>Math.abs(Re)&&Math.abs(Ae)>Yg&&r(Ae)?e||(Q(_o.SWIPE),s()):Math.abs(Re)>Math.abs(Ae)&&G(Re,Yg)&&(Q(_o.PULL),v())}else xe&&(M.current===_o.SWIPE?(E.current=Ae,c(Ae)):M.current===_o.PULL&&(E.current=Re,w(Re)))}});cE(n,H,pe,q)}function P6({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=F.useRef(null),r=Lt(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return F.useCallback(o=>{var i;o?o.addEventListener("wheel",r,{passive:!1}):(i=n.current)===null||i===void 0||i.removeEventListener("wheel",r),n.current=o},[r])}function I6(e,t,n,r,o,i,s,c,u){const f=F.useRef(0),m=F.useRef(0),h=F.useRef(void 0),v=F.useRef(void 0),w=F.useRef(0),C=F.useRef(void 0),A=F.useRef(0),{setTimeout:x,clearTimeout:E}=lm(),R=F.useCallback(()=>{h.current&&(E(h.current),h.current=void 0)},[E]),O=F.useCallback(()=>{v.current&&(E(v.current),v.current=void 0)},[E]),L=Lt(()=>{e!==er.SWIPE&&(f.current=0,A.current=0,R(),O())});F.useEffect(L,[e,L]);const M=Lt(j=>{v.current=void 0,f.current===j&&u(f.current)}),U=Lt(j=>{if(j.ctrlKey||Math.abs(j.deltaY)>Math.abs(j.deltaX))return;const $=H=>{w.current=H,E(C.current),C.current=H>0?x(()=>{w.current=0,C.current=void 0},300):void 0};if(e===er.NONE){if(Math.abs(j.deltaX)<=1.2*Math.abs(w.current)){$(j.deltaX);return}if(!n(-j.deltaX))return;if(m.current+=j.deltaX,R(),Math.abs(m.current)>30)m.current=0,$(0),A.current=Date.now(),i();else{const H=m.current;h.current=x(()=>{h.current=void 0,H===m.current&&(m.current=0)},o)}}else if(e===er.SWIPE){let H=f.current-j.deltaX;if(H=Math.min(Math.abs(H),r)*Math.sign(H),f.current=H,s(H),O(),Math.abs(H)>.2*r){$(j.deltaX),c(H,Date.now()-A.current);return}v.current=x(()=>M(H),2*o)}else $(j.deltaX)});F.useEffect(()=>t(Py,U),[t,U])}const iw=Iy("container"),uE=F.createContext(null),ta=ea("useController","ControllerContext",uE);function O6({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:c,render:u}=t,{closeOnPullUp:f,closeOnPullDown:m,preventDefaultWheelX:h,preventDefaultWheelY:v}=i,[w,C]=F.useState(),A=ns(),x=m6(),[E,R]=F.useState(er.NONE),O=F.useRef(0),L=F.useRef(0),M=F.useRef(1),{registerSensors:U,subscribeSensors:j}=T6(),{subscribe:$,publish:H}=sm(),G=qp(),q=qp(),pe=qp(),{containerRef:ie,setContainerRef:se,containerRect:xe}=lE(),Ae=h0(P6({preventDefaultWheelX:h,preventDefaultWheelY:v}),se),Re=F.useRef(null),Q=h0(Re,void 0),{getOwnerDocument:Ee}=am(),ne=zy(),re=Ne=>(ne?-1:1)*(typeof Ne=="number"?Ne:1),ue=Lt(()=>{var Ne;return(Ne=ie.current)===null||Ne===void 0?void 0:Ne.focus()}),me=Lt(()=>t),Te=Lt(()=>A),de=F.useCallback(Ne=>H(Vs,Ne),[H]),ve=F.useCallback(Ne=>H(Ks,Ne),[H]),_e=F.useCallback(()=>H(gu),[H]),je=Ne=>!(r.finite&&(re(Ne)>0&&A.currentIndex===0||re(Ne)<0&&A.currentIndex===A.slides.length-1)),ze=Ne=>{var nt;O.current=Ne,(nt=ie.current)===null||nt===void 0||nt.style.setProperty(Nr("swipe_offset"),`${Math.round(Ne)}px`)},Be=Ne=>{var nt,ct;L.current=Ne,M.current=(()=>{const Jt=m&&Ne>0?Ne:f&&Ne<0?-Ne:0;return Math.min(Math.max(Ny(1-Jt/60*(1-.5),2),.5),1)})(),(nt=ie.current)===null||nt===void 0||nt.style.setProperty(Nr("pull_offset"),`${Math.round(Ne)}px`),(ct=ie.current)===null||ct===void 0||ct.style.setProperty(Nr("pull_opacity"),`${M.current}`)},{prepareAnimation:Je}=nw(Re,(Ne,nt,ct)=>{if(Re.current&&xe)return{keyframes:[{transform:`translate(0, ${Ne.rect.y-nt.y+ct.y}px)`,opacity:Ne.opacity},{transform:"translate(0, 0)",opacity:1}],duration:Ne.duration,easing:o.easing.fade}}),ke=(Ne,nt)=>{if(f||m){Be(Ne);let ct=0;Re.current&&(ct=o.fade*(nt?2:1),Je({rect:Re.current.getBoundingClientRect(),opacity:M.current,duration:ct})),pe(()=>{Be(0),R(er.NONE)},ct),R(er.ANIMATION),nt||_e()}},{prepareAnimation:tt,isAnimationPlaying:xt}=nw(Re,(Ne,nt,ct)=>{var ut;if(Re.current&&xe&&(!((ut=A.animation)===null||ut===void 0)&&ut.duration)){const Dt=wh(r.spacing),Jt=(Dt.percent?Dt.percent*xe.width/100:Dt.pixel)||0;return{keyframes:[{transform:`translate(${re(A.globalIndex-Ne.index)*(xe.width+Jt)+Ne.rect.x-nt.x+ct.x}px, 0)`},{transform:"translate(0, 0)"}],duration:A.animation.duration,easing:A.animation.easing}}}),zt=Lt(Ne=>{var nt,ct;const ut=Ne.offset||0,Dt=ut?o.swipe:(nt=o.navigation)!==null&&nt!==void 0?nt:o.swipe,Jt=!ut&&!xt()?o.easing.navigation:o.easing.swipe;let{direction:Kt}=Ne;const wt=(ct=Ne.count)!==null&&ct!==void 0?ct:1;let Qn=er.ANIMATION,qt=Dt*wt;if(!Kt){const Sn=xe==null?void 0:xe.width,Cn=Ne.duration||0,Xn=Sn?Dt/Sn*Math.abs(ut):Dt;wt!==0?(Cn<Xn?qt=qt/Xn*Math.max(Cn,Xn/5):Sn&&(qt=Dt/Sn*(Sn-Math.abs(ut))),Kt=re(ut)>0?Vs:Ks):qt=Dt/2}let Zn=0;Kt===Vs?je(re(1))?Zn=-wt:(Qn=er.NONE,qt=Dt):Kt===Ks&&(je(re(-1))?Zn=wt:(Qn=er.NONE,qt=Dt)),qt=Math.round(qt),q(()=>{ze(0),R(er.NONE)},qt),Re.current&&tt({rect:Re.current.getBoundingClientRect(),index:A.globalIndex}),R(Qn),H(ew,{type:"swipe",increment:Zn,duration:qt,easing:Jt})});F.useEffect(()=>{var Ne,nt;!((Ne=A.animation)===null||Ne===void 0)&&Ne.increment&&(!((nt=A.animation)===null||nt===void 0)&&nt.duration)&&G(()=>x({type:"swipe",increment:0}),A.animation.duration)},[A.animation,x,G]);const xn=[j,je,(xe==null?void 0:xe.width)||0,o.swipe,()=>R(er.SWIPE),Ne=>ze(Ne),(Ne,nt)=>zt({offset:Ne,duration:nt,count:1}),Ne=>zt({offset:Ne,count:0})],kr=[()=>{m&&R(er.PULL)},Ne=>Be(Ne),Ne=>ke(Ne),Ne=>ke(Ne,!0)];R6(i,...xn,f,m,...kr,_e),I6(E,...xn);const Vt=Lt(()=>{i.focus&&Ee().querySelector(`.${bt(ky)} .${bt(iw())}`)&&ue()});F.useEffect(Vt,[Vt]);const un=Lt(()=>{var Ne;(Ne=s.view)===null||Ne===void 0||Ne.call(s,{index:A.currentIndex})});F.useEffect(un,[A.globalIndex,un]),F.useEffect(()=>Oy($(Vs,Ne=>zt({direction:Vs,...Ne})),$(Ks,Ne=>zt({direction:Ks,...Ne})),$(ew,Ne=>x(Ne))),[$,zt,x]);const wn=F.useMemo(()=>({prev:de,next:ve,close:_e,focus:ue,slideRect:xe?n6(xe,r.padding):{width:0,height:0},containerRect:xe||{width:0,height:0},subscribeSensors:j,containerRef:ie,setCarouselRef:Q,toolbarWidth:w,setToolbarWidth:C}),[de,ve,_e,ue,j,xe,ie,Q,w,C,r.padding]);return F.useImperativeHandle(i.ref,()=>({prev:de,next:ve,close:_e,focus:ue,getLightboxProps:me,getLightboxState:Te}),[de,ve,_e,ue,me,Te]),F.createElement("div",{ref:Ae,className:si(bt(iw()),bt(Ty)),style:{...E===er.SWIPE?{[Nr("swipe_offset")]:`${Math.round(O.current)}px`}:null,...E===er.PULL?{[Nr("pull_offset")]:`${Math.round(L.current)}px`,[Nr("pull_opacity")]:`${M.current}`}:null,...i.touchAction!=="none"?{[Nr("controller_touch_action")]:i.touchAction}:null,...c.container},tabIndex:-1,...U},xe&&F.createElement(uE.Provider,{value:wn},e,(n=u.controls)===null||n===void 0?void 0:n.call(u)))}const M6=ts(zA,O6);function Ws(e){return Td(jA,e)}function aw(e){return Td(_y,e)}function N6({slide:e,offset:t}){const n=F.useRef(null),{currentIndex:r,slides:o}=ns(),{slideRect:i,focus:s}=ta(),{render:c,carousel:{imageFit:u,imageProps:f},on:{click:m},styles:{slide:h},labels:v}=ho(),{getOwnerDocument:w}=am(),C=t!==0;F.useEffect(()=>{var x;C&&(!((x=n.current)===null||x===void 0)&&x.contains(w().activeElement))&&s()},[C,s,w]);const A=()=>{var x,E,R,O;let L=(x=c.slide)===null||x===void 0?void 0:x.call(c,{slide:e,offset:t,rect:i});return!L&&_u(e)&&(L=F.createElement(Sh,{slide:e,offset:t,render:c,rect:i,imageFit:u,imageProps:f,onClick:C?void 0:()=>m==null?void 0:m({index:r})})),L?F.createElement(F.Fragment,null,(E=c.slideHeader)===null||E===void 0?void 0:E.call(c,{slide:e}),((R=c.slideContainer)!==null&&R!==void 0?R:(({children:M})=>M))({slide:e,children:L}),(O=c.slideFooter)===null||O===void 0?void 0:O.call(c,{slide:e})):null};return F.createElement("div",{ref:n,className:si(bt(aw()),!C&&bt(aw("current")),bt(Ty)),...l6(C),style:h,role:"group","aria-roledescription":vu(v,"Slide"),"aria-label":t6(v,o,r+t)},A())}function L6(){const e=ho().styles.slide;return F.createElement("div",{className:bt(_y),style:e})}function D6({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=ns(),{setCarouselRef:i}=ta(),{autoPlaying:s,focusWithin:c}=tE(),u=wh(e.spacing),f=wh(e.padding),m=a6(e,n,1),h=[];if(XA(n))for(let v=r-m;v<=r+m;v+=1){const w=JA(n,v),C=o-r+v,A=e.finite&&(v<0||v>n.length-1);h.push(A?{key:C}:{key:[`${C}`,o6(w)].filter(Boolean).join("|"),offset:v-r,slide:w})}return F.createElement("div",{ref:i,className:si(bt(Ws()),h.length>0&&bt(Ws("with_slides"))),style:{[`${Nr(Ws("slides_count"))}`]:h.length,[`${Nr(Ws("spacing_px"))}`]:u.pixel||0,[`${Nr(Ws("spacing_percent"))}`]:u.percent||0,[`${Nr(Ws("padding_px"))}`]:f.pixel||0,[`${Nr(Ws("padding_percent"))}`]:f.percent||0},role:"region","aria-live":s&&!c?"off":"polite","aria-roledescription":vu(t,"Carousel"),"aria-label":vu(t,"Photo gallery")},h.map(({key:v,slide:w,offset:C})=>w?F.createElement(N6,{key:v,slide:w,offset:C}):F.createElement(L6,{key:v})))}const F6=ts(jA,D6);function fE(){const{carousel:e}=ho(),{slides:t,currentIndex:n}=ns(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function j6(e){var t;const n=zy(),{publish:r}=sm(),{animation:o}=ho(),{prevDisabled:i,nextDisabled:s}=fE(),c=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,u=ow(()=>r(Vs),c),f=ow(()=>r(Ks),c),m=Lt(h=>{switch(h.key){case XO:r(gu);break;case JO:(n?s:i)||(n?f:u)();break;case qO:(n?i:s)||(n?u:f)();break}});F.useEffect(()=>e(Ry,m),[e,m])}function sw({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return F.createElement(Fy,{label:e,icon:t,renderIcon:n,className:bt(`navigation_${r}`),disabled:i,onClick:o,style:s,...k6(ta().focus,i)})}function z6({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:c}=ta(),{prevDisabled:u,nextDisabled:f}=fE();return j6(c),F.createElement(F.Fragment,null,e?e():F.createElement(sw,{label:"Previous",action:Vs,icon:w6,renderIcon:n,style:o.navigationPrev,disabled:u,onClick:i}),t?t():F.createElement(sw,{label:"Next",action:Ks,icon:S6,renderIcon:r,style:o.navigationNext,disabled:f,onClick:s}))}const B6=ts(WO,z6),lw=bt(GO),U6=bt(UA);function W6(e){return"style"in e}function cw(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(im(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function $6({noScroll:{disabled:e},children:t}){const n=zy(),{getOwnerDocument:r,getOwnerWindow:o}=am();return F.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:c,documentElement:u}=r(),f=Math.round(s.innerWidth-u.clientWidth);if(f>0){i.push(cw(c,f,n));const m=c.getElementsByTagName("*");for(let h=0;h<m.length;h+=1){const v=m[h];W6(v)&&s.getComputedStyle(v).getPropertyValue("position")==="fixed"&&!v.classList.contains(U6)&&i.push(cw(v,f,n))}}return c.classList.add(lw),()=>{c.classList.remove(lw),i.forEach(m=>m())}},[n,e,r,o]),F.createElement(F.Fragment,null,t)}const H6=ts($O,$6);function uw(e){return Td(ky,e)}function fw(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function V6({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:c}){const[u,f]=F.useState(!1),[m,h]=F.useState(!1),v=F.useRef([]),w=F.useRef(null),{setTimeout:C}=lm(),{subscribe:A}=sm(),E=jy()?0:t.fade;F.useEffect(()=>(f(!0),()=>{f(!1),h(!1)}),[]);const R=Lt(()=>{v.current.forEach(U=>U()),v.current=[]}),O=Lt(()=>{var U;h(!1),R(),(U=o.exiting)===null||U===void 0||U.call(o),C(()=>{var j;(j=o.exited)===null||j===void 0||j.call(o),s()},E)});F.useEffect(()=>A(gu,O),[A,O]);const L=Lt(U=>{var j,$,H;c6(U),h(!0),(j=o.entering)===null||j===void 0||j.call(o);const G=(H=($=U.parentNode)===null||$===void 0?void 0:$.children)!==null&&H!==void 0?H:[];for(let q=0;q<G.length;q+=1){const pe=G[q];["TEMPLATE","SCRIPT","STYLE"].indexOf(pe.tagName)===-1&&pe!==U&&(v.current.push(fw(pe,"inert","")),v.current.push(fw(pe,"aria-hidden","true")))}v.current.push(()=>{var q,pe;(pe=(q=w.current)===null||q===void 0?void 0:q.focus)===null||pe===void 0||pe.call(q)}),C(()=>{var q;(q=o.entered)===null||q===void 0||q.call(o)},E)}),M=F.useCallback(U=>{U?L(U):R()},[L,R]);return u?ui.createPortal(F.createElement(_6,{ref:M,className:si(r,bt(uw()),bt(UA),m&&bt(uw("open"))),"aria-modal":!0,role:"dialog","aria-label":vu(c,"Lightbox"),style:{...t.fade!==p0.animation.fade?{[Nr("fade_animation_duration")]:`${E}ms`}:null,...t.easing.fade!==p0.animation.easing.fade?{[Nr("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:U=>{w.current||(w.current=U.relatedTarget)}},e),i.root||document.body):null}const K6=ts(ky,V6);function Y6({children:e}){return F.createElement(F.Fragment,null,e)}const G6=ts(HO,Y6);function Q6(e){return Td(BA,e)}function Z6({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ta(),{setContainerRef:s,containerRect:c}=lE();fi(()=>{i(c==null?void 0:c.width)},[i,c==null?void 0:c.width]);const u=()=>t?t():F.createElement(Fy,{key:gu,label:"Close",icon:x6,renderIcon:n,onClick:o});return F.createElement("div",{ref:s,style:r.toolbar,className:bt(Q6())},e==null?void 0:e.map(f=>f===gu?u():f))}const X6=ts(BA,Z6);function dE(e,t){var n;return F.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>dE(r,t)))}function J6(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function q6({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:c,slides:u,index:f,...m}){const{animation:h,carousel:v,render:w,toolbar:C,controller:A,noScroll:x,on:E,slides:R,index:O,plugins:L,...M}=p0,{config:U,augmentation:j}=u6([Pn(K6,[Pn(H6,[Pn(M6,[Pn(F6),Pn(X6),Pn(B6)])])])],c||L),$=j({animation:J6(h,t),carousel:{...v,...e},render:{...w,...n},toolbar:{...C,...r},controller:{...A,...o},noScroll:{...x,...i},on:{...E,...s},...M,...m});return $.open?F.createElement(h6,{...$},F.createElement(v6,{slides:u||R,index:im(f||O)},F.createElement(y6,null,F.createElement(p6,null,F.createElement(f6,null,dE(Pn(G6,U),$)))))):null}const eM={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function tM(e){return Math.min(Math.max(e,Number.EPSILON),1)}function pE(e){const{minZoom:t,...n}={...eM,...e};return{minZoom:tM(t),...n}}function nM(e,t,n,r){const o=F.useRef(void 0),i=F.useRef(void 0),{zoom:s}=ho().animation,c=jy(),u=Lt(()=>{var f,m,h;if((f=o.current)===null||f===void 0||f.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(h=(m=r.current).animate)===null||h===void 0?void 0:h.call(m,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(v){console.error(v)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return fi(u,[e,t,n,u]),F.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function rM(e,t){const{on:n}=ho(),r=Lt(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});F.useEffect(r,[e,r])}function cm(){const{zoom:e}=ho();return pE(e)}function oM(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=ns(),{imageFit:c}=ho().carousel,{maxZoomPixelRatio:u}=cm();if(e&&s){const m={...s,...t};if(_u(m)){const h=Ly(m,c),v=Math.max(...(((n=m.srcSet)===null||n===void 0?void 0:n.map(C=>C.width))||[]).concat(m.width?[m.width]:[])),w=Math.max(...(((r=m.srcSet)===null||r===void 0?void 0:r.map(C=>C.height))||[]).concat(m.height?[m.height]:[]));v>0&&w>0&&e.width>0&&e.height>0&&(i=h?{width:Math.round(Math.min(v,e.width/e.height*w)),height:Math.round(Math.min(w,e.height/e.width*v))}:{width:v,height:w},i={width:i.width*u,height:i.height*u},o=h?{width:Math.min(e.width,i.width,v),height:Math.min(e.height,i.height,w)}:{width:Math.round(Math.min(e.width,e.height/w*v,v)),height:Math.round(Math.min(e.height,e.width/v*w,w))})}}const f=o.width?Math.max(Ny(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:f}}function dw(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function pw(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function iM(e,t,n,r,o,i,s,c,u){const f=F.useRef([]),m=F.useRef(0),h=F.useRef(void 0),{globalIndex:v}=ns(),{getOwnerWindow:w}=am(),{containerRef:C,subscribeSensors:A}=ta(),{keyboardMoveDistance:x,zoomInMultiplier:E,wheelZoomDistanceFactor:R,scrollToZoom:O,doubleTapDelay:L,doubleClickDelay:M,doubleClickMaxStops:U,pinchZoomDistanceFactor:j,pinchZoomV4:$}=cm(),H=F.useCallback(Q=>{if(C.current){const{pageX:Ee,pageY:ne}=Q,{scrollX:re,scrollY:ue}=w(),{left:me,top:Te,width:de,height:ve}=C.current.getBoundingClientRect();return[Ee-me-re-de/2,ne-Te-ue-ve/2]}return[]},[C,w]),G=Lt(Q=>{const{key:Ee,metaKey:ne,ctrlKey:re}=Q,ue=ne||re,me=()=>{Q.preventDefault(),Q.stopPropagation()};if(e>1){const Te=(de,ve)=>{me(),c(de,ve)};Ee==="ArrowDown"?Te(0,x):Ee==="ArrowUp"?Te(0,-x):Ee==="ArrowLeft"?Te(-x,0):Ee==="ArrowRight"&&Te(x,0)}Ee==="+"||ue&&Ee==="="?(me(),o()):Ee==="-"||ue&&Ee==="_"?(me(),i()):ue&&Ee==="0"&&(me(),s(1))}),q=Lt(Q=>{if((Q.ctrlKey||O)&&Math.abs(Q.deltaY)>Math.abs(Q.deltaX)){Q.stopPropagation(),s(pw(e,-Q.deltaY,R),!0,...H(Q));return}e>1&&(Q.stopPropagation(),O||c(Q.deltaX,Q.deltaY))}),pe=F.useCallback(Q=>{const Ee=f.current;Ee.splice(0,Ee.length,...Ee.filter(ne=>ne.pointerId!==Q.pointerId))},[]),ie=F.useCallback(Q=>{pe(Q),Q.persist(),f.current.push(Q)},[pe]),se=Lt(Q=>{var Ee;const ne=f.current;if(Q.pointerType==="mouse"&&Q.buttons>1||!(!((Ee=u==null?void 0:u.current)===null||Ee===void 0)&&Ee.contains(Q.target)))return;e>1&&Q.stopPropagation();const{timeStamp:re}=Q;if(ne.length===0&&re-m.current<(Q.pointerType==="touch"?L:M)){m.current=0;const ue=e>=1?e!==n?e*Math.max(n**(1/U),E):1:e!==t?e/Math.max(t**(-1/U),E):1;s(ue,!1,...H(Q))}else m.current=re;if(ie(Q),ne.length===2){const ue=dw(ne[0],ne[1]);h.current={previousDistance:ue,initialDistance:Math.max(ue,1),initialZoom:e}}}),xe=Lt(Q=>{const Ee=f.current,ne=Ee.find(re=>re.pointerId===Q.pointerId);if(Ee.length===2&&h.current){Q.stopPropagation(),ie(Q);const re=dw(Ee[0],Ee[1]),ue=$?h.current.initialZoom/h.current.initialDistance*re:pw(e,re-h.current.previousDistance,j);s(ue,!0,...Ee.map(me=>H(me)).reduce((me,Te)=>Te.map((de,ve)=>me[ve]+de/2))),h.current.previousDistance=re;return}e>1&&(Q.stopPropagation(),ne&&(Ee.length===1&&c((ne.clientX-Q.clientX)/e,(ne.clientY-Q.clientY)/e),ie(Q)))}),Ae=F.useCallback(Q=>{const Ee=f.current;Ee.length===2&&Ee.find(ne=>ne.pointerId===Q.pointerId)&&(h.current=void 0),pe(Q)},[pe]),Re=F.useCallback(()=>{const Q=f.current;Q.splice(0,Q.length),m.current=0,h.current=void 0},[]);cE(A,se,xe,Ae,r),F.useEffect(Re,[v,Re]),F.useEffect(()=>r?()=>{}:Oy(Re,A(Ry,G),A(Py,q)),[r,A,Re,G,q])}function aM(e,t,n){const[r,o]=F.useState(1),[i,s]=F.useState(0),[c,u]=F.useState(0),f=nM(r,i,c,n),{currentSlide:m,globalIndex:h}=ns(),{containerRect:v,slideRect:w}=ta(),{minZoom:C,zoomInMultiplier:A}=cm(),x=m&&_u(m)?m.src:void 0,E=!x||!(n!=null&&n.current);fi(()=>{o(1),s(0),u(0)},[h,x]);const R=F.useCallback((j,$,H)=>{const G=H||r,q=i-(j||0),pe=c-($||0),ie=(e.width*G-w.width)/2/G,se=(e.height*G-w.height)/2/G;s(Math.min(Math.abs(q),Math.max(ie,0))*Math.sign(q)),u(Math.min(Math.abs(pe),Math.max(se,0))*Math.sign(pe))},[r,i,c,w,e.width,e.height]),O=F.useCallback((j,$,H,G)=>{const q=Ny(j+.01<t?j-.01>C?j:C:t,5);$||f(),R(H?H*(1/r-1/q):0,G?G*(1/r-1/q):0,q),o(q)},[r,C,t,R,f]),L=Lt(()=>{r>1&&(r>t&&O(t,!0),R())});fi(L,[v.width,v.height,L]);const M=F.useCallback(()=>{const j=r*A;O(r<1&&j>1?1:j)},[r,A,O]),U=F.useCallback(()=>{const j=r/A;O(r>1&&j<1?1:j)},[r,A,O]);return{zoom:r,offsetX:i,offsetY:c,disabled:E,changeOffsets:R,changeZoom:O,zoomIn:M,zoomOut:U}}const hE=F.createContext(null),By=ea("useZoom","ZoomControllerContext",hE);function sM({children:e}){const[t,n]=F.useState(),{slideRect:r}=ta(),{ref:o,minZoom:i}=cm(),{imageRect:s,maxZoom:c}=oM(r,t==null?void 0:t.imageDimensions),{zoom:u,offsetX:f,offsetY:m,disabled:h,changeZoom:v,changeOffsets:w,zoomIn:C,zoomOut:A}=aM(s,c,t==null?void 0:t.zoomWrapperRef);rM(u,h),iM(u,i,c,h,C,A,v,w,t==null?void 0:t.zoomWrapperRef);const x=F.useMemo(()=>({zoom:u,minZoom:i,maxZoom:c,offsetX:f,offsetY:m,disabled:h,zoomIn:C,zoomOut:A,changeZoom:v}),[u,i,c,f,m,h,C,A,v]);F.useImperativeHandle(o,()=>x,[x]);const E=F.useMemo(()=>({...x,setZoomWrapper:n}),[x,n]);return F.createElement(hE.Provider,{value:E},e)}const lM=Ol("ZoomIn",F.createElement(F.Fragment,null,F.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),F.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),cM=Ol("ZoomOut",F.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),hw=F.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=F.useRef(!1),i=F.useRef(!1),{zoom:s,minZoom:c,maxZoom:u,zoomIn:f,zoomOut:m,disabled:h}=By(),{render:v}=ho(),w=h||(t?s>=u:s<=c);return F.useEffect(()=>{w&&o.current&&i.current&&n(),w||(o.current=!0)},[w,n]),F.createElement(Fy,{ref:r,disabled:w,label:t?"Zoom in":"Zoom out",icon:t?lM:cM,renderIcon:t?v.iconZoomIn:v.iconZoomOut,onClick:t?f:m,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function uM(){const e=F.useRef(null),t=F.useRef(null),{focus:n}=ta(),r=F.useCallback(s=>{var c,u;!((c=s.current)===null||c===void 0)&&c.disabled?n():(u=s.current)===null||u===void 0||u.focus()},[n]),o=F.useCallback(()=>r(e),[r]),i=F.useCallback(()=>r(t),[r]);return F.createElement(F.Fragment,null,F.createElement(hw,{zoomIn:!0,ref:e,onLoseFocus:i}),F.createElement(hw,{ref:t,onLoseFocus:o}))}function fM(){const{render:e}=ho(),t=By();return e.buttonZoom?F.createElement(F.Fragment,null,e.buttonZoom(t)):F.createElement(uM,null)}function dM(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function pM({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(QA)}}function hM(e){var t,n;const[{current:r,preload:o},i]=F.useReducer(pM,{}),{slide:s,rect:c,imageFit:u,render:f,interactive:m}=e,h=s.srcSet.sort((M,U)=>M.width-U.width),v=(t=s.width)!==null&&t!==void 0?t:h[h.length-1].width,w=(n=s.height)!==null&&n!==void 0?n:h[h.length-1].height,C=Ly(s,u),A=Math.max(...h.map(M=>M.width)),x=Math.min((C?Math.max:Math.min)(c.width,v*(c.height/w)),A),E=r6(),R=Lt(()=>{var M;const U=(M=h.find(j=>j.width>=x*E))!==null&&M!==void 0?M:h[h.length-1];(!r||h.findIndex(j=>j.src===r)<h.findIndex(j=>j===U))&&i({type:"fetch",source:U.src})});fi(R,[c.width,c.height,E,R]);const O=Lt(M=>i({type:"done",source:M})),L={WebkitTransform:m?"initial":"translateZ(0)"};return C||Object.assign(L,c.width/c.height<v/w?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),F.createElement(F.Fragment,null,o&&o!==r&&F.createElement(Sh,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...L},onLoad:()=>O(o),render:{...f,iconLoading:()=>null,iconError:()=>null}}),r&&F.createElement(Sh,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:L}))}function mM({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=F.useState(),c=F.useRef(null),{zoom:u,maxZoom:f,offsetX:m,offsetY:h,setZoomWrapper:v}=By(),w=u>1,{carousel:C,on:A}=ho(),{currentIndex:x}=ns();fi(()=>n===0?(v({zoomWrapperRef:c,imageDimensions:i}),()=>v(void 0)):()=>{},[n,i,v]);let E=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:u,maxZoom:f});if(!E&&_u(t)){const R={slide:t,offset:n,rect:r,render:e,imageFit:C.imageFit,imageProps:C.imageProps,onClick:n===0?()=>{var O;return(O=A.click)===null||O===void 0?void 0:O.call(A,{index:x})}:void 0};E=dM(t)?F.createElement(hM,{...R,slide:t,interactive:w,rect:n===0?{width:r.width*u,height:r.height*u}:r}):F.createElement(Sh,{onLoad:O=>s({width:O.naturalWidth,height:O.naturalHeight}),...R})}return E?F.createElement("div",{ref:c,className:si(bt(YO),bt(Ty),bt(WA),w&&bt(QO)),style:n===0?{transform:`scale(${u}) translateX(${m}px) translateY(${h}px)`}:void 0},E):null}const gM=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const c=pE(n);return{zoom:c,toolbar:i6(r,qx,F.createElement(fM,null)),render:{...o,slide:u=>{var f;return _u(u.slide)?F.createElement(mM,{render:o,...u}):(f=o.slide)===null||f===void 0?void 0:f.call(o,u)}},controller:{...i,preventDefaultWheelY:c.scrollToZoom},...s}}),t(ts(qx,sM))},vM="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwMBAQEBAQEBAQEBAQICAQICAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA//CABEIAZABkAMBEQACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAAAQcGCAIDBQQK/9oACAEBAAAAAP29AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4dNV5jnPJLHuX1AAAAAAAp7Xb50ofbsraAAAAAABS2usgGz1qAAAAAAYjp7xEwTH0bme8AAAAADVqsgEoXNsYAAAAAHVov1AA9bdwAAAAAMX00kTAHXvN6AAAAAAw/T0ADhu964AAAAA87RznACYd29PMAAAAANOMUACbB2wAAAAABUGtiUCYRtZY4AAAAAOOpmBAlC0doQAAAAAHwaqYOAsjaL6AAAAAADrpOlfGmeGQXjcUgAAAAAA4YpjfLJ8okAAAAAAAAAAAAAAefUdfY/1Z9Z2a+jHl4RV+E9+R2JbP1gAAAAU9r18kB197p5iY9LZC0AAAAAoOiRJBMJQGxlzAAAAFZasyAAA5bb5yAAABx0vx8AACUZrt6AAABgGpcgATAJiNzcmAAABRNCQAAAGyVwAAAA1zpmYJgJgmBMF+3qAAADXCnBMEwmEwAX3e4AAANcKdgAACUL7vcAAAFB0SBMAAJjYy5gAAAY9pz8hMBMJhMJiY9Tcv0wAAAMZpbyISIkAHvXX7oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQQDAgX/2gAIAQIQAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB679vTxyzwAAAAAAO+uorzk4gAAAAAGjUKlTHxAAAAAA976IqWfP8gAAAAA2dwRYubKAAAAAD6SyksL5+cAAAAAHv6EsKio+dAAAAAB03WUEsX53kAAAAAX6JZZSD5oAAAAAN/SUEscsQAAAAAO+xLKQuHkAAAAABt7ADhjAAAAAAXb0spHLHAAAAAABo0e0vjNwAAAAAAAe/bx4AAAAAAAAAAAAAAC9+vq8uPOL17dJ548YAAAAB31epZSFQvnJxAAAADTpLCpUKi4+AAAAB22iKlhYsqMPMAAAB9D2lioqFErlhAAAA67kqWKlSpYV8/wAAAAA06VCWVKRUpj4AAAA16JSWUlhUFmbMAAADXolSyywWKlJmzAAAA16BFSyyiKlZcwAAANOmhFlhQIuTOAAAD19AsssKgqF8/PgAAAHvR6AAAeM/kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQMEAv/aAAgBAxAAAADiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZZ+b6960AAAAAAMsYsVvoAAAAAAZYVCo6NAAAAAAPPNCyyxeqgAAAAA587LFlS6bgAAAAA47LAFvUAAAAAHnlCossdgAAAAAeeUsFQddAAAAADjWLFip2AAAAAA5fIWWWNOgAAAAAGfOsFljp9gAAAAAc3iwomnQAAAAAAc3gBp0AAAAAABjlLF21AAAAAAAefL16AAAAAAAAAAAAAABlnHvT1U8ePD171AAAAAZ4IALLK30AAAADHFZRFgLG+oAAABnz0ikVKSk6fYAAADl81FIFCVPXUAAAB45lQFlgpLHV6AAABjjUsWVLFlRZdtQAAAY40gLLKQF12AAABhnFQqWURZTXYAAAGGSkBYssWU12AAABjjYsUSxUWU21AAABOVFiywqFlHVQAAAPOUAAAXagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//EAE4QAAIBAQMFCgcMBwgDAAAAAAECAwQABREGEiExURMWIjJAQWFxlNQUMEJQUnKBFSMzU2JzgpGSobGyICSTorPBwhA0Q1VkdJDwYGOj/9oACAEBAAE/Af8AgJrbxoruTPrKhIceIp4UkmHNHEuMj+wWrMtJDit30oUfHVZxbrEEZ0e1/Zae/r5qDi9fMnNm0+bTr/8AMBvvs1RUvjn1NS2PpVEx/F7JU1UZBSqqkI1FaiYfg9oMob5p+LXSSj0alUnH1sBJ+9aiy0GhLxpM3mM9ISy9bQOc8exm6rUtbS10e60k8c6c5RtKnY6nB426CAfNV+ZTrRs9Hd+bLVLiss54UNM3OgH+LULs4qnXstLLLUSNPPI80z8aWRs5zhqGPMo5gNA/Tp6moo5hPSzPBMPLQ8YejIpxSRDsYEWuPKSK8s2mqgsFdhoA+BqcNZhJOIfah07MebzPlLf5p8+7aF8KhlHhNQp00yMPgoyNVQ68/kKdpGHR4nVgQSCCGUqSGVhpDKw0qynUbZOX97op4JVMBXQpiG1CriGjdVHNKnlj2jRq8y33eYuuhkn0GZ/eaZD5U7g5pPyIwCx6BZmZmZ3Znd2Z3djizuxzmdjzlj4uGaWnljqIGzJoXWSJ9jDbtVhoI5xa7a+O8qKCsj0bovDTnilU5ssZ9Vx7Rp8y5V13hV5+Dq2MNAu5jZ4RIA8zdajNX2HxuR1cY6qe73bgVKmeEbJ4gBKF+ciwP0PMjusaPI3FRWdvVUYn7hZ5Wnkknc4tPJJM3XK5c/m8bQVHgldR1PNDUws3qFsyQfs3PmS+pDFdF4uNYo5x9pCn9Xjm4rdR/C1K5lpaaQ65IIXPW0asfx8x5QLnXLeQ/wBK5+zg38vHNxW9U/hagGbQ0S7KSmH1QoPMdXD4RS1MHx1PNF+0jZP52GOGnjDQesa/v8bHEZ5IoFGLTSxwgbd1dU/nZQFUKNAUADqGgeZL7o/Ab1rIcOA8nhMOzc6gmTAepJnL7PG5MUfhd7xOfg6NTVP6/wAHCPttj9HzLlddpqaVK+JcZqLO3XDW1I2mQ9O4sM7qx8ZjhpPNpNsmLtNBd4eVc2prCJ5QeMiYYQRHpSPSdjMfMpAIIIBBGBB0gg6wRzg2v65mumpzolPgFQx8HfSRC5xJpXPMV8jHjL0g+LyauQ1861tQv6lTvigYaKqdDoUY64YWHC5i2jb5nqaaCsgkpqmMSwyrmuh+sEEaVZTpBGkG183HUXRIWGdNQsfeqnDSmOqKpw0K45m4rdB0eJuPJ6a9CtRUB4Lv153FlqvkQ86xbX+ztEUUcEaQwoscUahERRgqqowAA80MqurI6q6MCrKwDKynQVZToIIteeR8bkzXXIsB1mkmzjAfmpBi8OOzhL1Wq6CtoDhWU0sGnDdGGdC2HozJnRn68ba9P9uOGs4Wo7rvC8CPBKWR1Jw3ZhuVOOuZ8FOHycTa7MkaenKzXi61kowIhAIpEI9JW4VR9LBfk2Aw0DQBoAHN5rIDAhgGB1gjEHrBtPcNz1JzpaCDO9KIGBuvGEx4mzZH3OdQqk9Wpb+sNZMkLnU6VqZOh6mTA/YzDanuS6aU50NBThvSdN1cdTS57C2r/wAZqaumo4zNVTxwRjypGC49CjWzdA02rMs6dCVoaaSoPxsx3CL6KYNMw6wtp8qr5lJzJoadT5MMCnD6c26nGxvq9213nV/RkC/lUW9172/zOu/bt/PRaiywrYcFrYUrE+MTCCf2jAwv9S2psqrnqNDztSt6NVGYx+0XPh/etFWUk/wNTTy4/FzRv+Vj/bLXUUAJmq6aLD4yeNfxa1TlZdEGIikkrG2U8ZzcfnZNzj+om1bldeFQClKkdDGfKHv1RgflsojQ9Snrt7rXt/mdd2h7LfV8LpF5Vej0nV/zo2NoMrL4iPvj09UuyWEIftwGPT7Dajyyo5cFroZKRtW6JjUQdZKqJU+yR02gnhqY1mp5Y5om1SROHU+1SdPmC+sqY6QvS3dmVFUMVkmPCp6c6iugjdphsGgc+y1RUT1cpnqpnnmPlyHHN6EXQsadCgD9PNXXgMerT9dgzrxZJV9WR1/BrFnbjPI3rSO34tbNUeSAduGn9OkrKqgl3ajneB/KzdMcnRLEeBIOvTa5cpYLxzaeqC01dqVcfeaj5hmJIfah07MeXZS5QtnPdt3yFc0lKypQ4EHU1NC3Mw8thq1DTjhoGrm5uR/jrBGIII1EEaQQbZN5QGqzbvr3xqgP1edtHhSKMcx+bwhAPpjTrx5ZlNe7XdSiCnfNrKvOVGB4UEI+Fn6G04J8o481v+/928lBZSrozI6MHR1ODI6nFXUjUynVa4L191aIPJm+FQHcqpRoBbWkqjmSZdPQcRzcqJABJOAAxJOgADWTa9K9ryr6irPEZsynU+TTx4iIdBbjHpbk+T9f7n3nCzHCCpwpajZhIRuUh+blw+iTyrKaqNLc9TmnB6jNpUI1jdzhJh0iENym5qs112UdSxxkeELKf/bETFKT0l0PKctpeBd0GOuSeZh82iRr/FPKcjJc67qiHnhrH+zLHHIP3seU5an9coF/005+uVB/LlORB97vIbJaY/XHIP6eU5a/3+h/2k38ZeU5EcW8/nKX8kvKctf79Q/7Sb+MvKciOLefzlL+SXlOW0DY3fVAcEbvTs2xnzZYwfWCNynIuBkoquoOqepzU2lYECE9W6MR7OU3pQJedDPSPwS4zopPipk4UUnsbXtGNp4JqWaSnqIzFPEc2RD9zKfKjcaVYaCOT0dHPeFTHSUy4yya2w4EMflTSnyUT7zoGm1HSxUVLBSQj3uCMIu1vSdvlOxJPSeVXldFFeiBaqPhqMI54zmTxeq+nFeg4r0WqMi61W/VaunmTm3dXgk6uAJUPXotvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZR9pfu9t6N9bKPtL93tvRvrZR9pfu9t6N87KLtL93tvRvrZRdpfu9t6N87KLtL93tvRvnZRdpfu9t6N87KPtL93tvRvrZRdpfu9t6N87KLtL93tTZF1LNjWVkUaaODTK0kjbRnyqip9lrUF3Ud2xbjSRCMNgZHJLSysBhnSSHhMfuHN/waf/EACsQAQABAgUCBgMBAQEBAAAAAAERACEQMUFR8GFxgZGhscHhUNHxQCCQYP/aAAgBAQABPxD/AMCTpIspVmBbNmQNUpmX6EyIsPHOXjUhB75CPV/ut60wl7lVZ1VWaug0Xy+YilNTICUENIp4CkLAmCIyIJTnM2oVn8AlU7cHkj8Vb+4plwDEy+1TRrHTWaLqFj2EFYCuFTXvRradWu/btT/aiGKArDMUmLsKSlOmIJlaGEqQXQn8Qn0MRUiFJSl0xLygAAIAsbds5XDn8rtWX6/dc8Yx4UKkPCoy4EBBES1WnATEBQILKO1y8T8NDstokBcM7o4ZlKTe95eVSqqtbV9V+65yNq1237eu9eFba4W7e/SMEsnhq2wyllWVHOixiw6KbW5YCxYyJ+FZYgkMpVforuVy1b88q5zOudcM+bYX52Kt/fnDrn6dMLyCqqAYmBlPwhmYeC6LcLZUMoVTdZ2c7MKGs/n5w5zvh3+/1XOThbmvW1c5NdnkemDSyQRaTzuofwjDwBXS+HUydaCACxEW2iK9tK967Rr9da5fp71zKPnCc+vxXLauHdwyM86nasjCaIoTZGnDlq3UPF/BkAnZbSPSg2+a2+OlfON6a52w3w/UVzSrU0ly6pjyp1Jlmc5Qnrb8Ha8YkYhQJmxepALQhyS0UdQJhaueFeOG3Jivhwi086+9Gfrf0mK5/MGoBVmoUi9RVhXsIHgH4RgYMsJmwZiUb4c8Z86y2krzwvz5rwrxw57107en6pgl1NxMuElbtX4VSZYCrhABYTpr9pzMnav3zwrnn9Vn9edc3w5zthl27e1c0y/tXzy/dIDAAU6F1e1J3L8lndWEQQIDl+FRM4YAQhIBhHOnjSRXAQVAK8hEuK15512rk+PrXtauc8K5wrnPKuR7UiOPnRoLDCskXhH8Mwi0jCSIAVFgQiINRlfFC7gZFmIQYcw8ywnv1+K5H6x229qtrprl1ntQkg6sVvku6c5SZoCwu4sHWAD8QfIZ5qIr6EREpXDlBKJi8zWSNo09LSHuUjsQuyoQAROiIztGEWy5Ns6QFAbqAeLW3LwiSoQjToiafg6+FI3EIZPUUAAAAAACAAsAfizilAwHMAiNMQ0MpC6luoy0moSzCQ6EmDqtBE4ZQug5TslZBfiZC8rZ1EaAAAAAAEAFgAsAf/MyMOtxZzGdoCtChjqQdMNlGRRh9Sz49Jfqt2qaSzK+ghQoFG4I51y5JJHRkaOElumyQRDbu0EI8F5HaYJ6JoATcl/7YTK7YKJH5pMi8Qatss6OAow+xo2VdaB6xSYjIYum1BpqrlHzSotISC6SA8VFmEBPYakB1IdKmlaXAtcFp3JQaKzaKFIgE3G5r+AkomRlzmIc2nzyNUsat6CrGBtCG1dWvv2bYTXLX4YSPZkEO2ajoENBs9AqIg/YLyYmhkmqAC7sS4+Xf9tfX9rP53jhhMIWxQDfe1Q0RvTKmYKHhZACLlOozH+0C0SoSQN2WvM8SUAAAFgLQGkGVc3w38q2rpFejU74bZ8+sLX48vXPP+V5Zc7VpOEVztFeW33WaMoEQQpWAyRIRyo+VYjJBLZPK2h0Jf64nACoEBCUYM21EygAAm2sqzmqt0rKt1w5zejn78Ky9vCo+uNda5yK5414kbZVzw74+dcgrTDnL1zrhz907EFRkzSSKMmpUAhJAwXI4mQh/qAmWQAEobABdpkm+hvhCUCpGtjzvXPn2qdf+M+czp9utadtviuda126ciufz/nk+tGlcv71zt+6efQRYBUwtOlzN3/qfHe4i4XUA2iaICCwWA0NIrLOudMPnnrTzv8AVcjnavTL1rnNa2w5ztjznStuedc52rjhE1H9vatWt8qSRJSSJG5OSJkmnWrtoIldoBJ4/wCmIG624gTJvF2o9518K8PvD7qPbDn7r6ijhr9Vz+43w5rhNdeccY74bca5wqelVCWxGhoT/wBN3SHjaJ/a3nOua1/OmF9NdvWta7u9tcf38VffLU7VznnWWXHP0r68a3j7rfkca512rf5rz+q8PHpllW/POnar10H4ox/rEbc9a729PSuc8688PPx+ay0ry564etePjhGHDvWXNa5H7w/nO9cmveuc64X/AOrdjzzw/f7xy8/5715cKyvp6fyu3GP3hx5tWdPLfOJpWnxXPciuvPKutd3bm9eujG1Z/v8A197gNprEYbQfUrhzvUZVpzTH2r1z7Vz+Y/NbWttNPNfCufzDrz6rn8r+Y855V00rryfPAgQO8Oiziwuq/wBLxA6iVUCywYAuo1pI+w2zsQawCkw5naunj2rpWm9dfrD+71z62ip235OlTXhzeufVTzX7mnnn8V5861vq+/fvh0328Yz61fKp4VpTwmSyRoGCCdbxTIKVAMzmF9w8tU/1JxXXYGUICOZs3ZXpFq8BOp7deHEsU8y/4xYsU4X54CnCvbEUOfJ9KkE/98bFGjR4WlSQFJZYN9TFFR9SLJzN018ClayhBQVRCwWkQBb/AMNP/8QAMREAAQICBwcEAgIDAAAAAAAAAQIDABEQEhMhMDFhBCAyQFBRcUFCUoEikZCxM2Ch/9oACAECAQE/AP4CUpUrhEJ2ce5UBpA9sBIGQiqn4iC0g+39QrZ/iYUkpMlDpTbNb8lZQAAJASG+UhQIIuhxoovF6ekNNT/NWW7nvOt1DWHD0ZtFdQHpEpZDDIBEjlC0lCik9FYTVRP1NP3geKH0zAWPTogvMoAkAMHSJUrFZKhp0RsTWga46rlEa9Da/wAifOJ2pVxK89DSZKB1wvXcJkCeitqrIB9cGe48qSCPU9FYXIlJyP8AdPnCeXWVdkOjNOVxfxYbzlUVRxHo4JSQQb4bcCxL3dt+6hx0IuF6oJJMyb+kZZQh8i5f7hKkqvSZ0ihTiU5mFvk3JEh/3pocWMlGLdzSLdzSC4s5qP8ArQSVGQEzCdnJ4jKAy2JTE4s2/iIs0fAQphJmUmUFlY9JwUqGaTSEqOSTAYWcxKEsJGZmYs0fAQW0fAQWEeIUwocJnBBBkRf0BtkqvVlASEiQF29fRIdokO27fSpIUJEQ40UXpvTzzLWS1fXJeKP6h1qr+SeHnGUV1TPCML6xCJw6ioq7h5tCaiQOXdTWQe45plNZwaUnDvw3E1VqGvM7OL1GjXAz357n3ubQPzB05nZ+FXmjxjecHaM08zs/Crzi/eJtHs5nZ+FXnkO5wdozRzOzniGF274+0GakjTmUKqKCoBCgCDdRLlVKCBM5QolRJPNIWpBuMJ2hPuBi3b1i3b1i3b7mLdvWLdvWLdvWLdvuYt29Yt2+5i3b1i3b1i3b1i3b1i3b1i3b7mLdvuYt29Yt29Yt2+5/UW7fcwdoHtF8KUpZmo/waf/EADIRAAECAwYFAwMEAwEAAAAAAAEAAhARMQMgIUFhcRITUFGBMkCxQlLwIpCRoTBgYnL/2gAIAQMBAT8A/YJLmtqUbUn0hcbzVyxzcpnuUHvH1IWv3BAg4g9KfaSwbVVMyvCwjhAEtIIMimWgdgcHdItHy/S2qpkso5XO6Ks38QkfV0Z7uFpOa3qtV5xhRfMN4+FMgzFU13EAei2hm6WQhouyzjip94y7QsnYkZHosySSqqtLku4hj4WirDVAyc0zz6I/BrtlkIYxEKx3MOyKFB0N/odsgtoUhNVXfupCHlZw84JtBt0MiYIQ/uPeanASyhO6MZDPorxJxwvFYrwvNxgm4adFtWzHEKi7RYXcYWbeFuNT0Z7eA/8AK2W0PC8r4UlRYrVWbeI8RoOjkAiRonNLP/Nz4uYJrC/E+lASwFOkuss2lFpHqaqw0gGud6Qm2QHqx6aWMNWrlM1XKZqgxoo3/WiQKlG1H0iaNo/uAuJ/3FcT/uKFqRPixCFow5yUwaGJcBUo2rBTFG1caYBcTvuK43/cULV1ckLUGokgQcQegPtJYNqjMmZMzDFbQptDBY+ISVFnCUQS0zacUy0DsDg731o+rWrZbI/0vm53WBJhisIaw7qVyzfP9Lq+8tHcIkPUbsrud4w8LuprJVpVMdxN192TxEuWUDc1W0ahb0ub3dIWbi1wJofdWhkwyqgskY6Ka8XMIaIXJow+YZJhm0H3NsfSIUyu+V8Lz/gBj5UoZQsjgRr7m1q27NTzRqtL1LlY63LH6vc2tW7KizhotLtZxyxhvHDuq3NIWP1e5tfU3aHiG1zutoZx1WynhDNTj4jZfV7m2HpNzNfN/S/8QncsRgT7lzeJpCxEwaxwu94z/lbLWO6l/KrDRYLugCTwtCAAAAp7pzGuqjYnIhcp+i5TspLlP0XKfp+eFyn6LlO0/PC5T9PzwuU/Rcp+i5T9Fynafnhcp+FPzwuU/Rcp2i5T8KLlO0XKdKWC5T9Fy36LlPPZCyOZ/hNaGiQH7Gn/2Q==",yM=({src:e,alt:t,size:n=40})=>D.jsx("img",{src:e||vM,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),bM=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},m0=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=Y.useState(!1),{refs:c,floatingStyles:u,context:f}=LA({strategy:"fixed",placement:e,open:i,onOpenChange:s}),m=NA(f,{outsidePress:!0}),{getReferenceProps:h,getFloatingProps:v}=DA([m]),w=Y.Children.map(t,C=>{if(!Y.isValidElement(C))return C;const A=C.props;return Y.cloneElement(C,{onClick:bM(A.onClick,()=>s(!1))})});return D.jsxs(D.Fragment,{children:[Y.cloneElement(n,{ref:c.setReference,...h(),onClick:()=>s(C=>!C),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&D.jsx(gO,{children:D.jsx("div",{ref:c.setFloating,style:{...u,minWidth:o},className:gt("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...v(),children:w})})]})},xM=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>D.jsxs(m0,{trigger:D.jsx(Ht,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:D.jsx(ot,{icon:kR})}),children:[D.jsxs("ul",{className:"py-2 m-0",children:[D.jsx("li",{children:D.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&D.jsx("li",{children:D.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),D.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:kk.map(s=>D.jsx("li",{children:D.jsx(Ht,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:gt(s.color,e===s.type?s.color:"text-gray-400"),children:D.jsx(ot,{icon:s.icon,size:"lg"})})},s.type))})]}),mE=Y.createContext(null);function wM(e,t){return{getTheme:function(){return t??null}}}function ir(){const e=Y.useContext(mE);return e==null&&(function(t,...n){const r=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of n)o.append("v",i);throw r.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),e}function be(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function gE(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const jo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,SM=jo&&"documentMode"in document?document.documentMode:null,Oo=jo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xl=jo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ch=!(!jo||!("InputEvent"in window)||SM)&&"getTargetRanges"in new window.InputEvent("input"),_d=jo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ru=jo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,CM=jo&&/Android/.test(navigator.userAgent),vE=jo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),mw=jo&&CM&&vE,Rd=jo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Oo&&!vE;function yE(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}const AM=0,EM=1,kM=2,bE=128,TM=1,_M=2,RM=3,PM=4,IM=5,OM=6,um=_d||Ru||Rd?" ":"",Ja=`
|
|
704
|
+
|
|
705
|
+
`,MM=xl?" ":um,wl={bold:1,capitalize:1024,code:16,highlight:bE,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},NM={directionless:1,unmergeable:2},gw={center:2,end:6,justify:4,left:1,right:3,start:5},LM={[_M]:"center",[OM]:"end",[PM]:"justify",[TM]:"left",[RM]:"right",[IM]:"start"},DM={normal:0,segmented:2,token:1},FM={[AM]:"normal",[kM]:"segmented",[EM]:"token"},vw="$config";function xE(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const c=s.__key;s.__parent===t&&(ae(s)&&xE(s,c,n,r,o,i),n.has(c)||i.delete(c),o.push(c)),s=s.getNextSibling()}}let g0=!1,Uy=0;function jM(e){Uy=e.timeStamp}function Gg(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&ym(e,n)!==void 0}function zM(e,t,n){const r=go(mo(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&ib(t,s,o,i,!1)}function BM(e,t,n){if(ge(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return na(t)&&n.isAttached()}function UM(e,t,n,r){for(let o=e;o&&!YN(o);o=Nd(o)){const i=ym(o,t);if(i!==void 0){const s=bn(i,n);if(s)return Et(s)||!Gn(o)?void 0:[o,s]}else if(o===r)return[r,T2(n)]}}function wE(e,t,n){g0=!0;const r=performance.now()-Uy>100;try{li(e,()=>{const o=Ie()||(function(v){return v.getEditorState().read(()=>{const w=Ie();return w!==null?w.clone():null})})(e),i=new Map,s=e.getRootElement(),c=e._editorState,u=e._blockCursorElement;let f=!1,m="";for(let v=0;v<t.length;v++){const w=t[v],C=w.type,A=w.target,x=UM(A,e,c,s);if(!x)continue;const[E,R]=x;if(C==="characterData")r&&Oe(R)&&na(A)&&BM(o,A,R)&&zM(A,R,e);else if(C==="childList"){f=!0;const O=w.addedNodes;for(let U=0;U<O.length;U++){const j=O[U],$=E2(j),H=j.parentNode;if(H!=null&&j!==u&&$===null&&!Gg(j,H,e)){if(xl){const G=(Gn(j)?j.innerText:null)||j.nodeValue;G&&(m+=G)}H.removeChild(j)}}const L=w.removedNodes,M=L.length;if(M>0){let U=0;for(let j=0;j<M;j++){const $=L[j];(Gg($,A,e)||u===$)&&(A.appendChild($),U++)}M!==U&&i.set(E,R)}}}if(i.size>0)for(const[v,w]of i)w.reconcileObservedMutation(v,e);const h=n.takeRecords();if(h.length>0){for(let v=0;v<h.length;v++){const w=h[v],C=w.addedNodes,A=w.target;for(let x=0;x<C.length;x++){const E=C[x],R=E.parentNode;R==null||E.nodeName!=="BR"||Gg(E,A,e)||R.removeChild(E)}}n.takeRecords()}o!==null&&(f&&Cr(o),xl&&I2(e)&&o.insertRawText(m))})}finally{g0=!1}}function SE(e){const t=e._observer;t!==null&&wE(e,t.takeRecords(),t)}function CE(e){(function(t){Uy===0&&mo(t).addEventListener("textInput",jM,!0)})(e),e._observer=new MutationObserver((t,n)=>{wE(e,t,n)})}function WM(e){const t=new Map,n=new Set;for(let r=typeof e=="function"?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:o}=xm(r);if(o&&o.stateConfigs)for(const i of o.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,t.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:t}}let $M=class AE{constructor(t,n,r=void 0,o=new Map,i=void 0){ce(this,"node");ce(this,"knownState");ce(this,"unknownState");ce(this,"sharedNodeState");ce(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,c=i!==void 0?i:(function(u,f,m){let h=m.size;if(f)for(const v in f){const w=u.get(v);w&&m.has(w)||h++}return h})(s,r,o);this.size=c}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const o=this.unknownState[t.key];o!==void 0&&(r=t.parse(o)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return yw(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new AE(t,n,(function(i,s,c){let u;if(c)for(const[f,m]of Object.entries(c)){const h=i.get(f);h?s.has(h)||s.set(h,h.parse(m)):(u=u||{},u[f]=m)}return u})(n.sharedConfigMap,o,r),o,this.size)}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:o,unknownState:i}=this;o.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=yw(i)),this.size++),o.set(t,n)}updateFromUnknown(t,n){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,o]of Object.entries(t))this.updateFromUnknown(r,o)}};function HM(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new $M(t,EE(t));return t.__state=n,n}function EE(e){return e.__state?e.__state.sharedNodeState:x2(lb(),e.getType()).sharedNodeState}function yw(e){if(e)for(const t in e)return e}function bw(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const i=n?n.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function xw(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!e.has(i)&&(e.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function ww(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Sw(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,c=t.__style,u=e.__state,f=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===c)&&(e.__state===null||u===f||(function(m,h){if(m===h)return!0;if(m&&h&&m.size!==h.size)return!1;const v=new Set;return!(m&&bw(v,m,h)||h&&bw(v,h,m)||m&&xw(v,m,h)||h&&xw(v,h,m))})(u,f))}function Cw(e,t){const n=e.mergeWithSibling(t),r=jt()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Aw(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Oe(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Sw(t,r)){r=Cw(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Oe(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Sw(r,n)){r=Cw(r,n);break}break}n.remove()}}else r.remove()}function yu(e){return Ew(e.anchor),Ew(e.focus),e}function Ew(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Oe(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ae(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Sl,nr,ad,fm,v0,y0,Cl,Mo,b0,sd,yn="",Xo=null,Hs=null,Fi="",Uc=!1,Ah=!1;function Eh(e,t){const n=Cl.get(e);if(t!==null){const r=C0(e);r.parentNode===t&&t.removeChild(r)}if(Mo.has(e)||nr._keyToDOMMap.delete(e),ae(n)){const r=Th(n,Cl);x0(r,0,r.length-1,null)}n!==void 0&&ab(sd,ad,fm,n,"destroyed")}function x0(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&Eh(i,r)}}function $s(e,t){e.setProperty("text-align",t)}const VM="40px";function kE(e,t){const n=Sl.theme.indent;if(typeof n=="string"){const o=e.classList.contains(n);t>0&&!o?e.classList.add(n):t<1&&o&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||VM;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function TE(e,t){const n=e.style;t===0?$s(n,""):t===1?$s(n,"left"):t===2?$s(n,"center"):t===3?$s(n,"right"):t===4?$s(n,"justify"):t===5?$s(n,"start"):t===6&&$s(n,"end")}function w0(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(cn(r))return null;const i=r.getParentOrThrow();return cn(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function kh(e,t){const n=Mo.get(e);n===void 0&&be(60);const r=n.createDOM(Sl,nr);if((function(o,i,s){const c=s._keyToDOMMap;(function(u,f,m){const h=`__lexicalKey_${f._key}`;u[h]=m})(i,s,o),c.set(o,i)})(e,r,nr),Oe(n)?r.setAttribute("data-lexical-text","true"):Et(n)&&r.setAttribute("data-lexical-decorator","true"),ae(n)){const o=n.__indent,i=n.__size;if(w0(r,n),o!==0&&kE(r,o),i!==0){const c=i-1;S0(Th(n,Mo),n,0,c,n.getDOMSlot(r))}const s=n.__format;s!==0&&TE(r,s),n.isInline()||_E(null,n,r),bm(n)&&(yn+=Ja,Fi+=Ja)}else{const o=n.getTextContent();if(Et(n)){const i=n.decorate(nr,Sl);i!==null&&RE(e,i),r.contentEditable="false"}yn+=o,Fi+=o}return t!==null&&t.insertChild(r),ab(sd,ad,fm,n,"created"),r}function S0(e,t,n,r,o){const i=yn;yn="";let s=n;for(;s<=r;++s){kh(e[s],o);const c=Mo.get(e[s]);c!==null&&Oe(c)&&Xo===null&&(Xo=c.getFormat(),Hs=c.getStyle())}bm(t)&&(yn+=Ja),o.element.__lexicalTextContent=yn,yn=i+yn}function kw(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return fl(r)?"line-break":Et(r)&&r.isInline()?"decorator":null}return"empty"}return null}function _E(e,t,n){const r=kw(e,Cl),o=kw(t,Mo);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function KM(e,t,n){var r;Xo=null,Hs=null,(function(o,i,s){const c=yn,u=o.__size,f=i.__size;yn="";const m=s.element;if(u===1&&f===1){const h=o.__first,v=i.__first;if(h===v)Uf(h,m);else{const C=C0(h),A=kh(v,null);try{m.replaceChild(A,C)}catch(x){if(typeof x=="object"&&x!=null){const E=`${x.toString()} Parent: ${m.tagName}, new child: {tag: ${A.tagName} key: ${v}}, old child: {tag: ${C.tagName}, key: ${h}}.`;throw new Error(E)}throw x}Eh(h,null)}const w=Mo.get(v);Oe(w)&&Xo===null&&(Xo=w.getFormat(),Hs=w.getStyle())}else{const h=Th(o,Cl),v=Th(i,Mo);if(h.length!==u&&be(227),v.length!==f&&be(228),u===0)f!==0&&S0(v,i,0,f-1,s);else if(f===0){if(u!==0){const w=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;x0(h,0,u-1,w?null:m),w&&(m.textContent="")}}else(function(w,C,A,x,E,R){const O=x-1,L=E-1;let M,U,j=R.getFirstChild(),$=0,H=0;for(;$<=O&&H<=L;){const pe=C[$],ie=A[H];if(pe===ie)j=Qg(Uf(ie,R.element)),$++,H++;else{M===void 0&&(M=new Set(C)),U===void 0&&(U=new Set(A));const xe=U.has(pe),Ae=M.has(ie);if(xe)if(Ae){const Re=kl(nr,ie);Re===j?j=Qg(Uf(ie,R.element)):(R.withBefore(j).insertChild(Re),Uf(ie,R.element)),$++,H++}else kh(ie,R.withBefore(j)),H++;else j=Qg(C0(pe)),Eh(pe,R.element),$++}const se=Mo.get(ie);se!==null&&Oe(se)&&Xo===null&&(Xo=se.getFormat(),Hs=se.getStyle())}const G=$>O,q=H>L;if(G&&!q){const pe=A[L+1],ie=pe===void 0?null:nr.getElementByKey(pe);S0(A,w,H,L,R.withBefore(ie))}else q&&!G&&x0(C,$,O,R.element)})(i,h,v,u,f,s)}bm(i)&&(yn+=Ja),m.__lexicalTextContent=yn,yn=c+yn})(e,t,t.getDOMSlot(n)),r=t,Xo==null||Xo===r.__textFormat||Ah||r.setTextFormat(Xo),(function(o){Hs==null||Hs===o.__textStyle||Ah||o.setTextStyle(Hs)})(t)}function Th(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&be(101),n.push(r),r=o.__next}return n}function Uf(e,t){const n=Cl.get(e);let r=Mo.get(e);n!==void 0&&r!==void 0||be(61);const o=Uc||y0.has(e)||v0.has(e),i=kl(nr,e);if(n===r&&!o){if(ae(n)){const s=i.__lexicalTextContent;s!==void 0&&(yn+=s,Fi+=s)}else{const s=n.getTextContent();Fi+=s,yn+=s}return i}if(n!==r&&o&&ab(sd,ad,fm,r,"updated"),r.updateDOM(n,i,Sl)){const s=kh(e,null);return t===null&&be(62),t.replaceChild(s,i),Eh(e,null),s}if(ae(n)&&ae(r)){const s=r.__indent;(Uc||s!==n.__indent)&&kE(i,s);const c=r.__format;if((Uc||c!==n.__format)&&TE(i,c),o&&(KM(n,r,i),cn(r)||r.isInline()||_E(n,r,i)),bm(r)&&(yn+=Ja,Fi+=Ja),(Uc||r.__dir!==n.__dir)&&(w0(i,r),cn(r)&&!Uc))for(const u of r.getChildren())ae(u)&&w0(kl(nr,u.getKey()),u)}else{const s=r.getTextContent();if(Et(r)){const c=r.decorate(nr,Sl);c!==null&&RE(e,c)}yn+=s,Fi+=s}if(!Ah&&cn(r)&&r.__cachedText!==Fi){const s=r.getWritable();s.__cachedText=Fi,r=s}return i}function RE(e,t){let n=nr._pendingDecorators;const r=nr._decorators;if(n===null){if(r[e]===t)return;n=k2(nr)}n[e]=t}function Qg(e){let t=e.nextSibling;return t!==null&&t===nr._blockCursorElement&&(t=t.nextSibling),t}function YM(e,t,n,r,o,i){yn="",Fi="",Uc=r===2,nr=n,Sl=n._config,ad=n._nodes,fm=nr._listeners.mutation,v0=o,y0=i,Cl=e._nodeMap,Mo=t._nodeMap,Ah=t._readOnly,b0=new Map(n._keyToDOMMap);const s=new Map;return sd=s,Uf("root",null),nr=void 0,ad=void 0,v0=void 0,y0=void 0,Cl=void 0,Mo=void 0,Sl=void 0,b0=void 0,sd=void 0,s}function C0(e){const t=b0.get(e);return t===void 0&&be(75,e),t}function Ye(e){return{type:e}}const dm=Ye("SELECTION_CHANGE_COMMAND"),GM=Ye("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Wy=Ye("CLICK_COMMAND"),PE=Ye("BEFORE_INPUT_COMMAND"),IE=Ye("INPUT_COMMAND"),OE=Ye("COMPOSITION_START_COMMAND"),ME=Ye("COMPOSITION_END_COMMAND"),cl=Ye("DELETE_CHARACTER_COMMAND"),Jc=Ye("INSERT_LINE_BREAK_COMMAND"),ld=Ye("INSERT_PARAGRAPH_COMMAND"),qc=Ye("CONTROLLED_TEXT_INSERTION_COMMAND"),pm=Ye("PASTE_COMMAND"),A0=Ye("REMOVE_TEXT_COMMAND"),cd=Ye("DELETE_WORD_COMMAND"),ud=Ye("DELETE_LINE_COMMAND"),ii=Ye("FORMAT_TEXT_COMMAND"),$y=Ye("UNDO_COMMAND"),Hy=Ye("REDO_COMMAND"),NE=Ye("KEYDOWN_COMMAND"),LE=Ye("KEY_ARROW_RIGHT_COMMAND"),QM=Ye("MOVE_TO_END"),DE=Ye("KEY_ARROW_LEFT_COMMAND"),ZM=Ye("MOVE_TO_START"),FE=Ye("KEY_ARROW_UP_COMMAND"),jE=Ye("KEY_ARROW_DOWN_COMMAND"),fd=Ye("KEY_ENTER_COMMAND"),zE=Ye("KEY_SPACE_COMMAND"),BE=Ye("KEY_BACKSPACE_COMMAND"),Vy=Ye("KEY_ESCAPE_COMMAND"),UE=Ye("KEY_DELETE_COMMAND"),WE=Ye("KEY_TAB_COMMAND"),XM=Ye("INSERT_TAB_COMMAND"),JM=Ye("INDENT_CONTENT_COMMAND"),Tw=Ye("OUTDENT_CONTENT_COMMAND"),$E=Ye("DROP_COMMAND"),qM=Ye("FORMAT_ELEMENT_COMMAND"),HE=Ye("DRAGSTART_COMMAND"),VE=Ye("DRAGOVER_COMMAND"),eN=Ye("DRAGEND_COMMAND"),hm=Ye("COPY_COMMAND"),Ky=Ye("CUT_COMMAND"),E0=Ye("SELECT_ALL_COMMAND"),tN=Ye("CLEAR_EDITOR_COMMAND"),nN=Ye("CLEAR_HISTORY_COMMAND"),Lp=Ye("CAN_REDO_COMMAND"),Dp=Ye("CAN_UNDO_COMMAND"),rN=Ye("FOCUS_COMMAND"),oN=Ye("BLUR_COMMAND"),iN=Ye("KEY_MODIFIER_COMMAND"),Ii=Object.freeze({}),k0=[["keydown",function(e,t){dd=e.timeStamp,KE=e.key,!t.isComposing()&&Le(t,NE,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Lu(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&li(t,()=>{w2(n)||(R0=!0)})}],["compositionstart",function(e,t){Le(t,OE,e)}],["compositionend",function(e,t){xl?Wf=!0:Ru||!_d&&!Rd?Le(t,ME,e):(P0=!0,I0=e.data)}],["input",function(e,t){e.stopPropagation(),li(t,()=>{t.dispatchCommand(IE,e)},{event:e}),Wc=null}],["click",function(e,t){li(t,()=>{const n=Ie(),r=go(mo(t)),o=Ou();if(r){if(ge(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!cn(s)&&Xt().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const c=Ln(s,u=>ae(u)&&!u.isInline());ae(c)&&c.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(Gn(i)||na(i))&&Cr(Gy(o,r,t,e))}}Le(t,Wy,e)})}],["cut",Ii],["copy",Ii],["dragstart",Ii],["dragover",Ii],["dragend",Ii],["paste",Ii],["focus",Ii],["blur",Ii],["drop",Ii]];Ch&&k0.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||xl&&I2(r)||o!=="insertCompositionText"&&Le(r,PE,n)})(e,t)]);let dd=0,KE=null,YE=0,Wc=null;const T0=new WeakMap,_h=new WeakMap;let _0=!1,R0=!1,Yf=!1,Wf=!1,P0=!1,I0="",Ys=null,GE=[0,"",0,"root",0];function QE(e,t,n,r,o){const i=e.anchor,s=e.focus,c=i.getNode(),u=jt(),f=go(mo(u)),m=f!==null?f.anchorNode:null,h=i.key,v=u.getElementByKey(h),w=n.length;return h!==s.key||!Oe(c)||(!o&&(!Ch||YE<r+50)||c.isDirty()&&w<2||_2(n))&&i.offset!==s.offset&&!c.isComposing()||Di(c)||c.isDirty()&&w>1||(o||!Ch)&&v!==null&&!c.isComposing()&&m!==bu(v)||f!==null&&t!==null&&(!t.collapsed||t.startContainer!==f.anchorNode||t.startOffset!==f.anchorOffset)||c.getFormat()!==e.format||c.getStyle()!==e.style||(function(C,A){if(A.isSegmented())return!0;if(!C.isCollapsed())return!1;const x=C.anchor.offset,E=A.getParentOrThrow(),R=dl(A);return x===0?!A.canInsertTextBefore()||!E.canInsertTextBefore()&&!A.isComposing()||R||(function(O){const L=O.getPreviousSibling();return(Oe(L)||ae(L)&&L.isInline())&&!L.canInsertTextAfter()})(A):x===A.getTextContentSize()&&(!A.canInsertTextAfter()||!E.canInsertTextAfter()&&!A.isComposing()||R)})(e,c)}function _w(e,t){return na(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Rw(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;_0&&(_0=!1,_w(r,o)&&_w(i,s)&&!Ys)||li(t,()=>{if(!n)return void Cr(null);if(!Md(t,r,i))return;let c=Ie();if(Ys&&ge(c)&&c.isCollapsed()){const u=c.anchor,f=Ys.anchor;(u.key===f.key&&u.offset===f.offset+1||u.offset===1&&f.getNode().is(u.getNode().getPreviousSibling()))&&(c=Ys.clone(),Cr(c))}if(Ys=null,ge(c)){const u=c.anchor,f=u.getNode();if(c.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(c.dirty=!0);const m=mo(t).event,h=m?m.timeStamp:performance.now(),[v,w,C,A,x]=GE,E=Xt(),R=t.isComposing()===!1&&E.getTextContent()==="";if(h<x+200&&u.offset===C&&u.key===A)eh(c,v,w);else if(u.type==="text")Oe(f)||be(141),ZE(c,f);else if(u.type==="element"&&!R){ae(f)||be(259);const O=u.getNode();O.isEmpty()?(function(L,M){const U=M.getTextFormat(),j=M.getTextStyle();eh(L,U,j)})(c,O):eh(c,0,"")}}else{const m=u.key,h=c.focus.key,v=c.getNodes(),w=v.length,C=c.isBackward(),A=C?s:o,x=C?o:s,E=C?h:m,R=C?m:h;let O=2047,L=!1;for(let M=0;M<w;M++){const U=v[M],j=U.getTextContentSize();if(Oe(U)&&j!==0&&!(M===0&&U.__key===E&&A===j||M===w-1&&U.__key===R&&x===0)&&(L=!0,O&=U.getFormat(),O===0))break}c.format=L?O:0}}Le(t,dm,void 0)})}function eh(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function ZE(e,t){eh(e,t.getFormat(),t.getStyle())}function XE(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function aN(e){const t=e.inputType,n=XE(e),r=jt(),o=Ie();if(t==="deleteContentBackward"){if(o===null){const h=Ou();if(!ge(h))return!0;Cr(h.clone())}if(ge(o)){const h=o.anchor.key===o.focus.key;if(i=e.timeStamp,KE==="MediaLast"&&i<dd+30&&r.isComposing()&&h){if(Kn(null),dd=0,setTimeout(()=>{li(r,()=>{Kn(null)})},30),ge(o)){const v=o.anchor.getNode();v.markDirty(),Oe(v)||be(142),ZE(o,v)}}else{Kn(null),e.preventDefault();const v=o.anchor.getNode(),w=v.getTextContent(),C=v.canInsertTextAfter(),A=o.anchor.offset===0&&o.focus.offset===w.length;let x=mw&&h&&!A&&C;if(x&&o.isCollapsed()&&(x=!Et(F0(o.anchor,!0))),!x){Le(r,cl,!0);const E=Ie();mw&&ge(E)&&E.isCollapsed()&&(Ys=E,setTimeout(()=>Ys=null))}}return!0}}var i;if(!ge(o))return!0;const s=e.data;Wc!==null&&ob(!1,r,Wc),o.dirty&&Wc===null||!o.isCollapsed()||cn(o.anchor.getNode())||n===null||o.applyDOMRange(n),Wc=null;const c=o.anchor,u=o.focus,f=c.getNode(),m=u.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
706
|
+
`)e.preventDefault(),Le(r,Jc,!1);else if(s===Ja)e.preventDefault(),Le(r,ld,void 0);else if(s==null&&e.dataTransfer){const h=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(h)}else s!=null&&QE(o,n,s,e.timeStamp,!0)?(e.preventDefault(),Le(r,qc,s)):Wc=s;return YE=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Le(r,qc,e);break;case"insertFromComposition":Kn(null),Le(r,qc,e);break;case"insertLineBreak":Kn(null),Le(r,Jc,!1);break;case"insertParagraph":Kn(null),Yf&&!Ru?(Yf=!1,Le(r,Jc,!1)):Le(r,ld,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Le(r,pm,e);break;case"deleteByComposition":(function(h,v){return h!==v||ae(h)||ae(v)||!dl(h)||!dl(v)})(f,m)&&Le(r,A0,e);break;case"deleteByDrag":case"deleteByCut":Le(r,A0,e);break;case"deleteContent":Le(r,cl,!1);break;case"deleteWordBackward":Le(r,cd,!0);break;case"deleteWordForward":Le(r,cd,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Le(r,ud,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Le(r,ud,!1);break;case"formatStrikeThrough":Le(r,ii,"strikethrough");break;case"formatBold":Le(r,ii,"bold");break;case"formatItalic":Le(r,ii,"italic");break;case"formatUnderline":Le(r,ii,"underline");break;case"historyUndo":Le(r,$y,void 0);break;case"historyRedo":Le(r,Hy,void 0)}return!0}function sN(e){if(Gn(e.target)&&w2(e.target))return!0;const t=jt(),n=Ie(),r=e.data,o=XE(e);if(r!=null&&ge(n)&&QE(n,o,r,e.timeStamp,!1)){Wf&&(Rh(t,r),Wf=!1);const i=n.anchor.getNode(),s=go(mo(t));if(s===null)return!0;const c=n.isBackward(),u=c?n.anchor.offset:n.focus.offset,f=c?n.focus.offset:n.anchor.offset;Ch&&!n.isCollapsed()&&Oe(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,u)+r+i.getTextContent().slice(u+f)===P2(s.anchorNode)||Le(t,qc,r);const m=r.length;xl&&m>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=m),_d||Ru||Rd||!t.isComposing()||(dd=0,Kn(null))}else ob(!1,t,r!==null?r:void 0),Wf&&(Rh(t,r||void 0),Wf=!1);return(function(){tr();const i=jt();SE(i)})(),!0}function lN(e){const t=jt(),n=Ie();if(ge(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Kn(r.key),(e.timeStamp<dd+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||Oe(o)&&o.getStyle()!==n.style)&&Le(t,qc,MM)}return!0}function cN(e){return Rh(jt(),e.data),!0}function Rh(e,t){const n=e._compositionKey;if(Kn(null),n!==null&&t!=null){if(t===""){const r=bn(n),o=bu(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&Oe(r)&&ib(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
707
|
+
`){const r=Ie();if(ge(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void Le(e,fd,null)}}}ob(!0,e,t)}function uN(e){const t=jt();if(e.key==null)return!0;if(P0&&e1(e))return li(t,()=>{Rh(t,I0)}),P0=!1,I0="",!0;if((function(n){return Nt(n,"ArrowRight",{shiftKey:"any"})})(e))Le(t,LE,e);else if((function(n){return Nt(n,"ArrowRight",Ni)})(e))Le(t,QM,e);else if((function(n){return Nt(n,"ArrowLeft",{shiftKey:"any"})})(e))Le(t,DE,e);else if((function(n){return Nt(n,"ArrowLeft",Ni)})(e))Le(t,ZM,e);else if((function(n){return Nt(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))Le(t,FE,e);else if((function(n){return Nt(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))Le(t,jE,e);else if((function(n){return Nt(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))Yf=!0,Le(t,fd,e);else if((function(n){return n.key===" "})(e))Le(t,zE,e);else if((function(n){return Oo&&Nt(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),Yf=!0,Le(t,Jc,!0);else if((function(n){return Nt(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))Yf=!1,Le(t,fd,e);else if((function(n){return Nt(n,"Backspace",{shiftKey:"any"})||Oo&&Nt(n,"h",{ctrlKey:!0})})(e))e1(e)?Le(t,BE,e):(e.preventDefault(),Le(t,cl,!0));else if((function(n){return n.key==="Escape"})(e))Le(t,Vy,e);else if((function(n){return Nt(n,"Delete",{})||Oo&&Nt(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?Le(t,UE,e):(e.preventDefault(),Le(t,cl,!1));else if((function(n){return Nt(n,"Backspace",qw)})(e))e.preventDefault(),Le(t,cd,!0);else if((function(n){return Nt(n,"Delete",qw)})(e))e.preventDefault(),Le(t,cd,!1);else if((function(n){return Oo&&Nt(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),Le(t,ud,!0);else if((function(n){return Oo&&(Nt(n,"Delete",{metaKey:!0})||Nt(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),Le(t,ud,!1);else if((function(n){return Nt(n,"b",Ni)})(e))e.preventDefault(),Le(t,ii,"bold");else if((function(n){return Nt(n,"u",Ni)})(e))e.preventDefault(),Le(t,ii,"underline");else if((function(n){return Nt(n,"i",Ni)})(e))e.preventDefault(),Le(t,ii,"italic");else if((function(n){return Nt(n,"Tab",{shiftKey:"any"})})(e))Le(t,WE,e);else if((function(n){return Nt(n,"z",Ni)})(e))e.preventDefault(),Le(t,$y,void 0);else if((function(n){return Oo?Nt(n,"z",{metaKey:!0,shiftKey:!0}):Nt(n,"y",{ctrlKey:!0})||Nt(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),Le(t,Hy,void 0);else{const n=t._editorState._selection;n===null||ge(n)?t1(e)&&(e.preventDefault(),Le(t,E0,e)):(function(r){return Nt(r,"c",Ni)})(e)?(e.preventDefault(),Le(t,hm,e)):(function(r){return Nt(r,"x",Ni)})(e)?(e.preventDefault(),Le(t,Ky,e)):t1(e)&&(e.preventDefault(),Le(t,E0,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(iN,e),!0}function JE(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const eu=new Map;function qE(e){const t=$N(e.target);if(t===null)return;const n=S2(t.anchorNode);if(n===null)return;R0&&(R0=!1,li(n,()=>{const u=Ou(),f=t.anchorNode;(Gn(f)||na(f))&&Cr(Gy(u,t,n,e))}));const r=rb(n),o=r[r.length-1],i=o._key,s=eu.get(i),c=s||o;c!==n&&Rw(t,c,!1),Rw(t,n,!0),n!==o?eu.set(i,n):s&&eu.delete(i)}function Pw(e){e._lexicalHandled=!0}function Iw(e){return e._lexicalHandled===!0}function fN(e){const t=T0.get(e);if(t===void 0)return;const n=_h.get(t);if(n===void 0)return;const r=n-1;r>=0||be(164),T0.delete(e),_h.set(t,r),r===0&&t.removeEventListener("selectionchange",qE);const o=vm(e);nb(o)?((function(s){if(s._parentEditor!==null){const c=rb(s),u=c[c.length-1]._key;eu.get(u)===s&&eu.delete(u)}else eu.delete(s._key)})(o),e.__lexicalEditor=null):o&&be(198);const i=JE(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function O0(e,t,n){tr();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(c){const u=Ie();if(!ge(u)||!ae(c))return u;const{anchor:f,focus:m}=u,h=f.getNode(),v=m.getNode();return j0(h,c)&&f.set(c.__key,0,"element"),j0(v,c)&&m.set(c.__key,0,"element"),u})(e);let s=!1;if(ge(i)&&t){const c=i.anchor,u=i.focus;c.key===r&&(Oh(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),u.key===r&&(Oh(u,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else On(i)&&t&&e.isSelected()&&e.selectPrevious();if(ge(i)&&t&&!s){const c=e.getIndexWithinParent();pl(e),Ih(i,o,c,-1)}else pl(e);n||Dr(o)||o.canBeEmpty()||!o.isEmpty()||O0(o,t),t&&i&&cn(o)&&o.isEmpty()&&o.selectEnd()}const e2=Symbol.for("ephemeral");function Ph(e){return e[e2]||!1}class No{constructor(t){ce(this,"__type");ce(this,"__key");ce(this,"__parent");ce(this,"__prev");ce(this,"__next");ce(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),DN(this,t)}static getType(){const{ownNodeType:t}=xm(this);return t===void 0&&be(64,this.name),t}static clone(t){be(65,this.name)}$config(){return{}}config(t,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:t}),{[t]:n}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){be(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=bn(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Ie();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(Oe(this))return r;if(ge(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Et(this)&&this.isInline()&&o){const i=n.isBackward()?n.focus:n.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let n=t.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:bn(t)}getParentOrThrow(){const t=this.getParent();return t===null&&be(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(Dr(n))return ae(t)||t===this&&Et(t)||be(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&be(67,this.__key),t}getParents(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n),n=n.getParent();return t}getParentKeys(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n.__key),n=n.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:bn(t)}getPreviousSiblings(){const t=[],n=this.getParent();if(n===null)return t;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:bn(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=ae(this)?this:this.getParent(),r=ae(t)?t:t.getParent(),o=n&&r?nh(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=nh(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?F2(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&be(279),!1)))}isParentOf(t){const n=nh(this,t);return n!==null&&n.type==="ancestor"}getNodesBetween(t){const n=this.isBefore(t),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===t)break;const c=ae(i)?n?i.getFirstChild():i.getLastChild():null;if(c!==null){i=c;continue}const u=n?i.getNextSibling():i.getPreviousSibling();if(u!==null){i=u;continue}const f=i.getParentOrThrow();if(o.has(f.__key)||r.push(f),f===t)break;let m=null,h=f;do{if(h===null&&be(68),m=n?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;m!==null||o.has(h.__key)||r.push(h)}while(m===null);i=m}return n||r.reverse(),r}isDirty(){const t=jt()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(Ph(this))return this;const t=bn(this.__key);return t===null&&be(113),t}getWritable(){if(Ph(this))return this;tr();const t=os(),n=jt(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,c=Ie();if(c!==null&&c.setCachedNodes(null),s.has(o))return Nh(i),i;const u=N2(i);return s.add(o),Nh(u),r.set(o,u),u}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){be(70)}updateDOM(t,n,r){be(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){be(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const c of EE(o).flatKeys)c in r&&(s!==void 0&&s!==i||(s={...i}),s[c]=r[c]);return(o.__state||s)&&HM(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){O0(this,!0,t)}replace(t,n){tr();let r=Ie();r!==null&&(r=r.clone()),tv(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,c=t.getWritable(),u=this.getParentOrThrow().getWritable(),f=u.__size;pl(c);const m=o.getPreviousSibling(),h=o.getNextSibling(),v=o.__prev,w=o.__next,C=o.__parent;if(O0(o,!1,!0),m===null?u.__first=s:m.getWritable().__next=s,c.__prev=v,h===null?u.__last=s:h.getWritable().__prev=s,c.__next=w,c.__parent=C,u.__size=f,n&&(ae(this)&&ae(c)||be(139),this.getChildren().forEach(A=>{c.append(A)})),ge(r)){Cr(r);const A=r.anchor,x=r.focus;A.key===i&&Lw(A,c),x.key===i&&Lw(x,c)}return Wa()===i&&Kn(s),c}insertAfter(t,n=!0){tr(),tv(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Ie();let c=!1,u=!1;if(i!==null){const w=t.getIndexWithinParent();if(pl(o),ge(s)){const C=i.__key,A=s.anchor,x=s.focus;c=A.type==="element"&&A.key===C&&A.offset===w+1,u=x.type==="element"&&x.key===C&&x.offset===w+1}}const f=this.getNextSibling(),m=this.getParentOrThrow().getWritable(),h=o.__key,v=r.__next;if(f===null?m.__last=h:f.getWritable().__prev=h,m.__size++,r.__next=h,o.__next=v,o.__prev=r.__key,o.__parent=r.__parent,n&&ge(s)){const w=this.getIndexWithinParent();Ih(s,m,w+1);const C=m.__key;c&&s.anchor.set(C,w+2,"element"),u&&s.focus.set(C,w+2,"element")}return t}insertBefore(t,n=!0){tr(),tv(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;pl(o);const s=this.getPreviousSibling(),c=this.getParentOrThrow().getWritable(),u=r.__prev,f=this.getIndexWithinParent();s===null?c.__first=i:s.getWritable().__next=i,c.__size++,r.__prev=i,o.__prev=u,o.__next=r.__key,o.__parent=r.__parent;const m=Ie();return n&&ge(m)&&Ih(m,this.getParentOrThrow(),f),t}isParentRequired(){return!1}createParentElementNode(){return Sr()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){tr();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(ae(r))return r.select();if(!Oe(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){tr();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(ae(r))return r.select(0,0);if(!Oe(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}ce(No,"importDOM");const M0="historic",dN="history-push",ul="history-merge",pN="paste",hN="collaboration",mN="skip-scroll-into-view",gN="skip-dom-selection",vN="skip-selection-focus";class Pu extends No{static getType(){return"linebreak"}static clone(t){return new Pu(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
708
|
+
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(n){const r=n.parentElement;if(r!==null&&Lh(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Fp(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&Fp(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&Lh(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Fp(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&Fp(i))return!0}return!1})(t)?null:{conversion:yN,priority:0}}}static importJSON(t){return Al().updateFromJSON(t)}}function yN(e){return{node:Al()}}function Al(){return is(new Pu)}function fl(e){return e instanceof Pu}function Fp(e){return na(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Zg(e,t){return 16&t?"code":t&bE?"mark":32&t?"sub":64&t?"sup":null}function Xg(e,t){return 1&t?"strong":2&t?"em":"span"}function t2(e,t,n,r,o){const i=r.classList;let s=tu(o,"base");s!==void 0&&i.add(...s),s=tu(o,"underlineStrikethrough");let c=!1;const u=8&t&&4&t;s!==void 0&&(8&n&&4&n?(c=!0,u||i.add(...s)):u&&i.remove(...s));for(const f in wl){const m=wl[f];if(s=tu(o,f),s!==void 0)if(n&m){if(c&&(f==="underline"||f==="strikethrough")){t&m&&i.remove(...s);continue}((t&m)===0||u&&f==="underline"||f==="strikethrough")&&i.add(...s)}else t&m&&i.remove(...s)}}function n2(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?um:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||xl){const[c,u,f]=(function(m,h){const v=m.length,w=h.length;let C=0,A=0;for(;C<v&&C<w&&m[C]===h[C];)C++;for(;A+C<v&&A+C<w&&m[v-A-1]===h[w-A-1];)A++;return[C,v-C-A,h.slice(C,w-A)]})(s,i);u!==0&&r.deleteData(c,u),r.insertData(c,f)}else r.nodeValue=i}}function Ow(e,t,n,r,o,i){n2(o,e,t);const s=i.theme.text;s!==void 0&&t2(0,0,r,e,s)}function jp(e,t){const n=document.createElement(t);return n.appendChild(e),n}class rs extends No{constructor(n="",r){super(r);ce(this,"__text");ce(this,"__format");ce(this,"__style");ce(this,"__mode");ce(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new rs(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return FM[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Wa()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=wl[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return Mh(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=Zg(0,o),s=Xg(0,o),c=i===null?s:i,u=document.createElement(c);let f=u;this.hasFormat("code")&&u.setAttribute("spellcheck","false"),i!==null&&(f=document.createElement(s),u.appendChild(f)),Ow(f,this,0,o,this.__text,n);const m=this.__style;return m!==""&&(u.style.cssText=m),u}updateDOM(n,r,o){const i=this.__text,s=n.__format,c=this.__format,u=Zg(0,s),f=Zg(0,c),m=Xg(0,s),h=Xg(0,c);if((u===null?m:u)!==(f===null?h:f))return!0;if(u===f&&m!==h){const x=r.firstChild;x==null&&be(48);const E=document.createElement(h);return Ow(E,this,0,c,i,o),r.replaceChild(E,x),!1}let v=r;f!==null&&u!==null&&(v=r.firstChild,v==null&&be(49)),n2(i,v,this);const w=o.theme.text;w!==void 0&&s!==c&&t2(0,s,c,v,w);const C=n.__style,A=this.__style;return C!==A&&(r.style.cssText=A),!1}static importDOM(){return{"#text":()=>({conversion:SN,priority:0}),b:()=>({conversion:xN,priority:0}),code:()=>({conversion:Oi,priority:0}),em:()=>({conversion:Oi,priority:0}),i:()=>({conversion:Oi,priority:0}),mark:()=>({conversion:Oi,priority:0}),s:()=>({conversion:Oi,priority:0}),span:()=>({conversion:bN,priority:0}),strong:()=>({conversion:Oi,priority:0}),sub:()=>({conversion:Oi,priority:0}),sup:()=>({conversion:Oi,priority:0}),u:()=>({conversion:Oi,priority:0})}}static importJSON(n){return In().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:r}=super.exportDOM(n);return Gn(r)||be(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=jp(r,"b")),this.hasFormat("italic")&&(r=jp(r,"i")),this.hasFormat("strikethrough")&&(r=jp(r,"s")),this.hasFormat("underline")&&(r=jp(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,r){}setFormat(n){const r=this.getWritable();return r.__format=typeof n=="string"?wl[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?NM[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=Mh(this.getFormat(),n,null);return this.setFormat(r)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const r=DM[n];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(n){if(this.__text===n)return this;const r=this.getWritable();return r.__text=n,r}select(n,r){tr();let o=n,i=r;const s=Ie(),c=this.getTextContent(),u=this.__key;if(typeof c=="string"){const f=c.length;o===void 0&&(o=f),i===void 0&&(i=f)}else o=0,i=0;if(!ge(s))return a2(u,o,u,i,"text","text");{const f=Wa();f!==s.anchor.key&&f!==s.focus.key||Kn(u),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,r,o,i){const s=this.getWritable(),c=s.__text,u=o.length;let f=n;f<0&&(f=u+f,f<0&&(f=0));const m=Ie();if(i&&ge(m)){const v=n+u;m.setTextNodeRange(s,v,s,v)}const h=c.slice(0,f)+o+c.slice(f+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){tr();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Wa(),c=o.length;n.sort((H,G)=>H-G),n.push(c);const u=[],f=n.length;for(let H=0,G=0;H<c&&G<=f;G++){const q=n[G];q>H&&(u.push(o.slice(H,q)),H=q)}const m=u.length;if(m===1)return[r];const h=u[0],v=r.getParent();let w;const C=r.getFormat(),A=r.getStyle(),x=r.__detail;let E=!1,R=null,O=null;const L=Ie();if(ge(L)){const[H,G]=L.isBackward()?[L.focus,L.anchor]:[L.anchor,L.focus];H.type==="text"&&H.key===i&&(R=H),G.type==="text"&&G.key===i&&(O=G)}r.isSegmented()?(w=In(h),w.__format=C,w.__style=A,w.__detail=x,w.__state=ww(r,w),E=!0):w=r.setTextContent(h);const M=[w];for(let H=1;H<m;H++){const G=In(u[H]);G.__format=C,G.__style=A,G.__detail=x,G.__state=ww(r,G);const q=G.__key;s===i&&Kn(q),M.push(G)}const U=R?R.offset:null,j=O?O.offset:null;let $=0;for(const H of M){if(!R&&!O)break;const G=$+H.getTextContentSize();if(R!==null&&U!==null&&U<=G&&U>=$&&(R.set(H.getKey(),U-$,"text"),U<G&&(R=null)),O!==null&&j!==null&&j<=G&&j>=$){O.set(H.getKey(),j-$,"text");break}$=G}if(v!==null){(function(q){const pe=q.getPreviousSibling(),ie=q.getNextSibling();pe!==null&&Nh(pe),ie!==null&&Nh(ie)})(this);const H=v.getWritable(),G=this.getIndexWithinParent();E?(H.splice(G,0,M),this.remove()):H.splice(G,1,M),ge(L)&&Ih(L,v,G,m-1)}return M}mergeWithSibling(n){const r=n===this.getPreviousSibling();r||n===this.getNextSibling()||be(50);const o=this.__key,i=n.__key,s=this.__text,c=s.length;Wa()===i&&Kn(o);const u=Ie();if(ge(u)){const v=u.anchor,w=u.focus;v!==null&&v.key===i&&Ww(v,r,o,n,c),w!==null&&w.key===i&&Ww(w,r,o,n,c)}const f=n.__text,m=r?f+s:s+f;this.setTextContent(m);const h=this.getWritable();return n.remove(),h}isTextEntity(){return!1}}function bN(e){return{forChild:Yy(e.style),node:null}}function xN(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Yy(t.style,n?void 0:"bold"),node:null}}const Mw=new WeakMap;function wN(e){if(!Gn(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function SN(e){const t=e;e.parentElement===null&&be(129);let n=t.textContent||"";if((function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=Mw.get(i))===void 0&&!wN(i);)s.push(i),i=i.parentNode;const c=o===void 0?i:o;for(let u=0;u<s.length;u++)Mw.set(s[u],c);return c})(t)!==null){const r=n.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const c=r[s];c===`
|
|
709
|
+
`||c===`\r
|
|
710
|
+
`?o.push(Al()):c===" "?o.push(Pd()):c!==""&&o.push(In(c))}return{node:o}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=t,o=!0;for(;r!==null&&(r=Nw(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),o=!1;break}}o&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=t,o=!0;for(;r!==null&&(r=Nw(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:In(n)}}function Nw(e,t){let n=e;for(;;){let r;for(;(r=t?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=r,Gn(n)){const i=n.style.display;if(i===""&&!U0(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(na(n))return n;if(n.nodeName==="BR")return null}}const CN={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Oi(e){const t=CN[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Yy(e.style,t),node:null}}function In(e=""){return is(new rs(e))}function Oe(e){return e instanceof rs}function Yy(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o=n==="700"||n==="bold",i=r.includes("line-through"),s=e.fontStyle==="italic",c=r.includes("underline"),u=e.verticalAlign;return f=>(Oe(f)&&(o&&!f.hasFormat("bold")&&f.toggleFormat("bold"),i&&!f.hasFormat("strikethrough")&&f.toggleFormat("strikethrough"),s&&!f.hasFormat("italic")&&f.toggleFormat("italic"),c&&!f.hasFormat("underline")&&f.toggleFormat("underline"),u!=="sub"||f.hasFormat("subscript")||f.toggleFormat("subscript"),u!=="super"||f.hasFormat("superscript")||f.toggleFormat("superscript"),t&&!f.hasFormat(t)&&f.toggleFormat(t)),f)}class Iu extends rs{static getType(){return"tab"}static clone(t){return new Iu(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=tu(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return Pd().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&gE(126),super.setTextContent(" ")}spliceText(t,n,r,o){return r===""&&n===0||r===" "&&n===1||be(286),this}setDetail(t){return t!==2&&be(127),this}setMode(t){return t!=="normal"&&be(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Pd(){return is(new Iu)}function r2(e){return e instanceof Iu}class AN{constructor(t,n,r){ce(this,"key");ce(this,"offset");ce(this,"type");ce(this,"_selection");this._selection=null,this.key=t,this.offset=n,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:D2(co(Qi(this,"next")),co(Qi(t,"next")))<0}getNode(){const t=bn(this.key);return t===null&&be(20),t}set(t,n,r,o){const i=this._selection,s=this.key;o&&this.key===t&&this.offset===n&&this.type===r||(this.key=t,this.offset=n,this.type=r,Id()||(Wa()===s&&Kn(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function di(e,t,n){return new AN(e,t,n)}function Jg(e,t){let n=t.__key,r=e.offset,o="element";if(Oe(t)){o="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!ae(t)){const i=t.getNextSibling();if(Oe(i))n=i.__key,r=0,o="text";else{const s=t.getParent();s&&(n=s.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function Lw(e,t){if(ae(t)){const n=t.getLastDescendant();ae(n)||Oe(n)?Jg(e,n):Jg(e,t)}else Jg(e,t)}class mm{constructor(t){ce(this,"_nodes");ce(this,"_cachedNodes");ce(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!On(t))return!1;const n=this._nodes,r=t._nodes;return n.size===r.size&&Array.from(n).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new mm(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const n=this.getNodes(),r=n.length,o=n[r-1];let i;if(Oe(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s<r;s++)n[s].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=this._nodes,r=[];for(const o of n){const i=bn(o);i!==null&&r.push(i)}return Id()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let n="";for(let r=0;r<t.length;r++)n+=t[r].getTextContent();return n}deleteNodes(){const t=this.getNodes();if((Ie()||Ou())===this&&t[0]){const n=rr(t[0],"next");n5(qa(n,n))}for(const n of t)n.remove()}}function ge(e){return e instanceof Ml}class Ml{constructor(t,n,r,o){ce(this,"format");ce(this,"style");ce(this,"anchor");ce(this,"focus");ce(this,"_cachedNodes");ce(this,"dirty");this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!ge(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=(function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const c=new Set,u=new Set;for(const f of r)if(ci(f)){const{origin:m}=f;o.length===0?c.add(m):(u.add(m),o.push(m))}else{const{origin:m}=f;ae(m)&&u.has(m)||o.push(m)}if(s&&o.push(s.caret.origin),wu(r.focus)&&ae(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let f=Do(r.focus.origin,"previous");ci(f)&&c.has(f.origin)&&!f.origin.isEmpty()&&f.origin.is(o[o.length-1]);f=fb(f))c.delete(f.origin),o.pop();for(;o.length>1;){const f=o[o.length-1];if(!ae(f)||u.has(f)||f.isEmpty()||c.has(f))break;o.pop()}if(o.length===0&&r.isCollapsed()){const f=co(r.anchor),m=co(r.anchor.getFlipped()),h=w=>Ka(w)?w.origin:w.getNodeAtCaret(),v=h(f)||h(m)||(r.anchor.getNodeAtCaret()?f.origin:m.origin);o.push(v)}return o})(z2(s1(this),"next"));return Id()||(this._cachedNodes=n),n}setTextNodeRange(t,n,r,o){this.anchor.set(t.__key,n,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const n=t[0],r=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[c,u]=N0(this);let f="",m=!0;for(let h=0;h<t.length;h++){const v=t[h];if(ae(v)&&!v.isInline())m||(f+=`
|
|
711
|
+
`),m=!v.isEmpty();else if(m=!1,Oe(v)){let w=v.getTextContent();v===n?v===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(w=c<u?w.slice(c,u):w.slice(u,c)):w=s?w.slice(c):w.slice(u):v===r&&(w=s?w.slice(0,u):w.slice(0,c)),f+=w}else!Et(v)&&!fl(v)||v===r&&this.isCollapsed()||(f+=v.getTextContent())}return f}applyDOMRange(t){const n=jt(),r=n.getEditorState()._selection,o=i2(t.startContainer,t.startOffset,t.endContainer,t.endOffset,n,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),yu(this)}clone(){const t=this.anchor,n=this.focus;return new Ml(di(t.key,t.offset,t.type),di(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=Mh(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const n=wl[t];return(this.format&n)!==0}insertRawText(t){const n=t.split(/(\r?\n|\t)/),r=[],o=n.length;for(let i=0;i<o;i++){const s=n[i];s===`
|
|
712
|
+
`||s===`\r
|
|
713
|
+
`?r.push(Al()):s===" "?r.push(Pd()):r.push(In(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,c=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,c=n),s.type==="element"&&(function(x,E,R,O){const L=x.getNode(),M=L.getChildAtIndex(x.offset),U=In();if(U.setFormat(R),U.setStyle(O),Jy(M))M.splice(0,0,[U]);else{const j=cn(L)?Sr().append(U):U;M===null?L.append(j):M.insertBefore(j)}x.is(E)&&E.set(U.__key,0,"text"),x.set(U.__key,0,"text")})(s,c,o,i),c.type==="element"&&Pl(c,co(Qi(c,"next")));const u=s.offset;let f=c.offset;const m=this.getNodes(),h=m.length;let v=m[0];Oe(v)||be(26);const w=v.getTextContent().length,C=v.getParentOrThrow();let A=m[h-1];if(h===1&&c.type==="element"&&(f=w,c.set(s.key,f,"text")),this.isCollapsed()&&u===w&&(Di(v)||!v.canInsertTextAfter()||!C.canInsertTextAfter()&&v.getNextSibling()===null)){let x=v.getNextSibling();if(Oe(x)&&x.canInsertTextBefore()&&!Di(x)||(x=In(),x.setFormat(o),x.setStyle(i),C.canInsertTextAfter()?v.insertAfter(x):C.insertAfter(x)),x.select(0,0),v=x,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&u===0&&(Di(v)||!v.canInsertTextBefore()||!C.canInsertTextBefore()&&v.getPreviousSibling()===null)){let x=v.getPreviousSibling();if(Oe(x)&&!Di(x)||(x=In(),x.setFormat(o),C.canInsertTextBefore()?v.insertBefore(x):C.insertBefore(x)),x.select(),v=x,t!=="")return void this.insertText(t)}else if(v.isSegmented()&&u!==w){const x=In(v.getTextContent());x.setFormat(o),v.replace(x),v=x}else if(!this.isCollapsed()&&t!==""){const x=A.getParent();if(!C.canInsertTextBefore()||!C.canInsertTextAfter()||ae(x)&&(!x.canInsertTextBefore()||!x.canInsertTextAfter()))return this.insertText(""),o2(this.anchor,this.focus,null),void this.insertText(t)}if(h===1){if(dl(v)){const O=In(t);return O.select(),void v.replace(O)}const x=v.getFormat(),E=v.getStyle();if(u!==f||x===o&&E===i){if(r2(v)){const O=In(t);return O.setFormat(o),O.setStyle(i),O.select(),void v.replace(O)}}else{if(v.getTextContent()!==""){const O=In(t);if(O.setFormat(o),O.setStyle(i),O.select(),u===0)v.insertBefore(O,!1);else{const[L]=v.splitText(u);L.insertAfter(O,!1)}return void(O.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}v.setFormat(o),v.setStyle(i)}const R=f-u;v=v.spliceText(u,R,t,!0),v.getTextContent()===""?v.remove():this.anchor.type==="text"&&(v.isComposing()?this.anchor.offset-=t.length:(this.format=x,this.style=E))}else{const x=new Set([...v.getParentKeys(),...A.getParentKeys()]),E=ae(v)?v:v.getParentOrThrow();let R=ae(A)?A:A.getParentOrThrow(),O=A;if(!E.is(R)&&R.isInline())do O=R,R=R.getParentOrThrow();while(R.isInline());if(c.type==="text"&&(f!==0||A.getTextContent()==="")||c.type==="element"&&A.getIndexWithinParent()<f)if(Oe(A)&&!dl(A)&&f!==A.getTextContentSize()){if(A.isSegmented()){const $=In(A.getTextContent());A.replace($),A=$}cn(c.getNode())||c.type!=="text"||(A=A.spliceText(0,f,"")),x.add(A.__key)}else{const $=A.getParentOrThrow();$.canBeEmpty()||$.getChildrenSize()!==1?A.remove():$.remove()}else x.add(A.__key);const L=R.getChildren(),M=new Set(m),U=E.is(R),j=E.isInline()&&v.getNextSibling()===null?E:v;for(let $=L.length-1;$>=0;$--){const H=L[$];if(H.is(v)||ae(H)&&H.isParentOf(v))break;H.isAttached()&&(!M.has(H)||H.is(O)?U||j.insertAfter(H,!1):H.remove())}if(!U){let $=R,H=null;for(;$!==null;){const G=$.getChildren(),q=G.length;(q===0||G[q-1].is(H))&&(x.delete($.__key),H=$),$=$.getParent()}}if(dl(v))if(u===w)v.select();else{const $=In(t);$.select(),v.replace($)}else v=v.spliceText(u,w-u,t,!0),v.getTextContent()===""?v.remove():v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let $=1;$<h;$++){const H=m[$],G=H.__key;x.has(G)||H.remove()}}}removeText(){const t=Ie()===this;rh(this,r5(s1(this))),t&&Ie()!==this&&Cr(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void Kn(null);const r=this.getNodes(),o=[];for(const L of r)Oe(L)&&o.push(L);const i=L=>{r.forEach(M=>{if(ae(M)){const U=M.getFormatFlags(t,L);M.setTextFormat(U)}})},s=o.length;if(s===0)return this.toggleFormat(t),Kn(null),void i(n);const c=this.anchor,u=this.focus,f=this.isBackward(),m=f?u:c,h=f?c:u;let v=0,w=o[0],C=m.type==="element"?0:m.offset;if(m.type==="text"&&C===w.getTextContentSize()&&(v=1,w=o[1],C=0),w==null)return;const A=w.getFormatFlags(t,n);i(A);const x=s-1;let E=o[x];const R=h.type==="text"?h.offset:E.getTextContentSize();if(w.is(E)){if(C===R)return;if(Di(w)||C===0&&R===w.getTextContentSize())w.setFormat(A);else{const L=w.splitText(C,R),M=C===0?L[0]:L[1];M.setFormat(A),m.type==="text"&&m.set(M.__key,0,"text"),h.type==="text"&&h.set(M.__key,R-C,"text")}return void(this.format=A)}C===0||Di(w)||([,w]=w.splitText(C),C=0),w.setFormat(A);const O=E.getFormatFlags(t,A);R>0&&(R===E.getTextContentSize()||Di(E)||([E]=E.splitText(R)),E.setFormat(O));for(let L=v+1;L<x;L++){const M=o[L],U=M.getFormatFlags(t,O);M.setFormat(U)}m.type==="text"&&m.set(w.__key,C,"text"),h.type==="text"&&h.set(E.__key,R,"text"),this.format=A|O}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const C=Ie();return ge(C)||be(134),C.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=Ln(n,Oa),o=t[t.length-1];if(ae(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const C=qg(this);r.splice(C,0,t),o.selectEnd()}return}if(!t.some(C=>(ae(C)||Et(C))&&!C.isInline())){ae(r)||be(211,n.constructor.name,n.getType());const C=qg(this);return r.splice(C,0,t),void o.selectEnd()}const i=(function(C){const A=Sr();let x=null;for(let E=0;E<C.length;E++){const R=C[E],O=fl(R);if(O||Et(R)&&R.isInline()||ae(R)&&R.isInline()||Oe(R)||R.isParentRequired()){if(x===null&&(x=R.createParentElementNode(),A.append(x),O))continue;x!==null&&x.append(R)}else A.append(R),x=null}return A})(t),s=i.getLastDescendant(),c=i.getChildren(),u=!ae(r)||!r.isEmpty()?this.insertParagraph():null,f=c[c.length-1];let m=c[0];var h;ae(h=m)&&Oa(h)&&!h.isEmpty()&&ae(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(ae(r)||be(211,n.constructor.name,n.getType()),r.append(...m.getChildren()),m=c[1]),m&&(r===null&&be(212,n.constructor.name,n.getType()),(function(C,A){const x=A.getParentOrThrow().getLastChild();let E=A;const R=[A];for(;E!==x;)E.getNextSibling()||be(140),E=E.getNextSibling(),R.push(E);let O=C;for(const L of R)O=O.insertAfter(L)})(r,m));const v=Ln(s,Oa);u&&ae(v)&&(u.canMergeWhenEmpty()||Oa(f))&&(v.append(...u.getChildren()),u.remove()),ae(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const w=ae(r)?r.getLastChild():null;fl(w)&&v!==r&&w.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Sr();return Xt().splice(this.anchor.offset,0,[s]),s.select(),s}const t=qg(this),n=Ln(this.anchor.getNode(),Oa);ae(n)||be(213);const r=n.getChildAtIndex(t),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const n=Al();if(this.insertNodes([n]),t){const r=n.getParentOrThrow(),o=n.getIndexWithinParent();r.select(o,o)}}extract(){const t=[...this.getNodes()],n=t.length;let r=t[0],o=t[n-1];const[i,s]=N0(this),c=this.isBackward(),[u,f]=c?[this.focus,this.anchor]:[this.anchor,this.focus],[m,h]=c?[s,i]:[i,s];if(n===0)return[];if(n===1){if(Oe(r)&&!this.isCollapsed()){const v=r.splitText(m,h),w=m===0?v[0]:v[1];return w?(u.set(w.getKey(),0,"text"),f.set(w.getKey(),w.getTextContentSize(),"text"),[w]):[]}return[r]}if(Oe(r)&&(m===r.getTextContentSize()?t.shift():m!==0&&([,r]=r.splitText(m),t[0]=r,u.set(r.getKey(),0,"text"))),Oe(o)){const v=o.getTextContent().length;h===0?t.pop():h!==v&&([o]=o.splitText(h),t[t.length-1]=o,f.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if($w(this,t,n,r))return;const o=t==="move",i=jt(),s=go(mo(i));if(!s)return;const c=i._blockCursorElement,u=i._rootElement,f=this.focus.getNode();if(u===null||c===null||!ae(f)||f.isInline()||f.canBeEmpty()||z0(c,i,u),this.dirty){let m=kl(i,this.anchor.key),h=kl(i,this.focus.key);this.anchor.type==="text"&&(m=bu(m)),this.focus.type==="text"&&(h=bu(h)),m&&h&&c2(s,m,this.anchor.offset,h,this.focus.offset)}if((function(m,h,v,w){m.modify(h,v,w)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const m=s.getRangeAt(0),h=this.anchor.getNode(),v=cn(h)?h:UN(h);if(this.applyDOMRange(m),this.dirty=!0,!o){const w=this.getNodes(),C=[];let A=!1;for(let x=0;x<w.length;x++){const E=w[x];j0(E,v)?C.push(E):A=!0}if(A&&C.length>0)if(n){const x=C[0];ae(x)?x.selectStart():x.getParentOrThrow().selectStart()}else{const x=C[C.length-1];ae(x)?x.selectEnd():x.getParentOrThrow().selectEnd()}s.anchorNode===m.startContainer&&s.anchorOffset===m.startOffset||(function(x){const E=x.focus,R=x.anchor,O=R.key,L=R.offset,M=R.type;R.set(E.key,E.offset,E.type,!0),E.set(O,L,M,!0)})(this)}}r==="lineboundary"&&$w(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&ae(n)&&t.offset===n.getChildrenSize()||t.type==="text"&&t.offset===n.getTextContentSize())){const o=n.getParent(),i=n.getNextSibling()||(o===null?null:o.getNextSibling());if(ae(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,t))return;const i=pb(Qi(r,t?"previous":"next"));if(i.getTextSlices().every(c=>c===null||c.distance===0)){let c={type:"initial"};for(const u of i.iterNodeCarets("shadowRoot"))if(ci(u)){if(!u.origin.isInline()){if(u.origin.isShadowRoot()){if(c.type==="merge-block")break;if(ae(i.anchor.origin)&&i.anchor.origin.isEmpty()){const f=co(u);rh(this,qa(f,f)),i.anchor.origin.remove()}return}c.type!=="merge-next-block"&&c.type!=="merge-block"||(c={block:c.block,caret:u,type:"merge-block"})}}else{if(c.type==="merge-block")break;if(wu(u)){if(ae(u.origin)){if(u.origin.isInline()){if(!u.origin.isParentOf(i.anchor.origin))break}else c={block:u.origin,type:"merge-next-block"};continue}if(Et(u.origin)){if(!u.origin.isIsolated())if(c.type==="merge-next-block"&&(u.origin.isKeyboardSelectable()||!u.origin.isInline())&&ae(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const f=l2();f.add(u.origin.getKey()),Cr(f)}else u.origin.remove();return}break}}if(c.type==="merge-block"){const{caret:u,block:f}=c;return rh(this,qa(!u.origin.isEmpty()&&f.isEmpty()?hb(rr(f,u.direction)):i.anchor,u)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&Fw(this,r.getNode()))return}else{const c=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,c!==null&&c.isSegmented()){const u=s.offset,f=c.getTextContentSize();if(c.is(o)||t&&u!==f||!t&&u!==0)return void jw(c,t,u)}else if(o!==null&&o.isSegmented()){const u=r.offset,f=o.getTextContentSize();if(o.is(c)||t&&u!==0||!t&&u!==f)return void jw(o,t,u)}(function(u,f){const m=u.anchor,h=u.focus,v=m.getNode(),w=h.getNode();if(v===w&&m.type==="text"&&h.type==="text"){const C=m.offset,A=h.offset,x=C<A,E=x?C:A,R=x?A:C,O=R-1;E!==O&&(function(L){return!(_2(L)||EN(L))})(v.getTextContent().slice(E,R))&&(f?h.set(h.key,O,h.type):m.set(m.key,O,m.type))}})(this,t)}}if(this.removeText(),t&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&cn(r.getParent())&&r.getPreviousSibling()===null&&Fw(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function On(e){return e instanceof mm}function Dw(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function N0(e){const t=e.getStartEndPoints();if(t===null)return[0,0];const[n,r]=t;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[Dw(n),Dw(r)]}function Fw(e,t){for(let n=t;n;n=n.getParent()){if(ae(n)){if(n.collapseAtStart(e))return!0;if(Dr(n))break}if(n.getPreviousSibling())break}return!1}const EN=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function jw(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,c=0;for(let f=0;f<i;f++){const m=f===i-1;if(c=s,s+=o[f].length,t&&s===n||s>n||m){o.splice(f,1),m&&(c=void 0);break}}const u=o.join("").trim();u===""?r.remove():(r.setTextContent(u),r.select(c,c))}function zw(e,t,n,r){let o,i=t;if(Gn(e)){let s=!1;const c=e.childNodes,u=c.length,f=r._blockCursorElement;i===u&&(s=!0,i=u-1);let m=c[i],h=!1;if(m===f)m=c[i+1],h=!0;else if(f!==null){const v=f.parentNode;e===v&&t>Array.prototype.indexOf.call(v.children,f)&&i--}if(o=Kc(m),Oe(o))i=Ya(o,s?"next":"previous");else{let v=Kc(e);if(v===null)return null;if(ae(v)){const w=r.getElementByKey(v.getKey());w===null&&be(214),[v,i]=v.getDOMSlot(w).resolveChildIndex(v,w,e,t),ae(v)||be(215),s&&i>=v.getChildrenSize()&&(i=Math.max(0,v.getChildrenSize()-1));let A=v.getChildAtIndex(i);if(ae(A)&&(function(x,E,R){const O=x.getParent();return R===null||O===null||!O.canBeEmpty()||O!==R.getNode()})(A,0,n)){const x=s?A.getLastDescendant():A.getFirstDescendant();x===null?v=A:(A=x,v=ae(A)?A:A.getParentOrThrow()),i=0}Oe(A)?(o=A,v=null,i=Ya(A,s?"next":"previous")):A!==v&&s&&!h&&(ae(v)||be(216),i=Math.min(v.getChildrenSize(),i+1))}else{const w=v.getIndexWithinParent();i=t===0&&Et(v)&&Kc(e)===v?w:w+1,v=v.getParentOrThrow()}if(ae(v))return di(v.__key,i,"element")}}else o=Kc(e);return Oe(o)?di(o.__key,Ya(o,i,"clamp"),"text"):null}function Bw(e,t,n){const r=e.offset,o=e.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((n||!t)&&i===null&&ae(s)&&s.isInline()){const c=s.getPreviousSibling();Oe(c)&&e.set(c.__key,c.getTextContent().length,"text")}}else ae(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):Oe(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&ae(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&ae(s)&&s.isInline()&&!s.canInsertTextAfter()){const c=s.getNextSibling();Oe(c)&&e.set(c.__key,0,"text")}}}function o2(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Bw(e,r,o),Bw(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=jt();if(i.isComposing()&&i._compositionKey!==e.key&&ge(n)){const s=n.anchor,c=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(c.key,c.offset,c.type,!0)}}}function i2(e,t,n,r,o,i){if(e===null||n===null||!Md(o,e,n))return null;const s=zw(e,t,ge(i)?i.anchor:null,o);if(s===null)return null;const c=zw(n,r,ge(i)?i.focus:null,o);if(c===null)return null;if(s.type==="element"&&c.type==="element"){const u=Kc(e),f=Kc(n);if(Et(u)&&Et(f))return null}return o2(s,c,i),[s,c]}function L0(e){return ae(e)&&!e.isInline()}function a2(e,t,n,r,o,i){const s=os(),c=new Ml(di(e,t,o),di(n,r,i),0,"");return c.dirty=!0,s._selection=c,c}function s2(){const e=di("root",0,"element"),t=di("root",0,"element");return new Ml(e,t,0,"")}function l2(){return new mm(new Set)}function Gy(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,c=s==="selectionchange",u=!g0&&(c||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let f,m,h,v;if(ge(e)&&!u)return e.clone();if(t===null)return null;if(f=t.anchorNode,m=t.focusNode,h=t.anchorOffset,v=t.focusOffset,(c||s===void 0)&&ge(e)&&!Md(n,f,m))return e.clone();const w=i2(f,h,m,v,n,e);if(w===null)return null;const[C,A]=w;return new Ml(C,A,ge(e)?e.format:0,ge(e)?e.style:"")}function Ie(){return os()._selection}function Ou(){return jt()._editorState._selection}function Ih(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),c=i.getNode();if(!t.is(s)&&!t.is(c))return;const u=t.__key;if(e.isCollapsed()){const f=o.offset;if(n<=f&&r>0||n<f&&r<0){const m=Math.max(0,f+r);o.set(u,m,"element"),i.set(u,m,"element"),Uw(e)}}else{const f=e.isBackward(),m=f?i:o,h=m.getNode(),v=f?o:i,w=v.getNode();if(t.is(h)){const C=m.offset;(n<=C&&r>0||n<C&&r<0)&&m.set(u,Math.max(0,C+r),"element")}if(t.is(w)){const C=v.offset;(n<=C&&r>0||n<C&&r<0)&&v.set(u,Math.max(0,C+r),"element")}}Uw(e)}function Uw(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!ae(i))return;const c=i.getChildrenSize(),u=n>=c,f=u?i.getChildAtIndex(c-1):i.getChildAtIndex(n);if(Oe(f)){let m=0;u&&(m=f.getTextContentSize()),t.set(f.__key,m,"text"),r.set(f.__key,m,"text")}return}if(ae(i)){const c=i.getChildrenSize(),u=n>=c,f=u?i.getChildAtIndex(c-1):i.getChildAtIndex(n);if(Oe(f)){let m=0;u&&(m=f.getTextContentSize()),t.set(f.__key,m,"text")}}if(ae(s)){const c=s.getChildrenSize(),u=o>=c,f=u?s.getChildAtIndex(c-1):s.getChildAtIndex(o);if(Oe(f)){let m=0;u&&(m=f.getTextContentSize()),r.set(f.__key,m,"text")}}}function Oh(e,t,n,r,o){let i=null,s=0,c=null;r!==null?(i=r.__key,Oe(r)?(s=r.getTextContentSize(),c="text"):ae(r)&&(s=r.getChildrenSize(),c="element")):o!==null&&(i=o.__key,Oe(o)?c="text":ae(o)&&(c="element")),i!==null&&c!==null?e.set(i,s,c):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Ww(e,t,n,r,o){e.type==="text"?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function c2(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function kN(e,t,n,r,o,i,s){const c=r.anchorNode,u=r.focusNode,f=r.anchorOffset,m=r.focusOffset,h=document.activeElement;if(o.has(hN)&&h!==i||h!==null&&tb(h))return;if(!ge(t))return void(e!==null&&Md(n,c,u)&&r.removeAllRanges());const v=t.anchor,w=t.focus,C=v.key,A=w.key,x=kl(n,C),E=kl(n,A),R=v.offset,O=w.offset,L=t.format,M=t.style,U=t.isCollapsed();let j=x,$=E,H=!1;if(v.type==="text"){j=bu(x);const xe=v.getNode();H=xe.getFormat()!==L||xe.getStyle()!==M}else ge(e)&&e.anchor.type==="text"&&(H=!0);var G,q,pe,ie,se;if(w.type==="text"&&($=bu(E)),j!==null&&$!==null&&(U&&(e===null||H||ge(e)&&(e.format!==L||e.style!==M))&&(G=L,q=M,pe=R,ie=C,se=performance.now(),GE=[G,q,pe,ie,se]),f!==R||m!==O||c!==j||u!==$||r.type==="Range"&&U||(h!==null&&i.contains(h)||o.has(vN)||i.focus({preventScroll:!0}),v.type==="element"))){if(c2(r,j,R,$,O),!o.has(mN)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const xe=ge(t)&&t.anchor.type==="element"?j.childNodes[R]||null:r.rangeCount>0?r.getRangeAt(0):null;if(xe!==null){let Ae;if(xe instanceof Text){const Re=document.createRange();Re.selectNode(xe),Ae=Re.getBoundingClientRect()}else Ae=xe.getBoundingClientRect();(function(Re,Q,Ee){const ne=O2(Ee),re=sb(ne);if(ne===null||re===null)return;let{top:ue,bottom:me}=Q,Te=0,de=0,ve=Ee;for(;ve!==null;){const _e=ve===ne.body;if(_e)Te=0,de=mo(Re).innerHeight;else{const ze=ve.getBoundingClientRect();Te=ze.top,de=ze.bottom}let je=0;if(ue<Te?je=-(Te-ue):me>de&&(je=me-de),je!==0)if(_e)re.scrollBy(0,je);else{const ze=ve.scrollTop;ve.scrollTop+=je;const Be=ve.scrollTop-ze;ue-=Be,me-=Be}if(_e)break;ve=Nd(ve)}})(n,Ae,i)}}_0=!0}}function u2(e){let t=Ie()||Ou();t===null&&(t=Xt().selectEnd()),t.insertNodes(e)}function qg(e){let t=e;e.isCollapsed()||t.removeText();const n=Ie();ge(n)&&(t=n),ge(t)||be(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Oa(o);){const s=o;if([o,i]=TN(o,i),s.is(o))break}return i}function TN(e,t){const n=e.getParent();if(!n){const o=Sr();return Xt().append(o),o.select(),[Xt(),0]}if(Oe(e)){const o=e.splitText(t);if(o.length===0)return[n,e.getIndexWithinParent()];const i=t===0?0:1;return[n,o[0].getIndexWithinParent()+i]}if(!ae(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new Ml(di(e.__key,t,"element"),di(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function $w(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[m,h]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return h.set(m.key,m.offset,m.type),!0}const i=Qi(e.focus,n?"previous":"next"),s=r==="lineboundary",c=t==="move";let u=i,f=o==="decorators-and-blocks";if(!j2(u)){for(const m of u){f=!1;const{origin:h}=m;if(!Et(h)||h.isIsolated()||(u=m,!s||!h.isInline()))break}if(f)for(const m of pb(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(ci(m))m.origin.isInline()||(u=m);else{if(ae(m.origin))continue;Et(m.origin)&&!m.origin.isInline()&&(u=m)}break}}if(u===i)return!1;if(c&&!s&&Et(u.origin)&&u.origin.isKeyboardSelectable()){const m=l2();return m.add(u.origin.getKey()),Cr(m),!0}return u=co(u),c&&Pl(e.anchor,u),Pl(e.focus,u),f||!s}let Mn=null,Nn=null,Lr=!1,ev=!1,th=0;const Hw={characterData:!0,childList:!0,subtree:!0};function Id(){return Lr||Mn!==null&&Mn._readOnly}function tr(){Lr&&be(13)}function f2(){th>99&&be(14)}function os(){return Mn===null&&be(195,d2()),Mn}function jt(){return Nn===null&&be(196,d2()),Nn}function d2(){let e=0;const t=new Set,n=El.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=vm(o);if(nb(i))e++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),t.add(s)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function _N(){return Nn}function Vw(e,t,n){const r=t.__type,o=x2(e,r);let i=n.get(r);i===void 0&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let c=0;c<s&&(i[c](t),t.isAttached());c++);}function Kw(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function p2(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const o of r)n.add(o)}function RN(e){return Qy(e,jt()._nodes)}function Qy(e,t){const n=e.type,r=t.get(n);r===void 0&&be(17,n);const o=r.klass;e.type!==o.getType()&&be(18,o.name);const i=o.importJSON(e),s=e.children;if(ae(i)&&Array.isArray(s))for(let c=0;c<s.length;c++){const u=Qy(s[c],t);i.append(u)}return i}function Yw(e,t,n){const r=Mn,o=Lr,i=Nn;Mn=t,Lr=!0,Nn=e;try{return n()}finally{Mn=r,Lr=o,Nn=i}}function Wi(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||r===null;if(n===null)return;const i=e._editorState,s=i._selection,c=n._selection,u=e._dirtyType!==0,f=Mn,m=Lr,h=Nn,v=e._updating,w=e._observer;let C=null;if(e._pendingEditorState=null,e._editorState=n,!o&&u&&w!==null){Nn=e,Mn=n,Lr=!1,e._updating=!0;try{const U=e._dirtyType,j=e._dirtyElements,$=e._dirtyLeaves;w.disconnect(),C=YM(i,n,e,U,j,$)}catch(U){if(U instanceof Error&&e._onError(U),ev)throw U;return y2(e,null,r,n),CE(e),e._dirtyType=2,ev=!0,Wi(e,i),void(ev=!1)}finally{w.observe(r,Hw),e._updating=v,Mn=f,Lr=m,Nn=h}}n._readOnly||(n._readOnly=!0);const A=e._dirtyLeaves,x=e._dirtyElements,E=e._normalizedNodes,R=e._updateTags,O=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(U,j){const $=U._decorators;let H=U._pendingDecorators||$;const G=j._nodeMap;let q;for(q in H)G.has(q)||(H===$&&(H=k2(U)),delete H[q])})(e,n);const L=o?null:go(mo(e));if(e._editable&&L!==null&&(u||c===null||c.dirty||!c.is(s))&&r!==null&&!R.has(gN)){Nn=e,Mn=n;try{if(w!==null&&w.disconnect(),u||c===null||c.dirty){const U=e._blockCursorElement;U!==null&&z0(U,e,r),kN(s,c,e,L,R,r)}(function(U,j,$){let H=U._blockCursorElement;if(ge($)&&$.isCollapsed()&&$.anchor.type==="element"&&j.contains(document.activeElement)){const G=$.anchor,q=G.getNode(),pe=G.offset;let ie=!1,se=null;if(pe===q.getChildrenSize())nv(q.getChildAtIndex(pe-1))&&(ie=!0);else{const xe=q.getChildAtIndex(pe);if(xe!==null&&nv(xe)){const Ae=xe.getPreviousSibling();(Ae===null||nv(Ae))&&(ie=!0,se=U.getElementByKey(xe.__key))}}if(ie){const xe=U.getElementByKey(q.__key);return H===null&&(U._blockCursorElement=H=(function(Ae){const Re=Ae.theme,Q=document.createElement("div");Q.contentEditable="false",Q.setAttribute("data-lexical-cursor","true");let Ee=Re.blockCursor;if(Ee!==void 0){if(typeof Ee=="string"){const ne=yE(Ee);Ee=Re.blockCursor=ne}Ee!==void 0&&Q.classList.add(...Ee)}return Q})(U._config)),j.style.caretColor="transparent",void(se===null?xe.appendChild(H):xe.insertBefore(H,se))}}H!==null&&z0(H,U,j)})(e,r,c)}finally{w!==null&&w.observe(r,Hw),Nn=h,Mn=f}}C!==null&&(function(U,j,$,H,G){const q=Array.from(U._listeners.mutation),pe=q.length;for(let ie=0;ie<pe;ie++){const[se,xe]=q[ie];for(const Ae of xe){const Re=j.get(Ae);Re!==void 0&&se(Re,{dirtyLeaves:H,prevEditorState:G,updateTags:$})}}})(e,C,R,A,i),ge(c)||c===null||s!==null&&s.is(c)||e.dispatchCommand(dm,void 0);const M=e._pendingDecorators;M!==null&&(e._decorators=M,e._pendingDecorators=null,Gf("decorator",e,!0,M)),(function(U,j,$){const H=Xw(j),G=Xw($);H!==G&&Gf("textcontent",U,!0,G)})(e,t||i,n),Gf("update",e,!0,{dirtyElements:x,dirtyLeaves:A,editorState:n,mutatedNodes:C,normalizedNodes:E,prevEditorState:t||i,tags:R}),(function(U,j){if(U._deferred=[],j.length!==0){const $=U._updating;U._updating=!0;try{for(let H=0;H<j.length;H++)j[H]()}finally{U._updating=$}}})(e,O),(function(U){const j=U._updates;if(j.length!==0){const $=j.shift();if($){const[H,G]=$;gm(U,H,G)}}})(e)}function Gf(e,t,n,...r){const o=t._updating;t._updating=n;try{const i=Array.from(t._listeners[e]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{t._updating=o}}function Gw(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,c=e._pendingEditorState;let u;s!==void 0&&(u=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(c===null&&be(191),c._flushSync=!0),u&&e._deferred.push(u),p2(e,s.tag)),c==null?gm(e,i,s):i()}}return r}function gm(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,p2(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const c=e._editorState;let u=e._pendingEditorState,f=!1;(u===null||u._readOnly)&&(u=e._pendingEditorState=m2(u||c),f=!0),u._flushSync=s;const m=Mn,h=Lr,v=Nn,w=e._updating;Mn=u,Lr=!1,e._updating=!0,Nn=e;const C=e._headless||e.getRootElement()===null;qy(null);try{f&&(C?c._selection!==null&&(u._selection=c._selection.clone()):u._selection=(function(R,O){const L=R.getEditorState()._selection,M=go(mo(R));return ge(L)||L==null?Gy(L,M,R,O):L.clone()})(e,n&&n.event||null));const x=e._compositionKey;t(),i=Gw(e,i),(function(R,O){const L=O.getEditorState()._selection,M=R._selection;if(ge(M)){const U=M.anchor,j=M.focus;let $;if(U.type==="text"&&($=U.getNode(),$.selectionTransform(L,M)),j.type==="text"){const H=j.getNode();$!==H&&H.selectionTransform(L,M)}}})(u,e),e._dirtyType!==0&&(i?(function(R,O){const L=O._dirtyLeaves,M=R._nodeMap;for(const U of L){const j=M.get(U);Oe(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Aw(j)}})(u,e):(function(R,O){const L=O._dirtyLeaves,M=O._dirtyElements,U=R._nodeMap,j=Wa(),$=new Map;let H=L,G=H.size,q=M,pe=q.size;for(;G>0||pe>0;){if(G>0){O._dirtyLeaves=new Set;for(const ie of H){const se=U.get(ie);Oe(se)&&se.isAttached()&&se.isSimpleText()&&!se.isUnmergeable()&&Aw(se),se!==void 0&&Kw(se,j)&&Vw(O,se,$),L.add(ie)}if(H=O._dirtyLeaves,G=H.size,G>0){th++;continue}}O._dirtyLeaves=new Set,O._dirtyElements=new Map,q.delete("root")&&q.set("root",!0);for(const ie of q){const se=ie[0],xe=ie[1];if(M.set(se,xe),!xe)continue;const Ae=U.get(se);Ae!==void 0&&Kw(Ae,j)&&Vw(O,Ae,$)}H=O._dirtyLeaves,G=H.size,q=O._dirtyElements,pe=q.size,th++}O._dirtyLeaves=L,O._dirtyElements=M})(u,e),Gw(e),(function(R,O,L,M){const U=R._nodeMap,j=O._nodeMap,$=[];for(const[H]of M){const G=j.get(H);G!==void 0&&(G.isAttached()||(ae(G)&&xE(G,H,U,j,$,M),U.has(H)||M.delete(H),$.push(H)))}for(const H of $)j.delete(H);for(const H of L){const G=j.get(H);G===void 0||G.isAttached()||(U.has(H)||L.delete(H),j.delete(H))}})(c,u,e._dirtyLeaves,e._dirtyElements)),x!==e._compositionKey&&(u._flushSync=!0);const E=u._selection;if(ge(E)){const R=u._nodeMap,O=E.anchor.key,L=E.focus.key;R.get(O)!==void 0&&R.get(L)!==void 0||be(19)}else On(E)&&E._nodes.size===0&&(u._selection=null)}catch(x){return x instanceof Error&&e._onError(x),e._pendingEditorState=c,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Wi(e)}finally{Mn=m,Lr=h,Nn=v,e._updating=w,th=0}e._dirtyType!==0||e._deferred.length>0||(function(x,E){const R=E.getEditorState()._selection,O=x._selection;if(O!==null){if(O.dirty||!O.is(R))return!0}else if(R!==null)return!0;return!1})(u,e)?u._flushSync?(u._flushSync=!1,Wi(e)):f&&LN(()=>{Wi(e)}):(u._flushSync=!1,f&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function li(e,t,n){Nn===e&&n===void 0?t():gm(e,t,n)}class Qf{constructor(t,n,r){ce(this,"element");ce(this,"before");ce(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new Qf(this.element,t,this.after)}withAfter(t){return new Qf(this.element,this.before,t)}withElement(t){return this.element===t?this:new Qf(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&be(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&be(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&be(224),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(Rd||Ru||_d);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),t){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let n=this.after;n!==null;n=n.previousSibling)t++;return t}resolveChildIndex(t,n,r,o){if(r===this.element){const u=this.getFirstChildOffset();return[t,Math.min(u+t.getChildrenSize(),Math.max(u,o))]}const i=Qw(n,r);i.push(o);const s=Qw(n,this.element);let c=t.getIndexWithinParent();for(let u=0;u<s.length;u++){const f=i[u],m=s[u];if(f===void 0||f<m)break;if(f>m){c+=1;break}}return[t.getParentOrThrow(),c]}}function Qw(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;n.push(o)}return r!==e&&be(225),n.reverse()}class pi extends No{constructor(n){super(n);ce(this,"__first");ce(this,"__last");ce(this,"__size");ce(this,"__format");ce(this,"__style");ce(this,"__indent");ce(this,"__dir");ce(this,"__textFormat");ce(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return LM[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r),r=r.getNextSibling();return n}getChildrenKeys(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r.__key),r=r.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=jt()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(n)}getAllTextNodes(){const n=[];let r=this.getFirstChild();for(;r!==null;){if(Oe(r)&&n.push(r),ae(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;ae(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;ae(n);){const r=n.getLastChild();if(r===null)break;n=r}return n}getDescendantByIndex(n){const r=this.getChildren(),o=r.length;if(n>=o){const s=r[o-1];return ae(s)&&s.getLastDescendant()||s||null}const i=r[n];return ae(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:bn(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&be(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:bn(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&be(96,this.__key),n}getChildAtIndex(n){const r=this.getChildrenSize();let o,i;if(n<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=n;){if(i===n)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=n;){if(i===n)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let n="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContent(),ae(s)&&i!==o-1&&!s.isInline()&&(n+=Ja)}return n}getTextContentSize(){let n=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContentSize(),ae(s)&&i!==o-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const r=gw[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=wl[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return Mh(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){tr();const o=Ie();let i=n,s=r;const c=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const f=this.getFirstChild();if(Oe(f)||ae(f))return f.select(0,0)}else if(!(n!==void 0&&n!==c||r!==void 0&&r!==c)){const f=this.getLastChild();if(Oe(f)||ae(f))return f.select()}}i===void 0&&(i=c),s===void 0&&(s=c);const u=this.__key;return ge(o)?(o.anchor.set(u,i,"element"),o.focus.set(u,s,"element"),o.dirty=!0,o):a2(u,i,u,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(r=>r.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const r=this.getWritable();return r.__dir=n,r}setFormat(n){return this.getWritable().__format=n!==""?gw[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const r=this.getWritable();return r.__textFormat=n,r}setTextStyle(n){const r=this.getWritable();return r.__textStyle=n,r}setIndent(n){return this.getWritable().__indent=n,this}splice(n,r,o){Ph(this)&&be(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||be(226,String(n),String(r),String(i));const c=s.__key,u=[],f=[],m=this.getChildAtIndex(n+r);let h=null,v=i-r+o.length;if(n!==0)if(n===i)h=this.getLastChild();else{const C=this.getChildAtIndex(n);C!==null&&(h=C.getPreviousSibling())}if(r>0){let C=h===null?this.getFirstChild():h.getNextSibling();for(let A=0;A<r;A++){C===null&&be(100);const x=C.getNextSibling(),E=C.__key;pl(C.getWritable()),f.push(E),C=x}}let w=h;for(const C of o){w!==null&&C.is(w)&&(h=w=w.getPreviousSibling());const A=C.getWritable();A.__parent===c&&v--,pl(A);const x=C.__key;if(w===null)s.__first=x,A.__prev=null;else{const E=w.getWritable();E.__next=x,A.__prev=E.__key}C.__key===c&&be(76),A.__parent=c,u.push(x),w=C}if(n+r===i)w!==null&&(w.getWritable().__next=null,s.__last=w.__key);else if(m!==null){const C=m.getWritable();if(w!==null){const A=w.getWritable();C.__prev=w.__key,A.__next=m.__key}else C.__prev=null}if(s.__size=v,f.length){const C=Ie();if(ge(C)){const A=new Set(f),x=new Set(u),{anchor:E,focus:R}=C;Zw(E,A,x)&&Oh(E,E.getNode(),this,h,m),Zw(R,A,x)&&Oh(R,R.getNode(),this,h,m),v!==0||this.canBeEmpty()||Dr(this)||this.remove()}}return s}getDOMSlot(n){return new Qf(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(Gn(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||Dr(this)||this.getChildren().some(Oe)||(r!==0&&(n.textFormat=r),o!==""&&(n.textStyle=o)),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,r){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,r){const o=this.getDOMSlot(n);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const c=r.getElementByKey(s.getKey());c!==null&&(i==null?(o.insertChild(c),i=c):i!==c&&o.replaceChild(c,i),i=i.nextSibling)}}}function ae(e){return e instanceof pi}function Zw(e,t,n){let r=e.getNode();for(;r;){const o=r.__key;if(t.has(o)&&!n.has(o))return!0;r=r.getParent()}return!1}class h2 extends No{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Et(e){return e instanceof h2}class Mu extends pi{constructor(){super("root");ce(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Mu}getTopLevelElementOrThrow(){be(51)}getTextContent(){const n=this.__cachedText;return!Id()&&jt()._dirtyType!==0||n===null?super.getTextContent():n}remove(){be(52)}replace(n){be(53)}insertBefore(n){be(54)}insertAfter(n){be(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)ae(i)||Et(i)||be(282);return super.splice(n,r,o)}static importJSON(n){return Xt().updateFromJSON(n)}collapseAtStart(){return!0}}function cn(e){return e instanceof Mu}function m2(e){return new Od(new Map(e._nodeMap))}function Zy(){return new Od(new Map([["root",new Mu]]))}function g2(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&be(130,n.name),ae(e)){const r=t.children;Array.isArray(r)||be(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=g2(o[i]);r.push(s)}}return t}function PN(e){return e instanceof Od}class Od{constructor(t,n){ce(this,"_nodeMap");ce(this,"_selection");ce(this,"_flushSync");ce(this,"_readOnly");this._nodeMap=t,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,n){return Yw(n&&n.editor||null,this,t)}clone(t){const n=new Od(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Yw(null,this,()=>({root:g2(Xt())}))}}class Xy extends pi{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Nu extends pi{static getType(){return"paragraph"}static clone(t){return new Nu(t.__key)}createDOM(t){const n=document.createElement("p"),r=tu(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:IN,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(Gn(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Sr().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(Oe);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Sr();r.setTextFormat(t.format),r.setTextStyle(t.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||Oe(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function IN(e){const t=Sr();return e.style&&(t.setFormat(e.style.textAlign),KN(e,t)),{node:t}}function Sr(){return is(new Nu)}function Jy(e){return e instanceof Nu}const lt=0,$i=1,ON=3,v2=4;function y2(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Zy(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),n!==null&&(n.textContent="",o.set("root",n))}function MN(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=xm(r),i=r.transform;if(!n.has(i)){n.add(i);const s=r.transform();s&&t.add(s)}if(o){const s=o.$transform;s&&t.add(s),r=o.extends}else{const s=Object.getPrototypeOf(r);r=s.prototype instanceof No&&s!==No?s:void 0}}return t}function b2(e){const t=e||{},n=_N(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Zy(),c=t.namespace||(o!==null?o._config.namespace:R2()),u=t.editorState,f=[Mu,rs,Pu,Iu,Nu,Xy,...t.nodes||[]],{onError:m,html:h}=t,v=t.editable===void 0||t.editable;let w;if(e===void 0&&n!==null)w=n._nodes;else{w=new Map;for(let A=0;A<f.length;A++){let x=f[A],E=null,R=null;if(typeof x!="function"){const M=x;x=M.replace,E=M.with,R=M.withKlass||null}xm(x);const O=x.getType(),L=MN(x);w.set(O,{exportDOM:h&&h.export?h.export.get(x):void 0,klass:x,replace:E,replaceWithKlass:R,sharedNodeState:WM(f[A]),transforms:L})}}const C=new El(s,o,w,{disableEvents:i,namespace:c,theme:r},m||console.error,(function(A,x){const E=new Map,R=new Set,O=L=>{Object.keys(L).forEach(M=>{let U=E.get(M);U===void 0&&(U=[],E.set(M,U)),U.push(L[M])})};return A.forEach(L=>{const M=L.klass.importDOM;if(M==null||R.has(M))return;R.add(M);const U=M.call(L.klass);U!==null&&O(U)}),x&&O(x),E})(w,h?h.import:void 0),v,e);return u!==void 0&&(C._pendingEditorState=u,C._dirtyType=2),(function(A){A.registerCommand(PE,aN,lt),A.registerCommand(IE,sN,lt),A.registerCommand(OE,lN,lt),A.registerCommand(ME,cN,lt),A.registerCommand(NE,uN,lt)})(C),C}class El{constructor(t,n,r,o,i,s,c,u){ce(this,"_headless");ce(this,"_parentEditor");ce(this,"_rootElement");ce(this,"_editorState");ce(this,"_pendingEditorState");ce(this,"_compositionKey");ce(this,"_deferred");ce(this,"_keyToDOMMap");ce(this,"_updates");ce(this,"_updating");ce(this,"_listeners");ce(this,"_commands");ce(this,"_nodes");ce(this,"_decorators");ce(this,"_pendingDecorators");ce(this,"_config");ce(this,"_dirtyType");ce(this,"_cloneNotNeeded");ce(this,"_dirtyLeaves");ce(this,"_dirtyElements");ce(this,"_normalizedNodes");ce(this,"_updateTags");ce(this,"_observer");ce(this,"_key");ce(this,"_onError");ce(this,"_htmlConversions");ce(this,"_window");ce(this,"_editable");ce(this,"_blockCursorElement");ce(this,"_createEditorArgs");this._createEditorArgs=u,this._parentEditor=n,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=R2(),this._onError=i,this._htmlConversions=s,this._editable=c,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const n=this._listeners.update;return n.add(t),()=>{n.delete(t)}}registerEditableListener(t){const n=this._listeners.editable;return n.add(t),()=>{n.delete(t)}}registerDecoratorListener(t){const n=this._listeners.decorator;return n.add(t),()=>{n.delete(t)}}registerTextContentListener(t){const n=this._listeners.textcontent;return n.add(t),()=>{n.delete(t)}}registerRootListener(t){const n=this._listeners.root;return t(this._rootElement,null),n.add(t),()=>{t(null,this._rootElement),n.delete(t)}}registerCommand(t,n,r){r===void 0&&be(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&be(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(c=>c.size===0)&&o.delete(t)}}registerMutationListener(t,n,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(o);const c=r&&r.skipInitialization;return c!==void 0&&c||this.initializeMutationListener(n,o),()=>{s.delete(o),s.size===0&&i.delete(n)}}getRegisteredNode(t){const n=this._nodes.get(t.getType());return n===void 0&&be(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=o1(r).get(n.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,n){const r=this.getRegisteredNode(t);return r.transforms.add(n),r}registerNodeTransform(t,n){const r=this.registerNodeTransformToKlass(t,n),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);o.push(s)}return(function(s,c){const u=o1(s.getEditorState()),f=[];for(const m of c){const h=u.get(m);h&&f.push(h)}f.length!==0&&s.update(()=>{for(const m of f)for(const h of m.keys()){const v=bn(h);v&&v.markDirty()}},s._pendingEditorState===null?{tag:ul}:void 0)})(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(n))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,n){return Le(this,t,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const n=this._rootElement;if(t!==n){const r=tu(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,y2(this,n,t,o),n!==null&&(this._config.disableEvents||fN(n),r!=null&&n.classList.remove(...r)),t!==null){const i=sb(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,CE(this),this._updateTags.add(ul),Wi(this),this._config.disableEvents||(function(c,u){const f=c.ownerDocument;T0.set(c,f);const m=_h.get(f)??0;m<1&&f.addEventListener("selectionchange",qE),_h.set(f,m+1),c.__lexicalEditor=u;const h=JE(c);for(let v=0;v<k0.length;v++){const[w,C]=k0[v],A=typeof C=="function"?x=>{Iw(x)||(Pw(x),(u.isEditable()||w==="click")&&C(x,u))}:x=>{if(Iw(x))return;Pw(x);const E=u.isEditable();switch(w){case"cut":return E&&Le(u,Ky,x);case"copy":return Le(u,hm,x);case"paste":return E&&Le(u,pm,x);case"dragstart":return E&&Le(u,HE,x);case"dragover":return E&&Le(u,VE,x);case"dragend":return E&&Le(u,eN,x);case"focus":return E&&Le(u,rN,x);case"blur":return E&&Le(u,oN,x);case"drop":return E&&Le(u,$E,x)}};c.addEventListener(w,A),h.push(()=>{c.removeEventListener(w,A)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(ul),Wi(this);Gf("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&be(38);let r=t;r._readOnly&&(r=m2(t),r._selection=t._selection?t._selection.clone():null),SE(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Wi(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Wi(this)}parseEditorState(t,n){return(function(r,o,i){const s=Zy(),c=Mn,u=Lr,f=Nn,m=o._dirtyElements,h=o._dirtyLeaves,v=o._cloneNotNeeded,w=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Mn=s,Lr=!1,Nn=o,qy(null);try{const C=o._nodes;Qy(r.root,C),i&&i(),s._readOnly=!0}catch(C){C instanceof Error&&o._onError(C)}finally{o._dirtyElements=m,o._dirtyLeaves=h,o._cloneNotNeeded=v,o._dirtyType=w,Mn=c,Lr=u,Nn=f}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Wi(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):gm(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),li(this,()=>{const o=Ie(),i=Xt();o!==null?o.dirty||Cr(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),zN("focus"),BN(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=go(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Gf("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}ce(El,"version");El.version="0.39.0+prod.esm";let D0=null;function qy(e){D0=e}let NN=1;function x2(e,t){const n=eb(e,t);return n===void 0&&be(30,t),n}function eb(e,t){return e._nodes.get(t)}const LN=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function w2(e){return Et(xu(e))}function tb(e){const t=document.activeElement;if(!Gn(t))return!1;const n=t.nodeName;return Et(xu(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&vm(t)==null)}function Md(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!tb(t)&&S2(t)===e}catch{return!1}}function nb(e){return e instanceof El}function S2(e){let t=e;for(;t!=null;){const n=vm(t);if(nb(n))return n;t=Nd(t)}return null}function vm(e){return e?e.__lexicalEditor:null}function dl(e){return r2(e)||e.isToken()}function Di(e){return dl(e)||e.isSegmented()}function na(e){return Lu(e)&&e.nodeType===3}function C2(e){return Lu(e)&&e.nodeType===9}function bu(e){let t=e;for(;t!=null;){if(na(t))return t;t=t.firstChild}return null}function Mh(e,t,n){const r=wl[t];if(n!==null&&(e&r)===(n&r))return e;let o=e^r;return t==="subscript"?o&=-65:t==="superscript"?o&=-33:t==="lowercase"?(o&=-513,o&=-1025):t==="uppercase"?(o&=-257,o&=-1025):t==="capitalize"&&(o&=-257,o&=-513),o}function A2(e){return Oe(e)||fl(e)||Et(e)}function DN(e,t){const n=(function(){const s=D0;return D0=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);tr(),f2();const r=jt(),o=os(),i=""+NN++;o._nodeMap.set(i,e),ae(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function pl(e){const t=e.getParent();if(t!==null){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=i!==null?i.__key:null,c=o!==null?o.__key:null,u=o!==null?o.getWritable():null,f=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=c),u!==null&&(u.__next=s),f!==null&&(f.__prev=c),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Nh(e){f2(),Ph(e)&&be(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=os(),o=jt(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(u,f,m){let h=u;for(;h!==null;){if(m.has(h))return;const v=f.get(h);if(v===void 0)break;m.set(h,!1),h=v.__parent}})(n,i,s);const c=t.__key;o._dirtyType=1,ae(e)?s.set(c,!0):o._dirtyLeaves.add(c)}function Kn(e){tr();const t=jt(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=bn(n);r!==null&&r.getWritable()}if(e!==null){const r=bn(e);r!==null&&r.getWritable()}}}function Wa(){return Id()?null:jt()._compositionKey}function bn(e,t){const n=(t||os())._nodeMap.get(e);return n===void 0?null:n}function E2(e,t){const n=ym(e,jt());return n!==void 0?bn(n,t):null}function ym(e,t){return e[`__lexicalKey_${t._key}`]}function xu(e,t){let n=e;for(;n!=null;){const r=E2(n,t);if(r!==null)return r;n=Nd(n)}return null}function k2(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Xw(e){return e.read(()=>Xt().getTextContent())}function Xt(){return T2(os())}function T2(e){return e._nodeMap.get("root")}function Cr(e){tr();const t=os();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Kc(e){const t=jt(),n=(function(r,o){let i=r;for(;i!=null;){const s=ym(i,o);if(s!==void 0)return s;i=Nd(i)}return null})(e,t);return n===null?e===t.getRootElement()?bn("root"):null:bn(n)}function _2(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function rb(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function R2(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function P2(e){return na(e)?e.nodeValue:null}function ob(e,t,n){const r=go(mo(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let c=P2(o);const u=xu(o);if(c!==null&&Oe(u)){if(c===um&&n){const f=n.length;c=n,i=f,s=f}c!==null&&ib(u,c,i,s,e)}}}function ib(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let c=t;(s||o)&&t[t.length-1]===um&&(c=t.slice(0,-1));const u=i.getTextContent();if(o||c!==u){if(c===""){if(Kn(null),_d||Ru||Rd)i.remove();else{const A=jt();setTimeout(()=>{A.update(()=>{i.isAttached()&&i.remove()})},20)}return}const f=i.getParent(),m=Ou(),h=i.getTextContentSize(),v=Wa(),w=i.getKey();if(i.isToken()||v!==null&&w===v&&!s||ge(m)&&(f!==null&&!f.canInsertTextBefore()&&m.anchor.offset===0||m.anchor.key===e.__key&&m.anchor.offset===0&&!i.canInsertTextBefore()&&!s||m.focus.key===e.__key&&m.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const C=Ie();if(!ge(C)||n===null||r===null)return void Jw(i,c,C);if(C.setTextNodeRange(i,n,i,r),i.isSegmented()){const A=In(i.getTextContent());i.replace(A),i=A}Jw(i,c,C)}}}function Jw(e,t,n){if(e.setTextContent(t),ge(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Ya(e,i.offset,"clamp"))}}}function zp(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function FN(e,t){return zp(e,t,"altKey")&&zp(e,t,"ctrlKey")&&zp(e,t,"shiftKey")&&zp(e,t,"metaKey")}function Nt(e,t,n){return FN(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Ni={ctrlKey:!Oo,metaKey:Oo},qw={altKey:Oo,ctrlKey:!Oo};function e1(e){return e.key==="Backspace"}function t1(e){return Nt(e,"a",Ni)}function jN(e){const t=Xt();if(ge(e)){const n=e.anchor,r=e.focus,o=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),yu(e),e}{const n=t.select(0,t.getChildrenSize());return Cr(yu(n)),n}}function tu(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;const o=e[t];if(typeof o=="string"){const i=yE(o);return n[t]=i,i}return o}function ab(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,c=t.get(i);c===void 0&&be(33,i);const u=c.klass;let f=e.get(u);f===void 0&&(f=new Map,e.set(u,f));const m=f.get(s),h=m==="destroyed"&&o==="created";(m===void 0||h)&&f.set(s,h?"updated":o)}function n1(e,t,n){const r=e.getParent();let o=n,i=e;return r!==null&&(t&&n===0?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function F0(e,t){const n=e.offset;if(e.type==="element")return n1(e.getNode(),t,n);{const r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){const o=t?r.getPreviousSibling():r.getNextSibling();return o===null?n1(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function I2(e){const t=mo(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function Le(e,t,n){return(function(r,o,i){const s=rb(r);for(let c=4;c>=0;c--)for(let u=0;u<s.length;u++){const f=s[u],m=f._commands.get(o);if(m!==void 0){const h=m[c];if(h!==void 0){const v=Array.from(h),w=v.length;let C=!1;if(li(f,()=>{for(let A=0;A<w;A++)if(v[A](i,r))return void(C=!0)}),C)return C}}}return!1})(e,t,n)}function bm(e){return!cn(e)&&!e.isLastChild()&&!e.isInline()}function kl(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&be(75,t),n}function Nd(e){const t=e.assignedSlot||e.parentElement;return B0(t)?t.host:t}function O2(e){return C2(e)?e:Gn(e)?e.ownerDocument:null}function zN(e){tr(),jt()._updateTags.add(e)}function BN(e){tr(),jt()._deferred.push(e)}function j0(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function sb(e){const t=O2(e);return t?t.defaultView:null}function mo(e){const t=e._window;return t===null&&be(78),t}function UN(e){let t=e.getParentOrThrow();for(;t!==null;){if(Dr(t))return t;t=t.getParentOrThrow()}return t}function Dr(e){return cn(e)||ae(e)&&e.isShadowRoot()}function is(e){const t=jt(),n=e.getType(),r=eb(t,n);r===void 0&&be(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),c=s.constructor;return i!==null?s instanceof i||be(201,i.name,i.getType(),c.name,c.getType(),e.constructor.name,n):s instanceof e.constructor&&c!==e.constructor||be(202,c.name,c.getType(),e.constructor.name,n),s.__key===e.__key&&be(203,e.constructor.name,n,c.name,c.getType()),s}return e}function tv(e,t){!cn(e.getParent())||ae(t)||Et(t)||be(99)}function WN(e){const t=bn(e);return t===null&&be(63,e),t}function nv(e){return(Et(e)||ae(e)&&!e.canBeEmpty())&&!e.isInline()}function z0(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function go(e){return jo?(e||window).getSelection():null}function $N(e){const t=sb(e);return t?t.getSelection():null}function M2(e){return Gn(e)&&e.tagName==="A"}function Gn(e){return Lu(e)&&e.nodeType===1}function Lu(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function B0(e){return Lu(e)&&e.nodeType===11}function U0(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return e.nodeName.match(t)!==null}function Lh(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return e.nodeName.match(t)!==null}function Oa(e){if(Et(e)&&!e.isInline())return!0;if(!ae(e)||Dr(e))return!1;const t=e.getFirstChild(),n=t===null||fl(t)||Oe(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function lb(){return jt()}const r1=new WeakMap,HN=new Map;function o1(e){if(!e._readOnly&&e.isEmpty())return HN;e._readOnly||be(192);let t=r1.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let c=r.get(s);c||(c=new Map,r.set(s,c)),c.set(o,i)}return r})(e),r1.set(e,t)),t}function N2(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function VN(e){return(t=N2(e))[e2]=!0,t;var t}function KN(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function YN(e){return e.__lexicalUnmanaged===!0}function Of(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==No[t]}function xm(e){const t=vw in e.prototype?e.prototype[vw]():void 0,n=(function(s){if(!(s===No||s.prototype instanceof No)){let c="<unknown>",u="<unknown>";try{c=s.getType()}catch{}try{El.version&&(u=JSON.parse(El.version))}catch{}be(290,s.name,c,u)}return s===h2||s===pi||s===No})(e),r=!n&&Of(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,c]of Object.entries(t))i=s,o=c;if(!n&&i&&(Of(e,"getType")||(e.getType=()=>i),Of(e,"clone")||(e.clone=s=>(qy(s),new e)),Of(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!Of(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const Ln=(e,t)=>{let n=e;for(;n!=null&&!cn(n);){if(t(n))return n;n=n.getParent()}return null},GN={next:"previous",previous:"next"};class cb{constructor(t){ce(this,"origin");this.origin=t}[Symbol.iterator](){return L2({hasNext:wu,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return rr(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return rr(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,n){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,n)),this}splice(t,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),c=new Map;for(let u=i.getAdjacentCaret();u!==null&&c.size<t;u=u.getAdjacentCaret()){const f=u.origin.getWritable();c.set(f.getKey(),f)}for(const u of o){if(c.size>0){const f=i.getNodeAtCaret();if(f){if(c.delete(f.getKey()),c.delete(u.getKey()),!(f.is(u)||i.origin.is(u))){const m=u.getParent();m&&m.is(s)&&u.remove(),f.replace(u)}}else f===null&&be(263,Array.from(c).join(" "))}else i.insert(u);i=rr(u,this.direction)}for(const u of c.values())u.remove();return this}}class pd extends cb{constructor(){super(...arguments);ce(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Do(n,this.direction)}getParentCaret(n="root"){return rr(ub(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Du(this.direction);return rr(this.getNodeAtCaret(),n)||Do(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof pd&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const QN={root:cn,shadowRoot:Dr};function Du(e){return GN[e]}function ub(e,t="root"){return QN[t](e)?null:e}class Tl extends cb{constructor(){super(...arguments);ce(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rr(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ae(this.origin)?Do(this.origin,this.direction):null}getParentCaret(n="root"){return rr(ub(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Du(this.direction);return rr(this.getNodeAtCaret(),n)||Do(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Tl&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Tl||n instanceof _l)&&this.direction===n.direction&&this.origin.is(n.origin)}}class _l extends cb{constructor(n,r){super(n);ce(this,"type","text");ce(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Rl(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return rr(ub(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Rl(this.origin,Du(this.direction),this.offset)}isSamePointCaret(n){return n instanceof _l&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Tl||n instanceof _l)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return rr(this.origin,this.direction)}}function Ka(e){return e instanceof _l}function wu(e){return e instanceof Tl}function ci(e){return e instanceof pd}const ZN={next:class extends _l{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends _l{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},XN={next:class extends Tl{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Tl{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},JN={next:class extends pd{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends pd{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function rr(e,t){return e?new XN[t](e):null}function Rl(e,t,n){return e?new ZN[t](e,Ya(e,n)):null}function Ya(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&gE(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function i1(e,t){return new e5(e,t)}function Do(e,t){return ae(e)?new JN[t](e):null}function qN(e){return e&&e.getChildCaret()||e}function fb(e){return e&&qN(e.getAdjacentCaret())}class db{constructor(t,n,r){ce(this,"type","node-caret-range");ce(this,"direction");ce(this,"anchor");ce(this,"focus");this.anchor=t,this.focus=n,this.direction=r}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new db(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Ka(i)?(function(s,c){const{direction:u,origin:f}=s,m=Ya(f,c==="focus"?Du(u):u);return i1(s,m-s.offset)})(i,o):null},n=t("anchor"),r=t("focus");if(n&&r){const{caret:o}=n,{caret:i}=r;if(o.isSameNodeCaret(i))return[i1(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Ka(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Ka(r),i=s=>s.isSameNodeCaret(r)?null:fb(s)||s.getParentCaret(t);return L2({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:n.isSameNodeCaret(r)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class e5{constructor(t,n){ce(this,"type","slice");ce(this,"caret");ce(this,"distance");this.caret=t,this.distance=n}getSliceIndices(){const{distance:t,caret:{offset:n}}=this,r=n+t;return r<n?[r,n]:[n,r]}getTextContent(){const[t,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:n}}=this,[r,o]=this.getSliceIndices(),i=t.getTextContent();return Rl(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function pb(e){return qa(e,rr(Xt(),e.direction))}function t5(e){return qa(e,e)}function qa(e,t){return e.direction!==t.direction&&be(265),new db(e,t,e.direction)}function L2(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function D2(e,t){const n=nh(e.origin,t.origin);switch(n===null&&be(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const r=e.type==="text",o=t.type==="text";return r&&o?(function(i,s){return Math.sign(i-s)})(e.offset,t.offset):e.type===t.type?0:r?-1:o?1:e.type==="child"?-1:1}case"ancestor":return e.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return F2(n)}}function F2(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Bp(e,t){return t.is(e)}function a1(e){return ae(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function nh(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=a1(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=a1(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Bp(e,r)||be(276),{commonAncestor:r,type:"ancestor"}):o===null?(Bp(t,r)||be(277),{commonAncestor:r,type:"descendant"}):((ae(i)||Bp(e,i))&&(ae(o)||Bp(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||be(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Qi(e,t){const{type:n,key:r,offset:o}=e,i=WN(e.key);return n==="text"?(Oe(i)||be(266,i.getType(),r),Rl(i,t,o)):(ae(i)||be(267,i.getType(),r),o5(i,e.offset,t))}function Pl(e,t){const{origin:n,direction:r}=t,o=r==="next";Ka(t)?e.set(n.getKey(),t.offset,"text"):wu(t)?Oe(n)?e.set(n.getKey(),Ya(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ci(t)&&ae(n)||be(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function n5(e){const t=Ie(),n=ge(t)?t:s2();return rh(n,e),Cr(n),n}function rh(e,t){Pl(e.anchor,t.anchor),Pl(e.focus,t.focus)}function s1(e){const{anchor:t,focus:n}=e,r=Qi(t,"next"),o=Qi(n,"next"),i=D2(r,o)<=0?"next":"previous";return qa(Su(r,i),Su(o,i))}function hb(e){const{direction:t,origin:n}=e,r=rr(n,Du(t)).getNodeAtCaret();return r?rr(r,t):Do(n.getParentOrThrow(),t)}function l1(e,t="root"){const n=[e];for(let r=ci(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(hb(r));return n}function rv(e){return!!e&&e.origin.isAttached()}function r5(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=z2(e,r),s=l1(i.anchor,n),c=l1(i.focus.getFlipped(),n),u=new Set,f=[];for(const C of i.iterNodeCarets(n))if(ci(C))u.add(C.origin.getKey());else if(wu(C)){const{origin:A}=C;ae(A)&&!u.has(A.getKey())||f.push(A)}for(const C of f)C.remove();for(const C of i.getTextSlices()){if(!C)continue;const{origin:A}=C.caret,x=A.getTextContentSize(),E=hb(rr(A,r)),R=A.getMode();if(Math.abs(C.distance)===x&&o==="removeEmptySlices"||R==="token"&&C.distance!==0)E.remove();else if(C.distance!==0){o="removeEmptySlices";let O=C.removeTextSlice();const L=C.caret.origin;if(R==="segmented"){const M=O.origin,U=In(M.getTextContent()).setStyle(M.getStyle()).setFormat(M.getFormat());E.replaceOrInsert(U),O=Rl(U,r,O.offset)}L.is(s[0].origin)&&(s[0]=O),L.is(c[0].origin)&&(c[0]=O.getFlipped())}}let m,h;for(const C of s)if(rv(C)){m=co(C);break}for(const C of c)if(rv(C)){h=co(C);break}const v=(function(C,A,x){if(!C||!A)return null;const E=C.getParentAtCaret(),R=A.getParentAtCaret();if(!E||!R)return null;const O=E.getParents().reverse();O.push(E);const L=R.getParents().reverse();L.push(R);const M=Math.min(O.length,L.length);let U;for(U=0;U<M&&O[U]===L[U];U++);const j=(G,q)=>{let pe;for(let ie=U;ie<G.length;ie++){const se=G[ie];if(Dr(se))return;!pe&&q(se)&&(pe=se)}return pe},$=j(O,Oa),H=$&&j(L,G=>x.has(G.getKey())&&Oa(G));return $&&H?[$,H]:null})(m,h,u);if(v){const[C,A]=v;Do(C,"previous").splice(0,A.getChildren()),A.remove()}const w=[m,h,...s,...c].find(rv);if(w)return t5(Su(co(w),e.direction));be(269,JSON.stringify(s.map(C=>C.origin.__key)))}function co(e){const t=(function(o){let i=o;for(;ci(i);){const s=fb(i);if(!ci(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(Oe(t.origin))return Ka(t)?t:Rl(t.origin,n,n);const r=t.getAdjacentCaret();return wu(r)&&Oe(r.origin)?Rl(r.origin,n,Du(n)):t}function j2(e){return Ka(e)&&e.offset!==Ya(e.origin,e.direction)}function Su(e,t){return e.direction===t?e:e.getFlipped()}function z2(e,t){return e.direction===t?e:qa(Su(e.focus,t),Su(e.anchor,t))}function o5(e,t,n){let r=Do(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Su(r,n)}function i5(...e){return e}function a5(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const B2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,s5=B2?Y.useLayoutEffect:Y.useEffect,Up={tag:ul};function l5({initialConfig:e,children:t}){const n=Y.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:c,html:u}=e,f=wM(null,r),m=b2({editable:e.editable,html:u,namespace:o,nodes:i,onError:h=>s(h,m),theme:r});return(function(h,v){if(v!==null){if(v===void 0)h.update(()=>{const w=Xt();if(w.isEmpty()){const C=Sr();w.append(C);const A=B2?document.activeElement:null;(Ie()!==null||A!==null&&A===h.getRootElement())&&C.select()}},Up);else if(v!==null)switch(typeof v){case"string":{const w=h.parseEditorState(v);h.setEditorState(w,Up);break}case"object":h.setEditorState(v,Up);break;case"function":h.update(()=>{Xt().isEmpty()&&v(h)},Up)}}})(m,c),[m,f]},[]);return s5(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),D.jsx(mE.Provider,{value:n,children:t})}const c5=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function u5(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function f5(){return(function(e){const[t]=ir(),n=Y.useMemo(()=>e(t),[t,e]),[r,o]=Y.useState(()=>n.initialValueFn()),i=Y.useRef(r);return c5(()=>{const{initialValueFn:s,subscribe:c}=n,u=s();return i.current!==u&&(i.current=u,o(u)),c(f=>{i.current=f,o(f)})},[n,e]),r})(u5)}function d5(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const W0=new Map;function U2(e){const t={};if(!e)return t;const n=e.split(";");for(const r of n)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function c1(e){let t=W0.get(e);return t===void 0&&(t=U2(e),W0.set(e,t)),t}function W2(e){const t=lb().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function $2(e){return W2(cn(e)?e:e.getParentOrThrow())}function u1(e){const t=$2(e);return t!==null&&t.direction==="rtl"}function H2(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Di(t)&&r!==null){const[o,i]=r,s=e.isBackward(),c=o.getNode(),u=i.getNode(),f=t.is(c),m=t.is(u);if(f||m){const[h,v]=N0(e),w=c.is(u),C=t.is(s?u:c),A=t.is(s?c:u);let x,E=0;w?(E=h>v?v:h,x=h>v?h:v):C?(E=s?v:h,x=void 0):A&&(E=0,x=s?h:v);const R=t.__text.slice(E,x);R!==t.__text&&(n==="clone"&&(t=VN(t)),t.__text=R)}}return t}function f1(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return ae(t)||d5(177),e.offset===t.getChildrenSize()}function p5(e){const t=e.getStyle(),n=U2(t);W0.set(t,n)}function V2(e){const t=K2(e);return t!==null&&t.writingMode==="vertical-rl"}function K2(e){const t=e.anchor.getNode();return ae(t)?W2(t):$2(t)}function d1(e,t){let n=V2(e)?!t:t;Y2(e)&&(n=!n);const r=Qi(e.focus,n?"previous":"next");if(j2(r))return!1;for(const o of pb(r)){if(ci(o))return!o.origin.isInline();if(!ae(o.origin)){if(Et(o.origin))return!0;break}}return!1}function h5(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Y2(e){const t=K2(e);return t!==null&&t.direction==="rtl"}function p1(e,t,n){const r=Y2(e);let o;o=V2(e)||r?!n:n,h5(e,t,o,"character")}function m5(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const G2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,g5=G2&&"documentMode"in document?document.documentMode:null;!(!G2||!("InputEvent"in window)||g5)&&"getTargetRanges"in new window.InputEvent("input");function Q2(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}function Fo(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function mb(e,...t){const n=Q2(...t);n.length>0&&e.classList.add(...n)}function Z2(e,...t){const n=Q2(...t);n.length>0&&e.classList.remove(...n)}function v5(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function y5(e){const t=Ln(e,n=>ae(n)&&!n.isInline());return ae(t)||m5(4,e.__key),t}function $a(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const b5=Symbol.for("preact-signals");function wm(){if(Ga>1)return void Ga--;let e,t=!1;for(;Zf!==void 0;){let n=Zf;for(Zf=void 0,$0++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&X2(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if($0=0,Ga--,t)throw e}function x5(e){if(Ga>0)return e();Ga++;try{return e()}finally{wm()}}let Pt,Zf;function h1(e){const t=Pt;Pt=void 0;try{return e()}finally{Pt=t}}let Ga=0,$0=0,oh=0;function m1(e){if(Pt===void 0)return;let t=e.n;return t===void 0||t.t!==Pt?(t={i:0,S:e,p:Pt.s,n:void 0,t:Pt,e:void 0,x:void 0,r:t},Pt.s!==void 0&&(Pt.s.n=t),Pt.s=t,e.n=t,32&Pt.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Pt.s,t.n=void 0,Pt.s.n=t,Pt.s=t),t):void 0}function yr(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function w5(e,t){return new yr(e,t)}function X2(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function g1(e){for(let t=e.s;t!==void 0;t=t.n){const n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function J2(e){let t,n=e.s;for(;n!==void 0;){const r=n.p;n.i===-1?(n.S.U(n),r!==void 0&&(r.n=n.n),n.n!==void 0&&(n.n.p=r)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=r}e.s=t}function Fc(e,t){yr.call(this,void 0),this.x=e,this.s=void 0,this.g=oh-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function q2(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Ga++;const n=Pt;Pt=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,gb(e),r}finally{Pt=n,wm()}}}function gb(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,q2(e)}function S5(e){if(Pt!==this)throw new Error("Out-of-order effect");J2(this),Pt=e,this.f&=-2,8&this.f&&gb(this),wm()}function $c(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function hd(e,t){const n=new $c(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function ek(e,t={}){const n={};for(const r in e){const o=t[r],i=w5(o===void 0?e[r]:o);n[r]=i}return n}yr.prototype.brand=b5,yr.prototype.h=function(){return!0},yr.prototype.S=function(e){const t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:h1(()=>{var n;(n=this.W)==null||n.call(this)}))},yr.prototype.U=function(e){if(this.t!==void 0){const t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&h1(()=>{var r;(r=this.Z)==null||r.call(this)}))}},yr.prototype.subscribe=function(e){return hd(()=>{const t=this.value,n=Pt;Pt=void 0;try{e(t)}finally{Pt=n}},{name:"sub"})},yr.prototype.valueOf=function(){return this.value},yr.prototype.toString=function(){return this.value+""},yr.prototype.toJSON=function(){return this.value},yr.prototype.peek=function(){const e=Pt;Pt=void 0;try{return this.value}finally{Pt=e}},Object.defineProperty(yr.prototype,"value",{get(){const e=m1(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if($0>100)throw new Error("Cycle detected");this.v=e,this.i++,oh++,Ga++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{wm()}}}}),Fc.prototype=new yr,Fc.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===oh))return!0;if(this.g=oh,this.f|=1,this.i>0&&!X2(this))return this.f&=-2,!0;const e=Pt;try{g1(this),Pt=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Pt=e,J2(this),this.f&=-2,!0},Fc.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}yr.prototype.S.call(this,e)},Fc.prototype.U=function(e){if(this.t!==void 0&&(yr.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Fc.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Fc.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=m1(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),$c.prototype.c=function(){const e=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},$c.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,q2(this),g1(this),Ga++;const e=Pt;return Pt=this,S5.bind(this,e)},$c.prototype.N=function(){2&this.f||(this.f|=2,this.o=Zf,Zf=this)},$c.prototype.d=function(){this.f|=8,1&this.f||gb(this)},$c.prototype.dispose=function(){this.d()};function C5(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function Ut(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function tk(e,t){if(e&&t&&!Array.isArray(t)&&typeof e=="object"&&typeof t=="object"){const n=e,r=t;for(const o in r)n[o]=tk(n[o],r[o]);return e}return t}const vb=0,H0=1,nk=2,ov=3,Wp=4,jc=5,iv=6,Mf=7;function av(e){return e.id===vb}function rk(e){return e.id===nk}function A5(e){return(function(t){return t.id===H0})(e)||Ut(305,String(e.id),String(H0)),Object.assign(e,{id:nk})}const E5=new Set;class k5{constructor(t,n){ce(this,"builder");ce(this,"configs");ce(this,"_dependency");ce(this,"_peerNameSet");ce(this,"extension");ce(this,"state");ce(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:vb}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):a5;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;rk(n)||Ut(306,String(n.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},o={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(c,u,f){return Object.assign(c,{config:u,id:ov,registerState:f})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(c,u,f){return Object.assign(c,{id:Wp,initResult:u,registerState:f})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Wp&&Ut(307,String(n.id),String(jc)),this.extension.build&&(r=this.extension.build(t,n.config,n.registerState));const o={...n.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,s,c){return Object.assign(i,{id:jc,output:s,registerState:c})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==jc&&Ut(308,String(r.id),String(jc));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:iv})})(r),()=>{const i=this.state;i.id!==Mf&&Ut(309,String(r.id),String(Mf)),this.state=(function(s){return Object.assign(s,{id:jc})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==iv&&Ut(310,String(n.id),String(iv)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:Mf})})(n),r}getSignal(){return this._signal===void 0&&Ut(311),this._signal}getInitResult(){this.extension.init===void 0&&Ut(312,this.extension.name);const t=this.state;return(function(n){return n.id>=Wp})(t)||Ut(313,String(t.id),String(Wp)),t.initResult}getInitPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(n){return n.id>=ov})(t)||Ut(314,String(t.id),String(ov)),{config:t.config}}getPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}getInitDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Ut(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Ut(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=Mf})(t)||Ut(316,String(t.id),String(Mf)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||E5}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([n])=>n)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(n){return n.id>=jc})(t)||Ut(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const v1={tag:ul};function T5(){const e=Xt();e.isEmpty()&&e.append(Sr())}const _5={config:{setOptions:v1,updateOptions:v1},init:({$initialEditorState:e=T5})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:i}=o;if(PN(i))e.setEditorState(i,n);else if(typeof i=="function")e.update(()=>{i(e)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const s=e.parseEditorState(i);e.setEditorState(s,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Mu,rs,Pu,Iu,Nu]},y1=Symbol.for("@lexical/extension/LexicalBuilder");function b1(){}function R5(e){throw e}function $p(e){return Array.isArray(e)?e:[e]}const sv="0.39.0+prod.esm";class nu{constructor(t){ce(this,"roots");ce(this,"extensionNameMap");ce(this,"outgoingConfigEdges");ce(this,"incomingEdges");ce(this,"conflicts");ce(this,"_sortedExtensionReps");ce(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=sv,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[$p(_5)];for(const r of t)n.push($p(r));return new nu(n)}static maybeFromEditor(t){const n=t[y1];return n&&(n.PACKAGE_VERSION!==sv&&Ut(292,n.PACKAGE_VERSION,sv),n instanceof nu||Ut(293)),n}static fromEditor(t){const n=nu.maybeFromEditor(t);return n===void 0&&Ut(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(b2({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[y1]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=b1;function n(){try{t()}finally{t=b1}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=Fo(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const n=this.extensionNameMap.get(t.name);if(n)return n.extension!==t&&Ut(295,t.name),n}addEdge(t,n,r){const o=this.outgoingConfigEdges.get(t);o?o.set(n,r):this.outgoingConfigEdges.set(t,new Map([[n,r]]));const i=this.incomingEdges.get(n);i?i.add(t):this.incomingEdges.set(n,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Ut(296);const n=$p(t),[r]=n;typeof r.name!="string"&&Ut(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&Ut(298,r.name),!o){o=new k5(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&Ut(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&Ut(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const c=$p(s);this.addEdge(r.name,c[0].name,c.slice(1)),this.addExtension(c)}for(const[s,c]of r.peerDependencies||[])this.addEdge(r.name,s,c?[c]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(rk(i))return;const s=r.extension.name;var c;av(i)||Ut(300,s,o||"[unknown]"),av(c=i)||Ut(304,String(c.id),String(vb)),i=Object.assign(c,{id:H0}),r.state=i;const u=this.outgoingConfigEdges.get(s);if(u)for(const f of u.keys()){const m=this.extensionNameMap.get(f);m&&n(m,s)}i=A5(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())av(r.state)&&n(r);for(const r of t)for(const[o,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const s=this.extensionNameMap.get(o);if(s)for(const c of i)s.configs.add(c)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Ut(301,r.name);for(const s of o)i.configs.add(s)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const n=this.sortedExtensionReps(),r=new AbortController,o=[()=>r.abort()],i=r.signal;for(const s of n){const c=s.register(t,i);c&&o.push(c)}for(const s of n){const c=s.afterRegistration(t);c&&o.push(c)}return Fo(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},c=this.sortedExtensionReps();for(const m of c){const{extension:h}=m;if(h.onError!==void 0&&(t.onError=h.onError),h.disableEvents!==void 0&&(t.disableEvents=h.disableEvents),h.parentEditor!==void 0&&(t.parentEditor=h.parentEditor),h.editable!==void 0&&(t.editable=h.editable),h.namespace!==void 0&&(t.namespace=h.namespace),h.$initialEditorState!==void 0&&(t.$initialEditorState=h.$initialEditorState),h.nodes)for(const v of C5(h)){if(typeof v!="function"){const w=r.get(v.replace);w&&Ut(302,h.name,v.replace.name,w.extension.name),r.set(v.replace,m)}n.add(v)}if(h.html){if(h.html.export)for(const[v,w]of h.html.export.entries())o.set(v,w);h.html.import&&Object.assign(i,h.html.import)}h.theme&&tk(s,h.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const u=Object.keys(i).length>0,f=o.size>0;(u||f)&&(t.html={},u&&(t.html.import=i),f&&(t.html.export=o));for(const m of c)m.init(t);return t.onError||(t.onError=R5),t}}function P5(e,t){const n=nu.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const I5={name:"@lexical/react/ReactProvider"};function O5(){return Xt().getTextContent()}function M5(e,t=!0){if(e)return!1;let n=O5();return t&&(n=n.trim()),n===""}function N5(e){if(!M5(e,!1))return!1;const t=Xt().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Et(o))return!1;if(ae(o)){if(!Jy(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let c=0;c<s;c++){const u=i[r];if(!Oe(u))return!1}}}return!0}function ok(e){return()=>N5(e)}function L5(e){const t=window.location.origin,n=r=>{if(r.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const c=s.payload;if(c&&c.functionId==="makeChanges"){const u=c.args;if(u){const[f,m,h,v,w]=u;e.update(()=>{const C=Ie();if(ge(C)){const A=C.anchor;let x=A.getNode(),E=0,R=0;if(Oe(x)&&f>=0&&m>=0&&(E=f,R=f+m,C.setTextNodeRange(x,E,x,R)),E===R&&h===""||(C.insertRawText(h),x=A.getNode()),Oe(x)){E=v,R=v+w;const O=x.getTextContentSize();E=E>O?O:E,R=R>O?O:R,C.setTextNodeRange(x,E,x,R)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function ik(e,t){const n=C2(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!lk.has(i.nodeName)){const s=ck(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Xy&&s.insertAfter(Al());for(const s of i){const c=s.getChildren();for(const u of c)s.insertBefore(u);s.remove()}})(o),r}function ak(e,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Xt().getChildren();for(let o=0;o<r.length;o++)sk(e,r[o],n,t);return n.innerHTML}function sk(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=ae(t)&&t.excludeFromCopy("html");let s=t;r!==null&&Oe(t)&&(s=H2(r,t,"clone"));const c=ae(s)?s.getChildren():[],u=eb(e,s.getType());let f;f=u&&u.exportDOM!==void 0?u.exportDOM(e,s):s.exportDOM(e);const{element:m,after:h}=f;if(!m)return!1;const v=document.createDocumentFragment();for(let w=0;w<c.length;w++){const C=c[w],A=sk(e,C,v,r);!o&&ae(t)&&A&&t.extractWithChild(C,r,"html")&&(o=!0)}if(o&&!i){if((Gn(m)||B0(m))&&m.append(v),n.append(m),h){const w=h.call(s,m);w&&(B0(m)?m.replaceChildren(w):m.replaceWith(w))}}else n.append(v);return o}const lk=new Set(["STYLE","SCRIPT"]);function ck(e,t,n,r,o=new Map,i){let s=[];if(lk.has(e.nodeName))return s;let c=null;const u=(function(C,A){const{nodeName:x}=C,E=A._htmlConversions.get(x.toLowerCase());let R=null;if(E!==void 0)for(const O of E){const L=O(C);L!==null&&(R===null||(R.priority||0)<=(L.priority||0))&&(R=L)}return R!==null?R.conversion:null})(e,t),f=u?u(e):null;let m=null;if(f!==null){m=f.after;const C=f.node;if(c=Array.isArray(C)?C[C.length-1]:C,c!==null){for(const[,A]of o)if(c=A(c,i),!c)break;c&&s.push(...Array.isArray(C)?C:[c])}f.forChild!=null&&o.set(e.nodeName,f.forChild)}const h=e.childNodes;let v=[];const w=(c==null||!Dr(c))&&(c!=null&&L0(c)||r);for(let C=0;C<h.length;C++)v.push(...ck(h[C],t,n,w,new Map(o),c));return m!=null&&(v=m(v)),Lh(e)&&(v=D5(e,v,w?()=>{const C=new Xy;return n.push(C),C}:Sr)),c==null?v.length>0?s=s.concat(v):Lh(e)&&(function(C){return C.nextSibling==null||C.previousSibling==null?!1:U0(C.nextSibling)&&U0(C.previousSibling)})(e)&&(s=s.concat(Al())):ae(c)&&c.append(...v),s}function D5(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const c=t[s];if(L0(c))r&&!c.getFormat()&&c.setFormat(r),o.push(c);else if(i.push(c),s===t.length-1||s<t.length-1&&L0(t[s+1])){const u=n();u.setFormat(r),u.append(...i),o.push(u),i=[]}}return o}function Dh(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function F5(e,t=Ie()){return t==null&&Dh(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?"":ak(e,t)}function j5(e,t=Ie()){return t==null&&Dh(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(z5(e,t))}function x1(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const c=JSON.parse(r);if(c.namespace===n._config.namespace&&Array.isArray(c.nodes))return w1(n,B5(c.nodes),t)}catch(c){console.error(c)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const c=new DOMParser().parseFromString((function(u){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:f=>f}).createHTML(u):u})(o),"text/html");return w1(n,ik(n,c),t)}catch(c){console.error(c)}const s=i||e.getData("text/uri-list");if(s!=null)if(ge(t)){const c=s.split(/(\r?\n|\t)/);c[c.length-1]===""&&c.pop();for(let u=0;u<c.length;u++){const f=Ie();if(ge(f)){const m=c[u];m===`
|
|
714
|
+
`||m===`\r
|
|
715
|
+
`?f.insertParagraph():m===" "?f.insertNodes([Pd()]):f.insertText(m)}}}else t.insertRawText(s)}function w1(e,t,n){e.dispatchCommand(GM,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if(ge(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=Qi(o,"previous");if(s)if(Ka(s))i=s.origin;else{const c=qa(s,Do(Xt(),"next").getFlipped());for(const u of c){if(Oe(u.origin)){i=u.origin;break}if(ae(u.origin)&&!u.origin.isInline())break}}if(i&&Oe(i)){const c=i.getFormat(),u=i.getStyle();r.format===c&&r.style===u||(r.format=c,r.style=u,r.dirty=!0)}}})(n))}function uk(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=ae(n)&&n.excludeFromCopy("html");let s=n;t!==null&&Oe(s)&&(s=H2(t,s,"clone"));const c=ae(s)?s.getChildren():[],u=(function(f){const m=f.exportJSON(),h=f.constructor;if(m.type!==h.getType()&&Dh(58,h.name),ae(f)){const v=m.children;Array.isArray(v)||Dh(59,h.name)}return m})(s);Oe(s)&&s.getTextContentSize()===0&&(o=!1);for(let f=0;f<c.length;f++){const m=c[f],h=uk(e,t,m,u.children);!o&&ae(n)&&h&&n.extractWithChild(m,t,"clone")&&(o=!0)}if(o&&!i)r.push(u);else if(Array.isArray(u.children))for(let f=0;f<u.children.length;f++){const m=u.children[f];r.push(m)}return o}function z5(e,t){const n=[],r=Xt().getChildren();for(let o=0;o<r.length;o++)uk(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function B5(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=RN(r);Oe(o)&&p5(o),t.push(o)}return t}let zc=null;async function S1(e,t,n){if(zc!==null)return!1;if(t!==null)return new Promise((f,m)=>{e.update(()=>{f(C1(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=go(o);if(r===null||s===null)return!1;const c=i.createElement("span");c.style.cssText="position: fixed; top: -1000px;",c.append(i.createTextNode("#")),r.append(c);const u=new Range;return u.setStart(c,0),u.setEnd(c,1),s.removeAllRanges(),s.addRange(u),new Promise((f,m)=>{const h=e.registerCommand(hm,v=>($a(v,ClipboardEvent)&&(h(),zc!==null&&(o.clearTimeout(zc),zc=null),f(C1(e,v,n))),!0),v2);zc=o.setTimeout(()=>{h(),zc=null,f(!1)},50),i.execCommand("copy"),c.remove()})}function C1(e,t,n){if(n===void 0){const o=go(e._window),i=Ie();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,c=o.focusNode;if(s!==null&&c!==null&&!Md(e,s,c))return!1;n=U5(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(W5(r,n),!0)}const fk=[["text/html",F5],["application/x-lexical-editor",j5]];function U5(e=Ie()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=lb();for(const[r,o]of fk){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function W5(e,t){for(const[n]of fk)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function A1(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Nl=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,$5=Nl&&"documentMode"in document?document.documentMode:null,H5=Nl&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),V5=!(!Nl||!("InputEvent"in window)||$5)&&"getTargetRanges"in new window.InputEvent("input"),K5=Nl&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),E1=Nl&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Y5=Nl&&/^(?=.*Chrome).*/i.test(navigator.userAgent),G5=Nl&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&H5&&!Y5,k1=Ye("DRAG_DROP_PASTE_FILE");function Hp(e){let t=null;if($a(e,DragEvent)?t=e.dataTransfer:$a(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function T1(e){const t=Ie();if(!ge(t))return!1;const n=new Set,r=t.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(n.has(s))continue;const c=Ln(i,f=>ae(f)&&!f.isInline());if(c===null)continue;const u=c.getKey();c.canIndent()&&!n.has(u)&&(n.add(u),e(c))}return n.size>0}function _1(e){const t=xu(e);return Et(t)}function lv(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Q5(e){return Fo(e.registerCommand(Wy,t=>{const n=Ie();return!!On(n)&&(n.clear(),!0)},lt),e.registerCommand(cl,t=>{const n=Ie();return ge(n)?(n.deleteCharacter(t),!0):!!On(n)&&(n.deleteNodes(),!0)},lt),e.registerCommand(cd,t=>{const n=Ie();return!!ge(n)&&(n.deleteWord(t),!0)},lt),e.registerCommand(ud,t=>{const n=Ie();return!!ge(n)&&(n.deleteLine(t),!0)},lt),e.registerCommand(qc,t=>{const n=Ie();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)x1(r,n,e);else if(ge(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},lt),e.registerCommand(A0,()=>{const t=Ie();return!!ge(t)&&(t.removeText(),!0)},lt),e.registerCommand(ii,t=>{const n=Ie();return!!ge(n)&&(n.formatText(t),!0)},lt),e.registerCommand(qM,t=>{const n=Ie();if(!ge(n)&&!On(n))return!1;const r=n.getNodes();for(const o of r){const i=Ln(o,s=>ae(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},lt),e.registerCommand(Jc,t=>{const n=Ie();return!!ge(n)&&(n.insertLineBreak(t),!0)},lt),e.registerCommand(ld,()=>{const t=Ie();return!!ge(t)&&(t.insertParagraph(),!0)},lt),e.registerCommand(XM,()=>(u2([Pd()]),!0),lt),e.registerCommand(JM,()=>T1(t=>{const n=t.getIndent();t.setIndent(n+1)}),lt),e.registerCommand(Tw,()=>T1(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),lt),e.registerCommand(FE,t=>{const n=Ie();if(On(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if(ge(n)){const r=F0(n.focus,!0);if(!t.shiftKey&&Et(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},lt),e.registerCommand(jE,t=>{const n=Ie();if(On(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if(ge(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===Xt().getChildrenSize()})(n))return t.preventDefault(),!0;const r=F0(n.focus,!1);if(!t.shiftKey&&Et(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},lt),e.registerCommand(DE,t=>{const n=Ie();if(On(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),u1(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!ge(n))return!1;if(d1(n,!0)){const r=t.shiftKey;return t.preventDefault(),p1(n,r,!0),!0}return!1},lt),e.registerCommand(LE,t=>{const n=Ie();if(On(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),u1(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!ge(n))return!1;const r=t.shiftKey;return!!d1(n,!1)&&(t.preventDefault(),p1(n,r,!1),!0)},lt),e.registerCommand(BE,t=>{if(_1(t.target))return!1;const n=Ie();if(ge(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(cn(i))return!1;const s=y5(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Tw,void 0);if(E1&&navigator.language==="ko-KR")return!1}else if(!On(n))return!1;return t.preventDefault(),e.dispatchCommand(cl,!0)},lt),e.registerCommand(UE,t=>{if(_1(t.target))return!1;const n=Ie();return!(!ge(n)&&!On(n))&&(t.preventDefault(),e.dispatchCommand(cl,!1))},lt),e.registerCommand(fd,t=>{const n=Ie();if(!ge(n))return!1;if(lv(n),t!==null){if((E1||K5||G5)&&V5)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Jc,!1)}return e.dispatchCommand(ld,void 0)},lt),e.registerCommand(Vy,()=>{const t=Ie();return!!ge(t)&&(e.blur(),!0)},lt),e.registerCommand($E,t=>{const[,n]=Hp(t);if(n.length>0){const o=A1(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,c=xu(s);if(c!==null){const u=s2();if(Oe(c))u.anchor.set(c.getKey(),i,"text"),u.focus.set(c.getKey(),i,"text");else{const m=c.getParentOrThrow().getKey(),h=c.getIndexWithinParent()+1;u.anchor.set(m,h,"element"),u.focus.set(m,h,"element")}const f=yu(u);Cr(f)}e.dispatchCommand(k1,n)}return t.preventDefault(),!0}const r=Ie();return!!ge(r)},lt),e.registerCommand(HE,t=>{const[n]=Hp(t),r=Ie();return!(n&&!ge(r))},lt),e.registerCommand(VE,t=>{const[n]=Hp(t),r=Ie();if(n&&!ge(r))return!1;const o=A1(t.clientX,t.clientY);if(o!==null){const i=xu(o.node);Et(i)&&t.preventDefault()}return!0},lt),e.registerCommand(E0,()=>(jN(),!0),lt),e.registerCommand(hm,t=>(S1(e,$a(t,ClipboardEvent)?t:null),!0),lt),e.registerCommand(Ky,t=>((async function(n,r){await S1(r,$a(n,ClipboardEvent)?n:null),r.update(()=>{const o=Ie();ge(o)?o.removeText():On(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),lt),e.registerCommand(pm,t=>{const[,n,r]=Hp(t);return n.length>0&&!r?(e.dispatchCommand(k1,n),!0):Lu(t.target)&&tb(t.target)?!1:Ie()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Ie(),c=$a(o,InputEvent)||$a(o,KeyboardEvent)?null:o.clipboardData;c!=null&&s!==null&&x1(c,s,i)},{tag:pN})})(t,e),!0)},lt),e.registerCommand(zE,t=>{const n=Ie();return ge(n)&&lv(n),!1},lt),e.registerCommand(WE,t=>{const n=Ie();return ge(n)&&lv(n),!1},lt))}function Z5(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const yb=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function X5({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=Y.useState(()=>n.getDecorators());return yb(()=>n.registerDecoratorListener(s=>{ui.flushSync(()=>{i(s)})}),[n]),Y.useEffect(()=>{i(n.getDecorators())},[n]),Y.useMemo(()=>{const s=[],c=Object.keys(o);for(let u=0;u<c.length;u++){const f=c[u],m=D.jsx(r,{onError:v=>n._onError(v),children:D.jsx(Y.Suspense,{fallback:null,children:o[f]})}),h=n.getElementByKey(f);h!==null&&s.push(ui.createPortal(m,h,f))}return s},[r,o,n])})(e,t)}function J5({editor:e,ErrorBoundary:t}){return(function(n){const r=nu.maybeFromEditor(n);if(r&&r.hasExtensionByName(I5.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&Z5(320,o);return!0}return!1})(e)?null:D.jsx(X5,{editor:e,ErrorBoundary:t})}function R1(e){return e.getEditorState().read(ok(e.isComposing()))}function q5({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ir();return(function(o){yb(()=>Fo(Q5(o),L5(o)),[o])})(r),D.jsxs(D.Fragment,{children:[e,D.jsx(eL,{content:t}),D.jsx(J5,{editor:r,ErrorBoundary:n})]})}function eL({content:e}){const[t]=ir(),n=(function(o){const[i,s]=Y.useState(()=>R1(o));return yb(()=>{function c(){const u=R1(o);s(u)}return c(),Fo(o.registerUpdateListener(()=>{c()}),o.registerEditableListener(()=>{c()}))},[o]),i})(t),r=f5();return n?typeof e=="function"?e(r):e:null}function tL(e,t,n,r,o){if(e===null||n.size===0&&r.size===0&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!(ge(i)&&ge(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const c=(function(E,R,O){const L=E._nodeMap,M=[];for(const U of R){const j=L.get(U);j!==void 0&&M.push(j)}for(const[U,j]of O){if(!j)continue;const $=L.get(U);$===void 0||cn($)||M.push($)}return M})(t,n,r);if(c.length===0)return 0;if(c.length>1){const E=t._nodeMap,R=E.get(i.anchor.key),O=E.get(s.anchor.key);return R&&O&&!e._nodeMap.has(R.__key)&&Oe(R)&&R.__text.length===1&&i.anchor.offset===1?2:0}const u=c[0],f=e._nodeMap.get(u.__key);if(!Oe(f)||!Oe(u)||f.__mode!==u.__mode)return 0;const m=f.__text,h=u.__text;if(m===h)return 0;const v=i.anchor,w=s.anchor;if(v.key!==w.key||v.type!=="text")return 0;const C=v.offset,A=w.offset,x=h.length-m.length;return x===1&&A===C-1?2:x===-1&&A===C+1?3:x===-1&&A===C?4:0}function nL(e,t){let n=Date.now(),r=0;return(o,i,s,c,u,f)=>{const m=Date.now();if(f.has(M0))return r=0,n=m,2;const h=tL(o,i,c,u,e.isComposing()),v=(()=>{const w=s===null||s.editor===e,C=f.has(dN);if(!C&&w&&f.has(ul))return 0;if(o===null)return 1;const A=i._selection;if(!(c.size>0||u.size>0))return A!==null?0:2;const x=typeof t=="number"?t:t.peek();return C===!1&&h!==0&&h===r&&m<n+x&&w||c.size===1&&(function(E,R,O){const L=R._nodeMap.get(E),M=O._nodeMap.get(E),U=R._selection,j=O._selection;return!(ge(U)&&ge(j)&&U.anchor.type==="element"&&U.focus.type==="element"&&j.anchor.type==="text"&&j.focus.type==="text"||!Oe(L)||!Oe(M)||L.__parent!==M.__parent)&&JSON.stringify(R.read(()=>L.exportJSON()))===JSON.stringify(O.read(()=>M.exportJSON()))})(Array.from(c)[0],o,i)?0:1})();return n=m,r=h,v}}function P1(e){e.undoStack=[],e.redoStack=[],e.current=null}function dk(e,t,n){const r=nL(e,n);return Fo(e.registerCommand($y,()=>((function(i,s){const c=s.redoStack,u=s.undoStack;if(u.length!==0){const f=s.current,m=u.pop();f!==null&&(c.push(f),i.dispatchCommand(Lp,!0)),u.length===0&&i.dispatchCommand(Dp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:M0})}})(e,t),!0),lt),e.registerCommand(Hy,()=>((function(i,s){const c=s.redoStack,u=s.undoStack;if(c.length!==0){const f=s.current;f!==null&&(u.push(f),i.dispatchCommand(Dp,!0));const m=c.pop();c.length===0&&i.dispatchCommand(Lp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:M0})}})(e,t),!0),lt),e.registerCommand(tN,()=>(P1(t),!1),lt),e.registerCommand(nN,()=>(P1(t),e.dispatchCommand(Lp,!1),e.dispatchCommand(Dp,!1),!0),lt),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:c,dirtyElements:u,tags:f})=>{const m=t.current,h=t.redoStack,v=t.undoStack,w=m===null?null:m.editorState;if(m!==null&&i===w)return;const C=r(s,i,m,c,u,f);if(C===1)h.length!==0&&(t.redoStack=[],e.dispatchCommand(Lp,!1)),m!==null&&(v.push({...m}),e.dispatchCommand(Dp,!0));else if(C===2)return;t.current={editor:e,editorState:i}}))}function pk(){return{current:null,redoStack:[],undoStack:[]}}const cv={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>ek({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:pk,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return hd(()=>r.disabled.value?void 0:dk(e,r.historyState.value,r.delay))}};i5(cv,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function rL({delay:e,externalHistoryState:t}){const[n]=ir();return(function(r,o,i=1e3){const s=Y.useMemo(()=>o||pk(),[o]);Y.useEffect(()=>dk(r,s,i),[i,r,s])})(n,t,e),null}const hk=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function oL({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:c,ariaLabel:u,ariaLabelledBy:f,ariaMultiline:m,ariaOwns:h,ariaRequired:v,autoCapitalize:w,className:C,id:A,role:x="textbox",spellCheck:E=!0,style:R,tabIndex:O,"data-testid":L,...M},U){const[j,$]=Y.useState(e.isEditable()),H=Y.useCallback(q=>{q&&q.ownerDocument&&q.ownerDocument.defaultView?e.setRootElement(q):e.setRootElement(null)},[e]),G=Y.useMemo(()=>(function(...q){return pe=>{for(const ie of q)typeof ie=="function"?ie(pe):ie!=null&&(ie.current=pe)}})(U,H),[H,U]);return hk(()=>($(e.isEditable()),e.registerEditableListener(q=>{$(q)})),[e]),D.jsx("div",{"aria-activedescendant":j?t:void 0,"aria-autocomplete":j?n:"none","aria-controls":j?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":j&&x==="combobox"?!!s:void 0,...c!=null?{"aria-invalid":c}:{},"aria-label":u,"aria-labelledby":f,"aria-multiline":m,"aria-owns":j?h:void 0,"aria-readonly":!j||void 0,"aria-required":v,autoCapitalize:w,className:C,contentEditable:j,"data-testid":L,id:A,ref:G,role:x,spellCheck:E,style:R,tabIndex:O,...M})}const iL=Y.forwardRef(oL);function I1(e){return e.getEditorState().read(ok(e.isComposing()))}const aL=Y.forwardRef(sL);function sL(e,t){const{placeholder:n,...r}=e,[o]=ir();return D.jsxs(D.Fragment,{children:[D.jsx(iL,{editor:o,...r,ref:t}),n!=null&&D.jsx(lL,{editor:o,content:n})]})}function lL({content:e,editor:t}){const n=(function(s){const[c,u]=Y.useState(()=>I1(s));return hk(()=>{function f(){const m=I1(s);u(m)}return f(),Fo(s.registerUpdateListener(()=>{f()}),s.registerEditableListener(()=>{f()}))},[s]),c})(t),[r,o]=Y.useState(t.isEditable());if(Y.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(s=>{o(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(r):e!==null&&(i=e),i===null?null:D.jsx("div",{"aria-hidden":!0,children:i})}const cL=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function uL({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=ir();return cL(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:c,tags:u})=>{t&&i.size===0&&s.size===0||e&&u.has(ul)||c.isEmpty()||n(o,r,u)})},[r,e,t,n]),null}const fL=Y.createContext(null),uv={didCatch:!1,error:null};class dL extends Y.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=uv}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,o;const{error:n}=this.state;n!==null&&((o=(r=this.props).onReset)==null||o.call(r,{args:t,reason:"imperative-api"}),this.setState(uv))}componentDidCatch(t,n){var r,o;(o=(r=this.props).onError)==null||o.call(r,t,n)}componentDidUpdate(t,n){var i,s;const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&pL(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(uv))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let c=t;if(i){const u={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(u);else if(r)c=Y.createElement(r,u);else if(o!==void 0)c=o;else throw s}return Y.createElement(fL.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}function pL(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function hL({children:e,onError:t}){return D.jsx(dL,{fallback:D.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const mL={paragraph:"m-0",list:{ol:"list-decimal pl-4",ul:"list-disc pl-4"},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"font-mono"},link:"text-blue-600 hover:text-blue-600 underline cursor-pointer"};function Ha(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function V0(e){let t=1,n=e.getParent();for(;n!=null;){if(At(n)){const r=n.getParent();if(at(r)){t++,n=r.getParent();continue}Ha(40)}return t}return t}function K0(e){let t=e.getParent();at(t)||Ha(40);let n=t;for(;n!==null;)n=n.getParent(),at(n)&&(t=n);return t}function mk(e){let t=[];const n=e.getChildren().filter(At);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();at(i)?t=t.concat(mk(i)):t.push(o)}return t}function ni(e){return At(e)&&at(e.getFirstChild())}function O1(e){return fo().append(e)}function gk(e,t){return At(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function M1(e){const t=Ie();if(t!==null){let n=t.getNodes();if(ge(t)){const o=t.getStartEndPoints();o===null&&Ha(143);const[i]=o,s=i.getNode(),c=s.getParent();if(Dr(s)){const u=s.getFirstChild();if(u)n=u.selectStart().getNodes();else{const f=Sr();s.append(f),n=f.select().getNodes()}}else if(gk(s,n)){const u=Gr(e);if(Dr(c)){s.replace(u);const f=fo();ae(s)&&(f.setFormat(s.getFormatType()),f.setIndent(s.getIndent())),u.append(f)}else if(At(s)){const f=s.getParentOrThrow();Il(u,f.getChildren()),f.replace(u)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(ae(i)&&i.isEmpty()&&!At(i)&&!r.has(i.getKey())){N1(i,e);continue}let s=A2(i)?i.getParent():At(i)&&i.isEmpty()?i:null;for(;s!=null;){const c=s.getKey();if(at(s)){if(!r.has(c)){const u=Gr(e);Il(u,s.getChildren()),s.replace(u),r.add(c)}break}{const u=s.getParent();if(Dr(u)&&!r.has(c)){r.add(c),N1(s,e);break}s=u}}}}}function Il(e,t){e.splice(e.getChildrenSize(),0,t)}function N1(e,t){if(at(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=fo();let i;if(Il(o,e.getChildren()),at(n)&&t===n.getListType())n.append(o),at(r)&&t===r.getListType()&&(Il(n,r.getChildren()),r.remove()),i=n;else if(at(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Gr(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function bb(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&ni(n)&&ni(r)&&(bb(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function gL(){const e=Ie();if(ge(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(gk(r,n))t.add(K0(r));else for(let o=0;o<n.length;o++){const i=n[o];if(A2(i)){const s=v5(i,Fu);s!=null&&t.add(K0(s))}}for(const o of t){let i=o;const s=mk(o);for(const c of s){const u=Sr().setTextStyle(e.style).setTextFormat(e.format);Il(u,c.getChildren()),i.insertAfter(u),i=u,c.__key===e.anchor.key&&Pl(e.anchor,co(Do(u,"next"))),c.__key===e.focus.key&&Pl(e.focus,co(Do(u,"next"))),c.remove()}o.remove()}}}function vk(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())At(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),at(r.getFirstChild())||n++)}function vL(e){const t=new Set;if(ni(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(ni(r)&&ni(o)){const i=o.getFirstChild();if(at(i)){i.append(e);const s=r.getFirstChild();at(s)&&(Il(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(ni(r)){const i=r.getFirstChild();if(at(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(ni(o)){const i=o.getFirstChild();at(i)&&i.append(e)}else if(at(n)){const i=fo().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Gr(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(e),o?o.insertAfter(i):r?r.insertBefore(i):n.append(i)}}function yL(e){if(ni(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(at(n?n.getParent():void 0)&&At(n)&&at(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const i=t.getListType(),s=fo(),c=Gr(i);s.append(c),e.getPreviousSiblings().forEach(m=>c.append(m));const u=fo(),f=Gr(i);u.append(f),Il(f,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(u),n.replace(e)}}}function bL(){const e=Ie();if(!ge(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!At(t)||t.getChildrenSize()!==0)return!1;const n=K0(t),r=t.getParent();at(r)||Ha(40);const o=r.getParent();let i;if(Dr(o))i=Sr(),n.insertAfter(i);else{if(!At(o))return!1;i=fo(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const c=Gr(r.getListType());if(At(i)){const u=fo();u.append(c),i.insertAfter(u)}else i.insertAfter(c);c.append(...s)}return(function(c){let u=c;for(;u.getNextSibling()==null&&u.getPreviousSibling()==null;){const f=u.getParent();if(f==null||!At(f)&&!at(f))break;u=f}u.remove()})(t),!0}function Fh(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}class Fu extends pi{constructor(n=1,r=void 0,o){super(o);ce(this,"__value");ce(this,"__checked");this.__value=n===void 0?1:n,this.__checked=r}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const r=n.getParent();at(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:pi,importDOM:{li:()=>({conversion:xL,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const r=document.createElement("li");return this.updateListItemDOM(null,r,n),r}updateListItemDOM(n,r,o){(function(c,u,f){const m=u.getParent();!at(m)||m.getListType()!=="check"||at(u.getFirstChild())?(c.removeAttribute("role"),c.removeAttribute("tabIndex"),c.removeAttribute("aria-checked")):(c.setAttribute("role","checkbox"),c.setAttribute("tabIndex","-1"),f&&u.__checked===f.__checked||c.setAttribute("aria-checked",u.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(c,u,f){const m=[],h=[],v=u.list,w=v?v.listitem:void 0;let C;if(v&&v.nested&&(C=v.nested.listitem),w!==void 0&&m.push(...Fh(w)),v){const A=f.getParent(),x=at(A)&&A.getListType()==="check",E=f.getChecked();x&&!E||h.push(v.listitemUnchecked),x&&E||h.push(v.listitemChecked),x&&m.push(E?v.listitemChecked:v.listitemUnchecked)}if(C!==void 0){const A=Fh(C);f.getChildren().some(x=>at(x))?m.push(...A):h.push(...A)}h.length>0&&Z2(c,...h),m.length>0&&mb(c,...m)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(c,u,f){const m=c1(u.__textStyle);for(const h in m)c.style.setProperty(`--listitem-marker-${h}`,m[h]);if(f)for(const h in c1(f.__textStyle))h in m||c.style.removeProperty(`--listitem-marker-${h}`)})(r,this,n)}updateDOM(n,r,o){const i=r;return this.updateListItemDOM(n,i,o),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const r=this.createDOM(n._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let r=0;r<n.length;r++){const o=n[r];if(ae(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(At(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!at(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Gr(o.getListType());let s=this.getNextSibling();for(;s;){const c=s;s=s.getNextSibling(),i.append(c)}o.insertAfter(n),n.insertAfter(i)}return r&&(ae(n)||Ha(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),n}insertAfter(n,r=!0){const o=this.getParentOrThrow();if(at(o)||Ha(39),At(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Gr(o.getListType());i.forEach(c=>s.append(c)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&ni(r)&&ni(o)&&(bb(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=fo().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Sr();this.getChildren().forEach(c=>r.append(c));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=At(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const c=n.anchor,u=n.focus,f=r.getKey();c.type==="element"&&c.getNode().is(this)&&c.set(f,c.offset,"element"),u.type==="element"&&u.getNode().is(this)&&u.set(f,u.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const r=this.getWritable();return r.__value=n,r}getChecked(){const n=this.getLatest();let r;const o=this.getParent();return at(o)&&(r=o.getListType()),r==="check"?!!n.__checked:void 0}setChecked(n){const r=this.getWritable();return r.__checked=n,r}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let r=n.getParentOrThrow(),o=0;for(;At(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Ha(117),(n=Math.floor(n))>=0||Ha(199);let r=this.getIndent();for(;r!==n;)r<n?(vL(this),r++):(yL(this),r--);return this}canInsertAfter(n){return At(n)}canReplaceWith(n){return At(n)}canMergeWith(n){return At(n)||Jy(n)}extractWithChild(n,r){if(!ge(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Gr("bullet")}canMergeWhenEmpty(){return!0}}function xL(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return L1(n)}if(e.classList.contains("joplin-checkbox")){for(const n of e.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return L1(n.children[0])}const t=e.getAttribute("aria-checked");return{node:fo(t==="true"||t!=="false"&&void 0)}}function L1(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:fo(e.hasAttribute("checked"))}}function fo(e){return is(new Fu(void 0,e))}function At(e){return e instanceof Fu}class Ld extends pi{constructor(n="number",r=1,o){super(o);ce(this,"__tag");ce(this,"__start");ce(this,"__listType");const i=SL[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:n=>{(function(r){const o=r.getNextSibling();at(o)&&r.getListType()===o.getListType()&&bb(r,o)})(n),vk(n)},extends:pi,importDOM:{ol:()=>({conversion:F1,priority:0}),ul:()=>({conversion:F1,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const r=this.getWritable();return r.__listType=n,r.__tag=n==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const r=this.getWritable();return r.__start=n,r}createDOM(n,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,D1(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(D1(r,o.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const r=this.createDOM(n._config,n);return Gn(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,r,o){let i=o;for(let s=0;s<o.length;s++){const c=o[s];At(c)||(i===o&&(i=[...o]),i[s]=fo().append(!ae(c)||at(c)||c.isInline()?c:In(c.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return At(n)}}function D1(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],c=V0(n)-1,u=c%s.length,f=s[u],m=i[n.__tag];let h;const v=i.nested,w=i.checklist;if(v!==void 0&&v.list&&(h=v.list),m!==void 0&&r.push(m),w!==void 0&&n.__listType==="check"&&r.push(w),f!==void 0){r.push(...Fh(f));for(let C=0;C<s.length;C++)C!==u&&o.push(n.__tag+C)}if(h!==void 0){const C=Fh(h);c>1?r.push(...C):o.push(...C)}}o.length>0&&Z2(e,...o),r.length>0&&mb(e,...r)}function wL(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(At(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{at(i)&&t.push(O1(i))})}else t.push(O1(r))}return t}function F1(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Gr("number",e.start):t==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(Gn(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Gr("check"):Gr("bullet")),{after:wL,node:n}}const SL={ol:"number",ul:"bullet"};function Gr(e="number",t=1){return is(new Ld(e,t))}function at(e){return e instanceof Ld}const CL=Ye("UPDATE_LIST_START_COMMAND"),yk=Ye("INSERT_UNORDERED_LIST_COMMAND"),bk=Ye("INSERT_ORDERED_LIST_COMMAND"),Y0=Ye("REMOVE_LIST_COMMAND");function AL(e){return Fo(e.registerCommand(bk,()=>(M1("number"),!0),$i),e.registerCommand(CL,t=>{const{listNodeKey:n,newStart:r}=t,o=bn(n);return!!at(o)&&(o.getListType()==="number"&&(o.setStart(r),vk(o)),!0)},$i),e.registerCommand(yk,()=>(M1("bullet"),!0),$i),e.registerCommand(Y0,()=>(gL(),!0),$i),e.registerCommand(ld,()=>bL(),$i),e.registerNodeTransform(Fu,t=>{const n=t.getFirstChild();if(n){if(Oe(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Ie();ge(r)&&(r.style!==t.getTextStyle()||r.format!==t.getTextFormat())&&r.isCollapsed()&&t.is(r.anchor.getNode())&&t.setTextStyle(r.style).setTextFormat(r.format)}}),e.registerNodeTransform(rs,t=>{const n=t.getParent();if(At(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function EL(e){const t=n=>{const r=n.getParent();if(at(n.getFirstChild())||!at(r))return;const o=Ln(n,i=>At(i)&&at(i.getParent())&&At(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(At(o)){const i=o.getPreviousSibling();if(At(i)){const s=(function(u){let f=u,m=f.getFirstChild();for(;at(m);){const h=m.getLastChild();if(!At(h))break;f=h,m=f.getFirstChild()}return f})(i),c=s.getParent();if(at(c)){const u=V0(c);u+1<V0(r)&&n.setIndent(u)}}}};return e.registerNodeTransform(Ld,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(at(o)){for(const i of o.getChildren())if(At(i)){t(i);const s=i.getFirstChild();at(s)&&r.push(s)}}}})}/*!
|
|
716
|
+
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
717
|
+
* License - https://fontawesome.com/license (Commercial License)
|
|
718
|
+
* Copyright 2024 Fonticons, Inc.
|
|
719
|
+
*/const kL={prefix:"far",iconName:"strikethrough",icon:[512,512,[],"f0cc","M145.5 138c4-21.5 17.9-37.4 41.7-47.4c24.7-10.4 59.4-13.7 99.9-7.5c12.8 2 52.4 9.5 64.9 12.8c12.8 3.3 25.9-4.3 29.3-17.2s-4.3-25.9-17.2-29.3c-14.7-3.8-56.1-11.7-69.7-13.8c-46.2-7.1-90.4-4.1-125.7 10.7c-36.1 15.1-63.3 43.1-70.5 83.9c-.1 .4-.1 .9-.2 1.3c-2.8 23.4 .5 44.2 9.8 62.2c9.2 17.8 23.2 31.2 38.8 41.5c2.4 1.6 5 3.2 7.5 4.7L24 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-192.2 0c-9.9-3.1-19.7-6-29.2-8.8l-.3-.1c-37.7-11.1-70.5-20.7-93.3-35.8c-10.9-7.2-18.2-14.9-22.6-23.5c-4.2-8.2-6.6-18.9-4.9-33.8zM364 337.1c3.7 8.6 5.5 20.1 2.6 36.3c-3.8 21.8-17.8 37.9-41.8 48c-24.7 10.4-59.4 13.7-99.8 7.5c-20.1-3.2-54.3-14.6-81.2-23.6c0 0 0 0 0 0s0 0 0 0c-5.9-2-11.4-3.8-16.3-5.4c-12.6-4.1-26.1 2.8-30.3 15.4s2.8 26.2 15.4 30.3c4 1.3 8.8 2.9 14 4.7c26.6 8.9 66.4 22.2 90.9 26.2l.1 0c46.2 7.1 90.4 4.1 125.7-10.7c36.1-15.1 63.3-43.1 70.5-83.9c4-22.9 2.4-43.5-5-61.7l-57.2 0c5.7 5.3 9.7 11 12.3 17.1z"]},TL={prefix:"far",iconName:"underline",icon:[448,512,[],"f0cd","M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"]},_L={prefix:"far",iconName:"bold",icon:[384,512,[],"f032","M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"]},RL={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},PL={prefix:"far",iconName:"text-slash",icon:[640,512,["remove-format"],"f87d","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-281.9-221L396.4 80l124.8 0-8.5 34.2c-3.2 12.9 4.6 25.9 17.5 29.1s25.9-4.6 29.1-17.5l11-44.1C576.6 56.5 557.5 32 531.5 32l-335 0c-18.4 0-34.4 12.5-38.8 30.3l-7.5 30.1L38.8 5.1zM191.5 124.8L202.7 80l143.8 0L308.1 216.2 191.5 124.8zm57.4 300.7l-1.8 6.5L192 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.1 0 23.6-83.5-40.8-32.1L248.9 425.5z"]},IL={prefix:"far",iconName:"italic",icon:[384,512,[],"f033","M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"]},OL={prefix:"far",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM216 72l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},ML={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},NL={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},LL={prefix:"far",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"]},DL={prefix:"far",iconName:"font",icon:[448,512,[],"f031","M246.2 46.9C242.5 37.9 233.8 32 224 32s-18.5 5.9-22.2 14.9L44.6 432 24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-39.5 0 32.7-80 189.8 0 32.7 80L312 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-20.6 0L246.2 46.9zM299.3 304l-150.6 0L224 119.5 299.3 304z"]},FL={prefix:"far",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z"]},jL={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},zL=new Set(["http:","https:","mailto:","sms:","tel:"]);class Ll extends pi{constructor(n="",r={},o){super(o);ce(this,"__url");ce(this,"__target");ce(this,"__rel");ce(this,"__title");const{target:i=null,rel:s=null,title:c=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=c}static getType(){return"link"}static clone(n){return new Ll(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const r=document.createElement("a");return this.updateLinkDOM(null,r,n),mb(r,n.theme.link),r}updateLinkDOM(n,r,o){if(M2(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,c=this[s];n&&n[s]===c||(c?r[i]=c:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:BL,priority:1})}}static importJSON(n){return hl().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=B1(n);try{const r=new URL(B1(n));if(!zL.has(r.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const r=this.getWritable();return r.__url=n,r}getTarget(){return this.getLatest().__target}setTarget(n){const r=this.getWritable();return r.__target=n,r}getRel(){return this.getLatest().__rel}setRel(n){const r=this.getWritable();return r.__rel=n,r}getTitle(){return this.getLatest().__title}setTitle(n){const r=this.getWritable();return r.__title=n,r}insertNewAfter(n,r=!0){const o=hl(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,r,o){if(!ge(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function BL(e){let t=null;if(M2(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=hl(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function hl(e="",t){return is(new Ll(e,t))}function Vn(e){return e instanceof Ll}class Sm extends Ll{constructor(n="",r={},o){super(n,r,o);ce(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new Sm(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const r=this.getWritable();return r.__isUnlinked=n,r}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,r,o){return super.updateDOM(n,r,o)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return j1().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,r=!0){const o=this.getParentOrThrow().insertNewAfter(n,r);if(ae(o)){const i=j1(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function j1(e="",t){return is(new Sm(e,t))}function Xs(e){return e instanceof Sm}const md=Ye("TOGGLE_LINK_COMMAND");function z1(e,t){if(e.type==="element"){const n=e.getNode();return ae(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const c of o)s.append("v",c);throw i.search=s.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[e.offset+t]||null}return null}function fv(e,t={}){let n;if(e&&typeof e=="object"){const{url:m,...h}=e;n=m,t={...h,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Ie();if(s===null||!ge(s)&&!On(s))return;if(On(s)){const m=s.getNodes();return m.length===0?void 0:void m.forEach(h=>{if(n===null){const v=Ln(h,w=>!Xs(w)&&Vn(w));v&&(v.insertBefore(h),v.getChildren().length===0&&v.remove())}else{const v=Ln(h,w=>!Xs(w)&&Vn(w));if(v)v.setURL(n),r!==void 0&&v.setTarget(r),i!==void 0&&v.setRel(i);else{const w=hl(n,{rel:i,target:r});h.insertBefore(w),w.append(h)}}})}const c=s.extract();if(n===null){const m=new Set;return void c.forEach(h=>{const v=h.getParent();if(Vn(v)&&!Xs(v)){const w=v.getKey();if(m.has(w))return;(function(C,A){const x=new Set(A.filter(j=>C.isParentOf(j)).map(j=>j.getKey())),E=C.getChildren(),R=E.filter(j=>x.has(j.getKey()));if(R.length===E.length)return E.forEach(j=>C.insertBefore(j)),void C.remove();const O=E.findIndex(j=>x.has(j.getKey())),L=E.findLastIndex(j=>x.has(j.getKey())),M=O===0,U=L===E.length-1;if(M)R.forEach(j=>C.insertBefore(j));else if(U)for(let j=R.length-1;j>=0;j--)C.insertAfter(R[j]);else{for(let $=R.length-1;$>=0;$--)C.insertAfter(R[$]);const j=E.slice(L+1);if(j.length>0){const $=hl(C.getURL(),{rel:C.getRel(),target:C.getTarget(),title:C.getTitle()});R[R.length-1].insertAfter($),j.forEach(H=>$.append(H))}}})(v,c),m.add(w)}})}const u=new Set,f=m=>{u.has(m.getKey())||(u.add(m.getKey()),m.setURL(n),r!==void 0&&m.setTarget(r),i!==void 0&&m.setRel(i),o!==void 0&&m.setTitle(o))};if(c.length===1){const m=c[0],h=Ln(m,Vn);if(h!==null)return f(h)}(function(m){const h=Ie();if(!ge(h))return m();const v=yu(h),w=v.isBackward(),C=z1(v.anchor,w?-1:0),A=z1(v.focus,w?0:-1);if(m(),C||A){const x=Ie();if(ge(x)){const E=x.clone();if(C){const R=C.getParent();R&&E.anchor.set(R.getKey(),C.getIndexWithinParent()+(w?1:0),"element")}if(A){const R=A.getParent();R&&E.focus.set(R.getKey(),A.getIndexWithinParent()+(w?0:1),"element")}Cr(yu(E))}}})(()=>{let m=null;for(const h of c){if(!h.isAttached())continue;const v=Ln(h,Vn);if(v){f(v);continue}if(ae(h)){if(!h.isInline())continue;if(Vn(h)){if(!(Xs(h)||m!==null&&m.getParentOrThrow().isParentOf(h))){f(h),m=h;continue}for(const C of h.getChildren())h.insertBefore(C);h.remove();continue}}const w=h.getPreviousSibling();Vn(w)&&w.is(m)?w.append(h):(m=hl(n,{rel:i,target:r,title:o}),h.insertAfter(m),m.append(h))}})}const UL=/^\+?[0-9\s()-]{5,}$/;function B1(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:UL.test(e)?`tel:${e}`:`https://${e}`}function WL(e,t){return Fo(hd(()=>e.registerCommand(md,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return fv(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(fv(n,o),!0);{const{url:i,target:s,rel:c,title:u}=n;return fv(i,{...o,rel:c,target:s,title:u}),!0}},$i)),hd(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(pm,o=>{const i=Ie();if(!ge(i)||i.isCollapsed()||!$a(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(c=>ae(c))&&(e.dispatchCommand(md,{...r,url:s}),o.preventDefault(),!0)},$i)}))}function $L({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=ir(),[c,u]=Y.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[f,m]=Y.useState(null),h=Y.useRef(null),v=Y.useRef(null),w=wb[e];Y.useLayoutEffect(()=>s.registerUpdateListener(({editorState:R})=>{R.read(()=>{const O=Ie();if(!ge(O))return;u({bold:O.hasFormat("bold"),italic:O.hasFormat("italic"),underline:O.hasFormat("underline"),strikethrough:O.hasFormat("strikethrough"),code:O.hasFormat("code")});let L=O.anchor.getNode(),M=null;for(;L;){if(at(L)){const U=L.getListType();M=U==="bullet"||U==="number"?U:null;break}if(At(L)){L=L.getParent();continue}L=L.getParent()}m(M)})}),[s]);const C=R=>{s.dispatchCommand(ii,R)},A=()=>{f!=="bullet"?s.dispatchCommand(yk,void 0):s.dispatchCommand(Y0,void 0)},x=()=>{f!=="number"?s.dispatchCommand(bk,void 0):s.dispatchCommand(Y0,void 0)},E=()=>{s.update(()=>{const R=Ie();if(!ge(R))return;["bold","italic","underline","strikethrough","code"].forEach(L=>{R.hasFormat(L)&&s.dispatchCommand(ii,L)})})};return D.jsxs("div",{className:gt("flex items-center w-full",r?"justify-between":"justify-end"),children:[D.jsxs("div",{className:"flex items-center gap-1",children:[D.jsx(m0,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",children:D.jsx(ot,{icon:DL})}),children:D.jsxs("ul",{className:"flex items-start flex-col",children:[D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Bold",onClick:()=>C("bold"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.bold?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:_L,className:"mr-2"}),"Bold"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Italic",onClick:()=>C("italic"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.italic?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:IL,className:"mr-2"}),"Italic"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Underline",onClick:()=>C("underline"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.underline?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:TL,className:"mr-2"}),"Underline"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>C("strikethrough"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.strikethrough?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:kL,className:"mr-2"}),"Strikethrough"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Monospace",onClick:()=>C("code"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.code?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:ML,className:"mr-2"}),"Monospace"]})}),D.jsx("hr",{className:"w-full border-gray-200"}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Clear formatting",onClick:E,className:"cursor-pointer w-full h-full justify-start text-left p-2 text-gray-400 hover:text-gray-400 hover:bg-gray-100",children:[D.jsx(ot,{icon:PL,className:"mr-2"}),"Clear formatting"]})})]})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:A,children:D.jsx(ot,{icon:FL})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:x,children:D.jsx(ot,{icon:OL})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(md,"https://")},children:D.jsx(ot,{icon:LL})}),i&&D.jsxs(D.Fragment,{children:[D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"border-l-1 border-gray-200 rounded-none",onClick:()=>{var R;(R=h.current)==null||R.click()},children:D.jsx(ot,{icon:RL})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var R;(R=v.current)==null||R.click()},children:D.jsx(ot,{icon:NL})})]}),n&&D.jsx(m0,{placement:"top-end",title:"comment type menu",trigger:D.jsx(Ht,{category:"link",size:"smallCollapse",className:`${w.iconColor} border-l-1 border-gray-200 rounded-none`,children:D.jsx(ot,{icon:w.icon})}),children:D.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:kk.map(R=>D.jsx("li",{children:D.jsx(Ht,{category:"link",size:"none",title:R.title,className:gt(R.color,e===R.type?R.color:"text-gray-400"),onClick:()=>t==null?void 0:t(R.type),children:D.jsx(ot,{icon:R.icon})})},R.type))})})]}),r,D.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:h,accept:"image/*",onChange:R=>{const O=R.target.files;O&&(i==null||i(O))}}),D.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:v,accept:"*",onChange:R=>{const O=R.target.files;O&&(i==null||i(O))}})]})}function HL({hasStrictIndent:e=!1}){const[t]=ir();return Y.useEffect(()=>{if(!t.hasNodes([Ld,Fu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),Y.useEffect(()=>{if(e)return EL(t)},[t,e]),(function(n){Y.useEffect(()=>AL(n),[n])})(t),null}function VL({validateUrl:e,attributes:t}){const[n]=ir();return Y.useEffect(()=>{if(!n.hasNodes([Ll]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),Y.useEffect(()=>WL(n,ek({attributes:t,validateUrl:e})),[n,e,t]),null}const KL=new Set(["http:","https:","mailto:","sms:","tel:"]);function U1(e){try{const t=new URL(e);if(!KL.has(t.protocol))return"about:blank"}catch{return e}return e}function W1(e,t,n,r=10,o=5){const i=n.parentElement;if(e===null||!i){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}const s=t.getBoundingClientRect(),c=n.getBoundingClientRect(),u=i.getBoundingClientRect();let f=e.top-r,m=e.left-o;f<u.top&&(f+=s.height+e.height+r*2),m+s.width>u.right&&(m=u.right-s.width-o),f-=c.top,m-=c.left,t.style.opacity="1",t.style.transform=`translate(${m}px, ${f}px)`}function jh(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?f1(n)?r:o:f1(t)?r:o}function YL({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=Y.useRef(null),[c,u]=Y.useState(""),[f,m]=Y.useState("https://"),[h,v]=Y.useState(null),w=Y.useCallback(()=>{var M,U;const x=Ie();if(ge(x)){const j=jh(x),$=Ln(j,Vn);$?u($.getURL()):Vn(j)?u(j.getURL()):u(""),o&&m(c)}else if(On(x)){const j=x.getNodes();if(j.length>0){const $=j[0],H=$.getParent();Vn(H)?u(H.getURL()):Vn($)?u($.getURL()):u(""),o&&m(c)}}const E=s.current,R=go(e._window),O=document.activeElement;if(E===null)return;const L=e.getRootElement();if(x!==null&&L!==null&&e.isEditable()){let j;if(On(x)){const $=x.getNodes();if($.length>0){const H=e.getElementByKey($[0].getKey());H&&(j=H.getBoundingClientRect())}}else R!==null&&L.contains(R.anchorNode)&&(j=(U=(M=R.focusNode)==null?void 0:M.parentElement)==null?void 0:U.getBoundingClientRect());j&&(j.y+=40,W1(j,E,r)),v(x)}else(!O||O.className!=="link-input")&&(L!==null&&W1(null,E,r),v(null),i(!1),u(""));return!0},[r,e,i,o,c]);Y.useEffect(()=>{const x=r.parentElement,E=()=>{e.getEditorState().read(()=>{w()})};return window.addEventListener("resize",E),x&&x.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),x&&x.removeEventListener("scroll",E)}},[r.parentElement,e,w]),Y.useEffect(()=>Fo(e.registerUpdateListener(({editorState:x})=>{x.read(()=>{w()})}),e.registerCommand(dm,()=>(w(),!0),$i),e.registerCommand(Vy,()=>t?(n(!1),!0):!1,ON)),[e,w,n,t]),Y.useEffect(()=>{e.getEditorState().read(()=>{w()})},[e,w]),Y.useEffect(()=>{const x=s.current;if(x===null)return;const E=R=>{!x.contains(R.relatedTarget)&&t&&(n(!1),i(!1))};return x.addEventListener("focusout",E),()=>{x.removeEventListener("focusout",E)}},[n,i,t]);const C=x=>{x.key==="Enter"?A(x):x.key==="Escape"&&(x.preventDefault(),i(!1))},A=x=>{x.preventDefault(),h!==null&&(c!==""&&e.update(()=>{e.dispatchCommand(md,U1(f));const E=Ie();if(ge(E)){const R=jh(E).getParent();if(Xs(R)){const O=hl(R.getURL(),{rel:R.__rel,target:R.__target,title:R.__title});R.replace(O,!0)}}}),m("https://"),i(!1))};return D.jsx("div",{ref:s,className:"absolute flex top-0 left-0 shadow-lg bg-white z-10 rounded-sm w-full max-w-400",children:t?o?D.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[D.jsx(DC,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:f,onChange:x=>{m(x.target.value)},onKeyDown:x=>{C(x)}}),D.jsxs("div",{className:"flex justify-center items-center gap-4",children:[D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{i(!1)},children:D.jsx(ot,{icon:qh})}),D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:A,children:D.jsx(ot,{icon:$C})})]})]}):D.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[D.jsx("a",{href:U1(c),target:"_blank",rel:"noopener noreferrer",children:c}),D.jsxs("div",{className:"flex items-center gap-4",children:[D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{m(c),i(!0)},children:D.jsx(ot,{icon:dR})}),D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>e.dispatchCommand(md,null),children:D.jsx(ot,{icon:SR})})]})]}):null})}function GL(e,t,n,r){const[o,i]=Y.useState(e),[s,c]=Y.useState(!1);return Y.useEffect(()=>{function u(){const f=Ie();if(ge(f)){const m=jh(f),h=Ln(m,Vn),v=Ln(m,Xs);if(!(h||v)){c(!1);return}const w=f.getNodes().filter(C=>!fl(C)).find(C=>{const A=Ln(C,Vn),x=Ln(C,Xs);return h&&!h.is(A)||A&&!A.is(h)||v&&!v.is(x)||x&&(!x.is(v)||x.getIsUnlinked())});c(!w)}else if(On(f)){const m=f.getNodes();if(m.length===0){c(!1);return}const h=m[0],v=h.getParent();Vn(v)||Vn(h)?c(!0):c(!1)}}return Fo(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{u()})}),e.registerCommand(dm,(f,m)=>(u(),i(m),!1),v2),e.registerCommand(Wy,f=>{const m=Ie();if(ge(m)){const h=jh(m),v=Ln(h,Vn);if(Vn(v)&&(f.metaKey||f.ctrlKey))return window.open(v.getURL(),"_blank"),!0}return!1},$i))},[e]),ui.createPortal(D.jsx(YL,{editor:o,isLink:s,anchorElem:t,setIsLink:c,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function QL({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=ir();return GL(r,e,t,n)}const ZL=({url:e,onDelete:t})=>D.jsxs("div",{className:"relative",children:[D.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),D.jsx(Ht,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:D.jsx(ot,{icon:WC})})]}),xk=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return AR;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return px;case"csv":return fR;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return px;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return gR;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return uR;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return vR;case"3g2":case"3gp":case"asf":case"avi":case"f4v":case"flv":case"h264":case"h265":case"m4v":case"mjpeg":case"mk3d":case"mks":case"mkv":case"mov":case"mp4":case"mxf":case"qt":case"rm":case"rmvb":case"rv":case"srt":case"vob":case"vp6":case"vp8":case"vp9":case"webm":case"wmv":case"xvid":return CR;case"aac":case"ac3":case"alac":case"flac":case"m3u":case"mid":case"mka":case"mp3":case"mpc":case"ogg":case"opus":case"ra":case"sdt":case"stap":case"wav":case"wma":return xR;case"adb":case"ads":case"ahk":case"applescript":case"as":case"au3":case"bat":case"bas":case"btm":case"class":case"cljs":case"cmd":case"coffee":case"c":case"cpp":case"cs":case"css":case"ino":case"egt":case"erb":case"go":case"hta":case"html":case"ibi":case"ici":case"ijs":case"itcl":case"jar":case"java":case"js":case"jsx":case"jsp":case"less":case"lua":case"m":case"mrc":case"nuc":case"nud":case"o":case"pde":case"php":case"pl":case"pm":case"ps1":case"ps1xml":case"psc1":case"psd1":case"py":case"pyc":case"pyo":case"rb":case"rdp":case"red":case"rs":case"sb2/sb3":case"scpt":case"scptd":case"sdl":case"sh":case"syjs":case"sypy":case"dcl":case"tns":case"vbs":return wR;case"7z":case"arc":case"arj":case"b6z":case"bz2":case"daa":case"dar":case"deb":case"gz":case"ice":case"mpkg":case"rar":case"tar":case"tbz":case"tgs":case"xapk":case"zim":case"zip":return bR;default:return TR}},XL=(e,t)=>{const n=URL.createObjectURL(e);return{sequenceOrder:t,originFile:e,name:e.name,url:n,type:e.type,mimeType:e.type,uploading:{value:0,title:"Uploading..."}}},ih=e=>e.assetPath.includes("blob:")?e.assetPath:JL({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),JL=({assetPath:e,mimeType:t,fileName:n})=>e?`${Zi}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",xb=e=>e.startsWith("image/"),qL=async e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onerror=()=>n(new Error("Unable to convert file to base64")),r.onload=()=>{const o=r.result,i=btoa(new Uint8Array(o).reduce((s,c)=>s+String.fromCharCode(c),""));return t(i)}}),eD=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",tD=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=xk(r);return D.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[D.jsx(Ht,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:D.jsx(ot,{icon:WC})}),D.jsxs("div",{className:"flex items-center justify-center mx-2",children:[D.jsx("span",{className:"text-primary-600 my-2",children:D.jsx(ot,{icon:o,size:"3x",className:"text-primary-600"})}),D.jsx("span",{className:"font-bold p-2",children:n})]})]})},nD=({clearKey:e})=>{const[t]=ir(),n=Y.useRef(e);return Y.useEffect(()=>{n.current!==e&&(t.update(()=>{Xt().clear()}),n.current=e)},[e,t]),null},rD=({isOpen:e})=>{const[t]=ir();return Y.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},oD=({initialValue:e})=>{const[t]=ir(),n=Y.useCallback((o,i)=>{const c=new DOMParser().parseFromString(i,"text/html");return ik(o,c)},[]),r=Y.useRef(!1);return Y.useEffect(()=>{!r.current&&e&&(t.update(()=>{Xt().clear(),u2(n(t,e))}),r.current=!0)},[t,e,n]),null},iD=({onChange:e})=>{const[t]=ir();return D.jsx(uL,{onChange:n=>{n.read(()=>{const r=ak(t,null);e(r)})}})},aD=({onAddAttachments:e})=>{const[t]=ir();return Y.useEffect(()=>{if(!e)return;const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.clipboardData;if(!i)return;const s=i.items;let c=!1;for(let u=0;u<s.length;u++){const f=s[u];if(f.kind==="file"&&f.type.startsWith("image/")){c=!0;break}}if(c){for(let u=0;u<s.length;u++){const f=s[u];if(f.kind==="file"&&f.type.startsWith("image/")){const m=f.getAsFile();if(m){const h=Date.now(),v=m.type.split("/")[1]||"png",w=`image_${h}.${v}`,C=new File([m],w,{type:m.type});e==null||e([C])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},sD=({onSubmit:e})=>{const[t]=ir();return Y.useEffect(()=>{if(e)return t.registerCommand(fd,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null};function wk({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:c,isCommentTypeEditable:u=!0,actions:f,onAddAttachments:m,onRemoveAttachment:h,onSubmit:v,isOpen:w}){const C={namespace:"comment-editor",theme:mL,nodes:[Ld,Fu,Ll],onError:M=>{console.error(M)}},[A,x]=Y.useState(null),[E,R]=Y.useState(!1),O=M=>{M!==null&&x(M)},L=wb[s];return D.jsx("div",{className:r,children:D.jsxs(l5,{initialConfig:C,children:[D.jsxs("div",{className:"relative",children:[D.jsx(q5,{contentEditable:D.jsx("div",{ref:O,children:D.jsx(aL,{className:gt("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",L.bg,L.border,L.fontColor,n)})}),placeholder:D.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:hL}),D.jsx(HL,{}),D.jsx(VL,{}),A&&D.jsx(QL,{anchorElem:A,isLinkEditMode:E,setIsLinkEditMode:R}),D.jsx(rL,{}),D.jsx(oD,{initialValue:o}),D.jsx(iD,{onChange:i}),D.jsx(sD,{onSubmit:v}),D.jsx(nD,{clearKey:t}),D.jsx(aD,{onAddAttachments:m}),D.jsx(rD,{isOpen:w})]}),e&&e.length>0&&D.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(M=>xb(M.type)?D.jsx(ZL,{url:M.url,onDelete:()=>h==null?void 0:h(M.originFile)},M.originFile.name):D.jsx(tD,{type:M.type,label:M.name,onRemoveFile:()=>h==null?void 0:h(M.originFile)},M.originFile.name))}),D.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:D.jsx($L,{commentType:s,onCommentTypeChange:c,isCommentTypeEditable:u,actions:f,setIsLinkEditMode:R,onAddAttachments:m})})]})})}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Sk,setPrototypeOf:$1,isFrozen:lD,getPrototypeOf:cD,getOwnPropertyDescriptor:uD}=Object;let{freeze:Ar,seal:po,create:G0}=Object,{apply:Q0,construct:Z0}=typeof Reflect<"u"&&Reflect;Ar||(Ar=function(t){return t});po||(po=function(t){return t});Q0||(Q0=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});Z0||(Z0=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Vp=Er(Array.prototype.forEach),fD=Er(Array.prototype.lastIndexOf),H1=Er(Array.prototype.pop),Nf=Er(Array.prototype.push),dD=Er(Array.prototype.splice),ah=Er(String.prototype.toLowerCase),dv=Er(String.prototype.toString),pv=Er(String.prototype.match),Lf=Er(String.prototype.replace),pD=Er(String.prototype.indexOf),hD=Er(String.prototype.trim),Ro=Er(Object.prototype.hasOwnProperty),vr=Er(RegExp.prototype.test),Df=mD(TypeError);function Er(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Q0(e,t,r)}}function mD(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Z0(e,n)}}function ft(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ah;$1&&$1(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(lD(t)||(t[r]=i),o=i)}e[o]=!0}return e}function gD(e){for(let t=0;t<e.length;t++)Ro(e,t)||(e[t]=null);return e}function Zo(e){const t=G0(null);for(const[n,r]of Sk(e))Ro(e,n)&&(Array.isArray(r)?t[n]=gD(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Zo(r):t[n]=r);return t}function Ff(e,t){for(;e!==null;){const r=uD(e,t);if(r){if(r.get)return Er(r.get);if(typeof r.value=="function")return Er(r.value)}e=cD(e)}function n(){return null}return n}const V1=Ar(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),hv=Ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mv=Ar(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vD=Ar(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gv=Ar(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yD=Ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K1=Ar(["#text"]),Y1=Ar(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),vv=Ar(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G1=Ar(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kp=Ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bD=po(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xD=po(/<%[\w\W]*|[\w\W]*%>/gm),wD=po(/\$\{[\w\W]*/gm),SD=po(/^data-[\-\w.\u00B7-\uFFFF]+$/),CD=po(/^aria-[\-\w]+$/),Ck=po(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AD=po(/^(?:\w+script|data):/i),ED=po(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ak=po(/^html$/i),kD=po(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q1=Object.freeze({__proto__:null,ARIA_ATTR:CD,ATTR_WHITESPACE:ED,CUSTOM_ELEMENT:kD,DATA_ATTR:SD,DOCTYPE_NAME:Ak,ERB_EXPR:xD,IS_ALLOWED_URI:Ck,IS_SCRIPT_OR_DATA:AD,MUSTACHE_EXPR:bD,TMPLIT_EXPR:wD});const jf={element:1,text:3,progressingInstruction:7,comment:8,document:9},TD=function(){return typeof window>"u"?null:window},_D=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Z1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ek(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TD();const t=De=>Ek(De);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==jf.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:f,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:w}=e,C=u.prototype,A=Ff(C,"cloneNode"),x=Ff(C,"remove"),E=Ff(C,"nextSibling"),R=Ff(C,"childNodes"),O=Ff(C,"parentNode");if(typeof s=="function"){const De=n.createElement("template");De.content&&De.content.ownerDocument&&(n=De.content.ownerDocument)}let L,M="";const{implementation:U,createNodeIterator:j,createDocumentFragment:$,getElementsByTagName:H}=n,{importNode:G}=r;let q=Z1();t.isSupported=typeof Sk=="function"&&typeof O=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:ie,TMPLIT_EXPR:se,DATA_ATTR:xe,ARIA_ATTR:Ae,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:Ee}=Q1;let{IS_ALLOWED_URI:ne}=Q1,re=null;const ue=ft({},[...V1,...hv,...mv,...gv,...K1]);let me=null;const Te=ft({},[...Y1,...vv,...G1,...Kp]);let de=Object.seal(G0(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,_e=null;const je=Object.seal(G0(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,Be=!0,Je=!1,ke=!0,tt=!1,xt=!0,zt=!1,xn=!1,kr=!1,Vt=!1,un=!1,wn=!1,Ne=!0,nt=!1;const ct="user-content-";let ut=!0,Dt=!1,Jt={},Kt=null;const wt=ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qn=null;const qt=ft({},["audio","video","img","source","image","track"]);let Zn=null;const Sn=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cn="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml";let dn=fn,Fr=!1,Zr=null;const an=ft({},[Cn,Xn,fn],dv);let pn=ft({},["mi","mo","mn","ms","mtext"]),Dn=ft({},["annotation-xml"]);const dt=ft({},["title","style","font","a","script"]);let An=null;const Xr=["application/xhtml+xml","text/html"],jr="text/html";let vt=null,Fn=null;const ar=n.createElement("form"),Yt=function(K){return K instanceof RegExp||K instanceof Function},zr=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fn&&Fn===K)){if((!K||typeof K!="object")&&(K={}),K=Zo(K),An=Xr.indexOf(K.PARSER_MEDIA_TYPE)===-1?jr:K.PARSER_MEDIA_TYPE,vt=An==="application/xhtml+xml"?dv:ah,re=Ro(K,"ALLOWED_TAGS")?ft({},K.ALLOWED_TAGS,vt):ue,me=Ro(K,"ALLOWED_ATTR")?ft({},K.ALLOWED_ATTR,vt):Te,Zr=Ro(K,"ALLOWED_NAMESPACES")?ft({},K.ALLOWED_NAMESPACES,dv):an,Zn=Ro(K,"ADD_URI_SAFE_ATTR")?ft(Zo(Sn),K.ADD_URI_SAFE_ATTR,vt):Sn,Qn=Ro(K,"ADD_DATA_URI_TAGS")?ft(Zo(qt),K.ADD_DATA_URI_TAGS,vt):qt,Kt=Ro(K,"FORBID_CONTENTS")?ft({},K.FORBID_CONTENTS,vt):wt,ve=Ro(K,"FORBID_TAGS")?ft({},K.FORBID_TAGS,vt):Zo({}),_e=Ro(K,"FORBID_ATTR")?ft({},K.FORBID_ATTR,vt):Zo({}),Jt=Ro(K,"USE_PROFILES")?K.USE_PROFILES:!1,ze=K.ALLOW_ARIA_ATTR!==!1,Be=K.ALLOW_DATA_ATTR!==!1,Je=K.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,tt=K.SAFE_FOR_TEMPLATES||!1,xt=K.SAFE_FOR_XML!==!1,zt=K.WHOLE_DOCUMENT||!1,Vt=K.RETURN_DOM||!1,un=K.RETURN_DOM_FRAGMENT||!1,wn=K.RETURN_TRUSTED_TYPE||!1,kr=K.FORCE_BODY||!1,Ne=K.SANITIZE_DOM!==!1,nt=K.SANITIZE_NAMED_PROPS||!1,ut=K.KEEP_CONTENT!==!1,Dt=K.IN_PLACE||!1,ne=K.ALLOWED_URI_REGEXP||Ck,dn=K.NAMESPACE||fn,pn=K.MATHML_TEXT_INTEGRATION_POINTS||pn,Dn=K.HTML_INTEGRATION_POINTS||Dn,de=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&Yt(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&Yt(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tt&&(Be=!1),un&&(Vt=!0),Jt&&(re=ft({},K1),me=[],Jt.html===!0&&(ft(re,V1),ft(me,Y1)),Jt.svg===!0&&(ft(re,hv),ft(me,vv),ft(me,Kp)),Jt.svgFilters===!0&&(ft(re,mv),ft(me,vv),ft(me,Kp)),Jt.mathMl===!0&&(ft(re,gv),ft(me,G1),ft(me,Kp))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?je.tagCheck=K.ADD_TAGS:(re===ue&&(re=Zo(re)),ft(re,K.ADD_TAGS,vt))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?je.attributeCheck=K.ADD_ATTR:(me===Te&&(me=Zo(me)),ft(me,K.ADD_ATTR,vt))),K.ADD_URI_SAFE_ATTR&&ft(Zn,K.ADD_URI_SAFE_ATTR,vt),K.FORBID_CONTENTS&&(Kt===wt&&(Kt=Zo(Kt)),ft(Kt,K.FORBID_CONTENTS,vt)),K.ADD_FORBID_CONTENTS&&(Kt===wt&&(Kt=Zo(Kt)),ft(Kt,K.ADD_FORBID_CONTENTS,vt)),ut&&(re["#text"]=!0),zt&&ft(re,["html","head","body"]),re.table&&(ft(re,["tbody"]),delete ve.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw Df('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Df('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=K.TRUSTED_TYPES_POLICY,M=L.createHTML("")}else L===void 0&&(L=_D(w,o)),L!==null&&typeof M=="string"&&(M=L.createHTML(""));Ar&&Ar(K),Fn=K}},Jr=ft({},[...hv,...mv,...vD]),vo=ft({},[...gv,...yD]),Wt=function(K){let he=O(K);(!he||!he.tagName)&&(he={namespaceURI:dn,tagName:"template"});const Fe=ah(K.tagName),St=ah(he.tagName);return Zr[K.namespaceURI]?K.namespaceURI===Xn?he.namespaceURI===fn?Fe==="svg":he.namespaceURI===Cn?Fe==="svg"&&(St==="annotation-xml"||pn[St]):!!Jr[Fe]:K.namespaceURI===Cn?he.namespaceURI===fn?Fe==="math":he.namespaceURI===Xn?Fe==="math"&&Dn[St]:!!vo[Fe]:K.namespaceURI===fn?he.namespaceURI===Xn&&!Dn[St]||he.namespaceURI===Cn&&!pn[St]?!1:!vo[Fe]&&(dt[Fe]||!Jr[Fe]):!!(An==="application/xhtml+xml"&&Zr[K.namespaceURI]):!1},sn=function(K){Nf(t.removed,{element:K});try{O(K).removeChild(K)}catch{x(K)}},sr=function(K,he){try{Nf(t.removed,{attribute:he.getAttributeNode(K),from:he})}catch{Nf(t.removed,{attribute:null,from:he})}if(he.removeAttribute(K),K==="is")if(Vt||un)try{sn(he)}catch{}else try{he.setAttribute(K,"")}catch{}},zo=function(K){let he=null,Fe=null;if(kr)K="<remove></remove>"+K;else{const qe=pv(K,/^[\r\n\t ]+/);Fe=qe&&qe[0]}An==="application/xhtml+xml"&&dn===fn&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const St=L?L.createHTML(K):K;if(dn===fn)try{he=new v().parseFromString(St,An)}catch{}if(!he||!he.documentElement){he=U.createDocument(dn,"template",null);try{he.documentElement.innerHTML=Fr?M:St}catch{}}const kt=he.body||he.documentElement;return K&&Fe&&kt.insertBefore(n.createTextNode(Fe),kt.childNodes[0]||null),dn===fn?H.call(he,zt?"html":"body")[0]:zt?he.documentElement:kt},jn=function(K){return j.call(K.ownerDocument||K,K,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Br=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof m)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},Ur=function(K){return typeof c=="function"&&K instanceof c};function en(De,K,he){Vp(De,Fe=>{Fe.call(t,K,he,Fn)})}const ln=function(K){let he=null;if(en(q.beforeSanitizeElements,K,null),Br(K))return sn(K),!0;const Fe=vt(K.nodeName);if(en(q.uponSanitizeElement,K,{tagName:Fe,allowedTags:re}),xt&&K.hasChildNodes()&&!Ur(K.firstElementChild)&&vr(/<[/\w!]/g,K.innerHTML)&&vr(/<[/\w!]/g,K.textContent)||K.nodeType===jf.progressingInstruction||xt&&K.nodeType===jf.comment&&vr(/<[/\w]/g,K.data))return sn(K),!0;if(!(je.tagCheck instanceof Function&&je.tagCheck(Fe))&&(!re[Fe]||ve[Fe])){if(!ve[Fe]&&Wr(Fe)&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,Fe)||de.tagNameCheck instanceof Function&&de.tagNameCheck(Fe)))return!1;if(ut&&!Kt[Fe]){const St=O(K)||K.parentNode,kt=R(K)||K.childNodes;if(kt&&St){const qe=kt.length;for(let Ot=qe-1;Ot>=0;--Ot){const Qt=A(kt[Ot],!0);Qt.__removalCount=(K.__removalCount||0)+1,St.insertBefore(Qt,E(K))}}}return sn(K),!0}return K instanceof u&&!Wt(K)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&vr(/<\/no(script|embed|frames)/i,K.innerHTML)?(sn(K),!0):(tt&&K.nodeType===jf.text&&(he=K.textContent,Vp([pe,ie,se],St=>{he=Lf(he,St," ")}),K.textContent!==he&&(Nf(t.removed,{element:K.cloneNode()}),K.textContent=he)),en(q.afterSanitizeElements,K,null),!1)},zn=function(K,he,Fe){if(Ne&&(he==="id"||he==="name")&&(Fe in n||Fe in ar))return!1;if(!(Be&&!_e[he]&&vr(xe,he))){if(!(ze&&vr(Ae,he))){if(!(je.attributeCheck instanceof Function&&je.attributeCheck(he,K))){if(!me[he]||_e[he]){if(!(Wr(K)&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,K)||de.tagNameCheck instanceof Function&&de.tagNameCheck(K))&&(de.attributeNameCheck instanceof RegExp&&vr(de.attributeNameCheck,he)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(he,K))||he==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,Fe)||de.tagNameCheck instanceof Function&&de.tagNameCheck(Fe))))return!1}else if(!Zn[he]){if(!vr(ne,Lf(Fe,Q,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&K!=="script"&&pD(Fe,"data:")===0&&Qn[K])){if(!(Je&&!vr(Re,Lf(Fe,Q,"")))){if(Fe)return!1}}}}}}}return!0},Wr=function(K){return K!=="annotation-xml"&&pv(K,Ee)},lr=function(K){en(q.beforeSanitizeAttributes,K,null);const{attributes:he}=K;if(!he||Br(K))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0};let St=he.length;for(;St--;){const kt=he[St],{name:qe,namespaceURI:Ot,value:Qt}=kt,hn=vt(qe),_r=Qt;let Ct=qe==="value"?_r:hD(_r);if(Fe.attrName=hn,Fe.attrValue=Ct,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,en(q.uponSanitizeAttribute,K,Fe),Ct=Fe.attrValue,nt&&(hn==="id"||hn==="name")&&(sr(qe,K),Ct=ct+Ct),xt&&vr(/((--!?|])>)|<\/(style|title|textarea)/i,Ct)){sr(qe,K);continue}if(hn==="attributename"&&pv(Ct,"href")){sr(qe,K);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){sr(qe,K);continue}if(!ke&&vr(/\/>/i,Ct)){sr(qe,K);continue}tt&&Vp([pe,ie,se],rn=>{Ct=Lf(Ct,rn," ")});const Bn=vt(K.nodeName);if(!zn(Bn,hn,Ct)){sr(qe,K);continue}if(L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Ot)switch(w.getAttributeType(Bn,hn)){case"TrustedHTML":{Ct=L.createHTML(Ct);break}case"TrustedScriptURL":{Ct=L.createScriptURL(Ct);break}}if(Ct!==_r)try{Ot?K.setAttributeNS(Ot,qe,Ct):K.setAttribute(qe,Ct),Br(K)?sn(K):H1(t.removed)}catch{sr(qe,K)}}en(q.afterSanitizeAttributes,K,null)},Tr=function De(K){let he=null;const Fe=jn(K);for(en(q.beforeSanitizeShadowDOM,K,null);he=Fe.nextNode();)en(q.uponSanitizeShadowNode,he,null),ln(he),lr(he),he.content instanceof i&&De(he.content);en(q.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(De){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,Fe=null,St=null,kt=null;if(Fr=!De,Fr&&(De="<!-->"),typeof De!="string"&&!Ur(De))if(typeof De.toString=="function"){if(De=De.toString(),typeof De!="string")throw Df("dirty is not a string, aborting")}else throw Df("toString is not a function");if(!t.isSupported)return De;if(xn||zr(K),t.removed=[],typeof De=="string"&&(Dt=!1),Dt){if(De.nodeName){const Qt=vt(De.nodeName);if(!re[Qt]||ve[Qt])throw Df("root node is forbidden and cannot be sanitized in-place")}}else if(De instanceof c)he=zo("<!---->"),Fe=he.ownerDocument.importNode(De,!0),Fe.nodeType===jf.element&&Fe.nodeName==="BODY"||Fe.nodeName==="HTML"?he=Fe:he.appendChild(Fe);else{if(!Vt&&!tt&&!zt&&De.indexOf("<")===-1)return L&&wn?L.createHTML(De):De;if(he=zo(De),!he)return Vt?null:wn?M:""}he&&kr&&sn(he.firstChild);const qe=jn(Dt?De:he);for(;St=qe.nextNode();)ln(St),lr(St),St.content instanceof i&&Tr(St.content);if(Dt)return De;if(Vt){if(un)for(kt=$.call(he.ownerDocument);he.firstChild;)kt.appendChild(he.firstChild);else kt=he;return(me.shadowroot||me.shadowrootmode)&&(kt=G.call(r,kt,!0)),kt}let Ot=zt?he.outerHTML:he.innerHTML;return zt&&re["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&vr(Ak,he.ownerDocument.doctype.name)&&(Ot="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
|
|
720
|
+
`+Ot),tt&&Vp([pe,ie,se],Qt=>{Ot=Lf(Ot,Qt," ")}),L&&wn?L.createHTML(Ot):Ot},t.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr(De),xn=!0},t.clearConfig=function(){Fn=null,xn=!1},t.isValidAttribute=function(De,K,he){Fn||zr({});const Fe=vt(De),St=vt(K);return zn(Fe,St,he)},t.addHook=function(De,K){typeof K=="function"&&Nf(q[De],K)},t.removeHook=function(De,K){if(K!==void 0){const he=fD(q[De],K);return he===-1?void 0:dD(q[De],he,1)[0]}return H1(q[De])},t.removeHooks=function(De){q[De]=[]},t.removeAllHooks=function(){q=Z1()},t}var X0=Ek();const J0=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),yv=e=>atob(e);function sh(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const RD=({asset:e,onSetActiveSrc:t})=>D.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[D.jsx("img",{src:ih(e),onClick:()=>t(ih(e)),onKeyDown:n=>{n.key==="Enter"&&t(ih(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&D.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:D.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:D.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),PD=({asset:e})=>{var r,o;const t=((o=(r=e==null?void 0:e.mimeType)==null?void 0:r.split("/").pop())==null?void 0:o.toLowerCase())||"",n=xk(t);return D.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&D.jsx("div",{className:"flex items-center justify-center",children:D.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),D.jsx(ot,{icon:n,size:"lg",className:"text-primary-600"}),D.jsx("a",{href:ih(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},ID=({commentType:e=Yn.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:c,taskAssets:u,taskVerified:f})=>{const h={[Yn.INFO]:{bg:"bg-primary-100",border:"border-primary-200",icon:BC,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[Yn.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:FC,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[Yn.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:HC,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[Yn.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:jC,iconColor:"text-success-600 hover:text-success-600",text:"text-success-900"}}[e],v=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[w,C]=Y.useState(!1),[A,x]=Y.useState(yv(r)),[E,R]=Y.useState(e),[O,L]=Y.useState(""),M=()=>{C(!0)},U=()=>{const H=X0.sanitize(A);s(H,E),C(!1)},j=H=>{const G=X0.sanitize(A);R(H),s(G,H),C(!1)},$=()=>{C(!1)};return D.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[D.jsx(yM,{alt:t}),D.jsxs("div",{className:"flex-1 min-w-0",children:[D.jsxs("div",{className:`border ${h.border} rounded-sm ${h.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[D.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:D.jsxs("div",{className:"w-full",children:[D.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[D.jsxs("div",{children:[D.jsx(ot,{icon:h.icon,size:"lg",className:`mr-2 ${h.iconColor}`}),D.jsx("span",{className:`font-semibold text-sm ${h.text}`,children:t})]}),D.jsx(xM,{commentType:e,taskVerified:f,isUsernameAuthor:n.trim()===t.trim(),onEdit:M,onSaveCommentType:j,onDelete:i})]}),w?D.jsx(wk,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:x,commentType:e,isCommentTypeEditable:!1,initialValue:yv(r),actions:D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsx(Ht,{category:"outline",size:"smallCollapse",color:"secondary",onClick:$,title:"Cancel edit",children:"Cancel"}),D.jsx(Ht,{category:"solid",size:"smallCollapse",color:"primary",onClick:U,title:"Save edit",disabled:sh(A),children:"Save"})]})}):D.jsx("div",{className:`text-sm ${h.text}`,dangerouslySetInnerHTML:{__html:yv(r)}})]})}),c&&u&&(u==null?void 0:u.length)>0&&D.jsx("div",{className:`${h.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:u.map(H=>D.jsx(Y.Fragment,{children:xb(H.mimeType)?D.jsx(RD,{asset:H,onSetActiveSrc:L}):D.jsx(PD,{asset:H})},H.assetId))})]}),D.jsxs("div",{className:"flex gap-2 my-1",children:[o&&D.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:v}),f&&D.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[D.jsx(ot,{icon:zC}),"Comment Required"]})]})]}),D.jsx(q6,{plugins:[gM],open:!!O,zoom:{maxZoomPixelRatio:2},close:()=>L(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:O}]})]})},OD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABpCAYAAAB/GGzVAAAEtWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgdGlmZjpJbWFnZUxlbmd0aD0iMTA1IgogICB0aWZmOkltYWdlV2lkdGg9IjIwMCIKICAgdGlmZjpSZXNvbHV0aW9uVW5pdD0iMiIKICAgdGlmZjpYUmVzb2x1dGlvbj0iNzIvMSIKICAgdGlmZjpZUmVzb2x1dGlvbj0iNzIvMSIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjIwMCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEwNSIKICAgZXhpZjpDb2xvclNwYWNlPSIxIgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0icHJvZHVjZWQiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFmZmluaXR5IFBob3RvIDIgMi42LjIiCiAgICAgIHN0RXZ0OndoZW49IjIwMjUtMDUtMTRUMTE6NTA6MjAtMDQ6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/PpjjR1oAAAGCaUNDUHNSR0IgSUVDNjE5NjYtMi4xAAAokXWRzStEURiHH8M0YhjFwkKZNKzQDDWxUUZCSRqjfG3u3Jk7o+bjdu9Mkq2yVZTY+FrwF7BV1koRKVmzJTboeu/M1EzinM77Pv3Oed/O+R1wRFJq2qzxQzqTM8JjIe/c/ILX9YKTRjz00q6opj48PT3Jv+Pjjio73/TYvf4/9+eoj8VNFapqhYdU3cgJjwtPruR0m7eFW9SkEhM+Fe425ILCt7YeLfKzzYkif9lsRMIj4GgS9iYqOFrBatJIC8vL8aVTebV0H/sl7nhmdkZyh6w2TMKMEcLLBKOMECTAoMQgPfSJQwHx7u96f6F+iqzUqhJ1VjFYJkGSHN2i5qV7XLImelxmilXb/9++mlp/X7G7OwTOJ8t66wTXFnxvWtbnoWV9H0H1I1xkyvXZAxh4F32zrPn2wbMOZ5dlLboD5xvQ+qArhlKQqmU5NA1eT6BhHpqvoW6x6Flpn+N7iKzJV13B7h50yXnP0g9yqmfr0vdvXAAAAAlwSFlzAAALEwAACxMBAJqcGAAAFnlJREFUeJztnXm4XEWVwH95gQAhCbJKQVEsogKKKCAugEZDWCQsAh+o7AwooI4DguOniCJLHBAIMoojqCwjoLIG2ZR12FSCQRAiEAJUSkpCQCAkZH1v/jjVdL/u6tfbvbe3+/u+/vr1Xet131NV59RZRtGlWOdXAw4FjgS2BwaAvwFXAL8wWr3axubl9Aij2t2AZrDOrwk8DLyryiGvANsYrf6RXatqY51fGVgFGAOsDIxGBLvAELA8vJYCS4xWS7NuZxKEDmxL4DPAmsBM4Faj1SttbViDdJ2AWOfHAH8B3hc2LQVuARYDewGrh+3zgfcYrf6VeSNLsM5/ENgb2APYiAYFBPDA3cD1wJ+MVisya3yTWOc3Av4PMAz//94ADjda3dCWhjVBNwrIAcBvw8fbgWOMVnPDvnWAc4HDwv4TjFbTMm7fDsD+wMeArYC1E7z8AmAW0kFcA9xrtFqe4PVbxjq/NzLNnVDlEA9sZrRanF2rmqcbBeRK4PPh4xZGq6fK9q8HvACsCjxstNoh5fYMAO8F9gSOQqYVWTEXuBy4AfiL0Woww3tXYJ0/FrgQWKnGoScarc7PoEkt040C8hiwNeCNVhtUOeZ3yAO7yGi1euyYBNqxEvBuZMTaI417NMhfgWOBR7PuncN3MRU4qc5TbjRa7ZtikxJjoPYhHUdBaR1rna8m4OPDeyrTD+v8FsBjyEPZCcIBsA1wP/C4df4zWd3UOr8KcDPw9QZOez6d1iRPraGwE/kzsB2wBrAj8lC8jXX+PcBO4eOfkryxdX5L4CxE6a63c1kGPAL8ERGoF4F5iMK6IOxfjijsKwPjkPn7uoAC3g98FNFpxtS412hgc+Am6/z9wLeMVg/U2c6Gsc6vD/wa+EQDpy1CRt2uoBunWJ8C7gofnwWOBu4DBoFtgR8DHwn7DzZaXZnAPVcDjgO+R3F0qsYg8AwiENOBO41WryfQhjHAJGAK0jFsTW0hHQQuAM5M2rwaOovrgC0aPPVUo9XpSbalEazzo4FdgMOBTZHR7FeICbrCQth1AgJvK+qfo9j+QWAF0gMXmAF8rFUrj3V+c+A2qq+5FFiAjG4nG61mtnLPOtu1GXAeMBEZTUfidWBn4IlWFfkwrd0aeJCiSb1efm60OrqV+7eKdf4k4JzIrlORjmTY99ONOgiI9F9e8nmA4cJxDzAxAeE4BniUkYVjMfDdcMyuWQgHgNFqTlB0N0VG0ZEU8zWQad53Erj1gUhH0Khw3A58OYH7N411fjvEmFCgdI3sNIpT87fpyhGkgHV+R2AfxNVkNKI4TwfuMFoNtXDdMchU7XCGC14py5Ev++LCOkw7sc6vBRwBnIKsXFdjOnBQM5Yu6/x3gW9RWxcq525gitFqUaP3TBLr/DmIpW0ZMlX9A7A7stAMcLrR6tTSc7paQNIgLDZeipiJY6xAplxfNVo9l1W76sU6vwEy9dqf6kaYWcBu9Qp20MF+hIxUjXIXMrK23QPAOv8LxHfvTWBTo9V867xCDCcAPzVaHVd6TrdOsVIh+HjdTnXheAM42mg1pROFA8Bo9aLR6nOIIvpSlcO2BGYF/WpEwsh0H80Jx0PA7p0gHIG/hvdxwJnWeQOcXLL/sfIT8hEkEBwJZ1L08SqnoV63E7DOvwOx0FRbF3nUaPWhEc7fBLgX8alqlGeAHYxWrzVxbipY58cCTwMbhk0rkKk5yJR5I6PVP0vPyUcQwDo/HlFiY8IxBFwEbNdNwgEQHs4DgG8jD0Mp/wL+vdq51vnJiKWqGeF4CrEgdoxwAAQdaHfgibCpIBxzgO3LhQPyEQTr/ATEnj8psnsZ8H2j1RnZtipZgmn2GOCHyDrOY8CeRisXOXY04ut2CeJ53CiPAzsnsfaTFsE1ZjJiAXwBuK3aNLCvBSQ8DBcQNz+uQDyFf5ltq9LDOr8P4lC5b8zKF6aZ3wS+3+QtHLCt0erl5lvZWXSjq0mSnAgcH9m+ArH3d03cQj0YrW4EbhzhkF8DzToRLgQ+0UvCAX08gljnP4AE9ZSvQg8C3wDOb7f7eFYE0/Z0xN+rGeYDHzVaPZtcqzqDvhSQYM14Etg4srvCFt7LhACvGxDHyGZ4EdjFaDUruVZ1Dn1nxQoK67eJC8e9xKdcPYl1fgrwAM0LxwJgr14VDujDEcQ6/2HE07a8c1gBvMto9UL2rcqW0EmchehgjbqNlPIRo9Wfk2lVZ9KPSvpUKoVjOWL27AfhGA/8D3AQzc8gFiEr5D0tHNBnAmKdP4j4escdwJ0ZNydzrPMbAz8n/h3Uy+vAF4xW9yXTqs6mrwQEmVKU8yrw2Q7yF0qFIBwPUHSzaIYlyNrQLTWP7BH6Rkm3zu+BuMWXc1G3pKBpFuv8JCTrZCvCAXCI0eq3tQ/rHSoExDp/mnV+kXX+onY0KA3CCvG5VP6/c4Gz6zh/fev8tmG9oKuwzp+CeCiPa+Eyy4BDgGsTaVQXEZtiTQJWAw5G4rB7AUM8KvAco9Ub1U6yzm8P/Bfw6bBp0Dr/e+AM4MFWgrLSJqz1/AQJ+mqFxYhZ/Mqs/99gbVsHWcxdAryUdSrWftFBTqLSnLmcYobGCqzzGyKRcKU97wDiDborMNU6P9VotTDhtrZMGOnuRxLatcIK4Ayj1Xmtt6p+rPPjEJeX7zG8Y3vLOv9LpIP6ZxYC2/M6SAj4iQX7XBRzbw7nDCC5nqpNSwaQXnVWWFfpGKzzWyPu5q0KB4jj4tSaRyWIdf7jwHNIzoHyUX81ZCF3DjAtOJumyijr/DTE9bfAJsBYxCfp7yXbH0USD3dULthaBOW83OqyBElb+nyVcyYgP9JaddxiEfBL4KR2K/vW+UMQ7+R62j0Sg0giih9k+Xtb5w9E3OwLqZVeRTqq2UiusF2QBHkFrgYOTbONKwFfQvLYljOAJF8usBUSnvhi5NhOZvfItnlIEuWRqNfLYCziLj/ZOn+s0eruRhqXBCG+4QTgTKonmaiXQSRALGvh2AD4b0Q4liP606nlcSXW+X2R+PiNkNRPs0kmW0uUUdb5I5Evt8BmSEqXQYqRV4NITqML02pIGgQlbzbyP5VyntGqaqrM8MA9FTmvHqYBp2Slm4SEChcC/5bA5YaQ3/mYBK5VN2FKez/iTTwIfMdoddYIx6+NhM6uhfiDrZ9WxpSKXjKkrNwRWGC0qpbCvisIOXRjjnS6VnEd6/ynkRX2Rv3VhoB/IK4rFUkAksQ6vzriAfCRWsfWyUXA14xWy6rca0kao4p1fl1kSrs6YhiZVEsBDyPJ9eHjD41WJ490fLP0upL+yci25+qpPGW0ugvJMdUoowANPGKd/0nQZxIn5CB+mOSE43IkK2RMOLYCLOklftuCYiK6y+qxToUiPLPDx/3TUthjAlLoISq+qC4k9vA8FdkWJQzzzc5vV0LWkR6xzu8aphGJEFbGZ5BcLZJbgC/GpoXW+W2Q5A1rIUm006DUEnh/1aMqKQRojaO5+PmaxH60K5F8SqelccOM2SSyraHYhZCwYSoyN26GzZGV7ItDGp6msc4PWOcPRaZ+tZJo18sfjFZ7Gq2WRO63KTKFK0RdpmXSLjUsVLRjBAqd+ChSmg3FLnoxku2hqxTyKsQK7Pylieucgqyot8JRwOwwd26Wc4FftNiOUu5GUrdW406Gl5DbNNQDSZrS5YT3N3BewbdsKcW6MYlSsZIe5n9vpXGzNrBeZNuTjV4kxKZ/K1i3WlEG1wZ+Y52fDnyp3pIE1vlVkbp/+5FcT/kQcKDRaqTfutz3bACpqvW3hNpQYAYycqyCuDjdVuuEYIAp5DF7MC0XlJ5V0sPDHJvSNJ1YwGj1DVov/rIykjd3tnX+C6GdVQkuL7chCeCS+r3+igQ8za9xXKzWvE6oDaXMp1h1ar+QlLwqwc/sGsR9aAkproP0rIAgC0nlJtq3Wk1oZrQ6CZl+tuoHVEgL+rtg168gxHA8SNwa1yxPAh8eyUmzhNgIt36CbQEg6D9HIjrFWOD31vkdYpapYBK+heLocbPR6u/lxyVFLwtIbHqVVM6mExD3kiTYDXjWOn9Y6Ubr/LZIruBmUn9WYw7wyZgptwpvRraNVFqhaYxWDwGFyrdjkeCuP1vnj7bOb2Odn2yd/xWS87fQYcxGdLvU6GVv3piVJxHdymi1wjp/dLheEmsDawCXWecPRkoXbI1kN1wtgWsX+CdShqDWtKqUmG9ZzC0pKb6N5Ayeijyb2yJGoxj3IX5YqaY47eURJJatIzFnwmDM+CqSACEpdkX0jXNIVjg8koGkUf0rZtpOsl3DMFotN1r9ADEn/47hFaBApmAzEUPJpCySbPTyCBKbRiTa+xmthqzzxyP6xIF0Zhqll5HM9LWcM2PEVqdT91g2Ws0A9gq+dFsgyw4LgRlZx9/0soDE5s+JTw+MVoNh8W41pDx0J7EQ6WmbEQ6IewZn5uEbRulZNLi4myS9PMWaF9nWapxElKD07gdclcb1m2QZUvDn8RauEQsYS7ScdKfTywIyl0pT7PjglZo4IW3QEYwQxpshC4FPGa0eaPE6sfLSsY6nZ+lZAQkrqzFbfzMxHo3c82DE4a5dCR0WIxVlWxUOgHUj27qqylar9KyABGK9XVIesFHCdGsyYsdvBwcbre5p9SKhoGlsBOm5Egcj0esCElNOP5j2TUNs+mTq8ClKmEOMVtcldK1dqbTKzTVaLUjo+l1BrwvI85FtW2dx4yAkByDF6tNmGRLP8asEr7lXZFszntBdTa8LyMzItvdkdfNgs9+PYmx/GixHYrirrTg3TMhEOTGyqyezuVvnR1nnx8eC2npdQO6KbNu8mnNgGhit3gQKuZ7S4HSjVauxKuVMCK9yenUE+S7y+1SUxe51Afkb4oNUygDwlSwbETxnd0DKLyfJ94DTE74miKdsbA2k4ViaLuFrSKzOZ8t39LSAhECn6ZFdR4ZpRJZtmY9Mt+YkcLlBJDfUGSml3/wGlQr6341WNoV7dQKjy97fpqcFJHBrZNs7idv4UyU4C+6NLOQ1yyDwG+CENGqahACtPSO7Wg0U6yhCfP9Aud5Rvr1tvlgh4dmxwCeQUMuZwM9S8ND8Y2TbqsAxtCExhdHqiVBZdgbNecZehaSATatE9S6RbW8h3rU9gXX+TGRBtzBKFrwrtqdEV7TOX5i592lIJj0NMYGWPyDLEcX6OKNVElORwj2vRaY3pSwCNm4wPiIxrPOTgetorG7HFYg5NxWP2uA9OwOJwyjlaeB93ZaXOUZIcVozL1pgSaZTLOv8ekhPVPB+BfH5n4e4ZqyELFA9Yp1/X/QizfEdKr1Qx9JG71uj1R+QeJJ6H/Y7kI4jTXfzvagUDoDTekE4Ai8hMTwzkYTsj1KMe1lYsm0mcHamI4h1/kaKD+WLyFThjrBvMyS738eRoW8BYIxWryVw31WRXnCjsl1zkCzvbUuSZ50/AimsOVJn9QLw/mAyTrMtd1O5/vGC0WqTNO/bbqzzbyARqA8YrXYq3ZfZCGKd35Ki8vccsGVBOADClOpTiHUGpMGtVkcqXHsx8TSimxEv7JkllyMjajWdwgLbZyAcExF9sJxO8E5uG1lOsc5AzGhLkTiFCk/b0JOfSTEJ2GHlx7TAFQxPUFbgK2GEaQtB2b4KEdbJwOeRDB+HIh3Kx9LWk0Iandgo9ho9Zr2qwlDZ+9tkYsUK6VsKaSufNlo9U+1Yo9XLIbHaAcAHrfNjkkgKFsJjf0xlxkgNXGKdPyxFy9CIhLWMF8KrHRyFhLWWc261Klw9xs+QTunm8h1ZjSCjKS7C1OMN+nx4H6BogkuCHxP3izoQ+ECC9+kaQsm2C4nkEEMenJ7HaHWy0WqdkDBiGFkJyDKKKXfKFeUYBVv8m8gwnwihp47pHCsD91rn35nUvbqBsBgWy/U7hKQl7avowRiZCEh4MC8PHze0zlfNJRUW0QoxG7en4EpxJ5LRsJwJwE+SLFPQBUxDFsfKmQn8PuO2dCRZPgznICloRgFnW+f3LE8tGYb7S0s2XZJ0I4J7xpeJZ1ncD0nY1tME9+5Dkfol5bwK7JtWMuhuI+t1kBMRQSkI5r3Ios2byMN5KKKrDAE3AvulVQs7FKG5lcrUNkPAQcA1WdThbgfW+Q8h2d3LSxkMAScaraZl36rOJGsBGQD+g9qmw9uBfWJFXRJuzwVEYgAomqLvSfP+7cA6vx2StjPmB3YpcHQaTpDdSqbz7WBGPR9ZkJpOZfbDh5HSvp9JWzgC/0ncHX4McJt1fv8M2pAZ1vmdEFefmHA8hdR6z4WjhLamygwlyd6LTHOebSEDYCttUMhU792R3cuAY4xWl2XbqmQJToiTgKsZXjGqwEvAtkarFzNtWBfQiblkMyd4GD+JxInEOBWY2o0Oe8EQsi8iHLGF4deR3L19lc6nXnIBCVjn10dirlVk9xCSDG5KnYVnOoKg812MZHyMTaeXARONVg9m2a5uop9s/iMSXCp2I54qaBSwMzDDOj8ly3Y1i3X+w4hOdxTx33kxsEsuHCOTjyBlWOc3B26gWOKrnOXARciUK3OdqRZhungskqkjViMFwAF7GK2SLsbZc+QCEiGEA9+LrDJX+44GkanLdVnXrIgRyjN/GvFYKK9OW8rjiIdw29vcDeRTrAihNPKOyKJmNQaAy4CnrfPHt9NFJdRefwq4iZGF4xJy4WiIfASpgXV+T6RgZ60sKM8hq/+XGK3SzKRYaJcBvoRYqLaqcfibwBcR74C2RU92I7mA1IF1fg3gp0hisXL3jHIGETeOq4E/AU8m0WOHKdQWSAK6/RGP51iJtPK23Ax82WjVV2ULkiIXkAawzn8c+F9gE+r/7pYB9wDXI3rNq8CSsH1FeBUYQNYqVkYEcQKwExJZuDf1B7gNAfOBo4xWPZOupx3kAtIgITx3IhKr3UjKHpAHd0l4LQ+vkQRkFRr/jRYgddyvznWN1skFpEms8+OQXv3rxFPlZM0ziBPo9XmgU3LkAtIiwXo1EVGCdwY2yPD285FKVpcCN+WOhsmTC0jCWOd3R0aVbRAdopZS3whLkSnUHGS0uLYb/cO6iVxAUiJU050AfAiYAuyBKPeN4pEqVTcheYZf77cyaO0kF5AMCUKzHlKvfTySsaWglBesWouQ6rz/Al7uJufInJycnJycnJycnJycnJycnJycnJycnA4jXwdpghBxuB4SnLR2eC/8PR4p7zYWWUUfgxQNLYS/rkQxUC0WEruMYp2KpSXvS5E48sL7AqRk2CvhNb/0lS8mJkMuIGUEb12N+FStD2yM1M7YLGzfEHhH2xpYPwuQMndzkUQUz4V3H15zc2/f2vS1gISEahOQaMF9kUCkHeifUOTHgWuAaxFher1dRYQ6lb4VEOu8RmpjbA+sQf8IRYwhxL1lFnC80Wpmm9vTMfSlgIQS0zMQ3SBnOEuAI41WV7W7IZ1Av/aar9K+eoCdzjzEnT6HPh1BCljnDwe+iaQbHU9/dhiDiDXsNeAC4Ed55pMifS0g8HZy5wmIHrIbsDuSgG1CO9uVMouRBBK3IbVY5iEKeh58VUbfC0iMYN1aBzHzrodYuTakaObdIGxbBzH5dsrI8xqyDvIK8I/wcuE1Hylz8BIwL7dW1UcuIC0SRqA1EYFZCxl5xiIZT8aFvycgBoFRSPGaUeEVMxIspZjp5C3EwrSQ4YuDC4ksFOYjQPL8P/fGGg4HNsWXAAAAAElFTkSuQmCC",MD=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:c,taskVerified:u})=>{const f={...t?{action:t}:{},taskInstanceId:n,taskVerified:u,timezone:r,commentId:o,...i?{comment:J0(i)}:{},commentType:s,hasAssets:c},m=new Headers;return m.append("Content-Type","application/json"),m.append("username",e||""),await(await fetch(`${Zi}/manage-comment`,{method:"POST",headers:m,body:JSON.stringify(f)})).json()},ND=async(e,t,n,r)=>{var C;const o=e.name.split(".").pop(),i=eD(e,o),s=await qL(e),c=((C=e.name)==null?void 0:C.split("."))||[];c.pop();const u=c.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,f=s.length,m={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:u,fileSize:f,sequenceOrder:n},h=new Headers;return h.append("Content-Type","application/json"),h.append("username",r||""),await(await fetch(`${Zi}/upload-comment-asset`,{method:"POST",headers:h,body:JSON.stringify(m)})).json()},LD=(e,t,n,r)=>{const o=["comments",t],i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},DD=(e,t,n)=>{const r=["comments",t],o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},FD=(e,t,n)=>{const r=["comments",t],o=e.getQueryData(r);if(o){const i=o.taskComments.map(s=>s.commentId===n.commentId?n:s);e.setQueryData(r,{...o,taskComments:i})}},jD=({playbookInstanceId:e})=>{const{queryClient:t}=hi(),n=iy({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:c,commentId:u,comment:f,commentType:m,hasAssets:h,attachments:v,username:w,taskVerified:C}=o,A=await MD({username:w,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:c,commentId:u,comment:f,commentType:m,hasAssets:h,taskVerified:C});return A.commentId&&h&&v&&await Promise.all(v.map(x=>ND(x.originFile,A.commentId,x.sequenceOrder,w))),A},onMutate:async o=>{var h;const{action:i,taskInstanceId:s}=o,c=["comments",s],u=`temp-${crypto.randomUUID()}`,f=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:c});const m=t.getQueryData(c);return i==="delete"&&o.commentId&&DD(t,s,o.commentId),i==="add"&&LD(t,s,+e,{commentId:u,author:o.username,comment:J0(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((h=o.attachments)==null?void 0:h.map(v=>({assetId:f,assetPath:v.url,mimeType:v.mimeType,name:v.name,url:v.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&FD(t,s,{author:o.username,comment:J0(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:m,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(["comments",s.taskInstanceId],s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:["comments",s.taskInstanceId]}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}},wb={[Yn.INFO]:{icon:ER,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[Yn.WARNING]:{icon:pR,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[Yn.DANGER]:{icon:_R,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[Yn.SUCCESS]:{icon:zC,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},kk=Object.entries(wb).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),zD=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:c})=>{const[u,f]=Y.useState(""),[m,h]=Y.useState(Yn.INFO),[v,w]=Y.useState(0),[C,A]=Y.useState([]),x=Y.useRef(null),{username:E}=hi(),{manageComment:R}=jD({playbookInstanceId:s}),O=()=>{const G=C.length,pe=C.some(se=>!xb(se.mimeType))?"Attachment":"Image",ie=G>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${pe}${ie} added.</span></p>`},L=G=>{const q=Array.from(G).map((pe,ie)=>XL(pe,C.length+ie+1));A(pe=>[...pe,...q])},M=G=>{A(q=>q.filter(pe=>pe.originFile!==G))},U=G=>{h(G)},j=async()=>{if(!C.length&&sh(u)||!o)return;C.length>0&&A([]);const G=X0.sanitize(u);f(""),w(q=>q+1),await R({action:"add",comment:C.length>0&&sh(u)?O():G,username:E||"",commentType:m,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:C.length>0,taskInstanceId:o,taskVerified:c,attachments:C}),h(Yn.INFO)},$=async G=>{o&&await R({username:E||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:G})},H=async({commentId:G,comment:q,commentType:pe,hasAssets:ie,isAlreadyVerified:se})=>{o&&await R({action:"edit",username:E||"",...q&&{comment:q},taskInstanceId:o,commentId:G,hasAssets:ie,taskVerified:se,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:pe})};return Y.useLayoutEffect(()=>{x.current&&n&&!i&&e.length>0&&(x.current.scrollTop=x.current.scrollHeight)},[n,i,e.length]),D.jsxs("div",{className:gt("transition-all duration-300 fixed bg-white right-0 bottom-0 h-[100vh] z-[9999999998] flex flex-col min-w-[270px] max-w-[420px] w-[calc(100vw-1rem)] border border-gray-200 rounded-t-sm overflow-hidden",n?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"),children:[D.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),D.jsx(ot,{icon:UC,className:"size-4 text-gray-300"})]}),D.jsx(Ht,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:D.jsx(ot,{icon:qh,className:"size-4 text-gray-300"})})]}),D.jsxs("div",{ref:x,className:"flex flex-col flex-1 overflow-y-auto",children:[D.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&D.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(G=>D.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},G))}),(e==null?void 0:e.length)>0&&!i&&e.map(G=>D.jsx(ID,{username:E||"",onDelete:()=>$(G.commentId),onEdit:(q,pe)=>H({commentId:G.commentId,comment:q,commentType:pe,hasAssets:G.hasAssets,isAlreadyVerified:G.taskVerified}),...G},G.commentId)),(e==null?void 0:e.length)===0&&!i&&D.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[D.jsx("img",{src:OD,className:"opacity-70",alt:"Empty"}),D.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),D.jsx(wk,{attachments:C,onChange:f,containerClassName:"fixed bottom-0 left-0 right-0 bg-white",clearKey:v,commentType:m,onCommentTypeChange:U,onAddAttachments:L,onRemoveAttachment:M,onSubmit:j,isOpen:n,actions:D.jsx(Ht,{category:"link",size:"normalCollapse",title:"Send comment",onClick:j,disabled:sh(u)&&C.length===0,children:D.jsx(ot,{icon:jL})})})]})]})},X1=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t||""),await(await fetch(`${Zi}/comments/${e}`,{method:"GET",headers:n})).json()},BD=({taskInstanceId:e,enabled:t})=>{var u;const{queryClient:n,username:r}=hi(),o=async()=>await X1({taskInstanceId:e.toString(),username:r||""}),i=["comments",+e],s=Bh({queryKey:i,queryFn:o,staleTime:1/0,enabled:t},n),c=f=>{const m=async()=>await X1({taskInstanceId:f.toString(),username:r||""});n.prefetchQuery({queryFn:m,queryKey:["comments",+f],staleTime:1/0})};return{comments:((u=s.data)==null?void 0:u.taskComments)||[],...s,isLoading:s.isLoading,prefetchQuery:c}},q0=Y.createContext({comments:[],openTaskDetails:null,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),UD=()=>{if(!Y.useContext(q0))throw new Error("useCommentContext must be used within a CommentProvider");return Y.useContext(q0)},WD=({playbookInstanceId:e,children:t})=>{const[n,r]=Y.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),{taskInstanceId:o,taskName:i,taskVerification:s}=n||{taskInstanceId:null,taskName:"",taskVerification:!1},{comments:c,isLoading:u,prefetchQuery:f}=BD({taskInstanceId:o||0,enabled:o!==null});return D.jsxs(q0.Provider,{value:{comments:c,openTaskDetails:n,setOpenTaskDetails:r,prefetchQuery:f},children:[t,ui.createPortal(D.jsx(zD,{playbookInstanceId:e,comments:c,onClose:()=>r(null),isOpen:!!o,taskName:i,taskInstanceId:o,isLoading:u,taskVerification:s}),UO)]})},$D={[Zt.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[Zt.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[Zt.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[Zt.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Li={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},HD=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:c,playbookId:u,taskStyle:f,listStickyTopBase:m})=>{const[h,v]=Y.useState(!1),{taskDetails:w,prefetchQuery:C}=VI({taskId:e.taskId,playbookId:u,enabled:s}),{setOpenTaskDetails:A,prefetchQuery:x}=UD(),{buttons:E}=YT({taskStatus:e.workflowStatus,canStart:i}),R=Y.useMemo(()=>e.imageRequired===0?Li.NO_VERIFICATION:e.imageRequired===1?Li.SCREENSHOT:e.imageRequired===2?Li.PHOTO:e.imageRequired===4?Li.COMMENT:null,[e.imageRequired]),O=async L=>{try{v(!0),await r(L)}finally{v(!1)}};if(o==="list"){const L=Y.useMemo(()=>e.workflowStatus===Zt.COMPLETED?"success":e.workflowStatus===Zt.IN_PROGRESS?"primary":"default",[e.workflowStatus]),M=Y.useMemo(()=>{const U=[];return E.forEach(j=>{j==="START"&&U.push({id:"START",color:"primary",action:"Start",to:Zt.IN_PROGRESS}),j==="COMPLETE"&&(!e.taskVerified&&R===Li.COMMENT&&U.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),U.push({id:"COMPLETE",color:"success",action:"Complete",to:Zt.COMPLETED,disabled:!e.taskVerified&&R===Li.COMMENT}))}),U},[E,R,e.taskVerified]);return D.jsxs("div",{className:gt("flex flex-col"),children:[D.jsxs("div",{className:gt("flex items-center gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",s&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:s?m:0},children:[D.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),D.jsx("div",{onClick:()=>{c==null||c(!s)},onMouseOver:C,className:gt("flex-1 truncate cursor-pointer",s&&"font-medium",e.workflowStatus===Zt.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===Zt.IN_PROGRESS&&(f==null?void 0:f.titleColor)||"#1C232D"},children:e.taskInstanceName}),D.jsx(MO,{taskVerified:e.taskVerified,verificationType:R,title:e.workflowStatus,variant:L,transitions:M,onClick:U=>{if(U===Yc.ADD_COMMENT){A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(U)}}),D.jsx(Jx,{onMouseOver:()=>x(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Yn.INFO,onClick:()=>A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(w==null?void 0:w.description)&&D.jsx("div",{className:gt(!s&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:D.jsx(Xx,{description:(w==null?void 0:w.description)||""})})]})}return D.jsxs("div",{className:Jf("flex items-stretch rounded-sm overflow-hidden border",$D[e.workflowStatus]),children:[D.jsx(FO,{playbookType:n,status:e.workflowStatus,step:t}),D.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&D.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:D.jsx(zO,{status:e.workflowStatus})}),D.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[D.jsx("div",{className:gt("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(f==null?void 0:f.titleColor)||"#1C232D"},children:e.taskInstanceName}),R?D.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[D.jsx(ot,{icon:mR,className:"size-4"}),D.jsxs("div",{children:[D.jsx("span",{className:"font-medium",children:R===Li.PHOTO?"Photo":R===Li.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):D.jsx(D.Fragment,{})]}),(w==null?void 0:w.description)&&D.jsx("div",{className:gt(!s&&"hidden"),children:D.jsx(Xx,{description:(w==null?void 0:w.description)||""})}),(E.length>0||e.hasDescription)&&D.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[D.jsx("div",{className:"flex-1",children:D.jsx(KI,{buttons:E,onButtonClick:O,disabled:h})}),D.jsx(Jx,{onMouseOver:()=>x(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Yn.INFO,onClick:()=>A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),c&&D.jsx(Ht,{size:"smallCollapse",onMouseOver:C,category:"link",onClick:()=>{c()},title:s?"Hide task description":"Show task description",children:D.jsx(ot,{icon:UC,className:Jf("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},Tk=Y.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,c;return D.jsx("div",{ref:o,className:gt("border-b border-gray-200 flex items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:D.jsx("div",{className:gt("text-xl min-h-16 p-4 font-medium flex-1",{"text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(c=n==null?void 0:n.whiteLabel)==null?void 0:c.titleTextColor},children:e})})});Tk.displayName="PlaybookHeader";const VD=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=VT(e);if(!r)return D.jsx("div",{});console.log({playbookStyle:n});const i=async(s,c)=>{var u;if(s===Yc.COMPLETE){const f=(u=r.tasks.find(m=>m.taskInstanceId===c))==null?void 0:u.sequenceOrder;if(f===void 0){console.error("Task not found in playbook");return}return o.completeTask(c,f)}if(s===Yc.START)return o.startTask(c)};return D.jsx("div",{className:"confidence-playbook",children:D.jsx(_k,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},KD=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>D.jsxs("div",{className:gt("w-full p-4",e),children:[n&&D.jsxs("div",{className:gt(r==="card"&&"mb-4"),children:[D.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),D.jsx("div",{className:gt(r==="card"&&"space-y-4"),children:t})]}),_k=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var x,E,R,O,L;const{playbookInstanceName:o,tasks:i}=e,s=Y.useRef(null),[c,u]=Y.useState(0),[f,m]=Y.useState(!0),h=()=>{m(!f)},{isTaskExpanded:v,toggleTaskExpanded:w,isAtLeastOneTaskExpanded:C}=MS(e.playbookInstanceId,{onTaskExpanded:()=>{var M;u(((M=s.current)==null?void 0:M.offsetHeight)||0)}});Y.useEffect(()=>{if(C){if(!s.current)throw new Error("Playbook header ref is not set");new ResizeObserver(U=>{var j;for(const $ of U)$.contentRect&&u(((j=s.current)==null?void 0:j.offsetHeight)||0)}).observe(s.current)}return()=>{s.current&&new ResizeObserver(()=>{}).unobserve(s.current)}},[C]);const A=Y.useMemo(()=>{const M=i.filter(U=>U.workflowStatus===Zt.COMPLETED).sort((U,j)=>j.sequenceOrder-U.sequenceOrder)[0];return M?M.sequenceOrder+1:0},[i]);return D.jsxs("div",{className:gt(!(r!=null&&r.overlay)&&"min-h-screen",(r==null?void 0:r.overlay)&&"fixed bottom-0 z-[9999999997] flex","transition-all duration-300 ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:f?((x=r.overlay.size)==null?void 0:x.width)||450:"2.25rem",height:((E=r.overlay.size)==null?void 0:E.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((R=r.overlay.offset)==null?void 0:R.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((O=r.overlay.offset)==null?void 0:O.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&D.jsx("div",{onClick:h,className:gt("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((L=r==null?void 0:r.whiteLabel)==null?void 0:L.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:D.jsx("img",{src:yS,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),D.jsxs("div",{className:gt("flex flex-col flex-1 bg-gray-50",(r==null?void 0:r.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[D.jsx(Tk,{title:o,className:gt("top-0 sticky z-2"),playbookStyle:r,ref:s}),D.jsx(KD,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((M,U)=>{var j;return D.jsx(HD,{task:M,step:U+1,viewMode:t,playbookId:e.playbookId,canStart:M.sequenceOrder===A,onButtonClick:$=>n($,M.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(j=r==null?void 0:r.whiteLabel)==null?void 0:j.primaryColor},isExpanded:v(M.taskInstanceId),toggleExpanded:()=>w(M.taskInstanceId),listStickyTopBase:c||104},M.taskId)})})]})]})},YD=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles"})=>{const[s,c]=Y.useState(null);return Y.useEffect(()=>{(async()=>{const{playbookInstanceId:u,errorCode:f,details:m,message:h}=await NS({bank:o,email:e,timezone:i,playbookUid:t})||{};if(f)throw new Error(`Error initiating playbook: ${h} (Code: ${f}) - Details: ${m}`);c(u)})()},[]),s?D.jsx(as,{playbookInstanceId:s,playbookMode:n,playbookStyle:r}):D.jsx("div",{children:"Loading..."})},GD=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=Y.useState(null);return D.jsxs(D.Fragment,{children:[D.jsxs(zh.div,{children:[D.jsx(aR,{playbookId:e,disabled:!!i,onInitiated:s,btnLabel:r,btnColor:o}),D.jsx("style",{type:"text/css",children:Uh})]}),i&&D.jsx(as,{playbookInstanceId:i,playbookMode:t,playbookStyle:n})]})},as=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>D.jsx(IS,{children:D.jsx(WD,{playbookInstanceId:e,children:D.jsx(VD,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})});as.Context=IS;as.View=_k;as.AutoInstantiated=YD;as.WithInstantiateButton=GD;const Rk=e=>ui.createPortal(D.jsxs(zh.div,{style:{position:"relative",zIndex:2147483646},children:[D.jsx("style",{children:Uh}),D.jsx(as,{...e})]}),document.body),QD=e=>ui.createPortal(D.jsxs(zh.div,{style:{position:"relative",zIndex:2147483646},children:[D.jsx("style",{children:Uh}),D.jsx(as.AutoInstantiated,{...e})]}),document.body);Rk.AutoInstantiated=QD;exports.ConfidencePlaybook=Rk;
|