@hyperframes/studio 0.4.24 → 0.5.0-alpha.2

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.
Files changed (36) hide show
  1. package/dist/assets/index-BExHzIDS.js +105 -0
  2. package/dist/assets/index-BpcIkyVP.css +1 -0
  3. package/dist/index.html +2 -2
  4. package/package.json +4 -4
  5. package/src/App.tsx +1327 -76
  6. package/src/components/editor/DomEditOverlay.tsx +410 -0
  7. package/src/components/editor/PropertyPanel.tsx +2462 -206
  8. package/src/components/editor/colorValue.test.ts +82 -0
  9. package/src/components/editor/colorValue.ts +175 -0
  10. package/src/components/editor/domEditing.test.ts +427 -0
  11. package/src/components/editor/domEditing.ts +733 -0
  12. package/src/components/editor/floatingPanel.test.ts +34 -0
  13. package/src/components/editor/floatingPanel.ts +54 -0
  14. package/src/components/editor/fontAssets.ts +32 -0
  15. package/src/components/editor/fontCatalog.ts +126 -0
  16. package/src/components/editor/gradientValue.test.ts +89 -0
  17. package/src/components/editor/gradientValue.ts +445 -0
  18. package/src/components/nle/NLELayout.tsx +9 -4
  19. package/src/components/nle/NLEPreview.tsx +50 -5
  20. package/src/components/sidebar/CompositionsTab.test.ts +16 -1
  21. package/src/components/sidebar/CompositionsTab.tsx +117 -45
  22. package/src/components/sidebar/LeftSidebar.tsx +38 -33
  23. package/src/player/components/Player.tsx +18 -70
  24. package/src/player/components/Timeline.test.ts +0 -1
  25. package/src/player/components/Timeline.tsx +0 -3
  26. package/src/player/components/TimelineClip.tsx +20 -7
  27. package/src/player/components/timelineEditing.test.ts +0 -2
  28. package/src/player/components/timelineEditing.ts +0 -2
  29. package/src/player/hooks/useTimelinePlayer.ts +0 -17
  30. package/src/utils/mediaTypes.ts +1 -1
  31. package/src/utils/sourcePatcher.test.ts +128 -1
  32. package/src/utils/sourcePatcher.ts +130 -18
  33. package/src/utils/timelineAssetDrop.test.ts +31 -11
  34. package/src/utils/timelineAssetDrop.ts +22 -2
  35. package/dist/assets/index-CAscydDF.js +0 -115
  36. package/dist/assets/index-dpgHnQGg.css +0 -1
@@ -1,115 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}})();function wy(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Sh={exports:{}},ho={},wh={exports:{}},Ue={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Zm;function ky(){if(Zm)return Ue;Zm=1;var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),O=Symbol.iterator;function x(Q){return Q===null||typeof Q!="object"?null:(Q=O&&Q[O]||Q["@@iterator"],typeof Q=="function"?Q:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function $(Q,z,re){this.props=Q,this.context=z,this.refs=b,this.updater=re||S}$.prototype.isReactComponent={},$.prototype.setState=function(Q,z){if(typeof Q!="object"&&typeof Q!="function"&&Q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,z,"setState")},$.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function T(){}T.prototype=$.prototype;function _(Q,z,re){this.props=Q,this.context=z,this.refs=b,this.updater=re||S}var A=_.prototype=new T;A.constructor=_,w(A,$.prototype),A.isPureReactComponent=!0;var C=Array.isArray,j=Object.prototype.hasOwnProperty,N={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function R(Q,z,re){var ge,te={},ve=null,Le=null;if(z!=null)for(ge in z.ref!==void 0&&(Le=z.ref),z.key!==void 0&&(ve=""+z.key),z)j.call(z,ge)&&!M.hasOwnProperty(ge)&&(te[ge]=z[ge]);var Ee=arguments.length-2;if(Ee===1)te.children=re;else if(1<Ee){for(var ze=Array(Ee),_e=0;_e<Ee;_e++)ze[_e]=arguments[_e+2];te.children=ze}if(Q&&Q.defaultProps)for(ge in Ee=Q.defaultProps,Ee)te[ge]===void 0&&(te[ge]=Ee[ge]);return{$$typeof:r,type:Q,key:ve,ref:Le,props:te,_owner:N.current}}function F(Q,z){return{$$typeof:r,type:Q.type,key:z,ref:Q.ref,props:Q.props,_owner:Q._owner}}function pe(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===r}function J(Q){var z={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(re){return z[re]})}var ie=/\/+/g;function B(Q,z){return typeof Q=="object"&&Q!==null&&Q.key!=null?J(""+Q.key):z.toString(36)}function ce(Q,z,re,ge,te){var ve=typeof Q;(ve==="undefined"||ve==="boolean")&&(Q=null);var Le=!1;if(Q===null)Le=!0;else switch(ve){case"string":case"number":Le=!0;break;case"object":switch(Q.$$typeof){case r:case e:Le=!0}}if(Le)return Le=Q,te=te(Le),Q=ge===""?"."+B(Le,0):ge,C(te)?(re="",Q!=null&&(re=Q.replace(ie,"$&/")+"/"),ce(te,z,re,"",function(_e){return _e})):te!=null&&(pe(te)&&(te=F(te,re+(!te.key||Le&&Le.key===te.key?"":(""+te.key).replace(ie,"$&/")+"/")+Q)),z.push(te)),1;if(Le=0,ge=ge===""?".":ge+":",C(Q))for(var Ee=0;Ee<Q.length;Ee++){ve=Q[Ee];var ze=ge+B(ve,Ee);Le+=ce(ve,z,re,ze,te)}else if(ze=x(Q),typeof ze=="function")for(Q=ze.call(Q),Ee=0;!(ve=Q.next()).done;)ve=ve.value,ze=ge+B(ve,Ee++),Le+=ce(ve,z,re,ze,te);else if(ve==="object")throw z=String(Q),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Le}function ue(Q,z,re){if(Q==null)return Q;var ge=[],te=0;return ce(Q,ge,"","",function(ve){return z.call(re,ve,te++)}),ge}function he(Q){if(Q._status===-1){var z=Q._result;z=z(),z.then(function(re){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=re)},function(re){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=re)}),Q._status===-1&&(Q._status=0,Q._result=z)}if(Q._status===1)return Q._result.default;throw Q._result}var se={current:null},W={transition:null},Y={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:W,ReactCurrentOwner:N};function ee(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:ue,forEach:function(Q,z,re){ue(Q,function(){z.apply(this,arguments)},re)},count:function(Q){var z=0;return ue(Q,function(){z++}),z},toArray:function(Q){return ue(Q,function(z){return z})||[]},only:function(Q){if(!pe(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}},Ue.Component=$,Ue.Fragment=t,Ue.Profiler=i,Ue.PureComponent=_,Ue.StrictMode=n,Ue.Suspense=u,Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Ue.act=ee,Ue.cloneElement=function(Q,z,re){if(Q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Q+".");var ge=w({},Q.props),te=Q.key,ve=Q.ref,Le=Q._owner;if(z!=null){if(z.ref!==void 0&&(ve=z.ref,Le=N.current),z.key!==void 0&&(te=""+z.key),Q.type&&Q.type.defaultProps)var Ee=Q.type.defaultProps;for(ze in z)j.call(z,ze)&&!M.hasOwnProperty(ze)&&(ge[ze]=z[ze]===void 0&&Ee!==void 0?Ee[ze]:z[ze])}var ze=arguments.length-2;if(ze===1)ge.children=re;else if(1<ze){Ee=Array(ze);for(var _e=0;_e<ze;_e++)Ee[_e]=arguments[_e+2];ge.children=Ee}return{$$typeof:r,type:Q.type,key:te,ref:ve,props:ge,_owner:Le}},Ue.createContext=function(Q){return Q={$$typeof:o,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Q.Provider={$$typeof:l,_context:Q},Q.Consumer=Q},Ue.createElement=R,Ue.createFactory=function(Q){var z=R.bind(null,Q);return z.type=Q,z},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(Q){return{$$typeof:c,render:Q}},Ue.isValidElement=pe,Ue.lazy=function(Q){return{$$typeof:m,_payload:{_status:-1,_result:Q},_init:he}},Ue.memo=function(Q,z){return{$$typeof:f,type:Q,compare:z===void 0?null:z}},Ue.startTransition=function(Q){var z=W.transition;W.transition={};try{Q()}finally{W.transition=z}},Ue.unstable_act=ee,Ue.useCallback=function(Q,z){return se.current.useCallback(Q,z)},Ue.useContext=function(Q){return se.current.useContext(Q)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(Q){return se.current.useDeferredValue(Q)},Ue.useEffect=function(Q,z){return se.current.useEffect(Q,z)},Ue.useId=function(){return se.current.useId()},Ue.useImperativeHandle=function(Q,z,re){return se.current.useImperativeHandle(Q,z,re)},Ue.useInsertionEffect=function(Q,z){return se.current.useInsertionEffect(Q,z)},Ue.useLayoutEffect=function(Q,z){return se.current.useLayoutEffect(Q,z)},Ue.useMemo=function(Q,z){return se.current.useMemo(Q,z)},Ue.useReducer=function(Q,z,re){return se.current.useReducer(Q,z,re)},Ue.useRef=function(Q){return se.current.useRef(Q)},Ue.useState=function(Q){return se.current.useState(Q)},Ue.useSyncExternalStore=function(Q,z,re){return se.current.useSyncExternalStore(Q,z,re)},Ue.useTransition=function(){return se.current.useTransition()},Ue.version="18.3.1",Ue}var Mm;function p1(){return Mm||(Mm=1,wh.exports=ky()),wh.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Em;function by(){if(Em)return ho;Em=1;var r=p1(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,f){var m,O={},x=null,S=null;f!==void 0&&(x=""+f),u.key!==void 0&&(x=""+u.key),u.ref!==void 0&&(S=u.ref);for(m in u)n.call(u,m)&&!l.hasOwnProperty(m)&&(O[m]=u[m]);if(c&&c.defaultProps)for(m in u=c.defaultProps,u)O[m]===void 0&&(O[m]=u[m]);return{$$typeof:e,type:c,key:x,ref:S,props:O,_owner:i.current}}return ho.Fragment=t,ho.jsx=o,ho.jsxs=o,ho}var jm;function Qy(){return jm||(jm=1,Sh.exports=by()),Sh.exports}var y=Qy(),p=p1();const oc=wy(p);var ac={},kh={exports:{}},Zn={},bh={exports:{}},Qh={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Vm;function $y(){return Vm||(Vm=1,(function(r){function e(W,Y){var ee=W.length;W.push(Y);e:for(;0<ee;){var Q=ee-1>>>1,z=W[Q];if(0<i(z,Y))W[Q]=Y,W[ee]=z,ee=Q;else break e}}function t(W){return W.length===0?null:W[0]}function n(W){if(W.length===0)return null;var Y=W[0],ee=W.pop();if(ee!==Y){W[0]=ee;e:for(var Q=0,z=W.length,re=z>>>1;Q<re;){var ge=2*(Q+1)-1,te=W[ge],ve=ge+1,Le=W[ve];if(0>i(te,ee))ve<z&&0>i(Le,te)?(W[Q]=Le,W[ve]=ee,Q=ve):(W[Q]=te,W[ge]=ee,Q=ge);else if(ve<z&&0>i(Le,ee))W[Q]=Le,W[ve]=ee,Q=ve;else break e}}return Y}function i(W,Y){var ee=W.sortIndex-Y.sortIndex;return ee!==0?ee:W.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var o=Date,c=o.now();r.unstable_now=function(){return o.now()-c}}var u=[],f=[],m=1,O=null,x=3,S=!1,w=!1,b=!1,$=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(W){for(var Y=t(f);Y!==null;){if(Y.callback===null)n(f);else if(Y.startTime<=W)n(f),Y.sortIndex=Y.expirationTime,e(u,Y);else break;Y=t(f)}}function C(W){if(b=!1,A(W),!w)if(t(u)!==null)w=!0,he(j);else{var Y=t(f);Y!==null&&se(C,Y.startTime-W)}}function j(W,Y){w=!1,b&&(b=!1,T(R),R=-1),S=!0;var ee=x;try{for(A(Y),O=t(u);O!==null&&(!(O.expirationTime>Y)||W&&!J());){var Q=O.callback;if(typeof Q=="function"){O.callback=null,x=O.priorityLevel;var z=Q(O.expirationTime<=Y);Y=r.unstable_now(),typeof z=="function"?O.callback=z:O===t(u)&&n(u),A(Y)}else n(u);O=t(u)}if(O!==null)var re=!0;else{var ge=t(f);ge!==null&&se(C,ge.startTime-Y),re=!1}return re}finally{O=null,x=ee,S=!1}}var N=!1,M=null,R=-1,F=5,pe=-1;function J(){return!(r.unstable_now()-pe<F)}function ie(){if(M!==null){var W=r.unstable_now();pe=W;var Y=!0;try{Y=M(!0,W)}finally{Y?B():(N=!1,M=null)}}else N=!1}var B;if(typeof _=="function")B=function(){_(ie)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ue=ce.port2;ce.port1.onmessage=ie,B=function(){ue.postMessage(null)}}else B=function(){$(ie,0)};function he(W){M=W,N||(N=!0,B())}function se(W,Y){R=$(function(){W(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(W){W.callback=null},r.unstable_continueExecution=function(){w||S||(w=!0,he(j))},r.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<W?Math.floor(1e3/W):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_getFirstCallbackNode=function(){return t(u)},r.unstable_next=function(W){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var ee=x;x=Y;try{return W()}finally{x=ee}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(W,Y){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ee=x;x=W;try{return Y()}finally{x=ee}},r.unstable_scheduleCallback=function(W,Y,ee){var Q=r.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Q+ee:Q):ee=Q,W){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=ee+z,W={id:m++,callback:Y,priorityLevel:W,startTime:ee,expirationTime:z,sortIndex:-1},ee>Q?(W.sortIndex=ee,e(f,W),t(u)===null&&W===t(f)&&(b?(T(R),R=-1):b=!0,se(C,ee-Q))):(W.sortIndex=z,e(u,W),w||S||(w=!0,he(j))),W},r.unstable_shouldYield=J,r.unstable_wrapCallback=function(W){var Y=x;return function(){var ee=x;x=Y;try{return W.apply(this,arguments)}finally{x=ee}}}})(Qh)),Qh}var Rm;function Py(){return Rm||(Rm=1,bh.exports=$y()),bh.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Lm;function Ay(){if(Lm)return Zn;Lm=1;var r=p1(),e=Py();function t(s){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+s,h=1;h<arguments.length;h++)a+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function l(s,a){o(s,a),o(s+"Capture",a)}function o(s,a){for(i[s]=a,s=0;s<a.length;s++)n.add(a[s])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},O={};function x(s){return u.call(O,s)?!0:u.call(m,s)?!1:f.test(s)?O[s]=!0:(m[s]=!0,!1)}function S(s,a,h,d){if(h!==null&&h.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return d?!1:h!==null?!h.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function w(s,a,h,d){if(a===null||typeof a>"u"||S(s,a,h,d))return!0;if(d)return!1;if(h!==null)switch(h.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function b(s,a,h,d,g,v,k){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=h,this.propertyName=s,this.type=a,this.sanitizeURL=v,this.removeEmptyString=k}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){$[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var a=s[0];$[a]=new b(a,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){$[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){$[s]=new b(s,2,!1,s,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(s){$[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){$[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){$[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){$[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){$[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function _(s){return s[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(s){var a=s.replace(T,_);$[a]=new b(a,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var a=s.replace(T,_);$[a]=new b(a,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var a=s.replace(T,_);$[a]=new b(a,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){$[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),$.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){$[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,a,h,d){var g=$.hasOwnProperty(a)?$[a]:null;(g!==null?g.type!==0:d||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(w(a,h,g,d)&&(h=null),d||g===null?x(a)&&(h===null?s.removeAttribute(a):s.setAttribute(a,""+h)):g.mustUseProperty?s[g.propertyName]=h===null?g.type===3?!1:"":h:(a=g.attributeName,d=g.attributeNamespace,h===null?s.removeAttribute(a):(g=g.type,h=g===3||g===4&&h===!0?"":""+h,d?s.setAttributeNS(d,a,h):s.setAttribute(a,h))))}var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),N=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),J=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),W=Symbol.iterator;function Y(s){return s===null||typeof s!="object"?null:(s=W&&s[W]||s["@@iterator"],typeof s=="function"?s:null)}var ee=Object.assign,Q;function z(s){if(Q===void 0)try{throw Error()}catch(h){var a=h.stack.trim().match(/\n( *(at )?)/);Q=a&&a[1]||""}return`
34
- `+Q+s}var re=!1;function ge(s,a){if(!s||re)return"";re=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(H){var d=H}Reflect.construct(s,[],a)}else{try{a.call()}catch(H){d=H}s.call(a.prototype)}else{try{throw Error()}catch(H){d=H}s()}}catch(H){if(H&&d&&typeof H.stack=="string"){for(var g=H.stack.split(`
35
- `),v=d.stack.split(`
36
- `),k=g.length-1,P=v.length-1;1<=k&&0<=P&&g[k]!==v[P];)P--;for(;1<=k&&0<=P;k--,P--)if(g[k]!==v[P]){if(k!==1||P!==1)do if(k--,P--,0>P||g[k]!==v[P]){var E=`
37
- `+g[k].replace(" at new "," at ");return s.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",s.displayName)),E}while(1<=k&&0<=P);break}}}finally{re=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?z(s):""}function te(s){switch(s.tag){case 5:return z(s.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return s=ge(s.type,!1),s;case 11:return s=ge(s.type.render,!1),s;case 1:return s=ge(s.type,!0),s;default:return""}}function ve(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case M:return"Fragment";case N:return"Portal";case F:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case ce:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case J:return(s.displayName||"Context")+".Consumer";case pe:return(s._context.displayName||"Context")+".Provider";case ie:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ue:return a=s.displayName||null,a!==null?a:ve(s.type)||"Memo";case he:a=s._payload,s=s._init;try{return ve(s(a))}catch{}}return null}function Le(s){var a=s.type;switch(s.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=a.render,s=s.displayName||s.name||"",a.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(a);case 8:return a===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Ee(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ze(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function _e(s){var a=ze(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,a),d=""+s[a];if(!s.hasOwnProperty(a)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,v=h.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){d=""+k,v.call(this,k)}}),Object.defineProperty(s,a,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(k){d=""+k},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function ct(s){s._valueTracker||(s._valueTracker=_e(s))}function Ge(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var h=a.getValue(),d="";return s&&(d=ze(s)?s.checked?"true":"false":s.value),s=d,s!==h?(a.setValue(s),!0):!1}function bn(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Xe(s,a){var h=a.checked;return ee({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??s._wrapperState.initialChecked})}function Je(s,a){var h=a.defaultValue==null?"":a.defaultValue,d=a.checked!=null?a.checked:a.defaultChecked;h=Ee(a.value!=null?a.value:h),s._wrapperState={initialChecked:d,initialValue:h,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function qe(s,a){a=a.checked,a!=null&&A(s,"checked",a,!1)}function We(s,a){qe(s,a);var h=Ee(a.value),d=a.type;if(h!=null)d==="number"?(h===0&&s.value===""||s.value!=h)&&(s.value=""+h):s.value!==""+h&&(s.value=""+h);else if(d==="submit"||d==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?tt(s,a.type,h):a.hasOwnProperty("defaultValue")&&tt(s,a.type,Ee(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function Ne(s,a,h){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var d=a.type;if(!(d!=="submit"&&d!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+s._wrapperState.initialValue,h||a===s.value||(s.value=a),s.defaultValue=a}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function tt(s,a,h){(a!=="number"||bn(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var ut=Array.isArray;function Ot(s,a,h,d){if(s=s.options,a){a={};for(var g=0;g<h.length;g++)a["$"+h[g]]=!0;for(h=0;h<s.length;h++)g=a.hasOwnProperty("$"+s[h].value),s[h].selected!==g&&(s[h].selected=g),g&&d&&(s[h].defaultSelected=!0)}else{for(h=""+Ee(h),a=null,g=0;g<s.length;g++){if(s[g].value===h){s[g].selected=!0,d&&(s[g].defaultSelected=!0);return}a!==null||s[g].disabled||(a=s[g])}a!==null&&(a.selected=!0)}}function tn(s,a){if(a.dangerouslySetInnerHTML!=null)throw Error(t(91));return ee({},a,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function _t(s,a){var h=a.value;if(h==null){if(h=a.children,a=a.defaultValue,h!=null){if(a!=null)throw Error(t(92));if(ut(h)){if(1<h.length)throw Error(t(93));h=h[0]}a=h}a==null&&(a=""),h=a}s._wrapperState={initialValue:Ee(h)}}function gn(s,a){var h=Ee(a.value),d=Ee(a.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),a.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),d!=null&&(s.defaultValue=""+d)}function hr(s){var a=s.textContent;a===s._wrapperState.initialValue&&a!==""&&a!==null&&(s.value=a)}function De(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function an(s,a){return s==null||s==="http://www.w3.org/1999/xhtml"?De(a):s==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var vt,Ht=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,h,d,g){MSApp.execUnsafeLocalFunction(function(){return s(a,h,d,g)})}:s})(function(s,a){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=a;else{for(vt=vt||document.createElement("div"),vt.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=vt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;a.firstChild;)s.appendChild(a.firstChild)}});function gt(s,a){if(a){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=a;return}}s.textContent=a}var Yt={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},pi=["Webkit","ms","Moz","O"];Object.keys(Yt).forEach(function(s){pi.forEach(function(a){a=a+s.charAt(0).toUpperCase()+s.substring(1),Yt[a]=Yt[s]})});function Ft(s,a,h){return a==null||typeof a=="boolean"||a===""?"":h||typeof a!="number"||a===0||Yt.hasOwnProperty(s)&&Yt[s]?(""+a).trim():a+"px"}function ft(s,a){s=s.style;for(var h in a)if(a.hasOwnProperty(h)){var d=h.indexOf("--")===0,g=Ft(h,a[h],d);h==="float"&&(h="cssFloat"),d?s.setProperty(h,g):s[h]=g}}var $r=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qn(s,a){if(a){if($r[s]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(t(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(t(61))}if(a.style!=null&&typeof a.style!="object")throw Error(t(62))}}function zt(s,a){if(s.indexOf("-")===-1)return typeof a.is=="string";switch(s){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 Un=null;function Pr(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var mi=null,fr=null,Gn=null;function dr(s){if(s=Ul(s)){if(typeof mi!="function")throw Error(t(280));var a=s.stateNode;a&&(a=wa(a),mi(s.stateNode,s.type,a))}}function Ur(s){fr?Gn?Gn.push(s):Gn=[s]:fr=s}function Qs(){if(fr){var s=fr,a=Gn;if(Gn=fr=null,dr(s),a)for(s=0;s<a.length;s++)dr(a[s])}}function $s(s,a){return s(a)}function Oi(){}var gi=!1;function Ki(s,a,h){if(gi)return s(a,h);gi=!0;try{return $s(s,a,h)}finally{gi=!1,(fr!==null||Gn!==null)&&(Oi(),Qs())}}function Ar(s,a){var h=s.stateNode;if(h===null)return null;var d=wa(h);if(d===null)return null;h=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(t(231,a,typeof h));return h}var Cr=!1;if(c)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){Cr=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{Cr=!1}function Ps(s,a,h,d,g,v,k,P,E){var H=Array.prototype.slice.call(arguments,3);try{a.apply(h,H)}catch(ae){this.onError(ae)}}var Z=!1,q=null,oe=!1,me=null,we={onError:function(s){Z=!0,q=s}};function Ye(s,a,h,d,g,v,k,P,E){Z=!1,q=null,Ps.apply(we,arguments)}function L(s,a,h,d,g,v,k,P,E){if(Ye.apply(this,arguments),Z){if(Z){var H=q;Z=!1,q=null}else throw Error(t(198));oe||(oe=!0,me=H)}}function U(s){var a=s,h=s;if(s.alternate)for(;a.return;)a=a.return;else{s=a;do a=s,(a.flags&4098)!==0&&(h=a.return),s=a.return;while(s)}return a.tag===3?h:null}function fe(s){if(s.tag===13){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function ne(s){if(U(s)!==s)throw Error(t(188))}function xe(s){var a=s.alternate;if(!a){if(a=U(s),a===null)throw Error(t(188));return a!==s?null:s}for(var h=s,d=a;;){var g=h.return;if(g===null)break;var v=g.alternate;if(v===null){if(d=g.return,d!==null){h=d;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===h)return ne(g),s;if(v===d)return ne(g),a;v=v.sibling}throw Error(t(188))}if(h.return!==d.return)h=g,d=v;else{for(var k=!1,P=g.child;P;){if(P===h){k=!0,h=g,d=v;break}if(P===d){k=!0,d=g,h=v;break}P=P.sibling}if(!k){for(P=v.child;P;){if(P===h){k=!0,h=v,d=g;break}if(P===d){k=!0,d=v,h=g;break}P=P.sibling}if(!k)throw Error(t(189))}}if(h.alternate!==d)throw Error(t(190))}if(h.tag!==3)throw Error(t(188));return h.stateNode.current===h?s:a}function K(s){return s=xe(s),s!==null?Be(s):null}function Be(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var a=Be(s);if(a!==null)return a;s=s.sibling}return null}var He=e.unstable_scheduleCallback,Ze=e.unstable_cancelCallback,pt=e.unstable_shouldYield,St=e.unstable_requestPaint,nt=e.unstable_now,Tr=e.unstable_getCurrentPriorityLevel,Qt=e.unstable_ImmediatePriority,Ji=e.unstable_UserBlockingPriority,xi=e.unstable_NormalPriority,na=e.unstable_LowPriority,wt=e.unstable_IdlePriority,Zr=null,xn=null;function As(s){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(Zr,s,void 0,(s.current.flags&128)===128)}catch{}}var Qn=Math.clz32?Math.clz32:_5,ra=Math.log,N5=Math.LN2;function _5(s){return s>>>=0,s===0?32:31-(ra(s)/N5|0)|0}var ia=64,sa=4194304;function Ml(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function la(s,a){var h=s.pendingLanes;if(h===0)return 0;var d=0,g=s.suspendedLanes,v=s.pingedLanes,k=h&268435455;if(k!==0){var P=k&~g;P!==0?d=Ml(P):(v&=k,v!==0&&(d=Ml(v)))}else k=h&~g,k!==0?d=Ml(k):v!==0&&(d=Ml(v));if(d===0)return 0;if(a!==0&&a!==d&&(a&g)===0&&(g=d&-d,v=a&-a,g>=v||g===16&&(v&4194240)!==0))return a;if((d&4)!==0&&(d|=h&16),a=s.entangledLanes,a!==0)for(s=s.entanglements,a&=d;0<a;)h=31-Qn(a),g=1<<h,d|=s[h],a&=~g;return d}function z5(s,a){switch(s){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function D5(s,a){for(var h=s.suspendedLanes,d=s.pingedLanes,g=s.expirationTimes,v=s.pendingLanes;0<v;){var k=31-Qn(v),P=1<<k,E=g[k];E===-1?((P&h)===0||(P&d)!==0)&&(g[k]=z5(P,a)):E<=a&&(s.expiredLanes|=P),v&=~P}}function Du(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function ad(){var s=ia;return ia<<=1,(ia&4194240)===0&&(ia=64),s}function Iu(s){for(var a=[],h=0;31>h;h++)a.push(s);return a}function El(s,a,h){s.pendingLanes|=a,a!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,a=31-Qn(a),s[a]=h}function I5(s,a){var h=s.pendingLanes&~a;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=a,s.mutableReadLanes&=a,s.entangledLanes&=a,a=s.entanglements;var d=s.eventTimes;for(s=s.expirationTimes;0<h;){var g=31-Qn(h),v=1<<g;a[g]=0,d[g]=-1,s[g]=-1,h&=~v}}function Wu(s,a){var h=s.entangledLanes|=a;for(s=s.entanglements;h;){var d=31-Qn(h),g=1<<d;g&a|s[d]&a&&(s[d]|=a),h&=~g}}var dt=0;function cd(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var ud,Hu,hd,fd,dd,Yu=!1,oa=[],yi=null,vi=null,Si=null,jl=new Map,Vl=new Map,wi=[],W5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pd(s,a){switch(s){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":vi=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":jl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(a.pointerId)}}function Rl(s,a,h,d,g,v){return s===null||s.nativeEvent!==v?(s={blockedOn:a,domEventName:h,eventSystemFlags:d,nativeEvent:v,targetContainers:[g]},a!==null&&(a=Ul(a),a!==null&&Hu(a)),s):(s.eventSystemFlags|=d,a=s.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),s)}function H5(s,a,h,d,g){switch(a){case"focusin":return yi=Rl(yi,s,a,h,d,g),!0;case"dragenter":return vi=Rl(vi,s,a,h,d,g),!0;case"mouseover":return Si=Rl(Si,s,a,h,d,g),!0;case"pointerover":var v=g.pointerId;return jl.set(v,Rl(jl.get(v)||null,s,a,h,d,g)),!0;case"gotpointercapture":return v=g.pointerId,Vl.set(v,Rl(Vl.get(v)||null,s,a,h,d,g)),!0}return!1}function md(s){var a=es(s.target);if(a!==null){var h=U(a);if(h!==null){if(a=h.tag,a===13){if(a=fe(h),a!==null){s.blockedOn=a,dd(s.priority,function(){hd(h)});return}}else if(a===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function aa(s){if(s.blockedOn!==null)return!1;for(var a=s.targetContainers;0<a.length;){var h=Bu(s.domEventName,s.eventSystemFlags,a[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var d=new h.constructor(h.type,h);Un=d,h.target.dispatchEvent(d),Un=null}else return a=Ul(h),a!==null&&Hu(a),s.blockedOn=h,!1;a.shift()}return!0}function Od(s,a,h){aa(s)&&h.delete(a)}function Y5(){Yu=!1,yi!==null&&aa(yi)&&(yi=null),vi!==null&&aa(vi)&&(vi=null),Si!==null&&aa(Si)&&(Si=null),jl.forEach(Od),Vl.forEach(Od)}function Ll(s,a){s.blockedOn===a&&(s.blockedOn=null,Yu||(Yu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Y5)))}function Xl(s){function a(g){return Ll(g,s)}if(0<oa.length){Ll(oa[0],s);for(var h=1;h<oa.length;h++){var d=oa[h];d.blockedOn===s&&(d.blockedOn=null)}}for(yi!==null&&Ll(yi,s),vi!==null&&Ll(vi,s),Si!==null&&Ll(Si,s),jl.forEach(a),Vl.forEach(a),h=0;h<wi.length;h++)d=wi[h],d.blockedOn===s&&(d.blockedOn=null);for(;0<wi.length&&(h=wi[0],h.blockedOn===null);)md(h),h.blockedOn===null&&wi.shift()}var Cs=C.ReactCurrentBatchConfig,ca=!0;function F5(s,a,h,d){var g=dt,v=Cs.transition;Cs.transition=null;try{dt=1,Fu(s,a,h,d)}finally{dt=g,Cs.transition=v}}function B5(s,a,h,d){var g=dt,v=Cs.transition;Cs.transition=null;try{dt=4,Fu(s,a,h,d)}finally{dt=g,Cs.transition=v}}function Fu(s,a,h,d){if(ca){var g=Bu(s,a,h,d);if(g===null)h0(s,a,d,ua,h),pd(s,d);else if(H5(g,s,a,h,d))d.stopPropagation();else if(pd(s,d),a&4&&-1<W5.indexOf(s)){for(;g!==null;){var v=Ul(g);if(v!==null&&ud(v),v=Bu(s,a,h,d),v===null&&h0(s,a,d,ua,h),v===g)break;g=v}g!==null&&d.stopPropagation()}else h0(s,a,d,null,h)}}var ua=null;function Bu(s,a,h,d){if(ua=null,s=Pr(d),s=es(s),s!==null)if(a=U(s),a===null)s=null;else if(h=a.tag,h===13){if(s=fe(a),s!==null)return s;s=null}else if(h===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;s=null}else a!==s&&(s=null);return ua=s,null}function gd(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tr()){case Qt:return 1;case Ji:return 4;case xi:case na:return 16;case wt:return 536870912;default:return 16}default:return 16}}var ki=null,qu=null,ha=null;function xd(){if(ha)return ha;var s,a=qu,h=a.length,d,g="value"in ki?ki.value:ki.textContent,v=g.length;for(s=0;s<h&&a[s]===g[s];s++);var k=h-s;for(d=1;d<=k&&a[h-d]===g[v-d];d++);return ha=g.slice(s,1<d?1-d:void 0)}function fa(s){var a=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&a===13&&(s=13)):s=a,s===10&&(s=13),32<=s||s===13?s:0}function da(){return!0}function yd(){return!1}function Nn(s){function a(h,d,g,v,k){this._reactName=h,this._targetInst=g,this.type=d,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var P in s)s.hasOwnProperty(P)&&(h=s[P],this[P]=h?h(v):v[P]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?da:yd,this.isPropagationStopped=yd,this}return ee(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=da)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=da)},persist:function(){},isPersistent:da}),a}var Ts={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uu=Nn(Ts),Nl=ee({},Ts,{view:0,detail:0}),q5=Nn(Nl),Gu,Ku,_l,pa=ee({},Nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:e0,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==_l&&(_l&&s.type==="mousemove"?(Gu=s.screenX-_l.screenX,Ku=s.screenY-_l.screenY):Ku=Gu=0,_l=s),Gu)},movementY:function(s){return"movementY"in s?s.movementY:Ku}}),vd=Nn(pa),U5=ee({},pa,{dataTransfer:0}),G5=Nn(U5),K5=ee({},Nl,{relatedTarget:0}),Ju=Nn(K5),J5=ee({},Ts,{animationName:0,elapsedTime:0,pseudoElement:0}),ex=Nn(J5),tx=ee({},Ts,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),nx=Nn(tx),rx=ee({},Ts,{data:0}),Sd=Nn(rx),ix={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ox(s){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(s):(s=lx[s])?!!a[s]:!1}function e0(){return ox}var ax=ee({},Nl,{key:function(s){if(s.key){var a=ix[s.key]||s.key;if(a!=="Unidentified")return a}return s.type==="keypress"?(s=fa(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?sx[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:e0,charCode:function(s){return s.type==="keypress"?fa(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?fa(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),cx=Nn(ax),ux=ee({},pa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wd=Nn(ux),hx=ee({},Nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:e0}),fx=Nn(hx),dx=ee({},Ts,{propertyName:0,elapsedTime:0,pseudoElement:0}),px=Nn(dx),mx=ee({},pa,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Ox=Nn(mx),gx=[9,13,27,32],t0=c&&"CompositionEvent"in window,zl=null;c&&"documentMode"in document&&(zl=document.documentMode);var xx=c&&"TextEvent"in window&&!zl,kd=c&&(!t0||zl&&8<zl&&11>=zl),bd=" ",Qd=!1;function $d(s,a){switch(s){case"keyup":return gx.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Zs=!1;function yx(s,a){switch(s){case"compositionend":return Pd(a);case"keypress":return a.which!==32?null:(Qd=!0,bd);case"textInput":return s=a.data,s===bd&&Qd?null:s;default:return null}}function vx(s,a){if(Zs)return s==="compositionend"||!t0&&$d(s,a)?(s=xd(),ha=qu=ki=null,Zs=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return kd&&a.locale!=="ko"?null:a.data;default:return null}}var Sx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ad(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a==="input"?!!Sx[s.type]:a==="textarea"}function Cd(s,a,h,d){Ur(d),a=ya(a,"onChange"),0<a.length&&(h=new Uu("onChange","change",null,h,d),s.push({event:h,listeners:a}))}var Dl=null,Il=null;function wx(s){Fd(s,0)}function ma(s){var a=Rs(s);if(Ge(a))return s}function kx(s,a){if(s==="change")return a}var Td=!1;if(c){var n0;if(c){var r0="oninput"in document;if(!r0){var Zd=document.createElement("div");Zd.setAttribute("oninput","return;"),r0=typeof Zd.oninput=="function"}n0=r0}else n0=!1;Td=n0&&(!document.documentMode||9<document.documentMode)}function Md(){Dl&&(Dl.detachEvent("onpropertychange",Ed),Il=Dl=null)}function Ed(s){if(s.propertyName==="value"&&ma(Il)){var a=[];Cd(a,Il,s,Pr(s)),Ki(wx,a)}}function bx(s,a,h){s==="focusin"?(Md(),Dl=a,Il=h,Dl.attachEvent("onpropertychange",Ed)):s==="focusout"&&Md()}function Qx(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return ma(Il)}function $x(s,a){if(s==="click")return ma(a)}function Px(s,a){if(s==="input"||s==="change")return ma(a)}function Ax(s,a){return s===a&&(s!==0||1/s===1/a)||s!==s&&a!==a}var pr=typeof Object.is=="function"?Object.is:Ax;function Wl(s,a){if(pr(s,a))return!0;if(typeof s!="object"||s===null||typeof a!="object"||a===null)return!1;var h=Object.keys(s),d=Object.keys(a);if(h.length!==d.length)return!1;for(d=0;d<h.length;d++){var g=h[d];if(!u.call(a,g)||!pr(s[g],a[g]))return!1}return!0}function jd(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Vd(s,a){var h=jd(s);s=0;for(var d;h;){if(h.nodeType===3){if(d=s+h.textContent.length,s<=a&&d>=a)return{node:h,offset:a-s};s=d}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=jd(h)}}function Rd(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?Rd(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function Ld(){for(var s=window,a=bn();a instanceof s.HTMLIFrameElement;){try{var h=typeof a.contentWindow.location.href=="string"}catch{h=!1}if(h)s=a.contentWindow;else break;a=bn(s.document)}return a}function i0(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}function Cx(s){var a=Ld(),h=s.focusedElem,d=s.selectionRange;if(a!==h&&h&&h.ownerDocument&&Rd(h.ownerDocument.documentElement,h)){if(d!==null&&i0(h)){if(a=d.start,s=d.end,s===void 0&&(s=a),"selectionStart"in h)h.selectionStart=a,h.selectionEnd=Math.min(s,h.value.length);else if(s=(a=h.ownerDocument||document)&&a.defaultView||window,s.getSelection){s=s.getSelection();var g=h.textContent.length,v=Math.min(d.start,g);d=d.end===void 0?v:Math.min(d.end,g),!s.extend&&v>d&&(g=d,d=v,v=g),g=Vd(h,v);var k=Vd(h,d);g&&k&&(s.rangeCount!==1||s.anchorNode!==g.node||s.anchorOffset!==g.offset||s.focusNode!==k.node||s.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(g.node,g.offset),s.removeAllRanges(),v>d?(s.addRange(a),s.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),s.addRange(a)))}}for(a=[],s=h;s=s.parentNode;)s.nodeType===1&&a.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<a.length;h++)s=a[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Tx=c&&"documentMode"in document&&11>=document.documentMode,Ms=null,s0=null,Hl=null,l0=!1;function Xd(s,a,h){var d=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;l0||Ms==null||Ms!==bn(d)||(d=Ms,"selectionStart"in d&&i0(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Hl&&Wl(Hl,d)||(Hl=d,d=ya(s0,"onSelect"),0<d.length&&(a=new Uu("onSelect","select",null,a,h),s.push({event:a,listeners:d}),a.target=Ms)))}function Oa(s,a){var h={};return h[s.toLowerCase()]=a.toLowerCase(),h["Webkit"+s]="webkit"+a,h["Moz"+s]="moz"+a,h}var Es={animationend:Oa("Animation","AnimationEnd"),animationiteration:Oa("Animation","AnimationIteration"),animationstart:Oa("Animation","AnimationStart"),transitionend:Oa("Transition","TransitionEnd")},o0={},Nd={};c&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete Es.animationend.animation,delete Es.animationiteration.animation,delete Es.animationstart.animation),"TransitionEvent"in window||delete Es.transitionend.transition);function ga(s){if(o0[s])return o0[s];if(!Es[s])return s;var a=Es[s],h;for(h in a)if(a.hasOwnProperty(h)&&h in Nd)return o0[s]=a[h];return s}var _d=ga("animationend"),zd=ga("animationiteration"),Dd=ga("animationstart"),Id=ga("transitionend"),Wd=new Map,Hd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bi(s,a){Wd.set(s,a),l(a,[s])}for(var a0=0;a0<Hd.length;a0++){var c0=Hd[a0],Zx=c0.toLowerCase(),Mx=c0[0].toUpperCase()+c0.slice(1);bi(Zx,"on"+Mx)}bi(_d,"onAnimationEnd"),bi(zd,"onAnimationIteration"),bi(Dd,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(Id,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ex=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yl));function Yd(s,a,h){var d=s.type||"unknown-event";s.currentTarget=h,L(d,a,void 0,s),s.currentTarget=null}function Fd(s,a){a=(a&4)!==0;for(var h=0;h<s.length;h++){var d=s[h],g=d.event;d=d.listeners;e:{var v=void 0;if(a)for(var k=d.length-1;0<=k;k--){var P=d[k],E=P.instance,H=P.currentTarget;if(P=P.listener,E!==v&&g.isPropagationStopped())break e;Yd(g,P,H),v=E}else for(k=0;k<d.length;k++){if(P=d[k],E=P.instance,H=P.currentTarget,P=P.listener,E!==v&&g.isPropagationStopped())break e;Yd(g,P,H),v=E}}}if(oe)throw s=me,oe=!1,me=null,s}function kt(s,a){var h=a[g0];h===void 0&&(h=a[g0]=new Set);var d=s+"__bubble";h.has(d)||(Bd(a,s,2,!1),h.add(d))}function u0(s,a,h){var d=0;a&&(d|=4),Bd(h,s,d,a)}var xa="_reactListening"+Math.random().toString(36).slice(2);function Fl(s){if(!s[xa]){s[xa]=!0,n.forEach(function(h){h!=="selectionchange"&&(Ex.has(h)||u0(h,!1,s),u0(h,!0,s))});var a=s.nodeType===9?s:s.ownerDocument;a===null||a[xa]||(a[xa]=!0,u0("selectionchange",!1,a))}}function Bd(s,a,h,d){switch(gd(a)){case 1:var g=F5;break;case 4:g=B5;break;default:g=Fu}h=g.bind(null,a,h,s),g=void 0,!Cr||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?s.addEventListener(a,h,{capture:!0,passive:g}):s.addEventListener(a,h,!0):g!==void 0?s.addEventListener(a,h,{passive:g}):s.addEventListener(a,h,!1)}function h0(s,a,h,d,g){var v=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var k=d.tag;if(k===3||k===4){var P=d.stateNode.containerInfo;if(P===g||P.nodeType===8&&P.parentNode===g)break;if(k===4)for(k=d.return;k!==null;){var E=k.tag;if((E===3||E===4)&&(E=k.stateNode.containerInfo,E===g||E.nodeType===8&&E.parentNode===g))return;k=k.return}for(;P!==null;){if(k=es(P),k===null)return;if(E=k.tag,E===5||E===6){d=v=k;continue e}P=P.parentNode}}d=d.return}Ki(function(){var H=v,ae=Pr(h),de=[];e:{var le=Wd.get(s);if(le!==void 0){var Se=Uu,Qe=s;switch(s){case"keypress":if(fa(h)===0)break e;case"keydown":case"keyup":Se=cx;break;case"focusin":Qe="focus",Se=Ju;break;case"focusout":Qe="blur",Se=Ju;break;case"beforeblur":case"afterblur":Se=Ju;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Se=vd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Se=G5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Se=fx;break;case _d:case zd:case Dd:Se=ex;break;case Id:Se=px;break;case"scroll":Se=q5;break;case"wheel":Se=Ox;break;case"copy":case"cut":case"paste":Se=nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Se=wd}var Ae=(a&4)!==0,Et=!Ae&&s==="scroll",D=Ae?le!==null?le+"Capture":null:le;Ae=[];for(var X=H,I;X!==null;){I=X;var Oe=I.stateNode;if(I.tag===5&&Oe!==null&&(I=Oe,D!==null&&(Oe=Ar(X,D),Oe!=null&&Ae.push(Bl(X,Oe,I)))),Et)break;X=X.return}0<Ae.length&&(le=new Se(le,Qe,null,h,ae),de.push({event:le,listeners:Ae}))}}if((a&7)===0){e:{if(le=s==="mouseover"||s==="pointerover",Se=s==="mouseout"||s==="pointerout",le&&h!==Un&&(Qe=h.relatedTarget||h.fromElement)&&(es(Qe)||Qe[Gr]))break e;if((Se||le)&&(le=ae.window===ae?ae:(le=ae.ownerDocument)?le.defaultView||le.parentWindow:window,Se?(Qe=h.relatedTarget||h.toElement,Se=H,Qe=Qe?es(Qe):null,Qe!==null&&(Et=U(Qe),Qe!==Et||Qe.tag!==5&&Qe.tag!==6)&&(Qe=null)):(Se=null,Qe=H),Se!==Qe)){if(Ae=vd,Oe="onMouseLeave",D="onMouseEnter",X="mouse",(s==="pointerout"||s==="pointerover")&&(Ae=wd,Oe="onPointerLeave",D="onPointerEnter",X="pointer"),Et=Se==null?le:Rs(Se),I=Qe==null?le:Rs(Qe),le=new Ae(Oe,X+"leave",Se,h,ae),le.target=Et,le.relatedTarget=I,Oe=null,es(ae)===H&&(Ae=new Ae(D,X+"enter",Qe,h,ae),Ae.target=I,Ae.relatedTarget=Et,Oe=Ae),Et=Oe,Se&&Qe)t:{for(Ae=Se,D=Qe,X=0,I=Ae;I;I=js(I))X++;for(I=0,Oe=D;Oe;Oe=js(Oe))I++;for(;0<X-I;)Ae=js(Ae),X--;for(;0<I-X;)D=js(D),I--;for(;X--;){if(Ae===D||D!==null&&Ae===D.alternate)break t;Ae=js(Ae),D=js(D)}Ae=null}else Ae=null;Se!==null&&qd(de,le,Se,Ae,!1),Qe!==null&&Et!==null&&qd(de,Et,Qe,Ae,!0)}}e:{if(le=H?Rs(H):window,Se=le.nodeName&&le.nodeName.toLowerCase(),Se==="select"||Se==="input"&&le.type==="file")var Ce=kx;else if(Ad(le))if(Td)Ce=Px;else{Ce=Qx;var je=bx}else(Se=le.nodeName)&&Se.toLowerCase()==="input"&&(le.type==="checkbox"||le.type==="radio")&&(Ce=$x);if(Ce&&(Ce=Ce(s,H))){Cd(de,Ce,h,ae);break e}je&&je(s,le,H),s==="focusout"&&(je=le._wrapperState)&&je.controlled&&le.type==="number"&&tt(le,"number",le.value)}switch(je=H?Rs(H):window,s){case"focusin":(Ad(je)||je.contentEditable==="true")&&(Ms=je,s0=H,Hl=null);break;case"focusout":Hl=s0=Ms=null;break;case"mousedown":l0=!0;break;case"contextmenu":case"mouseup":case"dragend":l0=!1,Xd(de,h,ae);break;case"selectionchange":if(Tx)break;case"keydown":case"keyup":Xd(de,h,ae)}var Ve;if(t0)e:{switch(s){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Zs?$d(s,h)&&(Re="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(Re="onCompositionStart");Re&&(kd&&h.locale!=="ko"&&(Zs||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Zs&&(Ve=xd()):(ki=ae,qu="value"in ki?ki.value:ki.textContent,Zs=!0)),je=ya(H,Re),0<je.length&&(Re=new Sd(Re,s,null,h,ae),de.push({event:Re,listeners:je}),Ve?Re.data=Ve:(Ve=Pd(h),Ve!==null&&(Re.data=Ve)))),(Ve=xx?yx(s,h):vx(s,h))&&(H=ya(H,"onBeforeInput"),0<H.length&&(ae=new Sd("onBeforeInput","beforeinput",null,h,ae),de.push({event:ae,listeners:H}),ae.data=Ve))}Fd(de,a)})}function Bl(s,a,h){return{instance:s,listener:a,currentTarget:h}}function ya(s,a){for(var h=a+"Capture",d=[];s!==null;){var g=s,v=g.stateNode;g.tag===5&&v!==null&&(g=v,v=Ar(s,h),v!=null&&d.unshift(Bl(s,v,g)),v=Ar(s,a),v!=null&&d.push(Bl(s,v,g))),s=s.return}return d}function js(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function qd(s,a,h,d,g){for(var v=a._reactName,k=[];h!==null&&h!==d;){var P=h,E=P.alternate,H=P.stateNode;if(E!==null&&E===d)break;P.tag===5&&H!==null&&(P=H,g?(E=Ar(h,v),E!=null&&k.unshift(Bl(h,E,P))):g||(E=Ar(h,v),E!=null&&k.push(Bl(h,E,P)))),h=h.return}k.length!==0&&s.push({event:a,listeners:k})}var jx=/\r\n?/g,Vx=/\u0000|\uFFFD/g;function Ud(s){return(typeof s=="string"?s:""+s).replace(jx,`
38
- `).replace(Vx,"")}function va(s,a,h){if(a=Ud(a),Ud(s)!==a&&h)throw Error(t(425))}function Sa(){}var f0=null,d0=null;function p0(s,a){return s==="textarea"||s==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var m0=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,Lx=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(s){return Gd.resolve(null).then(s).catch(Xx)}:m0;function Xx(s){setTimeout(function(){throw s})}function O0(s,a){var h=a,d=0;do{var g=h.nextSibling;if(s.removeChild(h),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(d===0){s.removeChild(g),Xl(a);return}d--}else h!=="$"&&h!=="$?"&&h!=="$!"||d++;h=g}while(h);Xl(a)}function Qi(s){for(;s!=null;s=s.nextSibling){var a=s.nodeType;if(a===1||a===3)break;if(a===8){if(a=s.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return s}function Kd(s){s=s.previousSibling;for(var a=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(a===0)return s;a--}else h==="/$"&&a++}s=s.previousSibling}return null}var Vs=Math.random().toString(36).slice(2),Mr="__reactFiber$"+Vs,ql="__reactProps$"+Vs,Gr="__reactContainer$"+Vs,g0="__reactEvents$"+Vs,Nx="__reactListeners$"+Vs,_x="__reactHandles$"+Vs;function es(s){var a=s[Mr];if(a)return a;for(var h=s.parentNode;h;){if(a=h[Gr]||h[Mr]){if(h=a.alternate,a.child!==null||h!==null&&h.child!==null)for(s=Kd(s);s!==null;){if(h=s[Mr])return h;s=Kd(s)}return a}s=h,h=s.parentNode}return null}function Ul(s){return s=s[Mr]||s[Gr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Rs(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function wa(s){return s[ql]||null}var x0=[],Ls=-1;function $i(s){return{current:s}}function bt(s){0>Ls||(s.current=x0[Ls],x0[Ls]=null,Ls--)}function xt(s,a){Ls++,x0[Ls]=s.current,s.current=a}var Pi={},cn=$i(Pi),$n=$i(!1),ts=Pi;function Xs(s,a){var h=s.type.contextTypes;if(!h)return Pi;var d=s.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===a)return d.__reactInternalMemoizedMaskedChildContext;var g={},v;for(v in h)g[v]=a[v];return d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=a,s.__reactInternalMemoizedMaskedChildContext=g),g}function Pn(s){return s=s.childContextTypes,s!=null}function ka(){bt($n),bt(cn)}function Jd(s,a,h){if(cn.current!==Pi)throw Error(t(168));xt(cn,a),xt($n,h)}function ep(s,a,h){var d=s.stateNode;if(a=a.childContextTypes,typeof d.getChildContext!="function")return h;d=d.getChildContext();for(var g in d)if(!(g in a))throw Error(t(108,Le(s)||"Unknown",g));return ee({},h,d)}function ba(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Pi,ts=cn.current,xt(cn,s),xt($n,$n.current),!0}function tp(s,a,h){var d=s.stateNode;if(!d)throw Error(t(169));h?(s=ep(s,a,ts),d.__reactInternalMemoizedMergedChildContext=s,bt($n),bt(cn),xt(cn,s)):bt($n),xt($n,h)}var Kr=null,Qa=!1,y0=!1;function np(s){Kr===null?Kr=[s]:Kr.push(s)}function zx(s){Qa=!0,np(s)}function Ai(){if(!y0&&Kr!==null){y0=!0;var s=0,a=dt;try{var h=Kr;for(dt=1;s<h.length;s++){var d=h[s];do d=d(!0);while(d!==null)}Kr=null,Qa=!1}catch(g){throw Kr!==null&&(Kr=Kr.slice(s+1)),He(Qt,Ai),g}finally{dt=a,y0=!1}}return null}var Ns=[],_s=0,$a=null,Pa=0,Jn=[],er=0,ns=null,Jr=1,ei="";function rs(s,a){Ns[_s++]=Pa,Ns[_s++]=$a,$a=s,Pa=a}function rp(s,a,h){Jn[er++]=Jr,Jn[er++]=ei,Jn[er++]=ns,ns=s;var d=Jr;s=ei;var g=32-Qn(d)-1;d&=~(1<<g),h+=1;var v=32-Qn(a)+g;if(30<v){var k=g-g%5;v=(d&(1<<k)-1).toString(32),d>>=k,g-=k,Jr=1<<32-Qn(a)+g|h<<g|d,ei=v+s}else Jr=1<<v|h<<g|d,ei=s}function v0(s){s.return!==null&&(rs(s,1),rp(s,1,0))}function S0(s){for(;s===$a;)$a=Ns[--_s],Ns[_s]=null,Pa=Ns[--_s],Ns[_s]=null;for(;s===ns;)ns=Jn[--er],Jn[er]=null,ei=Jn[--er],Jn[er]=null,Jr=Jn[--er],Jn[er]=null}var _n=null,zn=null,$t=!1,mr=null;function ip(s,a){var h=ir(5,null,null,0);h.elementType="DELETED",h.stateNode=a,h.return=s,a=s.deletions,a===null?(s.deletions=[h],s.flags|=16):a.push(h)}function sp(s,a){switch(s.tag){case 5:var h=s.type;return a=a.nodeType!==1||h.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(s.stateNode=a,_n=s,zn=Qi(a.firstChild),!0):!1;case 6:return a=s.pendingProps===""||a.nodeType!==3?null:a,a!==null?(s.stateNode=a,_n=s,zn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(h=ns!==null?{id:Jr,overflow:ei}:null,s.memoizedState={dehydrated:a,treeContext:h,retryLane:1073741824},h=ir(18,null,null,0),h.stateNode=a,h.return=s,s.child=h,_n=s,zn=null,!0):!1;default:return!1}}function w0(s){return(s.mode&1)!==0&&(s.flags&128)===0}function k0(s){if($t){var a=zn;if(a){var h=a;if(!sp(s,a)){if(w0(s))throw Error(t(418));a=Qi(h.nextSibling);var d=_n;a&&sp(s,a)?ip(d,h):(s.flags=s.flags&-4097|2,$t=!1,_n=s)}}else{if(w0(s))throw Error(t(418));s.flags=s.flags&-4097|2,$t=!1,_n=s}}}function lp(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;_n=s}function Aa(s){if(s!==_n)return!1;if(!$t)return lp(s),$t=!0,!1;var a;if((a=s.tag!==3)&&!(a=s.tag!==5)&&(a=s.type,a=a!=="head"&&a!=="body"&&!p0(s.type,s.memoizedProps)),a&&(a=zn)){if(w0(s))throw op(),Error(t(418));for(;a;)ip(s,a),a=Qi(a.nextSibling)}if(lp(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,a=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(a===0){zn=Qi(s.nextSibling);break e}a--}else h!=="$"&&h!=="$!"&&h!=="$?"||a++}s=s.nextSibling}zn=null}}else zn=_n?Qi(s.stateNode.nextSibling):null;return!0}function op(){for(var s=zn;s;)s=Qi(s.nextSibling)}function zs(){zn=_n=null,$t=!1}function b0(s){mr===null?mr=[s]:mr.push(s)}var Dx=C.ReactCurrentBatchConfig;function Gl(s,a,h){if(s=h.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(t(309));var d=h.stateNode}if(!d)throw Error(t(147,s));var g=d,v=""+s;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===v?a.ref:(a=function(k){var P=g.refs;k===null?delete P[v]:P[v]=k},a._stringRef=v,a)}if(typeof s!="string")throw Error(t(284));if(!h._owner)throw Error(t(290,s))}return s}function Ca(s,a){throw s=Object.prototype.toString.call(a),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s))}function ap(s){var a=s._init;return a(s._payload)}function cp(s){function a(D,X){if(s){var I=D.deletions;I===null?(D.deletions=[X],D.flags|=16):I.push(X)}}function h(D,X){if(!s)return null;for(;X!==null;)a(D,X),X=X.sibling;return null}function d(D,X){for(D=new Map;X!==null;)X.key!==null?D.set(X.key,X):D.set(X.index,X),X=X.sibling;return D}function g(D,X){return D=Ri(D,X),D.index=0,D.sibling=null,D}function v(D,X,I){return D.index=I,s?(I=D.alternate,I!==null?(I=I.index,I<X?(D.flags|=2,X):I):(D.flags|=2,X)):(D.flags|=1048576,X)}function k(D){return s&&D.alternate===null&&(D.flags|=2),D}function P(D,X,I,Oe){return X===null||X.tag!==6?(X=mh(I,D.mode,Oe),X.return=D,X):(X=g(X,I),X.return=D,X)}function E(D,X,I,Oe){var Ce=I.type;return Ce===M?ae(D,X,I.props.children,Oe,I.key):X!==null&&(X.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===he&&ap(Ce)===X.type)?(Oe=g(X,I.props),Oe.ref=Gl(D,X,I),Oe.return=D,Oe):(Oe=Ja(I.type,I.key,I.props,null,D.mode,Oe),Oe.ref=Gl(D,X,I),Oe.return=D,Oe)}function H(D,X,I,Oe){return X===null||X.tag!==4||X.stateNode.containerInfo!==I.containerInfo||X.stateNode.implementation!==I.implementation?(X=Oh(I,D.mode,Oe),X.return=D,X):(X=g(X,I.children||[]),X.return=D,X)}function ae(D,X,I,Oe,Ce){return X===null||X.tag!==7?(X=hs(I,D.mode,Oe,Ce),X.return=D,X):(X=g(X,I),X.return=D,X)}function de(D,X,I){if(typeof X=="string"&&X!==""||typeof X=="number")return X=mh(""+X,D.mode,I),X.return=D,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case j:return I=Ja(X.type,X.key,X.props,null,D.mode,I),I.ref=Gl(D,null,X),I.return=D,I;case N:return X=Oh(X,D.mode,I),X.return=D,X;case he:var Oe=X._init;return de(D,Oe(X._payload),I)}if(ut(X)||Y(X))return X=hs(X,D.mode,I,null),X.return=D,X;Ca(D,X)}return null}function le(D,X,I,Oe){var Ce=X!==null?X.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return Ce!==null?null:P(D,X,""+I,Oe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case j:return I.key===Ce?E(D,X,I,Oe):null;case N:return I.key===Ce?H(D,X,I,Oe):null;case he:return Ce=I._init,le(D,X,Ce(I._payload),Oe)}if(ut(I)||Y(I))return Ce!==null?null:ae(D,X,I,Oe,null);Ca(D,I)}return null}function Se(D,X,I,Oe,Ce){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return D=D.get(I)||null,P(X,D,""+Oe,Ce);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case j:return D=D.get(Oe.key===null?I:Oe.key)||null,E(X,D,Oe,Ce);case N:return D=D.get(Oe.key===null?I:Oe.key)||null,H(X,D,Oe,Ce);case he:var je=Oe._init;return Se(D,X,I,je(Oe._payload),Ce)}if(ut(Oe)||Y(Oe))return D=D.get(I)||null,ae(X,D,Oe,Ce,null);Ca(X,Oe)}return null}function Qe(D,X,I,Oe){for(var Ce=null,je=null,Ve=X,Re=X=0,Ut=null;Ve!==null&&Re<I.length;Re++){Ve.index>Re?(Ut=Ve,Ve=null):Ut=Ve.sibling;var lt=le(D,Ve,I[Re],Oe);if(lt===null){Ve===null&&(Ve=Ut);break}s&&Ve&&lt.alternate===null&&a(D,Ve),X=v(lt,X,Re),je===null?Ce=lt:je.sibling=lt,je=lt,Ve=Ut}if(Re===I.length)return h(D,Ve),$t&&rs(D,Re),Ce;if(Ve===null){for(;Re<I.length;Re++)Ve=de(D,I[Re],Oe),Ve!==null&&(X=v(Ve,X,Re),je===null?Ce=Ve:je.sibling=Ve,je=Ve);return $t&&rs(D,Re),Ce}for(Ve=d(D,Ve);Re<I.length;Re++)Ut=Se(Ve,D,Re,I[Re],Oe),Ut!==null&&(s&&Ut.alternate!==null&&Ve.delete(Ut.key===null?Re:Ut.key),X=v(Ut,X,Re),je===null?Ce=Ut:je.sibling=Ut,je=Ut);return s&&Ve.forEach(function(Li){return a(D,Li)}),$t&&rs(D,Re),Ce}function Ae(D,X,I,Oe){var Ce=Y(I);if(typeof Ce!="function")throw Error(t(150));if(I=Ce.call(I),I==null)throw Error(t(151));for(var je=Ce=null,Ve=X,Re=X=0,Ut=null,lt=I.next();Ve!==null&&!lt.done;Re++,lt=I.next()){Ve.index>Re?(Ut=Ve,Ve=null):Ut=Ve.sibling;var Li=le(D,Ve,lt.value,Oe);if(Li===null){Ve===null&&(Ve=Ut);break}s&&Ve&&Li.alternate===null&&a(D,Ve),X=v(Li,X,Re),je===null?Ce=Li:je.sibling=Li,je=Li,Ve=Ut}if(lt.done)return h(D,Ve),$t&&rs(D,Re),Ce;if(Ve===null){for(;!lt.done;Re++,lt=I.next())lt=de(D,lt.value,Oe),lt!==null&&(X=v(lt,X,Re),je===null?Ce=lt:je.sibling=lt,je=lt);return $t&&rs(D,Re),Ce}for(Ve=d(D,Ve);!lt.done;Re++,lt=I.next())lt=Se(Ve,D,Re,lt.value,Oe),lt!==null&&(s&&lt.alternate!==null&&Ve.delete(lt.key===null?Re:lt.key),X=v(lt,X,Re),je===null?Ce=lt:je.sibling=lt,je=lt);return s&&Ve.forEach(function(Sy){return a(D,Sy)}),$t&&rs(D,Re),Ce}function Et(D,X,I,Oe){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case j:e:{for(var Ce=I.key,je=X;je!==null;){if(je.key===Ce){if(Ce=I.type,Ce===M){if(je.tag===7){h(D,je.sibling),X=g(je,I.props.children),X.return=D,D=X;break e}}else if(je.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===he&&ap(Ce)===je.type){h(D,je.sibling),X=g(je,I.props),X.ref=Gl(D,je,I),X.return=D,D=X;break e}h(D,je);break}else a(D,je);je=je.sibling}I.type===M?(X=hs(I.props.children,D.mode,Oe,I.key),X.return=D,D=X):(Oe=Ja(I.type,I.key,I.props,null,D.mode,Oe),Oe.ref=Gl(D,X,I),Oe.return=D,D=Oe)}return k(D);case N:e:{for(je=I.key;X!==null;){if(X.key===je)if(X.tag===4&&X.stateNode.containerInfo===I.containerInfo&&X.stateNode.implementation===I.implementation){h(D,X.sibling),X=g(X,I.children||[]),X.return=D,D=X;break e}else{h(D,X);break}else a(D,X);X=X.sibling}X=Oh(I,D.mode,Oe),X.return=D,D=X}return k(D);case he:return je=I._init,Et(D,X,je(I._payload),Oe)}if(ut(I))return Qe(D,X,I,Oe);if(Y(I))return Ae(D,X,I,Oe);Ca(D,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,X!==null&&X.tag===6?(h(D,X.sibling),X=g(X,I),X.return=D,D=X):(h(D,X),X=mh(I,D.mode,Oe),X.return=D,D=X),k(D)):h(D,X)}return Et}var Ds=cp(!0),up=cp(!1),Ta=$i(null),Za=null,Is=null,Q0=null;function $0(){Q0=Is=Za=null}function P0(s){var a=Ta.current;bt(Ta),s._currentValue=a}function A0(s,a,h){for(;s!==null;){var d=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),s===h)break;s=s.return}}function Ws(s,a){Za=s,Q0=Is=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&a)!==0&&(An=!0),s.firstContext=null)}function tr(s){var a=s._currentValue;if(Q0!==s)if(s={context:s,memoizedValue:a,next:null},Is===null){if(Za===null)throw Error(t(308));Is=s,Za.dependencies={lanes:0,firstContext:s}}else Is=Is.next=s;return a}var is=null;function C0(s){is===null?is=[s]:is.push(s)}function hp(s,a,h,d){var g=a.interleaved;return g===null?(h.next=h,C0(a)):(h.next=g.next,g.next=h),a.interleaved=h,ti(s,d)}function ti(s,a){s.lanes|=a;var h=s.alternate;for(h!==null&&(h.lanes|=a),h=s,s=s.return;s!==null;)s.childLanes|=a,h=s.alternate,h!==null&&(h.childLanes|=a),h=s,s=s.return;return h.tag===3?h.stateNode:null}var Ci=!1;function T0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fp(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ni(s,a){return{eventTime:s,lane:a,tag:0,payload:null,callback:null,next:null}}function Ti(s,a,h){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(rt&2)!==0){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,ti(s,h)}return g=d.interleaved,g===null?(a.next=a,C0(d)):(a.next=g.next,g.next=a),d.interleaved=a,ti(s,h)}function Ma(s,a,h){if(a=a.updateQueue,a!==null&&(a=a.shared,(h&4194240)!==0)){var d=a.lanes;d&=s.pendingLanes,h|=d,a.lanes=h,Wu(s,h)}}function dp(s,a){var h=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,h===d)){var g=null,v=null;if(h=h.firstBaseUpdate,h!==null){do{var k={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};v===null?g=v=k:v=v.next=k,h=h.next}while(h!==null);v===null?g=v=a:v=v.next=a}else g=v=a;h={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:d.shared,effects:d.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=a}function Ea(s,a,h,d){var g=s.updateQueue;Ci=!1;var v=g.firstBaseUpdate,k=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var E=P,H=E.next;E.next=null,k===null?v=H:k.next=H,k=E;var ae=s.alternate;ae!==null&&(ae=ae.updateQueue,P=ae.lastBaseUpdate,P!==k&&(P===null?ae.firstBaseUpdate=H:P.next=H,ae.lastBaseUpdate=E))}if(v!==null){var de=g.baseState;k=0,ae=H=E=null,P=v;do{var le=P.lane,Se=P.eventTime;if((d&le)===le){ae!==null&&(ae=ae.next={eventTime:Se,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var Qe=s,Ae=P;switch(le=a,Se=h,Ae.tag){case 1:if(Qe=Ae.payload,typeof Qe=="function"){de=Qe.call(Se,de,le);break e}de=Qe;break e;case 3:Qe.flags=Qe.flags&-65537|128;case 0:if(Qe=Ae.payload,le=typeof Qe=="function"?Qe.call(Se,de,le):Qe,le==null)break e;de=ee({},de,le);break e;case 2:Ci=!0}}P.callback!==null&&P.lane!==0&&(s.flags|=64,le=g.effects,le===null?g.effects=[P]:le.push(P))}else Se={eventTime:Se,lane:le,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ae===null?(H=ae=Se,E=de):ae=ae.next=Se,k|=le;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;le=P,P=le.next,le.next=null,g.lastBaseUpdate=le,g.shared.pending=null}}while(!0);if(ae===null&&(E=de),g.baseState=E,g.firstBaseUpdate=H,g.lastBaseUpdate=ae,a=g.shared.interleaved,a!==null){g=a;do k|=g.lane,g=g.next;while(g!==a)}else v===null&&(g.shared.lanes=0);os|=k,s.lanes=k,s.memoizedState=de}}function pp(s,a,h){if(s=a.effects,a.effects=null,s!==null)for(a=0;a<s.length;a++){var d=s[a],g=d.callback;if(g!==null){if(d.callback=null,d=h,typeof g!="function")throw Error(t(191,g));g.call(d)}}}var Kl={},Er=$i(Kl),Jl=$i(Kl),eo=$i(Kl);function ss(s){if(s===Kl)throw Error(t(174));return s}function Z0(s,a){switch(xt(eo,a),xt(Jl,s),xt(Er,Kl),s=a.nodeType,s){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:an(null,"");break;default:s=s===8?a.parentNode:a,a=s.namespaceURI||null,s=s.tagName,a=an(a,s)}bt(Er),xt(Er,a)}function Hs(){bt(Er),bt(Jl),bt(eo)}function mp(s){ss(eo.current);var a=ss(Er.current),h=an(a,s.type);a!==h&&(xt(Jl,s),xt(Er,h))}function M0(s){Jl.current===s&&(bt(Er),bt(Jl))}var Ct=$i(0);function ja(s){for(var a=s;a!==null;){if(a.tag===13){var h=a.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var E0=[];function j0(){for(var s=0;s<E0.length;s++)E0[s]._workInProgressVersionPrimary=null;E0.length=0}var Va=C.ReactCurrentDispatcher,V0=C.ReactCurrentBatchConfig,ls=0,Tt=null,Dt=null,Bt=null,Ra=!1,to=!1,no=0,Ix=0;function un(){throw Error(t(321))}function R0(s,a){if(a===null)return!1;for(var h=0;h<a.length&&h<s.length;h++)if(!pr(s[h],a[h]))return!1;return!0}function L0(s,a,h,d,g,v){if(ls=v,Tt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Va.current=s===null||s.memoizedState===null?Fx:Bx,s=h(d,g),to){v=0;do{if(to=!1,no=0,25<=v)throw Error(t(301));v+=1,Bt=Dt=null,a.updateQueue=null,Va.current=qx,s=h(d,g)}while(to)}if(Va.current=Na,a=Dt!==null&&Dt.next!==null,ls=0,Bt=Dt=Tt=null,Ra=!1,a)throw Error(t(300));return s}function X0(){var s=no!==0;return no=0,s}function jr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?Tt.memoizedState=Bt=s:Bt=Bt.next=s,Bt}function nr(){if(Dt===null){var s=Tt.alternate;s=s!==null?s.memoizedState:null}else s=Dt.next;var a=Bt===null?Tt.memoizedState:Bt.next;if(a!==null)Bt=a,Dt=s;else{if(s===null)throw Error(t(310));Dt=s,s={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Bt===null?Tt.memoizedState=Bt=s:Bt=Bt.next=s}return Bt}function ro(s,a){return typeof a=="function"?a(s):a}function N0(s){var a=nr(),h=a.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=Dt,g=d.baseQueue,v=h.pending;if(v!==null){if(g!==null){var k=g.next;g.next=v.next,v.next=k}d.baseQueue=g=v,h.pending=null}if(g!==null){v=g.next,d=d.baseState;var P=k=null,E=null,H=v;do{var ae=H.lane;if((ls&ae)===ae)E!==null&&(E=E.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),d=H.hasEagerState?H.eagerState:s(d,H.action);else{var de={lane:ae,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};E===null?(P=E=de,k=d):E=E.next=de,Tt.lanes|=ae,os|=ae}H=H.next}while(H!==null&&H!==v);E===null?k=d:E.next=P,pr(d,a.memoizedState)||(An=!0),a.memoizedState=d,a.baseState=k,a.baseQueue=E,h.lastRenderedState=d}if(s=h.interleaved,s!==null){g=s;do v=g.lane,Tt.lanes|=v,os|=v,g=g.next;while(g!==s)}else g===null&&(h.lanes=0);return[a.memoizedState,h.dispatch]}function _0(s){var a=nr(),h=a.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=h.dispatch,g=h.pending,v=a.memoizedState;if(g!==null){h.pending=null;var k=g=g.next;do v=s(v,k.action),k=k.next;while(k!==g);pr(v,a.memoizedState)||(An=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),h.lastRenderedState=v}return[v,d]}function Op(){}function gp(s,a){var h=Tt,d=nr(),g=a(),v=!pr(d.memoizedState,g);if(v&&(d.memoizedState=g,An=!0),d=d.queue,z0(vp.bind(null,h,d,s),[s]),d.getSnapshot!==a||v||Bt!==null&&Bt.memoizedState.tag&1){if(h.flags|=2048,io(9,yp.bind(null,h,d,g,a),void 0,null),qt===null)throw Error(t(349));(ls&30)!==0||xp(h,a,g)}return g}function xp(s,a,h){s.flags|=16384,s={getSnapshot:a,value:h},a=Tt.updateQueue,a===null?(a={lastEffect:null,stores:null},Tt.updateQueue=a,a.stores=[s]):(h=a.stores,h===null?a.stores=[s]:h.push(s))}function yp(s,a,h,d){a.value=h,a.getSnapshot=d,Sp(a)&&wp(s)}function vp(s,a,h){return h(function(){Sp(a)&&wp(s)})}function Sp(s){var a=s.getSnapshot;s=s.value;try{var h=a();return!pr(s,h)}catch{return!0}}function wp(s){var a=ti(s,1);a!==null&&yr(a,s,1,-1)}function kp(s){var a=jr();return typeof s=="function"&&(s=s()),a.memoizedState=a.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:s},a.queue=s,s=s.dispatch=Yx.bind(null,Tt,s),[a.memoizedState,s]}function io(s,a,h,d){return s={tag:s,create:a,destroy:h,deps:d,next:null},a=Tt.updateQueue,a===null?(a={lastEffect:null,stores:null},Tt.updateQueue=a,a.lastEffect=s.next=s):(h=a.lastEffect,h===null?a.lastEffect=s.next=s:(d=h.next,h.next=s,s.next=d,a.lastEffect=s)),s}function bp(){return nr().memoizedState}function La(s,a,h,d){var g=jr();Tt.flags|=s,g.memoizedState=io(1|a,h,void 0,d===void 0?null:d)}function Xa(s,a,h,d){var g=nr();d=d===void 0?null:d;var v=void 0;if(Dt!==null){var k=Dt.memoizedState;if(v=k.destroy,d!==null&&R0(d,k.deps)){g.memoizedState=io(a,h,v,d);return}}Tt.flags|=s,g.memoizedState=io(1|a,h,v,d)}function Qp(s,a){return La(8390656,8,s,a)}function z0(s,a){return Xa(2048,8,s,a)}function $p(s,a){return Xa(4,2,s,a)}function Pp(s,a){return Xa(4,4,s,a)}function Ap(s,a){if(typeof a=="function")return s=s(),a(s),function(){a(null)};if(a!=null)return s=s(),a.current=s,function(){a.current=null}}function Cp(s,a,h){return h=h!=null?h.concat([s]):null,Xa(4,4,Ap.bind(null,a,s),h)}function D0(){}function Tp(s,a){var h=nr();a=a===void 0?null:a;var d=h.memoizedState;return d!==null&&a!==null&&R0(a,d[1])?d[0]:(h.memoizedState=[s,a],s)}function Zp(s,a){var h=nr();a=a===void 0?null:a;var d=h.memoizedState;return d!==null&&a!==null&&R0(a,d[1])?d[0]:(s=s(),h.memoizedState=[s,a],s)}function Mp(s,a,h){return(ls&21)===0?(s.baseState&&(s.baseState=!1,An=!0),s.memoizedState=h):(pr(h,a)||(h=ad(),Tt.lanes|=h,os|=h,s.baseState=!0),a)}function Wx(s,a){var h=dt;dt=h!==0&&4>h?h:4,s(!0);var d=V0.transition;V0.transition={};try{s(!1),a()}finally{dt=h,V0.transition=d}}function Ep(){return nr().memoizedState}function Hx(s,a,h){var d=ji(s);if(h={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null},jp(s))Vp(a,h);else if(h=hp(s,a,h,d),h!==null){var g=vn();yr(h,s,d,g),Rp(h,a,d)}}function Yx(s,a,h){var d=ji(s),g={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null};if(jp(s))Vp(a,g);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var k=a.lastRenderedState,P=v(k,h);if(g.hasEagerState=!0,g.eagerState=P,pr(P,k)){var E=a.interleaved;E===null?(g.next=g,C0(a)):(g.next=E.next,E.next=g),a.interleaved=g;return}}catch{}finally{}h=hp(s,a,g,d),h!==null&&(g=vn(),yr(h,s,d,g),Rp(h,a,d))}}function jp(s){var a=s.alternate;return s===Tt||a!==null&&a===Tt}function Vp(s,a){to=Ra=!0;var h=s.pending;h===null?a.next=a:(a.next=h.next,h.next=a),s.pending=a}function Rp(s,a,h){if((h&4194240)!==0){var d=a.lanes;d&=s.pendingLanes,h|=d,a.lanes=h,Wu(s,h)}}var Na={readContext:tr,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useInsertionEffect:un,useLayoutEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useMutableSource:un,useSyncExternalStore:un,useId:un,unstable_isNewReconciler:!1},Fx={readContext:tr,useCallback:function(s,a){return jr().memoizedState=[s,a===void 0?null:a],s},useContext:tr,useEffect:Qp,useImperativeHandle:function(s,a,h){return h=h!=null?h.concat([s]):null,La(4194308,4,Ap.bind(null,a,s),h)},useLayoutEffect:function(s,a){return La(4194308,4,s,a)},useInsertionEffect:function(s,a){return La(4,2,s,a)},useMemo:function(s,a){var h=jr();return a=a===void 0?null:a,s=s(),h.memoizedState=[s,a],s},useReducer:function(s,a,h){var d=jr();return a=h!==void 0?h(a):a,d.memoizedState=d.baseState=a,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:a},d.queue=s,s=s.dispatch=Hx.bind(null,Tt,s),[d.memoizedState,s]},useRef:function(s){var a=jr();return s={current:s},a.memoizedState=s},useState:kp,useDebugValue:D0,useDeferredValue:function(s){return jr().memoizedState=s},useTransition:function(){var s=kp(!1),a=s[0];return s=Wx.bind(null,s[1]),jr().memoizedState=s,[a,s]},useMutableSource:function(){},useSyncExternalStore:function(s,a,h){var d=Tt,g=jr();if($t){if(h===void 0)throw Error(t(407));h=h()}else{if(h=a(),qt===null)throw Error(t(349));(ls&30)!==0||xp(d,a,h)}g.memoizedState=h;var v={value:h,getSnapshot:a};return g.queue=v,Qp(vp.bind(null,d,v,s),[s]),d.flags|=2048,io(9,yp.bind(null,d,v,h,a),void 0,null),h},useId:function(){var s=jr(),a=qt.identifierPrefix;if($t){var h=ei,d=Jr;h=(d&~(1<<32-Qn(d)-1)).toString(32)+h,a=":"+a+"R"+h,h=no++,0<h&&(a+="H"+h.toString(32)),a+=":"}else h=Ix++,a=":"+a+"r"+h.toString(32)+":";return s.memoizedState=a},unstable_isNewReconciler:!1},Bx={readContext:tr,useCallback:Tp,useContext:tr,useEffect:z0,useImperativeHandle:Cp,useInsertionEffect:$p,useLayoutEffect:Pp,useMemo:Zp,useReducer:N0,useRef:bp,useState:function(){return N0(ro)},useDebugValue:D0,useDeferredValue:function(s){var a=nr();return Mp(a,Dt.memoizedState,s)},useTransition:function(){var s=N0(ro)[0],a=nr().memoizedState;return[s,a]},useMutableSource:Op,useSyncExternalStore:gp,useId:Ep,unstable_isNewReconciler:!1},qx={readContext:tr,useCallback:Tp,useContext:tr,useEffect:z0,useImperativeHandle:Cp,useInsertionEffect:$p,useLayoutEffect:Pp,useMemo:Zp,useReducer:_0,useRef:bp,useState:function(){return _0(ro)},useDebugValue:D0,useDeferredValue:function(s){var a=nr();return Dt===null?a.memoizedState=s:Mp(a,Dt.memoizedState,s)},useTransition:function(){var s=_0(ro)[0],a=nr().memoizedState;return[s,a]},useMutableSource:Op,useSyncExternalStore:gp,useId:Ep,unstable_isNewReconciler:!1};function Or(s,a){if(s&&s.defaultProps){a=ee({},a),s=s.defaultProps;for(var h in s)a[h]===void 0&&(a[h]=s[h]);return a}return a}function I0(s,a,h,d){a=s.memoizedState,h=h(d,a),h=h==null?a:ee({},a,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var _a={isMounted:function(s){return(s=s._reactInternals)?U(s)===s:!1},enqueueSetState:function(s,a,h){s=s._reactInternals;var d=vn(),g=ji(s),v=ni(d,g);v.payload=a,h!=null&&(v.callback=h),a=Ti(s,v,g),a!==null&&(yr(a,s,g,d),Ma(a,s,g))},enqueueReplaceState:function(s,a,h){s=s._reactInternals;var d=vn(),g=ji(s),v=ni(d,g);v.tag=1,v.payload=a,h!=null&&(v.callback=h),a=Ti(s,v,g),a!==null&&(yr(a,s,g,d),Ma(a,s,g))},enqueueForceUpdate:function(s,a){s=s._reactInternals;var h=vn(),d=ji(s),g=ni(h,d);g.tag=2,a!=null&&(g.callback=a),a=Ti(s,g,d),a!==null&&(yr(a,s,d,h),Ma(a,s,d))}};function Lp(s,a,h,d,g,v,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,v,k):a.prototype&&a.prototype.isPureReactComponent?!Wl(h,d)||!Wl(g,v):!0}function Xp(s,a,h){var d=!1,g=Pi,v=a.contextType;return typeof v=="object"&&v!==null?v=tr(v):(g=Pn(a)?ts:cn.current,d=a.contextTypes,v=(d=d!=null)?Xs(s,g):Pi),a=new a(h,v),s.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_a,s.stateNode=a,a._reactInternals=s,d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=g,s.__reactInternalMemoizedMaskedChildContext=v),a}function Np(s,a,h,d){s=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(h,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(h,d),a.state!==s&&_a.enqueueReplaceState(a,a.state,null)}function W0(s,a,h,d){var g=s.stateNode;g.props=h,g.state=s.memoizedState,g.refs={},T0(s);var v=a.contextType;typeof v=="object"&&v!==null?g.context=tr(v):(v=Pn(a)?ts:cn.current,g.context=Xs(s,v)),g.state=s.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(I0(s,a,v,h),g.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(a=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),a!==g.state&&_a.enqueueReplaceState(g,g.state,null),Ea(s,h,g,d),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308)}function Ys(s,a){try{var h="",d=a;do h+=te(d),d=d.return;while(d);var g=h}catch(v){g=`
39
- Error generating stack: `+v.message+`
40
- `+v.stack}return{value:s,source:a,stack:g,digest:null}}function H0(s,a,h){return{value:s,source:null,stack:h??null,digest:a??null}}function Y0(s,a){try{console.error(a.value)}catch(h){setTimeout(function(){throw h})}}var Ux=typeof WeakMap=="function"?WeakMap:Map;function _p(s,a,h){h=ni(-1,h),h.tag=3,h.payload={element:null};var d=a.value;return h.callback=function(){Fa||(Fa=!0,oh=d),Y0(s,a)},h}function zp(s,a,h){h=ni(-1,h),h.tag=3;var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var g=a.value;h.payload=function(){return d(g)},h.callback=function(){Y0(s,a)}}var v=s.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(h.callback=function(){Y0(s,a),typeof d!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var k=a.stack;this.componentDidCatch(a.value,{componentStack:k!==null?k:""})}),h}function Dp(s,a,h){var d=s.pingCache;if(d===null){d=s.pingCache=new Ux;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(h)||(g.add(h),s=uy.bind(null,s,a,h),a.then(s,s))}function Ip(s){do{var a;if((a=s.tag===13)&&(a=s.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return s;s=s.return}while(s!==null);return null}function Wp(s,a,h,d,g){return(s.mode&1)===0?(s===a?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(a=ni(-1,1),a.tag=2,Ti(h,a,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=g,s)}var Gx=C.ReactCurrentOwner,An=!1;function yn(s,a,h,d){a.child=s===null?up(a,null,h,d):Ds(a,s.child,h,d)}function Hp(s,a,h,d,g){h=h.render;var v=a.ref;return Ws(a,g),d=L0(s,a,h,d,v,g),h=X0(),s!==null&&!An?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~g,ri(s,a,g)):($t&&h&&v0(a),a.flags|=1,yn(s,a,d,g),a.child)}function Yp(s,a,h,d,g){if(s===null){var v=h.type;return typeof v=="function"&&!ph(v)&&v.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(a.tag=15,a.type=v,Fp(s,a,v,d,g)):(s=Ja(h.type,null,d,a,a.mode,g),s.ref=a.ref,s.return=a,a.child=s)}if(v=s.child,(s.lanes&g)===0){var k=v.memoizedProps;if(h=h.compare,h=h!==null?h:Wl,h(k,d)&&s.ref===a.ref)return ri(s,a,g)}return a.flags|=1,s=Ri(v,d),s.ref=a.ref,s.return=a,a.child=s}function Fp(s,a,h,d,g){if(s!==null){var v=s.memoizedProps;if(Wl(v,d)&&s.ref===a.ref)if(An=!1,a.pendingProps=d=v,(s.lanes&g)!==0)(s.flags&131072)!==0&&(An=!0);else return a.lanes=s.lanes,ri(s,a,g)}return F0(s,a,h,d,g)}function Bp(s,a,h){var d=a.pendingProps,g=d.children,v=s!==null?s.memoizedState:null;if(d.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},xt(Bs,Dn),Dn|=h;else{if((h&1073741824)===0)return s=v!==null?v.baseLanes|h:h,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:s,cachePool:null,transitions:null},a.updateQueue=null,xt(Bs,Dn),Dn|=s,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=v!==null?v.baseLanes:h,xt(Bs,Dn),Dn|=d}else v!==null?(d=v.baseLanes|h,a.memoizedState=null):d=h,xt(Bs,Dn),Dn|=d;return yn(s,a,g,h),a.child}function qp(s,a){var h=a.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(a.flags|=512,a.flags|=2097152)}function F0(s,a,h,d,g){var v=Pn(h)?ts:cn.current;return v=Xs(a,v),Ws(a,g),h=L0(s,a,h,d,v,g),d=X0(),s!==null&&!An?(a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~g,ri(s,a,g)):($t&&d&&v0(a),a.flags|=1,yn(s,a,h,g),a.child)}function Up(s,a,h,d,g){if(Pn(h)){var v=!0;ba(a)}else v=!1;if(Ws(a,g),a.stateNode===null)Da(s,a),Xp(a,h,d),W0(a,h,d,g),d=!0;else if(s===null){var k=a.stateNode,P=a.memoizedProps;k.props=P;var E=k.context,H=h.contextType;typeof H=="object"&&H!==null?H=tr(H):(H=Pn(h)?ts:cn.current,H=Xs(a,H));var ae=h.getDerivedStateFromProps,de=typeof ae=="function"||typeof k.getSnapshotBeforeUpdate=="function";de||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==d||E!==H)&&Np(a,k,d,H),Ci=!1;var le=a.memoizedState;k.state=le,Ea(a,d,k,g),E=a.memoizedState,P!==d||le!==E||$n.current||Ci?(typeof ae=="function"&&(I0(a,h,ae,d),E=a.memoizedState),(P=Ci||Lp(a,h,P,d,le,E,H))?(de||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(a.flags|=4194308)):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=E),k.props=d,k.state=E,k.context=H,d=P):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{k=a.stateNode,fp(s,a),P=a.memoizedProps,H=a.type===a.elementType?P:Or(a.type,P),k.props=H,de=a.pendingProps,le=k.context,E=h.contextType,typeof E=="object"&&E!==null?E=tr(E):(E=Pn(h)?ts:cn.current,E=Xs(a,E));var Se=h.getDerivedStateFromProps;(ae=typeof Se=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==de||le!==E)&&Np(a,k,d,E),Ci=!1,le=a.memoizedState,k.state=le,Ea(a,d,k,g);var Qe=a.memoizedState;P!==de||le!==Qe||$n.current||Ci?(typeof Se=="function"&&(I0(a,h,Se,d),Qe=a.memoizedState),(H=Ci||Lp(a,h,H,d,le,Qe,E)||!1)?(ae||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(d,Qe,E),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(d,Qe,E)),typeof k.componentDidUpdate=="function"&&(a.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&le===s.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&le===s.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=Qe),k.props=d,k.state=Qe,k.context=E,d=H):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&le===s.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&le===s.memoizedState||(a.flags|=1024),d=!1)}return B0(s,a,h,d,v,g)}function B0(s,a,h,d,g,v){qp(s,a);var k=(a.flags&128)!==0;if(!d&&!k)return g&&tp(a,h,!1),ri(s,a,v);d=a.stateNode,Gx.current=a;var P=k&&typeof h.getDerivedStateFromError!="function"?null:d.render();return a.flags|=1,s!==null&&k?(a.child=Ds(a,s.child,null,v),a.child=Ds(a,null,P,v)):yn(s,a,P,v),a.memoizedState=d.state,g&&tp(a,h,!0),a.child}function Gp(s){var a=s.stateNode;a.pendingContext?Jd(s,a.pendingContext,a.pendingContext!==a.context):a.context&&Jd(s,a.context,!1),Z0(s,a.containerInfo)}function Kp(s,a,h,d,g){return zs(),b0(g),a.flags|=256,yn(s,a,h,d),a.child}var q0={dehydrated:null,treeContext:null,retryLane:0};function U0(s){return{baseLanes:s,cachePool:null,transitions:null}}function Jp(s,a,h){var d=a.pendingProps,g=Ct.current,v=!1,k=(a.flags&128)!==0,P;if((P=k)||(P=s!==null&&s.memoizedState===null?!1:(g&2)!==0),P?(v=!0,a.flags&=-129):(s===null||s.memoizedState!==null)&&(g|=1),xt(Ct,g&1),s===null)return k0(a),s=a.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((a.mode&1)===0?a.lanes=1:s.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(k=d.children,s=d.fallback,v?(d=a.mode,v=a.child,k={mode:"hidden",children:k},(d&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=k):v=ec(k,d,0,null),s=hs(s,d,h,null),v.return=a,s.return=a,v.sibling=s,a.child=v,a.child.memoizedState=U0(h),a.memoizedState=q0,s):G0(a,k));if(g=s.memoizedState,g!==null&&(P=g.dehydrated,P!==null))return Kx(s,a,k,d,P,g,h);if(v){v=d.fallback,k=a.mode,g=s.child,P=g.sibling;var E={mode:"hidden",children:d.children};return(k&1)===0&&a.child!==g?(d=a.child,d.childLanes=0,d.pendingProps=E,a.deletions=null):(d=Ri(g,E),d.subtreeFlags=g.subtreeFlags&14680064),P!==null?v=Ri(P,v):(v=hs(v,k,h,null),v.flags|=2),v.return=a,d.return=a,d.sibling=v,a.child=d,d=v,v=a.child,k=s.child.memoizedState,k=k===null?U0(h):{baseLanes:k.baseLanes|h,cachePool:null,transitions:k.transitions},v.memoizedState=k,v.childLanes=s.childLanes&~h,a.memoizedState=q0,d}return v=s.child,s=v.sibling,d=Ri(v,{mode:"visible",children:d.children}),(a.mode&1)===0&&(d.lanes=h),d.return=a,d.sibling=null,s!==null&&(h=a.deletions,h===null?(a.deletions=[s],a.flags|=16):h.push(s)),a.child=d,a.memoizedState=null,d}function G0(s,a){return a=ec({mode:"visible",children:a},s.mode,0,null),a.return=s,s.child=a}function za(s,a,h,d){return d!==null&&b0(d),Ds(a,s.child,null,h),s=G0(a,a.pendingProps.children),s.flags|=2,a.memoizedState=null,s}function Kx(s,a,h,d,g,v,k){if(h)return a.flags&256?(a.flags&=-257,d=H0(Error(t(422))),za(s,a,k,d)):a.memoizedState!==null?(a.child=s.child,a.flags|=128,null):(v=d.fallback,g=a.mode,d=ec({mode:"visible",children:d.children},g,0,null),v=hs(v,g,k,null),v.flags|=2,d.return=a,v.return=a,d.sibling=v,a.child=d,(a.mode&1)!==0&&Ds(a,s.child,null,k),a.child.memoizedState=U0(k),a.memoizedState=q0,v);if((a.mode&1)===0)return za(s,a,k,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var P=d.dgst;return d=P,v=Error(t(419)),d=H0(v,d,void 0),za(s,a,k,d)}if(P=(k&s.childLanes)!==0,An||P){if(d=qt,d!==null){switch(k&-k){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(d.suspendedLanes|k))!==0?0:g,g!==0&&g!==v.retryLane&&(v.retryLane=g,ti(s,g),yr(d,s,g,-1))}return dh(),d=H0(Error(t(421))),za(s,a,k,d)}return g.data==="$?"?(a.flags|=128,a.child=s.child,a=hy.bind(null,s),g._reactRetry=a,null):(s=v.treeContext,zn=Qi(g.nextSibling),_n=a,$t=!0,mr=null,s!==null&&(Jn[er++]=Jr,Jn[er++]=ei,Jn[er++]=ns,Jr=s.id,ei=s.overflow,ns=a),a=G0(a,d.children),a.flags|=4096,a)}function em(s,a,h){s.lanes|=a;var d=s.alternate;d!==null&&(d.lanes|=a),A0(s.return,a,h)}function K0(s,a,h,d,g){var v=s.memoizedState;v===null?s.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:h,tailMode:g}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=d,v.tail=h,v.tailMode=g)}function tm(s,a,h){var d=a.pendingProps,g=d.revealOrder,v=d.tail;if(yn(s,a,d.children,h),d=Ct.current,(d&2)!==0)d=d&1|2,a.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=a.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&em(s,h,a);else if(s.tag===19)em(s,h,a);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}if(xt(Ct,d),(a.mode&1)===0)a.memoizedState=null;else switch(g){case"forwards":for(h=a.child,g=null;h!==null;)s=h.alternate,s!==null&&ja(s)===null&&(g=h),h=h.sibling;h=g,h===null?(g=a.child,a.child=null):(g=h.sibling,h.sibling=null),K0(a,!1,g,h,v);break;case"backwards":for(h=null,g=a.child,a.child=null;g!==null;){if(s=g.alternate,s!==null&&ja(s)===null){a.child=g;break}s=g.sibling,g.sibling=h,h=g,g=s}K0(a,!0,h,null,v);break;case"together":K0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Da(s,a){(a.mode&1)===0&&s!==null&&(s.alternate=null,a.alternate=null,a.flags|=2)}function ri(s,a,h){if(s!==null&&(a.dependencies=s.dependencies),os|=a.lanes,(h&a.childLanes)===0)return null;if(s!==null&&a.child!==s.child)throw Error(t(153));if(a.child!==null){for(s=a.child,h=Ri(s,s.pendingProps),a.child=h,h.return=a;s.sibling!==null;)s=s.sibling,h=h.sibling=Ri(s,s.pendingProps),h.return=a;h.sibling=null}return a.child}function Jx(s,a,h){switch(a.tag){case 3:Gp(a),zs();break;case 5:mp(a);break;case 1:Pn(a.type)&&ba(a);break;case 4:Z0(a,a.stateNode.containerInfo);break;case 10:var d=a.type._context,g=a.memoizedProps.value;xt(Ta,d._currentValue),d._currentValue=g;break;case 13:if(d=a.memoizedState,d!==null)return d.dehydrated!==null?(xt(Ct,Ct.current&1),a.flags|=128,null):(h&a.child.childLanes)!==0?Jp(s,a,h):(xt(Ct,Ct.current&1),s=ri(s,a,h),s!==null?s.sibling:null);xt(Ct,Ct.current&1);break;case 19:if(d=(h&a.childLanes)!==0,(s.flags&128)!==0){if(d)return tm(s,a,h);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),xt(Ct,Ct.current),d)break;return null;case 22:case 23:return a.lanes=0,Bp(s,a,h)}return ri(s,a,h)}var nm,J0,rm,im;nm=function(s,a){for(var h=a.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},J0=function(){},rm=function(s,a,h,d){var g=s.memoizedProps;if(g!==d){s=a.stateNode,ss(Er.current);var v=null;switch(h){case"input":g=Xe(s,g),d=Xe(s,d),v=[];break;case"select":g=ee({},g,{value:void 0}),d=ee({},d,{value:void 0}),v=[];break;case"textarea":g=tn(s,g),d=tn(s,d),v=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(s.onclick=Sa)}qn(h,d);var k;h=null;for(H in g)if(!d.hasOwnProperty(H)&&g.hasOwnProperty(H)&&g[H]!=null)if(H==="style"){var P=g[H];for(k in P)P.hasOwnProperty(k)&&(h||(h={}),h[k]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(i.hasOwnProperty(H)?v||(v=[]):(v=v||[]).push(H,null));for(H in d){var E=d[H];if(P=g!=null?g[H]:void 0,d.hasOwnProperty(H)&&E!==P&&(E!=null||P!=null))if(H==="style")if(P){for(k in P)!P.hasOwnProperty(k)||E&&E.hasOwnProperty(k)||(h||(h={}),h[k]="");for(k in E)E.hasOwnProperty(k)&&P[k]!==E[k]&&(h||(h={}),h[k]=E[k])}else h||(v||(v=[]),v.push(H,h)),h=E;else H==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,P=P?P.__html:void 0,E!=null&&P!==E&&(v=v||[]).push(H,E)):H==="children"?typeof E!="string"&&typeof E!="number"||(v=v||[]).push(H,""+E):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(i.hasOwnProperty(H)?(E!=null&&H==="onScroll"&&kt("scroll",s),v||P===E||(v=[])):(v=v||[]).push(H,E))}h&&(v=v||[]).push("style",h);var H=v;(a.updateQueue=H)&&(a.flags|=4)}},im=function(s,a,h,d){h!==d&&(a.flags|=4)};function so(s,a){if(!$t)switch(s.tailMode){case"hidden":a=s.tail;for(var h=null;a!==null;)a.alternate!==null&&(h=a),a=a.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var d=null;h!==null;)h.alternate!==null&&(d=h),h=h.sibling;d===null?a||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function hn(s){var a=s.alternate!==null&&s.alternate.child===s.child,h=0,d=0;if(a)for(var g=s.child;g!==null;)h|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=s,g=g.sibling;else for(g=s.child;g!==null;)h|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=s,g=g.sibling;return s.subtreeFlags|=d,s.childLanes=h,a}function ey(s,a,h){var d=a.pendingProps;switch(S0(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hn(a),null;case 1:return Pn(a.type)&&ka(),hn(a),null;case 3:return d=a.stateNode,Hs(),bt($n),bt(cn),j0(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(Aa(a)?a.flags|=4:s===null||s.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,mr!==null&&(uh(mr),mr=null))),J0(s,a),hn(a),null;case 5:M0(a);var g=ss(eo.current);if(h=a.type,s!==null&&a.stateNode!=null)rm(s,a,h,d,g),s.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!d){if(a.stateNode===null)throw Error(t(166));return hn(a),null}if(s=ss(Er.current),Aa(a)){d=a.stateNode,h=a.type;var v=a.memoizedProps;switch(d[Mr]=a,d[ql]=v,s=(a.mode&1)!==0,h){case"dialog":kt("cancel",d),kt("close",d);break;case"iframe":case"object":case"embed":kt("load",d);break;case"video":case"audio":for(g=0;g<Yl.length;g++)kt(Yl[g],d);break;case"source":kt("error",d);break;case"img":case"image":case"link":kt("error",d),kt("load",d);break;case"details":kt("toggle",d);break;case"input":Je(d,v),kt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!v.multiple},kt("invalid",d);break;case"textarea":_t(d,v),kt("invalid",d)}qn(h,v),g=null;for(var k in v)if(v.hasOwnProperty(k)){var P=v[k];k==="children"?typeof P=="string"?d.textContent!==P&&(v.suppressHydrationWarning!==!0&&va(d.textContent,P,s),g=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(v.suppressHydrationWarning!==!0&&va(d.textContent,P,s),g=["children",""+P]):i.hasOwnProperty(k)&&P!=null&&k==="onScroll"&&kt("scroll",d)}switch(h){case"input":ct(d),Ne(d,v,!0);break;case"textarea":ct(d),hr(d);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(d.onclick=Sa)}d=g,a.updateQueue=d,d!==null&&(a.flags|=4)}else{k=g.nodeType===9?g:g.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=De(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=k.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof d.is=="string"?s=k.createElement(h,{is:d.is}):(s=k.createElement(h),h==="select"&&(k=s,d.multiple?k.multiple=!0:d.size&&(k.size=d.size))):s=k.createElementNS(s,h),s[Mr]=a,s[ql]=d,nm(s,a,!1,!1),a.stateNode=s;e:{switch(k=zt(h,d),h){case"dialog":kt("cancel",s),kt("close",s),g=d;break;case"iframe":case"object":case"embed":kt("load",s),g=d;break;case"video":case"audio":for(g=0;g<Yl.length;g++)kt(Yl[g],s);g=d;break;case"source":kt("error",s),g=d;break;case"img":case"image":case"link":kt("error",s),kt("load",s),g=d;break;case"details":kt("toggle",s),g=d;break;case"input":Je(s,d),g=Xe(s,d),kt("invalid",s);break;case"option":g=d;break;case"select":s._wrapperState={wasMultiple:!!d.multiple},g=ee({},d,{value:void 0}),kt("invalid",s);break;case"textarea":_t(s,d),g=tn(s,d),kt("invalid",s);break;default:g=d}qn(h,g),P=g;for(v in P)if(P.hasOwnProperty(v)){var E=P[v];v==="style"?ft(s,E):v==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&Ht(s,E)):v==="children"?typeof E=="string"?(h!=="textarea"||E!=="")&&gt(s,E):typeof E=="number"&&gt(s,""+E):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(i.hasOwnProperty(v)?E!=null&&v==="onScroll"&&kt("scroll",s):E!=null&&A(s,v,E,k))}switch(h){case"input":ct(s),Ne(s,d,!1);break;case"textarea":ct(s),hr(s);break;case"option":d.value!=null&&s.setAttribute("value",""+Ee(d.value));break;case"select":s.multiple=!!d.multiple,v=d.value,v!=null?Ot(s,!!d.multiple,v,!1):d.defaultValue!=null&&Ot(s,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(s.onclick=Sa)}switch(h){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return hn(a),null;case 6:if(s&&a.stateNode!=null)im(s,a,s.memoizedProps,d);else{if(typeof d!="string"&&a.stateNode===null)throw Error(t(166));if(h=ss(eo.current),ss(Er.current),Aa(a)){if(d=a.stateNode,h=a.memoizedProps,d[Mr]=a,(v=d.nodeValue!==h)&&(s=_n,s!==null))switch(s.tag){case 3:va(d.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&va(d.nodeValue,h,(s.mode&1)!==0)}v&&(a.flags|=4)}else d=(h.nodeType===9?h:h.ownerDocument).createTextNode(d),d[Mr]=a,a.stateNode=d}return hn(a),null;case 13:if(bt(Ct),d=a.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if($t&&zn!==null&&(a.mode&1)!==0&&(a.flags&128)===0)op(),zs(),a.flags|=98560,v=!1;else if(v=Aa(a),d!==null&&d.dehydrated!==null){if(s===null){if(!v)throw Error(t(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(t(317));v[Mr]=a}else zs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;hn(a),v=!1}else mr!==null&&(uh(mr),mr=null),v=!0;if(!v)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=h,a):(d=d!==null,d!==(s!==null&&s.memoizedState!==null)&&d&&(a.child.flags|=8192,(a.mode&1)!==0&&(s===null||(Ct.current&1)!==0?It===0&&(It=3):dh())),a.updateQueue!==null&&(a.flags|=4),hn(a),null);case 4:return Hs(),J0(s,a),s===null&&Fl(a.stateNode.containerInfo),hn(a),null;case 10:return P0(a.type._context),hn(a),null;case 17:return Pn(a.type)&&ka(),hn(a),null;case 19:if(bt(Ct),v=a.memoizedState,v===null)return hn(a),null;if(d=(a.flags&128)!==0,k=v.rendering,k===null)if(d)so(v,!1);else{if(It!==0||s!==null&&(s.flags&128)!==0)for(s=a.child;s!==null;){if(k=ja(s),k!==null){for(a.flags|=128,so(v,!1),d=k.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),a.subtreeFlags=0,d=h,h=a.child;h!==null;)v=h,s=d,v.flags&=14680066,k=v.alternate,k===null?(v.childLanes=0,v.lanes=s,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=k.childLanes,v.lanes=k.lanes,v.child=k.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=k.memoizedProps,v.memoizedState=k.memoizedState,v.updateQueue=k.updateQueue,v.type=k.type,s=k.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return xt(Ct,Ct.current&1|2),a.child}s=s.sibling}v.tail!==null&&nt()>qs&&(a.flags|=128,d=!0,so(v,!1),a.lanes=4194304)}else{if(!d)if(s=ja(k),s!==null){if(a.flags|=128,d=!0,h=s.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),so(v,!0),v.tail===null&&v.tailMode==="hidden"&&!k.alternate&&!$t)return hn(a),null}else 2*nt()-v.renderingStartTime>qs&&h!==1073741824&&(a.flags|=128,d=!0,so(v,!1),a.lanes=4194304);v.isBackwards?(k.sibling=a.child,a.child=k):(h=v.last,h!==null?h.sibling=k:a.child=k,v.last=k)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=nt(),a.sibling=null,h=Ct.current,xt(Ct,d?h&1|2:h&1),a):(hn(a),null);case 22:case 23:return fh(),d=a.memoizedState!==null,s!==null&&s.memoizedState!==null!==d&&(a.flags|=8192),d&&(a.mode&1)!==0?(Dn&1073741824)!==0&&(hn(a),a.subtreeFlags&6&&(a.flags|=8192)):hn(a),null;case 24:return null;case 25:return null}throw Error(t(156,a.tag))}function ty(s,a){switch(S0(a),a.tag){case 1:return Pn(a.type)&&ka(),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return Hs(),bt($n),bt(cn),j0(),s=a.flags,(s&65536)!==0&&(s&128)===0?(a.flags=s&-65537|128,a):null;case 5:return M0(a),null;case 13:if(bt(Ct),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(t(340));zs()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return bt(Ct),null;case 4:return Hs(),null;case 10:return P0(a.type._context),null;case 22:case 23:return fh(),null;case 24:return null;default:return null}}var Ia=!1,fn=!1,ny=typeof WeakSet=="function"?WeakSet:Set,ke=null;function Fs(s,a){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(d){Zt(s,a,d)}else h.current=null}function eh(s,a,h){try{h()}catch(d){Zt(s,a,d)}}var sm=!1;function ry(s,a){if(f0=ca,s=Ld(),i0(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var d=h.getSelection&&h.getSelection();if(d&&d.rangeCount!==0){h=d.anchorNode;var g=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{h.nodeType,v.nodeType}catch{h=null;break e}var k=0,P=-1,E=-1,H=0,ae=0,de=s,le=null;t:for(;;){for(var Se;de!==h||g!==0&&de.nodeType!==3||(P=k+g),de!==v||d!==0&&de.nodeType!==3||(E=k+d),de.nodeType===3&&(k+=de.nodeValue.length),(Se=de.firstChild)!==null;)le=de,de=Se;for(;;){if(de===s)break t;if(le===h&&++H===g&&(P=k),le===v&&++ae===d&&(E=k),(Se=de.nextSibling)!==null)break;de=le,le=de.parentNode}de=Se}h=P===-1||E===-1?null:{start:P,end:E}}else h=null}h=h||{start:0,end:0}}else h=null;for(d0={focusedElem:s,selectionRange:h},ca=!1,ke=a;ke!==null;)if(a=ke,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,ke=s;else for(;ke!==null;){a=ke;try{var Qe=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Qe!==null){var Ae=Qe.memoizedProps,Et=Qe.memoizedState,D=a.stateNode,X=D.getSnapshotBeforeUpdate(a.elementType===a.type?Ae:Or(a.type,Ae),Et);D.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var I=a.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Oe){Zt(a,a.return,Oe)}if(s=a.sibling,s!==null){s.return=a.return,ke=s;break}ke=a.return}return Qe=sm,sm=!1,Qe}function lo(s,a,h){var d=a.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&s)===s){var v=g.destroy;g.destroy=void 0,v!==void 0&&eh(a,h,v)}g=g.next}while(g!==d)}}function Wa(s,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var h=a=a.next;do{if((h.tag&s)===s){var d=h.create;h.destroy=d()}h=h.next}while(h!==a)}}function th(s){var a=s.ref;if(a!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof a=="function"?a(s):a.current=s}}function lm(s){var a=s.alternate;a!==null&&(s.alternate=null,lm(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&(delete a[Mr],delete a[ql],delete a[g0],delete a[Nx],delete a[_x])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function om(s){return s.tag===5||s.tag===3||s.tag===4}function am(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||om(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function nh(s,a,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,a?h.nodeType===8?h.parentNode.insertBefore(s,a):h.insertBefore(s,a):(h.nodeType===8?(a=h.parentNode,a.insertBefore(s,h)):(a=h,a.appendChild(s)),h=h._reactRootContainer,h!=null||a.onclick!==null||(a.onclick=Sa));else if(d!==4&&(s=s.child,s!==null))for(nh(s,a,h),s=s.sibling;s!==null;)nh(s,a,h),s=s.sibling}function rh(s,a,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,a?h.insertBefore(s,a):h.appendChild(s);else if(d!==4&&(s=s.child,s!==null))for(rh(s,a,h),s=s.sibling;s!==null;)rh(s,a,h),s=s.sibling}var nn=null,gr=!1;function Zi(s,a,h){for(h=h.child;h!==null;)cm(s,a,h),h=h.sibling}function cm(s,a,h){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Zr,h)}catch{}switch(h.tag){case 5:fn||Fs(h,a);case 6:var d=nn,g=gr;nn=null,Zi(s,a,h),nn=d,gr=g,nn!==null&&(gr?(s=nn,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):nn.removeChild(h.stateNode));break;case 18:nn!==null&&(gr?(s=nn,h=h.stateNode,s.nodeType===8?O0(s.parentNode,h):s.nodeType===1&&O0(s,h),Xl(s)):O0(nn,h.stateNode));break;case 4:d=nn,g=gr,nn=h.stateNode.containerInfo,gr=!0,Zi(s,a,h),nn=d,gr=g;break;case 0:case 11:case 14:case 15:if(!fn&&(d=h.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var v=g,k=v.destroy;v=v.tag,k!==void 0&&((v&2)!==0||(v&4)!==0)&&eh(h,a,k),g=g.next}while(g!==d)}Zi(s,a,h);break;case 1:if(!fn&&(Fs(h,a),d=h.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=h.memoizedProps,d.state=h.memoizedState,d.componentWillUnmount()}catch(P){Zt(h,a,P)}Zi(s,a,h);break;case 21:Zi(s,a,h);break;case 22:h.mode&1?(fn=(d=fn)||h.memoizedState!==null,Zi(s,a,h),fn=d):Zi(s,a,h);break;default:Zi(s,a,h)}}function um(s){var a=s.updateQueue;if(a!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new ny),a.forEach(function(d){var g=fy.bind(null,s,d);h.has(d)||(h.add(d),d.then(g,g))})}}function xr(s,a){var h=a.deletions;if(h!==null)for(var d=0;d<h.length;d++){var g=h[d];try{var v=s,k=a,P=k;e:for(;P!==null;){switch(P.tag){case 5:nn=P.stateNode,gr=!1;break e;case 3:nn=P.stateNode.containerInfo,gr=!0;break e;case 4:nn=P.stateNode.containerInfo,gr=!0;break e}P=P.return}if(nn===null)throw Error(t(160));cm(v,k,g),nn=null,gr=!1;var E=g.alternate;E!==null&&(E.return=null),g.return=null}catch(H){Zt(g,a,H)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)hm(a,s),a=a.sibling}function hm(s,a){var h=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(xr(a,s),Vr(s),d&4){try{lo(3,s,s.return),Wa(3,s)}catch(Ae){Zt(s,s.return,Ae)}try{lo(5,s,s.return)}catch(Ae){Zt(s,s.return,Ae)}}break;case 1:xr(a,s),Vr(s),d&512&&h!==null&&Fs(h,h.return);break;case 5:if(xr(a,s),Vr(s),d&512&&h!==null&&Fs(h,h.return),s.flags&32){var g=s.stateNode;try{gt(g,"")}catch(Ae){Zt(s,s.return,Ae)}}if(d&4&&(g=s.stateNode,g!=null)){var v=s.memoizedProps,k=h!==null?h.memoizedProps:v,P=s.type,E=s.updateQueue;if(s.updateQueue=null,E!==null)try{P==="input"&&v.type==="radio"&&v.name!=null&&qe(g,v),zt(P,k);var H=zt(P,v);for(k=0;k<E.length;k+=2){var ae=E[k],de=E[k+1];ae==="style"?ft(g,de):ae==="dangerouslySetInnerHTML"?Ht(g,de):ae==="children"?gt(g,de):A(g,ae,de,H)}switch(P){case"input":We(g,v);break;case"textarea":gn(g,v);break;case"select":var le=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!v.multiple;var Se=v.value;Se!=null?Ot(g,!!v.multiple,Se,!1):le!==!!v.multiple&&(v.defaultValue!=null?Ot(g,!!v.multiple,v.defaultValue,!0):Ot(g,!!v.multiple,v.multiple?[]:"",!1))}g[ql]=v}catch(Ae){Zt(s,s.return,Ae)}}break;case 6:if(xr(a,s),Vr(s),d&4){if(s.stateNode===null)throw Error(t(162));g=s.stateNode,v=s.memoizedProps;try{g.nodeValue=v}catch(Ae){Zt(s,s.return,Ae)}}break;case 3:if(xr(a,s),Vr(s),d&4&&h!==null&&h.memoizedState.isDehydrated)try{Xl(a.containerInfo)}catch(Ae){Zt(s,s.return,Ae)}break;case 4:xr(a,s),Vr(s);break;case 13:xr(a,s),Vr(s),g=s.child,g.flags&8192&&(v=g.memoizedState!==null,g.stateNode.isHidden=v,!v||g.alternate!==null&&g.alternate.memoizedState!==null||(lh=nt())),d&4&&um(s);break;case 22:if(ae=h!==null&&h.memoizedState!==null,s.mode&1?(fn=(H=fn)||ae,xr(a,s),fn=H):xr(a,s),Vr(s),d&8192){if(H=s.memoizedState!==null,(s.stateNode.isHidden=H)&&!ae&&(s.mode&1)!==0)for(ke=s,ae=s.child;ae!==null;){for(de=ke=ae;ke!==null;){switch(le=ke,Se=le.child,le.tag){case 0:case 11:case 14:case 15:lo(4,le,le.return);break;case 1:Fs(le,le.return);var Qe=le.stateNode;if(typeof Qe.componentWillUnmount=="function"){d=le,h=le.return;try{a=d,Qe.props=a.memoizedProps,Qe.state=a.memoizedState,Qe.componentWillUnmount()}catch(Ae){Zt(d,h,Ae)}}break;case 5:Fs(le,le.return);break;case 22:if(le.memoizedState!==null){pm(de);continue}}Se!==null?(Se.return=le,ke=Se):pm(de)}ae=ae.sibling}e:for(ae=null,de=s;;){if(de.tag===5){if(ae===null){ae=de;try{g=de.stateNode,H?(v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(P=de.stateNode,E=de.memoizedProps.style,k=E!=null&&E.hasOwnProperty("display")?E.display:null,P.style.display=Ft("display",k))}catch(Ae){Zt(s,s.return,Ae)}}}else if(de.tag===6){if(ae===null)try{de.stateNode.nodeValue=H?"":de.memoizedProps}catch(Ae){Zt(s,s.return,Ae)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===s)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===s)break e;for(;de.sibling===null;){if(de.return===null||de.return===s)break e;ae===de&&(ae=null),de=de.return}ae===de&&(ae=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:xr(a,s),Vr(s),d&4&&um(s);break;case 21:break;default:xr(a,s),Vr(s)}}function Vr(s){var a=s.flags;if(a&2){try{e:{for(var h=s.return;h!==null;){if(om(h)){var d=h;break e}h=h.return}throw Error(t(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(gt(g,""),d.flags&=-33);var v=am(s);rh(s,v,g);break;case 3:case 4:var k=d.stateNode.containerInfo,P=am(s);nh(s,P,k);break;default:throw Error(t(161))}}catch(E){Zt(s,s.return,E)}s.flags&=-3}a&4096&&(s.flags&=-4097)}function iy(s,a,h){ke=s,fm(s)}function fm(s,a,h){for(var d=(s.mode&1)!==0;ke!==null;){var g=ke,v=g.child;if(g.tag===22&&d){var k=g.memoizedState!==null||Ia;if(!k){var P=g.alternate,E=P!==null&&P.memoizedState!==null||fn;P=Ia;var H=fn;if(Ia=k,(fn=E)&&!H)for(ke=g;ke!==null;)k=ke,E=k.child,k.tag===22&&k.memoizedState!==null?mm(g):E!==null?(E.return=k,ke=E):mm(g);for(;v!==null;)ke=v,fm(v),v=v.sibling;ke=g,Ia=P,fn=H}dm(s)}else(g.subtreeFlags&8772)!==0&&v!==null?(v.return=g,ke=v):dm(s)}}function dm(s){for(;ke!==null;){var a=ke;if((a.flags&8772)!==0){var h=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:fn||Wa(5,a);break;case 1:var d=a.stateNode;if(a.flags&4&&!fn)if(h===null)d.componentDidMount();else{var g=a.elementType===a.type?h.memoizedProps:Or(a.type,h.memoizedProps);d.componentDidUpdate(g,h.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var v=a.updateQueue;v!==null&&pp(a,v,d);break;case 3:var k=a.updateQueue;if(k!==null){if(h=null,a.child!==null)switch(a.child.tag){case 5:h=a.child.stateNode;break;case 1:h=a.child.stateNode}pp(a,k,h)}break;case 5:var P=a.stateNode;if(h===null&&a.flags&4){h=P;var E=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&h.focus();break;case"img":E.src&&(h.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var H=a.alternate;if(H!==null){var ae=H.memoizedState;if(ae!==null){var de=ae.dehydrated;de!==null&&Xl(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}fn||a.flags&512&&th(a)}catch(le){Zt(a,a.return,le)}}if(a===s){ke=null;break}if(h=a.sibling,h!==null){h.return=a.return,ke=h;break}ke=a.return}}function pm(s){for(;ke!==null;){var a=ke;if(a===s){ke=null;break}var h=a.sibling;if(h!==null){h.return=a.return,ke=h;break}ke=a.return}}function mm(s){for(;ke!==null;){var a=ke;try{switch(a.tag){case 0:case 11:case 15:var h=a.return;try{Wa(4,a)}catch(E){Zt(a,h,E)}break;case 1:var d=a.stateNode;if(typeof d.componentDidMount=="function"){var g=a.return;try{d.componentDidMount()}catch(E){Zt(a,g,E)}}var v=a.return;try{th(a)}catch(E){Zt(a,v,E)}break;case 5:var k=a.return;try{th(a)}catch(E){Zt(a,k,E)}}}catch(E){Zt(a,a.return,E)}if(a===s){ke=null;break}var P=a.sibling;if(P!==null){P.return=a.return,ke=P;break}ke=a.return}}var sy=Math.ceil,Ha=C.ReactCurrentDispatcher,ih=C.ReactCurrentOwner,rr=C.ReactCurrentBatchConfig,rt=0,qt=null,Xt=null,rn=0,Dn=0,Bs=$i(0),It=0,oo=null,os=0,Ya=0,sh=0,ao=null,Cn=null,lh=0,qs=1/0,ii=null,Fa=!1,oh=null,Mi=null,Ba=!1,Ei=null,qa=0,co=0,ah=null,Ua=-1,Ga=0;function vn(){return(rt&6)!==0?nt():Ua!==-1?Ua:Ua=nt()}function ji(s){return(s.mode&1)===0?1:(rt&2)!==0&&rn!==0?rn&-rn:Dx.transition!==null?(Ga===0&&(Ga=ad()),Ga):(s=dt,s!==0||(s=window.event,s=s===void 0?16:gd(s.type)),s)}function yr(s,a,h,d){if(50<co)throw co=0,ah=null,Error(t(185));El(s,h,d),((rt&2)===0||s!==qt)&&(s===qt&&((rt&2)===0&&(Ya|=h),It===4&&Vi(s,rn)),Tn(s,d),h===1&&rt===0&&(a.mode&1)===0&&(qs=nt()+500,Qa&&Ai()))}function Tn(s,a){var h=s.callbackNode;D5(s,a);var d=la(s,s===qt?rn:0);if(d===0)h!==null&&Ze(h),s.callbackNode=null,s.callbackPriority=0;else if(a=d&-d,s.callbackPriority!==a){if(h!=null&&Ze(h),a===1)s.tag===0?zx(gm.bind(null,s)):np(gm.bind(null,s)),Lx(function(){(rt&6)===0&&Ai()}),h=null;else{switch(cd(d)){case 1:h=Qt;break;case 4:h=Ji;break;case 16:h=xi;break;case 536870912:h=wt;break;default:h=xi}h=Qm(h,Om.bind(null,s))}s.callbackPriority=a,s.callbackNode=h}}function Om(s,a){if(Ua=-1,Ga=0,(rt&6)!==0)throw Error(t(327));var h=s.callbackNode;if(Us()&&s.callbackNode!==h)return null;var d=la(s,s===qt?rn:0);if(d===0)return null;if((d&30)!==0||(d&s.expiredLanes)!==0||a)a=Ka(s,d);else{a=d;var g=rt;rt|=2;var v=ym();(qt!==s||rn!==a)&&(ii=null,qs=nt()+500,cs(s,a));do try{ay();break}catch(P){xm(s,P)}while(!0);$0(),Ha.current=v,rt=g,Xt!==null?a=0:(qt=null,rn=0,a=It)}if(a!==0){if(a===2&&(g=Du(s),g!==0&&(d=g,a=ch(s,g))),a===1)throw h=oo,cs(s,0),Vi(s,d),Tn(s,nt()),h;if(a===6)Vi(s,d);else{if(g=s.current.alternate,(d&30)===0&&!ly(g)&&(a=Ka(s,d),a===2&&(v=Du(s),v!==0&&(d=v,a=ch(s,v))),a===1))throw h=oo,cs(s,0),Vi(s,d),Tn(s,nt()),h;switch(s.finishedWork=g,s.finishedLanes=d,a){case 0:case 1:throw Error(t(345));case 2:us(s,Cn,ii);break;case 3:if(Vi(s,d),(d&130023424)===d&&(a=lh+500-nt(),10<a)){if(la(s,0)!==0)break;if(g=s.suspendedLanes,(g&d)!==d){vn(),s.pingedLanes|=s.suspendedLanes&g;break}s.timeoutHandle=m0(us.bind(null,s,Cn,ii),a);break}us(s,Cn,ii);break;case 4:if(Vi(s,d),(d&4194240)===d)break;for(a=s.eventTimes,g=-1;0<d;){var k=31-Qn(d);v=1<<k,k=a[k],k>g&&(g=k),d&=~v}if(d=g,d=nt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*sy(d/1960))-d,10<d){s.timeoutHandle=m0(us.bind(null,s,Cn,ii),d);break}us(s,Cn,ii);break;case 5:us(s,Cn,ii);break;default:throw Error(t(329))}}}return Tn(s,nt()),s.callbackNode===h?Om.bind(null,s):null}function ch(s,a){var h=ao;return s.current.memoizedState.isDehydrated&&(cs(s,a).flags|=256),s=Ka(s,a),s!==2&&(a=Cn,Cn=h,a!==null&&uh(a)),s}function uh(s){Cn===null?Cn=s:Cn.push.apply(Cn,s)}function ly(s){for(var a=s;;){if(a.flags&16384){var h=a.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var d=0;d<h.length;d++){var g=h[d],v=g.getSnapshot;g=g.value;try{if(!pr(v(),g))return!1}catch{return!1}}}if(h=a.child,a.subtreeFlags&16384&&h!==null)h.return=a,a=h;else{if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Vi(s,a){for(a&=~sh,a&=~Ya,s.suspendedLanes|=a,s.pingedLanes&=~a,s=s.expirationTimes;0<a;){var h=31-Qn(a),d=1<<h;s[h]=-1,a&=~d}}function gm(s){if((rt&6)!==0)throw Error(t(327));Us();var a=la(s,0);if((a&1)===0)return Tn(s,nt()),null;var h=Ka(s,a);if(s.tag!==0&&h===2){var d=Du(s);d!==0&&(a=d,h=ch(s,d))}if(h===1)throw h=oo,cs(s,0),Vi(s,a),Tn(s,nt()),h;if(h===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=a,us(s,Cn,ii),Tn(s,nt()),null}function hh(s,a){var h=rt;rt|=1;try{return s(a)}finally{rt=h,rt===0&&(qs=nt()+500,Qa&&Ai())}}function as(s){Ei!==null&&Ei.tag===0&&(rt&6)===0&&Us();var a=rt;rt|=1;var h=rr.transition,d=dt;try{if(rr.transition=null,dt=1,s)return s()}finally{dt=d,rr.transition=h,rt=a,(rt&6)===0&&Ai()}}function fh(){Dn=Bs.current,bt(Bs)}function cs(s,a){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,Rx(h)),Xt!==null)for(h=Xt.return;h!==null;){var d=h;switch(S0(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&ka();break;case 3:Hs(),bt($n),bt(cn),j0();break;case 5:M0(d);break;case 4:Hs();break;case 13:bt(Ct);break;case 19:bt(Ct);break;case 10:P0(d.type._context);break;case 22:case 23:fh()}h=h.return}if(qt=s,Xt=s=Ri(s.current,null),rn=Dn=a,It=0,oo=null,sh=Ya=os=0,Cn=ao=null,is!==null){for(a=0;a<is.length;a++)if(h=is[a],d=h.interleaved,d!==null){h.interleaved=null;var g=d.next,v=h.pending;if(v!==null){var k=v.next;v.next=g,d.next=k}h.pending=d}is=null}return s}function xm(s,a){do{var h=Xt;try{if($0(),Va.current=Na,Ra){for(var d=Tt.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}Ra=!1}if(ls=0,Bt=Dt=Tt=null,to=!1,no=0,ih.current=null,h===null||h.return===null){It=1,oo=a,Xt=null;break}e:{var v=s,k=h.return,P=h,E=a;if(a=rn,P.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=E,ae=P,de=ae.tag;if((ae.mode&1)===0&&(de===0||de===11||de===15)){var le=ae.alternate;le?(ae.updateQueue=le.updateQueue,ae.memoizedState=le.memoizedState,ae.lanes=le.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var Se=Ip(k);if(Se!==null){Se.flags&=-257,Wp(Se,k,P,v,a),Se.mode&1&&Dp(v,H,a),a=Se,E=H;var Qe=a.updateQueue;if(Qe===null){var Ae=new Set;Ae.add(E),a.updateQueue=Ae}else Qe.add(E);break e}else{if((a&1)===0){Dp(v,H,a),dh();break e}E=Error(t(426))}}else if($t&&P.mode&1){var Et=Ip(k);if(Et!==null){(Et.flags&65536)===0&&(Et.flags|=256),Wp(Et,k,P,v,a),b0(Ys(E,P));break e}}v=E=Ys(E,P),It!==4&&(It=2),ao===null?ao=[v]:ao.push(v),v=k;do{switch(v.tag){case 3:v.flags|=65536,a&=-a,v.lanes|=a;var D=_p(v,E,a);dp(v,D);break e;case 1:P=E;var X=v.type,I=v.stateNode;if((v.flags&128)===0&&(typeof X.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(Mi===null||!Mi.has(I)))){v.flags|=65536,a&=-a,v.lanes|=a;var Oe=zp(v,P,a);dp(v,Oe);break e}}v=v.return}while(v!==null)}Sm(h)}catch(Ce){a=Ce,Xt===h&&h!==null&&(Xt=h=h.return);continue}break}while(!0)}function ym(){var s=Ha.current;return Ha.current=Na,s===null?Na:s}function dh(){(It===0||It===3||It===2)&&(It=4),qt===null||(os&268435455)===0&&(Ya&268435455)===0||Vi(qt,rn)}function Ka(s,a){var h=rt;rt|=2;var d=ym();(qt!==s||rn!==a)&&(ii=null,cs(s,a));do try{oy();break}catch(g){xm(s,g)}while(!0);if($0(),rt=h,Ha.current=d,Xt!==null)throw Error(t(261));return qt=null,rn=0,It}function oy(){for(;Xt!==null;)vm(Xt)}function ay(){for(;Xt!==null&&!pt();)vm(Xt)}function vm(s){var a=bm(s.alternate,s,Dn);s.memoizedProps=s.pendingProps,a===null?Sm(s):Xt=a,ih.current=null}function Sm(s){var a=s;do{var h=a.alternate;if(s=a.return,(a.flags&32768)===0){if(h=ey(h,a,Dn),h!==null){Xt=h;return}}else{if(h=ty(h,a),h!==null){h.flags&=32767,Xt=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{It=6,Xt=null;return}}if(a=a.sibling,a!==null){Xt=a;return}Xt=a=s}while(a!==null);It===0&&(It=5)}function us(s,a,h){var d=dt,g=rr.transition;try{rr.transition=null,dt=1,cy(s,a,h,d)}finally{rr.transition=g,dt=d}return null}function cy(s,a,h,d){do Us();while(Ei!==null);if((rt&6)!==0)throw Error(t(327));h=s.finishedWork;var g=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(t(177));s.callbackNode=null,s.callbackPriority=0;var v=h.lanes|h.childLanes;if(I5(s,v),s===qt&&(Xt=qt=null,rn=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||Ba||(Ba=!0,Qm(xi,function(){return Us(),null})),v=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||v){v=rr.transition,rr.transition=null;var k=dt;dt=1;var P=rt;rt|=4,ih.current=null,ry(s,h),hm(h,s),Cx(d0),ca=!!f0,d0=f0=null,s.current=h,iy(h),St(),rt=P,dt=k,rr.transition=v}else s.current=h;if(Ba&&(Ba=!1,Ei=s,qa=g),v=s.pendingLanes,v===0&&(Mi=null),As(h.stateNode),Tn(s,nt()),a!==null)for(d=s.onRecoverableError,h=0;h<a.length;h++)g=a[h],d(g.value,{componentStack:g.stack,digest:g.digest});if(Fa)throw Fa=!1,s=oh,oh=null,s;return(qa&1)!==0&&s.tag!==0&&Us(),v=s.pendingLanes,(v&1)!==0?s===ah?co++:(co=0,ah=s):co=0,Ai(),null}function Us(){if(Ei!==null){var s=cd(qa),a=rr.transition,h=dt;try{if(rr.transition=null,dt=16>s?16:s,Ei===null)var d=!1;else{if(s=Ei,Ei=null,qa=0,(rt&6)!==0)throw Error(t(331));var g=rt;for(rt|=4,ke=s.current;ke!==null;){var v=ke,k=v.child;if((ke.flags&16)!==0){var P=v.deletions;if(P!==null){for(var E=0;E<P.length;E++){var H=P[E];for(ke=H;ke!==null;){var ae=ke;switch(ae.tag){case 0:case 11:case 15:lo(8,ae,v)}var de=ae.child;if(de!==null)de.return=ae,ke=de;else for(;ke!==null;){ae=ke;var le=ae.sibling,Se=ae.return;if(lm(ae),ae===H){ke=null;break}if(le!==null){le.return=Se,ke=le;break}ke=Se}}}var Qe=v.alternate;if(Qe!==null){var Ae=Qe.child;if(Ae!==null){Qe.child=null;do{var Et=Ae.sibling;Ae.sibling=null,Ae=Et}while(Ae!==null)}}ke=v}}if((v.subtreeFlags&2064)!==0&&k!==null)k.return=v,ke=k;else e:for(;ke!==null;){if(v=ke,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:lo(9,v,v.return)}var D=v.sibling;if(D!==null){D.return=v.return,ke=D;break e}ke=v.return}}var X=s.current;for(ke=X;ke!==null;){k=ke;var I=k.child;if((k.subtreeFlags&2064)!==0&&I!==null)I.return=k,ke=I;else e:for(k=X;ke!==null;){if(P=ke,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:Wa(9,P)}}catch(Ce){Zt(P,P.return,Ce)}if(P===k){ke=null;break e}var Oe=P.sibling;if(Oe!==null){Oe.return=P.return,ke=Oe;break e}ke=P.return}}if(rt=g,Ai(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Zr,s)}catch{}d=!0}return d}finally{dt=h,rr.transition=a}}return!1}function wm(s,a,h){a=Ys(h,a),a=_p(s,a,1),s=Ti(s,a,1),a=vn(),s!==null&&(El(s,1,a),Tn(s,a))}function Zt(s,a,h){if(s.tag===3)wm(s,s,h);else for(;a!==null;){if(a.tag===3){wm(a,s,h);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Mi===null||!Mi.has(d))){s=Ys(h,s),s=zp(a,s,1),a=Ti(a,s,1),s=vn(),a!==null&&(El(a,1,s),Tn(a,s));break}}a=a.return}}function uy(s,a,h){var d=s.pingCache;d!==null&&d.delete(a),a=vn(),s.pingedLanes|=s.suspendedLanes&h,qt===s&&(rn&h)===h&&(It===4||It===3&&(rn&130023424)===rn&&500>nt()-lh?cs(s,0):sh|=h),Tn(s,a)}function km(s,a){a===0&&((s.mode&1)===0?a=1:(a=sa,sa<<=1,(sa&130023424)===0&&(sa=4194304)));var h=vn();s=ti(s,a),s!==null&&(El(s,a,h),Tn(s,h))}function hy(s){var a=s.memoizedState,h=0;a!==null&&(h=a.retryLane),km(s,h)}function fy(s,a){var h=0;switch(s.tag){case 13:var d=s.stateNode,g=s.memoizedState;g!==null&&(h=g.retryLane);break;case 19:d=s.stateNode;break;default:throw Error(t(314))}d!==null&&d.delete(a),km(s,h)}var bm;bm=function(s,a,h){if(s!==null)if(s.memoizedProps!==a.pendingProps||$n.current)An=!0;else{if((s.lanes&h)===0&&(a.flags&128)===0)return An=!1,Jx(s,a,h);An=(s.flags&131072)!==0}else An=!1,$t&&(a.flags&1048576)!==0&&rp(a,Pa,a.index);switch(a.lanes=0,a.tag){case 2:var d=a.type;Da(s,a),s=a.pendingProps;var g=Xs(a,cn.current);Ws(a,h),g=L0(null,a,d,s,g,h);var v=X0();return a.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Pn(d)?(v=!0,ba(a)):v=!1,a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,T0(a),g.updater=_a,a.stateNode=g,g._reactInternals=a,W0(a,d,s,h),a=B0(null,a,d,!0,v,h)):(a.tag=0,$t&&v&&v0(a),yn(null,a,g,h),a=a.child),a;case 16:d=a.elementType;e:{switch(Da(s,a),s=a.pendingProps,g=d._init,d=g(d._payload),a.type=d,g=a.tag=py(d),s=Or(d,s),g){case 0:a=F0(null,a,d,s,h);break e;case 1:a=Up(null,a,d,s,h);break e;case 11:a=Hp(null,a,d,s,h);break e;case 14:a=Yp(null,a,d,Or(d.type,s),h);break e}throw Error(t(306,d,""))}return a;case 0:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Or(d,g),F0(s,a,d,g,h);case 1:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Or(d,g),Up(s,a,d,g,h);case 3:e:{if(Gp(a),s===null)throw Error(t(387));d=a.pendingProps,v=a.memoizedState,g=v.element,fp(s,a),Ea(a,d,null,h);var k=a.memoizedState;if(d=k.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){g=Ys(Error(t(423)),a),a=Kp(s,a,d,h,g);break e}else if(d!==g){g=Ys(Error(t(424)),a),a=Kp(s,a,d,h,g);break e}else for(zn=Qi(a.stateNode.containerInfo.firstChild),_n=a,$t=!0,mr=null,h=up(a,null,d,h),a.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(zs(),d===g){a=ri(s,a,h);break e}yn(s,a,d,h)}a=a.child}return a;case 5:return mp(a),s===null&&k0(a),d=a.type,g=a.pendingProps,v=s!==null?s.memoizedProps:null,k=g.children,p0(d,g)?k=null:v!==null&&p0(d,v)&&(a.flags|=32),qp(s,a),yn(s,a,k,h),a.child;case 6:return s===null&&k0(a),null;case 13:return Jp(s,a,h);case 4:return Z0(a,a.stateNode.containerInfo),d=a.pendingProps,s===null?a.child=Ds(a,null,d,h):yn(s,a,d,h),a.child;case 11:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Or(d,g),Hp(s,a,d,g,h);case 7:return yn(s,a,a.pendingProps,h),a.child;case 8:return yn(s,a,a.pendingProps.children,h),a.child;case 12:return yn(s,a,a.pendingProps.children,h),a.child;case 10:e:{if(d=a.type._context,g=a.pendingProps,v=a.memoizedProps,k=g.value,xt(Ta,d._currentValue),d._currentValue=k,v!==null)if(pr(v.value,k)){if(v.children===g.children&&!$n.current){a=ri(s,a,h);break e}}else for(v=a.child,v!==null&&(v.return=a);v!==null;){var P=v.dependencies;if(P!==null){k=v.child;for(var E=P.firstContext;E!==null;){if(E.context===d){if(v.tag===1){E=ni(-1,h&-h),E.tag=2;var H=v.updateQueue;if(H!==null){H=H.shared;var ae=H.pending;ae===null?E.next=E:(E.next=ae.next,ae.next=E),H.pending=E}}v.lanes|=h,E=v.alternate,E!==null&&(E.lanes|=h),A0(v.return,h,a),P.lanes|=h;break}E=E.next}}else if(v.tag===10)k=v.type===a.type?null:v.child;else if(v.tag===18){if(k=v.return,k===null)throw Error(t(341));k.lanes|=h,P=k.alternate,P!==null&&(P.lanes|=h),A0(k,h,a),k=v.sibling}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===a){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}yn(s,a,g.children,h),a=a.child}return a;case 9:return g=a.type,d=a.pendingProps.children,Ws(a,h),g=tr(g),d=d(g),a.flags|=1,yn(s,a,d,h),a.child;case 14:return d=a.type,g=Or(d,a.pendingProps),g=Or(d.type,g),Yp(s,a,d,g,h);case 15:return Fp(s,a,a.type,a.pendingProps,h);case 17:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Or(d,g),Da(s,a),a.tag=1,Pn(d)?(s=!0,ba(a)):s=!1,Ws(a,h),Xp(a,d,g),W0(a,d,g,h),B0(null,a,d,!0,s,h);case 19:return tm(s,a,h);case 22:return Bp(s,a,h)}throw Error(t(156,a.tag))};function Qm(s,a){return He(s,a)}function dy(s,a,h,d){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ir(s,a,h,d){return new dy(s,a,h,d)}function ph(s){return s=s.prototype,!(!s||!s.isReactComponent)}function py(s){if(typeof s=="function")return ph(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ie)return 11;if(s===ue)return 14}return 2}function Ri(s,a){var h=s.alternate;return h===null?(h=ir(s.tag,a,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=a,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,a=s.dependencies,h.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function Ja(s,a,h,d,g,v){var k=2;if(d=s,typeof s=="function")ph(s)&&(k=1);else if(typeof s=="string")k=5;else e:switch(s){case M:return hs(h.children,g,v,a);case R:k=8,g|=8;break;case F:return s=ir(12,h,a,g|2),s.elementType=F,s.lanes=v,s;case B:return s=ir(13,h,a,g),s.elementType=B,s.lanes=v,s;case ce:return s=ir(19,h,a,g),s.elementType=ce,s.lanes=v,s;case se:return ec(h,g,v,a);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case pe:k=10;break e;case J:k=9;break e;case ie:k=11;break e;case ue:k=14;break e;case he:k=16,d=null;break e}throw Error(t(130,s==null?s:typeof s,""))}return a=ir(k,h,a,g),a.elementType=s,a.type=d,a.lanes=v,a}function hs(s,a,h,d){return s=ir(7,s,d,a),s.lanes=h,s}function ec(s,a,h,d){return s=ir(22,s,d,a),s.elementType=se,s.lanes=h,s.stateNode={isHidden:!1},s}function mh(s,a,h){return s=ir(6,s,null,a),s.lanes=h,s}function Oh(s,a,h){return a=ir(4,s.children!==null?s.children:[],s.key,a),a.lanes=h,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}function my(s,a,h,d,g){this.tag=a,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Iu(0),this.expirationTimes=Iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function gh(s,a,h,d,g,v,k,P,E){return s=new my(s,a,h,P,E),a===1?(a=1,v===!0&&(a|=8)):a=0,v=ir(3,null,null,a),s.current=v,v.stateNode=s,v.memoizedState={element:d,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},T0(v),s}function Oy(s,a,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:d==null?null:""+d,children:s,containerInfo:a,implementation:h}}function $m(s){if(!s)return Pi;s=s._reactInternals;e:{if(U(s)!==s||s.tag!==1)throw Error(t(170));var a=s;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Pn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(t(171))}if(s.tag===1){var h=s.type;if(Pn(h))return ep(s,h,a)}return a}function Pm(s,a,h,d,g,v,k,P,E){return s=gh(h,d,!0,s,g,v,k,P,E),s.context=$m(null),h=s.current,d=vn(),g=ji(h),v=ni(d,g),v.callback=a??null,Ti(h,v,g),s.current.lanes=g,El(s,g,d),Tn(s,d),s}function tc(s,a,h,d){var g=a.current,v=vn(),k=ji(g);return h=$m(h),a.context===null?a.context=h:a.pendingContext=h,a=ni(v,k),a.payload={element:s},d=d===void 0?null:d,d!==null&&(a.callback=d),s=Ti(g,a,k),s!==null&&(yr(s,g,k,v),Ma(s,g,k)),k}function nc(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Am(s,a){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<a?h:a}}function xh(s,a){Am(s,a),(s=s.alternate)&&Am(s,a)}function gy(){return null}var Cm=typeof reportError=="function"?reportError:function(s){console.error(s)};function yh(s){this._internalRoot=s}rc.prototype.render=yh.prototype.render=function(s){var a=this._internalRoot;if(a===null)throw Error(t(409));tc(s,a,null,null)},rc.prototype.unmount=yh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var a=s.containerInfo;as(function(){tc(null,s,null,null)}),a[Gr]=null}};function rc(s){this._internalRoot=s}rc.prototype.unstable_scheduleHydration=function(s){if(s){var a=fd();s={blockedOn:null,target:s,priority:a};for(var h=0;h<wi.length&&a!==0&&a<wi[h].priority;h++);wi.splice(h,0,s),h===0&&md(s)}};function vh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function ic(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Tm(){}function xy(s,a,h,d,g){if(g){if(typeof d=="function"){var v=d;d=function(){var H=nc(k);v.call(H)}}var k=Pm(a,d,s,0,null,!1,!1,"",Tm);return s._reactRootContainer=k,s[Gr]=k.current,Fl(s.nodeType===8?s.parentNode:s),as(),k}for(;g=s.lastChild;)s.removeChild(g);if(typeof d=="function"){var P=d;d=function(){var H=nc(E);P.call(H)}}var E=gh(s,0,!1,null,null,!1,!1,"",Tm);return s._reactRootContainer=E,s[Gr]=E.current,Fl(s.nodeType===8?s.parentNode:s),as(function(){tc(a,E,h,d)}),E}function sc(s,a,h,d,g){var v=h._reactRootContainer;if(v){var k=v;if(typeof g=="function"){var P=g;g=function(){var E=nc(k);P.call(E)}}tc(a,k,s,g)}else k=xy(h,a,s,g,d);return nc(k)}ud=function(s){switch(s.tag){case 3:var a=s.stateNode;if(a.current.memoizedState.isDehydrated){var h=Ml(a.pendingLanes);h!==0&&(Wu(a,h|1),Tn(a,nt()),(rt&6)===0&&(qs=nt()+500,Ai()))}break;case 13:as(function(){var d=ti(s,1);if(d!==null){var g=vn();yr(d,s,1,g)}}),xh(s,1)}},Hu=function(s){if(s.tag===13){var a=ti(s,134217728);if(a!==null){var h=vn();yr(a,s,134217728,h)}xh(s,134217728)}},hd=function(s){if(s.tag===13){var a=ji(s),h=ti(s,a);if(h!==null){var d=vn();yr(h,s,a,d)}xh(s,a)}},fd=function(){return dt},dd=function(s,a){var h=dt;try{return dt=s,a()}finally{dt=h}},mi=function(s,a,h){switch(a){case"input":if(We(s,h),a=h.name,h.type==="radio"&&a!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<h.length;a++){var d=h[a];if(d!==s&&d.form===s.form){var g=wa(d);if(!g)throw Error(t(90));Ge(d),We(d,g)}}}break;case"textarea":gn(s,h);break;case"select":a=h.value,a!=null&&Ot(s,!!h.multiple,a,!1)}},$s=hh,Oi=as;var yy={usingClientEntryPoint:!1,Events:[Ul,Rs,wa,Ur,Qs,hh]},uo={findFiberByHostInstance:es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vy={bundleType:uo.bundleType,version:uo.version,rendererPackageName:uo.rendererPackageName,rendererConfig:uo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=K(s),s===null?null:s.stateNode},findFiberByHostInstance:uo.findFiberByHostInstance||gy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Zr=lc.inject(vy),xn=lc}catch{}}return Zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yy,Zn.createPortal=function(s,a){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vh(a))throw Error(t(200));return Oy(s,a,null,h)},Zn.createRoot=function(s,a){if(!vh(s))throw Error(t(299));var h=!1,d="",g=Cm;return a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onRecoverableError!==void 0&&(g=a.onRecoverableError)),a=gh(s,1,!1,null,null,h,!1,d,g),s[Gr]=a.current,Fl(s.nodeType===8?s.parentNode:s),new yh(a)},Zn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var a=s._reactInternals;if(a===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=K(a),s=s===null?null:s.stateNode,s},Zn.flushSync=function(s){return as(s)},Zn.hydrate=function(s,a,h){if(!ic(a))throw Error(t(200));return sc(null,s,a,!0,h)},Zn.hydrateRoot=function(s,a,h){if(!vh(s))throw Error(t(405));var d=h!=null&&h.hydratedSources||null,g=!1,v="",k=Cm;if(h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(v=h.identifierPrefix),h.onRecoverableError!==void 0&&(k=h.onRecoverableError)),a=Pm(a,null,s,1,h??null,g,!1,v,k),s[Gr]=a.current,Fl(s),d)for(s=0;s<d.length;s++)h=d[s],g=h._getVersion,g=g(h._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[h,g]:a.mutableSourceEagerHydrationData.push(h,g);return new rc(a)},Zn.render=function(s,a,h){if(!ic(a))throw Error(t(200));return sc(null,s,a,!1,h)},Zn.unmountComponentAtNode=function(s){if(!ic(s))throw Error(t(40));return s._reactRootContainer?(as(function(){sc(null,null,s,!1,function(){s._reactRootContainer=null,s[Gr]=null})}),!0):!1},Zn.unstable_batchedUpdates=hh,Zn.unstable_renderSubtreeIntoContainer=function(s,a,h,d){if(!ic(h))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return sc(s,a,h,!1,d)},Zn.version="18.3.1-next-f1338f8080-20240426",Zn}var Xm;function Cy(){if(Xm)return kh.exports;Xm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),kh.exports=Ay(),kh.exports}var Nm;function Ty(){if(Nm)return ac;Nm=1;var r=Cy();return ac.createRoot=r.createRoot,ac.hydrateRoot=r.hydrateRoot,ac}var Zy=Ty();function Vt(r){p.useEffect(r,[])}const My="modulepreload",Ey=function(r){return"/"+r},_m={},jy=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let o=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(t.map(f=>{if(f=Ey(f),f in _m)return;_m[f]=!0;const m=f.endsWith(".css"),O=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${O}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":My,m||(x.as="script"),x.crossOrigin="",x.href=f,u&&x.setAttribute("nonce",u),document.head.appendChild(x),m)return new Promise((S,w)=>{x.addEventListener("load",S),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return i.then(o=>{for(const c of o||[])c.status==="rejected"&&l(c.reason);return e().catch(l)})};function Vy(r){if(typeof r!="object"||r===null)return!0;const e=r;return e.isLoaded===!0||typeof e.totalFrames=="number"&&e.totalFrames>0}function zm(r,e){try{const t=r.contentWindow,n=r.contentDocument;if(!t||!n)return e;for(const l of n.querySelectorAll("video, audio"))if(l instanceof HTMLMediaElement&&l.readyState<HTMLMediaElement.HAVE_FUTURE_DATA)return!0;const i=t.__hfLottie;if(i!=null&&i.length){for(const l of i)if(!Vy(l))return!0}return!1}catch{return e}}const Cg=p.forwardRef(({projectId:r,directUrl:e,onLoad:t,portrait:n},i)=>{const l=p.useRef(null),o=p.useRef(0),c=p.useRef(null),[u,f]=p.useState(!1);return Vt(()=>{const m=l.current;if(!m)return;let O=!1,x;return jy(()=>import("./hyperframes-player-vibA20NC.js"),[]).then(()=>{if(O)return;const S=document.createElement("hyperframes-player"),w=e||`/api/projects/${r}/preview`;S.setAttribute("src",w),S.setAttribute("width",String(n?1080:1920)),S.setAttribute("height",String(n?1920:1080)),S.style.width="100%",S.style.height="100%",S.style.display="block",m.appendChild(S);const b=S.iframeElement;typeof i=="function"?i(b):i&&(i.current=b);const $=_=>_.stopImmediatePropagation();S.addEventListener("click",$,{capture:!0});const T=()=>{if(o.current++,o.current>1){m.classList.remove("preview-revealing"),m.offsetWidth,m.classList.add("preview-revealing");const A=()=>m.classList.remove("preview-revealing");m.addEventListener("animationend",A,{once:!0})}t(),c.current&&clearInterval(c.current);let _=zm(b,!1);if(_){f(!0);let A=0;c.current=setInterval(()=>{A+=1,_=zm(b,_),(!_||A>100)&&(c.current&&clearInterval(c.current),c.current=null,f(!1),_&&console.debug("[Player] Asset-loading overlay timed out after 10s; hiding anyway. Check network or asset integrity."))},100)}else f(!1)};b.addEventListener("load",T),x=()=>{b.removeEventListener("load",T),S.removeEventListener("click",$,{capture:!0}),c.current&&clearInterval(c.current),c.current=null,m.removeChild(S),typeof i=="function"?i(null):i&&(i.current=null)}}),()=>{O=!0,x==null||x()}}),y.jsxs("div",{className:"relative w-full h-full max-w-full max-h-full overflow-hidden bg-black flex items-center justify-center",children:[y.jsx("div",{ref:l,className:"w-full h-full"}),u&&y.jsxs("div",{className:"absolute inset-0 bg-black/80 flex flex-col items-center justify-center z-20 pointer-events-none",children:[y.jsx("div",{className:"w-8 h-8 border-2 border-white/20 border-t-white rounded-full animate-spin"}),y.jsx("span",{className:"text-white/60 text-xs mt-3",children:"Loading assets…"})]})]})});Cg.displayName="Player";const m1="Shift+T",Tg="hf-studio-timeline-editor-hint-dismissed";function Ry(r){var i,l,o;if(!r||typeof r!="object")return!1;const e=r,t=(i=e.tagName)==null?void 0:i.toLowerCase();if(t==="input"||t==="textarea"||t==="select"||e.isContentEditable)return!0;const n=(l=e.getAttribute)==null?void 0:l.call(e,"role");return n==="textbox"||n==="searchbox"||n==="combobox"?!0:!!((o=e.closest)!=null&&o.call(e,"input, textarea, select, [contenteditable='true'], [role='textbox'], .cm-editor"))}function Ly(r){return r.metaKey||r.ctrlKey||r.altKey||!r.shiftKey||r.key.toLowerCase()!=="t"?!1:!Ry(r.target)}function Zg(r){return`${r?"Hide":"Show"} timeline editor (${m1})`}function Xy(){return typeof window>"u"?!1:window.localStorage.getItem(Tg)==="1"}function Ny(r){if(!(typeof window>"u")){window.localStorage.setItem(Tg,"1");return}}function lr(r){if(!Number.isFinite(r)||r<0)return"0:00";const e=Math.floor(r/60),t=Math.floor(r%60);return`${e}:${t.toString().padStart(2,"0")}`}const Dm=r=>{let e;const t=new Set,n=(f,m)=>{const O=typeof f=="function"?f(e):f;if(!Object.is(O,e)){const x=e;e=m??(typeof O!="object"||O===null)?O:Object.assign({},e,O),t.forEach(S=>S(e,x))}},i=()=>e,c={setState:n,getState:i,getInitialState:()=>u,subscribe:f=>(t.add(f),()=>t.delete(f))},u=e=r(n,i,c);return c},_y=(r=>r?Dm(r):Dm),zy=r=>r;function Dy(r,e=zy){const t=oc.useSyncExternalStore(r.subscribe,oc.useCallback(()=>e(r.getState()),[r,e]),oc.useCallback(()=>e(r.getInitialState()),[r,e]));return oc.useDebugValue(t),t}const Im=r=>{const e=_y(r),t=n=>Dy(e,n);return Object.assign(t,e),t},Mg=(r=>r?Im(r):Im),$h=new Set,Eo={notify:r=>$h.forEach(e=>e(r)),subscribe:r=>($h.add(r),()=>$h.delete(r))},Me=Mg(r=>({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,playbackRate:1,zoomMode:"fit",manualZoomPercent:100,setIsPlaying:e=>r({isPlaying:e}),setPlaybackRate:e=>r({playbackRate:e}),setZoomMode:e=>r({zoomMode:e}),setManualZoomPercent:e=>r({manualZoomPercent:Math.max(10,Math.min(2e3,Math.round(e)))}),setCurrentTime:e=>r({currentTime:Number.isFinite(e)?e:0}),setDuration:e=>r({duration:Number.isFinite(e)?e:0}),setTimelineReady:e=>r({timelineReady:e}),setElements:e=>r({elements:e}),setSelectedElementId:e=>r({selectedElementId:e}),updateElement:(e,t)=>r(n=>({elements:n.elements.map(i=>(i.key??i.id)===e?{...i,...t}:i)})),reset:()=>r({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null})})),Iy=[.25,.5,1,1.5,2],Wy=8;function Hy(r,e,t){if(!Number.isFinite(t)||t<=0)return 0;const n=(r-e)/t,i=Math.max(0,Math.min(1,n)),l=Math.min(.5,Wy/t);return i<=l?0:i>=1-l?1:i}const Yy=p.memo(function({onTogglePlay:e,onSeek:t,timelineVisible:n,onToggleTimeline:i}){const l=Me(R=>R.isPlaying),o=Me(R=>R.duration),c=Me(R=>R.timelineReady),u=Me(R=>R.playbackRate),f=Me.getState().setPlaybackRate,[m,O]=p.useState(!1),x=p.useRef(null),S=p.useRef(null),w=p.useRef(null),b=p.useRef(null),$=p.useRef(null),T=p.useRef(null),_=p.useRef(!1),A=p.useRef(0),C=p.useRef(o);C.current=o,Vt(()=>{const R=J=>{A.current=J;const ie=C.current,B=ie>0?Math.min(100,J/ie*100):0;x.current&&(x.current.style.width=`${B}%`),S.current&&(S.current.style.left=`${B}%`),w.current&&(w.current.textContent=lr(J)),$.current&&$.current.setAttribute("aria-valuenow",String(Math.round(J)))},F=Eo.subscribe(R);R(Me.getState().currentTime);const pe=setInterval(()=>{const J=Me.getState().currentTime,ie=Me.getState().duration;if(ie>0&&J>0){const B=Math.min(100,J/ie*100);x.current&&(x.current.style.width=`${B}%`),S.current&&(S.current.style.left=`${B}%`)}},500);return()=>{F(),clearInterval(pe)}}),p.useEffect(()=>{if(!m)return;const R=F=>{T.current&&!T.current.contains(F.target)&&O(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[m]);const j=p.useCallback(R=>{const F=b.current;if(!F||o<=0)return;const pe=F.getBoundingClientRect(),J=Hy(R,pe.left,pe.width),ie=J*100;x.current&&(x.current.style.width=`${ie}%`),S.current&&(S.current.style.left=`${ie}%`),t(J*o)},[o,t]),N=p.useCallback(R=>{if(R.button!==0)return;R.preventDefault(),R.currentTarget.focus(),_.current=!0;const F=R.currentTarget,pe=R.pointerId;try{F.setPointerCapture(pe)}catch{}j(R.clientX);const J=ue=>{ue.pointerId===pe&&_.current&&j(ue.clientX)},ie=()=>{_.current=!1;try{F.releasePointerCapture(pe)}catch{}F.removeEventListener("pointermove",J),F.removeEventListener("pointerup",B),F.removeEventListener("pointercancel",B),window.removeEventListener("pointerup",B),window.removeEventListener("pointercancel",B),document.removeEventListener("visibilitychange",ce),window.removeEventListener("blur",ie)},B=ue=>{ue.pointerId===pe&&ie()},ce=()=>{document.visibilityState==="hidden"&&ie()};F.addEventListener("pointermove",J),F.addEventListener("pointerup",B),F.addEventListener("pointercancel",B),window.addEventListener("pointerup",B),window.addEventListener("pointercancel",B),document.addEventListener("visibilitychange",ce),window.addEventListener("blur",ie)},[j]),M=p.useCallback(R=>{if(!c||o<=0)return;const F=R.shiftKey?5:1;R.key==="ArrowLeft"?(R.preventDefault(),t(Math.max(0,A.current-F))):R.key==="ArrowRight"&&(R.preventDefault(),t(Math.min(o,A.current+F)))},[c,o,t]);return y.jsxs("div",{className:"px-4 py-2 flex items-center gap-3",style:{borderTop:"1px solid rgba(255,255,255,0.04)",paddingBottom:"calc(0.5rem + env(safe-area-inset-bottom))"},children:[y.jsx("button",{type:"button","aria-label":l?"Pause":"Play",onClick:e,disabled:!c,className:"flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-lg disabled:opacity-30 disabled:pointer-events-none transition-colors",style:{background:"rgba(255,255,255,0.06)"},children:l?y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:[y.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),y.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}):y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:y.jsx("polygon",{points:"6,3 20,12 6,21"})})}),y.jsxs("span",{className:"font-mono text-[11px] tabular-nums flex-shrink-0 min-w-[72px]",style:{color:"#A1A1AA"},children:[y.jsx("span",{ref:w,children:lr(0)}),y.jsx("span",{style:{color:"#3F3F46",margin:"0 2px"},children:"/"}),y.jsx("span",{style:{color:"#52525B"},children:lr(o)})]}),y.jsx("div",{ref:R=>{b.current=R,$.current=R},role:"slider",tabIndex:0,"aria-label":"Seek","aria-valuemin":0,"aria-valuemax":Math.round(o),"aria-valuenow":0,className:"flex-1 h-6 flex items-center cursor-pointer group",style:{touchAction:"none"},onPointerDown:N,onKeyDown:M,children:y.jsxs("div",{className:"w-full rounded-full relative",style:{background:"rgba(255,255,255,0.15)",height:"3px"},children:[y.jsx("div",{ref:x,className:"absolute top-0 bottom-0 left-0 z-[1] rounded-full",style:{background:"linear-gradient(90deg, var(--hf-accent, #3CE6AC), #2BBFA0)"}}),y.jsx("div",{ref:S,className:"absolute top-1/2 z-[2] w-3 h-3 rounded-full -translate-y-1/2 -translate-x-1/2 transition-transform group-hover:scale-125",style:{background:"var(--hf-accent, #3CE6AC)",boxShadow:"0 0 6px rgba(60,230,172,0.4), 0 1px 4px rgba(0,0,0,0.4)"}})]})}),y.jsxs("div",{ref:T,className:"relative flex-shrink-0",children:[y.jsx("button",{type:"button",onClick:()=>O(R=>!R),className:"px-2 py-1 rounded-md text-[10px] font-mono tabular-nums transition-colors",style:{color:"#71717A",background:"rgba(255,255,255,0.04)"},children:u===1?"1x":`${u}x`}),m&&y.jsx("div",{className:"absolute bottom-full right-0 mb-1.5 rounded-lg shadow-xl z-50 min-w-[56px] overflow-hidden",style:{background:"#161618",border:"1px solid rgba(255,255,255,0.08)"},children:Iy.map(R=>y.jsxs("button",{onClick:()=>{f(R),O(!1)},className:"block w-full px-3 py-1.5 text-[11px] text-left font-mono tabular-nums transition-colors",style:{color:R===u?"#FAFAFA":"#71717A",background:R===u?"rgba(255,255,255,0.06)":"transparent"},onMouseEnter:F=>{R!==u&&(F.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:F=>{R!==u&&(F.currentTarget.style.background="transparent")},children:[R,"x"]},R))})]}),i!==void 0&&y.jsxs("button",{type:"button",onClick:i,className:`h-7 flex items-center gap-1.5 rounded-md border px-2.5 text-[11px] font-medium transition-colors ${n?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-300 hover:border-neutral-500 hover:bg-neutral-800"}`,title:Zg(!!n),"aria-label":n?"Hide timeline editor":"Show timeline editor",children:[y.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[y.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),y.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),y.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]}),y.jsx("span",{children:"Timeline"}),y.jsx("span",{className:"hidden md:inline rounded bg-black/20 px-1 py-0.5 text-[9px] font-mono opacity-70",children:m1})]})]})}),Wm="#3CE6AC",Fy="#E9FFF6",By="rgba(60,230,172,0.12)";function Nr(){return{clip:Wm,accent:Wm,label:Fy,iconBackground:By}}const Hm={video:Nr(),audio:Nr(),img:Nr(),div:Nr(),span:Nr(),p:Nr(),h1:Nr(),section:Nr(),sfx:Nr()},qy=Nr(),Eg={shellBackground:"#0A0E15",shellBorder:"rgba(255,255,255,0.05)",rulerBorder:"rgba(255,255,255,0.045)",rowBackground:"#0A0E15",rowBorder:"rgba(255,255,255,0.05)",gutterBackground:"#0D121B",gutterBorder:"rgba(255,255,255,0.05)",textPrimary:"#E8EDF5",textSecondary:"#8391A8",tickText:"rgba(131,145,168,0.92)",tickMajor:"rgba(255,255,255,0.13)",tickMinor:"rgba(255,255,255,0.08)",clipBackground:"linear-gradient(180deg, rgba(20,25,34,0.98), rgba(14,18,27,0.98))",clipBackgroundActive:"linear-gradient(180deg, rgba(24,30,40,0.99), rgba(15,20,29,0.99))",clipBorder:"rgba(255,255,255,0.07)",clipBorderHover:"rgba(255,255,255,0.11)",clipBorderActive:"rgba(255,255,255,0.14)",clipShadow:"inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.18)",clipShadowHover:"inset 0 1px 0 rgba(255,255,255,0.035), 0 8px 20px rgba(0,0,0,0.2)",clipShadowActive:"inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.035)",clipShadowDragging:"inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 36px rgba(0,0,0,0.34), 0 8px 16px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04)",handleColor:"rgba(255,255,255,0.11)",panelResizeSeam:"rgba(255,255,255,0.12)",panelResizeActive:"rgba(255,255,255,0.24)",clipRadius:"11px 15px 13px 9px / 10px 14px 12px 10px"};function Uy(r){const e=r.toLowerCase();return e.startsWith("h")&&e.length===2&&"123456".includes(e[1]??"")?Hm.h1:Hm[e]??qy}function Gy({isHovered:r,isSelected:e,isDragging:t}){return t?.95:e?.82:r?.76:0}function Ky({element:r,draggedElementId:e,previewStart:t,previewTrack:n}){return r.id!==e||t===null||n===null?r:{...r,start:t,track:n}}const Ym=100;function nl(r){return Math.round(r*Ym)/Ym}function jo(r,e,t){return Math.min(Math.max(r,e),t)}const Fm=.55,cc=40,Bm=12;function qm(r,e,t){const n=(i,l,o)=>{if(o<i+cc){const c=Math.max(0,1-(o-i)/cc);return-Math.round(Bm*c)}if(o>l-cc){const c=Math.max(0,1-(l-o)/cc);return Math.round(Bm*c)}return 0};return{x:n(r.left,r.right,e),y:n(r.top,r.bottom,t)}}function Jy(r,e,t){const n=(r.currentScrollLeft??0)-(r.originScrollLeft??0),i=(r.currentScrollTop??0)-(r.originScrollTop??0),l=(e-r.originClientX+n)/Math.max(r.pixelsPerSecond,1),o=(t-r.originClientY+i)/Math.max(r.trackHeight,1),c=Math.round(o),u=Math.max(0,r.trackOrder.indexOf(r.track)),f=u+c,m=jo(f,0,Math.max(0,r.trackOrder.length-1)),O=Math.min(...r.trackOrder),x=Math.max(...r.trackOrder);let S=r.trackOrder[m]??r.track;const w=u===0,b=u===r.trackOrder.length-1;return w&&f<0&&u+o<=-Fm?S=O-1:b&&f>r.trackOrder.length-1&&u+o>=r.trackOrder.length-1+Fm&&(S=x+1),{start:jo(nl(r.start+l),0,Math.max(0,r.maxStart)),track:S}}function Ph(r){const e=Array.from(new Set(r)).sort((n,i)=>n-i),t=e.length;return new Map(e.map((n,i)=>[n,t-i]))}function ev(r,e,t){const n=Math.max(.05,r.minDuration??.1),i=(t-r.originClientX)/Math.max(r.pixelsPerSecond,1);if(e==="end"){const S=jo(nl(r.duration+i),n,Math.max(n,r.maxEnd-r.start));return{start:r.start,duration:S,playbackStart:r.playbackStart}}const l=Math.max(.1,r.playbackRate??1),o=r.playbackStart!=null?r.playbackStart/l:Number.POSITIVE_INFINITY,c=-Math.min(r.start-r.minStart,o),u=r.duration-n,f=jo(i,c,u),m=nl(r.start+f),O=nl(r.duration-f),x=r.playbackStart!=null?nl(Math.max(0,r.playbackStart+f*l)):void 0;return{start:m,duration:O,playbackStart:x}}function tv(r){if(r.compositionSrc||r.playbackStartAttr!=null||r.sourceDuration!=null&&Number.isFinite(r.sourceDuration)&&r.sourceDuration>0)return!0;const e=r.tag.toLowerCase();return["video","audio","img"].includes(e)}function nv(r){return!!(r.domId||r.selector)}function rv(r){if(r.playbackStartAttr!=null||r.playbackStart!=null)return!0;const e=r.tag.toLowerCase();return["video","audio"].includes(e)}function jg(r){const e=nv(r),t=Number.isFinite(r.duration)&&r.duration>0,n=tv(r);return{canMove:e&&n,canTrimEnd:e&&t&&n,canTrimStart:e&&t&&rv(r)}}function iv(r){if(r.capabilities.canMove)return null;const e=Math.max(0,r.width),t=jo(r.offsetX,0,e),n=Math.max(0,r.handleWidth);return t<=n&&!r.capabilities.canTrimStart?"resize-start":t>=Math.max(0,e-n)&&!r.capabilities.canTrimEnd?"resize-end":"move"}function sv(r,e){return{start:r.start,end:r.start+r.duration,anchorX:e.anchorX,anchorY:e.anchorY}}function lv({rangeStart:r,rangeEnd:e,elements:t,prompt:n}){const i=Math.min(r,e),l=Math.max(r,e),o=t.map(c=>`- #${c.id} (${c.tag}) — ${lr(c.start)} to ${lr(c.start+c.duration)}, track ${c.track}`).join(`
41
- `);return`Edit the following HyperFrames composition:
42
-
43
- Time range: ${lr(i)} — ${lr(l)}
44
-
45
- Elements in range:
46
- ${o||"(none)"}
47
-
48
- User request:
49
- ${n.trim()||"(no prompt provided)"}
50
-
51
- Instructions:
52
- Modify only the elements listed above within the specified time range.
53
- The composition uses HyperFrames data attributes (data-start, data-duration, data-track-index) and GSAP for animations.
54
- Preserve all other elements and timing outside this range.`}function Um(r){return r.trim()}function fs(r){return Number(nl(r).toFixed(2)).toString()}const Gm=p.memo(function({el:e,pps:t,clipY:n,isSelected:i,isHovered:l,isDragging:o=!1,hasCustomContent:c,theme:u=Eg,trackStyle:f,isComposition:m,onHoverStart:O,onHoverEnd:x,onPointerDown:S,onResizeStart:w,onClick:b,onDoubleClick:$,children:T}){const _=e.start*t,A=Math.max(e.duration*t,4),C=Gy({isHovered:l,isSelected:i,isDragging:o}),j=i?u.clipBorderActive:l?u.clipBorderHover:u.clipBorder,N=o?u.clipShadowDragging:i?u.clipShadowActive:l?u.clipShadowHover:u.clipShadow,M=jg(e),R=C>.01;return y.jsxs("div",{"data-clip":"true",className:c?"absolute overflow-hidden":"absolute flex items-center overflow-hidden",style:{left:_,width:A,top:n,bottom:n,borderRadius:u.clipRadius,background:i?`linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)), linear-gradient(120deg, ${f.accent}22, transparent 28%), ${u.clipBackgroundActive}`:`linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), linear-gradient(120deg, ${f.accent}1e, transparent 28%), ${u.clipBackground}`,backgroundImage:m&&!c?"repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255,255,255,0.05) 3px, rgba(255,255,255,0.05) 6px)":void 0,border:`1px solid ${j}`,boxShadow:N,transition:"border-color 120ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out",zIndex:o?20:i?10:l?5:1,cursor:M.canMove?"grab":"default",transform:o?"translateY(-1px)":void 0},title:m?`${e.compositionSrc} • Double-click to open`:`${e.id||e.tag} • ${e.start.toFixed(1)}s – ${(e.start+e.duration).toFixed(1)}s`,onPointerEnter:O,onPointerLeave:x,onPointerDown:S,onClick:b,onDoubleClick:$,children:[y.jsx("div",{"aria-hidden":"true",role:"presentation",onPointerDown:F=>w==null?void 0:w("start",F),style:{position:"absolute",left:0,top:0,bottom:0,width:18,opacity:R&&M.canTrimStart?1:0,pointerEvents:w&&M.canTrimStart?"auto":"none",zIndex:4,transition:"opacity 120ms ease-out",cursor:"col-resize",background:R&&M.canTrimStart?`linear-gradient(90deg, ${f.accent}4d 0%, ${f.accent}22 42%, transparent 100%)`:"transparent"},children:y.jsx("div",{style:{position:"absolute",left:6,top:7,bottom:7,width:3,borderRadius:999,background:u.handleColor,boxShadow:`0 0 0 1px ${f.accent}38, 0 0 12px ${f.accent}18`,opacity:C,pointerEvents:"none"}})}),y.jsx("div",{"aria-hidden":"true",role:"presentation",onPointerDown:F=>w==null?void 0:w("end",F),style:{position:"absolute",right:0,top:0,bottom:0,width:18,opacity:R&&M.canTrimEnd?1:0,pointerEvents:w&&M.canTrimEnd?"auto":"none",zIndex:4,transition:"opacity 120ms ease-out",cursor:"col-resize",background:R&&M.canTrimEnd?`linear-gradient(270deg, ${f.accent}4d 0%, ${f.accent}22 42%, transparent 100%)`:"transparent"},children:y.jsx("div",{style:{position:"absolute",right:6,top:7,bottom:7,width:3,borderRadius:999,background:u.handleColor,boxShadow:`0 0 0 1px ${f.accent}38, 0 0 12px ${f.accent}18`,opacity:C,pointerEvents:"none"}})}),T]})});function ov({rangeStart:r,rangeEnd:e,anchorX:t,anchorY:n,onClose:i}){const l=Me(j=>j.elements),[o,c]=p.useState(""),[u,f]=p.useState(!1),[m,O]=p.useState(!1),x=p.useRef(null),S=p.useRef(null),w=Math.min(r,e),b=Math.max(r,e),$=p.useMemo(()=>l.filter(j=>{const N=j.start+j.duration;return j.start<b&&N>w}),[l,w,b]);Vt(()=>{setTimeout(()=>{var j;return(j=S.current)==null?void 0:j.focus()},50)}),Vt(()=>{const j=N=>{N.key==="Escape"&&i()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)}),Vt(()=>{const j=N=>{x.current&&!x.current.contains(N.target)&&i()};return setTimeout(()=>window.addEventListener("mousedown",j),100),()=>window.removeEventListener("mousedown",j)});const T=p.useCallback(()=>lv({rangeStart:w,rangeEnd:b,elements:$,prompt:o}),[w,b,$,o]),_=p.useCallback(async()=>{try{await navigator.clipboard.writeText(T())}catch{const j=document.createElement("textarea");j.value=T(),document.body.appendChild(j),j.select(),document.execCommand("copy"),document.body.removeChild(j)}f(!0),setTimeout(()=>{f(!1),i()},800)},[T,i]),A=p.useCallback(async()=>{const j=Um(o);if(j){try{await navigator.clipboard.writeText(j)}catch{const N=document.createElement("textarea");N.value=j,document.body.appendChild(N),N.select(),document.execCommand("copy"),document.body.removeChild(N)}O(!0),setTimeout(()=>{O(!1)},800)}},[o]),C={position:"fixed",left:Math.max(8,Math.min(t-160,window.innerWidth-336)),top:Math.max(8,n-280),zIndex:200};return y.jsx("div",{ref:x,style:C,children:y.jsxs("div",{className:"w-80 bg-neutral-900 border border-neutral-700/60 rounded-xl shadow-2xl shadow-black/40 overflow-hidden",children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-neutral-800/60",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-studio-accent"}),y.jsxs("span",{className:"text-[11px] font-medium text-neutral-300",children:[lr(w)," — ",lr(b)]})]}),y.jsxs("span",{className:"text-[10px] text-neutral-600",children:[$.length," element",$.length!==1?"s":""]})]}),$.length>0&&y.jsx("div",{className:"px-4 py-2 border-b border-neutral-800/40 max-h-24 overflow-y-auto",children:$.map(j=>y.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[y.jsxs("span",{className:"text-[10px] font-mono text-studio-accent/80",children:["#",j.id]}),y.jsx("span",{className:"text-[10px] text-neutral-600",children:j.tag})]},j.id))}),y.jsx("div",{className:"p-3",children:y.jsx("textarea",{ref:S,value:o,onChange:j=>c(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),_())},placeholder:"What should change?",rows:2,className:"w-full px-3 py-2 text-xs bg-neutral-800/60 border border-neutral-700/40 rounded-lg text-neutral-200 placeholder:text-neutral-600 resize-none focus:outline-none focus:border-studio-accent/40 transition-colors"})}),y.jsxs("div",{className:"grid grid-cols-2 gap-2 px-3 pb-3",children:[y.jsx("button",{onClick:A,disabled:!Um(o),className:`py-1.5 text-[11px] font-medium rounded-lg transition-all border ${m?"bg-green-500/20 text-green-400 border-green-500/30":"bg-neutral-800/70 text-neutral-200 border-neutral-700/50 hover:bg-neutral-800"} disabled:opacity-50 disabled:cursor-not-allowed`,children:m?"Prompt Copied!":"Copy Prompt"}),y.jsxs("button",{onClick:_,className:`py-1.5 text-[11px] font-medium rounded-lg transition-all ${u?"bg-green-500/20 text-green-400 border border-green-500/30":"bg-studio-accent/15 text-studio-accent border border-studio-accent/25 hover:bg-studio-accent/25"}`,children:[u?"Copied!":"Copy to Agent",!u&&y.jsx("span",{className:"text-[9px] text-studio-accent/50 ml-1.5",children:"Cmd+Enter"})]})]})]})})}const av=10,cv=2e3,uv=.8,hv=1.25;function Vg(r){return Number.isFinite(r)?Math.max(av,Math.min(cv,Math.round(r))):100}function O1(r,e){return r==="fit"?100:Vg(e)}function fv(r,e,t){if(!Number.isFinite(r)||r<=0)return 100;const n=O1(e,t);return e==="fit"?r:r*(n/100)}function Km(r,e,t){const n=O1(e,t),i=r==="in"?n*hv:n*uv;return Vg(i)}const g1=/\.(jpg|jpeg|png|gif|webp|svg|ico)$/i,x1=/\.(mp4|webm|mov)$/i,y1=/\.(mp3|wav|ogg|m4a|aac)$/i,Rg=/\.(mp4|webm|mov|mp3|wav|ogg|m4a|aac|jpg|jpeg|png|gif|webp|svg|ico)$/i;function Jm(r){return Rg.test(r)}const mf="application/x-hyperframes-asset",dv=5;function eO(r){return g1.test(r)?"image":x1.test(r)?"video":y1.test(r)?"audio":null}function pv(r,e){const i=(r.split("/").pop()??"asset").replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]+/g,"_").replace(/^_+|_+$/g,"").toLowerCase()||"asset",l=new Set(e);if(!l.has(i))return i;let o=2;for(;l.has(`${i}_${o}`);)o+=1;return`${i}_${o}`}function mv(r,e){const t=r.includes("/")?r.slice(0,r.lastIndexOf("/")):"";if(!t)return e;const n=t.split("/").filter(Boolean),i=e.split("/").filter(Boolean);for(;n.length>0&&i.length>0&&n[0]===i[0];)n.shift(),i.shift();return[...n.map(()=>".."),...i].join("/")||e.split("/").pop()||e}function Ov(r,e,t=[]){let n=Math.round(Math.max(0,r.start)*100)/100;const i=n,l=e.map(f=>Number.isFinite(f)&&f>0?f:dv),o=l.reduce((f,m)=>Math.round((f+m)*100)/100,i),u=t.some(f=>{if(f.track!==r.track)return!1;const m=Math.max(0,f.start),O=m+Math.max(0,f.duration);return i<O&&o>m})?Math.max(r.track,...t.map(f=>f.track))+1:r.track;return l.map(f=>{const m=n;return n=Math.round((n+f)*100)/100,{start:m,track:u}})}function gv(r){const e=`id="${r.id}" class="clip" src="${r.assetPath}" data-start="${r.start}" data-duration="${r.duration}" data-track-index="${r.track}"`;return r.kind==="image"?`<img ${e} style="position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: ${r.zIndex}" />`:r.kind==="video"?`<video ${e} muted playsinline style="position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: ${r.zIndex}"></video>`:`<audio ${e} style="z-index: ${r.zIndex}"></audio>`}function xv(r,e){const n=/<[^>]*data-composition-id="[^"]+"[^>]*>/i.exec(r);if(!n||n.index==null)throw new Error("No composition root found in target source");const i=n.index+n[0].length;return`${r.slice(0,i)}${e}${r.slice(i)}`}const Kt=32,Ks=72,rl=24,tO=3,yv=18,vv=24,$l="/icons/timeline";function Pl({src:r}){return y.jsx("img",{src:r,alt:"",width:12,height:12,style:{filter:"brightness(0) invert(1)"},draggable:!1})}const Sv=y.jsx(Pl,{src:`${$l}/captions.svg`}),nO=y.jsx(Pl,{src:`${$l}/image.svg`}),wv=y.jsx(Pl,{src:`${$l}/music.svg`}),rO=y.jsx(Pl,{src:`${$l}/text.svg`}),Of=y.jsx(Pl,{src:`${$l}/composition.svg`}),kv=y.jsx(Pl,{src:`${$l}/audio.svg`}),iO={video:nO,audio:wv,img:nO,div:Of,span:Sv,p:rO,h1:rO,section:Of,sfx:kv};function fo(r){const e=Uy(r),t=r.toLowerCase(),n=t.startsWith("h")&&t.length===2&&"123456".includes(t[1]??"")?iO.h1:iO[t]??Of;return{...e,icon:n}}function bv(r){if(r<=0||!Number.isFinite(r)||r>7200)return{major:[],minor:[]};const e=[.5,1,2,5,10,15,30,60],t=r/6,n=e.find(u=>u>=t)??60,i=Math.max(.25,n/2),l=[],o=[],c=500;for(let u=0;u<=r+.001&&l.length+o.length<c;u+=i){const f=Math.round(u*100)/100;Math.abs(f%n)<.01||Math.abs(f%n-n)<.01?l.push(f):o.push(f)}return{major:l,minor:o}}function sO(r,e,t){return r==="fit"||!Number.isFinite(e)||!Number.isFinite(t)?!1:e-t>1}function Qv(r,e,t){return r==="manual"&&e==="fit"?0:t}function lO(r,e){return!Number.isFinite(r)||!Number.isFinite(e)?Kt:Kt+Math.max(0,r)*Math.max(0,e)}function $v(r){return rl+Math.max(0,r)*Ks+vv}function Pv(r){var t;if(r.key!=="Delete"&&r.key!=="Backspace"||r.metaKey||r.ctrlKey||r.altKey)return!1;const e=r.target&&typeof r.target=="object"?r.target:null;if(e){const n=((t=e.tagName)==null?void 0:t.toLowerCase())??"";if(e.isContentEditable||["input","textarea","select"].includes(n)||typeof e.closest=="function"&&e.closest("[contenteditable='true']"))return!1}return!0}function Av(r,e){return r.length===0?0:e==null||e<0?r[0]:e>=r.length?Math.max(...r)+1:r[e]??r[r.length-1]??0}function oO(r,e,t){const n=e-r.rectLeft+r.scrollLeft-Kt,i=t-r.rectTop+r.scrollTop-rl,l=Math.max(0,Math.min(r.duration,Math.round(n/Math.max(r.pixelsPerSecond,1)*100)/100)),o=Math.floor(i/Math.max(r.trackHeight,1));return{start:l,track:Av(r.trackOrder,o)}}const Cv=p.memo(function({onSeek:e,onDrillDown:t,renderClipContent:n,renderClipOverlay:i,onFileDrop:l,onAssetDrop:o,onDeleteElement:c,onMoveElement:u,onResizeElement:f,onBlockedEditAttempt:m,theme:O}={}){const x=p.useMemo(()=>({...Eg,...O}),[O]),S=Me(L=>L.elements),w=Me(L=>L.duration),b=Me(L=>L.timelineReady),$=Me(L=>L.selectedElementId),T=Me(L=>L.setSelectedElementId),_=Me(L=>L.updateElement),A=Me(L=>L.currentTime),C=Me(L=>L.zoomMode),j=Me(L=>L.manualZoomPercent),N=p.useRef(null),M=p.useRef(null),R=p.useRef(null),[F,pe]=p.useState(null),J=p.useRef(!1),ie=p.useRef(null),[B,ce]=p.useState(!1);Vt(()=>{const L=ne=>ne.key==="Shift"&&ce(!0),U=ne=>ne.key==="Shift"&&ce(!1),fe=()=>ce(!1);return window.addEventListener("keydown",L),window.addEventListener("keyup",U),window.addEventListener("blur",fe),()=>{window.removeEventListener("keydown",L),window.removeEventListener("keyup",U),window.removeEventListener("blur",fe)}});const ue=p.useRef(!1),he=p.useRef(0),[se,W]=p.useState(null),[Y,ee]=p.useState(null),Q=p.useRef(null);Q.current=Y;const[z,re]=p.useState(null),ge=p.useRef(null);ge.current=z;const te=p.useRef(null),ve=p.useRef(!1),Le=p.useRef(u);Le.current=u;const Ee=p.useRef(f);Ee.current=f;const ze=p.useRef(c);ze.current=c;const _e=p.useRef(!1),[ct,Ge]=p.useState(!1),[bn,Xe]=p.useState(0),Je=p.useRef(null),qe=p.useCallback(L=>{Je.current&&(Je.current.disconnect(),Je.current=null),M.current=L,L&&(Xe(L.clientWidth),Je.current=new ResizeObserver(([U])=>{Xe(U.contentRect.width)}),Je.current.observe(L))},[]);Vt(()=>()=>{var L;(L=Je.current)==null||L.disconnect()});const We=p.useMemo(()=>{const L=Number.isFinite(w)?w:0;if(S.length===0)return L;const U=Math.max(...S.map(ne=>ne.start+ne.duration)),fe=Math.max(L,U);return Number.isFinite(fe)?fe:L},[S,w]),Ne=p.useMemo(()=>{const L=new Map;for(const U of S){const fe=L.get(U.track)??[];fe.push(U),L.set(U.track,fe)}return Array.from(L.entries()).sort(([U],[fe])=>U-fe)},[S]),tt=p.useMemo(()=>{var U;const L=new Map;for(const[fe,ne]of Ne)L.set(fe,fo(((U=ne[0])==null?void 0:U.tag)??""));return L},[Ne]),ut=p.useMemo(()=>Ne.map(([L])=>L),[Ne]),Ot=p.useRef(ut);Ot.current=ut;const tn=p.useMemo(()=>!(Y!=null&&Y.started)||ut.length===0||ut.includes(Y.previewTrack)?ut:[...ut,Y.previewTrack].sort((L,U)=>L-U),[Y,ut]),_t=p.useMemo(()=>S.find(L=>(L.key??L.id)===$)??null,[S,$]),gn=p.useRef(_t);gn.current=_t;const hr=bn>Kt&&We>0?(bn-Kt-2)/We:100,De=fv(hr,C,j),an=Math.max(0,We*De),vt=p.useRef(C);vt.current=C;const Ht=p.useRef(C),gt=p.useRef(We);gt.current=We;const Yt=p.useRef(De);Yt.current=De;const pi=p.useCallback(L=>{!N.current||gt.current<=0||(N.current.style.left=`${lO(L,Yt.current)}px`)},[]);p.useEffect(()=>{pi(A)},[A,De,pi]),p.useEffect(()=>{const L=R.current;if(!L){Ht.current=C;return}L.scrollLeft=Qv(Ht.current,C,L.scrollLeft),Ht.current=C},[C]),Vt(()=>Eo.subscribe(U=>{const fe=gt.current;if(!N.current||fe<=0)return;const ne=lO(U,Yt.current);N.current.style.left=`${ne}px`;const xe=R.current;if(xe&&!J.current&&sO(vt.current,xe.scrollWidth,xe.clientWidth)){const K=xe.scrollLeft+xe.clientWidth,Be=xe.scrollLeft,He=xe.clientWidth*.12;ne>K-He?xe.scrollLeft=ne-xe.clientWidth*.15:ne<Be+Kt&&(xe.scrollLeft=Math.max(0,ne-Kt))}}));const Ft=p.useRef(0),ft=p.useRef(0),$r=p.useRef(null),qn=p.useCallback((L,U,fe)=>{const ne=R.current,xe=Jy({start:L.element.start,track:L.element.track,duration:L.element.duration,originClientX:L.originClientX,originClientY:L.originClientY,originScrollLeft:L.originScrollLeft,originScrollTop:L.originScrollTop,currentScrollLeft:(ne==null?void 0:ne.scrollLeft)??L.originScrollLeft,currentScrollTop:(ne==null?void 0:ne.scrollTop)??L.originScrollTop,pixelsPerSecond:Yt.current,trackHeight:Ks,maxStart:Math.max(0,gt.current-L.element.duration),trackOrder:Ot.current},U,fe);return{...L,started:!0,pointerClientX:U,pointerClientY:fe,previewStart:xe.start,previewTrack:xe.track}},[]),zt=p.useCallback(()=>{$r.current=null,ft.current&&(cancelAnimationFrame(ft.current),ft.current=0)},[]),Un=p.useCallback(()=>{ft.current=0;const L=Q.current,U=$r.current,fe=R.current;if(!L||!U||!fe)return;const ne=fe.getBoundingClientRect(),xe=qm(ne,U.clientX,U.clientY);if(xe.x===0&&xe.y===0)return;const K=Math.max(0,fe.scrollWidth-fe.clientWidth),Be=Math.max(0,fe.scrollHeight-fe.clientHeight),He=Math.max(0,Math.min(K,fe.scrollLeft+xe.x)),Ze=Math.max(0,Math.min(Be,fe.scrollTop+xe.y));(He!==fe.scrollLeft||Ze!==fe.scrollTop)&&(fe.scrollLeft=He,fe.scrollTop=Ze,ee(St=>St&&qn(St,U.clientX,U.clientY)),ft.current=requestAnimationFrame(Un))},[qn]),Pr=p.useCallback((L,U)=>{$r.current={clientX:L,clientY:U};const fe=R.current;if(!fe)return;const ne=fe.getBoundingClientRect(),xe=qm(ne,L,U);if(xe.x===0&&xe.y===0){ft.current&&(cancelAnimationFrame(ft.current),ft.current=0);return}ft.current||(ft.current=requestAnimationFrame(Un))},[Un]),mi=p.useRef(qn);mi.current=qn;const fr=p.useRef(Pr);fr.current=Pr;const Gn=p.useRef(zt);Gn.current=zt;const dr=p.useCallback(L=>{const U=R.current;if(!U||We<=0)return;const fe=U.getBoundingClientRect(),ne=U.scrollLeft,xe=L-fe.left+ne-Kt;if(xe<0)return;const K=Math.max(0,Math.min(We,xe/De));Eo.notify(K),e==null||e(K)},[We,e,De]),Ur=p.useCallback(L=>{cancelAnimationFrame(Ft.current);const U=R.current;if(!U||!J.current||!sO(vt.current,U.scrollWidth,U.clientWidth))return;const fe=U.getBoundingClientRect(),ne=40,xe=12;let K=0;if(L<fe.left+ne){const Be=Math.max(0,1-(L-fe.left)/ne);K=-xe*Be}else if(L>fe.right-ne){const Be=Math.max(0,1-(fe.right-L)/ne);K=xe*Be}K!==0&&(U.scrollLeft+=K,dr(L),Ft.current=requestAnimationFrame(()=>Ur(L)))},[dr]);Vt(()=>{const L=()=>{requestAnimationFrame(()=>{_e.current=!1})},U=ne=>{const xe=Q.current,K=ge.current,Be=te.current;if(K){const Ze=Math.abs(ne.clientX-K.originClientX);if(!K.started&&Ze<2)return;Ge(!1),W(null);const pt=K.element.sourceDuration!=null?Math.max(0,(K.element.sourceDuration-(K.element.playbackStart??0))/Math.max(K.element.playbackRate??1,.1)):Number.POSITIVE_INFINITY,St=K.element.tag.toLowerCase(),nt=St==="audio"||St==="video",Tr=ev({start:K.element.start,duration:K.element.duration,originClientX:K.originClientX,pixelsPerSecond:Yt.current,minStart:0,maxEnd:Math.min(gt.current,K.element.start+pt),playbackStart:K.edge==="start"&&nt?K.element.playbackStart??0:K.element.playbackStart,playbackRate:K.element.playbackRate},K.edge,ne.clientX);re(Qt=>Qt&&{...Qt,started:!0,previewStart:Tr.start,previewDuration:Tr.duration,previewPlaybackStart:Tr.playbackStart});return}if(Be){const Ze=Math.hypot(ne.clientX-Be.originClientX,ne.clientY-Be.originClientY),pt=Be.intent==="move"?4:2;if(!Be.started&&Ze<pt)return;Be.started||(Be.started=!0,te.current=Be,_e.current=!0,Ge(!1),W(null),m==null||m(Be.element,Be.intent));return}if(!xe)return;const He=Math.hypot(ne.clientX-xe.originClientX,ne.clientY-xe.originClientY);!xe.started&&He<4||(Ge(!1),W(null),ee(Ze=>Ze&&mi.current(Ze,ne.clientX,ne.clientY)),fr.current(ne.clientX,ne.clientY))},fe=()=>{var He,Ze;Gn.current();const ne=ge.current;if(ne){if(ge.current=null,re(null),!ne.started||(_e.current=!0,L(),!(ne.previewStart!==ne.element.start||ne.previewDuration!==ne.element.duration||ne.previewPlaybackStart!==ne.element.playbackStart)))return;_(ne.element.key??ne.element.id,{start:ne.previewStart,duration:ne.previewDuration,playbackStart:ne.previewPlaybackStart}),Promise.resolve((He=Ee.current)==null?void 0:He.call(Ee,ne.element,{start:ne.previewStart,duration:ne.previewDuration,playbackStart:ne.previewPlaybackStart})).catch(St=>{_(ne.element.key??ne.element.id,{start:ne.element.start,duration:ne.element.duration,playbackStart:ne.element.playbackStart}),console.error("[Timeline] Failed to persist clip resize",St)});return}const xe=te.current;if(xe){if(te.current=null,!xe.started)return;L();return}const K=Q.current;!K||(Q.current=null,ee(null),!K.started)||(_e.current=!0,L(),!(K.previewStart!==K.element.start||K.previewTrack!==K.element.track))||(_(K.element.key??K.element.id,{start:K.previewStart,track:K.previewTrack}),Promise.resolve((Ze=Le.current)==null?void 0:Ze.call(Le,K.element,{start:K.previewStart,track:K.previewTrack})).catch(pt=>{_(K.element.key??K.element.id,{start:K.element.start,track:K.element.track}),console.error("[Timeline] Failed to persist clip move",pt)}))};return window.addEventListener("pointermove",U),window.addEventListener("pointerup",fe),window.addEventListener("pointercancel",fe),()=>{Gn.current(),window.removeEventListener("pointermove",U),window.removeEventListener("pointerup",fe),window.removeEventListener("pointercancel",fe)}}),Vt(()=>{const L=U=>{if(!Pv(U))return;const fe=gn.current,ne=ze.current;!fe||!ne||ve.current||(U.preventDefault(),ve.current=!0,_e.current=!0,Ge(!1),W(null),Promise.resolve(ne(fe)).finally(()=>{ve.current=!1,requestAnimationFrame(()=>{_e.current=!1})}))};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)});const Qs=p.useCallback(L=>{var U,fe;if(L.button===0){if(L.shiftKey){L.currentTarget.setPointerCapture(L.pointerId),ue.current=!0,Ge(!1);const ne=(U=R.current)==null?void 0:U.getBoundingClientRect();if(ne){const xe=L.clientX-ne.left+(((fe=R.current)==null?void 0:fe.scrollLeft)??0)-Kt,K=Math.max(0,xe/De);he.current=K,W({start:K,end:K,anchorX:L.clientX,anchorY:L.clientY})}return}ie.current=null,!L.target.closest("[data-clip]")&&(L.currentTarget.setPointerCapture(L.pointerId),J.current=!0,W(null),Ge(!1),dr(L.clientX))}},[dr,De]),$s=p.useCallback(L=>{var U,fe;if(ue.current){const ne=(U=R.current)==null?void 0:U.getBoundingClientRect();if(ne){const xe=L.clientX-ne.left+(((fe=R.current)==null?void 0:fe.scrollLeft)??0)-Kt,K=Math.max(0,xe/De);W(Be=>Be?{...Be,end:K,anchorX:L.clientX,anchorY:L.clientY}:null)}return}J.current&&(dr(L.clientX),Ur(L.clientX))},[dr,Ur,De]),Oi=p.useCallback(()=>{if(ue.current){ue.current=!1;const L=ie.current;ie.current=null,W(U=>U&&L&&Math.abs(U.end-U.start)<=.2?(Ge(!0),sv(L.element,L)):U&&Math.abs(U.end-U.start)>.2?(Ge(!0),U):null);return}J.current=!1,cancelAnimationFrame(Ft.current)},[]),{major:gi,minor:Ki}=p.useMemo(()=>bv(We),[We]),Ar=p.useCallback(L=>(z==null?void 0:z.element.id)===L.id?{...L,start:z.previewStart,duration:z.previewDuration,playbackStart:z.previewPlaybackStart}:L,[z]),[Cr,Kn]=p.useState(!1),Ps=p.useCallback(L=>{const U=L.dataTransfer.files.length>0,fe=Array.from(L.dataTransfer.types).includes(mf);!U&&!fe||(L.preventDefault(),fe&&(L.dataTransfer.dropEffect="copy"),Kn(!0))},[]),Z=p.useCallback(L=>{if(L.preventDefault(),Kn(!1),l&&L.dataTransfer.files.length>0){const fe=R.current,ne=fe==null?void 0:fe.getBoundingClientRect(),xe=fe&&ne?oO({rectLeft:ne.left,rectTop:ne.top,scrollLeft:fe.scrollLeft,scrollTop:fe.scrollTop,pixelsPerSecond:Yt.current,duration:gt.current,trackHeight:Ks,trackOrder:Ot.current},L.clientX,L.clientY):void 0;l(Array.from(L.dataTransfer.files),xe);return}const U=L.dataTransfer.getData(mf);if(!(!U||!o))try{const fe=JSON.parse(U);if(!fe.path)return;const ne=R.current,xe=ne==null?void 0:ne.getBoundingClientRect();if(!ne||!xe)return;const K=oO({rectLeft:xe.left,rectTop:xe.top,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,pixelsPerSecond:Yt.current,duration:gt.current,trackHeight:Ks,trackOrder:Ot.current},L.clientX,L.clientY);o(fe.path,K)}catch{}},[o,l]);if(!b||S.length===0)return y.jsxs("div",{className:`h-full border-t bg-[#0a0a0b] flex flex-col select-none transition-colors duration-150 ${Cr?"border-studio-accent/50 bg-studio-accent/[0.03]":"border-neutral-800/50"}`,onDragOver:Ps,onDragLeave:()=>Kn(!1),onDrop:Z,children:[y.jsx("div",{className:"flex-shrink-0 border-b border-neutral-800/40 flex items-end relative",style:{height:rl,paddingLeft:Kt},children:[0,10,20,30,40,50].map(L=>y.jsxs("div",{className:"flex flex-col items-center",style:{position:"absolute",left:Kt+L*14},children:[y.jsx("span",{className:"text-[9px] text-neutral-600 font-mono tabular-nums leading-none mb-0.5",children:`${Math.floor(L/60)}:${(L%60).toString().padStart(2,"0")}`}),y.jsx("div",{className:"w-px h-[5px] bg-neutral-700/40"})]},L))}),y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:`flex items-center gap-3 px-6 py-3 border border-dashed rounded-lg transition-colors duration-150 ${Cr?"border-studio-accent/60 bg-studio-accent/[0.06]":"border-neutral-700/50"}`,children:Cr?y.jsxs(y.Fragment,{children:[y.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-studio-accent flex-shrink-0",children:[y.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),y.jsx("polyline",{points:"7 10 12 15 17 10"}),y.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),y.jsx("span",{className:"text-[13px] text-studio-accent",children:"Drop media files to import"})]}):y.jsxs(y.Fragment,{children:[y.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-neutral-600 flex-shrink-0",children:[y.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2"}),y.jsx("path",{d:"M7 2v20"}),y.jsx("path",{d:"M17 2v20"}),y.jsx("path",{d:"M2 7h20"}),y.jsx("path",{d:"M2 17h20"})]}),y.jsx("span",{className:"text-[13px] text-neutral-500",children:l?"Drop media here or describe your video to start":"Describe your video to start creating"})]})})})]});const q=$v(tn.length),oe=(Y==null?void 0:Y.element)??null,me=(Y==null?void 0:Y.started)===!0&&oe?Ky({element:oe,draggedElementId:oe.id,previewStart:Y.previewStart,previewTrack:Y.previewTrack}):null,we=(Y==null?void 0:Y.started)===!0&&me&&R.current?{left:Y.pointerClientX-R.current.getBoundingClientRect().left+R.current.scrollLeft-Y.pointerOffsetX,top:Y.pointerClientY-R.current.getBoundingClientRect().top+R.current.scrollTop-Y.pointerOffsetY}:null,Ye=(L,U)=>y.jsxs(y.Fragment,{children:[i==null?void 0:i(L),y.jsx("div",{className:n?"absolute inset-0 overflow-hidden":"flex flex-col justify-center overflow-hidden flex-1 min-w-0 px-6",children:(n==null?void 0:n(L,U))??y.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-between py-3",children:[y.jsx("div",{className:"flex items-start",children:y.jsx("span",{className:"max-w-full truncate rounded-md px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] leading-none",style:{color:U.label,background:`${U.accent}26`,boxShadow:`inset 0 0 0 1px ${U.accent}33`},children:L.tag})}),y.jsx("div",{className:"flex items-center",children:y.jsxs("span",{className:"max-w-full truncate rounded-md px-1.5 py-0.5 text-[10px] font-medium tabular-nums leading-none",style:{color:x.textSecondary,background:"rgba(255,255,255,0.04)"},children:[lr(L.start)," ","→"," ",lr(L.start+L.duration)]})})]})})]});return y.jsxs("div",{ref:qe,"aria-label":"Timeline",className:`border-t select-none h-full overflow-hidden ${B?"cursor-crosshair":"cursor-default"}`,style:{touchAction:"pan-x pan-y",background:x.shellBackground,borderColor:x.shellBorder},children:[y.jsx("div",{ref:R,className:`${C==="fit"?"overflow-x-hidden":"overflow-x-auto"} overflow-y-auto h-full`,onDragOver:Ps,onDragLeave:()=>Kn(!1),onDrop:Z,onPointerDown:Qs,onPointerMove:$s,onPointerUp:Oi,onLostPointerCapture:Oi,children:y.jsxs("div",{className:"relative",style:{height:q,width:Kt+an},children:[y.jsx("svg",{className:"absolute pointer-events-none",style:{left:Kt,width:an},height:q,children:gi.map(L=>{const U=L*De;return y.jsx("line",{x1:U,y1:rl,x2:U,y2:q,stroke:x.tickMinor,strokeWidth:"1"},`g-${L}`)})}),y.jsxs("div",{className:"relative overflow-hidden",style:{height:rl,marginLeft:Kt,width:an},children:[B&&!se&&y.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none z-10",children:y.jsx("span",{className:"text-[9px] font-medium",style:{color:x.textSecondary},children:"Drag or click a clip to edit range"})}),Ki.map(L=>y.jsx("div",{className:"absolute bottom-0",style:{left:L*De},children:y.jsx("div",{className:"w-px h-[3px]",style:{background:x.tickMinor}})},`m-${L}`)),gi.map(L=>y.jsxs("div",{className:"absolute bottom-0 flex flex-col items-center",style:{left:L*De},children:[y.jsx("span",{className:"text-[9px] font-mono tabular-nums leading-none mb-0.5",style:{color:x.tickText},children:lr(L)}),y.jsx("div",{className:"w-px h-[5px]",style:{background:x.tickMajor}})]},`M-${L}`))]}),tn.map(L=>{var xe;const U=((xe=Ne.find(([K])=>K===L))==null?void 0:xe[1])??[],fe=tt.get(L)??fo(""),ne=(Y==null?void 0:Y.started)===!0&&!ut.includes(L)&&U.length===0;return y.jsxs("div",{className:"relative flex",style:{height:Ks,background:x.rowBackground,borderBottom:`1px solid ${x.rowBorder}`},children:[y.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:Kt,background:x.gutterBackground,borderRight:`1px solid ${x.gutterBorder}`},children:y.jsx("div",{className:"flex items-center justify-center",style:{width:18,height:18,borderRadius:6,backgroundColor:fe.iconBackground,border:`1px solid ${x.gutterBorder}`,color:"#fff"},children:fe.icon})}),y.jsxs("div",{style:{width:an},className:"relative",children:[ne&&y.jsx("div",{className:"absolute inset-0 flex items-center",style:{paddingLeft:16,color:fe.label,fontSize:11,letterSpacing:"0.08em",textTransform:"uppercase",background:`linear-gradient(90deg, ${fe.accent}14, transparent 28%)`,boxShadow:`inset 0 0 0 1px ${fe.accent}24`},children:"New track"}),U.map((K,Be)=>{const He=fo(K.tag),Ze=K.key??K.id,pt=jg(K),St=$===Ze,nt=!!K.compositionSrc,Tr=`${Ze}-${Be}`,Qt=F===Tr,Ji=!!n;if((Y==null?void 0:Y.started)===!0&&((oe==null?void 0:oe.key)??(oe==null?void 0:oe.id))===Ze)return null;const na=Ar(K);return y.jsx(Gm,{el:na,pps:De,clipY:tO,isSelected:St,isHovered:Qt,isDragging:!1,hasCustomContent:Ji,theme:x,trackStyle:He,isComposition:nt,onHoverStart:()=>pe(Tr),onHoverEnd:()=>pe(null),onResizeStart:(wt,Zr)=>{Zr.button!==0||Zr.shiftKey||!f||wt==="start"&&!pt.canTrimStart||wt==="end"&&!pt.canTrimEnd||(Zr.stopPropagation(),te.current=null,Ge(!1),W(null),re({element:K,edge:wt,originClientX:Zr.clientX,previewStart:K.start,previewDuration:K.duration,previewPlaybackStart:K.playbackStart,started:!1}))},onPointerDown:wt=>{var Qn,ra;if(wt.button!==0)return;if(wt.shiftKey){ie.current={element:K,anchorX:wt.clientX,anchorY:wt.clientY};return}const xn=wt.currentTarget.getBoundingClientRect(),As=iv({width:xn.width,offsetX:wt.clientX-xn.left,handleWidth:yv,capabilities:pt});if(As&&(As==="move"&&u||As!=="move"&&f)){te.current={element:K,intent:As,originClientX:wt.clientX,originClientY:wt.clientY,started:!1};return}!u||!pt.canMove||(te.current=null,Ge(!1),W(null),ee({element:K,originClientX:wt.clientX,originClientY:wt.clientY,originScrollLeft:((Qn=R.current)==null?void 0:Qn.scrollLeft)??0,originScrollTop:((ra=R.current)==null?void 0:ra.scrollTop)??0,pointerClientX:wt.clientX,pointerClientY:wt.clientY,pointerOffsetX:wt.clientX-xn.left,pointerOffsetY:wt.clientY-xn.top,previewStart:K.start,previewTrack:K.track,started:!1}))},onClick:wt=>{wt.stopPropagation(),!_e.current&&T(St?null:Ze)},onDoubleClick:wt=>{wt.stopPropagation(),!_e.current&&nt&&t&&t(K)},children:Ye(na,He)},Tr)})]})]},L)}),me&&we&&y.jsx("div",{className:"absolute pointer-events-none",style:{top:we.top,left:we.left,width:Math.max(me.duration*De,4),height:Ks-tO*2,zIndex:40},children:y.jsx(Gm,{el:{...me,start:0},pps:De,clipY:0,isSelected:$===(me.key??me.id),isHovered:!1,isDragging:!0,hasCustomContent:!!n,theme:x,trackStyle:fo(me.tag),isComposition:!!me.compositionSrc,onHoverStart:()=>{},onHoverEnd:()=>{},onResizeStart:()=>{},onClick:()=>{},onDoubleClick:()=>{},children:Ye(me,fo(me.tag))})}),se&&y.jsx("div",{className:"absolute pointer-events-none",style:{left:Kt+Math.min(se.start,se.end)*De,width:Math.abs(se.end-se.start)*De,top:rl,bottom:0,backgroundColor:"rgba(59, 130, 246, 0.12)",borderLeft:"1px solid rgba(59, 130, 246, 0.4)",borderRight:"1px solid rgba(59, 130, 246, 0.4)",zIndex:50}}),y.jsxs("div",{ref:N,className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${Kt}px`,zIndex:100},children:[y.jsx("div",{className:"absolute top-0 bottom-0",style:{left:"50%",width:2,marginLeft:-1,background:"var(--hf-accent, #3CE6AC)",boxShadow:"0 0 8px rgba(60,230,172,0.5)"}}),y.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:y.jsx("div",{style:{width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"8px solid var(--hf-accent, #3CE6AC)",filter:"drop-shadow(0 1px 3px rgba(0,0,0,0.6))"}})})]})]})}),!ct&&!se&&y.jsx("div",{className:"absolute bottom-2 right-3 pointer-events-none z-20",children:y.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border",style:{background:"rgba(17,23,35,0.84)",borderColor:x.gutterBorder},children:[y.jsx("kbd",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{color:x.textSecondary,background:"rgba(255,255,255,0.06)"},children:"Shift"}),y.jsx("span",{className:"text-[9px]",style:{color:x.textSecondary},children:"+ drag/click to edit range"})]})}),ct&&se&&y.jsx(ov,{rangeStart:se.start,rangeEnd:se.end,anchorX:se.anchorX,anchorY:se.anchorY,onClose:()=>{Ge(!1),W(null)}})]})}),aO=66,cO=6,Tv=p.memo(function({videoSrc:e,label:t,labelColor:n,duration:i=5}){const[l,o]=p.useState(0),[c,u]=p.useState(!1),[f,m]=p.useState([]),[O,x]=p.useState(16/9),S=p.useRef(null),w=p.useRef(null),b=p.useRef(!1),$=p.useCallback(A=>{var N,M,R;if((N=S.current)==null||N.disconnect(),(M=w.current)==null||M.disconnect(),!A)return;const C=((R=A.parentElement)==null?void 0:R.clientWidth)||A.clientWidth;o(C),S.current=new IntersectionObserver(([F])=>{var pe;F.isIntersecting&&(u(!0),(pe=S.current)==null||pe.disconnect())},{rootMargin:"200px"}),S.current.observe(A);const j=A.parentElement||A;w.current=new ResizeObserver(([F])=>{o(F.contentRect.width)}),w.current.observe(j)},[]);Vt(()=>()=>{var A,C;(A=S.current)==null||A.disconnect(),(C=w.current)==null||C.disconnect()}),p.useEffect(()=>{if(!c||b.current)return;b.current=!0;const A=document.createElement("video");A.crossOrigin="anonymous",A.muted=!0,A.preload="auto";const C=document.createElement("canvas"),j=C.getContext("2d");if(!j){b.current=!1;return}const N=[],M=Math.min(.4,i*.05);for(let J=0;J<cO;J++){const ie=J/(cO-1)*i;N.push(Math.max(ie,M))}let R=0,F=!1;const pe=()=>{if(F||R>=N.length){F||(A.src="",A.load());return}A.currentTime=N[R]};return A.addEventListener("loadedmetadata",()=>{if(A.videoWidth>0&&A.videoHeight>0){x(A.videoWidth/A.videoHeight);const J=aO*2,ie=Math.round(J*(A.videoWidth/A.videoHeight));C.width=ie,C.height=J}pe()}),A.addEventListener("seeked",()=>{if(F)return;j.drawImage(A,0,0,C.width,C.height);const J=C.toDataURL("image/jpeg",.6);m(ie=>[...ie,J]),R++,pe()}),A.addEventListener("error",()=>{}),A.src=e,A.load(),()=>{F=!0,b.current=!1,m([]),A.src="",A.load()}},[c,e,i]);const T=Math.round(aO*O),_=l>0?Math.max(1,Math.ceil(l/T)):1;return y.jsxs("div",{ref:$,className:"absolute inset-0 overflow-hidden",children:[c&&f.length>0&&y.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:_}).map((A,C)=>{const j=f[C%f.length];return y.jsx("div",{className:"flex-shrink-0 h-full relative overflow-hidden bg-neutral-900",style:{width:T},children:y.jsx("img",{src:j,alt:"",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"})},C)})}),c&&f.length===0&&y.jsx("div",{className:"absolute inset-0 animate-pulse",style:{background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),y.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 px-1.5 pb-0.5 pt-3",style:{background:"linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%)"},children:y.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:n,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:t})})]})}),Zv=66,Mv="v2",Ah=p.memo(function({previewUrl:e,label:t,labelColor:n,accentColor:i="#6B7280",selector:l,seekTime:o=2,duration:c=5}){const[u,f]=p.useState(0),[m,O]=p.useState(!1),[x,S]=p.useState(16/9),w=p.useRef(null),b=p.useCallback(N=>{var F,pe;if((F=w.current)==null||F.disconnect(),!N)return;const M=((pe=N.parentElement)==null?void 0:pe.clientWidth)||N.clientWidth;f(M);const R=N.parentElement||N;w.current=new ResizeObserver(([J])=>{f(J.contentRect.width)}),w.current.observe(R)},[]);Vt(()=>()=>{var N;(N=w.current)==null||N.disconnect()});const $=e.replace("/preview/comp/","/thumbnail/").replace(/\/preview$/,"/thumbnail/index.html"),T=o+c/2,_=new URL($,window.location.origin);_.searchParams.set("t",T.toFixed(2)),_.searchParams.set("v",Mv),l&&_.searchParams.set("selector",l);const A=_.toString(),C=Math.max(48,Math.round(Zv*x)),j=u>0?Math.max(1,Math.ceil(u/C)):1;return y.jsxs("div",{ref:b,className:"absolute inset-0 overflow-hidden",children:[y.jsx("img",{src:A,alt:"",draggable:!1,loading:"lazy",onLoad:N=>{const M=N.currentTarget;M.naturalWidth>0&&M.naturalHeight>0&&S(M.naturalWidth/M.naturalHeight),O(!0)},className:"hidden"}),m?y.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:j}).map((N,M)=>y.jsx("div",{className:"relative h-full flex-shrink-0 overflow-hidden",style:{width:C},children:y.jsx("img",{src:A,alt:"",draggable:!1,className:"absolute inset-0 h-full w-full object-cover opacity-60"})},M))}):y.jsx("div",{className:"absolute inset-0 animate-pulse",style:{background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),y.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(120deg, ${i}2e, transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08))`}}),y.jsx("div",{className:"absolute left-2 top-2 z-10",children:y.jsx("span",{className:"block max-w-full truncate rounded-md px-1.5 py-0.5 text-[9px] font-semibold uppercase leading-none",style:{color:n,background:`${i}2e`,boxShadow:`inset 0 0 0 1px ${i}40`},children:t})}),y.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 px-1.5 pb-0.5 pt-3",style:{background:"linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%)"},children:y.jsx("span",{className:"block truncate text-[9px] font-semibold leading-tight",style:{color:n,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:t})})]})});function uO(r){return{play:()=>r.play(),pause:()=>r.pause(),seek:e=>{r.pause(),r.seek(e)},getTime:()=>r.time(),getDuration:()=>r.duration(),isPlaying:()=>r.isActive()}}function Lg(r){if(r instanceof HTMLMediaElement||r instanceof HTMLImageElement)return r;const e=r.querySelector("video, audio, img");return e instanceof HTMLMediaElement||e instanceof HTMLImageElement?e:null}function Xg(r,e){const t=e.getAttribute("data-playback-start")?"playback-start":e.getAttribute("data-media-start")?"media-start":void 0,n=e.getAttribute("data-playback-start")??e.getAttribute("data-media-start");if(n!=null){const f=parseFloat(n);Number.isFinite(f)&&(r.playbackStart=f)}t&&(r.playbackStartAttr=t);const i=Lg(e);if(!i)return;r.tag=i.tagName.toLowerCase();const l=i.getAttribute("src");if(l&&(r.src=l),!(i instanceof HTMLMediaElement))return;const o=e.getAttribute("data-source-duration")??i.getAttribute("data-source-duration"),c=o?parseFloat(o):i.duration;Number.isFinite(c)&&c>0&&(r.sourceDuration=c);const u=i.defaultPlaybackRate;Number.isFinite(u)&&u>0&&(r.playbackRate=u)}function hO(r,e){const t=r.querySelector("[data-composition-id]"),n=r.querySelectorAll("[data-start]"),i=[];let l=0;return n.forEach(o=>{var M;if(o===t)return;const c=o,u=c.getAttribute("data-start");if(u==null)return;const f=parseFloat(u);if(isNaN(f)||Number.isFinite(e)&&e>0&&f>=e)return;const m=c.tagName.toLowerCase();let O=0;const x=c.getAttribute("data-duration");if(x!=null&&(O=parseFloat(x)),(isNaN(O)||O<=0)&&(O=Math.max(0,e-f)),Number.isFinite(e)&&e>0&&(O=Math.min(O,Math.max(0,e-f))),!Number.isFinite(O)||O<=0)return;const S=c.getAttribute("data-track-index"),w=S!=null?parseInt(S,10):l++,b=c.getAttribute("data-composition-id"),$=So(c),T=Mc(c),_=Ec(r,c,$),A=c.id||b||((M=c.className)==null?void 0:M.split(" ")[0])||m,C={id:A,key:Yc({id:A,fallbackIndex:i.length,domId:c.id||void 0,selector:$,selectorIndex:_,sourceFile:T}),tag:m,start:f,duration:O,track:isNaN(w)?0:w,domId:c.id||void 0,selector:$,selectorIndex:_,sourceFile:T},j=Lg(c);if(j){j.tagName==="IMG"&&(C.tag="img");const R=j.getAttribute("src");R&&(C.src=R);const F=c.getAttribute("data-volume")??j.getAttribute("data-volume");F&&(C.volume=parseFloat(F)),Xg(C,c)}const N=c.getAttribute("data-composition-src")||c.getAttribute("data-composition-file");if(N)C.compositionSrc=N;else if(b&&b!==(t==null?void 0:t.getAttribute("data-composition-id"))){const R=c.querySelector("video[src]");R&&(C.src=R.getAttribute("src")||void 0,C.tag="video")}i.push(C)}),i}function So(r){if(r instanceof HTMLElement&&r.id)return`#${r.id}`;const e=r.getAttribute("data-composition-id");if(e)return`[data-composition-id="${e}"]`;if(r instanceof HTMLElement){const t=r.className.split(/\s+/).find(Boolean);if(t)return`.${t}`}}function Mc(r){var t;const e=(t=r.parentElement)==null?void 0:t.closest("[data-composition-id]");return(e==null?void 0:e.getAttribute("data-composition-file"))??(e==null?void 0:e.getAttribute("data-composition-src"))??void 0}function Ec(r,e,t){if(!(!t||t.startsWith("#")||t.startsWith("[data-composition-id=")))try{const i=Array.from(r.querySelectorAll(t)).indexOf(e);return i>=0?i:void 0}catch{return}}function Yc(r){const e=r.sourceFile??"index.html";return r.domId?`${e}#${r.domId}`:r.selector?`${e}:${r.selector}:${r.selectorIndex??0}`:`${e}:${r.id}:${r.fallbackIndex}`}function Ev(r,e){return r.getElementById(e)??r.querySelector(`[data-composition-id="${e}"]`)??r.querySelector(`.${e}`)??null}function jv(r){const e=r.match(/\/preview\/comp\/(.+?)(?:\?|$)/);return e?decodeURIComponent(e[1]):void 0}function Vv(r){if(!Number.isFinite(r.rootDuration)||r.rootDuration<=0)return null;const e=jv(r.iframeSrc);return{id:r.compositionId,key:Yc({id:r.compositionId,fallbackIndex:0,selector:r.selector,selectorIndex:r.selectorIndex,sourceFile:e}),tag:r.tagName.toLowerCase()||"div",start:0,duration:r.rootDuration,track:0,compositionSrc:e,selector:r.selector,selectorIndex:r.selectorIndex,sourceFile:e}}function Rv(r,e){r.documentElement&&(r.documentElement.style.overflow="hidden",r.documentElement.style.margin="0"),r.body&&(r.body.style.overflow="hidden",r.body.style.margin="0"),e.scrollTo({top:0,left:0,behavior:"auto"})}function Lv(r){const e=/data-composition-id=["']([^"']+)["']/gi,t=new Set,n=Array.from(r.querySelectorAll("style, script"));for(const o of n){const c=o.textContent||"";if(!c)continue;let u;for(;(u=e.exec(c))!==null;){const f=(u[1]||"").trim();f&&t.add(f)}}if(t.size===0)return;const i=new Set,l=Array.from(r.querySelectorAll("[data-composition-id]"));for(const o of l){const c=o.getAttribute("data-composition-id");c&&i.add(c)}for(const o of t){if(o==="root"||i.has(o))continue;const c=r.getElementById(`${o}-layer`)||r.getElementById(`${o}-comp`)||r.getElementById(o);c&&(c.getAttribute("data-composition-id")||c.setAttribute("data-composition-id",o))}}function fO(r){var e;if(r)try{(e=r.contentWindow)==null||e.postMessage({source:"hf-parent",type:"control",action:"set-muted",muted:!1},"*")}catch(t){console.warn("[useTimelinePlayer] Failed to unmute preview media",t)}}function Xv(r,e,t,n){const i=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:0;if(r.length===0||e.length>=r.length||l>i)return e;const o=new Set(e.map(u=>u.id)),c=r.filter(u=>!o.has(u.id));return c.length===0?e:[...e,...c]}function Nv(){const r=p.useRef(null),e=p.useRef(0),t=p.useRef(void 0),n=p.useRef(null),i=p.useRef(!1),{setIsPlaying:l,setCurrentTime:o,setDuration:c,setTimelineReady:u,setElements:f}=Me.getState(),m=p.useCallback((B,ce)=>{const ue=Me.getState(),he=Xv(ue.elements,B,ue.duration,ce??ue.duration);f(he),Number.isFinite(ce)&&(ce??0)>0&&c(ce??0),u(!0)},[f,u,c]),O=p.useCallback(()=>{var B,ce;try{const ue=r.current,he=ue==null?void 0:ue.contentWindow;if(!he)return null;if(he.__player&&typeof he.__player.play=="function")return he.__player;if(he.__timeline)return uO(he.__timeline);if(he.__timelines){const se=Object.keys(he.__timelines);if(se.length>0){const W=(ce=(B=ue==null?void 0:ue.contentDocument)==null?void 0:B.querySelector("[data-composition-id]"))==null?void 0:ce.getAttribute("data-composition-id"),Y=W&&W in he.__timelines?W:se[se.length-1];return uO(he.__timelines[Y])}}return null}catch(ue){return console.warn("[useTimelinePlayer] Could not get playback adapter (cross-origin)",ue),null}},[]),x=p.useCallback(()=>{const B=()=>{const ce=O();if(ce){const ue=ce.getTime(),he=ce.getDuration();if(Eo.notify(ue),ue>=he&&!ce.isPlaying()){o(ue),l(!1),cancelAnimationFrame(e.current);return}}e.current=requestAnimationFrame(B)};e.current=requestAnimationFrame(B)},[O,o,l]),S=p.useCallback(()=>{cancelAnimationFrame(e.current)},[]),w=p.useCallback(B=>{var ue;const ce=r.current;if(ce){(ue=ce.contentWindow)==null||ue.postMessage({source:"hf-parent",type:"control",action:"set-playback-rate",playbackRate:B},"*");try{const he=ce.contentWindow;if(he!=null&&he.__timelines)for(const se of Object.values(he.__timelines))se&&typeof se.timeScale=="function"&&se.timeScale(B)}catch(he){console.warn("[useTimelinePlayer] Could not set playback rate (cross-origin)",he)}}},[]),b=p.useCallback(()=>{const B=O();B&&(B.getTime()>=B.getDuration()&&B.seek(0),fO(r.current),w(Me.getState().playbackRate),B.play(),l(!0),x())},[O,l,x,w]),$=p.useCallback(()=>{const B=O();B&&(B.pause(),o(B.getTime()),l(!1),S())},[O,o,l,S]),T=p.useCallback(()=>{Me.getState().isPlaying?$():b()},[b,$]),_=p.useCallback(B=>{const ce=O();ce&&(ce.seek(B),Eo.notify(B),o(B),S(),Me.getState().isPlaying&&l(!1))},[O,o,l,S]),A=p.useCallback(B=>{if(!B.clips||B.clips.length===0)return;const ce=new Set(B.clips.map(Q=>Q.compositionId).filter(Boolean)),he=B.clips.filter(Q=>!Q.parentCompositionId||!ce.has(Q.parentCompositionId)).map((Q,z)=>{var ve,Le,Ee,ze;let re=null;const ge=Q.id||Q.label||Q.tagName||"element",te={id:ge,tag:Q.tagName||Q.kind,start:Q.start,duration:Q.duration,track:Q.track};try{const _e=(ve=r.current)==null?void 0:ve.contentDocument;_e&&te.id&&(re=Ev(_e,te.id))}catch{}if(re){const _e=(Le=r.current)==null?void 0:Le.contentDocument;te.domId=re.id||void 0,te.selector=So(re),te.selectorIndex=_e&&te.selector?Ec(_e,re,te.selector):void 0,te.sourceFile=Mc(re),Xg(te,re)}if(Q.assetUrl&&(te.src=Q.assetUrl),Q.kind==="composition"&&Q.compositionId){let _e=Q.compositionSrc,ct=null;if(!_e)try{const Ge=(Ee=r.current)==null?void 0:Ee.contentDocument;ct=(Ge==null?void 0:Ge.querySelector(`[data-composition-id="${Q.compositionId}"]`))??ct,_e=(ct==null?void 0:ct.getAttribute("data-composition-src"))??(ct==null?void 0:ct.getAttribute("data-composition-file"))??null}catch{}if(_e)te.compositionSrc=_e;else if(ct){const Ge=ct.querySelector("video[src]");Ge&&(te.src=Ge.getAttribute("src")||void 0,te.tag="video")}if(ct){const Ge=(ze=r.current)==null?void 0:ze.contentDocument;te.domId=ct.id||void 0,te.selector=So(ct),te.selectorIndex=Ge&&te.selector?Ec(Ge,ct,te.selector):void 0,te.sourceFile=Mc(ct)}}return te.key=Yc({id:ge,fallbackIndex:z,domId:te.domId,selector:te.selector,selectorIndex:te.selectorIndex,sourceFile:te.sourceFile}),te}),se=B.durationInFrames/30,W=Number.isFinite(se)&&se<7200?se:0,Y=W>0?W:Me.getState().duration,ee=Y>0?he.filter(Q=>Q.start<Y).map(Q=>({...Q,duration:Math.min(Q.duration,Y-Q.start)})).filter(Q=>Q.duration>0):he;ee.length>0&&m(ee,W>0?W:void 0)},[m]),C=p.useCallback(()=>{try{const B=r.current,ce=B==null?void 0:B.contentDocument,ue=B==null?void 0:B.contentWindow;if(!ce||!ue)return;const he=Me.getState().elements,se=new Set(he.map(ge=>ge.id)),W=ce.querySelector("[data-composition-id]"),Y=W==null?void 0:W.getAttribute("data-composition-id"),ee=ce.querySelectorAll("[data-composition-id][data-start]"),Q=[];ee.forEach(ge=>{var tt,ut,Ot,tn,_t,gn,hr,De,an;const te=ge,ve=te.getAttribute("data-composition-id");if(!ve||ve===Y||se.has(te.id)||se.has(ve))return;const Le=te.getAttribute("data-start")??"0";let Ee=parseFloat(Le);if(isNaN(Ee)){const vt=ce.getElementById(Le)||ce.querySelector(`[data-composition-id="${Le}"]`);if(vt){const Ht=vt.getAttribute("data-start")??"0";let gt=parseFloat(Ht);if(isNaN(gt)){const Ft=ce.getElementById(Ht)||ce.querySelector(`[data-composition-id="${Ht}"]`),ft=parseFloat((Ft==null?void 0:Ft.getAttribute("data-start"))??"0")||0,$r=Ft==null?void 0:Ft.getAttribute("data-composition-id"),qn=parseFloat((Ft==null?void 0:Ft.getAttribute("data-duration"))??"")||($r?((Ot=(ut=(tt=ue.__timelines)==null?void 0:tt[$r])==null?void 0:ut.duration)==null?void 0:Ot.call(ut))??0:0);gt=ft+qn}const Yt=vt.getAttribute("data-composition-id"),pi=parseFloat(vt.getAttribute("data-duration")??"")||(Yt?((gn=(_t=(tn=ue.__timelines)==null?void 0:tn[Yt])==null?void 0:_t.duration)==null?void 0:gn.call(_t))??0:0);Ee=gt+pi}else Ee=0}let ze=parseFloat(te.getAttribute("data-duration")??"");if((isNaN(ze)||ze<=0)&&(ze=((an=(De=(hr=ue.__timelines)==null?void 0:hr[ve])==null?void 0:De.duration)==null?void 0:an.call(De))??0),!Number.isFinite(ze)||ze<=0)return;Number.isFinite(Ee)||(Ee=0);const _e=Me.getState().duration;if(Number.isFinite(_e)&&_e>0&&(Ee>=_e||(ze=Math.min(ze,Math.max(0,_e-Ee)),ze<=0)))return;const ct=te.getAttribute("data-track-index"),Ge=ct!=null?parseInt(ct,10):0,bn=te.getAttribute("data-composition-src")||te.getAttribute("data-composition-file"),Xe=So(te),Je=Mc(te),qe=Ec(ce,te,Xe),We=te.id||ve,Ne={id:We,key:Yc({id:We,fallbackIndex:Q.length,domId:te.id||void 0,selector:Xe,selectorIndex:qe,sourceFile:Je}),tag:te.tagName.toLowerCase(),start:Ee,duration:ze,track:isNaN(Ge)?0:Ge,domId:te.id||void 0,selector:Xe,selectorIndex:qe,sourceFile:Je};if(bn)Ne.compositionSrc=bn;else{const vt=te.querySelector("video[src]");vt&&(Ne.src=vt.getAttribute("src")||void 0,Ne.tag="video")}Q.push(Ne)});let z=!1;const re=he.map(ge=>{if(ge.compositionSrc)return ge;const te=ce.getElementById(ge.id)??ce.querySelector(`[data-composition-id="${ge.id}"]`);if(!te)return ge;const ve=te.getAttribute("data-composition-src")||te.getAttribute("data-composition-file");return ve?(z=!0,{...ge,compositionSrc:ve}):ge});if(Q.length>0||z){const ge=new Set(re.map(ve=>ve.id)),te=Q.filter(ve=>!ge.has(ve.id));m([...re,...te])}}catch(B){console.warn("[useTimelinePlayer] enrichMissingCompositions failed",B)}},[m]),j=p.useCallback(()=>{fO(r.current);let B=0;const ce=25;t.current&&clearInterval(t.current),t.current=setInterval(()=>{B++;const ue=O();if(ue&&ue.getDuration()>0){clearInterval(t.current),ue.pause();const he=n.current;n.current=null;const se=he!=null?Math.min(he,ue.getDuration()):0;ue.seek(se);const W=ue.getDuration();Number.isFinite(W)&&W>0&&W<7200&&c(W),o(se),i.current||u(!0),i.current=!1,l(!1);try{const Y=r.current,ee=Y==null?void 0:Y.contentDocument,Q=Y==null?void 0:Y.contentWindow;ee&&Q&&(Rv(ee,Q),Lv(ee));const z=Q==null?void 0:Q.__clipManifest;if(z&&z.clips.length>0&&A(z),C(),Me.getState().elements.length===0&&ee){const re=hO(ee,ue.getDuration());re.length>0&&m(re)}if(Me.getState().elements.length===0&&ee){const re=ee.querySelector("[data-composition-id]"),ge=ue.getDuration();if(re&&ge>0){const te=Vv({compositionId:re.getAttribute("data-composition-id")||"composition",tagName:re.tagName||"div",rootDuration:ge,iframeSrc:(Y==null?void 0:Y.src)||"",selector:So(re)});te&&m([te])}}}catch(Y){console.warn("[useTimelinePlayer] Could not read timeline elements from iframe",Y)}return}B>=ce&&(clearInterval(t.current),console.warn("Could not find __player, __timeline, or __timelines on iframe after 5s"))},200)},[O,c,o,u,l,A,C,m]),N=p.useCallback(()=>{const B=O();n.current=B?B.getTime():Me.getState().currentTime??0,i.current=!0,S(),l(!1)},[O,S,l]),M=p.useCallback(()=>{const B=r.current;if(!B)return;N();const ce=B.src,ue=new URL(ce,window.location.origin);ue.searchParams.set("_t",String(Date.now())),B.src=ue.toString()},[N]),R=p.useRef(T);R.current=T;const F=p.useRef(O);F.current=O;const pe=p.useRef(A);pe.current=A;const J=p.useRef(C);J.current=C,Vt(()=>{const B=he=>{he.code==="Space"&&he.target===document.body&&(he.preventDefault(),R.current())},ce=he=>{const se=he.data,W=r.current;if(!(he.source&&W&&he.source!==W.contentWindow)){if((se==null?void 0:se.source)==="hf-preview"&&(se==null?void 0:se.type)==="state")try{if(Me.getState().elements.length===0){const Y=W==null?void 0:W.contentWindow,ee=Y==null?void 0:Y.__clipManifest;ee&&ee.clips.length>0&&pe.current(ee)}J.current()}catch(Y){console.warn("[useTimelinePlayer] Could not read clip manifest from iframe",Y)}if((se==null?void 0:se.source)==="hf-preview"&&(se==null?void 0:se.type)==="timeline"&&Array.isArray(se.clips)){if(pe.current(se),J.current(),se.durationInFrames>0&&Number.isFinite(se.durationInFrames)){const ee=se.durationInFrames/30;ee>0&&ee<7200&&Me.getState().setDuration(ee)}if(Me.getState().elements.length===0)try{const Y=W==null?void 0:W.contentDocument,ee=O();if(Y&&ee){const Q=hO(Y,ee.getDuration());Q.length>0&&m(Q)}}catch(Y){console.warn("[useTimelinePlayer] Could not read timeline elements on navigate (cross-origin)",Y)}}}},ue=()=>{var he;if(document.hidden&&Me.getState().isPlaying){const se=(he=F.current)==null?void 0:he.call(F);se&&(se.pause(),l(!1),S())}};return window.addEventListener("keydown",B),window.addEventListener("message",ce),document.addEventListener("visibilitychange",ue),()=>{window.removeEventListener("keydown",B),window.removeEventListener("message",ce),document.removeEventListener("visibilitychange",ue),S(),t.current&&clearInterval(t.current)}});const ie=p.useCallback(()=>{S(),t.current&&clearInterval(t.current),Me.getState().reset()},[S]);return{iframeRef:r,play:b,pause:$,togglePlay:T,seek:_,onIframeLoad:j,refreshPlayer:M,saveSeekPosition:N,resetPlayer:ie}}function _v({projectId:r,directUrl:e}){return e??r}const zv=p.memo(function({projectId:e,iframeRef:t,onIframeLoad:n,portrait:i,directUrl:l,refreshKey:o}){const c=_v({projectId:e,directUrl:l});return y.jsx("div",{className:"flex flex-col h-full min-h-0",children:y.jsx("div",{className:"flex-1 flex items-center justify-center p-2 overflow-hidden min-h-0",children:y.jsx(Cg,{ref:t,projectId:l?void 0:e,directUrl:l,onLoad:n,portrait:i},c)})})}),Dv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),Iv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),p.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Wv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),Hv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Yv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),Fv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),Bv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z"}))]]),qv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,8.67,5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.5,164,48,171.31,48,180Zm97.51-5.71c-5.12-3.45-11.32-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,125.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.33,179.53,145.51,174.27Zm68,0c-5.12-3.45-11.32-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.2,14.2,0,0,0,10.22-4.66A8,8,0,1,1,85.77,206.4,30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.77,9.6,8,8,0,1,1-11.55,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.35-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.2,8.2,0,0,1,10.9-.91,8,8,0,0,1,.81,11.81A30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.38,9.19,8.26,8.26,0,0,1,.74,11.09,8,8,0,0,1-11.9.38A14.2,14.2,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.35-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M46,180c0,12.13,8.07,22,18,22a16.21,16.21,0,0,0,11.66-5.28,6,6,0,0,1,8.67,8.3A28.09,28.09,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.09,28.09,0,0,1,20.33,9,6,6,0,0,1-8.67,8.3A16.21,16.21,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81-6.77c-10.85-3.13-13.4-4.69-13-7.91a6.56,6.56,0,0,1,2.88-5.08c5.59-3.79,17.66-1.82,21.44-.84a6,6,0,1,0,3.06-11.6c-2-.53-20.09-5-31.2,2.48a18.62,18.62,0,0,0-8.09,13.54c-1.79,14.19,12.27,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.21,9.76a6.89,6.89,0,0,1-3,5.34c-5.6,3.73-17.48,1.64-21.18.62A6,6,0,1,0,110.48,212a59.29,59.29,0,0,0,14.67,2c5.49,0,11.55-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.83,180.39,136.92,176.08,127,173.22Zm64,0c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM202,94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0ZM193.5,82,158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,1,1,85.77,206.4,30,30,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30,30,0,0,1,21.77,9.6,8,8,0,1,1-11.55,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.26-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56a8,8,0,0,0,4.07-15.48c-2.12-.55-21-5.22-32.83,2.76a20.55,20.55,0,0,0-9,14.95c-2,15.88,13.64,20.41,23,23.11,12.07,3.49,13.13,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36a8,8,0,0,0-4.3,15.41,61.23,61.23,0,0,0,15.18,2c5.83,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.48,174.17,127.6,171.31Zm64,0c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.15,3.93-4.6,3.06-15.16,1.56-19.54.36A8,8,0,0,0,173.93,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,0,1,5.78,5.54A26.13,26.13,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.13,26.13,0,0,1,18.89,8.36,4,4,0,0,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.25,3.25,16.47,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.79,57.79,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm64,0c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"}))]]),Uv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,128a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v12a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v76A12,12,0,0,0,48,128ZM183,80H160V57ZM68,160v48a12,12,0,0,1-24,0V196H32v12a12,12,0,0,1-24,0V160a12,12,0,0,1,24,0v12H44V160a12,12,0,0,1,24,0Zm60,0a12,12,0,0,1-12,12h-4v36a12,12,0,0,1-24,0V172H84a12,12,0,0,1,0-24h32A12,12,0,0,1,128,160Zm72,0v48a12,12,0,0,1-24,0v-9.36l-.11.16a12,12,0,0,1-19.78,0l-.11-.16V208a12,12,0,0,1-24,0V160a12,12,0,0,1,21.89-6.8L166,170.82l12.11-17.62A12,12,0,0,1,200,160Zm56,48a12,12,0,0,1-12,12H220a12,12,0,0,1-12-12V160a12,12,0,0,1,24,0v36h12A12,12,0,0,1,256,208Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v24a8,8,0,0,0,16,0ZM160,51.31,188.69,80H160ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,128H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v84A4,4,0,0,0,44,128ZM152,44l44,44H152ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214,120V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v26a6,6,0,0,0,12,0ZM158,46.48,193.52,82H158ZM66,160v48a6,6,0,0,1-12,0V190H30v18a6,6,0,0,1-12,0V160a6,6,0,0,1,12,0v18H54V160a6,6,0,0,1,12,0Zm56,0a6,6,0,0,1-6,6H106v42a6,6,0,0,1-12,0V166H84a6,6,0,0,1,0-12h32A6,6,0,0,1,122,160Zm72,0v48a6,6,0,0,1-12,0V178l-13.2,17.6a6,6,0,0,1-9.6,0L146,178v30a6,6,0,0,1-12,0V160a6,6,0,0,1,10.8-3.6L164,182l19.2-25.6A6,6,0,0,1,194,160Zm56,48a6,6,0,0,1-6,6H216a6,6,0,0,1-6-6V160a6,6,0,0,1,12,0v42h22A6,6,0,0,1,250,208Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,120V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v24a8,8,0,0,0,16,0ZM160,51.31,188.69,80H160ZM68,160v48a8,8,0,0,1-16,0V192H32v16a8,8,0,0,1-16,0V160a8,8,0,0,1,16,0v16H52V160a8,8,0,0,1,16,0Zm56,0a8,8,0,0,1-8,8h-8v40a8,8,0,0,1-16,0V168H84a8,8,0,0,1,0-16h32A8,8,0,0,1,124,160Zm72,0v48a8,8,0,0,1-16,0V184l-9.6,12.8a8,8,0,0,1-12.8,0L148,184v24a8,8,0,0,1-16,0V160a8,8,0,0,1,14.4-4.8L164,178.67l17.6-23.47A8,8,0,0,1,196,160Zm56,48a8,8,0,0,1-8,8H216a8,8,0,0,1-8-8V160a8,8,0,0,1,16,0v40h20A8,8,0,0,1,252,208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212,88a4,4,0,0,0-1.17-2.83l-2-2h0l-54-54A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v28a4,4,0,0,0,8,0ZM156,41.65,198.34,84H156ZM64,160v48a4,4,0,0,1-8,0V188H28v20a4,4,0,0,1-8,0V160a4,4,0,0,1,8,0v20H56V160a4,4,0,0,1,8,0Zm56,0a4,4,0,0,1-4,4H104v44a4,4,0,0,1-8,0V164H84a4,4,0,0,1,0-8h32A4,4,0,0,1,120,160Zm72,0v48a4,4,0,0,1-8,0V172l-16.8,22.4a4,4,0,0,1-6.4,0L144,172v36a4,4,0,0,1-8,0V160a4,4,0,0,1,7.2-2.4L164,185.33l20.8-27.73A4,4,0,0,1,192,160Zm56,48a4,4,0,0,1-4,4H216a4,4,0,0,1-4-4V160a4,4,0,0,1,8,0v44h24A4,4,0,0,1,248,208Z"}))]]),Gv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,140H104a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm104,20.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,196,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,196,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,208,176h4a12,12,0,0,1,12,12ZM80,152v38a30,30,0,0,1-60,0,12,12,0,0,1,24,0,6,6,0,0,0,12,0V152a12,12,0,0,1,24,0ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M120,144H104a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm96,0v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-9,13.26A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152ZM120,144H104a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.13-11.92,28.59-27.15A28,28,0,0,0,120,144Zm-.35,40H112V160h8a12,12,0,0,1,11.94,13.16A12.23,12.23,0,0,1,119.65,184ZM216,200.87a8,8,0,0,1-2.26,5.57A30,30,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.21,8.21,0,0,1,3,10.64,8,8,0,0,1-11.55,2.88A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1-8-8.53,8.17,8.17,0,0,1,8.25-7.47H208a8,8,0,0,1,8,8ZM80,152v37.41c0,14.22-11.18,26.26-25.41,26.58A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.75,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,146H104a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H110V158h10a14,14,0,0,1,0,28Zm94-2v16.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,192,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,9.95A15.25,15.25,0,0,0,192,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a15.75,15.75,0,0,0,10-3.73V190h-2a6,6,0,0,1,0-12h8A6,6,0,0,1,214,184ZM78,152v38a24,24,0,0,1-48,0,6,6,0,0,1,12,0,12,12,0,0,0,24,0V152a6,6,0,0,1,12,0ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,144H104a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm96,0v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-9,13.26A13.21,13.21,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.63,13.63,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,148H104a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H108V156h12a16,16,0,0,1,0,32Zm92-4v16.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,192,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.45,17.45,0,0,0,192,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8A4,4,0,0,1,212,184ZM76,152v38a22,22,0,0,1-44,0,4,4,0,0,1,8,0,14,14,0,0,0,28,0V152a4,4,0,0,1,8,0ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z"}))]]),Kv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-4.22,139.85a24.75,24.75,0,0,1-10.95,18.06c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,0,1,6.46-23.12c6.81,1.86,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.52-5.39-1.56-11-3.18-15.75-6.27-7.62-4.92-11.21-12.45-10.11-21.2a24.45,24.45,0,0,1,10.69-17.75c6.06-4.09,14.17-5.84,24.1-5.18A68.53,68.53,0,0,1,143,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.48,1.58,11.68,3.37,16.8,6.82C153.33,179.55,157,187.55,155.78,196.82ZM84,152v38a30,30,0,0,1-60,0,12,12,0,0,1,24,0,6,6,0,0,0,12,0V152a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H164a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h28a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.58,20.58,0,0,1,9-14.95c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.57,4.57,0,0,0-2,3.67c-.11.9-.13,1.09,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM80,152v37.41c0,14.22-11.18,26.26-25.41,26.58A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.75,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM145.83,196.06a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a58.89,58.89,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.78-1-15.85-3-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.09,147.84,180.4,145.83,196.06ZM78,152v38a24,24,0,0,1-48,0,6,6,0,0,1,12,0,12,12,0,0,0,24,0V152a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM80,152v38a26,26,0,0,1-52,0,8,8,0,0,1,16,0,10,10,0,0,0,20,0V152a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,0,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM76,152v38a22,22,0,0,1-44,0,4,4,0,0,1,8,0,14,14,0,0,0,28,0V152a4,4,0,0,1,8,0Z"}))]]),Jv=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M151.78,196.8a24.73,24.73,0,0,1-10.95,18c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,1,1,6.46-23.11c6.81,1.85,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.53-5.39-1.56-11-3.17-15.75-6.26-7.63-4.92-11.21-12.45-10.11-21.19a24.45,24.45,0,0,1,10.69-17.76c6.06-4.09,14.17-5.83,24.1-5.17A69,69,0,0,1,139,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.47,1.58,11.68,3.37,16.8,6.82C149.33,179.53,153,187.53,151.78,196.8ZM68,140a12,12,0,0,0-12,12v38a6,6,0,0,1-12,0,12,12,0,0,0-24,0,30,30,0,0,0,60,0V152A12,12,0,0,0,68,140Zm138.75,40,15-21a12,12,0,0,0-19.53-14L192,159.34,181.76,145a12,12,0,0,0-19.53,14l15,21-15,21A12,12,0,1,0,181.76,215L192,200.62,202.23,215A12,12,0,0,0,221.76,201ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A60.43,60.43,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM72,144a8,8,0,0,0-8,8v38a10,10,0,0,1-20,0,8,8,0,0,0-16,0,26,26,0,0,0,52,0V152A8,8,0,0,0,72,144Zm140.65,1.49a8,8,0,0,0-11.16,1.86L188,166.24l-13.49-18.89a8,8,0,0,0-13,9.3L178.17,180l-16.68,23.35a8,8,0,0,0,13,9.3L188,193.76l13.49,18.89a8,8,0,0,0,13-9.3L197.83,180l16.68-23.35A8,8,0,0,0,212.65,145.49ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.57,4.57,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM80,152v37.4c0,14.23-11.18,26.27-25.41,26.59A26,26,0,0,1,28,190.37,8.17,8.17,0,0,1,35.31,182,8,8,0,0,1,44,190.22a8.89,8.89,0,0,0,4,8c7.85,4.82,16-.76,16-8.2V152.27A8.17,8.17,0,0,1,71.47,144,8,8,0,0,1,80,152Zm134.51,4.65L197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M145.83,196.05a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a59.41,59.41,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.79-1-15.85-2.95-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.08,147.84,180.39,145.83,196.05ZM72,146a6,6,0,0,0-6,6v38a12,12,0,0,1-24,0,6,6,0,0,0-12,0,24,24,0,0,0,48,0V152A6,6,0,0,0,72,146Zm139.49,1.12a6,6,0,0,0-8.37,1.39L188,169.67,172.88,148.5a6,6,0,0,0-9.76,7L180.63,180,163.12,204.5a6,6,0,1,0,9.76,7L188,190.31l15.12,21.16a6,6,0,1,0,9.76-7L195.37,180l17.51-24.51A6,6,0,0,0,211.49,147.11ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.58,20.58,0,0,1,9-14.95c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM72,144a8,8,0,0,0-8,8v38a10,10,0,0,1-20,0,8,8,0,0,0-16,0,26,26,0,0,0,52,0V152A8,8,0,0,0,72,144Zm140.65,1.49a8,8,0,0,0-11.16,1.86L188,166.24l-13.49-18.89a8,8,0,0,0-13,9.3L178.17,180l-16.68,23.35a8,8,0,0,0,13,9.3L188,193.76l13.49,18.89a8,8,0,0,0,13-9.3L197.83,180l16.68-23.35A8,8,0,0,0,212.65,145.49ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,1,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM72,148a4,4,0,0,0-4,4v38a14,14,0,0,1-28,0,4,4,0,0,0-8,0,22,22,0,0,0,44,0V152A4,4,0,0,0,72,148Zm138.32.75a4,4,0,0,0-5.58.92L188,173.12l-16.75-23.45a4,4,0,0,0-6.51,4.66L183.08,180l-18.34,25.67a4,4,0,0,0,.93,5.58,4,4,0,0,0,5.58-.92L188,186.88l16.74,23.45A4,4,0,0,0,208,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L192.92,180l18.33-25.67A4,4,0,0,0,210.32,148.75ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z"}))]]),e3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z"}))]]),t3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm104-60a12,12,0,0,1-12,12H140v12a12,12,0,0,1-24,0V164H104a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,164,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-40-64a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,160H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16a8,8,0,0,1,0,16Zm0-72V43.31L196.69,88Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-42-66a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V158H104a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-40-64a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-44-68a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V156H104a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,152Z"}))]]),n3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M56,140H40a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H52V164h4a8,8,0,0,1,0,16Zm176,20.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,204,220c-19.85,0-36-17.95-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,216,176h4a12,12,0,0,1,12,12ZM160,152v56a12,12,0,0,1-8.34,11.43A12.15,12.15,0,0,1,148,220a12,12,0,0,1-9.76-5L120,189.44V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.76-7L136,170.55V152a12,12,0,0,1,24,0ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M60,144H44a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H52V160h8a12,12,0,0,1,0,24Zm164,16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,200,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.45,29.45,0,0,1,16.48,5.11,8,8,0,0,1-9,13.27A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1,0-16h8a8,8,0,0,1,8,8ZM156,152v56a8,8,0,0,1-5.56,7.62A7.91,7.91,0,0,1,148,216a8,8,0,0,1-6.51-3.35L116,177v31a8,8,0,0,1-16,0V152a8,8,0,0,1,14.51-4.65L140,183V152a8,8,0,0,1,16,0ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152ZM60,144H44a8,8,0,0,0-8,8v55.72A8.17,8.17,0,0,0,43.47,216,8,8,0,0,0,52,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,60,144Zm-.35,40H52V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,59.65,184ZM224,200.87a8,8,0,0,1-2.26,5.57A30.07,30.07,0,0,1,200,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.21,8.21,0,0,1,3,10.64,8,8,0,0,1-11.55,2.88A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1-8-8.53,8.17,8.17,0,0,1,8.25-7.47H216a8,8,0,0,1,8,8ZM156,152v55.76a8.22,8.22,0,0,1-4.12,7.24,8,8,0,0,1-10.39-2.35L116,177v30.76a8.17,8.17,0,0,1-7.47,8.26,8,8,0,0,1-8.53-8V152.31a8.27,8.27,0,0,1,4.53-7.52,8,8,0,0,1,10,2.56L140,183V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,156,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,146H44a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H60a26,26,0,0,0,0-52Zm0,40H50V158H60a14,14,0,0,1,0,28Zm162,14.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,9.95A15.25,15.25,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a15.75,15.75,0,0,0,10-3.73V190h-2a6,6,0,0,1,0-12h8a6,6,0,0,1,6,6ZM154,152v56a6,6,0,0,1-4.17,5.71A5.78,5.78,0,0,1,148,214a6,6,0,0,1-4.88-2.51L114,170.72V208a6,6,0,0,1-12,0V152a6,6,0,0,1,10.88-3.49L142,189.28V152a6,6,0,0,1,12,0ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,144H44a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H52V160h8a12,12,0,0,1,0,24Zm164,16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a29.45,29.45,0,0,1,16.48,5.11,8,8,0,0,1-9,13.27A13.21,13.21,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.57,13.57,0,0,0,8-2.72V192a8,8,0,0,1,0-16h8a8,8,0,0,1,8,8ZM156,152v56a8,8,0,0,1-5.56,7.62A7.91,7.91,0,0,1,148,216a8,8,0,0,1-6.51-3.35L116,177v31a8,8,0,0,1-16,0V152a8,8,0,0,1,14.51-4.65L140,183V152a8,8,0,0,1,16,0ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,148H44a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H60a24,24,0,0,0,0-48Zm0,40H48V156H60a16,16,0,0,1,0,32Zm160,12.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.45,17.45,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8a4,4,0,0,1,4,4ZM152,152v56a4,4,0,0,1-2.78,3.81A3.93,3.93,0,0,1,148,212a4,4,0,0,1-3.25-1.67L112,164.48V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.25-2.33L144,195.52V152a4,4,0,0,1,8,0Zm52-40a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52ZM156,84V41.65L198.34,84Z"}))]]),r3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,1,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM183,80H160V57ZM87.78,196.8a24.72,24.72,0,0,1-10.94,18c-6,4-13.27,5.15-19.74,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,1,1,6.46-23.11c6.82,1.85,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.82-2.64-9.88-3.53-5.39-1.56-11-3.17-15.75-6.26-7.62-4.92-11.21-12.45-10.1-21.19a24.44,24.44,0,0,1,10.68-17.76c6.07-4.09,14.17-5.82,24.1-5.17A69,69,0,0,1,75,142a12,12,0,0,1-6.1,23.21c-6.35-1.63-13.61-1.51-16.07-.33a79.69,79.69,0,0,0,7.92,2.59c5.47,1.58,11.67,3.37,16.8,6.82C85.33,179.53,89,187.53,87.78,196.8ZM155.3,156l-20,56a12,12,0,0,1-22.6,0l-20-56A12,12,0,1,1,115.3,148L124,172.3,132.7,148A12,12,0,1,1,155.3,156ZM224,188v12.87a12,12,0,0,1-3.33,8.3A34,34,0,0,1,196,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a33.39,33.39,0,0,1,18.71,5.8,12,12,0,1,1-13.42,19.89A9.39,9.39,0,0,0,196,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a9,9,0,0,0,2.7-.42A12,12,0,0,1,208,176h4A12,12,0,0,1,224,188Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,1,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-72.18,145a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31Zm63.72-41.62-20,56a8,8,0,0,1-15.07,0l-20-56a8,8,0,1,1,15.06-5.38L124,184.21l12.46-34.9a8,8,0,0,1,15.07,5.38ZM216,184v16.87a8,8,0,0,1-2.22,5.53A30.06,30.06,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.38,29.38,0,0,1,16.48,5.12,8,8,0,0,1-8.95,13.26A13.27,13.27,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.38,13.38,0,0,0,8-2.71V192a8,8,0,0,1,0-16h8A8,8,0,0,1,216,184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM87.82,196.31a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31Zm63.72-41.62-19.9,55.72a8.25,8.25,0,0,1-6.5,5.51,8,8,0,0,1-8.67-5.23L96.59,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L124,184.21l12.46-34.9a8,8,0,0,1,15.07,5.38ZM216,184v16.87a8,8,0,0,1-2.26,5.57A30,30,0,0,1,192,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a29.36,29.36,0,0,1,16.09,4.86,8.22,8.22,0,0,1,3,10.64,8,8,0,0,1-11.54,2.88A13.27,13.27,0,0,0,192,160c-8.82,0-16,9-16,20s7.18,20,16,20a13.38,13.38,0,0,0,8-2.71V192a8,8,0,0,1-8-8.53,8.18,8.18,0,0,1,8.26-7.47H208A8,8,0,0,1,216,184Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.75l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,1,0,12,0V88A6,6,0,0,0,212.24,83.75ZM158,46.48,193.52,82H158ZM85.83,196.05a18.85,18.85,0,0,1-8.3,13.81C72.71,213.05,66.66,214,61.16,214a59.38,59.38,0,0,1-14.67-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.57-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.2-2.48a6,6,0,0,1-3,11.6c-3.79-1-15.85-2.95-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C72.93,176.08,87.85,180.39,85.83,196.05Zm63.82-42-20,56a6,6,0,0,1-11.3,0l-20-56a6,6,0,1,1,11.3-4L124,190.15,138.35,150a6,6,0,0,1,11.3,4ZM214,184v16.87a6,6,0,0,1-1.67,4.15A28.06,28.06,0,0,1,192,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a27.43,27.43,0,0,1,15.36,4.77,6,6,0,0,1-6.72,10A15.25,15.25,0,0,0,192,158c-9.92,0-18,9.87-18,22s8.08,22,18,22a15.7,15.7,0,0,0,10-3.74V190h-2a6,6,0,0,1,0-12h8A6,6,0,0,1,214,184Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M87.82,196.31a20.82,20.82,0,0,1-9.19,15.23C73.44,215,67,216,61.14,216A61.23,61.23,0,0,1,46,214a8,8,0,0,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.55,20.55,0,0,1,9-14.95c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.14,1.09,1.12,1.9,2.31,1.49,6.44,2.68,10.45,3.84C73.5,174.17,90.06,179,87.82,196.31ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,1,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.65,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm-13.3,64.47a8,8,0,0,0-10.23,4.84L124,184.21l-12.47-34.9a8,8,0,1,0-15.06,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,146.7,144.47ZM208,176h-8a8,8,0,0,0,0,16v5.29a13.38,13.38,0,0,1-8,2.71c-8.82,0-16-9-16-20s7.18-20,16-20a13.27,13.27,0,0,1,7.53,2.38,8,8,0,0,0,8.95-13.26A29.38,29.38,0,0,0,192,144c-17.64,0-32,16.15-32,36s14.36,36,32,36a30.06,30.06,0,0,0,21.78-9.6,8,8,0,0,0,2.22-5.53V184A8,8,0,0,0,208,176Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,1,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM83.85,195.8a17,17,0,0,1-7.43,12.41C72,211.12,66.38,212,61.2,212A57.89,57.89,0,0,1,47,210.11a4,4,0,1,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.11,61.11,0,0,1,10.47,1.61,4,4,0,0,1-2,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C72.27,178,85.65,181.84,83.85,195.8Zm63.92-42.45-20,56a4,4,0,0,1-7.53,0l-20-56a4,4,0,1,1,7.53-2.7L124,196.11l16.23-45.46a4,4,0,1,1,7.53,2.7ZM212,184v16.87a4,4,0,0,1-1.11,2.77A26.11,26.11,0,0,1,192,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a25.41,25.41,0,0,1,14.24,4.43,4,4,0,1,1-4.48,6.63A17.43,17.43,0,0,0,192,156c-11,0-20,10.77-20,24s9,24,20,24a17.87,17.87,0,0,0,12-4.82V188h-4a4,4,0,0,1,0-8h8A4,4,0,0,1,212,184Z"}))]]),i3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-4.22,139.85a24.75,24.75,0,0,1-10.95,18.06c-6,4-13.27,5.15-19.73,5.15a63.75,63.75,0,0,1-16.23-2.21,12,12,0,0,1,6.46-23.12c6.81,1.86,15,1.61,16.39.06a2.48,2.48,0,0,0,.21-.71c-1.94-1.23-6.83-2.64-9.88-3.52-5.39-1.56-11-3.18-15.75-6.27-7.62-4.92-11.21-12.45-10.11-21.2a24.45,24.45,0,0,1,10.69-17.75c6.06-4.09,14.17-5.83,24.1-5.18A68.53,68.53,0,0,1,143,142a12,12,0,0,1-6.1,23.21c-6.36-1.63-13.62-1.51-16.07-.33a79.5,79.5,0,0,0,7.91,2.59c5.48,1.58,11.68,3.37,16.8,6.82C153.33,179.55,157,187.55,155.78,196.82ZM92,152a12,12,0,0,1-12,12H72v44a12,12,0,0,1-24,0V164H40a12,12,0,0,1,0-24H80A12,12,0,0,1,92,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Zm-12.19,145a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM88,152a8,8,0,0,1-8,8H68v48a8,8,0,0,1-16,0V160H40a8,8,0,0,1,0-16H80A8,8,0,0,1,88,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H164a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h28a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-4.19,108.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A61.14,61.14,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM88,152.53A8.17,8.17,0,0,1,79.73,160H68v47.73A8.17,8.17,0,0,1,60.53,216,8,8,0,0,1,52,208V160H40.27A8.17,8.17,0,0,1,32,152.53,8,8,0,0,1,40,144H80A8,8,0,0,1,88,152.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM145.83,196.06a18.89,18.89,0,0,1-8.31,13.81c-4.82,3.19-10.87,4.14-16.36,4.14a58.89,58.89,0,0,1-14.68-2,6,6,0,0,1,3.23-11.56c3.71,1,15.58,3.11,21.19-.62a6.85,6.85,0,0,0,3-5.34c.58-4.43-2.08-6.26-14.2-9.76-9.31-2.69-23.37-6.75-21.57-20.94a18.61,18.61,0,0,1,8.08-13.54c11.11-7.49,29.18-3,31.21-2.48a6,6,0,0,1-3.06,11.6c-3.78-1-15.85-3-21.45.84a6.59,6.59,0,0,0-2.88,5.08c-.41,3.22,2.14,4.78,13,7.91C132.92,176.09,147.84,180.4,145.83,196.06ZM86,152a6,6,0,0,1-6,6H66v50a6,6,0,0,1-12,0V158H40a6,6,0,0,1,0-12H80A6,6,0,0,1,86,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M147.81,196.31a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216a61.34,61.34,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.2,15,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.34-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150.05,179,147.81,196.31ZM216,88V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM143.84,195.8a17,17,0,0,1-7.43,12.41c-4.39,2.91-10,3.77-15.22,3.77A57.89,57.89,0,0,1,107,210.11a4,4,0,0,1,2.15-7.7c4.22,1.17,16.56,3.29,22.83-.88a8.94,8.94,0,0,0,3.91-6.75c.83-6.45-4.38-8.69-15.64-11.94-9.68-2.8-21.72-6.28-20.14-18.77a16.66,16.66,0,0,1,7.22-12.13c4.56-3.07,11-4.36,19.1-3.82a61.33,61.33,0,0,1,10.48,1.61,4,4,0,0,1-2.05,7.74c-4.29-1.13-16.81-3.12-23.06,1.11a8.51,8.51,0,0,0-3.75,6.49c-.66,5.17,3.89,7,14.42,10.08C132.26,178,145.64,181.84,143.84,195.8ZM84,152a4,4,0,0,1-4,4H64v52a4,4,0,0,1-8,0V156H40a4,4,0,0,1,0-8H80A4,4,0,0,1,84,152Z"}))]]),s3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.76,201A12,12,0,1,1,202.23,215L192,200.62,181.76,215A12,12,0,1,1,162.23,201l15-21-15-21a12,12,0,0,1,19.53-14L192,159.34,202.23,145a12,12,0,0,1,19.53,14l-15,21Zm-80.25-26.73c-5.12-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,139,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,121.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C153,187.53,149.33,179.53,141.51,174.27ZM76,140H36a12,12,0,0,0,0,24h8v44a12,12,0,0,0,24,0V164h8a12,12,0,0,0,0-24ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M214.51,156.65,197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM123.6,171.31c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.11-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,138,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.14,3.93-4.6,3.06-15.17,1.56-19.55.35A8,8,0,1,0,106,214a60.43,60.43,0,0,0,15.18,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C150,179,133.49,174.17,123.6,171.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm62.51,68.65L197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm-66.7,39.66a20.82,20.82,0,0,1-9.19,15.23C133.43,215,127,216,121.13,216A60.43,60.43,0,0,1,106,214a8,8,0,1,1,4.3-15.41c4.38,1.21,15,2.71,19.55-.35.88-.6,1.83-1.52,2.14-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,9-14.94c11.85-8,30.72-3.31,32.84-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.08,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C133.49,174.17,150,179,147.81,196.31ZM88,152.53A8.18,8.18,0,0,1,79.73,160H68v47.72A8.18,8.18,0,0,1,60.53,216,8,8,0,0,1,52,208V160H40.27A8.18,8.18,0,0,1,32,152.53,8,8,0,0,1,40,144H80A8,8,0,0,1,88,152.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.88,155.48,195.37,180l17.51,24.51a6,6,0,1,1-9.76,7L188,190.31l-15.12,21.16a6,6,0,1,1-9.76-7L180.63,180l-17.51-24.51a6,6,0,0,1,9.76-7L188,169.67l15.12-21.17a6,6,0,1,1,9.76,7Zm-89.83,17.74c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.83,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,106.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C147.84,180.39,132.92,176.08,123.05,173.22ZM80,146H40a6,6,0,0,0,0,12H54v50a6,6,0,0,0,12,0V158H80a6,6,0,0,0,0-12ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.51,156.65,197.83,180l16.68,23.35a8,8,0,0,1-13,9.3L188,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L178.17,180l-16.68-23.35a8,8,0,0,1,13-9.3L188,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM123.6,171.31c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.11-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,138,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.14,3.93-4.6,3.06-15.17,1.56-19.55.35A8,8,0,0,0,105.94,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C150,179,133.49,174.17,123.6,171.31ZM80,144H40a8,8,0,0,0,0,16H52v48a8,8,0,0,0,16,0V160H80a8,8,0,0,0,0-16ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.25,154.33,192.92,180l18.33,25.67a4,4,0,0,1-.93,5.58A3.91,3.91,0,0,1,208,212a4,4,0,0,1-3.26-1.67L188,186.88l-16.75,23.45a4,4,0,0,1-6.51-4.66L183.08,180l-18.34-25.67a4,4,0,0,1,6.51-4.66L188,173.12l16.74-23.45a4,4,0,0,1,6.51,4.66Zm-88.76,20.82c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2.05-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,121.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C145.64,181.84,132.26,178,122.49,175.15ZM80,148H40a4,4,0,0,0,0,8H56v52a4,4,0,0,0,8,0V156H80a4,4,0,0,0,0-8ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z"}))]]),l3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.49l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM183,80H160V57Zm-25.27,79-15,21,15,21A12,12,0,1,1,138.24,215L128,200.65,117.76,215A12,12,0,1,1,98.24,201l15-21-15-21A12,12,0,1,1,117.76,145L128,159.35,138.24,145A12,12,0,1,1,157.76,159ZM92,152a12,12,0,0,1-12,12H72v44a12,12,0,0,1-24,0V164H40a12,12,0,0,1,0-24H80A12,12,0,0,1,92,152Zm136,0a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,228,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),p.createElement("path",{d:"M48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Zm-5.49,105.34L137.83,180l16.68,23.35a8,8,0,0,1-13,9.3L128,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L118.17,180l-16.68-23.35a8,8,0,1,1,13-9.3L128,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM92,152a8,8,0,0,1-8,8H72v48a8,8,0,0,1-16,0V160H44a8,8,0,0,1,0-16H84A8,8,0,0,1,92,152Zm128,0a8,8,0,0,1-8,8H200v48a8,8,0,0,1-16,0V160H172a8,8,0,0,1,0-16h40A8,8,0,0,1,220,152Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M154.31,156.92,137.83,180l16.53,23.14a8.18,8.18,0,0,1-1.22,11,8,8,0,0,1-11.65-1.48L128,193.76l-13.49,18.89a8,8,0,0,1-11.64,1.49,8.17,8.17,0,0,1-1.23-11L118.17,180l-16.48-23.08a8.22,8.22,0,0,1,1.46-11.28,8,8,0,0,1,11.36,1.71L128,166.24l13.49-18.89a8,8,0,0,1,11.36-1.71A8.22,8.22,0,0,1,154.31,156.92ZM84,144H44.27A8.18,8.18,0,0,0,36,151.47,8,8,0,0,0,44,160H56v47.73A8.17,8.17,0,0,0,63.47,216,8,8,0,0,0,72,208V160H83.73A8.18,8.18,0,0,0,92,152.53,8,8,0,0,0,84,144Zm128,0H172.27a8.18,8.18,0,0,0-8.25,7.47,8,8,0,0,0,8,8.53h12v47.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V160h11.73a8.18,8.18,0,0,0,8.25-7.47A8,8,0,0,0,212,144ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Zm-5.12,109L135.37,180l17.51,24.51a6,6,0,1,1-9.76,7L128,190.32l-15.12,21.17a6,6,0,0,1-9.76-7L120.63,180l-17.51-24.51a6,6,0,1,1,9.76-7L128,169.68l15.12-21.17a6,6,0,0,1,9.76,7ZM90,152a6,6,0,0,1-6,6H70v50a6,6,0,0,1-12,0V158H44a6,6,0,0,1,0-12H84A6,6,0,0,1,90,152Zm128,0a6,6,0,0,1-6,6H198v50a6,6,0,0,1-12,0V158H172a6,6,0,0,1,0-12h40A6,6,0,0,1,218,152Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Zm-5.49,105.34L137.83,180l16.68,23.35a8,8,0,0,1-13,9.3L128,193.76l-13.49,18.89a8,8,0,1,1-13-9.3L118.17,180l-16.68-23.35a8,8,0,1,1,13-9.3L128,166.24l13.49-18.89a8,8,0,0,1,13,9.3ZM92,152a8,8,0,0,1-8,8H72v48a8,8,0,0,1-16,0V160H44a8,8,0,0,1,0-16H84A8,8,0,0,1,92,152Zm128,0a8,8,0,0,1-8,8H200v48a8,8,0,0,1-16,0V160H172a8,8,0,0,1,0-16h40A8,8,0,0,1,220,152Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,112a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52ZM156,41.65,198.34,84H156Zm-4.75,112.67L132.92,180l18.33,25.67a4,4,0,1,1-6.5,4.65L128,186.88l-16.75,23.44a4,4,0,1,1-6.5-4.65L123.08,180l-18.33-25.68a4,4,0,1,1,6.5-4.65L128,173.12l16.75-23.45a4,4,0,1,1,6.5,4.65ZM88,152a4,4,0,0,1-4,4H68v52a4,4,0,0,1-8,0V156H44a4,4,0,0,1,0-8H84A4,4,0,0,1,88,152Zm128,0a4,4,0,0,1-4,4H196v52a4,4,0,0,1-8,0V156H172a4,4,0,0,1,0-8h40A4,4,0,0,1,216,152Z"}))]]),o3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",opacity:"0.2"}),p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z"}))]]),a3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z"}))]]),c3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Zm-84-88a12,12,0,0,1,12,12v12h12a12,12,0,0,1,0,24H140v12a12,12,0,0,1-24,0V156H104a12,12,0,0,1,0-24h12V120A12,12,0,0,1,128,108Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Zm-56-56a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,144Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm-64,80H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2ZM158,144a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V150H104a6,6,0,0,1,0-12h18V120a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,144Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Zm-56-56a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V152H104a8,8,0,0,1,0-16h16V120a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,144Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4ZM156,144a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V148H104a4,4,0,0,1,0-8h20V120a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,144Z"}))]]),u3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"}))]]),h3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),f3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),d3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M90.86,50.89a12,12,0,0,0-21.72,0l-64,136a12,12,0,0,0,21.71,10.22L42.44,164h75.12l15.58,33.11a12,12,0,0,0,21.72-10.22ZM53.74,140,80,84.18,106.27,140ZM200,84c-13.85,0-24.77,3.86-32.45,11.48a12,12,0,1,0,16.9,17c3-3,8.26-4.52,15.55-4.52,11,0,20,7.18,20,16v4.39A47.28,47.28,0,0,0,200,124c-24.26,0-44,17.94-44,40s19.74,40,44,40a47.18,47.18,0,0,0,22-5.38A12,12,0,0,0,244,192V124C244,101.94,224.26,84,200,84Zm0,96c-11,0-20-7.18-20-16s9-16,20-16,20,7.18,20,16S211,180,200,180Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,164c0,15.46-14.33,28-32,28s-32-12.54-32-28,14.33-28,32-28S232,148.54,232,164ZM34.82,152h90.36L80,56Z",opacity:"0.2"}),p.createElement("path",{d:"M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,156c0,6.5-7.33,12-16,12s-16-5.5-16-12,7.33-12,16-12S200,149.5,200,156ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM143.37,172.88l-44-104a8,8,0,0,0-14.74,0l-44,104a8,8,0,0,0,14.74,6.24L66.84,152h50.32l11.47,27.12a8,8,0,0,0,14.74-6.24ZM216,124c0-15.44-14.36-28-32-28a34.86,34.86,0,0,0-20.78,6.68,8,8,0,0,0,9.56,12.83A18.84,18.84,0,0,1,184,112c8.56,0,15.8,5.36,16,11.76v8A35.24,35.24,0,0,0,184,128c-17.64,0-32,12.56-32,28s14.36,28,32,28a35.13,35.13,0,0,0,16.93-4.26A8,8,0,0,0,216,176ZM73.61,136h36.78L92,92.53Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M85.43,53.45a6,6,0,0,0-10.86,0l-64,136a6,6,0,1,0,10.86,5.11L38.63,158h82.74l17.2,36.55a6,6,0,1,0,10.86-5.11ZM44.28,146,80,70.09,115.72,146ZM200,98c-12.21,0-21.71,3.28-28.23,9.74a6,6,0,0,0,8.46,8.52c4.18-4.15,10.84-6.26,19.77-6.26,14.34,0,26,9.87,26,22v7.24A40.36,40.36,0,0,0,200,130c-20.95,0-38,15.25-38,34s17.05,34,38,34a40.36,40.36,0,0,0,26-9.24V192a6,6,0,0,0,12,0V132C238,113.25,221,98,200,98Zm0,88c-14.34,0-26-9.87-26-22s11.66-22,26-22,26,9.87,26,22S214.34,186,200,186Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M83.62,54.3a4,4,0,0,0-7.24,0l-64,136a4,4,0,0,0,7.24,3.4L37.36,156h85.28l17.74,37.7a4,4,0,1,0,7.24-3.4ZM41.13,148,80,65.39,118.87,148ZM200,100c-11.67,0-20.69,3.08-26.82,9.16a4,4,0,1,0,5.64,5.68c4.57-4.54,11.7-6.84,21.18-6.84,15.44,0,28,10.77,28,24v11.92A37.78,37.78,0,0,0,200,132c-19.85,0-36,14.35-36,32s16.15,32,36,32a37.78,37.78,0,0,0,28-11.92V192a4,4,0,0,0,8,0V132C236,114.36,219.85,100,200,100Zm0,88c-15.44,0-28-10.77-28-24s12.56-24,28-24,28,10.77,28,24S215.44,188,200,188Z"}))]]),p3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),m3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),O3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),p.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"}))]]),g3=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),x3=p.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),at=p.forwardRef((r,e)=>{const{alt:t,color:n,size:i,weight:l,mirrored:o,children:c,weights:u,...f}=r,{color:m="currentColor",size:O,weight:x="regular",mirrored:S=!1,...w}=p.useContext(x3);return p.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i??O,height:i??O,fill:n??m,viewBox:"0 0 256 256",transform:o||S?"scale(-1, 1)":void 0,...w,...f},!!t&&p.createElement("title",null,t),c,u.get(l??x))});at.displayName="IconBase";const Ng=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Dv}));Ng.displayName="ArrowLeftIcon";const y3=Ng,_g=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Iv}));_g.displayName="CaretDownIcon";const v3=_g,Fc=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Wv}));Fc.displayName="CaretRightIcon";const zg=Fc,Dg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Hv}));Dg.displayName="CheckCircleIcon";const Ig=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Yv}));Ig.displayName="CopyIcon";const S3=Ig,Wg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Fv}));Wg.displayName="FileIcon";const w3=Wg,Hg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Bv}));Hg.displayName="FileCodeIcon";const k3=Hg,Yg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:qv}));Yg.displayName="FileCssIcon";const b3=Yg,Fg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Uv}));Fg.displayName="FileHtmlIcon";const Q3=Fg,Bg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Gv}));Bg.displayName="FileJpgIcon";const $3=Bg,qg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Kv}));qg.displayName="FileJsIcon";const P3=qg,Ug=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:Jv}));Ug.displayName="FileJsxIcon";const A3=Ug,Gg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:e3}));Gg.displayName="FileMdIcon";const C3=Gg,Kg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:t3}));Kg.displayName="FilePlusIcon";const dO=Kg,Jg=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:n3}));Jg.displayName="FilePngIcon";const T3=Jg,e8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:r3}));e8.displayName="FileSvgIcon";const Z3=e8,t8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:i3}));t8.displayName="FileTsIcon";const M3=t8,n8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:s3}));n8.displayName="FileTsxIcon";const E3=n8,r8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:l3}));r8.displayName="FileTxtIcon";const j3=r8,i8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:o3}));i8.displayName="FileVideoIcon";const V3=i8,s8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:a3}));s8.displayName="FolderSimpleIcon";const R3=s8,l8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:c3}));l8.displayName="FolderSimplePlusIcon";const o8=l8,a8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:u3}));a8.displayName="ImageIcon";const L3=a8,c8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:h3}));c8.displayName="PencilSimpleIcon";const X3=c8,u8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:f3}));u8.displayName="PlusIcon";const N3=u8,h8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:d3}));h8.displayName="TextAaIcon";const _3=h8,f8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:p3}));f8.displayName="TrashIcon";const z3=f8,jc=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:m3}));jc.displayName="WarningIcon";const d8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:O3}));d8.displayName="WaveformIcon";const D3=d8,p8=p.forwardRef((r,e)=>p.createElement(at,{ref:e,...r,weights:g3}));p8.displayName="XIcon";function I3({stack:r,onNavigate:e}){return r.length<=1?null:y.jsxs("nav",{"aria-label":"Composition navigation",className:"flex items-center gap-1 px-2 h-8 border-b border-neutral-800/50 bg-neutral-900/50 flex-shrink-0",children:[y.jsx("button",{type:"button",onClick:()=>e(r.length-2),className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-xs text-neutral-400 hover:text-white hover:bg-neutral-800 transition-colors",title:"Back (Esc)",children:y.jsx(y3,{size:12,weight:"bold"})}),r.map((t,n)=>{const i=n===r.length-1;return y.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&y.jsx(zg,{size:10,className:"text-neutral-600 flex-shrink-0"}),i?y.jsx("span",{className:"text-xs text-neutral-200 font-medium",children:t.label}):y.jsx("button",{type:"button",onClick:()=>e(n),className:"text-xs text-neutral-500 hover:text-neutral-200 transition-colors",children:t.label})]},t.id)})]})}const W3=100,H3=220,Y3=120,F3=p.memo(function({projectId:e,portrait:t,previewOverlay:n,timelineToolbar:i,timelineFooter:l,refreshKey:o,activeCompositionPath:c,onIframeRef:u,onCompositionChange:f,renderClipContent:m,onFileDrop:O,onDeleteElement:x,onAssetDrop:S,onMoveElement:w,onResizeElement:b,onBlockedEditAttempt:$,onCompIdToSrcChange:T,timelineVisible:_,onToggleTimeline:A}){const{iframeRef:C,togglePlay:j,seek:N,onIframeLoad:M,refreshPlayer:R,saveSeekPosition:F}=Nv(),pe=p.useRef(e);pe.current!==e&&(pe.current=e,Me.getState().reset());const J=p.useRef(o);p.useEffect(()=>{o!==J.current&&(J.current=o,R())},[o,R]);const ie=p.useCallback(()=>{M(),u==null||u(C.current)},[M,C,u]),[B,ce]=p.useState(new Map);Vt(()=>{fetch(`/api/projects/${e}/files/index.html`).then(Xe=>Xe.json()).then(Xe=>{const Je=Xe.content||"",qe=new Map,We=/data-composition-id=["']([^"']+)["'][^>]*data-composition-src=["']([^"']+)["']|data-composition-src=["']([^"']+)["'][^>]*data-composition-id=["']([^"']+)["']/g;let Ne;for(;(Ne=We.exec(Je))!==null;){const tt=Ne[1]||Ne[4],ut=Ne[2]||Ne[3];tt&&ut&&qe.set(tt,ut)}ce(qe),T==null||T(qe)}).catch(()=>{})});const ue=p.useRef(B);ue.current=B,p.useEffect(()=>{if(B.size===0)return;const Xe=We=>{const Ne=ue.current;if(Ne.size===0)return null;let tt=!1;const ut=We.map(Ot=>{if(Ot.compositionSrc)return Ot;const tn=Ne.get(Ot.id)??Ne.get(Ot.id.replace(/-(host|comp|layer)$/,""));return tn?(tt=!0,{...Ot,compositionSrc:tn}):Ot});return tt?ut:null},Je=Xe(Me.getState().elements);Je&&Me.getState().setElements(Je);let qe=!1;return Me.subscribe((We,Ne)=>{if(qe||We.elements===Ne.elements||We.elements.length===0||We.elements.every(ut=>ut.compositionSrc))return;qe=!0;const tt=Xe(We.elements);tt&&We.setElements(tt),qe=!1})},[B]);const[he,se]=p.useState([{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`}]),W=p.useRef(f);W.current=f;const Y=p.useCallback(Xe=>{se(Je=>{var Ne;const qe=typeof Xe=="function"?Xe(Je):Xe,We=(Ne=qe[qe.length-1])==null?void 0:Ne.id;return queueMicrotask(()=>{var tt;return(tt=W.current)==null?void 0:tt.call(W,We==="master"?null:We)}),qe})},[]),[ee,Q]=p.useState(H3),z=p.useRef(!1),re=p.useRef(null),ge=he[he.length-1],te=he.length>1?ge.previewUrl:void 0,ve=p.useRef(0),Le=C,Ee=p.useCallback(Xe=>{var We;if(!Xe.compositionSrc)return;ve.current=Me.getState().currentTime,F();const Je=Xe.id;let qe=B.get(Je);if(!qe)try{const Ne=(We=Le.current)==null?void 0:We.contentDocument;if(Ne){const tt=Ne.querySelector(`[data-composition-id="${Je}"][data-composition-src]`);tt&&(qe=tt.getAttribute("data-composition-src")||void 0)}}catch{}if(!qe){const Ne=Xe.compositionSrc,tt=Ne.match(/compositions\/.*\.html/);qe=tt?tt[0]:Ne}Me.getState().setElements([]),Y(Ne=>{var tn;if(Ne[Ne.length-1].id===qe&&Ne.length>1)return Ne.slice(0,-1);const ut=((tn=qe.split("/").pop())==null?void 0:tn.replace(/\.html$/,""))||qe,Ot=`/api/projects/${e}/preview/comp/${qe}`;return[...Ne,{id:qe,label:ut,previewUrl:Ot}]})},[e,B]),ze=p.useCallback(Xe=>{Xe===0&&ve.current>0&&Me.getState().setCurrentTime(ve.current),F(),Me.getState().setElements([]),Y(Je=>Je.slice(0,Xe+1))},[]);p.useEffect(()=>{if(c==="index.html")Me.getState().setElements([]),Y(Xe=>Xe.length>1?[Xe[0]]:Xe);else if(c&&c.startsWith("compositions/")){const Xe=c.replace(/^compositions\//,"").replace(/\.html$/,""),Je=`/api/projects/${e}/preview/comp/${c}`;Me.getState().setElements([]),Y(qe=>{var We;return((We=qe[qe.length-1])==null?void 0:We.id)===c?qe:[{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`},{id:c,label:Xe,previewUrl:Je}]})}else c||Me.getState().setElements([])},[c,e,Y]);const _e=p.useCallback(Xe=>{Xe.preventDefault(),z.current=!0,Xe.target.setPointerCapture(Xe.pointerId)},[]),ct=p.useCallback(Xe=>{if(!z.current||!re.current)return;const Je=re.current.getBoundingClientRect(),qe=Xe.clientY-Je.top,We=Je.height,Ne=Math.max(W3,Math.min(We-Y3,We-qe));Q(Ne)},[]),Ge=p.useCallback(()=>{z.current=!1},[]),bn=p.useCallback(Xe=>{Xe.key==="Escape"&&he.length>1&&Y(Je=>Je.slice(0,-1))},[he.length]);return y.jsxs("div",{ref:re,className:"flex flex-col h-full min-h-0 bg-neutral-950",onKeyDown:bn,tabIndex:-1,children:[y.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[y.jsxs("div",{className:"flex-1 min-h-0 relative",children:[y.jsx(zv,{projectId:e,iframeRef:C,onIframeLoad:ie,portrait:t,directUrl:te,refreshKey:o}),n]}),y.jsxs("div",{className:"bg-neutral-950 border-t border-neutral-800/50 flex-shrink-0",children:[he.length>1&&y.jsx(I3,{stack:he,onNavigate:ze}),y.jsx(Yy,{onTogglePlay:j,onSeek:N,timelineVisible:_??!0,onToggleTimeline:A})]})]}),(_??!0)&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"group h-2 flex-shrink-0 cursor-row-resize flex items-center justify-center z-10",style:{touchAction:"none"},onPointerDown:_e,onPointerMove:ct,onPointerUp:Ge,children:y.jsx("div",{className:"h-px w-full bg-white/10 transition-colors group-hover:bg-white/16 group-active:bg-white/22"})}),y.jsxs("div",{className:"flex flex-col flex-shrink-0",style:{height:ee},children:[y.jsxs("div",{className:"flex flex-col flex-1 min-h-0 overflow-hidden bg-neutral-950",onDoubleClick:Xe=>{Xe.target.closest("[data-clip]")||he.length>1&&Y(Je=>Je.slice(0,-1))},children:[y.jsx("div",{className:"flex-shrink-0",children:i}),y.jsx(Cv,{onSeek:N,onDrillDown:Ee,renderClipContent:m,onFileDrop:O,onDeleteElement:x,onAssetDrop:S,onMoveElement:w,onResizeElement:b,onBlockedEditAttempt:$})]}),l&&y.jsx("div",{className:"flex-shrink-0",children:l})]})]})]})});function B3({onDismiss:r}){return y.jsxs("aside",{"aria-live":"polite",className:"pointer-events-none relative w-[320px] max-w-[calc(100vw-2rem)] overflow-hidden rounded-2xl border border-white/10 bg-[#0f1115]/88 text-neutral-100 shadow-[0_18px_40px_rgba(0,0,0,0.3),0_4px_14px_rgba(0,0,0,0.18)] backdrop-blur-xl",children:[y.jsx("style",{children:`
55
- @keyframes hfTimelineNoticeClipNudge {
56
- 0%, 100% { transform: translate3d(0, 0, 0); }
57
- 20% { transform: translate3d(0, 0, 0); }
58
- 52% { transform: translate3d(12px, 0, 0); }
59
- 72% { transform: translate3d(12px, 0, 0); }
60
- 100% { transform: translate3d(0, 0, 0); }
61
- }
62
-
63
- @keyframes hfTimelineNoticePlayheadSweep {
64
- 0% { transform: translateX(0); opacity: 0; }
65
- 10% { opacity: 1; }
66
- 75% { opacity: 1; }
67
- 100% { transform: translateX(218px); opacity: 0; }
68
- }
69
-
70
- @media (prefers-reduced-motion: reduce) {
71
- .hf-timeline-notice-clip,
72
- .hf-timeline-notice-playhead {
73
- animation: none !important;
74
- }
75
- }
76
- `}),y.jsx("button",{type:"button",onClick:r,"aria-label":"Dismiss timeline editor notice",className:"pointer-events-auto absolute right-3 top-3 z-10 flex h-7 w-7 items-center justify-center rounded-lg text-neutral-500 transition-colors duration-150 hover:bg-white/[0.06] hover:text-neutral-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-studio-accent/50",children:y.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round","aria-hidden":"true",children:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsx("div",{className:"flex items-start gap-3 px-4 py-3.5",children:y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{"aria-hidden":"true",className:"mb-3 overflow-hidden rounded-[14px] bg-[#0d1117] p-2.5",children:y.jsxs("div",{className:"relative overflow-hidden rounded-[11px] bg-[#0f141c] px-2.5 pb-2 pt-1.5",children:[y.jsxs("div",{className:"mb-1.5 flex items-center justify-between pl-6 pr-1 text-[8px] font-medium text-[#7f8796]",children:[y.jsx("span",{children:"0:00"}),y.jsx("span",{children:"0:05"}),y.jsx("span",{children:"0:10"})]}),y.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-[18px] h-px bg-white/[0.04]"}),y.jsxs("div",{className:"hf-timeline-notice-playhead pointer-events-none absolute left-[31px] top-[18px] h-[70px] w-0",style:{animation:"hfTimelineNoticePlayheadSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite"},children:[y.jsx("div",{className:"absolute top-0 bottom-0",style:{left:"50%",width:2,marginLeft:-1,background:"var(--hf-accent, #3CE6AC)",boxShadow:"0 0 8px rgba(60,230,172,0.5)"}}),y.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:y.jsx("div",{style:{width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"8px solid var(--hf-accent, #3CE6AC)",filter:"drop-shadow(0 1px 3px rgba(0,0,0,0.6))"}})})]}),y.jsx("div",{className:"flex flex-col gap-1.5",children:[0,1,2].map(e=>y.jsxs("div",{className:"relative h-6 overflow-hidden rounded-[10px] bg-white/[0.035]",children:[y.jsx("div",{className:"absolute inset-y-0 left-[24px] w-px bg-white/[0.035]"}),y.jsx("div",{className:"absolute inset-y-0 left-[100px] w-px bg-white/[0.035]"}),y.jsx("div",{className:"absolute inset-y-0 left-[176px] w-px bg-white/[0.035]"})]},e))}),y.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[21px] h-[70px]",children:[y.jsx("div",{className:"absolute left-[34px] top-[3px] h-[18px] w-[56px] rounded-[9px] bg-white/[0.07]"}),y.jsx("div",{className:"hf-timeline-notice-clip absolute left-[82px] top-[27px] h-[18px] w-[110px] rounded-[9px] bg-studio-accent/18 ring-1 ring-inset ring-studio-accent/28",style:{animation:"hfTimelineNoticeClipNudge 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite"}}),y.jsx("div",{className:"absolute left-[52px] top-[51px] h-[18px] w-[72px] rounded-[9px] bg-white/[0.07]"})]})]})}),y.jsxs("div",{className:"min-w-0 pr-9",children:[y.jsx("p",{className:"text-[12px] font-semibold leading-none tracking-tight text-neutral-100",children:"Timeline editing is on"}),y.jsxs("p",{className:"mt-1.5 text-[12px] leading-5 text-neutral-300",children:["Drag clips to move timing, use"," ",y.jsx("span",{className:"font-mono text-[11px] text-studio-accent",children:"Shift"})," + click to edit a full clip range, and watch for resize handles only on clips Studio can patch safely. Toggle the timeline with"," ",y.jsx("span",{className:"rounded-md border border-white/8 bg-white/[0.04] px-1.5 py-0.5 font-mono text-[11px] text-studio-accent",children:m1}),"."]})]}),y.jsx("div",{className:"mt-2 text-[10px] leading-none text-neutral-500",children:"Dismiss once and it stays hidden."})]})})]})}let gf=[],m8=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?m8:gf).push(t=t+r[e])})();function q3(r){if(r<768)return!1;for(let e=0,t=gf.length;;){let n=e+t>>1;if(r<gf[n])t=n;else if(r>=m8[n])e=n+1;else return!0;if(e==t)return!1}}function pO(r){return r>=127462&&r<=127487}const mO=8205;function U3(r,e,t=!0,n=!0){return(t?O8:G3)(r,e,n)}function O8(r,e,t){if(e==r.length)return e;e&&g8(r.charCodeAt(e))&&x8(r.charCodeAt(e-1))&&e--;let n=Ch(r,e);for(e+=OO(n);e<r.length;){let i=Ch(r,e);if(n==mO||i==mO||t&&q3(i))e+=OO(i),n=i;else if(pO(i)){let l=0,o=e-2;for(;o>=0&&pO(Ch(r,o));)l++,o-=2;if(l%2==0)break;e+=2}else break}return e}function G3(r,e,t){for(;e>0;){let n=O8(r,e-2,t);if(n<e)return n;e--}return 0}function Ch(r,e){let t=r.charCodeAt(e);if(!x8(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return g8(n)?(t-55296<<10)+(n-56320)+65536:t}function g8(r){return r>=56320&&r<57344}function x8(r){return r>=55296&&r<56320}function OO(r){return r<65536?1:2}class et{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Ol(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),zr.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Ol(this,e,t);let n=[];return this.decompose(e,t,n,0),zr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new $o(this),l=new $o(e);for(let o=t,c=t;;){if(i.next(o),l.next(o),o=0,i.lineBreak!=l.lineBreak||i.done!=l.done||i.value!=l.value)return!1;if(c+=i.value.length,i.done||c>=n)return!0}}iter(e=1){return new $o(this,e)}iterRange(e,t=this.length){return new y8(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new v8(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?et.empty:e.length<=32?new jt(e):zr.from(jt.split(e,[]))}}class jt extends et{constructor(e,t=K3(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let l=0;;l++){let o=this.text[l],c=i+o.length;if((t?n:c)>=e)return new J3(i,c,n,o);i=c+1,n++}}decompose(e,t,n,i){let l=e<=0&&t>=this.length?this:new jt(gO(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let o=n.pop(),c=Vc(l.text,o.text.slice(),0,l.length);if(c.length<=32)n.push(new jt(c,o.length+l.length));else{let u=c.length>>1;n.push(new jt(c.slice(0,u)),new jt(c.slice(u)))}}else n.push(l)}replace(e,t,n){if(!(n instanceof jt))return super.replace(e,t,n);[e,t]=Ol(this,e,t);let i=Vc(this.text,Vc(n.text,gO(this.text,0,e)),t),l=this.length+n.length-(t-e);return i.length<=32?new jt(i,l):zr.from(jt.split(i,[]),l)}sliceString(e,t=this.length,n=`
77
- `){[e,t]=Ol(this,e,t);let i="";for(let l=0,o=0;l<=t&&o<this.text.length;o++){let c=this.text[o],u=l+c.length;l>e&&o&&(i+=n),e<u&&t>l&&(i+=c.slice(Math.max(0,e-l),t-l)),l=u+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let l of e)n.push(l),i+=l.length+1,n.length==32&&(t.push(new jt(n,i)),n=[],i=-1);return i>-1&&t.push(new jt(n,i)),t}}class zr extends et{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let l=0;;l++){let o=this.children[l],c=i+o.length,u=n+o.lines-1;if((t?u:c)>=e)return o.lineInner(e,t,n,i);i=c+1,n=u+1}}decompose(e,t,n,i){for(let l=0,o=0;o<=t&&l<this.children.length;l++){let c=this.children[l],u=o+c.length;if(e<=u&&t>=o){let f=i&((o<=e?1:0)|(u>=t?2:0));o>=e&&u<=t&&!f?n.push(c):c.decompose(e-o,t-o,n,f)}o=u+1}}replace(e,t,n){if([e,t]=Ol(this,e,t),n.lines<this.lines)for(let i=0,l=0;i<this.children.length;i++){let o=this.children[i],c=l+o.length;if(e>=l&&t<=c){let u=o.replace(e-l,t-l,n),f=this.lines-o.lines+u.lines;if(u.lines<f>>4&&u.lines>f>>6){let m=this.children.slice();return m[i]=u,new zr(m,this.length-(t-e)+n.length)}return super.replace(l,c,u)}l=c+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
78
- `){[e,t]=Ol(this,e,t);let i="";for(let l=0,o=0;l<this.children.length&&o<=t;l++){let c=this.children[l],u=o+c.length;o>e&&l&&(i+=n),e<u&&t>o&&(i+=c.sliceString(e-o,t-o,n)),o=u+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof zr))return 0;let n=0,[i,l,o,c]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,l+=t){if(i==o||l==c)return n;let u=this.children[i],f=e.children[l];if(u!=f)return n+u.scanIdentical(f,t);n+=u.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let S of e)n+=S.lines;if(n<32){let S=[];for(let w of e)w.flatten(S);return new jt(S,t)}let i=Math.max(32,n>>5),l=i<<1,o=i>>1,c=[],u=0,f=-1,m=[];function O(S){let w;if(S.lines>l&&S instanceof zr)for(let b of S.children)O(b);else S.lines>o&&(u>o||!u)?(x(),c.push(S)):S instanceof jt&&u&&(w=m[m.length-1])instanceof jt&&S.lines+w.lines<=32?(u+=S.lines,f+=S.length+1,m[m.length-1]=new jt(w.text.concat(S.text),w.length+1+S.length)):(u+S.lines>i&&x(),u+=S.lines,f+=S.length+1,m.push(S))}function x(){u!=0&&(c.push(m.length==1?m[0]:zr.from(m,f)),f=-1,u=m.length=0)}for(let S of e)O(S);return x(),c.length==1?c[0]:new zr(c,t)}}et.empty=new jt([""],0);function K3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function Vc(r,e,t=0,n=1e9){for(let i=0,l=0,o=!0;l<r.length&&i<=n;l++){let c=r[l],u=i+c.length;u>=t&&(u>n&&(c=c.slice(0,n-i)),i<t&&(c=c.slice(t-i)),o?(e[e.length-1]+=c,o=!1):e.push(c)),i=u+1}return e}function gO(r,e,t){return Vc(r,[""],e,t)}class $o{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof jt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],l=this.offsets[n],o=l>>1,c=i instanceof jt?i.text.length:i.children.length;if(o==(t>0?c:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((l&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
79
- `,this;e--}else if(i instanceof jt){let u=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,u.length>Math.max(0,e))return this.value=e==0?u:t>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=i.children[o+(t<0?-1:0)];e>u.length?(e-=u.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(u),this.offsets.push(t>0?1:(u instanceof jt?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class y8{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new $o(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class v8{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(et.prototype[Symbol.iterator]=function(){return this.iter()},$o.prototype[Symbol.iterator]=y8.prototype[Symbol.iterator]=v8.prototype[Symbol.iterator]=function(){return this});class J3{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function Ol(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function en(r,e,t=!0,n=!0){return U3(r,e,t,n)}function eS(r){return r>=56320&&r<57344}function tS(r){return r>=55296&&r<56320}function ks(r,e){let t=r.charCodeAt(e);if(!tS(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return eS(n)?(t-55296<<10)+(n-56320)+65536:t}function S8(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function Bo(r){return r<65536?1:2}const xf=/\r\n?|\n/;var pn=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(pn||(pn={}));class Br{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let l=this.sections[t++],o=this.sections[t++];o<0?(e(n,i,l),i+=l):i+=o,n+=l}}iterChangedRanges(e,t=!1){yf(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new Br(e)}composeDesc(e){return this.empty?e:e.empty?this:w8(this,e)}mapDesc(e,t=!1){return e.empty?this:vf(this,e,t)}mapPos(e,t=-1,n=pn.Simple){let i=0,l=0;for(let o=0;o<this.sections.length;){let c=this.sections[o++],u=this.sections[o++],f=i+c;if(u<0){if(f>e)return l+(e-i);l+=c}else{if(n!=pn.Simple&&f>=e&&(n==pn.TrackDel&&i<e&&f>e||n==pn.TrackBefore&&i<e||n==pn.TrackAfter&&f>e))return null;if(f>e||f==e&&t<0&&!c)return e==i||t<0?l:l+u;l+=u}i=f}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return l}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let l=this.sections[n++],o=this.sections[n++],c=i+l;if(o>=0&&i<=t&&c>=e)return i<e&&c>t?"cover":!0;i=c}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Br(e)}static create(e){return new Br(e)}}class Wt extends Br{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return yf(this,(t,n,i,l,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return vf(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,l=0;i<t.length;i+=2){let o=t[i],c=t[i+1];if(c>=0){t[i]=c,t[i+1]=o;let u=i>>1;for(;n.length<u;)n.push(et.empty);n.push(o?e.slice(l,l+o):et.empty)}l+=o}return new Wt(t,n)}compose(e){return this.empty?e:e.empty?this:w8(this,e,!0)}map(e,t=!1){return e.empty?this:vf(this,e,t,!0)}iterChanges(e,t=!1){yf(this,e,t)}get desc(){return Br.create(this.sections)}filter(e){let t=[],n=[],i=[],l=new Vo(this);e:for(let o=0,c=0;;){let u=o==e.length?1e9:e[o++];for(;c<u||c==u&&l.len==0;){if(l.done)break e;let m=Math.min(l.len,u-c);dn(i,m,-1);let O=l.ins==-1?-1:l.off==0?l.ins:0;dn(t,m,O),O>0&&Di(n,t,l.text),l.forward(m),c+=m}let f=e[o++];for(;c<f;){if(l.done)break e;let m=Math.min(l.len,f-c);dn(t,m,-1),dn(i,m,l.ins==-1?-1:l.off==0?l.ins:0),l.forward(m),c+=m}}return{changes:new Wt(t,n),filtered:Br.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):i==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],l=[],o=0,c=null;function u(m=!1){if(!m&&!i.length)return;o<t&&dn(i,t-o,-1);let O=new Wt(i,l);c=c?c.compose(O.map(c)):O,i=[],l=[],o=0}function f(m){if(Array.isArray(m))for(let O of m)f(O);else if(m instanceof Wt){if(m.length!=t)throw new RangeError(`Mismatched change set length (got ${m.length}, expected ${t})`);u(),c=c?c.compose(m.map(c)):m}else{let{from:O,to:x=O,insert:S}=m;if(O>x||O<0||x>t)throw new RangeError(`Invalid change range ${O} to ${x} (in doc of length ${t})`);let w=S?typeof S=="string"?et.of(S.split(n||xf)):S:et.empty,b=w.length;if(O==x&&b==0)return;O<o&&u(),O>o&&dn(i,O-o,-1),dn(i,x-O,b),Di(l,i,w),o=x}}return f(e),u(!c),c}static empty(e){return new Wt(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let l=e[i];if(typeof l=="number")t.push(l,-1);else{if(!Array.isArray(l)||typeof l[0]!="number"||l.some((o,c)=>c&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(l.length==1)t.push(l[0],0);else{for(;n.length<i;)n.push(et.empty);n[i]=et.of(l.slice(1)),t.push(l[0],n[i].length)}}}return new Wt(t,n)}static createSet(e,t){return new Wt(e,t)}}function dn(r,e,t,n=!1){if(e==0&&t<=0)return;let i=r.length-2;i>=0&&t<=0&&t==r[i+1]?r[i]+=e:i>=0&&e==0&&r[i]==0?r[i+1]+=t:n?(r[i]+=e,r[i+1]+=t):r.push(e,t)}function Di(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(et.empty);r.push(t)}}function yf(r,e,t){let n=r.inserted;for(let i=0,l=0,o=0;o<r.sections.length;){let c=r.sections[o++],u=r.sections[o++];if(u<0)i+=c,l+=c;else{let f=i,m=l,O=et.empty;for(;f+=c,m+=u,u&&n&&(O=O.append(n[o-2>>1])),!(t||o==r.sections.length||r.sections[o+1]<0);)c=r.sections[o++],u=r.sections[o++];e(i,f,l,m,O),i=f,l=m}}}function vf(r,e,t,n=!1){let i=[],l=n?[]:null,o=new Vo(r),c=new Vo(e);for(let u=-1;;){if(o.done&&c.len||c.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&c.ins==-1){let f=Math.min(o.len,c.len);dn(i,f,-1),o.forward(f),c.forward(f)}else if(c.ins>=0&&(o.ins<0||u==o.i||o.off==0&&(c.len<o.len||c.len==o.len&&!t))){let f=c.len;for(dn(i,c.ins,-1);f;){let m=Math.min(o.len,f);o.ins>=0&&u<o.i&&o.len<=m&&(dn(i,0,o.ins),l&&Di(l,i,o.text),u=o.i),o.forward(m),f-=m}c.next()}else if(o.ins>=0){let f=0,m=o.len;for(;m;)if(c.ins==-1){let O=Math.min(m,c.len);f+=O,m-=O,c.forward(O)}else if(c.ins==0&&c.len<m)m-=c.len,c.next();else break;dn(i,f,u<o.i?o.ins:0),l&&u<o.i&&Di(l,i,o.text),u=o.i,o.forward(o.len-m)}else{if(o.done&&c.done)return l?Wt.createSet(i,l):Br.create(i);throw new Error("Mismatched change set lengths")}}}function w8(r,e,t=!1){let n=[],i=t?[]:null,l=new Vo(r),o=new Vo(e);for(let c=!1;;){if(l.done&&o.done)return i?Wt.createSet(n,i):Br.create(n);if(l.ins==0)dn(n,l.len,0,c),l.next();else if(o.len==0&&!o.done)dn(n,0,o.ins,c),i&&Di(i,n,o.text),o.next();else{if(l.done||o.done)throw new Error("Mismatched change set lengths");{let u=Math.min(l.len2,o.len),f=n.length;if(l.ins==-1){let m=o.ins==-1?-1:o.off?0:o.ins;dn(n,u,m,c),i&&m&&Di(i,n,o.text)}else o.ins==-1?(dn(n,l.off?0:l.len,u,c),i&&Di(i,n,l.textBit(u))):(dn(n,l.off?0:l.len,o.off?0:o.ins,c),i&&!o.off&&Di(i,n,o.text));c=(l.ins>u||o.ins>=0&&o.len>u)&&(c||n.length>f),l.forward2(u),o.forward(u)}}}}class Vo{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?et.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?et.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Os{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new Os(n,i,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return G.range(e,t,void 0,void 0,n);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return G.range(this.anchor,i,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return G.range(e.anchor,e.head)}static create(e,t,n){return new Os(e,t,n)}}class G{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:G.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new G([this.main],0)}addRange(e,t=!0){return G.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,G.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new G(e.ranges.map(t=>Os.fromJSON(t)),e.main)}static single(e,t=e){return new G([G.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let l=e[i];if(l.empty?l.from<=n:l.from<n)return G.normalized(e.slice(),t);n=l.to}return new G(e,t)}static cursor(e,t=0,n,i){return Os.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(i??16777215)<<6)}static range(e,t,n,i,l){let o=(n??16777215)<<6|(i==null?7:Math.min(6,i));return!l&&e!=t&&(l=t<e?1:-1),t<e?Os.create(t,e,48|o):Os.create(e,t,(l?l<0?8:16:0)|o)}static normalized(e,t=0){let n=e[t];e.sort((i,l)=>i.from-l.from),t=e.indexOf(n);for(let i=1;i<e.length;i++){let l=e[i],o=e[i-1];if(l.empty?l.from<=o.to:l.from<o.to){let c=o.from,u=Math.max(l.to,o.to);i<=t&&t--,e.splice(--i,2,l.anchor>l.head?G.range(u,c):G.range(c,u))}}return new G(e,t)}}function k8(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let v1=0;class Pe{constructor(e,t,n,i,l){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=v1++,this.default=e([]),this.extensions=typeof l=="function"?l(this):l}get reader(){return this}static define(e={}){return new Pe(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:S1),!!e.static,e.enables)}of(e){return new Rc([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rc(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rc(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function S1(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class Rc{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=v1++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,l=this.id,o=e[l]>>1,c=this.type==2,u=!1,f=!1,m=[];for(let O of this.dependencies)O=="doc"?u=!0:O=="selection"?f=!0:(((t=e[O.id])!==null&&t!==void 0?t:1)&1)==0&&m.push(e[O.id]);return{create(O){return O.values[o]=n(O),1},update(O,x){if(u&&x.docChanged||f&&(x.docChanged||x.selection)||Sf(O,m)){let S=n(O);if(c?!xO(S,O.values[o],i):!i(S,O.values[o]))return O.values[o]=S,1}return 0},reconfigure:(O,x)=>{let S,w=x.config.address[l];if(w!=null){let b=qc(x,w);if(this.dependencies.every($=>$ instanceof Pe?x.facet($)===O.facet($):$ instanceof Fn?x.field($,!1)==O.field($,!1):!0)||(c?xO(S=n(O),b,i):i(S=n(O),b)))return O.values[o]=b,0}else S=n(O);return O.values[o]=S,1}}}}function xO(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function Sf(r,e){let t=!1;for(let n of e)Po(r,n)&1&&(t=!0);return t}function nS(r,e,t){let n=t.map(u=>r[u.id]),i=t.map(u=>u.type),l=n.filter(u=>!(u&1)),o=r[e.id]>>1;function c(u){let f=[];for(let m=0;m<n.length;m++){let O=qc(u,n[m]);if(i[m]==2)for(let x of O)f.push(x);else f.push(O)}return e.combine(f)}return{create(u){for(let f of n)Po(u,f);return u.values[o]=c(u),1},update(u,f){if(!Sf(u,l))return 0;let m=c(u);return e.compare(m,u.values[o])?0:(u.values[o]=m,1)},reconfigure(u,f){let m=Sf(u,n),O=f.config.facets[e.id],x=f.facet(e);if(O&&!m&&S1(t,O))return u.values[o]=x,0;let S=c(u);return e.compare(S,x)?(u.values[o]=x,0):(u.values[o]=S,1)}}}const uc=Pe.define({static:!0});class Fn{constructor(e,t,n,i,l){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=l,this.provides=void 0}static define(e){let t=new Fn(v1++,e.create,e.update,e.compare||((n,i)=>n===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(uc).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let l=n.values[t],o=this.updateF(l,i);return this.compareF(l,o)?0:(n.values[t]=o,1)},reconfigure:(n,i)=>{let l=n.facet(uc),o=i.facet(uc),c;return(c=l.find(u=>u.field==this))&&c!=o.find(u=>u.field==this)?(n.values[t]=c.create(n),1):i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,uc.of({field:this,create:e})]}get extension(){return this}}const ms={lowest:4,low:3,default:2,high:1,highest:0};function po(r){return e=>new b8(e,r)}const qo={highest:po(ms.highest),high:po(ms.high),default:po(ms.default),low:po(ms.low),lowest:po(ms.lowest)};class b8{constructor(e,t){this.inner=e,this.prec=t}}class bu{of(e){return new wf(this,e)}reconfigure(e){return bu.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class wf{constructor(e,t){this.compartment=e,this.inner=t}}class Bc{constructor(e,t,n,i,l,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=l,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],l=Object.create(null),o=new Map;for(let x of rS(e,t,o))x instanceof Fn?i.push(x):(l[x.facet.id]||(l[x.facet.id]=[])).push(x);let c=Object.create(null),u=[],f=[];for(let x of i)c[x.id]=f.length<<1,f.push(S=>x.slot(S));let m=n==null?void 0:n.config.facets;for(let x in l){let S=l[x],w=S[0].facet,b=m&&m[x]||[];if(S.every($=>$.type==0))if(c[w.id]=u.length<<1|1,S1(b,S))u.push(n.facet(w));else{let $=w.combine(S.map(T=>T.value));u.push(n&&w.compare($,n.facet(w))?n.facet(w):$)}else{for(let $ of S)$.type==0?(c[$.id]=u.length<<1|1,u.push($.value)):(c[$.id]=f.length<<1,f.push(T=>$.dynamicSlot(T)));c[w.id]=f.length<<1,f.push($=>nS($,w,S))}}let O=f.map(x=>x(c));return new Bc(e,o,O,c,u,l)}}function rS(r,e,t){let n=[[],[],[],[],[]],i=new Map;function l(o,c){let u=i.get(o);if(u!=null){if(u<=c)return;let f=n[u].indexOf(o);f>-1&&n[u].splice(f,1),o instanceof wf&&t.delete(o.compartment)}if(i.set(o,c),Array.isArray(o))for(let f of o)l(f,c);else if(o instanceof wf){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let f=e.get(o.compartment)||o.inner;t.set(o.compartment,f),l(f,c)}else if(o instanceof b8)l(o.inner,o.prec);else if(o instanceof Fn)n[c].push(o),o.provides&&l(o.provides,c);else if(o instanceof Rc)n[c].push(o),o.facet.extensions&&l(o.facet.extensions,ms.default);else{let f=o.extension;if(!f)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);l(f,c)}}return l(r,ms.default),n.reduce((o,c)=>o.concat(c))}function Po(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let i=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|i}function qc(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const Q8=Pe.define(),kf=Pe.define({combine:r=>r.some(e=>e),static:!0}),$8=Pe.define({combine:r=>r.length?r[0]:void 0,static:!0}),P8=Pe.define(),A8=Pe.define(),C8=Pe.define(),T8=Pe.define({combine:r=>r.length?r[0]:!1});class di{constructor(e,t){this.type=e,this.value=t}static define(){return new iS}}class iS{of(e){return new di(this,e)}}class sS{constructor(e){this.map=e}of(e){return new st(this,e)}}class st{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new st(this.type,t)}is(e){return this.type==e}static define(e={}){return new sS(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let l=i.map(t);l&&n.push(l)}return n}}st.reconfigure=st.define();st.appendConfig=st.define();class Nt{constructor(e,t,n,i,l,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=l,this.scrollIntoView=o,this._doc=null,this._state=null,n&&k8(n,t.newLength),l.some(c=>c.type==Nt.time)||(this.annotations=l.concat(Nt.time.of(Date.now())))}static create(e,t,n,i,l,o){return new Nt(e,t,n,i,l,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Nt.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Nt.time=di.define();Nt.userEvent=di.define();Nt.addToHistory=di.define();Nt.remote=di.define();function lS(r,e){let t=[];for(let n=0,i=0;;){let l,o;if(n<r.length&&(i==e.length||e[i]>=r[n]))l=r[n++],o=r[n++];else if(i<e.length)l=e[i++],o=e[i++];else return t;!t.length||t[t.length-1]<l?t.push(l,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function Z8(r,e,t){var n;let i,l,o;return t?(i=e.changes,l=Wt.empty(e.changes.length),o=r.changes.compose(e.changes)):(i=e.changes.map(r.changes),l=r.changes.mapDesc(e.changes,!0),o=r.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(l):(n=r.selection)===null||n===void 0?void 0:n.map(i),effects:st.mapEffects(r.effects,i).concat(st.mapEffects(e.effects,l)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function bf(r,e,t){let n=e.selection,i=cl(e.annotations);return e.userEvent&&(i=i.concat(Nt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Wt?e.changes:Wt.of(e.changes||[],t,r.facet($8)),selection:n&&(n instanceof G?n:G.single(n.anchor,n.head)),effects:cl(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function M8(r,e,t){let n=bf(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let l=1;l<e.length;l++){e[l].filter===!1&&(t=!1);let o=!!e[l].sequential;n=Z8(n,bf(r,e[l],o?n.changes.newLength:r.doc.length),o)}let i=Nt.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return aS(t?oS(i):i)}function oS(r){let e=r.startState,t=!0;for(let i of e.facet(P8)){let l=i(r);if(l===!1){t=!1;break}Array.isArray(l)&&(t=t===!0?l:lS(t,l))}if(t!==!0){let i,l;if(t===!1)l=r.changes.invertedDesc,i=Wt.empty(e.doc.length);else{let o=r.changes.filter(t);i=o.changes,l=o.filtered.mapDesc(o.changes).invertedDesc}r=Nt.create(e,i,r.selection&&r.selection.map(l),st.mapEffects(r.effects,l),r.annotations,r.scrollIntoView)}let n=e.facet(A8);for(let i=n.length-1;i>=0;i--){let l=n[i](r);l instanceof Nt?r=l:Array.isArray(l)&&l.length==1&&l[0]instanceof Nt?r=l[0]:r=M8(e,cl(l),!1)}return r}function aS(r){let e=r.startState,t=e.facet(C8),n=r;for(let i=t.length-1;i>=0;i--){let l=t[i](r);l&&Object.keys(l).length&&(n=Z8(n,bf(e,l,r.changes.newLength),!0))}return n==r?r:Nt.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const cS=[];function cl(r){return r==null?cS:Array.isArray(r)?r:[r]}var Pt=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(Pt||(Pt={}));const uS=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Qf;try{Qf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function hS(r){if(Qf)return Qf.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||uS.test(t)))return!0}return!1}function fS(r){return e=>{if(!/\S/.test(e))return Pt.Space;if(hS(e))return Pt.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return Pt.Word;return Pt.Other}}class it{constructor(e,t,n,i,l,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=l,o&&(o._state=this);for(let c=0;c<this.config.dynamicSlots.length;c++)Po(this,c<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return Po(this,n),qc(this,n)}update(...e){return M8(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:i}=t;for(let c of e.effects)c.is(bu.reconfigure)?(t&&(i=new Map,t.compartments.forEach((u,f)=>i.set(f,u)),t=null),i.set(c.value.compartment,c.value.extension)):c.is(st.reconfigure)?(t=null,n=c.value):c.is(st.appendConfig)&&(t=null,n=cl(n).concat(c.value));let l;t?l=e.startState.values.slice():(t=Bc.resolve(n,i,this),l=new it(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(u,f)=>f.reconfigure(u,this),null).values);let o=e.startState.facet(kf)?e.newSelection:e.newSelection.asSingle();new it(t,e.newDoc,o,l,(c,u)=>u.update(c,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:G.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),l=[n.range],o=cl(n.effects);for(let c=1;c<t.ranges.length;c++){let u=e(t.ranges[c]),f=this.changes(u.changes),m=f.map(i);for(let x=0;x<c;x++)l[x]=l[x].map(m);let O=i.mapDesc(f,!0);l.push(u.range.map(O)),i=i.compose(m),o=st.mapEffects(o,m).concat(st.mapEffects(cl(u.effects),O))}return{changes:i,selection:G.create(l,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Wt?e:Wt.of(e,this.doc.length,this.facet(it.lineSeparator))}toText(e){return et.of(e.split(this.facet(it.lineSeparator)||xf))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Po(this,t),qc(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof Fn&&this.config.address[i.id]!=null&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let l in n)if(Object.prototype.hasOwnProperty.call(e,l)){let o=n[l],c=e[l];i.push(o.init(u=>o.spec.fromJSON(c,u)))}}return it.create({doc:e.doc,selection:G.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Bc.resolve(e.extensions||[],new Map),n=e.doc instanceof et?e.doc:et.of((e.doc||"").split(t.staticFacet(it.lineSeparator)||xf)),i=e.selection?e.selection instanceof G?e.selection:G.single(e.selection.anchor,e.selection.head):G.single(0);return k8(i,n.length),t.staticFacet(kf)||(i=i.asSingle()),new it(t,n,i,t.dynamicSlots.map(()=>null),(l,o)=>o.create(l),null)}get tabSize(){return this.facet(it.tabSize)}get lineBreak(){return this.facet(it.lineSeparator)||`
80
- `}get readOnly(){return this.facet(T8)}phrase(e,...t){for(let n of this.facet(it.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,i)=>{if(i=="$")return"$";let l=+(i||1);return!l||l>t.length?n:t[l-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let l of this.facet(Q8))for(let o of l(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return fS(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),l=this.charCategorizer(e),o=e-n,c=e-n;for(;o>0;){let u=en(t,o,!1);if(l(t.slice(u,o))!=Pt.Word)break;o=u}for(;c<i;){let u=en(t,c);if(l(t.slice(c,u))!=Pt.Word)break;c=u}return o==c?null:G.range(o+n,c+n)}}it.allowMultipleSelections=kf;it.tabSize=Pe.define({combine:r=>r.length?r[0]:4});it.lineSeparator=$8;it.readOnly=T8;it.phrases=Pe.define({compare(r,e){let t=Object.keys(r),n=Object.keys(e);return t.length==n.length&&t.every(i=>r[i]==e[i])}});it.languageData=Q8;it.changeFilter=P8;it.transactionFilter=A8;it.transactionExtender=C8;bu.reconfigure=st.define();function Al(r,e,t={}){let n={};for(let i of r)for(let l of Object.keys(i)){let o=i[l],c=n[l];if(c===void 0)n[l]=o;else if(!(c===o||o===void 0))if(Object.hasOwnProperty.call(t,l))n[l]=t[l](c,o);else throw new Error("Config merge conflict for field "+l)}for(let i in e)n[i]===void 0&&(n[i]=e[i]);return n}class Hi{eq(e){return this==e}range(e,t=e){return $f.create(e,t,this)}}Hi.prototype.startSide=Hi.prototype.endSide=0;Hi.prototype.point=!1;Hi.prototype.mapMode=pn.TrackDel;function w1(r,e){return r==e||r.constructor==e.constructor&&r.eq(e)}let $f=class E8{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new E8(e,t,n)}};function Pf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class k1{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let l=n?this.to:this.from;for(let o=i,c=l.length;;){if(o==c)return o;let u=o+c>>1,f=l[u]-e||(n?this.value[u].endSide:this.value[u].startSide)-t;if(u==o)return f>=0?o:c;f>=0?c=u:o=u+1}}between(e,t,n,i){for(let l=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,l);l<o;l++)if(i(this.from[l]+e,this.to[l]+e,this.value[l])===!1)return!1}map(e,t){let n=[],i=[],l=[],o=-1,c=-1;for(let u=0;u<this.value.length;u++){let f=this.value[u],m=this.from[u]+e,O=this.to[u]+e,x,S;if(m==O){let w=t.mapPos(m,f.startSide,f.mapMode);if(w==null||(x=S=w,f.startSide!=f.endSide&&(S=t.mapPos(m,f.endSide),S<x)))continue}else if(x=t.mapPos(m,f.startSide),S=t.mapPos(O,f.endSide),x>S||x==S&&f.startSide>0&&f.endSide<=0)continue;(S-x||f.endSide-f.startSide)<0||(o<0&&(o=x),f.point&&(c=Math.max(c,S-x)),n.push(f),i.push(x-o),l.push(S-o))}return{mapped:n.length?new k1(i,l,n,c):null,pos:o}}}class Ke{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new Ke(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:l=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(Pf)),this.isEmpty)return t.length?Ke.of(t):this;let c=new j8(this,null,-1).goto(0),u=0,f=[],m=new ys;for(;c.value||u<t.length;)if(u<t.length&&(c.from-t[u].from||c.startSide-t[u].value.startSide)>=0){let O=t[u++];m.addInner(O.from,O.to,O.value)||f.push(O)}else c.rangeIndex==1&&c.chunkIndex<this.chunk.length&&(u==t.length||this.chunkEnd(c.chunkIndex)<t[u].from)&&(!o||i>this.chunkEnd(c.chunkIndex)||l<this.chunkPos[c.chunkIndex])&&m.addChunk(this.chunkPos[c.chunkIndex],this.chunk[c.chunkIndex])?c.nextChunk():((!o||i>c.to||l<c.from||o(c.from,c.to,c.value))&&(m.addInner(c.from,c.to,c.value)||f.push($f.create(c.from,c.to,c.value))),c.next());return m.finishInner(this.nextLayer.isEmpty&&!f.length?Ke.empty:this.nextLayer.update({add:f,filter:o,filterFrom:i,filterTo:l}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let o=0;o<this.chunk.length;o++){let c=this.chunkPos[o],u=this.chunk[o],f=e.touchesRange(c,c+u.length);if(f===!1)i=Math.max(i,u.maxPoint),t.push(u),n.push(e.mapPos(c));else if(f===!0){let{mapped:m,pos:O}=u.map(c,e);m&&(i=Math.max(i,m.maxPoint),t.push(m),n.push(O))}}let l=this.nextLayer.map(e);return t.length==0?l:new Ke(n,t,l||Ke.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let l=this.chunkPos[i],o=this.chunk[i];if(t>=l&&e<=l+o.length&&o.between(l,e-l,t-l,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ro.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ro.from(e).goto(t)}static compare(e,t,n,i,l=-1){let o=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),c=t.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),u=yO(o,c,n),f=new mo(o,u,l),m=new mo(c,u,l);n.iterGaps((O,x,S)=>vO(f,O,m,x,S,i)),n.empty&&n.length==0&&vO(f,0,m,0,0,i)}static eq(e,t,n=0,i){i==null&&(i=999999999);let l=e.filter(m=>!m.isEmpty&&t.indexOf(m)<0),o=t.filter(m=>!m.isEmpty&&e.indexOf(m)<0);if(l.length!=o.length)return!1;if(!l.length)return!0;let c=yO(l,o),u=new mo(l,c,0).goto(n),f=new mo(o,c,0).goto(n);for(;;){if(u.to!=f.to||!Af(u.active,f.active)||u.point&&(!f.point||!w1(u.point,f.point)))return!1;if(u.to>i)return!0;u.next(),f.next()}}static spans(e,t,n,i,l=-1){let o=new mo(e,null,l).goto(t),c=t,u=o.openStart;for(;;){let f=Math.min(o.to,n);if(o.point){let m=o.activeForPoint(o.to),O=o.pointFrom<t?m.length+1:o.point.startSide<0?m.length:Math.min(m.length,u);i.point(c,f,o.point,m,O,o.pointRank),u=Math.min(o.openEnd(f),m.length)}else f>c&&(i.span(c,f,o.active,u),u=o.openEnd(f));if(o.to>n)return u+(o.point&&o.to>n?1:0);c=o.to,o.next()}}static of(e,t=!1){let n=new ys;for(let i of e instanceof $f?[e]:t?dS(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return Ke.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=Ke.empty;i=i.nextLayer)t=new Ke(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}Ke.empty=new Ke([],[],null,-1);function dS(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(Pf(e,n)>0)return r.slice().sort(Pf);e=n}return r}Ke.empty.nextLayer=Ke.empty;class ys{finishChunk(e){this.chunks.push(new k1(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new ys)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ke.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Ke.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function yO(r,e,t){let n=new Map;for(let l of r)for(let o=0;o<l.chunk.length;o++)l.chunk[o].maxPoint<=0&&n.set(l.chunk[o],l.chunkPos[o]);let i=new Set;for(let l of e)for(let o=0;o<l.chunk.length;o++){let c=n.get(l.chunk[o]);c!=null&&(t?t.mapPos(c):c)==l.chunkPos[o]&&!(t!=null&&t.touchesRange(c,c+l.chunk[o].length))&&i.add(l.chunk[o])}return i}class j8{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ro{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let l=0;l<e.length;l++)for(let o=e[l];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&i.push(new j8(o,t,n,l));return i.length==1?i[0]:new Ro(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Th(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Th(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Th(this.heap,0)}}}function Th(r,e){for(let t=r[e];;){let n=(e<<1)+1;if(n>=r.length)break;let i=r[n];if(n+1<r.length&&i.compare(r[n+1])>=0&&(i=r[n+1],n++),t.compare(i)<0)break;r[n]=t,r[e]=i,e=n}}class mo{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ro.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){hc(this.active,e),hc(this.activeTo,e),hc(this.activeRank,e),this.minActive=SO(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:l}=this.cursor;for(;t<this.activeRank.length&&(l-this.activeRank[t]||i-this.activeTo[t])>0;)t++;fc(this.active,t,n),fc(this.activeTo,t,i),fc(this.activeRank,t,l),e&&fc(e,t,this.cursor.from),this.minActive=SO(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&hc(n,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let l=this.cursor.value;if(!l.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=l,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=l.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let i=n.length-1;i>=0&&n[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function vO(r,e,t,n,i,l){r.goto(e),t.goto(n);let o=n+i,c=n,u=n-e,f=!!l.boundChange;for(let m=!1;;){let O=r.to+u-t.to,x=O||r.endSide-t.endSide,S=x<0?r.to+u:t.to,w=Math.min(S,o);if(r.point||t.point?(r.point&&t.point&&w1(r.point,t.point)&&Af(r.activeForPoint(r.to),t.activeForPoint(t.to))||l.comparePoint(c,w,r.point,t.point),m=!1):(m&&l.boundChange(c),w>c&&!Af(r.active,t.active)&&l.compareRange(c,w,r.active,t.active),f&&w<o&&(O||r.openEnd(S)!=t.openEnd(S))&&(m=!0)),S>o)break;c=S,x<=0&&r.next(),x>=0&&t.next()}}function Af(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!w1(r[t],e[t]))return!1;return!0}function hc(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function fc(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function SO(r,e){let t=-1,n=1e9;for(let i=0;i<e.length;i++)(e[i]-n||r[i].endSide-r[t].endSide)<0&&(t=i,n=e[i]);return t}function Qu(r,e,t=r.length){let n=0;for(let i=0;i<t&&i<r.length;)r.charCodeAt(i)==9?(n+=e-n%e,i++):(n++,i=en(r,i));return n}function pS(r,e,t,n){for(let i=0,l=0;;){if(l>=e)return i;if(i==r.length)break;l+=r.charCodeAt(i)==9?t-l%t:1,i=en(r,i)}return r.length}const Cf="ͼ",wO=typeof Symbol>"u"?"__"+Cf:Symbol.for(Cf),Tf=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),kO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Yi{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function l(o,c,u,f){let m=[],O=/^@(\w+)\b/.exec(o[0]),x=O&&O[1]=="keyframes";if(O&&c==null)return u.push(o[0]+";");for(let S in c){let w=c[S];if(/&/.test(S))l(S.split(/,\s*/).map(b=>o.map($=>b.replace(/&/,$))).reduce((b,$)=>b.concat($)),w,u);else if(w&&typeof w=="object"){if(!O)throw new RangeError("The value of a property ("+S+") should be a primitive value.");l(i(S),w,m,x)}else w!=null&&m.push(S.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+w+";")}(m.length||x)&&u.push((n&&!O&&!f?o.map(n):o).join(", ")+" {"+m.join(" ")+"}")}for(let o in e)l(i(o),e[o],this.rules)}getRules(){return this.rules.join(`
81
- `)}static newName(){let e=kO[wO]||1;return kO[wO]=e+1,Cf+e.toString(36)}static mount(e,t,n){let i=e[Tf],l=n&&n.nonce;i?l&&i.setNonce(l):i=new mS(e,l),i.mount(Array.isArray(t)?t:[t],e)}}let bO=new Map;class mS{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let l=bO.get(n);if(l)return e[Tf]=l;this.sheet=new i.CSSStyleSheet,bO.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Tf]=this}mount(e,t){let n=this.sheet,i=0,l=0;for(let o=0;o<e.length;o++){let c=e[o],u=this.modules.indexOf(c);if(u<l&&u>-1&&(this.modules.splice(u,1),l--,u=-1),u==-1){if(this.modules.splice(l++,0,c),n)for(let f=0;f<c.rules.length;f++)n.insertRule(c.rules[f],i++)}else{for(;l<u;)i+=this.modules[l++].rules.length;i+=c.rules.length,l++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let u=0;u<this.modules.length;u++)o+=this.modules[u].getRules()+`
82
- `;this.styleTag.textContent=o;let c=t.head||t;this.styleTag.parentNode!=c&&c.insertBefore(this.styleTag,c.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Fi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Lo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},OS=typeof navigator<"u"&&/Mac/.test(navigator.platform),gS=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var on=0;on<10;on++)Fi[48+on]=Fi[96+on]=String(on);for(var on=1;on<=24;on++)Fi[on+111]="F"+on;for(var on=65;on<=90;on++)Fi[on]=String.fromCharCode(on+32),Lo[on]=String.fromCharCode(on);for(var Zh in Fi)Lo.hasOwnProperty(Zh)||(Lo[Zh]=Fi[Zh]);function xS(r){var e=OS&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||gS&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Lo:Fi)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Jt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];typeof i=="string"?r.setAttribute(n,i):i!=null&&(r[n]=i)}e++}for(;e<arguments.length;e++)V8(r,arguments[e]);return r}function V8(r,e){if(typeof e=="string")r.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)r.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)V8(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}let Sn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Zf=typeof document<"u"?document:{documentElement:{style:{}}};const Mf=/Edge\/(\d+)/.exec(Sn.userAgent),R8=/MSIE \d/.test(Sn.userAgent),Ef=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sn.userAgent),$u=!!(R8||Ef||Mf),QO=!$u&&/gecko\/(\d+)/i.test(Sn.userAgent),Mh=!$u&&/Chrome\/(\d+)/.exec(Sn.userAgent),yS="webkitFontSmoothing"in Zf.documentElement.style,jf=!$u&&/Apple Computer/.test(Sn.vendor),$O=jf&&(/Mobile\/\w+/.test(Sn.userAgent)||Sn.maxTouchPoints>2);var be={mac:$O||/Mac/.test(Sn.platform),windows:/Win/.test(Sn.platform),linux:/Linux|X11/.test(Sn.platform),ie:$u,ie_version:R8?Zf.documentMode||6:Ef?+Ef[1]:Mf?+Mf[1]:0,gecko:QO,gecko_version:QO?+(/Firefox\/(\d+)/.exec(Sn.userAgent)||[0,0])[1]:0,chrome:!!Mh,chrome_version:Mh?+Mh[1]:0,ios:$O,android:/Android\b/.test(Sn.userAgent),webkit_version:yS?+(/\bAppleWebKit\/(\d+)/.exec(Sn.userAgent)||[0,0])[1]:0,safari:jf,safari_version:jf?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Sn.userAgent)||[0,0])[1]:0,tabSize:Zf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function b1(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const Uc=Object.create(null);function Q1(r,e,t){if(r==e)return!0;r||(r=Uc),e||(e=Uc);let n=Object.keys(r),i=Object.keys(e);if(n.length-0!=i.length-0)return!1;for(let l of n)if(l!=t&&(i.indexOf(l)==-1||r[l]!==e[l]))return!1;return!0}function vS(r,e){for(let t=r.attributes.length-1;t>=0;t--){let n=r.attributes[t].name;e[n]==null&&r.removeAttribute(n)}for(let t in e){let n=e[t];t=="style"?r.style.cssText=n:r.getAttribute(t)!=n&&r.setAttribute(t,n)}}function PO(r,e,t){let n=!1;if(e)for(let i in e)t&&i in t||(n=!0,i=="style"?r.style.cssText="":r.removeAttribute(i));if(t)for(let i in t)e&&e[i]==t[i]||(n=!0,i=="style"?r.style.cssText=t[i]:r.setAttribute(i,t[i]));return n}function SS(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class bs{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Rn=(function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r})(Rn||(Rn={}));class Ie extends Hi{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Uo(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new vs(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:l,end:o}=L8(e,t);n=(l?t?-3e8:-1:5e8)-1,i=(o?t?2e8:1:-6e8)+1}return new vs(e,n,i,t,e.widget||null,!0)}static line(e){return new Go(e)}static set(e,t=!1){return Ke.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ie.none=Ke.empty;class Uo extends Ie{constructor(e){let{start:t,end:n}=L8(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?b1(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Uc}eq(e){return this==e||e instanceof Uo&&this.tagName==e.tagName&&Q1(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Uo.prototype.point=!1;class Go extends Ie{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Go&&this.spec.class==e.spec.class&&Q1(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Go.prototype.mapMode=pn.TrackBefore;Go.prototype.point=!0;class vs extends Ie{constructor(e,t,n,i,l,o){super(t,n,l,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?pn.TrackBefore:pn.TrackAfter:pn.TrackDel}get type(){return this.startSide!=this.endSide?Rn.WidgetRange:this.startSide<=0?Rn.WidgetBefore:Rn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof vs&&wS(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}vs.prototype.point=!0;function L8(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function wS(r,e){return r==e||!!(r&&e&&r.compare(e))}function ul(r,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=r?t[i]=Math.max(t[i],e):t.push(r,e)}class Xo extends Hi{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Xo&&this.tagName==e.tagName&&Q1(this.attributes,e.attributes)}static create(e){return new Xo(e.tagName,e.attributes||Uc)}static set(e,t=!1){return Ke.of(e,t)}}Xo.prototype.startSide=Xo.prototype.endSide=-1;function No(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function Vf(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function Ao(r,e){if(!e.anchorNode)return!1;try{return Vf(r,e.anchorNode)}catch{return!1}}function Lc(r){return r.nodeType==3?_o(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function Co(r,e,t,n){return t?AO(r,e,t,n,-1)||AO(r,e,t,n,1):!1}function Bi(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Gc(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function AO(r,e,t,n,i){for(;;){if(r==t&&e==n)return!0;if(e==(i<0?0:hi(r))){if(r.nodeName=="DIV")return!1;let l=r.parentNode;if(!l||l.nodeType!=1)return!1;e=Bi(r)+(i<0?0:1),r=l}else if(r.nodeType==1){if(r=r.childNodes[e+(i<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=i<0?hi(r):0}else return!1}}function hi(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Kc(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function kS(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function X8(r,e){let t=e.width/r.offsetWidth,n=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-r.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function bS(r,e,t,n,i,l,o,c){let u=r.ownerDocument,f=u.defaultView||window;for(let m=r,O=!1;m&&!O;)if(m.nodeType==1){let x,S=m==u.body,w=1,b=1;if(S)x=kS(f);else{if(/^(fixed|sticky)$/.test(getComputedStyle(m).position)&&(O=!0),m.scrollHeight<=m.clientHeight&&m.scrollWidth<=m.clientWidth){m=m.assignedSlot||m.parentNode;continue}let _=m.getBoundingClientRect();({scaleX:w,scaleY:b}=X8(m,_)),x={left:_.left,right:_.left+m.clientWidth*w,top:_.top,bottom:_.top+m.clientHeight*b}}let $=0,T=0;if(i=="nearest")e.top<x.top?(T=e.top-(x.top+o),t>0&&e.bottom>x.bottom+T&&(T=e.bottom-x.bottom+o)):e.bottom>x.bottom&&(T=e.bottom-x.bottom+o,t<0&&e.top-T<x.top&&(T=e.top-(x.top+o)));else{let _=e.bottom-e.top,A=x.bottom-x.top;T=(i=="center"&&_<=A?e.top+_/2-A/2:i=="start"||i=="center"&&t<0?e.top-o:e.bottom-A+o)-x.top}if(n=="nearest"?e.left<x.left?($=e.left-(x.left+l),t>0&&e.right>x.right+$&&($=e.right-x.right+l)):e.right>x.right&&($=e.right-x.right+l,t<0&&e.left<x.left+$&&($=e.left-(x.left+l))):$=(n=="center"?e.left+(e.right-e.left)/2-(x.right-x.left)/2:n=="start"==c?e.left-l:e.right-(x.right-x.left)+l)-x.left,$||T)if(S)f.scrollBy($,T);else{let _=0,A=0;if(T){let C=m.scrollTop;m.scrollTop+=T/b,A=(m.scrollTop-C)*b}if($){let C=m.scrollLeft;m.scrollLeft+=$/w,_=(m.scrollLeft-C)*w}e={left:e.left-_,top:e.top-A,right:e.right-_,bottom:e.bottom-A},_&&Math.abs(_-$)<1&&(n="nearest"),A&&Math.abs(A-T)<1&&(i="nearest")}if(S)break;(e.top<x.top||e.bottom>x.bottom||e.left<x.left||e.right>x.right)&&(e={left:Math.max(e.left,x.left),right:Math.min(e.right,x.right),top:Math.max(e.top,x.top),bottom:Math.min(e.bottom,x.bottom)}),m=m.assignedSlot||m.parentNode}else if(m.nodeType==11)m=m.host;else break}function N8(r,e=!0){let t=r.ownerDocument,n=null,i=null;for(let l=r.parentNode;l&&!(l==t.body||(!e||n)&&i);)if(l.nodeType==1)!i&&l.scrollHeight>l.clientHeight&&(i=l),e&&!n&&l.scrollWidth>l.clientWidth&&(n=l),l=l.assignedSlot||l.parentNode;else if(l.nodeType==11)l=l.host;else break;return{x:n,y:i}}class QS{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?hi(t):0),n,Math.min(e.focusOffset,n?hi(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let ps=null;be.safari&&be.safari_version>=26&&(ps=!1);function _8(r){if(r.setActive)return r.setActive();if(ps)return r.focus(ps);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(ps==null?{get preventScroll(){return ps={preventScroll:!0},!0}}:void 0),!ps){ps=!1;for(let t=0;t<e.length;){let n=e[t++],i=e[t++],l=e[t++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=l&&(n.scrollLeft=l)}}}let CO;function _o(r,e,t=e){let n=CO||(CO=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function hl(r,e,t,n){let i={key:e,code:e,keyCode:t,which:t,cancelable:!0};n&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=n);let l=new KeyboardEvent("keydown",i);l.synthetic=!0,r.dispatchEvent(l);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,r.dispatchEvent(o),l.defaultPrevented||o.defaultPrevented}function $S(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function PS(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,hi(t));;)if(n){if(t.nodeType!=1)return!1;let i=t.childNodes[n-1];i.contentEditable=="false"?n--:(t=i,n=hi(t))}else{if(t==r)return!0;n=Bi(t),t=t.parentNode}}function z8(r){return r instanceof Window?r.pageYOffset>Math.max(0,r.document.documentElement.scrollHeight-r.innerHeight-4):r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}function D8(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n>0)return{node:t,offset:n};if(t.nodeType==1&&n>0){if(t.contentEditable=="false")return null;t=t.childNodes[n-1],n=hi(t)}else if(t.parentNode&&!Gc(t))n=Bi(t),t=t.parentNode;else return null}}function I8(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n<t.nodeValue.length)return{node:t,offset:n};if(t.nodeType==1&&n<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[n],n=0}else if(t.parentNode&&!Gc(t))n=Bi(t)+1,t=t.parentNode;else return null}}class Sr{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new Sr(e.parentNode,Bi(e),t)}static after(e,t){return new Sr(e.parentNode,Bi(e)+1,t)}}var Rt=(function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r})(Rt||(Rt={}));const Ss=Rt.LTR,$1=Rt.RTL;function W8(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const AS=W8("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),CS=W8("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Rf=Object.create(null),Rr=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);Rf[e]=t,Rf[t]=-e}function H8(r){return r<=247?AS[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?CS[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const TS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Ir{get dir(){return this.level%2?$1:Ss}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,i){let l=-1;for(let o=0;o<e.length;o++){let c=e[o];if(c.from<=t&&c.to>=t){if(c.level==n)return o;(l<0||(i!=0?i<0?c.from<t:c.to>t:e[l].level>c.level))&&(l=o)}}if(l<0)throw new RangeError("Index out of range");return l}}function Y8(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],i=e[t];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!Y8(n.inner,i.inner))return!1}return!0}const mt=[];function ZS(r,e,t,n,i){for(let l=0;l<=n.length;l++){let o=l?n[l-1].to:e,c=l<n.length?n[l].from:t,u=l?256:i;for(let f=o,m=u,O=u;f<c;f++){let x=H8(r.charCodeAt(f));x==512?x=m:x==8&&O==4&&(x=16),mt[f]=x==4?2:x,x&7&&(O=x),m=x}for(let f=o,m=u,O=u;f<c;f++){let x=mt[f];if(x==128)f<c-1&&m==mt[f+1]&&m&24?x=mt[f]=m:mt[f]=256;else if(x==64){let S=f+1;for(;S<c&&mt[S]==64;)S++;let w=f&&m==8||S<t&&mt[S]==8?O==1?1:8:256;for(let b=f;b<S;b++)mt[b]=w;f=S-1}else x==8&&O==1&&(mt[f]=1);m=x,x&7&&(O=x)}}}function MS(r,e,t,n,i){let l=i==1?2:1;for(let o=0,c=0,u=0;o<=n.length;o++){let f=o?n[o-1].to:e,m=o<n.length?n[o].from:t;for(let O=f,x,S,w;O<m;O++)if(S=Rf[x=r.charCodeAt(O)])if(S<0){for(let b=c-3;b>=0;b-=3)if(Rr[b+1]==-S){let $=Rr[b+2],T=$&2?i:$&4?$&1?l:i:0;T&&(mt[O]=mt[Rr[b]]=T),c=b;break}}else{if(Rr.length==189)break;Rr[c++]=O,Rr[c++]=x,Rr[c++]=u}else if((w=mt[O])==2||w==1){let b=w==i;u=b?0:1;for(let $=c-3;$>=0;$-=3){let T=Rr[$+2];if(T&2)break;if(b)Rr[$+2]|=2;else{if(T&4)break;Rr[$+2]|=4}}}}}function ES(r,e,t,n){for(let i=0,l=n;i<=t.length;i++){let o=i?t[i-1].to:r,c=i<t.length?t[i].from:e;for(let u=o;u<c;){let f=mt[u];if(f==256){let m=u+1;for(;;)if(m==c){if(i==t.length)break;m=t[i++].to,c=i<t.length?t[i].from:e}else if(mt[m]==256)m++;else break;let O=l==1,x=(m<e?mt[m]:n)==1,S=O==x?O?1:2:n;for(let w=m,b=i,$=b?t[b-1].to:r;w>u;)w==$&&(w=t[--b].from,$=b?t[b-1].to:r),mt[--w]=S;u=m}else l=f,u++}}}function Lf(r,e,t,n,i,l,o){let c=n%2?2:1;if(n%2==i%2)for(let u=e,f=0;u<t;){let m=!0,O=!1;if(f==l.length||u<l[f].from){let b=mt[u];b!=c&&(m=!1,O=b==16)}let x=!m&&c==1?[]:null,S=m?n:n+1,w=u;e:for(;;)if(f<l.length&&w==l[f].from){if(O)break e;let b=l[f];if(!m)for(let $=b.to,T=f+1;;){if($==t)break e;if(T<l.length&&l[T].from==$)$=l[T++].to;else{if(mt[$]==c)break e;break}}if(f++,x)x.push(b);else{b.from>u&&o.push(new Ir(u,b.from,S));let $=b.direction==Ss!=!(S%2);Xf(r,$?n+1:n,i,b.inner,b.from,b.to,o),u=b.to}w=b.to}else{if(w==t||(m?mt[w]!=c:mt[w]==c))break;w++}x?Lf(r,u,w,n+1,i,x,o):u<w&&o.push(new Ir(u,w,S)),u=w}else for(let u=t,f=l.length;u>e;){let m=!0,O=!1;if(!f||u>l[f-1].to){let b=mt[u-1];b!=c&&(m=!1,O=b==16)}let x=!m&&c==1?[]:null,S=m?n:n+1,w=u;e:for(;;)if(f&&w==l[f-1].to){if(O)break e;let b=l[--f];if(!m)for(let $=b.from,T=f;;){if($==e)break e;if(T&&l[T-1].to==$)$=l[--T].from;else{if(mt[$-1]==c)break e;break}}if(x)x.push(b);else{b.to<u&&o.push(new Ir(b.to,u,S));let $=b.direction==Ss!=!(S%2);Xf(r,$?n+1:n,i,b.inner,b.from,b.to,o),u=b.from}w=b.from}else{if(w==e||(m?mt[w-1]!=c:mt[w-1]==c))break;w--}x?Lf(r,w,u,n+1,i,x,o):w<u&&o.push(new Ir(w,u,S)),u=w}}function Xf(r,e,t,n,i,l,o){let c=e%2?2:1;ZS(r,i,l,n,c),MS(r,i,l,n,c),ES(i,l,n,c),Lf(r,i,l,e,t,n,o)}function jS(r,e,t){if(!r)return[new Ir(0,0,e==$1?1:0)];if(e==Ss&&!t.length&&!TS.test(r))return F8(r.length);if(t.length)for(;r.length>mt.length;)mt[mt.length]=256;let n=[],i=e==Ss?0:1;return Xf(r,i,i,t,0,r.length,n),n}function F8(r){return[new Ir(0,r,0)]}let B8="";function VS(r,e,t,n,i){var l;let o=n.head-r.from,c=Ir.find(e,o,(l=n.bidiLevel)!==null&&l!==void 0?l:-1,n.assoc),u=e[c],f=u.side(i,t);if(o==f){let x=c+=i?1:-1;if(x<0||x>=e.length)return null;u=e[c=x],o=u.side(!i,t),f=u.side(i,t)}let m=en(r.text,o,u.forward(i,t));(m<u.from||m>u.to)&&(m=f),B8=r.text.slice(Math.min(o,m),Math.max(o,m));let O=c==(i?e.length-1:0)?null:e[c+(i?1:-1)];return O&&m==f&&O.level+(i?0:1)<u.level?G.cursor(O.side(!i,t)+r.from,O.forward(i,t)?1:-1,O.level):G.cursor(m+r.from,u.forward(i,t)?-1:1,u.level)}function RS(r,e,t){for(let n=e;n<t;n++){let i=H8(r.charCodeAt(n));if(i==1)return Ss;if(i==2||i==4)return $1}return Ss}const q8=Pe.define(),U8=Pe.define(),G8=Pe.define(),K8=Pe.define(),Nf=Pe.define(),J8=Pe.define(),e4=Pe.define(),P1=Pe.define(),A1=Pe.define(),t4=Pe.define({combine:r=>r.some(e=>e)}),LS=Pe.define({combine:r=>r.some(e=>e)}),n4=Pe.define();class fl{constructor(e,t="nearest",n="nearest",i=5,l=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=l,this.isSnapshot=o}map(e){return e.empty?this:new fl(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new fl(G.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const dc=st.define({map:(r,e)=>r.map(e)}),r4=st.define();function Wr(r,e,t){let n=r.facet(K8);n.length?n[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const oi=Pe.define({combine:r=>r.length?r[0]:!0});let XS=0;const il=Pe.define({combine(r){return r.filter((e,t)=>{for(let n=0;n<t;n++)if(r[n].plugin==e.plugin)return!1;return!0})}});class Ln{constructor(e,t,n,i,l){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=i,this.baseExtensions=l(this),this.extension=this.baseExtensions.concat(il.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(il.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:l,decorations:o}=t||{};return new Ln(XS++,e,n,i,c=>{let u=[];return o&&u.push(Pu.of(f=>{let m=f.plugin(c);return m?o(m):Ie.none})),l&&u.push(l(c)),u})}static fromClass(e,t){return Ln.define((n,i)=>new e(n,i),t)}}class Eh{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(Wr(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Wr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){Wr(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const i4=Pe.define(),C1=Pe.define(),Pu=Pe.define(),s4=Pe.define(),T1=Pe.define(),Ko=Pe.define(),l4=Pe.define();function TO(r,e){let t=r.state.facet(l4);if(!t.length)return t;let n=t.map(l=>l instanceof Function?l(r):l),i=[];return Ke.spans(n,e.from,e.to,{point(){},span(l,o,c,u){let f=l-e.from,m=o-e.from,O=i;for(let x=c.length-1;x>=0;x--,u--){let S=c[x].spec.bidiIsolate,w;if(S==null&&(S=RS(e.text,f,m)),u>0&&O.length&&(w=O[O.length-1]).to==f&&w.direction==S)w.to=m,O=w.inner;else{let b={from:f,to:m,direction:S,inner:[]};O.push(b),O=b.inner}}}}),i}const o4=Pe.define();function a4(r){let e=0,t=0,n=0,i=0;for(let l of r.state.facet(o4)){let o=l(r);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:t,top:n,bottom:i}}const wo=Pe.define();class or{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new or(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let i=0,l=0,o=0;;){let c=i<e.length?e[i].fromB:1e9,u=l<t.length?t[l]:1e9,f=Math.min(c,u);if(f==1e9)break;let m=f+o,O=f,x=m;for(;;)if(l<t.length&&t[l]<=O){let S=t[l+1];l+=2,O=Math.max(O,S);for(let w=i;w<e.length&&e[w].fromB<=O;w++)o=e[w].toA-e[w].toB;x=Math.max(x,S+o)}else if(i<e.length&&e[i].fromB<=O){let S=e[i++];O=Math.max(O,S.toB),x=Math.max(x,S.toA),o=S.toA-S.toB}else break;n.push(new or(m,x,f,O))}return n}}class Jc{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Wt.empty(this.startState.doc.length);for(let l of n)this.changes=this.changes.compose(l.changes);let i=[];this.changes.iterChangedRanges((l,o,c,u)=>i.push(new or(l,o,c,u))),this.changedRanges=i}static create(e,t,n){return new Jc(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const NS=[];class Mt{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return NS}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&vS(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let n=Bi(this.dom),i=this.length?e>0:t>0;return new Sr(this.parent.dom,n+(i?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Cu)return e;return null}static get(e){return e.cmTile}}class Au extends Mt{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,n=null,i,l=(e==null?void 0:e.node)==t?e:null,o=0;for(let c of this.children){if(c.sync(e),o+=c.length+c.breakAfter,i=n?n.nextSibling:t.firstChild,l&&i!=c.dom&&(l.written=!0),c.dom.parentNode==t)for(;i&&i!=c.dom;)i=ZO(i);else t.insertBefore(c.dom,i);n=c.dom}for(i=n?n.nextSibling:t.firstChild,l&&i&&(l.written=!0);i;)i=ZO(i);this.length=o}}function ZO(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Cu extends Au{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=Mt.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,i=0,l=0;;)if(i==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&l++,i=t.pop()}else{let o=n.children[i++];if(o instanceof ci)t.push(i),n=o,i=0;else{let c=l+o.length,u=e(o,l);if(u!==void 0)return u;l=c+o.breakAfter}}}resolveBlock(e,t){let n,i=-1,l,o=-1;if(this.blockTiles((c,u)=>{let f=u+c.length;if(e>=u&&e<=f){if(c.isWidget()&&t>=-1&&t<=1){if(c.flags&32)return!0;c.flags&16&&(n=void 0)}(u<e||e==f&&(t<-1?c.length:c.covers(1)))&&(!n||!c.isWidget()&&n.isWidget())&&(n=c,i=e-u),(f>e||e==u&&(t>1?c.length:c.covers(-1)))&&(!l||!c.isWidget()&&l.isWidget())&&(l=c,o=e-u)}}),!n&&!l)throw new Error("No tile at position "+e);return n&&t<0||!l?{tile:n,offset:i}:{tile:l,offset:o}}}class ci extends Au{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new ci(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class gl extends Au{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let i=new gl(t||document.createElement("div"),e);return(!t||!n)&&(i.flags|=4),i}get domAttrs(){return this.attrs}resolveInline(e,t,n){let i=null,l=-1,o=null,c=-1;function u(m,O){for(let x=0,S=0;x<m.children.length&&S<=O;x++){let w=m.children[x],b=S+w.length;b>=O&&(w.isComposite()?u(w,O-S):(!o||o.isHidden&&(t>0||n&&zS(o,w)))&&(b>O||w.flags&32)?(o=w,c=O-S):(S<O||w.flags&16&&!w.isHidden)&&(i=w,l=O-S)),S=b}}u(this,e);let f=(t<0?i:o)||i||o;return f?{tile:f,offset:f==i?l:c}:null}coordsIn(e,t){let n=this.resolveInline(e,t,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),t):_S(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:i,offset:l}=n;if(this.dom.contains(i.dom))return i.isText()?new Sr(i.dom,Math.min(i.dom.nodeValue.length,l)):i.domPosFor(l,i.flags&16?1:i.flags&32?-1:t);let o=n.tile.parent,c=!1;for(let u of o.children){if(c)return new Sr(u.dom,0);u==n.tile&&(c=!0)}}return new Sr(this.dom,0)}}function _S(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Lc(e);return t[t.length-1]||null}function zS(r,e){let t=r.coordsIn(0,1),n=e.coordsIn(0,1);return t&&n&&n.top<t.bottom}class jn extends Au{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new jn(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class gs extends Mt{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let n=this.dom.nodeValue.length;e>n&&(e=n);let i=e,l=e,o=0;e==0&&t<0||e==n&&t>=0?be.chrome||be.gecko||(e?(i--,o=1):l<n&&(l++,o=-1)):t<0?i--:l<n&&l++;let c=_o(this.dom,i,l).getClientRects();if(!c.length)return null;let u=c[(o?o<0:t>=0)?0:c.length-1];return be.safari&&!o&&u.width==0&&(u=Array.prototype.find.call(c,f=>f.width)||u),o?Kc(u,o<0):u||null}static of(e,t){let n=new gs(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class ws extends Mt{constructor(e,t,n,i){super(e,t,i),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;if(n)return Kc(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let l=this.dom.getClientRects(),o=null;if(!l.length)return null;let c=this.flags&16?!0:this.flags&32?!1:e>0;for(let u=c?l.length-1:0;o=l[u],!(e>0?u==0:u==l.length-1||o.top<o.bottom);u+=c?-1:1);return Kc(o,!c)}}get overrideDOMText(){if(!this.length)return et.empty;let{root:e}=this;if(!e)return et.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,i,l){return l||(l=e.toDOM(t),e.editable||(l.contentEditable="false")),new ws(l,n,e,i)}}class eu extends Mt{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return et.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class DS{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:i,index:l,beforeBreak:o,parents:c}=this;for(;e||t>0;)if(i.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(l==i.children.length){if(!e&&!c.length)break;n&&n.leave(i),o=!!i.breakAfter,{tile:i,index:l}=c.pop(),l++}else{let u=i.children[l],f=u.breakAfter;(t>0?u.length<=e:u.length<e)&&(!n||n.skip(u,0,u.length)!==!1||!u.isComposite)?(o=!!f,l++,e-=u.length):(c.push({tile:i,index:l}),i=u,l=0,n&&u.isComposite()&&n.enter(u))}else if(l==i.length)o=!!i.breakAfter,{tile:i,index:l}=c.pop(),l++;else if(e){let u=Math.min(e,i.length-l);n&&n.skip(i,l,l+u),e-=u,l+=u}else break;return this.tile=i,this.index=l,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class IS{constructor(e,t,n,i){this.from=e,this.to=t,this.wrapper=n,this.rank=i}}class WS{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,i){var l;this.flushBuffer();let o=this.ensureMarks(t,n),c=o.lastChild;if(c&&c.isText()&&!(c.flags&8)&&c.length+e.length<512){this.cache.reused.set(c,2);let u=o.children[o.children.length-1]=new gs(c.dom,c.text+e);u.parent=o}else o.append(i||gs.of(e,(l=this.cache.find(gs))===null||l===void 0?void 0:l.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?jh(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let i=n;for(let c=t.marks.length-1;c>=0;c--){let u=t.marks[c],f=i.lastChild;if(f instanceof jn&&f.mark.eq(u.mark))f.dom!=u.dom&&f.setDOM(jh(u.dom)),i=f;else{if(this.cache.reused.get(u)){let O=Mt.get(u.dom);O&&O.setDOM(jh(u.dom))}let m=jn.of(u.mark,u.dom);i.append(m),i=m}this.cache.reused.set(u,2)}let l=Mt.get(e.text);l&&this.cache.reused.set(l,2);let o=new gs(e.text,e.text.nodeValue);o.flags|=8,i.append(o)}addInlineWidget(e,t,n){let i=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);i||this.flushBuffer();let l=this.ensureMarks(t,n);!i&&!(e.flags&16)&&l.append(this.getBuffer(1)),l.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=c4);let i=gl.start(e,t||((n=this.cache.find(gl))===null||n===void 0?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=i)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let i=this.curLine;for(let l=e.length-1;l>=0;l--){let o=e[l],c;if(t>0&&(c=i.lastChild)&&c instanceof jn&&c.mark.eq(o))i=c,t--;else{let u=jn.of(o,(n=this.cache.find(jn,f=>f.mark.eq(o)))===null||n===void 0?void 0:n.dom);i.append(u),i=u,t=0}}return i}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!MO(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(be.ios&&MO(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Vh,0,32)||new ws(Vh.toDOM(),0,Vh,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new IS(e.from,e.to,e.value,e.rank),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-t.rank||this.wrappers[n-1].to-t.to)<0;)n--;this.wrappers.splice(n,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let i=t.lastChild;if(n.from<this.pos&&i instanceof ci&&i.wrapper.eq(n.wrapper))t=i;else{let l=ci.of(n.wrapper,(e=this.cache.find(ci,o=>o.wrapper.eq(n.wrapper)))===null||e===void 0?void 0:e.dom);t.append(l),t=l}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(eu,void 0,1);return n&&(n.flags=t),n||new eu(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class HS{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:i,lineBreak:l,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=i;let c=this.textOff=Math.min(e,i.length);return l?null:i.slice(0,c)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const tu=[ws,gl,gs,jn,eu,ci,Cu];for(let r=0;r<tu.length;r++)tu[r].bucket=r;class YS{constructor(e){this.view=e,this.buckets=tu.map(()=>[]),this.index=tu.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let i=e.bucket,l=this.buckets[i],o=this.index[i];for(let c=l.length-1;c>=0;c--){let u=(c+o)%l.length,f=l[u];if((!t||t(f))&&!this.reused.has(f))return l.splice(u,1),u<o&&this.index[i]--,this.reused.set(f,n),f}return null}findWidget(e,t,n){let i=this.buckets[0];if(i.length)for(let l=0,o=0;;l++){if(l==i.length){if(o)return null;o=1,l=0}let c=i[l];if(!this.reused.has(c)&&(o==0?c.widget.compare(e):c.widget.constructor==e.constructor&&e.updateDOM(c.dom,this.view,c.widget)))return i.splice(l,1),l<this.index[0]&&this.index[0]--,c.widget==e&&c.length==t&&(c.flags&497)==n?(this.reused.set(c,1),c):(this.reused.set(c,2),new ws(c.dom,t,e,c.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class FS{constructor(e,t,n,i,l){this.view=e,this.decorations=i,this.disallowBlockEffectsFor=l,this.openWidget=!1,this.openMarks=0,this.cache=new YS(e),this.text=new HS(e.state.doc),this.builder=new WS(this.cache,new Cu(e,e.contentDOM),Ke.iter(n)),this.cache.reused.set(t,2),this.old=new DS(t),this.reuseWalker={skip:(o,c,u)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let i=0,l=0,o=0;;){let c=o<e.length?e[o++]:null,u=c?c.fromA:this.old.root.length;if(u>i){let f=u-i;this.preserve(f,!o,!c),i=u,l+=f}if(!c)break;t&&c.fromA<=t.range.fromA&&c.toA>=t.range.toA?(this.forward(c.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(l,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,c.toA),this.emit(t.range.toB,c.toB)):(this.forward(c.fromA,c.toA),this.emit(l,c.toB)),l=c.toB,i=c.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let i=US(this.old),l=this.openMarks;this.old.advance(e,n?1:-1,{skip:(o,c,u)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(u-c);else{let f=u>0||c<o.length?ws.of(o.widget,this.view,u-c,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);f.flags&256?(f.flags&=-2,this.builder.addBlockWidget(f)):(this.builder.ensureLine(null),this.builder.addInlineWidget(f,i,l),l=i.length)}else if(o.isText())this.builder.ensureLine(null),!c&&u==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,i,l,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(c,u),i,l)),l=i.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof eu)this.cache.add(o);else if(o instanceof jn)this.builder.ensureLine(null),this.builder.addMark(o,i,l),this.cache.reused.set(o,1),l=i.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof jn&&i.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?i.length&&(i.length=l=0):o instanceof jn&&(i.shift(),l=Math.min(l,i.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,i=this.builder,l=0,o=Ke.spans(this.decorations,e,t,{point:(c,u,f,m,O,x)=>{if(f instanceof vs){if(this.disallowBlockEffectsFor[x]){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(u>this.view.state.doc.lineAt(c).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(l=m.length,O>m.length)i.continueWidget(u-c);else{let S=f.widget||(f.block?xl.block:xl.inline),w=BS(f),b=this.cache.findWidget(S,u-c,w)||ws.of(S,this.view,u-c,w);f.block?(f.startSide>0&&i.addLineStartIfNotCovered(n),i.addBlockWidget(b)):(i.ensureLine(n),i.addInlineWidget(b,m,O))}n=null}else n=qS(n,f);u>c&&this.text.skip(u-c)},span:(c,u,f,m)=>{for(let O=c;O<u;){let x=this.text.next(Math.min(512,u-O));x==null?(i.addLineStartIfNotCovered(n),i.addBreak(),O++):(i.ensureLine(n),i.addText(x,f,O==c?m:f.length),O+=x.length),n=null}}});i.addLineStartIfNotCovered(n),this.openWidget=o>l,this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let i=e.parentNode;;i=i.parentNode){let l=Mt.get(i);if(i==this.view.contentDOM)break;l instanceof jn?t.push(l):l!=null&&l.isLine()?n=l:l instanceof ci||(i.nodeName=="DIV"&&!n&&i!=this.view.contentDOM?n=new gl(i,c4):n||t.push(jn.of(new Uo({tagName:i.nodeName.toLowerCase(),attributes:SS(i)}),i)))}return{line:n,marks:t}}}function MO(r,e){let t=n=>{for(let i of n.children)if((e?i.isText():i.length)||t(i))return!0;return!1};return t(r)}function BS(r){let e=r.isReplace?(r.startSide<0?64:0)|(r.endSide>0?128:0):r.startSide>0?32:16;return r.block&&(e|=256),e}const c4={class:"cm-line"};function qS(r,e){let t=e.spec.attributes,n=e.spec.class;return!t&&!n||(r||(r={class:"cm-line"}),t&&b1(t,r),n&&(r.class+=" "+n)),r}function US(r){let e=[];for(let t=r.parents.length;t>1;t--){let n=t==r.parents.length?r.tile:r.parents[t].tile;n instanceof jn&&e.push(n.mark)}return e}function jh(r){let e=Mt.get(r);return e&&e.setDOM(r.cloneNode()),r}class xl extends bs{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}xl.inline=new xl("span");xl.block=new xl("div");const Vh=new class extends bs{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class EO{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Ie.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Cu(e,e.contentDOM),this.updateInner([new or(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:m,toA:O})=>O<this.minWidthFrom||m>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?i=this.domChanged.newSel.head:!sw(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let l=i>-1?KS(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){let{from:m,to:O}=this.hasComposition;n=new or(m,O,e.changes.mapPos(m,-1),e.changes.mapPos(O,1)).addToSet(n.slice())}this.hasComposition=l?{from:l.range.fromB,to:l.range.toB}:null,(be.ie||be.chrome)&&!l&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,c=this.blockWrappers;this.updateDeco();let u=tw(o,this.decorations,e.changes);u.length&&(n=or.extendWithRanges(n,u));let f=rw(c,this.blockWrappers,e.changes);return f.length&&(n=or.extendWithRanges(n,f)),l&&!n.some(m=>m.fromA<=l.range.fromA&&m.toA>=l.range.toA)&&(n=l.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,l),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let o=this.tile,c=new FS(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&Mt.get(t.text)&&c.cache.reused.set(Mt.get(t.text),2),this.tile=c.run(e,t),_f(o,c.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=be.chrome||be.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(l),l&&(l.written||n.selectionRange.focusNode!=l.node||!this.tile.dom.contains(l.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let l of this.tile.children)l.isWidget()&&l.widget instanceof Rh&&i.push(l.dom);n.updateGaps(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let n of t.effects)n.is(r4)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,i=this.view.root.activeElement,l=i==n,o=!l&&!(this.view.state.facet(oi)||n.tabIndex>-1)&&Ao(n,this.view.observer.selectionRange)&&!(i&&n.contains(i));if(!(l||t||o))return;let c=this.forceSelection;this.forceSelection=!1;let u=this.view.state.selection.main,f,m;if(u.empty?m=f=this.inlineDOMNearPos(u.anchor,u.assoc||1):(m=this.inlineDOMNearPos(u.head,u.head==u.from?1:-1),f=this.inlineDOMNearPos(u.anchor,u.anchor==u.from?1:-1)),be.gecko&&u.empty&&!this.hasComposition&&GS(f)){let x=document.createTextNode("");this.view.observer.ignore(()=>f.node.insertBefore(x,f.node.childNodes[f.offset]||null)),f=m=new Sr(x,0),c=!0}let O=this.view.observer.selectionRange;(c||!O.focusNode||(!Co(f.node,f.offset,O.anchorNode,O.anchorOffset)||!Co(m.node,m.offset,O.focusNode,O.focusOffset))&&!this.suppressWidgetCursorChange(O,u))&&(this.view.observer.ignore(()=>{be.android&&be.chrome&&n.contains(O.focusNode)&&iw(O.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let x=No(this.view.root);if(x)if(u.empty){if(be.gecko){let S=JS(f.node,f.offset);if(S&&S!=3){let w=(S==1?D8:I8)(f.node,f.offset);w&&(f=new Sr(w.node,w.offset))}}x.collapse(f.node,f.offset),u.bidiLevel!=null&&x.caretBidiLevel!==void 0&&(x.caretBidiLevel=u.bidiLevel)}else if(x.extend){x.collapse(f.node,f.offset);try{x.extend(m.node,m.offset)}catch{}}else{let S=document.createRange();u.anchor>u.head&&([f,m]=[m,f]),S.setEnd(m.node,m.offset),S.setStart(f.node,f.offset),x.removeAllRanges(),x.addRange(S)}o&&this.view.root.activeElement==n&&(n.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(f,m)),this.impreciseAnchor=f.precise?null:new Sr(O.anchorNode,O.anchorOffset),this.impreciseHead=m.precise?null:new Sr(O.focusNode,O.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Co(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=No(e.root),{anchorNode:i,anchorOffset:l}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let c=o.posAtStart;if(t.head==c||t.head==c+o.length)return;let u=this.coordsAt(t.head,-1),f=this.coordsAt(t.head,1);if(!u||!f||u.bottom>f.top)return;let m=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(m.node,m.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=t.from&&n.collapse(i,l)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let i=n.posAtStart;if(n.isComposite()){let l;if(e==n.dom)l=n.dom.childNodes[t];else{let o=hi(e)==0?0:t==0?-1:1;for(;;){let c=e.parentNode;if(c==n.dom)break;o==0&&c.firstChild!=c.lastChild&&(e==c.firstChild?o=-1:o=1),e=c}o<0?l=e:l=e.nextSibling}if(l==n.dom.firstChild)return i;for(;l&&!Mt.get(l);)l=l.nextSibling;if(!l)return i+n.length;for(let o=0,c=i;;o++){let u=n.children[o];if(u.dom==l)return c;c+=u.length+u.breakAfter}}else return n.isText()?e==n.dom?i+t:i+(t?n.length:0):i}domAtPos(e,t){let{tile:n,offset:i}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(e,t):n.domIn(i,t)}inlineDOMNearPos(e,t){let n,i=-1,l=!1,o,c=-1,u=!1;return this.tile.blockTiles((f,m)=>{if(f.isWidget()){if(f.flags&32&&m>=e)return!0;f.flags&16&&(l=!0)}else{let O=m+f.length;if(m<=e&&(n=f,i=e-m,l=O<e),O>=e&&!o&&(o=f,c=e-m,u=m>e),m>e&&o)return!0}}),!n&&!o?this.domAtPos(e,t):(l&&o?n=null:u&&n&&(o=null),n&&t<0||!o?n.domIn(i,t):o.domIn(c,t))}coordsAt(e,t){let{tile:n,offset:i}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof Rh?null:n.coordsInWidget(i,t,!0):n.coordsIn(i,t)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function i(l,o){if(l.isComposite())for(let c of l.children){if(c.length>=o){let u=i(c,o);if(u)return u}if(o-=c.length,o<0)break}else if(l.isText()&&o<l.length){let c=en(l.text,o);if(c==o)return null;let u=_o(l.dom,o,c).getClientRects();for(let f=0;f<u.length;f++){let m=u[f];if(f==u.length-1||m.top<m.bottom&&m.left<m.right)return m}}return null}return i(t,n)}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,l=this.view.contentDOM.clientWidth,o=l>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==Rt.LTR,f=0,m=(O,x,S)=>{for(let w=0;w<O.children.length&&!(x>i);w++){let b=O.children[w],$=x+b.length,T=b.dom.getBoundingClientRect(),{height:_}=T;if(S&&!w&&(f+=T.top-S.top),b instanceof ci)$>n&&m(b,x,T);else if(x>=n&&(f>0&&t.push(-f),t.push(_+f),f=0,o)){let A=b.dom.lastChild,C=A?Lc(A):[];if(C.length){let j=C[C.length-1],N=u?j.right-T.left:T.right-j.left;N>c&&(c=N,this.minWidth=l,this.minWidthFrom=x,this.minWidthTo=$)}}S&&w==O.children.length-1&&(f+=S.bottom-T.bottom),x=$+b.breakAfter}};return m(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?Rt.RTL:Rt.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let c=0,u;for(let f of o.children){if(!f.isText()||/[^ -~]/.test(f.text))return;let m=Lc(f.dom);if(m.length!=1)return;c+=m[0].width,u=m[0].height}if(c)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:c/o.length,textHeight:u}}});if(e)return e;let t=document.createElement("div"),n,i,l;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=Lc(t.firstChild)[0];n=t.getBoundingClientRect().height,i=o&&o.width?o.width/27:7,l=o&&o.height?o.height:n,t.remove()}),{lineHeight:n,charWidth:i,textHeight:l}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let l=i==t.viewports.length?null:t.viewports[i],o=l?l.from-1:this.view.state.doc.length;if(o>n){let c=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Ie.replace({widget:new Rh(c),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!l)break;n=l.to+1}return Ie.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Pu).map(l=>(this.dynamicDecorationMap[e++]=typeof l=="function")?l(this.view):l),n=!1,i=this.view.state.facet(T1).map((l,o)=>{let c=typeof l=="function";return c&&(n=!0),c?l(this.view):l});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(Ke.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(s4).map(l=>typeof l=="function"?l(this.view):l)}scrollIntoView(e){var t;if(e.isSnapshot){let m=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=m.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let m of this.view.state.facet(n4))try{if(m(this.view,e.range,e))return!0}catch(O){Wr(this.view.state,O,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,(t=n.assoc)!==null&&t!==void 0?t:n.empty?0:n.head>n.anchor?-1:1),l;if(!i)return;!n.empty&&(l=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,l.left),top:Math.min(i.top,l.top),right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)});let o=a4(this.view),c={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:u,offsetHeight:f}=this.view.scrollDOM;if(bS(this.view.scrollDOM,c,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,u),-u),Math.max(Math.min(e.yMargin,f),-f),this.view.textDirection==Rt.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(i.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||i.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let m=this.view.docView.lineAt(n.head,1);m&&m.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=n=>n.isWidget()||n.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){_f(this.tile)}}function _f(r,e){let t=e==null?void 0:e.get(r);if(t!=1){t==null&&r.destroy();for(let n of r.children)_f(n,e)}}function GS(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}function u4(r,e){let t=r.observer.selectionRange;if(!t.focusNode)return null;let n=D8(t.focusNode,t.focusOffset),i=I8(t.focusNode,t.focusOffset),l=n||i;if(i&&n&&i.node!=n.node){let c=Mt.get(i.node);if(!c||c.isText()&&c.text!=i.node.nodeValue)l=i;else if(r.docView.lastCompositionAfterCursor){let u=Mt.get(n.node);!u||u.isText()&&u.text!=n.node.nodeValue||(l=i)}}if(r.docView.lastCompositionAfterCursor=l!=n,!l)return null;let o=e-l.offset;return{from:o,to:o+l.node.nodeValue.length,node:l.node}}function KS(r,e,t){let n=u4(r,t);if(!n)return null;let{node:i,from:l,to:o}=n,c=i.nodeValue;if(/[\n\r]/.test(c)||r.state.doc.sliceString(n.from,n.to)!=c)return null;let u=e.invertedDesc;return{range:new or(u.mapPos(l),u.mapPos(o),l,o),text:i}}function JS(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let ew=class{constructor(){this.changes=[]}compareRange(e,t){ul(e,t,this.changes)}comparePoint(e,t){ul(e,t,this.changes)}boundChange(e){ul(e,e,this.changes)}};function tw(r,e,t){let n=new ew;return Ke.compare(r,e,t,n),n.changes}class nw{constructor(){this.changes=[]}compareRange(e,t){ul(e,t,this.changes)}comparePoint(){}boundChange(e){ul(e,e,this.changes)}}function rw(r,e,t){let n=new nw;return Ke.compare(r,e,t,n),n.changes}function iw(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function sw(r,e){let t=!1;return e&&r.iterChangedRanges((n,i)=>{n<e.to&&i>e.from&&(t=!0)}),t}class Rh extends bs{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function lw(r,e,t=1){let n=r.charCategorizer(e),i=r.doc.lineAt(e),l=e-i.from;if(i.length==0)return G.cursor(e);l==0?t=1:l==i.length&&(t=-1);let o=l,c=l;t<0?o=en(i.text,l,!1):c=en(i.text,l);let u=n(i.text.slice(o,c));for(;o>0;){let f=en(i.text,o,!1);if(n(i.text.slice(f,o))!=u)break;o=f}for(;c<i.length;){let f=en(i.text,c);if(n(i.text.slice(c,f))!=u)break;c=f}return G.range(o+i.from,c+i.from)}function ow(r,e,t,n,i){let l=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let c=r.viewState.heightOracle.textHeight,u=Math.floor((i-t.top-(r.defaultLineHeight-c)*.5)/c);l+=u*r.viewState.heightOracle.lineLength}let o=r.state.sliceDoc(t.from,t.to);return t.from+pS(o,l,r.state.tabSize)}function aw(r,e,t){let n=r.lineBlockAt(e);if(Array.isArray(n.type)){let i;for(let l of n.type){if(l.from>e)break;if(!(l.to<e)){if(l.from<e&&l.to>e)return l;(!i||l.type==Rn.Text&&(i.type!=l.type||(t<0?l.from<e:l.to>e)))&&(i=l)}}return i||n}return n}function cw(r,e,t,n){let i=aw(r,e.head,e.assoc||-1),l=!n||i.type!=Rn.Text||!(r.lineWrapping||i.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(l){let o=r.dom.getBoundingClientRect(),c=r.textDirectionAt(i.from),u=r.posAtCoords({x:t==(c==Rt.LTR)?o.right-1:o.left+1,y:(l.top+l.bottom)/2});if(u!=null)return G.cursor(u,t?-1:1)}return G.cursor(t?i.to:i.from,t?-1:1)}function jO(r,e,t,n){let i=r.state.doc.lineAt(e.head),l=r.bidiSpans(i),o=r.textDirectionAt(i.from);for(let c=e,u=null;;){let f=VS(i,l,o,c,t),m=B8;if(!f){if(i.number==(t?r.state.doc.lines:1))return c;m=`
83
- `,i=r.state.doc.line(i.number+(t?1:-1)),l=r.bidiSpans(i),f=r.visualLineSide(i,!t)}if(u){if(!u(m))return c}else{if(!n)return f;u=n(m)}c=f}}function uw(r,e,t){let n=r.state.charCategorizer(e),i=n(t);return l=>{let o=n(l);return i==Pt.Space&&(i=o),i==o}}function hw(r,e,t,n){let i=e.head,l=t?1:-1;if(i==(t?r.state.doc.length:0))return G.cursor(i,e.assoc);let o=e.goalColumn,c,u=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(i,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),m=r.documentTop;if(f)o==null&&(o=f.left-u.left),c=l<0?f.top:f.bottom;else{let w=r.viewState.lineBlockAt(i);o==null&&(o=Math.min(u.right-u.left,r.defaultCharacterWidth*(i-w.from))),c=(l<0?w.top:w.bottom)+m}let O=u.left+o,x=r.viewState.heightOracle.textHeight>>1,S=n??x;for(let w=0;;w+=x){let b=c+(S+w)*l,$=zf(r,{x:O,y:b},!1,l);if(t?b>u.bottom:b<u.top)return G.cursor($.pos,$.assoc);let T=r.coordsAtPos($.pos,$.assoc),_=T?(T.top+T.bottom)/2:0;if(!T||(t?_>c:_<c))return G.cursor($.pos,$.assoc,void 0,o)}}function To(r,e,t){for(;;){let n=0;for(let i of r)i.between(e-1,e+1,(l,o,c)=>{if(e>l&&e<o){let u=n||t||(e-l<o-e?-1:1);e=u<0?l:o,n=u}});if(!n)return e}}function h4(r,e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],l=null;if(i.empty){let o=To(r,i.from,0);o!=i.from&&(l=G.cursor(o,-1))}else{let o=To(r,i.from,-1),c=To(r,i.to,1);(o!=i.from||c!=i.to)&&(l=G.range(i.from==i.anchor?o:c,i.from==i.head?o:c))}l&&(t||(t=e.ranges.slice()),t[n]=l)}return t?G.create(t,e.mainIndex):e}function Lh(r,e,t){let n=To(r.state.facet(Ko).map(i=>i(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:G.cursor(n,n<t.from?1:-1)}class Dr{constructor(e,t){this.pos=e,this.assoc=t}}function zf(r,e,t,n){let i=r.contentDOM.getBoundingClientRect(),l=i.top+r.viewState.paddingTop,{x:o,y:c}=e,u=c-l,f;for(;;){if(u<0)return new Dr(0,1);if(u>r.viewState.docHeight)return new Dr(r.state.doc.length,-1);if(f=r.elementAtHeight(u),n==null)break;if(f.type==Rn.Text){if(n<0?f.to<r.viewport.from:f.from>r.viewport.to)break;let x=r.docView.coordsAt(n<0?f.from:f.to,n>0?-1:1);if(x&&(n<0?x.top<=u+l:x.bottom>=u+l))break}let O=r.viewState.heightOracle.textHeight/2;u=n>0?f.bottom+O:f.top-O}if(r.viewport.from>=f.to||r.viewport.to<=f.from){if(t)return null;if(f.type==Rn.Text){let O=ow(r,i,f,o,c);return new Dr(O,O==f.from?1:-1)}}if(f.type!=Rn.Text)return u<(f.top+f.bottom)/2?new Dr(f.from,1):new Dr(f.to,-1);let m=r.docView.lineAt(f.from,2);return(!m||m.length!=f.length)&&(m=r.docView.lineAt(f.from,-2)),new fw(r,o,c,r.textDirectionAt(f.from)).scanTile(m,f.from)}class fw{constructor(e,t,n,i){this.view=e,this.x=t,this.y=n,this.baseDir=i,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:i}=this.bidiSpansAt(e);return i[Ir.find(i,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:i}=this.bidiSpansAt(e);return i[Ir.find(i,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:i}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+i.from<t)}scan(e,t){let n=0,i=e.length-1,l=new Set,o=this.bidiIn(e[0],e[i]),c,u,f=-1,m=1e9,O;e:for(;n<i;){let S=i-n,w=n+i>>1;t:if(l.has(w)){let $=n+Math.floor(Math.random()*S);for(let T=0;T<S;T++){if(!l.has($)){w=$;break t}$++,$==i&&($=n)}break e}l.add(w);let b=t(w);if(b)for(let $=0;$<b.length;$++){let T=b[$],_=0;if(!(T.width==0&&b.length>1)){if(T.bottom<this.y)(!c||c.bottom<T.bottom)&&(c=T),_=1;else if(T.top>this.y)(!u||u.top>T.top)&&(u=T),_=-1;else{let A=T.left>this.x?this.x-T.left:T.right<this.x?this.x-T.right:0,C=Math.abs(A);C<m&&(f=w,m=C,O=T),A&&(_=A<0==(this.baseDir==Rt.LTR)?-1:1)}_==-1&&(!o||this.baseDirAt(e[w],1))?i=w:_==1&&(!o||this.baseDirAt(e[w+1],-1))&&(n=w+1)}}}if(!O){let S=c&&(!u||this.y-c.bottom<u.top-this.y)?c:u;return this.y=(S.top+S.bottom)/2,this.scan(e,t)}let x=(o?this.dirAt(e[f],1):this.baseDir)==Rt.LTR;return{i:f,after:this.x>(O.left+O.right)/2==x}}scanText(e,t){let n=[];for(let l=0;l<e.length;l=en(e.text,l))n.push(t+l);n.push(t+e.length);let i=this.scan(n,l=>{let o=n[l]-t,c=n[l+1]-t;return _o(e.dom,o,c).getClientRects()});return i.after?new Dr(n[i.i+1],-1):new Dr(n[i.i],1)}scanTile(e,t){if(!e.length)return new Dr(t,1);if(e.children.length==1){let c=e.children[0];if(c.isText())return this.scanText(c,t);if(c.isComposite())return this.scanTile(c,t)}let n=[t];for(let c=0,u=t;c<e.children.length;c++)n.push(u+=e.children[c].length);let i=this.scan(n,c=>{let u=e.children[c];return u.flags&48?null:(u.dom.nodeType==1?u.dom:_o(u.dom,0,u.length)).getClientRects()}),l=e.children[i.i],o=n[i.i];return l.isText()?this.scanText(l,o):l.isComposite()?this.scanTile(l,o):i.after?new Dr(n[i.i+1],-1):new Dr(o,1)}}const Js="￿";class dw{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(it.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Js}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i);let l=this.text.length;this.readNode(i);let o=Mt.get(i),c=i.nextSibling;if(c==t){o!=null&&o.breakAfter&&!c&&n!=this.view.contentDOM&&this.lineBreak();break}let u=Mt.get(c);(o&&u?o.breakAfter:(o?o.breakAfter:Gc(i))||Gc(c)&&(i.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>l)&&!mw(c,t)&&this.lineBreak(),i=c}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let l=-1,o=1,c;if(this.lineSeparator?(l=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(c=i.exec(t))&&(l=c.index,o=c[0].length),this.append(t.slice(n,l<0?t.length:l)),l<0)break;if(this.lineBreak(),o>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=o-1);n=l+o}}readNode(e){let t=Mt.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(pw(e,n.node,n.offset)?t:0))}}function pw(r,e,t){for(;;){if(!e||t<hi(e))return!1;if(e==r)return!0;t=Bi(e)+1,e=e.parentNode}}function mw(r,e){let t;for(;!(r==e||!r);r=r.nextSibling){let n=Mt.get(r);if(!(n!=null&&n.isWidget()))return!1;n&&(t||(t=[])).push(n)}if(t)for(let n of t){let i=n.overrideDOMText;if(i!=null&&i.length)return!1}return!0}class VO{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Ow{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:l,impreciseAnchor:o}=e.docView,c=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=f4(e.docView.tile,t,n,0))){let u=l||o?[]:xw(e),f=new dw(u,e);f.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=f.text,this.newSel=yw(u,this.bounds.from)}else{let u=e.observer.selectionRange,f=l&&l.node==u.focusNode&&l.offset==u.focusOffset||!Vf(e.contentDOM,u.focusNode)?c.main.head:e.docView.posFromDOM(u.focusNode,u.focusOffset),m=o&&o.node==u.anchorNode&&o.offset==u.anchorOffset||!Vf(e.contentDOM,u.anchorNode)?c.main.anchor:e.docView.posFromDOM(u.anchorNode,u.anchorOffset),O=e.viewport;if((be.ios||be.chrome)&&c.main.empty&&f!=m&&(O.from>0||O.to<e.state.doc.length)){let x=Math.min(f,m),S=Math.max(f,m),w=O.from-x,b=O.to-S;(w==0||w==1||x==0)&&(b==0||b==-1||S==e.state.doc.length)&&(f=0,m=e.state.doc.length)}if(e.inputState.composing>-1&&c.ranges.length>1)this.newSel=c.replaceRange(G.range(m,f));else if(e.lineWrapping&&m==f&&!(c.main.empty&&c.main.head==f)&&e.inputState.lastTouchTime>Date.now()-100){let x=e.coordsAtPos(f,-1),S=0;x&&(S=e.inputState.lastTouchY<=x.bottom?-1:1),this.newSel=G.create([G.cursor(f,S)])}else this.newSel=G.single(m,f)}}}function f4(r,e,t,n){if(r.isComposite()){let i=-1,l=-1,o=-1,c=-1;for(let u=0,f=n,m=n;u<r.children.length;u++){let O=r.children[u],x=f+O.length;if(f<e&&x>t)return f4(O,e,t,f);if(x>=e&&i==-1&&(i=u,l=f),f>t&&O.dom.parentNode==r.dom){o=u,c=m;break}m=x,f=x+O.breakAfter}return{from:l,to:c<0?n+r.length:c,startDOM:(i?r.children[i-1].dom.nextSibling:null)||r.dom.firstChild,endDOM:o<r.children.length&&o>=0?r.children[o].dom:null}}else return r.isText()?{from:n,to:n+r.length,startDOM:r.dom,endDOM:r.dom.nextSibling}:null}function d4(r,e){let t,{newSel:n}=e,{state:i}=r,l=i.selection.main,o=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:c,to:u}=e.bounds,f=l.from,m=null;(o===8||be.android&&e.text.length<u-c)&&(f=l.to,m="end");let O=i.doc.sliceString(c,u,Js),x,S;!l.empty&&l.from>=c&&l.to<=u&&(e.typeOver||O!=e.text)&&O.slice(0,l.from-c)==e.text.slice(0,l.from-c)&&O.slice(l.to-c)==e.text.slice(x=e.text.length-(O.length-(l.to-c)))?t={from:l.from,to:l.to,insert:et.of(e.text.slice(l.from-c,x).split(Js))}:(S=p4(O,e.text,f-c,m))&&(be.chrome&&o==13&&S.toB==S.from+2&&e.text.slice(S.from,S.toB)==Js+Js&&S.toB--,t={from:c+S.from,to:c+S.toA,insert:et.of(e.text.slice(S.from,S.toB).split(Js))})}else n&&(!r.hasFocus&&i.facet(oi)||nu(n,l))&&(n=null);if(!t&&!n)return!1;if((be.mac||be.android)&&t&&t.from==t.to&&t.from==l.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=G.single(n.main.anchor-1,n.main.head-1)),t={from:t.from,to:t.to,insert:et.of([t.insert.toString().replace("."," ")])}):i.doc.lineAt(l.from).to<l.to&&r.docView.lineHasWidget(l.to)&&r.inputState.insertingTextAt>Date.now()-50?t={from:l.from,to:l.to,insert:i.toText(r.inputState.insertingText)}:be.chrome&&t&&t.from==t.to&&t.from==l.head&&t.insert.toString()==`
84
- `&&r.lineWrapping&&(n&&(n=G.single(n.main.anchor-1,n.main.head-1)),t={from:l.from,to:l.to,insert:et.of([" "])}),t)return Z1(r,t,n,o);if(n&&!nu(n,l)){let c=!1,u="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(c=!0),u=r.inputState.lastSelectionOrigin,u=="select.pointer"&&(n=h4(i.facet(Ko).map(f=>f(r)),n))),r.dispatch({selection:n,scrollIntoView:c,userEvent:u}),!0}else return!1}function Z1(r,e,t,n=-1){if(be.ios&&r.inputState.flushIOSKey(e))return!0;let i=r.state.selection.main;if(be.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&r.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&hl(r.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&hl(r.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&hl(r.contentDOM,"Delete",46)))return!0;let l=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let o,c=()=>o||(o=gw(r,e,t));return r.state.facet(J8).some(u=>u(r,e.from,e.to,l,c))||r.dispatch(c()),!0}function gw(r,e,t){let n,i=r.state,l=i.selection.main,o=-1;if(e.from==e.to&&e.from<l.from||e.from>l.to){let u=e.from<l.from?-1:1,f=u<0?l.from:l.to,m=To(i.facet(Ko).map(O=>O(r)),f,u);e.from==m&&(o=m)}if(o>-1)n={changes:e,selection:G.cursor(e.from+e.insert.length,-1)};else if(e.from>=l.from&&e.to<=l.to&&e.to-e.from>=(l.to-l.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let u=l.from<e.from?i.sliceDoc(l.from,e.from):"",f=l.to>e.to?i.sliceDoc(e.to,l.to):"";n=i.replaceSelection(r.state.toText(u+e.insert.sliceString(0,void 0,r.state.lineBreak)+f))}else{let u=i.changes(e),f=t&&t.main.to<=u.newLength?t.main:void 0;if(i.selection.ranges.length>1&&(r.inputState.composing>=0||r.inputState.compositionPendingChange)&&e.to<=l.to+10&&e.to>=l.to-10){let m=r.state.sliceDoc(e.from,e.to),O,x=t&&u4(r,t.main.head);if(x){let w=e.insert.length-(e.to-e.from);O={from:x.from,to:x.to-w}}else O=r.state.doc.lineAt(l.head);let S=l.to-e.to;n=i.changeByRange(w=>{if(w.from==l.from&&w.to==l.to)return{changes:u,range:f||w.map(u)};let b=w.to-S,$=b-m.length;if(r.state.sliceDoc($,b)!=m||b>=O.from&&$<=O.to)return{range:w};let T=i.changes({from:$,to:b,insert:e.insert}),_=w.to-l.to;return{changes:T,range:f?G.range(Math.max(0,f.anchor+_),Math.max(0,f.head+_)):w.map(T)}})}else n={changes:u,selection:f&&i.selection.replaceRange(f)}}let c="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,c+=".compose",r.inputState.compositionFirstChange&&(c+=".start",r.inputState.compositionFirstChange=!1)),i.update(n,{userEvent:c,scrollIntoView:!0})}function p4(r,e,t,n){let i=Math.min(r.length,e.length),l=0;for(;l<i&&r.charCodeAt(l)==e.charCodeAt(l);)l++;if(l==i&&r.length==e.length)return null;let o=r.length,c=e.length;for(;o>0&&c>0&&r.charCodeAt(o-1)==e.charCodeAt(c-1);)o--,c--;if(n=="end"){let u=Math.max(0,l-Math.min(o,c));t-=o+u-l}if(o<l&&r.length<e.length){let u=t<=l&&t>=o?l-t:0;l-=u,c=l+(c-o),o=l}else if(c<l){let u=t<=l&&t>=c?l-t:0;l-=u,o=l+(o-c),c=l}return{from:l,toA:o,toB:c}}function xw(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:l}=r.observer.selectionRange;return t&&(e.push(new VO(t,n)),(i!=t||l!=n)&&e.push(new VO(i,l))),e}function yw(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?G.single(t+e,n+e):null}function nu(r,e){return e.head==r.main.head&&e.anchor==r.main.anchor}class vw{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,be.safari&&e.contentDOM.addEventListener("input",()=>null),be.gecko&&Vw(e.contentDOM.ownerDocument)}handleEvent(e){!Aw(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let i of n.observers)i(this.view,t);for(let i of n.handlers){if(t.defaultPrevented)break;if(i(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Sw(e),n=this.handlers,i=this.view.contentDOM;for(let l in t)if(l!="scroll"){let o=!t[l].handlers.length,c=n[l];c&&o!=!c.handlers.length&&(i.removeEventListener(l,this.handleEvent),c=null),c||i.addEventListener(l,this.handleEvent,{passive:o})}for(let l in n)l!="scroll"&&!t[l]&&i.removeEventListener(l,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&O4.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),be.android&&be.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return be.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&!e.shiftKey&&((t=m4.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||ww.indexOf(e.key)>-1&&e.ctrlKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,hl(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:be.safari&&!be.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function RO(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(i){Wr(t.state,i)}}}function Sw(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let i=n.spec,l=i&&i.plugin.domEventHandlers,o=i&&i.plugin.domEventObservers;if(l)for(let c in l){let u=l[c];u&&t(c).handlers.push(RO(n.value,u))}if(o)for(let c in o){let u=o[c];u&&t(c).observers.push(RO(n.value,u))}}for(let n in kr)t(n).handlers.push(kr[n]);for(let n in Xn)t(n).observers.push(Xn[n]);return e}const m4=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ww="dthko",O4=[16,17,18,20,91,92,224,225],pc=6;function mc(r){return Math.max(0,r)*.7+8}function kw(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class bw{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=N8(e.contentDOM),this.atoms=e.state.facet(Ko).map(o=>o(e));let l=e.contentDOM.ownerDocument;l.addEventListener("mousemove",this.move=this.move.bind(this)),l.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(it.allowMultipleSelections)&&Qw(e,t),this.dragging=Pw(e,t)&&y4(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&kw(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,i=0,l=0,o=this.view.win.innerWidth,c=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:l,bottom:c}=this.scrollParents.y.getBoundingClientRect());let u=a4(this.view);e.clientX-u.left<=i+pc?t=-mc(i-e.clientX):e.clientX+u.right>=o-pc&&(t=mc(e.clientX-o)),e.clientY-u.top<=l+pc?n=-mc(l-e.clientY):e.clientY+u.bottom>=c-pc&&(n=mc(e.clientY-c)),this.setScrollSpeed(t,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=h4(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Qw(r,e){let t=r.state.facet(q8);return t.length?t[0](e):be.mac?e.metaKey:e.ctrlKey}function $w(r,e){let t=r.state.facet(U8);return t.length?t[0](e):be.mac?!e.altKey:!e.ctrlKey}function Pw(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=No(r.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let l=0;l<i.length;l++){let o=i[l];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Aw(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=Mt.get(t))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}const kr=Object.create(null),Xn=Object.create(null),g4=be.ie&&be.ie_version<15||be.ios&&be.webkit_version<604;function Cw(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),x4(r,t.value)},50)}function Tu(r,e,t){for(let n of r.facet(e))t=n(t,r);return t}function x4(r,e){e=Tu(r.state,P1,e);let{state:t}=r,n,i=1,l=t.toText(e),o=l.lines==t.selection.ranges.length;if(Df!=null&&t.selection.ranges.every(u=>u.empty)&&Df==l.toString()){let u=-1;n=t.changeByRange(f=>{let m=t.doc.lineAt(f.from);if(m.from==u)return{range:f};u=m.from;let O=t.toText((o?l.line(i++).text:e)+t.lineBreak);return{changes:{from:m.from,insert:O},range:G.cursor(f.from+O.length)}})}else o?n=t.changeByRange(u=>{let f=l.line(i++);return{changes:{from:u.from,to:u.to,insert:f.text},range:G.cursor(u.from+f.length)}}):n=t.replaceSelection(l);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Xn.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};Xn.wheel=Xn.mousewheel=r=>{r.inputState.lastWheelEvent=Date.now()};kr.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&r.inputState.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!1);Xn.touchstart=(r,e)=>{let t=r.inputState,n=e.targetTouches[0];t.lastTouchTime=Date.now(),n&&(t.lastTouchX=n.clientX,t.lastTouchY=n.clientY),t.setSelectionOrigin("select.pointer")};Xn.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};kr.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet(G8))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=Zw(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new bw(r,e,t,n)),n&&r.observer.ignore(()=>{_8(r.contentDOM);let l=r.root.activeElement;l&&!l.contains(r.contentDOM)&&l.blur()});let i=r.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}else r.inputState.setSelectionOrigin("select.pointer");return!1};function LO(r,e,t,n){if(n==1)return G.cursor(e,t);if(n==2)return lw(r.state,e,t);{let i=r.docView.lineAt(e,t),l=r.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:l.from,c=i?i.posAtEnd:l.to;return c<r.state.doc.length&&c==l.to&&c++,G.range(o,c)}}const Tw=be.ie&&be.ie_version<=11;let XO=null,NO=0,_O=0;function y4(r){if(!Tw)return r.detail;let e=XO,t=_O;return XO=r,_O=Date.now(),NO=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(NO+1)%3:1}function Zw(r,e){let t=r.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=y4(e),i=r.state.selection;return{update(l){l.docChanged&&(t.pos=l.changes.mapPos(t.pos),i=i.map(l.changes))},get(l,o,c){let u=r.posAndSideAtCoords({x:l.clientX,y:l.clientY},!1),f,m=LO(r,u.pos,u.assoc,n);if(t.pos!=u.pos&&!o){let O=LO(r,t.pos,t.assoc,n),x=Math.min(O.from,m.from),S=Math.max(O.to,m.to);m=x<m.from?G.range(x,S,m.assoc):G.range(S,x,m.assoc)}return o?i.replaceRange(i.main.extend(m.from,m.to,m.assoc)):c&&n==1&&i.ranges.length>1&&(f=Mw(i,u.pos))?f:c?i.addRange(m):G.create([m])}}}function Mw(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:i}=r.ranges[t];if(n<=e&&i>=e)return G.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}kr.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let i=r.docView.tile.nearest(e.target);if(i&&i.isWidget()){let l=i.posAtStart,o=l+i.length;(l>=t.to||o<=t.from)&&(t=G.range(l,o))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",Tu(r.state,A1,r.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};kr.dragend=r=>(r.inputState.draggedContent=null,!1);function zO(r,e,t,n){if(t=Tu(r.state,P1,t),!t)return;let i=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:l}=r.inputState,o=n&&l&&$w(r,e)?{from:l.from,to:l.to}:null,c={from:i,insert:t},u=r.state.changes(o?[o,c]:c);r.focus(),r.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),r.inputState.draggedContent=null}kr.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),i=0,l=()=>{++i==t.length&&zO(r,e,n.filter(o=>o!=null).join(r.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let c=new FileReader;c.onerror=l,c.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(n[o]=c.result),l()},c.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return zO(r,e,n,!0),!0}return!1};kr.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=g4?null:e.clipboardData;return t?(x4(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Cw(r),!1)};function Ew(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function jw(r){let e=[],t=[],n=!1;for(let i of r.selection.ranges)i.empty||(e.push(r.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:l}of r.selection.ranges){let o=r.doc.lineAt(l);o.number>i&&(e.push(o.text),t.push({from:o.from,to:Math.min(r.doc.length,o.to+1)})),i=o.number}n=!0}return{text:Tu(r,A1,e.join(r.lineBreak)),ranges:t,linewise:n}}let Df=null;kr.copy=kr.cut=(r,e)=>{if(!Ao(r.contentDOM,r.observer.selectionRange))return!1;let{text:t,ranges:n,linewise:i}=jw(r.state);if(!t&&!i)return!1;Df=i?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let l=g4?null:e.clipboardData;return l?(l.clearData(),l.setData("text/plain",t),!0):(Ew(r,t),!1)};const v4=di.define();function S4(r,e){let t=[];for(let n of r.facet(e4)){let i=n(r,e);i&&t.push(i)}return t.length?r.update({effects:t,annotations:v4.of(!0)}):null}function w4(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=S4(r.state,e);t?r.dispatch(t):r.update([])}},10)}Xn.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),w4(r)};Xn.blur=r=>{r.observer.clearSelectionRange(),w4(r)};Xn.compositionstart=Xn.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};Xn.compositionend=r=>{r.observer.editContext||(r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,be.chrome&&be.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50))};Xn.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};kr.beforeinput=(r,e)=>{var t,n;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(r.inputState.insertingText=e.data,r.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&r.observer.editContext){let l=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(l&&o.length){let c=o[0],u=r.posAtDOM(c.startContainer,c.startOffset),f=r.posAtDOM(c.endContainer,c.endOffset);return Z1(r,{from:u,to:f,insert:r.state.toText(l)},null),!0}}let i;if(be.chrome&&be.android&&(i=m4.find(l=>l.inputType==e.inputType))&&(r.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let l=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>l+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return be.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),be.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>Xn.compositionend(r,e),20),!1};const DO=new Set;function Vw(r){DO.has(r)||(DO.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const IO=["pre-wrap","normal","pre-line","break-spaces"];let yl=!1;function WO(){yl=!1}class Rw{constructor(e){this.lineWrapping=e,this.doc=et.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return IO.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(i*10)]||(t=!0,this.heightSamples[Math.floor(i*10)]=!0)}return t}refresh(e,t,n,i,l,o){let c=IO.indexOf(e)>-1,u=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=c||Math.abs(n-this.charWidth)>.1;if(this.lineWrapping=c,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=l,u){this.heightSamples={};for(let f=0;f<o.length;f++){let m=o[f];m<0?f++:this.heightSamples[Math.floor(m*10)]=!0}}return u}}class Lw{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class vr{constructor(e,t,n,i,l){this.from=e,this.length=t,this.top=n,this.height=i,this._content=l}get type(){return typeof this._content=="number"?Rn.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof vs?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new vr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var yt=(function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r})(yt||(yt={}));const Xc=.001;class wn{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Xc&&(yl=!0),this.height=e)}replace(e,t,n){return wn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let l=this,o=n.doc;for(let c=i.length-1;c>=0;c--){let{fromA:u,toA:f,fromB:m,toB:O}=i[c],x=l.lineAt(u,yt.ByPosNoHeight,n.setDoc(t),0,0),S=x.to>=f?x:l.lineAt(f,yt.ByPosNoHeight,n,0,0);for(O+=S.to-f,f=S.to;c>0&&x.from<=i[c-1].toA;)u=i[c-1].fromA,m=i[c-1].fromB,c--,u<x.from&&(x=l.lineAt(u,yt.ByPosNoHeight,n,0,0));m+=x.from-u,u=x.from;let w=M1.build(n.setDoc(o),e,m,O);l=ru(l,l.replace(u,f,w))}return l.updateHeight(n,0)}static empty(){return new Yn(0,0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,i=0,l=0;for(;;)if(t==n)if(i>l*2){let c=e[t-1];c.break?e.splice(--t,1,c.left,null,c.right):e.splice(--t,1,c.left,c.right),n+=1+c.break,i-=c.size}else if(l>i*2){let c=e[n];c.break?e.splice(n,1,c.left,null,c.right):e.splice(n,1,c.left,c.right),n+=2+c.break,l-=c.size}else break;else if(i<l){let c=e[t++];c&&(i+=c.size)}else{let c=e[--n];c&&(l+=c.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,n++),new Nw(wn.of(e.slice(0,t)),o,wn.of(e.slice(n)))}}function ru(r,e){return r==e?r:(r.constructor!=e.constructor&&(yl=!0),e)}wn.prototype.size=1;const Xw=Ie.replace({});class k4 extends wn{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new vr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,i){return this.spaceAbove&&e<n+this.spaceAbove?new vr(i,0,n,this.spaceAbove,Xw):this.mainBlock(n,i)}lineAt(e,t,n,i,l){let o=this.mainBlock(i,l);return this.spaceAbove?this.blockAt(0,n,i,l).join(o):o}forEachLine(e,t,n,i,l,o){e<=l+this.length&&t>=l&&o(this.lineAt(0,yt.ByPos,n,i,l))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setMeasuredHeight(i),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Yn extends k4{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new vr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof Yn||i instanceof ln&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof ln?i=new Yn(i.length,this.height,this.spaceAbove):i.height=this.height,this.outdated||(i.outdated=!1),i):wn.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setMeasuredHeight(i):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ln extends wn{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,l=i-n+1,o,c=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*l);o=u/l,this.length>l+1&&(c=(this.height-u)/(this.length-l-1))}else o=this.height/l;return{firstLine:n,lastLine:i,perLine:o,perChar:c}}blockAt(e,t,n,i){let{firstLine:l,lastLine:o,perLine:c,perChar:u}=this.heightMetrics(t,i);if(t.lineWrapping){let f=i+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),m=t.doc.lineAt(f),O=c+m.length*u,x=Math.max(n,e-O/2);return new vr(m.from,m.length,x,O,0)}else{let f=Math.max(0,Math.min(o-l,Math.floor((e-n)/c))),{from:m,length:O}=t.doc.line(l+f);return new vr(m,O,n+c*f,c,0)}}lineAt(e,t,n,i,l){if(t==yt.ByHeight)return this.blockAt(e,n,i,l);if(t==yt.ByPosNoHeight){let{from:S,to:w}=n.doc.lineAt(e);return new vr(S,w-S,0,0,0)}let{firstLine:o,perLine:c,perChar:u}=this.heightMetrics(n,l),f=n.doc.lineAt(e),m=c+f.length*u,O=f.number-o,x=i+c*O+u*(f.from-l-O);return new vr(f.from,f.length,Math.max(i,Math.min(x,i+this.height-m)),m,0)}forEachLine(e,t,n,i,l,o){e=Math.max(e,l),t=Math.min(t,l+this.length);let{firstLine:c,perLine:u,perChar:f}=this.heightMetrics(n,l);for(let m=e,O=i;m<=t;){let x=n.doc.lineAt(m);if(m==e){let w=x.number-c;O+=u*w+f*(e-l-w)}let S=u+f*x.length;o(new vr(x.from,x.length,O,S,0)),O+=S,m=x.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let l=n[n.length-1];l instanceof ln?n[n.length-1]=new ln(l.length+i):n.push(null,new ln(i-1))}if(e>0){let l=n[0];l instanceof ln?n[0]=new ln(e+l.length):n.unshift(new ln(e-1),null)}return wn.of(n)}decomposeLeft(e,t){t.push(new ln(e-1),null)}decomposeRight(e,t){t.push(null,new ln(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let l=t+this.length;if(i&&i.from<=t+this.length&&i.more){let o=[],c=Math.max(t,i.from),u=-1;for(i.from>t&&o.push(new ln(i.from-t-1).updateHeight(e,t));c<=l&&i.more;){let m=e.doc.lineAt(c).length;o.length&&o.push(null);let O=i.heights[i.index++],x=0;O<0&&(x=-O,O=i.heights[i.index++]),u==-1?u=O:Math.abs(O-u)>=Xc&&(u=-2);let S=new Yn(m,O,x);S.outdated=!1,o.push(S),c+=m+1}c<=l&&o.push(null,new ln(l-c).updateHeight(e,c));let f=wn.of(o);return(u<0||Math.abs(f.height-this.height)>=Xc||Math.abs(u-this.heightMetrics(e,t).perLine)>=Xc)&&(yl=!0),ru(this,f)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Nw extends wn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let l=n+this.left.height;return e<l?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,l,i+this.left.length+this.break)}lineAt(e,t,n,i,l){let o=i+this.left.height,c=l+this.left.length+this.break,u=t==yt.ByHeight?e<o:e<c,f=u?this.left.lineAt(e,t,n,i,l):this.right.lineAt(e,t,n,o,c);if(this.break||(u?f.to<c:f.from>c))return f;let m=t==yt.ByPosNoHeight?yt.ByPosNoHeight:yt.ByPos;return u?f.join(this.right.lineAt(c,m,n,o,c)):this.left.lineAt(c,m,n,i,l).join(f)}forEachLine(e,t,n,i,l,o){let c=i+this.left.height,u=l+this.left.length+this.break;if(this.break)e<u&&this.left.forEachLine(e,t,n,i,l,o),t>=u&&this.right.forEachLine(e,t,n,c,u,o);else{let f=this.lineAt(u,yt.ByPos,n,i,l);e<f.from&&this.left.forEachLine(e,f.from-1,n,i,l,o),f.to>=e&&f.from<=t&&o(f),t>f.to&&this.right.forEachLine(f.to+1,t,n,c,u,o)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let l=[];e>0&&this.decomposeLeft(e,l);let o=l.length;for(let c of n)l.push(c);if(e>0&&HO(l,o-1),t<this.length){let c=l.length;this.decomposeRight(t,l),HO(l,c)}return wn.of(l)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?wn.of(this.break?[e,null,t]:[e,t]):(this.left=ru(this.left,e),this.right=ru(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:l,right:o}=this,c=t+l.length+this.break,u=null;return i&&i.from<=t+l.length&&i.more?u=l=l.updateHeight(e,t,n,i):l.updateHeight(e,t,n),i&&i.from<=c+o.length&&i.more?u=o=o.updateHeight(e,c,n,i):o.updateHeight(e,c,n),u?this.balanced(l,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function HO(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof ln&&(n=r[e+1])instanceof ln&&r.splice(e-1,3,new ln(t.length+1+n.length))}const _w=5;class M1{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Yn?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Yn(n-this.pos,-1,0)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0,l=n.widget?n.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new k4(o,i,n)):(o||l||i>=_w)&&this.addLineDeco(i,l,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Yn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new ln(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Yn)return e;let t=new Yn(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Yn)&&!this.isCovered?this.nodes.push(new Yn(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let i of this.nodes)i instanceof Yn&&i.updateHeight(this.oracle,n),n+=i?i.length:1;return this.nodes}static build(e,t,n,i){let l=new M1(n,e);return Ke.spans(t,n,i,l,0),l.finish(n)}}function zw(r,e,t){let n=new Dw;return Ke.compare(r,e,t,n,0),n.changes}class Dw{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&ul(e,t,this.changes,5)}}function Iw(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,i=n.defaultView||window,l=Math.max(0,t.left),o=Math.min(i.innerWidth,t.right),c=Math.max(0,t.top),u=Math.min(i.innerHeight,t.bottom);for(let f=r.parentNode;f&&f!=n.body;)if(f.nodeType==1){let m=f,O=window.getComputedStyle(m);if((m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth)&&O.overflow!="visible"){let x=m.getBoundingClientRect();l=Math.max(l,x.left),o=Math.min(o,x.right),c=Math.max(c,x.top),u=Math.min(f==r.parentNode?i.innerHeight:u,x.bottom)}f=O.position=="absolute"||O.position=="fixed"?m.offsetParent:m.parentNode}else if(f.nodeType==11)f=f.host;else break;return{left:l-t.left,right:Math.max(l,o)-t.left,top:c-(t.top+e),bottom:Math.max(c,u)-(t.top+e)}}function Ww(r){let e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function Hw(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Xh{constructor(e,t,n,i){this.from=e,this.to=t,this.size=n,this.displaySize=i}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],l=t[n];if(i.from!=l.from||i.to!=l.to||i.size!=l.size)return!1}return!0}draw(e,t){return Ie.replace({widget:new Yw(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Yw extends bs{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class YO{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=FO,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Rt.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(C1).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Rw(n),this.stateDeco=BO(t),this.heightMap=wn.empty().applyChanges(this.stateDeco,et.empty,this.heightOracle.setDoc(t.doc),[new or(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ie.set(this.lineGaps.map(i=>i.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:l,to:o})=>i>=l&&i<=o)){let{from:l,to:o}=this.lineBlockAt(i);e.push(new Oc(l,o))}}return this.viewports=e.sort((n,i)=>n.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?FO:new E1(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ko(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=BO(this.state);let i=e.changedRanges,l=or.extendWithRanges(i,zw(n,this.stateDeco,e?e.changes:Wt.empty(this.state.doc.length))),o=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);WO(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),l),(this.heightMap.height!=o||yl)&&(e.flags|=2),c?(this.scrollAnchorPos=e.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let u=l.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<u.from||t.range.head>u.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let f=u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,e.flags|=this.updateForViewport(),(f||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(LS)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,l=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?Rt.RTL:Rt.LTR;let o=this.heightOracle.mustRefreshForWrapping(l)||this.mustMeasureContent==="refresh",c=t.getBoundingClientRect(),u=o||this.mustMeasureContent||this.contentDOMHeight!=c.height;this.contentDOMHeight=c.height,this.mustMeasureContent=!1;let f=0,m=0;if(c.width&&c.height){let{scaleX:j,scaleY:N}=X8(t,c);(j>.005&&Math.abs(this.scaleX-j)>.005||N>.005&&Math.abs(this.scaleY-N)>.005)&&(this.scaleX=j,this.scaleY=N,f|=16,o=u=!0)}let O=(parseInt(n.paddingTop)||0)*this.scaleY,x=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=x)&&(this.paddingTop=O,this.paddingBottom=x,f|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,f|=16);let S=N8(this.view.contentDOM,!1).y;S!=this.scrollParent&&(this.scrollParent=S,this.scrollAnchorHeight=-1,this.scrollOffset=0);let w=this.getScrollOffset();this.scrollOffset!=w&&(this.scrollAnchorHeight=-1,this.scrollOffset=w),this.scrolledToBottom=z8(this.scrollParent||e.win);let b=(this.printing?Hw:Iw)(t,this.paddingTop),$=b.top-this.pixelViewport.top,T=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(u=!0)),!this.inView&&!this.scrollTarget&&!Ww(e.dom))return 0;let A=c.width;if((this.contentDOMWidth!=A||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=e.scrollDOM.clientHeight,f|=16),u){let j=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(j)&&(o=!0),o||i.lineWrapping&&Math.abs(A-this.contentDOMWidth)>i.charWidth){let{lineHeight:N,charWidth:M,textHeight:R}=e.docView.measureTextSize();o=N>0&&i.refresh(l,N,M,R,Math.max(5,A/M),j),o&&(e.docView.minWidth=0,f|=16)}$>0&&T>0?m=Math.max($,T):$<0&&T<0&&(m=Math.min($,T)),WO();for(let N of this.viewports){let M=N.from==this.viewport.from?j:e.docView.measureVisibleLineHeights(N);this.heightMap=(o?wn.empty().applyChanges(this.stateDeco,et.empty,this.heightOracle,[new or(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new Lw(N.from,M))}yl&&(f|=2)}let C=!this.viewportIsAppropriate(this.viewport,m)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return C&&(f&2&&(f|=this.updateScaler()),this.viewport=this.getViewport(m,this.scrollTarget),f|=this.updateForViewport()),(f&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),f|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),f}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,l=this.heightOracle,{visibleTop:o,visibleBottom:c}=this,u=new Oc(i.lineAt(o-n*1e3,yt.ByHeight,l,0,0).from,i.lineAt(c+(1-n)*1e3,yt.ByHeight,l,0,0).to);if(t){let{head:f}=t.range;if(f<u.from||f>u.to){let m=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=i.lineAt(f,yt.ByPos,l,0,0),x;t.y=="center"?x=(O.top+O.bottom)/2-m/2:t.y=="start"||t.y=="nearest"&&f<u.from?x=O.top:x=O.bottom-m,u=new Oc(i.lineAt(x-1e3/2,yt.ByHeight,l,0,0).from,i.lineAt(x+m+1e3/2,yt.ByHeight,l,0,0).to)}}return u}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new Oc(this.heightMap.lineAt(n,yt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,yt.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,yt.ByPos,this.heightOracle,0,0),{bottom:l}=this.heightMap.lineAt(t,yt.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:c}=this;return(e==0||i<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||l>=c+Math.max(10,Math.min(n,250)))&&i>o-2*1e3&&l<c+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new Xh(t.mapPos(i.from),t.mapPos(i.to),i.size,i.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,l=i>>1,o=i<<1;if(this.defaultTextDirection!=Rt.LTR&&!n)return[];let c=[],u=(m,O,x,S)=>{if(O-m<l)return;let w=this.state.selection.main,b=[w.from];w.empty||b.push(w.to);for(let T of b)if(T>m&&T<O){u(m,T-10,x,S),u(T+10,O,x,S);return}let $=Bw(e,T=>T.from>=x.from&&T.to<=x.to&&Math.abs(T.from-m)<l&&Math.abs(T.to-O)<l&&!b.some(_=>T.from<_&&T.to>_));if(!$){if(O<x.to&&t&&n&&t.visibleRanges.some(A=>A.from<=O&&A.to>=O)){let A=t.moveToLineBoundary(G.cursor(O),!1,!0).head;A>m&&(O=A)}let T=this.gapSize(x,m,O,S),_=n||T<2e6?T:2e6;$=new Xh(m,O,T,_)}c.push($)},f=m=>{if(m.length<o||m.type!=Rn.Text)return;let O=Fw(m.from,m.to,this.stateDeco);if(O.total<o)return;let x=this.scrollTarget?this.scrollTarget.range.head:null,S,w;if(n){let b=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,$,T;if(x!=null){let _=xc(O,x),A=((this.visibleBottom-this.visibleTop)/2+b)/m.height;$=_-A,T=_+A}else $=(this.visibleTop-m.top-b)/m.height,T=(this.visibleBottom-m.top+b)/m.height;S=gc(O,$),w=gc(O,T)}else{let b=O.total*this.heightOracle.charWidth,$=i*this.heightOracle.charWidth,T=0;if(b>2e6)for(let N of e)N.from>=m.from&&N.from<m.to&&N.size!=N.displaySize&&N.from*this.heightOracle.charWidth+T<this.pixelViewport.left&&(T=N.size-N.displaySize);let _=this.pixelViewport.left+T,A=this.pixelViewport.right+T,C,j;if(x!=null){let N=xc(O,x),M=((A-_)/2+$)/b;C=N-M,j=N+M}else C=(_-$)/b,j=(A+$)/b;S=gc(O,C),w=gc(O,j)}S>m.from&&u(m.from,S,m,O),w<m.to&&u(w,m.to,m,O)};for(let m of this.viewportLines)Array.isArray(m.type)?m.type.forEach(f):f(m);return c}gapSize(e,t,n,i){let l=xc(i,n)-xc(i,t);return this.heightOracle.lineWrapping?e.height*l:i.total*this.heightOracle.charWidth*l}updateLineGaps(e){Xh.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Ie.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Ke.spans(t,this.viewport.from,this.viewport.to,{span(l,o){n.push({from:l,to:o})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let l=0;l<n.length&&!(i&8);l++){let o=this.visibleRanges[l],c=n[l];(o.from!=c.from||o.to!=c.to)&&(i|=4,e&&e.mapPos(o.from,-1)==c.from&&e.mapPos(o.to,1)==c.to||(i|=8))}return this.visibleRanges=n,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ko(this.heightMap.lineAt(e,yt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ko(this.heightMap.lineAt(this.scaler.fromDOM(e),yt.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ko(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Oc{constructor(e,t){this.from=e,this.to=t}}function Fw(r,e,t){let n=[],i=r,l=0;return Ke.spans(t,r,e,{span(){},point(o,c){o>i&&(n.push({from:i,to:o}),l+=o-i),i=c}},20),i<e&&(n.push({from:i,to:e}),l+=e-i),{total:l,ranges:n}}function gc({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let i=0;;i++){let{from:l,to:o}=e[i],c=o-l;if(n<=c)return l+n;n-=c}}function xc(r,e){let t=0;for(let{from:n,to:i}of r.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/r.total}function Bw(r,e){for(let t of r)if(e(t))return t}const FO={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}};function BO(r){let e=r.facet(Pu).filter(n=>typeof n!="function"),t=r.facet(T1).filter(n=>typeof n!="function");return t.length&&e.push(Ke.join(t)),e}class E1{constructor(e,t,n){let i=0,l=0,o=0;this.viewports=n.map(({from:c,to:u})=>{let f=t.lineAt(c,yt.ByPos,e,0,0).top,m=t.lineAt(u,yt.ByPos,e,0,0).bottom;return i+=m-f,{from:c,to:u,top:f,bottom:m,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let c of this.viewports)c.domTop=o+(c.top-l)*this.scale,o=c.domBottom=c.domTop+(c.bottom-c.top),l=c.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let l=t<this.viewports.length?this.viewports[t]:null;if(!l||e<l.top)return i+(e-n)*this.scale;if(e<=l.bottom)return l.domTop+(e-l.top);n=l.bottom,i=l.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let l=t<this.viewports.length?this.viewports[t]:null;if(!l||e<l.domTop)return n+(e-i)/this.scale;if(e<=l.domBottom)return l.top+(e-l.domTop);n=l.bottom,i=l.domBottom}}eq(e){return e instanceof E1?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to):!1}}function ko(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new vr(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(i=>ko(i,e)):r._content)}const yc=Pe.define({combine:r=>r.join(" ")}),If=Pe.define({combine:r=>r.indexOf(!0)>-1}),Wf=Yi.newName(),b4=Yi.newName(),Q4=Yi.newName(),$4={"&light":"."+b4,"&dark":"."+Q4};function Hf(r,e,t){return new Yi(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return r;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):r+" "+n}})}const qw=Hf("."+Wf,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},$4),Uw={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Nh=be.ie&&be.ie_version<=11;class Gw{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new QS,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(be.ie&&be.ie_version<=11||be.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&be.android&&e.constructor.EDIT_CONTEXT!==!1&&!(be.chrome&&be.chrome_version<126)&&(this.editContext=new Jw(e),e.state.facet(oi)&&(e.contentDOM.editContext=this.editContext.editContext)),Nh&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(oi)?n.root.activeElement!=this.dom:!Ao(this.dom,i))return;let l=i.anchorNode&&n.docView.tile.nearest(i.anchorNode);if(l&&l.isWidget()&&l.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(be.ie&&be.ie_version<=11||be.android&&be.chrome)&&!n.state.selection.main.empty&&i.focusNode&&Co(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=No(e.root);if(!t)return!1;let n=be.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Kw(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let i=Ao(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&PS(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Uw),Nh&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Nh&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let i=()=>{let l=this.delayedAndroidKey;l&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=l.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&l.force&&hl(this.dom,l.key,l.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let l of e){let o=this.readMutation(l);o&&(o.typeOver&&(i=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&Ao(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let l=new Ow(this.view,e,t,n);return this.view.docView.domChanged={newSel:l.newSel?l.newSel.main:null},l}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,i=d4(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!nu(this.view.state.selection,t.newSel.main))&&this.view.update([]),i}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let n=qO(t,e.previousSibling||e.target.previousSibling,-1),i=qO(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(oi)!=e.state.facet(oi)&&(e.view.contentDOM.editContext=e.state.facet(oi)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function qO(r,e,t){for(;e;){let n=Mt.get(e);if(n&&n.parent==r)return n;let i=e.parentNode;e=i!=r.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function UO(r,e){let t=e.startContainer,n=e.startOffset,i=e.endContainer,l=e.endOffset,o=r.docView.domAtPos(r.state.selection.main.anchor,1);return Co(o.node,o.offset,i,l)&&([t,n,i,l]=[i,l,t,n]),{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:l}}function Kw(r,e){if(e.getComposedRanges){let i=e.getComposedRanges(r.root)[0];if(i)return UO(r,i)}let t=null;function n(i){i.preventDefault(),i.stopImmediatePropagation(),t=i.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",n,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",n,!0),t?UO(r,t):null}class Jw{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let i=e.state.selection.main,{anchor:l,head:o}=i,c=this.toEditorPos(n.updateRangeStart),u=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:c,drifted:!1});let f=u-c>n.text.length;c==this.from&&l<this.from?c=l:u==this.to&&l>this.to&&(u=l);let m=p4(e.state.sliceDoc(c,u),n.text,(f?i.from:i.to)-c,f?"end":null);if(!m){let x=G.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));nu(x,i)||e.dispatch({selection:x,userEvent:"select"});return}let O={from:m.from+c,to:m.toA+c,insert:et.of(n.text.slice(m.from,m.toB).split(`
85
- `))};if((be.mac||be.android)&&O.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(O={from:c,to:u,insert:et.of([n.text.replace("."," ")])}),this.pendingContextChange=O,!e.state.readOnly){let x=this.to-this.from+(O.to-O.from+O.insert.length);Z1(e,O,G.single(this.toEditorPos(n.selectionStart,x),this.toEditorPos(n.selectionEnd,x)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),O.from<O.to&&!O.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let i=[],l=null;for(let o=this.toEditorPos(n.rangeStart),c=this.toEditorPos(n.rangeEnd);o<c;o++){let u=e.coordsForChar(o);l=u&&new DOMRect(u.left,u.top,u.right-u.left,u.bottom-u.top)||l||new DOMRect,i.push(l)}t.updateCharacterBounds(n.rangeStart,i)},this.handlers.textformatupdate=n=>{let i=[];for(let l of n.getTextFormats()){let o=l.underlineStyle,c=l.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(c)){let u=this.toEditorPos(l.rangeStart),f=this.toEditorPos(l.rangeEnd);if(u<f){let m=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(c)?1:2}px`;i.push(Ie.mark({attributes:{style:m}}).range(u,f))}}}e.dispatch({effects:r4.of(Ie.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let i=No(n.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,i=this.pendingContextChange;return e.changes.iterChanges((l,o,c,u,f)=>{if(n)return;let m=f.length-(o-l);if(i&&o>=i.to)if(i.from==l&&i.to==o&&i.insert.eq(f)){i=this.pendingContextChange=null,t+=m,this.to+=m;return}else i=null,this.revertPending(e.state);if(l+=t,o+=t,o<=this.from)this.from+=m,this.to+=m;else if(l<this.to){if(l<this.from||o>this.to||this.to-this.from+f.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(l),this.toContextPos(o),f.toString()),this.to+=m}t+=m}),i&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),i=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(n,i)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class $e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(l=>n(l,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||$S(e.parent)||document,this.viewState=new YO(this,e.state||it.create(e)),e.scrollTo&&e.scrollTo.is(dc)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(il).map(i=>new Eh(i));for(let i of this.plugins)i.update(this);this.observer=new Gw(this),this.inputState=new vw(this),this.inputState.ensureHandlers(this.plugins),this.docView=new EO(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof Nt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,l=this.state;for(let x of e){if(x.startState!=l)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");l=x.state}if(this.destroyed){this.viewState.state=l;return}let o=this.hasFocus,c=0,u=null;e.some(x=>x.annotation(v4))?(this.inputState.notifiedFocused=o,c=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,u=S4(l,o),u||(c=1));let f=this.observer.delayedAndroidKey,m=null;if(f?(this.observer.clearDelayedAndroidKey(),m=this.observer.readChange(),(m&&!this.state.doc.eq(l.doc)||!this.state.selection.eq(l.selection))&&(m=null)):this.observer.clear(),l.facet(it.phrases)!=this.state.facet(it.phrases))return this.setState(l);i=Jc.create(this,l,e),i.flags|=c;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let x of e){if(O&&(O=O.map(x.changes)),x.scrollIntoView){let{main:S}=x.state.selection;O=new fl(S.empty?S:G.cursor(S.head,S.head>S.anchor?-1:1))}for(let S of x.effects)S.is(dc)&&(O=S.value.clip(this.state))}this.viewState.update(i,O),this.bidiCache=iu.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(wo)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(x=>x.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(yc)!=i.state.facet(yc)&&(this.viewState.mustMeasureContent=!0),(t||n||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!i.empty)for(let x of this.state.facet(Nf))try{x(i)}catch(S){Wr(this.state,S,"update listener")}(u||m)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),m&&!d4(this,m)&&f.force&&hl(this.contentDOM,f.key,f.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new YO(this,e),this.plugins=e.facet(il).map(n=>new Eh(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new EO(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(il),n=e.state.facet(il);if(t!=n){let i=[];for(let l of n){let o=t.indexOf(l);if(o<0)i.push(new Eh(l));else{let c=this.plugins[o];c.mustUpdate=e,i.push(c)}}for(let l of this.plugins)l.mustUpdate!=e&&l.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(n){Wr(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,i=this.viewState.getScrollOffset(),{scrollAnchorPos:l,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let c=0;;c++){if(o<0)if(z8(n||this.win))l=-1,o=this.viewState.heightMap.height;else{let S=this.viewState.scrollAnchorAt(i);l=S.from,o=S.top}this.updateState=1;let u=this.viewState.measure();if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let f=[];u&4||([this.measureRequests,f]=[f,this.measureRequests]);let m=f.map(S=>{try{return S.read(this)}catch(w){return Wr(this.state,w),GO}}),O=Jc.create(this,this.state,[]),x=!1;O.flags|=u,t?t.flags|=u:t=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),x=this.docView.update(O),x&&this.docViewUpdate());for(let S=0;S<f.length;S++)if(m[S]!=GO)try{let w=f[S];w.write&&w.write(m[S],this)}catch(w){Wr(this.state,w)}if(x&&this.docView.updateSelection(!0),!O.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let w=((l<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(l).top)-o)/this.scaleY;if((w>1||w<-1)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){i=i+w,n?n.scrollTop+=w:this.win.scrollBy(0,w),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let c of this.state.facet(Nf))c(t)}get themeClasses(){return Wf+" "+(this.state.facet(If)?Q4:b4)+" "+this.state.facet(yc)}updateAttrs(){let e=KO(this,i4,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(oi)?"true":"false",class:"cm-content",style:`${be.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),KO(this,C1,t);let n=this.observer.ignore(()=>{let i=PO(this.contentDOM,this.contentAttrs,t),l=PO(this.dom,this.editorAttrs,e);return i||l});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is($e.announce)){t&&(this.announceDOM.textContent=""),t=!1;let l=this.announceDOM.appendChild(document.createElement("div"));l.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(wo);let e=this.state.facet($e.cspNonce);Yi.mount(this.root,this.styleModules.concat(qw).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Lh(this,e,jO(this,e,t,n))}moveByGroup(e,t){return Lh(this,e,jO(this,e,t,n=>uw(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),l=n[t?n.length-1:0];return G.cursor(l.side(t,i)+e.from,l.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return cw(this,e,t,n)}moveVertically(e,t,n){return Lh(this,e,hw(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=zf(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),zf(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),l=this.bidiSpans(i),o=l[Ir.find(l,e-i.from,-1,t)];return Kc(n,o.dir==Rt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(t4)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>ek)return F8(e.length);let t=this.textDirectionAt(e.from),n;for(let l of this.bidiCache)if(l.from==e.from&&l.dir==t&&(l.fresh||Y8(l.isolates,n=TO(this,e))))return l.order;n||(n=TO(this,e));let i=jS(e.text,t,n);return this.bidiCache.push(new iu(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||be.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{_8(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return dc.of(new fl(typeof e=="number"?G.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return dc.of(new fl(G.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Ln.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ln.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Yi.newName(),i=[yc.of(n),wo.of(Hf(`.${n}`,e))];return t&&t.dark&&i.push(If.of(!0)),i}static baseTheme(e){return qo.lowest(wo.of(Hf("."+Wf,e,$4)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&Mt.get(n)||Mt.get(e);return((t=i==null?void 0:i.root)===null||t===void 0?void 0:t.view)||null}}$e.styleModule=wo;$e.inputHandler=J8;$e.clipboardInputFilter=P1;$e.clipboardOutputFilter=A1;$e.scrollHandler=n4;$e.focusChangeEffect=e4;$e.perLineTextDirection=t4;$e.exceptionSink=K8;$e.updateListener=Nf;$e.editable=oi;$e.mouseSelectionStyle=G8;$e.dragMovesSelection=U8;$e.clickAddsSelectionRange=q8;$e.decorations=Pu;$e.blockWrappers=s4;$e.outerDecorations=T1;$e.atomicRanges=Ko;$e.bidiIsolatedRanges=l4;$e.scrollMargins=o4;$e.darkTheme=If;$e.cspNonce=Pe.define({combine:r=>r.length?r[0]:""});$e.contentAttributes=C1;$e.editorAttributes=i4;$e.lineWrapping=$e.contentAttributes.of({class:"cm-lineWrapping"});$e.announce=st.define();const ek=4096,GO={};class iu{constructor(e,t,n,i,l,o){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=l,this.order=o}static update(e,t){if(t.empty&&!e.some(l=>l.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:Rt.LTR;for(let l=Math.max(0,e.length-10);l<e.length;l++){let o=e[l];o.dir==i&&!t.touchesRange(o.from,o.to)&&n.push(new iu(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function KO(r,e,t){for(let n=r.state.facet(e),i=n.length-1;i>=0;i--){let l=n[i],o=typeof l=="function"?l(r):l;o&&b1(o,t)}return t}const tk=be.mac?"mac":be.windows?"win":be.linux?"linux":"key";function nk(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,l,o,c;for(let u=0;u<t.length-1;++u){const f=t[u];if(/^(cmd|meta|m)$/i.test(f))c=!0;else if(/^a(lt)?$/i.test(f))i=!0;else if(/^(c|ctrl|control)$/i.test(f))l=!0;else if(/^s(hift)?$/i.test(f))o=!0;else if(/^mod$/i.test(f))e=="mac"?c=!0:l=!0;else throw new Error("Unrecognized modifier name: "+f)}return i&&(n="Alt-"+n),l&&(n="Ctrl-"+n),c&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function vc(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const rk=qo.default($e.domEventHandlers({keydown(r,e){return A4(P4(e.state),r,e,"editor")}})),j1=Pe.define({enables:rk}),JO=new WeakMap;function P4(r){let e=r.facet(j1),t=JO.get(e);return t||JO.set(e,t=lk(e.reduce((n,i)=>n.concat(i),[]))),t}function ik(r,e,t){return A4(P4(r.state),e,r,t)}let zi=null;const sk=4e3;function lk(r,e=tk){let t=Object.create(null),n=Object.create(null),i=(o,c)=>{let u=n[o];if(u==null)n[o]=c;else if(u!=c)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},l=(o,c,u,f,m)=>{var O,x;let S=t[o]||(t[o]=Object.create(null)),w=c.split(/ (?!$)/).map(T=>nk(T,e));for(let T=1;T<w.length;T++){let _=w.slice(0,T).join(" ");i(_,!0),S[_]||(S[_]={preventDefault:!0,stopPropagation:!1,run:[A=>{let C=zi={view:A,prefix:_,scope:o};return setTimeout(()=>{zi==C&&(zi=null)},sk),!0}]})}let b=w.join(" ");i(b,!1);let $=S[b]||(S[b]={preventDefault:!1,stopPropagation:!1,run:((x=(O=S._any)===null||O===void 0?void 0:O.run)===null||x===void 0?void 0:x.slice())||[]});u&&$.run.push(u),f&&($.preventDefault=!0),m&&($.stopPropagation=!0)};for(let o of r){let c=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let f of c){let m=t[f]||(t[f]=Object.create(null));m._any||(m._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:O}=o;for(let x in m)m[x].run.push(S=>O(S,Yf))}let u=o[e]||o.key;if(u)for(let f of c)l(f,u,o.run,o.preventDefault,o.stopPropagation),o.shift&&l(f,"Shift-"+u,o.shift,o.preventDefault,o.stopPropagation)}return t}let Yf=null;function A4(r,e,t,n){Yf=e;let i=xS(e),l=ks(i,0),o=Bo(l)==i.length&&i!=" ",c="",u=!1,f=!1,m=!1;zi&&zi.view==t&&zi.scope==n&&(c=zi.prefix+" ",O4.indexOf(e.keyCode)<0&&(f=!0,zi=null));let O=new Set,x=$=>{if($){for(let T of $.run)if(!O.has(T)&&(O.add(T),T(t)))return $.stopPropagation&&(m=!0),!0;$.preventDefault&&($.stopPropagation&&(m=!0),f=!0)}return!1},S=r[n],w,b;return S&&(x(S[c+vc(i,e,!o)])?u=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(be.windows&&e.ctrlKey&&e.altKey)&&!(be.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(w=Fi[e.keyCode])&&w!=i?(x(S[c+vc(w,e,!0)])||e.shiftKey&&(b=Lo[e.keyCode])!=i&&b!=w&&x(S[c+vc(b,e,!1)]))&&(u=!0):o&&e.shiftKey&&x(S[c+vc(i,e,!0)])&&(u=!0),!u&&x(S._any)&&(u=!0)),f&&(u=!0),u&&m&&e.stopPropagation(),Yf=null,u}function ok(){return ck}const ak=Ie.line({class:"cm-activeLine"}),ck=Ln.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let n of r.state.selection.ranges){let i=r.lineBlockAt(n.head);i.from>e&&(t.push(ak.range(i.from)),e=i.from)}return Ie.set(t)}},{decorations:r=>r.decorations}),e2=Pe.define({combine(r){let e,t;for(let n of r)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function C4(r,e){let t=r.plugin(T4),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const T4=Ln.fromClass(class{constructor(r){this.input=r.state.facet(su),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(e2);this.top=new Sc(r,!0,e.topContainer),this.bottom=new Sc(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(e2);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Sc(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Sc(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(su);if(t!=this.input){let n=t.filter(u=>u),i=[],l=[],o=[],c=[];for(let u of n){let f=this.specs.indexOf(u),m;f<0?(m=u(r.view),c.push(m)):(m=this.panels[f],m.update&&m.update(r)),i.push(m),(m.top?l:o).push(m)}this.specs=n,this.panels=i,this.top.sync(l),this.bottom.sync(o);for(let u of c)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let n of this.panels)n.update&&n.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>$e.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Sc{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=t2(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=t2(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function t2(r){let e=r.nextSibling;return r.remove(),e}const su=Pe.define({enables:T4});function uk(r,e){let t,n=new Promise(o=>t=o),i=o=>hk(o,e,t);r.state.field(_h,!1)?r.dispatch({effects:Z4.of(i)}):r.dispatch({effects:st.appendConfig.of(_h.init(()=>[i]))});let l=M4.of(i);return{close:l,result:n.then(o=>((r.win.queueMicrotask||(u=>r.win.setTimeout(u,10)))(()=>{r.state.field(_h).indexOf(i)>-1&&r.dispatch({effects:l})}),o))}}const _h=Fn.define({create(){return[]},update(r,e){for(let t of e.effects)t.is(Z4)?r=[t.value].concat(r):t.is(M4)&&(r=r.filter(n=>n!=t.value));return r},provide:r=>su.computeN([r],e=>e.field(r))}),Z4=st.define(),M4=st.define();function hk(r,e,t){let n=e.content?e.content(r,()=>o(null)):null;if(!n){if(n=Jt("form"),e.input){let c=Jt("input",e.input);/^(text|password|number|email|tel|url)$/.test(c.type)&&c.classList.add("cm-textfield"),c.name||(c.name="input"),n.appendChild(Jt("label",(e.label||"")+": ",c))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Jt("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let i=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let c=0;c<i.length;c++){let u=i[c];u.addEventListener("keydown",f=>{f.keyCode==27?(f.preventDefault(),o(null)):f.keyCode==13&&(f.preventDefault(),o(u))}),u.addEventListener("submit",f=>{f.preventDefault(),o(u)})}let l=Jt("div",n,Jt("button",{onclick:()=>o(null),"aria-label":r.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(l.className=e.class),l.classList.add("cm-dialog");function o(c){l.contains(l.ownerDocument.activeElement)&&r.focus(),t(c)}return{dom:l,top:e.top,mount:()=>{if(e.focus){let c;typeof e.focus=="string"?c=n.querySelector(e.focus):c=n.querySelector("input")||n.querySelector("button"),c&&"select"in c?c.select():c&&"focus"in c&&c.focus()}}}}class fi extends Hi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}fi.prototype.elementClass="";fi.prototype.toDOM=void 0;fi.prototype.mapMode=pn.TrackBefore;fi.prototype.startSide=fi.prototype.endSide=-1;fi.prototype.point=!0;const Nc=Pe.define(),fk=Pe.define(),dk={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ke.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Zo=Pe.define();function pk(r){return[E4(),Zo.of({...dk,...r})]}const n2=Pe.define({combine:r=>r.some(e=>e)});function E4(r){return[mk]}const mk=Ln.fromClass(class{constructor(r){this.view=r,this.domAfter=null,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(Zo).map(e=>new i2(r,e)),this.fixed=!r.state.facet(n2);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}if(r.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(n2)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=Ke.iter(this.view.state.facet(Nc),this.view.viewport.from),n=[],i=this.gutters.map(l=>new Ok(l,this.view.viewport,-this.view.documentPadding.top));for(let l of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(l.type)){let o=!0;for(let c of l.type)if(c.type==Rn.Text&&o){Ff(t,n,c.from);for(let u of i)u.line(this.view,c,n);o=!1}else if(c.widget)for(let u of i)u.widget(this.view,c)}else if(l.type==Rn.Text){Ff(t,n,l.from);for(let o of i)o.line(this.view,l,n)}else if(l.widget)for(let o of i)o.widget(this.view,l);for(let l of i)l.finish();r&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(r){let e=r.startState.facet(Zo),t=r.state.facet(Zo),n=r.docChanged||r.heightChanged||r.viewportChanged||!Ke.eq(r.startState.facet(Nc),r.state.facet(Nc),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(r)&&(n=!0);else{n=!0;let i=[];for(let l of t){let o=e.indexOf(l);o<0?i.push(new i2(this.view,l)):(this.gutters[o].update(r),i.push(this.gutters[o]))}for(let l of this.gutters)l.dom.remove(),i.indexOf(l)<0&&l.destroy();for(let l of i)l.config.side=="after"?this.getDOMAfter().appendChild(l.dom):this.dom.appendChild(l.dom);this.gutters=i}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:r=>$e.scrollMargins.of(e=>{let t=e.plugin(r);if(!t||t.gutters.length==0||!t.fixed)return null;let n=t.dom.offsetWidth*e.scaleX,i=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Rt.LTR?{left:n,right:i}:{right:n,left:i}})});function r2(r){return Array.isArray(r)?r:[r]}function Ff(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class Ok{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ke.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,l=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==i.elements.length){let c=new j4(e,o,l,n);i.elements.push(c),i.dom.appendChild(c.dom)}else i.elements[this.i].update(e,o,l,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];Ff(this.cursor,i,t.from),n.length&&(i=i.concat(n));let l=this.gutter.config.lineMarker(e,t,i);l&&i.unshift(l);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),i=n?[n]:null;for(let l of e.state.facet(fk)){let o=l(e,t.widget,t);o&&(i||(i=[])).push(o)}i&&this.addElement(e,t,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class i2{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let l=i.target,o;if(l!=this.dom&&this.dom.contains(l)){for(;l.parentNode!=this.dom;)l=l.parentNode;let u=l.getBoundingClientRect();o=(u.top+u.bottom)/2}else o=i.clientY;let c=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,c,i)&&i.preventDefault()});this.markers=r2(t.markers(e)),t.initialSpacer&&(this.spacer=new j4(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=r2(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!Ke.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class j4{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),gk(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let l=0,o=0;;){let c=o,u=l<t.length?t[l++]:null,f=!1;if(u){let m=u.elementClass;m&&(n+=" "+m);for(let O=o;O<this.markers.length;O++)if(this.markers[O].compare(u)){c=O,f=!0;break}}else c=this.markers.length;for(;o<c;){let m=this.markers[o++];if(m.toDOM){m.destroy(i);let O=i.nextSibling;i.remove(),i=O}}if(!u)break;u.toDOM&&(f?i=i.nextSibling:this.dom.insertBefore(u.toDOM(e),i)),f&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function gk(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const xk=Pe.define(),yk=Pe.define(),sl=Pe.define({combine(r){return Al(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let l=n[i],o=t[i];n[i]=l?(c,u,f)=>l(c,u,f)||o(c,u,f):o}return n}})}});class zh extends fi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Dh(r,e){return r.state.facet(sl).formatNumber(e,r.state)}const vk=Zo.compute([sl],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(xk)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new zh(Dh(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let i of e.state.facet(yk)){let l=i(e,t,n);if(l)return l}return null},lineMarkerChange:e=>e.startState.facet(sl)!=e.state.facet(sl),initialSpacer(e){return new zh(Dh(e,s2(e.state.doc.lines)))},updateSpacer(e,t){let n=Dh(t.view,s2(t.view.state.doc.lines));return n==e.number?e:new zh(n)},domEventHandlers:r.facet(sl).domEventHandlers,side:"before"}));function Sk(r={}){return[sl.of(r),E4(),vk]}function s2(r){let e=9;for(;e<r;)e=e*10+9;return e}const wk=new class extends fi{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},kk=Nc.compute(["selection"],r=>{let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.head).from;i>t&&(t=i,e.push(wk.range(i)))}return Ke.of(e)});function bk(){return kk}const V4=1024;let Qk=0;class ar{constructor(e,t){this.from=e,this.to=t}}class Fe{constructor(e={}){this.id=Qk++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=kn.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}Fe.closedBy=new Fe({deserialize:r=>r.split(" ")});Fe.openedBy=new Fe({deserialize:r=>r.split(" ")});Fe.group=new Fe({deserialize:r=>r.split(" ")});Fe.isolate=new Fe({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});Fe.contextHash=new Fe({perNode:!0});Fe.lookAhead=new Fe({perNode:!0});Fe.mounted=new Fe({perNode:!0});class dl{constructor(e,t,n,i=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=i}static get(e){return e&&e.props&&e.props[Fe.mounted.id]}}const $k=Object.create(null);class kn{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):$k,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new kn(e.name||"",t,e.id,n);if(e.props){for(let l of e.props)if(Array.isArray(l)||(l=l(i)),l){if(l[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[l[0].id]=l[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Fe.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(Fe.group),l=-1;l<(i?i.length:0);l++){let o=t[l<0?n.name:i[l]];if(o)return o}}}}kn.none=new kn("",Object.create(null),0,8);class V1{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let l of e){let o=l(n);if(o){i||(i=Object.assign({},n.props));let c=o[1],u=o[0];u.combine&&u.id in i&&(c=u.combine(i[u.id],c)),i[u.id]=c}}t.push(i?new kn(n.name,i,n.id,n.flags):n)}return new V1(t)}}const wc=new WeakMap,l2=new WeakMap;var ht;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays",r[r.EnterBracketed=16]="EnterBracketed"})(ht||(ht={}));class At{constructor(e,t,n,i,l){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,l&&l.length){this.props=Object.create(null);for(let[o,c]of l)this.props[typeof o=="number"?o:o.id]=c}}toString(){let e=dl.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new lu(this.topNode,e)}cursorAt(e,t=0,n=0){let i=wc.get(this)||this.topNode,l=new lu(i);return l.moveTo(e,t),wc.set(this,l._tree),l}get topNode(){return new mn(this,0,0,null)}resolve(e,t=0){let n=zo(wc.get(this)||this.topNode,e,t,!1);return wc.set(this,n),n}resolveInner(e,t=0){let n=zo(l2.get(this)||this.topNode,e,t,!0);return l2.set(this,n),n}resolveStack(e,t=0){return Ck(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:l=this.length}=e,o=e.mode||0,c=(o&ht.IncludeAnonymous)>0;for(let u=this.cursor(o|ht.IncludeAnonymous);;){let f=!1;if(u.from<=l&&u.to>=i&&(!c&&u.type.isAnonymous||t(u)!==!1)){if(u.firstChild())continue;f=!0}for(;f&&n&&(c||!u.type.isAnonymous)&&n(u),!u.nextSibling();){if(!u.parent())return;f=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:X1(kn.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new At(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new At(kn.none,t,n,i)))}static build(e){return Tk(e)}}At.empty=new At(kn.none,[],[],0);class R1{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new R1(this.buffer,this.index)}}class qi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return kn.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],l=i.name;if(/\W/.test(l)&&!i.isError&&(l=JSON.stringify(l)),e+=4,n==e)return l;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return l+"("+o.join(",")+")"}findChild(e,t,n,i,l){let{buffer:o}=this,c=-1;for(let u=e;u!=t&&!(R4(l,i,o[u+1],o[u+2])&&(c=u,n>0));u=o[u+3]);return c}slice(e,t,n){let i=this.buffer,l=new Uint16Array(t-e),o=0;for(let c=e,u=0;c<t;){l[u++]=i[c++],l[u++]=i[c++]-n;let f=l[u++]=i[c++]-n;l[u++]=i[c++]-e,o=Math.max(o,f)}return new qi(l,o,this.set)}}function R4(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function zo(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let o=!n&&r instanceof mn&&r.index<0?null:r.parent;if(!o)return r;r=o}let l=n?0:ht.IgnoreOverlays;if(n)for(let o=r,c=o.parent;c;o=c,c=o.parent)o instanceof mn&&o.index<0&&((i=c.enter(e,t,l))===null||i===void 0?void 0:i.from)!=o.from&&(r=c);for(;;){let o=r.enter(e,t,l);if(!o)return r;r=o}}class L4{cursor(e=0){return new lu(this,e)}getChild(e,t=null,n=null){let i=o2(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return o2(this,e,t,n)}resolve(e,t=0){return zo(this,e,t,!1)}resolveInner(e,t=0){return zo(this,e,t,!0)}matchContext(e){return Bf(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let i=t.lastChild;if(!i||i.to!=t.to)break;i.type.isError&&i.from==i.to?(n=t,t=i.prevSibling):t=i}return n}get node(){return this}get next(){return this.parent}}class mn extends L4{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,l=0){for(let o=this;;){for(let{children:c,positions:u}=o._tree,f=t>0?c.length:-1;e!=f;e+=t){let m=c[e],O=u[e]+o.from,x;if(!(!(l&ht.EnterBracketed&&m instanceof At&&(x=dl.get(m))&&!x.overlay&&x.bracketed&&n>=O&&n<=O+m.length)&&!R4(i,n,O,O+m.length))){if(m instanceof qi){if(l&ht.ExcludeBuffers)continue;let S=m.findChild(0,m.buffer.length,t,n-O,i);if(S>-1)return new Hr(new Pk(o,m,e,O),null,S)}else if(l&ht.IncludeAnonymous||!m.type.isAnonymous||L1(m)){let S;if(!(l&ht.IgnoreMounts)&&(S=dl.get(m))&&!S.overlay)return new mn(S.tree,O,e,o);let w=new mn(m,O,e,o);return l&ht.IncludeAnonymous||!w.type.isAnonymous?w:w.nextChild(t<0?m.children.length-1:0,t,n,i,l)}}}if(l&ht.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let i;if(!(n&ht.IgnoreOverlays)&&(i=dl.get(this._tree))&&i.overlay){let l=e-this.from,o=n&ht.EnterBracketed&&i.bracketed;for(let{from:c,to:u}of i.overlay)if((t>0||o?c<=l:c<l)&&(t<0||o?u>=l:u>l))return new mn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function o2(r,e,t,n){let i=r.cursor(),l=[];if(!i.firstChild())return l;if(t!=null){for(let o=!1;!o;)if(o=i.type.is(t),!i.nextSibling())return l}for(;;){if(n!=null&&i.type.is(n))return l;if(i.type.is(e)&&l.push(i.node),!i.nextSibling())return n==null?l:[]}}function Bf(r,e,t=e.length-1){for(let n=r;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class Pk{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class Hr extends L4{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,l=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return l<0?null:new Hr(this.context,this,l)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&ht.ExcludeBuffers)return null;let{buffer:i}=this.context,l=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return l<0?null:new Hr(this.context,this,l)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Hr(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Hr(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,l=n.buffer[this.index+3];if(l>i){let o=n.buffer[this.index+1];e.push(n.slice(i,l,o)),t.push(0)}return new At(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function X4(r){if(!r.length)return null;let e=0,t=r[0];for(let l=1;l<r.length;l++){let o=r[l];(o.from>t.from||o.to<t.to)&&(t=o,e=l)}let n=t instanceof mn&&t.index<0?null:t.parent,i=r.slice();return n?i[e]=n:i.splice(e,1),new Ak(i,t)}class Ak{constructor(e,t){this.heads=e,this.node=t}get next(){return X4(this.heads)}}function Ck(r,e,t){let n=r.resolveInner(e,t),i=null;for(let l=n instanceof mn?n:n.context.parent;l;l=l.parent)if(l.index<0){let o=l.parent;(i||(i=[n])).push(o.resolve(e,t)),l=o}else{let o=dl.get(l.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let c=new mn(o.tree,o.overlay[0].from+l.from,-1,l);(i||(i=[n])).push(zo(c,e,t,!1))}}return i?X4(i):n}class lu{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~ht.EnterBracketed,e instanceof mn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof mn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,l=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return l<0?!1:(this.stack.push(this.index),this.yieldBuf(l))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&ht.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ht.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ht.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let l=0;l<this.index;l++)if(i.buffer.buffer[l+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let l=t+e,o=e<0?-1:n._tree.children.length;l!=o;l+=e){let c=n._tree.children[l];if(this.mode&ht.IncludeAnonymous||c instanceof qi||!c.type.isAnonymous||L1(c))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,l=this.stack.length;l>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=l+1;break e}i=this.stack[--l]}for(let i=n;i<this.stack.length;i++)t=new Hr(this.buffer,t,this.stack[i]);return this.bufferNode=new Hr(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&t&&t(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return Bf(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,l=this.stack.length-1;i>=0;l--){if(l<0)return Bf(this._tree,e,i);let o=n[t.buffer[this.stack[l]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function L1(r){return r.children.some(e=>e instanceof qi||!e.type.isAnonymous||L1(e))}function Tk(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=V4,reused:l=[],minRepeatType:o=n.types.length}=r,c=Array.isArray(t)?new R1(t,t.length):t,u=n.types,f=0,m=0;function O(j,N,M,R,F,pe){let{id:J,start:ie,end:B,size:ce}=c,ue=m,he=f;if(ce<0)if(c.next(),ce==-1){let Q=l[J];M.push(Q),R.push(ie-j);return}else if(ce==-3){f=J;return}else if(ce==-4){m=J;return}else throw new RangeError(`Unrecognized record size: ${ce}`);let se=u[J],W,Y,ee=ie-j;if(B-ie<=i&&(Y=$(c.pos-N,F))){let Q=new Uint16Array(Y.size-Y.skip),z=c.pos-Y.size,re=Q.length;for(;c.pos>z;)re=T(Y.start,Q,re);W=new qi(Q,B-Y.start,n),ee=Y.start-j}else{let Q=c.pos-ce;c.next();let z=[],re=[],ge=J>=o?J:-1,te=0,ve=B;for(;c.pos>Q;)ge>=0&&c.id==ge&&c.size>=0?(c.end<=ve-i&&(w(z,re,ie,te,c.end,ve,ge,ue,he),te=z.length,ve=c.end),c.next()):pe>2500?x(ie,Q,z,re):O(ie,Q,z,re,ge,pe+1);if(ge>=0&&te>0&&te<z.length&&w(z,re,ie,te,ie,ve,ge,ue,he),z.reverse(),re.reverse(),ge>-1&&te>0){let Le=S(se,he);W=X1(se,z,re,0,z.length,0,B-ie,Le,Le)}else W=b(se,z,re,B-ie,ue-B,he)}M.push(W),R.push(ee)}function x(j,N,M,R){let F=[],pe=0,J=-1;for(;c.pos>N;){let{id:ie,start:B,end:ce,size:ue}=c;if(ue>4)c.next();else{if(J>-1&&B<J)break;J<0&&(J=ce-i),F.push(ie,B,ce),pe++,c.next()}}if(pe){let ie=new Uint16Array(pe*4),B=F[F.length-2];for(let ce=F.length-3,ue=0;ce>=0;ce-=3)ie[ue++]=F[ce],ie[ue++]=F[ce+1]-B,ie[ue++]=F[ce+2]-B,ie[ue++]=ue;M.push(new qi(ie,F[2]-B,n)),R.push(B-j)}}function S(j,N){return(M,R,F)=>{let pe=0,J=M.length-1,ie,B;if(J>=0&&(ie=M[J])instanceof At){if(!J&&ie.type==j&&ie.length==F)return ie;(B=ie.prop(Fe.lookAhead))&&(pe=R[J]+ie.length+B)}return b(j,M,R,F,pe,N)}}function w(j,N,M,R,F,pe,J,ie,B){let ce=[],ue=[];for(;j.length>R;)ce.push(j.pop()),ue.push(N.pop()+M-F);j.push(b(n.types[J],ce,ue,pe-F,ie-pe,B)),N.push(F-M)}function b(j,N,M,R,F,pe,J){if(pe){let ie=[Fe.contextHash,pe];J=J?[ie].concat(J):[ie]}if(F>25){let ie=[Fe.lookAhead,F];J=J?[ie].concat(J):[ie]}return new At(j,N,M,R,J)}function $(j,N){let M=c.fork(),R=0,F=0,pe=0,J=M.end-i,ie={size:0,start:0,skip:0};e:for(let B=M.pos-j;M.pos>B;){let ce=M.size;if(M.id==N&&ce>=0){ie.size=R,ie.start=F,ie.skip=pe,pe+=4,R+=4,M.next();continue}let ue=M.pos-ce;if(ce<0||ue<B||M.start<J)break;let he=M.id>=o?4:0,se=M.start;for(M.next();M.pos>ue;){if(M.size<0)if(M.size==-3||M.size==-4)he+=4;else break e;else M.id>=o&&(he+=4);M.next()}F=se,R+=ce,pe+=he}return(N<0||R==j)&&(ie.size=R,ie.start=F,ie.skip=pe),ie.size>4?ie:void 0}function T(j,N,M){let{id:R,start:F,end:pe,size:J}=c;if(c.next(),J>=0&&R<o){let ie=M;if(J>4){let B=c.pos-(J-4);for(;c.pos>B;)M=T(j,N,M)}N[--M]=ie,N[--M]=pe-j,N[--M]=F-j,N[--M]=R}else J==-3?f=R:J==-4&&(m=R);return M}let _=[],A=[];for(;c.pos>0;)O(r.start||0,r.bufferStart||0,_,A,-1,0);let C=(e=r.length)!==null&&e!==void 0?e:_.length?A[0]+_[0].length:0;return new At(u[r.topID],_.reverse(),A.reverse(),C)}const a2=new WeakMap;function _c(r,e){if(!r.isAnonymous||e instanceof qi||e.type!=r)return 1;let t=a2.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof At)){t=1;break}t+=_c(r,n)}a2.set(e,t)}return t}function X1(r,e,t,n,i,l,o,c,u){let f=0;for(let w=n;w<i;w++)f+=_c(r,e[w]);let m=Math.ceil(f*1.5/8),O=[],x=[];function S(w,b,$,T,_){for(let A=$;A<T;){let C=A,j=b[A],N=_c(r,w[A]);for(A++;A<T;A++){let M=_c(r,w[A]);if(N+M>=m)break;N+=M}if(A==C+1){if(N>m){let M=w[C];S(M.children,M.positions,0,M.children.length,b[C]+_);continue}O.push(w[C])}else{let M=b[A-1]+w[A-1].length-j;O.push(X1(r,w,b,C,A,j,M,null,u))}x.push(j+_-l)}}return S(e,t,n,i,0),(c||u)(O,x,o)}class N4{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof Hr?this.setBuffer(e.context.buffer,e.index,t):e instanceof mn&&this.map.set(e.tree,t)}get(e){return e instanceof Hr?this.getBuffer(e.context.buffer,e.index):e instanceof mn?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ui{constructor(e,t,n,i,l=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(l?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new ui(0,e.length,e,0,!1,n)];for(let l of t)l.to>e.length&&i.push(l);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],l=1,o=e.length?e[0]:null;for(let c=0,u=0,f=0;;c++){let m=c<t.length?t[c]:null,O=m?m.fromA:1e9;if(O-u>=n)for(;o&&o.from<O;){let x=o;if(u>=x.from||O<=x.to||f){let S=Math.max(x.from,u)-f,w=Math.min(x.to,O)-f;x=S>=w?null:new ui(S,w,x.tree,x.offset+f,c>0,!!m)}if(x&&i.push(x),o.to>O)break;o=l<e.length?e[l++]:null}if(!m)break;u=m.toA,f=m.toA-m.toB}return i}}class _4{startParse(e,t,n){return typeof e=="string"&&(e=new Zk(e)),n=n?n.length?n.map(i=>new ar(i.from,i.to)):[new ar(0,0)]:[new ar(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let l=i.advance();if(l)return l}}}class Zk{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function Mk(r){return(e,t,n,i)=>new jk(e,r,t,n,i)}class c2{constructor(e,t,n,i,l,o){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=i,this.target=l,this.from=o}}function u2(r){if(!r.length||r.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}class Ek{constructor(e,t,n,i,l,o,c,u){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=l,this.bracketed=o,this.target=c,this.prev=u,this.depth=0,this.ranges=[]}}const qf=new Fe({perNode:!0});class jk{constructor(e,t,n,i,l){this.nest=t,this.input=n,this.fragments=i,this.ranges=l,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new At(n.type,n.children,n.positions,n.length,n.propValues.concat([[qf,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[Fe.mounted.id]=new dl(t,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Lk(this.fragments),t=null,n=null,i=new lu(new mn(this.baseTree,this.ranges[0].from,0,null),ht.IncludeAnonymous|ht.IgnoreMounts);e:for(let l,o;;){let c=!0,u;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)c=!1;else if(e.hasNode(i)){if(t){let f=t.mounts.find(m=>m.frag.from<=i.from&&m.frag.to>=i.to&&m.mount.overlay);if(f)for(let m of f.mount.overlay){let O=m.from+f.pos,x=m.to+f.pos;O>=i.from&&x<=i.to&&!t.ranges.some(S=>S.from<x&&S.to>O)&&t.ranges.push({from:O,to:x})}}c=!1}else if(n&&(o=Vk(n.ranges,i.from,i.to)))c=o!=2;else if(!i.type.isAnonymous&&(l=this.nest(i,this.input))&&(i.from<i.to||!l.overlay)){i.tree||(Rk(i),t&&t.depth++,n&&n.depth++);let f=e.findMounts(i.from,l.parser);if(typeof l.overlay=="function")t=new Ek(l.parser,l.overlay,f,this.inner.length,i.from,!!l.bracketed,i.tree,t);else{let m=d2(this.ranges,l.overlay||(i.from<i.to?[new ar(i.from,i.to)]:[]));m.length&&u2(m),(m.length||!l.overlay)&&this.inner.push(new c2(l.parser,m.length?l.parser.startParse(this.input,p2(f,m),m):l.parser.startParse(""),l.overlay?l.overlay.map(O=>new ar(O.from-i.from,O.to-i.from)):null,!!l.bracketed,i.tree,m.length?m[0].from:i.from)),l.overlay?m.length&&(n={ranges:m,depth:0,prev:n}):c=!1}}else if(t&&(u=t.predicate(i))&&(u===!0&&(u=new ar(i.from,i.to)),u.from<u.to)){let f=t.ranges.length-1;f>=0&&t.ranges[f].to==u.from?t.ranges[f]={from:t.ranges[f].from,to:u.to}:t.ranges.push(u)}if(c&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let f=d2(this.ranges,t.ranges);f.length&&(u2(f),this.inner.splice(t.index,0,new c2(t.parser,t.parser.startParse(this.input,p2(t.mounts,f),f),t.ranges.map(m=>new ar(m.from-t.start,m.to-t.start)),t.bracketed,t.target,f[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function Vk(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function h2(r,e,t,n,i,l){if(e<t){let o=r.buffer[e+1];n.push(r.slice(e,t,o)),i.push(o-l)}}function Rk(r){let{node:e}=r,t=[],n=e.context.buffer;do t.push(r.index),r.parent();while(!r.tree);let i=r.tree,l=i.children.indexOf(n),o=i.children[l],c=o.buffer,u=[l];function f(m,O,x,S,w,b){let $=t[b],T=[],_=[];h2(o,m,$,T,_,S);let A=c[$+1],C=c[$+2];u.push(T.length);let j=b?f($+4,c[$+3],o.set.types[c[$]],A,C-A,b-1):e.toTree();return T.push(j),_.push(A-S),h2(o,c[$+3],O,T,_,S),new At(x,T,_,w)}i.children[l]=f(0,c.length,kn.none,0,o.length,t.length-1);for(let m of u){let O=r.tree.children[m],x=r.tree.positions[m];r.yield(new mn(O,x+r.from,m,r._tree))}}class f2{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(ht.IncludeAnonymous|ht.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,ht.IgnoreOverlays|ht.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof At)t=t.children[0];else break}return!1}}let Lk=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(qf))!==null&&t!==void 0?t:n.to,this.inner=new f2(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(qf))!==null&&e!==void 0?e:t.to,this.inner=new f2(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let l=this.inner.cursor.node;l;l=l.parent){let o=(n=l.tree)===null||n===void 0?void 0:n.prop(Fe.mounted);if(o&&o.parser==t)for(let c=this.fragI;c<this.fragments.length;c++){let u=this.fragments[c];if(u.from>=l.to)break;u.tree==this.curFrag.tree&&i.push({frag:u,pos:l.from-u.offset,mount:o})}}}return i}};function d2(r,e){let t=null,n=e;for(let i=1,l=0;i<r.length;i++){let o=r[i-1].to,c=r[i].from;for(;l<n.length;l++){let u=n[l];if(u.from>=c)break;u.to<=o||(t||(n=t=e.slice()),u.from<o?(t[l]=new ar(u.from,o),u.to>c&&t.splice(l+1,0,new ar(c,u.to))):u.to>c?t[l--]=new ar(c,u.to):t.splice(l--,1))}}return n}function Xk(r,e,t,n){let i=0,l=0,o=!1,c=!1,u=-1e9,f=[];for(;;){let m=i==r.length?1e9:o?r[i].to:r[i].from,O=l==e.length?1e9:c?e[l].to:e[l].from;if(o!=c){let x=Math.max(u,t),S=Math.min(m,O,n);x<S&&f.push(new ar(x,S))}if(u=Math.min(m,O),u==1e9)break;m==u&&(o?(o=!1,i++):o=!0),O==u&&(c?(c=!1,l++):c=!0)}return f}function p2(r,e){let t=[];for(let{pos:n,mount:i,frag:l}of r){let o=n+(i.overlay?i.overlay[0].from:0),c=o+i.tree.length,u=Math.max(l.from,o),f=Math.min(l.to,c);if(i.overlay){let m=i.overlay.map(x=>new ar(x.from+n,x.to+n)),O=Xk(e,m,u,f);for(let x=0,S=u;;x++){let w=x==O.length,b=w?f:O[x].from;if(b>S&&t.push(new ui(S,b,i.tree,-o,l.from>=S||l.openStart,l.to<=b||l.openEnd)),w)break;S=O[x].to}}else t.push(new ui(u,f,i.tree,-o,l.from>=o||l.openStart,l.to<=c||l.openEnd))}return t}let Nk=0;class sr{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=Nk++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e=="string"?e:"?";if(e instanceof sr&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let i=new sr(n,[],null,[]);if(i.set.push(i),t)for(let l of t.set)i.set.push(l);return i}static defineModifier(e){let t=new ou(e);return n=>n.modified.indexOf(t)>-1?n:ou.get(n.base||n,n.modified.concat(t).sort((i,l)=>i.id-l.id))}}let _k=0;class ou{constructor(e){this.name=e,this.instances=[],this.id=_k++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(c=>c.base==e&&zk(t,c.modified));if(n)return n;let i=[],l=new sr(e.name,i,e,t);for(let c of t)c.instances.push(l);let o=Dk(t);for(let c of e.set)if(!c.modified.length)for(let u of o)i.push(ou.get(c,u));return l}}function zk(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function Dk(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function Zu(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let l=[],o=2,c=i;for(let O=0;;){if(c=="..."&&O>0&&O+3==i.length){o=1;break}let x=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!x)throw new RangeError("Invalid path: "+i);if(l.push(x[0]=="*"?"":x[0][0]=='"'?JSON.parse(x[0]):x[0]),O+=x[0].length,O==i.length)break;let S=i[O++];if(O==i.length&&S=="!"){o=0;break}if(S!="/")throw new RangeError("Invalid path: "+i);c=i.slice(O)}let u=l.length-1,f=l[u];if(!f)throw new RangeError("Invalid path: "+i);let m=new Do(n,o,u>0?l.slice(0,u):null);e[f]=m.sort(e[f])}}return z4.add(e)}const z4=new Fe({combine(r,e){let t,n,i;for(;r||e;){if(!r||e&&r.depth>=e.depth?(i=e,e=e.next):(i=r,r=r.next),t&&t.mode==i.mode&&!i.context&&!t.context)continue;let l=new Do(i.tags,i.mode,i.context);t?t.next=l:n=l,t=l}return n}});class Do{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Do.empty=new Do([],2,null);function D4(r,e){let t=Object.create(null);for(let l of r)if(!Array.isArray(l.tag))t[l.tag.id]=l.class;else for(let o of l.tag)t[o.id]=l.class;let{scope:n,all:i=null}=e||{};return{style:l=>{let o=i;for(let c of l)for(let u of c.set){let f=t[u.id];if(f){o=o?o+" "+f:f;break}}return o},scope:n}}function Ik(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function Wk(r,e,t,n=0,i=r.length){let l=new Hk(n,Array.isArray(e)?e:[e],t);l.highlightRange(r.cursor(),n,i,"",l.highlighters),l.flush(i)}class Hk{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,l){let{type:o,from:c,to:u}=e;if(c>=n||u<=t)return;o.isTop&&(l=this.highlighters.filter(S=>!S.scope||S.scope(o)));let f=i,m=Yk(e)||Do.empty,O=Ik(l,m.tags);if(O&&(f&&(f+=" "),f+=O,m.mode==1&&(i+=(i?" ":"")+O)),this.startSpan(Math.max(t,c),f),m.opaque)return;let x=e.tree&&e.tree.prop(Fe.mounted);if(x&&x.overlay){let S=e.node.enter(x.overlay[0].from+c,1),w=this.highlighters.filter($=>!$.scope||$.scope(x.tree.type)),b=e.firstChild();for(let $=0,T=c;;$++){let _=$<x.overlay.length?x.overlay[$]:null,A=_?_.from+c:u,C=Math.max(t,T),j=Math.min(n,A);if(C<j&&b)for(;e.from<j&&(this.highlightRange(e,C,j,i,l),this.startSpan(Math.min(j,e.to),f),!(e.to>=A||!e.nextSibling())););if(!_||A>n)break;T=_.to+c,T>t&&(this.highlightRange(S.cursor(),Math.max(t,_.from+c),Math.min(n,T),"",w),this.startSpan(Math.min(n,T),f))}b&&e.parent()}else if(e.firstChild()){x&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,l),this.startSpan(Math.min(n,e.to),f)}while(e.nextSibling());e.parent()}}}function Yk(r){let e=r.type.prop(z4);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const ye=sr.define,kc=ye(),Ni=ye(),m2=ye(Ni),O2=ye(Ni),_i=ye(),bc=ye(_i),Ih=ye(_i),_r=ye(),ds=ye(_r),Lr=ye(),Xr=ye(),Uf=ye(),Oo=ye(Uf),Qc=ye(),V={comment:kc,lineComment:ye(kc),blockComment:ye(kc),docComment:ye(kc),name:Ni,variableName:ye(Ni),typeName:m2,tagName:ye(m2),propertyName:O2,attributeName:ye(O2),className:ye(Ni),labelName:ye(Ni),namespace:ye(Ni),macroName:ye(Ni),literal:_i,string:bc,docString:ye(bc),character:ye(bc),attributeValue:ye(bc),number:Ih,integer:ye(Ih),float:ye(Ih),bool:ye(_i),regexp:ye(_i),escape:ye(_i),color:ye(_i),url:ye(_i),keyword:Lr,self:ye(Lr),null:ye(Lr),atom:ye(Lr),unit:ye(Lr),modifier:ye(Lr),operatorKeyword:ye(Lr),controlKeyword:ye(Lr),definitionKeyword:ye(Lr),moduleKeyword:ye(Lr),operator:Xr,derefOperator:ye(Xr),arithmeticOperator:ye(Xr),logicOperator:ye(Xr),bitwiseOperator:ye(Xr),compareOperator:ye(Xr),updateOperator:ye(Xr),definitionOperator:ye(Xr),typeOperator:ye(Xr),controlOperator:ye(Xr),punctuation:Uf,separator:ye(Uf),bracket:Oo,angleBracket:ye(Oo),squareBracket:ye(Oo),paren:ye(Oo),brace:ye(Oo),content:_r,heading:ds,heading1:ye(ds),heading2:ye(ds),heading3:ye(ds),heading4:ye(ds),heading5:ye(ds),heading6:ye(ds),contentSeparator:ye(_r),list:ye(_r),quote:ye(_r),emphasis:ye(_r),strong:ye(_r),link:ye(_r),monospace:ye(_r),strikethrough:ye(_r),inserted:ye(),deleted:ye(),changed:ye(),invalid:ye(),meta:Qc,documentMeta:ye(Qc),annotation:ye(Qc),processingInstruction:ye(Qc),definition:sr.defineModifier("definition"),constant:sr.defineModifier("constant"),function:sr.defineModifier("function"),standard:sr.defineModifier("standard"),local:sr.defineModifier("local"),special:sr.defineModifier("special")};for(let r in V){let e=V[r];e instanceof sr&&(e.name=r)}D4([{tag:V.link,class:"tok-link"},{tag:V.heading,class:"tok-heading"},{tag:V.emphasis,class:"tok-emphasis"},{tag:V.strong,class:"tok-strong"},{tag:V.keyword,class:"tok-keyword"},{tag:V.atom,class:"tok-atom"},{tag:V.bool,class:"tok-bool"},{tag:V.url,class:"tok-url"},{tag:V.labelName,class:"tok-labelName"},{tag:V.inserted,class:"tok-inserted"},{tag:V.deleted,class:"tok-deleted"},{tag:V.literal,class:"tok-literal"},{tag:V.string,class:"tok-string"},{tag:V.number,class:"tok-number"},{tag:[V.regexp,V.escape,V.special(V.string)],class:"tok-string2"},{tag:V.variableName,class:"tok-variableName"},{tag:V.local(V.variableName),class:"tok-variableName tok-local"},{tag:V.definition(V.variableName),class:"tok-variableName tok-definition"},{tag:V.special(V.variableName),class:"tok-variableName2"},{tag:V.definition(V.propertyName),class:"tok-propertyName tok-definition"},{tag:V.typeName,class:"tok-typeName"},{tag:V.namespace,class:"tok-namespace"},{tag:V.className,class:"tok-className"},{tag:V.macroName,class:"tok-macroName"},{tag:V.propertyName,class:"tok-propertyName"},{tag:V.operator,class:"tok-operator"},{tag:V.comment,class:"tok-comment"},{tag:V.meta,class:"tok-meta"},{tag:V.invalid,class:"tok-invalid"},{tag:V.punctuation,class:"tok-punctuation"}]);var Wh;const ll=new Fe;function I4(r){return Pe.define({combine:r?e=>e.concat(r):void 0})}const N1=new Fe;class wr{constructor(e,t,n=[],i=""){this.data=e,this.name=i,it.prototype.hasOwnProperty("tree")||Object.defineProperty(it.prototype,"tree",{get(){return Lt(this)}}),this.parser=t,this.extension=[Ui.of(this),it.languageData.of((l,o,c)=>{let u=g2(l,o,c),f=u.type.prop(ll);if(!f)return[];let m=l.facet(f),O=u.type.prop(N1);if(O){let x=u.resolve(o-u.from,c);for(let S of O)if(S.test(x,l)){let w=l.facet(S.facet);return S.type=="replace"?w:w.concat(m)}}return m})].concat(n)}isActiveAt(e,t,n=-1){return g2(e,t,n).type.prop(ll)==this.data}findRegions(e){let t=e.facet(Ui);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(l,o)=>{if(l.prop(ll)==this.data){n.push({from:o,to:o+l.length});return}let c=l.prop(Fe.mounted);if(c){if(c.tree.prop(ll)==this.data){if(c.overlay)for(let u of c.overlay)n.push({from:u.from+o,to:u.to+o});else n.push({from:o,to:o+l.length});return}else if(c.overlay){let u=n.length;if(i(c.tree,c.overlay[0].from+o),n.length>u)return}}for(let u=0;u<l.children.length;u++){let f=l.children[u];f instanceof At&&i(f,l.positions[u]+o)}};return i(Lt(e),0),n}get allowsNesting(){return!0}}wr.setState=st.define();function g2(r,e,t){let n=r.facet(Ui),i=Lt(r).topNode;if(!n||n.allowsNesting)for(let l=i;l;l=l.enter(e,t,ht.ExcludeBuffers|ht.EnterBracketed))l.type.isTop&&(i=l);return i}class vl extends wr{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=I4(e.languageData);return new vl(t,e.parser.configure({props:[ll.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new vl(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Lt(r){let e=r.field(wr.state,!1);return e?e.tree:At.empty}class Fk{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let go=null;class au{constructor(e,t,n=[],i,l,o,c,u){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=l,this.viewport=o,this.skipped=c,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new au(e,t,[],At.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Fk(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=At.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(ui.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ui.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=go;go=this;try{return e()}finally{go=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=x2(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:l,viewport:o,skipped:c}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((f,m,O,x)=>u.push({fromA:f,toA:m,fromB:O,toB:x})),n=ui.applyChanges(n,u),i=At.empty,l=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){c=[];for(let f of this.skipped){let m=e.mapPos(f.from,1),O=e.mapPos(f.to,-1);m<O&&c.push({from:m,to:O})}}}return new au(this.parser,t,n,i,l,o,c,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:i,to:l}=this.skipped[n];i<e.to&&l>e.from&&(this.fragments=x2(this.fragments,i,l),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends _4{createParse(t,n,i){let l=i[0].from,o=i[i.length-1].to;return{parsedPos:l,advance(){let u=go;if(u){for(let f of i)u.tempSkipped.push(f);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=o,new At(kn.none,[],[],o-l)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return go}}function x2(r,e,t){return ui.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class Sl{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Sl(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=au.create(e.facet(Ui).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Sl(n)}}wr.state=Fn.define({create:Sl.init,update(r,e){for(let t of e.effects)if(t.is(wr.setState))return t.value;return e.startState.facet(Ui)!=e.state.facet(Ui)?Sl.init(e.state):r.apply(e)}});let W4=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(W4=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Hh=typeof navigator<"u"&&(!((Wh=navigator.scheduling)===null||Wh===void 0)&&Wh.isInputPending)?()=>navigator.scheduling.isInputPending():null,Bk=Ln.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(wr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(wr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=W4(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,l=n.field(wr.state);if(l.tree==l.context.tree&&l.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Hh?Math.max(25,e.timeRemaining()-5):1e9),c=l.context.treeLen<i&&n.doc.length>i+1e3,u=l.context.work(()=>Hh&&Hh()||Date.now()>o,i+(c?0:1e5));this.chunkBudget-=Date.now()-t,(u||this.chunkBudget<=0)&&(l.context.takeTree(),this.view.dispatch({effects:wr.setState.of(new Sl(l.context))})),this.chunkBudget>0&&!(u&&!c)&&this.scheduleWork(),this.checkAsyncSchedule(l.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Wr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ui=Pe.define({combine(r){return r.length?r[0]:null},enables:r=>[wr.state,Bk,$e.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class _1{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const qk=Pe.define(),Mu=Pe.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function cu(r){let e=r.facet(Mu);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function Io(r,e){let t="",n=r.tabSize,i=r.facet(Mu)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let l=0;l<e;l++)t+=i;return t}function z1(r,e){r instanceof it&&(r=new Eu(r));for(let n of r.state.facet(qk)){let i=n(r,e);if(i!==void 0)return i}let t=Lt(r.state);return t.length>=e?Uk(r,t,e):null}class Eu{constructor(e,t={}){this.state=e,this.options=t,this.unit=cu(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:l}=this.options;return i!=null&&i>=n.from&&i<=n.to?l&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),l=this.countColumn(n,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(l+=o-this.countColumn(n,n.search(/\S|$/))),l}countColumn(e,t=e.length){return Qu(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),l=this.options.overrideIndentation;if(l){let o=l(i);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ju=new Fe;function Uk(r,e,t){let n=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=n.node){let l=[];for(let o=i;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)l.push(o);for(let o=l.length-1;o>=0;o--)n={node:l[o],next:n}}return H4(n,r,t)}function H4(r,e,t){for(let n=r;n;n=n.next){let i=Kk(n.node);if(i)return i(D1.create(e,t,n))}return 0}function Gk(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Kk(r){let e=r.type.prop(ju);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(Fe.closedBy))){let i=r.lastChild,l=i&&n.indexOf(i.name)>-1;return o=>Y4(o,!0,1,void 0,l&&!Gk(o)?i.from:void 0)}return r.parent==null?Jk:null}function Jk(){return 0}class D1 extends Eu{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new D1(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(eb(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return H4(this.context.next,this.base,this.pos)}}function eb(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function tb(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=r.options.simulateBreak,l=r.state.doc.lineAt(t.from),o=i==null||i<=l.from?l.to:Math.min(l.to,i);for(let c=t.to;;){let u=e.childAfter(c);if(!u||u==n)return null;if(!u.type.isSkipped){if(u.from>=o)return null;let f=/^ */.exec(l.text.slice(t.to-l.from))[0].length;return{from:t.from,to:t.to+f}}c=u.to}}function nb({closing:r,align:e=!0,units:t=1}){return n=>Y4(n,e,t,r)}function Y4(r,e,t,n,i){let l=r.textAfter,o=l.match(/^\s*/)[0].length,c=n&&l.slice(o,o+n.length)==n||i==r.pos+o,u=e?tb(r):null;return u?c?r.column(u.from):r.column(u.to):r.baseIndent+(c?0:r.unit*t)}const rb=r=>r.baseIndent;function zc({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const ib=200;function sb(){return it.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,i=t.lineAt(n);if(n>i.from+ib)return r;let l=t.sliceString(i.from,n);if(!e.some(f=>f.test(l)))return r;let{state:o}=r,c=-1,u=[];for(let{head:f}of o.selection.ranges){let m=o.doc.lineAt(f);if(m.from==c)continue;c=m.from;let O=z1(o,m.from);if(O==null)continue;let x=/^\s*/.exec(m.text)[0],S=Io(o,O);x!=S&&u.push({from:m.from,to:m.from+x.length,insert:S})}return u.length?[r,{changes:u,sequential:!0}]:r})}const lb=Pe.define(),Vu=new Fe;function F4(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}function ob(r,e,t){let n=Lt(r);if(n.length<t)return null;let i=n.resolveStack(t,1),l=null;for(let o=i;o;o=o.next){let c=o.node;if(c.to<=t||c.from>t)continue;if(l&&c.from<e)break;let u=c.type.prop(Vu);if(u&&(c.to<n.length-50||n.length==r.doc.length||!ab(c))){let f=u(c,r);f&&f.from<=t&&f.from>=e&&f.to>t&&(l=f)}}return l}function ab(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function y2(r,e,t){for(let n of r.facet(lb)){let i=n(r,e,t);if(i)return i}return ob(r,e,t)}function B4(r,e){let t=e.mapPos(r.from,1),n=e.mapPos(r.to,-1);return t>=n?void 0:{from:t,to:n}}const q4=st.define({map:B4}),I1=st.define({map:B4}),uu=Fn.define({create(){return Ie.none},update(r,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,n)=>r=v2(r,t,n)),r=r.map(e.changes);for(let t of e.effects)if(t.is(q4)&&!cb(r,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(U4),i=n?Ie.replace({widget:new fb(n(e.state,t.value))}):S2;r=r.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(I1)&&(r=r.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(r=v2(r,e.selection.main.head)),r},provide:r=>$e.decorations.from(r),toJSON(r,e){let t=[];return r.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<r.length;){let n=r[t++],i=r[t++];if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(S2.range(n,i))}return Ie.set(e,!0)}});function v2(r,e,t=e){let n=!1;return r.between(e,t,(i,l)=>{i<t&&l>e&&(n=!0)}),n?r.update({filterFrom:e,filterTo:t,filter:(i,l)=>i>=t||l<=e}):r}function Gf(r,e,t){var n;let i=null;return(n=r.field(uu,!1))===null||n===void 0||n.between(e,t,(l,o)=>{(!i||i.from>l)&&(i={from:l,to:o})}),i}function cb(r,e,t){let n=!1;return r.between(e,e,(i,l)=>{i==e&&l==t&&(n=!0)}),n}const ub={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},U4=Pe.define({combine(r){return Al(r,ub)}});function hb(r){return[uu,mb]}function G4(r,e){let{state:t}=r,n=t.facet(U4),i=o=>{let c=r.lineBlockAt(r.posAtDOM(o.target)),u=Gf(r.state,c.from,c.to);u&&r.dispatch({effects:I1.of(u)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(r,i,e);let l=document.createElement("span");return l.textContent=n.placeholderText,l.setAttribute("aria-label",t.phrase("folded code")),l.title=t.phrase("unfold"),l.className="cm-foldPlaceholder",l.onclick=i,l}const S2=Ie.replace({widget:new class extends bs{toDOM(r){return G4(r,null)}}});class fb extends bs{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return G4(e,this.value)}}const db={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Yh extends fi{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function pb(r={}){let e={...db,...r},t=new Yh(e,!0),n=new Yh(e,!1),i=Ln.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Ui)!=o.state.facet(Ui)||o.startState.field(uu,!1)!=o.state.field(uu,!1)||Lt(o.startState)!=Lt(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let c=new ys;for(let u of o.viewportLineBlocks){let f=Gf(o.state,u.from,u.to)?n:y2(o.state,u.from,u.to)?t:null;f&&c.add(u.from,u.from,f)}return c.finish()}}),{domEventHandlers:l}=e;return[i,pk({class:"cm-foldGutter",markers(o){var c;return((c=o.plugin(i))===null||c===void 0?void 0:c.markers)||Ke.empty},initialSpacer(){return new Yh(e,!1)},domEventHandlers:{...l,click:(o,c,u)=>{if(l.click&&l.click(o,c,u))return!0;let f=Gf(o.state,c.from,c.to);if(f)return o.dispatch({effects:I1.of(f)}),!0;let m=y2(o.state,c.from,c.to);return m?(o.dispatch({effects:q4.of(m)}),!0):!1}}}),hb()]}const mb=$e.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Ru{constructor(e,t){this.specs=e;let n;function i(c){let u=Yi.newName();return(n||(n=Object.create(null)))["."+u]=c,u}const l=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof wr?c=>c.prop(ll)==o.data:o?c=>c==o:void 0,this.style=D4(e.map(c=>({tag:c.tag,class:c.class||i(Object.assign({},c,{tag:null}))})),{all:l}).style,this.module=n?new Yi(n):null,this.themeType=t.themeType}static define(e,t){return new Ru(e,t||{})}}const Kf=Pe.define(),Ob=Pe.define({combine(r){return r.length?[r[0]]:null}});function Fh(r){let e=r.facet(Kf);return e.length?e:r.facet(Ob)}function gb(r,e){let t=[yb],n;return r instanceof Ru&&(r.module&&t.push($e.styleModule.of(r.module)),n=r.themeType),n?t.push(Kf.computeN([$e.darkTheme],i=>i.facet($e.darkTheme)==(n=="dark")?[r]:[])):t.push(Kf.of(r)),t}class xb{constructor(e){this.markCache=Object.create(null),this.tree=Lt(e.state),this.decorations=this.buildDeco(e,Fh(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Lt(e.state),n=Fh(e.state),i=n!=Fh(e.startState),{viewport:l}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<l.to&&!i&&t.type==this.tree.type&&o>=l.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=l.to)}buildDeco(e,t){if(!t||!this.tree.length)return Ie.none;let n=new ys;for(let{from:i,to:l}of e.visibleRanges)Wk(this.tree,t,(o,c,u)=>{n.add(o,c,this.markCache[u]||(this.markCache[u]=Ie.mark({class:u})))},i,l);return n.finish()}}const yb=qo.high(Ln.fromClass(xb,{decorations:r=>r.decorations})),vb=$e.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),K4=1e4,J4="()[]{}",e6=Pe.define({combine(r){return Al(r,{afterCursor:!0,brackets:J4,maxScanDistance:K4,renderMatch:kb})}}),Sb=Ie.mark({class:"cm-matchingBracket"}),wb=Ie.mark({class:"cm-nonmatchingBracket"});function kb(r){let e=[],t=r.matched?Sb:wb;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}function w2(r){let e=[],t=r.facet(e6);for(let n of r.selection.ranges){if(!n.empty)continue;let i=Yr(r,n.head,-1,t)||n.head>0&&Yr(r,n.head-1,1,t)||t.afterCursor&&(Yr(r,n.head,1,t)||n.head<r.doc.length&&Yr(r,n.head+1,-1,t));i&&(e=e.concat(t.renderMatch(i,r)))}return Ie.set(e,!0)}const bb=Ln.fromClass(class{constructor(r){this.paused=!1,this.decorations=w2(r.state)}update(r){(r.docChanged||r.selectionSet||this.paused)&&(r.view.composing?(this.decorations=this.decorations.map(r.changes),this.paused=!0):(this.decorations=w2(r.state),this.paused=!1))}},{decorations:r=>r.decorations}),Qb=[bb,vb];function $b(r={}){return[e6.of(r),Qb]}const t6=new Fe;function Jf(r,e,t){let n=r.prop(e<0?Fe.openedBy:Fe.closedBy);if(n)return n;if(r.name.length==1){let i=t.indexOf(r.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function e1(r){let e=r.type.prop(t6);return e?e(r.node):r}function Yr(r,e,t,n={}){let i=n.maxScanDistance||K4,l=n.brackets||J4,o=Lt(r),c=o.resolveInner(e,t);for(let u=c;u;u=u.parent){let f=Jf(u.type,t,l);if(f&&u.from<u.to){let m=e1(u);if(m&&(t>0?e>=m.from&&e<m.to:e>m.from&&e<=m.to))return Pb(r,e,t,u,m,f,l)}}return Ab(r,e,t,o,c.type,i,l)}function Pb(r,e,t,n,i,l,o){let c=n.parent,u={from:i.from,to:i.to},f=0,m=c==null?void 0:c.cursor();if(m&&(t<0?m.childBefore(n.from):m.childAfter(n.to)))do if(t<0?m.to<=n.from:m.from>=n.to){if(f==0&&l.indexOf(m.type.name)>-1&&m.from<m.to){let O=e1(m);return{start:u,end:O?{from:O.from,to:O.to}:void 0,matched:!0}}else if(Jf(m.type,t,o))f++;else if(Jf(m.type,-t,o)){if(f==0){let O=e1(m);return{start:u,end:O&&O.from<O.to?{from:O.from,to:O.to}:void 0,matched:!1}}f--}}while(t<0?m.prevSibling():m.nextSibling());return{start:u,matched:!1}}function Ab(r,e,t,n,i,l,o){let c=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),u=o.indexOf(c);if(u<0||u%2==0!=t>0)return null;let f={from:t<0?e-1:e,to:t>0?e+1:e},m=r.doc.iterRange(e,t>0?r.doc.length:0),O=0;for(let x=0;!m.next().done&&x<=l;){let S=m.value;t<0&&(x+=S.length);let w=e+x*t;for(let b=t>0?0:S.length-1,$=t>0?S.length:-1;b!=$;b+=t){let T=o.indexOf(S[b]);if(!(T<0||n.resolveInner(w+b,1).type!=i))if(T%2==0==t>0)O++;else{if(O==1)return{start:f,end:{from:w+b,to:w+b+1},matched:T>>1==u>>1};O--}}t>0&&(x+=S.length)}return m.done?{start:f,matched:!1}:null}const Cb=Object.create(null),k2=[kn.none],b2=[],Q2=Object.create(null),Tb=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Tb[r]=Zb(Cb,e);function Bh(r,e){b2.indexOf(r)>-1||(b2.push(r),console.warn(e))}function Zb(r,e){let t=[];for(let c of e.split(" ")){let u=[];for(let f of c.split(".")){let m=r[f]||V[f];m?typeof m=="function"?u.length?u=u.map(m):Bh(f,`Modifier ${f} used at start of tag`):u.length?Bh(f,`Tag ${f} used as modifier`):u=Array.isArray(m)?m:[m]:Bh(f,`Unknown highlighting tag ${f}`)}for(let f of u)t.push(f)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),i=n+" "+t.map(c=>c.id),l=Q2[i];if(l)return l.id;let o=Q2[i]=kn.define({id:k2.length,name:n,props:[Zu({[n]:t})]});return k2.push(o),o.id}Rt.RTL,Rt.LTR;const Mb=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=H1(r.state,t.from);return n.line?Eb(r):n.block?Vb(r):!1};function W1(r,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=r(e,t);return i?(n(t.update(i)),!0):!1}}const Eb=W1(Xb,0),jb=W1(n6,0),Vb=W1((r,e)=>n6(r,e,Lb(e)),0);function H1(r,e){let t=r.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const xo=50;function Rb(r,{open:e,close:t},n,i){let l=r.sliceDoc(n-xo,n),o=r.sliceDoc(i,i+xo),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(o)[0].length,f=l.length-c;if(l.slice(f-e.length,f)==e&&o.slice(u,u+t.length)==t)return{open:{pos:n-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};let m,O;i-n<=2*xo?m=O=r.sliceDoc(n,i):(m=r.sliceDoc(n,n+xo),O=r.sliceDoc(i-xo,i));let x=/^\s*/.exec(m)[0].length,S=/\s*$/.exec(O)[0].length,w=O.length-S-t.length;return m.slice(x,x+e.length)==e&&O.slice(w,w+t.length)==t?{open:{pos:n+x+e.length,margin:/\s/.test(m.charAt(x+e.length))?1:0},close:{pos:i-S-t.length,margin:/\s/.test(O.charAt(w-1))?1:0}}:null}function Lb(r){let e=[];for(let t of r.selection.ranges){let n=r.doc.lineAt(t.from),i=t.to<=n.to?n:r.doc.lineAt(t.to);i.from>n.from&&i.from==t.to&&(i=t.to==n.to+1?n:r.doc.lineAt(t.to-1));let l=e.length-1;l>=0&&e[l].to>n.from?e[l].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function n6(r,e,t=e.selection.ranges){let n=t.map(l=>H1(e,l.from).block);if(!n.every(l=>l))return null;let i=t.map((l,o)=>Rb(e,n[o],l.from,l.to));if(r!=2&&!i.every(l=>l))return{changes:e.changes(t.map((l,o)=>i[o]?[]:[{from:l.from,insert:n[o].open+" "},{from:l.to,insert:" "+n[o].close}]))};if(r!=1&&i.some(l=>l)){let l=[];for(let o=0,c;o<i.length;o++)if(c=i[o]){let u=n[o],{open:f,close:m}=c;l.push({from:f.pos-u.open.length,to:f.pos+f.margin},{from:m.pos-m.margin,to:m.pos+u.close.length})}return{changes:l}}return null}function Xb(r,e,t=e.selection.ranges){let n=[],i=-1;e:for(let{from:l,to:o}of t){let c=n.length,u=1e9,f;for(let m=l;m<=o;){let O=e.doc.lineAt(m);if(f==null&&(f=H1(e,O.from).line,!f))continue e;if(O.from>i&&(l==o||o>O.from)){i=O.from;let x=/^\s*/.exec(O.text)[0].length,S=x==O.length,w=O.text.slice(x,x+f.length)==f?x:-1;x<O.text.length&&x<u&&(u=x),n.push({line:O,comment:w,token:f,indent:x,empty:S,single:!1})}m=O.to+1}if(u<1e9)for(let m=c;m<n.length;m++)n[m].indent<n[m].line.text.length&&(n[m].indent=u);n.length==c+1&&(n[c].single=!0)}if(r!=2&&n.some(l=>l.comment<0&&(!l.empty||l.single))){let l=[];for(let{line:c,token:u,indent:f,empty:m,single:O}of n)(O||!m)&&l.push({from:c.from+f,insert:u+" "});let o=e.changes(l);return{changes:o,selection:e.selection.map(o,1)}}else if(r!=1&&n.some(l=>l.comment>=0)){let l=[];for(let{line:o,comment:c,token:u}of n)if(c>=0){let f=o.from+c,m=f+u.length;o.text[m-o.from]==" "&&m++,l.push({from:f,to:m})}return{changes:l}}return null}const t1=di.define(),Nb=di.define(),_b=Pe.define(),r6=Pe.define({combine(r){return Al(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}}),i6=Fn.define({create(){return Fr.empty},update(r,e){let t=e.state.facet(r6),n=e.annotation(t1);if(n){let u=Vn.fromTransaction(e,n.selection),f=n.side,m=f==0?r.undone:r.done;return u?m=hu(m,m.length,t.minDepth,u):m=o6(m,e.startState.selection),new Fr(f==0?n.rest:m,f==0?m:n.rest)}let i=e.annotation(Nb);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(Nt.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let l=Vn.fromTransaction(e),o=e.annotation(Nt.time),c=e.annotation(Nt.userEvent);return l?r=r.addChanges(l,o,c,t,e):e.selection&&(r=r.addSelection(e.startState.selection,o,c,t.newGroupDelay)),(i=="full"||i=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new Fr(r.done.map(Vn.fromJSON),r.undone.map(Vn.fromJSON))}});function zb(r={}){return[i6,r6.of(r),$e.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?s6:e.inputType=="historyRedo"?n1:null;return n?(e.preventDefault(),n(t)):!1}})]}function Lu(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(i6,!1);if(!i)return!1;let l=i.pop(r,t,e);return l?(n(l),!0):!1}}const s6=Lu(0,!1),n1=Lu(1,!1),Db=Lu(0,!0),Ib=Lu(1,!0);class Vn{constructor(e,t,n,i,l){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=l}setSelAfter(e){return new Vn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Vn(e.changes&&Wt.fromJSON(e.changes),[],e.mapped&&Br.fromJSON(e.mapped),e.startSelection&&G.fromJSON(e.startSelection),e.selectionsAfter.map(G.fromJSON))}static fromTransaction(e,t){let n=cr;for(let i of e.startState.facet(_b)){let l=i(e);l.length&&(n=n.concat(l))}return!n.length&&e.changes.empty?null:new Vn(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,cr)}static selection(e){return new Vn(void 0,cr,void 0,void 0,e)}}function hu(r,e,t,n){let i=e+1>t+20?e-t-1:0,l=r.slice(i,e);return l.push(n),l}function Wb(r,e){let t=[],n=!1;return r.iterChangedRanges((i,l)=>t.push(i,l)),e.iterChangedRanges((i,l,o,c)=>{for(let u=0;u<t.length;){let f=t[u++],m=t[u++];c>=f&&o<=m&&(n=!0)}}),n}function Hb(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function l6(r,e){return r.length?e.length?r.concat(e):r:e}const cr=[],Yb=200;function o6(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Yb));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),hu(r,r.length-1,1e9,t.setSelAfter(n)))}else return[Vn.selection([e])]}function Fb(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function qh(r,e){if(!r.length)return r;let t=r.length,n=cr;for(;t;){let i=Bb(r[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let l=r.slice(0,t);return l[t-1]=i,l}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[Vn.selection(n)]:cr}function Bb(r,e,t){let n=l6(r.selectionsAfter.length?r.selectionsAfter.map(c=>c.map(e)):cr,t);if(!r.changes)return Vn.selection(n);let i=r.changes.map(e),l=e.mapDesc(r.changes,!0),o=r.mapped?r.mapped.composeDesc(l):l;return new Vn(i,st.mapEffects(r.effects,e),o,r.startSelection.map(l),n)}const qb=/^(input\.type|delete)($|\.)/;class Fr{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new Fr(this.done,this.undone):this}addChanges(e,t,n,i,l){let o=this.done,c=o[o.length-1];return c&&c.changes&&!c.changes.empty&&e.changes&&(!n||qb.test(n))&&(!c.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(l,Wb(c.changes,e.changes))||n=="input.type.compose")?o=hu(o,o.length-1,i.minDepth,new Vn(e.changes.compose(c.changes),l6(st.mapEffects(e.effects,c.changes),c.effects),c.mapped,c.startSelection,cr)):o=hu(o,o.length,i.minDepth,e),new Fr(o,cr,t,n)}addSelection(e,t,n,i){let l=this.done.length?this.done[this.done.length-1].selectionsAfter:cr;return l.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Hb(l[l.length-1],e)?this:new Fr(o6(this.done,e),this.undone,t,n)}addMapping(e){return new Fr(qh(this.done,e),qh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=e==0?this.done:this.undone;if(i.length==0)return null;let l=i[i.length-1],o=l.selectionsAfter[0]||(l.startSelection?l.startSelection.map(l.changes.invertedDesc,1):t.selection);if(n&&l.selectionsAfter.length)return t.update({selection:l.selectionsAfter[l.selectionsAfter.length-1],annotations:t1.of({side:e,rest:Fb(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(l.changes){let c=i.length==1?cr:i.slice(0,i.length-1);return l.mapped&&(c=qh(c,l.mapped)),t.update({changes:l.changes,selection:l.startSelection,effects:l.effects,annotations:t1.of({side:e,rest:c,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Fr.empty=new Fr(cr,cr);const Ub=[{key:"Mod-z",run:s6,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:n1,preventDefault:!0},{linux:"Ctrl-Shift-z",run:n1,preventDefault:!0},{key:"Mod-u",run:Db,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ib,preventDefault:!0}];function Cl(r,e){return G.create(r.ranges.map(e),r.mainIndex)}function br(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Qr({state:r,dispatch:e},t){let n=Cl(r.selection,t);return n.eq(r.selection,!0)?!1:(e(br(r,n)),!0)}function Xu(r,e){return G.cursor(e?r.to:r.from)}function a6(r,e){return Qr(r,t=>t.empty?r.moveByChar(t,e):Xu(t,e))}function On(r){return r.textDirectionAt(r.state.selection.main.head)==Rt.LTR}const c6=r=>a6(r,!On(r)),u6=r=>a6(r,On(r));function h6(r,e){return Qr(r,t=>t.empty?r.moveByGroup(t,e):Xu(t,e))}const Gb=r=>h6(r,!On(r)),Kb=r=>h6(r,On(r));function Jb(r,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function Nu(r,e,t){let n=Lt(r).resolveInner(e.head),i=t?Fe.closedBy:Fe.openedBy;for(let u=e.head;;){let f=t?n.childAfter(u):n.childBefore(u);if(!f)break;Jb(r,f,i)?n=f:u=t?f.to:f.from}let l=n.type.prop(i),o,c;return l&&(o=t?Yr(r,n.from,1):Yr(r,n.to,-1))&&o.matched?c=t?o.end.to:o.end.from:c=t?n.to:n.from,G.cursor(c,t?-1:1)}const e7=r=>Qr(r,e=>Nu(r.state,e,!On(r))),t7=r=>Qr(r,e=>Nu(r.state,e,On(r)));function f6(r,e){return Qr(r,t=>{if(!t.empty)return Xu(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const d6=r=>f6(r,!1),p6=r=>f6(r,!0);function m6(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let l of r.state.facet($e.scrollMargins)){let o=l(r);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}i=r.scrollDOM.clientHeight-t-n}else i=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(r.defaultLineHeight,i-5)}}function O6(r,e){let t=m6(r),{state:n}=r,i=Cl(n.selection,o=>o.empty?r.moveVertically(o,e,t.height):Xu(o,e));if(i.eq(n.selection))return!1;let l;if(t.selfScroll){let o=r.coordsAtPos(n.selection.main.head),c=r.scrollDOM.getBoundingClientRect(),u=c.top+t.marginTop,f=c.bottom-t.marginBottom;o&&o.top>u&&o.bottom<f&&(l=$e.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-u}))}return r.dispatch(br(n,i),{effects:l}),!0}const $2=r=>O6(r,!1),r1=r=>O6(r,!0);function Gi(r,e,t){let n=r.lineBlockAt(e.head),i=r.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=r.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let l=/^\s*/.exec(r.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;l&&e.head!=n.from+l&&(i=G.cursor(n.from+l))}return i}const n7=r=>Qr(r,e=>Gi(r,e,!0)),r7=r=>Qr(r,e=>Gi(r,e,!1)),i7=r=>Qr(r,e=>Gi(r,e,!On(r))),s7=r=>Qr(r,e=>Gi(r,e,On(r))),l7=r=>Qr(r,e=>G.cursor(r.lineBlockAt(e.head).from,1)),o7=r=>Qr(r,e=>G.cursor(r.lineBlockAt(e.head).to,-1));function a7(r,e,t){let n=!1,i=Cl(r.selection,l=>{let o=Yr(r,l.head,-1)||Yr(r,l.head,1)||l.head>0&&Yr(r,l.head-1,1)||l.head<r.doc.length&&Yr(r,l.head+1,-1);if(!o||!o.end)return l;n=!0;let c=o.start.from==l.head?o.end.to:o.end.from;return G.cursor(c)});return n?(e(br(r,i)),!0):!1}const c7=({state:r,dispatch:e})=>a7(r,e);function ur(r,e){let t=Cl(r.state.selection,n=>{let i=e(n);return G.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return t.eq(r.state.selection)?!1:(r.dispatch(br(r.state,t)),!0)}function g6(r,e){return ur(r,t=>r.moveByChar(t,e))}const x6=r=>g6(r,!On(r)),y6=r=>g6(r,On(r));function v6(r,e){return ur(r,t=>r.moveByGroup(t,e))}const u7=r=>v6(r,!On(r)),h7=r=>v6(r,On(r)),f7=r=>ur(r,e=>Nu(r.state,e,!On(r))),d7=r=>ur(r,e=>Nu(r.state,e,On(r)));function S6(r,e){return ur(r,t=>r.moveVertically(t,e))}const w6=r=>S6(r,!1),k6=r=>S6(r,!0);function b6(r,e){return ur(r,t=>r.moveVertically(t,e,m6(r).height))}const P2=r=>b6(r,!1),A2=r=>b6(r,!0),p7=r=>ur(r,e=>Gi(r,e,!0)),m7=r=>ur(r,e=>Gi(r,e,!1)),O7=r=>ur(r,e=>Gi(r,e,!On(r))),g7=r=>ur(r,e=>Gi(r,e,On(r))),x7=r=>ur(r,e=>G.cursor(r.lineBlockAt(e.head).from)),y7=r=>ur(r,e=>G.cursor(r.lineBlockAt(e.head).to)),C2=({state:r,dispatch:e})=>(e(br(r,{anchor:0})),!0),T2=({state:r,dispatch:e})=>(e(br(r,{anchor:r.doc.length})),!0),Z2=({state:r,dispatch:e})=>(e(br(r,{anchor:r.selection.main.anchor,head:0})),!0),M2=({state:r,dispatch:e})=>(e(br(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),v7=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),S7=({state:r,dispatch:e})=>{let t=_u(r).map(({from:n,to:i})=>G.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:G.create(t),userEvent:"select"})),!0},w7=({state:r,dispatch:e})=>{let t=Cl(r.selection,n=>{let i=Lt(r),l=i.resolveStack(n.from,1);if(n.empty){let o=i.resolveStack(n.from,-1);o.node.from>=l.node.from&&o.node.to<=l.node.to&&(l=o)}for(let o=l;o;o=o.next){let{node:c}=o;if((c.from<n.from&&c.to>=n.to||c.to>n.to&&c.from<=n.from)&&o.next)return G.range(c.to,c.from)}return n});return t.eq(r.selection)?!1:(e(br(r,t)),!0)};function Q6(r,e){let{state:t}=r,n=t.selection,i=t.selection.ranges.slice();for(let l of t.selection.ranges){let o=t.doc.lineAt(l.head);if(e?o.to<r.state.doc.length:o.from>0)for(let c=l;;){let u=r.moveVertically(c,e);if(u.head<o.from||u.head>o.to){i.some(f=>f.head==u.head)||i.push(u);break}else{if(u.head==c.head)break;c=u}}}return i.length==n.ranges.length?!1:(r.dispatch(br(t,G.create(i,i.length-1))),!0)}const k7=r=>Q6(r,!1),b7=r=>Q6(r,!0),Q7=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=G.create([t.main]):t.main.empty||(n=G.create([G.cursor(t.main.head)])),n?(e(br(r,n)),!0):!1};function Jo(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(l=>{let{from:o,to:c}=l;if(o==c){let u=e(l);u<o?(t="delete.backward",u=$c(r,u,!1)):u>o&&(t="delete.forward",u=$c(r,u,!0)),o=Math.min(o,u),c=Math.max(c,u)}else o=$c(r,o,!1),c=$c(r,c,!0);return o==c?{range:l}:{changes:{from:o,to:c},range:G.cursor(o,o<l.head?-1:1)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?$e.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function $c(r,e,t){if(r instanceof $e)for(let n of r.state.facet($e.atomicRanges).map(i=>i(r)))n.between(e,e,(i,l)=>{i<e&&l>e&&(e=t?l:i)});return e}const $6=(r,e,t)=>Jo(r,n=>{let i=n.from,{state:l}=r,o=l.doc.lineAt(i),c,u;if(t&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(c=o.text.slice(0,i-o.from))){if(c[c.length-1]==" ")return i-1;let f=Qu(c,l.tabSize),m=f%cu(l)||cu(l);for(let O=0;O<m&&c[c.length-1-O]==" ";O++)i--;u=i}else u=en(o.text,i-o.from,e,e)+o.from,u==i&&o.number!=(e?l.doc.lines:1)?u+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(u-o.from,i-o.from))&&(u=en(o.text,u-o.from,!1,!1)+o.from);return u}),i1=r=>$6(r,!1,!0),P6=r=>$6(r,!0,!1),A6=(r,e)=>Jo(r,t=>{let n=t.head,{state:i}=r,l=i.doc.lineAt(n),o=i.charCategorizer(n);for(let c=null;;){if(n==(e?l.to:l.from)){n==t.head&&l.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let u=en(l.text,n-l.from,e)+l.from,f=l.text.slice(Math.min(n,u)-l.from,Math.max(n,u)-l.from),m=o(f);if(c!=null&&m!=c)break;(f!=" "||n!=t.head)&&(c=m),n=u}return n}),C6=r=>A6(r,!1),$7=r=>A6(r,!0),P7=r=>Jo(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),A7=r=>Jo(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),C7=r=>Jo(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),T7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:et.of(["",""])},range:G.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Z7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>{if(!n.empty||n.from==0||n.from==r.doc.length)return{range:n};let i=n.from,l=r.doc.lineAt(i),o=i==l.from?i-1:en(l.text,i-l.from,!1)+l.from,c=i==l.to?i+1:en(l.text,i-l.from,!0)+l.from;return{changes:{from:o,to:c,insert:r.doc.slice(i,c).append(r.doc.slice(o,i))},range:G.cursor(c)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _u(r){let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.from),l=r.doc.lineAt(n.to);if(!n.empty&&n.to==l.from&&(l=r.doc.lineAt(n.to-1)),t>=i.number){let o=e[e.length-1];o.to=l.to,o.ranges.push(n)}else e.push({from:i.from,to:l.to,ranges:[n]});t=l.number+1}return e}function T6(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let l of _u(r)){if(t?l.to==r.doc.length:l.from==0)continue;let o=r.doc.lineAt(t?l.to+1:l.from-1),c=o.length+1;if(t){n.push({from:l.to,to:o.to},{from:l.from,insert:o.text+r.lineBreak});for(let u of l.ranges)i.push(G.range(Math.min(r.doc.length,u.anchor+c),Math.min(r.doc.length,u.head+c)))}else{n.push({from:o.from,to:l.from},{from:l.to,insert:r.lineBreak+o.text});for(let u of l.ranges)i.push(G.range(u.anchor-c,u.head-c))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:G.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const M7=({state:r,dispatch:e})=>T6(r,e,!1),E7=({state:r,dispatch:e})=>T6(r,e,!0);function Z6(r,e,t){if(r.readOnly)return!1;let n=[];for(let l of _u(r))t?n.push({from:l.from,insert:r.doc.slice(l.from,l.to)+r.lineBreak}):n.push({from:l.to,insert:r.lineBreak+r.doc.slice(l.from,l.to)});let i=r.changes(n);return e(r.update({changes:i,selection:r.selection.map(i,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const j7=({state:r,dispatch:e})=>Z6(r,e,!1),V7=({state:r,dispatch:e})=>Z6(r,e,!0),R7=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(_u(e).map(({from:i,to:l})=>(i>0?i--:l<e.doc.length&&l++,{from:i,to:l}))),n=Cl(e.selection,i=>{let l;if(r.lineWrapping){let o=r.lineBlockAt(i.head),c=r.coordsAtPos(i.head,i.assoc||1);c&&(l=o.bottom+r.documentTop-c.bottom+r.defaultLineHeight/2)}return r.moveVertically(i,!0,l)}).map(t);return r.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function L7(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Lt(r).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),l;return n&&i&&n.to<=e&&i.from>=e&&(l=n.type.prop(Fe.closedBy))&&l.indexOf(i.name)>-1&&r.doc.lineAt(n.to).from==r.doc.lineAt(i.from).from&&!/\S/.test(r.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}const E2=M6(!1),X7=M6(!0);function M6(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:l,to:o}=i,c=e.doc.lineAt(l),u=!r&&l==o&&L7(e,l);r&&(l=o=(o<=c.to?c:e.doc.lineAt(o)).to);let f=new Eu(e,{simulateBreak:l,simulateDoubleBreak:!!u}),m=z1(f,l);for(m==null&&(m=Qu(/^\s*/.exec(e.doc.lineAt(l).text)[0],e.tabSize));o<c.to&&/\s/.test(c.text[o-c.from]);)o++;u?{from:l,to:o}=u:l>c.from&&l<c.from+100&&!/\S/.test(c.text.slice(0,l))&&(l=c.from);let O=["",Io(e,m)];return u&&O.push(Io(e,f.lineIndent(c.from,-1))),{changes:{from:l,to:o,insert:et.of(O)},range:G.cursor(l+1+O[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Y1(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let o=n.from;o<=n.to;){let c=r.doc.lineAt(o);c.number>t&&(n.empty||n.to>c.from)&&(e(c,i,n),t=c.number),o=c.to+1}let l=r.changes(i);return{changes:i,range:G.range(l.mapPos(n.anchor,1),l.mapPos(n.head,1))}})}const N7=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new Eu(r,{overrideIndentation:l=>{let o=t[l];return o??-1}}),i=Y1(r,(l,o,c)=>{let u=z1(n,l.from);if(u==null)return;/\S/.test(l.text)||(u=0);let f=/^\s*/.exec(l.text)[0],m=Io(r,u);(f!=m||c.from<l.from+f.length)&&(t[l.from]=u,o.push({from:l.from,to:l.from+f.length,insert:m}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},_7=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Y1(r,(t,n)=>{n.push({from:t.from,insert:r.facet(Mu)})}),{userEvent:"input.indent"})),!0),z7=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Y1(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let l=Qu(i,r.tabSize),o=0,c=Io(r,Math.max(0,l-cu(r)));for(;o<i.length&&o<c.length&&i.charCodeAt(o)==c.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:c.slice(o)})}),{userEvent:"delete.dedent"})),!0),D7=r=>(r.setTabFocusMode(),!0),I7=[{key:"Ctrl-b",run:c6,shift:x6,preventDefault:!0},{key:"Ctrl-f",run:u6,shift:y6},{key:"Ctrl-p",run:d6,shift:w6},{key:"Ctrl-n",run:p6,shift:k6},{key:"Ctrl-a",run:l7,shift:x7},{key:"Ctrl-e",run:o7,shift:y7},{key:"Ctrl-d",run:P6},{key:"Ctrl-h",run:i1},{key:"Ctrl-k",run:P7},{key:"Ctrl-Alt-h",run:C6},{key:"Ctrl-o",run:T7},{key:"Ctrl-t",run:Z7},{key:"Ctrl-v",run:r1}],W7=[{key:"ArrowLeft",run:c6,shift:x6,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Gb,shift:u7,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i7,shift:O7,preventDefault:!0},{key:"ArrowRight",run:u6,shift:y6,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Kb,shift:h7,preventDefault:!0},{mac:"Cmd-ArrowRight",run:s7,shift:g7,preventDefault:!0},{key:"ArrowUp",run:d6,shift:w6,preventDefault:!0},{mac:"Cmd-ArrowUp",run:C2,shift:Z2},{mac:"Ctrl-ArrowUp",run:$2,shift:P2},{key:"ArrowDown",run:p6,shift:k6,preventDefault:!0},{mac:"Cmd-ArrowDown",run:T2,shift:M2},{mac:"Ctrl-ArrowDown",run:r1,shift:A2},{key:"PageUp",run:$2,shift:P2},{key:"PageDown",run:r1,shift:A2},{key:"Home",run:r7,shift:m7,preventDefault:!0},{key:"Mod-Home",run:C2,shift:Z2},{key:"End",run:n7,shift:p7,preventDefault:!0},{key:"Mod-End",run:T2,shift:M2},{key:"Enter",run:E2,shift:E2},{key:"Mod-a",run:v7},{key:"Backspace",run:i1,shift:i1,preventDefault:!0},{key:"Delete",run:P6,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:C6,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:$7,preventDefault:!0},{mac:"Mod-Backspace",run:A7,preventDefault:!0},{mac:"Mod-Delete",run:C7,preventDefault:!0}].concat(I7.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),H7=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e7,shift:f7},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t7,shift:d7},{key:"Alt-ArrowUp",run:M7},{key:"Shift-Alt-ArrowUp",run:j7},{key:"Alt-ArrowDown",run:E7},{key:"Shift-Alt-ArrowDown",run:V7},{key:"Mod-Alt-ArrowUp",run:k7},{key:"Mod-Alt-ArrowDown",run:b7},{key:"Escape",run:Q7},{key:"Mod-Enter",run:X7},{key:"Alt-l",mac:"Ctrl-l",run:S7},{key:"Mod-i",run:w7,preventDefault:!0},{key:"Mod-[",run:z7},{key:"Mod-]",run:_7},{key:"Mod-Alt-\\",run:N7},{key:"Shift-Mod-k",run:R7},{key:"Shift-Mod-\\",run:c7},{key:"Mod-/",run:Mb},{key:"Alt-A",run:jb},{key:"Ctrl-m",mac:"Shift-Alt-m",run:D7}].concat(W7);function j2(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Y7(r){let e=Object.create(null),t=Object.create(null);for(let{label:i}of r){e[i[0]]=!0;for(let l=1;l<i.length;l++)t[i[l]]=!0}let n=j2(e)+j2(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function F7(r){let e=r.map(i=>typeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:Y7(e);return i=>{let l=i.matchBefore(n);return l||i.explicit?{from:l?l.from:i.pos,options:e,validFor:t}:null}}function B7(r,e){return t=>{for(let n=Lt(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}const q7=di.define(),U7=$e.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class G7{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class F1{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,pn.TrackDel),n=e.mapPos(this.to,1,pn.TrackDel);return t==null||n==null?null:new F1(this.field,t,n)}}class B1{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],l=e.doc.lineAt(t),o=/^\s*/.exec(l.text)[0];for(let u of this.lines){if(n.length){let f=o,m=/^\t*/.exec(u)[0].length;for(let O=0;O<m;O++)f+=e.facet(Mu);i.push(t+f.length-m),u=f+u.slice(m)}n.push(u),t+=u.length+1}let c=this.fieldPositions.map(u=>new F1(u.field,i[u.line]+u.from,i[u.line]+u.to));return{text:n,ranges:c}}static parse(e){let t=[],n=[],i=[],l;for(let o of e.split(/\r\n?|\n/)){for(;l=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let c=l[1]?+l[1]:null,u=l[2]||l[3]||"",f=-1,m=u.replace(/\\[{}]/g,O=>O[1]);for(let O=0;O<t.length;O++)(c!=null?t[O].seq==c:m&&t[O].name==m)&&(f=O);if(f<0){let O=0;for(;O<t.length&&(c==null||t[O].seq!=null&&t[O].seq<c);)O++;t.splice(O,0,{seq:c,name:m}),f=O;for(let x of i)x.field>=f&&x.field++}for(let O of i)if(O.line==n.length&&O.from>l.index){let x=l[2]?3+(l[1]||"").length:2;O.from-=x,O.to-=x}i.push(new G7(f,n.length,l.index,l.index+m.length)),o=o.slice(0,l.index)+u+o.slice(l.index+l[0].length)}o=o.replace(/\\([{}])/g,(c,u,f)=>{for(let m of i)m.line==n.length&&m.from>f&&(m.from--,m.to--);return u}),n.push(o)}return new B1(n,i)}}let K7=Ie.widget({widget:new class extends bs{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),J7=Ie.mark({class:"cm-snippetField"});class Tl{constructor(e,t){this.ranges=e,this.active=t,this.deco=Ie.set(e.map(n=>(n.from==n.to?K7:J7).range(n.from,n.to)),!0)}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new Tl(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const ea=st.define({map(r,e){return r&&r.map(e)}}),eQ=st.define(),Wo=Fn.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(ea))return t.value;if(t.is(eQ)&&r)return new Tl(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>$e.decorations.from(r,e=>e?e.deco:Ie.none)});function q1(r,e){return G.create(r.filter(t=>t.field==e).map(t=>G.range(t.from,t.to)))}function tQ(r){let e=B1.parse(r);return(t,n,i,l)=>{let{text:o,ranges:c}=e.instantiate(t.state,i),{main:u}=t.state.selection,f={changes:{from:i,to:l==u.from?u.to:l,insert:et.of(o)},scrollIntoView:!0,annotations:n?[q7.of(n),Nt.userEvent.of("input.complete")]:void 0};if(c.length&&(f.selection=q1(c,0)),c.some(m=>m.field>0)){let m=new Tl(c,0),O=f.effects=[ea.of(m)];t.state.field(Wo,!1)===void 0&&O.push(st.appendConfig.of([Wo,lQ,oQ,U7]))}t.dispatch(t.state.update(f))}}function E6(r){return({state:e,dispatch:t})=>{let n=e.field(Wo,!1);if(!n||r<0&&n.active==0)return!1;let i=n.active+r,l=r>0&&!n.ranges.some(o=>o.field==i+r);return t(e.update({selection:q1(n.ranges,i),effects:ea.of(l?null:new Tl(n.ranges,i)),scrollIntoView:!0})),!0}}const nQ=({state:r,dispatch:e})=>r.field(Wo,!1)?(e(r.update({effects:ea.of(null)})),!0):!1,rQ=E6(1),iQ=E6(-1),sQ=[{key:"Tab",run:rQ,shift:iQ},{key:"Escape",run:nQ}],V2=Pe.define({combine(r){return r.length?r[0]:sQ}}),lQ=qo.highest(j1.compute([V2],r=>r.facet(V2)));function En(r,e){return{...e,apply:tQ(r)}}const oQ=$e.domEventHandlers({mousedown(r,e){let t=e.state.field(Wo,!1),n;if(!t||(n=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let i=t.ranges.find(l=>l.from<=n&&l.to>=n);return!i||i.field==t.active?!1:(e.dispatch({selection:q1(t.ranges,i.field),effects:ea.of(t.ranges.some(l=>l.field>i.field)?new Tl(t.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Ho={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},xs=st.define({map(r,e){let t=e.mapPos(r,-1,pn.TrackAfter);return t??void 0}}),U1=new class extends Hi{};U1.startSide=1;U1.endSide=-1;const j6=Fn.define({create(){return Ke.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(xs)&&(r=r.update({add:[U1.range(t.value,t.value+1)]}));return r}});function aQ(){return[uQ,j6]}const Uh="()[]{}<>«»»«[]{}";function V6(r){for(let e=0;e<Uh.length;e+=2)if(Uh.charCodeAt(e)==r)return Uh.charAt(e+1);return S8(r<128?r:r+1)}function R6(r,e){return r.languageDataAt("closeBrackets",e)[0]||Ho}const cQ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),uQ=$e.inputHandler.of((r,e,t,n)=>{if((cQ?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let i=r.state.selection.main;if(n.length>2||n.length==2&&Bo(ks(n,0))==1||e!=i.from||t!=i.to)return!1;let l=dQ(r.state,n);return l?(r.dispatch(l),!0):!1}),hQ=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=R6(r,r.selection.main.head).brackets||Ho.brackets,i=null,l=r.changeByRange(o=>{if(o.empty){let c=pQ(r.doc,o.head);for(let u of n)if(u==c&&zu(r.doc,o.head)==V6(ks(u,0)))return{changes:{from:o.head-u.length,to:o.head+u.length},range:G.cursor(o.head-u.length)}}return{range:i=o}});return i||e(r.update(l,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},fQ=[{key:"Backspace",run:hQ}];function dQ(r,e){let t=R6(r,r.selection.main.head),n=t.brackets||Ho.brackets;for(let i of n){let l=V6(ks(i,0));if(e==i)return l==i?gQ(r,i,n.indexOf(i+i+i)>-1,t):mQ(r,i,l,t.before||Ho.before);if(e==l&&L6(r,r.selection.main.from))return OQ(r,i,l)}return null}function L6(r,e){let t=!1;return r.field(j6).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function zu(r,e){let t=r.sliceString(e,e+2);return t.slice(0,Bo(ks(t,0)))}function pQ(r,e){let t=r.sliceString(e-2,e);return Bo(ks(t,0))==t.length?t:t.slice(1)}function mQ(r,e,t,n){let i=null,l=r.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:xs.of(o.to+e.length),range:G.range(o.anchor+e.length,o.head+e.length)};let c=zu(r.doc,o.head);return!c||/\s/.test(c)||n.indexOf(c)>-1?{changes:{insert:e+t,from:o.head},effects:xs.of(o.head+e.length),range:G.cursor(o.head+e.length)}:{range:i=o}});return i?null:r.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function OQ(r,e,t){let n=null,i=r.changeByRange(l=>l.empty&&zu(r.doc,l.head)==t?{changes:{from:l.head,to:l.head+t.length,insert:t},range:G.cursor(l.head+t.length)}:n={range:l});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function gQ(r,e,t,n){let i=n.stringPrefixes||Ho.stringPrefixes,l=null,o=r.changeByRange(c=>{if(!c.empty)return{changes:[{insert:e,from:c.from},{insert:e,from:c.to}],effects:xs.of(c.to+e.length),range:G.range(c.anchor+e.length,c.head+e.length)};let u=c.head,f=zu(r.doc,u),m;if(f==e){if(R2(r,u))return{changes:{insert:e+e,from:u},effects:xs.of(u+e.length),range:G.cursor(u+e.length)};if(L6(r,u)){let x=t&&r.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+x.length,insert:x},range:G.cursor(u+x.length)}}}else{if(t&&r.sliceDoc(u-2*e.length,u)==e+e&&(m=L2(r,u-2*e.length,i))>-1&&R2(r,m))return{changes:{insert:e+e+e+e,from:u},effects:xs.of(u+e.length),range:G.cursor(u+e.length)};if(r.charCategorizer(u)(f)!=Pt.Word&&L2(r,u,i)>-1&&!xQ(r,u,e,i))return{changes:{insert:e+e,from:u},effects:xs.of(u+e.length),range:G.cursor(u+e.length)}}return{range:l=c}});return l?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function R2(r,e){let t=Lt(r).resolveInner(e+1);return t.parent&&t.from==e}function xQ(r,e,t,n){let i=Lt(r).resolveInner(e,-1),l=n.reduce((o,c)=>Math.max(o,c.length),0);for(let o=0;o<5;o++){let c=r.sliceDoc(i.from,Math.min(i.to,i.from+t.length+l)),u=c.indexOf(t);if(!u||u>-1&&n.indexOf(c.slice(0,u))>-1){let m=i.firstChild;for(;m&&m.from==i.from&&m.to-m.from>t.length+u;){if(r.sliceDoc(m.to-t.length,m.to)==t)return!1;m=m.firstChild}return!0}let f=i.to==e&&i.parent;if(!f)break;i=f}return!1}function L2(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=Pt.Word)return e;for(let i of t){let l=e-i.length;if(r.sliceDoc(l,e)==i&&n(r.sliceDoc(l-1,l))!=Pt.Word)return l}return-1}const X2=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class wl{constructor(e,t,n=0,i=e.length,l,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=l?c=>l(X2(c)):X2,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ks(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=S8(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Bo(e);let i=this.normalize(t);if(i.length)for(let l=0,o=n;;l++){let c=i.charCodeAt(l),u=this.match(c,o,this.bufferPos+this.bufferStart);if(l==i.length-1){if(u)return this.value=u,this;break}o==n&&l<t.length&&t.charCodeAt(l)==c&&o++}}}match(e,t,n){let i=null;for(let l=0;l<this.matches.length;l+=2){let o=this.matches[l],c=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[l+1],to:n}:(this.matches[l]++,c=!0)),c||(this.matches.splice(l,2),l-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:t,to:n}:this.matches.push(1,t)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(wl.prototype[Symbol.iterator]=function(){return this});const X6={from:-1,to:-1,match:/.*/.exec("")},G1="gm"+(/x/.unicode==null?"":"u");class N6{constructor(e,t,n,i=0,l=e.length){if(this.text=e,this.to=l,this.curLine="",this.done=!1,this.value=X6,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new _6(e,t,n,i,l);this.re=new RegExp(t,G1+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=fu(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=fu(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const Gh=new WeakMap;class pl{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=Gh.get(e);if(!i||i.from>=n||i.to<=t){let c=new pl(t,e.sliceString(t,n));return Gh.set(e,c),c}if(i.from==t&&i.to==n)return i;let{text:l,from:o}=i;return o>t&&(l=e.sliceString(t,o)+l,o=t),i.to<n&&(l+=e.sliceString(i.to,n)),Gh.set(e,new pl(o,l)),new pl(t,l.slice(t-o,n-o))}}class _6{constructor(e,t,n,i,l){this.text=e,this.to=l,this.done=!1,this.value=X6,this.matchPos=fu(e,i),this.re=new RegExp(t,G1+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=pl.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,i=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this.matchPos=fu(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(N6.prototype[Symbol.iterator]=_6.prototype[Symbol.iterator]=function(){return this});function yQ(r){try{return new RegExp(r,G1),!0}catch{return!1}}function fu(r,e){if(e>=r.length)return e;let t=r.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}const vQ=r=>{let{state:e}=r,t=String(e.doc.lineAt(r.state.selection.main.head).number),{close:n,result:i}=uk(r,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return i.then(l=>{let o=l&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(l.elements.line.value);if(!o){r.dispatch({effects:n});return}let c=e.doc.lineAt(e.selection.main.head),[,u,f,m,O]=o,x=m?+m.slice(1):0,S=f?+f:c.number;if(f&&O){let $=S/100;u&&($=$*(u=="-"?-1:1)+c.number/e.doc.lines),S=Math.round(e.doc.lines*$)}else f&&u&&(S=S*(u=="-"?-1:1)+c.number);let w=e.doc.line(Math.max(1,Math.min(e.doc.lines,S))),b=G.cursor(w.from+Math.max(0,Math.min(x,w.length)));r.dispatch({effects:[n,$e.scrollIntoView(b.from,{y:"center"})],selection:b})}),!0},SQ={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},wQ=Pe.define({combine(r){return Al(r,SQ,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function kQ(r){return[AQ,PQ]}const bQ=Ie.mark({class:"cm-selectionMatch"}),QQ=Ie.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function N2(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=Pt.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=Pt.Word)}function $Q(r,e,t,n){return r(e.sliceDoc(t,t+1))==Pt.Word&&r(e.sliceDoc(n-1,n))==Pt.Word}const PQ=Ln.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(wQ),{state:t}=r,n=t.selection;if(n.ranges.length>1)return Ie.none;let i=n.main,l,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return Ie.none;let u=t.wordAt(i.head);if(!u)return Ie.none;o=t.charCategorizer(i.head),l=t.sliceDoc(u.from,u.to)}else{let u=i.to-i.from;if(u<e.minSelectionLength||u>200)return Ie.none;if(e.wholeWords){if(l=t.sliceDoc(i.from,i.to),o=t.charCategorizer(i.head),!(N2(o,t,i.from,i.to)&&$Q(o,t,i.from,i.to)))return Ie.none}else if(l=t.sliceDoc(i.from,i.to),!l)return Ie.none}let c=[];for(let u of r.visibleRanges){let f=new wl(t.doc,l,u.from,u.to);for(;!f.next().done;){let{from:m,to:O}=f.value;if((!o||N2(o,t,m,O))&&(i.empty&&m<=i.from&&O>=i.to?c.push(QQ.range(m,O)):(m>=i.to||O<=i.from)&&c.push(bQ.range(m,O)),c.length>e.maxMatches))return Ie.none}}return Ie.set(c)}},{decorations:r=>r.decorations}),AQ=$e.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),CQ=({state:r,dispatch:e})=>{let{selection:t}=r,n=G.create(t.ranges.map(i=>r.wordAt(i.head)||G.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function TQ(r,e){let{main:t,ranges:n}=r.selection,i=r.wordAt(t.head),l=i&&i.from==t.from&&i.to==t.to;for(let o=!1,c=new wl(r.doc,e,n[n.length-1].to);;)if(c.next(),c.done){if(o)return null;c=new wl(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(u=>u.from==c.value.from))continue;if(l){let u=r.wordAt(c.value.from);if(!u||u.from!=c.value.from||u.to!=c.value.to)continue}return c.value}}const ZQ=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(l=>l.from===l.to))return CQ({state:r,dispatch:e});let n=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(l=>r.sliceDoc(l.from,l.to)!=n))return!1;let i=TQ(r,n);return i?(e(r.update({selection:r.selection.addRange(G.range(i.from,i.to),!1),effects:$e.scrollIntoView(i.to)})),!0):!1},Zl=Pe.define({combine(r){return Al(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new HQ(e),scrollToMatch:e=>$e.scrollIntoView(e)})}});class z6{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||yQ(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
86
- `:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new LQ(this):new jQ(this)}getCursor(e,t=0,n){let i=e.doc?e:it.create({doc:e});return n==null&&(n=i.doc.length),this.regexp?tl(this,i,t,n):el(this,i,t,n)}}class D6{constructor(e){this.spec=e}}function MQ(r,e,t){return(n,i,l,o)=>{if(t&&!t(n,i,l,o))return!1;let c=n>=o&&i<=o+l.length?l.slice(n-o,i-o):e.doc.sliceString(n,i);return r(c,e,n,i)}}function el(r,e,t,n){let i;return r.wholeWord&&(i=EQ(e.doc,e.charCategorizer(e.selection.main.head))),r.test&&(i=MQ(r.test,e,i)),new wl(e.doc,r.unquoted,t,n,r.caseSensitive?void 0:l=>l.toLowerCase(),i)}function EQ(r,e){return(t,n,i,l)=>((l>t||l+i.length<n)&&(l=Math.max(0,t-2),i=r.sliceString(l,Math.min(r.length,n+2))),(e(du(i,t-l))!=Pt.Word||e(pu(i,t-l))!=Pt.Word)&&(e(pu(i,n-l))!=Pt.Word||e(du(i,n-l))!=Pt.Word))}class jQ extends D6{constructor(e){super(e)}nextMatch(e,t,n){let i=el(this.spec,e,n,e.doc.length).nextOverlapping();if(i.done){let l=Math.min(e.doc.length,t+this.spec.unquoted.length);i=el(this.spec,e,0,l).nextOverlapping()}return i.done||i.value.from==t&&i.value.to==n?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let l=Math.max(t,i-1e4-this.spec.unquoted.length),o=el(this.spec,e,l,i),c=null;for(;!o.nextOverlapping().done;)c=o.value;if(c)return c;if(l==t)return null;i-=1e4}}prevMatch(e,t,n){let i=this.prevMatchInRange(e,0,t);return i||(i=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),i&&(i.from!=t||i.to!=n)?i:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=el(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let l=el(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!l.next().done;)i(l.value.from,l.value.to)}}function VQ(r,e,t){return(n,i,l)=>(!t||t(n,i,l))&&r(l[0],e,n,i)}function tl(r,e,t,n){let i;return r.wholeWord&&(i=RQ(e.charCategorizer(e.selection.main.head))),r.test&&(i=VQ(r.test,e,i)),new N6(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:i},t,n)}function du(r,e){return r.slice(en(r,e,!1),e)}function pu(r,e){return r.slice(e,en(r,e))}function RQ(r){return(e,t,n)=>!n[0].length||(r(du(n.input,n.index))!=Pt.Word||r(pu(n.input,n.index))!=Pt.Word)&&(r(pu(n.input,n.index+n[0].length))!=Pt.Word||r(du(n.input,n.index+n[0].length))!=Pt.Word)}class LQ extends D6{nextMatch(e,t,n){let i=tl(this.spec,e,n,e.doc.length).next();return i.done&&(i=tl(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let l=Math.max(t,n-i*1e4),o=tl(this.spec,e,l,n),c=null;for(;!o.next().done;)c=o.value;if(c&&(l==t||c.from>l+10))return c;if(l==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let i=n.length;i>0;i--){let l=+n.slice(0,i);if(l>0&&l<e.match.length)return e.match[l]+n.slice(i)}return t})}matchAll(e,t){let n=tl(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let l=tl(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!l.next().done;)i(l.value.from,l.value.to)}}const Yo=st.define(),K1=st.define(),Wi=Fn.define({create(r){return new Kh(s1(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Yo)?r=new Kh(t.value.create(),r.panel):t.is(K1)&&(r=new Kh(r.query,t.value?J1:null));return r},provide:r=>su.from(r,e=>e.panel)});class Kh{constructor(e,t){this.query=e,this.panel=t}}const XQ=Ie.mark({class:"cm-searchMatch"}),NQ=Ie.mark({class:"cm-searchMatch cm-searchMatch-selected"}),_Q=Ln.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Wi))}update(r){let e=r.state.field(Wi);(e!=r.startState.field(Wi)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return Ie.none;let{view:t}=this,n=new ys;for(let i=0,l=t.visibleRanges,o=l.length;i<o;i++){let{from:c,to:u}=l[i];for(;i<o-1&&u>l[i+1].from-500;)u=l[++i].to;r.highlight(t.state,c,u,(f,m)=>{let O=t.state.selection.ranges.some(x=>x.from==f&&x.to==m);n.add(f,m,O?NQ:XQ)})}return n.finish()}},{decorations:r=>r.decorations});function ta(r){return e=>{let t=e.state.field(Wi,!1);return t&&t.query.spec.valid?r(e,t):H6(e)}}const mu=ta((r,{query:e})=>{let{to:t}=r.state.selection.main,n=e.nextMatch(r.state,t,t);if(!n)return!1;let i=G.single(n.from,n.to),l=r.state.facet(Zl);return r.dispatch({selection:i,effects:[ed(r,n),l.scrollToMatch(i.main,r)],userEvent:"select.search"}),W6(r),!0}),Ou=ta((r,{query:e})=>{let{state:t}=r,{from:n}=t.selection.main,i=e.prevMatch(t,n,n);if(!i)return!1;let l=G.single(i.from,i.to),o=r.state.facet(Zl);return r.dispatch({selection:l,effects:[ed(r,i),o.scrollToMatch(l.main,r)],userEvent:"select.search"}),W6(r),!0}),zQ=ta((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:G.create(t.map(n=>G.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),DQ=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:i}=t.main,l=[],o=0;for(let c=new wl(r.doc,r.sliceDoc(n,i));!c.next().done;){if(l.length>1e3)return!1;c.value.from==n&&(o=l.length),l.push(G.range(c.value.from,c.value.to))}return e(r.update({selection:G.create(l,o),userEvent:"select.search.matches"})),!0},_2=ta((r,{query:e})=>{let{state:t}=r,{from:n,to:i}=t.selection.main;if(t.readOnly)return!1;let l=e.nextMatch(t,n,n);if(!l)return!1;let o=l,c=[],u,f,m=[];o.from==n&&o.to==i&&(f=t.toText(e.getReplacement(o)),c.push({from:o.from,to:o.to,insert:f}),o=e.nextMatch(t,o.from,o.to),m.push($e.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+".")));let O=r.state.changes(c);return o&&(u=G.single(o.from,o.to).map(O),m.push(ed(r,o)),m.push(t.facet(Zl).scrollToMatch(u.main,r))),r.dispatch({changes:O,selection:u,effects:m,userEvent:"input.replace"}),!0}),IQ=ta((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(i=>{let{from:l,to:o}=i;return{from:l,to:o,insert:e.getReplacement(i)}});if(!t.length)return!1;let n=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:$e.announce.of(n),userEvent:"input.replace.all"}),!0});function J1(r){return r.state.facet(Zl).createPanel(r)}function s1(r,e){var t,n,i,l,o;let c=r.selection.main,u=c.empty||c.to>c.from+100?"":r.sliceDoc(c.from,c.to);if(e&&!u)return e;let f=r.facet(Zl);return new z6({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:f.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:f.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:f.literal,regexp:(l=e==null?void 0:e.regexp)!==null&&l!==void 0?l:f.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:f.wholeWord})}function I6(r){let e=C4(r,J1);return e&&e.dom.querySelector("[main-field]")}function W6(r){let e=I6(r);e&&e==r.root.activeElement&&e.select()}const H6=r=>{let e=r.state.field(Wi,!1);if(e&&e.panel){let t=I6(r);if(t&&t!=r.root.activeElement){let n=s1(r.state,e.query.spec);n.valid&&r.dispatch({effects:Yo.of(n)}),t.focus(),t.select()}}else r.dispatch({effects:[K1.of(!0),e?Yo.of(s1(r.state,e.query.spec)):st.appendConfig.of(FQ)]});return!0},Y6=r=>{let e=r.state.field(Wi,!1);if(!e||!e.panel)return!1;let t=C4(r,J1);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:K1.of(!1)}),!0},WQ=[{key:"Mod-f",run:H6,scope:"editor search-panel"},{key:"F3",run:mu,shift:Ou,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:mu,shift:Ou,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Y6,scope:"editor search-panel"},{key:"Mod-Shift-l",run:DQ},{key:"Mod-Alt-g",run:vQ},{key:"Mod-d",run:ZQ,preventDefault:!0}];class HQ{constructor(e){this.view=e;let t=this.query=e.state.field(Wi).query.spec;this.commit=this.commit.bind(this),this.searchField=Jt("input",{value:t.search,placeholder:In(e,"Find"),"aria-label":In(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Jt("input",{value:t.replace,placeholder:In(e,"Replace"),"aria-label":In(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Jt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Jt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Jt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(i,l,o){return Jt("button",{class:"cm-button",name:i,onclick:l,type:"button"},o)}this.dom=Jt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,n("next",()=>mu(e),[In(e,"next")]),n("prev",()=>Ou(e),[In(e,"previous")]),n("select",()=>zQ(e),[In(e,"all")]),Jt("label",null,[this.caseField,In(e,"match case")]),Jt("label",null,[this.reField,In(e,"regexp")]),Jt("label",null,[this.wordField,In(e,"by word")]),...e.state.readOnly?[]:[Jt("br"),this.replaceField,n("replace",()=>_2(e),[In(e,"replace")]),n("replaceAll",()=>IQ(e),[In(e,"replace all")])],Jt("button",{name:"close",onclick:()=>Y6(e),"aria-label":In(e,"close"),type:"button"},["×"])])}commit(){let e=new z6({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Yo.of(e)}))}keydown(e){ik(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Ou:mu)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),_2(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(Yo)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Zl).top}}function In(r,e){return r.state.phrase(e)}const Pc=30,Ac=/[\s\.,:;?!]/;function ed(r,{from:e,to:t}){let n=r.state.doc.lineAt(e),i=r.state.doc.lineAt(t).to,l=Math.max(n.from,e-Pc),o=Math.min(i,t+Pc),c=r.state.sliceDoc(l,o);if(l!=n.from){for(let u=0;u<Pc;u++)if(!Ac.test(c[u+1])&&Ac.test(c[u])){c=c.slice(u);break}}if(o!=i){for(let u=c.length-1;u>c.length-Pc;u--)if(!Ac.test(c[u-1])&&Ac.test(c[u])){c=c.slice(0,u);break}}return $e.announce.of(`${r.state.phrase("current match")}. ${c} ${r.state.phrase("on line")} ${n.number}.`)}const YQ=$e.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),FQ=[Wi,qo.low(_Q),YQ],BQ="#e5c07b",z2="#e06c75",qQ="#56b6c2",UQ="#ffffff",Dc="#abb2bf",l1="#7d8799",GQ="#61afef",KQ="#98c379",D2="#d19a66",JQ="#c678dd",e$="#21252b",I2="#2c313a",W2="#282c34",Jh="#353a42",t$="#3E4451",H2="#528bff",n$=$e.theme({"&":{color:Dc,backgroundColor:W2},".cm-content":{caretColor:H2},".cm-cursor, .cm-dropCursor":{borderLeftColor:H2},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t$},".cm-panels":{backgroundColor:e$,color:Dc},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:W2,color:l1,border:"none"},".cm-activeLineGutter":{backgroundColor:I2},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Jh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Jh,borderBottomColor:Jh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:I2,color:Dc}}},{dark:!0}),r$=Ru.define([{tag:V.keyword,color:JQ},{tag:[V.name,V.deleted,V.character,V.propertyName,V.macroName],color:z2},{tag:[V.function(V.variableName),V.labelName],color:GQ},{tag:[V.color,V.constant(V.name),V.standard(V.name)],color:D2},{tag:[V.definition(V.name),V.separator],color:Dc},{tag:[V.typeName,V.className,V.number,V.changed,V.annotation,V.modifier,V.self,V.namespace],color:BQ},{tag:[V.operator,V.operatorKeyword,V.url,V.escape,V.regexp,V.link,V.special(V.string)],color:qQ},{tag:[V.meta,V.comment],color:l1},{tag:V.strong,fontWeight:"bold"},{tag:V.emphasis,fontStyle:"italic"},{tag:V.strikethrough,textDecoration:"line-through"},{tag:V.link,color:l1,textDecoration:"underline"},{tag:V.heading,fontWeight:"bold",color:z2},{tag:[V.atom,V.bool,V.special(V.variableName)],color:D2},{tag:[V.processingInstruction,V.string,V.inserted],color:KQ},{tag:V.invalid,color:UQ}]),i$=[n$,gb(r$)];var Y2={};class gu{constructor(e,t,n,i,l,o,c,u,f,m=0,O){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=l,this.score=o,this.buffer=c,this.bufferBase=u,this.curContext=f,this.lookAhead=m,this.parent=O}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new gu(e,[],t,n,n,0,[],0,i?new F2(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=e&65535,{parser:l}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),c=l.dynamicPrecedence(i);if(c&&(this.score+=c),n==0){this.pushState(l.getGoto(this.state,i,!0),this.reducePos),i<l.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let u=this.stack.length-(n-1)*3-(e&262144?6:0),f=u?this.stack[u-2]:this.p.ranges[0].from,m=this.reducePos-f;m>=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(f==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=m):this.p.lastBigReductionSize<m&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=f,this.p.lastBigReductionSize=m));let O=u?this.stack[u-1]:0,x=this.bufferBase+this.buffer.length-O;if(i<l.minRepeatTerm||e&131072){let S=l.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,f,S,x+4,!0)}if(e&262144)this.state=this.stack[u];else{let S=this.stack[u-3];this.state=l.getGoto(S,i,!0)}for(;this.stack.length>u;)this.stack.pop();this.reduceContext(i,f)}storeNode(e,t,n,i=4,l=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,c=this.buffer.length;if(c==0&&o.parent&&(c=o.bufferBase-o.parent.bufferBase,o=o.parent),c>0&&o.buffer[c-4]==0&&o.buffer[c-1]>-1){if(t==n)return;if(o.buffer[c-2]>=t){o.buffer[c-2]=n;return}}}if(!l||this.pos==n)this.buffer.push(e,t,n,i);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let c=!1;for(let u=o;u>0&&this.buffer[u-2]>n;u-=4)if(this.buffer[u-1]>=0){c=!0;break}if(c)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(e,t,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let l=e,{parser:o}=this.p;this.pos=i;let c=o.stateFlag(l,1);!c&&(i>n||t<=o.maxNode)&&(this.reducePos=i),this.pushState(l,c?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){e&65536?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new gu(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s$(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if((n&65536)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let l=0,o;l<t.length;l+=2)(o=t[l+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(t[l],o);if(this.stack.length<120)for(let l=0;i.length<8&&l<t.length;l+=2){let o=t[l+1];i.some((c,u)=>u&1&&c==o)||i.push(t[l],o)}t=i}let n=[];for(let i=0;i<t.length&&n.length<4;i+=2){let l=t[i+1];if(l==this.state)continue;let o=this.split();o.pushState(l,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[i],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=t&65535,l=this.stack.length-n*3;if(l<0||e.getGoto(this.stack[l],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,l)=>{if(!t.includes(i))return t.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let c=(o>>19)-l;if(c>1){let u=o&65535,f=this.stack.length-c*3;if(f>=0&&e.getGoto(this.stack[f],u,!1)>=0)return c<<19|65536|u}}else{let c=n(o,l+1);if(c!=null)return c}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new F2(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class F2{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s${constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class xu{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new xu(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new xu(this.stack,this.pos,this.index)}}function bo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,i=0;n<r.length;){let l=0;for(;;){let o=r.charCodeAt(n++),c=!1;if(o==126){l=65535;break}o>=92&&o--,o>=34&&o--;let u=o-32;if(u>=46&&(u-=46,c=!0),l+=u,c)break;l*=46}t?t[i++]=l:t=new e(l)}return t}class Ic{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const B2=new Ic;class l${constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=B2,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,l=this.pos+e;for(;l<n.from;){if(!i)return null;let o=this.ranges[--i];l-=n.from-o.to,n=o}for(;t<0?l>n.to:l>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];l+=o.from-n.to,n=o}return l}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let l=this.resolveOffset(e,1);if(l==null)return-1;if(n=l,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,c=this.range;for(;c.to<=n;)c=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>c.to&&(this.chunk2=this.chunk2.slice(0,c.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=B2,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class ml{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;F6(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}ml.prototype.contextual=ml.prototype.fallback=ml.prototype.extend=!1;class yu{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?bo(e):e}token(e,t){let n=e.pos,i=0;for(;;){let l=e.next<0,o=e.resolveOffset(1,1);if(F6(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(l||i++,o==null)break;e.reset(o,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}yu.prototype.contextual=ml.prototype.fallback=ml.prototype.extend=!1;class Bn{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function F6(r,e,t,n,i,l){let o=0,c=1<<n,{dialect:u}=t.p.parser;e:for(;(c&r[o])!=0;){let f=r[o+1];for(let S=o+3;S<f;S+=2)if((r[S+1]&c)>0){let w=r[S];if(u.allows(w)&&(e.token.value==-1||e.token.value==w||o$(w,e.token.value,i,l))){e.acceptToken(w);break}}let m=e.next,O=0,x=r[o+2];if(e.next<0&&x>O&&r[f+x*3-3]==65535){o=r[f+x*3-1];continue e}for(;O<x;){let S=O+x>>1,w=f+S+(S<<1),b=r[w],$=r[w+1]||65536;if(m<b)x=S;else if(m>=$)O=S+1;else{o=r[w+2],e.advance();continue e}}break}}function q2(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function o$(r,e,t,n){let i=q2(t,n,e);return i<0||q2(t,n,r)<i}const Wn=typeof process<"u"&&Y2&&/\bparse\b/.test(Y2.LOG);let ef=null;function U2(r,e,t){let n=r.cursor(ht.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class a${constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?U2(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?U2(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let l=n.children[i],o=this.start[t]+n.positions[i];if(o>e)return this.nextStart=o,null;if(l instanceof At){if(o==e){if(o<this.safeFrom)return null;let c=o+l.length;if(c<=this.safeTo){let u=l.prop(Fe.lookAhead);if(!u||c+u<this.fragment.to)return l}}this.index[t]++,o+l.length>=Math.max(this.safeFrom,e)&&(this.trees.push(l),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+l.length}}}class c${constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Ic)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:l}=i,o=i.stateSlot(e.state,3),c=e.curContext?e.curContext.hash:0,u=0;for(let f=0;f<l.length;f++){if((1<<f&o)==0)continue;let m=l[f],O=this.tokens[f];if(!(n&&!m.fallback)&&((m.contextual||O.start!=e.pos||O.mask!=o||O.context!=c)&&(this.updateCachedToken(O,m,e),O.mask=o,O.context=c),O.lookAhead>O.end+25&&(u=Math.max(O.lookAhead,u)),O.value!=0)){let x=t;if(O.extended>-1&&(t=this.addActions(e,O.extended,O.end,t)),t=this.addActions(e,O.value,O.end,t),!m.extend&&(n=O,t>x))break}}for(;this.actions.length>t;)this.actions.pop();return u&&e.setLookAhead(u),!n&&e.pos==this.stream.end&&(n=new Ic,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Ic,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:l}=n.p;for(let o=0;o<l.specialized.length;o++)if(l.specialized[o]==e.value){let c=l.specializers[o](this.stream.read(e.start,e.end),n);if(c>=0&&n.p.parser.dialect.allows(c>>1)){(c&1)==0?e.value=c>>1:e.extended=c>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let l=0;l<i;l+=3)if(this.actions[l]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:l}=e,{parser:o}=e.p,{data:c}=o;for(let u=0;u<2;u++)for(let f=o.stateSlot(l,u?2:1);;f+=3){if(c[f]==65535)if(c[f+1]==1)f=li(c,f+2);else{i==0&&c[f+1]==2&&(i=this.putAction(li(c,f+2),t,n,i));break}c[f]==t&&(i=this.putAction(li(c,f+1),t,n,i))}return i}}class u${constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new l$(t,i),this.tokens=new c$(e,this.stream),this.topTerm=e.top[1];let{from:l}=i[0];this.stacks=[gu.start(this,e.top[0],l)],this.fragments=n.length&&this.stream.end-l>e.bufferLength*4?new a$(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,l;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let c=e[o];for(;;){if(this.tokens.mainToken=null,c.pos>t)n.push(c);else{if(this.advanceStack(c,n,e))continue;{i||(i=[],l=[]),i.push(c);let u=this.tokens.getMainToken(c);l.push(u.value,u.end)}}break}}if(!n.length){let o=i&&f$(i);if(o)return Wn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Wn&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,l,n);if(o)return Wn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((c,u)=>u.score-c.score);n.length>o;)n.pop();n.some(c=>c.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let c=n[o];for(let u=o+1;u<n.length;u++){let f=n[u];if(c.sameState(f)||c.buffer.length>500&&f.buffer.length>500)if((c.score-f.score||c.buffer.length-f.buffer.length)>0)n.splice(u--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,c)=>c.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:l}=this,o=Wn?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let f=e.curContext&&e.curContext.tracker.strict,m=f?e.curContext.hash:0;for(let O=this.fragments.nodeAt(i);O;){let x=this.parser.nodeSet.types[O.type.id]==O.type?l.getGoto(e.state,O.type.id):-1;if(x>-1&&O.length&&(!f||(O.prop(Fe.contextHash)||0)==m))return e.useNode(O,x),Wn&&console.log(o+this.stackID(e)+` (via reuse of ${l.getName(O.type.id)})`),!0;if(!(O instanceof At)||O.children.length==0||O.positions[0]>0)break;let S=O.children[0];if(S instanceof At&&O.positions[0]==0)O=S;else break}}let c=l.stateSlot(e.state,4);if(c>0)return e.reduce(c),Wn&&console.log(o+this.stackID(e)+` (via always-reduce ${l.getName(c&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let f=0;f<u.length;){let m=u[f++],O=u[f++],x=u[f++],S=f==u.length||!n,w=S?e:e.split(),b=this.tokens.mainToken;if(w.apply(m,O,b?b.start:w.pos,x),Wn&&console.log(o+this.stackID(w)+` (via ${(m&65536)==0?"shift":`reduce of ${l.getName(m&65535)}`} for ${l.getName(O)} @ ${i}${w==e?"":", split"})`),S)return!0;w.pos>i?t.push(w):n.push(w)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return G2(e,t),!0}}runRecovery(e,t,n){let i=null,l=!1;for(let o=0;o<e.length;o++){let c=e[o],u=t[o<<1],f=t[(o<<1)+1],m=Wn?this.stackID(c)+" -> ":"";if(c.deadEnd&&(l||(l=!0,c.restart(),Wn&&console.log(m+this.stackID(c)+" (restarted)"),this.advanceFully(c,n))))continue;let O=c.split(),x=m;for(let S=0;S<10&&O.forceReduce()&&(Wn&&console.log(x+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,n));S++)Wn&&(x=this.stackID(O)+" -> ");for(let S of c.recoverByInsert(u))Wn&&console.log(m+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,n);this.stream.end>c.pos?(f==c.pos&&(f++,u=0),c.recoverByDelete(u,f),Wn&&console.log(m+this.stackID(c)+` (via recover-delete ${this.parser.getName(u)})`),G2(c,n)):(!i||i.score<O.score)&&(i=O)}return i}stackToTree(e){return e.close(),At.build({buffer:xu.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(ef||(ef=new WeakMap)).get(e);return t||ef.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function G2(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class h${constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const tf=r=>r;class B6{constructor(e){this.start=e.start,this.shift=e.shift||tf,this.reduce=e.reduce||tf,this.reuse=e.reuse||tf,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class kl extends _4{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let c=0;c<e.repeatNodeCount;c++)t.push("");let n=Object.keys(e.topRules).map(c=>e.topRules[c][1]),i=[];for(let c=0;c<t.length;c++)i.push([]);function l(c,u,f){i[c].push([u,u.deserialize(String(f))])}if(e.nodeProps)for(let c of e.nodeProps){let u=c[0];typeof u=="string"&&(u=Fe[u]);for(let f=1;f<c.length;){let m=c[f++];if(m>=0)l(m,u,c[f++]);else{let O=c[f+-m];for(let x=-m;x>0;x--)l(c[f++],u,O);f++}}}this.nodeSet=new V1(t.map((c,u)=>kn.define({name:u>=this.minRepeatTerm?void 0:c,id:u,props:i[u],top:n.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=V4;let o=bo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let c=0;c<this.specializerSpecs.length;c++)this.specialized[c]=this.specializerSpecs[c].term;this.specializers=this.specializerSpecs.map(K2),this.states=bo(e.states,Uint32Array),this.data=bo(e.stateData),this.goto=bo(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(c=>typeof c=="number"?new ml(o,c):c),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new u$(this,e,t,n);for(let l of this.wrappers)i=l(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let l=i[t+1];;){let o=i[l++],c=o&1,u=i[l++];if(c&&n)return u;for(let f=l+(o>>1);l<f;l++)if(i[l]==e)return u;if(c)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let l=this.stateSlot(e,i?2:1),o;;l+=3){if((o=n[l])==65535)if(n[l+1]==1)o=n[l=li(n,l+2)];else{if(n[l+1]==2)return li(n,l+2);break}if(o==t||o==0)return li(n,l+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let l=this.stateSlot(e,1);i==null;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=li(this.data,l+2);else break;i=t(li(this.data,l+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=li(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];t.some((l,o)=>o&1&&l==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(kl.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(l=>l.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let l=e.specializers.find(c=>c.from==n.external);if(!l)return n;let o=Object.assign(Object.assign({},n),{external:l.to});return t.specializers[i]=K2(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let l of e.split(" ")){let o=t.indexOf(l);o>=0&&(n[o]=!0)}let i=null;for(let l=0;l<t.length;l++)if(!n[l])for(let o=this.dialects[t[l]],c;(c=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[c]=1;return new h$(e,n,i)}static deserialize(e){return new kl(e)}}function li(r,e){return r[e]|r[e+1]<<16}function f$(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function K2(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const d$=55,p$=1,m$=56,O$=2,g$=57,x$=3,J2=4,y$=5,td=6,q6=7,U6=8,G6=9,K6=10,v$=11,S$=12,w$=13,nf=58,k$=14,b$=15,eg=59,J6=21,Q$=23,e5=24,$$=25,o1=27,t5=28,P$=29,A$=32,C$=35,T$=37,Z$=38,M$=0,E$=1,j$={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},V$={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},tg={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function R$(r){return r==45||r==46||r==58||r>=65&&r<=90||r==95||r>=97&&r<=122||r>=161}let ng=null,rg=null,ig=0;function a1(r,e){let t=r.pos+e;if(ig==t&&rg==r)return ng;let n=r.peek(e),i="";for(;R$(n);)i+=String.fromCharCode(n),n=r.peek(++e);return rg=r,ig=t,ng=i?i.toLowerCase():n==L$||n==X$?void 0:null}const n5=60,vu=62,nd=47,L$=63,X$=33,N$=45;function sg(r,e){this.name=r,this.parent=e}const _$=[td,K6,q6,U6,G6],z$=new B6({start:null,shift(r,e,t,n){return _$.indexOf(e)>-1?new sg(a1(n,1)||"",r):r},reduce(r,e){return e==J6&&r?r.parent:r},reuse(r,e,t,n){let i=e.type.id;return i==td||i==T$?new sg(a1(n,1)||"",r):r},strict:!1}),D$=new Bn((r,e)=>{if(r.next!=n5){r.next<0&&e.context&&r.acceptToken(nf);return}r.advance();let t=r.next==nd;t&&r.advance();let n=a1(r,0);if(n===void 0)return;if(!n)return r.acceptToken(t?b$:k$);let i=e.context?e.context.name:null;if(t){if(n==i)return r.acceptToken(v$);if(i&&V$[i])return r.acceptToken(nf,-2);if(e.dialectEnabled(M$))return r.acceptToken(S$);for(let l=e.context;l;l=l.parent)if(l.name==n)return;r.acceptToken(w$)}else{if(n=="script")return r.acceptToken(q6);if(n=="style")return r.acceptToken(U6);if(n=="textarea")return r.acceptToken(G6);if(j$.hasOwnProperty(n))return r.acceptToken(K6);i&&tg[i]&&tg[i][n]?r.acceptToken(nf,-1):r.acceptToken(td)}},{contextual:!0}),I$=new Bn(r=>{for(let e=0,t=0;;t++){if(r.next<0){t&&r.acceptToken(eg);break}if(r.next==N$)e++;else if(r.next==vu&&e>=2){t>=3&&r.acceptToken(eg,-2);break}else e=0;r.advance()}});function W$(r){for(;r;r=r.parent)if(r.name=="svg"||r.name=="math")return!0;return!1}const H$=new Bn((r,e)=>{if(r.next==nd&&r.peek(1)==vu){let t=e.dialectEnabled(E$)||W$(e.context);r.acceptToken(t?y$:J2,2)}else r.next==vu&&r.acceptToken(J2,1)});function rd(r,e,t){let n=2+r.length;return new Bn(i=>{for(let l=0,o=0,c=0;;c++){if(i.next<0){c&&i.acceptToken(e);break}if(l==0&&i.next==n5||l==1&&i.next==nd||l>=2&&l<n&&i.next==r.charCodeAt(l-2))l++,o++;else if(l==n&&i.next==vu){c>o?i.acceptToken(e,-o):i.acceptToken(t,-(o-2));break}else if((i.next==10||i.next==13)&&c){i.acceptToken(e,1);break}else l=o=0;i.advance()}})}const Y$=rd("script",d$,p$),F$=rd("style",m$,O$),B$=rd("textarea",g$,x$),q$=Zu({"Text RawText IncompleteTag IncompleteCloseTag":V.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":V.angleBracket,TagName:V.tagName,"MismatchedCloseTag/TagName":[V.tagName,V.invalid],AttributeName:V.attributeName,"AttributeValue UnquotedAttributeValue":V.attributeValue,Is:V.definitionOperator,"EntityReference CharacterReference":V.character,Comment:V.blockComment,ProcessingInst:V.processingInstruction,DoctypeDecl:V.documentMeta}),U$=kl.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q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!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:z$,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[q$],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S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#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Y$,F$,B$,H$,D$,I$,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function r5(r,e){let t=Object.create(null);for(let n of r.getChildren(e5)){let i=n.getChild($$),l=n.getChild(o1)||n.getChild(t5);i&&(t[e.read(i.from,i.to)]=l?l.type.id==o1?e.read(l.from+1,l.to-1):e.read(l.from,l.to):"")}return t}function lg(r,e){let t=r.getChild(Q$);return t?e.read(t.from,t.to):" "}function rf(r,e,t){let n;for(let i of t)if(!i.attrs||i.attrs(n||(n=r5(r.node.parent.firstChild,e))))return{parser:i.parser,bracketed:!0};return null}function i5(r=[],e=[]){let t=[],n=[],i=[],l=[];for(let c of r)(c.tag=="script"?t:c.tag=="style"?n:c.tag=="textarea"?i:l).push(c);let o=e.length?Object.create(null):null;for(let c of e)(o[c.name]||(o[c.name]=[])).push(c);return Mk((c,u)=>{let f=c.type.id;if(f==P$)return rf(c,u,t);if(f==A$)return rf(c,u,n);if(f==C$)return rf(c,u,i);if(f==J6&&l.length){let m=c.node,O=m.firstChild,x=O&&lg(O,u),S;if(x){for(let w of l)if(w.tag==x&&(!w.attrs||w.attrs(S||(S=r5(O,u))))){let b=m.lastChild,$=b.type.id==Z$?b.from:m.to;if($>O.to)return{parser:w.parser,overlay:[{from:O.to,to:$}]}}}}if(o&&f==e5){let m=c.node,O;if(O=m.firstChild){let x=o[u.read(O.from,O.to)];if(x)for(let S of x){if(S.tagName&&S.tagName!=lg(m.parent,u))continue;let w=m.lastChild;if(w.type.id==o1){let b=w.from+1,$=w.lastChild,T=w.to-($&&$.isError?0:1);if(T>b)return{parser:S.parser,overlay:[{from:b,to:T}],bracketed:!0}}else if(w.type.id==t5)return{parser:S.parser,overlay:[{from:w.from,to:w.to}]}}}}return null})}const G$=132,og=1,K$=133,J$=134,s5=2,eP=135,tP=3,nP=4,l5=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],rP=58,iP=40,o5=95,sP=91,Wc=45,lP=46,oP=35,aP=37,cP=38,uP=92,hP=10,fP=42;function Fo(r){return r>=65&&r<=90||r>=97&&r<=122||r>=161}function id(r){return r>=48&&r<=57}function ag(r){return id(r)||r>=97&&r<=102||r>=65&&r<=70}const a5=(r,e,t)=>(n,i)=>{for(let l=!1,o=0,c=0;;c++){let{next:u}=n;if(Fo(u)||u==Wc||u==o5||l&&id(u))!l&&(u!=Wc||c>0)&&(l=!0),o===c&&u==Wc&&o++,n.advance();else if(u==uP&&n.peek(1)!=hP){if(n.advance(),ag(n.next)){do n.advance();while(ag(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();l=!0}else{l&&n.acceptToken(o==2&&i.canShift(s5)?e:u==iP?t:r);break}}},dP=new Bn(a5(K$,s5,J$),{contextual:!0}),pP=new Bn(a5(eP,tP,nP),{contextual:!0}),mP=new Bn(r=>{if(l5.includes(r.peek(-1))){let{next:e}=r;(Fo(e)||e==o5||e==oP||e==lP||e==fP||e==sP||e==rP&&Fo(r.peek(1))||e==Wc||e==cP)&&r.acceptToken(G$)}}),OP=new Bn(r=>{if(!l5.includes(r.peek(-1))){let{next:e}=r;if(e==aP&&(r.advance(),r.acceptToken(og)),Fo(e)){do r.advance();while(Fo(r.next)||id(r.next));r.acceptToken(og)}}}),gP=Zu({"AtKeyword import charset namespace keyframes media supports font-feature-values":V.definitionKeyword,"from to selector scope MatchFlag":V.keyword,NamespaceName:V.namespace,KeyframeName:V.labelName,KeyframeRangeName:V.operatorKeyword,TagName:V.tagName,ClassName:V.className,PseudoClassName:V.constant(V.className),IdName:V.labelName,"FeatureName PropertyName":V.propertyName,AttributeName:V.attributeName,NumberLiteral:V.number,KeywordQuery:V.keyword,UnaryQueryOp:V.operatorKeyword,"CallTag ValueName FontName":V.atom,VariableName:V.variableName,Callee:V.operatorKeyword,Unit:V.unit,"UniversalSelector NestingSelector":V.definitionOperator,"MatchOp CompareOp":V.compareOperator,"ChildOp SiblingOp, LogicOp":V.logicOperator,BinOp:V.arithmeticOperator,Important:V.modifier,Comment:V.blockComment,ColorLiteral:V.color,"ParenthesizedContent StringLiteral":V.string,":":V.punctuation,"PseudoOp #":V.derefOperator,"; , |":V.separator,"( )":V.paren,"[ ]":V.squareBracket,"{ }":V.brace}),xP={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},yP={__proto__:null,or:104,and:104,not:112,only:112,layer:180},vP={__proto__:null,selector:118,layer:176},SP={__proto__:null,"@import":172,"@media":184,"@charset":188,"@namespace":192,"@keyframes":198,"@supports":210,"@scope":214,"@font-feature-values":220},wP={__proto__:null,to:217},kP=kl.deserialize({version:14,states:"HhQYQdOOO#wQdOOP$OO`OOO$xQaO'#CfOOQP'#Ce'#CeO%PQ`O'#CgO%UQdO'#CkO%uQaO'#CcO&PQdO'#CnO&[QdO'#DtO&aQdO'#DvO&fQdO'#DzO&fQdO'#D}OOQP'#Fa'#FaO'rQhO'#EpOOQS'#F`'#F`OOQS'#Es'#EsQYQdOOO'yQdO'#ETO)VQhO'#EZO'yQdO'#E]O)^QdO'#E_O)iQdO'#EbO(nQhO'#EhO)qQdO'#EjO)|QdO'#EmO*RQaO'#CfO*YQ`O'#EQO*_Q`O'#FkO*jQdO'#FkQOQ`OOP*tO&jO'#CaPOOO)CAO)CAOO+PQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO%UQdO,59VO+UQdO,59YO&[QdO,5:`O&aQdO,5:bO&fQdO,5:fO&fQdO,5:hO&fQdO,5:iO&fQdO'#EzO+aQ`O,58}O+iQdO'#EPOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO+pQ`O,59YO+uQ`O,59YOOQP'#Du'#DuOOQP,5:`,5:`OOQO'#Dw'#DwO+zQpO,5:bO,eQaO,5:fO,{QaO,5:iOOQW'#D^'#D^O-wQhO'#DgO.[QhO,5;[O(nQhO'#DeO.iQ`O'#DkO.nQhO'#DnOOQW'#Fg'#FgOOQS,5;[,5;[O.sQ`O'#DhOOQS-E8q-E8qOOQ['#Cv'#CvO.xQdO'#CwO/`QdO'#C}O/vQdO'#DQO0^Q!pO'#DSO2gQ!jO,5:oOOQO'#DX'#DXO+uQ`O'#DWO2wQ!nO'#FdO4zQ`O'#DYO5PQ`O'#DoOOQ['#Fd'#FdO5UQhO'#FnO5dQ`O,5:uO5iQ!bO,5:wOO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U$X$q$|%R%U%|%}&W&]&b&g&{'T'b'jQ!veR$g!wQ!SWR#_uQ#^!SR$z#_Q!VXR#avQ!XYR#bwQ!OVQ!c^Q!|hQ#h|Q#w!^Q$d!sQ$j!zQ$m#OQ$p#RQ%[#vQ%y$lQ&p%uQ&s%zR'_&oSlP}Q#VmQ$t#TR&Q$uZkPm}#T$uQ$s#SQ&O$qR&v%}R$]!kQ&e%fR'd'UR!weR!yfR$i!yS%u$h%vR']&nV%s$h%v&nR#RiQ#XoR$x#XQaOSmP}U!eam$uR$u#TQ%R#kY&V%R&]&{'T'jQ&]%UQ&{&WQ'T&bR'j'bQ$Q!gQ$S!hQ$U!iV%a$Q$S$UQ%k$_R&k%kQ&a%^S'S&a'cR'c'TQ&X%RR&|&XQ&T%OR&z&TQ|VR#g|Q%}$qR&u%}Q#UlS$v#U$wR$w#VQ'V&eR'e'VQ$c!rR%o$cQ%v$hR&q%vQ&o%uR'^&oQ#QiR$o#QQ#v!^R%Z#v_`OPam}#T$u^VOPam}#T$uQ!YZQ!Z[Q#cxQ#dyQ#ezQ#f{Q$k!{Q%O#jR&y&SR%S#kQ!kbQ!td[#}!g!h!i$Q$S$UQ$q#Sd%Q#k%R%U&W&]&b&{'T'b'jQ%T#mQ%e$XS%{$q%}Q&R$|Q&t%|R'X&g]$P!g!h!i$Q$S$UQ!^^U!rc!k$]Q!zgQ#p!]S#s!^#vQ#x!_Q%X#tQ%Y#uQ%^#yS%i$_%kQ%n$bR'Q&`Q#r!]Q&_%VR'a'PR%`#yR%P#jQnPR#i}Q!scQ$[!kR%h$]",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:156,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[gP],skippedNodes:[0,5,114],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh#}~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ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|U$UQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!rQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[mP,OP,dP,pP,1,2,3,4,new yu("m~RRYZ[z{a~~g~aO$Q~~dP!P!Qg~lO$R~~",28,139)],topRules:{StyleSheet:[0,6],Styles:[1,113]},dynamicPrecedences:{81:1},specialized:[{term:134,get:r=>xP[r]||-1},{term:135,get:r=>yP[r]||-1},{term:4,get:r=>vP[r]||-1},{term:28,get:r=>SP[r]||-1},{term:133,get:r=>wP[r]||-1}],tokenPrec:2182});let sf=null;function lf(){if(!sf&&typeof document=="object"&&document.body){let{style:r}=document.body,e=[],t=new Set;for(let n in r)n!="cssText"&&n!="cssFloat"&&typeof r[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));sf=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return sf||[]}const cg=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(r=>({type:"class",label:r})),ug=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(r=>({type:"keyword",label:r})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(r=>({type:"constant",label:r}))),bP=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(r=>({type:"type",label:r})),QP=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(r=>({type:"keyword",label:r})),si=/^(\w[\w-]*|-\w[\w-]*|)$/,$P=/^-(-[\w-]*)?$/;function PP(r,e){var t;if((r.name=="("||r.type.isError)&&(r=r.parent||r),r.name!="ArgList")return!1;let n=(t=r.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const hg=new N4,AP=["Declaration"];function CP(r){for(let e=r;;){if(e.type.isTop)return e;if(!(e=e.parent))return r}}function c5(r,e,t){if(e.to-e.from>4096){let n=hg.get(e);if(n)return n;let i=[],l=new Set,o=e.cursor(ht.IncludeAnonymous);if(o.firstChild())do for(let c of c5(r,o.node,t))l.has(c.label)||(l.add(c.label),i.push(c));while(o.nextSibling());return hg.set(e,i),i}else{let n=[],i=new Set;return e.cursor().iterate(l=>{var o;if(t(l)&&l.matchContext(AP)&&((o=l.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let c=r.sliceString(l.from,l.to);i.has(c)||(i.add(c),n.push({label:c,type:"variable"}))}}),n}}const TP=r=>e=>{let{state:t,pos:n}=e,i=Lt(t).resolveInner(n,-1),l=i.type.isError&&i.from==i.to-1&&t.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(l||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:lf(),validFor:si};if(i.name=="ValueName")return{from:i.from,options:ug,validFor:si};if(i.name=="PseudoClassName")return{from:i.from,options:cg,validFor:si};if(r(i)||(e.explicit||l)&&PP(i,t.doc))return{from:r(i)||l?i.from:n,options:c5(t.doc,CP(i),r),validFor:$P};if(i.name=="TagName"){for(let{parent:u}=i;u;u=u.parent)if(u.name=="Block")return{from:i.from,options:lf(),validFor:si};return{from:i.from,options:bP,validFor:si}}if(i.name=="AtKeyword")return{from:i.from,options:QP,validFor:si};if(!e.explicit)return null;let o=i.resolve(n),c=o.childBefore(n);return c&&c.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:cg,validFor:si}:c&&c.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:ug,validFor:si}:o.name=="Block"||o.name=="Styles"?{from:n,options:lf(),validFor:si}:null},ZP=TP(r=>r.name=="VariableName"),Su=vl.define({name:"css",parser:kP.configure({props:[ju.add({Declaration:zc()}),Vu.add({"Block KeyframeList":F4})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function u5(){return new _1(Su,Su.data.of({autocomplete:ZP}))}const MP=316,EP=317,fg=1,jP=2,VP=3,RP=4,LP=318,XP=320,NP=321,_P=5,zP=6,DP=0,c1=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],h5=125,IP=59,u1=47,WP=42,HP=43,YP=45,FP=60,BP=44,qP=63,UP=46,GP=91,KP=new B6({start:!1,shift(r,e){return e==_P||e==zP||e==XP?r:e==NP},strict:!1}),JP=new Bn((r,e)=>{let{next:t}=r;(t==h5||t==-1||e.context)&&r.acceptToken(LP)},{contextual:!0,fallback:!0}),e9=new Bn((r,e)=>{let{next:t}=r,n;c1.indexOf(t)>-1||t==u1&&((n=r.peek(1))==u1||n==WP)||t!=h5&&t!=IP&&t!=-1&&!e.context&&r.acceptToken(MP)},{contextual:!0}),t9=new Bn((r,e)=>{r.next==GP&&!e.context&&r.acceptToken(EP)},{contextual:!0}),n9=new Bn((r,e)=>{let{next:t}=r;if(t==HP||t==YP){if(r.advance(),t==r.next){r.advance();let n=!e.context&&e.canShift(fg);r.acceptToken(n?fg:jP)}}else t==qP&&r.peek(1)==UP&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(VP))},{contextual:!0});function of(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}const r9=new Bn((r,e)=>{if(r.next!=FP||!e.dialectEnabled(DP)||(r.advance(),r.next==u1))return;let t=0;for(;c1.indexOf(r.next)>-1;)r.advance(),t++;if(of(r.next,!0)){for(r.advance(),t++;of(r.next,!1);)r.advance(),t++;for(;c1.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==BP)return;for(let n=0;;n++){if(n==7){if(!of(r.next,!0))return;break}if(r.next!="extends".charCodeAt(n))break;r.advance(),t++}}r.acceptToken(RP,-t)}),i9=Zu({"get set async static":V.modifier,"for while do if else switch try catch finally return throw break continue default case defer":V.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":V.operatorKeyword,"let var const using function class extends":V.definitionKeyword,"import export from":V.moduleKeyword,"with debugger new":V.keyword,TemplateString:V.special(V.string),super:V.atom,BooleanLiteral:V.bool,this:V.self,null:V.null,Star:V.modifier,VariableName:V.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":V.function(V.variableName),VariableDefinition:V.definition(V.variableName),Label:V.labelName,PropertyName:V.propertyName,PrivatePropertyName:V.special(V.propertyName),"CallExpression/MemberExpression/PropertyName":V.function(V.propertyName),"FunctionDeclaration/VariableDefinition":V.function(V.definition(V.variableName)),"ClassDeclaration/VariableDefinition":V.definition(V.className),"NewExpression/VariableName":V.className,PropertyDefinition:V.definition(V.propertyName),PrivatePropertyDefinition:V.definition(V.special(V.propertyName)),UpdateOp:V.updateOperator,"LineComment Hashbang":V.lineComment,BlockComment:V.blockComment,Number:V.number,String:V.string,Escape:V.escape,ArithOp:V.arithmeticOperator,LogicOp:V.logicOperator,BitOp:V.bitwiseOperator,CompareOp:V.compareOperator,RegExp:V.regexp,Equals:V.definitionOperator,Arrow:V.function(V.punctuation),": Spread":V.punctuation,"( )":V.paren,"[ ]":V.squareBracket,"{ }":V.brace,"InterpolationStart InterpolationEnd":V.special(V.brace),".":V.derefOperator,", ;":V.separator,"@":V.meta,TypeName:V.typeName,TypeDefinition:V.definition(V.typeName),"type enum interface implements namespace module declare":V.definitionKeyword,"abstract global Privacy readonly override":V.modifier,"is keyof unique infer asserts":V.operatorKeyword,JSXAttributeValue:V.attributeValue,JSXText:V.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":V.angleBracket,"JSXIdentifier JSXNameSpacedName":V.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":V.attributeName,"JSXBuiltin/JSXIdentifier":V.standard(V.tagName)}),s9={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},l9={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},o9={__proto__:null,"<":193},a9=kl.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0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=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:KP,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[i9],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'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r",tokenizers:[e9,t9,n9,r9,2,3,4,5,6,7,8,9,10,11,12,13,14,JP,new yu("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new yu("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:r=>s9[r]||-1},{term:343,get:r=>l9[r]||-1},{term:95,get:r=>o9[r]||-1}],tokenPrec:15201}),f5=[En("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),En("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),En("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),En("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),En("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),En(`try {
87
- \${}
88
- } catch (\${error}) {
89
- \${}
90
- }`,{label:"try",detail:"/ catch block",type:"keyword"}),En("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),En(`if (\${}) {
91
- \${}
92
- } else {
93
- \${}
94
- }`,{label:"if",detail:"/ else block",type:"keyword"}),En(`class \${name} {
95
- constructor(\${params}) {
96
- \${}
97
- }
98
- }`,{label:"class",detail:"definition",type:"keyword"}),En('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),En('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],c9=f5.concat([En("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),En("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),En("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),dg=new N4,d5=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function yo(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}const u9=["FunctionDeclaration"],h9={FunctionDeclaration:yo("function"),ClassDeclaration:yo("class"),ClassExpression:()=>!0,EnumDeclaration:yo("constant"),TypeAliasDeclaration:yo("type"),NamespaceDeclaration:yo("namespace"),VariableDefinition(r,e){r.matchContext(u9)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function p5(r,e){let t=dg.get(e);if(t)return t;let n=[],i=!0;function l(o,c){let u=r.sliceString(o.from,o.to);n.push({label:u,type:c})}return e.cursor(ht.IncludeAnonymous).iterate(o=>{if(i)i=!1;else if(o.name){let c=h9[o.name];if(c&&c(o,l)||d5.has(o.name))return!1}else if(o.to-o.from>8192){for(let c of p5(r,o.node))n.push(c);return!1}}),dg.set(e,n),n}const pg=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,m5=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function f9(r){let e=Lt(r.state).resolveInner(r.pos,-1);if(m5.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&pg.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let i=e;i;i=i.parent)d5.has(i.name)&&(n=n.concat(p5(r.state.doc,i)));return{options:n,from:t?e.from:r.pos,validFor:pg}}const qr=vl.define({name:"javascript",parser:a9.configure({props:[ju.add({IfStatement:zc({except:/^\s*({|else\b)/}),TryStatement:zc({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:rb,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:n?1:2)*r.unit},Block:nb({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":zc({except:/^\s*{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),Vu.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":F4,BlockComment(r){return{from:r.from+2,to:r.to-2}},JSXElement(r){let e=r.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=r.lastChild;return{from:e.to,to:t.type.isError?r.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(r){var e;let t=(e=r.firstChild)===null||e===void 0?void 0:e.nextSibling,n=r.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?r.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),O5={test:r=>/^JSX/.test(r.name),facet:I4({commentTokens:{block:{open:"{/*",close:"*/}"}}})},g5=qr.configure({dialect:"ts"},"typescript"),x5=qr.configure({dialect:"jsx",props:[N1.add(r=>r.isTop?[O5]:void 0)]}),y5=qr.configure({dialect:"jsx ts",props:[N1.add(r=>r.isTop?[O5]:void 0)]},"typescript");let v5=r=>({label:r,type:"keyword"});const S5="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(v5),d9=S5.concat(["declare","implements","private","protected","public"].map(v5));function w5(r={}){let e=r.jsx?r.typescript?y5:x5:r.typescript?g5:qr,t=r.typescript?c9.concat(d9):f5.concat(S5);return new _1(e,[qr.data.of({autocomplete:B7(m5,F7(t))}),qr.data.of({autocomplete:f9}),r.jsx?O9:[]])}function p9(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function mg(r,e,t=r.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return r.sliceString(n.from,Math.min(n.to,t));return""}const m9=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),O9=$e.inputHandler.of((r,e,t,n,i)=>{if((m9?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!qr.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:o}=l,c=o.changeByRange(u=>{var f;let{head:m}=u,O=Lt(o).resolveInner(m-1,-1),x;if(O.name=="JSXStartTag"&&(O=O.parent),!(o.doc.sliceString(m-1,m)!=n||O.name=="JSXAttributeValue"&&O.to>m)){if(n==">"&&O.name=="JSXFragmentTag")return{range:u,changes:{from:m,insert:"</>"}};if(n=="/"&&O.name=="JSXStartCloseTag"){let S=O.parent,w=S.parent;if(w&&S.from==m-2&&((x=mg(o.doc,w.firstChild,m))||((f=w.firstChild)===null||f===void 0?void 0:f.name)=="JSXFragmentTag")){let b=`${x}>`;return{range:G.cursor(m+b.length,-1),changes:{from:m,insert:b}}}}else if(n==">"){let S=p9(O);if(S&&S.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(m,m+2))&&(x=mg(o.doc,S,m)))return{range:u,changes:{from:m,insert:`</${x}>`}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,o.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),vo=["_blank","_self","_top","_parent"],af=["ascii","utf-8","utf-16","latin1","latin1"],cf=["get","post","put","delete"],uf=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Hn=["true","false"],Te={},g9={a:{attrs:{href:null,ping:null,type:null,media:null,target:vo,hreflang:null}},abbr:Te,address:Te,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Te,aside:Te,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Te,base:{attrs:{href:null,target:vo}},bdi:Te,bdo:Te,blockquote:{attrs:{cite:null}},body:Te,br:Te,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:uf,formmethod:cf,formnovalidate:["novalidate"],formtarget:vo,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Te,center:Te,cite:Te,code:Te,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Te,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Te,div:Te,dl:Te,dt:Te,em:Te,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Te,figure:Te,footer:Te,form:{attrs:{action:null,name:null,"accept-charset":af,autocomplete:["on","off"],enctype:uf,method:cf,novalidate:["novalidate"],target:vo}},h1:Te,h2:Te,h3:Te,h4:Te,h5:Te,h6:Te,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Te,hgroup:Te,hr:Te,html:{attrs:{manifest:null}},i:Te,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:uf,formmethod:cf,formnovalidate:["novalidate"],formtarget:vo,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Te,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Te,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Te,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:af,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Te,noscript:Te,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Te,param:{attrs:{name:null,value:null}},pre:Te,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Te,rt:Te,ruby:Te,samp:Te,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:af}},section:Te,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Te,source:{attrs:{src:null,type:null,media:null}},span:Te,strong:Te,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Te,summary:Te,sup:Te,table:Te,tbody:Te,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Te,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Te,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Te,time:{attrs:{datetime:null}},title:Te,tr:Te,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Te,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Te},k5={accesskey:null,class:null,contenteditable:Hn,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Hn,autocorrect:Hn,autocapitalize:Hn,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Hn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Hn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Hn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Hn,"aria-hidden":Hn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Hn,"aria-multiselectable":Hn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Hn,"aria-relevant":null,"aria-required":Hn,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},b5="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(r=>"on"+r);for(let r of b5)k5[r]=null;class wu{constructor(e,t){this.tags={...g9,...e},this.globalAttrs={...k5,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}wu.default=new wu;function bl(r,e,t=r.length){if(!e)return"";let n=e.firstChild,i=n&&n.getChild("TagName");return i?r.sliceString(i.from,Math.min(i.to,t)):""}function Ql(r,e=!1){for(;r;r=r.parent)if(r.name=="Element")if(e)e=!1;else return r;return null}function Q5(r,e,t){let n=t.tags[bl(r,Ql(e))];return(n==null?void 0:n.children)||t.allTags}function sd(r,e){let t=[];for(let n=Ql(e);n&&!n.type.isTop;n=Ql(n.parent)){let i=bl(r,n);if(i&&n.lastChild.name=="CloseTag")break;i&&t.indexOf(i)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(i)}return t}const $5=/^[:\-\.\w\u00b7-\uffff]*$/;function Og(r,e,t,n,i){let l=/\s*>/.test(r.sliceDoc(i,i+5))?"":">",o=Ql(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:i,options:Q5(r.doc,o,e).map(c=>({label:c,type:"type"})).concat(sd(r.doc,t).map((c,u)=>({label:"/"+c,apply:"/"+c+l,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function gg(r,e,t,n){let i=/\s*>/.test(r.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:sd(r.doc,e).map((l,o)=>({label:l,apply:l+i,type:"type",boost:99-o})),validFor:$5}}function x9(r,e,t,n){let i=[],l=0;for(let o of Q5(r.doc,t,e))i.push({label:"<"+o,type:"type"});for(let o of sd(r.doc,t))i.push({label:"</"+o+">",type:"type",boost:99-l++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function y9(r,e,t,n,i){let l=Ql(t),o=l?e.tags[bl(r.doc,l)]:null,c=o&&o.attrs?Object.keys(o.attrs):[],u=o&&o.globalAttrs===!1?c:c.length?c.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:i,options:u.map(f=>({label:f,type:"property"})),validFor:$5}}function v9(r,e,t,n,i){var l;let o=(l=t.parent)===null||l===void 0?void 0:l.getChild("AttributeName"),c=[],u;if(o){let f=r.sliceDoc(o.from,o.to),m=e.globalAttrs[f];if(!m){let O=Ql(t),x=O?e.tags[bl(r.doc,O)]:null;m=(x==null?void 0:x.attrs)&&x.attrs[f]}if(m){let O=r.sliceDoc(n,i).toLowerCase(),x='"',S='"';/^['"]/.test(O)?(u=O[0]=='"'?/^[^"]*$/:/^[^']*$/,x="",S=r.sliceDoc(i,i+1)==O[0]?"":O[0],O=O.slice(1),n++):u=/^[^\s<>='"]*$/;for(let w of m)c.push({label:w,apply:x+w+S,type:"constant"})}}return{from:n,to:i,options:c,validFor:u}}function S9(r,e){let{state:t,pos:n}=e,i=Lt(t).resolveInner(n,-1),l=i.resolve(n);for(let o=n,c;l==i&&(c=i.childBefore(o));){let u=c.lastChild;if(!u||!u.type.isError||u.from<u.to)break;l=i=c,o=u.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?gg(t,i,i.from,n):Og(t,r,i,i.from,n):i.name=="StartTag"||i.name=="IncompleteTag"?Og(t,r,i,n,n):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?gg(t,i,n,n):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?y9(t,r,i,i.name=="AttributeName"?i.from:n,n):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?v9(t,r,i,i.name=="Is"?n:i.from,n):e.explicit&&(l.name=="Element"||l.name=="Text"||l.name=="Document")?x9(t,r,i,n):null}function w9(r){let{extraTags:e,extraGlobalAttributes:t}=r,n=t||e?new wu(e,t):wu.default;return i=>S9(n,i)}const k9=qr.parser.configure({top:"SingleExpression"}),P5=[{tag:"script",attrs:r=>r.type=="text/typescript"||r.lang=="ts",parser:g5.parser},{tag:"script",attrs:r=>r.type=="text/babel"||r.type=="text/jsx",parser:x5.parser},{tag:"script",attrs:r=>r.type=="text/typescript-jsx",parser:y5.parser},{tag:"script",attrs(r){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(r.type)},parser:k9},{tag:"script",attrs(r){return!r.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(r.type)},parser:qr.parser},{tag:"style",attrs(r){return(!r.lang||r.lang=="css")&&(!r.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(r.type))},parser:Su.parser}],A5=[{name:"style",parser:Su.parser.configure({top:"Styles"})}].concat(b5.map(r=>({name:r,parser:qr.parser}))),C5=vl.define({name:"html",parser:U$.configure({props:[ju.add({Element(r){let e=/^(\s*)(<\/)?/.exec(r.textAfter);return r.node.to<=r.pos+e[0].length?r.continue():r.lineIndent(r.node.from)+(e[2]?0:r.unit)},"OpenTag CloseTag SelfClosingTag"(r){return r.column(r.node.from)+r.unit},Document(r){if(r.pos+/\s*/.exec(r.textAfter)[0].length<r.node.to)return r.continue();let e=null,t;for(let n=r.node;;){let i=n.lastChild;if(!i||i.name!="Element"||i.to!=n.to)break;e=n=i}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?r.lineIndent(e.from)+r.unit:null}}),Vu.add({Element(r){let e=r.firstChild,t=r.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:r.to}}}),t6.add({"OpenTag CloseTag":r=>r.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Hc=C5.configure({wrap:i5(P5,A5)});function xg(r={}){let e="",t;r.matchClosingTags===!1&&(e="noMatch"),r.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(r.nestedLanguages&&r.nestedLanguages.length||r.nestedAttributes&&r.nestedAttributes.length)&&(t=i5((r.nestedLanguages||[]).concat(P5),(r.nestedAttributes||[]).concat(A5)));let n=t?C5.configure({wrap:t,dialect:e}):e?Hc.configure({dialect:e}):Hc;return new _1(n,[Hc.data.of({autocomplete:w9(r)}),r.autoCloseTags!==!1?b9:[],w5().support,u5().support])}const yg=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),b9=$e.inputHandler.of((r,e,t,n,i)=>{if(r.composing||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Hc.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:o}=l,c=o.changeByRange(u=>{var f,m,O;let x=o.doc.sliceString(u.from-1,u.to)==n,{head:S}=u,w=Lt(o).resolveInner(S,-1),b;if(x&&n==">"&&w.name=="EndTag"){let $=w.parent;if(((m=(f=$.parent)===null||f===void 0?void 0:f.lastChild)===null||m===void 0?void 0:m.name)!="CloseTag"&&(b=bl(o.doc,$.parent,S))&&!yg.has(b)){let T=S+(o.doc.sliceString(S,S+1)===">"?1:0),_=`</${b}>`;return{range:u,changes:{from:S,to:T,insert:_}}}}else if(x&&n=="/"&&w.name=="IncompleteCloseTag"){let $=w.parent;if(w.from==S-2&&((O=$.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(b=bl(o.doc,$,S))&&!yg.has(b)){let T=S+(o.doc.sliceString(S,S+1)===">"?1:0),_=`${b}>`;return{range:G.cursor(S+_.length,-1),changes:{from:S,to:T,insert:_}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,o.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function Q9(r){switch(r){case"html":return xg();case"css":return u5();case"javascript":case"js":case"typescript":case"ts":return w5({typescript:r==="typescript"||r==="ts"});default:return xg()}}function $9(r){var n;const e=((n=r.split(".").pop())==null?void 0:n.toLowerCase())??"";return{html:"html",htm:"html",css:"css",js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",json:"javascript"}[e]??"html"}const P9=p.memo(function({content:e,filePath:t,language:n,onChange:i,readOnly:l=!1}){const o=p.useRef(null),c=p.useRef(null),u=p.useRef(i);u.current=i;const f=p.useCallback(m=>{if(o.current&&(o.current.destroy(),o.current=null),!m)return;c.current=m;const O=n??(t?$9(t):"html"),x=$e.updateListener.of(w=>{w.docChanged&&u.current&&u.current(w.state.doc.toString())}),S=it.create({doc:e,extensions:[Sk(),ok(),bk(),zb(),pb(),sb(),$b(),aQ(),kQ(),j1.of([...fQ,...H7,...WQ,...Ub]),Q9(O),i$,x,it.readOnly.of(l),$e.theme({"&":{height:"100%"},".cm-scroller":{overflow:"auto"}})]});o.current=new $e({state:S,parent:m})},[e,t,n,l]);return y.jsx("div",{ref:f,className:"h-full w-full overflow-hidden"})}),ol={width:1920,height:1080};function A9(r){const e=Number.isFinite(r.stageWidth)&&r.stageWidth>0?r.stageWidth:ol.width,t=Number.isFinite(r.stageHeight)&&r.stageHeight>0?r.stageHeight:ol.height,n=r.cardWidth/e,i=r.cardHeight/t;return Math.min(n,i)}function C9({projectId:r,comp:e,isActive:t,onSelect:n}){const[i,l]=p.useState(!1),[o,c]=p.useState(ol),u=p.useRef(null),f=()=>{u.current=setTimeout(()=>l(!0),300)},m=()=>{u.current&&(clearTimeout(u.current),u.current=null),l(!1)},O=e.replace(/^compositions\//,"").replace(/\.html$/,""),x=`/api/projects/${r}/thumbnail/${e}?t=2`,S=`/api/projects/${r}/preview/comp/${e}`,w=A9({cardWidth:80,cardHeight:45,stageWidth:o.width,stageHeight:o.height});return y.jsxs("div",{onClick:n,onPointerEnter:f,onPointerLeave:m,className:`w-full text-left px-2 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer ${t?"bg-studio-accent/10 border-l-2 border-studio-accent":"border-l-2 border-transparent hover:bg-neutral-800/50"}`,children:[y.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[i&&y.jsx("iframe",{src:S,sandbox:"allow-scripts allow-same-origin",className:"absolute left-0 top-0 border-none pointer-events-none",style:{transformOrigin:"0 0",width:o.width,height:o.height,transform:`scale(${w})`},onLoad:b=>{var $;try{const _=($=b.currentTarget.contentDocument)==null?void 0:$.querySelector("[data-composition-id]"),A=Number(_==null?void 0:_.getAttribute("data-width"))||ol.width,C=Number(_==null?void 0:_.getAttribute("data-height"))||ol.height;c({width:A,height:C})}catch{c(ol)}},tabIndex:-1}),y.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:y.jsx("img",{src:x,alt:O,loading:"lazy",className:"w-full h-full object-contain",onError:b=>{b.target.style.display="none"}})})]}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:O}),y.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})]})}const T9=p.memo(function({projectId:e,compositions:t,activeComposition:n,onSelect:i}){return t.length===0?y.jsx("div",{className:"flex-1 flex items-center justify-center px-4",children:y.jsx("p",{className:"text-xs text-neutral-600 text-center",children:"No compositions found"})}):y.jsx("div",{className:"flex-1 overflow-y-auto",children:t.map(l=>y.jsx(C9,{projectId:e,comp:l,isActive:n===l,onSelect:()=>i(l)},l))})});function T5({src:r}){const[e,t]=p.useState(null);return p.useEffect(()=>{const n=document.createElement("video");n.crossOrigin="anonymous",n.muted=!0,n.preload="metadata";const i=document.createElement("canvas"),l=i.getContext("2d"),o=()=>{n.src="",n.load()};return n.addEventListener("loadedmetadata",()=>{n.currentTime=Math.min(2,n.duration*.1||2)}),n.addEventListener("seeked",()=>{l&&(i.width=n.videoWidth,i.height=n.videoHeight,l.drawImage(n,0,0),t(i.toDataURL("image/jpeg",.7)),o())}),n.addEventListener("error",o),n.src=r,n.load(),o},[r]),e?y.jsx("img",{src:e,alt:"",draggable:!1,className:"w-full h-full object-contain"}):y.jsx("div",{className:"w-full h-full bg-neutral-800 animate-pulse"})}function Z9({serveUrl:r,name:e,isImage:t,isVideo:n,isAudio:i}){return y.jsxs(y.Fragment,{children:[t&&y.jsx("img",{src:r,alt:e,loading:"lazy",className:"w-full h-full object-contain",onError:l=>{l.target.style.display="none"}}),n&&y.jsx(T5,{src:r}),i&&y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-purple-400",children:[y.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("circle",{cx:"6",cy:"18",r:"3"}),y.jsx("circle",{cx:"18",cy:"16",r:"3"})]})}),!t&&!n&&!i&&y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[y.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}function M9({projectId:r,asset:e,onCopy:t,isCopied:n,onDelete:i,onRename:l}){const[o,c]=p.useState(!1),[u,f]=p.useState(null),[m,O]=p.useState(!1),[x,S]=p.useState(""),[w,b]=p.useState(!1),$=e.split("/").pop()??e,T=`/api/projects/${r}/preview/${e}`,_=x1.test(e);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{draggable:!0,onClick:()=>t(e),onDragStart:A=>{A.dataTransfer.effectAllowed="copy",A.dataTransfer.setData(mf,JSON.stringify({path:e})),A.dataTransfer.setData("text/plain",e)},onContextMenu:A=>{A.preventDefault(),f({x:A.clientX,y:A.clientY})},onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),className:`w-full text-left px-2 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer ${n?"bg-studio-accent/10 border-l-2 border-studio-accent":"border-l-2 border-transparent hover:bg-neutral-800/50"}`,children:[y.jsxs("div",{className:"w-16 h-10 rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[y.jsx(Z9,{serveUrl:T,name:$,isImage:g1.test(e),isVideo:_,isAudio:y1.test(e)}),_&&o&&y.jsx("video",{src:T,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"})]}),y.jsx("div",{className:"min-w-0 flex-1",children:m?y.jsx("input",{autoFocus:!0,value:x,onChange:A=>S(A.target.value),onKeyDown:A=>{if(A.key==="Enter"){A.preventDefault();const C=x.trim();if(C&&C!==$){const j=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,j+C)}O(!1)}else A.key==="Escape"&&O(!1)},onBlur:()=>{const A=x.trim();if(A&&A!==$){const C=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,C+A)}O(!1)},onClick:A=>A.stopPropagation(),className:"w-full bg-neutral-800 text-neutral-200 text-[11px] px-1.5 py-0.5 rounded border border-neutral-600 outline-none focus:border-studio-accent",spellCheck:!1}):y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:$}),n?y.jsx("span",{className:"text-[9px] text-studio-accent",children:"Copied!"}):y.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})})]}),u&&y.jsx("div",{className:"fixed inset-0 z-[200]",onClick:()=>f(null),onContextMenu:A=>{A.preventDefault(),f(null)},children:y.jsxs("div",{className:"absolute bg-neutral-900 border border-neutral-700 rounded-lg shadow-xl py-1 min-w-[140px] text-xs",style:{left:u.x,top:u.y},children:[y.jsx("button",{onClick:A=>{A.stopPropagation(),t(e),f(null)},className:"w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 transition-colors",children:"Copy path"}),l&&y.jsx("button",{onClick:A=>{A.stopPropagation(),S($),O(!0),f(null)},className:"w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 transition-colors",children:"Rename"}),i&&y.jsx("button",{onClick:A=>{A.stopPropagation(),b(!0),f(null)},className:"w-full text-left px-3 py-1.5 text-red-400 hover:bg-neutral-800 transition-colors",children:"Delete"})]})}),w&&y.jsxs("div",{className:"px-2 py-1.5 bg-red-950/30 border-l-2 border-red-500 flex items-center justify-between gap-2",children:[y.jsxs("span",{className:"text-[10px] text-red-400 truncate",children:["Delete ",$,"?"]}),y.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[y.jsx("button",{onClick:A=>{A.stopPropagation(),i==null||i(e),b(!1)},className:"px-2 py-0.5 text-[10px] rounded bg-red-600 text-white hover:bg-red-500 transition-colors",children:"Delete"}),y.jsx("button",{onClick:A=>{A.stopPropagation(),b(!1)},className:"px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors",children:"Cancel"})]})]})]})}const E9=p.memo(function({projectId:e,assets:t,onImport:n,onDelete:i,onRename:l}){const o=p.useRef(null),[c,u]=p.useState(!1),[f,m]=p.useState(null),O=p.useCallback(w=>{w.preventDefault(),u(!1),w.dataTransfer.files.length&&(n==null||n(w.dataTransfer.files))},[n]),x=p.useCallback(async w=>{try{await navigator.clipboard.writeText(w),m(w),setTimeout(()=>m(null),1500)}catch{}},[]),S=t.filter(w=>Rg.test(w));return y.jsxs("div",{className:`flex-1 flex flex-col min-h-0 transition-colors ${c?"bg-studio-accent/[0.05]":""}`,onDragOver:w=>{w.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:O,children:[n&&y.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800/40 flex-shrink-0",children:[y.jsxs("button",{onClick:()=>{var w;return(w=o.current)==null?void 0:w.click()},className:"w-full flex items-center justify-center gap-1.5 px-2 py-1.5 text-[11px] rounded-lg border border-dashed border-neutral-700/50 text-neutral-500 hover:text-neutral-300 hover:border-neutral-600 transition-colors",children:[y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:y.jsx("path",{d:"M12 5v14M5 12h14"})}),"Import media"]}),y.jsx("input",{ref:o,type:"file",accept:"video/*,image/*,audio/*",multiple:!0,className:"hidden",onChange:w=>{var b;(b=w.target.files)!=null&&b.length&&(n(w.target.files),w.target.value="")}})]}),y.jsx("div",{className:"flex-1 overflow-y-auto",children:S.length===0?y.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[y.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[y.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("polyline",{points:"17 8 12 3 7 8",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15",strokeLinecap:"round"})]}),y.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"Drop media files here"})]}):S.map(w=>y.jsx(M9,{projectId:e,asset:w,onCopy:x,isCopied:f===w,onDelete:i,onRename:l},w))})]})}),Z5=r=>({title:t,...n})=>y.jsx(r,{alt:t,"aria-label":t,"aria-hidden":t?void 0:!0,...n}),j9=Z5(v3),V9=Z5(zg),Gt=14,sn="duotone";function M5({path:r}){var n;const e=((n=r.split(".").pop())==null?void 0:n.toLowerCase())??"",t="flex-shrink-0";return e==="html"?y.jsx(Q3,{size:Gt,weight:sn,color:"#E44D26",className:t}):e==="css"?y.jsx(b3,{size:Gt,weight:sn,color:"#264DE4",className:t}):e==="js"||e==="mjs"||e==="cjs"?y.jsx(P3,{size:Gt,weight:sn,color:"#F0DB4F",className:t}):e==="jsx"?y.jsx(A3,{size:Gt,weight:sn,color:"#61DAFB",className:t}):e==="ts"||e==="mts"?y.jsx(M3,{size:Gt,weight:sn,color:"#3178C6",className:t}):e==="tsx"?y.jsx(E3,{size:Gt,weight:sn,color:"#3178C6",className:t}):e==="json"?y.jsx(k3,{size:Gt,weight:sn,color:"#4ADE80",className:t}):e==="svg"?y.jsx(Z3,{size:Gt,weight:sn,color:"#F97316",className:t}):e==="md"||e==="mdx"?y.jsx(C3,{size:Gt,weight:sn,color:"#9CA3AF",className:t}):e==="txt"?y.jsx(j3,{size:Gt,weight:sn,color:"#9CA3AF",className:t}):e==="png"?y.jsx(T3,{size:Gt,weight:sn,color:"#22C55E",className:t}):e==="jpg"||e==="jpeg"?y.jsx($3,{size:Gt,weight:sn,color:"#22C55E",className:t}):e==="webp"||e==="gif"||e==="ico"?y.jsx(L3,{size:Gt,weight:sn,color:"#22C55E",className:t}):e==="mp4"||e==="webm"||e==="mov"?y.jsx(V3,{size:Gt,weight:sn,color:"#A855F7",className:t}):e==="mp3"||e==="wav"||e==="ogg"||e==="m4a"?y.jsx(D3,{size:Gt,weight:sn,color:"#3CE6AC",className:t}):e==="woff"||e==="woff2"||e==="ttf"||e==="otf"?y.jsx(_3,{size:Gt,weight:sn,color:"#6B7280",className:t}):y.jsx(w3,{size:Gt,weight:sn,color:"#6B7280",className:t})}function R9(r){const e={name:"",fullPath:"",children:new Map,isFile:!1};for(const t of r){const n=t.split("/");let i=e;for(let l=0;l<n.length;l++){const o=n[l],c=l===n.length-1,u=n.slice(0,l+1).join("/");i.children.has(o)||i.children.set(o,{name:o,fullPath:u,children:new Map,isFile:c}),i=i.children.get(o),c&&(i.isFile=!0)}}return e}function E5(r){return Array.from(r.values()).sort((e,t)=>e.name==="index.html"?-1:t.name==="index.html"?1:!e.isFile&&t.isFile?-1:e.isFile&&!t.isFile?1:e.name.localeCompare(t.name))}function ld(r,e){if(!e)return!1;if(r.fullPath===e)return!0;for(const t of r.children.values())if(ld(t,e))return!0;return!1}function L9({state:r,onClose:e,onNewFile:t,onNewFolder:n,onRename:i,onDuplicate:l,onDelete:o}){const c=p.useRef(null);p.useEffect(()=>{const O=S=>{c.current&&!c.current.contains(S.target)&&e()},x=S=>{S.key==="Escape"&&e()};return document.addEventListener("mousedown",O),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",x)}},[e]);const u=Math.min(r.x,window.innerWidth-180),f=Math.min(r.y,window.innerHeight-200),m=r.targetIsFolder?r.targetPath:r.targetPath.includes("/")?r.targetPath.slice(0,r.targetPath.lastIndexOf("/")):"";return y.jsxs("div",{ref:c,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[160px]",style:{left:u,top:f},children:[r.targetIsFolder&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{t(r.targetPath),e()},children:[y.jsx(dO,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{n(r.targetPath),e()},children:[y.jsx(o8,{size:12,weight:"duotone",className:"text-neutral-500"}),"New Folder"]}),y.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),!r.targetIsFolder&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{t(m),e()},children:[y.jsx(dO,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),y.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{i(r.targetPath),e()},children:[y.jsx(X3,{size:12,weight:"duotone",className:"text-neutral-500"}),"Rename"]}),!r.targetIsFolder&&y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{l(r.targetPath),e()},children:[y.jsx(S3,{size:12,weight:"duotone",className:"text-neutral-500"}),"Duplicate"]}),y.jsx("div",{className:"border-t border-neutral-700 my-1"}),y.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-red-900/30 cursor-pointer text-left",onClick:()=>{o(r.targetPath),e()},children:[y.jsx(z3,{size:12,weight:"duotone"}),"Delete"]})]})}function ku({defaultValue:r,depth:e,isFolder:t,onCommit:n,onCancel:i}){const l=p.useRef(null),o=p.useRef(!1),[c,u]=p.useState(r);p.useEffect(()=>{const x=l.current;if(x)if(x.focus(),r&&r.includes(".")){const S=r.lastIndexOf(".");x.setSelectionRange(0,S)}else x.select()},[r]);const f=x=>{o.current||(o.current=!0,n(x))},m=x=>{if(x.key==="Enter"){x.preventDefault();const S=c.trim();S&&!(/[/\\]/.test(S)||S.includes(".."))?f(S):i()}else x.key==="Escape"&&(x.preventDefault(),i())},O=()=>{const x=c.trim();x&&x!==r&&!(/[/\\]/.test(x)||x.includes(".."))?f(x):i()};return y.jsxs("div",{className:"flex items-center gap-2 py-0.5 min-h-7",style:{paddingLeft:`${8+e*12+(t?0:14)}px`},children:[t?y.jsx(R3,{size:Gt,weight:"duotone",color:"#6B7280",className:"flex-shrink-0"}):y.jsx(M5,{path:c}),y.jsx("input",{ref:l,value:c,onChange:x=>u(x.target.value),onKeyDown:m,onBlur:O,className:"flex-1 min-w-0 bg-neutral-800 text-neutral-200 text-xs px-1.5 py-0.5 rounded border border-neutral-600 outline-none focus:border-[#3CE6AC]",spellCheck:!1})]})}function X9({name:r,onConfirm:e,onCancel:t}){const n=p.useRef(null);return p.useEffect(()=>{const i=o=>{o.key==="Escape"&&t()},l=o=>{n.current&&!n.current.contains(o.target)&&t()};return document.addEventListener("keydown",i),document.addEventListener("mousedown",l),()=>{document.removeEventListener("keydown",i),document.removeEventListener("mousedown",l)}},[t]),y.jsxs("div",{ref:n,className:"mx-1 my-0.5 p-2 bg-neutral-800 border border-neutral-700 rounded-md text-xs",children:[y.jsxs("p",{className:"text-neutral-300 mb-2",children:["Delete ",y.jsx("span",{className:"font-medium text-neutral-100",children:r}),"?"]}),y.jsxs("div",{className:"flex gap-1.5",children:[y.jsx("button",{onClick:t,className:"flex-1 px-2 py-1 rounded bg-neutral-700 text-neutral-300 hover:bg-neutral-600 transition-colors",children:"Cancel"}),y.jsx("button",{onClick:e,className:"flex-1 px-2 py-1 rounded bg-red-900/60 text-red-300 hover:bg-red-800/60 transition-colors",children:"Delete"})]})]})}function j5({node:r,depth:e,activeFile:t,onSelectFile:n,defaultOpen:i,onContextMenu:l,inlineInput:o,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O}){const[x,S]=p.useState(i),w=p.useCallback(()=>S(A=>!A),[]),b=p.useMemo(()=>E5(r.children),[r.children]),$=x?j9:V9,T=O===r.fullPath;return(o==null?void 0:o.mode)==="rename"&&o.originalPath===r.fullPath?y.jsx(ku,{defaultValue:o.originalName??r.name,depth:e,isFolder:!0,onCommit:A=>{var C;(C=o==null?void 0:o.onCommit)==null||C.call(o,A)},onCancel:()=>{var A;(A=o==null?void 0:o.onCancel)==null||A.call(o)}}):y.jsxs(y.Fragment,{children:[y.jsxs("button",{draggable:!0,onDragStart:A=>c(A,r.fullPath),onClick:w,onContextMenu:A=>{A.preventDefault(),l(A,r.fullPath,!0)},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),u(A,r.fullPath)},onDrop:A=>{A.preventDefault(),A.stopPropagation(),f(A,r.fullPath)},onDragLeave:m,className:`w-full flex items-center gap-1.5 px-2.5 py-1 min-h-7 text-left text-xs text-neutral-400 hover:bg-neutral-800/30 hover:text-neutral-300 transition-colors ${T?"bg-[#3CE6AC]/10 outline outline-1 outline-[#3CE6AC]/40":""}`,style:{paddingLeft:`${8+e*12}px`},children:[y.jsx($,{size:10,className:"flex-shrink-0 text-neutral-600"}),y.jsx("span",{className:"truncate font-medium",children:r.name})]}),x&&y.jsxs(y.Fragment,{children:[o&&(o.mode==="new-file"||o.mode==="new-folder")&&o.parentPath===r.fullPath&&y.jsx(ku,{defaultValue:"",depth:e+1,isFolder:o.mode==="new-folder",onCommit:A=>{var C;(C=o==null?void 0:o.onCommit)==null||C.call(o,A)},onCancel:()=>{var A;(A=o==null?void 0:o.onCancel)==null||A.call(o)}}),b.map(A=>A.isFile&&A.children.size===0?y.jsx(h1,{node:A,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:o,onDragStart:c},A.fullPath):A.children.size>0?y.jsx(j5,{node:A,depth:e+1,activeFile:t,onSelectFile:n,defaultOpen:ld(A,t),onContextMenu:l,inlineInput:o,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O},A.fullPath):y.jsx(h1,{node:A,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:o,onDragStart:c},A.fullPath))]})]})}function h1({node:r,depth:e,activeFile:t,onSelectFile:n,onContextMenu:i,inlineInput:l,onDragStart:o}){const c=r.fullPath===t;return(l==null?void 0:l.mode)==="rename"&&l.originalPath===r.fullPath?y.jsx(ku,{defaultValue:l.originalName??r.name,depth:e,isFolder:!1,onCommit:f=>{var m;(m=l==null?void 0:l.onCommit)==null||m.call(l,f)},onCancel:()=>{var f;(f=l==null?void 0:l.onCancel)==null||f.call(l)}}):y.jsxs("button",{draggable:!0,onDragStart:f=>o(f,r.fullPath),onClick:()=>n(r.fullPath),onContextMenu:f=>{f.preventDefault(),i(f,r.fullPath,!1)},className:`w-full flex items-center gap-2 py-1 min-h-7 text-left transition-all text-xs ${c?"bg-neutral-800/60 text-neutral-200":"text-neutral-500 hover:bg-neutral-800/30 hover:text-neutral-300"}`,style:{paddingLeft:`${8+e*12+14}px`},children:[y.jsx(M5,{path:r.name}),y.jsx("span",{className:"truncate",children:r.name})]})}const N9=p.memo(function({files:e,activeFile:t,onSelectFile:n,onCreateFile:i,onCreateFolder:l,onDeleteFile:o,onRenameFile:c,onDuplicateFile:u,onMoveFile:f,onImportFiles:m}){const O=p.useMemo(()=>R9(e),[e]),x=p.useMemo(()=>E5(O.children),[O]),[S,w]=p.useState(null),[b,$]=p.useState(null),[T,_]=p.useState(null),[A,C]=p.useState(null),j=p.useRef(null),N=!!(i||l||o||c||u),M=p.useCallback((Q,z,re)=>{N&&(Q.preventDefault(),w({x:Q.clientX,y:Q.clientY,targetPath:z,targetIsFolder:re}))},[N]),R=p.useCallback(()=>w(null),[]),F=p.useCallback(Q=>{$({parentPath:Q,mode:"new-file",onCommit:z=>{const re=Q?`${Q}/${z}`:z;i==null||i(re),$(null)},onCancel:()=>$(null)})},[i]),pe=p.useCallback(Q=>{$({parentPath:Q,mode:"new-folder",onCommit:z=>{const re=Q?`${Q}/${z}`:z;l==null||l(re),$(null)},onCancel:()=>$(null)})},[l]),J=p.useCallback(Q=>{const z=Q.includes("/")?Q.slice(Q.lastIndexOf("/")+1):Q,re=Q.includes("/")?Q.slice(0,Q.lastIndexOf("/")):"";$({parentPath:re,mode:"rename",originalPath:Q,originalName:z,onCommit:ge=>{if(ge!==z){const te=re?`${re}/${ge}`:ge;c==null||c(Q,te)}$(null)},onCancel:()=>$(null)})},[c]),ie=p.useCallback(Q=>{u==null||u(Q)},[u]),B=p.useCallback(Q=>{_(Q)},[]),ce=p.useCallback(()=>{T&&(o==null||o(T),_(null))},[T,o]),ue=p.useCallback(()=>{_(null)},[]),he=p.useCallback((Q,z)=>{j.current=z,Q.dataTransfer.effectAllowed="move",Q.dataTransfer.setData("text/plain",z)},[]),se=p.useCallback((Q,z)=>{C(z)},[]),W=p.useCallback((Q,z)=>{if(Q.dataTransfer.files.length>0&&!j.current){Q.preventDefault(),m==null||m(Q.dataTransfer.files,z||void 0),C(null);return}const re=j.current;if(!re||!f){C(null);return}const ge=re.includes("/")?re.slice(re.lastIndexOf("/")+1):re,te=z?`${z}/${ge}`:ge;te!==re&&!z.startsWith(re+"/")&&f(re,te),C(null),j.current=null},[f,m]),Y=p.useCallback(()=>{C(null)},[]),ee=p.useCallback(Q=>{N&&Q.target===Q.currentTarget&&(Q.preventDefault(),w({x:Q.clientX,y:Q.clientY,targetPath:"",targetIsFolder:!0}))},[N]);return y.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[N&&y.jsxs("div",{className:"flex items-center justify-between px-2.5 py-1.5 border-b border-neutral-800/50 flex-shrink-0",children:[y.jsx("span",{className:"text-[10px] font-semibold tracking-wider text-neutral-600 uppercase",children:"Files"}),y.jsxs("div",{className:"flex items-center gap-0.5",children:[y.jsx("button",{onClick:()=>F(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New File",children:y.jsx(N3,{size:12,weight:"bold"})}),y.jsx("button",{onClick:()=>pe(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New Folder",children:y.jsx(o8,{size:12,weight:"duotone"})})]})]}),y.jsxs("div",{className:`flex-1 overflow-y-auto py-1 transition-colors ${A===""?"bg-[#3CE6AC]/5 outline outline-1 outline-[#3CE6AC]/30 -outline-offset-1":""}`,onContextMenu:ee,onDragOver:Q=>{Q.preventDefault(),Q.target===Q.currentTarget&&C("")},onDragLeave:Q=>{Q.target===Q.currentTarget&&C(null)},onDrop:Q=>{Q.preventDefault(),W(Q,"")},children:[b&&(b.mode==="new-file"||b.mode==="new-folder")&&b.parentPath===""&&y.jsx(ku,{defaultValue:"",depth:0,isFolder:b.mode==="new-folder",onCommit:Q=>{var z;return(z=b.onCommit)==null?void 0:z.call(b,Q)},onCancel:()=>{var Q;return(Q=b.onCancel)==null?void 0:Q.call(b)}}),x.map(Q=>Q.isFile&&Q.children.size===0?y.jsx(h1,{node:Q,depth:0,activeFile:t,onSelectFile:n,onContextMenu:M,inlineInput:b,onDragStart:he},Q.fullPath):y.jsx(j5,{node:Q,depth:0,activeFile:t,onSelectFile:n,defaultOpen:ld(Q,t),onContextMenu:M,inlineInput:b,onDragStart:he,onDragOver:se,onDrop:W,onDragLeave:Y,dragOverFolder:A},Q.fullPath))]}),T&&y.jsx("div",{className:"border-t border-neutral-800/50 flex-shrink-0",children:y.jsx(X9,{name:T.includes("/")?T.slice(T.lastIndexOf("/")+1):T,onConfirm:ce,onCancel:ue})}),S&&y.jsx(L9,{state:S,onClose:R,onNewFile:F,onNewFolder:pe,onRename:J,onDuplicate:ie,onDelete:B})]})}),V5="hf-studio-sidebar-tab";function _9(){const r=localStorage.getItem(V5);return r==="assets"?"assets":r==="code"?"code":"compositions"}const z9=p.memo(function({width:e=240,projectId:t,compositions:n,assets:i,activeComposition:l,onSelectComposition:o,onImportFiles:c,fileTree:u,editingFile:f,onSelectFile:m,onCreateFile:O,onCreateFolder:x,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:$,codeChildren:T,onLint:_,linting:A}){const[C,j]=p.useState(_9),N=p.useCallback(M=>{j(M),localStorage.setItem(V5,M)},[]);return Vt(()=>{const M=R=>{!R.metaKey&&!R.ctrlKey||(R.key==="1"&&(R.preventDefault(),N("compositions")),R.key==="2"&&(R.preventDefault(),N("assets")))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)}),y.jsxs("div",{className:"flex flex-col h-full bg-neutral-950 border-r border-neutral-800/50",style:{width:e},children:[y.jsxs("div",{className:"flex border-b border-neutral-800/50 flex-shrink-0",children:[y.jsx("button",{type:"button",onClick:()=>N("code"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${C==="code"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Code"}),y.jsx("button",{type:"button",onClick:()=>N("compositions"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${C==="compositions"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Compositions"}),y.jsx("button",{type:"button",onClick:()=>N("assets"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${C==="assets"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Assets"})]}),C==="compositions"&&y.jsx(T9,{projectId:t,compositions:n,activeComposition:l,onSelect:o}),C==="assets"&&y.jsx(E9,{projectId:t,assets:i,onImport:c,onDelete:S,onRename:w}),C==="code"&&y.jsxs("div",{className:"flex flex-1 min-h-0",children:[((u==null?void 0:u.length)??0)>0&&y.jsx("div",{className:"w-[160px] flex-shrink-0 border-r border-neutral-800 overflow-y-auto",children:y.jsx(N9,{files:u??[],activeFile:(f==null?void 0:f.path)??null,onSelectFile:m??(()=>{}),onCreateFile:O,onCreateFolder:x,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:$,onImportFiles:c})}),y.jsx("div",{className:"flex-1 overflow-hidden min-w-0",children:T??y.jsx("div",{className:"flex items-center justify-center h-full text-neutral-600 text-sm",children:"Select a file to edit"})})]}),_&&y.jsx("div",{className:"border-t border-neutral-800 p-2 flex-shrink-0",children:y.jsxs("button",{onClick:_,disabled:A,className:"w-full flex items-center justify-center gap-1.5 px-2 py-1.5 rounded-md text-[11px] font-medium text-neutral-500 hover:text-amber-300 hover:bg-neutral-800 transition-colors disabled:opacity-40",children:[y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[y.jsx("path",{d:"M9 11l3 3L22 4"}),y.jsx("path",{d:"M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"})]}),A?"Linting…":"Lint"]})})]})});function D9(r){if(r<1e3)return`${r}ms`;const e=Math.round(r/1e3);return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function I9(r){const e=Date.now()-r;return e<6e4?"just now":e<36e5?`${Math.floor(e/6e4)}m ago`:`${Math.floor(e/36e5)}h ago`}const W9=p.memo(function({job:e,projectId:t,onDelete:n}){const[i,l]=p.useState(!1),o=`/api/projects/${t}/renders/file/${e.filename}`,c=p.useCallback(()=>{window.open(o,"_blank")},[o]),u=p.useCallback(O=>{O.stopPropagation();const x=document.createElement("a");x.href=o,x.download=e.filename,x.click()},[o,e.filename]),f=o,m=e.status==="complete";return y.jsx("div",{onPointerEnter:()=>l(!0),onPointerLeave:()=>l(!1),onClick:m?c:void 0,className:["px-3 py-2.5 border-b border-neutral-800/30 last:border-0 transition-colors duration-150",m?"cursor-pointer hover:bg-neutral-800/30":""].filter(Boolean).join(" "),children:y.jsxs("div",{className:"flex items-center gap-2.5",children:[y.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[m&&y.jsxs(y.Fragment,{children:[i&&y.jsx("video",{src:f,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"}),y.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:y.jsx(T5,{src:f})})]}),e.status==="rendering"&&y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx("div",{className:"w-2 h-2 rounded-full bg-studio-accent animate-pulse"})}),e.status==="failed"&&y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"})}),e.status==="cancelled"&&y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx("div",{className:"w-2 h-2 rounded-full bg-neutral-600"})})]}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate",children:e.filename}),e.durationMs&&y.jsx("span",{className:"text-[9px] text-neutral-600 flex-shrink-0",children:D9(e.durationMs)})]}),e.status==="rendering"&&y.jsxs("div",{className:"mt-1",children:[y.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[y.jsx("span",{className:"text-[9px] text-neutral-500",children:e.stage||"Rendering"}),y.jsxs("span",{className:"text-[9px] font-mono text-studio-accent",children:[e.progress,"%"]})]}),y.jsx("div",{className:"w-full h-1 bg-neutral-800 rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-studio-accent rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),e.status==="failed"&&e.error&&y.jsx("span",{className:"text-[9px] text-red-400 mt-0.5 block",children:e.error}),e.status!=="rendering"&&y.jsx("span",{className:"text-[9px] text-neutral-600",children:I9(e.createdAt)})]}),i&&y.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[m&&y.jsx("button",{onClick:u,className:"p-1 rounded text-neutral-500 hover:text-green-400 transition-colors",title:"Download",children:y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),y.jsx("polyline",{points:"7 10 12 15 17 10"}),y.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),y.jsx("button",{onClick:O=>{O.stopPropagation(),n()},className:"p-1 rounded text-neutral-500 hover:text-red-400 transition-colors",title:"Remove",children:y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:y.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]})})}),hf={mp4:{label:"MP4",desc:"Best for general use. Smallest file, universal playback."},mov:{label:"MOV (ProRes 4444)",desc:"Transparent video. Works in CapCut, Final Cut Pro, Premiere, DaVinci Resolve, After Effects. Large files."},webm:{label:"WebM (VP9)",desc:"Transparent video for web. Smaller than MOV but limited editor support."}};function H9({format:r}){const[e,t]=p.useState(!1),n=p.useRef(void 0),i=()=>{clearTimeout(n.current),t(!0)},l=()=>{n.current=setTimeout(()=>t(!1),120)};p.useEffect(()=>()=>clearTimeout(n.current),[]);const o=hf[r];return y.jsxs("div",{className:"relative",onPointerEnter:i,onPointerLeave:l,children:[y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-neutral-600 hover:text-neutral-400 transition-colors cursor-help",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"}),y.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),e&&y.jsxs("div",{className:"absolute top-full right-0 mt-1.5 w-52 p-2 rounded bg-neutral-900 border border-neutral-700 shadow-lg z-50",children:[y.jsx("p",{className:"text-[10px] font-semibold text-neutral-200 mb-0.5",children:o.label}),y.jsx("p",{className:"text-[9px] text-neutral-400 leading-tight",children:o.desc}),y.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-neutral-800",children:["mp4","mov","webm"].filter(c=>c!==r).map(c=>y.jsxs("p",{className:"text-[9px] text-neutral-500 leading-relaxed",children:[y.jsx("span",{className:"text-neutral-400 font-medium",children:hf[c].label})," — ",hf[c].desc]},c))})]})]})}const vg=[{value:"draft",label:"Draft",title:"Fast render, smaller file"},{value:"standard",label:"Standard",title:"Good quality, balanced file size"},{value:"high",label:"High Quality",title:"Best quality, larger file"}];function Y9({onStartRender:r,isRendering:e}){var c;const[t,n]=p.useState("mp4"),[i,l]=p.useState("standard"),o=t!=="mov";return y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(H9,{format:t}),o&&y.jsx("select",{value:i,onChange:u=>l(u.target.value),disabled:e,title:(c=vg.find(u=>u.value===i))==null?void 0:c.title,className:"h-5 px-1 text-[10px] rounded-l bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:vg.map(u=>y.jsx("option",{value:u.value,title:u.title,children:u.label},u.value))}),y.jsxs("select",{value:t,onChange:u=>n(u.target.value),disabled:e,className:`h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50 ${o?"":"rounded-l"}`,children:[y.jsx("option",{value:"mp4",children:"MP4"}),y.jsx("option",{value:"mov",children:"MOV"}),y.jsx("option",{value:"webm",children:"WebM"})]}),y.jsx("button",{onClick:()=>r(t,i),disabled:e,className:"flex items-center gap-1 px-2 py-0.5 text-[10px] font-semibold rounded-r bg-studio-accent text-[#09090B] hover:brightness-110 transition-colors disabled:opacity-50",children:e?"Rendering...":"Export"})]})}const F9=p.memo(function({jobs:e,projectId:t,onDelete:n,onClearCompleted:i,onStartRender:l,isRendering:o}){const c=p.useRef(null);p.useEffect(()=>{c.current&&c.current.scrollTo({top:c.current.scrollHeight,behavior:"smooth"})},[e.length]);const u=e.filter(f=>f.status!=="rendering").length;return y.jsxs("div",{className:"flex flex-col h-full",children:[y.jsx("div",{className:"flex items-center justify-end px-3 py-2 border-b border-neutral-800/50 flex-shrink-0",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[u>0&&y.jsx("button",{onClick:i,className:"text-[10px] text-neutral-600 hover:text-neutral-400 transition-colors",children:"Clear"}),y.jsx(Y9,{onStartRender:l,isRendering:o})]})}),y.jsx("div",{ref:c,className:"flex-1 overflow-y-auto",children:e.length===0?y.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[y.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[y.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",strokeLinecap:"round",strokeLinejoin:"round"})]}),y.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"No renders yet"})]}):e.map(f=>y.jsx(W9,{job:f,projectId:t,onDelete:()=>n(f.id)},f.id))})]})});function B9(r){const[e,t]=p.useState([]),n=p.useRef(null),i=p.useRef(null),l=p.useCallback(async()=>{if(r)try{const f=await fetch(`/api/projects/${r}/renders`);if(!f.ok)return;const m=await f.json();Array.isArray(m.renders)&&t(O=>{const x=new Set(O.map(w=>w.id)),S=m.renders.filter(w=>!x.has(w.id)).map(w=>({id:w.id,status:w.status==="failed"?"failed":"complete",progress:100,filename:w.filename,createdAt:w.createdAt,durationMs:w.durationMs}));return[...O,...S]})}catch{}},[r]);p.useEffect(()=>{l()},[l]);const o=p.useCallback(async(f=30,m="standard",O="mp4")=>{if(!r)return;const x=Date.now();let S;try{S=await fetch(`/api/projects/${r}/render`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fps:f,quality:m,format:O})})}catch{const A={id:crypto.randomUUID(),status:"failed",progress:0,error:"Could not reach render server. Use `hyperframes render` from the CLI instead.",filename:"Export failed",createdAt:x};t(C=>[...C,A]);return}if(!S.ok){const A={id:crypto.randomUUID(),status:"failed",progress:0,error:`Server error (${S.status}). Check the terminal for details.`,filename:"Export failed",createdAt:x};t(C=>[...C,A]);return}const{jobId:w}=await S.json(),$={mp4:".mp4",webm:".webm",mov:".mov"}[O]??".mp4",T={id:w,status:"rendering",progress:0,filename:`${w}${$}`,createdAt:x};t(A=>[...A,T]),i.current=w;const _=new EventSource(`/api/render/${w}/progress`);return n.current=_,_.addEventListener("progress",A=>{try{const C=JSON.parse(A.data);t(j=>j.map(N=>N.id===w?{...N,progress:C.progress??N.progress,stage:C.stage??C.message??N.stage,status:C.status==="complete"?"complete":C.status==="failed"?"failed":N.status,durationMs:C.status==="complete"?Date.now()-x:void 0,error:C.error??N.error}:N)),(C.status==="complete"||C.status==="failed")&&(_.close(),i.current=null)}catch{}}),_.onerror=()=>{_.close(),t(A=>A.map(C=>C.id===w&&C.status==="rendering"?{...C,status:"failed",error:"Connection lost. Is the render server running?"}:C)),i.current=null},w},[r]),c=p.useCallback(async f=>{try{await fetch(`/api/render/${f}`,{method:"DELETE"})}catch{}t(m=>m.filter(O=>O.id!==f))},[]),u=p.useCallback(()=>{t(f=>f.filter(m=>m.status==="rendering"))},[]);return p.useEffect(()=>()=>{var f;(f=n.current)==null||f.close(),n.current=null},[r]),{jobs:e,startRender:o,deleteRender:c,clearCompleted:u,isRendering:e.some(f=>f.status==="rendering")}}const R5=2,q9=1,Sg=R5+q9;function U9(r,e){const t=[],n=Math.floor(r.length/e);if(n===0)return Array(e).fill(0);for(let l=0;l<e;l++){let o=0;const c=l*n,u=Math.min(c+n,r.length);for(let f=c;f<u;f++){const m=Math.abs(r[f]??0);m>o&&(o=m)}t.push(o)}const i=Math.max(...t,.001);return t.map(l=>l/i)}function G9(r,e){let t=0;for(let l=0;l<r.length;l++)t=(t<<5)-t+r.charCodeAt(l)|0;t=Math.abs(t)||42;const n=()=>(t=t*16807%2147483647,(t&2147483647)/2147483647),i=[];for(let l=0;l<e;l++){const o=l/e,c=.3+.3*Math.sin(o*Math.PI*3.2)+.2*Math.sin(o*Math.PI*7.1);i.push(Math.max(.05,Math.min(1,c*(.4+.6*n()))))}return i}const ff=new Map,K9=p.memo(function({audioUrl:e,label:t,labelColor:n}){const i=p.useRef(null),l=p.useRef(null),o=p.useRef(null),[c,u]=p.useState(ff.get(e)??null);p.useEffect(()=>{if(c||!e)return;const O=new AbortController;return fetch(e,{signal:O.signal}).then(x=>x.arrayBuffer()).then(x=>{const S=new AudioContext;return S.decodeAudioData(x).finally(()=>S.close())}).then(x=>{if(O.signal.aborted)return;const S=x.getChannelData(0),w=U9(S,4e3);ff.set(e,w),u(w)}).catch(()=>{if(O.signal.aborted)return;const x=G9(e,4e3);ff.set(e,x),u(x)}),()=>O.abort()},[e,c]);const f=p.useCallback(()=>{const O=i.current,x=l.current;if(!O||!x||!c)return;const S=O.clientWidth||400,w=Math.min(Math.floor(S/Sg),c.length);let b="";for(let $=0;$<w;$++){const T=Math.floor($/w*c.length),_=c[T]??0,A=Math.max(3,Math.round(_*100)),C=(.45+_*.4).toFixed(2);b+=`<div style="position:absolute;bottom:0;left:${$*Sg}px;width:${R5}px;height:${A}%;background:rgba(75,163,210,${C})"></div>`}x.innerHTML=b},[c]),m=p.useCallback(O=>{var x;(x=o.current)==null||x.disconnect(),i.current=O,O&&(f(),o.current=new ResizeObserver(()=>f()),o.current.observe(O))},[f]);return p.useEffect(()=>{f()},[f]),p.useEffect(()=>()=>{var O;(O=o.current)==null||O.disconnect()},[]),y.jsxs("div",{ref:m,className:"absolute inset-0 overflow-hidden",children:[y.jsx("div",{ref:l,className:"absolute left-0 right-0 bottom-0",style:{top:16}}),!c&&y.jsx("div",{className:"absolute left-0 right-0 bottom-0 animate-pulse",style:{top:16,background:"linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%)"}}),y.jsx("div",{className:"absolute top-0 left-0 right-0 px-1.5 py-0.5 z-10",children:y.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:n,textShadow:"0 1px 3px rgba(0,0,0,0.9)"},children:t})})]})});function wg({findings:r,projectId:e,onClose:t}){const n=r.filter(f=>f.severity==="error"),i=r.filter(f=>f.severity==="warning"),l=r.length>0,[o,c]=p.useState(!1),u=async()=>{const f=r.map(O=>{let x=`[${O.severity}] ${O.message}`;return O.file&&(x+=`
99
- File: ${O.file}`),O.fixHint&&(x+=`
100
- Fix: ${O.fixHint}`),x}),m=`Fix these HyperFrames lint issues for project "${e}":
101
-
102
- Project path: ${window.location.href}
103
-
104
- ${f.join(`
105
-
106
- `)}`;try{await navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return y.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t,children:y.jsxs("div",{className:"bg-neutral-950 border border-neutral-800 rounded-xl shadow-2xl w-full max-w-xl max-h-[80vh] flex flex-col overflow-hidden",onClick:f=>f.stopPropagation(),children:[y.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-neutral-800",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[l?y.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500/10 flex items-center justify-center",children:y.jsx(jc,{size:18,className:"text-red-400",weight:"fill"})}):y.jsx("div",{className:"w-8 h-8 rounded-full bg-studio-accent/10 flex items-center justify-center",children:y.jsx(Dg,{size:18,className:"text-studio-accent",weight:"fill"})}),y.jsxs("div",{children:[y.jsx("h2",{className:"text-sm font-semibold text-neutral-200",children:l?`${n.length} error${n.length!==1?"s":""}, ${i.length} warning${i.length!==1?"s":""}`:"All checks passed"}),y.jsx("p",{className:"text-xs text-neutral-500",children:"HyperFrame Lint Results"})]})]}),y.jsx("button",{onClick:t,className:"p-1.5 rounded-lg text-neutral-500 hover:text-neutral-200 hover:bg-neutral-800 transition-colors",children:y.jsx(p8,{size:16})})]}),l&&y.jsx("div",{className:"flex items-center justify-end px-5 py-2 border-b border-neutral-800/50",children:y.jsx("button",{onClick:u,className:`px-3 py-1 text-xs font-medium rounded-lg transition-colors ${o?"bg-green-600 text-white":"bg-studio-accent hover:bg-studio-accent/80 text-white"}`,children:o?"Copied!":"Copy to Agent"})}),y.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[!l&&y.jsx("div",{className:"py-8 text-center text-neutral-500 text-sm",children:"No errors or warnings found. Your composition looks good!"}),n.map((f,m)=>y.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(jc,{size:14,className:"text-red-400 flex-shrink-0 mt-0.5",weight:"fill"}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("p",{className:"text-sm text-neutral-200",children:f.message}),f.file&&y.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&y.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[y.jsx(Fc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),y.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`e-${m}`)),i.map((f,m)=>y.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(jc,{size:14,className:"text-amber-400 flex-shrink-0 mt-0.5"}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("p",{className:"text-sm text-neutral-300",children:f.message}),f.file&&y.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&y.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[y.jsx(Fc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),y.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`w-${m}`))]})]})})}function J9({projectId:r,filePath:e}){const t=`/api/projects/${r}/preview/${e}`,n=e.split("/").pop()??e;return g1.test(e)?y.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[y.jsx("img",{src:t,alt:n,className:"max-w-full max-h-[70%] object-contain rounded border border-neutral-800"}),y.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):x1.test(e)?y.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[y.jsx("video",{src:t,controls:!0,className:"max-w-full max-h-[70%] rounded border border-neutral-800"}),y.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):y1.test(e)?y.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-3",children:[y.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[y.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("circle",{cx:"6",cy:"18",r:"3"}),y.jsx("circle",{cx:"18",cy:"16",r:"3"})]}),y.jsx("audio",{src:t,controls:!0,className:"w-full max-w-[280px]"}),y.jsx("span",{className:"text-[11px] text-neutral-500 font-mono",children:e})]}):y.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-2",children:[y.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[y.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]}),y.jsx("span",{className:"text-sm text-neutral-400 font-medium",children:n}),y.jsx("span",{className:"text-[11px] text-neutral-600 font-mono",children:e}),y.jsx("span",{className:"text-[10px] text-neutral-600",children:"Binary file — preview not available"})]})}let eA=0;const kg={isEditMode:!1,model:null,selectedSegmentIds:new Set,selectedGroupId:null,sourceFilePath:null},ot=Mg(r=>({...kg,setEditMode:e=>r({isEditMode:e}),setModel:e=>r({model:e}),setSourceFilePath:e=>r({sourceFilePath:e}),selectSegment:(e,t=!1)=>r(n=>{if(t){const i=new Set(n.selectedSegmentIds);return i.has(e)?i.delete(e):i.add(e),{selectedSegmentIds:i,selectedGroupId:null}}return{selectedSegmentIds:new Set([e]),selectedGroupId:null}}),selectGroup:e=>r(t=>{var i;const n=(i=t.model)==null?void 0:i.groups.get(e);return n?{selectedSegmentIds:new Set(n.segmentIds),selectedGroupId:e}:{}}),selectAll:()=>r(e=>e.model?{selectedSegmentIds:new Set(e.model.segments.keys()),selectedGroupId:null}:{}),clearSelection:()=>r({selectedSegmentIds:new Set,selectedGroupId:null}),updateSegmentStyle:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.segments.get(e);if(!i)return{};const l=new Map(n.model.segments);return l.set(e,{...i,style:{...i.style,...t}}),{model:{...n.model,segments:l}}}),updateSegmentText:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.segments.get(e);if(!i)return{};const l=new Map(n.model.segments);return l.set(e,{...i,text:t}),{model:{...n.model,segments:l}}}),updateSegmentTiming:(e,t,n)=>r(i=>{if(!i.model)return{};const l=i.model.segments.get(e);if(!l)return{};const o=new Map(i.model.segments);return o.set(e,{...l,start:t,end:n}),{model:{...i.model,segments:o}}}),updateGroupStyle:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=new Map(n.model.groups);return l.set(e,{...i,style:{...i.style,...t}}),{model:{...n.model,groups:l}}}),updateGroupContainer:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=new Map(n.model.groups);return l.set(e,{...i,containerStyle:{...i.containerStyle,...t}}),{model:{...n.model,groups:l}}}),updateGroupAnimation:(e,t,n)=>r(i=>{if(!i.model)return{};const l=i.model.groups.get(e);if(!l)return{};const o=new Map(i.model.groups),c=l.animation[t],u=c!==null?{...c,...n}:n;return o.set(e,{...l,animation:{...l.animation,[t]:u}}),{model:{...i.model,groups:o}}}),splitGroup:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e);if(!i)return{};const l=i.segmentIds.indexOf(t);if(l<=0)return{};const o=i.segmentIds.slice(0,l),c=i.segmentIds.slice(l),u=`group-split-${eA++}`,f=new Map(n.model.groups);f.set(e,{...i,segmentIds:o}),f.set(u,{...i,id:u,segmentIds:c});const m=n.model.groupOrder.indexOf(e),O=[...n.model.groupOrder];O.splice(m+1,0,u);const x=new Map(n.model.segments);return c.forEach((S,w)=>{const b=x.get(S);b&&x.set(S,{...b,groupIndex:w})}),{model:{...n.model,groups:f,segments:x,groupOrder:O}}}),mergeGroups:(e,t)=>r(n=>{if(!n.model)return{};const i=n.model.groups.get(e),l=n.model.groups.get(t);if(!i||!l)return{};const o=[...i.segmentIds,...l.segmentIds],c=new Map(n.model.groups);c.set(e,{...i,segmentIds:o}),c.delete(t);const u=n.model.groupOrder.filter(O=>O!==t),f=new Map(n.model.segments);l.segmentIds.forEach((O,x)=>{const S=f.get(O);S&&f.set(O,{...S,groupIndex:i.segmentIds.length+x})});const m=n.selectedGroupId===t?null:n.selectedGroupId;return{model:{...n.model,groups:c,segments:f,groupOrder:u},selectedGroupId:m}}),updateSelectedStyle:e=>r(t=>{if(!t.model||t.selectedSegmentIds.size===0)return{};const n=new Map(t.model.segments);for(const i of t.selectedSegmentIds){const l=n.get(i);l&&n.set(i,{...l,style:{...l.style,...e}})}return{model:{...t.model,segments:n}}}),applyAnimationToAll:e=>r(t=>{if(!t.model)return{};const n=new Map(t.model.groups);for(const[i,l]of n)n.set(i,{...l,animation:e});return{model:{...t.model,groups:n}}}),reset:()=>r({...kg,selectedSegmentIds:new Set})}));function tA(r,e,t){var S,w;let n=null,i=null;try{n=r.contentDocument,i=r.contentWindow}catch{return[]}if(!n||!i)return[];const l=r.getBoundingClientRect(),o=t.getBoundingClientRect(),c=parseFloat(r.style.width)||l.width,u=l.width/c,f=l.left-o.left,m=l.top-o.top,O=n.querySelectorAll(".caption-group"),x=[];for(let b=0;b<e.groupOrder.length;b++){const $=e.groupOrder[b],T=e.groups.get($);if(!T)continue;const _=O[b];if(!_)continue;const A=i.getComputedStyle(_);if(parseFloat(A.opacity)<=.01||A.visibility==="hidden")continue;const C=[];for(const j of _.children){const N=j;if(N.dataset.captionWrapper==="true"){const M=N.querySelector(":scope > span");M&&C.push(M)}else N.tagName==="SPAN"&&C.push(N)}if(C.length===0&&((S=_.textContent)!=null&&S.trim())){const j=_.childNodes[0];if(j&&j.nodeType===Node.TEXT_NODE){const N=(j.textContent||"").split(/\s+/).filter(Boolean),M=n.createDocumentFragment();for(const R of N){const F=n.createElement("span");F.textContent=R+" ",F.style.display="inline",M.appendChild(F),C.push(F)}_.replaceChild(M,j)}else{const N=_.querySelector(":scope > span");if(N&&((w=N.textContent)!=null&&w.trim())){const M=N.textContent.split(/\s+/).filter(Boolean),R=n.createDocumentFragment();for(const F of M){const pe=n.createElement("span");pe.textContent=F+" ",pe.style.display="inline",R.appendChild(pe),C.push(pe)}N.replaceWith(R)}}}for(let j=0;j<T.segmentIds.length;j++){const N=T.segmentIds[j],M=C[j];if(!M)continue;const R=M.getBoundingClientRect();x.push({segmentId:N,groupId:$,groupIndex:b,wordIndex:j,x:R.left*u+f,y:R.top*u+m,width:R.width*u,height:R.height*u})}}return x}function Cc(r,e,t){let n=null;try{n=r.contentDocument}catch{return null}if(!n)return null;const i=n.querySelectorAll(".caption-group")[e];if(!i)return null;const l=[];for(const o of i.children){const c=o;if(c.dataset.captionWrapper==="true"){const u=c.querySelector(":scope > span");u&&l.push(u)}else c.tagName==="SPAN"&&l.push(c)}return l[t]??null}function Qo(r,e){const t=e.gsap;if(t&&t.getProperty)return{x:t.getProperty(r,"x")||0,y:t.getProperty(r,"y")||0,scale:t.getProperty(r,"scale")||1,rotation:t.getProperty(r,"rotation")||0};const n=r.style.transform||"",i=n.match(/scale\(([^)]+)\)/),l=n.match(/rotate\(([^)]+)deg\)/),o=n.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);return{x:o?parseFloat(o[1]):0,y:o?parseFloat(o[2]):0,scale:i?parseFloat(i[1]):1,rotation:l?parseFloat(l[1]):0}}function al(r){var i;if(r.dataset.captionWrapper==="true")return r;const e=r.parentElement;if(e&&e.dataset.captionWrapper==="true")return e;const n=r.ownerDocument.createElement("span");return n.style.display="inline-block",n.dataset.captionWrapper="true",(i=r.parentNode)==null||i.insertBefore(n,r),n.appendChild(r),n}function Tc(r,e,t,n,i,l){const o=al(r),c=e.gsap;c&&c.set?c.set(o,{x:t,y:n,scale:i,rotation:l}):o.style.transform=`translate(${t.toFixed(1)}px, ${n.toFixed(1)}px) rotate(${l.toFixed(1)}deg) scale(${i.toFixed(3)})`}function bg(r,e,t){const n=al(e),{x:i,y:l,scale:o,rotation:c}=Qo(n,t),u={};Math.abs(i)>.5&&(u.x=i),Math.abs(l)>.5&&(u.y=l),Math.abs(o-1)>.001&&(u.scaleX=o,u.scaleY=o),Math.abs(c)>.1&&(u.rotation=c),Object.keys(u).length>0&&ot.getState().updateSegmentStyle(r,u)}const Mn=8,df=20,nA=p.memo(function({iframeRef:e}){const t=ot(C=>C.isEditMode),n=ot(C=>C.model),i=ot(C=>C.selectedSegmentIds),l=ot(C=>C.selectSegment),o=ot(C=>C.clearSelection),[c,u]=p.useState([]),f=p.useRef(null),m=p.useRef(n);m.current=n;const O=p.useRef(null);Vt(()=>{if(!t)return;let C=[];const j=()=>{const R=e.current,F=m.current,pe=f.current;if(!R||!F||!pe)return;const J=tA(R,F,pe);J.length===C.length&&J.every((ie,B)=>Math.abs(ie.x-C[B].x)<.5&&Math.abs(ie.y-C[B].y)<.5)||(C=J,u(J))},N=setInterval(j,66);j();const M=R=>{const{selectedSegmentIds:F,model:pe}=ot.getState();if(F.size===0||!pe)return;const J=R.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(J))return;R.preventDefault();const ie=R.shiftKey?10:1,B=J==="ArrowLeft"?-ie:J==="ArrowRight"?ie:0,ce=J==="ArrowUp"?-ie:J==="ArrowDown"?ie:0,ue=e.current,he=ue==null?void 0:ue.contentWindow;if(!(!ue||!he))for(const se of F)for(let W=0;W<pe.groupOrder.length;W++){const Y=pe.groups.get(pe.groupOrder[W]);if(!Y)continue;const ee=Y.segmentIds.indexOf(se);if(ee<0)continue;const Q=Cc(ue,W,ee);if(!Q)continue;const z=al(Q),re=Qo(z,he);Tc(Q,he,re.x+B,re.y+ce,re.scale,re.rotation),bg(se,Q,he);break}};return window.addEventListener("keydown",M),()=>{clearInterval(N),window.removeEventListener("keydown",M)}});const x=p.useCallback(()=>{const C=e.current;if(!C)return 1;const j=C.getBoundingClientRect(),N=parseFloat(C.style.width)||j.width;return j.width/N},[e]),S=p.useCallback((C,j,N,M)=>{M.stopPropagation(),M.currentTarget.setPointerCapture(M.pointerId);const R=e.current;if(!R)return;const F=Cc(R,C,j),pe=R.contentWindow;if(!F||!pe)return;const J=Qo(al(F),pe);O.current={type:"move",wordEl:F,segmentId:N,startMX:M.clientX,startMY:M.clientY,origTX:J.x,origTY:J.y,origScale:J.scale,origRotation:J.rotation}},[e]),w=p.useCallback((C,j,N,M)=>{var ue;M.stopPropagation(),M.preventDefault(),M.currentTarget.setPointerCapture(M.pointerId);const R=e.current;if(!R)return;const F=Cc(R,C,j),pe=R.contentWindow;if(!F||!pe)return;const J=F.getBoundingClientRect(),ie=x(),B=J.left*ie+(((ue=e.current)==null?void 0:ue.getBoundingClientRect().left)??0)+J.width*ie/2,ce=Qo(al(F),pe);O.current={type:"scale",wordEl:F,segmentId:N,startMX:M.clientX,startDxFromCenter:M.clientX-B,origTX:ce.x,origTY:ce.y,origScale:ce.scale,origRotation:ce.rotation}},[e,x]),b=p.useCallback((C,j)=>{j.stopPropagation(),j.preventDefault(),j.currentTarget.setPointerCapture(j.pointerId);const N=e.current;if(!N)return;const M=Cc(N,C.groupIndex,C.wordIndex),R=N.contentWindow;if(!M||!R)return;const F=Qo(al(M),R);O.current={type:"rotate",wordEl:M,segmentId:C.segmentId,startMX:j.clientX,origTX:F.x,origTY:F.y,origRotation:F.rotation,origScale:F.scale}},[e]),$=p.useCallback(()=>{var C;try{return((C=e.current)==null?void 0:C.contentWindow)??null}catch{return null}},[e]),T=p.useCallback(C=>{const j=O.current;if(!j)return;const N=$();if(N){if(j.type==="move"){const M=x(),R=(C.clientX-j.startMX)/M,F=(C.clientY-j.startMY)/M;Tc(j.wordEl,N,j.origTX+R,j.origTY+F,j.origScale,j.origRotation)}else if(j.type==="scale"){const M=j.startMX-j.startDxFromCenter,R=Math.abs(j.startDxFromCenter),F=Math.abs(C.clientX-M),pe=R>5?F/R:1,J=Math.max(.1,j.origScale*pe);Tc(j.wordEl,N,j.origTX,j.origTY,J,j.origRotation)}else if(j.type==="rotate"){const R=(C.clientX-j.startMX)/200*90;Tc(j.wordEl,N,j.origTX,j.origTY,j.origScale,j.origRotation+R)}}},[x,$]),_=p.useCallback(()=>{const C=O.current;if(C){const j=$();j&&bg(C.segmentId,C.wordEl,j),O.current=null}},[$]),A=p.useCallback(C=>{C.target===C.currentTarget&&o()},[o]);return t?y.jsx("div",{ref:f,className:"absolute inset-0 z-50",style:{pointerEvents:"auto"},onClick:A,onPointerMove:T,onPointerUp:_,onLostPointerCapture:_,children:c.map(C=>{const j=i.has(C.segmentId);return y.jsx("div",{className:["absolute",j?"ring-2 ring-studio-accent":"hover:ring-1 hover:ring-white/30"].join(" "),style:{left:C.x,top:C.y,width:C.width,height:C.height,cursor:j?"move":"pointer",touchAction:"none",borderRadius:2},onClick:N=>{N.stopPropagation(),l(C.segmentId,N.shiftKey)},onPointerDown:N=>{j&&S(C.groupIndex,C.wordIndex,C.segmentId,N)},children:j&&y.jsxs(y.Fragment,{children:[y.jsx("div",{style:{position:"absolute",left:"50%",top:-df-Mn,marginLeft:-Mn/2,width:Mn,height:Mn,borderRadius:"50%",backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",cursor:"grab",touchAction:"none"},onPointerDown:N=>b(C,N)}),y.jsx("div",{style:{position:"absolute",left:"50%",top:-df,width:1,height:df,marginLeft:-.5,backgroundColor:"var(--hf-accent, #3CE6AC)",opacity:.5,pointerEvents:"none"}}),[{right:-Mn/2,bottom:-Mn/2,cursor:"nwse-resize"},{left:-Mn/2,top:-Mn/2,cursor:"nwse-resize"},{right:-Mn/2,top:-Mn/2,cursor:"nesw-resize"},{left:-Mn/2,bottom:-Mn/2,cursor:"nesw-resize"}].map((N,M)=>y.jsx("div",{style:{position:"absolute",...N,width:Mn,height:Mn,backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",borderRadius:2,touchAction:"none"},onPointerDown:R=>w(C.groupIndex,C.wordIndex,C.segmentId,R)},M))]})},C.segmentId)})}):null}),Ii="w-full bg-neutral-900 border border-neutral-800 rounded px-1.5 py-0.5 text-2xs text-neutral-200 font-mono outline-none focus:border-neutral-600";function f1({label:r,children:e}){return y.jsxs("div",{className:"mb-3",children:[y.jsx("div",{className:"flex items-center gap-1.5 mt-2 mb-1.5",children:y.jsx("span",{className:"text-2xs font-medium text-neutral-500 uppercase tracking-wider",children:r})}),y.jsx("div",{className:"space-y-1",children:e})]})}function ai({label:r,children:e}){return y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-2xs text-neutral-600 w-14 text-right flex-shrink-0",children:r}),y.jsx("div",{className:"flex-1 min-w-0",children:e})]})}const rA=["none","fade","slide-up","slide-down","slide-left","slide-right","pop","slam","bounce","typewriter","blur-in","flip","drop"],iA=["none","color-change","scale-pop","glow-pulse","underline-sweep","background-fill","bounce"],sA=["none","fade","slide-up","slide-down","slide-left","slide-right","scatter","drop","collapse","blur-out","shrink"],lA=["power1.out","power2.out","power3.out","power4.out","power1.in","power2.in","power3.in","power1.inOut","power2.inOut","back.out(1.7)","elastic.out(1,0.3)","bounce.out"];function pf({label:r,presets:e,animation:t,showIntensity:n,onChange:i}){const l=(t==null?void 0:t.preset)??"none",o=(t==null?void 0:t.duration)??.2,c=(t==null?void 0:t.ease)??"power2.out",u=(t==null?void 0:t.stagger)??0,f=(t==null?void 0:t.intensity)??1;return y.jsxs(f1,{label:r,children:[y.jsx(ai,{label:"Preset",children:y.jsx("select",{value:l,onChange:m=>i({preset:m.target.value}),className:Ii,children:e.map(m=>y.jsx("option",{value:m,children:m},m))})}),y.jsx(ai,{label:"Duration",children:y.jsx("input",{type:"number",value:o,step:.05,min:0,max:2,onChange:m=>i({duration:Number(m.target.value)}),className:Ii})}),y.jsx(ai,{label:"Ease",children:y.jsx("select",{value:c,onChange:m=>i({ease:m.target.value}),className:Ii,children:lA.map(m=>y.jsx("option",{value:m,children:m},m))})}),y.jsx(ai,{label:"Stagger",children:y.jsx("input",{type:"number",value:u,step:.02,min:0,max:.5,onChange:m=>i({stagger:Number(m.target.value)}),className:Ii})}),n&&y.jsx(ai,{label:"Intensity",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("input",{type:"range",min:0,max:1,step:.01,value:f,onChange:m=>i({intensity:Number(m.target.value)}),className:"flex-1 accent-studio-accent"}),y.jsx("span",{className:"text-2xs text-neutral-400 font-mono w-8 text-right flex-shrink-0",children:f.toFixed(2)})]})})]})}const oA=p.memo(function(){const e=ot(S=>S.model),t=ot(S=>S.selectedGroupId),n=ot(S=>S.selectedSegmentIds),i=ot(S=>S.updateGroupAnimation),l=ot(S=>S.applyAnimationToAll);let o=t;if(!o&&e&&n.size>0){const S=[...n][0];if(S){for(const[w,b]of e.groups)if(b.segmentIds.includes(S)){o=w;break}}}const c=o?e==null?void 0:e.groups.get(o):void 0,u=c==null?void 0:c.animation,f=p.useCallback(S=>{o&&i(o,"entrance",S)},[o,i]),m=p.useCallback(S=>{o&&i(o,"highlight",S)},[o,i]),O=p.useCallback(S=>{o&&i(o,"exit",S)},[o,i]),x=p.useCallback(()=>{u&&l(u)},[u,l]);return!c||!o||!u?y.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:y.jsx("p",{className:"text-xs text-neutral-500",children:"Select a caption group to edit animations"})}):y.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[y.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[y.jsx(pf,{label:"Entrance",presets:rA,animation:u.entrance,onChange:f}),y.jsx(pf,{label:"Highlight",presets:iA,animation:u.highlight,showIntensity:!0,onChange:m}),y.jsx(pf,{label:"Exit",presets:sA,animation:u.exit,onChange:O})]}),y.jsx("div",{className:"flex-shrink-0 px-3 py-2 border-t border-neutral-800",children:y.jsx("button",{type:"button",onClick:x,className:"w-full py-1.5 rounded border border-neutral-700 text-2xs text-neutral-300 hover:border-studio-accent/50 hover:text-studio-accent transition-colors",children:"Apply to all groups"})})]})}),aA=p.memo(function({iframeRef:e}){var N;const t=ot(M=>M.model),n=ot(M=>M.selectedSegmentIds),i=ot(M=>M.selectedGroupId),l=ot(M=>M.updateSelectedStyle),o=ot(M=>M.updateGroupStyle),[c,u]=p.useState("style"),f=n.size>0?[...n][0]:void 0,m=t==null?void 0:t.segments.get(f??"");let O=null;if(t&&f)for(const M of t.groupOrder){const R=t.groups.get(M);if(R&&R.segmentIds.includes(f)){O=M;break}}const x=O?(N=t==null?void 0:t.groups.get(O))==null?void 0:N.style:void 0,S=(m==null?void 0:m.style)??{},w={...x,...S},b=p.useCallback(M=>{var B,ce,ue;const R=e.current;if(!R||!t)return;let F=null;try{F=R.contentDocument}catch{return}if(!F)return;const pe=F.querySelectorAll(".caption-group"),J=[];for(const he of n)for(let se=0;se<t.groupOrder.length;se++){const W=t.groups.get(t.groupOrder[se]);if(!W)continue;const Y=W.segmentIds.indexOf(he);if(Y<0)continue;const ee=pe[se];if(!ee)continue;const Q=ee.children;let z=0;for(const re of Q){const ge=re;if(ge.dataset.captionWrapper==="true"){const te=ge.querySelector(":scope > span");if(te&&z===Y){J.push(te);break}}else if(ge.tagName==="SPAN"&&z===Y){J.push(ge);break}z++}break}if(M.x!==void 0||M.y!==void 0||M.scaleX!==void 0||M.scaleY!==void 0||M.rotation!==void 0)try{const he=(ce=(B=e.current)==null?void 0:B.contentWindow)==null?void 0:ce.gsap;if(he)for(const se of J){let W=se.parentElement;(!W||W.dataset.captionWrapper!=="true")&&(W=F.createElement("span"),W.style.display="inline-block",W.dataset.captionWrapper="true",(ue=se.parentNode)==null||ue.insertBefore(W,se),W.appendChild(se));const Y=he.getProperty(W,"x")||0,ee=he.getProperty(W,"y")||0,Q=he.getProperty(W,"scale")||1,z=he.getProperty(W,"rotation")||0;he.set(W,{x:M.x??Y,y:M.y??ee,scale:M.scaleX??Q,rotation:M.rotation??z})}}catch{}},[e,t,n]),$=p.useCallback(M=>{i?o(i,M):l(M),b(M)},[i,o,l,b]);if(n.size===0)return y.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:y.jsx("p",{className:"text-xs text-neutral-500",children:"Select caption words to edit their style"})});const T=w.x??0,_=w.y??0,A=w.rotation??0,C=w.scaleX??1,j=n.size===1?"1 word":`${n.size} words`;return y.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[y.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800 flex-shrink-0",children:[y.jsx("div",{className:"flex items-center justify-between mb-1.5",children:y.jsx("span",{className:"text-2xs text-neutral-500",children:j})}),y.jsxs("div",{className:"flex gap-1",children:[y.jsx("button",{type:"button",onClick:()=>u("style"),className:["flex-1 py-0.5 rounded text-2xs font-medium transition-colors",c==="style"?"bg-studio-accent/20 text-studio-accent border border-studio-accent/50":"text-neutral-500 border border-neutral-800 hover:text-neutral-300 hover:border-neutral-600"].join(" "),children:"Style"}),y.jsx("button",{type:"button",onClick:()=>u("animation"),className:["flex-1 py-0.5 rounded text-2xs font-medium transition-colors",c==="animation"?"bg-studio-accent/20 text-studio-accent border border-studio-accent/50":"text-neutral-500 border border-neutral-800 hover:text-neutral-300 hover:border-neutral-600"].join(" "),children:"Animation"})]})]}),c==="animation"&&y.jsx(oA,{}),c==="style"&&y.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[y.jsxs(f1,{label:"Position",children:[y.jsx(ai,{label:"X",children:y.jsx("input",{type:"number",value:T,onChange:M=>$({x:Number(M.target.value)}),className:Ii})}),y.jsx(ai,{label:"Y",children:y.jsx("input",{type:"number",value:_,onChange:M=>$({y:Number(M.target.value)}),className:Ii})})]}),y.jsxs(f1,{label:"Transform",children:[y.jsx(ai,{label:"Scale",children:y.jsx("input",{type:"number",value:C,step:.1,onChange:M=>$({scaleX:Number(M.target.value),scaleY:Number(M.target.value)}),className:Ii})}),y.jsx(ai,{label:"Rotation",children:y.jsx("input",{type:"number",value:A,onChange:M=>$({rotation:Number(M.target.value)}),className:Ii})})]})]})]})}),Qg=["#3CE6AC","#FF6B6B","#4ECDC4","#FFE66D","#A78BFA","#F472B6","#34D399","#FB923C","#60A5FA","#C084FC"],cA=p.memo(function({pixelsPerSecond:e,onSeek:t}){const n=ot(b=>b.model),i=ot(b=>b.selectedSegmentIds),l=ot(b=>b.selectSegment),o=ot(b=>b.updateSegmentTiming),c=ot(b=>b.splitGroup),u=p.useRef(null),f=p.useCallback((b,$,T,_,A)=>{b.stopPropagation(),b.preventDefault(),b.target.setPointerCapture(b.pointerId),u.current={segId:$,edge:T,originalStart:_,originalEnd:A,startX:b.clientX}},[]),m=p.useCallback(b=>{const $=u.current;if(!$)return;const T=(b.clientX-$.startX)/e;if($.edge==="start"){const _=Math.max(0,$.originalStart+T),A=Math.min(_,$.originalEnd-.05);o($.segId,A,$.originalEnd)}else{const _=Math.max($.originalStart+.05,$.originalEnd+T),A=Math.max(0,_);o($.segId,$.originalStart,A)}},[e,o]),O=p.useCallback(()=>{u.current=null},[]),x=p.useCallback((b,$)=>{b.stopPropagation(),l($,b.shiftKey)},[l]),S=p.useCallback((b,$,T)=>{b.stopPropagation(),c($,T)},[c]),w=p.useCallback(b=>{if(!t)return;const $=b.currentTarget.getBoundingClientRect(),T=b.clientX-$.left-32,_=Math.max(0,T/e);t(_)},[t,e]);return n?y.jsx("div",{className:"relative select-none overflow-x-auto",style:{height:40,minWidth:"100%"},onPointerMove:m,onPointerUp:O,onPointerLeave:O,onClick:w,children:n.groupOrder.map((b,$)=>{const T=n.groups.get(b);if(!T)return null;const _=Qg[$%Qg.length];return T.segmentIds.map(A=>{const C=n.segments.get(A);if(!C)return null;const j=32+C.start*e,N=Math.max((C.end-C.start)*e,4),M=i.has(A);return y.jsxs("div",{className:`absolute top-1 bottom-1 rounded flex items-center overflow-hidden cursor-pointer${M?" ring-1 ring-white/50 z-10":""}`,style:{left:j,width:N,backgroundColor:_,zIndex:M?10:1},onClick:R=>x(R,A),onDoubleClick:R=>S(R,b,A),children:[y.jsx("div",{className:"absolute left-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:R=>f(R,A,"start",C.start,C.end)}),y.jsx("span",{className:"flex-1 truncate px-2 pointer-events-none",style:{fontSize:9,color:"#000000",lineHeight:1},children:C.text}),y.jsx("div",{className:"absolute right-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:R=>f(R,A,"end",C.start,C.end)})]},A)})})}):null});function uA(r){const e=[];let t=0;for(const n of r.groupOrder){const i=r.groups.get(n);if(i)for(const l of i.segmentIds){const o=r.segments.get(l);if(o&&Object.keys(o.style).length>0){const c={wordIndex:t};o.wordId&&(c.wordId=o.wordId);const u=o.style;u.x!==void 0&&(c.x=u.x),u.y!==void 0&&(c.y=u.y),u.scaleX!==void 0&&(c.scale=u.scaleX),u.rotation!==void 0&&(c.rotation=u.rotation),u.activeColor!==void 0&&(c.activeColor=u.activeColor),u.dimColor!==void 0&&(c.dimColor=u.dimColor),u.opacity!==void 0&&(c.opacity=u.opacity),u.fontSize!==void 0&&(c.fontSize=u.fontSize),u.fontWeight!==void 0&&(c.fontWeight=u.fontWeight),u.fontFamily!==void 0&&(c.fontFamily=u.fontFamily),e.push(c)}t++}}return e}function hA(r){const e=p.useRef(r);e.current=r;const t=p.useRef(null),n=p.useRef(!1),i=p.useCallback(()=>{const o=ot.getState();if(!o.model||!o.sourceFilePath||!o.isEditMode)return;const c=e.current;if(!c)return;const u=uA(o.model);fetch(`/api/projects/${c}/files/${encodeURIComponent("caption-overrides.json")}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:JSON.stringify(u,null,2)}).catch(f=>console.warn("[captions] auto-save failed:",f))},[]);Vt(()=>{let o=ot.getState().model;const c=ot.subscribe(u=>{if(!(!u.isEditMode||u.model===o||!u.model)){if(o=u.model,n.current){n.current=!1;return}t.current&&clearTimeout(t.current),t.current=setTimeout(i,800)}});return()=>{c(),t.current&&clearTimeout(t.current)}});const l=p.useCallback(async()=>{const o=ot.getState();if(!o.model||!o.sourceFilePath)return;const c=e.current;if(c)try{const u=await fetch(`/api/projects/${c}/files/${encodeURIComponent("caption-overrides.json")}`);if(!u.ok)return;const f=await u.json();if(!f.content)return;const m=JSON.parse(f.content);if(!Array.isArray(m))return;const O=o.model,x=[];for(const w of O.groupOrder){const b=O.groups.get(w);if(b)for(const $ of b.segmentIds)x.push($)}const S=new Map(O.segments);for(const w of m){const b=x[w.wordIndex];if(!b)continue;const $=S.get(b);if(!$)continue;const T={...$.style};w.x!==void 0&&(T.x=w.x),w.y!==void 0&&(T.y=w.y),w.scale!==void 0&&(T.scaleX=w.scale,T.scaleY=w.scale),w.rotation!==void 0&&(T.rotation=w.rotation),w.activeColor!==void 0&&(T.activeColor=w.activeColor),w.dimColor!==void 0&&(T.dimColor=w.dimColor),w.opacity!==void 0&&(T.opacity=w.opacity),w.fontSize!==void 0&&(T.fontSize=w.fontSize),w.fontWeight!==void 0&&(T.fontWeight=w.fontWeight),w.fontFamily!==void 0&&(T.fontFamily=w.fontFamily),S.set(b,{...$,style:T})}n.current=!0,ot.getState().setModel({...O,segments:S})}catch{}},[]);return{save:i,loadOverrides:l}}const L5={fontFamily:"sans-serif",fontSize:48,fontWeight:700,fontStyle:"normal",textDecoration:"none",textTransform:"none",letterSpacing:0,lineHeight:1.2,color:"#ffffff",activeColor:"#ffffff",dimColor:"rgba(255, 255, 255, 0.3)",opacity:1,gradientFill:null,strokeWidth:0,strokeColor:"#000000",shadows:[],glow:null,x:0,y:0,rotation:0,scaleX:1,scaleY:1,skewX:0,skewY:0,transformOrigin:"center center",blendMode:"normal"},fA={backgroundColor:"transparent",backgroundOpacity:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,borderRadius:0,borderWidth:0,borderColor:"transparent",borderStyle:"solid",boxShadow:"none"},$g={preset:"fade",duration:.2,ease:"power2.out",stagger:0,staggerDirection:"start",intensity:1},Gs={entrance:$g,highlight:null,exit:{...$g}};function dA(r,e){const{width:t,height:n,duration:i,wordsPerGroup:l=5}=e,o=new Map,c=new Map,u=[];for(let f=0;f<r.length;f+=l){const m=r.slice(f,f+l),O=`group-${f/l}`,x=[];m.forEach((w,b)=>{const $=`segment-${f+b}`,T={id:$,wordId:w.id??`w${f+b}`,text:w.text,start:w.start,end:w.end,groupIndex:b,style:{},animation:{}};o.set($,T),x.push($)});const S={id:O,segmentIds:x,style:{...L5},animation:{entrance:{...Gs.entrance},highlight:Gs.highlight,exit:{...Gs.exit}},containerStyle:{...fA}};c.set(O,S),u.push(O)}return{width:t,height:n,duration:i,segments:o,groups:c,groupOrder:u,defaultAnimation:{entrance:{...Gs.entrance},highlight:Gs.highlight,exit:{...Gs.exit}}}}function pA(r){const e=/(?:const|let|var)\s+(?:TRANSCRIPT|script)\s*=\s*(\[[\s\S]*?\]);/,t=r.match(e);if(!t)return[];const n=t[1];try{return OA(n)}catch{return[]}}function mA(r,e,t,n,i,l){const o=pA(t);if(o.length===0)return null;const c=r.querySelectorAll(".caption-group, .caption-line, .caption-block"),u=r.querySelectorAll(".word, .caption-word");let f=5;c.length>0&&u.length>0&&(f=Math.round(u.length/c.length),f<1&&(f=1));const m=dA(o,{width:n,height:i,duration:l,wordsPerGroup:f}),O=u.item(0),x=c.item(0),S=O??x;if(S){const w=e.getComputedStyle(S),b={},$=parseFloat(w.fontSize);!isNaN($)&&$>0&&(b.fontSize=$);const T=w.fontWeight;if(T){const M=parseInt(T,10);b.fontWeight=isNaN(M)?T:M}const _=w.fontFamily;_&&(b.fontFamily=_);const A=w.color;A&&(b.color=A);const C=w.textTransform;(C==="none"||C==="uppercase"||C==="lowercase"||C==="capitalize")&&(b.textTransform=C);const j=w.letterSpacing;if(j&&j!=="normal"){const M=parseFloat(j),R=b.fontSize??L5.fontSize;!isNaN(M)&&R>0&&(b.letterSpacing=M/R)}const N={};if(x){const M=e.getComputedStyle(x),R=M.backgroundColor;R&&R!=="rgba(0, 0, 0, 0)"&&R!=="transparent"&&(N.backgroundColor=R,N.backgroundOpacity=1);const F=parseFloat(M.borderRadius);!isNaN(F)&&F>0&&(N.borderRadius=F);const pe=parseFloat(M.paddingTop),J=parseFloat(M.paddingRight),ie=parseFloat(M.paddingBottom),B=parseFloat(M.paddingLeft);isNaN(pe)||(N.paddingTop=pe),isNaN(J)||(N.paddingRight=J),isNaN(ie)||(N.paddingBottom=ie),isNaN(B)||(N.paddingLeft=B)}for(const M of m.groupOrder){const R=m.groups.get(M);R&&(R.style={...R.style,...b},R.containerStyle={...R.containerStyle,...N})}}return m}function OA(r){let e;try{e=JSON.parse(r)}catch{let n=r;n=n.replace(/'((?:[^'\\]|\\.)*)'/g,(i,l)=>`"${l.replace(/\\'/g,"'").replace(/"/g,'\\"')}"`),n=n.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/g,'$1"$2":'),n=n.replace(/,(\s*[}\]])/g,"$1"),e=JSON.parse(n)}if(!Array.isArray(e))return[];const t=[];for(const n of e)if(n!==null&&typeof n=="object"&&typeof n.text=="string"&&typeof n.start=="number"&&typeof n.end=="number"){const i=n;t.push({text:i.text,start:i.start,end:i.end})}return t}function Mo(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gA(r,e,t,n){const l=new RegExp(`(<[^>]*\\bid="${Mo(e)}"[^>]*)>`,"i").exec(r);if(!l)return r;const o=l[1];return X5(r,o,t,n)}function X5(r,e,t,n){if(!e)return r;const i=/\bstyle="([^"]*)"/.exec(e);if(i){const l=i[1],o=new Map;for(const f of l.split(";")){const m=f.indexOf(":");if(m<0)continue;const O=f.slice(0,m).trim(),x=f.slice(m+1).trim();O&&o.set(O,x)}o.set(t,n);const c=Array.from(o.entries()).map(([f,m])=>`${f}: ${m}`).join("; "),u=e.replace(/\bstyle="[^"]*"/,`style="${c}"`);return r.replace(e,u)}else{const l=e.replace(/>$/,"")+` style="${t}: ${n}"`;return r.replace(e,l)}}function xA(r,e,t,n){const i=od(r,e);if(!i)return r;const l=X5(i.tag,i.tag,t,n);return d1(r,i,l)}function d1(r,e,t){return`${r.slice(0,e.start)}${t}${r.slice(e.end)}`}function od(r,e){if(e.id){const l=new RegExp(`(<[^>]*\\bid="${Mo(e.id)}"[^>]*)>`,"i").exec(r);if((l==null?void 0:l.index)!=null)return{tag:l[1],start:l.index,end:l.index+l[1].length}}if(!e.selector)return null;const t=e.selector.match(/^\[data-composition-id="([^"]+)"\]$/);if(t){const i=t[1],o=new RegExp(`(<[^>]*\\bdata-composition-id="${Mo(i)}"[^>]*)>`,"i").exec(r);if((o==null?void 0:o.index)!=null)return{tag:o[1],start:o.index,end:o.index+o[1].length}}const n=e.selector.match(/^\.([a-zA-Z0-9_-]+)$/);if(n){const i=n[1],l=new RegExp(`(<[^>]*\\bclass=(["'])[^"']*\\b${Mo(i)}\\b[^"']*\\2[^>]*)>`,"gi"),o=e.selectorIndex??0;let c,u=0;for(;(c=l.exec(r))!==null;){if(u===o&&c.index!=null)return{tag:c[1],start:c.index,end:c.index+c[1].length};u+=1}}return null}function Pg(r,e,t){const n=od(r,e);if(!n)return;const i=t.startsWith("data-")?t:`data-${t}`,l=new RegExp(`\\b${i}="([^"]*)"`).exec(n.tag);return l==null?void 0:l[1]}function yA(r,e,t,n){const i=od(r,e);if(!i)return r;const l=t.startsWith("data-")?t:`data-${t}`,o=new RegExp(`\\b${l}="[^"]*"`),c=i.tag;if(o.test(c)){const f=c.replace(o,`${l}="${n}"`);return d1(r,i,f)}const u=c+` ${l}="${n}"`;return d1(r,i,u)}function vA(r,e,t,n){const l=new RegExp(`(<[^>]*\\bid="${Mo(e)}"[^>]*)>`,"i").exec(r);if(!l)return r;const o=l[1],c=t.startsWith("data-")?t:`data-${t}`,u=new RegExp(`\\b${c}="[^"]*"`);if(u.test(o)){const f=o.replace(u,`${c}="${n}"`);return r.replace(o,f)}else{const f=o+` ${c}="${n}"`;return r.replace(o,f)}}function SA(r,e,t){const n=new RegExp(`(<[^>]*\\bid="${e}"[^>]*>)([\\s\\S]*?)(<\\/[a-z]+>)`,"i"),i=n.exec(r);return i?r.replace(n,`${i[1]}${t}${i[3]}`):r}function wA(r,e,t){switch(t.type){case"inline-style":return gA(r,e,t.property,t.value);case"attribute":return vA(r,e,t.property,t.value);case"text-content":return SA(r,e,t.value);default:return r}}function Xi(r,e,t){if(e.id){const n=wA(r,e.id,t);if(n!==r||!e.selector)return n}switch(t.type){case"inline-style":return xA(r,e,t.property,t.value);case"attribute":return yA(r,e,t.property,t.value);default:return r}}const Zc={image:3,video:5,audio:5};function kA(r){return Array.from(r.matchAll(/\bid="([^"]+)"/g),e=>e[1]??"")}async function Ag(r,e,t){if(t==="image")return Zc.image;const n=document.createElement(t==="video"?"video":"audio");n.preload="metadata",n.src=`/api/projects/${r}/preview/${e}`;const i=await new Promise(l=>{const o=window.setTimeout(()=>l(Zc[t]),3e3),c=u=>{window.clearTimeout(o),l(u)};n.addEventListener("loadedmetadata",()=>{const u=Number(n.duration);c(Number.isFinite(u)&&u>0?Math.round(u*100)/100:Zc[t])},{once:!0}),n.addEventListener("error",()=>c(Zc[t]),{once:!0})});return n.src="",n.load(),i}function bA(){const[r,e]=p.useState(null),[t,n]=p.useState(!0);Vt(()=>{const Z=window.location.hash.match(/^#project\/([^/]+)/);if(Z){e(Z[1]),n(!1);return}fetch("/api/projects").then(q=>q.json()).then(q=>{const oe=(q.projects??[])[0];oe&&(e(oe.id),window.location.hash=`#project/${oe.id}`)}).catch(()=>{}).finally(()=>n(!1))});const[i,l]=p.useState(null),[o,c]=p.useState(null),[u,f]=p.useState([]),[m,O]=p.useState(new Map),x=B9(r),S=ot(Z=>Z.isEditMode),w=ot(Z=>Z.selectedSegmentIds.size>0),b=hA(r),[$,T]=p.useState(240),[_,A]=p.useState(400),[C,j]=p.useState(!1),[N,M]=p.useState(!0);p.useEffect(()=>{if(!r)return;let Z=!1;const q=()=>{if(ot.getState().isEditMode||Z)return;const me=an.current;let we=null,Ye=null;try{we=(me==null?void 0:me.contentDocument)??null,Ye=(me==null?void 0:me.contentWindow)??null}catch{return}if(!we||!Ye||we.querySelectorAll(".caption-group").length===0)return;let U=null;const fe=we.querySelectorAll("[data-composition-src], [data-composition-file]");for(const xe of fe){const K=xe.getAttribute("data-composition-src")||xe.getAttribute("data-composition-file");if(K&&K.includes("captions")){U=K;break}}if(!U){for(const[xe,K]of m)if(xe.includes("caption")||K.includes("caption")){U=K;break}}if(!U&&(o!=null&&o.includes("captions"))&&(U=o),!U){const xe=we.querySelector('[data-composition-id*="caption"]');if(xe){const K=xe.getAttribute("data-composition-id")||"";U=m.get(K)||null}}if(!U)return;Z=!0;const ne=U;fetch(`/api/projects/${r}/files/${encodeURIComponent(ne)}`).then(xe=>xe.json()).then(xe=>{if(!xe.content||!we||!Ye||ot.getState().isEditMode)return;const K=we.querySelector("[data-composition-id]"),Be=parseInt((K==null?void 0:K.getAttribute("data-width"))??"1920",10),He=parseInt((K==null?void 0:K.getAttribute("data-height"))??"1080",10),Ze=parseFloat((K==null?void 0:K.getAttribute("data-duration"))??"0"),pt=mA(we,Ye,xe.content,Be,He,Ze);if(!pt)return;const St=ot.getState();St.setModel(pt),St.setSourceFilePath(ne),St.setEditMode(!0),b.loadOverrides()}).catch(()=>{}).finally(()=>{Z=!1})},oe=me=>{const we=me.data;(we==null?void 0:we.source)==="hf-preview"&&((we==null?void 0:we.type)==="state"||(we==null?void 0:we.type)==="timeline")&&q()};return window.addEventListener("message",oe),q(),()=>{window.removeEventListener("message",oe)}},[o,r,m,b]),p.useEffect(()=>{S&&M(!w)},[w,S]);const[R,F]=p.useState(!1),[pe,J]=p.useState(null),[ie,B]=p.useState(!0),[ce,ue]=p.useState(Xy),he=p.useRef(0),se=p.useRef(null),W=p.useRef(0),Y=p.useRef(null),ee=p.useRef(null),Q=o?`/api/projects/${r}/preview/comp/${o}`:null,z=Me(Z=>Z.zoomMode),re=Me(Z=>Z.manualZoomPercent),ge=Me(Z=>Z.setZoomMode),te=Me(Z=>Z.setManualZoomPercent),ve=Me(Z=>Z.elements),Le=Me(Z=>Z.duration),Ee=p.useMemo(()=>{const Z=ve.length>0?Math.max(...ve.map(q=>q.start+q.duration)):0;return Math.max(Le,Z)},[Le,ve]),ze=p.useMemo(()=>O1(z,re),[z,re]),_e=p.useCallback(()=>{B(Z=>!Z)},[]);Vt(()=>()=>{se.current&&clearTimeout(se.current)});const ct=p.useCallback(()=>{ue(!0),Ny()},[]),Ge=p.useCallback(Z=>{Ly(Z)&&(Z.preventDefault(),_e())},[_e]);Vt(()=>(window.addEventListener("keydown",Ge),()=>{window.removeEventListener("keydown",Ge)}));const bn=p.useCallback(Z=>{const q=(Z==null?void 0:Z.contentWindow)??null;Y.current!==q&&(Y.current&&Y.current.removeEventListener("keydown",Ge),Y.current=q,q==null||q.addEventListener("keydown",Ge))},[Ge]);p.useEffect(()=>()=>{Y.current&&(Y.current.removeEventListener("keydown",Ge),Y.current=null)},[Ge]);const Xe=p.useCallback((Z,q)=>{const oe=De.current;if(!oe)return null;let me=Z.compositionSrc;if(me&&m.size>0){const Ye=m.get(Z.id)||m.get(me.replace(/^compositions\//,"").replace(/\.html$/,""));Ye&&(me=Ye)}if(me)return y.jsx(Ah,{previewUrl:`/api/projects/${oe}/preview/comp/${me}`,label:Z.id||Z.tag,labelColor:q.label,accentColor:q.clip,selector:Z.selector,seekTime:0,duration:Z.duration});if(Q&&Z.duration>0)return y.jsx(Ah,{previewUrl:Q,label:Z.id||Z.tag,labelColor:q.label,accentColor:q.clip,selector:Z.selector,seekTime:Z.start,duration:Z.duration});const we=Z.duration>0&&Ee>0&&Z.duration<Ee*.92&&!/(backdrop|background|overlay|scrim|mask)/i.test(Z.id);if(Z.tag==="audio"){const Ye=Z.src?Z.src.startsWith("http")?Z.src:`/api/projects/${oe}/preview/${Z.src}`:"";return y.jsx(K9,{audioUrl:Ye,label:Z.id||Z.tag,labelColor:q.label})}if((Z.tag==="video"||Z.tag==="img")&&Z.src){const Ye=Z.src.startsWith("http")?Z.src:`/api/projects/${oe}/preview/${Z.src}`;return y.jsx(Tv,{videoSrc:Ye,label:Z.id||Z.tag,labelColor:q.label,duration:Z.duration})}return we?y.jsx(Ah,{previewUrl:`/api/projects/${oe}/preview`,label:Z.id||Z.tag,labelColor:q.label,accentColor:q.clip,selector:Z.selector,seekTime:Z.start,duration:Z.duration}):null},[m,Q,Ee]),Je=y.jsx("div",{className:"border-b border-neutral-800/40 bg-neutral-950/96",children:y.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[y.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-500",children:"Timeline"}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("button",{type:"button",onClick:()=>ge("fit"),className:`h-7 px-2.5 rounded-md border text-[11px] font-medium transition-colors ${z==="fit"?"border-studio-accent/30 bg-studio-accent/10 text-studio-accent":"border-neutral-800 text-neutral-400 hover:border-neutral-700 hover:text-neutral-200"}`,title:"Fit timeline to width",children:"Fit"}),y.jsx("button",{type:"button",onClick:()=>{ge("manual"),te(Km("out",z,re))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",title:"Zoom out",children:"-"}),y.jsx("div",{className:"min-w-[58px] text-center text-[10px] font-medium tabular-nums text-neutral-500",children:`${ze}%`}),y.jsx("button",{type:"button",onClick:()=>{ge("manual"),te(Km("in",z,re))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",title:"Zoom in",children:"+"})]})]})}),[qe,We]=p.useState(null),[Ne,tt]=p.useState(null),[ut,Ot]=p.useState(!1),[tn,_t]=p.useState(0),gn=p.useRef(null),hr=p.useRef(null),De=p.useRef(r),an=p.useRef(null),vt=p.useRef([]);Vt(()=>{const Z=()=>{gn.current&&clearTimeout(gn.current),gn.current=setTimeout(()=>_t(oe=>oe+1),400)},q=new EventSource("/api/events");return q.addEventListener("file-change",Z),()=>q.close()}),De.current=r,p.useEffect(()=>{if(!r)return;let Z=!1;return fetch(`/api/projects/${r}`).then(q=>q.json()).then(q=>{!Z&&q.files&&f(q.files)}).catch(()=>{}),()=>{Z=!0}},[r]);const Ht=p.useCallback(Z=>{const q=De.current;if(q){if(T(oe=>Math.max(oe,Math.floor(window.innerWidth*.5))),Jm(Z)){l({path:Z,content:null});return}fetch(`/api/projects/${q}/files/${encodeURIComponent(Z)}`).then(oe=>oe.json()).then(oe=>{oe.content!=null&&l({path:Z,content:oe.content})}).catch(()=>{})}},[]),gt=p.useRef(i==null?void 0:i.path);gt.current=i==null?void 0:i.path;const Yt=p.useCallback(Z=>{const q=De.current;if(!q)return;const oe=gt.current;oe&&(hr.current&&clearTimeout(hr.current),hr.current=setTimeout(()=>{fetch(`/api/projects/${q}/files/${encodeURIComponent(oe)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:Z}).then(()=>{gn.current&&clearTimeout(gn.current),gn.current=setTimeout(()=>_t(me=>me+1),600)}).catch(()=>{})},600))},[]),pi=p.useCallback(async(Z,q)=>{const oe=De.current;if(!oe)throw new Error("No active project");const me=Z.sourceFile||o||"index.html",we=await fetch(`/api/projects/${oe}/files/${encodeURIComponent(me)}`);if(!we.ok)throw new Error(`Failed to read ${me}`);const L=(await we.json()).content;if(typeof L!="string")throw new Error(`Missing file contents for ${me}`);const U=Z.domId?{id:Z.domId,selector:Z.selector,selectorIndex:Z.selectorIndex}:Z.selector?{selector:Z.selector,selectorIndex:Z.selectorIndex}:null;if(!U)throw new Error(`Timeline element ${Z.id} is missing a patchable target`);const fe=me,ne=ve.map(He=>(He.key??He.id)===(Z.key??Z.id)?{...He,start:q.start,track:q.track}:He).filter(He=>(He.sourceFile||o||"index.html")===fe),xe=Ph(ne.map(He=>He.track));let K=Xi(L,U,{type:"attribute",property:"start",value:fs(q.start)});K=Xi(K,U,{type:"attribute",property:"track-index",value:String(q.track)});for(const He of ne){const Ze=He.domId?{id:He.domId,selector:He.selector,selectorIndex:He.selectorIndex}:He.selector?{selector:He.selector,selectorIndex:He.selectorIndex}:null;if(!Ze)continue;const pt=xe.get(He.track);pt!=null&&(K=Xi(K,Ze,{type:"inline-style",property:"z-index",value:String(pt)}))}if(K===L)throw new Error(`Unable to patch timeline element ${Z.id} in ${me}`);if(!(await fetch(`/api/projects/${oe}/files/${encodeURIComponent(me)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:K})).ok)throw new Error(`Failed to save ${me}`);gt.current===me&&l({path:me,content:K}),_t(He=>He+1)},[o,ve]),Ft=p.useCallback(async(Z,q)=>{const oe=De.current;if(!oe)throw new Error("No active project");const me=Z.sourceFile||o||"index.html",we=await fetch(`/api/projects/${oe}/files/${encodeURIComponent(me)}`);if(!we.ok)throw new Error(`Failed to read ${me}`);const L=(await we.json()).content;if(typeof L!="string")throw new Error(`Missing file contents for ${me}`);const U=Z.domId?{id:Z.domId,selector:Z.selector,selectorIndex:Z.selectorIndex}:Z.selector?{selector:Z.selector,selectorIndex:Z.selectorIndex}:null;if(!U)throw new Error(`Timeline element ${Z.id} is missing a patchable target`);const fe=Z.playbackStartAttr==="playback-start"?"playback-start":"media-start",ne=Pg(L,U,"playback-start")??Pg(L,U,"media-start"),xe=ne!=null?parseFloat(ne):void 0,K=q.start-Z.start,Be=q.playbackStart==null&&K!==0&&Number.isFinite(xe)&&xe!=null?Math.max(0,xe+K*Math.max(Z.playbackRate??1,.1)):void 0,He=q.playbackStart??Be;let Ze=L;if(Ze=Xi(Ze,U,{type:"attribute",property:"start",value:fs(q.start)}),Ze=Xi(Ze,U,{type:"attribute",property:"duration",value:fs(q.duration)}),He!=null&&(Ze=Xi(Ze,U,{type:"attribute",property:fe,value:fs(He)})),Ze===L)throw new Error(`Unable to patch timeline element ${Z.id} in ${me}`);if(!(await fetch(`/api/projects/${oe}/files/${encodeURIComponent(me)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:Ze})).ok)throw new Error(`Failed to save ${me}`);gt.current===me&&l({path:me,content:Ze}),_t(St=>St+1)},[o]),ft=p.useCallback((Z,q="error")=>{se.current&&clearTimeout(se.current),J({message:Z,tone:q}),se.current=setTimeout(()=>J(null),4e3)},[]),$r=p.useCallback(async Z=>{const q=De.current;if(!q)throw new Error("No active project");const oe=Z.sourceFile||o||"index.html";try{const me=await fetch(`/api/projects/${q}/files/${encodeURIComponent(oe)}`);if(!me.ok)throw new Error(`Failed to read ${oe}`);const Ye=(await me.json()).content;if(typeof Ye!="string")throw new Error(`Missing file contents for ${oe}`);const L=Z.domId?{id:Z.domId,selector:Z.selector,selectorIndex:Z.selectorIndex}:Z.selector?{selector:Z.selector,selectorIndex:Z.selectorIndex}:null;if(!L)throw new Error(`Timeline element ${Z.id} is missing a patchable target`);const U=oe||"index.html",fe=ve.filter(Ze=>(Ze.key??Ze.id)!==(Z.key??Z.id)&&(Ze.sourceFile||o||"index.html")===U),ne=Ph(fe.map(Ze=>Ze.track)),xe=await fetch(`/api/projects/${q}/file-mutations/remove-element/${encodeURIComponent(oe)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:L})});if(!xe.ok)throw new Error(`Failed to delete ${Z.id} from ${oe}`);const K=await xe.json();let Be=typeof K.content=="string"?K.content:Ye;for(const Ze of fe){const pt=Ze.domId?{id:Ze.domId,selector:Ze.selector,selectorIndex:Ze.selectorIndex}:Ze.selector?{selector:Ze.selector,selectorIndex:Ze.selectorIndex}:null;if(!pt)continue;const St=ne.get(Ze.track);St!=null&&(Be=Xi(Be,pt,{type:"inline-style",property:"z-index",value:String(St)}))}if(!(await fetch(`/api/projects/${q}/files/${encodeURIComponent(oe)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:Be})).ok)throw new Error(`Failed to save ${oe}`);gt.current===oe&&l({path:oe,content:Be}),Me.getState().setElements(ve.filter(Ze=>(Ze.key??Ze.id)!==(Z.key??Z.id))),Me.getState().setSelectedElementId(null),_t(Ze=>Ze+1)}catch(me){const we=me instanceof Error?me.message:"Failed to delete timeline clip";ft(we)}},[o,ft,ve]),qn=p.useCallback(Z=>{const q=Date.now();q-W.current<1500||(W.current=q,ft("This clip can’t be moved or resized from the timeline yet.","info"))},[ft]),zt=p.useCallback(async()=>{const Z=De.current;if(!Z)return;const oe=await(await fetch(`/api/projects/${Z}`)).json();oe.files&&f(oe.files)},[]),Un=p.useCallback(async(Z,q)=>{var L,U;const oe=De.current,me=Array.from(Z);if(!oe||me.length===0)return[];const we=new FormData;for(const fe of me)we.append("file",fe);const Ye=q?`?dir=${encodeURIComponent(q)}`:"";try{const fe=await fetch(`/api/projects/${oe}/upload${Ye}`,{method:"POST",body:we});if(fe.ok){const ne=await fe.json();if((L=ne.skipped)!=null&&L.length&&ft(`Skipped (too large): ${ne.skipped.join(", ")}`),(U=ne.invalid)!=null&&U.length){const xe=ne.invalid.map(K=>K.name).join(", ");ft(`Unsupported media skipped: ${xe}`)}return await zt(),_t(xe=>xe+1),Array.isArray(ne.files)?ne.files:[]}else fe.status===413?ft("Upload rejected: payload too large"):ft(`Upload failed (${fe.status})`)}catch{ft("Upload failed: network error")}return[]},[zt,ft]),Pr=p.useCallback(async(Z,q,oe)=>{const me=De.current;if(!me)throw new Error("No active project");const we=eO(Z);if(!we){ft("Only image, video, and audio assets can be dropped onto the timeline.");return}const Ye=o||"index.html";try{const L=await fetch(`/api/projects/${me}/files/${encodeURIComponent(Ye)}`);if(!L.ok)throw new Error(`Failed to read ${Ye}`);const fe=(await L.json()).content;if(typeof fe!="string")throw new Error(`Missing file contents for ${Ye}`);const ne=Number(fs(q.start)),xe=Number.isFinite(oe)&&oe!=null&&oe>0?oe:await Ag(me,Z,we),K=Number(fs(xe)),Be=pv(Z,kA(fe)),He=mv(Ye,Z),Ze=Ye||"index.html",pt=ve.filter(Qt=>(Qt.sourceFile||o||"index.html")===Ze),St=Ph([...pt.map(Qt=>Qt.track),q.track]);let nt=fe;for(const Qt of pt){const Ji=Qt.domId?{id:Qt.domId,selector:Qt.selector,selectorIndex:Qt.selectorIndex}:Qt.selector?{selector:Qt.selector,selectorIndex:Qt.selectorIndex}:null;if(!Ji)continue;const xi=St.get(Qt.track);xi!=null&&(nt=Xi(nt,Ji,{type:"inline-style",property:"z-index",value:String(xi)}))}if(nt=xv(nt,gv({id:Be,assetPath:He,kind:we,start:ne,duration:K,track:q.track,zIndex:St.get(q.track)??1})),!(await fetch(`/api/projects/${me}/files/${encodeURIComponent(Ye)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:nt})).ok)throw new Error(`Failed to save ${Ye}`);gt.current===Ye&&l({path:Ye,content:nt}),_t(Qt=>Qt+1)}catch(L){const U=L instanceof Error?L.message:"Failed to drop asset onto timeline";ft(U)}},[o,ft,ve]),mi=p.useCallback(async(Z,q)=>{const oe=De.current;if(!oe)return;const me=await Un(Z);if(me.length===0)return;const we=[];for(const L of me){const U=eO(L),fe=U?await Ag(oe,L,U):0;we.push(Number(fs(fe)))}const Ye=Ov(q??{start:0,track:0},we,ve.filter(L=>(L.sourceFile||o||"index.html")===(o||"index.html")).map(L=>({start:L.start,duration:L.duration,track:L.track})));for(const[L,U]of me.entries())await Pr(U,Ye[L]??Ye[0],we[L])},[o,Pr,ve,Un]),fr=p.useCallback(async Z=>{const q=De.current;if(!q)return;let oe="";Z.endsWith(".html")&&(oe=`<!DOCTYPE html>
107
- <html>
108
- <head>
109
- <meta charset="UTF-8">
110
- </head>
111
- <body>
112
-
113
- </body>
114
- </html>
115
- `);const me=await fetch(`/api/projects/${q}/files/${encodeURIComponent(Z)}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:oe});if(me.ok)await zt(),Ht(Z);else{const we=await me.json().catch(()=>({error:"unknown"}));console.error(`Create file failed: ${we.error}`)}},[zt,Ht]),Gn=p.useCallback(async Z=>{const q=De.current;if(!q)return;const oe=await fetch(`/api/projects/${q}/files/${encodeURIComponent(Z+"/.gitkeep")}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:""});if(oe.ok)await zt();else{const me=await oe.json().catch(()=>({error:"unknown"}));console.error(`Create folder failed: ${me.error}`)}},[zt]),dr=p.useCallback(async Z=>{const q=De.current;if(!q)return;const oe=await fetch(`/api/projects/${q}/files/${encodeURIComponent(Z)}`,{method:"DELETE"});if(oe.ok)gt.current===Z&&l(null),await zt();else{const me=await oe.json().catch(()=>({error:"unknown"}));console.error(`Delete failed: ${me.error}`)}},[zt]),Ur=p.useCallback(async(Z,q)=>{const oe=De.current;if(!oe)return;const me=await fetch(`/api/projects/${oe}/files/${encodeURIComponent(Z)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({newPath:q})});if(me.ok)gt.current===Z&&Ht(q),await zt(),_t(we=>we+1);else{const we=await me.json().catch(()=>({error:"unknown"}));console.error(`Rename failed: ${we.error}`)}},[zt,Ht]),Qs=p.useCallback(async Z=>{const q=De.current;if(!q)return;const oe=await fetch(`/api/projects/${q}/duplicate-file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:Z})});if(oe.ok){const me=await oe.json();await zt(),me.path&&Ht(me.path)}else{const me=await oe.json().catch(()=>({error:"unknown"}));console.error(`Duplicate failed: ${me.error}`)}},[zt,Ht]),$s=Ur,Oi=p.useCallback(async(Z,q)=>{Un(Array.from(Z),q)},[Un]),gi=p.useCallback(async()=>{const Z=De.current;if(Z){Ot(!0);try{const me=((await(await fetch(`/api/projects/${Z}/lint`)).json()).findings??[]).map(we=>({severity:we.severity==="error"?"error":"warning",message:we.message??"",file:we.file,fixHint:we.fixHint}));We(me)}catch(q){const oe=q instanceof Error?q.message:String(q);We([{severity:"error",message:`Failed to run lint: ${oe}`}])}finally{Ot(!1)}}},[]),Ki=p.useCallback((Z,q)=>{q.preventDefault(),q.target.setPointerCapture(q.pointerId),ee.current={side:Z,startX:q.clientX,startW:Z==="left"?$:_}},[$,_]),Ar=p.useCallback(Z=>{const q=ee.current;if(!q)return;const oe=Z.clientX-q.startX,me=Math.floor(window.innerWidth*.5),we=Math.max(160,Math.min(q.side==="left"?me:600,q.startW+(q.side==="left"?oe:-oe)));q.side==="left"?T(we):A(we)},[]),Cr=p.useCallback(()=>{ee.current=null},[]),Kn=p.useMemo(()=>u.filter(Z=>Z==="index.html"||Z.startsWith("compositions/")),[u]),Ps=p.useMemo(()=>u.filter(Z=>!Z.endsWith(".html")&&!Z.endsWith(".md")&&!Z.endsWith(".json")),[u]);return t||!r?y.jsx("div",{className:"h-full w-full bg-neutral-950 flex items-center justify-center",children:y.jsx("div",{className:"w-4 h-4 rounded-full bg-studio-accent animate-pulse"})}):y.jsxs("div",{className:"flex flex-col h-full w-full bg-neutral-950 relative",onDragOver:Z=>{Z.dataTransfer.types.includes("Files")&&Z.preventDefault()},onDragEnter:Z=>{Z.dataTransfer.types.includes("Files")&&(Z.preventDefault(),he.current++,F(!0))},onDragLeave:()=>{he.current--,he.current===0&&F(!1)},onDrop:Z=>{he.current=0,F(!1),!Z.defaultPrevented&&(Z.preventDefault(),Z.dataTransfer.files.length&&Oi(Z.dataTransfer.files))},children:[y.jsxs("div",{className:"flex items-center justify-between h-10 px-3 bg-neutral-900 border-b border-neutral-800 flex-shrink-0",children:[y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("span",{className:"text-[11px] font-medium text-neutral-400",children:r})}),y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("button",{onClick:()=>j(Z=>!Z),className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${C?"bg-transparent border-transparent text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800":"text-studio-accent bg-studio-accent/10 border-studio-accent/30"}`,title:C?"Show sidebar":"Hide sidebar",children:y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),y.jsx("path",{d:"M9 3v18"})]})}),y.jsxs("button",{type:"button",onClick:_e,className:`h-7 flex items-center gap-1.5 px-2.5 rounded-md text-[11px] font-medium border transition-colors ${ie?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"text-neutral-300 border-neutral-700 hover:border-neutral-500 hover:bg-neutral-800"}`,title:Zg(ie),"aria-label":ie?"Hide timeline editor":"Show timeline editor",children:[y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[y.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),y.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),y.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]}),y.jsx("span",{children:"Timeline"})]}),y.jsxs("button",{onClick:()=>M(Z=>!Z),className:`h-7 flex items-center gap-1.5 px-2.5 rounded-md text-[11px] font-medium border transition-colors ${N?"text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800 border-transparent":"text-studio-accent bg-studio-accent/10 border-studio-accent/30"}`,children:[y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("polygon",{points:"10 8 16 12 10 16",fill:"currentColor",stroke:"none"})]}),"Renders",x.jobs.length>0?` (${x.jobs.length})`:""]})]})]}),y.jsxs("div",{className:"flex flex-1 min-h-0",children:[!C&&y.jsx(z9,{width:$,projectId:r,compositions:Kn,assets:Ps,activeComposition:(i==null?void 0:i.path)??null,onSelectComposition:Z=>{c(Z==="index.html"||Z.startsWith("compositions/")?Z:null),l({path:Z,content:null}),fetch(`/api/projects/${r}/files/${Z}`).then(q=>q.json()).then(q=>l({path:Z,content:q.content})).catch(()=>{})},fileTree:u,editingFile:i,onSelectFile:Ht,onCreateFile:fr,onCreateFolder:Gn,onDeleteFile:dr,onRenameFile:Ur,onDuplicateFile:Qs,onMoveFile:$s,onImportFiles:Oi,codeChildren:i?Jm(i.path)?y.jsx(J9,{projectId:r??"",filePath:i.path}):y.jsx(P9,{content:i.content??"",filePath:i.path,onChange:Yt}):void 0,onLint:gi,linting:ut}),!C&&y.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:Z=>Ki("left",Z),onPointerMove:Ar,onPointerUp:Cr,children:y.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),y.jsx("div",{className:"flex-1 relative min-w-0",children:y.jsx(F3,{projectId:r,refreshKey:tn,activeCompositionPath:o,timelineToolbar:Je,renderClipContent:Xe,onDeleteElement:$r,onAssetDrop:Pr,onFileDrop:mi,onMoveElement:pi,onResizeElement:Ft,onBlockedEditAttempt:qn,onCompIdToSrcChange:O,onCompositionChange:Z=>{c(Z)},onIframeRef:Z=>{if(an.current=Z,bn(Z),vt.current=[],tt(null),!Z)return;const q=()=>{try{const oe=Z.contentWindow;if(!oe||oe.__hfErrorCapture)return;oe.__hfErrorCapture=!0;const me=oe.console.error.bind(oe.console);oe.console.error=function(...we){me(...we);const Ye=we.map(L=>L instanceof Error?L.message:String(L)).join(" ");Ye.includes("favicon")||(vt.current=[...vt.current,{severity:"error",message:Ye}],tt([...vt.current]))},oe.addEventListener("error",we=>{const Ye=we.message||String(we);vt.current=[...vt.current,{severity:"error",message:Ye}],tt([...vt.current])})}catch{}};q(),Z.addEventListener("load",()=>{vt.current=[],tt(null),q()})},previewOverlay:S?y.jsx(nA,{iframeRef:an}):void 0,timelineFooter:S?y.jsxs("div",{className:"border-t border-neutral-800/30 flex-shrink-0",style:{height:60},children:[y.jsx("div",{className:"flex items-center gap-1.5 px-2 py-0.5",children:y.jsx("span",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Captions"})}),y.jsx(cA,{pixelsPerSecond:100})]}):void 0,timelineVisible:ie,onToggleTimeline:_e})}),!N&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:Z=>Ki("right",Z),onPointerMove:Ar,onPointerUp:Cr,children:y.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),y.jsx("div",{className:"flex flex-col border-l border-neutral-800 bg-neutral-900 flex-shrink-0",style:{width:_},children:S?y.jsx(aA,{iframeRef:an}):y.jsx(F9,{jobs:x.jobs,projectId:r,onDelete:x.deleteRender,onClearCompleted:x.clearCompleted,onStartRender:(Z,q)=>x.startRender(30,q,Z),isRendering:x.isRendering})})]})]}),ve.length>0&&!ce&&y.jsx("div",{className:"pointer-events-none absolute bottom-5 left-5 z-[140]",children:y.jsx(B3,{onDismiss:ct})}),qe!==null&&r&&y.jsx(wg,{findings:qe,projectId:r,onClose:()=>We(null)}),Ne!==null&&Ne.length>0&&r&&y.jsx(wg,{findings:Ne,projectId:r,onClose:()=>tt(null)}),R&&y.jsx("div",{className:"absolute inset-0 z-[90] flex items-center justify-center bg-black/50 backdrop-blur-sm pointer-events-none",children:y.jsxs("div",{className:"flex flex-col items-center gap-3 px-8 py-6 rounded-xl border-2 border-dashed border-studio-accent/60 bg-studio-accent/[0.06]",children:[y.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-studio-accent",children:[y.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),y.jsx("polyline",{points:"7 10 12 15 17 10"}),y.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),y.jsx("span",{className:"text-sm font-medium text-studio-accent",children:"Drop files to import into project"})]})}),pe&&y.jsx("div",{className:`absolute bottom-6 left-1/2 -translate-x-1/2 z-[91] px-4 py-2 rounded-lg border text-sm shadow-lg animate-in fade-in slide-in-from-bottom-2 ${pe.tone==="error"?"bg-red-900/90 border-red-700/50 text-red-200":"bg-neutral-900/95 border-neutral-700/60 text-neutral-100"}`,children:pe.message})]})}Zy.createRoot(document.getElementById("root")).render(y.jsx(p.StrictMode,{children:y.jsx(bA,{})}));