@confidencesystemsinc/sdk 1.5.6 → 1.5.8
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/components/comments/ConfidenceCommentBox.d.ts +1 -1
- package/dist/index.cjs +46 -54
- package/dist/index.js +3594 -3612
- package/dist/utils/asset.d.ts +1 -1
- package/package.json +1 -4
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./index.css');var
|
|
1
|
+
"use strict";require('./index.css');var Ok=Object.defineProperty;var Cb=e=>{throw TypeError(e)};var Mk=(e,t,n)=>t in e?Ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ce=(e,t,n)=>Mk(e,typeof t!="symbol"?t+"":t,n),bg=(e,t,n)=>t.has(e)||Cb("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)?Cb("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 Cp=(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 L=require("react/jsx-runtime"),Y=require("react"),ui=require("react-dom");function uS(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=uS(Y),fS=uS(ui);function Nk(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
|
|
9
|
+
*/var Ab;function Lk(){if(Ab)return zs;Ab=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 D=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=D.get(Z);oe!==void 0||(oe=C(Z.replace(A,"-$1").toLowerCase().replace(x,"-ms-")),D.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
10
|
`&&y.push(`
|
|
11
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
12
|
`?y.push(`
|
|
13
13
|
`,N):y.push(""+N))}return typeof Z=="string"&&Z[0]===`
|
|
14
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 Ep={};/**
|
|
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 Ap={};/**
|
|
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
|
|
23
|
+
*/var Eb;function Dk(){if(Eb)return Ap;Eb=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 D={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(D).forEach(function(b){M.forEach(function(k){k=k+b.charAt(0).toUpperCase()+b.substring(1),D[k]=D[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(D,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
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
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
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 Ep.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)})},Ep.version="18.3.1",Ep}var Bs={};/**
|
|
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 Ap.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)})},Ap.version="18.3.1",Ap}var Bs={};/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-dom-server-legacy.browser.development.js
|
|
30
30
|
*
|
|
@@ -32,17 +32,17 @@
|
|
|
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 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 D(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){D(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&&(D(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.");D(_[0]),g=""+_[0]}D(_),g=""+_}return typeof g=="string"&&g[0]===`
|
|
35
|
+
*/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(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 D(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){D(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&&(D(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.");D(_[0]),g=""+_[0]}D(_),g=""+_}return typeof g=="string"&&g[0]===`
|
|
36
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
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
38
|
`?a.push(xo,X):(D(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
|
|
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
|
|
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 Fd(a,l,d,g){return d.generateStaticMarkup?(a.push(Yt(l)),!1):hn(a,l,d,g)}function jd(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"),zd=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),dr=Symbol.for("react.strict_mode"),Bd=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"),Ud=Symbol.iterator,Om="@@iterator";function Mm(a){if(a===null||typeof a!="object")return null;var l=Ud&&a[Ud]||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 zd:return"Portal";case Bd: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,Wd,Zu,Bt,va,Xu,Ju,qu;function ef(){}ef.__reactDisabledLog=!0;function $d(){{if(ms===0){Wd=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 Hd(){{if(ms--,ms===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qn({},a,{value:Wd}),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,$d();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
41
|
`),X=g.stack.split(`
|
|
42
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=_,
|
|
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=_,Hd(),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 Vd={},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 Vd)&&(Vd[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 Kd(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 Yd(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 Gd(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 Qd(){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 Zd={},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(Zd[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
44
|
|
|
45
|
-
Please check the code for the %s component.`,l,l,g),
|
|
45
|
+
Please check the code for the %s component.`,l,l,g),Zd[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 Xd(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
|
|
|
@@ -50,20 +50,20 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
50
50
|
https://reactjs.org/link/unsafe-component-lifecycles`,Ze,yt,fe!==null?`
|
|
51
51
|
`+fe:"",ye!==null?`
|
|
52
52
|
`+ye:"",Pe!==null?`
|
|
53
|
-
`+Pe:""))}}}return W}function
|
|
53
|
+
`+Pe:""))}}}return W}function Jd(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 qd(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`,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
|
|
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 ep(a,l,d,g){Jd(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")&&(qd(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,Ik=S;return{id:1<<X|yg,overflow:Ik}}}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
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`,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",
|
|
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",tp(wc,a)}function tp(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=rp.bind(null,Co,ye);return[Ft.memoizedState,Pe]}}function np(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 rp(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 op(a,l){return np(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 ip={readContext:Ym,useContext:Gm,useMemo:np,useReducer:tp,useRef:mf,useState:hf,useInsertionEffect:Sc,useLayoutEffect:Qm,useCallback:op,useImperativeHandle:Sc,useEffect:Sc,useDebugValue:Sc,useDeferredValue:Jm,useTransition:eg,useId:tg,useMutableSource:Zm,useSyncExternalStore:Xm},gf=null;function ap(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
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,lp=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?lp: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),zd(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 cp(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=Yd(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),_=Jd(d,g,S);tp(_,d,g,S),cp(a,l,_,d,g),io(l)}var up={},Ls={},xf={},fp={},wf=!1,Ds={},Sf=!1,Cf=!1,Af=!1;function dp(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";up[_]||(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.",_,_),up[_]=!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)}tp(I,d,g,S),cp(a,l,I,d,g)}else if(pp(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 pp(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";fp[d]||(o("%s: Function components do not support getDerivedStateFromProps.",d),fp[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 hp(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 mp(a,l,d,g){var S=d._context,_=g.value,I=g.children,W;W=l.context,l.context=Gd(S,_),gr(a,l,I),l.context=Qd(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{dp(a,l,d,g);return}if(typeof d=="string"){bf(a,l,d,g);return}switch(d){case Gu:case Yu:case dr:case Ud: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:{hp(a,l,d,g,S);return}case hs:{ag(a,l,d,g,S);return}case Jl:{mp(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 Bd: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=jd(l.blockedSegment.chunks,d,a.responseState,Ri.lastPushedText);return}if(typeof d=="number"){var To=l.blockedSegment;To.lastPushedText=jd(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 gp(a){var l=this,d=a.blockedBoundary,g=a.blockedSegment;g.status=Tc,yp(l,d,g)}function vp(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 vp(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 yp(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(gp,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),zd(d.chunks,a.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Sa,yp(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=Zd(),d=Ac.current;Ac.current=ap;var g;g=Rs.getCurrentStack,Rs.getCurrentStack=yf;var S=gf;sp(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{sp(S),Ac.current=d,Rs.getCurrentStack=g,d===ap&&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];bp(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(!bp(a,l,d,_))return S++,g.splice(0,S),!1}return g.splice(0,S),!0}function bp(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 xp(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 wp(a,l){try{var d=a.abortableTasks;d.forEach(function(g){return vp(g,a,l)}),d.clear(),a.destination!==null&&Mc(a,a.destination)}catch(g){Is(a,g),Kr(a,g)}}function Rf(){}function Sp(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(xp(ye),wp(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 Sp(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 Cp(a,l){return Sp(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=Cp,Bs.renderToStaticNodeStream=p,Bs.renderToString=gg,Bs.version=t})()),Bs}var kp={};/**
|
|
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,sp=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?sp: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),jd(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 lp(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=Kd(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),_=Xd(d,g,S);ep(_,d,g,S),lp(a,l,_,d,g),io(l)}var cp={},Ls={},xf={},up={},wf=!1,Ds={},Sf=!1,Cf=!1,Af=!1;function fp(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";cp[_]||(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.",_,_),cp[_]=!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)}ep(I,d,g,S),lp(a,l,I,d,g)}else if(dp(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 dp(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";up[d]||(o("%s: Function components do not support getDerivedStateFromProps.",d),up[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 pp(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 hp(a,l,d,g){var S=d._context,_=g.value,I=g.children,W;W=l.context,l.context=Yd(S,_),gr(a,l,I),l.context=Gd(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{fp(a,l,d,g);return}if(typeof d=="string"){bf(a,l,d,g);return}switch(d){case Gu:case Yu:case dr:case Bd: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:{pp(a,l,d,g,S);return}case hs:{ag(a,l,d,g,S);return}case Jl:{hp(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 zd: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=Fd(l.blockedSegment.chunks,d,a.responseState,Ri.lastPushedText);return}if(typeof d=="number"){var To=l.blockedSegment;To.lastPushedText=Fd(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 mp(a){var l=this,d=a.blockedBoundary,g=a.blockedSegment;g.status=Tc,vp(l,d,g)}function gp(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 gp(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 vp(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(mp,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),jd(d.chunks,a.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Sa,vp(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=Qd(),d=Ac.current;Ac.current=ip;var g;g=Rs.getCurrentStack,Rs.getCurrentStack=yf;var S=gf;ap(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{ap(S),Ac.current=d,Rs.getCurrentStack=g,d===ip&&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];yp(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(!yp(a,l,d,_))return S++,g.splice(0,S),!1}return g.splice(0,S),!0}function yp(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 bp(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 xp(a,l){try{var d=a.abortableTasks;d.forEach(function(g){return gp(g,a,l)}),d.clear(),a.destination!==null&&Mc(a,a.destination)}catch(g){Is(a,g),Kr(a,g)}}function Rf(){}function wp(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(bp(ye),xp(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 wp(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 Sp(a,l){return wp(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=Sp,Bs.renderToStaticNodeStream=p,Bs.renderToString=gg,Bs.version=t})()),Bs}var Ep={};/**
|
|
67
67
|
* @license React
|
|
68
68
|
* react-dom-server.browser.development.js
|
|
69
69
|
*
|
|
@@ -71,17 +71,17 @@ Error generating stack: `+g.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 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 D(p){try{return M(p),!1}catch{return!0}}function M(p){return""+p}function U(p,a){if(D(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(D(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(D(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]===`
|
|
74
|
+
*/var Tb;function jk(){return Tb||(Tb=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 D(p){try{return M(p),!1}catch{return!0}}function M(p){return""+p}function U(p,a){if(D(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(D(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(D(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
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
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
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('","'),
|
|
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('","'),Fd=E('")<\/script>');function jd(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,Fd)}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 zd=/[<\u2028\u2029]/g;function Xl(p){var a=JSON.stringify(p);return a.replace(zd,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,Bd=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"),Ud=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 Wd(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 Wd(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,$d,Hd,rc;function oc(){}oc.__reactDisabledLog=!0;function gs(){{if(va===0){Xu=console.log,Ju=console.info,qu=console.warn,ef=console.error,$d=console.group,Hd=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:$d}),groupCollapsed:dr({},p,{value:Hd}),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
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
80
|
`),W=d.stack.split(`
|
|
81
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
|
|
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 Vd(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 Kd(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";Kd(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";Kd(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 Yd(p){var a=p.parent;a!==null&&Yd(a),fc(p)}function Gd(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):Gd(l,a)}function Qd(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):Qd(p,l),fc(a)}function Yo(p){var a=Ko,l=p;a!==l&&(a===null?Yd(l):l===null?Ss(a):a.depth===l.depth?ws(a,l):a.depth>l.depth?Gd(a,l):Qd(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 Zd(){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 Xd=new Set;ks=function(p,a){if(!(p===null||typeof p=="function")){var l=a+"_"+p;Xd.has(l)||(Xd.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 Jd(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
83
|
|
|
84
|
-
Please check the code for the %s component.`,a,a,d),dc[g]=!0}}var
|
|
84
|
+
Please check the code for the %s component.`,a,a,d),dc[g]=!0}}var qd={isMounted:function(p){return!1},enqueueSetState:function(p,a,l){var d=Cs(p);d.queue===null?Jd(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?Jd(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 ep(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
|
|
|
@@ -93,50 +93,50 @@ https://reactjs.org/link/unsafe-component-lifecycles`,Pe,Ze,X!==null?`
|
|
|
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`,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"),
|
|
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"),qd.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=qd,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
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`,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
|
|
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 tp(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 np(p){return Qo="useContext",Ci(),ba(p)}function mf(p,a){return typeof a=="function"?a(p):a}function Qm(p){return Qo="useState",rp(mf,p)}function rp(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 op(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 op(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 ip(){throw new Error("startTransition cannot be called during server rendering.")}function gf(){return Ci(),[!1,ip]}function ap(){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:tp,useContext:np,useMemo:op,useReducer:rp,useRef:Zm,useState:Qm,useInsertionEffect:Cc,useLayoutEffect:Xm,useCallback:qm,useImperativeHandle:Cc,useEffect:Cc,useDebugValue:Cc,useDeferredValue:Sc,useTransition:gf,useId:ap,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+=Vd(l.type,null,null);break}l=l.parent}while(l);return a}catch(d){return`
|
|
104
104
|
Error generating stack: `+d.message+`
|
|
105
|
-
`+d.stack}}var kc=n.ReactCurrentDispatcher,Tc=n.ReactDebugCurrentFrame,_c=0,Ca=1,vf=2,Ai=3,lp=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 cp(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=lp,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 up(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 fp(p,a,l,d){Is(a,l);var g=Vo(l,a.legacyContext),S=tp(l,d,g);Ts(S,l,d,g),xf(p,a,S,l,d),Kr(a)}var wf={},Ds={},Sf={},Cf={},Af=!1,dp={},pp=!1,Ef=!1,hp=!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";dp[a]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",a),dp[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 mp(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,_=mp(S,d);Ic(p,a,S,_,g)}function cg(p,a,l,d){l._context===void 0?l!==l.Consumer&&(hp||(hp=!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=mp(I,d);Ic(p,a,I,W,g),Kr(a)}function Ic(p,a,l,d,g){if(typeof l=="function")if(up(l)){fp(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 Wd:throw new Error("ReactDOMServer does not yet support scope components.");case Ku:{cp(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"&&(pp||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."),pp=!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 Ud:{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)){gp(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);gp(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 gp(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 vp(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"){vp(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 yp(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=lp,yp(p,a.blockedBoundary,l,S)}finally{Eo=d}}}function _f(p){if(p.status!==Ea){var a=Xd(),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 bp(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 xp(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];wp(p,a,l,S)}return d.length=0,zd(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(!wp(p,a,l,S))return g++,d.splice(0,g),!1}return d.splice(0,g),!0}function wp(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];bp(p,a,S)}d.splice(0,g);var _=p.completedBoundaries;for(g=0;g<_.length;g++){var I=_[g];xp(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];xp(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 Sp(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 Cp(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){Cp(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(){Cp(X,fe.reason),fe.removeEventListener("abort",ye)};fe.addEventListener("abort",ye)}Sp(X)})}kp.renderToReadableStream=vg,kp.version=t})()),kp}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(),Tp={exports:{}},_p={exports:{}},_t={};/** @license React v16.13.1
|
|
105
|
+
`+d.stack}}var kc=n.ReactCurrentDispatcher,Tc=n.ReactDebugCurrentFrame,_c=0,Ca=1,vf=2,Ai=3,sp=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 lp(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=sp,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 cp(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 up(p,a,l,d){Is(a,l);var g=Vo(l,a.legacyContext),S=ep(l,d,g);Ts(S,l,d,g),xf(p,a,S,l,d),Kr(a)}var wf={},Ds={},Sf={},Cf={},Af=!1,fp={},dp=!1,Ef=!1,pp=!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";fp[a]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",a),fp[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 hp(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,_=hp(S,d);Ic(p,a,S,_,g)}function cg(p,a,l,d){l._context===void 0?l!==l.Consumer&&(pp||(pp=!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=hp(I,d);Ic(p,a,I,W,g),Kr(a)}function Ic(p,a,l,d,g){if(typeof l=="function")if(cp(l)){up(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 Ud:throw new Error("ReactDOMServer does not yet support scope components.");case Ku:{lp(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"&&(dp||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."),dp=!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 Bd:{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)){mp(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);mp(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 mp(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 gp(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"){gp(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 vp(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=sp,vp(p,a.blockedBoundary,l,S)}finally{Eo=d}}}function _f(p){if(p.status!==Ea){var a=Zd(),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 yp(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 bp(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];xp(p,a,l,S)}return d.length=0,jd(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(!xp(p,a,l,S))return g++,d.splice(0,g),!1}return d.splice(0,g),!0}function xp(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];yp(p,a,S)}d.splice(0,g);var _=p.completedBoundaries;for(g=0;g<_.length;g++){var I=_[g];bp(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];bp(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 wp(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 Sp(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){Sp(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(){Sp(X,fe.reason),fe.removeEventListener("abort",ye)};fe.addEventListener("abort",ye)}wp(X)})}Ep.renderToReadableStream=vg,Ep.version=t})()),Ep}var _b;function zk(){if(_b)return _a;_b=1;var e,t;return process.env.NODE_ENV==="production"?(e=Lk(),t=Dk()):(e=Fk(),t=jk()),_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 Bk=zk(),kp={exports:{}},Tp={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 Rb;function Uk(){if(Rb)return _t;Rb=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 D(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 D(M)||O(M)===u},_t.isConcurrentMode=D,_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 Pb;function Wk(){return Pb||(Pb=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 D(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)||D(ke)===u}function ne(ke){return D(ke)===f}function re(ke){return D(ke)===c}function ue(ke){return D(ke)===s}function me(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===t}function Te(ke){return D(ke)===m}function de(ke){return D(ke)===r}function ve(ke){return D(ke)===C}function _e(ke){return D(ke)===w}function je(ke){return D(ke)===n}function ze(ke){return D(ke)===i}function Be(ke){return D(ke)===o}function Je(ke){return D(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=D})()),Rt}var Ib;function dS(){return Ib||(Ib=1,process.env.NODE_ENV==="production"?Tp.exports=Uk():Tp.exports=Wk()),Tp.exports}/*
|
|
120
120
|
object-assign
|
|
121
121
|
(c) Sindre Sorhus
|
|
122
122
|
@license MIT
|
|
123
|
-
*/var xg,
|
|
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,
|
|
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],D=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 D(U)}var j=x.current.attachShadow({mode:c,delegatesFocus:f});h.length>0&&(j.adoptedStyleSheets=h),D(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 wd=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 uh(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 fh=Symbol();function xS(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===fh&&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===fh?()=>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),dh=new vT;function yT(e){return Math.min(1e3*2**e,3e4)}function wS(e){return(e??"online")==="online"?dh.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"||dh.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,D=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(D).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===fh||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 D=this.observers.find(M=>M.options.queryFn);D&&this.setOptions(D.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=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(Me(this,rl,!0),r.signal)})},i=()=>{const D=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(D,U,this):D(U)},c=(()=>{const D={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:V(this,nl),state:this.state,fetchFn:i};return o(D),D})();(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:D=>{D instanceof Av&&D.revert&&this.setState({...V(this,au),fetchStatus:"idle"}),r.abort()},onFail:(D,M)=>{it(this,Po,Mi).call(this,{type:"failed",failureCount:D,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 D=await V(this,Rn).start();if(D===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(D),(w=(v=V(this,ao).config).onSuccess)==null||w.call(v,D,this),(A=(C=V(this,ao).config).onSettled)==null||A.call(C,D,this.state.error,this),D}catch(D){if(D instanceof Av){if(D.silent)return V(this,Rn).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw it(this,Po,Mi).call(this,{type:"error",error:D}),(E=(x=V(this,ao).config).onError)==null||E.call(x,D,this),(O=(R=V(this,ao).config).onSettled)==null||O.call(R,this.state.data,D,this),D}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&&!uh(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",D=x==="error",M=O&&R,U=w!==void 0,$={status:x,fetchStatus:h.fetchStatus,isPending:O,isSuccess:x==="success",isError:D,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:D&&!U,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:D&&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)),uh(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!uh(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,D,M)=>{if(A)return Promise.reject();if(D==null&&O.pages.length)return Promise.resolve(O);const j=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:D,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,D,H)}};if(o&&i.length){const O=o==="backward",D=O?CT:Gb,M={pages:i,pageParams:s},U=D(r,M);c=await R(M,U,O)}else{const O=e??i.length;do{const D=u===0?s[0]??r.initialPageParam:Gb(r,c);if(u>0&&D==null)break;c=await R(c,D),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,D,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=(D=this.options).onError)==null?void 0:M.call(D,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:++Ap(this,xd)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){V(this,zi).add(t);const n=Rp(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=Rp(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=Rp(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=Rp(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 Rp(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Bi,Fa,Mr,Ui,Vi,Qp,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,Qp).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),uh(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,Qp).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,Qp).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,Qp=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(){Ap(this,Ba)._++,V(this,Ba)===1&&(Me(this,pu,ry.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onFocus())})),Me(this,hu,dh.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onOnline())})))}unmount(){var e,t;Ap(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 dh.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===fh&&(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]),L.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 Uh(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 L.jsx(ay.Provider,{value:{queryClient:t,username:n,setUsername:r},children:L.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=Uh({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=Uh({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()},Sd='/*! 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}),ph="-",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(ph),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(ph):e.slice(t).join(ph),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(ph),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,D=O+E;if(s.indexOf(D)>-1)continue;s.push(D);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_),Pp=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),Ip=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"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...D(),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=()=>[...D(),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,Ip,Pp]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Ip,Pp]}],"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,Ip,Pp]}],"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":D()}],"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,Ip,Pp]}],"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 L.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})=>L.jsx(L.Fragment,{children:e&&ui.createPortal(L.jsxs(wd.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[L.jsx("div",{className:"fixed inset-0 bg-black/30"}),L.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:L.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&L.jsx("div",{className:" text-gray-900 p-4",children:n}),L.jsx("div",{className:"p-4",children:i}),r||o?L.jsxs("div",{className:"flex gap-4 p-4",children:[r?L.jsx(Ht,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):L.jsx(L.Fragment,{}),o?L.jsx(Ht,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):L.jsx(L.Fragment,{})]}):L.jsx(L.Fragment,{})]})}),L.jsx("style",{type:"text/css",children:Sd})]}),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 Op=null;function q_(){if(Op==null){Op=!1;try{document.createElement("div").focus({get preventScroll(){return Op=!0,!0}})}catch{}}return Op}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,Cd=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 hh(e){vl=!0,!ed.isOpening&&d4(e)&&(Cd="keyboard",uy("keyboard",e))}function lo(e){Cd="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,Cd="virtual")}function rC(e){e.target===window||e.target===document||u4||!e.isTrusted||(!vl&&!Fv&&(Cd="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",hh,!0),n.addEventListener("keyup",hh,!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",hh,!0),r.removeEventListener("keyup",hh,!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 Cd!=="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 mh=!1,Mp=0;function zv(){mh=!0,setTimeout(()=>{mh=!1},50)}function nx(e){e.pointerType==="touch"&&zv()}function b4(){if(!(typeof document>"u"))return Mp===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",nx):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",zv)),Mp++,()=>{Mp--,!(Mp>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=>{mh&&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&&!mh&&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 Ad(){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 Np(u,n,r,s,c);let f=o??0;if(f&2){let{static:m=!1,...h}=u;if(m)return Np(h,n,r,s,c)}if(f&1){let{unmount:m=!0,...h}=u;return lC(m?0:1,{0(){return null},1(){return Np({...h,hidden:!0,style:{display:"none"}},n,r,s,c)}})}return Np(u,n,r,s,c)}function Np(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(Zp(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(`
|
|
123
|
+
*/var xg,Ob;function $k(){if(Ob)return xg;Ob=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,Mb;function ey(){if(Mb)return wg;Mb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wg=e,wg}var Sg,Nb;function pS(){return Nb||(Nb=1,Sg=Function.call.bind(Object.prototype.hasOwnProperty)),Sg}var Cg,Lb;function Hk(){if(Lb)return Cg;Lb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ey(),n={},r=pS();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,Db;function Vk(){if(Db)return Ag;Db=1;var e=dS(),t=$k(),n=ey(),r=pS(),o=Hk(),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:D(),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 D(){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,Fb;function Kk(){if(Fb)return Eg;Fb=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 jb;function Yk(){if(jb)return kp.exports;if(jb=1,process.env.NODE_ENV!=="production"){var e=dS(),t=!0;kp.exports=Vk()(e.isElement,t)}else kp.exports=Kk()();return kp.exports}var Gk=Yk();const Xe=Nk(Gk);var Qk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hS(e,t){return e(t={exports:{}},t.exports),t.exports}var Zk=hS((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,D=0,M=0;if(f(E))for(O=[],M=E.length;D<M;D++)O.push(n(x,E[D],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 D=(O=O||{}).separator||"_",M=O.split||/(?=[A-Z])/;return R.split(M).join(D)})(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,D){return R(O,x,D)}},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})(Qk)})).decamelize,Xk=function(e){if(Array.isArray(e))return e},Jk=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}},zb=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},qk=function(e,t){if(e){if(typeof e=="string")return zb(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)?zb(e,t):void 0}},eT=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.`)},tT=function(e,t){return Xk(e)||Jk(e,t)||qk(e,t)||eT()},mS=hS((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})),nT=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},gS=function(e,t){if(e==null)return{};var n,r,o=nT(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},rT=Y.createContext(null);function vS(e){var t=e.children,n=t===void 0?"":t,r=gS(e,["children"]);return typeof n!="string"&&(n=Bk.renderToString(n)),Y.createElement("template",mS({},r,{dangerouslySetInnerHTML:{__html:n}}))}function yS(e){var t=e.root,n=e.children;return ui.createPortal(n===void 0?null:n,t)}function oT(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=gS(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=tT(E,2),O=R[0],D=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 D(U)}var j=x.current.attachShadow({mode:c,delegatesFocus:f});h.length>0&&(j.adoptedStyleSheets=h),D(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,mS({key:M,ref:x},A),(O||w)&&Y.createElement(rT.Provider,{value:O},w?Y.createElement(vS,{shadowroot:c,shadowrootmode:c},e.render({root:O,ssr:w,children:C})):Y.createElement(yS,{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}vS.propTypes={children:Xe.oneOfType([Xe.string,Xe.node])},yS.propTypes={root:Xe.object.isRequired,children:Xe.node};var kg=new Map;function iT(){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=Zk(o,{separator:"-"}),s="".concat(t,"-").concat(i);return kg.has(s)||kg.set(s,oT({tag:i,render:n})),kg.get(s)}})}var Bh=iT();const bS="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(){}},aT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jo,Js,q1,sT=(q1=class{constructor(){Ke(this,Jo,aT);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,q1),Gs=new sT;function lT(e){setTimeout(e,0)}var ml=typeof window>"u"||"Deno"in globalThis;function wr(){}function cT(e,t){return typeof e=="function"?e(t):e}function bv(e){return typeof e=="number"&&e>=0&&e!==1/0}function xS(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 Bb(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 Ub(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 uT=Object.prototype.hasOwnProperty;function xv(e,t){if(e===t)return e;const n=Wb(e)&&Wb(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:uT.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 ch(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 Wb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wv(e){if(!$b(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$b(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $b(e){return Object.prototype.toString.call(e)==="[object Object]"}function fT(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 dT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uh=Symbol();function wS(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===uh&&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===uh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ny(e,t){return typeof e=="function"?e(...t):!!e}function hT(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,eS,mT=(eS=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,eS),ry=new mT;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 gT=lT;function vT(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=gT;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=vT(),ou,Na,iu,tS,yT=(tS=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,tS),fh=new yT;function bT(e){return Math.min(1e3*2**e,3e4)}function SS(e){return(e??"online")==="online"?fh.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 CS(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"||fh.isOnline())&&e.canRun(),m=()=>SS(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??bT,D=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),fT(D).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,nS,AS=(nS=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,nS),tl,au,ao,nl,Rn,gd,rl,Po,Mi,rS,xT=(rS=class extends AS{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,Vb(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=Vb(this.options);n.data!==void 0&&(this.setState(Hb(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===uh||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:!xS(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 D=this.observers.find(M=>M.options.queryFn);D&&this.setOptions(D.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=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(Me(this,rl,!0),r.signal)})},i=()=>{const D=wS(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(D,U,this):D(U)},c=(()=>{const D={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:V(this,nl),state:this.state,fetchFn:i};return o(D),D})();(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,CS({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:D=>{D instanceof Av&&D.revert&&this.setState({...V(this,au),fetchStatus:"idle"}),r.abort()},onFail:(D,M)=>{it(this,Po,Mi).call(this,{type:"failed",failureCount:D,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 D=await V(this,Rn).start();if(D===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(D),(w=(v=V(this,ao).config).onSuccess)==null||w.call(v,D,this),(A=(C=V(this,ao).config).onSettled)==null||A.call(C,D,this.state.error,this),D}catch(D){if(D instanceof Av){if(D.silent)return V(this,Rn).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw it(this,Po,Mi).call(this,{type:"error",error:D}),(E=(x=V(this,ao).config).onError)==null||E.call(x,D,this),(O=(R=V(this,ao).config).onSettled)==null||O.call(R,this.state.data,D,this),D}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,...ES(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Hb(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})})},rS);function ES(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:SS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vb(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,kS,oS,wT=(oS=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),Kb(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&&!ch(this.options,n)&&V(this,Or).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,mt),observer:this});const o=this.hasListeners();o&&Yb(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 CT(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&&Kb(t,n),pe=G&&Yb(t,r,n,o);(q||pe)&&(h={...h,...ES(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",D=x==="error",M=O&&R,U=w!==void 0,$={status:x,fetchStatus:h.fetchStatus,isPending:O,isSuccess:x==="success",isError:D,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:D&&!U,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:D&&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)),ch(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,kS).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=xS(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))},kS=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"})})},oS);function ST(e,t){return so(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Kb(e,t){return ST(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 Yb(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 CT(e,t){return!ch(e.getCurrentResult(),t)}function Gb(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=>{hT(O,()=>t.signal,()=>A=!0)},E=wS(t.options,t.fetchOptions),R=async(O,D,M)=>{if(A)return Promise.reject();if(D==null&&O.pages.length)return Promise.resolve(O);const j=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:D,direction:M?"backward":"forward",meta:t.options.meta};return x(q),q})(),$=await E(j),{maxPages:H}=t.options,G=M?pT:dT;return{pages:G(O.pages,$,H),pageParams:G(O.pageParams,D,H)}};if(o&&i.length){const O=o==="backward",D=O?AT:Qb,M={pages:i,pageParams:s},U=D(r,M);c=await R(M,U,O)}else{const O=e??i.length;do{const D=u===0?s[0]??r.initialPageParam:Qb(r,c);if(u>0&&D==null)break;c=await R(c,D),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 Qb(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 AT(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,iS,ET=(iS=class extends AS{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||TS(),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,D,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,CS({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=(D=this.options).onError)==null?void 0:M.call(D,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})})},iS);function TS(){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,aS,kT=(aS=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 ET({client:t,mutationCache:this,mutationId:++Cp(this,xd)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){V(this,zi).add(t);const n=_p(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=_p(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=_p(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=_p(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=>Ub(n,r))}findAll(t={}){return this.getAll().filter(n=>Ub(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,aS);function _p(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Bi,Fa,Mr,Ui,Vi,Gp,Mv,sS,TT=(sS=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,Gp).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),ch(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,Gp).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,Gp).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,Gp=function(){var r;const n=((r=V(this,Mr))==null?void 0:r.state)??TS();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))})})},sS),ti,lS,_T=(lS=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 xT({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=>Bb(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Bb(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,lS),tn,ja,za,fu,du,Ba,pu,hu,cS,_S=(cS=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 _T),Me(this,ja,e.mutationCache||new kT),Me(this,za,e.defaultOptions||{}),Me(this,fu,new Map),Me(this,du,new Map),Me(this,Ba,0)}mount(){Cp(this,Ba)._++,V(this,Ba)===1&&(Me(this,pu,ry.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onFocus())})),Me(this,hu,fh.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onOnline())})))}unmount(){var e,t;Cp(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=cT(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=Gb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e.behavior=Gb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fh.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===uh&&(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,cS),RS=F.createContext(void 0),PS=e=>{const t=F.useContext(RS);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RT=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.jsx(RS.Provider,{value:e,children:t})),IS=F.createContext(!1),PT=()=>F.useContext(IS);IS.Provider;function IT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OT=F.createContext(IT()),MT=()=>F.useContext(OT),NT=(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))},LT=e=>{F.useEffect(()=>{e.clearReset()},[e])},DT=({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])),FT=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))}},jT=(e,t)=>e.isLoading&&e.isFetching&&!t,zT=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Zb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BT(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=PT(),o=MT(),i=PS(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",FT(s),NT(s,o,c),LT(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]),zT(s,m))throw Zb(s,f,o);if(DT({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&&jT(m,r)){const x=u?Zb(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 Uh(e,t){return BT(e,wT,t)}function iy(e,t){const n=PS(t),[r]=F.useState(()=>new TT(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 _S,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},OS=({children:e})=>{const[t]=Y.useState(new _S),[n,r]=Y.useState("");return L.jsx(ay.Provider,{value:{queryClient:t,username:n,setUsername:r},children:L.jsx(RT,{client:t,children:e})})},Zt={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},MS="https://marketplace.confidence.com/api",Zi=MS+"/confidence",Xb=MS+"/dropbox/prod",UT=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()},WT=()=>{const{queryClient:e}=hi(),t=iy({mutationFn:async r=>UT(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},$T=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()},HT=()=>{const{queryClient:e}=hi(),t=iy({mutationFn:async r=>await $T(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},NS=(e,t)=>{const{queryClient:n}=hi(),r=Uh({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}},VT=(e,t)=>{const{queryClient:n}=hi(),{completeTask:r}=WT(),{startTask:o}=HT(),{toggleTaskExpanded:i}=NS(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}}))}}},KT=e=>{var o;const{queryClient:t}=hi(),n=Uh({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=VT(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"},YT={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},GT=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])}},LS=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()},wd='/*! 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%)}}',QT=(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},ZT=(e,t)=>({classGroupId:e,validator:t}),DS=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),dh="-",Jb=[],XT="arbitrary..",JT=e=>{const t=e_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return qT(s);const c=s.split(dh),u=c[0]===""&&c.length>1?1:0;return FS(c,u,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const u=r[s],f=n[s];return u?f?QT(f,u):u:f||Jb}return n[s]||Jb}}},FS=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const f=FS(e,t+1,i);if(f)return f}const s=n.validators;if(s===null)return;const c=t===0?e.join(dh):e.slice(t).join(dh),u=s.length;for(let f=0;f<u;f++){const m=s[f];if(m.validator(c))return m.classGroupId}},qT=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?XT+r:void 0})(),e_=e=>{const{theme:t,classGroups:n}=e;return t_(n,t)},t_=(e,t)=>{const n=DS();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];n_(s,t,n,r)}},n_=(e,t,n,r)=>{if(typeof e=="string"){r_(e,t,n);return}if(typeof e=="function"){o_(e,t,n,r);return}i_(e,t,n,r)},r_=(e,t,n)=>{const r=e===""?t:jS(t,e);r.classGroupId=n},o_=(e,t,n,r)=>{if(a_(e)){sy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ZT(n,e))},i_=(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,jS(t,c),n,r)}},jS=(e,t)=>{let n=e;const r=t.split(dh),o=r.length;for(let i=0;i<o;i++){const s=r[i];let c=n.nextPart.get(s);c||(c=DS(),n.nextPart.set(s,c)),n=c}return n},a_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,s_=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="!",qb=":",l_=[],ex=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),c_=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===qb){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 ex(i,w,v,C)};if(t){const o=t+qb,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):ex(l_,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},u_=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}},f_=e=>({cache:s_(e.cacheSize),parseClassName:c_(e),sortModifiers:u_(e),...JT(e)}),d_=/\s+/,p_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],c=e.trim().split(d_);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,D=O+E;if(s.indexOf(D)>-1)continue;s.push(D);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},h_=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=zS(n))&&(o&&(o+=" "),o+=r);return o},zS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zS(e[r]))&&(n&&(n+=" "),n+=t);return n},m_=(e,...t)=>{let n,r,o,i;const s=u=>{const f=t.reduce((m,h)=>h(m),e());return n=f_(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=p_(u,n);return o(u,m),m};return i=s,(...u)=>i(h_(...u))},g_=[],gn=e=>{const t=n=>n[e]||g_;return t.isThemeGetter=!0,t},BS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,US=/^\((?:(\w[\w-]*):)?(.+)\)$/i,v_=/^\d+\/\d+$/,y_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b_=/\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$/,x_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nc=e=>v_.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=>y_.test(e),C_=()=>!0,A_=e=>b_.test(e)&&!x_.test(e),WS=()=>!1,E_=e=>w_.test(e),k_=e=>S_.test(e),T_=e=>!Ue(e)&&!We(e),__=e=>Au(e,VS,WS),Ue=e=>BS.test(e),Us=e=>Au(e,KS,A_),_g=e=>Au(e,M_,st),tx=e=>Au(e,$S,WS),R_=e=>Au(e,HS,k_),Rp=e=>Au(e,YS,E_),We=e=>US.test(e),Pf=e=>Eu(e,KS),P_=e=>Eu(e,N_),nx=e=>Eu(e,$S),I_=e=>Eu(e,VS),O_=e=>Eu(e,HS),Pp=e=>Eu(e,YS,!0),Au=(e,t,n)=>{const r=BS.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Eu=(e,t,n=!1)=>{const r=US.exec(e);return r?r[1]?t(r[1]):n:!1},$S=e=>e==="position"||e==="percentage",HS=e=>e==="image"||e==="url",VS=e=>e==="length"||e==="size"||e==="bg-size",KS=e=>e==="length",M_=e=>e==="number",N_=e=>e==="family-name",YS=e=>e==="shadow",L_=()=>{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"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...D(),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=()=>[...D(),nx,tx,{position:[We,Ue]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",I_,__,{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,nx,tx],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:[C_],container:[Pi],"drop-shadow":[Pi],ease:["in","out","in-out"],font:[T_],"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:[P_,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]},O_,R_]}],"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,Pp,Rp]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Pp,Rp]}],"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,Pp,Rp]}],"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":D()}],"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,Pp,Rp]}],"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=m_(L_);function GS(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=GS(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=GS(e))&&(r&&(r+=" "),r+=t);return r}function gt(...e){return Gc(Jf(e))}const D_="whitespace-nowrap font-normal flex items-center justify-center",F_="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",j_="disabled:opacity-15 disabled:pointer-events-none",QS=e=>e==="grayLight"||e==="warning",ZS=(e,t)=>!t||t==="none"?"":e(),z_=(e,t)=>ZS(()=>{const n=e==="gray400"?"gray":e,r=QS(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),B_=e=>ZS(()=>{const t=QS(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),U_=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]||"",W_=(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]||"",$_=(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`}`,H_=(e,t)=>({solid:B_(e),link:U_(e),linkHoverSolid:W_(e,t),outline:$_(e,t)}),V_={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"},K_={none:"",default:"rounded",pill:"rounded-pill"},Y_=({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=j_,w=/link/.test(o)?null:z_(n,e),C=F_,A=V_[r],x=(O=H_(n,e))==null?void 0:O[o],E=Gc(w,x),R=K_[c];return L.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(D_,C,v,A,E,R,i,"cursor-pointer"),children:t})},Ht=Y.forwardRef(Y_),G_=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>L.jsx(L.Fragment,{children:e&&ui.createPortal(L.jsxs(Bh.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[L.jsx("div",{className:"fixed inset-0 bg-black/30"}),L.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:L.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&L.jsx("div",{className:" text-gray-900 p-4",children:n}),L.jsx("div",{className:"p-4",children:i}),r||o?L.jsxs("div",{className:"flex gap-4 p-4",children:[r?L.jsx(Ht,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):L.jsx(L.Fragment,{}),o?L.jsx(Ht,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):L.jsx(L.Fragment,{})]}):L.jsx(L.Fragment,{})]})}),L.jsx("style",{type:"text/css",children:wd})]}),document.body,"confidence-modal")}),Q_=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 Z_(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function X_(e){return Z_(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let J_=!1;function ly(){return J_}function XS(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:X_(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 JS(e){return ly()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function q_(e){if(e4())e.focus({preventScroll:!0});else{let t=t4(e);e.focus(),n4(t)}}let Ip=null;function e4(){if(Ip==null){Ip=!1;try{document.createElement("div").focus({get preventScroll(){return Ip=!0,!0}})}catch{}}return Ip}function t4(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 n4(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)}),r4=Xi(function(){return cy(/^iPhone/i)}),qS=Xi(function(){return cy(/^iPad/i)||qf()&&navigator.maxTouchPoints>1}),o4=Xi(function(){return r4()||qS()});Xi(function(){return qf()||o4()});const i4=Xi(function(){return Wh(/AppleWebKit/i)&&!a4()}),a4=Xi(function(){return Wh(/Chrome/i)}),s4=Xi(function(){return Wh(/Android/i)}),l4=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;l4()&&(!((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=i4()&&qf()&&!qS()&&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,q_(e),e.dispatchEvent(f),ed.isOpening=!1}ed.isOpening=!1;function eC(){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 c4(e){return e.pointerType===""&&e.isTrusted?!0:s4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function u4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function nC(e){let t=Y.useRef({isFocused:!1,observer:null});return Q_(()=>{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=tC(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 f4=!1,Sd=null,Dv=new Set,$f=new Map,vl=!1,Fv=!1;const d4={Tab:!0,Escape:!0};function uy(e,t){for(let n of Dv)n(e,t)}function p4(e){return!(e.metaKey||!qf()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ph(e){vl=!0,!ed.isOpening&&p4(e)&&(Sd="keyboard",uy("keyboard",e))}function lo(e){Sd="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(vl=!0,uy("pointer",e))}function rC(e){!ed.isOpening&&c4(e)&&(vl=!0,Sd="virtual")}function oC(e){e.target===window||e.target===document||f4||!e.isTrusted||(!vl&&!Fv&&(Sd="virtual",uy("virtual",e)),vl=!1,Fv=!1)}function iC(){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",ph,!0),n.addEventListener("keyup",ph,!0),n.addEventListener("click",rC,!0),t.addEventListener("focus",oC,!0),t.addEventListener("blur",iC,!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",()=>{aC(e)},{once:!0}),$f.set(t,{focus:r})}const aC=(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",ph,!0),r.removeEventListener("keyup",ph,!0),r.removeEventListener("click",rC,!0),n.removeEventListener("focus",oC,!0),n.removeEventListener("blur",iC,!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 h4(e){const t=es(e);let n;return t.readyState!=="loading"?jv(e):(n=()=>{jv(e)},t.addEventListener("DOMContentLoaded",n)),()=>aC(e,n)}typeof document<"u"&&h4();function sC(){return Sd!=="pointer"}const m4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function g4(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&&!m4.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!d4[n.key])}function v4(e,t,n){jv(),Y.useEffect(()=>{let r=(o,i)=>{g4(!!(n!=null&&n.isTextInput),o,i)&&e(sC())};return Dv.add(r),()=>{Dv.delete(r)}},t)}function y4(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=nC(i),c=Y.useCallback(u=>{const f=es(u.target),m=f?Lv(f):Lv();u.target===u.currentTarget&&m===JS(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 b4(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=Y.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=eC(),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=nC(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===JS(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&&!XS(C,A.target)){let x=new v.defaultView.FocusEvent("blur",{relatedTarget:A.target});u4(x,C);let E=tC(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 hh=!1,Op=0;function zv(){hh=!0,setTimeout(()=>{hh=!1},50)}function rx(e){e.pointerType==="touch"&&zv()}function x4(){if(!(typeof document>"u"))return Op===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",rx):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",zv)),Op++,()=>{Op--,!(Op>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",rx):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",zv))}}function w4(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(x4,[]);let{addGlobalListener:u,removeAllGlobalListeners:f}=eC(),{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&&!XS(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=>{hh&&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&&!hh&&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 S4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=Y.useRef({isFocused:!1,isFocusVisible:t||sC()}),[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]);v4(w=>{o.current.isFocusVisible=w,f()},[],{isTextInput:n});let{focusProps:h}=y4({isDisabled:r,onFocusChange:m}),{focusWithinProps:v}=b4({isDisabled:!r,onFocusWithinChange:m});return{isFocused:i,isFocusVisible:c,focusProps:r?v:h}}var C4=Object.defineProperty,A4=(e,t,n)=>t in e?C4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rg=(e,t,n)=>(A4(e,typeof t!="symbol"?t+"":t,n),n);let E4=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"}},k4=new E4,fy=(e,t)=>{k4.isServer?Y.useEffect(e,t):Y.useLayoutEffect(e,t)};function T4(e){let t=Y.useRef(e);return fy(()=>{t.current=e},[e]),t}let $h=function(e){let t=T4(e);return Y.useCallback((...n)=>t.current(...n),[t])};function Hh(e){return Y.useMemo(()=>e,Object.values(e))}let lC=Y.createContext(void 0);function Vh(){return Y.useContext(lC)}function _4({value:e,children:t}){return Y.createElement(lC.Provider,{value:e},t)}function ox(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function cC(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,cC),r}var R4=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(R4||{}),P4=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(P4||{});function Cd(){let e=O4();return Y.useCallback(t=>I4({mergeRefs:e,...t}),[e])}function I4({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:c}){c=c??M4;let u=uC(t,e);if(i)return Mp(u,n,r,s,c);let f=o??0;if(f&2){let{static:m=!1,...h}=u;if(m)return Mp(h,n,r,s,c)}if(f&1){let{unmount:m=!0,...h}=u;return cC(m?0:1,{0(){return null},1(){return Mp({...h,hidden:!0,style:{display:"none"}},n,r,s,c)}})}return Mp(u,n,r,s,c)}function Mp(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(Qp(i)&&(Object.keys(Lc(u)).length>0||Object.keys(Lc(h)).length>0))if(!Y.isValidElement(m)||Array.isArray(m)&&m.length>1||D4(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
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 v=m.props,w=v==null?void 0:v.className,C=typeof w=="function"?(...E)=>
|
|
128
|
+
`))}else{let v=m.props,w=v==null?void 0:v.className,C=typeof w=="function"?(...E)=>ox(w(...E),u.className):ox(w,u.className),A=C?{className:C}:{},x=uC(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(L4(m),f.ref)},A))}return Y.createElement(i,Object.assign({},Pg(u,["ref"]),!Qp(i)&&f,!Qp(i)&&h),m)}function O4(){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 M4(...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 uC(...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 N4(...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 Ad(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 L4(e){return Y.version.split(".")[0]>="19"?e.props.ref:e.ref}function Qp(e){return e===Y.Fragment||e===Symbol.for("react.fragment")}function D4(e){return Qp(e.type)}let F4="span";var fC=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fC||{});function j4(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 Cd()({ourProps:i,theirProps:o,slot:{},defaultTag:F4,name:"Hidden"})}let z4=Ad(j4),B4=Y.createContext(null);function U4(e){let[t,n]=Y.useState(null);return Y.createElement(B4.Provider,{value:{target:t}},e.children,Y.createElement(z4,{features:fC.Hidden,ref:n}))}let dC=Y.createContext(void 0);function pC(){return Y.useContext(dC)}function W4({id:e,children:t}){return Y.createElement(dC.Provider,{value:e},t)}function $4(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function hC(e){return $4(e)&&"tagName"in e}function mC(e){return hC(e)&&"accessKey"in e}function H4(e){return mC(e)&&e.nodeName==="INPUT"}function ix(e){return mC(e)&&e.nodeName==="LABEL"}function V4(e){return hC(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let K4=Symbol();function gC(...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[K4]))?void 0:n}let Kh=Y.createContext(null);Kh.displayName="DescriptionContext";function vC(){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,vC),t}return e}function Y4(){var e,t;return(t=(e=Y.useContext(Kh))==null?void 0:e.value)!=null?t:void 0}function G4(){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 Q4="p";function Z4(e,t){let n=Y.useId(),r=Vh(),{id:o=`headlessui-description-${n}`,...i}=e,s=vC(),c=gC(t);fy(()=>s.register(o),[o,s.register]);let u=Hh({...s.slot,disabled:r||!1}),f={ref:c,...s.props,id:o};return Cd()({ourProps:f,theirProps:i,slot:u,defaultTag:Q4,name:s.name||"Description"})}let X4=Ad(Z4),J4=Object.assign(X4,{}),Yh=Y.createContext(null);Yh.displayName="LabelContext";function yC(){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,yC),t}return e}function bC(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 q4({inherit:e=!1}={}){let t=bC(),[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 eR="label";function tR(e,t){var n;let r=Y.useId(),o=yC(),i=pC(),s=Vh(),{id:c=`headlessui-label-${r}`,htmlFor:u=i??((n=o.props)==null?void 0:n.htmlFor),passive:f=!1,...m}=e,h=gC(t);fy(()=>o.register(c),[c,o.register]);let v=$h(A=>{let x=A.currentTarget;if(!(A.target!==A.currentTarget&&V4(A.target))&&(ix(x)&&A.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(A),ix(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;(H4(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),Cd()({ourProps:C,theirProps:m,slot:w,defaultTag:u?eR:"div",name:o.name||"Label"})}let nR=Ad(tR),rR=Object.assign(nR,{});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 oR=new Set(["inline","contents"]);function Ed(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!oR.has(o)}const iR=new Set(["table","td","th"]);function aR(e){return iR.has(ku(e))}const sR=[":popover-open",":modal"];function Qh(e){return sR.some(t=>{try{return e.matches(t)}catch{return!1}})}const lR=["transform","translate","scale","rotate","perspective"],cR=["transform","translate","scale","rotate","perspective","filter"],uR=["paint","layout","strict","content"];function py(e){const t=Zh(),n=nn(e)?uo(e):e;return lR.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)||cR.some(r=>(n.willChange||"").includes(r))||uR.some(r=>(n.contain||"").includes(r))}function fR(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 dR=new Set(["html","body","#document"]);function Hi(e){return dR.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 xC(e){const t=Ki(e);return Hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lo(t)&&Ed(t)?t:xC(t)}function Qc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xC(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||[],Ed(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 ax=Math.min,Hf=Math.max,mh=Math.round,ai=e=>({x:e,y:e});function wC(e){return e.split("-")[0]}function pR(e){return e.split("-")[1]}function hR(e){return e==="x"?"y":"x"}function mR(e){return e==="y"?"height":"width"}const gR=new Set(["top","bottom"]);function SC(e){return gR.has(wC(e))?"y":"x"}function vR(e){return hR(SC(e))}function CC(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
129
|
* tabbable 6.4.0
|
|
130
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,vh=!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},yh=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]"):yh(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(yh(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(!yh(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=!yh(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||vh(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&&vh(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=vh(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=vh(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:D,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],...D}},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=gh(n)!==i||gh(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?gh(n.width):n.width)/r,c=(i?gh(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,D=E.top+(A.clientTop+parseFloat(R.paddingTop))*x.y;u*=x.x,f*=x.y,m*=x.x,h*=x.y,u+=O,f+=D,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"||kd(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)||kd(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"||kd(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(){},Xp=Z3?Y.useLayoutEffect:X3;function bh(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(!bh(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)&&!bh(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 Xp(()=>{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);bh(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))},[]),D=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&&!bh($.current,ne)&&($.current=ne,uS.flushSync(()=>{h(ne)}))})},[v,t,n,q,pe]);Xp(()=>{f===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(Q=>({...Q,isPositioned:!1})))},[f]);const se=F.useRef(!1);Xp(()=>(se.current=!0,()=>{se.current=!1}),[]),Xp(()=>{if(D&&(U.current=D),M&&(j.current=M),D&&M){if(G.current)return G.current(D,M,ie);ie()}},[D,M,ie,G,H]);const xe=F.useMemo(()=>({reference:U,floating:j,setReference:R,setFloating:O}),[R,O]),Ae=F.useMemo(()=>({reference:D,floating:M}),[D,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=Ad();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=Ed(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 Ad()({ourProps:x,theirProps:f,slot:E,defaultTag:nR,name:"Input"})}let oR=Ed(rR);const DC=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>L.jsx("div",{className:gt("w-full max-w-md px-4",i),children:L.jsxs(tR,{children:[n&&L.jsx(n3,{className:"font-medium text-gray-900",children:n}),r&&L.jsx(X4,{className:"text-sm text-secondary",children:r}),L.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 L.jsx(Y_,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:h,disabled:s||!o||u},children:L.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[L.jsxs("div",{children:[L.jsx("div",{className:"text-center text-2xl font-medium",children:u?"User already has access":r||"Access Playbook"}),L.jsx("div",{className:"text-center",children:u?L.jsxs(L.Fragment,{children:[L.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):L.jsx(L.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),L.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 L.jsxs(L.Fragment,{children:[t?{buttonNode:t}:L.jsxs(Ht,{onClick:v,className:gt(e,"flex items-center gap-1"),color:c,size:n,disabled:i||m,children:[L.jsx("img",{src:yS,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),L.jsx(iR,{isOpen:u,onClose:w,onConfirm:async A=>{await C(A),w()}})]})};/*!
|
|
132
|
-
* Font Awesome
|
|
133
|
-
* License - https://fontawesome.com/license
|
|
131
|
+
*/var yR=["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=yR.join(","),AC=typeof Element>"u",td=AC?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gh=!AC&&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},vh=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]"):vh(t.parentNode));return s},bR=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},xR=function(t,n,r){if(vh(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(!vh(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=!vh(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},EC=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},kC=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||bR(t))&&!EC(t)?0:t.tabIndex},wR=function(t,n){var r=kC(t);return r<0&&n&&!EC(t)?0:r},SR=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},TC=function(t){return t.tagName==="INPUT"},CR=function(t){return TC(t)&&t.type==="hidden"},AR=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ER=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},kR=function(t){if(!t.name)return!0;var n=t.form||gh(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=ER(o,t.form);return!i||i===t},TR=function(t){return TC(t)&&t.type==="radio"},_R=function(t){return TR(t)&&!kR(t)},RR=function(t){var n,r=t&&gh(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=gh(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},sx=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},PR=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=gh(t);if(f&&!f.shadowRoot&&o(f)===!0)return sx(t);t.assignedSlot?t=t.assignedSlot:!f&&m!==t.ownerDocument?t=m.host:t=f}t=u}if(RR(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return sx(t);return!1},IR=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},OR=function(t,n){return!(n.disabled||CR(n)||PR(n,t)||AR(n)||IR(n))},lx=function(t,n){return!(_R(n)||kC(n)<0||!OR(t,n))},MR=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},_C=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,c=s?o.scopeParent:o,u=wR(c,s),f=s?_C(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(SR).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},RC=function(t,n){n=n||{};var r;return n.getShadowRoot?r=$v([t],n.includeContainer,{filter:lx.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:MR}):r=xR(t,n.includeContainer,lx.bind(null,n)),_C(r)};function cx(e,t,n){let{reference:r,floating:o}=e;const i=SC(t),s=vR(t),c=mR(s),u=wC(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(pR(t)){case"start":w[s]-=v*(n&&f?-1:1);break;case"end":w[s]+=v*(n&&f?-1:1);break}return w}const NR=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}=cx(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:D,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],...D}},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}=cx(f,v,u)),A=-1)}return{x:m,y:h,placement:v,strategy:o,middlewareData:w}};function PC(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=mh(n)!==i||mh(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function IC(e){return nn(e)?e:e.contextElement}function Zc(e){const t=IC(e);if(!Lo(t))return ai(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=PC(t);let s=(i?mh(n.width):n.width)/r,c=(i?mh(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const LR=ai(0);function OC(e){const t=Yr(e);return!Zh()||!t.visualViewport?LR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DR(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=IC(e);let s=ai(1);t&&(r?nn(r)&&(s=Zc(r)):s=Zc(e));const c=DR(i,n,r)?OC(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,D=E.top+(A.clientTop+parseFloat(R.paddingTop))*x.y;u*=x.x,f*=x.y,m*=x.x,h*=x.y,u+=O,f+=D,C=Yr(A),A=Uv(C)}}return CC({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 MC(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 FR(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"||Ed(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?MC(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 jR(e){return Array.from(e.getClientRects())}function zR(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 ux=25;function BR(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<=ux&&(i-=C)}else f<=ux&&(i+=f);return{width:i,height:s,x:c,y:u}}const UR=new Set(["absolute","fixed"]);function WR(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 fx(e,t,n){let r;if(t==="viewport")r=BR(e,n);else if(t==="document")r=zR(Ji(e));else if(nn(t))r=WR(t,n);else{const o=OC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return CC(r)}function NC(e,t){const n=Ki(e);return n===t||!nn(n)||Hi(n)?!1:uo(n).position==="fixed"||NC(n,t)}function $R(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&&UR.has(o.position)||Ed(s)&&!u&&NC(e,s))?r=r.filter(m=>m!==s):o=c,s=Ki(s)}return t.set(e,r),r}function HR(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Qh(t)?[]:$R(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((f,m)=>{const h=fx(t,m,o);return f.top=Hf(h.top,f.top),f.right=ax(h.right,f.right),f.bottom=ax(h.bottom,f.bottom),f.left=Hf(h.left,f.left),f},fx(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function VR(e){const{width:t,height:n}=PC(e);return{width:t,height:n}}function KR(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"||Ed(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?MC(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 dx(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 LC(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=dx(e,t);for(;r&&aR(r)&&Ig(r);)r=dx(r,t);return r&&Hi(r)&&Ig(r)&&!py(r)?n:r||fR(e)||n}const YR=async function(e){const t=this.getOffsetParent||LC,n=this.getDimensions,r=await n(e.floating);return{reference:KR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GR(e){return uo(e).direction==="rtl"}const QR={convertOffsetParentRelativeRectToViewportRelativeRect:FR,getDocumentElement:Ji,getClippingRect:HR,getOffsetParent:LC,getElementRects:YR,getClientRects:jR,getDimensions:VR,getScale:Zc,isElement:nn,isRTL:GR},ZR=(e,t,n)=>{const r=new Map,o={platform:QR,...n},i={...o.platform,_c:r};return NR(e,t,{...o,platform:i})};var XR=typeof document<"u",JR=function(){},Zp=XR?Y.useLayoutEffect:JR;function yh(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(!yh(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)&&!yh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function DC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function px(e,t){const n=DC(e);return Math.round(t*n)/n}function Og(e){const t=F.useRef(e);return Zp(()=>{t.current=e}),t}function qR(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);yh(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))},[]),D=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),ZR(U.current,j.current,Q).then(Ee=>{const ne={...Ee,isPositioned:pe.current!==!1};se.current&&!yh($.current,ne)&&($.current=ne,fS.flushSync(()=>{h(ne)}))})},[v,t,n,q,pe]);Zp(()=>{f===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(Q=>({...Q,isPositioned:!1})))},[f]);const se=F.useRef(!1);Zp(()=>(se.current=!0,()=>{se.current=!1}),[]),Zp(()=>{if(D&&(U.current=D),M&&(j.current=M),D&&M){if(G.current)return G.current(D,M,ie);ie()}},[D,M,ie,G,H]);const xe=F.useMemo(()=>({reference:U,floating:j,setReference:R,setFloating:O}),[R,O]),Ae=F.useMemo(()=>({reference:D,floating:M}),[D,M]),Re=F.useMemo(()=>{const Q={position:n,left:0,top:0};if(!Ae.floating)return Q;const Ee=px(Ae.floating,m.x),ne=px(Ae.floating,m.y);return c?{...Q,transform:"translate("+Ee+"px, "+ne+"px)",...DC(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 e3="div";function t3(e,t){let n=`headlessui-control-${Y.useId()}`,[r,o]=q4(),[i,s]=G4(),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=Cd();return Y.createElement(_4,{value:u},Y.createElement(o,{value:r},Y.createElement(s,{value:i},Y.createElement(W4,{id:n},v({ourProps:h,theirProps:{...f,children:Y.createElement(U4,null,typeof f.children=="function"?f.children(m):f.children)},slot:m,defaultTag:e3,name:"Field"})))))}let n3=Ad(t3),r3="input";function o3(e,t){let n=Y.useId(),r=pC(),o=Vh(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:c=!1,invalid:u=!1,...f}=e,m=bC(),h=Y4(),{isFocused:v,focusProps:w}=S4({autoFocus:c}),{isHovered:C,hoverProps:A}=w4({isDisabled:s}),x=N4({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 Cd()({ourProps:x,theirProps:f,slot:E,defaultTag:r3,name:"Input"})}let i3=Ad(o3);const FC=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>L.jsx("div",{className:gt("w-full max-w-md px-4",i),children:L.jsxs(n3,{children:[n&&L.jsx(rR,{className:"font-medium text-gray-900",children:n}),r&&L.jsx(J4,{className:"text-sm text-secondary",children:r}),L.jsx(i3,{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})]})}),a3=({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 L.jsx(G_,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:h,disabled:s||!o||u},children:L.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[L.jsxs("div",{children:[L.jsx("div",{className:"text-center text-2xl font-medium",children:u?"User already has access":r||"Access Playbook"}),L.jsx("div",{className:"text-center",children:u?L.jsxs(L.Fragment,{children:[L.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):L.jsx(L.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),L.jsx(FC,{disabled:s||u,placeholder:"Enter company email address",onChange:v=>i(v.target.value)})]})})},s3=({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 LS({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 L.jsxs(L.Fragment,{children:[t?{buttonNode:t}:L.jsxs(Ht,{onClick:v,className:gt(e,"flex items-center gap-1"),color:c,size:n,disabled:i||m,children:[L.jsx("img",{src:bS,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),L.jsx(a3,{isOpen:u,onClose:w,onConfirm:async A=>{await C(A),w()}})]})};/*!
|
|
132
|
+
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
133
|
+
* License - https://fontawesome.com/license (Commercial License)
|
|
134
134
|
* Copyright 2024 Fonticons, Inc.
|
|
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"]};/*!
|
|
135
|
+
*/const l3={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"]},c3={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"]},u3={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"]},f3=u3,d3={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"]},p3={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"]},jC={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"]},h3=jC,m3={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"]},zC=m3,g3={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"]},BC={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"]},UC=BC,v3={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"]},y3={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"]},b3={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"]},x3=b3,hx={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"]},w3={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"]},S3={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"]},C3={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"]},A3={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"]},E3={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"]},k3={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"]},WC={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"]},T3=WC,_3={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"]},R3={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"]},hy={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"]},$C=qh,HC={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"]},VC={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"]},P3=VC,I3={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"]};/*!
|
|
136
136
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
137
137
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
138
138
|
* Copyright 2024 Fonticons, Inc.
|
|
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,Lp=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"}},Dp={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",Dp.GROUP,Dp.SWAP_OPACITY,Dp.PRIMARY,Dp.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 Td(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=Td(nA),Gv=Ce({},UR);Gv[or]=Ce(Ce(Ce(Ce({},{duotone:"fad"}),Gv[or]),bx.kit),bx["kit-duotone"]);const wx=Td(Gv),Qv=Ce({},Hv);Qv[or]=Ce(Ce({},Qv[or]),KR.kit);const vy=Td(Qv),Zv=Ce({},ZR);Zv[or]=Ce(Ce({},Zv[or]),HR.kit);Td(Zv);const sP=MR,rA="fa-layers-text",lP=NR,cP=Ce({},jR);Td(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 {
|
|
139
|
+
*/function O3(e,t,n){return(t=N3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mx(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?mx(Object(n),!0).forEach(function(r){O3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M3(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 N3(e){var t=M3(e,"string");return typeof t=="symbol"?t:t+""}const gx=()=>{};let my={},KC={},YC=null,GC={mark:gx,measure:gx};try{typeof window<"u"&&(my=window),typeof document<"u"&&(KC=document),typeof MutationObserver<"u"&&(YC=MutationObserver),typeof performance<"u"&&(GC=performance)}catch{}const{userAgent:vx=""}=my.navigator||{},Qa=my,Gt=KC,yx=YC,Np=GC;Qa.document;const qi=!!Gt.documentElement&&!!Gt.head&&typeof Gt.addEventListener=="function"&&typeof Gt.createElement=="function",QC=~vx.indexOf("MSIE")||~vx.indexOf("Trident/");var L3=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,D3=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,ZC={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"}},F3={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},XC=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],or="classic",em="duotone",j3="sharp",z3="sharp-duotone",JC=[or,em,j3,z3],B3={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"}},U3={"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"}},W3=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}]]),$3={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"}},H3=["fak","fa-kit","fakd","fa-kit-duotone"],bx={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},V3=["kit"],K3={kit:{"fa-kit":"fak"}},Y3=["fak","fakd"],G3={kit:{fak:"fa-kit"}},xx={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Lp={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Q3=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Z3=["fak","fa-kit","fakd","fa-kit-duotone"],X3={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},J3={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"}},q3={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"}},eP=["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",...Q3,...eP],tP=["solid","regular","light","thin","duotone","brands"],qC=[1,2,3,4,5,6,7,8,9,10],nP=qC.concat([11,12,13,14,15,16,17,18,19,20]),rP=[...Object.keys(q3),...tP,"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",Lp.GROUP,Lp.SWAP_OPACITY,Lp.PRIMARY,Lp.SECONDARY].concat(qC.map(e=>"".concat(e,"x"))).concat(nP.map(e=>"w-".concat(e))),oP={"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,eA="fa",tA="svg-inline--fa",yl="data-fa-i2svg",Yv="data-fa-pseudo-element",iP="data-fa-pseudo-element-pending",gy="data-prefix",vy="data-icon",wx="fontawesome-i2svg",aP="async",sP=["HTML","HEAD","STYLE","SCRIPT"],nA=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function kd(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[or]}})}const rA=Ce({},ZC);rA[or]=Ce(Ce(Ce(Ce({},{"fa-duotone":"duotone"}),ZC[or]),bx.kit),bx["kit-duotone"]);const lP=kd(rA),Gv=Ce({},$3);Gv[or]=Ce(Ce(Ce(Ce({},{duotone:"fad"}),Gv[or]),xx.kit),xx["kit-duotone"]);const Sx=kd(Gv),Qv=Ce({},Hv);Qv[or]=Ce(Ce({},Qv[or]),G3.kit);const yy=kd(Qv),Zv=Ce({},J3);Zv[or]=Ce(Ce({},Zv[or]),K3.kit);kd(Zv);const cP=L3,oA="fa-layers-text",uP=D3,fP=Ce({},B3);kd(fP);const dP=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Mg=F3,pP=[...V3,...rP],Vf=Qa.FontAwesomeConfig||{};function hP(e){var t=Gt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function mP(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=mP(hP(n));o!=null&&(Vf[r]=o)});const iA={styleDefault:"solid",familyDefault:or,cssPrefix:eA,replacementClass:tA,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({},iA),Vf);mu.autoReplaceSvg||(mu.observeMutations=!1);const Ve={};Object.keys(iA).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 gP(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 vP(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 yP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rd(){let e=12,t="";for(;e-- >0;)t+=yP[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 by(e){return e.classList?Tu(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function aA(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function bP(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(aA(e[n]),'" '),"").trim()}function tm(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function xy(e){return e.size!==ri.size||e.x!==ri.x||e.y!==ri.y||e.rotate!==ri.rotate||e.flipX||e.flipY}function xP(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 wP(e){let{transform:t,width:n=Kv,height:r=Kv,startCentered:o=!1}=e,i="";return o&&QC?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 SP=`:root, :host {
|
|
140
140
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
141
141
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
142
142
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -689,32 +689,24 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
689
689
|
.svg-inline--fa mask .fa-primary,
|
|
690
690
|
.svg-inline--fa mask .fa-secondary {
|
|
691
691
|
fill: black;
|
|
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),xh=1,sA.map(e=>e())};let xh=!1;qi&&(xh=(Gt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gt.readyState),xh||Gt.addEventListener("DOMContentLoaded",lA));function SP(e){qi&&(xh?setTimeout(e,0):sA.push(e))}function _d(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?iA(e):"<".concat(t," ").concat(vP(n),">").concat(r.map(_d).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:_d},$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=>_d(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:D}=n.found&&t.found?Xa("generateAbstractMask",R)||{children:[],attributes:{}}:Xa("generateAbstractIcon",R)||{children:[],attributes:{}};return R.children=O,R.attributes=D,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&&Lp&&Lp.mark&&Lp.measure?Lp:{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 Jp=()=>{};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?qp.replace:qp[Ve.autoReplaceSvg]||qp.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 qp={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 qp.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=>_d(i)).join(`
|
|
693
|
-
`);t.setAttribute(yl,""),t.innerHTML=o}};function
|
|
694
|
-
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function
|
|
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,D=(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(D).map(function(M){return D[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&&Sh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(a0.icon)return a0.icon(e);if(e===null)return null;if(e&&Sh(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=Uh({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})=>L.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>L.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 eh(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,...eh(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 L.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]),L.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&&L.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&&L.jsx("span",{"aria-owns":i.id,style:OA}),i&&uS.createPortal(t,i),C&&i&&L.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:D}=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?eh(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&&eh(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?eh(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=D;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,D,$,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 D=nn(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;u(D),w.refs.setReference(D)},[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(D=>D.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])}/*!
|
|
692
|
+
}`;function sA(){const e=eA,t=tA,n=Ve.cssPrefix,r=Ve.replacementClass;let o=SP;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 Cx=!1;function Ng(){Ve.autoAddCss&&!Cx&&(vP(sA()),Cx=!0)}var CP={mixout(){return{dom:{css:sA,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 lA=[],cA=function(){Gt.removeEventListener("DOMContentLoaded",cA),bh=1,lA.map(e=>e())};let bh=!1;qi&&(bh=(Gt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gt.readyState),bh||Gt.addEventListener("DOMContentLoaded",cA));function AP(e){qi&&(bh?setTimeout(e,0):lA.push(e))}function Td(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?aA(e):"<".concat(t," ").concat(bP(n),">").concat(r.map(Td).join(""),"</").concat(t,">")}function Ax(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 EP(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=EP(e);return t.length===1?t[0].toString(16):null}function kP(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 Ex(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=Ex(t);typeof oi.hooks.addPack=="function"&&!r?oi.hooks.addPack(e,Ex(t)):oi.styles[e]=Ce(Ce({},oi.styles[e]||{}),o),e==="fas"&&Jv("fa",t)}const{styles:od,shims:TP}=oi,uA=Object.keys(yy),_P=uA.reduce((e,t)=>(e[t]=Object.keys(yy[t]),e),{});let wy=null,fA={},dA={},pA={},hA={},mA={};function RP(e){return~pP.indexOf(e)}function PP(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!RP(o)?o:null}const gA=()=>{const e=r=>Lg(od,(o,i,s)=>(o[s]=Lg(i,r,{}),o),{});fA=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)),dA=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=i}),r)),mA=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(TP,(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:{}});pA=n.names,hA=n.unicodes,wy=nm(Ve.styleDefault,{family:Ve.familyDefault})};gP(e=>{wy=nm(e.styleDefault,{family:Ve.familyDefault})});gA();function Sy(e,t){return(fA[e]||{})[t]}function IP(e,t){return(dA[e]||{})[t]}function Zs(e,t){return(mA[e]||{})[t]}function vA(e){return pA[e]||{prefix:null,iconName:null}}function OP(e){const t=hA[e],n=Sy("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Za(){return wy}const yA=()=>({prefix:null,iconName:null,rest:[]});function MP(e){let t=or;const n=uA.reduce((r,o)=>(r[o]="".concat(Ve.cssPrefix,"-").concat(o),r),{});return JC.forEach(r=>{(e.includes(n[r])||e.some(o=>_P[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=lP[n][e];if(n===em&&!e)return"fad";const o=Sx[n][e]||Sx[n][r],i=e in oi.styles?e:null;return o||i||null}function NP(e){let t=[],n=null;return e.forEach(r=>{const o=PP(Ve.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function kx(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(Z3),i=kx(e.filter(h=>o.includes(h))),s=kx(e.filter(h=>!Vv.includes(h))),c=i.filter(h=>(r=h,!XC.includes(h))),[u=null]=c,f=MP(i),m=Ce(Ce({},NP(s)),{},{prefix:nm(u,{family:f})});return Ce(Ce(Ce({},m),jP({values:e,family:f,styles:od,config:Ve,canonical:m,givenPrefix:r})),LP(n,r,m))}function LP(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?vA(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 DP=JC.filter(e=>e!==or||e!==em),FP=Object.keys(Hv).filter(e=>e!==or).map(e=>Object.keys(Hv[e])).flat();function jP(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&&DP.includes(n)&&(Object.keys(i).find(v=>FP.includes(v))||s.autoFetchSvg)){const v=W3.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 zP{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=yy[or][i];s&&Jv(s,o[i]),gA()})}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 Tx=[],Hc={};const Xc={},BP=Object.keys(Xc);function UP(e,t){let{mixoutsTo:n}=t;return Tx=e,Hc={},Object.keys(Xc).forEach(r=>{BP.indexOf(r)===-1&&delete Xc[r]}),Tx.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,Ax(bA.definitions,n,t)||Ax(oi.styles,n,t)}const bA=new zP,WP=()=>{Ve.autoReplaceSvg=!1,Ve.observeMutations=!1,bl("noAuto")},$P={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,AP(()=>{VP({autoReplaceSvgRoot:t}),bl("watch",e)})}},HP={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(cP))){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:WP,config:Ve,dom:$P,parse:HP,library:bA,findIconDefinition:e0,toHtml:Td},VP=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=>Td(n))}}),Object.defineProperty(e,"node",{get:function(){if(!qi)return;const n=Gt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function KP(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(xy(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 YP(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 Cy(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=Y3.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:D}=n.found&&t.found?Xa("generateAbstractMask",R)||{children:[],attributes:{}}:Xa("generateAbstractIcon",R)||{children:[],attributes:{}};return R.children=O,R.attributes=D,s?YP(R):KP(R)}function _x(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);xy(o)&&(f.transform=wP({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 GP(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 QP={found:!1,width:512,height:512};function ZP(e,t){!nA&&!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=vA(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))}ZP(e,t),r(Ce(Ce({},QP),{},{icon:Ve.showMissingIcons&&e?Xa("missingIconAbstract")||{}:{}}))})}const Rx=()=>{},r0=Ve.measurePerformance&&Np&&Np.mark&&Np.measure?Np:{mark:Rx,measure:Rx},Bf='FA "6.7.2"',XP=e=>(r0.mark("".concat(Bf," ").concat(e," begins")),()=>xA(e)),xA=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 Ay={begin:XP,end:xA};const Xp=()=>{};function Px(e){return typeof(e.getAttribute?e.getAttribute(yl):null)=="string"}function JP(e){const t=e.getAttribute?e.getAttribute(gy):null,n=e.getAttribute?e.getAttribute(vy):null;return t&&n}function qP(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ve.replacementClass)}function eI(){return Ve.autoReplaceSvg===!0?Jp.replace:Jp[Ve.autoReplaceSvg]||Jp.replace}function tI(e){return Gt.createElementNS("http://www.w3.org/2000/svg",e)}function nI(e){return Gt.createElement(e)}function wA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?tI:nI}=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(wA(i,{ceFn:n}))}),r}function rI(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Jp={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(wA(n),t)}),t.getAttribute(yl)===null&&Ve.keepOriginalSource){let n=Gt.createComment(rI(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~by(t).indexOf(Ve.replacementClass))return Jp.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=>Td(i)).join(`
|
|
693
|
+
`);t.setAttribute(yl,""),t.innerHTML=o}};function Ix(e){e()}function SA(e,t){const n=typeof t=="function"?t:Xp;if(e.length===0)n();else{let r=Ix;Ve.mutateApproach===aP&&(r=Qa.requestAnimationFrame||Ix),r(()=>{const o=eI(),i=Ay.begin("mutate");e.map(o),i(),n()})}}let Ey=!1;function CA(){Ey=!0}function o0(){Ey=!1}let xh=null;function Ox(e){if(!yx||!Ve.observeMutations)return;const{treeCallback:t=Xp,nodeCallback:n=Xp,pseudoElementsCallback:r=Xp,observeMutationsRoot:o=Gt}=e;xh=new yx(i=>{if(Ey)return;const s=Za();Tu(i).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Px(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"&&Px(c.target)&&~dP.indexOf(c.attributeName))if(c.attributeName==="class"&&JP(c.target)){const{prefix:u,iconName:f}=rm(by(c.target));c.target.setAttribute(gy,u||s),f&&c.target.setAttribute(vy,f)}else qP(c.target)&&n(c.target)})}),qi&&xh.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function oI(){xh&&xh.disconnect()}function iI(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 aI(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=rm(by(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=IP(o.prefix,e.innerText)||Sy(o.prefix,Xv(e.innerText))),!o.iconName&&Ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function sI(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 lI(){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 Mx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=aI(e),i=sI(e),s=qv("parseNodeAttributes",{},e);let c=t.styleParser?iI(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:cI}=oi;function AA(e){const t=Ve.autoReplaceSvg==="nest"?Mx(e,{styleParser:!1}):Mx(e);return~t.extra.classes.indexOf(oA)?Xa("generateLayersText",e,t):Xa("generateSvgReplacementMutation",e,t)}function uI(){return[...H3,...Vv]}function Nx(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(wx,"-").concat(m)),o=m=>n.remove("".concat(wx,"-").concat(m)),i=Ve.autoFetchSvg?uI():XC.concat(Object.keys(cI));i.includes("fa")||i.push("fa");const s=[".".concat(oA,":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=Ay.begin("onTree"),f=c.reduce((m,h)=>{try{const v=AA(h);v&&m.push(v)}catch(v){nA||v.name==="MissingIcon"&&console.error(v)}return m},[]);return new Promise((m,h)=>{Promise.all(f).then(v=>{SA(v,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),u(),m()})}).catch(v=>{u(),h(v)})})}function fI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;AA(e).then(n=>{n&&SA([n],t)})}function dI(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 pI=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")),Cy({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 hI={mixout(){return{icon:dI(pI)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Nx,e.nodeCallback=fI,e}}},provides(e){e.i2svg=function(t){const{node:n=Gt,callback:r=()=>{}}=t;return Nx(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,Cy({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 xy(i)&&(u=Xa("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(u||o.icon),{children:n,attributes:r}}}},mI={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}]})}}}},gI={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}),GP({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(Ve.cssPrefix,"-layers-counter"),...r]}})))}}}},vI={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}),_x({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(QC){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,_x({content:t.innerHTML,width:s,height:c,transform:o,title:r,extra:i,watchable:!0})])}}};const yI=new RegExp('"',"ug"),Lx=[1105920,1112319],Dx=Ce(Ce(Ce(Ce({},{FontAwesome:{normal:"fas",400:"fas"}}),U3),oP),X3),i0=Object.keys(Dx).reduce((e,t)=>(e[t.toLowerCase()]=Dx[t],e),{}),bI=Object.keys(i0).reduce((e,t)=>{const n=i0[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function xI(e){const t=e.replace(yI,""),n=kP(t,0),r=n>=Lx[0]&&n<=Lx[1],o=t.length===2?t[0]===t[1]:!1;return{value:Xv(o?t[0]:t),isSecondary:r||o}}function wI(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(i0[n]||{})[o]||bI[n]}function Fx(e,t){const n="".concat(iP).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(uP),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=wI(u,m);const{value:C,isSecondary:A}=xI(v),x=f[0].startsWith("FontAwesome");let E=Sy(w,C),R=E;if(x){const O=OP(C);O.iconName&&O.prefix&&(E=O.iconName,w=O.prefix)}if(E&&!A&&(!s||s.getAttribute(gy)!==w||s.getAttribute(vy)!==R)){e.setAttribute(n,R),s&&e.removeChild(s);const O=lI(),{extra:D}=O;D.attributes[Yv]=t,n0(E,w).then(M=>{const U=Cy(Ce(Ce({},O),{},{icons:{main:M,mask:yA()},prefix:w,iconName:R,extra:D,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($=>Td($)).join(`
|
|
694
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function SI(e){return Promise.all([Fx(e,"::before"),Fx(e,"::after")])}function CI(e){return e.parentNode!==document.head&&!~sP.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jx(e){if(qi)return new Promise((t,n)=>{const r=Tu(e.querySelectorAll("*")).filter(CI).map(SI),o=Ay.begin("searchPseudoElements");CA(),Promise.all(r).then(()=>{o(),o0(),t()}).catch(()=>{o(),o0(),n()})})}var AI={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=jx,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Gt}=t;Ve.searchPseudoElements&&jx(n)}}};let zx=!1;var EI={mixout(){return{dom:{unwatch(){CA(),zx=!0}}}},hooks(){return{bootstrap(){Ox(qv("mutationObserverCallbacks",{}))},noAuto(){oI()},watch(e){const{observeMutationsRoot:t}=e;zx?o0():Ox(qv("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Bx=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 kI={mixout(){return{parse:{transform:e=>Bx(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Bx(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 Ux(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 TI(e){return e.tag==="g"?e.children:[e]}var _I={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?rm(n.split(" ").map(o=>o.trim())):yA();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=xP({transform:c,containerWidth:m,iconWidth:u}),w={tag:"rect",attributes:Ce(Ce({},Fg),{},{fill:"white"})},C=f.children?{children:f.children.map(Ux)}:{},A={tag:"g",attributes:Ce({},v.inner),children:[Ux(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]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:TI(h)},O]};return n.push(D,{tag:"rect",attributes:Ce({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(E,")")},Fg)}),{children:n,attributes:r}}}},RI={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}}}},PI={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},II=[CP,hI,mI,gI,vI,AI,EI,kI,_I,RI,PI];UP(II,{mixoutsTo:Qr});Qr.noAuto;Qr.config;Qr.library;Qr.dom;const a0=Qr.parse;Qr.findIconDefinition;Qr.toHtml;const OI=Qr.icon;Qr.layer;Qr.text;Qr.counter;function Wx(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?Wx(Object(n),!0).forEach(function(r){Vc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wh(e){"@babel/helpers - typeof";return wh=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},wh(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 MI(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 EA(e,t){if(e==null)return{};var n=MI(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 NI(e)||LI(e)||DI(e)||FI()}function NI(e){if(Array.isArray(e))return l0(e)}function LI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DI(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 FI(){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 jI(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,D=(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(D).map(function(M){return D[M]?M:null}).filter(function(M){return M})}function zI(e){return e=e-0,e===e}function kA(e){return zI(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var BI=["style"];function UI(e){return e.charAt(0).toUpperCase()+e.slice(1)}function WI(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=kA(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[UI(o)]=i:t[o]=i,t},{})}function TA(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 TA(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=WI(m);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=m:u.attrs[kA(f)]=m}return u},{attrs:{}}),i=n.style,s=i===void 0?{}:i,c=EA(n,BI);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 _A=!1;try{_A=process.env.NODE_ENV==="production"}catch{}function $I(){if(!_A&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $x(e){if(e&&wh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(a0.icon)return a0.icon(e);if(e===null)return null;if(e&&wh(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 HI=["forwardedRef"];function ot(e){var t=e.forwardedRef,n=EA(e,HI),r=n.icon,o=n.mask,i=n.symbol,s=n.className,c=n.title,u=n.titleId,f=n.maskId,m=$x(r),h=jg("classes",[].concat(s0(jI(n)),s0(s.split(" ")))),v=jg("transform",typeof n.transform=="string"?a0.transform(n.transform):n.transform),w=jg("mask",$x(o)),C=OI(m,Ua(Ua(Ua(Ua({},h),v),w),{},{symbol:i,title:c,titleId:u,maskId:f}));if(!C)return $I("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])}),VI(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 VI=TA.bind(null,Y.createElement);const KI=async e=>await(await fetch(`${Zi}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),YI=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=hi(),o=async()=>KI({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Uh({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}},GI=({buttons:e,onButtonClick:t,disabled:n})=>L.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>L.jsx(Ht,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:YT[r]},r))});function QI(){return/apple/i.test(navigator.vendor)}function ZI(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 XI(e){return e.matches("html,body")}function id(e){return(e==null?void 0:e.ownerDocument)||document}function qp(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,...qp(e,o.id,n)])}function JI(e){return"nativeEvent"in e}var qI=typeof document<"u",eO=function(){},ll=qI?Y.useLayoutEffect:eO;const tO={...F},nO=tO.useInsertionEffect,rO=nO||(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 rO(()=>{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 RA=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function PA(e,t){const n=RC(e,RA()),r=n.length;if(r===0)return;const o=ZI(id(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function oO(e){return PA(id(e).body,1)||e}function iO(e){return PA(id(e).body,-1)||e}function Bg(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!c0(n,r)}function aO(e){RC(e,RA()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Hx(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 sO="data-floating-ui-focusable",Vx="active",Kx="selected",lO={...F};let Yx=!1,cO=0;const Gx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cO++;function uO(){const[e,t]=F.useState(()=>Yx?Gx():void 0);return ll(()=>{e==null&&t(Gx())},[]),F.useEffect(()=>{Yx=!0},[]),e}const fO=lO.useId,IA=fO||uO;let u0;process.env.NODE_ENV!=="production"&&(u0=new Set);function dO(){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 pO(){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 hO=F.createContext(null),mO=F.createContext(null),gO=()=>{var e;return((e=F.useContext(hO))==null?void 0:e.id)||null},OA=()=>F.useContext(mO);function ky(e){return"data-floating-ui-"+e}const MA={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},Qx=F.forwardRef(function(t,n){const[r,o]=F.useState();ll(()=>{QI()&&o("button")},[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ky("focus-guard")]:"",style:MA};return L.jsx("span",{...t,...i})}),NA=F.createContext(null),Zx=ky("portal");function vO(e){e===void 0&&(e={});const{id:t,root:n}=e,r=IA(),o=bO(),[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(Zx,""),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(Zx,""),u=f||u,u.appendChild(m),c.current=m,s(m)},[t,n,r,o]),i}function yO(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=vO({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"?Hx:aO)(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||Hx(i))},[w,i]),L.jsxs(NA.Provider,{value:F.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:f,beforeInsideRef:m,afterInsideRef:h,portalNode:i,setFocusManagerState:c}),[o,i]),children:[C&&i&&L.jsx(Qx,{"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=iO(E);R==null||R.focus()}}}),C&&i&&L.jsx("span",{"aria-owns":i.id,style:MA}),i&&fS.createPortal(t,i),C&&i&&L.jsx(Qx,{"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=oO(E);R==null||R.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,A.nativeEvent,"focus-out"))}}})]})}const bO=()=>F.useContext(NA),xO={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},wO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xx=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 LA(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=OA(),x=Bc(typeof u=="function"?u:()=>!1),E=typeof u=="function"?x:u,R=F.useRef(!1),{escapeKey:O,outsidePress:D}=Xx(w),{escapeKey:M,outsidePress:U}=Xx(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?qp(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,JI(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="["+ky("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)&&!XI(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&&qp(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?qp(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=D;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,D,$,M,H,G,U,q]),F.useEffect(()=>{i.current.insideReactTree=!1},[i,E,f]);const pe=F.useMemo(()=>({onKeyDown:$,...m&&{[xO[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},[wO[f]]:()=>{i.current.insideReactTree=!0}}),[$,f,i]);return F.useMemo(()=>s?{reference:pe,floating:ie}:{},[s,pe,ie])}function SO(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=IA(),i=F.useRef({}),[s]=F.useState(()=>pO()),c=gO()!=null;if(process.env.NODE_ENV!=="production"){const w=r.reference;w&&!nn(w)&&dO("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 DA(e){e===void 0&&(e={});const{nodeId:t}=e,n=SO({...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=OA();ll(()=>{m&&(h.current=m)},[m]);const w=qR({...e,elements:{...o,...c&&{reference:c}}}),C=F.useCallback(O=>{const D=nn(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;u(D),w.refs.setReference(D)},[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(D=>D.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{[Vx]:s,[Kx]:c,...u}=e;i=u}return{...n==="floating"&&{tabIndex:-1,[sO]:""},...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&&[Vx,Kx].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 FA(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])}const CO={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"},AO={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"},EO={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"},kO={normal:"rounded",pill:"rounded-pill"},TO={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]"},jA=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...c})=>{const u=Y.useMemo(()=>EO[t]??"text-white",[t]),f=Y.useMemo(()=>Gc(u,e==="outline"?AO[t]:CO[t],kO[n],TO[r]),[u,e,t,r,n]);return L.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:L.jsx("p",{className:Gc("mx-1",o),children:i})})},_O={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},RO=({transition:e,onClick:t})=>L.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:[L.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),L.jsx(ot,{icon:w3,className:"text-gray-400 size-4"}),L.jsx(jA,{category:"outline",color:e.color,children:e.to})]}),PO=({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}=DA({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:c}),h=LA(m,{outsidePress:!0}),{getReferenceProps:v,getFloatingProps:w}=FA([h]);return L.jsxs(L.Fragment,{children:[L.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",_O[t]),...v(),children:[r===Li.COMMENT&&L.jsx(ot,{icon:o?zC:g3,className:gt("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),L.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?L.jsx(ot,{icon:hy,className:"size-4"}):L.jsx(L.Fragment,{})]}),s&&n.length&&L.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=>L.jsx(RO,{transition:C,onClick:()=>{i==null||i(C.id),c(!1)}},C.id))})]})},Jx=({description:e})=>{const t=Y.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${Xb}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${Xb}`),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]),L.jsx("div",{className:"flex flex-col gap-4",children:L.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},IO={SEQUENTIAL:"Sequential"},OO={[Zt.IN_REVIEW]:"In Review"},MO={[Zt.OPEN]:"bg-secondary-500",[Zt.IN_PROGRESS]:"bg-primary-600",[Zt.IN_REVIEW]:"bg-success-600",[Zt.COMPLETED]:"bg-success-600"},NO=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>L.jsx("div",{className:Jf("flex flex-col items-center justify-center",r?"bg-[#FFE600]":MO[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:L.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===IO.SEQUENTIAL?`STEP ${n}`:(OO[t]||t).toUpperCase()})}),LO={[Zt.OPEN]:"secondary",[Zt.IN_PROGRESS]:"primary",[Zt.IN_REVIEW]:"success",[Zt.COMPLETED]:"success"},DO=({status:e})=>L.jsx(jA,{category:"outline",color:LO[e],children:e}),Yn={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
696
696
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
697
697
|
* License - https://fontawesome.com/license (Commercial License)
|
|
698
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 L.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:L.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})=>L.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:[L.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),L.jsx(ot,{icon:AO,className:"text-gray-400 size-4"}),L.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 L.jsxs(L.Fragment,{children:[L.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&&L.jsx(ot,{icon:o?SO:CO,className:gt("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),L.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?L.jsx(ot,{icon:EO,className:"size-4"}):L.jsx(L.Fragment,{})]}),s&&n.length&&L.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=>L.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]),L.jsx("div",{className:"flex flex-col gap-4",children:L.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})=>L.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:L.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})=>L.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 L.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:[L.jsx("div",{className:"relative flex items-center justify-center",children:o?L.jsxs(L.Fragment,{children:[L.jsx(ot,{icon:sR,size:"lg"}),L.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"})]}):L.jsx(ot,{icon:BO,size:"lg"})}),o&&L.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 Rd(e,t){return`${e}${t?`_${t}`:""}`}function Iy(e){return t=>Rd(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 Ch(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=Ch(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 th(){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=th(),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 Ah({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:D}=sm(),{setTimeout:M}=lm(),U=F.useRef(null);F.useEffect(()=>{t===0&&D(KO(R))},[t,R,D]);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),D=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()-D.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,D.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]),D=Lt(()=>{e!==er.SWIPE&&(f.current=0,A.current=0,R(),O())});F.useEffect(D,[e,D]);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),D=F.useRef(0),M=F.useRef(1),{registerSensors:U,subscribeSensors:j}=T6(),{subscribe:$,publish:H}=sm(),G=th(),q=th(),pe=th(),{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;D.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=Ch(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(D.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 Rd(jA,e)}function aw(e){return Rd(_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 D=(x=c.slide)===null||x===void 0?void 0:x.call(c,{slide:e,offset:t,rect:i});return!D&&_u(e)&&(D=F.createElement(Ah,{slide:e,offset:t,render:c,rect:i,imageFit:u,imageProps:f,onClick:C?void 0:()=>m==null?void 0:m({index:r})})),D?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:D}),(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=Ch(e.spacing),f=Ch(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 Rd(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 D=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?D(U):R()},[D,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 Rd(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:D,...M}=p0,{config:U,augmentation:j}=u6([Pn(K6,[Pn(H6,[Pn(M6,[Pn(F6),Pn(X6),Pn(B6)])])])],c||D),$=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:D,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"?D: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]),D=Lt(()=>{r>1&&(r>t&&O(t,!0),R())});fi(D,[v.width,v.height,D]);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})),D={WebkitTransform:m?"initial":"translateZ(0)"};return C||Object.assign(D,c.width/c.height<v/w?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),F.createElement(F.Fragment,null,o&&o!==r&&F.createElement(Ah,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...D},onLoad:()=>O(o),render:{...f,iconLoading:()=>null,iconError:()=>null}}),r&&F.createElement(Ah,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:D}))}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(Ah,{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})=>L.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 L.jsxs(L.Fragment,{children:[Y.cloneElement(n,{ref:c.setReference,...h(),onClick:()=>s(C=>!C),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&L.jsx(gO,{children:L.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})=>L.jsxs(m0,{trigger:L.jsx(Ht,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:L.jsx(ot,{icon:kR})}),children:[L.jsxs("ul",{className:"py-2 m-0",children:[L.jsx("li",{children:L.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&&L.jsx("li",{children:L.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"})})]}),L.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:kk.map(s=>L.jsx("li",{children:L.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:L.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),Eh=!(!jo||!("InputEvent"in window)||SM)&&"getTargetRanges"in new window.InputEvent("input"),Pd=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,Id=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=Pd||Ru||Id?" ":"",Ja=`
|
|
699
|
+
*/const FO={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"]},jO={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"]},zO={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"]},BO={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"]},UO={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"]},WO={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"]},$O={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"]},HO={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"]},VO={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"]},KO={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"]},YO={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"]},GO={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"]},QO={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"]},ZO={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"]},qx=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var s,c;const o=n>0,i={[Yn.INFO]:{icon:c3,color:"text-primary-600 hover:text-primary-600"},[Yn.WARNING]:{icon:I3,color:"text-warning-600 hover:text-warning-600"},[Yn.DANGER]:{icon:qh,color:"text-danger-600 hover:text-danger-600"},[Yn.SUCCESS]:{icon:HC,color:"text-success-600 hover:text-success-600"}};return L.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:[L.jsx("div",{className:"relative flex items-center justify-center",children:o?L.jsxs(L.Fragment,{children:[L.jsx(ot,{icon:l3,size:"lg"}),L.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"})]}):L.jsx(ot,{icon:FO,size:"lg"})}),o&&L.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})]})},XO=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})(),zA="carousel",BA="controller",JO="navigation",qO="no-scroll",Ty="portal",e6="root",UA="toolbar",ew="zoom",Wg="loading",$g="error",Hg="complete",t6="placeholder",n6=e=>`active-slide-${e}`,r6="fullsize",_y="flex_center",o6="no_scroll",WA="no_scroll_padding",Ry="slide",$A="slide_wrapper",i6="slide_wrapper_interactive",Vs="prev",Ks="next",tw="swipe",gu="close",HA="onPointerDown",VA="onPointerMove",KA="onPointerUp",YA="onPointerLeave",GA="onPointerCancel",Py="onKeyDown",a6="onKeyUp",Iy="onWheel",s6="Escape",l6="ArrowLeft",c6="ArrowRight",u6="button",f0="icon",QA="contain",nw="cover",ZA="Unknown action type",XA="yarl__";function si(...e){return[...e].filter(Boolean).join(" ")}function bt(e){return`${XA}${e}`}function Nr(e){return`--${XA}${e}`}function _d(e,t){return`${e}${t?`_${t}`:""}`}function Oy(e){return t=>_d(e,t)}function vu(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function f6(e,t,n){return vu(e,"{index} of {total}").replace(/\{index}/g,`${Fy(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function My(...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 Ny(){return typeof window<"u"}function Ly(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 Dy(e,t){return e.imageFit===nw||e.imageFit!==QA&&t===nw}function im(e){return typeof e=="string"?Number.parseInt(e,10):e}function Sh(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 d6(e,t){const n=Sh(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 p6(){return(Ny()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Fy(e,t){return t>0?(e%t+t)%t:0}function JA(e){return e.length>0}function qA(e,t){return e[Fy(t,e.length)]}function d0(e,t){return JA(e)?qA(e,t):void 0}function h6(e){return _u(e)?e.src:void 0}function m6(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 g6(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const v6=Number(F.version.split(".")[0])>=19;function y6(e){return{inert:v6?e:e?"":void 0}}function b6(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:QA,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 eE(e,t,n){return e.module.name===t?n(e):e.children?[Pn(e.module,e.children.flatMap(r=>{var o;return(o=eE(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Dc(e,t,n){return e.flatMap(r=>{var o;return(o=eE(r,t,n))!==null&&o!==void 0?o:[]})}function x6(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(BA,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 tE=F.createContext(null),nE=ea("useA11yContext","A11yContext",tE);function w6({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(tE.Provider,{value:i},e)}const rE=F.createContext(null),am=ea("useDocument","DocumentContext",rE);function S6({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(rE.Provider,{value:n},t)}const oE=F.createContext(null),sm=ea("useEvents","EventsContext",oE);function C6({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(oE.Provider,{value:n},e)}const iE=F.createContext(null),ho=ea("useLightboxProps","LightboxPropsContext",iE);function A6({children:e,...t}){return F.createElement(iE.Provider,{value:t},e)}const aE=F.createContext(null),ns=ea("useLightboxState","LightboxStateContext",aE),sE=F.createContext(null),E6=ea("useLightboxDispatch","LightboxDispatchContext",sE);function k6(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Fy(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(ZA)}}function T6({slides:e,index:t,children:n}){const[r,o]=F.useReducer(k6,{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(sE.Provider,{value:o},F.createElement(aE.Provider,{value:i},n))}const lE=F.createContext(null),lm=ea("useTimeouts","TimeoutsContext",lE);function _6({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(lE.Provider,{value:n},e)}const jy=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(u6),n),onClick:i,style:{...s,...f.button},...c},o?o():F.createElement(r,{className:bt(f0),style:f.icon}))});function R6(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 R6(e,F.createElement("g",{fill:"currentColor"},F.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const P6=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"})),I6=Ol("Previous",F.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),O6=Ol("Next",F.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),M6=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)`})))),N6=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=Ny()?F.useLayoutEffect:F.useEffect;function zy(){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 L6(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 rw(e,t){const n=F.useRef(void 0),r=F.useRef(void 0),o=zy();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(),L6(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 cE(){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 eh(){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 ow(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function h0(e,t){return F.useMemo(()=>e==null&&t==null?null:n=>{ow(e,n),ow(t,n)},[e,t])}function D6(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 By(){const[e,t]=F.useState(!1);return fi(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function F6(){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(HA,o),onPointerMove:o=>t(VA,o),onPointerUp:o=>t(KA,o),onPointerLeave:o=>t(YA,o),onPointerCancel:o=>t(GA,o),onKeyDown:o=>t(Py,o),onKeyUp:o=>t(a6,o),onWheel:o=>t(Iy,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 iw(e,t){const n=F.useRef(0),r=eh(),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=Oy("slide"),Kg=Oy("slide_image");function Ch({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:D}=sm(),{setTimeout:M}=lm(),U=F.useRef(null);F.useEffect(()=>{t===0&&D(n6(R))},[t,R,D]);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=Dy(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&&Ny()?`${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(t6))},R===Wg&&(n!=null&&n.iconLoading?n.iconLoading():F.createElement(M6,{className:si(bt(f0),bt(Vg(Wg)))})),R===$g&&(n!=null&&n.iconError?n.iconError():F.createElement(N6,{className:si(bt(f0),bt(Vg($g)))}))))}const j6=F.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const c=F.useRef(null),{trackFocusWithin:u}=nE();return F.createElement(S6,{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 uE(e,t,n,r,o){F.useEffect(()=>o?()=>{}:My(e(HA,t),e(VA,n),e(KA,r),e(YA,r),e(GA,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 z6({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),D=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()-D.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(Ry))||xe.classList.contains(bt($A)))&&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,D.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)))}});uE(n,H,pe,q)}function B6({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 U6(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]),D=Lt(()=>{e!==er.SWIPE&&(f.current=0,A.current=0,R(),O())});F.useEffect(D,[e,D]);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(Iy,U),[t,U])}const aw=Oy("container"),fE=F.createContext(null),ta=ea("useController","ControllerContext",fE);function W6({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=E6(),[E,R]=F.useState(er.NONE),O=F.useRef(0),D=F.useRef(0),M=F.useRef(1),{registerSensors:U,subscribeSensors:j}=F6(),{subscribe:$,publish:H}=sm(),G=eh(),q=eh(),pe=eh(),{containerRef:ie,setContainerRef:se,containerRect:xe}=cE(),Ae=h0(B6({preventDefaultWheelX:h,preventDefaultWheelY:v}),se),Re=F.useRef(null),Q=h0(Re,void 0),{getOwnerDocument:Ee}=am(),ne=By(),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;D.current=Ne,M.current=(()=>{const Jt=m&&Ne>0?Ne:f&&Ne<0?-Ne:0;return Math.min(Math.max(Ly(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}=rw(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}=rw(Re,(Ne,nt,ct)=>{var ut;if(Re.current&&xe&&(!((ut=A.animation)===null||ut===void 0)&&ut.duration)){const Dt=Sh(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(tw,{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)];z6(i,...xn,f,m,...kr,_e),U6(E,...xn);const Vt=Lt(()=>{i.focus&&Ee().querySelector(`.${bt(Ty)} .${bt(aw())}`)&&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(()=>My($(Vs,Ne=>zt({direction:Vs,...Ne})),$(Ks,Ne=>zt({direction:Ks,...Ne})),$(tw,Ne=>x(Ne))),[$,zt,x]);const wn=F.useMemo(()=>({prev:de,next:ve,close:_e,focus:ue,slideRect:xe?d6(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(aw()),bt(_y)),style:{...E===er.SWIPE?{[Nr("swipe_offset")]:`${Math.round(O.current)}px`}:null,...E===er.PULL?{[Nr("pull_offset")]:`${Math.round(D.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(fE.Provider,{value:wn},e,(n=u.controls)===null||n===void 0?void 0:n.call(u)))}const $6=ts(BA,W6);function Ws(e){return _d(zA,e)}function sw(e){return _d(Ry,e)}function H6({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 D=(x=c.slide)===null||x===void 0?void 0:x.call(c,{slide:e,offset:t,rect:i});return!D&&_u(e)&&(D=F.createElement(Ch,{slide:e,offset:t,render:c,rect:i,imageFit:u,imageProps:f,onClick:C?void 0:()=>m==null?void 0:m({index:r})})),D?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:D}),(O=c.slideFooter)===null||O===void 0?void 0:O.call(c,{slide:e})):null};return F.createElement("div",{ref:n,className:si(bt(sw()),!C&&bt(sw("current")),bt(_y)),...y6(C),style:h,role:"group","aria-roledescription":vu(v,"Slide"),"aria-label":f6(v,o,r+t)},A())}function V6(){const e=ho().styles.slide;return F.createElement("div",{className:bt(Ry),style:e})}function K6({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=ns(),{setCarouselRef:i}=ta(),{autoPlaying:s,focusWithin:c}=nE(),u=Sh(e.spacing),f=Sh(e.padding),m=g6(e,n,1),h=[];if(JA(n))for(let v=r-m;v<=r+m;v+=1){const w=qA(n,v),C=o-r+v,A=e.finite&&(v<0||v>n.length-1);h.push(A?{key:C}:{key:[`${C}`,h6(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(H6,{key:v,slide:w,offset:C}):F.createElement(V6,{key:v})))}const Y6=ts(zA,K6);function dE(){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 G6(e){var t;const n=By(),{publish:r}=sm(),{animation:o}=ho(),{prevDisabled:i,nextDisabled:s}=dE(),c=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,u=iw(()=>r(Vs),c),f=iw(()=>r(Ks),c),m=Lt(h=>{switch(h.key){case s6:r(gu);break;case l6:(n?s:i)||(n?f:u)();break;case c6:(n?i:s)||(n?u:f)();break}});F.useEffect(()=>e(Py,m),[e,m])}function lw({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return F.createElement(jy,{label:e,icon:t,renderIcon:n,className:bt(`navigation_${r}`),disabled:i,onClick:o,style:s,...D6(ta().focus,i)})}function Q6({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:c}=ta(),{prevDisabled:u,nextDisabled:f}=dE();return G6(c),F.createElement(F.Fragment,null,e?e():F.createElement(lw,{label:"Previous",action:Vs,icon:I6,renderIcon:n,style:o.navigationPrev,disabled:u,onClick:i}),t?t():F.createElement(lw,{label:"Next",action:Ks,icon:O6,renderIcon:r,style:o.navigationNext,disabled:f,onClick:s}))}const Z6=ts(JO,Q6),cw=bt(o6),X6=bt(WA);function J6(e){return"style"in e}function uw(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 q6({noScroll:{disabled:e},children:t}){const n=By(),{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(uw(c,f,n));const m=c.getElementsByTagName("*");for(let h=0;h<m.length;h+=1){const v=m[h];J6(v)&&s.getComputedStyle(v).getPropertyValue("position")==="fixed"&&!v.classList.contains(X6)&&i.push(uw(v,f,n))}}return c.classList.add(cw),()=>{c.classList.remove(cw),i.forEach(m=>m())}},[n,e,r,o]),F.createElement(F.Fragment,null,t)}const eM=ts(qO,q6);function fw(e){return _d(Ty,e)}function dw(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function tM({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=zy()?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 D=Lt(U=>{var j,$,H;b6(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(dw(pe,"inert","")),v.current.push(dw(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?D(U):R()},[D,R]);return u?ui.createPortal(F.createElement(j6,{ref:M,className:si(r,bt(fw()),bt(WA),m&&bt(fw("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 nM=ts(Ty,tM);function rM({children:e}){return F.createElement(F.Fragment,null,e)}const oM=ts(e6,rM);function iM(e){return _d(UA,e)}function aM({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ta(),{setContainerRef:s,containerRect:c}=cE();fi(()=>{i(c==null?void 0:c.width)},[i,c==null?void 0:c.width]);const u=()=>t?t():F.createElement(jy,{key:gu,label:"Close",icon:P6,renderIcon:n,onClick:o});return F.createElement("div",{ref:s,style:r.toolbar,className:bt(iM())},e==null?void 0:e.map(f=>f===gu?u():f))}const sM=ts(UA,aM);function pE(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=>pE(r,t)))}function lM(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function cM({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:D,...M}=p0,{config:U,augmentation:j}=x6([Pn(nM,[Pn(eM,[Pn($6,[Pn(Y6),Pn(sM),Pn(Z6)])])])],c||D),$=j({animation:lM(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(A6,{...$},F.createElement(T6,{slides:u||R,index:im(f||O)},F.createElement(_6,null,F.createElement(C6,null,F.createElement(w6,null,pE(Pn(oM,U),$)))))):null}const uM={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function fM(e){return Math.min(Math.max(e,Number.EPSILON),1)}function hE(e){const{minZoom:t,...n}={...uM,...e};return{minZoom:fM(t),...n}}function dM(e,t,n,r){const o=F.useRef(void 0),i=F.useRef(void 0),{zoom:s}=ho().animation,c=zy(),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 pM(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 hE(e)}function hM(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=Dy(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(Ly(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:f}}function pw(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function hw(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function mM(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:D,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(hw(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"?D: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=pw(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=pw(Ee[0],Ee[1]),ue=$?h.current.initialZoom/h.current.initialDistance*re:hw(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},[]);uE(A,se,xe,Ae,r),F.useEffect(Re,[v,Re]),F.useEffect(()=>r?()=>{}:My(Re,A(Py,G),A(Iy,q)),[r,A,Re,G,q])}function gM(e,t,n){const[r,o]=F.useState(1),[i,s]=F.useState(0),[c,u]=F.useState(0),f=dM(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=Ly(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]),D=Lt(()=>{r>1&&(r>t&&O(t,!0),R())});fi(D,[v.width,v.height,D]);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 mE=F.createContext(null),Uy=ea("useZoom","ZoomControllerContext",mE);function vM({children:e}){const[t,n]=F.useState(),{slideRect:r}=ta(),{ref:o,minZoom:i}=cm(),{imageRect:s,maxZoom:c}=hM(r,t==null?void 0:t.imageDimensions),{zoom:u,offsetX:f,offsetY:m,disabled:h,changeZoom:v,changeOffsets:w,zoomIn:C,zoomOut:A}=gM(s,c,t==null?void 0:t.zoomWrapperRef);pM(u,h),mM(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(mE.Provider,{value:E},e)}const yM=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"}))),bM=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"})),mw=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}=Uy(),{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(jy,{ref:r,disabled:w,label:t?"Zoom in":"Zoom out",icon:t?yM:bM,renderIcon:t?v.iconZoomIn:v.iconZoomOut,onClick:t?f:m,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function xM(){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(mw,{zoomIn:!0,ref:e,onLoseFocus:i}),F.createElement(mw,{ref:t,onLoseFocus:o}))}function wM(){const{render:e}=ho(),t=Uy();return e.buttonZoom?F.createElement(F.Fragment,null,e.buttonZoom(t)):F.createElement(xM,null)}function SM(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function CM({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(ZA)}}function AM(e){var t,n;const[{current:r,preload:o},i]=F.useReducer(CM,{}),{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=Dy(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=p6(),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})),D={WebkitTransform:m?"initial":"translateZ(0)"};return C||Object.assign(D,c.width/c.height<v/w?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),F.createElement(F.Fragment,null,o&&o!==r&&F.createElement(Ch,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...D},onLoad:()=>O(o),render:{...f,iconLoading:()=>null,iconError:()=>null}}),r&&F.createElement(Ch,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:D}))}function EM({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}=Uy(),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=SM(t)?F.createElement(AM,{...R,slide:t,interactive:w,rect:n===0?{width:r.width*u,height:r.height*u}:r}):F.createElement(Ch,{onLoad:O=>s({width:O.naturalWidth,height:O.naturalHeight}),...R})}return E?F.createElement("div",{ref:c,className:si(bt(r6),bt(_y),bt($A),w&&bt(i6)),style:n===0?{transform:`scale(${u}) translateX(${m}px) translateY(${h}px)`}:void 0},E):null}const kM=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const c=hE(n);return{zoom:c,toolbar:m6(r,ew,F.createElement(wM,null)),render:{...o,slide:u=>{var f;return _u(u.slide)?F.createElement(EM,{render:o,...u}):(f=o.slide)===null||f===void 0?void 0:f.call(o,u)}},controller:{...i,preventDefaultWheelY:c.scrollToZoom},...s}}),t(ts(ew,vM))},TM="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==",_M=({src:e,alt:t,size:n=40})=>L.jsx("img",{src:e||TM,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),RM=(...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}=DA({strategy:"fixed",placement:e,open:i,onOpenChange:s}),m=LA(f,{outsidePress:!0}),{getReferenceProps:h,getFloatingProps:v}=FA([m]),w=Y.Children.map(t,C=>{if(!Y.isValidElement(C))return C;const A=C.props;return Y.cloneElement(C,{onClick:RM(A.onClick,()=>s(!1))})});return L.jsxs(L.Fragment,{children:[Y.cloneElement(n,{ref:c.setReference,...h(),onClick:()=>s(C=>!C),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&L.jsx(yO,{children:L.jsx("div",{ref:c.setFloating,style:{...u,minWidth:o},className:gt("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...v(),children:w})})]})},PM=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>L.jsxs(m0,{trigger:L.jsx(Ht,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:L.jsx(ot,{icon:_3})}),children:[L.jsxs("ul",{className:"py-2 m-0",children:[L.jsx("li",{children:L.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&&L.jsx("li",{children:L.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"})})]}),L.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:Tk.map(s=>L.jsx("li",{children:L.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:L.jsx(ot,{icon:s.icon,size:"lg"})})},s.type))})]}),gE=Y.createContext(null);function IM(e,t){return{getTheme:function(){return t??null}}}function ir(){const e=Y.useContext(gE);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 vE(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,OM=jo&&"documentMode"in document?document.documentMode:null,Oo=jo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xl=jo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ah=!(!jo||!("InputEvent"in window)||OM)&&"getTargetRanges"in new window.InputEvent("input"),Rd=jo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ru=jo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,MM=jo&&/Android/.test(navigator.userAgent),yE=jo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),gw=jo&&MM&&yE,Pd=jo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Oo&&!yE;function bE(...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 NM=0,LM=1,DM=2,xE=128,FM=1,jM=2,zM=3,BM=4,UM=5,WM=6,um=Rd||Ru||Pd?" ":"",Ja=`
|
|
704
700
|
|
|
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=Dd(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 D=w.removedNodes,M=D.length;if(M>0){let U=0;for(let j=0;j<M;j++){const $=D[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,kh=!1;function Th(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=Rh(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&&Th(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 _h(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(Rh(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){_h(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=_h(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}Th(h,null)}const w=Mo.get(v);Oe(w)&&Xo===null&&(Xo=w.getFormat(),Hs=w.getStyle())}else{const h=Rh(o,Cl),v=Rh(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,D=E-1;let M,U,j=R.getFirstChild(),$=0,H=0;for(;$<=O&&H<=D;){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 _h(ie,R.withBefore(j)),H++;else j=Qg(C0(pe)),Th(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>D;if(G&&!q){const pe=A[D+1],ie=pe===void 0?null:nr.getElementByKey(pe);S0(A,w,H,D,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||kh||r.setTextFormat(Xo),(function(o){Hs==null||Hs===o.__textStyle||kh||o.setTextStyle(Hs)})(t)}function Rh(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=_h(e,null);return t===null&&be(62),t.replaceChild(s,i),Th(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(!kh&&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,kh=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"),Fp=Ye("CAN_REDO_COMMAND"),jp=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||!Pd&&!Id?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]];Eh&&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,Ph=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&&(!Eh||YE<r+50)||c.isDirty()&&w<2||_2(n))&&i.offset!==s.offset&&!c.isComposing()||Di(c)||c.isDirty()&&w>1||(o||!Eh)&&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 D=O.getPreviousSibling();return(Oe(D)||ae(D)&&D.isInline())&&!D.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(!Ld(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)nh(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(D,M){const U=M.getTextFormat(),j=M.getTextStyle();nh(D,U,j)})(c,O):nh(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,D=!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)&&(D=!0,O&=U.getFormat(),O===0))break}c.format=D?O:0}}Le(t,dm,void 0)})}function nh(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function ZE(e,t){nh(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&&
|
|
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,()=>{Ih(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=Ph.get(t);if(n===void 0)return;const r=n-1;r>=0||be(164),T0.delete(e),Ph.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&&(Nh(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),u.key===r&&(Nh(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),Mh(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 Oh(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?oh(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=oh(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=oh(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(Oh(this))return this;const t=bn(this.__key);return t===null&&be(113),t}getWritable(){if(Oh(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 Dh(i),i;const u=N2(i);return s.add(o),Dh(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();Mh(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)&&Mh(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&&
|
|
701
|
+
`,$M=xl?" ":um,wl={bold:1,capitalize:1024,code:16,highlight:xE,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},HM={directionless:1,unmergeable:2},vw={center:2,end:6,justify:4,left:1,right:3,start:5},VM={[jM]:"center",[WM]:"end",[BM]:"justify",[FM]:"left",[zM]:"right",[UM]:"start"},KM={normal:0,segmented:2,token:1},YM={[NM]:"normal",[DM]:"segmented",[LM]:"token"},yw="$config";function wE(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const c=s.__key;s.__parent===t&&(ae(s)&&wE(s,c,n,r,o,i),n.has(c)||i.delete(c),o.push(c)),s=s.getNextSibling()}}let g0=!1,Wy=0;function GM(e){Wy=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 QM(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&&ab(t,s,o,i,!1)}function ZM(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 XM(e,t,n,r){for(let o=e;o&&!rL(o);o=Ld(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,_2(n)]}}function SE(e,t,n){g0=!0;const r=performance.now()-Wy>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=XM(A,e,c,s);if(!x)continue;const[E,R]=x;if(C==="characterData")r&&Oe(R)&&na(A)&&ZM(o,A,R)&&QM(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],$=k2(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 D=w.removedNodes,M=D.length;if(M>0){let U=0;for(let j=0;j<M;j++){const $=D[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&&O2(e)&&o.insertRawText(m))})}finally{g0=!1}}function CE(e){const t=e._observer;t!==null&&SE(e,t.takeRecords(),t)}function AE(e){(function(t){Wy===0&&mo(t).addEventListener("textInput",GM,!0)})(e),e._observer=new MutationObserver((t,n)=>{SE(e,t,n)})}function JM(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 qM=class EE{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 bw(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 EE(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=bw(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 eN(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new qM(t,kE(t));return t.__state=n,n}function kE(e){return e.__state?e.__state.sharedNodeState:w2(cb(),e.getType()).sharedNodeState}function bw(e){if(e)for(const t in e)return e}function xw(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 ww(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 Sw(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Cw(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&&xw(v,m,h)||h&&xw(v,h,m)||m&&ww(v,m,h)||h&&ww(v,h,m))})(u,f))}function Aw(e,t){const n=e.mergeWithSibling(t),r=jt()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Ew(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(Cw(t,r)){r=Aw(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Oe(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Cw(r,n)){r=Aw(r,n);break}break}n.remove()}}else r.remove()}function yu(e){return kw(e.anchor),kw(e.focus),e}function kw(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,Eh=!1;function kh(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=_h(n,Cl);x0(r,0,r.length-1,null)}n!==void 0&&sb(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&&kh(i,r)}}function $s(e,t){e.setProperty("text-align",t)}const tN="40px";function TE(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")||tN;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function _E(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 Th(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&&TE(r,o),i!==0){const c=i-1;S0(_h(n,Mo),n,0,c,n.getDOMSlot(r))}const s=n.__format;s!==0&&_E(r,s),n.isInline()||RE(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&&PE(e,i),r.contentEditable="false"}yn+=o,Fi+=o}return t!==null&&t.insertChild(r),sb(sd,ad,fm,n,"created"),r}function S0(e,t,n,r,o){const i=yn;yn="";let s=n;for(;s<=r;++s){Th(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 Tw(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 RE(e,t,n){const r=Tw(e,Cl),o=Tw(t,Mo);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function nN(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=Th(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}kh(h,null)}const w=Mo.get(v);Oe(w)&&Xo===null&&(Xo=w.getFormat(),Hs=w.getStyle())}else{const h=_h(o,Cl),v=_h(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,D=E-1;let M,U,j=R.getFirstChild(),$=0,H=0;for(;$<=O&&H<=D;){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 Th(ie,R.withBefore(j)),H++;else j=Qg(C0(pe)),kh(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>D;if(G&&!q){const pe=A[D+1],ie=pe===void 0?null:nr.getElementByKey(pe);S0(A,w,H,D,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||Eh||r.setTextFormat(Xo),(function(o){Hs==null||Hs===o.__textStyle||Eh||o.setTextStyle(Hs)})(t)}function _h(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&&sb(sd,ad,fm,r,"updated"),r.updateDOM(n,i,Sl)){const s=Th(e,null);return t===null&&be(62),t.replaceChild(s,i),kh(e,null),s}if(ae(n)&&ae(r)){const s=r.__indent;(Uc||s!==n.__indent)&&TE(i,s);const c=r.__format;if((Uc||c!==n.__format)&&_E(i,c),o&&(nN(n,r,i),cn(r)||r.isInline()||RE(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&&PE(e,c)}yn+=s,Fi+=s}if(!Eh&&cn(r)&&r.__cachedText!==Fi){const s=r.getWritable();s.__cachedText=Fi,r=s}return i}function PE(e,t){let n=nr._pendingDecorators;const r=nr._decorators;if(n===null){if(r[e]===t)return;n=T2(nr)}n[e]=t}function Qg(e){let t=e.nextSibling;return t!==null&&t===nr._blockCursorElement&&(t=t.nextSibling),t}function rN(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,Eh=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"),oN=Ye("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),$y=Ye("CLICK_COMMAND"),IE=Ye("BEFORE_INPUT_COMMAND"),OE=Ye("INPUT_COMMAND"),ME=Ye("COMPOSITION_START_COMMAND"),NE=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"),Hy=Ye("UNDO_COMMAND"),Vy=Ye("REDO_COMMAND"),LE=Ye("KEYDOWN_COMMAND"),DE=Ye("KEY_ARROW_RIGHT_COMMAND"),iN=Ye("MOVE_TO_END"),FE=Ye("KEY_ARROW_LEFT_COMMAND"),aN=Ye("MOVE_TO_START"),jE=Ye("KEY_ARROW_UP_COMMAND"),zE=Ye("KEY_ARROW_DOWN_COMMAND"),fd=Ye("KEY_ENTER_COMMAND"),BE=Ye("KEY_SPACE_COMMAND"),UE=Ye("KEY_BACKSPACE_COMMAND"),Ky=Ye("KEY_ESCAPE_COMMAND"),WE=Ye("KEY_DELETE_COMMAND"),$E=Ye("KEY_TAB_COMMAND"),sN=Ye("INSERT_TAB_COMMAND"),lN=Ye("INDENT_CONTENT_COMMAND"),_w=Ye("OUTDENT_CONTENT_COMMAND"),HE=Ye("DROP_COMMAND"),cN=Ye("FORMAT_ELEMENT_COMMAND"),VE=Ye("DRAGSTART_COMMAND"),KE=Ye("DRAGOVER_COMMAND"),uN=Ye("DRAGEND_COMMAND"),hm=Ye("COPY_COMMAND"),Yy=Ye("CUT_COMMAND"),E0=Ye("SELECT_ALL_COMMAND"),fN=Ye("CLEAR_EDITOR_COMMAND"),dN=Ye("CLEAR_HISTORY_COMMAND"),Dp=Ye("CAN_REDO_COMMAND"),Fp=Ye("CAN_UNDO_COMMAND"),pN=Ye("FOCUS_COMMAND"),hN=Ye("BLUR_COMMAND"),mN=Ye("KEY_MODIFIER_COMMAND"),Ii=Object.freeze({}),k0=[["keydown",function(e,t){dd=e.timeStamp,YE=e.key,!t.isComposing()&&Le(t,LE,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Lu(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&li(t,()=>{S2(n)||(R0=!0)})}],["compositionstart",function(e,t){Le(t,ME,e)}],["compositionend",function(e,t){xl?Wf=!0:Ru||!Rd&&!Pd?Le(t,NE,e):(P0=!0,I0=e.data)}],["input",function(e,t){e.stopPropagation(),li(t,()=>{t.dispatchCommand(OE,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(Qy(o,r,t,e))}}Le(t,$y,e)})}],["cut",Ii],["copy",Ii],["dragstart",Ii],["dragover",Ii],["dragend",Ii],["paste",Ii],["focus",Ii],["blur",Ii],["drop",Ii]];Ah&&k0.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||xl&&O2(r)||o!=="insertCompositionText"&&Le(r,IE,n)})(e,t)]);let dd=0,YE=null,GE=0,Wc=null;const T0=new WeakMap,Rh=new WeakMap;let _0=!1,R0=!1,Yf=!1,Wf=!1,P0=!1,I0="",Ys=null,QE=[0,"",0,"root",0];function ZE(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&&(!Ah||GE<r+50)||c.isDirty()&&w<2||R2(n))&&i.offset!==s.offset&&!c.isComposing()||Di(c)||c.isDirty()&&w>1||(o||!Ah)&&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 D=O.getPreviousSibling();return(Oe(D)||ae(D)&&D.isInline())&&!D.canInsertTextAfter()})(A):x===A.getTextContentSize()&&(!A.canInsertTextAfter()||!E.canInsertTextAfter()&&!A.isComposing()||R)})(e,c)}function Rw(e,t){return na(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Pw(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;_0&&(_0=!1,Rw(r,o)&&Rw(i,s)&&!Ys)||li(t,()=>{if(!n)return void Cr(null);if(!Nd(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]=QE,E=Xt(),R=t.isComposing()===!1&&E.getTextContent()==="";if(h<x+200&&u.offset===C&&u.key===A)th(c,v,w);else if(u.type==="text")Oe(f)||be(141),XE(c,f);else if(u.type==="element"&&!R){ae(f)||be(259);const O=u.getNode();O.isEmpty()?(function(D,M){const U=M.getTextFormat(),j=M.getTextStyle();th(D,U,j)})(c,O):th(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,D=!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)&&(D=!0,O&=U.getFormat(),O===0))break}c.format=D?O:0}}Le(t,dm,void 0)})}function th(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function XE(e,t){th(e,t.getFormat(),t.getStyle())}function JE(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function gN(e){const t=e.inputType,n=JE(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,YE==="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),XE(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=gw&&h&&!A&&C;if(x&&o.isCollapsed()&&(x=!Et(F0(o.anchor,!0))),!x){Le(r,cl,!0);const E=Ie();gw&&ge(E)&&E.isCollapsed()&&(Ys=E,setTimeout(()=>Ys=null))}}return!0}}var i;if(!ge(o))return!0;const s=e.data;Wc!==null&&ib(!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===`
|
|
702
|
+
`)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&&ZE(o,n,s,e.timeStamp,!0)?(e.preventDefault(),Le(r,qc,s)):Wc=s;return GE=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,Hy,void 0);break;case"historyRedo":Le(r,Vy,void 0)}return!0}function vN(e){if(Gn(e.target)&&S2(e.target))return!0;const t=jt(),n=Ie(),r=e.data,o=JE(e);if(r!=null&&ge(n)&&ZE(n,o,r,e.timeStamp,!1)){Wf&&(Ph(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;Ah&&!n.isCollapsed()&&Oe(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,u)+r+i.getTextContent().slice(u+f)===I2(s.anchorNode)||Le(t,qc,r);const m=r.length;xl&&m>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=m),Rd||Ru||Pd||!t.isComposing()||(dd=0,Kn(null))}else ib(!1,t,r!==null?r:void 0),Wf&&(Ph(t,r||void 0),Wf=!1);return(function(){tr();const i=jt();CE(i)})(),!0}function yN(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,$M)}return!0}function bN(e){return Ph(jt(),e.data),!0}function Ph(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)&&ab(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
703
|
+
`){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)}}}ib(!0,e,t)}function xN(e){const t=jt();if(e.key==null)return!0;if(P0&&t1(e))return li(t,()=>{Ph(t,I0)}),P0=!1,I0="",!0;if((function(n){return Nt(n,"ArrowRight",{shiftKey:"any"})})(e))Le(t,DE,e);else if((function(n){return Nt(n,"ArrowRight",Ni)})(e))Le(t,iN,e);else if((function(n){return Nt(n,"ArrowLeft",{shiftKey:"any"})})(e))Le(t,FE,e);else if((function(n){return Nt(n,"ArrowLeft",Ni)})(e))Le(t,aN,e);else if((function(n){return Nt(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))Le(t,jE,e);else if((function(n){return Nt(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))Le(t,zE,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,BE,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))t1(e)?Le(t,UE,e):(e.preventDefault(),Le(t,cl,!0));else if((function(n){return n.key==="Escape"})(e))Le(t,Ky,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,WE,e):(e.preventDefault(),Le(t,cl,!1));else if((function(n){return Nt(n,"Backspace",e1)})(e))e.preventDefault(),Le(t,cd,!0);else if((function(n){return Nt(n,"Delete",e1)})(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,$E,e);else if((function(n){return Nt(n,"z",Ni)})(e))e.preventDefault(),Le(t,Hy,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,Vy,void 0);else{const n=t._editorState._selection;n===null||ge(n)?n1(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,Yy,e)):n1(e)&&(e.preventDefault(),Le(t,E0,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(mN,e),!0}function qE(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const eu=new Map;function e2(e){const t=qN(e.target);if(t===null)return;const n=C2(t.anchorNode);if(n===null)return;R0&&(R0=!1,li(n,()=>{const u=Ou(),f=t.anchorNode;(Gn(f)||na(f))&&Cr(Qy(u,t,n,e))}));const r=ob(n),o=r[r.length-1],i=o._key,s=eu.get(i),c=s||o;c!==n&&Pw(t,c,!1),Pw(t,n,!0),n!==o?eu.set(i,n):s&&eu.delete(i)}function Iw(e){e._lexicalHandled=!0}function Ow(e){return e._lexicalHandled===!0}function wN(e){const t=T0.get(e);if(t===void 0)return;const n=Rh.get(t);if(n===void 0)return;const r=n-1;r>=0||be(164),T0.delete(e),Rh.set(t,r),r===0&&t.removeEventListener("selectionchange",e2);const o=vm(e);rb(o)?((function(s){if(s._parentEditor!==null){const c=ob(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=qE(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&&(Mh(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),u.key===r&&(Mh(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),Oh(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 t2=Symbol.for("ephemeral");function Ih(e){return e[t2]||!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}),KN(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?rh(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=rh(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?j2(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&be(279),!1)))}isParentOf(t){const n=rh(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(Ih(this))return this;const t=bn(this.__key);return t===null&&be(113),t}getWritable(){if(Ih(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 Lh(i),i;const u=L2(i);return s.add(o),Lh(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 kE(o).flatKeys)c in r&&(s!==void 0&&s!==i||(s={...i}),s[c]=r[c]);return(o.__state||s)&&eN(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&&Dw(A,c),x.key===i&&Dw(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();Oh(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)&&Oh(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",SN="history-push",ul="history-merge",CN="paste",AN="collaboration",EN="skip-scroll-into-view",kN="skip-dom-selection",TN="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`
|
|
704
|
+
`}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&&Dh(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&jp(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&jp(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&Dh(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&jp(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&jp(i))return!0}return!1})(t)?null:{conversion:_N,priority:0}}}static importJSON(t){return Al().updateFromJSON(t)}}function _N(e){return{node:Al()}}function Al(){return is(new Pu)}function fl(e){return e instanceof Pu}function jp(e){return na(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Zg(e,t){return 16&t?"code":t&xE?"mark":32&t?"sub":64&t?"sup":null}function Xg(e,t){return 1&t?"strong":2&t?"em":"span"}function n2(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 r2(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 Mw(e,t,n,r,o,i){r2(o,e,t);const s=i.theme.text;s!==void 0&&n2(0,0,r,e,s)}function zp(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 YM[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 Nh(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)),Mw(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 Mw(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)),r2(i,v,this);const w=o.theme.text;w!==void 0&&s!==c&&n2(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:ON,priority:0}),b:()=>({conversion:PN,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:RN,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=zp(r,"b")),this.hasFormat("italic")&&(r=zp(r,"i")),this.hasFormat("strikethrough")&&(r=zp(r,"s")),this.hasFormat("underline")&&(r=zp(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"?HM[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=Nh(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=KM[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 s2(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 D=Ie();if(ge(D)){const[H,G]=D.isBackward()?[D.focus,D.anchor]:[D.anchor,D.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=Sw(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=Sw(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&&Lh(pe),ie!==null&&Lh(ie)})(this);const H=v.getWritable(),G=this.getIndexWithinParent();E?(H.splice(G,0,M),this.remove()):H.splice(G,1,M),ge(D)&&Oh(D,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&&$w(v,r,o,n,c),w!==null&&w.key===i&&$w(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 RN(e){return{forChild:Gy(e.style),node:null}}function PN(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Gy(t.style,n?void 0:"bold"),node:null}}const Nw=new WeakMap;function IN(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 ON(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=Nw.get(i))===void 0&&!IN(i);)s.push(i),i=i.parentNode;const c=o===void 0?i:o;for(let u=0;u<s.length;u++)Nw.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
705
|
`||c===`\r
|
|
710
|
-
`?o.push(Al()):c===" "?o.push(
|
|
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=
|
|
706
|
+
`?o.push(Al()):c===" "?o.push(Id()):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=Lw(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=Lw(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 Lw(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 MN={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Oi(e){const t=MN[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Gy(e.style,t),node:null}}function In(e=""){return is(new rs(e))}function Oe(e){return e instanceof rs}function Gy(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 Id().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&vE(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 Id(){return is(new Iu)}function o2(e){return e instanceof Iu}class NN{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:F2(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,Od()||(Wa()===s&&Kn(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function di(e,t,n){return new NN(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 Dw(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 Od()||(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");dL(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=db(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})(B2(l1(this),"next"));return Od()||(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+=`
|
|
707
|
+
`),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=a2(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=Nh(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
708
|
`||s===`\r
|
|
713
|
-
`?r.push(Al()):s===" "?r.push(Od()):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 D=x.getNode(),M=D.getChildAtIndex(x.offset),U=In();if(U.setFormat(R),U.setStyle(O),Jy(M))M.splice(0,0,[U]);else{const j=cn(D)?Sr().append(U):U;M===null?D.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[D]=v.splitText(u);D.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 D=R.getChildren(),M=new Set(m),U=E.is(R),j=E.isInline()&&v.getNextSibling()===null?E:v;for(let $=D.length-1;$>=0;$--){const H=D[$];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;ih(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 D of r)Oe(D)&&o.push(D);const i=D=>{r.forEach(M=>{if(ae(M)){const U=M.getFormatFlags(t,D);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 D=w.splitText(C,R),M=C===0?D[0]:D[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 D=v+1;D<x;D++){const M=o[D],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 D of R)O=O.insertAfter(D)})(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,D=R.offset,M=R.type;R.set(E.key,E.offset,E.type,!0),E.set(O,D,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);ih(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 ih(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(D){return!(_2(D)||EN(D))})(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||!Ld(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)&&!Ld(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 Mh(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 Nh(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&&Ld(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,D=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()!==D||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!==D||e.style!==M))&&(G=D,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=Dd(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,rh=0;const Hw={characterData:!0,childList:!0,subtree:!0};function Md(){return Lr||Mn!==null&&Mn._readOnly}function tr(){Lr&&be(13)}function f2(){rh>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 D=o?null:go(mo(e));if(e._editable&&D!==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,D,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 D=R.getEditorState()._selection,M=go(mo(R));return ge(D)||D==null?Gy(D,M,R,O):D.clone()})(e,n&&n.event||null));const x=e._compositionKey;t(),i=Gw(e,i),(function(R,O){const D=O.getEditorState()._selection,M=R._selection;if(ge(M)){const U=M.anchor,j=M.focus;let $;if(U.type==="text"&&($=U.getNode(),$.selectionTransform(D,M)),j.type==="text"){const H=j.getNode();$!==H&&H.selectionTransform(D,M)}}})(u,e),e._dirtyType!==0&&(i?(function(R,O){const D=O._dirtyLeaves,M=R._nodeMap;for(const U of D){const j=M.get(U);Oe(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Aw(j)}})(u,e):(function(R,O){const D=O._dirtyLeaves,M=O._dirtyElements,U=R._nodeMap,j=Wa(),$=new Map;let H=D,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,$),D.add(ie)}if(H=O._dirtyLeaves,G=H.size,G>0){rh++;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,rh++}O._dirtyLeaves=D,O._dirtyElements=M})(u,e),Gw(e),(function(R,O,D,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 D){const G=j.get(H);G===void 0||G.isAttached()||(U.has(H)||D.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,D=E.focus.key;R.get(O)!==void 0&&R.get(D)!==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,rh=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"&&(Id||Ru||Pd);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 Lh(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){Oh(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)&&Nh(E,E.getNode(),this,h,m),Zw(R,A,x)&&Nh(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!Md()&&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 Nd(new Map(e._nodeMap))}function Zy(){return new Nd(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 Nd}class Nd{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 Nd(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(),D=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:D})}}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=D=>{Object.keys(D).forEach(M=>{let U=E.get(M);U===void 0&&(U=[],E.set(M,U)),U.push(D[M])})};return A.forEach(D=>{const M=D.klass.importDOM;if(M==null||R.has(M))return;R.add(M);const U=M.call(D.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=Ph.get(f)??0;m<1&&f.addEventListener("selectionchange",qE),Ph.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 Ld(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=Dd(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 Lh(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 Dh(e){f2(),Oh(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 Md()?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=Dd(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=Dd(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),Pd||Ru||Id)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 Up(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function FN(e,t){return Up(e,t,"altKey")&&Up(e,t,"ctrlKey")&&Up(e,t,"shiftKey")&&Up(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 Dd(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 Fh(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=oh(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 Wp(e,t){return t.is(e)}function a1(e){return ae(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function oh(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?(Wp(e,r)||be(276),{commonAncestor:r,type:"ancestor"}):o===null?(Wp(t,r)||be(277),{commonAncestor:r,type:"descendant"}):((ae(i)||Wp(e,i))&&(ae(o)||Wp(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 ih(n,e),Cr(n),n}function ih(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 D=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)}D.is(s[0].origin)&&(s[0]=O),D.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 D=R.getParents().reverse();D.push(R);const M=Math.min(O.length,D.length);let U;for(U=0;U<M&&O[U]===D[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(D,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,$p={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()}},$p);else if(v!==null)switch(typeof v){case"string":{const w=h.parseEditorState(v);h.setEditorState(w,$p);break}case"object":h.setEditorState(v,$p);break;case"function":h.update(()=>{Xt().isEmpty()&&v(h)},$p)}}})(m,c),[m,f]},[]);return s5(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),L.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,ah=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=ah-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++,ah++,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===ah))return!0;if(this.g=ah,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,Hp=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:Hp,initResult:u,registerState:f})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Hp&&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>=Hp})(t)||Ut(313,String(t.id),String(Hp)),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 Vp(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=[Vp(_5)];for(const r of t)n.push(Vp(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=Vp(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=Vp(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 D=O(C);D!==null&&(R===null||(R.priority||0)<=(D.priority||0))&&(R=D)}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)),Fh(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):Fh(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 jh(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&&jh(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?"":ak(e,t)}function j5(e,t=Ie()){return t==null&&jh(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===`
|
|
709
|
+
`?r.push(Al()):s===" "?r.push(Id()):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 D=x.getNode(),M=D.getChildAtIndex(x.offset),U=In();if(U.setFormat(R),U.setStyle(O),qy(M))M.splice(0,0,[U]);else{const j=cn(D)?Sr().append(U):U;M===null?D.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(""),i2(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(o2(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[D]=v.splitText(u);D.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 D=R.getChildren(),M=new Set(m),U=E.is(R),j=E.isInline()&&v.getNextSibling()===null?E:v;for(let $=D.length-1;$>=0;$--){const H=D[$];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;oh(this,pL(l1(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 D of r)Oe(D)&&o.push(D);const i=D=>{r.forEach(M=>{if(ae(M)){const U=M.getFormatFlags(t,D);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 D=w.splitText(C,R),M=C===0?D[0]:D[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 D=v+1;D<x;D++){const M=o[D],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 D of R)O=O.insertAfter(D)})(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(Hw(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&&u2(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:XN(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,D=R.offset,M=R.type;R.set(E.key,E.offset,E.type,!0),E.set(O,D,M,!0)})(this)}}r==="lineboundary"&&Hw(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=hb(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);oh(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=c2();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 oh(this,qa(!u.origin.isEmpty()&&f.isEmpty()?mb(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&&jw(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 zw(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 zw(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(D){return!(R2(D)||LN(D))})(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&&jw(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 Fw(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]:[Fw(n),Fw(r)]}function jw(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 LN=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function zw(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 Bw(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 Uw(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 i2(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Uw(e,r,o),Uw(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 a2(e,t,n,r,o,i){if(e===null||n===null||!Nd(o,e,n))return null;const s=Bw(e,t,ge(i)?i.anchor:null,o);if(s===null)return null;const c=Bw(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 i2(s,c,i),[s,c]}function L0(e){return ae(e)&&!e.isInline()}function s2(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 l2(){const e=di("root",0,"element"),t=di("root",0,"element");return new Ml(e,t,0,"")}function c2(){return new mm(new Set)}function Qy(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)&&!Nd(n,f,m))return e.clone();const w=a2(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 Oh(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"),Ww(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")}}Ww(e)}function Ww(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 Mh(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 $w(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 u2(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function DN(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(AN)&&h!==i||h!==null&&nb(h))return;if(!ge(t))return void(e!==null&&Nd(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,D=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()!==D||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!==D||e.style!==M))&&(G=D,q=M,pe=R,ie=C,se=performance.now(),QE=[G,q,pe,ie,se]),f!==R||m!==O||c!==j||u!==$||r.type==="Range"&&U||(h!==null&&i.contains(h)||o.has(TN)||i.focus({preventScroll:!0}),v.type==="element"))){if(u2(r,j,R,$,O),!o.has(EN)&&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=M2(Ee),re=lb(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=Ld(ve)}})(n,Ae,i)}}_0=!0}}function f2(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]=FN(o,i),s.is(o))break}return i}function FN(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 Hw(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(!z2(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 hb(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=c2();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,nh=0;const Vw={characterData:!0,childList:!0,subtree:!0};function Od(){return Lr||Mn!==null&&Mn._readOnly}function tr(){Lr&&be(13)}function d2(){nh>99&&be(14)}function os(){return Mn===null&&be(195,p2()),Mn}function jt(){return Nn===null&&be(196,p2()),Nn}function p2(){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(rb(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 jN(){return Nn}function Kw(e,t,n){const r=t.__type,o=w2(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 Yw(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function h2(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 zN(e){return Zy(e,jt()._nodes)}function Zy(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=Zy(s[c],t);i.append(u)}return i}function Gw(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=rN(i,n,e,U,j,$)}catch(U){if(U instanceof Error&&e._onError(U),ev)throw U;return b2(e,null,r,n),AE(e),e._dirtyType=2,ev=!0,Wi(e,i),void(ev=!1)}finally{w.observe(r,Vw),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=T2(U)),delete H[q])})(e,n);const D=o?null:go(mo(e));if(e._editable&&D!==null&&(u||c===null||c.dirty||!c.is(s))&&r!==null&&!R.has(kN)){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),DN(s,c,e,D,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=bE(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,Vw),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=Jw(j),G=Jw($);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 Qw(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),h2(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,h2(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=g2(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;eb(null);try{f&&(C?c._selection!==null&&(u._selection=c._selection.clone()):u._selection=(function(R,O){const D=R.getEditorState()._selection,M=go(mo(R));return ge(D)||D==null?Qy(D,M,R,O):D.clone()})(e,n&&n.event||null));const x=e._compositionKey;t(),i=Qw(e,i),(function(R,O){const D=O.getEditorState()._selection,M=R._selection;if(ge(M)){const U=M.anchor,j=M.focus;let $;if(U.type==="text"&&($=U.getNode(),$.selectionTransform(D,M)),j.type==="text"){const H=j.getNode();$!==H&&H.selectionTransform(D,M)}}})(u,e),e._dirtyType!==0&&(i?(function(R,O){const D=O._dirtyLeaves,M=R._nodeMap;for(const U of D){const j=M.get(U);Oe(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Ew(j)}})(u,e):(function(R,O){const D=O._dirtyLeaves,M=O._dirtyElements,U=R._nodeMap,j=Wa(),$=new Map;let H=D,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()&&Ew(se),se!==void 0&&Yw(se,j)&&Kw(O,se,$),D.add(ie)}if(H=O._dirtyLeaves,G=H.size,G>0){nh++;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&&Yw(Ae,j)&&Kw(O,Ae,$)}H=O._dirtyLeaves,G=H.size,q=O._dirtyElements,pe=q.size,nh++}O._dirtyLeaves=D,O._dirtyElements=M})(u,e),Qw(e),(function(R,O,D,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)&&wE(G,H,U,j,$,M),U.has(H)||M.delete(H),$.push(H)))}for(const H of $)j.delete(H);for(const H of D){const G=j.get(H);G===void 0||G.isAttached()||(U.has(H)||D.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,D=E.focus.key;R.get(O)!==void 0&&R.get(D)!==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,nh=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&&VN(()=>{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"&&(Pd||Ru||Rd);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=Zw(n,r);i.push(o);const s=Zw(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 Zw(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 VM[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=vw[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=wl[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return Nh(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):s2(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!==""?vw[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){Ih(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;Xw(E,A,x)&&Mh(E,E.getNode(),this,h,m),Xw(R,A,x)&&Mh(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 Xw(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 m2 extends No{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Et(e){return e instanceof m2}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!Od()&&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 g2(e){return new Md(new Map(e._nodeMap))}function Xy(){return new Md(new Map([["root",new Mu]]))}function v2(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=v2(o[i]);r.push(s)}}return t}function BN(e){return e instanceof Md}class Md{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 Gw(n&&n.editor||null,this,t)}clone(t){const n=new Md(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Gw(null,this,()=>({root:v2(Xt())}))}}class Jy 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:UN,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 UN(e){const t=Sr();return e.style&&(t.setFormat(e.style.textAlign),nL(e,t)),{node:t}}function Sr(){return is(new Nu)}function qy(e){return e instanceof Nu}const lt=0,$i=1,WN=3,y2=4;function b2(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Xy(),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 $N(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 x2(e){const t=e||{},n=jN(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Xy(),c=t.namespace||(o!==null?o._config.namespace:P2()),u=t.editorState,f=[Mu,rs,Pu,Iu,Nu,Jy,...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(),D=$N(x);w.set(O,{exportDOM:h&&h.export?h.export.get(x):void 0,klass:x,replace:E,replaceWithKlass:R,sharedNodeState:JM(f[A]),transforms:D})}}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=D=>{Object.keys(D).forEach(M=>{let U=E.get(M);U===void 0&&(U=[],E.set(M,U)),U.push(D[M])})};return A.forEach(D=>{const M=D.klass.importDOM;if(M==null||R.has(M))return;R.add(M);const U=M.call(D.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(IE,gN,lt),A.registerCommand(OE,vN,lt),A.registerCommand(ME,yN,lt),A.registerCommand(NE,bN,lt),A.registerCommand(LE,xN,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=P2(),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=i1(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=i1(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,b2(this,n,t,o),n!==null&&(this._config.disableEvents||wN(n),r!=null&&n.classList.remove(...r)),t!==null){const i=lb(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,AE(this),this._updateTags.add(ul),Wi(this),this._config.disableEvents||(function(c,u){const f=c.ownerDocument;T0.set(c,f);const m=Rh.get(f)??0;m<1&&f.addEventListener("selectionchange",e2),Rh.set(f,m+1),c.__lexicalEditor=u;const h=qE(c);for(let v=0;v<k0.length;v++){const[w,C]=k0[v],A=typeof C=="function"?x=>{Ow(x)||(Iw(x),(u.isEditable()||w==="click")&&C(x,u))}:x=>{if(Ow(x))return;Iw(x);const E=u.isEditable();switch(w){case"cut":return E&&Le(u,Yy,x);case"copy":return Le(u,hm,x);case"paste":return E&&Le(u,pm,x);case"dragstart":return E&&Le(u,VE,x);case"dragover":return E&&Le(u,KE,x);case"dragend":return E&&Le(u,uN,x);case"focus":return E&&Le(u,pN,x);case"blur":return E&&Le(u,hN,x);case"drop":return E&&Le(u,HE,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=g2(t),r._selection=t._selection?t._selection.clone():null),CE(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=Xy(),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,eb(null);try{const C=o._nodes;Zy(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()),QN("focus"),ZN(()=>{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 eb(e){D0=e}let HN=1;function w2(e,t){const n=tb(e,t);return n===void 0&&be(30,t),n}function tb(e,t){return e._nodes.get(t)}const VN=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function S2(e){return Et(xu(e))}function nb(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 Nd(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!nb(t)&&C2(t)===e}catch{return!1}}function rb(e){return e instanceof El}function C2(e){let t=e;for(;t!=null;){const n=vm(t);if(rb(n))return n;t=Ld(t)}return null}function vm(e){return e?e.__lexicalEditor:null}function dl(e){return o2(e)||e.isToken()}function Di(e){return dl(e)||e.isSegmented()}function na(e){return Lu(e)&&e.nodeType===3}function A2(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 Nh(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 E2(e){return Oe(e)||fl(e)||Et(e)}function KN(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(),d2();const r=jt(),o=os(),i=""+HN++;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 Lh(e){d2(),Ih(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 Od()?null:jt()._compositionKey}function bn(e,t){const n=(t||os())._nodeMap.get(e);return n===void 0?null:n}function k2(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=k2(n,t);if(r!==null)return r;n=Ld(n)}return null}function T2(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Jw(e){return e.read(()=>Xt().getTextContent())}function Xt(){return _2(os())}function _2(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=Ld(i)}return null})(e,t);return n===null?e===t.getRootElement()?bn("root"):null:bn(n)}function R2(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ob(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function P2(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function I2(e){return na(e)?e.nodeValue:null}function ib(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=I2(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&&ab(u,c,i,s,e)}}}function ab(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),Rd||Ru||Pd)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 qw(i,c,C);if(C.setTextNodeRange(i,n,i,r),i.isSegmented()){const A=In(i.getTextContent());i.replace(A),i=A}qw(i,c,C)}}}function qw(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 Bp(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function YN(e,t){return Bp(e,t,"altKey")&&Bp(e,t,"ctrlKey")&&Bp(e,t,"shiftKey")&&Bp(e,t,"metaKey")}function Nt(e,t,n){return YN(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Ni={ctrlKey:!Oo,metaKey:Oo},e1={altKey:Oo,ctrlKey:!Oo};function t1(e){return e.key==="Backspace"}function n1(e){return Nt(e,"a",Ni)}function GN(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=bE(o);return n[t]=i,i}return o}function sb(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 r1(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 r1(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?r1(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function O2(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=ob(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 Ld(e){const t=e.assignedSlot||e.parentElement;return B0(t)?t.host:t}function M2(e){return A2(e)?e:Gn(e)?e.ownerDocument:null}function QN(e){tr(),jt()._updateTags.add(e)}function ZN(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 lb(e){const t=M2(e);return t?t.defaultView:null}function mo(e){const t=e._window;return t===null&&be(78),t}function XN(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=tb(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 JN(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 qN(e){const t=lb(e);return t?t.getSelection():null}function N2(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 Dh(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 cb(){return jt()}const o1=new WeakMap,eL=new Map;function i1(e){if(!e._readOnly&&e.isEmpty())return eL;e._readOnly||be(192);let t=o1.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),o1.set(e,t)),t}function L2(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function tL(e){return(t=L2(e))[t2]=!0,t;var t}function nL(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function rL(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=yw in e.prototype?e.prototype[yw]():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===m2||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=>(eb(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},oL={next:"previous",previous:"next"};class ub{constructor(t){ce(this,"origin");this.origin=t}[Symbol.iterator](){return D2({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 ub{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(fb(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 iL={root:cn,shadowRoot:Dr};function Du(e){return oL[e]}function fb(e,t="root"){return iL[t](e)?null:e}class Tl extends ub{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(fb(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 ub{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(fb(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 aL={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}}},sL={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}}},lL={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 sL[t](e):null}function Rl(e,t,n){return e?new aL[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"&&vE(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function a1(e,t){return new uL(e,t)}function Do(e,t){return ae(e)?new lL[t](e):null}function cL(e){return e&&e.getChildCaret()||e}function db(e){return e&&cL(e.getAdjacentCaret())}class pb{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 pb(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 a1(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[a1(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:db(s)||s.getParentCaret(t);return D2({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 uL{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 hb(e){return qa(e,rr(Xt(),e.direction))}function fL(e){return qa(e,e)}function qa(e,t){return e.direction!==t.direction&&be(265),new pb(e,t,e.direction)}function D2(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 F2(e,t){const n=rh(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 j2(n)}}function j2(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 Up(e,t){return t.is(e)}function s1(e){return ae(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function rh(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=s1(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=s1(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Up(e,r)||be(276),{commonAncestor:r,type:"ancestor"}):o===null?(Up(t,r)||be(277),{commonAncestor:r,type:"descendant"}):((ae(i)||Up(e,i))&&(ae(o)||Up(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=JN(e.key);return n==="text"?(Oe(i)||be(266,i.getType(),r),Rl(i,t,o)):(ae(i)||be(267,i.getType(),r),hL(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 dL(e){const t=Ie(),n=ge(t)?t:l2();return oh(n,e),Cr(n),n}function oh(e,t){Pl(e.anchor,t.anchor),Pl(e.focus,t.focus)}function l1(e){const{anchor:t,focus:n}=e,r=Qi(t,"next"),o=Qi(n,"next"),i=F2(r,o)<=0?"next":"previous";return qa(Su(r,i),Su(o,i))}function mb(e){const{direction:t,origin:n}=e,r=rr(n,Du(t)).getNodeAtCaret();return r?rr(r,t):Do(n.getParentOrThrow(),t)}function c1(e,t="root"){const n=[e];for(let r=ci(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(mb(r));return n}function rv(e){return!!e&&e.origin.isAttached()}function pL(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=B2(e,r),s=c1(i.anchor,n),c=c1(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=mb(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 D=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)}D.is(s[0].origin)&&(s[0]=O),D.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 D=R.getParents().reverse();D.push(R);const M=Math.min(O.length,D.length);let U;for(U=0;U<M&&O[U]===D[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(D,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 fL(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=db(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 z2(e){return Ka(e)&&e.offset!==Ya(e.origin,e.direction)}function Su(e,t){return e.direction===t?e:e.getFlipped()}function B2(e,t){return e.direction===t?e:qa(Su(e.focus,t),Su(e.anchor,t))}function hL(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 mL(...e){return e}function gL(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const U2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,vL=U2?Y.useLayoutEffect:Y.useEffect,Wp={tag:ul};function yL({initialConfig:e,children:t}){const n=Y.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:c,html:u}=e,f=IM(null,r),m=x2({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=U2?document.activeElement:null;(Ie()!==null||A!==null&&A===h.getRootElement())&&C.select()}},Wp);else if(v!==null)switch(typeof v){case"string":{const w=h.parseEditorState(v);h.setEditorState(w,Wp);break}case"object":h.setEditorState(v,Wp);break;case"function":h.update(()=>{Xt().isEmpty()&&v(h)},Wp)}}})(m,c),[m,f]},[]);return vL(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),L.jsx(gE.Provider,{value:n,children:t})}const bL=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function xL(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function wL(){return(function(e){const[t]=ir(),n=Y.useMemo(()=>e(t),[t,e]),[r,o]=Y.useState(()=>n.initialValueFn()),i=Y.useRef(r);return bL(()=>{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})(xL)}function SL(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 W2(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 u1(e){let t=W0.get(e);return t===void 0&&(t=W2(e),W0.set(e,t)),t}function $2(e){const t=cb().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function H2(e){return $2(cn(e)?e:e.getParentOrThrow())}function f1(e){const t=H2(e);return t!==null&&t.direction==="rtl"}function V2(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=tL(t)),t.__text=R)}}return t}function d1(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return ae(t)||SL(177),e.offset===t.getChildrenSize()}function CL(e){const t=e.getStyle(),n=W2(t);W0.set(t,n)}function K2(e){const t=Y2(e);return t!==null&&t.writingMode==="vertical-rl"}function Y2(e){const t=e.anchor.getNode();return ae(t)?$2(t):H2(t)}function p1(e,t){let n=K2(e)?!t:t;G2(e)&&(n=!n);const r=Qi(e.focus,n?"previous":"next");if(z2(r))return!1;for(const o of hb(r)){if(ci(o))return!o.origin.isInline();if(!ae(o.origin)){if(Et(o.origin))return!0;break}}return!1}function AL(e,t,n,r){e.modify(t?"extend":"move",n,r)}function G2(e){const t=Y2(e);return t!==null&&t.direction==="rtl"}function h1(e,t,n){const r=G2(e);let o;o=K2(e)||r?!n:n,AL(e,t,o,"character")}function EL(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 Q2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,kL=Q2&&"documentMode"in document?document.documentMode:null;!(!Q2||!("InputEvent"in window)||kL)&&"getTargetRanges"in new window.InputEvent("input");function Z2(...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 gb(e,...t){const n=Z2(...t);n.length>0&&e.classList.add(...n)}function X2(e,...t){const n=Z2(...t);n.length>0&&e.classList.remove(...n)}function TL(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function _L(e){const t=Ln(e,n=>ae(n)&&!n.isInline());return ae(t)||EL(4,e.__key),t}function $a(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const RL=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)&&J2(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if($0=0,Ga--,t)throw e}function PL(e){if(Ga>0)return e();Ga++;try{return e()}finally{wm()}}let Pt,Zf;function m1(e){const t=Pt;Pt=void 0;try{return e()}finally{Pt=t}}let Ga=0,$0=0,ih=0;function g1(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 IL(e,t){return new yr(e,t)}function J2(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 v1(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 q2(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=ih-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 ek(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,vb(e),r}finally{Pt=n,wm()}}}function vb(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ek(e)}function OL(e){if(Pt!==this)throw new Error("Out-of-order effect");q2(this),Pt=e,this.f&=-2,8&this.f&&vb(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 tk(e,t={}){const n={};for(const r in e){const o=t[r],i=IL(o===void 0?e[r]:o);n[r]=i}return n}yr.prototype.brand=RL,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:m1(()=>{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&&m1(()=>{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=g1(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++,ih++,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===ih))return!0;if(this.g=ih,this.f|=1,this.i>0&&!J2(this))return this.f&=-2,!0;const e=Pt;try{v1(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,q2(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=g1(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,ek(this),v1(this),Ga++;const e=Pt;return Pt=this,OL.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||vb(this)},$c.prototype.dispose=function(){this.d()};function ML(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 nk(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]=nk(n[o],r[o]);return e}return t}const yb=0,H0=1,rk=2,ov=3,$p=4,jc=5,iv=6,Mf=7;function av(e){return e.id===yb}function ok(e){return e.id===rk}function NL(e){return(function(t){return t.id===H0})(e)||Ut(305,String(e.id),String(H0)),Object.assign(e,{id:rk})}const LL=new Set;class DL{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:yb}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):gL;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;ok(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:$p,initResult:u,registerState:f})})(i,s,o)}build(t){const n=this.state;let r;n.id!==$p&&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>=$p})(t)||Ut(313,String(t.id),String($p)),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)||LL}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 y1={tag:ul};function FL(){const e=Xt();e.isEmpty()&&e.append(Sr())}const jL={config:{setOptions:y1,updateOptions:y1},init:({$initialEditorState:e=FL})=>({$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(BN(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]},b1=Symbol.for("@lexical/extension/LexicalBuilder");function x1(){}function zL(e){throw e}function Hp(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=[Hp(jL)];for(const r of t)n.push(Hp(r));return new nu(n)}static maybeFromEditor(t){const n=t[b1];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(x2({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[b1]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=x1;function n(){try{t()}finally{t=x1}}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=Hp(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 DL(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=Hp(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(ok(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(yb)),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=NL(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 ML(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&&nk(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=zL),t}}function BL(e,t){const n=nu.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const UL={name:"@lexical/react/ReactProvider"};function WL(){return Xt().getTextContent()}function $L(e,t=!0){if(e)return!1;let n=WL();return t&&(n=n.trim()),n===""}function HL(e){if(!$L(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(!qy(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 ik(e){return()=>HL(e)}function VL(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 ak(e,t){const n=A2(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!ck.has(i.nodeName)){const s=uk(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Jy&&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 sk(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++)lk(e,r[o],n,t);return n.innerHTML}function lk(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=V2(r,t,"clone"));const c=ae(s)?s.getChildren():[],u=tb(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=lk(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 ck=new Set(["STYLE","SCRIPT"]);function uk(e,t,n,r,o=new Map,i){let s=[];if(ck.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 D=O(C);D!==null&&(R===null||(R.priority||0)<=(D.priority||0))&&(R=D)}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(...uk(h[C],t,n,w,new Map(o),c));return m!=null&&(v=m(v)),Dh(e)&&(v=KL(e,v,w?()=>{const C=new Jy;return n.push(C),C}:Sr)),c==null?v.length>0?s=s.concat(v):Dh(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 KL(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 Fh(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 YL(e,t=Ie()){return t==null&&Fh(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?"":sk(e,t)}function GL(e,t=Ie()){return t==null&&Fh(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(QL(e,t))}function w1(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 S1(n,ZL(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 S1(n,ak(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
710
|
`||m===`\r
|
|
715
|
-
`?f.insertParagraph():m===" "?f.insertNodes([Od()]):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()&&jh(58,h.name),ae(f)){const v=m.children;Array.isArray(v)||jh(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&&!Ld(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 Kp(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([Od()]),!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]=Kp(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]=Kp(t),r=Ie();return!(n&&!ge(r))},lt),e.registerCommand(VE,t=>{const[n]=Kp(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]=Kp(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=L.jsx(r,{onError:v=>n._onError(v),children:L.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:L.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),L.jsxs(L.Fragment,{children:[e,L.jsx(eL,{content:t}),L.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 D=E._nodeMap,M=[];for(const U of R){const j=D.get(U);j!==void 0&&M.push(j)}for(const[U,j]of O){if(!j)continue;const $=D.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 D=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(D)||!Oe(M)||D.__parent!==M.__parent)&&JSON.stringify(R.read(()=>D.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(Fp,!0)),u.length===0&&i.dispatchCommand(jp,!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(jp,!0));const m=c.pop();c.length===0&&i.dispatchCommand(Fp,!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(Fp,!1),e.dispatchCommand(jp,!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(Fp,!1)),m!==null&&(v.push({...m}),e.dispatchCommand(jp,!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":D,...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]),L.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":D,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 L.jsxs(L.Fragment,{children:[L.jsx(iL,{editor:o,...r,ref:t}),n!=null&&L.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:L.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 L.jsx(dL,{fallback:L.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 zh(...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(...zh(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=zh(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 Fd 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(...zh(f));for(let C=0;C<s.length;C++)C!==u&&o.push(n.__tag+C)}if(h!==void 0){const C=zh(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 Fd(e,t))}function at(e){return e instanceof Fd}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(Fd,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())),D=E.findLastIndex(j=>x.has(j.getKey())),M=O===0,U=D===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(D+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 D=O.anchor.getNode(),M=null;for(;D;){if(at(D)){const U=D.getListType();M=U==="bullet"||U==="number"?U:null;break}if(At(D)){D=D.getParent();continue}D=D.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(D=>{R.hasFormat(D)&&s.dispatchCommand(ii,D)})})};return L.jsxs("div",{className:gt("flex items-center w-full",r?"justify-between":"justify-end"),children:[L.jsxs("div",{className:"flex items-center gap-1",children:[L.jsx(m0,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",children:L.jsx(ot,{icon:DL})}),children:L.jsxs("ul",{className:"flex items-start flex-col",children:[L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:_L,className:"mr-2"}),"Bold"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:IL,className:"mr-2"}),"Italic"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:TL,className:"mr-2"}),"Underline"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:kL,className:"mr-2"}),"Strikethrough"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:ML,className:"mr-2"}),"Monospace"]})}),L.jsx("hr",{className:"w-full border-gray-200"}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:PL,className:"mr-2"}),"Clear formatting"]})})]})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:A,children:L.jsx(ot,{icon:FL})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:x,children:L.jsx(ot,{icon:OL})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(md,"https://")},children:L.jsx(ot,{icon:LL})}),i&&L.jsxs(L.Fragment,{children:[L.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:L.jsx(ot,{icon:RL})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var R;(R=v.current)==null||R.click()},children:L.jsx(ot,{icon:NL})})]}),n&&L.jsx(m0,{placement:"top-end",title:"comment type menu",trigger:L.jsx(Ht,{category:"link",size:"smallCollapse",className:`${w.iconColor} border-l-1 border-gray-200 rounded-none`,children:L.jsx(ot,{icon:w.icon})}),children:L.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:kk.map(R=>L.jsx("li",{children:L.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:L.jsx(ot,{icon:R.icon})})},R.type))})})]}),r,L.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))}}),L.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([Fd,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 Bh(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=Bh(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 D=e.getRootElement();if(x!==null&&D!==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&&D.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")&&(D!==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=Bh(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 L.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?L.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[L.jsx(DC,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:f,onChange:x=>{m(x.target.value)},onKeyDown:x=>{C(x)}}),L.jsxs("div",{className:"flex justify-center items-center gap-4",children:[L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{i(!1)},children:L.jsx(ot,{icon:qh})}),L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:A,children:L.jsx(ot,{icon:$C})})]})]}):L.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[L.jsx("a",{href:U1(c),target:"_blank",rel:"noopener noreferrer",children:c}),L.jsxs("div",{className:"flex items-center gap-4",children:[L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{m(c),i(!0)},children:L.jsx(ot,{icon:dR})}),L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>e.dispatchCommand(md,null),children:L.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=Bh(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=Bh(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(L.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})=>L.jsxs("div",{className:"relative",children:[L.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),L.jsx(Ht,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:L.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..."}}},sh=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 L.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[L.jsx(Ht,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:L.jsx(ot,{icon:WC})}),L.jsxs("div",{className:"flex items-center justify-center mx-2",children:[L.jsx("span",{className:"text-primary-600 my-2",children:L.jsx(ot,{icon:o,size:"3x",className:"text-primary-600"})}),L.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 L.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:[Fd,Fu,Ll],onError:M=>{console.error(M)}},[A,x]=Y.useState(null),[E,R]=Y.useState(!1),O=M=>{M!==null&&x(M)},D=wb[s];return L.jsx("div",{className:r,children:L.jsxs(l5,{initialConfig:C,children:[L.jsxs("div",{className:"relative",children:[L.jsx(q5,{contentEditable:L.jsx("div",{ref:O,children:L.jsx(aL,{className:gt("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",D.bg,D.border,D.fontColor,n)})}),placeholder:L.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:hL}),L.jsx(HL,{}),L.jsx(VL,{}),A&&L.jsx(QL,{anchorElem:A,isLinkEditMode:E,setIsLinkEditMode:R}),L.jsx(rL,{}),L.jsx(oD,{initialValue:o}),L.jsx(iD,{onChange:i}),L.jsx(sD,{onSubmit:v}),L.jsx(nD,{clearKey:t}),L.jsx(aD,{onAddAttachments:m}),L.jsx(rD,{isOpen:w})]}),e&&e.length>0&&L.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(M=>xb(M.type)?L.jsx(ZL,{url:M.url,onDelete:()=>h==null?void 0:h(M.originFile)},M.originFile.name):L.jsx(tD,{type:M.type,label:M.name,onRemoveFile:()=>h==null?void 0:h(M.originFile)},M.originFile.name))}),L.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:L.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 Yp=Er(Array.prototype.forEach),fD=Er(Array.prototype.lastIndexOf),H1=Er(Array.prototype.pop),Nf=Er(Array.prototype.push),dD=Er(Array.prototype.splice),lh=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]:lh;$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"]),Gp=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 D,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,...Gp]);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:lh,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,Gp)),Jt.svgFilters===!0&&(ft(re,mv),ft(me,vv),ft(me,Gp)),Jt.mathMl===!0&&(ft(re,gv),ft(me,G1),ft(me,Gp))),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.');D=K.TRUSTED_TYPES_POLICY,M=D.createHTML("")}else D===void 0&&(D=_D(w,o)),D!==null&&typeof M=="string"&&(M=D.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=lh(K.tagName),St=lh(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=D?D.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){Yp(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,Yp([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&&Yp([pe,ie,se],rn=>{Ct=Lf(Ct,rn," ")});const Bn=vt(K.nodeName);if(!zn(Bn,hn,Ct)){sr(qe,K);continue}if(D&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Ot)switch(w.getAttributeType(Bn,hn)){case"TrustedHTML":{Ct=D.createHTML(Ct);break}case"TrustedScriptURL":{Ct=D.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 D&&wn?D.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&&Yp([pe,ie,se],Qt=>{Ot=Lf(Ot,Qt," ")}),D&&wn?D.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 ch(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const RD=({asset:e,onSetActiveSrc:t})=>L.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[L.jsx("img",{src:sh(e),onClick:()=>t(sh(e)),onKeyDown:n=>{n.key==="Enter"&&t(sh(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&L.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:L.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:L.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 L.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&L.jsx("div",{className:"flex items-center justify-center",children:L.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),L.jsx(ot,{icon:n,size:"lg",className:"text-primary-600"}),L.jsx("a",{href:sh(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,D]=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 L.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[L.jsx(yM,{alt:t}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsxs("div",{className:`border ${h.border} rounded-sm ${h.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[L.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:L.jsxs("div",{className:"w-full",children:[L.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[L.jsxs("div",{children:[L.jsx(ot,{icon:h.icon,size:"lg",className:`mr-2 ${h.iconColor}`}),L.jsx("span",{className:`font-semibold text-sm ${h.text}`,children:t})]}),L.jsx(xM,{commentType:e,taskVerified:f,isUsernameAuthor:n.trim()===t.trim(),onEdit:M,onSaveCommentType:j,onDelete:i})]}),w?L.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:L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx(Ht,{category:"outline",size:"smallCollapse",color:"secondary",onClick:$,title:"Cancel edit",children:"Cancel"}),L.jsx(Ht,{category:"solid",size:"smallCollapse",color:"primary",onClick:U,title:"Save edit",disabled:ch(A),children:"Save"})]})}):L.jsx("div",{className:`text-sm ${h.text}`,dangerouslySetInnerHTML:{__html:yv(r)}})]})}),c&&u&&(u==null?void 0:u.length)>0&&L.jsx("div",{className:`${h.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:u.map(H=>L.jsx(Y.Fragment,{children:xb(H.mimeType)?L.jsx(RD,{asset:H,onSetActiveSrc:D}):L.jsx(PD,{asset:H})},H.assetId))})]}),L.jsxs("div",{className:"flex gap-2 my-1",children:[o&&L.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:v}),f&&L.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[L.jsx(ot,{icon:zC}),"Comment Required"]})]})]}),L.jsx(q6,{plugins:[gM],open:!!O,zoom:{maxZoomPixelRatio:2},close:()=>D(""),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>`},D=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&&ch(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&&ch(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]),L.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:[L.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),L.jsx(ot,{icon:UC,className:"size-4 text-gray-300"})]}),L.jsx(Ht,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:L.jsx(ot,{icon:qh,className:"size-4 text-gray-300"})})]}),L.jsxs("div",{ref:x,className:"flex flex-col flex-1 overflow-y-auto",children:[L.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&L.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(G=>L.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},G))}),(e==null?void 0:e.length)>0&&!i&&e.map(G=>L.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&&L.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[L.jsx("img",{src:OD,className:"opacity-70",alt:"Empty"}),L.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),L.jsx(wk,{attachments:C,onChange:f,containerClassName:"bg-white",clearKey:v,commentType:m,onCommentTypeChange:U,onAddAttachments:D,onRemoveAttachment:M,onSubmit:j,isOpen:n,actions:L.jsx(Ht,{category:"link",size:"normalCollapse",title:"Send comment",onClick:j,disabled:ch(u)&&C.length===0,children:L.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=Uh({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 L.jsxs(q0.Provider,{value:{comments:c,openTaskDetails:n,setOpenTaskDetails:r,prefetchQuery:f},children:[t,ui.createPortal(L.jsxs(wd.div,{style:{position:"relative",zIndex:2147483646},children:[L.jsx("style",{children:Sd}),L.jsx("div",{className:"confidence-playbook",children:L.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 D=>{try{v(!0),await r(D)}finally{v(!1)}};if(o==="list"){const D=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 L.jsxs("div",{className:gt("flex flex-col"),children:[L.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:[L.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),L.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}),L.jsx(MO,{taskVerified:e.taskVerified,verificationType:R,title:e.workflowStatus,variant:D,transitions:M,onClick:U=>{if(U===Yc.ADD_COMMENT){A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(U)}}),L.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)&&L.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:L.jsx(Xx,{description:(w==null?void 0:w.description)||""})})]})}return L.jsxs("div",{className:Jf("flex items-stretch rounded-sm overflow-hidden border",$D[e.workflowStatus]),children:[L.jsx(FO,{playbookType:n,status:e.workflowStatus,step:t}),L.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&L.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:L.jsx(zO,{status:e.workflowStatus})}),L.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[L.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?L.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[L.jsx(ot,{icon:mR,className:"size-4"}),L.jsxs("div",{children:[L.jsx("span",{className:"font-medium",children:R===Li.PHOTO?"Photo":R===Li.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):L.jsx(L.Fragment,{})]}),(w==null?void 0:w.description)&&L.jsx("div",{className:gt(!s&&"hidden"),children:L.jsx(Xx,{description:(w==null?void 0:w.description)||""})}),(E.length>0||e.hasDescription)&&L.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[L.jsx("div",{className:"flex-1",children:L.jsx(KI,{buttons:E,onButtonClick:O,disabled:h})}),L.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&&L.jsx(Ht,{size:"smallCollapse",onMouseOver:C,category:"link",onClick:()=>{c()},title:s?"Hide task description":"Show task description",children:L.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 L.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:L.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 L.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 L.jsx("div",{className:"confidence-playbook",children:L.jsx(_k,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},KD=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>L.jsxs("div",{className:gt("w-full p-4",e),children:[n&&L.jsxs("div",{className:gt(r==="card"&&"mb-4"),children:[L.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),L.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,D;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 L.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)&&L.jsx("div",{onClick:h,className:gt("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((D=r==null?void 0:r.whiteLabel)==null?void 0:D.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:L.jsx("img",{src:yS,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),L.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:[L.jsx(Tk,{title:o,className:gt("top-0 sticky z-2"),playbookStyle:r,ref:s}),L.jsx(KD,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((M,U)=>{var j;return L.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?L.jsx(as,{playbookInstanceId:s,playbookMode:n,playbookStyle:r}):L.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 L.jsxs(L.Fragment,{children:[L.jsxs(wd.div,{children:[L.jsx(aR,{playbookId:e,disabled:!!i,onInitiated:s,btnLabel:r,btnColor:o}),L.jsx("style",{type:"text/css",children:Sd})]}),i&&L.jsx(as,{playbookInstanceId:i,playbookMode:t,playbookStyle:n})]})},as=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>L.jsx(IS,{children:L.jsx(WD,{playbookInstanceId:e,children:L.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(L.jsxs(wd.div,{style:{position:"relative",zIndex:2147483646},children:[L.jsx("style",{children:Sd}),L.jsx(as,{...e})]}),document.body),QD=e=>ui.createPortal(L.jsxs(wd.div,{style:{position:"relative",zIndex:2147483646},children:[L.jsx("style",{children:Sd}),L.jsx(as.AutoInstantiated,{...e})]}),document.body);Rk.AutoInstantiated=QD;exports.ConfidencePlaybook=Rk;
|
|
711
|
+
`?f.insertParagraph():m===" "?f.insertNodes([Id()]):f.insertText(m)}}}else t.insertRawText(s)}function S1(e,t,n){e.dispatchCommand(oN,{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 fk(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=V2(t,s,"clone"));const c=ae(s)?s.getChildren():[],u=(function(f){const m=f.exportJSON(),h=f.constructor;if(m.type!==h.getType()&&Fh(58,h.name),ae(f)){const v=m.children;Array.isArray(v)||Fh(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=fk(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 QL(e,t){const n=[],r=Xt().getChildren();for(let o=0;o<r.length;o++)fk(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function ZL(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=zN(r);Oe(o)&&CL(o),t.push(o)}return t}let zc=null;async function C1(e,t,n){if(zc!==null)return!1;if(t!==null)return new Promise((f,m)=>{e.update(()=>{f(A1(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(A1(e,v,n))),!0),y2);zc=o.setTimeout(()=>{h(),zc=null,f(!1)},50),i.execCommand("copy"),c.remove()})}function A1(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&&!Nd(e,s,c))return!1;n=XL(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(JL(r,n),!0)}const dk=[["text/html",YL],["application/x-lexical-editor",GL]];function XL(e=Ie()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=cb();for(const[r,o]of dk){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function JL(e,t){for(const[n]of dk)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function E1(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,qL=Nl&&"documentMode"in document?document.documentMode:null,e5=Nl&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),t5=!(!Nl||!("InputEvent"in window)||qL)&&"getTargetRanges"in new window.InputEvent("input"),n5=Nl&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),k1=Nl&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,r5=Nl&&/^(?=.*Chrome).*/i.test(navigator.userAgent),o5=Nl&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&e5&&!r5,T1=Ye("DRAG_DROP_PASTE_FILE");function Vp(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 _1(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 R1(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 i5(e){return Fo(e.registerCommand($y,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)w1(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(cN,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(sN,()=>(f2([Id()]),!0),lt),e.registerCommand(lN,()=>_1(t=>{const n=t.getIndent();t.setIndent(n+1)}),lt),e.registerCommand(_w,()=>_1(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-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].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(zE,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(FE,t=>{const n=Ie();if(On(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),f1(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!ge(n))return!1;if(p1(n,!0)){const r=t.shiftKey;return t.preventDefault(),h1(n,r,!0),!0}return!1},lt),e.registerCommand(DE,t=>{const n=Ie();if(On(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),f1(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!ge(n))return!1;const r=t.shiftKey;return!!p1(n,!1)&&(t.preventDefault(),h1(n,r,!1),!0)},lt),e.registerCommand(UE,t=>{if(R1(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=_L(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(_w,void 0);if(k1&&navigator.language==="ko-KR")return!1}else if(!On(n))return!1;return t.preventDefault(),e.dispatchCommand(cl,!0)},lt),e.registerCommand(WE,t=>{if(R1(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((k1||n5||o5)&&t5)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Jc,!1)}return e.dispatchCommand(ld,void 0)},lt),e.registerCommand(Ky,()=>{const t=Ie();return!!ge(t)&&(e.blur(),!0)},lt),e.registerCommand(HE,t=>{const[,n]=Vp(t);if(n.length>0){const o=E1(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,c=xu(s);if(c!==null){const u=l2();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(T1,n)}return t.preventDefault(),!0}const r=Ie();return!!ge(r)},lt),e.registerCommand(VE,t=>{const[n]=Vp(t),r=Ie();return!(n&&!ge(r))},lt),e.registerCommand(KE,t=>{const[n]=Vp(t),r=Ie();if(n&&!ge(r))return!1;const o=E1(t.clientX,t.clientY);if(o!==null){const i=xu(o.node);Et(i)&&t.preventDefault()}return!0},lt),e.registerCommand(E0,()=>(GN(),!0),lt),e.registerCommand(hm,t=>(C1(e,$a(t,ClipboardEvent)?t:null),!0),lt),e.registerCommand(Yy,t=>((async function(n,r){await C1(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]=Vp(t);return n.length>0&&!r?(e.dispatchCommand(T1,n),!0):Lu(t.target)&&nb(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&&w1(c,s,i)},{tag:CN})})(t,e),!0)},lt),e.registerCommand(BE,t=>{const n=Ie();return ge(n)&&lv(n),!1},lt),e.registerCommand($E,t=>{const n=Ie();return ge(n)&&lv(n),!1},lt))}function a5(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 bb=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function s5({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=Y.useState(()=>n.getDecorators());return bb(()=>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=L.jsx(r,{onError:v=>n._onError(v),children:L.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 l5({editor:e,ErrorBoundary:t}){return(function(n){const r=nu.maybeFromEditor(n);if(r&&r.hasExtensionByName(UL.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&a5(320,o);return!0}return!1})(e)?null:L.jsx(s5,{editor:e,ErrorBoundary:t})}function P1(e){return e.getEditorState().read(ik(e.isComposing()))}function c5({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ir();return(function(o){bb(()=>Fo(i5(o),VL(o)),[o])})(r),L.jsxs(L.Fragment,{children:[e,L.jsx(u5,{content:t}),L.jsx(l5,{editor:r,ErrorBoundary:n})]})}function u5({content:e}){const[t]=ir(),n=(function(o){const[i,s]=Y.useState(()=>P1(o));return bb(()=>{function c(){const u=P1(o);s(u)}return c(),Fo(o.registerUpdateListener(()=>{c()}),o.registerEditableListener(()=>{c()}))},[o]),i})(t),r=wL();return n?typeof e=="function"?e(r):e:null}function f5(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 D=E._nodeMap,M=[];for(const U of R){const j=D.get(U);j!==void 0&&M.push(j)}for(const[U,j]of O){if(!j)continue;const $=D.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 d5(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=f5(o,i,c,u,e.isComposing()),v=(()=>{const w=s===null||s.editor===e,C=f.has(SN);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 D=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(D)||!Oe(M)||D.__parent!==M.__parent)&&JSON.stringify(R.read(()=>D.exportJSON()))===JSON.stringify(O.read(()=>M.exportJSON()))})(Array.from(c)[0],o,i)?0:1})();return n=m,r=h,v}}function I1(e){e.undoStack=[],e.redoStack=[],e.current=null}function pk(e,t,n){const r=d5(e,n);return Fo(e.registerCommand(Hy,()=>((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(Dp,!0)),u.length===0&&i.dispatchCommand(Fp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:M0})}})(e,t),!0),lt),e.registerCommand(Vy,()=>((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(Fp,!0));const m=c.pop();c.length===0&&i.dispatchCommand(Dp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:M0})}})(e,t),!0),lt),e.registerCommand(fN,()=>(I1(t),!1),lt),e.registerCommand(dN,()=>(I1(t),e.dispatchCommand(Dp,!1),e.dispatchCommand(Fp,!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(Dp,!1)),m!==null&&(v.push({...m}),e.dispatchCommand(Fp,!0));else if(C===2)return;t.current={editor:e,editorState:i}}))}function hk(){return{current:null,redoStack:[],undoStack:[]}}const cv={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>tk({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:hk,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:pk(e,r.historyState.value,r.delay))}};mL(cv,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function p5({delay:e,externalHistoryState:t}){const[n]=ir();return(function(r,o,i=1e3){const s=Y.useMemo(()=>o||hk(),[o]);Y.useEffect(()=>pk(r,s,i),[i,r,s])})(n,t,e),null}const mk=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function h5({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":D,...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 mk(()=>($(e.isEditable()),e.registerEditableListener(q=>{$(q)})),[e]),L.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":D,id:A,ref:G,role:x,spellCheck:E,style:R,tabIndex:O,...M})}const m5=Y.forwardRef(h5);function O1(e){return e.getEditorState().read(ik(e.isComposing()))}const g5=Y.forwardRef(v5);function v5(e,t){const{placeholder:n,...r}=e,[o]=ir();return L.jsxs(L.Fragment,{children:[L.jsx(m5,{editor:o,...r,ref:t}),n!=null&&L.jsx(y5,{editor:o,content:n})]})}function y5({content:e,editor:t}){const n=(function(s){const[c,u]=Y.useState(()=>O1(s));return mk(()=>{function f(){const m=O1(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:L.jsx("div",{"aria-hidden":!0,children:i})}const b5=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function x5({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=ir();return b5(()=>{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 w5=Y.createContext(null),uv={didCatch:!1,error:null};class S5 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&&C5(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(w5.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}function C5(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function A5({children:e,onError:t}){return L.jsx(S5,{fallback:L.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const E5={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 gk(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(gk(i)):t.push(o)}return t}function ni(e){return At(e)&&at(e.getFirstChild())}function M1(e){return fo().append(e)}function vk(e,t){return At(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function N1(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(vk(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())){L1(i,e);continue}let s=E2(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),L1(s,e);break}s=u}}}}}function Il(e,t){e.splice(e.getChildrenSize(),0,t)}function L1(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 xb(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&ni(n)&&ni(r)&&(xb(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function k5(){const e=Ie();if(ge(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(vk(r,n))t.add(K0(r));else for(let o=0;o<n.length;o++){const i=n[o];if(E2(i)){const s=TL(i,Fu);s!=null&&t.add(K0(s))}}for(const o of t){let i=o;const s=gk(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 yk(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 T5(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 _5(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 R5(){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 jh(...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:P5,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(...jh(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=jh(C);f.getChildren().some(x=>at(x))?m.push(...A):h.push(...A)}h.length>0&&X2(c,...h),m.length>0&&gb(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=u1(u.__textStyle);for(const h in m)c.style.setProperty(`--listitem-marker-${h}`,m[h]);if(f)for(const h in u1(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)&&(xb(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?(T5(this),r++):(_5(this),r--);return this}canInsertAfter(n){return At(n)}canReplaceWith(n){return At(n)}canMergeWith(n){return At(n)||qy(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 P5(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return D1(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 D1(n.children[0])}const t=e.getAttribute("aria-checked");return{node:fo(t==="true"||t!=="false"&&void 0)}}function D1(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 Dd extends pi{constructor(n="number",r=1,o){super(o);ce(this,"__tag");ce(this,"__start");ce(this,"__listType");const i=O5[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()&&xb(r,o)})(n),yk(n)},extends:pi,importDOM:{ol:()=>({conversion:j1,priority:0}),ul:()=>({conversion:j1,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,F1(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(F1(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 F1(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(...jh(f));for(let C=0;C<s.length;C++)C!==u&&o.push(n.__tag+C)}if(h!==void 0){const C=jh(h);c>1?r.push(...C):o.push(...C)}}o.length>0&&X2(e,...o),r.length>0&&gb(e,...r)}function I5(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(M1(i))})}else t.push(M1(r))}return t}function j1(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:I5,node:n}}const O5={ol:"number",ul:"bullet"};function Gr(e="number",t=1){return is(new Dd(e,t))}function at(e){return e instanceof Dd}const M5=Ye("UPDATE_LIST_START_COMMAND"),bk=Ye("INSERT_UNORDERED_LIST_COMMAND"),xk=Ye("INSERT_ORDERED_LIST_COMMAND"),Y0=Ye("REMOVE_LIST_COMMAND");function N5(e){return Fo(e.registerCommand(xk,()=>(N1("number"),!0),$i),e.registerCommand(M5,t=>{const{listNodeKey:n,newStart:r}=t,o=bn(n);return!!at(o)&&(o.getListType()==="number"&&(o.setStart(r),yk(o)),!0)},$i),e.registerCommand(bk,()=>(N1("bullet"),!0),$i),e.registerCommand(Y0,()=>(k5(),!0),$i),e.registerCommand(ld,()=>R5(),$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 L5(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(Dd,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)}}}})}const D5=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),gb(r,n.theme.link),r}updateLinkDOM(n,r,o){if(N2(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:F5,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=U1(n);try{const r=new URL(U1(n));if(!D5.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 F5(e){let t=null;if(N2(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 z1().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=z1(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function z1(e="",t){return is(new Sm(e,t))}function Xs(e){return e instanceof Sm}const md=Ye("TOGGLE_LINK_COMMAND");function B1(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())),D=E.findLastIndex(j=>x.has(j.getKey())),M=O===0,U=D===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(D+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=B1(v.anchor,w?-1:0),A=B1(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 j5=/^\+?[0-9\s()-]{5,}$/;function U1(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:j5.test(e)?`tel:${e}`:`https://${e}`}function z5(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 B5({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=Sb[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 D=O.anchor.getNode(),M=null;for(;D;){if(at(D)){const U=D.getListType();M=U==="bullet"||U==="number"?U:null;break}if(At(D)){D=D.getParent();continue}D=D.getParent()}m(M)})}),[s]);const C=R=>{s.dispatchCommand(ii,R)},A=()=>{f!=="bullet"?s.dispatchCommand(bk,void 0):s.dispatchCommand(Y0,void 0)},x=()=>{f!=="number"?s.dispatchCommand(xk,void 0):s.dispatchCommand(Y0,void 0)},E=()=>{s.update(()=>{const R=Ie();if(!ge(R))return;["bold","italic","underline","strikethrough","code"].forEach(D=>{R.hasFormat(D)&&s.dispatchCommand(ii,D)})})};return L.jsxs("div",{className:gt("flex items-center w-full",r?"justify-between":"justify-end"),children:[L.jsxs("div",{className:"flex items-center gap-1",children:[L.jsx(m0,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",children:L.jsx(ot,{icon:GO})}),children:L.jsxs("ul",{className:"flex items-start flex-col",children:[L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:BO,className:"mr-2"}),"Bold"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:$O,className:"mr-2"}),"Italic"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:zO,className:"mr-2"}),"Underline"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:jO,className:"mr-2"}),"Strikethrough"]})}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:VO,className:"mr-2"}),"Monospace"]})}),L.jsx("hr",{className:"w-full border-gray-200"}),L.jsx("li",{className:"flex items-center w-full",children:L.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:[L.jsx(ot,{icon:WO,className:"mr-2"}),"Clear formatting"]})})]})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:A,children:L.jsx(ot,{icon:QO})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:x,children:L.jsx(ot,{icon:HO})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(md,"https://")},children:L.jsx(ot,{icon:YO})}),i&&L.jsxs(L.Fragment,{children:[L.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:L.jsx(ot,{icon:UO})}),L.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var R;(R=v.current)==null||R.click()},children:L.jsx(ot,{icon:KO})})]}),n&&L.jsx(m0,{placement:"top-end",title:"comment type menu",trigger:L.jsx(Ht,{category:"link",size:"smallCollapse",className:`${w.iconColor} border-l-1 border-gray-200 rounded-none`,children:L.jsx(ot,{icon:w.icon})}),children:L.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:Tk.map(R=>L.jsx("li",{children:L.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:L.jsx(ot,{icon:R.icon})})},R.type))})})]}),r,L.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))}}),L.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 U5({hasStrictIndent:e=!1}){const[t]=ir();return Y.useEffect(()=>{if(!t.hasNodes([Dd,Fu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),Y.useEffect(()=>{if(e)return L5(t)},[t,e]),(function(n){Y.useEffect(()=>N5(n),[n])})(t),null}function W5({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(()=>z5(n,tk({attributes:t,validateUrl:e})),[n,e,t]),null}const $5=new Set(["http:","https:","mailto:","sms:","tel:"]);function W1(e){try{const t=new URL(e);if(!$5.has(t.protocol))return"about:blank"}catch{return e}return e}function $1(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 zh(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?d1(n)?r:o:d1(t)?r:o}function H5({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=zh(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 D=e.getRootElement();if(x!==null&&D!==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&&D.contains(R.anchorNode)&&(j=(U=(M=R.focusNode)==null?void 0:M.parentElement)==null?void 0:U.getBoundingClientRect());j&&(j.y+=40,$1(j,E,r)),v(x)}else(!O||O.className!=="link-input")&&(D!==null&&$1(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(Ky,()=>t?(n(!1),!0):!1,WN)),[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,W1(f));const E=Ie();if(ge(E)){const R=zh(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 L.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?L.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[L.jsx(FC,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:f,onChange:x=>{m(x.target.value)},onKeyDown:x=>{C(x)}}),L.jsxs("div",{className:"flex justify-center items-center gap-4",children:[L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{i(!1)},children:L.jsx(ot,{icon:qh})}),L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:A,children:L.jsx(ot,{icon:HC})})]})]}):L.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[L.jsx("a",{href:W1(c),target:"_blank",rel:"noopener noreferrer",children:c}),L.jsxs("div",{className:"flex items-center gap-4",children:[L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{m(c),i(!0)},children:L.jsx(ot,{icon:p3})}),L.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>e.dispatchCommand(md,null),children:L.jsx(ot,{icon:A3})})]})]}):null})}function V5(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=zh(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),y2),e.registerCommand($y,f=>{const m=Ie();if(ge(m)){const h=zh(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(L.jsx(H5,{editor:o,isLink:s,anchorElem:t,setIsLink:c,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function K5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=ir();return V5(r,e,t,n)}const Y5=({url:e,onDelete:t})=>L.jsxs("div",{className:"relative",children:[L.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),L.jsx(Ht,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:L.jsx(ot,{icon:$C})})]}),wk=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return k3;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return hx;case"csv":return d3;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return hx;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return v3;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return f3;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return y3;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 E3;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 S3;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 C3;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 x3;default:return R3}},G5=(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..."}}},ah=e=>e.assetPath.includes("blob:")?e.assetPath:Q5({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),Q5=({assetPath:e,mimeType:t,fileName:n})=>e?`${Zi}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",wb=e=>e.startsWith("image/"),Z5=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)}}),X5=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",J5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=wk(r);return L.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[L.jsx(Ht,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:L.jsx(ot,{icon:$C})}),L.jsxs("div",{className:"flex items-center justify-center mx-2",children:[L.jsx("span",{className:"text-primary-600 my-2",children:L.jsx(ot,{icon:o,size:"3x",className:"text-primary-600"})}),L.jsx("span",{className:"font-bold p-2",children:n})]})]})},q5=({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},eD=({isOpen:e})=>{const[t]=ir();return Y.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},tD=({initialValue:e})=>{const[t]=ir(),n=Y.useCallback((o,i)=>{const c=new DOMParser().parseFromString(i,"text/html");return ak(o,c)},[]),r=Y.useRef(!1);return Y.useEffect(()=>{!r.current&&e&&(t.update(()=>{Xt().clear(),f2(n(t,e))}),r.current=!0)},[t,e,n]),null},nD=({onChange:e})=>{const[t]=ir();return L.jsx(x5,{onChange:n=>{n.read(()=>{const r=sk(t,null);e(r)})}})},rD=({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},oD=({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 Sk({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:E5,nodes:[Dd,Fu,Ll],onError:M=>{console.error(M)}},[A,x]=Y.useState(null),[E,R]=Y.useState(!1),O=M=>{M!==null&&x(M)},D=Sb[s];return L.jsx("div",{className:r,children:L.jsxs(yL,{initialConfig:C,children:[L.jsxs("div",{className:"relative",children:[L.jsx(c5,{contentEditable:L.jsx("div",{ref:O,children:L.jsx(g5,{className:gt("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",D.bg,D.border,D.fontColor,n)})}),placeholder:L.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:A5}),L.jsx(U5,{}),L.jsx(W5,{}),A&&L.jsx(K5,{anchorElem:A,isLinkEditMode:E,setIsLinkEditMode:R}),L.jsx(p5,{}),L.jsx(tD,{initialValue:o}),L.jsx(nD,{onChange:i}),L.jsx(oD,{onSubmit:v}),L.jsx(q5,{clearKey:t}),L.jsx(rD,{onAddAttachments:m}),L.jsx(eD,{isOpen:w})]}),e&&e.length>0&&L.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(M=>wb(M.type)?L.jsx(Y5,{url:M.url,onDelete:()=>h==null?void 0:h(M.originFile)},M.originFile.name):L.jsx(J5,{type:M.type,label:M.name,onRemoveFile:()=>h==null?void 0:h(M.originFile)},M.originFile.name))}),L.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:L.jsx(B5,{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:Ck,setPrototypeOf:H1,isFrozen:iD,getPrototypeOf:aD,getOwnPropertyDescriptor:sD}=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 Kp=Er(Array.prototype.forEach),lD=Er(Array.prototype.lastIndexOf),V1=Er(Array.prototype.pop),Nf=Er(Array.prototype.push),cD=Er(Array.prototype.splice),sh=Er(String.prototype.toLowerCase),dv=Er(String.prototype.toString),pv=Er(String.prototype.match),Lf=Er(String.prototype.replace),uD=Er(String.prototype.indexOf),fD=Er(String.prototype.trim),Ro=Er(Object.prototype.hasOwnProperty),vr=Er(RegExp.prototype.test),Df=dD(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 dD(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]:sh;H1&&H1(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(iD(t)||(t[r]=i),o=i)}e[o]=!0}return e}function pD(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 Ck(e))Ro(e,n)&&(Array.isArray(r)?t[n]=pD(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=sD(e,t);if(r){if(r.get)return Er(r.get);if(typeof r.value=="function")return Er(r.value)}e=aD(e)}function n(){return null}return n}const K1=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"]),hD=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"]),mD=Ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y1=Ar(["#text"]),G1=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"]),Q1=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"]),Yp=Ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gD=po(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vD=po(/<%[\w\W]*|[\w\W]*%>/gm),yD=po(/\$\{[\w\W]*/gm),bD=po(/^data-[\-\w.\u00B7-\uFFFF]+$/),xD=po(/^aria-[\-\w]+$/),Ak=po(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wD=po(/^(?:\w+script|data):/i),SD=po(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ek=po(/^html$/i),CD=po(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z1=Object.freeze({__proto__:null,ARIA_ATTR:xD,ATTR_WHITESPACE:SD,CUSTOM_ELEMENT:CD,DATA_ATTR:bD,DOCTYPE_NAME:Ek,ERB_EXPR:vD,IS_ALLOWED_URI:Ak,IS_SCRIPT_OR_DATA:wD,MUSTACHE_EXPR:gD,TMPLIT_EXPR:yD});const jf={element:1,text:3,progressingInstruction:7,comment:8,document:9},AD=function(){return typeof window>"u"?null:window},ED=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}},X1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AD();const t=De=>kk(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 D,M="";const{implementation:U,createNodeIterator:j,createDocumentFragment:$,getElementsByTagName:H}=n,{importNode:G}=r;let q=X1();t.isSupported=typeof Ck=="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}=Z1;let{IS_ALLOWED_URI:ne}=Z1,re=null;const ue=ft({},[...K1,...hv,...mv,...gv,...Y1]);let me=null;const Te=ft({},[...G1,...vv,...Q1,...Yp]);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:sh,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||Ak,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({},Y1),me=[],Jt.html===!0&&(ft(re,K1),ft(me,G1)),Jt.svg===!0&&(ft(re,hv),ft(me,vv),ft(me,Yp)),Jt.svgFilters===!0&&(ft(re,mv),ft(me,vv),ft(me,Yp)),Jt.mathMl===!0&&(ft(re,gv),ft(me,Q1),ft(me,Yp))),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.');D=K.TRUSTED_TYPES_POLICY,M=D.createHTML("")}else D===void 0&&(D=ED(w,o)),D!==null&&typeof M=="string"&&(M=D.createHTML(""));Ar&&Ar(K),Fn=K}},Jr=ft({},[...hv,...mv,...hD]),vo=ft({},[...gv,...mD]),Wt=function(K){let he=O(K);(!he||!he.tagName)&&(he={namespaceURI:dn,tagName:"template"});const Fe=sh(K.tagName),St=sh(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=D?D.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){Kp(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,Kp([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"&&uD(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:fD(_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&&Kp([pe,ie,se],rn=>{Ct=Lf(Ct,rn," ")});const Bn=vt(K.nodeName);if(!zn(Bn,hn,Ct)){sr(qe,K);continue}if(D&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Ot)switch(w.getAttributeType(Bn,hn)){case"TrustedHTML":{Ct=D.createHTML(Ct);break}case"TrustedScriptURL":{Ct=D.createScriptURL(Ct);break}}if(Ct!==_r)try{Ot?K.setAttributeNS(Ot,qe,Ct):K.setAttribute(qe,Ct),Br(K)?sn(K):V1(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 D&&wn?D.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(Ek,he.ownerDocument.doctype.name)&&(Ot="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
|
|
712
|
+
`+Ot),tt&&Kp([pe,ie,se],Qt=>{Ot=Lf(Ot,Qt," ")}),D&&wn?D.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=lD(q[De],K);return he===-1?void 0:cD(q[De],he,1)[0]}return V1(q[De])},t.removeHooks=function(De){q[De]=[]},t.removeAllHooks=function(){q=X1()},t}var X0=kk();const J0=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),yv=e=>atob(e);function lh(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const kD=({asset:e,onSetActiveSrc:t})=>L.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[L.jsx("img",{src:ah(e),onClick:()=>t(ah(e)),onKeyDown:n=>{n.key==="Enter"&&t(ah(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&L.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:L.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:L.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),TD=({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=wk(t);return L.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&L.jsx("div",{className:"flex items-center justify-center",children:L.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),L.jsx(ot,{icon:n,size:"lg",className:"text-primary-600"}),L.jsx("a",{href:ah(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},_D=({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:WC,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[Yn.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:jC,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[Yn.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:VC,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[Yn.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:BC,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,D]=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 L.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[L.jsx(_M,{alt:t}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsxs("div",{className:`border ${h.border} rounded-sm ${h.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[L.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:L.jsxs("div",{className:"w-full",children:[L.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[L.jsxs("div",{children:[L.jsx(ot,{icon:h.icon,size:"lg",className:`mr-2 ${h.iconColor}`}),L.jsx("span",{className:`font-semibold text-sm ${h.text}`,children:t})]}),L.jsx(PM,{commentType:e,taskVerified:f,isUsernameAuthor:n.trim()===t.trim(),onEdit:M,onSaveCommentType:j,onDelete:i})]}),w?L.jsx(Sk,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:x,commentType:e,isCommentTypeEditable:!1,initialValue:yv(r),actions:L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx(Ht,{category:"outline",size:"smallCollapse",color:"secondary",onClick:$,title:"Cancel edit",children:"Cancel"}),L.jsx(Ht,{category:"solid",size:"smallCollapse",color:"primary",onClick:U,title:"Save edit",disabled:lh(A),children:"Save"})]})}):L.jsx("div",{className:`text-sm ${h.text}`,dangerouslySetInnerHTML:{__html:yv(r)}})]})}),c&&u&&(u==null?void 0:u.length)>0&&L.jsx("div",{className:`${h.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:u.map(H=>L.jsx(Y.Fragment,{children:wb(H.mimeType)?L.jsx(kD,{asset:H,onSetActiveSrc:D}):L.jsx(TD,{asset:H})},H.assetId))})]}),L.jsxs("div",{className:"flex gap-2 my-1",children:[o&&L.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:v}),f&&L.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[L.jsx(ot,{icon:UC}),"Comment Required"]})]})]}),L.jsx(cM,{plugins:[kM],open:!!O,zoom:{maxZoomPixelRatio:2},close:()=>D(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:O}]})]})},RD="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",PD=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()},ID=async(e,t,n,r)=>{var C;const o=e.name.split(".").pop(),i=X5(e,o),s=await Z5(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()},OD=(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})},MD=(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})}},ND=(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})}},LD=({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 PD({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=>ID(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&&MD(t,s,o.commentId),i==="add"&&OD(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&&ND(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}},Sb={[Yn.INFO]:{icon:T3,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[Yn.WARNING]:{icon:h3,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[Yn.DANGER]:{icon:P3,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[Yn.SUCCESS]:{icon:UC,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},Tk=Object.entries(Sb).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),DD=({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}=LD({playbookInstanceId:s}),O=()=>{const G=C.length,pe=C.some(se=>!wb(se.mimeType))?"Attachment":"Image",ie=G>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${pe}${ie} added.</span></p>`},D=G=>{const q=Array.from(G).map((pe,ie)=>G5(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&&lh(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&&lh(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]),L.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:[L.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),L.jsx(ot,{icon:hy,className:"size-4 text-gray-300"})]}),L.jsx(Ht,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:L.jsx(ot,{icon:qh,className:"size-4 text-gray-300"})})]}),L.jsxs("div",{ref:x,className:"flex flex-col flex-1 overflow-y-auto",children:[L.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&L.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(G=>L.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},G))}),(e==null?void 0:e.length)>0&&!i&&e.map(G=>L.jsx(_D,{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&&L.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[L.jsx("img",{src:RD,className:"opacity-70",alt:"Empty"}),L.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),L.jsx(Sk,{attachments:C,onChange:f,containerClassName:"bg-white",clearKey:v,commentType:m,onCommentTypeChange:U,onAddAttachments:D,onRemoveAttachment:M,onSubmit:j,isOpen:n,actions:L.jsx(Ht,{category:"link",size:"normalCollapse",title:"Send comment",onClick:j,disabled:lh(u)&&C.length===0,children:L.jsx(ot,{icon:ZO})})})]})]})},J1=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()},FD=({taskInstanceId:e,enabled:t})=>{var u;const{queryClient:n,username:r}=hi(),o=async()=>await J1({taskInstanceId:e.toString(),username:r||""}),i=["comments",+e],s=Uh({queryKey:i,queryFn:o,staleTime:1/0,enabled:t},n),c=f=>{const m=async()=>await J1({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=>{}}),jD=()=>{if(!Y.useContext(q0))throw new Error("useCommentContext must be used within a CommentProvider");return Y.useContext(q0)},zD=({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}=FD({taskInstanceId:o||0,enabled:o!==null});return L.jsxs(q0.Provider,{value:{comments:c,openTaskDetails:n,setOpenTaskDetails:r,prefetchQuery:f},children:[t,ui.createPortal(L.jsxs("div",{id:"cnfdnc-comment-box-root",children:[L.jsx("style",{children:wd}),L.jsx("div",{className:"confidence-playbook",children:L.jsx(DD,{playbookInstanceId:e,comments:c,onClose:()=>r(null),isOpen:!!o,taskName:i,taskInstanceId:o,isLoading:u,taskVerification:s})})]}),XO)]})},BD={[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},UD=({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}=YI({taskId:e.taskId,playbookId:u,enabled:s}),{setOpenTaskDetails:A,prefetchQuery:x}=jD(),{buttons:E}=GT({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 D=>{try{v(!0),await r(D)}finally{v(!1)}};if(o==="list"){const D=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 L.jsxs("div",{className:gt("flex flex-col"),children:[L.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:[L.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),L.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}),L.jsx(PO,{taskVerified:e.taskVerified,verificationType:R,title:e.workflowStatus,variant:D,transitions:M,onClick:U=>{if(U===Yc.ADD_COMMENT){A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(U)}}),L.jsx(qx,{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)&&L.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:L.jsx(Jx,{description:(w==null?void 0:w.description)||""})})]})}return L.jsxs("div",{className:Jf("flex items-stretch rounded-sm overflow-hidden border",BD[e.workflowStatus]),children:[L.jsx(NO,{playbookType:n,status:e.workflowStatus,step:t}),L.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&L.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:L.jsx(DO,{status:e.workflowStatus})}),L.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[L.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?L.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[L.jsx(ot,{icon:zC,className:"size-4"}),L.jsxs("div",{children:[L.jsx("span",{className:"font-medium",children:R===Li.PHOTO?"Photo":R===Li.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):L.jsx(L.Fragment,{})]}),(w==null?void 0:w.description)&&L.jsx("div",{className:gt(!s&&"hidden"),children:L.jsx(Jx,{description:(w==null?void 0:w.description)||""})}),(E.length>0||e.hasDescription)&&L.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[L.jsx("div",{className:"flex-1",children:L.jsx(GI,{buttons:E,onButtonClick:O,disabled:h})}),L.jsx(qx,{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&&L.jsx(Ht,{size:"smallCollapse",onMouseOver:C,category:"link",onClick:()=>{c()},title:s?"Hide task description":"Show task description",children:L.jsx(ot,{icon:hy,className:Jf("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},_k=Y.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,c;return L.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:L.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})})});_k.displayName="PlaybookHeader";const WD=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=KT(e);if(!r)return L.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 L.jsx("div",{className:"confidence-playbook",children:L.jsx(Rk,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},$D=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>L.jsxs("div",{className:gt("w-full p-4",e),children:[n&&L.jsxs("div",{className:gt(r==="card"&&"mb-4"),children:[L.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),L.jsx("div",{className:gt(r==="card"&&"space-y-4"),children:t})]}),Rk=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var x,E,R,O,D;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}=NS(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 L.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)&&L.jsx("div",{onClick:h,className:gt("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((D=r==null?void 0:r.whiteLabel)==null?void 0:D.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:L.jsx("img",{src:bS,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),L.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:[L.jsx(_k,{title:o,className:gt("top-0 sticky z-2"),playbookStyle:r,ref:s}),L.jsx($D,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((M,U)=>{var j;return L.jsx(UD,{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)})})]})]})},HD=({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 LS({bank:o,email:e,timezone:i,playbookUid:t})||{};if(f)throw new Error(`Error initiating playbook: ${h} (Code: ${f}) - Details: ${m}`);c(u)})()},[]),s?L.jsx(as,{playbookInstanceId:s,playbookMode:n,playbookStyle:r}):L.jsx("div",{children:"Loading..."})},VD=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=Y.useState(null);return L.jsxs(L.Fragment,{children:[L.jsxs(Bh.div,{children:[L.jsx(s3,{playbookId:e,disabled:!!i,onInitiated:s,btnLabel:r,btnColor:o}),L.jsx("style",{type:"text/css",children:wd})]}),i&&L.jsx(as,{playbookInstanceId:i,playbookMode:t,playbookStyle:n})]})},as=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>L.jsx(OS,{children:L.jsx(zD,{playbookInstanceId:e,children:L.jsx(WD,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})});as.Context=OS;as.View=Rk;as.AutoInstantiated=HD;as.WithInstantiateButton=VD;const Pk=e=>ui.createPortal(L.jsxs(Bh.div,{style:{position:"relative",zIndex:2147483646},children:[L.jsx("style",{children:wd}),L.jsx(as,{...e})]}),document.body),KD=e=>ui.createPortal(L.jsxs(Bh.div,{style:{position:"relative",zIndex:2147483646},children:[L.jsx("style",{children:wd}),L.jsx(as.AutoInstantiated,{...e})]}),document.body);Pk.AutoInstantiated=KD;exports.ConfidencePlaybook=Pk;
|