@hyperframes/studio 0.4.12 → 0.4.13-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.
- package/dist/assets/hyperframes-player-BOs_kypk.js +198 -0
- package/dist/assets/index-BKkR67xb.css +1 -0
- package/dist/assets/index-rN5doSq1.js +93 -0
- package/dist/index.html +2 -2
- package/package.json +4 -4
- package/src/App.tsx +289 -11
- package/src/components/nle/NLELayout.tsx +24 -7
- package/src/components/nle/NLEPreview.test.ts +32 -0
- package/src/components/nle/NLEPreview.tsx +12 -1
- package/src/player/components/CompositionThumbnail.tsx +94 -17
- package/src/player/components/EditModal.tsx +48 -29
- package/src/player/components/Player.tsx +5 -2
- package/src/player/components/PlayerControls.test.ts +20 -0
- package/src/player/components/PlayerControls.tsx +12 -1
- package/src/player/components/Timeline.test.ts +44 -1
- package/src/player/components/Timeline.tsx +686 -169
- package/src/player/components/TimelineClip.tsx +112 -16
- package/src/player/components/timelineEditing.test.ts +310 -0
- package/src/player/components/timelineEditing.ts +213 -0
- package/src/player/components/timelineTheme.test.ts +56 -0
- package/src/player/components/timelineTheme.ts +141 -0
- package/src/player/components/timelineZoom.test.ts +62 -0
- package/src/player/components/timelineZoom.ts +38 -0
- package/src/player/hooks/useTimelinePlayer.test.ts +96 -0
- package/src/player/hooks/useTimelinePlayer.ts +313 -59
- package/src/player/store/playerStore.test.ts +30 -12
- package/src/player/store/playerStore.ts +23 -9
- package/src/types/hyperframes-player.d.ts +1 -0
- package/src/utils/sourcePatcher.test.ts +84 -0
- package/src/utils/sourcePatcher.ts +143 -0
- package/dist/assets/hyperframes-player-5iD9BZnx.js +0 -198
- package/dist/assets/index-CVDXfFQ6.js +0 -93
- package/dist/assets/index-jmDaI2F7.css +0 -1
|
@@ -1,93 +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 a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).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 jy(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var X0={exports:{}},Cl={},N0={exports:{}},_e={};/**
|
|
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 Up;function Vy(){if(Up)return _e;Up=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"),a=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 y($){return $===null||typeof $!="object"?null:($=O&&$[O]||$["@@iterator"],typeof $=="function"?$:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function Q($,L,G){this.props=$,this.context=L,this.refs=b,this.updater=G||S}Q.prototype.isReactComponent={},Q.prototype.setState=function($,L){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,L,"setState")},Q.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function C(){}C.prototype=Q.prototype;function j($,L,G){this.props=$,this.context=L,this.refs=b,this.updater=G||S}var P=j.prototype=new C;P.constructor=j,w(P,Q.prototype),P.isPureReactComponent=!0;var Z=Array.isArray,X=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function R($,L,G){var se,fe={},$e=null,ue=null;if(L!=null)for(se in L.ref!==void 0&&(ue=L.ref),L.key!==void 0&&($e=""+L.key),L)X.call(L,se)&&!E.hasOwnProperty(se)&&(fe[se]=L[se]);var pe=arguments.length-2;if(pe===1)fe.children=G;else if(1<pe){for(var ve=Array(pe),Te=0;Te<pe;Te++)ve[Te]=arguments[Te+2];fe.children=ve}if($&&$.defaultProps)for(se in pe=$.defaultProps,pe)fe[se]===void 0&&(fe[se]=pe[se]);return{$$typeof:r,type:$,key:$e,ref:ue,props:fe,_owner:_.current}}function Y($,L){return{$$typeof:r,type:$.type,key:L,ref:$.ref,props:$.props,_owner:$._owner}}function le($){return typeof $=="object"&&$!==null&&$.$$typeof===r}function J($){var L={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(G){return L[G]})}var z=/\/+/g;function U($,L){return typeof $=="object"&&$!==null&&$.key!=null?J(""+$.key):L.toString(36)}function re($,L,G,se,fe){var $e=typeof $;($e==="undefined"||$e==="boolean")&&($=null);var ue=!1;if($===null)ue=!0;else switch($e){case"string":case"number":ue=!0;break;case"object":switch($.$$typeof){case r:case e:ue=!0}}if(ue)return ue=$,fe=fe(ue),$=se===""?"."+U(ue,0):se,Z(fe)?(G="",$!=null&&(G=$.replace(z,"$&/")+"/"),re(fe,L,G,"",function(Te){return Te})):fe!=null&&(le(fe)&&(fe=Y(fe,G+(!fe.key||ue&&ue.key===fe.key?"":(""+fe.key).replace(z,"$&/")+"/")+$)),L.push(fe)),1;if(ue=0,se=se===""?".":se+":",Z($))for(var pe=0;pe<$.length;pe++){$e=$[pe];var ve=se+U($e,pe);ue+=re($e,L,G,ve,fe)}else if(ve=y($),typeof ve=="function")for($=ve.call($),pe=0;!($e=$.next()).done;)$e=$e.value,ve=se+U($e,pe++),ue+=re($e,L,G,ve,fe);else if($e==="object")throw L=String($),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return ue}function K($,L,G){if($==null)return $;var se=[],fe=0;return re($,se,"","",function($e){return L.call(G,$e,fe++)}),se}function ae($){if($._status===-1){var L=$._result;L=L(),L.then(function(G){($._status===0||$._status===-1)&&($._status=1,$._result=G)},function(G){($._status===0||$._status===-1)&&($._status=2,$._result=G)}),$._status===-1&&($._status=0,$._result=L)}if($._status===1)return $._result.default;throw $._result}var ce={current:null},I={transition:null},ee={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:I,ReactCurrentOwner:_};function F(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:K,forEach:function($,L,G){K($,function(){L.apply(this,arguments)},G)},count:function($){var L=0;return K($,function(){L++}),L},toArray:function($){return K($,function(L){return L})||[]},only:function($){if(!le($))throw Error("React.Children.only expected to receive a single React element child.");return $}},_e.Component=Q,_e.Fragment=t,_e.Profiler=i,_e.PureComponent=j,_e.StrictMode=n,_e.Suspense=u,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,_e.act=F,_e.cloneElement=function($,L,G){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var se=w({},$.props),fe=$.key,$e=$.ref,ue=$._owner;if(L!=null){if(L.ref!==void 0&&($e=L.ref,ue=_.current),L.key!==void 0&&(fe=""+L.key),$.type&&$.type.defaultProps)var pe=$.type.defaultProps;for(ve in L)X.call(L,ve)&&!E.hasOwnProperty(ve)&&(se[ve]=L[ve]===void 0&&pe!==void 0?pe[ve]:L[ve])}var ve=arguments.length-2;if(ve===1)se.children=G;else if(1<ve){pe=Array(ve);for(var Te=0;Te<ve;Te++)pe[Te]=arguments[Te+2];se.children=pe}return{$$typeof:r,type:$.type,key:fe,ref:$e,props:se,_owner:ue}},_e.createContext=function($){return $={$$typeof:a,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:l,_context:$},$.Consumer=$},_e.createElement=R,_e.createFactory=function($){var L=R.bind(null,$);return L.type=$,L},_e.createRef=function(){return{current:null}},_e.forwardRef=function($){return{$$typeof:c,render:$}},_e.isValidElement=le,_e.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:ae}},_e.memo=function($,L){return{$$typeof:f,type:$,compare:L===void 0?null:L}},_e.startTransition=function($){var L=I.transition;I.transition={};try{$()}finally{I.transition=L}},_e.unstable_act=F,_e.useCallback=function($,L){return ce.current.useCallback($,L)},_e.useContext=function($){return ce.current.useContext($)},_e.useDebugValue=function(){},_e.useDeferredValue=function($){return ce.current.useDeferredValue($)},_e.useEffect=function($,L){return ce.current.useEffect($,L)},_e.useId=function(){return ce.current.useId()},_e.useImperativeHandle=function($,L,G){return ce.current.useImperativeHandle($,L,G)},_e.useInsertionEffect=function($,L){return ce.current.useInsertionEffect($,L)},_e.useLayoutEffect=function($,L){return ce.current.useLayoutEffect($,L)},_e.useMemo=function($,L){return ce.current.useMemo($,L)},_e.useReducer=function($,L,G){return ce.current.useReducer($,L,G)},_e.useRef=function($){return ce.current.useRef($)},_e.useState=function($){return ce.current.useState($)},_e.useSyncExternalStore=function($,L,G){return ce.current.useSyncExternalStore($,L,G)},_e.useTransition=function(){return ce.current.useTransition()},_e.version="18.3.1",_e}var Gp;function P1(){return Gp||(Gp=1,N0.exports=Vy()),N0.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 Kp;function Ry(){if(Kp)return Cl;Kp=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 a(c,u,f){var m,O={},y=null,S=null;f!==void 0&&(y=""+f),u.key!==void 0&&(y=""+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:y,ref:S,props:O,_owner:i.current}}return Cl.Fragment=t,Cl.jsx=a,Cl.jsxs=a,Cl}var Jp;function Ly(){return Jp||(Jp=1,X0.exports=Ry()),X0.exports}var v=Ly(),p=P1();const Qa=jy(p);var $a={},_0={exports:{}},cn={},z0={exports:{}},D0={};/**
|
|
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 em;function Xy(){return em||(em=1,(function(r){function e(I,ee){var F=I.length;I.push(ee);e:for(;0<F;){var $=F-1>>>1,L=I[$];if(0<i(L,ee))I[$]=ee,I[F]=L,F=$;else break e}}function t(I){return I.length===0?null:I[0]}function n(I){if(I.length===0)return null;var ee=I[0],F=I.pop();if(F!==ee){I[0]=F;e:for(var $=0,L=I.length,G=L>>>1;$<G;){var se=2*($+1)-1,fe=I[se],$e=se+1,ue=I[$e];if(0>i(fe,F))$e<L&&0>i(ue,fe)?(I[$]=ue,I[$e]=F,$=$e):(I[$]=fe,I[se]=F,$=se);else if($e<L&&0>i(ue,F))I[$]=ue,I[$e]=F,$=$e;else break e}}return ee}function i(I,ee){var F=I.sortIndex-ee.sortIndex;return F!==0?F:I.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var a=Date,c=a.now();r.unstable_now=function(){return a.now()-c}}var u=[],f=[],m=1,O=null,y=3,S=!1,w=!1,b=!1,Q=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(I){for(var ee=t(f);ee!==null;){if(ee.callback===null)n(f);else if(ee.startTime<=I)n(f),ee.sortIndex=ee.expirationTime,e(u,ee);else break;ee=t(f)}}function Z(I){if(b=!1,P(I),!w)if(t(u)!==null)w=!0,ae(X);else{var ee=t(f);ee!==null&&ce(Z,ee.startTime-I)}}function X(I,ee){w=!1,b&&(b=!1,C(R),R=-1),S=!0;var F=y;try{for(P(ee),O=t(u);O!==null&&(!(O.expirationTime>ee)||I&&!J());){var $=O.callback;if(typeof $=="function"){O.callback=null,y=O.priorityLevel;var L=$(O.expirationTime<=ee);ee=r.unstable_now(),typeof L=="function"?O.callback=L:O===t(u)&&n(u),P(ee)}else n(u);O=t(u)}if(O!==null)var G=!0;else{var se=t(f);se!==null&&ce(Z,se.startTime-ee),G=!1}return G}finally{O=null,y=F,S=!1}}var _=!1,E=null,R=-1,Y=5,le=-1;function J(){return!(r.unstable_now()-le<Y)}function z(){if(E!==null){var I=r.unstable_now();le=I;var ee=!0;try{ee=E(!0,I)}finally{ee?U():(_=!1,E=null)}}else _=!1}var U;if(typeof j=="function")U=function(){j(z)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,K=re.port2;re.port1.onmessage=z,U=function(){K.postMessage(null)}}else U=function(){Q(z,0)};function ae(I){E=I,_||(_=!0,U())}function ce(I,ee){R=Q(function(){I(r.unstable_now())},ee)}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(I){I.callback=null},r.unstable_continueExecution=function(){w||S||(w=!0,ae(X))},r.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<I?Math.floor(1e3/I):5},r.unstable_getCurrentPriorityLevel=function(){return y},r.unstable_getFirstCallbackNode=function(){return t(u)},r.unstable_next=function(I){switch(y){case 1:case 2:case 3:var ee=3;break;default:ee=y}var F=y;y=ee;try{return I()}finally{y=F}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(I,ee){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var F=y;y=I;try{return ee()}finally{y=F}},r.unstable_scheduleCallback=function(I,ee,F){var $=r.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?$+F:$):F=$,I){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=F+L,I={id:m++,callback:ee,priorityLevel:I,startTime:F,expirationTime:L,sortIndex:-1},F>$?(I.sortIndex=F,e(f,I),t(u)===null&&I===t(f)&&(b?(C(R),R=-1):b=!0,ce(Z,F-$))):(I.sortIndex=L,e(u,I),w||S||(w=!0,ae(X))),I},r.unstable_shouldYield=J,r.unstable_wrapCallback=function(I){var ee=y;return function(){var F=y;y=ee;try{return I.apply(this,arguments)}finally{y=F}}}})(D0)),D0}var tm;function Ny(){return tm||(tm=1,z0.exports=Xy()),z0.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 nm;function _y(){if(nm)return cn;nm=1;var r=P1(),e=Ny();function t(s){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+s,h=1;h<arguments.length;h++)o+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+s+"; visit "+o+" 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,o){a(s,o),a(s+"Capture",o)}function a(s,o){for(i[s]=o,s=0;s<o.length;s++)n.add(o[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 y(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,o,h,d){if(h!==null&&h.type===0)return!1;switch(typeof o){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,o,h,d){if(o===null||typeof o>"u"||S(s,o,h,d))return!0;if(d)return!1;if(h!==null)switch(h.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(s,o,h,d,g,x,k){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=h,this.propertyName=s,this.type=o,this.sanitizeURL=x,this.removeEmptyString=k}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){Q[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var o=s[0];Q[o]=new b(o,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){Q[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){Q[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){Q[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){Q[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){Q[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){Q[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){Q[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function j(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 o=s.replace(C,j);Q[o]=new b(o,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var o=s.replace(C,j);Q[o]=new b(o,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var o=s.replace(C,j);Q[o]=new b(o,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){Q[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){Q[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function P(s,o,h,d){var g=Q.hasOwnProperty(o)?Q[o]:null;(g!==null?g.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(w(o,h,g,d)&&(h=null),d||g===null?y(o)&&(h===null?s.removeAttribute(o):s.setAttribute(o,""+h)):g.mustUseProperty?s[g.propertyName]=h===null?g.type===3?!1:"":h:(o=g.attributeName,d=g.attributeNamespace,h===null?s.removeAttribute(o):(g=g.type,h=g===3||g===4&&h===!0?"":""+h,d?s.setAttributeNS(d,o,h):s.setAttribute(o,h))))}var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),J=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),I=Symbol.iterator;function ee(s){return s===null||typeof s!="object"?null:(s=I&&s[I]||s["@@iterator"],typeof s=="function"?s:null)}var F=Object.assign,$;function L(s){if($===void 0)try{throw Error()}catch(h){var o=h.stack.trim().match(/\n( *(at )?)/);$=o&&o[1]||""}return`
|
|
34
|
-
`+$+s}var G=!1;function se(s,o){if(!s||G)return"";G=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(W){var d=W}Reflect.construct(s,[],o)}else{try{o.call()}catch(W){d=W}s.call(o.prototype)}else{try{throw Error()}catch(W){d=W}s()}}catch(W){if(W&&d&&typeof W.stack=="string"){for(var g=W.stack.split(`
|
|
35
|
-
`),x=d.stack.split(`
|
|
36
|
-
`),k=g.length-1,A=x.length-1;1<=k&&0<=A&&g[k]!==x[A];)A--;for(;1<=k&&0<=A;k--,A--)if(g[k]!==x[A]){if(k!==1||A!==1)do if(k--,A--,0>A||g[k]!==x[A]){var T=`
|
|
37
|
-
`+g[k].replace(" at new "," at ");return s.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",s.displayName)),T}while(1<=k&&0<=A);break}}}finally{G=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?L(s):""}function fe(s){switch(s.tag){case 5:return L(s.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return s=se(s.type,!1),s;case 11:return s=se(s.type.render,!1),s;case 1:return s=se(s.type,!0),s;default:return""}}function $e(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 E:return"Fragment";case _:return"Portal";case Y:return"Profiler";case R:return"StrictMode";case U:return"Suspense";case re:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case J:return(s.displayName||"Context")+".Consumer";case le:return(s._context.displayName||"Context")+".Provider";case z:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case K:return o=s.displayName||null,o!==null?o:$e(s.type)||"Memo";case ae:o=s._payload,s=s._init;try{return $e(s(o))}catch{}}return null}function ue(s){var o=s.type;switch(s.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=o.render,s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $e(o);case 8:return o===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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function pe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ve(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Te(s){var o=ve(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),d=""+s[o];if(!s.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,x=h.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return g.call(this)},set:function(k){d=""+k,x.call(this,k)}}),Object.defineProperty(s,o,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(k){d=""+k},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function Ee(s){s._valueTracker||(s._valueTracker=Te(s))}function De(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var h=o.getValue(),d="";return s&&(d=ve(s)?s.checked?"true":"false":s.value),s=d,s!==h?(o.setValue(s),!0):!1}function ht(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 B(s,o){var h=o.checked;return F({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??s._wrapperState.initialChecked})}function Ze(s,o){var h=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;h=pe(o.value!=null?o.value:h),s._wrapperState={initialChecked:d,initialValue:h,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ne(s,o){o=o.checked,o!=null&&P(s,"checked",o,!1)}function Me(s,o){Ne(s,o);var h=pe(o.value),d=o.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}o.hasOwnProperty("value")?Fe(s,o.type,h):o.hasOwnProperty("defaultValue")&&Fe(s,o.type,pe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(s.defaultChecked=!!o.defaultChecked)}function Ke(s,o,h){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+s._wrapperState.initialValue,h||o===s.value||(s.value=o),s.defaultValue=o}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function Fe(s,o,h){(o!=="number"||ht(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var st=Array.isArray;function vt(s,o,h,d){if(s=s.options,o){o={};for(var g=0;g<h.length;g++)o["$"+h[g]]=!0;for(h=0;h<s.length;h++)g=o.hasOwnProperty("$"+s[h].value),s[h].selected!==g&&(s[h].selected=g),g&&d&&(s[h].defaultSelected=!0)}else{for(h=""+pe(h),o=null,g=0;g<s.length;g++){if(s[g].value===h){s[g].selected=!0,d&&(s[g].defaultSelected=!0);return}o!==null||s[g].disabled||(o=s[g])}o!==null&&(o.selected=!0)}}function St(s,o){if(o.dangerouslySetInnerHTML!=null)throw Error(t(91));return F({},o,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function er(s,o){var h=o.value;if(h==null){if(h=o.children,o=o.defaultValue,h!=null){if(o!=null)throw Error(t(92));if(st(h)){if(1<h.length)throw Error(t(93));h=h[0]}o=h}o==null&&(o=""),h=o}s._wrapperState={initialValue:pe(h)}}function Nn(s,o){var h=pe(o.value),d=pe(o.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),o.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),d!=null&&(s.defaultValue=""+d)}function tr(s){var o=s.textContent;o===s._wrapperState.initialValue&&o!==""&&o!==null&&(s.value=o)}function _n(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 Ut(s,o){return s==null||s==="http://www.w3.org/1999/xhtml"?_n(o):s==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Xr,H=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,h,d,g){MSApp.execUnsafeLocalFunction(function(){return s(o,h,d,g)})}:s})(function(s,o){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=o;else{for(Xr=Xr||document.createElement("div"),Xr.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Xr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;o.firstChild;)s.appendChild(o.firstChild)}});function he(s,o){if(o){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=o;return}}s.textContent=o}var Oe={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},Le=["Webkit","ms","Moz","O"];Object.keys(Oe).forEach(function(s){Le.forEach(function(o){o=o+s.charAt(0).toUpperCase()+s.substring(1),Oe[o]=Oe[s]})});function Pe(s,o,h){return o==null||typeof o=="boolean"||o===""?"":h||typeof o!="number"||o===0||Oe.hasOwnProperty(s)&&Oe[s]?(""+o).trim():o+"px"}function Gt(s,o){s=s.style;for(var h in o)if(o.hasOwnProperty(h)){var d=h.indexOf("--")===0,g=Pe(h,o[h],d);h==="float"&&(h="cssFloat"),d?s.setProperty(h,g):s[h]=g}}var gn=F({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 Nt(s,o){if(o){if(gn[s]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(t(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(t(61))}if(o.style!=null&&typeof o.style!="object")throw Error(t(62))}}function xi(s,o){if(s.indexOf("-")===-1)return typeof o.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 Ii=null;function _t(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ft=null,Nr=null,_r=null;function go(s){if(s=pl(s)){if(typeof ft!="function")throw Error(t(280));var o=s.stateNode;o&&(o=_o(o),ft(s.stateNode,s.type,o))}}function Ys(s){Nr?_r?_r.push(s):_r=[s]:Nr=s}function Yi(){if(Nr){var s=Nr,o=_r;if(_r=Nr=null,go(s),o)for(s=0;s<o.length;s++)go(o[s])}}function Of(s,o){return s(o)}function gf(){}var tu=!1;function yf(s,o,h){if(tu)return s(o,h);tu=!0;try{return Of(s,o,h)}finally{tu=!1,(Nr!==null||_r!==null)&&(gf(),Yi())}}function Fs(s,o){var h=s.stateNode;if(h===null)return null;var d=_o(h);if(d===null)return null;h=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(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,o,typeof h));return h}var nu=!1;if(c)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{nu=!1}function _6(s,o,h,d,g,x,k,A,T){var W=Array.prototype.slice.call(arguments,3);try{o.apply(h,W)}catch(ne){this.onError(ne)}}var qs=!1,yo=null,xo=!1,ru=null,z6={onError:function(s){qs=!0,yo=s}};function D6(s,o,h,d,g,x,k,A,T){qs=!1,yo=null,_6.apply(z6,arguments)}function W6(s,o,h,d,g,x,k,A,T){if(D6.apply(this,arguments),qs){if(qs){var W=yo;qs=!1,yo=null}else throw Error(t(198));xo||(xo=!0,ru=W)}}function vi(s){var o=s,h=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(h=o.return),s=o.return;while(s)}return o.tag===3?h:null}function xf(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function vf(s){if(vi(s)!==s)throw Error(t(188))}function H6(s){var o=s.alternate;if(!o){if(o=vi(s),o===null)throw Error(t(188));return o!==s?null:s}for(var h=s,d=o;;){var g=h.return;if(g===null)break;var x=g.alternate;if(x===null){if(d=g.return,d!==null){h=d;continue}break}if(g.child===x.child){for(x=g.child;x;){if(x===h)return vf(g),s;if(x===d)return vf(g),o;x=x.sibling}throw Error(t(188))}if(h.return!==d.return)h=g,d=x;else{for(var k=!1,A=g.child;A;){if(A===h){k=!0,h=g,d=x;break}if(A===d){k=!0,d=g,h=x;break}A=A.sibling}if(!k){for(A=x.child;A;){if(A===h){k=!0,h=x,d=g;break}if(A===d){k=!0,d=x,h=g;break}A=A.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:o}function Sf(s){return s=H6(s),s!==null?wf(s):null}function wf(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var o=wf(s);if(o!==null)return o;s=s.sibling}return null}var kf=e.unstable_scheduleCallback,bf=e.unstable_cancelCallback,I6=e.unstable_shouldYield,Y6=e.unstable_requestPaint,mt=e.unstable_now,F6=e.unstable_getCurrentPriorityLevel,iu=e.unstable_ImmediatePriority,Qf=e.unstable_UserBlockingPriority,vo=e.unstable_NormalPriority,B6=e.unstable_LowPriority,$f=e.unstable_IdlePriority,So=null,nr=null;function q6(s){if(nr&&typeof nr.onCommitFiberRoot=="function")try{nr.onCommitFiberRoot(So,s,void 0,(s.current.flags&128)===128)}catch{}}var zn=Math.clz32?Math.clz32:K6,U6=Math.log,G6=Math.LN2;function K6(s){return s>>>=0,s===0?32:31-(U6(s)/G6|0)|0}var wo=64,ko=4194304;function Us(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 bo(s,o){var h=s.pendingLanes;if(h===0)return 0;var d=0,g=s.suspendedLanes,x=s.pingedLanes,k=h&268435455;if(k!==0){var A=k&~g;A!==0?d=Us(A):(x&=k,x!==0&&(d=Us(x)))}else k=h&~g,k!==0?d=Us(k):x!==0&&(d=Us(x));if(d===0)return 0;if(o!==0&&o!==d&&(o&g)===0&&(g=d&-d,x=o&-o,g>=x||g===16&&(x&4194240)!==0))return o;if((d&4)!==0&&(d|=h&16),o=s.entangledLanes,o!==0)for(s=s.entanglements,o&=d;0<o;)h=31-zn(o),g=1<<h,d|=s[h],o&=~g;return d}function J6(s,o){switch(s){case 1:case 2:case 4:return o+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 o+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 e5(s,o){for(var h=s.suspendedLanes,d=s.pingedLanes,g=s.expirationTimes,x=s.pendingLanes;0<x;){var k=31-zn(x),A=1<<k,T=g[k];T===-1?((A&h)===0||(A&d)!==0)&&(g[k]=J6(A,o)):T<=o&&(s.expiredLanes|=A),x&=~A}}function su(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Pf(){var s=wo;return wo<<=1,(wo&4194240)===0&&(wo=64),s}function lu(s){for(var o=[],h=0;31>h;h++)o.push(s);return o}function Gs(s,o,h){s.pendingLanes|=o,o!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,o=31-zn(o),s[o]=h}function t5(s,o){var h=s.pendingLanes&~o;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=o,s.mutableReadLanes&=o,s.entangledLanes&=o,o=s.entanglements;var d=s.eventTimes;for(s=s.expirationTimes;0<h;){var g=31-zn(h),x=1<<g;o[g]=0,d[g]=-1,s[g]=-1,h&=~x}}function ou(s,o){var h=s.entangledLanes|=o;for(s=s.entanglements;h;){var d=31-zn(h),g=1<<d;g&o|s[d]&o&&(s[d]|=o),h&=~g}}var Je=0;function Af(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Cf,au,Zf,Tf,Mf,cu=!1,Qo=[],zr=null,Dr=null,Wr=null,Ks=new Map,Js=new Map,Hr=[],n5="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 Ef(s,o){switch(s){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":Ks.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(o.pointerId)}}function el(s,o,h,d,g,x){return s===null||s.nativeEvent!==x?(s={blockedOn:o,domEventName:h,eventSystemFlags:d,nativeEvent:x,targetContainers:[g]},o!==null&&(o=pl(o),o!==null&&au(o)),s):(s.eventSystemFlags|=d,o=s.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),s)}function r5(s,o,h,d,g){switch(o){case"focusin":return zr=el(zr,s,o,h,d,g),!0;case"dragenter":return Dr=el(Dr,s,o,h,d,g),!0;case"mouseover":return Wr=el(Wr,s,o,h,d,g),!0;case"pointerover":var x=g.pointerId;return Ks.set(x,el(Ks.get(x)||null,s,o,h,d,g)),!0;case"gotpointercapture":return x=g.pointerId,Js.set(x,el(Js.get(x)||null,s,o,h,d,g)),!0}return!1}function jf(s){var o=Si(s.target);if(o!==null){var h=vi(o);if(h!==null){if(o=h.tag,o===13){if(o=xf(h),o!==null){s.blockedOn=o,Mf(s.priority,function(){Zf(h)});return}}else if(o===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function $o(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var h=hu(s.domEventName,s.eventSystemFlags,o[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var d=new h.constructor(h.type,h);Ii=d,h.target.dispatchEvent(d),Ii=null}else return o=pl(h),o!==null&&au(o),s.blockedOn=h,!1;o.shift()}return!0}function Vf(s,o,h){$o(s)&&h.delete(o)}function i5(){cu=!1,zr!==null&&$o(zr)&&(zr=null),Dr!==null&&$o(Dr)&&(Dr=null),Wr!==null&&$o(Wr)&&(Wr=null),Ks.forEach(Vf),Js.forEach(Vf)}function tl(s,o){s.blockedOn===o&&(s.blockedOn=null,cu||(cu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,i5)))}function nl(s){function o(g){return tl(g,s)}if(0<Qo.length){tl(Qo[0],s);for(var h=1;h<Qo.length;h++){var d=Qo[h];d.blockedOn===s&&(d.blockedOn=null)}}for(zr!==null&&tl(zr,s),Dr!==null&&tl(Dr,s),Wr!==null&&tl(Wr,s),Ks.forEach(o),Js.forEach(o),h=0;h<Hr.length;h++)d=Hr[h],d.blockedOn===s&&(d.blockedOn=null);for(;0<Hr.length&&(h=Hr[0],h.blockedOn===null);)jf(h),h.blockedOn===null&&Hr.shift()}var Fi=Z.ReactCurrentBatchConfig,Po=!0;function s5(s,o,h,d){var g=Je,x=Fi.transition;Fi.transition=null;try{Je=1,uu(s,o,h,d)}finally{Je=g,Fi.transition=x}}function l5(s,o,h,d){var g=Je,x=Fi.transition;Fi.transition=null;try{Je=4,uu(s,o,h,d)}finally{Je=g,Fi.transition=x}}function uu(s,o,h,d){if(Po){var g=hu(s,o,h,d);if(g===null)Au(s,o,d,Ao,h),Ef(s,d);else if(r5(g,s,o,h,d))d.stopPropagation();else if(Ef(s,d),o&4&&-1<n5.indexOf(s)){for(;g!==null;){var x=pl(g);if(x!==null&&Cf(x),x=hu(s,o,h,d),x===null&&Au(s,o,d,Ao,h),x===g)break;g=x}g!==null&&d.stopPropagation()}else Au(s,o,d,null,h)}}var Ao=null;function hu(s,o,h,d){if(Ao=null,s=_t(d),s=Si(s),s!==null)if(o=vi(s),o===null)s=null;else if(h=o.tag,h===13){if(s=xf(o),s!==null)return s;s=null}else if(h===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null);return Ao=s,null}function Rf(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(F6()){case iu:return 1;case Qf:return 4;case vo:case B6:return 16;case $f:return 536870912;default:return 16}default:return 16}}var Ir=null,fu=null,Co=null;function Lf(){if(Co)return Co;var s,o=fu,h=o.length,d,g="value"in Ir?Ir.value:Ir.textContent,x=g.length;for(s=0;s<h&&o[s]===g[s];s++);var k=h-s;for(d=1;d<=k&&o[h-d]===g[x-d];d++);return Co=g.slice(s,1<d?1-d:void 0)}function Zo(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function To(){return!0}function Xf(){return!1}function yn(s){function o(h,d,g,x,k){this._reactName=h,this._targetInst=g,this.type=d,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var A in s)s.hasOwnProperty(A)&&(h=s[A],this[A]=h?h(x):x[A]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?To:Xf,this.isPropagationStopped=Xf,this}return F(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),o}var Bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=yn(Bi),rl=F({},Bi,{view:0,detail:0}),o5=yn(rl),pu,mu,il,Mo=F({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,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!==il&&(il&&s.type==="mousemove"?(pu=s.screenX-il.screenX,mu=s.screenY-il.screenY):mu=pu=0,il=s),pu)},movementY:function(s){return"movementY"in s?s.movementY:mu}}),Nf=yn(Mo),a5=F({},Mo,{dataTransfer:0}),c5=yn(a5),u5=F({},rl,{relatedTarget:0}),Ou=yn(u5),h5=F({},Bi,{animationName:0,elapsedTime:0,pseudoElement:0}),f5=yn(h5),d5=F({},Bi,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),p5=yn(d5),m5=F({},Bi,{data:0}),_f=yn(m5),O5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g5={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"},y5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function x5(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=y5[s])?!!o[s]:!1}function gu(){return x5}var v5=F({},rl,{key:function(s){if(s.key){var o=O5[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=Zo(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?g5[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(s){return s.type==="keypress"?Zo(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Zo(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),S5=yn(v5),w5=F({},Mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zf=yn(w5),k5=F({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),b5=yn(k5),Q5=F({},Bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),$5=yn(Q5),P5=F({},Mo,{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}),A5=yn(P5),C5=[9,13,27,32],yu=c&&"CompositionEvent"in window,sl=null;c&&"documentMode"in document&&(sl=document.documentMode);var Z5=c&&"TextEvent"in window&&!sl,Df=c&&(!yu||sl&&8<sl&&11>=sl),Wf=" ",Hf=!1;function If(s,o){switch(s){case"keyup":return C5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var qi=!1;function T5(s,o){switch(s){case"compositionend":return Yf(o);case"keypress":return o.which!==32?null:(Hf=!0,Wf);case"textInput":return s=o.data,s===Wf&&Hf?null:s;default:return null}}function M5(s,o){if(qi)return s==="compositionend"||!yu&&If(s,o)?(s=Lf(),Co=fu=Ir=null,qi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Df&&o.locale!=="ko"?null:o.data;default:return null}}var E5={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 Ff(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!E5[s.type]:o==="textarea"}function Bf(s,o,h,d){Ys(d),o=Lo(o,"onChange"),0<o.length&&(h=new du("onChange","change",null,h,d),s.push({event:h,listeners:o}))}var ll=null,ol=null;function j5(s){fd(s,0)}function Eo(s){var o=es(s);if(De(o))return s}function V5(s,o){if(s==="change")return o}var qf=!1;if(c){var xu;if(c){var vu="oninput"in document;if(!vu){var Uf=document.createElement("div");Uf.setAttribute("oninput","return;"),vu=typeof Uf.oninput=="function"}xu=vu}else xu=!1;qf=xu&&(!document.documentMode||9<document.documentMode)}function Gf(){ll&&(ll.detachEvent("onpropertychange",Kf),ol=ll=null)}function Kf(s){if(s.propertyName==="value"&&Eo(ol)){var o=[];Bf(o,ol,s,_t(s)),yf(j5,o)}}function R5(s,o,h){s==="focusin"?(Gf(),ll=o,ol=h,ll.attachEvent("onpropertychange",Kf)):s==="focusout"&&Gf()}function L5(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Eo(ol)}function X5(s,o){if(s==="click")return Eo(o)}function N5(s,o){if(s==="input"||s==="change")return Eo(o)}function _5(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Dn=typeof Object.is=="function"?Object.is:_5;function al(s,o){if(Dn(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var h=Object.keys(s),d=Object.keys(o);if(h.length!==d.length)return!1;for(d=0;d<h.length;d++){var g=h[d];if(!u.call(o,g)||!Dn(s[g],o[g]))return!1}return!0}function Jf(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function ed(s,o){var h=Jf(s);s=0;for(var d;h;){if(h.nodeType===3){if(d=s+h.textContent.length,s<=o&&d>=o)return{node:h,offset:o-s};s=d}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Jf(h)}}function td(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?td(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function nd(){for(var s=window,o=ht();o instanceof s.HTMLIFrameElement;){try{var h=typeof o.contentWindow.location.href=="string"}catch{h=!1}if(h)s=o.contentWindow;else break;o=ht(s.document)}return o}function Su(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}function z5(s){var o=nd(),h=s.focusedElem,d=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&td(h.ownerDocument.documentElement,h)){if(d!==null&&Su(h)){if(o=d.start,s=d.end,s===void 0&&(s=o),"selectionStart"in h)h.selectionStart=o,h.selectionEnd=Math.min(s,h.value.length);else if(s=(o=h.ownerDocument||document)&&o.defaultView||window,s.getSelection){s=s.getSelection();var g=h.textContent.length,x=Math.min(d.start,g);d=d.end===void 0?x:Math.min(d.end,g),!s.extend&&x>d&&(g=d,d=x,x=g),g=ed(h,x);var k=ed(h,d);g&&k&&(s.rangeCount!==1||s.anchorNode!==g.node||s.anchorOffset!==g.offset||s.focusNode!==k.node||s.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(g.node,g.offset),s.removeAllRanges(),x>d?(s.addRange(o),s.extend(k.node,k.offset)):(o.setEnd(k.node,k.offset),s.addRange(o)))}}for(o=[],s=h;s=s.parentNode;)s.nodeType===1&&o.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<o.length;h++)s=o[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var D5=c&&"documentMode"in document&&11>=document.documentMode,Ui=null,wu=null,cl=null,ku=!1;function rd(s,o,h){var d=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;ku||Ui==null||Ui!==ht(d)||(d=Ui,"selectionStart"in d&&Su(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}),cl&&al(cl,d)||(cl=d,d=Lo(wu,"onSelect"),0<d.length&&(o=new du("onSelect","select",null,o,h),s.push({event:o,listeners:d}),o.target=Ui)))}function jo(s,o){var h={};return h[s.toLowerCase()]=o.toLowerCase(),h["Webkit"+s]="webkit"+o,h["Moz"+s]="moz"+o,h}var Gi={animationend:jo("Animation","AnimationEnd"),animationiteration:jo("Animation","AnimationIteration"),animationstart:jo("Animation","AnimationStart"),transitionend:jo("Transition","TransitionEnd")},bu={},id={};c&&(id=document.createElement("div").style,"AnimationEvent"in window||(delete Gi.animationend.animation,delete Gi.animationiteration.animation,delete Gi.animationstart.animation),"TransitionEvent"in window||delete Gi.transitionend.transition);function Vo(s){if(bu[s])return bu[s];if(!Gi[s])return s;var o=Gi[s],h;for(h in o)if(o.hasOwnProperty(h)&&h in id)return bu[s]=o[h];return s}var sd=Vo("animationend"),ld=Vo("animationiteration"),od=Vo("animationstart"),ad=Vo("transitionend"),cd=new Map,ud="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 Yr(s,o){cd.set(s,o),l(o,[s])}for(var Qu=0;Qu<ud.length;Qu++){var $u=ud[Qu],W5=$u.toLowerCase(),H5=$u[0].toUpperCase()+$u.slice(1);Yr(W5,"on"+H5)}Yr(sd,"onAnimationEnd"),Yr(ld,"onAnimationIteration"),Yr(od,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(ad,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("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 ul="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(" "),I5=new Set("cancel close invalid load scroll toggle".split(" ").concat(ul));function hd(s,o,h){var d=s.type||"unknown-event";s.currentTarget=h,W6(d,o,void 0,s),s.currentTarget=null}function fd(s,o){o=(o&4)!==0;for(var h=0;h<s.length;h++){var d=s[h],g=d.event;d=d.listeners;e:{var x=void 0;if(o)for(var k=d.length-1;0<=k;k--){var A=d[k],T=A.instance,W=A.currentTarget;if(A=A.listener,T!==x&&g.isPropagationStopped())break e;hd(g,A,W),x=T}else for(k=0;k<d.length;k++){if(A=d[k],T=A.instance,W=A.currentTarget,A=A.listener,T!==x&&g.isPropagationStopped())break e;hd(g,A,W),x=T}}}if(xo)throw s=ru,xo=!1,ru=null,s}function rt(s,o){var h=o[ju];h===void 0&&(h=o[ju]=new Set);var d=s+"__bubble";h.has(d)||(dd(o,s,2,!1),h.add(d))}function Pu(s,o,h){var d=0;o&&(d|=4),dd(h,s,d,o)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function hl(s){if(!s[Ro]){s[Ro]=!0,n.forEach(function(h){h!=="selectionchange"&&(I5.has(h)||Pu(h,!1,s),Pu(h,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[Ro]||(o[Ro]=!0,Pu("selectionchange",!1,o))}}function dd(s,o,h,d){switch(Rf(o)){case 1:var g=s5;break;case 4:g=l5;break;default:g=uu}h=g.bind(null,o,h,s),g=void 0,!nu||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),d?g!==void 0?s.addEventListener(o,h,{capture:!0,passive:g}):s.addEventListener(o,h,!0):g!==void 0?s.addEventListener(o,h,{passive:g}):s.addEventListener(o,h,!1)}function Au(s,o,h,d,g){var x=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var k=d.tag;if(k===3||k===4){var A=d.stateNode.containerInfo;if(A===g||A.nodeType===8&&A.parentNode===g)break;if(k===4)for(k=d.return;k!==null;){var T=k.tag;if((T===3||T===4)&&(T=k.stateNode.containerInfo,T===g||T.nodeType===8&&T.parentNode===g))return;k=k.return}for(;A!==null;){if(k=Si(A),k===null)return;if(T=k.tag,T===5||T===6){d=x=k;continue e}A=A.parentNode}}d=d.return}yf(function(){var W=x,ne=_t(h),ie=[];e:{var te=cd.get(s);if(te!==void 0){var me=du,xe=s;switch(s){case"keypress":if(Zo(h)===0)break e;case"keydown":case"keyup":me=S5;break;case"focusin":xe="focus",me=Ou;break;case"focusout":xe="blur",me=Ou;break;case"beforeblur":case"afterblur":me=Ou;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":me=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=c5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=b5;break;case sd:case ld:case od:me=f5;break;case ad:me=$5;break;case"scroll":me=o5;break;case"wheel":me=A5;break;case"copy":case"cut":case"paste":me=p5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=zf}var ke=(o&4)!==0,Ot=!ke&&s==="scroll",N=ke?te!==null?te+"Capture":null:te;ke=[];for(var V=W,D;V!==null;){D=V;var oe=D.stateNode;if(D.tag===5&&oe!==null&&(D=oe,N!==null&&(oe=Fs(V,N),oe!=null&&ke.push(fl(V,oe,D)))),Ot)break;V=V.return}0<ke.length&&(te=new me(te,xe,null,h,ne),ie.push({event:te,listeners:ke}))}}if((o&7)===0){e:{if(te=s==="mouseover"||s==="pointerover",me=s==="mouseout"||s==="pointerout",te&&h!==Ii&&(xe=h.relatedTarget||h.fromElement)&&(Si(xe)||xe[Sr]))break e;if((me||te)&&(te=ne.window===ne?ne:(te=ne.ownerDocument)?te.defaultView||te.parentWindow:window,me?(xe=h.relatedTarget||h.toElement,me=W,xe=xe?Si(xe):null,xe!==null&&(Ot=vi(xe),xe!==Ot||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(me=null,xe=W),me!==xe)){if(ke=Nf,oe="onMouseLeave",N="onMouseEnter",V="mouse",(s==="pointerout"||s==="pointerover")&&(ke=zf,oe="onPointerLeave",N="onPointerEnter",V="pointer"),Ot=me==null?te:es(me),D=xe==null?te:es(xe),te=new ke(oe,V+"leave",me,h,ne),te.target=Ot,te.relatedTarget=D,oe=null,Si(ne)===W&&(ke=new ke(N,V+"enter",xe,h,ne),ke.target=D,ke.relatedTarget=Ot,oe=ke),Ot=oe,me&&xe)t:{for(ke=me,N=xe,V=0,D=ke;D;D=Ki(D))V++;for(D=0,oe=N;oe;oe=Ki(oe))D++;for(;0<V-D;)ke=Ki(ke),V--;for(;0<D-V;)N=Ki(N),D--;for(;V--;){if(ke===N||N!==null&&ke===N.alternate)break t;ke=Ki(ke),N=Ki(N)}ke=null}else ke=null;me!==null&&pd(ie,te,me,ke,!1),xe!==null&&Ot!==null&&pd(ie,Ot,xe,ke,!0)}}e:{if(te=W?es(W):window,me=te.nodeName&&te.nodeName.toLowerCase(),me==="select"||me==="input"&&te.type==="file")var be=V5;else if(Ff(te))if(qf)be=N5;else{be=L5;var Ae=R5}else(me=te.nodeName)&&me.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(be=X5);if(be&&(be=be(s,W))){Bf(ie,be,h,ne);break e}Ae&&Ae(s,te,W),s==="focusout"&&(Ae=te._wrapperState)&&Ae.controlled&&te.type==="number"&&Fe(te,"number",te.value)}switch(Ae=W?es(W):window,s){case"focusin":(Ff(Ae)||Ae.contentEditable==="true")&&(Ui=Ae,wu=W,cl=null);break;case"focusout":cl=wu=Ui=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,rd(ie,h,ne);break;case"selectionchange":if(D5)break;case"keydown":case"keyup":rd(ie,h,ne)}var Ce;if(yu)e:{switch(s){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else qi?If(s,h)&&(je="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(je="onCompositionStart");je&&(Df&&h.locale!=="ko"&&(qi||je!=="onCompositionStart"?je==="onCompositionEnd"&&qi&&(Ce=Lf()):(Ir=ne,fu="value"in Ir?Ir.value:Ir.textContent,qi=!0)),Ae=Lo(W,je),0<Ae.length&&(je=new _f(je,s,null,h,ne),ie.push({event:je,listeners:Ae}),Ce?je.data=Ce:(Ce=Yf(h),Ce!==null&&(je.data=Ce)))),(Ce=Z5?T5(s,h):M5(s,h))&&(W=Lo(W,"onBeforeInput"),0<W.length&&(ne=new _f("onBeforeInput","beforeinput",null,h,ne),ie.push({event:ne,listeners:W}),ne.data=Ce))}fd(ie,o)})}function fl(s,o,h){return{instance:s,listener:o,currentTarget:h}}function Lo(s,o){for(var h=o+"Capture",d=[];s!==null;){var g=s,x=g.stateNode;g.tag===5&&x!==null&&(g=x,x=Fs(s,h),x!=null&&d.unshift(fl(s,x,g)),x=Fs(s,o),x!=null&&d.push(fl(s,x,g))),s=s.return}return d}function Ki(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function pd(s,o,h,d,g){for(var x=o._reactName,k=[];h!==null&&h!==d;){var A=h,T=A.alternate,W=A.stateNode;if(T!==null&&T===d)break;A.tag===5&&W!==null&&(A=W,g?(T=Fs(h,x),T!=null&&k.unshift(fl(h,T,A))):g||(T=Fs(h,x),T!=null&&k.push(fl(h,T,A)))),h=h.return}k.length!==0&&s.push({event:o,listeners:k})}var Y5=/\r\n?/g,F5=/\u0000|\uFFFD/g;function md(s){return(typeof s=="string"?s:""+s).replace(Y5,`
|
|
38
|
-
`).replace(F5,"")}function Xo(s,o,h){if(o=md(o),md(s)!==o&&h)throw Error(t(425))}function No(){}var Cu=null,Zu=null;function Tu(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Mu=typeof setTimeout=="function"?setTimeout:void 0,B5=typeof clearTimeout=="function"?clearTimeout:void 0,Od=typeof Promise=="function"?Promise:void 0,q5=typeof queueMicrotask=="function"?queueMicrotask:typeof Od<"u"?function(s){return Od.resolve(null).then(s).catch(U5)}:Mu;function U5(s){setTimeout(function(){throw s})}function Eu(s,o){var h=o,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),nl(o);return}d--}else h!=="$"&&h!=="$?"&&h!=="$!"||d++;h=g}while(h);nl(o)}function Fr(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return s}function gd(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(o===0)return s;o--}else h==="/$"&&o++}s=s.previousSibling}return null}var Ji=Math.random().toString(36).slice(2),rr="__reactFiber$"+Ji,dl="__reactProps$"+Ji,Sr="__reactContainer$"+Ji,ju="__reactEvents$"+Ji,G5="__reactListeners$"+Ji,K5="__reactHandles$"+Ji;function Si(s){var o=s[rr];if(o)return o;for(var h=s.parentNode;h;){if(o=h[Sr]||h[rr]){if(h=o.alternate,o.child!==null||h!==null&&h.child!==null)for(s=gd(s);s!==null;){if(h=s[rr])return h;s=gd(s)}return o}s=h,h=s.parentNode}return null}function pl(s){return s=s[rr]||s[Sr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function es(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function _o(s){return s[dl]||null}var Vu=[],ts=-1;function Br(s){return{current:s}}function it(s){0>ts||(s.current=Vu[ts],Vu[ts]=null,ts--)}function tt(s,o){ts++,Vu[ts]=s.current,s.current=o}var qr={},zt=Br(qr),rn=Br(!1),wi=qr;function ns(s,o){var h=s.type.contextTypes;if(!h)return qr;var d=s.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var g={},x;for(x in h)g[x]=o[x];return d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=o,s.__reactInternalMemoizedMaskedChildContext=g),g}function sn(s){return s=s.childContextTypes,s!=null}function zo(){it(rn),it(zt)}function yd(s,o,h){if(zt.current!==qr)throw Error(t(168));tt(zt,o),tt(rn,h)}function xd(s,o,h){var d=s.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return h;d=d.getChildContext();for(var g in d)if(!(g in o))throw Error(t(108,ue(s)||"Unknown",g));return F({},h,d)}function Do(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||qr,wi=zt.current,tt(zt,s),tt(rn,rn.current),!0}function vd(s,o,h){var d=s.stateNode;if(!d)throw Error(t(169));h?(s=xd(s,o,wi),d.__reactInternalMemoizedMergedChildContext=s,it(rn),it(zt),tt(zt,s)):it(rn),tt(rn,h)}var wr=null,Wo=!1,Ru=!1;function Sd(s){wr===null?wr=[s]:wr.push(s)}function J5(s){Wo=!0,Sd(s)}function Ur(){if(!Ru&&wr!==null){Ru=!0;var s=0,o=Je;try{var h=wr;for(Je=1;s<h.length;s++){var d=h[s];do d=d(!0);while(d!==null)}wr=null,Wo=!1}catch(g){throw wr!==null&&(wr=wr.slice(s+1)),kf(iu,Ur),g}finally{Je=o,Ru=!1}}return null}var rs=[],is=0,Ho=null,Io=0,An=[],Cn=0,ki=null,kr=1,br="";function bi(s,o){rs[is++]=Io,rs[is++]=Ho,Ho=s,Io=o}function wd(s,o,h){An[Cn++]=kr,An[Cn++]=br,An[Cn++]=ki,ki=s;var d=kr;s=br;var g=32-zn(d)-1;d&=~(1<<g),h+=1;var x=32-zn(o)+g;if(30<x){var k=g-g%5;x=(d&(1<<k)-1).toString(32),d>>=k,g-=k,kr=1<<32-zn(o)+g|h<<g|d,br=x+s}else kr=1<<x|h<<g|d,br=s}function Lu(s){s.return!==null&&(bi(s,1),wd(s,1,0))}function Xu(s){for(;s===Ho;)Ho=rs[--is],rs[is]=null,Io=rs[--is],rs[is]=null;for(;s===ki;)ki=An[--Cn],An[Cn]=null,br=An[--Cn],An[Cn]=null,kr=An[--Cn],An[Cn]=null}var xn=null,vn=null,lt=!1,Wn=null;function kd(s,o){var h=En(5,null,null,0);h.elementType="DELETED",h.stateNode=o,h.return=s,o=s.deletions,o===null?(s.deletions=[h],s.flags|=16):o.push(h)}function bd(s,o){switch(s.tag){case 5:var h=s.type;return o=o.nodeType!==1||h.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(s.stateNode=o,xn=s,vn=Fr(o.firstChild),!0):!1;case 6:return o=s.pendingProps===""||o.nodeType!==3?null:o,o!==null?(s.stateNode=o,xn=s,vn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(h=ki!==null?{id:kr,overflow:br}:null,s.memoizedState={dehydrated:o,treeContext:h,retryLane:1073741824},h=En(18,null,null,0),h.stateNode=o,h.return=s,s.child=h,xn=s,vn=null,!0):!1;default:return!1}}function Nu(s){return(s.mode&1)!==0&&(s.flags&128)===0}function _u(s){if(lt){var o=vn;if(o){var h=o;if(!bd(s,o)){if(Nu(s))throw Error(t(418));o=Fr(h.nextSibling);var d=xn;o&&bd(s,o)?kd(d,h):(s.flags=s.flags&-4097|2,lt=!1,xn=s)}}else{if(Nu(s))throw Error(t(418));s.flags=s.flags&-4097|2,lt=!1,xn=s}}}function Qd(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;xn=s}function Yo(s){if(s!==xn)return!1;if(!lt)return Qd(s),lt=!0,!1;var o;if((o=s.tag!==3)&&!(o=s.tag!==5)&&(o=s.type,o=o!=="head"&&o!=="body"&&!Tu(s.type,s.memoizedProps)),o&&(o=vn)){if(Nu(s))throw $d(),Error(t(418));for(;o;)kd(s,o),o=Fr(o.nextSibling)}if(Qd(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(o===0){vn=Fr(s.nextSibling);break e}o--}else h!=="$"&&h!=="$!"&&h!=="$?"||o++}s=s.nextSibling}vn=null}}else vn=xn?Fr(s.stateNode.nextSibling):null;return!0}function $d(){for(var s=vn;s;)s=Fr(s.nextSibling)}function ss(){vn=xn=null,lt=!1}function zu(s){Wn===null?Wn=[s]:Wn.push(s)}var ey=Z.ReactCurrentBatchConfig;function ml(s,o,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,x=""+s;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===x?o.ref:(o=function(k){var A=g.refs;k===null?delete A[x]:A[x]=k},o._stringRef=x,o)}if(typeof s!="string")throw Error(t(284));if(!h._owner)throw Error(t(290,s))}return s}function Fo(s,o){throw s=Object.prototype.toString.call(o),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s))}function Pd(s){var o=s._init;return o(s._payload)}function Ad(s){function o(N,V){if(s){var D=N.deletions;D===null?(N.deletions=[V],N.flags|=16):D.push(V)}}function h(N,V){if(!s)return null;for(;V!==null;)o(N,V),V=V.sibling;return null}function d(N,V){for(N=new Map;V!==null;)V.key!==null?N.set(V.key,V):N.set(V.index,V),V=V.sibling;return N}function g(N,V){return N=ii(N,V),N.index=0,N.sibling=null,N}function x(N,V,D){return N.index=D,s?(D=N.alternate,D!==null?(D=D.index,D<V?(N.flags|=2,V):D):(N.flags|=2,V)):(N.flags|=1048576,V)}function k(N){return s&&N.alternate===null&&(N.flags|=2),N}function A(N,V,D,oe){return V===null||V.tag!==6?(V=M0(D,N.mode,oe),V.return=N,V):(V=g(V,D),V.return=N,V)}function T(N,V,D,oe){var be=D.type;return be===E?ne(N,V,D.props.children,oe,D.key):V!==null&&(V.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ae&&Pd(be)===V.type)?(oe=g(V,D.props),oe.ref=ml(N,V,D),oe.return=N,oe):(oe=ga(D.type,D.key,D.props,null,N.mode,oe),oe.ref=ml(N,V,D),oe.return=N,oe)}function W(N,V,D,oe){return V===null||V.tag!==4||V.stateNode.containerInfo!==D.containerInfo||V.stateNode.implementation!==D.implementation?(V=E0(D,N.mode,oe),V.return=N,V):(V=g(V,D.children||[]),V.return=N,V)}function ne(N,V,D,oe,be){return V===null||V.tag!==7?(V=Mi(D,N.mode,oe,be),V.return=N,V):(V=g(V,D),V.return=N,V)}function ie(N,V,D){if(typeof V=="string"&&V!==""||typeof V=="number")return V=M0(""+V,N.mode,D),V.return=N,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case X:return D=ga(V.type,V.key,V.props,null,N.mode,D),D.ref=ml(N,null,V),D.return=N,D;case _:return V=E0(V,N.mode,D),V.return=N,V;case ae:var oe=V._init;return ie(N,oe(V._payload),D)}if(st(V)||ee(V))return V=Mi(V,N.mode,D,null),V.return=N,V;Fo(N,V)}return null}function te(N,V,D,oe){var be=V!==null?V.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return be!==null?null:A(N,V,""+D,oe);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case X:return D.key===be?T(N,V,D,oe):null;case _:return D.key===be?W(N,V,D,oe):null;case ae:return be=D._init,te(N,V,be(D._payload),oe)}if(st(D)||ee(D))return be!==null?null:ne(N,V,D,oe,null);Fo(N,D)}return null}function me(N,V,D,oe,be){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return N=N.get(D)||null,A(V,N,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case X:return N=N.get(oe.key===null?D:oe.key)||null,T(V,N,oe,be);case _:return N=N.get(oe.key===null?D:oe.key)||null,W(V,N,oe,be);case ae:var Ae=oe._init;return me(N,V,D,Ae(oe._payload),be)}if(st(oe)||ee(oe))return N=N.get(D)||null,ne(V,N,oe,be,null);Fo(V,oe)}return null}function xe(N,V,D,oe){for(var be=null,Ae=null,Ce=V,je=V=0,Ct=null;Ce!==null&&je<D.length;je++){Ce.index>je?(Ct=Ce,Ce=null):Ct=Ce.sibling;var Be=te(N,Ce,D[je],oe);if(Be===null){Ce===null&&(Ce=Ct);break}s&&Ce&&Be.alternate===null&&o(N,Ce),V=x(Be,V,je),Ae===null?be=Be:Ae.sibling=Be,Ae=Be,Ce=Ct}if(je===D.length)return h(N,Ce),lt&&bi(N,je),be;if(Ce===null){for(;je<D.length;je++)Ce=ie(N,D[je],oe),Ce!==null&&(V=x(Ce,V,je),Ae===null?be=Ce:Ae.sibling=Ce,Ae=Ce);return lt&&bi(N,je),be}for(Ce=d(N,Ce);je<D.length;je++)Ct=me(Ce,N,je,D[je],oe),Ct!==null&&(s&&Ct.alternate!==null&&Ce.delete(Ct.key===null?je:Ct.key),V=x(Ct,V,je),Ae===null?be=Ct:Ae.sibling=Ct,Ae=Ct);return s&&Ce.forEach(function(si){return o(N,si)}),lt&&bi(N,je),be}function ke(N,V,D,oe){var be=ee(D);if(typeof be!="function")throw Error(t(150));if(D=be.call(D),D==null)throw Error(t(151));for(var Ae=be=null,Ce=V,je=V=0,Ct=null,Be=D.next();Ce!==null&&!Be.done;je++,Be=D.next()){Ce.index>je?(Ct=Ce,Ce=null):Ct=Ce.sibling;var si=te(N,Ce,Be.value,oe);if(si===null){Ce===null&&(Ce=Ct);break}s&&Ce&&si.alternate===null&&o(N,Ce),V=x(si,V,je),Ae===null?be=si:Ae.sibling=si,Ae=si,Ce=Ct}if(Be.done)return h(N,Ce),lt&&bi(N,je),be;if(Ce===null){for(;!Be.done;je++,Be=D.next())Be=ie(N,Be.value,oe),Be!==null&&(V=x(Be,V,je),Ae===null?be=Be:Ae.sibling=Be,Ae=Be);return lt&&bi(N,je),be}for(Ce=d(N,Ce);!Be.done;je++,Be=D.next())Be=me(Ce,N,je,Be.value,oe),Be!==null&&(s&&Be.alternate!==null&&Ce.delete(Be.key===null?je:Be.key),V=x(Be,V,je),Ae===null?be=Be:Ae.sibling=Be,Ae=Be);return s&&Ce.forEach(function(Ey){return o(N,Ey)}),lt&&bi(N,je),be}function Ot(N,V,D,oe){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case X:e:{for(var be=D.key,Ae=V;Ae!==null;){if(Ae.key===be){if(be=D.type,be===E){if(Ae.tag===7){h(N,Ae.sibling),V=g(Ae,D.props.children),V.return=N,N=V;break e}}else if(Ae.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ae&&Pd(be)===Ae.type){h(N,Ae.sibling),V=g(Ae,D.props),V.ref=ml(N,Ae,D),V.return=N,N=V;break e}h(N,Ae);break}else o(N,Ae);Ae=Ae.sibling}D.type===E?(V=Mi(D.props.children,N.mode,oe,D.key),V.return=N,N=V):(oe=ga(D.type,D.key,D.props,null,N.mode,oe),oe.ref=ml(N,V,D),oe.return=N,N=oe)}return k(N);case _:e:{for(Ae=D.key;V!==null;){if(V.key===Ae)if(V.tag===4&&V.stateNode.containerInfo===D.containerInfo&&V.stateNode.implementation===D.implementation){h(N,V.sibling),V=g(V,D.children||[]),V.return=N,N=V;break e}else{h(N,V);break}else o(N,V);V=V.sibling}V=E0(D,N.mode,oe),V.return=N,N=V}return k(N);case ae:return Ae=D._init,Ot(N,V,Ae(D._payload),oe)}if(st(D))return xe(N,V,D,oe);if(ee(D))return ke(N,V,D,oe);Fo(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,V!==null&&V.tag===6?(h(N,V.sibling),V=g(V,D),V.return=N,N=V):(h(N,V),V=M0(D,N.mode,oe),V.return=N,N=V),k(N)):h(N,V)}return Ot}var ls=Ad(!0),Cd=Ad(!1),Bo=Br(null),qo=null,os=null,Du=null;function Wu(){Du=os=qo=null}function Hu(s){var o=Bo.current;it(Bo),s._currentValue=o}function Iu(s,o,h){for(;s!==null;){var d=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),s===h)break;s=s.return}}function as(s,o){qo=s,Du=os=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&o)!==0&&(ln=!0),s.firstContext=null)}function Zn(s){var o=s._currentValue;if(Du!==s)if(s={context:s,memoizedValue:o,next:null},os===null){if(qo===null)throw Error(t(308));os=s,qo.dependencies={lanes:0,firstContext:s}}else os=os.next=s;return o}var Qi=null;function Yu(s){Qi===null?Qi=[s]:Qi.push(s)}function Zd(s,o,h,d){var g=o.interleaved;return g===null?(h.next=h,Yu(o)):(h.next=g.next,g.next=h),o.interleaved=h,Qr(s,d)}function Qr(s,o){s.lanes|=o;var h=s.alternate;for(h!==null&&(h.lanes|=o),h=s,s=s.return;s!==null;)s.childLanes|=o,h=s.alternate,h!==null&&(h.childLanes|=o),h=s,s=s.return;return h.tag===3?h.stateNode:null}var Gr=!1;function Fu(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function $r(s,o){return{eventTime:s,lane:o,tag:0,payload:null,callback:null,next:null}}function Kr(s,o,h){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(He&2)!==0){var g=d.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),d.pending=o,Qr(s,h)}return g=d.interleaved,g===null?(o.next=o,Yu(d)):(o.next=g.next,g.next=o),d.interleaved=o,Qr(s,h)}function Uo(s,o,h){if(o=o.updateQueue,o!==null&&(o=o.shared,(h&4194240)!==0)){var d=o.lanes;d&=s.pendingLanes,h|=d,o.lanes=h,ou(s,h)}}function Md(s,o){var h=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,h===d)){var g=null,x=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};x===null?g=x=k:x=x.next=k,h=h.next}while(h!==null);x===null?g=x=o:x=x.next=o}else g=x=o;h={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:d.shared,effects:d.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=o:s.next=o,h.lastBaseUpdate=o}function Go(s,o,h,d){var g=s.updateQueue;Gr=!1;var x=g.firstBaseUpdate,k=g.lastBaseUpdate,A=g.shared.pending;if(A!==null){g.shared.pending=null;var T=A,W=T.next;T.next=null,k===null?x=W:k.next=W,k=T;var ne=s.alternate;ne!==null&&(ne=ne.updateQueue,A=ne.lastBaseUpdate,A!==k&&(A===null?ne.firstBaseUpdate=W:A.next=W,ne.lastBaseUpdate=T))}if(x!==null){var ie=g.baseState;k=0,ne=W=T=null,A=x;do{var te=A.lane,me=A.eventTime;if((d&te)===te){ne!==null&&(ne=ne.next={eventTime:me,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var xe=s,ke=A;switch(te=o,me=h,ke.tag){case 1:if(xe=ke.payload,typeof xe=="function"){ie=xe.call(me,ie,te);break e}ie=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=ke.payload,te=typeof xe=="function"?xe.call(me,ie,te):xe,te==null)break e;ie=F({},ie,te);break e;case 2:Gr=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,te=g.effects,te===null?g.effects=[A]:te.push(A))}else me={eventTime:me,lane:te,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ne===null?(W=ne=me,T=ie):ne=ne.next=me,k|=te;if(A=A.next,A===null){if(A=g.shared.pending,A===null)break;te=A,A=te.next,te.next=null,g.lastBaseUpdate=te,g.shared.pending=null}}while(!0);if(ne===null&&(T=ie),g.baseState=T,g.firstBaseUpdate=W,g.lastBaseUpdate=ne,o=g.shared.interleaved,o!==null){g=o;do k|=g.lane,g=g.next;while(g!==o)}else x===null&&(g.shared.lanes=0);Ai|=k,s.lanes=k,s.memoizedState=ie}}function Ed(s,o,h){if(s=o.effects,o.effects=null,s!==null)for(o=0;o<s.length;o++){var d=s[o],g=d.callback;if(g!==null){if(d.callback=null,d=h,typeof g!="function")throw Error(t(191,g));g.call(d)}}}var Ol={},ir=Br(Ol),gl=Br(Ol),yl=Br(Ol);function $i(s){if(s===Ol)throw Error(t(174));return s}function Bu(s,o){switch(tt(yl,o),tt(gl,s),tt(ir,Ol),s=o.nodeType,s){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ut(null,"");break;default:s=s===8?o.parentNode:o,o=s.namespaceURI||null,s=s.tagName,o=Ut(o,s)}it(ir),tt(ir,o)}function cs(){it(ir),it(gl),it(yl)}function jd(s){$i(yl.current);var o=$i(ir.current),h=Ut(o,s.type);o!==h&&(tt(gl,s),tt(ir,h))}function qu(s){gl.current===s&&(it(ir),it(gl))}var ct=Br(0);function Ko(s){for(var o=s;o!==null;){if(o.tag===13){var h=o.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Uu=[];function Gu(){for(var s=0;s<Uu.length;s++)Uu[s]._workInProgressVersionPrimary=null;Uu.length=0}var Jo=Z.ReactCurrentDispatcher,Ku=Z.ReactCurrentBatchConfig,Pi=0,ut=null,bt=null,Pt=null,ea=!1,xl=!1,vl=0,ty=0;function Dt(){throw Error(t(321))}function Ju(s,o){if(o===null)return!1;for(var h=0;h<o.length&&h<s.length;h++)if(!Dn(s[h],o[h]))return!1;return!0}function e0(s,o,h,d,g,x){if(Pi=x,ut=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Jo.current=s===null||s.memoizedState===null?sy:ly,s=h(d,g),xl){x=0;do{if(xl=!1,vl=0,25<=x)throw Error(t(301));x+=1,Pt=bt=null,o.updateQueue=null,Jo.current=oy,s=h(d,g)}while(xl)}if(Jo.current=ra,o=bt!==null&&bt.next!==null,Pi=0,Pt=bt=ut=null,ea=!1,o)throw Error(t(300));return s}function t0(){var s=vl!==0;return vl=0,s}function sr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?ut.memoizedState=Pt=s:Pt=Pt.next=s,Pt}function Tn(){if(bt===null){var s=ut.alternate;s=s!==null?s.memoizedState:null}else s=bt.next;var o=Pt===null?ut.memoizedState:Pt.next;if(o!==null)Pt=o,bt=s;else{if(s===null)throw Error(t(310));bt=s,s={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?ut.memoizedState=Pt=s:Pt=Pt.next=s}return Pt}function Sl(s,o){return typeof o=="function"?o(s):o}function n0(s){var o=Tn(),h=o.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=bt,g=d.baseQueue,x=h.pending;if(x!==null){if(g!==null){var k=g.next;g.next=x.next,x.next=k}d.baseQueue=g=x,h.pending=null}if(g!==null){x=g.next,d=d.baseState;var A=k=null,T=null,W=x;do{var ne=W.lane;if((Pi&ne)===ne)T!==null&&(T=T.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),d=W.hasEagerState?W.eagerState:s(d,W.action);else{var ie={lane:ne,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};T===null?(A=T=ie,k=d):T=T.next=ie,ut.lanes|=ne,Ai|=ne}W=W.next}while(W!==null&&W!==x);T===null?k=d:T.next=A,Dn(d,o.memoizedState)||(ln=!0),o.memoizedState=d,o.baseState=k,o.baseQueue=T,h.lastRenderedState=d}if(s=h.interleaved,s!==null){g=s;do x=g.lane,ut.lanes|=x,Ai|=x,g=g.next;while(g!==s)}else g===null&&(h.lanes=0);return[o.memoizedState,h.dispatch]}function r0(s){var o=Tn(),h=o.queue;if(h===null)throw Error(t(311));h.lastRenderedReducer=s;var d=h.dispatch,g=h.pending,x=o.memoizedState;if(g!==null){h.pending=null;var k=g=g.next;do x=s(x,k.action),k=k.next;while(k!==g);Dn(x,o.memoizedState)||(ln=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),h.lastRenderedState=x}return[x,d]}function Vd(){}function Rd(s,o){var h=ut,d=Tn(),g=o(),x=!Dn(d.memoizedState,g);if(x&&(d.memoizedState=g,ln=!0),d=d.queue,i0(Nd.bind(null,h,d,s),[s]),d.getSnapshot!==o||x||Pt!==null&&Pt.memoizedState.tag&1){if(h.flags|=2048,wl(9,Xd.bind(null,h,d,g,o),void 0,null),At===null)throw Error(t(349));(Pi&30)!==0||Ld(h,o,g)}return g}function Ld(s,o,h){s.flags|=16384,s={getSnapshot:o,value:h},o=ut.updateQueue,o===null?(o={lastEffect:null,stores:null},ut.updateQueue=o,o.stores=[s]):(h=o.stores,h===null?o.stores=[s]:h.push(s))}function Xd(s,o,h,d){o.value=h,o.getSnapshot=d,_d(o)&&zd(s)}function Nd(s,o,h){return h(function(){_d(o)&&zd(s)})}function _d(s){var o=s.getSnapshot;s=s.value;try{var h=o();return!Dn(s,h)}catch{return!0}}function zd(s){var o=Qr(s,1);o!==null&&Fn(o,s,1,-1)}function Dd(s){var o=sr();return typeof s=="function"&&(s=s()),o.memoizedState=o.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:s},o.queue=s,s=s.dispatch=iy.bind(null,ut,s),[o.memoizedState,s]}function wl(s,o,h,d){return s={tag:s,create:o,destroy:h,deps:d,next:null},o=ut.updateQueue,o===null?(o={lastEffect:null,stores:null},ut.updateQueue=o,o.lastEffect=s.next=s):(h=o.lastEffect,h===null?o.lastEffect=s.next=s:(d=h.next,h.next=s,s.next=d,o.lastEffect=s)),s}function Wd(){return Tn().memoizedState}function ta(s,o,h,d){var g=sr();ut.flags|=s,g.memoizedState=wl(1|o,h,void 0,d===void 0?null:d)}function na(s,o,h,d){var g=Tn();d=d===void 0?null:d;var x=void 0;if(bt!==null){var k=bt.memoizedState;if(x=k.destroy,d!==null&&Ju(d,k.deps)){g.memoizedState=wl(o,h,x,d);return}}ut.flags|=s,g.memoizedState=wl(1|o,h,x,d)}function Hd(s,o){return ta(8390656,8,s,o)}function i0(s,o){return na(2048,8,s,o)}function Id(s,o){return na(4,2,s,o)}function Yd(s,o){return na(4,4,s,o)}function Fd(s,o){if(typeof o=="function")return s=s(),o(s),function(){o(null)};if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function Bd(s,o,h){return h=h!=null?h.concat([s]):null,na(4,4,Fd.bind(null,o,s),h)}function s0(){}function qd(s,o){var h=Tn();o=o===void 0?null:o;var d=h.memoizedState;return d!==null&&o!==null&&Ju(o,d[1])?d[0]:(h.memoizedState=[s,o],s)}function Ud(s,o){var h=Tn();o=o===void 0?null:o;var d=h.memoizedState;return d!==null&&o!==null&&Ju(o,d[1])?d[0]:(s=s(),h.memoizedState=[s,o],s)}function Gd(s,o,h){return(Pi&21)===0?(s.baseState&&(s.baseState=!1,ln=!0),s.memoizedState=h):(Dn(h,o)||(h=Pf(),ut.lanes|=h,Ai|=h,s.baseState=!0),o)}function ny(s,o){var h=Je;Je=h!==0&&4>h?h:4,s(!0);var d=Ku.transition;Ku.transition={};try{s(!1),o()}finally{Je=h,Ku.transition=d}}function Kd(){return Tn().memoizedState}function ry(s,o,h){var d=ni(s);if(h={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null},Jd(s))ep(o,h);else if(h=Zd(s,o,h,d),h!==null){var g=Jt();Fn(h,s,d,g),tp(h,o,d)}}function iy(s,o,h){var d=ni(s),g={lane:d,action:h,hasEagerState:!1,eagerState:null,next:null};if(Jd(s))ep(o,g);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var k=o.lastRenderedState,A=x(k,h);if(g.hasEagerState=!0,g.eagerState=A,Dn(A,k)){var T=o.interleaved;T===null?(g.next=g,Yu(o)):(g.next=T.next,T.next=g),o.interleaved=g;return}}catch{}finally{}h=Zd(s,o,g,d),h!==null&&(g=Jt(),Fn(h,s,d,g),tp(h,o,d))}}function Jd(s){var o=s.alternate;return s===ut||o!==null&&o===ut}function ep(s,o){xl=ea=!0;var h=s.pending;h===null?o.next=o:(o.next=h.next,h.next=o),s.pending=o}function tp(s,o,h){if((h&4194240)!==0){var d=o.lanes;d&=s.pendingLanes,h|=d,o.lanes=h,ou(s,h)}}var ra={readContext:Zn,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},sy={readContext:Zn,useCallback:function(s,o){return sr().memoizedState=[s,o===void 0?null:o],s},useContext:Zn,useEffect:Hd,useImperativeHandle:function(s,o,h){return h=h!=null?h.concat([s]):null,ta(4194308,4,Fd.bind(null,o,s),h)},useLayoutEffect:function(s,o){return ta(4194308,4,s,o)},useInsertionEffect:function(s,o){return ta(4,2,s,o)},useMemo:function(s,o){var h=sr();return o=o===void 0?null:o,s=s(),h.memoizedState=[s,o],s},useReducer:function(s,o,h){var d=sr();return o=h!==void 0?h(o):o,d.memoizedState=d.baseState=o,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:o},d.queue=s,s=s.dispatch=ry.bind(null,ut,s),[d.memoizedState,s]},useRef:function(s){var o=sr();return s={current:s},o.memoizedState=s},useState:Dd,useDebugValue:s0,useDeferredValue:function(s){return sr().memoizedState=s},useTransition:function(){var s=Dd(!1),o=s[0];return s=ny.bind(null,s[1]),sr().memoizedState=s,[o,s]},useMutableSource:function(){},useSyncExternalStore:function(s,o,h){var d=ut,g=sr();if(lt){if(h===void 0)throw Error(t(407));h=h()}else{if(h=o(),At===null)throw Error(t(349));(Pi&30)!==0||Ld(d,o,h)}g.memoizedState=h;var x={value:h,getSnapshot:o};return g.queue=x,Hd(Nd.bind(null,d,x,s),[s]),d.flags|=2048,wl(9,Xd.bind(null,d,x,h,o),void 0,null),h},useId:function(){var s=sr(),o=At.identifierPrefix;if(lt){var h=br,d=kr;h=(d&~(1<<32-zn(d)-1)).toString(32)+h,o=":"+o+"R"+h,h=vl++,0<h&&(o+="H"+h.toString(32)),o+=":"}else h=ty++,o=":"+o+"r"+h.toString(32)+":";return s.memoizedState=o},unstable_isNewReconciler:!1},ly={readContext:Zn,useCallback:qd,useContext:Zn,useEffect:i0,useImperativeHandle:Bd,useInsertionEffect:Id,useLayoutEffect:Yd,useMemo:Ud,useReducer:n0,useRef:Wd,useState:function(){return n0(Sl)},useDebugValue:s0,useDeferredValue:function(s){var o=Tn();return Gd(o,bt.memoizedState,s)},useTransition:function(){var s=n0(Sl)[0],o=Tn().memoizedState;return[s,o]},useMutableSource:Vd,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1},oy={readContext:Zn,useCallback:qd,useContext:Zn,useEffect:i0,useImperativeHandle:Bd,useInsertionEffect:Id,useLayoutEffect:Yd,useMemo:Ud,useReducer:r0,useRef:Wd,useState:function(){return r0(Sl)},useDebugValue:s0,useDeferredValue:function(s){var o=Tn();return bt===null?o.memoizedState=s:Gd(o,bt.memoizedState,s)},useTransition:function(){var s=r0(Sl)[0],o=Tn().memoizedState;return[s,o]},useMutableSource:Vd,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1};function Hn(s,o){if(s&&s.defaultProps){o=F({},o),s=s.defaultProps;for(var h in s)o[h]===void 0&&(o[h]=s[h]);return o}return o}function l0(s,o,h,d){o=s.memoizedState,h=h(d,o),h=h==null?o:F({},o,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var ia={isMounted:function(s){return(s=s._reactInternals)?vi(s)===s:!1},enqueueSetState:function(s,o,h){s=s._reactInternals;var d=Jt(),g=ni(s),x=$r(d,g);x.payload=o,h!=null&&(x.callback=h),o=Kr(s,x,g),o!==null&&(Fn(o,s,g,d),Uo(o,s,g))},enqueueReplaceState:function(s,o,h){s=s._reactInternals;var d=Jt(),g=ni(s),x=$r(d,g);x.tag=1,x.payload=o,h!=null&&(x.callback=h),o=Kr(s,x,g),o!==null&&(Fn(o,s,g,d),Uo(o,s,g))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var h=Jt(),d=ni(s),g=$r(h,d);g.tag=2,o!=null&&(g.callback=o),o=Kr(s,g,d),o!==null&&(Fn(o,s,d,h),Uo(o,s,d))}};function np(s,o,h,d,g,x,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,x,k):o.prototype&&o.prototype.isPureReactComponent?!al(h,d)||!al(g,x):!0}function rp(s,o,h){var d=!1,g=qr,x=o.contextType;return typeof x=="object"&&x!==null?x=Zn(x):(g=sn(o)?wi:zt.current,d=o.contextTypes,x=(d=d!=null)?ns(s,g):qr),o=new o(h,x),s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ia,s.stateNode=o,o._reactInternals=s,d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=g,s.__reactInternalMemoizedMaskedChildContext=x),o}function ip(s,o,h,d){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(h,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(h,d),o.state!==s&&ia.enqueueReplaceState(o,o.state,null)}function o0(s,o,h,d){var g=s.stateNode;g.props=h,g.state=s.memoizedState,g.refs={},Fu(s);var x=o.contextType;typeof x=="object"&&x!==null?g.context=Zn(x):(x=sn(o)?wi:zt.current,g.context=ns(s,x)),g.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(l0(s,o,x,h),g.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(o=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),o!==g.state&&ia.enqueueReplaceState(g,g.state,null),Go(s,h,g,d),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308)}function us(s,o){try{var h="",d=o;do h+=fe(d),d=d.return;while(d);var g=h}catch(x){g=`
|
|
39
|
-
Error generating stack: `+x.message+`
|
|
40
|
-
`+x.stack}return{value:s,source:o,stack:g,digest:null}}function a0(s,o,h){return{value:s,source:null,stack:h??null,digest:o??null}}function c0(s,o){try{console.error(o.value)}catch(h){setTimeout(function(){throw h})}}var ay=typeof WeakMap=="function"?WeakMap:Map;function sp(s,o,h){h=$r(-1,h),h.tag=3,h.payload={element:null};var d=o.value;return h.callback=function(){ha||(ha=!0,b0=d),c0(s,o)},h}function lp(s,o,h){h=$r(-1,h),h.tag=3;var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var g=o.value;h.payload=function(){return d(g)},h.callback=function(){c0(s,o)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(h.callback=function(){c0(s,o),typeof d!="function"&&(ei===null?ei=new Set([this]):ei.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),h}function op(s,o,h){var d=s.pingCache;if(d===null){d=s.pingCache=new ay;var g=new Set;d.set(o,g)}else g=d.get(o),g===void 0&&(g=new Set,d.set(o,g));g.has(h)||(g.add(h),s=wy.bind(null,s,o,h),o.then(s,s))}function ap(s){do{var o;if((o=s.tag===13)&&(o=s.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return s;s=s.return}while(s!==null);return null}function cp(s,o,h,d,g){return(s.mode&1)===0?(s===o?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(o=$r(-1,1),o.tag=2,Kr(h,o,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=g,s)}var cy=Z.ReactCurrentOwner,ln=!1;function Kt(s,o,h,d){o.child=s===null?Cd(o,null,h,d):ls(o,s.child,h,d)}function up(s,o,h,d,g){h=h.render;var x=o.ref;return as(o,g),d=e0(s,o,h,d,x,g),h=t0(),s!==null&&!ln?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~g,Pr(s,o,g)):(lt&&h&&Lu(o),o.flags|=1,Kt(s,o,d,g),o.child)}function hp(s,o,h,d,g){if(s===null){var x=h.type;return typeof x=="function"&&!T0(x)&&x.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(o.tag=15,o.type=x,fp(s,o,x,d,g)):(s=ga(h.type,null,d,o,o.mode,g),s.ref=o.ref,s.return=o,o.child=s)}if(x=s.child,(s.lanes&g)===0){var k=x.memoizedProps;if(h=h.compare,h=h!==null?h:al,h(k,d)&&s.ref===o.ref)return Pr(s,o,g)}return o.flags|=1,s=ii(x,d),s.ref=o.ref,s.return=o,o.child=s}function fp(s,o,h,d,g){if(s!==null){var x=s.memoizedProps;if(al(x,d)&&s.ref===o.ref)if(ln=!1,o.pendingProps=d=x,(s.lanes&g)!==0)(s.flags&131072)!==0&&(ln=!0);else return o.lanes=s.lanes,Pr(s,o,g)}return u0(s,o,h,d,g)}function dp(s,o,h){var d=o.pendingProps,g=d.children,x=s!==null?s.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt(fs,Sn),Sn|=h;else{if((h&1073741824)===0)return s=x!==null?x.baseLanes|h:h,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:s,cachePool:null,transitions:null},o.updateQueue=null,tt(fs,Sn),Sn|=s,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=x!==null?x.baseLanes:h,tt(fs,Sn),Sn|=d}else x!==null?(d=x.baseLanes|h,o.memoizedState=null):d=h,tt(fs,Sn),Sn|=d;return Kt(s,o,g,h),o.child}function pp(s,o){var h=o.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(o.flags|=512,o.flags|=2097152)}function u0(s,o,h,d,g){var x=sn(h)?wi:zt.current;return x=ns(o,x),as(o,g),h=e0(s,o,h,d,x,g),d=t0(),s!==null&&!ln?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~g,Pr(s,o,g)):(lt&&d&&Lu(o),o.flags|=1,Kt(s,o,h,g),o.child)}function mp(s,o,h,d,g){if(sn(h)){var x=!0;Do(o)}else x=!1;if(as(o,g),o.stateNode===null)la(s,o),rp(o,h,d),o0(o,h,d,g),d=!0;else if(s===null){var k=o.stateNode,A=o.memoizedProps;k.props=A;var T=k.context,W=h.contextType;typeof W=="object"&&W!==null?W=Zn(W):(W=sn(h)?wi:zt.current,W=ns(o,W));var ne=h.getDerivedStateFromProps,ie=typeof ne=="function"||typeof k.getSnapshotBeforeUpdate=="function";ie||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(A!==d||T!==W)&&ip(o,k,d,W),Gr=!1;var te=o.memoizedState;k.state=te,Go(o,d,k,g),T=o.memoizedState,A!==d||te!==T||rn.current||Gr?(typeof ne=="function"&&(l0(o,h,ne,d),T=o.memoizedState),(A=Gr||np(o,h,A,d,te,T,W))?(ie||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"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=T),k.props=d,k.state=T,k.context=W,d=A):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{k=o.stateNode,Td(s,o),A=o.memoizedProps,W=o.type===o.elementType?A:Hn(o.type,A),k.props=W,ie=o.pendingProps,te=k.context,T=h.contextType,typeof T=="object"&&T!==null?T=Zn(T):(T=sn(h)?wi:zt.current,T=ns(o,T));var me=h.getDerivedStateFromProps;(ne=typeof me=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(A!==ie||te!==T)&&ip(o,k,d,T),Gr=!1,te=o.memoizedState,k.state=te,Go(o,d,k,g);var xe=o.memoizedState;A!==ie||te!==xe||rn.current||Gr?(typeof me=="function"&&(l0(o,h,me,d),xe=o.memoizedState),(W=Gr||np(o,h,W,d,te,xe,T)||!1)?(ne||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(d,xe,T),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(d,xe,T)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||A===s.memoizedProps&&te===s.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&te===s.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=xe),k.props=d,k.state=xe,k.context=T,d=W):(typeof k.componentDidUpdate!="function"||A===s.memoizedProps&&te===s.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&te===s.memoizedState||(o.flags|=1024),d=!1)}return h0(s,o,h,d,x,g)}function h0(s,o,h,d,g,x){pp(s,o);var k=(o.flags&128)!==0;if(!d&&!k)return g&&vd(o,h,!1),Pr(s,o,x);d=o.stateNode,cy.current=o;var A=k&&typeof h.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,s!==null&&k?(o.child=ls(o,s.child,null,x),o.child=ls(o,null,A,x)):Kt(s,o,A,x),o.memoizedState=d.state,g&&vd(o,h,!0),o.child}function Op(s){var o=s.stateNode;o.pendingContext?yd(s,o.pendingContext,o.pendingContext!==o.context):o.context&&yd(s,o.context,!1),Bu(s,o.containerInfo)}function gp(s,o,h,d,g){return ss(),zu(g),o.flags|=256,Kt(s,o,h,d),o.child}var f0={dehydrated:null,treeContext:null,retryLane:0};function d0(s){return{baseLanes:s,cachePool:null,transitions:null}}function yp(s,o,h){var d=o.pendingProps,g=ct.current,x=!1,k=(o.flags&128)!==0,A;if((A=k)||(A=s!==null&&s.memoizedState===null?!1:(g&2)!==0),A?(x=!0,o.flags&=-129):(s===null||s.memoizedState!==null)&&(g|=1),tt(ct,g&1),s===null)return _u(o),s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((o.mode&1)===0?o.lanes=1:s.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(k=d.children,s=d.fallback,x?(d=o.mode,x=o.child,k={mode:"hidden",children:k},(d&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=ya(k,d,0,null),s=Mi(s,d,h,null),x.return=o,s.return=o,x.sibling=s,o.child=x,o.child.memoizedState=d0(h),o.memoizedState=f0,s):p0(o,k));if(g=s.memoizedState,g!==null&&(A=g.dehydrated,A!==null))return uy(s,o,k,d,A,g,h);if(x){x=d.fallback,k=o.mode,g=s.child,A=g.sibling;var T={mode:"hidden",children:d.children};return(k&1)===0&&o.child!==g?(d=o.child,d.childLanes=0,d.pendingProps=T,o.deletions=null):(d=ii(g,T),d.subtreeFlags=g.subtreeFlags&14680064),A!==null?x=ii(A,x):(x=Mi(x,k,h,null),x.flags|=2),x.return=o,d.return=o,d.sibling=x,o.child=d,d=x,x=o.child,k=s.child.memoizedState,k=k===null?d0(h):{baseLanes:k.baseLanes|h,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=s.childLanes&~h,o.memoizedState=f0,d}return x=s.child,s=x.sibling,d=ii(x,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=h),d.return=o,d.sibling=null,s!==null&&(h=o.deletions,h===null?(o.deletions=[s],o.flags|=16):h.push(s)),o.child=d,o.memoizedState=null,d}function p0(s,o){return o=ya({mode:"visible",children:o},s.mode,0,null),o.return=s,s.child=o}function sa(s,o,h,d){return d!==null&&zu(d),ls(o,s.child,null,h),s=p0(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function uy(s,o,h,d,g,x,k){if(h)return o.flags&256?(o.flags&=-257,d=a0(Error(t(422))),sa(s,o,k,d)):o.memoizedState!==null?(o.child=s.child,o.flags|=128,null):(x=d.fallback,g=o.mode,d=ya({mode:"visible",children:d.children},g,0,null),x=Mi(x,g,k,null),x.flags|=2,d.return=o,x.return=o,d.sibling=x,o.child=d,(o.mode&1)!==0&&ls(o,s.child,null,k),o.child.memoizedState=d0(k),o.memoizedState=f0,x);if((o.mode&1)===0)return sa(s,o,k,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var A=d.dgst;return d=A,x=Error(t(419)),d=a0(x,d,void 0),sa(s,o,k,d)}if(A=(k&s.childLanes)!==0,ln||A){if(d=At,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!==x.retryLane&&(x.retryLane=g,Qr(s,g),Fn(d,s,g,-1))}return Z0(),d=a0(Error(t(421))),sa(s,o,k,d)}return g.data==="$?"?(o.flags|=128,o.child=s.child,o=ky.bind(null,s),g._reactRetry=o,null):(s=x.treeContext,vn=Fr(g.nextSibling),xn=o,lt=!0,Wn=null,s!==null&&(An[Cn++]=kr,An[Cn++]=br,An[Cn++]=ki,kr=s.id,br=s.overflow,ki=o),o=p0(o,d.children),o.flags|=4096,o)}function xp(s,o,h){s.lanes|=o;var d=s.alternate;d!==null&&(d.lanes|=o),Iu(s.return,o,h)}function m0(s,o,h,d,g){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:h,tailMode:g}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=d,x.tail=h,x.tailMode=g)}function vp(s,o,h){var d=o.pendingProps,g=d.revealOrder,x=d.tail;if(Kt(s,o,d.children,h),d=ct.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&xp(s,h,o);else if(s.tag===19)xp(s,h,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}if(tt(ct,d),(o.mode&1)===0)o.memoizedState=null;else switch(g){case"forwards":for(h=o.child,g=null;h!==null;)s=h.alternate,s!==null&&Ko(s)===null&&(g=h),h=h.sibling;h=g,h===null?(g=o.child,o.child=null):(g=h.sibling,h.sibling=null),m0(o,!1,g,h,x);break;case"backwards":for(h=null,g=o.child,o.child=null;g!==null;){if(s=g.alternate,s!==null&&Ko(s)===null){o.child=g;break}s=g.sibling,g.sibling=h,h=g,g=s}m0(o,!0,h,null,x);break;case"together":m0(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function la(s,o){(o.mode&1)===0&&s!==null&&(s.alternate=null,o.alternate=null,o.flags|=2)}function Pr(s,o,h){if(s!==null&&(o.dependencies=s.dependencies),Ai|=o.lanes,(h&o.childLanes)===0)return null;if(s!==null&&o.child!==s.child)throw Error(t(153));if(o.child!==null){for(s=o.child,h=ii(s,s.pendingProps),o.child=h,h.return=o;s.sibling!==null;)s=s.sibling,h=h.sibling=ii(s,s.pendingProps),h.return=o;h.sibling=null}return o.child}function hy(s,o,h){switch(o.tag){case 3:Op(o),ss();break;case 5:jd(o);break;case 1:sn(o.type)&&Do(o);break;case 4:Bu(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,g=o.memoizedProps.value;tt(Bo,d._currentValue),d._currentValue=g;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(tt(ct,ct.current&1),o.flags|=128,null):(h&o.child.childLanes)!==0?yp(s,o,h):(tt(ct,ct.current&1),s=Pr(s,o,h),s!==null?s.sibling:null);tt(ct,ct.current&1);break;case 19:if(d=(h&o.childLanes)!==0,(s.flags&128)!==0){if(d)return vp(s,o,h);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),tt(ct,ct.current),d)break;return null;case 22:case 23:return o.lanes=0,dp(s,o,h)}return Pr(s,o,h)}var Sp,O0,wp,kp;Sp=function(s,o){for(var h=o.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===o)break;for(;h.sibling===null;){if(h.return===null||h.return===o)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},O0=function(){},wp=function(s,o,h,d){var g=s.memoizedProps;if(g!==d){s=o.stateNode,$i(ir.current);var x=null;switch(h){case"input":g=B(s,g),d=B(s,d),x=[];break;case"select":g=F({},g,{value:void 0}),d=F({},d,{value:void 0}),x=[];break;case"textarea":g=St(s,g),d=St(s,d),x=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(s.onclick=No)}Nt(h,d);var k;h=null;for(W in g)if(!d.hasOwnProperty(W)&&g.hasOwnProperty(W)&&g[W]!=null)if(W==="style"){var A=g[W];for(k in A)A.hasOwnProperty(k)&&(h||(h={}),h[k]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(i.hasOwnProperty(W)?x||(x=[]):(x=x||[]).push(W,null));for(W in d){var T=d[W];if(A=g!=null?g[W]:void 0,d.hasOwnProperty(W)&&T!==A&&(T!=null||A!=null))if(W==="style")if(A){for(k in A)!A.hasOwnProperty(k)||T&&T.hasOwnProperty(k)||(h||(h={}),h[k]="");for(k in T)T.hasOwnProperty(k)&&A[k]!==T[k]&&(h||(h={}),h[k]=T[k])}else h||(x||(x=[]),x.push(W,h)),h=T;else W==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,A=A?A.__html:void 0,T!=null&&A!==T&&(x=x||[]).push(W,T)):W==="children"?typeof T!="string"&&typeof T!="number"||(x=x||[]).push(W,""+T):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(i.hasOwnProperty(W)?(T!=null&&W==="onScroll"&&rt("scroll",s),x||A===T||(x=[])):(x=x||[]).push(W,T))}h&&(x=x||[]).push("style",h);var W=x;(o.updateQueue=W)&&(o.flags|=4)}},kp=function(s,o,h,d){h!==d&&(o.flags|=4)};function kl(s,o){if(!lt)switch(s.tailMode){case"hidden":o=s.tail;for(var h=null;o!==null;)o.alternate!==null&&(h=o),o=o.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?o||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function Wt(s){var o=s.alternate!==null&&s.alternate.child===s.child,h=0,d=0;if(o)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,o}function fy(s,o,h){var d=o.pendingProps;switch(Xu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(o),null;case 1:return sn(o.type)&&zo(),Wt(o),null;case 3:return d=o.stateNode,cs(),it(rn),it(zt),Gu(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(Yo(o)?o.flags|=4:s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Wn!==null&&(P0(Wn),Wn=null))),O0(s,o),Wt(o),null;case 5:qu(o);var g=$i(yl.current);if(h=o.type,s!==null&&o.stateNode!=null)wp(s,o,h,d,g),s.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(t(166));return Wt(o),null}if(s=$i(ir.current),Yo(o)){d=o.stateNode,h=o.type;var x=o.memoizedProps;switch(d[rr]=o,d[dl]=x,s=(o.mode&1)!==0,h){case"dialog":rt("cancel",d),rt("close",d);break;case"iframe":case"object":case"embed":rt("load",d);break;case"video":case"audio":for(g=0;g<ul.length;g++)rt(ul[g],d);break;case"source":rt("error",d);break;case"img":case"image":case"link":rt("error",d),rt("load",d);break;case"details":rt("toggle",d);break;case"input":Ze(d,x),rt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!x.multiple},rt("invalid",d);break;case"textarea":er(d,x),rt("invalid",d)}Nt(h,x),g=null;for(var k in x)if(x.hasOwnProperty(k)){var A=x[k];k==="children"?typeof A=="string"?d.textContent!==A&&(x.suppressHydrationWarning!==!0&&Xo(d.textContent,A,s),g=["children",A]):typeof A=="number"&&d.textContent!==""+A&&(x.suppressHydrationWarning!==!0&&Xo(d.textContent,A,s),g=["children",""+A]):i.hasOwnProperty(k)&&A!=null&&k==="onScroll"&&rt("scroll",d)}switch(h){case"input":Ee(d),Ke(d,x,!0);break;case"textarea":Ee(d),tr(d);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(d.onclick=No)}d=g,o.updateQueue=d,d!==null&&(o.flags|=4)}else{k=g.nodeType===9?g:g.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=_n(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[rr]=o,s[dl]=d,Sp(s,o,!1,!1),o.stateNode=s;e:{switch(k=xi(h,d),h){case"dialog":rt("cancel",s),rt("close",s),g=d;break;case"iframe":case"object":case"embed":rt("load",s),g=d;break;case"video":case"audio":for(g=0;g<ul.length;g++)rt(ul[g],s);g=d;break;case"source":rt("error",s),g=d;break;case"img":case"image":case"link":rt("error",s),rt("load",s),g=d;break;case"details":rt("toggle",s),g=d;break;case"input":Ze(s,d),g=B(s,d),rt("invalid",s);break;case"option":g=d;break;case"select":s._wrapperState={wasMultiple:!!d.multiple},g=F({},d,{value:void 0}),rt("invalid",s);break;case"textarea":er(s,d),g=St(s,d),rt("invalid",s);break;default:g=d}Nt(h,g),A=g;for(x in A)if(A.hasOwnProperty(x)){var T=A[x];x==="style"?Gt(s,T):x==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&H(s,T)):x==="children"?typeof T=="string"?(h!=="textarea"||T!=="")&&he(s,T):typeof T=="number"&&he(s,""+T):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?T!=null&&x==="onScroll"&&rt("scroll",s):T!=null&&P(s,x,T,k))}switch(h){case"input":Ee(s),Ke(s,d,!1);break;case"textarea":Ee(s),tr(s);break;case"option":d.value!=null&&s.setAttribute("value",""+pe(d.value));break;case"select":s.multiple=!!d.multiple,x=d.value,x!=null?vt(s,!!d.multiple,x,!1):d.defaultValue!=null&&vt(s,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(s.onclick=No)}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&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Wt(o),null;case 6:if(s&&o.stateNode!=null)kp(s,o,s.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(t(166));if(h=$i(yl.current),$i(ir.current),Yo(o)){if(d=o.stateNode,h=o.memoizedProps,d[rr]=o,(x=d.nodeValue!==h)&&(s=xn,s!==null))switch(s.tag){case 3:Xo(d.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Xo(d.nodeValue,h,(s.mode&1)!==0)}x&&(o.flags|=4)}else d=(h.nodeType===9?h:h.ownerDocument).createTextNode(d),d[rr]=o,o.stateNode=d}return Wt(o),null;case 13:if(it(ct),d=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(lt&&vn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)$d(),ss(),o.flags|=98560,x=!1;else if(x=Yo(o),d!==null&&d.dehydrated!==null){if(s===null){if(!x)throw Error(t(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(t(317));x[rr]=o}else ss(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Wt(o),x=!1}else Wn!==null&&(P0(Wn),Wn=null),x=!0;if(!x)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=h,o):(d=d!==null,d!==(s!==null&&s.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(s===null||(ct.current&1)!==0?Qt===0&&(Qt=3):Z0())),o.updateQueue!==null&&(o.flags|=4),Wt(o),null);case 4:return cs(),O0(s,o),s===null&&hl(o.stateNode.containerInfo),Wt(o),null;case 10:return Hu(o.type._context),Wt(o),null;case 17:return sn(o.type)&&zo(),Wt(o),null;case 19:if(it(ct),x=o.memoizedState,x===null)return Wt(o),null;if(d=(o.flags&128)!==0,k=x.rendering,k===null)if(d)kl(x,!1);else{if(Qt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(k=Ko(s),k!==null){for(o.flags|=128,kl(x,!1),d=k.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=h,h=o.child;h!==null;)x=h,s=d,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,s=k.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return tt(ct,ct.current&1|2),o.child}s=s.sibling}x.tail!==null&&mt()>ds&&(o.flags|=128,d=!0,kl(x,!1),o.lanes=4194304)}else{if(!d)if(s=Ko(k),s!==null){if(o.flags|=128,d=!0,h=s.updateQueue,h!==null&&(o.updateQueue=h,o.flags|=4),kl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!lt)return Wt(o),null}else 2*mt()-x.renderingStartTime>ds&&h!==1073741824&&(o.flags|=128,d=!0,kl(x,!1),o.lanes=4194304);x.isBackwards?(k.sibling=o.child,o.child=k):(h=x.last,h!==null?h.sibling=k:o.child=k,x.last=k)}return x.tail!==null?(o=x.tail,x.rendering=o,x.tail=o.sibling,x.renderingStartTime=mt(),o.sibling=null,h=ct.current,tt(ct,d?h&1|2:h&1),o):(Wt(o),null);case 22:case 23:return C0(),d=o.memoizedState!==null,s!==null&&s.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(Sn&1073741824)!==0&&(Wt(o),o.subtreeFlags&6&&(o.flags|=8192)):Wt(o),null;case 24:return null;case 25:return null}throw Error(t(156,o.tag))}function dy(s,o){switch(Xu(o),o.tag){case 1:return sn(o.type)&&zo(),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return cs(),it(rn),it(zt),Gu(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 5:return qu(o),null;case 13:if(it(ct),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(t(340));ss()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return it(ct),null;case 4:return cs(),null;case 10:return Hu(o.type._context),null;case 22:case 23:return C0(),null;case 24:return null;default:return null}}var oa=!1,Ht=!1,py=typeof WeakSet=="function"?WeakSet:Set,ge=null;function hs(s,o){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(d){dt(s,o,d)}else h.current=null}function g0(s,o,h){try{h()}catch(d){dt(s,o,d)}}var bp=!1;function my(s,o){if(Cu=Po,s=nd(),Su(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,x=d.focusNode;d=d.focusOffset;try{h.nodeType,x.nodeType}catch{h=null;break e}var k=0,A=-1,T=-1,W=0,ne=0,ie=s,te=null;t:for(;;){for(var me;ie!==h||g!==0&&ie.nodeType!==3||(A=k+g),ie!==x||d!==0&&ie.nodeType!==3||(T=k+d),ie.nodeType===3&&(k+=ie.nodeValue.length),(me=ie.firstChild)!==null;)te=ie,ie=me;for(;;){if(ie===s)break t;if(te===h&&++W===g&&(A=k),te===x&&++ne===d&&(T=k),(me=ie.nextSibling)!==null)break;ie=te,te=ie.parentNode}ie=me}h=A===-1||T===-1?null:{start:A,end:T}}else h=null}h=h||{start:0,end:0}}else h=null;for(Zu={focusedElem:s,selectionRange:h},Po=!1,ge=o;ge!==null;)if(o=ge,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,ge=s;else for(;ge!==null;){o=ge;try{var xe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var ke=xe.memoizedProps,Ot=xe.memoizedState,N=o.stateNode,V=N.getSnapshotBeforeUpdate(o.elementType===o.type?ke:Hn(o.type,ke),Ot);N.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var D=o.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(oe){dt(o,o.return,oe)}if(s=o.sibling,s!==null){s.return=o.return,ge=s;break}ge=o.return}return xe=bp,bp=!1,xe}function bl(s,o,h){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&s)===s){var x=g.destroy;g.destroy=void 0,x!==void 0&&g0(o,h,x)}g=g.next}while(g!==d)}}function aa(s,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var h=o=o.next;do{if((h.tag&s)===s){var d=h.create;h.destroy=d()}h=h.next}while(h!==o)}}function y0(s){var o=s.ref;if(o!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof o=="function"?o(s):o.current=s}}function Qp(s){var o=s.alternate;o!==null&&(s.alternate=null,Qp(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&(delete o[rr],delete o[dl],delete o[ju],delete o[G5],delete o[K5])),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 $p(s){return s.tag===5||s.tag===3||s.tag===4}function Pp(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||$p(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 x0(s,o,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,o?h.nodeType===8?h.parentNode.insertBefore(s,o):h.insertBefore(s,o):(h.nodeType===8?(o=h.parentNode,o.insertBefore(s,h)):(o=h,o.appendChild(s)),h=h._reactRootContainer,h!=null||o.onclick!==null||(o.onclick=No));else if(d!==4&&(s=s.child,s!==null))for(x0(s,o,h),s=s.sibling;s!==null;)x0(s,o,h),s=s.sibling}function v0(s,o,h){var d=s.tag;if(d===5||d===6)s=s.stateNode,o?h.insertBefore(s,o):h.appendChild(s);else if(d!==4&&(s=s.child,s!==null))for(v0(s,o,h),s=s.sibling;s!==null;)v0(s,o,h),s=s.sibling}var Et=null,In=!1;function Jr(s,o,h){for(h=h.child;h!==null;)Ap(s,o,h),h=h.sibling}function Ap(s,o,h){if(nr&&typeof nr.onCommitFiberUnmount=="function")try{nr.onCommitFiberUnmount(So,h)}catch{}switch(h.tag){case 5:Ht||hs(h,o);case 6:var d=Et,g=In;Et=null,Jr(s,o,h),Et=d,In=g,Et!==null&&(In?(s=Et,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):Et.removeChild(h.stateNode));break;case 18:Et!==null&&(In?(s=Et,h=h.stateNode,s.nodeType===8?Eu(s.parentNode,h):s.nodeType===1&&Eu(s,h),nl(s)):Eu(Et,h.stateNode));break;case 4:d=Et,g=In,Et=h.stateNode.containerInfo,In=!0,Jr(s,o,h),Et=d,In=g;break;case 0:case 11:case 14:case 15:if(!Ht&&(d=h.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var x=g,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&g0(h,o,k),g=g.next}while(g!==d)}Jr(s,o,h);break;case 1:if(!Ht&&(hs(h,o),d=h.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=h.memoizedProps,d.state=h.memoizedState,d.componentWillUnmount()}catch(A){dt(h,o,A)}Jr(s,o,h);break;case 21:Jr(s,o,h);break;case 22:h.mode&1?(Ht=(d=Ht)||h.memoizedState!==null,Jr(s,o,h),Ht=d):Jr(s,o,h);break;default:Jr(s,o,h)}}function Cp(s){var o=s.updateQueue;if(o!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new py),o.forEach(function(d){var g=by.bind(null,s,d);h.has(d)||(h.add(d),d.then(g,g))})}}function Yn(s,o){var h=o.deletions;if(h!==null)for(var d=0;d<h.length;d++){var g=h[d];try{var x=s,k=o,A=k;e:for(;A!==null;){switch(A.tag){case 5:Et=A.stateNode,In=!1;break e;case 3:Et=A.stateNode.containerInfo,In=!0;break e;case 4:Et=A.stateNode.containerInfo,In=!0;break e}A=A.return}if(Et===null)throw Error(t(160));Ap(x,k,g),Et=null,In=!1;var T=g.alternate;T!==null&&(T.return=null),g.return=null}catch(W){dt(g,o,W)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Zp(o,s),o=o.sibling}function Zp(s,o){var h=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Yn(o,s),lr(s),d&4){try{bl(3,s,s.return),aa(3,s)}catch(ke){dt(s,s.return,ke)}try{bl(5,s,s.return)}catch(ke){dt(s,s.return,ke)}}break;case 1:Yn(o,s),lr(s),d&512&&h!==null&&hs(h,h.return);break;case 5:if(Yn(o,s),lr(s),d&512&&h!==null&&hs(h,h.return),s.flags&32){var g=s.stateNode;try{he(g,"")}catch(ke){dt(s,s.return,ke)}}if(d&4&&(g=s.stateNode,g!=null)){var x=s.memoizedProps,k=h!==null?h.memoizedProps:x,A=s.type,T=s.updateQueue;if(s.updateQueue=null,T!==null)try{A==="input"&&x.type==="radio"&&x.name!=null&&Ne(g,x),xi(A,k);var W=xi(A,x);for(k=0;k<T.length;k+=2){var ne=T[k],ie=T[k+1];ne==="style"?Gt(g,ie):ne==="dangerouslySetInnerHTML"?H(g,ie):ne==="children"?he(g,ie):P(g,ne,ie,W)}switch(A){case"input":Me(g,x);break;case"textarea":Nn(g,x);break;case"select":var te=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!x.multiple;var me=x.value;me!=null?vt(g,!!x.multiple,me,!1):te!==!!x.multiple&&(x.defaultValue!=null?vt(g,!!x.multiple,x.defaultValue,!0):vt(g,!!x.multiple,x.multiple?[]:"",!1))}g[dl]=x}catch(ke){dt(s,s.return,ke)}}break;case 6:if(Yn(o,s),lr(s),d&4){if(s.stateNode===null)throw Error(t(162));g=s.stateNode,x=s.memoizedProps;try{g.nodeValue=x}catch(ke){dt(s,s.return,ke)}}break;case 3:if(Yn(o,s),lr(s),d&4&&h!==null&&h.memoizedState.isDehydrated)try{nl(o.containerInfo)}catch(ke){dt(s,s.return,ke)}break;case 4:Yn(o,s),lr(s);break;case 13:Yn(o,s),lr(s),g=s.child,g.flags&8192&&(x=g.memoizedState!==null,g.stateNode.isHidden=x,!x||g.alternate!==null&&g.alternate.memoizedState!==null||(k0=mt())),d&4&&Cp(s);break;case 22:if(ne=h!==null&&h.memoizedState!==null,s.mode&1?(Ht=(W=Ht)||ne,Yn(o,s),Ht=W):Yn(o,s),lr(s),d&8192){if(W=s.memoizedState!==null,(s.stateNode.isHidden=W)&&!ne&&(s.mode&1)!==0)for(ge=s,ne=s.child;ne!==null;){for(ie=ge=ne;ge!==null;){switch(te=ge,me=te.child,te.tag){case 0:case 11:case 14:case 15:bl(4,te,te.return);break;case 1:hs(te,te.return);var xe=te.stateNode;if(typeof xe.componentWillUnmount=="function"){d=te,h=te.return;try{o=d,xe.props=o.memoizedProps,xe.state=o.memoizedState,xe.componentWillUnmount()}catch(ke){dt(d,h,ke)}}break;case 5:hs(te,te.return);break;case 22:if(te.memoizedState!==null){Ep(ie);continue}}me!==null?(me.return=te,ge=me):Ep(ie)}ne=ne.sibling}e:for(ne=null,ie=s;;){if(ie.tag===5){if(ne===null){ne=ie;try{g=ie.stateNode,W?(x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(A=ie.stateNode,T=ie.memoizedProps.style,k=T!=null&&T.hasOwnProperty("display")?T.display:null,A.style.display=Pe("display",k))}catch(ke){dt(s,s.return,ke)}}}else if(ie.tag===6){if(ne===null)try{ie.stateNode.nodeValue=W?"":ie.memoizedProps}catch(ke){dt(s,s.return,ke)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===s)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===s)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===s)break e;ne===ie&&(ne=null),ie=ie.return}ne===ie&&(ne=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:Yn(o,s),lr(s),d&4&&Cp(s);break;case 21:break;default:Yn(o,s),lr(s)}}function lr(s){var o=s.flags;if(o&2){try{e:{for(var h=s.return;h!==null;){if($p(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&&(he(g,""),d.flags&=-33);var x=Pp(s);v0(s,x,g);break;case 3:case 4:var k=d.stateNode.containerInfo,A=Pp(s);x0(s,A,k);break;default:throw Error(t(161))}}catch(T){dt(s,s.return,T)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function Oy(s,o,h){ge=s,Tp(s)}function Tp(s,o,h){for(var d=(s.mode&1)!==0;ge!==null;){var g=ge,x=g.child;if(g.tag===22&&d){var k=g.memoizedState!==null||oa;if(!k){var A=g.alternate,T=A!==null&&A.memoizedState!==null||Ht;A=oa;var W=Ht;if(oa=k,(Ht=T)&&!W)for(ge=g;ge!==null;)k=ge,T=k.child,k.tag===22&&k.memoizedState!==null?jp(g):T!==null?(T.return=k,ge=T):jp(g);for(;x!==null;)ge=x,Tp(x),x=x.sibling;ge=g,oa=A,Ht=W}Mp(s)}else(g.subtreeFlags&8772)!==0&&x!==null?(x.return=g,ge=x):Mp(s)}}function Mp(s){for(;ge!==null;){var o=ge;if((o.flags&8772)!==0){var h=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Ht||aa(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!Ht)if(h===null)d.componentDidMount();else{var g=o.elementType===o.type?h.memoizedProps:Hn(o.type,h.memoizedProps);d.componentDidUpdate(g,h.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var x=o.updateQueue;x!==null&&Ed(o,x,d);break;case 3:var k=o.updateQueue;if(k!==null){if(h=null,o.child!==null)switch(o.child.tag){case 5:h=o.child.stateNode;break;case 1:h=o.child.stateNode}Ed(o,k,h)}break;case 5:var A=o.stateNode;if(h===null&&o.flags&4){h=A;var T=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&h.focus();break;case"img":T.src&&(h.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var W=o.alternate;if(W!==null){var ne=W.memoizedState;if(ne!==null){var ie=ne.dehydrated;ie!==null&&nl(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Ht||o.flags&512&&y0(o)}catch(te){dt(o,o.return,te)}}if(o===s){ge=null;break}if(h=o.sibling,h!==null){h.return=o.return,ge=h;break}ge=o.return}}function Ep(s){for(;ge!==null;){var o=ge;if(o===s){ge=null;break}var h=o.sibling;if(h!==null){h.return=o.return,ge=h;break}ge=o.return}}function jp(s){for(;ge!==null;){var o=ge;try{switch(o.tag){case 0:case 11:case 15:var h=o.return;try{aa(4,o)}catch(T){dt(o,h,T)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var g=o.return;try{d.componentDidMount()}catch(T){dt(o,g,T)}}var x=o.return;try{y0(o)}catch(T){dt(o,x,T)}break;case 5:var k=o.return;try{y0(o)}catch(T){dt(o,k,T)}}}catch(T){dt(o,o.return,T)}if(o===s){ge=null;break}var A=o.sibling;if(A!==null){A.return=o.return,ge=A;break}ge=o.return}}var gy=Math.ceil,ca=Z.ReactCurrentDispatcher,S0=Z.ReactCurrentOwner,Mn=Z.ReactCurrentBatchConfig,He=0,At=null,wt=null,jt=0,Sn=0,fs=Br(0),Qt=0,Ql=null,Ai=0,ua=0,w0=0,$l=null,on=null,k0=0,ds=1/0,Ar=null,ha=!1,b0=null,ei=null,fa=!1,ti=null,da=0,Pl=0,Q0=null,pa=-1,ma=0;function Jt(){return(He&6)!==0?mt():pa!==-1?pa:pa=mt()}function ni(s){return(s.mode&1)===0?1:(He&2)!==0&&jt!==0?jt&-jt:ey.transition!==null?(ma===0&&(ma=Pf()),ma):(s=Je,s!==0||(s=window.event,s=s===void 0?16:Rf(s.type)),s)}function Fn(s,o,h,d){if(50<Pl)throw Pl=0,Q0=null,Error(t(185));Gs(s,h,d),((He&2)===0||s!==At)&&(s===At&&((He&2)===0&&(ua|=h),Qt===4&&ri(s,jt)),an(s,d),h===1&&He===0&&(o.mode&1)===0&&(ds=mt()+500,Wo&&Ur()))}function an(s,o){var h=s.callbackNode;e5(s,o);var d=bo(s,s===At?jt:0);if(d===0)h!==null&&bf(h),s.callbackNode=null,s.callbackPriority=0;else if(o=d&-d,s.callbackPriority!==o){if(h!=null&&bf(h),o===1)s.tag===0?J5(Rp.bind(null,s)):Sd(Rp.bind(null,s)),q5(function(){(He&6)===0&&Ur()}),h=null;else{switch(Af(d)){case 1:h=iu;break;case 4:h=Qf;break;case 16:h=vo;break;case 536870912:h=$f;break;default:h=vo}h=Hp(h,Vp.bind(null,s))}s.callbackPriority=o,s.callbackNode=h}}function Vp(s,o){if(pa=-1,ma=0,(He&6)!==0)throw Error(t(327));var h=s.callbackNode;if(ps()&&s.callbackNode!==h)return null;var d=bo(s,s===At?jt:0);if(d===0)return null;if((d&30)!==0||(d&s.expiredLanes)!==0||o)o=Oa(s,d);else{o=d;var g=He;He|=2;var x=Xp();(At!==s||jt!==o)&&(Ar=null,ds=mt()+500,Zi(s,o));do try{vy();break}catch(A){Lp(s,A)}while(!0);Wu(),ca.current=x,He=g,wt!==null?o=0:(At=null,jt=0,o=Qt)}if(o!==0){if(o===2&&(g=su(s),g!==0&&(d=g,o=$0(s,g))),o===1)throw h=Ql,Zi(s,0),ri(s,d),an(s,mt()),h;if(o===6)ri(s,d);else{if(g=s.current.alternate,(d&30)===0&&!yy(g)&&(o=Oa(s,d),o===2&&(x=su(s),x!==0&&(d=x,o=$0(s,x))),o===1))throw h=Ql,Zi(s,0),ri(s,d),an(s,mt()),h;switch(s.finishedWork=g,s.finishedLanes=d,o){case 0:case 1:throw Error(t(345));case 2:Ti(s,on,Ar);break;case 3:if(ri(s,d),(d&130023424)===d&&(o=k0+500-mt(),10<o)){if(bo(s,0)!==0)break;if(g=s.suspendedLanes,(g&d)!==d){Jt(),s.pingedLanes|=s.suspendedLanes&g;break}s.timeoutHandle=Mu(Ti.bind(null,s,on,Ar),o);break}Ti(s,on,Ar);break;case 4:if(ri(s,d),(d&4194240)===d)break;for(o=s.eventTimes,g=-1;0<d;){var k=31-zn(d);x=1<<k,k=o[k],k>g&&(g=k),d&=~x}if(d=g,d=mt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*gy(d/1960))-d,10<d){s.timeoutHandle=Mu(Ti.bind(null,s,on,Ar),d);break}Ti(s,on,Ar);break;case 5:Ti(s,on,Ar);break;default:throw Error(t(329))}}}return an(s,mt()),s.callbackNode===h?Vp.bind(null,s):null}function $0(s,o){var h=$l;return s.current.memoizedState.isDehydrated&&(Zi(s,o).flags|=256),s=Oa(s,o),s!==2&&(o=on,on=h,o!==null&&P0(o)),s}function P0(s){on===null?on=s:on.push.apply(on,s)}function yy(s){for(var o=s;;){if(o.flags&16384){var h=o.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var d=0;d<h.length;d++){var g=h[d],x=g.getSnapshot;g=g.value;try{if(!Dn(x(),g))return!1}catch{return!1}}}if(h=o.child,o.subtreeFlags&16384&&h!==null)h.return=o,o=h;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ri(s,o){for(o&=~w0,o&=~ua,s.suspendedLanes|=o,s.pingedLanes&=~o,s=s.expirationTimes;0<o;){var h=31-zn(o),d=1<<h;s[h]=-1,o&=~d}}function Rp(s){if((He&6)!==0)throw Error(t(327));ps();var o=bo(s,0);if((o&1)===0)return an(s,mt()),null;var h=Oa(s,o);if(s.tag!==0&&h===2){var d=su(s);d!==0&&(o=d,h=$0(s,d))}if(h===1)throw h=Ql,Zi(s,0),ri(s,o),an(s,mt()),h;if(h===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=o,Ti(s,on,Ar),an(s,mt()),null}function A0(s,o){var h=He;He|=1;try{return s(o)}finally{He=h,He===0&&(ds=mt()+500,Wo&&Ur())}}function Ci(s){ti!==null&&ti.tag===0&&(He&6)===0&&ps();var o=He;He|=1;var h=Mn.transition,d=Je;try{if(Mn.transition=null,Je=1,s)return s()}finally{Je=d,Mn.transition=h,He=o,(He&6)===0&&Ur()}}function C0(){Sn=fs.current,it(fs)}function Zi(s,o){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,B5(h)),wt!==null)for(h=wt.return;h!==null;){var d=h;switch(Xu(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&zo();break;case 3:cs(),it(rn),it(zt),Gu();break;case 5:qu(d);break;case 4:cs();break;case 13:it(ct);break;case 19:it(ct);break;case 10:Hu(d.type._context);break;case 22:case 23:C0()}h=h.return}if(At=s,wt=s=ii(s.current,null),jt=Sn=o,Qt=0,Ql=null,w0=ua=Ai=0,on=$l=null,Qi!==null){for(o=0;o<Qi.length;o++)if(h=Qi[o],d=h.interleaved,d!==null){h.interleaved=null;var g=d.next,x=h.pending;if(x!==null){var k=x.next;x.next=g,d.next=k}h.pending=d}Qi=null}return s}function Lp(s,o){do{var h=wt;try{if(Wu(),Jo.current=ra,ea){for(var d=ut.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}ea=!1}if(Pi=0,Pt=bt=ut=null,xl=!1,vl=0,S0.current=null,h===null||h.return===null){Qt=1,Ql=o,wt=null;break}e:{var x=s,k=h.return,A=h,T=o;if(o=jt,A.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var W=T,ne=A,ie=ne.tag;if((ne.mode&1)===0&&(ie===0||ie===11||ie===15)){var te=ne.alternate;te?(ne.updateQueue=te.updateQueue,ne.memoizedState=te.memoizedState,ne.lanes=te.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var me=ap(k);if(me!==null){me.flags&=-257,cp(me,k,A,x,o),me.mode&1&&op(x,W,o),o=me,T=W;var xe=o.updateQueue;if(xe===null){var ke=new Set;ke.add(T),o.updateQueue=ke}else xe.add(T);break e}else{if((o&1)===0){op(x,W,o),Z0();break e}T=Error(t(426))}}else if(lt&&A.mode&1){var Ot=ap(k);if(Ot!==null){(Ot.flags&65536)===0&&(Ot.flags|=256),cp(Ot,k,A,x,o),zu(us(T,A));break e}}x=T=us(T,A),Qt!==4&&(Qt=2),$l===null?$l=[x]:$l.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,o&=-o,x.lanes|=o;var N=sp(x,T,o);Md(x,N);break e;case 1:A=T;var V=x.type,D=x.stateNode;if((x.flags&128)===0&&(typeof V.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(ei===null||!ei.has(D)))){x.flags|=65536,o&=-o,x.lanes|=o;var oe=lp(x,A,o);Md(x,oe);break e}}x=x.return}while(x!==null)}_p(h)}catch(be){o=be,wt===h&&h!==null&&(wt=h=h.return);continue}break}while(!0)}function Xp(){var s=ca.current;return ca.current=ra,s===null?ra:s}function Z0(){(Qt===0||Qt===3||Qt===2)&&(Qt=4),At===null||(Ai&268435455)===0&&(ua&268435455)===0||ri(At,jt)}function Oa(s,o){var h=He;He|=2;var d=Xp();(At!==s||jt!==o)&&(Ar=null,Zi(s,o));do try{xy();break}catch(g){Lp(s,g)}while(!0);if(Wu(),He=h,ca.current=d,wt!==null)throw Error(t(261));return At=null,jt=0,Qt}function xy(){for(;wt!==null;)Np(wt)}function vy(){for(;wt!==null&&!I6();)Np(wt)}function Np(s){var o=Wp(s.alternate,s,Sn);s.memoizedProps=s.pendingProps,o===null?_p(s):wt=o,S0.current=null}function _p(s){var o=s;do{var h=o.alternate;if(s=o.return,(o.flags&32768)===0){if(h=fy(h,o,Sn),h!==null){wt=h;return}}else{if(h=dy(h,o),h!==null){h.flags&=32767,wt=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Qt=6,wt=null;return}}if(o=o.sibling,o!==null){wt=o;return}wt=o=s}while(o!==null);Qt===0&&(Qt=5)}function Ti(s,o,h){var d=Je,g=Mn.transition;try{Mn.transition=null,Je=1,Sy(s,o,h,d)}finally{Mn.transition=g,Je=d}return null}function Sy(s,o,h,d){do ps();while(ti!==null);if((He&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 x=h.lanes|h.childLanes;if(t5(s,x),s===At&&(wt=At=null,jt=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||fa||(fa=!0,Hp(vo,function(){return ps(),null})),x=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||x){x=Mn.transition,Mn.transition=null;var k=Je;Je=1;var A=He;He|=4,S0.current=null,my(s,h),Zp(h,s),z5(Zu),Po=!!Cu,Zu=Cu=null,s.current=h,Oy(h),Y6(),He=A,Je=k,Mn.transition=x}else s.current=h;if(fa&&(fa=!1,ti=s,da=g),x=s.pendingLanes,x===0&&(ei=null),q6(h.stateNode),an(s,mt()),o!==null)for(d=s.onRecoverableError,h=0;h<o.length;h++)g=o[h],d(g.value,{componentStack:g.stack,digest:g.digest});if(ha)throw ha=!1,s=b0,b0=null,s;return(da&1)!==0&&s.tag!==0&&ps(),x=s.pendingLanes,(x&1)!==0?s===Q0?Pl++:(Pl=0,Q0=s):Pl=0,Ur(),null}function ps(){if(ti!==null){var s=Af(da),o=Mn.transition,h=Je;try{if(Mn.transition=null,Je=16>s?16:s,ti===null)var d=!1;else{if(s=ti,ti=null,da=0,(He&6)!==0)throw Error(t(331));var g=He;for(He|=4,ge=s.current;ge!==null;){var x=ge,k=x.child;if((ge.flags&16)!==0){var A=x.deletions;if(A!==null){for(var T=0;T<A.length;T++){var W=A[T];for(ge=W;ge!==null;){var ne=ge;switch(ne.tag){case 0:case 11:case 15:bl(8,ne,x)}var ie=ne.child;if(ie!==null)ie.return=ne,ge=ie;else for(;ge!==null;){ne=ge;var te=ne.sibling,me=ne.return;if(Qp(ne),ne===W){ge=null;break}if(te!==null){te.return=me,ge=te;break}ge=me}}}var xe=x.alternate;if(xe!==null){var ke=xe.child;if(ke!==null){xe.child=null;do{var Ot=ke.sibling;ke.sibling=null,ke=Ot}while(ke!==null)}}ge=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,ge=k;else e:for(;ge!==null;){if(x=ge,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:bl(9,x,x.return)}var N=x.sibling;if(N!==null){N.return=x.return,ge=N;break e}ge=x.return}}var V=s.current;for(ge=V;ge!==null;){k=ge;var D=k.child;if((k.subtreeFlags&2064)!==0&&D!==null)D.return=k,ge=D;else e:for(k=V;ge!==null;){if(A=ge,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:aa(9,A)}}catch(be){dt(A,A.return,be)}if(A===k){ge=null;break e}var oe=A.sibling;if(oe!==null){oe.return=A.return,ge=oe;break e}ge=A.return}}if(He=g,Ur(),nr&&typeof nr.onPostCommitFiberRoot=="function")try{nr.onPostCommitFiberRoot(So,s)}catch{}d=!0}return d}finally{Je=h,Mn.transition=o}}return!1}function zp(s,o,h){o=us(h,o),o=sp(s,o,1),s=Kr(s,o,1),o=Jt(),s!==null&&(Gs(s,1,o),an(s,o))}function dt(s,o,h){if(s.tag===3)zp(s,s,h);else for(;o!==null;){if(o.tag===3){zp(o,s,h);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ei===null||!ei.has(d))){s=us(h,s),s=lp(o,s,1),o=Kr(o,s,1),s=Jt(),o!==null&&(Gs(o,1,s),an(o,s));break}}o=o.return}}function wy(s,o,h){var d=s.pingCache;d!==null&&d.delete(o),o=Jt(),s.pingedLanes|=s.suspendedLanes&h,At===s&&(jt&h)===h&&(Qt===4||Qt===3&&(jt&130023424)===jt&&500>mt()-k0?Zi(s,0):w0|=h),an(s,o)}function Dp(s,o){o===0&&((s.mode&1)===0?o=1:(o=ko,ko<<=1,(ko&130023424)===0&&(ko=4194304)));var h=Jt();s=Qr(s,o),s!==null&&(Gs(s,o,h),an(s,h))}function ky(s){var o=s.memoizedState,h=0;o!==null&&(h=o.retryLane),Dp(s,h)}function by(s,o){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(o),Dp(s,h)}var Wp;Wp=function(s,o,h){if(s!==null)if(s.memoizedProps!==o.pendingProps||rn.current)ln=!0;else{if((s.lanes&h)===0&&(o.flags&128)===0)return ln=!1,hy(s,o,h);ln=(s.flags&131072)!==0}else ln=!1,lt&&(o.flags&1048576)!==0&&wd(o,Io,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;la(s,o),s=o.pendingProps;var g=ns(o,zt.current);as(o,h),g=e0(null,o,d,s,g,h);var x=t0();return o.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,sn(d)?(x=!0,Do(o)):x=!1,o.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Fu(o),g.updater=ia,o.stateNode=g,g._reactInternals=o,o0(o,d,s,h),o=h0(null,o,d,!0,x,h)):(o.tag=0,lt&&x&&Lu(o),Kt(null,o,g,h),o=o.child),o;case 16:d=o.elementType;e:{switch(la(s,o),s=o.pendingProps,g=d._init,d=g(d._payload),o.type=d,g=o.tag=$y(d),s=Hn(d,s),g){case 0:o=u0(null,o,d,s,h);break e;case 1:o=mp(null,o,d,s,h);break e;case 11:o=up(null,o,d,s,h);break e;case 14:o=hp(null,o,d,Hn(d.type,s),h);break e}throw Error(t(306,d,""))}return o;case 0:return d=o.type,g=o.pendingProps,g=o.elementType===d?g:Hn(d,g),u0(s,o,d,g,h);case 1:return d=o.type,g=o.pendingProps,g=o.elementType===d?g:Hn(d,g),mp(s,o,d,g,h);case 3:e:{if(Op(o),s===null)throw Error(t(387));d=o.pendingProps,x=o.memoizedState,g=x.element,Td(s,o),Go(o,d,null,h);var k=o.memoizedState;if(d=k.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){g=us(Error(t(423)),o),o=gp(s,o,d,h,g);break e}else if(d!==g){g=us(Error(t(424)),o),o=gp(s,o,d,h,g);break e}else for(vn=Fr(o.stateNode.containerInfo.firstChild),xn=o,lt=!0,Wn=null,h=Cd(o,null,d,h),o.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(ss(),d===g){o=Pr(s,o,h);break e}Kt(s,o,d,h)}o=o.child}return o;case 5:return jd(o),s===null&&_u(o),d=o.type,g=o.pendingProps,x=s!==null?s.memoizedProps:null,k=g.children,Tu(d,g)?k=null:x!==null&&Tu(d,x)&&(o.flags|=32),pp(s,o),Kt(s,o,k,h),o.child;case 6:return s===null&&_u(o),null;case 13:return yp(s,o,h);case 4:return Bu(o,o.stateNode.containerInfo),d=o.pendingProps,s===null?o.child=ls(o,null,d,h):Kt(s,o,d,h),o.child;case 11:return d=o.type,g=o.pendingProps,g=o.elementType===d?g:Hn(d,g),up(s,o,d,g,h);case 7:return Kt(s,o,o.pendingProps,h),o.child;case 8:return Kt(s,o,o.pendingProps.children,h),o.child;case 12:return Kt(s,o,o.pendingProps.children,h),o.child;case 10:e:{if(d=o.type._context,g=o.pendingProps,x=o.memoizedProps,k=g.value,tt(Bo,d._currentValue),d._currentValue=k,x!==null)if(Dn(x.value,k)){if(x.children===g.children&&!rn.current){o=Pr(s,o,h);break e}}else for(x=o.child,x!==null&&(x.return=o);x!==null;){var A=x.dependencies;if(A!==null){k=x.child;for(var T=A.firstContext;T!==null;){if(T.context===d){if(x.tag===1){T=$r(-1,h&-h),T.tag=2;var W=x.updateQueue;if(W!==null){W=W.shared;var ne=W.pending;ne===null?T.next=T:(T.next=ne.next,ne.next=T),W.pending=T}}x.lanes|=h,T=x.alternate,T!==null&&(T.lanes|=h),Iu(x.return,h,o),A.lanes|=h;break}T=T.next}}else if(x.tag===10)k=x.type===o.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(t(341));k.lanes|=h,A=k.alternate,A!==null&&(A.lanes|=h),Iu(k,h,o),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===o){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}Kt(s,o,g.children,h),o=o.child}return o;case 9:return g=o.type,d=o.pendingProps.children,as(o,h),g=Zn(g),d=d(g),o.flags|=1,Kt(s,o,d,h),o.child;case 14:return d=o.type,g=Hn(d,o.pendingProps),g=Hn(d.type,g),hp(s,o,d,g,h);case 15:return fp(s,o,o.type,o.pendingProps,h);case 17:return d=o.type,g=o.pendingProps,g=o.elementType===d?g:Hn(d,g),la(s,o),o.tag=1,sn(d)?(s=!0,Do(o)):s=!1,as(o,h),rp(o,d,g),o0(o,d,g,h),h0(null,o,d,!0,s,h);case 19:return vp(s,o,h);case 22:return dp(s,o,h)}throw Error(t(156,o.tag))};function Hp(s,o){return kf(s,o)}function Qy(s,o,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=o,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 En(s,o,h,d){return new Qy(s,o,h,d)}function T0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function $y(s){if(typeof s=="function")return T0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===z)return 11;if(s===K)return 14}return 2}function ii(s,o){var h=s.alternate;return h===null?(h=En(s.tag,o,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=o,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,o=s.dependencies,h.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function ga(s,o,h,d,g,x){var k=2;if(d=s,typeof s=="function")T0(s)&&(k=1);else if(typeof s=="string")k=5;else e:switch(s){case E:return Mi(h.children,g,x,o);case R:k=8,g|=8;break;case Y:return s=En(12,h,o,g|2),s.elementType=Y,s.lanes=x,s;case U:return s=En(13,h,o,g),s.elementType=U,s.lanes=x,s;case re:return s=En(19,h,o,g),s.elementType=re,s.lanes=x,s;case ce:return ya(h,g,x,o);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case le:k=10;break e;case J:k=9;break e;case z:k=11;break e;case K:k=14;break e;case ae:k=16,d=null;break e}throw Error(t(130,s==null?s:typeof s,""))}return o=En(k,h,o,g),o.elementType=s,o.type=d,o.lanes=x,o}function Mi(s,o,h,d){return s=En(7,s,d,o),s.lanes=h,s}function ya(s,o,h,d){return s=En(22,s,d,o),s.elementType=ce,s.lanes=h,s.stateNode={isHidden:!1},s}function M0(s,o,h){return s=En(6,s,null,o),s.lanes=h,s}function E0(s,o,h){return o=En(4,s.children!==null?s.children:[],s.key,o),o.lanes=h,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}function Py(s,o,h,d,g){this.tag=o,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=lu(0),this.expirationTimes=lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function j0(s,o,h,d,g,x,k,A,T){return s=new Py(s,o,h,A,T),o===1?(o=1,x===!0&&(o|=8)):o=0,x=En(3,null,null,o),s.current=x,x.stateNode=s,x.memoizedState={element:d,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(x),s}function Ay(s,o,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:d==null?null:""+d,children:s,containerInfo:o,implementation:h}}function Ip(s){if(!s)return qr;s=s._reactInternals;e:{if(vi(s)!==s||s.tag!==1)throw Error(t(170));var o=s;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(sn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(t(171))}if(s.tag===1){var h=s.type;if(sn(h))return xd(s,h,o)}return o}function Yp(s,o,h,d,g,x,k,A,T){return s=j0(h,d,!0,s,g,x,k,A,T),s.context=Ip(null),h=s.current,d=Jt(),g=ni(h),x=$r(d,g),x.callback=o??null,Kr(h,x,g),s.current.lanes=g,Gs(s,g,d),an(s,d),s}function xa(s,o,h,d){var g=o.current,x=Jt(),k=ni(g);return h=Ip(h),o.context===null?o.context=h:o.pendingContext=h,o=$r(x,k),o.payload={element:s},d=d===void 0?null:d,d!==null&&(o.callback=d),s=Kr(g,o,k),s!==null&&(Fn(s,g,k,x),Uo(s,g,k)),k}function va(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 Fp(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<o?h:o}}function V0(s,o){Fp(s,o),(s=s.alternate)&&Fp(s,o)}function Cy(){return null}var Bp=typeof reportError=="function"?reportError:function(s){console.error(s)};function R0(s){this._internalRoot=s}Sa.prototype.render=R0.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(t(409));xa(s,o,null,null)},Sa.prototype.unmount=R0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;Ci(function(){xa(null,s,null,null)}),o[Sr]=null}};function Sa(s){this._internalRoot=s}Sa.prototype.unstable_scheduleHydration=function(s){if(s){var o=Tf();s={blockedOn:null,target:s,priority:o};for(var h=0;h<Hr.length&&o!==0&&o<Hr[h].priority;h++);Hr.splice(h,0,s),h===0&&jf(s)}};function L0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function wa(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function qp(){}function Zy(s,o,h,d,g){if(g){if(typeof d=="function"){var x=d;d=function(){var W=va(k);x.call(W)}}var k=Yp(o,d,s,0,null,!1,!1,"",qp);return s._reactRootContainer=k,s[Sr]=k.current,hl(s.nodeType===8?s.parentNode:s),Ci(),k}for(;g=s.lastChild;)s.removeChild(g);if(typeof d=="function"){var A=d;d=function(){var W=va(T);A.call(W)}}var T=j0(s,0,!1,null,null,!1,!1,"",qp);return s._reactRootContainer=T,s[Sr]=T.current,hl(s.nodeType===8?s.parentNode:s),Ci(function(){xa(o,T,h,d)}),T}function ka(s,o,h,d,g){var x=h._reactRootContainer;if(x){var k=x;if(typeof g=="function"){var A=g;g=function(){var T=va(k);A.call(T)}}xa(o,k,s,g)}else k=Zy(h,o,s,g,d);return va(k)}Cf=function(s){switch(s.tag){case 3:var o=s.stateNode;if(o.current.memoizedState.isDehydrated){var h=Us(o.pendingLanes);h!==0&&(ou(o,h|1),an(o,mt()),(He&6)===0&&(ds=mt()+500,Ur()))}break;case 13:Ci(function(){var d=Qr(s,1);if(d!==null){var g=Jt();Fn(d,s,1,g)}}),V0(s,1)}},au=function(s){if(s.tag===13){var o=Qr(s,134217728);if(o!==null){var h=Jt();Fn(o,s,134217728,h)}V0(s,134217728)}},Zf=function(s){if(s.tag===13){var o=ni(s),h=Qr(s,o);if(h!==null){var d=Jt();Fn(h,s,o,d)}V0(s,o)}},Tf=function(){return Je},Mf=function(s,o){var h=Je;try{return Je=s,o()}finally{Je=h}},ft=function(s,o,h){switch(o){case"input":if(Me(s,h),o=h.name,h.type==="radio"&&o!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<h.length;o++){var d=h[o];if(d!==s&&d.form===s.form){var g=_o(d);if(!g)throw Error(t(90));De(d),Me(d,g)}}}break;case"textarea":Nn(s,h);break;case"select":o=h.value,o!=null&&vt(s,!!h.multiple,o,!1)}},Of=A0,gf=Ci;var Ty={usingClientEntryPoint:!1,Events:[pl,es,_o,Ys,Yi,A0]},Al={findFiberByHostInstance:Si,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},My={bundleType:Al.bundleType,version:Al.version,rendererPackageName:Al.rendererPackageName,rendererConfig:Al.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Sf(s),s===null?null:s.stateNode},findFiberByHostInstance:Al.findFiberByHostInstance||Cy,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 ba=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ba.isDisabled&&ba.supportsFiber)try{So=ba.inject(My),nr=ba}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ty,cn.createPortal=function(s,o){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L0(o))throw Error(t(200));return Ay(s,o,null,h)},cn.createRoot=function(s,o){if(!L0(s))throw Error(t(299));var h=!1,d="",g=Bp;return o!=null&&(o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),o=j0(s,1,!1,null,null,h,!1,d,g),s[Sr]=o.current,hl(s.nodeType===8?s.parentNode:s),new R0(o)},cn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=Sf(o),s=s===null?null:s.stateNode,s},cn.flushSync=function(s){return Ci(s)},cn.hydrate=function(s,o,h){if(!wa(o))throw Error(t(200));return ka(null,s,o,!0,h)},cn.hydrateRoot=function(s,o,h){if(!L0(s))throw Error(t(405));var d=h!=null&&h.hydratedSources||null,g=!1,x="",k=Bp;if(h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(x=h.identifierPrefix),h.onRecoverableError!==void 0&&(k=h.onRecoverableError)),o=Yp(o,null,s,1,h??null,g,!1,x,k),s[Sr]=o.current,hl(s),d)for(s=0;s<d.length;s++)h=d[s],g=h._getVersion,g=g(h._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[h,g]:o.mutableSourceEagerHydrationData.push(h,g);return new Sa(o)},cn.render=function(s,o,h){if(!wa(o))throw Error(t(200));return ka(null,s,o,!1,h)},cn.unmountComponentAtNode=function(s){if(!wa(s))throw Error(t(40));return s._reactRootContainer?(Ci(function(){ka(null,null,s,!1,function(){s._reactRootContainer=null,s[Sr]=null})}),!0):!1},cn.unstable_batchedUpdates=A0,cn.unstable_renderSubtreeIntoContainer=function(s,o,h,d){if(!wa(h))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return ka(s,o,h,!1,d)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var rm;function zy(){if(rm)return _0.exports;rm=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(),_0.exports=_y(),_0.exports}var im;function Dy(){if(im)return $a;im=1;var r=zy();return $a.createRoot=r.createRoot,$a.hydrateRoot=r.hydrateRoot,$a}var Wy=Dy();function Ft(r){p.useEffect(r,[])}const Hy="modulepreload",Iy=function(r){return"/"+r},sm={},Yy=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let a=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=a(t.map(f=>{if(f=Iy(f),f in sm)return;sm[f]=!0;const m=f.endsWith(".css"),O=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${O}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":Hy,m||(y.as="script"),y.crossOrigin="",y.href=f,u&&y.setAttribute("nonce",u),document.head.appendChild(y),m)return new Promise((S,w)=>{y.addEventListener("load",S),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return i.then(a=>{for(const c of a||[])c.status==="rejected"&&l(c.reason);return e().catch(l)})};function Fy(r){if(typeof r!="object"||r===null)return!0;const e=r;return e.isLoaded===!0||typeof e.totalFrames=="number"&&e.totalFrames>0}function lm(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(!Fy(l))return!0}return!1}catch{return e}}const j2=p.forwardRef(({projectId:r,directUrl:e,onLoad:t,portrait:n},i)=>{const l=p.useRef(null),a=p.useRef(0),c=p.useRef(null),[u,f]=p.useState(!1);return Ft(()=>{const m=l.current;if(!m)return;let O=!1,y;return Yy(()=>import("./hyperframes-player-5iD9BZnx.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 Q=j=>j.stopImmediatePropagation();S.addEventListener("click",Q,{capture:!0});const C=()=>{if(a.current++,a.current>1){m.classList.remove("preview-revealing"),m.offsetWidth,m.classList.add("preview-revealing");const P=()=>m.classList.remove("preview-revealing");m.addEventListener("animationend",P,{once:!0})}t(),c.current&&clearInterval(c.current);let j=lm(b,!1);if(j){f(!0);let P=0;c.current=setInterval(()=>{P+=1,j=lm(b,j),(!j||P>100)&&(c.current&&clearInterval(c.current),c.current=null,f(!1),j&&console.debug("[Player] Asset-loading overlay timed out after 10s; hiding anyway. Check network or asset integrity."))},100)}else f(!1)};b.addEventListener("load",C),y=()=>{b.removeEventListener("load",C),S.removeEventListener("click",Q,{capture:!0}),c.current&&clearInterval(c.current),c.current=null,m.removeChild(S),typeof i=="function"?i(null):i&&(i.current=null)}}),()=>{O=!0,y==null||y()}}),v.jsxs("div",{className:"relative w-full h-full max-w-full max-h-full overflow-hidden bg-black flex items-center justify-center",children:[v.jsx("div",{ref:l,className:"w-full h-full"}),u&&v.jsxs("div",{className:"absolute inset-0 bg-black/80 flex flex-col items-center justify-center z-20 pointer-events-none",children:[v.jsx("div",{className:"w-8 h-8 border-2 border-white/20 border-t-white rounded-full animate-spin"}),v.jsx("span",{className:"text-white/60 text-xs mt-3",children:"Loading assets…"})]})]})});j2.displayName="Player";function hr(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 om=r=>{let e;const t=new Set,n=(f,m)=>{const O=typeof f=="function"?f(e):f;if(!Object.is(O,e)){const y=e;e=m??(typeof O!="object"||O===null)?O:Object.assign({},e,O),t.forEach(S=>S(e,y))}},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},By=(r=>r?om(r):om),qy=r=>r;function Uy(r,e=qy){const t=Qa.useSyncExternalStore(r.subscribe,Qa.useCallback(()=>e(r.getState()),[r,e]),Qa.useCallback(()=>e(r.getInitialState()),[r,e]));return Qa.useDebugValue(t),t}const am=r=>{const e=By(r),t=n=>Uy(e,n);return Object.assign(t,e),t},V2=(r=>r?am(r):am),W0=new Set,Bl={notify:r=>W0.forEach(e=>e(r)),subscribe:r=>(W0.add(r),()=>W0.delete(r))},Re=V2(r=>({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,playbackRate:1,zoomMode:"fit",pixelsPerSecond:100,setIsPlaying:e=>r({isPlaying:e}),setPlaybackRate:e=>r({playbackRate:e}),setZoomMode:e=>r({zoomMode:e}),setPixelsPerSecond:e=>r({pixelsPerSecond:Math.max(10,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.id===e?{...i,...t}:i)})),reset:()=>r({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null})})),Gy=[.25,.5,1,1.5,2],Ky=p.memo(function({onTogglePlay:e,onSeek:t,timelineVisible:n,onToggleTimeline:i}){const l=Re(R=>R.isPlaying),a=Re(R=>R.duration),c=Re(R=>R.timelineReady),u=Re(R=>R.playbackRate),f=Re.getState().setPlaybackRate,[m,O]=p.useState(!1),y=p.useRef(null),S=p.useRef(null),w=p.useRef(null),b=p.useRef(null),Q=p.useRef(null),C=p.useRef(null),j=p.useRef(!1),P=p.useRef(0),Z=p.useRef(a);Z.current=a,Ft(()=>{const R=J=>{P.current=J;const z=Z.current,U=z>0?Math.min(100,J/z*100):0;y.current&&(y.current.style.width=`${U}%`),S.current&&(S.current.style.left=`${U}%`),w.current&&(w.current.textContent=hr(J)),Q.current&&Q.current.setAttribute("aria-valuenow",String(Math.round(J)))},Y=Bl.subscribe(R);R(Re.getState().currentTime);const le=setInterval(()=>{const J=Re.getState().currentTime,z=Re.getState().duration;if(z>0&&J>0){const U=Math.min(100,J/z*100);y.current&&(y.current.style.width=`${U}%`),S.current&&(S.current.style.left=`${U}%`)}},500);return()=>{Y(),clearInterval(le)}}),p.useEffect(()=>{if(!m)return;const R=Y=>{C.current&&!C.current.contains(Y.target)&&O(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[m]);const X=p.useCallback(R=>{const Y=b.current;if(!Y||a<=0)return;const le=Y.getBoundingClientRect(),J=Math.max(0,Math.min(1,(R-le.left)/le.width)),z=J*100;y.current&&(y.current.style.width=`${z}%`),S.current&&(S.current.style.left=`${z}%`),t(J*a)},[a,t]),_=p.useCallback(R=>{if(R.button!==0)return;R.preventDefault(),R.currentTarget.focus(),j.current=!0;const Y=R.currentTarget,le=R.pointerId;try{Y.setPointerCapture(le)}catch{}X(R.clientX);const J=K=>{K.pointerId===le&&j.current&&X(K.clientX)},z=()=>{j.current=!1;try{Y.releasePointerCapture(le)}catch{}Y.removeEventListener("pointermove",J),Y.removeEventListener("pointerup",U),Y.removeEventListener("pointercancel",U),window.removeEventListener("pointerup",U),window.removeEventListener("pointercancel",U),document.removeEventListener("visibilitychange",re),window.removeEventListener("blur",z)},U=K=>{K.pointerId===le&&z()},re=()=>{document.visibilityState==="hidden"&&z()};Y.addEventListener("pointermove",J),Y.addEventListener("pointerup",U),Y.addEventListener("pointercancel",U),window.addEventListener("pointerup",U),window.addEventListener("pointercancel",U),document.addEventListener("visibilitychange",re),window.addEventListener("blur",z)},[X]),E=p.useCallback(R=>{if(!c||a<=0)return;const Y=R.shiftKey?5:1;R.key==="ArrowLeft"?(R.preventDefault(),t(Math.max(0,P.current-Y))):R.key==="ArrowRight"&&(R.preventDefault(),t(Math.min(a,P.current+Y)))},[c,a,t]);return v.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:[v.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?v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:[v.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),v.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}):v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:v.jsx("polygon",{points:"6,3 20,12 6,21"})})}),v.jsxs("span",{className:"font-mono text-[11px] tabular-nums flex-shrink-0 min-w-[72px]",style:{color:"#A1A1AA"},children:[v.jsx("span",{ref:w,children:hr(0)}),v.jsx("span",{style:{color:"#3F3F46",margin:"0 2px"},children:"/"}),v.jsx("span",{style:{color:"#52525B"},children:hr(a)})]}),v.jsx("div",{ref:R=>{b.current=R,Q.current=R},role:"slider",tabIndex:0,"aria-label":"Seek","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":0,className:"flex-1 h-6 flex items-center cursor-pointer group",style:{touchAction:"none"},onPointerDown:_,onKeyDown:E,children:v.jsxs("div",{className:"w-full rounded-full relative",style:{background:"rgba(255,255,255,0.15)",height:"3px"},children:[v.jsx("div",{ref:y,className:"absolute top-0 bottom-0 left-0 z-[1] rounded-full",style:{background:"linear-gradient(90deg, var(--hf-accent, #3CE6AC), #2BBFA0)"}}),v.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)"}})]})}),v.jsxs("div",{ref:C,className:"relative flex-shrink-0",children:[v.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&&v.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:Gy.map(R=>v.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:Y=>{R!==u&&(Y.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:Y=>{R!==u&&(Y.currentTarget.style.background="transparent")},children:[R,"x"]},R))})]}),i!==void 0&&v.jsx("button",{onClick:i,className:`w-7 h-7 flex items-center justify-center rounded-md border transition-colors ${n?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800"}`,title:n?"Hide timeline":"Show timeline",children:v.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[v.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),v.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),v.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]})})]})}),Jy=p.memo(function({el:e,pps:t,clipY:n,isSelected:i,isHovered:l,hasCustomContent:a,style:c,isComposition:u,onHoverStart:f,onHoverEnd:m,onClick:O,onDoubleClick:y,children:S}){const w=e.start*t,b=Math.max(e.duration*t,4);return v.jsx("div",{"data-clip":"true",className:a?"absolute":"absolute flex items-center",style:{left:w,width:b,top:n,bottom:n,borderRadius:5,backgroundColor:a&&u?"#111":c.clip,backgroundImage:u&&!a?"repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 6px)":void 0,border:i?"2px solid rgba(255,255,255,0.9)":`1px solid rgba(255,255,255,${l?.3:.15})`,boxShadow:i?`0 0 0 1px ${c.clip}, 0 2px 8px rgba(0,0,0,0.4)`:l?"0 1px 4px rgba(0,0,0,0.3)":"none",transition:"border-color 120ms, box-shadow 120ms",zIndex:i?10:l?5:1},title:u?`${e.compositionSrc} • Double-click to open`:`${e.id||e.tag} • ${e.start.toFixed(1)}s – ${(e.start+e.duration).toFixed(1)}s`,onPointerEnter:f,onPointerLeave:m,onClick:O,onDoubleClick:y,children:S})});function ex({rangeStart:r,rangeEnd:e,anchorX:t,anchorY:n,onClose:i}){const l=Re(j=>j.elements),[a,c]=p.useState(""),[u,f]=p.useState(!1),m=p.useRef(null),O=p.useRef(null),y=Math.min(r,e),S=Math.max(r,e),w=p.useMemo(()=>l.filter(j=>{const P=j.start+j.duration;return j.start<S&&P>y}),[l,y,S]);Ft(()=>{setTimeout(()=>{var j;return(j=O.current)==null?void 0:j.focus()},50)}),Ft(()=>{const j=P=>{P.key==="Escape"&&i()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)}),Ft(()=>{const j=P=>{m.current&&!m.current.contains(P.target)&&i()};return setTimeout(()=>window.addEventListener("mousedown",j),100),()=>window.removeEventListener("mousedown",j)});const b=p.useCallback(()=>{const j=w.map(P=>`- #${P.id} (${P.tag}) — ${hr(P.start)} to ${hr(P.start+P.duration)}, track ${P.track}`).join(`
|
|
41
|
-
`);return`Edit the following HyperFrames composition:
|
|
42
|
-
|
|
43
|
-
Time range: ${hr(y)} — ${hr(S)}
|
|
44
|
-
|
|
45
|
-
Elements in range:
|
|
46
|
-
${j||"(none)"}
|
|
47
|
-
|
|
48
|
-
User request:
|
|
49
|
-
${a.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.`},[y,S,w,a]),Q=p.useCallback(async()=>{try{await navigator.clipboard.writeText(b())}catch{const j=document.createElement("textarea");j.value=b(),document.body.appendChild(j),j.select(),document.execCommand("copy"),document.body.removeChild(j)}f(!0),setTimeout(()=>{f(!1),i()},800)},[b,i]),C={position:"fixed",left:Math.max(8,Math.min(t-160,window.innerWidth-336)),top:Math.max(8,n-280),zIndex:200};return v.jsx("div",{ref:m,style:C,children:v.jsxs("div",{className:"w-80 bg-neutral-900 border border-neutral-700/60 rounded-xl shadow-2xl shadow-black/40 overflow-hidden",children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-neutral-800/60",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-studio-accent"}),v.jsxs("span",{className:"text-[11px] font-medium text-neutral-300",children:[hr(y)," — ",hr(S)]})]}),v.jsxs("span",{className:"text-[10px] text-neutral-600",children:[w.length," element",w.length!==1?"s":""]})]}),w.length>0&&v.jsx("div",{className:"px-4 py-2 border-b border-neutral-800/40 max-h-24 overflow-y-auto",children:w.map(j=>v.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[v.jsxs("span",{className:"text-[10px] font-mono text-studio-accent/80",children:["#",j.id]}),v.jsx("span",{className:"text-[10px] text-neutral-600",children:j.tag})]},j.id))}),v.jsx("div",{className:"p-3",children:v.jsx("textarea",{ref:O,value:a,onChange:j=>c(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),Q())},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"})}),v.jsx("div",{className:"px-3 pb-3",children:v.jsxs("button",{onClick:Q,className:`w-full 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&&v.jsx("span",{className:"text-[9px] text-studio-accent/50 ml-1.5",children:"Cmd+Enter"})]})})]})})}const Vt=32,cm=72,Zl=24,tx=3,_s="/icons/timeline";function zs({src:r}){return v.jsx("img",{src:r,alt:"",width:12,height:12,style:{filter:"brightness(0) invert(1)"},draggable:!1})}const nx=v.jsx(zs,{src:`${_s}/captions.svg`}),um=v.jsx(zs,{src:`${_s}/image.svg`}),rx=v.jsx(zs,{src:`${_s}/music.svg`}),hm=v.jsx(zs,{src:`${_s}/text.svg`}),Zh=v.jsx(zs,{src:`${_s}/composition.svg`}),ix=v.jsx(zs,{src:`${_s}/audio.svg`}),fm={video:{clip:"#1F6AFF",label:"#DBEAFE",row:"rgba(31,106,255,0.04)",gutter:"#1F6AFF",icon:um},audio:{clip:"#00C4FF",label:"#013A4B",row:"rgba(0,196,255,0.04)",gutter:"#00C4FF",icon:rx},img:{clip:"#8B5CF6",label:"#EDE9FE",row:"rgba(139,92,246,0.04)",gutter:"#8B5CF6",icon:um},div:{clip:"#68B200",label:"#1A2B03",row:"rgba(104,178,0,0.04)",gutter:"#68B200",icon:Zh},span:{clip:"#F3A6FF",label:"#8D00A3",row:"rgba(243,166,255,0.04)",gutter:"#F3A6FF",icon:nx},p:{clip:"#35C838",label:"#024A03",row:"rgba(53,200,56,0.04)",gutter:"#35C838",icon:hm},h1:{clip:"#35C838",label:"#024A03",row:"rgba(53,200,56,0.04)",gutter:"#35C838",icon:hm},section:{clip:"#68B200",label:"#1A2B03",row:"rgba(104,178,0,0.04)",gutter:"#68B200",icon:Zh},sfx:{clip:"#FF8C42",label:"#512000",row:"rgba(255,140,66,0.04)",gutter:"#FF8C42",icon:ix}},R2={clip:"#6B7280",label:"#F3F4F6",row:"rgba(107,114,128,0.03)",gutter:"#6B7280",icon:Zh};function dm(r){const e=r.toLowerCase();return e.startsWith("h")&&e.length===2&&"123456".includes(e[1])?fm.h1:fm[e]??R2}function sx(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=[],a=[],c=500;for(let u=0;u<=r+.001&&l.length+a.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):a.push(f)}return{major:l,minor:a}}const lx=p.memo(function({onSeek:e,onDrillDown:t,renderClipContent:n,renderClipOverlay:i,onFileDrop:l}={}){const a=Re(B=>B.elements),c=Re(B=>B.duration),u=Re(B=>B.timelineReady),f=Re(B=>B.selectedElementId),m=Re(B=>B.setSelectedElementId),O=Re(B=>B.zoomMode),y=Re(B=>B.pixelsPerSecond),S=p.useRef(null),w=p.useRef(null),b=p.useRef(null),[Q,C]=p.useState(null),j=p.useRef(!1),[P,Z]=p.useState(!1);Ft(()=>{const B=Me=>Me.key==="Shift"&&Z(!0),Ze=Me=>Me.key==="Shift"&&Z(!1),Ne=()=>Z(!1);return window.addEventListener("keydown",B),window.addEventListener("keyup",Ze),window.addEventListener("blur",Ne),()=>{window.removeEventListener("keydown",B),window.removeEventListener("keyup",Ze),window.removeEventListener("blur",Ne)}});const X=p.useRef(!1),_=p.useRef(0),[E,R]=p.useState(null),[Y,le]=p.useState(!1),[J,z]=p.useState(0),U=p.useRef(null),re=p.useCallback(B=>{U.current&&(U.current.disconnect(),U.current=null),w.current=B,B&&(z(B.clientWidth),U.current=new ResizeObserver(([Ze])=>{z(Ze.contentRect.width)}),U.current.observe(B))},[]);Ft(()=>()=>{var B;(B=U.current)==null||B.disconnect()});const K=p.useMemo(()=>{const B=Number.isFinite(c)?c:0;if(a.length===0)return B;const Ze=Math.max(...a.map(Me=>Me.start+Me.duration)),Ne=Math.max(B,Ze);return Number.isFinite(Ne)?Ne:B},[a,c]),ae=J>Vt&&K>0?(J-Vt-2)/K:100,ce=O==="fit"?ae:y,I=Math.max(0,K*ce),ee=p.useRef(K);ee.current=K;const F=p.useRef(ce);F.current=ce,Ft(()=>Bl.subscribe(Ze=>{const Ne=ee.current;if(!S.current||Ne<=0)return;const Me=Ze*F.current;S.current.style.left=`${Vt+Me}px`;const Ke=b.current;if(Ke&&!j.current){const Fe=Vt+Me,st=Ke.scrollLeft+Ke.clientWidth,vt=Ke.scrollLeft,St=Ke.clientWidth*.12;Fe>st-St?Ke.scrollLeft=Fe-Ke.clientWidth*.15:Fe<vt+Vt&&(Ke.scrollLeft=Math.max(0,Fe-Vt))}}));const $=p.useRef(0),L=p.useCallback(B=>{const Ze=b.current;if(!Ze||K<=0)return;const Ne=Ze.getBoundingClientRect(),Me=Ze.scrollLeft,Ke=B-Ne.left+Me-Vt;if(Ke<0)return;const Fe=Math.max(0,Math.min(K,Ke/ce));Bl.notify(Fe),e==null||e(Fe)},[K,e,ce]),G=p.useCallback(B=>{cancelAnimationFrame($.current);const Ze=b.current;if(!Ze||!j.current)return;const Ne=Ze.getBoundingClientRect(),Me=40,Ke=12;let Fe=0;if(B<Ne.left+Me){const st=Math.max(0,1-(B-Ne.left)/Me);Fe=-Ke*st}else if(B>Ne.right-Me){const st=Math.max(0,1-(Ne.right-B)/Me);Fe=Ke*st}Fe!==0&&(Ze.scrollLeft+=Fe,L(B),$.current=requestAnimationFrame(()=>G(B)))},[L]),se=p.useCallback(B=>{var Ze,Ne;if(B.button===0){if(B.shiftKey){B.currentTarget.setPointerCapture(B.pointerId),X.current=!0,le(!1);const Me=(Ze=b.current)==null?void 0:Ze.getBoundingClientRect();if(Me){const Ke=B.clientX-Me.left+(((Ne=b.current)==null?void 0:Ne.scrollLeft)??0)-Vt,Fe=Math.max(0,Ke/ce);_.current=Fe,R({start:Fe,end:Fe,anchorX:B.clientX,anchorY:B.clientY})}return}B.target.closest("[data-clip]")||(B.currentTarget.setPointerCapture(B.pointerId),j.current=!0,R(null),le(!1),L(B.clientX))}},[L,ce]),fe=p.useCallback(B=>{var Ze,Ne;if(X.current){const Me=(Ze=b.current)==null?void 0:Ze.getBoundingClientRect();if(Me){const Ke=B.clientX-Me.left+(((Ne=b.current)==null?void 0:Ne.scrollLeft)??0)-Vt,Fe=Math.max(0,Ke/ce);R(st=>st?{...st,end:Fe,anchorX:B.clientX,anchorY:B.clientY}:null)}return}j.current&&(L(B.clientX),G(B.clientX))},[L,G,ce]),$e=p.useCallback(()=>{if(X.current){X.current=!1,R(B=>B&&Math.abs(B.end-B.start)>.2?(le(!0),B):null);return}j.current=!1,cancelAnimationFrame($.current)},[]),ue=p.useMemo(()=>{const B=new Map;for(const Ze of a){const Ne=B.get(Ze.track)??[];Ne.push(Ze),B.set(Ze.track,Ne)}return Array.from(B.entries()).sort(([Ze],[Ne])=>Ze-Ne)},[a]),pe=p.useMemo(()=>{var Ze;const B=new Map;for(const[Ne,Me]of ue)B.set(Ne,dm(((Ze=Me[0])==null?void 0:Ze.tag)??""));return B},[ue]),{major:ve,minor:Te}=p.useMemo(()=>sx(K),[K]),[Ee,De]=p.useState(!1);if(!u||a.length===0)return v.jsxs("div",{className:`h-full border-t bg-[#0a0a0b] flex flex-col select-none transition-colors duration-150 ${Ee?"border-studio-accent/50 bg-studio-accent/[0.03]":"border-neutral-800/50"}`,onDragOver:B=>{B.preventDefault(),De(!0)},onDragLeave:()=>De(!1),onDrop:B=>{B.preventDefault(),De(!1),l&&B.dataTransfer.files.length>0&&l(Array.from(B.dataTransfer.files))},children:[v.jsx("div",{className:"flex-shrink-0 border-b border-neutral-800/40 flex items-end relative",style:{height:Zl,paddingLeft:Vt},children:[0,10,20,30,40,50].map(B=>v.jsxs("div",{className:"flex flex-col items-center",style:{position:"absolute",left:Vt+B*14},children:[v.jsx("span",{className:"text-[9px] text-neutral-600 font-mono tabular-nums leading-none mb-0.5",children:`${Math.floor(B/60)}:${(B%60).toString().padStart(2,"0")}`}),v.jsx("div",{className:"w-px h-[5px] bg-neutral-700/40"})]},B))}),v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsx("div",{className:`flex items-center gap-3 px-6 py-3 border border-dashed rounded-lg transition-colors duration-150 ${Ee?"border-studio-accent/60 bg-studio-accent/[0.06]":"border-neutral-700/50"}`,children:Ee?v.jsxs(v.Fragment,{children:[v.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:[v.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),v.jsx("span",{className:"text-[13px] text-studio-accent",children:"Drop media files to import"})]}):v.jsxs(v.Fragment,{children:[v.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:[v.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2"}),v.jsx("path",{d:"M7 2v20"}),v.jsx("path",{d:"M17 2v20"}),v.jsx("path",{d:"M2 7h20"}),v.jsx("path",{d:"M2 17h20"})]}),v.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 ht=Zl+ue.length*cm;return v.jsxs("div",{ref:re,"aria-label":"Timeline",className:`border-t border-neutral-800/50 bg-[#0a0a0b] select-none h-full overflow-hidden ${P?"cursor-crosshair":"cursor-default"}`,style:{touchAction:"pan-x pan-y"},children:[v.jsx("div",{ref:b,className:`${O==="fit"?"overflow-x-hidden":"overflow-x-auto"} overflow-y-auto h-full`,onPointerDown:se,onPointerMove:fe,onPointerUp:$e,onLostPointerCapture:$e,children:v.jsxs("div",{className:"relative",style:{height:ht,width:Vt+I},children:[v.jsx("svg",{className:"absolute pointer-events-none",style:{left:Vt,width:I},height:ht,children:ve.map(B=>{const Ze=B*ce;return v.jsx("line",{x1:Ze,y1:Zl,x2:Ze,y2:ht,stroke:"rgba(255,255,255,0.035)",strokeWidth:"1"},`g-${B}`)})}),v.jsxs("div",{className:"relative border-b border-neutral-800/40 overflow-hidden",style:{height:Zl,marginLeft:Vt,width:I},children:[P&&!E&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none z-10",children:v.jsx("span",{className:"text-[9px] text-studio-accent/60 font-medium",children:"Drag to select range"})}),Te.map(B=>v.jsx("div",{className:"absolute bottom-0",style:{left:B*ce},children:v.jsx("div",{className:"w-px h-[3px] bg-neutral-700/40"})},`m-${B}`)),ve.map(B=>v.jsxs("div",{className:"absolute bottom-0 flex flex-col items-center",style:{left:B*ce},children:[v.jsx("span",{className:"text-[9px] text-neutral-500 font-mono tabular-nums leading-none mb-0.5",children:hr(B)}),v.jsx("div",{className:"w-px h-[5px] bg-neutral-600/60"})]},`M-${B}`))]}),ue.map(([B,Ze])=>{const Ne=pe.get(B)??R2;return v.jsxs("div",{className:"relative flex",style:{height:cm,backgroundColor:Ne.row},children:[v.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:Vt},children:v.jsx("div",{className:"flex items-center justify-center",style:{width:20,height:20,borderRadius:6,backgroundColor:Ne.gutter,border:"1px solid rgba(255,255,255,0.35)",color:"#fff"},children:Ne.icon})}),v.jsx("div",{style:{width:I},className:"relative",children:Ze.map((Me,Ke)=>{const Fe=dm(Me.tag),st=f===Me.id,vt=!!Me.compositionSrc,St=`${Me.id}-${Ke}`,er=Q===St,Nn=!!n,tr=Math.max(Me.duration*ce,4);return v.jsxs(Jy,{el:Me,pps:ce,clipY:tx,isSelected:st,isHovered:er,hasCustomContent:Nn,style:Fe,isComposition:vt,onHoverStart:()=>C(St),onHoverEnd:()=>C(null),onClick:_n=>{_n.stopPropagation(),m(st?null:Me.id)},onDoubleClick:_n=>{_n.stopPropagation(),vt&&t&&t(Me)},children:[i==null?void 0:i(Me),v.jsx("div",{className:n?"absolute inset-0 overflow-hidden rounded-[4px]":"flex items-center overflow-hidden flex-1 min-w-0",children:(n==null?void 0:n(Me,Fe))??v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-[10px] font-semibold truncate px-1.5 leading-none",style:{color:Fe.label},children:Me.id||Me.tag}),tr>60&&v.jsxs("span",{className:"text-[9px] font-mono tabular-nums pr-1.5 ml-auto flex-shrink-0 leading-none opacity-70",style:{color:Fe.label},children:[Me.duration.toFixed(1),"s"]})]})})]},St)})})]},B)}),E&&v.jsx("div",{className:"absolute pointer-events-none",style:{left:Vt+Math.min(E.start,E.end)*ce,width:Math.abs(E.end-E.start)*ce,top:Zl,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}}),v.jsxs("div",{ref:S,className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${Vt}px`,zIndex:100},children:[v.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)"}}),v.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:v.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&&!E&&v.jsx("div",{className:"absolute bottom-2 right-3 pointer-events-none z-20",children:v.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md bg-neutral-800/50 border border-neutral-700/20",children:[v.jsx("kbd",{className:"text-[9px] font-mono text-neutral-500 bg-neutral-700/40 px-1 py-0.5 rounded",children:"Shift"}),v.jsx("span",{className:"text-[9px] text-neutral-600",children:"+ drag to edit range"})]})}),Y&&E&&v.jsx(ex,{rangeStart:E.start,rangeEnd:E.end,anchorX:E.anchorX,anchorY:E.anchorY,onClose:()=>{le(!1),R(null)}})]})}),pm=66,mm=6,ox=p.memo(function({videoSrc:e,label:t,labelColor:n,duration:i=5}){const[l,a]=p.useState(0),[c,u]=p.useState(!1),[f,m]=p.useState([]),[O,y]=p.useState(16/9),S=p.useRef(null),w=p.useRef(null),b=p.useRef(!1),Q=p.useCallback(P=>{var _,E,R;if((_=S.current)==null||_.disconnect(),(E=w.current)==null||E.disconnect(),!P)return;const Z=((R=P.parentElement)==null?void 0:R.clientWidth)||P.clientWidth;a(Z),S.current=new IntersectionObserver(([Y])=>{var le;Y.isIntersecting&&(u(!0),(le=S.current)==null||le.disconnect())},{rootMargin:"200px"}),S.current.observe(P);const X=P.parentElement||P;w.current=new ResizeObserver(([Y])=>{a(Y.contentRect.width)}),w.current.observe(X)},[]);Ft(()=>()=>{var P,Z;(P=S.current)==null||P.disconnect(),(Z=w.current)==null||Z.disconnect()}),p.useEffect(()=>{if(!c||b.current)return;b.current=!0;const P=document.createElement("video");P.crossOrigin="anonymous",P.muted=!0,P.preload="auto";const Z=document.createElement("canvas"),X=Z.getContext("2d");if(!X){b.current=!1;return}const _=[],E=Math.min(.4,i*.05);for(let J=0;J<mm;J++){const z=J/(mm-1)*i;_.push(Math.max(z,E))}let R=0,Y=!1;const le=()=>{if(Y||R>=_.length){Y||(P.src="",P.load());return}P.currentTime=_[R]};return P.addEventListener("loadedmetadata",()=>{if(P.videoWidth>0&&P.videoHeight>0){y(P.videoWidth/P.videoHeight);const J=pm*2,z=Math.round(J*(P.videoWidth/P.videoHeight));Z.width=z,Z.height=J}le()}),P.addEventListener("seeked",()=>{if(Y)return;X.drawImage(P,0,0,Z.width,Z.height);const J=Z.toDataURL("image/jpeg",.6);m(z=>[...z,J]),R++,le()}),P.addEventListener("error",()=>{}),P.src=e,P.load(),()=>{Y=!0,b.current=!1,m([]),P.src="",P.load()}},[c,e,i]);const C=Math.round(pm*O),j=l>0?Math.max(1,Math.ceil(l/C)):1;return v.jsxs("div",{ref:Q,className:"absolute inset-0 overflow-hidden",children:[c&&f.length>0&&v.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:j}).map((P,Z)=>{const X=f[Z%f.length];return v.jsx("div",{className:"flex-shrink-0 h-full relative overflow-hidden bg-neutral-900",style:{width:C},children:v.jsx("img",{src:X,alt:"",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"})},Z)})}),c&&f.length===0&&v.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%)"}}),v.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:v.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})})]})}),H0=p.memo(function({previewUrl:e,label:t,labelColor:n,seekTime:i=2,duration:l=5}){const a=e.replace("/preview/comp/","/thumbnail/").replace(/\/preview$/,"/thumbnail/index.html"),c=i+l/2,u=`${a}?t=${c.toFixed(2)}`;return v.jsxs("div",{className:"absolute inset-0 overflow-hidden bg-neutral-950",children:[v.jsx("img",{src:u,alt:"",draggable:!1,loading:"lazy",onLoad:f=>{f.target.style.opacity="1"},className:"absolute inset-0 w-full h-full object-cover",style:{opacity:0,transition:"opacity 200ms ease-out"}}),v.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:v.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})})]})});function Om(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 gm(r,e){const t=r.querySelector("[data-composition-id]"),n=r.querySelectorAll("[data-start]"),i=[];let l=0;return n.forEach(a=>{var j;if(a===t)return;const c=a,u=c.getAttribute("data-start");if(u==null)return;const f=parseFloat(u);if(isNaN(f))return;const m=c.tagName.toLowerCase();let O=0;const y=c.getAttribute("data-duration");y!=null&&(O=parseFloat(y)),(isNaN(O)||O<=0)&&(O=Math.max(0,e-f));const S=c.getAttribute("data-track-index"),w=S!=null?parseInt(S,10):l++,b={id:c.id||((j=c.className)==null?void 0:j.split(" ")[0])||m,tag:m,start:f,duration:O,track:isNaN(w)?0:w};if(m==="video"||m==="audio"||m==="img"){const P=c.getAttribute("src");P&&(b.src=P);const Z=c.getAttribute("data-media-start");Z&&(b.playbackStart=parseFloat(Z));const X=c.getAttribute("data-volume");X&&(b.volume=parseFloat(X))}const Q=c.getAttribute("data-composition-src")||c.getAttribute("data-composition-file"),C=c.getAttribute("data-composition-id");if(Q)b.compositionSrc=Q;else if(C&&C!==(t==null?void 0:t.getAttribute("data-composition-id"))){const P=c.querySelector("video[src]");P&&(b.src=P.getAttribute("src")||void 0,b.tag="video")}i.push(b)}),i}function ax(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 cx(r){const e=/data-composition-id=["']([^"']+)["']/gi,t=new Set,n=Array.from(r.querySelectorAll("style, script"));for(const a of n){const c=a.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 a of l){const c=a.getAttribute("data-composition-id");c&&i.add(c)}for(const a of t){if(a==="root"||i.has(a))continue;const c=r.getElementById(`${a}-layer`)||r.getElementById(`${a}-comp`)||r.getElementById(a);c&&(c.getAttribute("data-composition-id")||c.setAttribute("data-composition-id",a))}}function ym(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 ux(){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:a,setDuration:c,setTimelineReady:u,setElements:f}=Re.getState(),m=p.useCallback(()=>{var z,U;try{const re=r.current,K=re==null?void 0:re.contentWindow;if(!K)return null;if(K.__player&&typeof K.__player.play=="function")return K.__player;if(K.__timeline)return Om(K.__timeline);if(K.__timelines){const ae=Object.keys(K.__timelines);if(ae.length>0){const ce=(U=(z=re==null?void 0:re.contentDocument)==null?void 0:z.querySelector("[data-composition-id]"))==null?void 0:U.getAttribute("data-composition-id"),I=ce&&ce in K.__timelines?ce:ae[ae.length-1];return Om(K.__timelines[I])}}return null}catch(re){return console.warn("[useTimelinePlayer] Could not get playback adapter (cross-origin)",re),null}},[]),O=p.useCallback(()=>{const z=()=>{const U=m();if(U){const re=U.getTime(),K=U.getDuration();if(Bl.notify(re),re>=K&&!U.isPlaying()){a(re),l(!1),cancelAnimationFrame(e.current);return}}e.current=requestAnimationFrame(z)};e.current=requestAnimationFrame(z)},[m,a,l]),y=p.useCallback(()=>{cancelAnimationFrame(e.current)},[]),S=p.useCallback(z=>{var re;const U=r.current;if(U){(re=U.contentWindow)==null||re.postMessage({source:"hf-parent",type:"control",action:"set-playback-rate",playbackRate:z},"*");try{const K=U.contentWindow;if(K!=null&&K.__timelines)for(const ae of Object.values(K.__timelines))ae&&typeof ae.timeScale=="function"&&ae.timeScale(z)}catch(K){console.warn("[useTimelinePlayer] Could not set playback rate (cross-origin)",K)}}},[]),w=p.useCallback(()=>{const z=m();z&&(z.getTime()>=z.getDuration()&&z.seek(0),ym(r.current),S(Re.getState().playbackRate),z.play(),l(!0),O())},[m,l,O,S]),b=p.useCallback(()=>{const z=m();z&&(z.pause(),a(z.getTime()),l(!1),y())},[m,a,l,y]),Q=p.useCallback(()=>{Re.getState().isPlaying?b():w()},[w,b]),C=p.useCallback(z=>{const U=m();U&&(U.seek(z),Bl.notify(z),a(z),y(),Re.getState().isPlaying&&l(!1))},[m,a,l,y]),j=p.useCallback(z=>{if(!z.clips||z.clips.length===0)return;const U=new Set(z.clips.map(F=>F.compositionId).filter(Boolean)),K=z.clips.filter(F=>!F.parentCompositionId||!U.has(F.parentCompositionId)).map(F=>{var L;const $={id:F.id||F.label||F.tagName||"element",tag:F.tagName||F.kind,start:F.start,duration:F.duration,track:F.track};if(F.assetUrl&&($.src=F.assetUrl),F.kind==="composition"&&F.compositionId){let G=F.compositionSrc,se=null;if(!G)try{const fe=(L=r.current)==null?void 0:L.contentDocument;se=(fe==null?void 0:fe.querySelector(`[data-composition-id="${F.compositionId}"]`))??null,G=(se==null?void 0:se.getAttribute("data-composition-src"))??(se==null?void 0:se.getAttribute("data-composition-file"))??null}catch{}if(G)$.compositionSrc=G;else if(se){const fe=se.querySelector("video[src]");fe&&($.src=fe.getAttribute("src")||void 0,$.tag="video")}}return $}),ae=Re.getState().elements,ce=Re.getState().duration,I=z.durationInFrames/30,ee=Number.isFinite(I)&&I<7200?I:0;if(!(ae.length>K.length&&ee<=ce)){if(f(K),K.length>0){const F=Math.max(...K.map(L=>L.start+L.duration)),$=Math.max(ee,F);Number.isFinite($)&&$>ce&&c($)}K.length>0&&u(!0)}},[f,u,c]),P=p.useCallback(()=>{try{const z=r.current,U=z==null?void 0:z.contentDocument,re=z==null?void 0:z.contentWindow;if(!U||!re)return;const K=Re.getState().elements,ae=new Set(K.map(G=>G.id)),ce=U.querySelector("[data-composition-id]"),I=ce==null?void 0:ce.getAttribute("data-composition-id"),ee=U.querySelectorAll("[data-composition-id][data-start]"),F=[];ee.forEach(G=>{var ht,B,Ze,Ne,Me,Ke,Fe,st,vt;const se=G,fe=se.getAttribute("data-composition-id");if(!fe||fe===I||ae.has(se.id)||ae.has(fe))return;const $e=se.getAttribute("data-start")??"0";let ue=parseFloat($e);if(isNaN(ue)){const St=U.getElementById($e)||U.querySelector(`[data-composition-id="${$e}"]`);if(St){const er=St.getAttribute("data-start")??"0";let Nn=parseFloat(er);if(isNaN(Nn)){const Ut=U.getElementById(er)||U.querySelector(`[data-composition-id="${er}"]`),Xr=parseFloat((Ut==null?void 0:Ut.getAttribute("data-start"))??"0")||0,H=Ut==null?void 0:Ut.getAttribute("data-composition-id"),he=parseFloat((Ut==null?void 0:Ut.getAttribute("data-duration"))??"")||(H?((Ze=(B=(ht=re.__timelines)==null?void 0:ht[H])==null?void 0:B.duration)==null?void 0:Ze.call(B))??0:0);Nn=Xr+he}const tr=St.getAttribute("data-composition-id"),_n=parseFloat(St.getAttribute("data-duration")??"")||(tr?((Ke=(Me=(Ne=re.__timelines)==null?void 0:Ne[tr])==null?void 0:Me.duration)==null?void 0:Ke.call(Me))??0:0);ue=Nn+_n}else ue=0}let pe=parseFloat(se.getAttribute("data-duration")??"");if((isNaN(pe)||pe<=0)&&(pe=((vt=(st=(Fe=re.__timelines)==null?void 0:Fe[fe])==null?void 0:st.duration)==null?void 0:vt.call(st))??0),!Number.isFinite(pe)||pe<=0)return;Number.isFinite(ue)||(ue=0);const ve=se.getAttribute("data-track-index"),Te=ve!=null?parseInt(ve,10):0,Ee=se.getAttribute("data-composition-src")||se.getAttribute("data-composition-file"),De={id:se.id||fe,tag:se.tagName.toLowerCase(),start:ue,duration:pe,track:isNaN(Te)?0:Te};if(Ee)De.compositionSrc=Ee;else{const St=se.querySelector("video[src]");St&&(De.src=St.getAttribute("src")||void 0,De.tag="video")}F.push(De)});let $=!1;const L=K.map(G=>{if(G.compositionSrc)return G;const se=U.getElementById(G.id)??U.querySelector(`[data-composition-id="${G.id}"]`);if(!se)return G;const fe=se.getAttribute("data-composition-src")||se.getAttribute("data-composition-file");return fe?($=!0,{...G,compositionSrc:fe}):G});if(F.length>0||$){const G=new Set(L.map(fe=>fe.id)),se=F.filter(fe=>!G.has(fe.id));f([...L,...se]),u(!0)}}catch(z){console.warn("[useTimelinePlayer] enrichMissingCompositions failed",z)}},[f,u]),Z=p.useCallback(()=>{ym(r.current);let z=0;const U=25;t.current&&clearInterval(t.current),t.current=setInterval(()=>{var K;z++;const re=m();if(re&&re.getDuration()>0){clearInterval(t.current),re.pause();const ae=n.current;n.current=null;const ce=ae!=null?Math.min(ae,re.getDuration()):0;re.seek(ce);const I=re.getDuration();Number.isFinite(I)&&I>0&&I<7200&&c(I),a(ce),i.current||u(!0),i.current=!1,l(!1);try{const ee=r.current,F=ee==null?void 0:ee.contentDocument,$=ee==null?void 0:ee.contentWindow;F&&$&&(ax(F,$),cx(F));const L=$==null?void 0:$.__clipManifest;if(L&&L.clips.length>0&&j(L),P(),Re.getState().elements.length===0&&F){const G=gm(F,re.getDuration());G.length>0&&(f(G),u(!0))}if(Re.getState().elements.length===0&&F){const G=F.querySelector("[data-composition-id]"),se=re.getDuration();if(G&&se>0){const fe=G.getAttribute("data-composition-id")||"composition",ue=((ee==null?void 0:ee.src)||"").match(/\/preview\/comp\/(.+?)(?:\?|$)/),pe=ue?decodeURIComponent(ue[1]):void 0;f([{id:fe,tag:((K=G.tagName)==null?void 0:K.toLowerCase())||"div",start:0,duration:se,track:0,compositionSrc:pe}]),u(!0)}}}catch(ee){console.warn("[useTimelinePlayer] Could not read timeline elements from iframe",ee)}return}z>=U&&(clearInterval(t.current),console.warn("Could not find __player, __timeline, or __timelines on iframe after 5s"))},200)},[m,c,a,u,l,j,P]),X=p.useCallback(()=>{const z=m();n.current=z?z.getTime():Re.getState().currentTime??0,i.current=!0,y(),l(!1)},[m,y,l]),_=p.useCallback(()=>{const z=r.current;if(!z)return;X();const U=z.src,re=new URL(U,window.location.origin);re.searchParams.set("_t",String(Date.now())),z.src=re.toString()},[X]),E=p.useRef(Q);E.current=Q;const R=p.useRef(m);R.current=m;const Y=p.useRef(j);Y.current=j;const le=p.useRef(P);le.current=P,Ft(()=>{const z=K=>{K.code==="Space"&&K.target===document.body&&(K.preventDefault(),E.current())},U=K=>{const ae=K.data,ce=r.current;if(!(K.source&&ce&&K.source!==ce.contentWindow)){if((ae==null?void 0:ae.source)==="hf-preview"&&(ae==null?void 0:ae.type)==="state")try{if(Re.getState().elements.length===0){const I=ce==null?void 0:ce.contentWindow,ee=I==null?void 0:I.__clipManifest;ee&&ee.clips.length>0&&Y.current(ee)}le.current()}catch(I){console.warn("[useTimelinePlayer] Could not read clip manifest from iframe",I)}if((ae==null?void 0:ae.source)==="hf-preview"&&(ae==null?void 0:ae.type)==="timeline"&&Array.isArray(ae.clips)){if(Y.current(ae),le.current(),ae.durationInFrames>0&&Number.isFinite(ae.durationInFrames)){const ee=ae.durationInFrames/30,F=Re.getState().duration;ee>F&&Re.getState().setDuration(ee)}if(Re.getState().elements.length===0)try{const I=ce==null?void 0:ce.contentDocument,ee=m();if(I&&ee){const F=gm(I,ee.getDuration());F.length>0&&(f(F),u(!0))}}catch(I){console.warn("[useTimelinePlayer] Could not read timeline elements on navigate (cross-origin)",I)}}}},re=()=>{var K;if(document.hidden&&Re.getState().isPlaying){const ae=(K=R.current)==null?void 0:K.call(R);ae&&(ae.pause(),l(!1),y())}};return window.addEventListener("keydown",z),window.addEventListener("message",U),document.addEventListener("visibilitychange",re),()=>{window.removeEventListener("keydown",z),window.removeEventListener("message",U),document.removeEventListener("visibilitychange",re),y(),t.current&&clearInterval(t.current)}});const J=p.useCallback(()=>{y(),t.current&&clearInterval(t.current),Re.getState().reset()},[y]);return{iframeRef:r,play:w,pause:b,togglePlay:Q,seek:C,onIframeLoad:Z,refreshPlayer:_,saveSeekPosition:X,resetPlayer:J}}const hx=p.memo(function({projectId:e,iframeRef:t,onIframeLoad:n,portrait:i,directUrl:l,refreshKey:a}){const c=`${l??e}_${a??0}`;return v.jsx("div",{className:"flex flex-col h-full min-h-0",children:v.jsx("div",{className:"flex-1 flex items-center justify-center p-2 overflow-hidden min-h-0",children:v.jsx(j2,{ref:t,projectId:l?void 0:e,directUrl:l,onLoad:n,portrait:i},c)})})}),fx=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"}))]]),dx=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"}))]]),px=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"}))]]),mx=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"}))]]),Ox=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"}))]]),gx=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"}))]]),yx=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"}))]]),xx=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"}))]]),vx=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"}))]]),Sx=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"}))]]),wx=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"}))]]),kx=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"}))]]),bx=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"}))]]),Qx=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"}))]]),$x=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"}))]]),Px=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"}))]]),Ax=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"}))]]),Cx=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"}))]]),Zx=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"}))]]),Tx=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"}))]]),Mx=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"}))]]),Ex=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"}))]]),jx=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"}))]]),Vx=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"}))]]),Rx=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"}))]]),Lx=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"}))]]),Xx=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"}))]]),Nx=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"}))]]),_x=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"}))]]),zx=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"}))]]),Dx=p.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Ue=p.forwardRef((r,e)=>{const{alt:t,color:n,size:i,weight:l,mirrored:a,children:c,weights:u,...f}=r,{color:m="currentColor",size:O,weight:y="regular",mirrored:S=!1,...w}=p.useContext(Dx);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:a||S?"scale(-1, 1)":void 0,...w,...f},!!t&&p.createElement("title",null,t),c,u.get(l??y))});Ue.displayName="IconBase";const L2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:fx}));L2.displayName="ArrowLeftIcon";const Wx=L2,X2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:dx}));X2.displayName="CaretDownIcon";const Hx=X2,lc=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:px}));lc.displayName="CaretRightIcon";const N2=lc,_2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:mx}));_2.displayName="CheckCircleIcon";const z2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Ox}));z2.displayName="CopyIcon";const Ix=z2,D2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:gx}));D2.displayName="FileIcon";const Yx=D2,W2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:yx}));W2.displayName="FileCodeIcon";const Fx=W2,H2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:xx}));H2.displayName="FileCssIcon";const Bx=H2,I2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:vx}));I2.displayName="FileHtmlIcon";const qx=I2,Y2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Sx}));Y2.displayName="FileJpgIcon";const Ux=Y2,F2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:wx}));F2.displayName="FileJsIcon";const Gx=F2,B2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:kx}));B2.displayName="FileJsxIcon";const Kx=B2,q2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:bx}));q2.displayName="FileMdIcon";const Jx=q2,U2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Qx}));U2.displayName="FilePlusIcon";const xm=U2,G2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:$x}));G2.displayName="FilePngIcon";const e3=G2,K2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Px}));K2.displayName="FileSvgIcon";const t3=K2,J2=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Ax}));J2.displayName="FileTsIcon";const n3=J2,eg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Cx}));eg.displayName="FileTsxIcon";const r3=eg,tg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Zx}));tg.displayName="FileTxtIcon";const i3=tg,ng=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Tx}));ng.displayName="FileVideoIcon";const s3=ng,rg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Mx}));rg.displayName="FolderSimpleIcon";const l3=rg,ig=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Ex}));ig.displayName="FolderSimplePlusIcon";const sg=ig,lg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:jx}));lg.displayName="ImageIcon";const o3=lg,og=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Vx}));og.displayName="PencilSimpleIcon";const a3=og,ag=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Rx}));ag.displayName="PlusIcon";const c3=ag,cg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Lx}));cg.displayName="TextAaIcon";const u3=cg,ug=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Xx}));ug.displayName="TrashIcon";const h3=ug,Ba=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:Nx}));Ba.displayName="WarningIcon";const hg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:_x}));hg.displayName="WaveformIcon";const f3=hg,fg=p.forwardRef((r,e)=>p.createElement(Ue,{ref:e,...r,weights:zx}));fg.displayName="XIcon";function d3({stack:r,onNavigate:e}){return r.length<=1?null:v.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:[v.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:v.jsx(Wx,{size:12,weight:"bold"})}),r.map((t,n)=>{const i=n===r.length-1;return v.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&v.jsx(N2,{size:10,className:"text-neutral-600 flex-shrink-0"}),i?v.jsx("span",{className:"text-xs text-neutral-200 font-medium",children:t.label}):v.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 p3=100,m3=220,O3=120,g3=p.memo(function({projectId:e,portrait:t,previewOverlay:n,timelineToolbar:i,timelineFooter:l,refreshKey:a,activeCompositionPath:c,onIframeRef:u,onCompositionChange:f,renderClipContent:m,onCompIdToSrcChange:O,timelineVisible:y,onToggleTimeline:S}){const{iframeRef:w,togglePlay:b,seek:Q,onIframeLoad:C,saveSeekPosition:j}=ux(),P=p.useRef(e);P.current!==e&&(P.current=e,Re.getState().reset());const Z=p.useRef(a);a!==Z.current&&(Z.current=a,j());const X=p.useCallback(()=>{C(),u==null||u(w.current)},[C,w,u]),[_,E]=p.useState(new Map);Ft(()=>{fetch(`/api/projects/${e}/files/index.html`).then(ue=>ue.json()).then(ue=>{const pe=ue.content||"",ve=new Map,Te=/data-composition-id=["']([^"']+)["'][^>]*data-composition-src=["']([^"']+)["']|data-composition-src=["']([^"']+)["'][^>]*data-composition-id=["']([^"']+)["']/g;let Ee;for(;(Ee=Te.exec(pe))!==null;){const De=Ee[1]||Ee[4],ht=Ee[2]||Ee[3];De&&ht&&ve.set(De,ht)}E(ve),O==null||O(ve)}).catch(()=>{})});const R=p.useRef(_);R.current=_,p.useEffect(()=>{if(_.size===0)return;const ue=Te=>{const Ee=R.current;if(Ee.size===0)return null;let De=!1;const ht=Te.map(B=>{if(B.compositionSrc)return B;const Ze=Ee.get(B.id)??Ee.get(B.id.replace(/-(host|comp|layer)$/,""));return Ze?(De=!0,{...B,compositionSrc:Ze}):B});return De?ht:null},pe=ue(Re.getState().elements);pe&&Re.getState().setElements(pe);let ve=!1;return Re.subscribe((Te,Ee)=>{if(ve||Te.elements===Ee.elements||Te.elements.length===0||Te.elements.every(ht=>ht.compositionSrc))return;ve=!0;const De=ue(Te.elements);De&&Te.setElements(De),ve=!1})},[_]);const[Y,le]=p.useState([{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`}]),J=p.useRef(f);J.current=f;const z=p.useCallback(ue=>{le(pe=>{var Ee;const ve=typeof ue=="function"?ue(pe):ue,Te=(Ee=ve[ve.length-1])==null?void 0:Ee.id;return queueMicrotask(()=>{var De;return(De=J.current)==null?void 0:De.call(J,Te==="master"?null:Te)}),ve})},[]),[U,re]=p.useState(m3),K=p.useRef(!1),ae=p.useRef(null),ce=Y[Y.length-1],I=Y.length>1?ce.previewUrl:void 0,ee=p.useRef(0),F=w,$=p.useCallback(ue=>{var Te;if(!ue.compositionSrc)return;ee.current=Re.getState().currentTime,j();const pe=ue.id;let ve=_.get(pe);if(!ve)try{const Ee=(Te=F.current)==null?void 0:Te.contentDocument;if(Ee){const De=Ee.querySelector(`[data-composition-id="${pe}"][data-composition-src]`);De&&(ve=De.getAttribute("data-composition-src")||void 0)}}catch{}if(!ve){const Ee=ue.compositionSrc,De=Ee.match(/compositions\/.*\.html/);ve=De?De[0]:Ee}Re.getState().setElements([]),z(Ee=>{var Ze;if(Ee[Ee.length-1].id===ve&&Ee.length>1)return Ee.slice(0,-1);const ht=((Ze=ve.split("/").pop())==null?void 0:Ze.replace(/\.html$/,""))||ve,B=`/api/projects/${e}/preview/comp/${ve}`;return[...Ee,{id:ve,label:ht,previewUrl:B}]})},[e,_]),L=p.useCallback(ue=>{ue===0&&ee.current>0&&Re.getState().setCurrentTime(ee.current),j(),Re.getState().setElements([]),z(pe=>pe.slice(0,ue+1))},[]);p.useEffect(()=>{if(c==="index.html")Re.getState().setElements([]),z(ue=>ue.length>1?[ue[0]]:ue);else if(c&&c.startsWith("compositions/")){const ue=c.replace(/^compositions\//,"").replace(/\.html$/,""),pe=`/api/projects/${e}/preview/comp/${c}`;Re.getState().setElements([]),z(ve=>{var Te;return((Te=ve[ve.length-1])==null?void 0:Te.id)===c?ve:[{id:"master",label:"Master",previewUrl:`/api/projects/${e}/preview`},{id:c,label:ue,previewUrl:pe}]})}else c||Re.getState().setElements([])},[c,e,z]);const G=p.useCallback(ue=>{ue.preventDefault(),K.current=!0,ue.target.setPointerCapture(ue.pointerId)},[]),se=p.useCallback(ue=>{if(!K.current||!ae.current)return;const pe=ae.current.getBoundingClientRect(),ve=ue.clientY-pe.top,Te=pe.height,Ee=Math.max(p3,Math.min(Te-O3,Te-ve));re(Ee)},[]),fe=p.useCallback(()=>{K.current=!1},[]),$e=p.useCallback(ue=>{ue.key==="Escape"&&Y.length>1&&z(pe=>pe.slice(0,-1))},[Y.length]);return v.jsxs("div",{ref:ae,className:"flex flex-col h-full min-h-0 bg-neutral-950",onKeyDown:$e,tabIndex:-1,children:[v.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[v.jsxs("div",{className:"flex-1 min-h-0 relative",children:[v.jsx(hx,{projectId:e,iframeRef:w,onIframeLoad:X,portrait:t,directUrl:I,refreshKey:a}),n]}),v.jsxs("div",{className:"bg-neutral-950 border-t border-neutral-800/50 flex-shrink-0",children:[Y.length>1&&v.jsx(d3,{stack:Y,onNavigate:L}),v.jsx(Ky,{onTogglePlay:b,onSeek:Q,timelineVisible:y??!0,onToggleTimeline:S})]})]}),(y??!0)&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"h-1 flex-shrink-0 bg-neutral-800 hover:bg-studio-accent cursor-row-resize transition-colors active:bg-studio-accent/80 z-10",style:{touchAction:"none"},onPointerDown:G,onPointerMove:se,onPointerUp:fe}),v.jsxs("div",{className:"flex flex-col flex-shrink-0",style:{height:U},children:[v.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto bg-neutral-950",onDoubleClick:ue=>{ue.target.closest("[data-clip]")||Y.length>1&&z(pe=>pe.slice(0,-1))},children:[i,v.jsx(lx,{onSeek:Q,onDrillDown:$,renderClipContent:m})]}),l&&v.jsx("div",{className:"flex-shrink-0",children:l})]})]})]})});let Th=[],dg=[];(()=>{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?dg:Th).push(t=t+r[e])})();function y3(r){if(r<768)return!1;for(let e=0,t=Th.length;;){let n=e+t>>1;if(r<Th[n])t=n;else if(r>=dg[n])e=n+1;else return!0;if(e==t)return!1}}function vm(r){return r>=127462&&r<=127487}const Sm=8205;function x3(r,e,t=!0,n=!0){return(t?pg:v3)(r,e,n)}function pg(r,e,t){if(e==r.length)return e;e&&mg(r.charCodeAt(e))&&Og(r.charCodeAt(e-1))&&e--;let n=I0(r,e);for(e+=wm(n);e<r.length;){let i=I0(r,e);if(n==Sm||i==Sm||t&&y3(i))e+=wm(i),n=i;else if(vm(i)){let l=0,a=e-2;for(;a>=0&&vm(I0(r,a));)l++,a-=2;if(l%2==0)break;e+=2}else break}return e}function v3(r,e,t){for(;e>0;){let n=pg(r,e-2,t);if(n<e)return n;e--}return 0}function I0(r,e){let t=r.charCodeAt(e);if(!Og(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return mg(n)?(t-55296<<10)+(n-56320)+65536:t}function mg(r){return r>=56320&&r<57344}function Og(r){return r>=55296&&r<56320}function wm(r){return r<65536?1:2}class We{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]=Zs(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),fr.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]=Zs(this,e,t);let n=[];return this.decompose(e,t,n,0),fr.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 Dl(this),l=new Dl(e);for(let a=t,c=t;;){if(i.next(a),l.next(a),a=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 Dl(this,e)}iterRange(e,t=this.length){return new gg(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 yg(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]?We.empty:e.length<=32?new gt(e):fr.from(gt.split(e,[]))}}class gt extends We{constructor(e,t=S3(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 a=this.text[l],c=i+a.length;if((t?n:c)>=e)return new w3(i,c,n,a);i=c+1,n++}}decompose(e,t,n,i){let l=e<=0&&t>=this.length?this:new gt(km(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let a=n.pop(),c=qa(l.text,a.text.slice(),0,l.length);if(c.length<=32)n.push(new gt(c,a.length+l.length));else{let u=c.length>>1;n.push(new gt(c.slice(0,u)),new gt(c.slice(u)))}}else n.push(l)}replace(e,t,n){if(!(n instanceof gt))return super.replace(e,t,n);[e,t]=Zs(this,e,t);let i=qa(this.text,qa(n.text,km(this.text,0,e)),t),l=this.length+n.length-(t-e);return i.length<=32?new gt(i,l):fr.from(gt.split(i,[]),l)}sliceString(e,t=this.length,n=`
|
|
55
|
-
`){[e,t]=Zs(this,e,t);let i="";for(let l=0,a=0;l<=t&&a<this.text.length;a++){let c=this.text[a],u=l+c.length;l>e&&a&&(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 gt(n,i)),n=[],i=-1);return i>-1&&t.push(new gt(n,i)),t}}class fr extends We{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 a=this.children[l],c=i+a.length,u=n+a.lines-1;if((t?u:c)>=e)return a.lineInner(e,t,n,i);i=c+1,n=u+1}}decompose(e,t,n,i){for(let l=0,a=0;a<=t&&l<this.children.length;l++){let c=this.children[l],u=a+c.length;if(e<=u&&t>=a){let f=i&((a<=e?1:0)|(u>=t?2:0));a>=e&&u<=t&&!f?n.push(c):c.decompose(e-a,t-a,n,f)}a=u+1}}replace(e,t,n){if([e,t]=Zs(this,e,t),n.lines<this.lines)for(let i=0,l=0;i<this.children.length;i++){let a=this.children[i],c=l+a.length;if(e>=l&&t<=c){let u=a.replace(e-l,t-l,n),f=this.lines-a.lines+u.lines;if(u.lines<f>>4&&u.lines>f>>6){let m=this.children.slice();return m[i]=u,new fr(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=`
|
|
56
|
-
`){[e,t]=Zs(this,e,t);let i="";for(let l=0,a=0;l<this.children.length&&a<=t;l++){let c=this.children[l],u=a+c.length;a>e&&l&&(i+=n),e<u&&t>a&&(i+=c.sliceString(e-a,t-a,n)),a=u+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof fr))return 0;let n=0,[i,l,a,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==a||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 gt(S,t)}let i=Math.max(32,n>>5),l=i<<1,a=i>>1,c=[],u=0,f=-1,m=[];function O(S){let w;if(S.lines>l&&S instanceof fr)for(let b of S.children)O(b);else S.lines>a&&(u>a||!u)?(y(),c.push(S)):S instanceof gt&&u&&(w=m[m.length-1])instanceof gt&&S.lines+w.lines<=32?(u+=S.lines,f+=S.length+1,m[m.length-1]=new gt(w.text.concat(S.text),w.length+1+S.length)):(u+S.lines>i&&y(),u+=S.lines,f+=S.length+1,m.push(S))}function y(){u!=0&&(c.push(m.length==1?m[0]:fr.from(m,f)),f=-1,u=m.length=0)}for(let S of e)O(S);return y(),c.length==1?c[0]:new fr(c,t)}}We.empty=new gt([""],0);function S3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function qa(r,e,t=0,n=1e9){for(let i=0,l=0,a=!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)),a?(e[e.length-1]+=c,a=!1):e.push(c)),i=u+1}return e}function km(r,e,t){return qa(r,[""],e,t)}class Dl{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 gt?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],a=l>>1,c=i instanceof gt?i.text.length:i.children.length;if(a==(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=`
|
|
57
|
-
`,this;e--}else if(i instanceof gt){let u=i.text[a+(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[a+(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 gt?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 gg{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Dl(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 yg{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"&&(We.prototype[Symbol.iterator]=function(){return this.iter()},Dl.prototype[Symbol.iterator]=gg.prototype[Symbol.iterator]=yg.prototype[Symbol.iterator]=function(){return this});class w3{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 Zs(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function Mt(r,e,t=!0,n=!0){return x3(r,e,t,n)}function k3(r){return r>=56320&&r<57344}function b3(r){return r>=55296&&r<56320}function Wi(r,e){let t=r.charCodeAt(e);if(!b3(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return k3(n)?(t-55296<<10)+(n-56320)+65536:t}function xg(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function ao(r){return r<65536?1:2}const Mh=/\r\n?|\n/;var Yt=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(Yt||(Yt={}));class xr{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++],a=this.sections[t++];a<0?(e(n,i,l),i+=l):i+=a,n+=l}}iterChangedRanges(e,t=!1){Eh(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 xr(e)}composeDesc(e){return this.empty?e:e.empty?this:vg(this,e)}mapDesc(e,t=!1){return e.empty?this:jh(this,e,t)}mapPos(e,t=-1,n=Yt.Simple){let i=0,l=0;for(let a=0;a<this.sections.length;){let c=this.sections[a++],u=this.sections[a++],f=i+c;if(u<0){if(f>e)return l+(e-i);l+=c}else{if(n!=Yt.Simple&&f>=e&&(n==Yt.TrackDel&&i<e&&f>e||n==Yt.TrackBefore&&i<e||n==Yt.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++],a=this.sections[n++],c=i+l;if(a>=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 xr(e)}static create(e){return new xr(e)}}class $t extends xr{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 Eh(this,(t,n,i,l,a)=>e=e.replace(i,i+(n-t),a),!1),e}mapDesc(e,t=!1){return jh(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,l=0;i<t.length;i+=2){let a=t[i],c=t[i+1];if(c>=0){t[i]=c,t[i+1]=a;let u=i>>1;for(;n.length<u;)n.push(We.empty);n.push(a?e.slice(l,l+a):We.empty)}l+=a}return new $t(t,n)}compose(e){return this.empty?e:e.empty?this:vg(this,e,!0)}map(e,t=!1){return e.empty?this:jh(this,e,t,!0)}iterChanges(e,t=!1){Eh(this,e,t)}get desc(){return xr.create(this.sections)}filter(e){let t=[],n=[],i=[],l=new ql(this);e:for(let a=0,c=0;;){let u=a==e.length?1e9:e[a++];for(;c<u||c==u&&l.len==0;){if(l.done)break e;let m=Math.min(l.len,u-c);It(i,m,-1);let O=l.ins==-1?-1:l.off==0?l.ins:0;It(t,m,O),O>0&&ci(n,t,l.text),l.forward(m),c+=m}let f=e[a++];for(;c<f;){if(l.done)break e;let m=Math.min(l.len,f-c);It(t,m,-1),It(i,m,l.ins==-1?-1:l.off==0?l.ins:0),l.forward(m),c+=m}}return{changes:new $t(t,n),filtered:xr.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=[],a=0,c=null;function u(m=!1){if(!m&&!i.length)return;a<t&&It(i,t-a,-1);let O=new $t(i,l);c=c?c.compose(O.map(c)):O,i=[],l=[],a=0}function f(m){if(Array.isArray(m))for(let O of m)f(O);else if(m instanceof $t){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:y=O,insert:S}=m;if(O>y||O<0||y>t)throw new RangeError(`Invalid change range ${O} to ${y} (in doc of length ${t})`);let w=S?typeof S=="string"?We.of(S.split(n||Mh)):S:We.empty,b=w.length;if(O==y&&b==0)return;O<a&&u(),O>a&&It(i,O-a,-1),It(i,y-O,b),ci(l,i,w),a=y}}return f(e),u(!c),c}static empty(e){return new $t(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((a,c)=>c&&typeof a!="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(We.empty);n[i]=We.of(l.slice(1)),t.push(l[0],n[i].length)}}}return new $t(t,n)}static createSet(e,t){return new $t(e,t)}}function It(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 ci(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(We.empty);r.push(t)}}function Eh(r,e,t){let n=r.inserted;for(let i=0,l=0,a=0;a<r.sections.length;){let c=r.sections[a++],u=r.sections[a++];if(u<0)i+=c,l+=c;else{let f=i,m=l,O=We.empty;for(;f+=c,m+=u,u&&n&&(O=O.append(n[a-2>>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)c=r.sections[a++],u=r.sections[a++];e(i,f,l,m,O),i=f,l=m}}}function jh(r,e,t,n=!1){let i=[],l=n?[]:null,a=new ql(r),c=new ql(e);for(let u=-1;;){if(a.done&&c.len||c.done&&a.len)throw new Error("Mismatched change set lengths");if(a.ins==-1&&c.ins==-1){let f=Math.min(a.len,c.len);It(i,f,-1),a.forward(f),c.forward(f)}else if(c.ins>=0&&(a.ins<0||u==a.i||a.off==0&&(c.len<a.len||c.len==a.len&&!t))){let f=c.len;for(It(i,c.ins,-1);f;){let m=Math.min(a.len,f);a.ins>=0&&u<a.i&&a.len<=m&&(It(i,0,a.ins),l&&ci(l,i,a.text),u=a.i),a.forward(m),f-=m}c.next()}else if(a.ins>=0){let f=0,m=a.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;It(i,f,u<a.i?a.ins:0),l&&u<a.i&&ci(l,i,a.text),u=a.i,a.forward(a.len-m)}else{if(a.done&&c.done)return l?$t.createSet(i,l):xr.create(i);throw new Error("Mismatched change set lengths")}}}function vg(r,e,t=!1){let n=[],i=t?[]:null,l=new ql(r),a=new ql(e);for(let c=!1;;){if(l.done&&a.done)return i?$t.createSet(n,i):xr.create(n);if(l.ins==0)It(n,l.len,0,c),l.next();else if(a.len==0&&!a.done)It(n,0,a.ins,c),i&&ci(i,n,a.text),a.next();else{if(l.done||a.done)throw new Error("Mismatched change set lengths");{let u=Math.min(l.len2,a.len),f=n.length;if(l.ins==-1){let m=a.ins==-1?-1:a.off?0:a.ins;It(n,u,m,c),i&&m&&ci(i,n,a.text)}else a.ins==-1?(It(n,l.off?0:l.len,u,c),i&&ci(i,n,l.textBit(u))):(It(n,l.off?0:l.len,a.off?0:a.ins,c),i&&!a.off&&ci(i,n,a.text));c=(l.ins>u||a.ins>=0&&a.len>u)&&(c||n.length>f),l.forward2(u),a.forward(u)}}}}class ql{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?We.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?We.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 Ri{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 Ri(n,i,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return q.range(e,t,void 0,void 0,n);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return q.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 q.range(e.anchor,e.head)}static create(e,t,n){return new Ri(e,t,n)}}class q{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:q.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 q([this.main],0)}addRange(e,t=!0){return q.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,q.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 q(e.ranges.map(t=>Ri.fromJSON(t)),e.main)}static single(e,t=e){return new q([q.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 q.normalized(e.slice(),t);n=l.to}return new q(e,t)}static cursor(e,t=0,n,i){return Ri.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 a=(n??16777215)<<6|(i==null?7:Math.min(6,i));return!l&&e!=t&&(l=t<e?1:-1),t<e?Ri.create(t,e,48|a):Ri.create(e,t,(l?l<0?8:16:0)|a)}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],a=e[i-1];if(l.empty?l.from<=a.to:l.from<a.to){let c=a.from,u=Math.max(l.to,a.to);i<=t&&t--,e.splice(--i,2,l.anchor>l.head?q.range(u,c):q.range(c,u))}}return new q(e,t)}}function Sg(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let A1=0;class we{constructor(e,t,n,i,l){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=A1++,this.default=e([]),this.extensions=typeof l=="function"?l(this):l}get reader(){return this}static define(e={}){return new we(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:C1),!!e.static,e.enables)}of(e){return new Ua([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ua(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ua(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function C1(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class Ua{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=A1++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,l=this.id,a=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[a]=n(O),1},update(O,y){if(u&&y.docChanged||f&&(y.docChanged||y.selection)||Vh(O,m)){let S=n(O);if(c?!bm(S,O.values[a],i):!i(S,O.values[a]))return O.values[a]=S,1}return 0},reconfigure:(O,y)=>{let S,w=y.config.address[l];if(w!=null){let b=ac(y,w);if(this.dependencies.every(Q=>Q instanceof we?y.facet(Q)===O.facet(Q):Q instanceof $n?y.field(Q,!1)==O.field(Q,!1):!0)||(c?bm(S=n(O),b,i):i(S=n(O),b)))return O.values[a]=b,0}else S=n(O);return O.values[a]=S,1}}}}function bm(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 Vh(r,e){let t=!1;for(let n of e)Wl(r,n)&1&&(t=!0);return t}function Q3(r,e,t){let n=t.map(u=>r[u.id]),i=t.map(u=>u.type),l=n.filter(u=>!(u&1)),a=r[e.id]>>1;function c(u){let f=[];for(let m=0;m<n.length;m++){let O=ac(u,n[m]);if(i[m]==2)for(let y of O)f.push(y);else f.push(O)}return e.combine(f)}return{create(u){for(let f of n)Wl(u,f);return u.values[a]=c(u),1},update(u,f){if(!Vh(u,l))return 0;let m=c(u);return e.compare(m,u.values[a])?0:(u.values[a]=m,1)},reconfigure(u,f){let m=Vh(u,n),O=f.config.facets[e.id],y=f.facet(e);if(O&&!m&&C1(t,O))return u.values[a]=y,0;let S=c(u);return e.compare(S,y)?(u.values[a]=y,0):(u.values[a]=S,1)}}}const Pa=we.define({static:!0});class $n{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 $n(A1++,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(Pa).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],a=this.updateF(l,i);return this.compareF(l,a)?0:(n.values[t]=a,1)},reconfigure:(n,i)=>{let l=n.facet(Pa),a=i.facet(Pa),c;return(c=l.find(u=>u.field==this))&&c!=a.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,Pa.of({field:this,create:e})]}get extension(){return this}}const Vi={lowest:4,low:3,default:2,high:1,highest:0};function Tl(r){return e=>new wg(e,r)}const co={highest:Tl(Vi.highest),high:Tl(Vi.high),default:Tl(Vi.default),low:Tl(Vi.low),lowest:Tl(Vi.lowest)};class wg{constructor(e,t){this.inner=e,this.prec=t}}class Lc{of(e){return new Rh(this,e)}reconfigure(e){return Lc.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Rh{constructor(e,t){this.compartment=e,this.inner=t}}class oc{constructor(e,t,n,i,l,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=l,this.facets=a,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),a=new Map;for(let y of $3(e,t,a))y instanceof $n?i.push(y):(l[y.facet.id]||(l[y.facet.id]=[])).push(y);let c=Object.create(null),u=[],f=[];for(let y of i)c[y.id]=f.length<<1,f.push(S=>y.slot(S));let m=n==null?void 0:n.config.facets;for(let y in l){let S=l[y],w=S[0].facet,b=m&&m[y]||[];if(S.every(Q=>Q.type==0))if(c[w.id]=u.length<<1|1,C1(b,S))u.push(n.facet(w));else{let Q=w.combine(S.map(C=>C.value));u.push(n&&w.compare(Q,n.facet(w))?n.facet(w):Q)}else{for(let Q of S)Q.type==0?(c[Q.id]=u.length<<1|1,u.push(Q.value)):(c[Q.id]=f.length<<1,f.push(C=>Q.dynamicSlot(C)));c[w.id]=f.length<<1,f.push(Q=>Q3(Q,w,S))}}let O=f.map(y=>y(c));return new oc(e,a,O,c,u,l)}}function $3(r,e,t){let n=[[],[],[],[],[]],i=new Map;function l(a,c){let u=i.get(a);if(u!=null){if(u<=c)return;let f=n[u].indexOf(a);f>-1&&n[u].splice(f,1),a instanceof Rh&&t.delete(a.compartment)}if(i.set(a,c),Array.isArray(a))for(let f of a)l(f,c);else if(a instanceof Rh){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let f=e.get(a.compartment)||a.inner;t.set(a.compartment,f),l(f,c)}else if(a instanceof wg)l(a.inner,a.prec);else if(a instanceof $n)n[c].push(a),a.provides&&l(a.provides,c);else if(a instanceof Ua)n[c].push(a),a.facet.extensions&&l(a.facet.extensions,Vi.default);else{let f=a.extension;if(!f)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);l(f,c)}}return l(r,Vi.default),n.reduce((a,c)=>a.concat(c))}function Wl(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 ac(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const kg=we.define(),Lh=we.define({combine:r=>r.some(e=>e),static:!0}),bg=we.define({combine:r=>r.length?r[0]:void 0,static:!0}),Qg=we.define(),$g=we.define(),Pg=we.define(),Ag=we.define({combine:r=>r.length?r[0]:!1});class Lr{constructor(e,t){this.type=e,this.value=t}static define(){return new P3}}class P3{of(e){return new Lr(this,e)}}class A3{constructor(e){this.map=e}of(e){return new Ye(this,e)}}class Ye{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 Ye(this.type,t)}is(e){return this.type==e}static define(e={}){return new A3(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}}Ye.reconfigure=Ye.define();Ye.appendConfig=Ye.define();class kt{constructor(e,t,n,i,l,a){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=l,this.scrollIntoView=a,this._doc=null,this._state=null,n&&Sg(n,t.newLength),l.some(c=>c.type==kt.time)||(this.annotations=l.concat(kt.time.of(Date.now())))}static create(e,t,n,i,l,a){return new kt(e,t,n,i,l,a)}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(kt.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}kt.time=Lr.define();kt.userEvent=Lr.define();kt.addToHistory=Lr.define();kt.remote=Lr.define();function C3(r,e){let t=[];for(let n=0,i=0;;){let l,a;if(n<r.length&&(i==e.length||e[i]>=r[n]))l=r[n++],a=r[n++];else if(i<e.length)l=e[i++],a=e[i++];else return t;!t.length||t[t.length-1]<l?t.push(l,a):t[t.length-1]<a&&(t[t.length-1]=a)}}function Cg(r,e,t){var n;let i,l,a;return t?(i=e.changes,l=$t.empty(e.changes.length),a=r.changes.compose(e.changes)):(i=e.changes.map(r.changes),l=r.changes.mapDesc(e.changes,!0),a=r.changes.compose(i)),{changes:a,selection:e.selection?e.selection.map(l):(n=r.selection)===null||n===void 0?void 0:n.map(i),effects:Ye.mapEffects(r.effects,i).concat(Ye.mapEffects(e.effects,l)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function Xh(r,e,t){let n=e.selection,i=ks(e.annotations);return e.userEvent&&(i=i.concat(kt.userEvent.of(e.userEvent))),{changes:e.changes instanceof $t?e.changes:$t.of(e.changes||[],t,r.facet(bg)),selection:n&&(n instanceof q?n:q.single(n.anchor,n.head)),effects:ks(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function Zg(r,e,t){let n=Xh(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 a=!!e[l].sequential;n=Cg(n,Xh(r,e[l],a?n.changes.newLength:r.doc.length),a)}let i=kt.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return T3(t?Z3(i):i)}function Z3(r){let e=r.startState,t=!0;for(let i of e.facet(Qg)){let l=i(r);if(l===!1){t=!1;break}Array.isArray(l)&&(t=t===!0?l:C3(t,l))}if(t!==!0){let i,l;if(t===!1)l=r.changes.invertedDesc,i=$t.empty(e.doc.length);else{let a=r.changes.filter(t);i=a.changes,l=a.filtered.mapDesc(a.changes).invertedDesc}r=kt.create(e,i,r.selection&&r.selection.map(l),Ye.mapEffects(r.effects,l),r.annotations,r.scrollIntoView)}let n=e.facet($g);for(let i=n.length-1;i>=0;i--){let l=n[i](r);l instanceof kt?r=l:Array.isArray(l)&&l.length==1&&l[0]instanceof kt?r=l[0]:r=Zg(e,ks(l),!1)}return r}function T3(r){let e=r.startState,t=e.facet(Pg),n=r;for(let i=t.length-1;i>=0;i--){let l=t[i](r);l&&Object.keys(l).length&&(n=Cg(n,Xh(e,l,r.changes.newLength),!0))}return n==r?r:kt.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const M3=[];function ks(r){return r==null?M3:Array.isArray(r)?r:[r]}var ot=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(ot||(ot={}));const E3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Nh;try{Nh=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function j3(r){if(Nh)return Nh.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||E3.test(t)))return!0}return!1}function V3(r){return e=>{if(!/\S/.test(e))return ot.Space;if(j3(e))return ot.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return ot.Word;return ot.Other}}class Ie{constructor(e,t,n,i,l,a){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=l,a&&(a._state=this);for(let c=0;c<this.config.dynamicSlots.length;c++)Wl(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 Wl(this,n),ac(this,n)}update(...e){return Zg(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:i}=t;for(let c of e.effects)c.is(Lc.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(Ye.reconfigure)?(t=null,n=c.value):c.is(Ye.appendConfig)&&(t=null,n=ks(n).concat(c.value));let l;t?l=e.startState.values.slice():(t=oc.resolve(n,i,this),l=new Ie(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(u,f)=>f.reconfigure(u,this),null).values);let a=e.startState.facet(Lh)?e.newSelection:e.newSelection.asSingle();new Ie(t,e.newDoc,a,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:q.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),l=[n.range],a=ks(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 y=0;y<c;y++)l[y]=l[y].map(m);let O=i.mapDesc(f,!0);l.push(u.range.map(O)),i=i.compose(m),a=Ye.mapEffects(a,m).concat(Ye.mapEffects(ks(u.effects),O))}return{changes:i,selection:q.create(l,t.mainIndex),effects:a}}changes(e=[]){return e instanceof $t?e:$t.of(e,this.doc.length,this.facet(Ie.lineSeparator))}toText(e){return We.of(e.split(this.facet(Ie.lineSeparator)||Mh))}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:(Wl(this,t),ac(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 $n&&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 a=n[l],c=e[l];i.push(a.init(u=>a.spec.fromJSON(c,u)))}}return Ie.create({doc:e.doc,selection:q.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=oc.resolve(e.extensions||[],new Map),n=e.doc instanceof We?e.doc:We.of((e.doc||"").split(t.staticFacet(Ie.lineSeparator)||Mh)),i=e.selection?e.selection instanceof q?e.selection:q.single(e.selection.anchor,e.selection.head):q.single(0);return Sg(i,n.length),t.staticFacet(Lh)||(i=i.asSingle()),new Ie(t,n,i,t.dynamicSlots.map(()=>null),(l,a)=>a.create(l),null)}get tabSize(){return this.facet(Ie.tabSize)}get lineBreak(){return this.facet(Ie.lineSeparator)||`
|
|
58
|
-
`}get readOnly(){return this.facet(Ag)}phrase(e,...t){for(let n of this.facet(Ie.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(kg))for(let a of l(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&i.push(a[e]);return i}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return V3(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),l=this.charCategorizer(e),a=e-n,c=e-n;for(;a>0;){let u=Mt(t,a,!1);if(l(t.slice(u,a))!=ot.Word)break;a=u}for(;c<i;){let u=Mt(t,c);if(l(t.slice(c,u))!=ot.Word)break;c=u}return a==c?null:q.range(a+n,c+n)}}Ie.allowMultipleSelections=Lh;Ie.tabSize=we.define({combine:r=>r.length?r[0]:4});Ie.lineSeparator=bg;Ie.readOnly=Ag;Ie.phrases=we.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])}});Ie.languageData=kg;Ie.changeFilter=Qg;Ie.transactionFilter=$g;Ie.transactionExtender=Pg;Lc.reconfigure=Ye.define();function Ds(r,e,t={}){let n={};for(let i of r)for(let l of Object.keys(i)){let a=i[l],c=n[l];if(c===void 0)n[l]=a;else if(!(c===a||a===void 0))if(Object.hasOwnProperty.call(t,l))n[l]=t[l](c,a);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 fi{eq(e){return this==e}range(e,t=e){return _h.create(e,t,this)}}fi.prototype.startSide=fi.prototype.endSide=0;fi.prototype.point=!1;fi.prototype.mapMode=Yt.TrackDel;function Z1(r,e){return r==e||r.constructor==e.constructor&&r.eq(e)}let _h=class Tg{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Tg(e,t,n)}};function zh(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class T1{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 a=i,c=l.length;;){if(a==c)return a;let u=a+c>>1,f=l[u]-e||(n?this.value[u].endSide:this.value[u].startSide)-t;if(u==a)return f>=0?a:c;f>=0?c=u:a=u+1}}between(e,t,n,i){for(let l=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,l);l<a;l++)if(i(this.from[l]+e,this.to[l]+e,this.value[l])===!1)return!1}map(e,t){let n=[],i=[],l=[],a=-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,y,S;if(m==O){let w=t.mapPos(m,f.startSide,f.mapMode);if(w==null||(y=S=w,f.startSide!=f.endSide&&(S=t.mapPos(m,f.endSide),S<y)))continue}else if(y=t.mapPos(m,f.startSide),S=t.mapPos(O,f.endSide),y>S||y==S&&f.startSide>0&&f.endSide<=0)continue;(S-y||f.endSide-f.startSide)<0||(a<0&&(a=y),f.point&&(c=Math.max(c,S-y)),n.push(f),i.push(y-a),l.push(S-a))}return{mapped:n.length?new T1(i,l,n,c):null,pos:a}}}class ze{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 ze(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,a=e.filter;if(t.length==0&&!a)return this;if(n&&(t=t.slice().sort(zh)),this.isEmpty)return t.length?ze.of(t):this;let c=new Mg(this,null,-1).goto(0),u=0,f=[],m=new Ni;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)&&(!a||i>this.chunkEnd(c.chunkIndex)||l<this.chunkPos[c.chunkIndex])&&m.addChunk(this.chunkPos[c.chunkIndex],this.chunk[c.chunkIndex])?c.nextChunk():((!a||i>c.to||l<c.from||a(c.from,c.to,c.value))&&(m.addInner(c.from,c.to,c.value)||f.push(_h.create(c.from,c.to,c.value))),c.next());return m.finishInner(this.nextLayer.isEmpty&&!f.length?ze.empty:this.nextLayer.update({add:f,filter:a,filterFrom:i,filterTo:l}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let a=0;a<this.chunk.length;a++){let c=this.chunkPos[a],u=this.chunk[a],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 ze(n,t,l||ze.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let l=this.chunkPos[i],a=this.chunk[i];if(t>=l&&e<=l+a.length&&a.between(l,e-l,t-l,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ul.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ul.from(e).goto(t)}static compare(e,t,n,i,l=-1){let a=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),c=t.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=l),u=Qm(a,c,n),f=new Ml(a,u,l),m=new Ml(c,u,l);n.iterGaps((O,y,S)=>$m(f,O,m,y,S,i)),n.empty&&n.length==0&&$m(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),a=t.filter(m=>!m.isEmpty&&e.indexOf(m)<0);if(l.length!=a.length)return!1;if(!l.length)return!0;let c=Qm(l,a),u=new Ml(l,c,0).goto(n),f=new Ml(a,c,0).goto(n);for(;;){if(u.to!=f.to||!Dh(u.active,f.active)||u.point&&(!f.point||!Z1(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 a=new Ml(e,null,l).goto(t),c=t,u=a.openStart;for(;;){let f=Math.min(a.to,n);if(a.point){let m=a.activeForPoint(a.to),O=a.pointFrom<t?m.length+1:a.point.startSide<0?m.length:Math.min(m.length,u);i.point(c,f,a.point,m,O,a.pointRank),u=Math.min(a.openEnd(f),m.length)}else f>c&&(i.span(c,f,a.active,u),u=a.openEnd(f));if(a.to>n)return u+(a.point&&a.to>n?1:0);c=a.to,a.next()}}static of(e,t=!1){let n=new Ni;for(let i of e instanceof _h?[e]:t?R3(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return ze.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=ze.empty;i=i.nextLayer)t=new ze(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}ze.empty=new ze([],[],null,-1);function R3(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(zh(e,n)>0)return r.slice().sort(zh);e=n}return r}ze.empty.nextLayer=ze.empty;class Ni{finishChunk(e){this.chunks.push(new T1(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 Ni)).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(ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Qm(r,e,t){let n=new Map;for(let l of r)for(let a=0;a<l.chunk.length;a++)l.chunk[a].maxPoint<=0&&n.set(l.chunk[a],l.chunkPos[a]);let i=new Set;for(let l of e)for(let a=0;a<l.chunk.length;a++){let c=n.get(l.chunk[a]);c!=null&&(t?t.mapPos(c):c)==l.chunkPos[a]&&!(t!=null&&t.touchesRange(c,c+l.chunk[a].length))&&i.add(l.chunk[a])}return i}class Mg{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 Ul{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let l=0;l<e.length;l++)for(let a=e[l];!a.isEmpty;a=a.nextLayer)a.maxPoint>=n&&i.push(new Mg(a,t,n,l));return i.length==1?i[0]:new Ul(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--)Y0(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--)Y0(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(),Y0(this.heap,0)}}}function Y0(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 Ml{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=Ul.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){Aa(this.active,e),Aa(this.activeTo,e),Aa(this.activeRank,e),this.minActive=Pm(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++;Ca(this.active,t,n),Ca(this.activeTo,t,i),Ca(this.activeRank,t,l),e&&Ca(e,t,this.cursor.from),this.minActive=Pm(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&&Aa(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 $m(r,e,t,n,i,l){r.goto(e),t.goto(n);let a=n+i,c=n,u=n-e,f=!!l.boundChange;for(let m=!1;;){let O=r.to+u-t.to,y=O||r.endSide-t.endSide,S=y<0?r.to+u:t.to,w=Math.min(S,a);if(r.point||t.point?(r.point&&t.point&&Z1(r.point,t.point)&&Dh(r.activeForPoint(r.to),t.activeForPoint(t.to))||l.comparePoint(c,w,r.point,t.point),m=!1):(m&&l.boundChange(c),w>c&&!Dh(r.active,t.active)&&l.compareRange(c,w,r.active,t.active),f&&w<a&&(O||r.openEnd(S)!=t.openEnd(S))&&(m=!0)),S>a)break;c=S,y<=0&&r.next(),y>=0&&t.next()}}function Dh(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!Z1(r[t],e[t]))return!1;return!0}function Aa(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function Ca(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function Pm(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 Xc(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=Mt(r,i));return n}function L3(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=Mt(r,i)}return r.length}const Wh="ͼ",Am=typeof Symbol>"u"?"__"+Wh:Symbol.for(Wh),Hh=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Cm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class di{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function l(a,c,u,f){let m=[],O=/^@(\w+)\b/.exec(a[0]),y=O&&O[1]=="keyframes";if(O&&c==null)return u.push(a[0]+";");for(let S in c){let w=c[S];if(/&/.test(S))l(S.split(/,\s*/).map(b=>a.map(Q=>b.replace(/&/,Q))).reduce((b,Q)=>b.concat(Q)),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,y)}else w!=null&&m.push(S.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+w+";")}(m.length||y)&&u.push((n&&!O&&!f?a.map(n):a).join(", ")+" {"+m.join(" ")+"}")}for(let a in e)l(i(a),e[a],this.rules)}getRules(){return this.rules.join(`
|
|
59
|
-
`)}static newName(){let e=Cm[Am]||1;return Cm[Am]=e+1,Wh+e.toString(36)}static mount(e,t,n){let i=e[Hh],l=n&&n.nonce;i?l&&i.setNonce(l):i=new X3(e,l),i.mount(Array.isArray(t)?t:[t],e)}}let Zm=new Map;class X3{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let l=Zm.get(n);if(l)return e[Hh]=l;this.sheet=new i.CSSStyleSheet,Zm.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Hh]=this}mount(e,t){let n=this.sheet,i=0,l=0;for(let a=0;a<e.length;a++){let c=e[a],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 a="";for(let u=0;u<this.modules.length;u++)a+=this.modules[u].getRules()+`
|
|
60
|
-
`;this.styleTag.textContent=a;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 pi={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:"'"},Gl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},N3=typeof navigator<"u"&&/Mac/.test(navigator.platform),_3=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Xt=0;Xt<10;Xt++)pi[48+Xt]=pi[96+Xt]=String(Xt);for(var Xt=1;Xt<=24;Xt++)pi[Xt+111]="F"+Xt;for(var Xt=65;Xt<=90;Xt++)pi[Xt]=String.fromCharCode(Xt+32),Gl[Xt]=String.fromCharCode(Xt);for(var F0 in pi)Gl.hasOwnProperty(F0)||(Gl[F0]=pi[F0]);function z3(r){var e=N3&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||_3&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Gl:pi)[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 Tt(){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++)Eg(r,arguments[e]);return r}function Eg(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++)Eg(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}let en=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Ih=typeof document<"u"?document:{documentElement:{style:{}}};const Yh=/Edge\/(\d+)/.exec(en.userAgent),jg=/MSIE \d/.test(en.userAgent),Fh=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en.userAgent),Nc=!!(jg||Fh||Yh),Tm=!Nc&&/gecko\/(\d+)/i.test(en.userAgent),B0=!Nc&&/Chrome\/(\d+)/.exec(en.userAgent),D3="webkitFontSmoothing"in Ih.documentElement.style,Bh=!Nc&&/Apple Computer/.test(en.vendor),Mm=Bh&&(/Mobile\/\w+/.test(en.userAgent)||en.maxTouchPoints>2);var ye={mac:Mm||/Mac/.test(en.platform),windows:/Win/.test(en.platform),linux:/Linux|X11/.test(en.platform),ie:Nc,ie_version:jg?Ih.documentMode||6:Fh?+Fh[1]:Yh?+Yh[1]:0,gecko:Tm,gecko_version:Tm?+(/Firefox\/(\d+)/.exec(en.userAgent)||[0,0])[1]:0,chrome:!!B0,chrome_version:B0?+B0[1]:0,ios:Mm,android:/Android\b/.test(en.userAgent),webkit_version:D3?+(/\bAppleWebKit\/(\d+)/.exec(en.userAgent)||[0,0])[1]:0,safari:Bh,safari_version:Bh?+(/\bVersion\/(\d+(\.\d+)?)/.exec(en.userAgent)||[0,0])[1]:0,tabSize:Ih.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function M1(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 cc=Object.create(null);function E1(r,e,t){if(r==e)return!0;r||(r=cc),e||(e=cc);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 W3(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 Em(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 H3(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 Hi{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 pn=(function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r})(pn||(pn={}));class Ve extends fi{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 _i(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:a}=Vg(e,t);n=(l?t?-3e8:-1:5e8)-1,i=(a?t?2e8:1:-6e8)+1}return new _i(e,n,i,t,e.widget||null,!0)}static line(e){return new ho(e)}static set(e,t=!1){return ze.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ve.none=ze.empty;class uo extends Ve{constructor(e){let{start:t,end:n}=Vg(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?M1(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||cc}eq(e){return this==e||e instanceof uo&&this.tagName==e.tagName&&E1(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 ho extends Ve{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ho&&this.spec.class==e.spec.class&&E1(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)}}ho.prototype.mapMode=Yt.TrackBefore;ho.prototype.point=!0;class _i extends Ve{constructor(e,t,n,i,l,a){super(t,n,l,e),this.block=i,this.isReplace=a,this.mapMode=i?t<=0?Yt.TrackBefore:Yt.TrackAfter:Yt.TrackDel}get type(){return this.startSide!=this.endSide?pn.WidgetRange:this.startSide<=0?pn.WidgetBefore:pn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _i&&I3(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)}}_i.prototype.point=!0;function Vg(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 I3(r,e){return r==e||!!(r&&e&&r.compare(e))}function bs(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 Kl extends fi{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Kl&&this.tagName==e.tagName&&E1(this.attributes,e.attributes)}static create(e){return new Kl(e.tagName,e.attributes||cc)}static set(e,t=!1){return ze.of(e,t)}}Kl.prototype.startSide=Kl.prototype.endSide=-1;function Jl(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function qh(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function Hl(r,e){if(!e.anchorNode)return!1;try{return qh(r,e.anchorNode)}catch{return!1}}function Ga(r){return r.nodeType==3?eo(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function Il(r,e,t,n){return t?jm(r,e,t,n,-1)||jm(r,e,t,n,1):!1}function mi(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function uc(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function jm(r,e,t,n,i){for(;;){if(r==t&&e==n)return!0;if(e==(i<0?0:Vr(r))){if(r.nodeName=="DIV")return!1;let l=r.parentNode;if(!l||l.nodeType!=1)return!1;e=mi(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?Vr(r):0}else return!1}}function Vr(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function hc(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function Y3(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 Rg(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 F3(r,e,t,n,i,l,a,c){let u=r.ownerDocument,f=u.defaultView||window;for(let m=r,O=!1;m&&!O;)if(m.nodeType==1){let y,S=m==u.body,w=1,b=1;if(S)y=Y3(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 j=m.getBoundingClientRect();({scaleX:w,scaleY:b}=Rg(m,j)),y={left:j.left,right:j.left+m.clientWidth*w,top:j.top,bottom:j.top+m.clientHeight*b}}let Q=0,C=0;if(i=="nearest")e.top<y.top?(C=e.top-(y.top+a),t>0&&e.bottom>y.bottom+C&&(C=e.bottom-y.bottom+a)):e.bottom>y.bottom&&(C=e.bottom-y.bottom+a,t<0&&e.top-C<y.top&&(C=e.top-(y.top+a)));else{let j=e.bottom-e.top,P=y.bottom-y.top;C=(i=="center"&&j<=P?e.top+j/2-P/2:i=="start"||i=="center"&&t<0?e.top-a:e.bottom-P+a)-y.top}if(n=="nearest"?e.left<y.left?(Q=e.left-(y.left+l),t>0&&e.right>y.right+Q&&(Q=e.right-y.right+l)):e.right>y.right&&(Q=e.right-y.right+l,t<0&&e.left<y.left+Q&&(Q=e.left-(y.left+l))):Q=(n=="center"?e.left+(e.right-e.left)/2-(y.right-y.left)/2:n=="start"==c?e.left-l:e.right-(y.right-y.left)+l)-y.left,Q||C)if(S)f.scrollBy(Q,C);else{let j=0,P=0;if(C){let Z=m.scrollTop;m.scrollTop+=C/b,P=(m.scrollTop-Z)*b}if(Q){let Z=m.scrollLeft;m.scrollLeft+=Q/w,j=(m.scrollLeft-Z)*w}e={left:e.left-j,top:e.top-P,right:e.right-j,bottom:e.bottom-P},j&&Math.abs(j-Q)<1&&(n="nearest"),P&&Math.abs(P-C)<1&&(i="nearest")}if(S)break;(e.top<y.top||e.bottom>y.bottom||e.left<y.left||e.right>y.right)&&(e={left:Math.max(e.left,y.left),right:Math.min(e.right,y.right),top:Math.max(e.top,y.top),bottom:Math.min(e.bottom,y.bottom)}),m=m.assignedSlot||m.parentNode}else if(m.nodeType==11)m=m.host;else break}function Lg(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 B3{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?Vr(t):0),n,Math.min(e.focusOffset,n?Vr(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let ji=null;ye.safari&&ye.safari_version>=26&&(ji=!1);function Xg(r){if(r.setActive)return r.setActive();if(ji)return r.focus(ji);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(ji==null?{get preventScroll(){return ji={preventScroll:!0},!0}}:void 0),!ji){ji=!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 Vm;function eo(r,e,t=e){let n=Vm||(Vm=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function Qs(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 a=new KeyboardEvent("keyup",i);return a.synthetic=!0,r.dispatchEvent(a),l.defaultPrevented||a.defaultPrevented}function q3(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function U3(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,Vr(t));;)if(n){if(t.nodeType!=1)return!1;let i=t.childNodes[n-1];i.contentEditable=="false"?n--:(t=i,n=Vr(t))}else{if(t==r)return!0;n=mi(t),t=t.parentNode}}function Ng(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 _g(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=Vr(t)}else if(t.parentNode&&!uc(t))n=mi(t),t=t.parentNode;else return null}}function zg(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&&!uc(t))n=mi(t)+1,t=t.parentNode;else return null}}class qn{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new qn(e.parentNode,mi(e),t)}static after(e,t){return new qn(e.parentNode,mi(e)+1,t)}}var yt=(function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r})(yt||(yt={}));const zi=yt.LTR,j1=yt.RTL;function Dg(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const G3=Dg("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),K3=Dg("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Uh=Object.create(null),or=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);Uh[e]=t,Uh[t]=-e}function Wg(r){return r<=247?G3[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?K3[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const J3=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class pr{get dir(){return this.level%2?j1:zi}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 a=0;a<e.length;a++){let c=e[a];if(c.from<=t&&c.to>=t){if(c.level==n)return a;(l<0||(i!=0?i<0?c.from<t:c.to>t:e[l].level>c.level))&&(l=a)}}if(l<0)throw new RangeError("Index out of range");return l}}function Hg(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||!Hg(n.inner,i.inner))return!1}return!0}const et=[];function ev(r,e,t,n,i){for(let l=0;l<=n.length;l++){let a=l?n[l-1].to:e,c=l<n.length?n[l].from:t,u=l?256:i;for(let f=a,m=u,O=u;f<c;f++){let y=Wg(r.charCodeAt(f));y==512?y=m:y==8&&O==4&&(y=16),et[f]=y==4?2:y,y&7&&(O=y),m=y}for(let f=a,m=u,O=u;f<c;f++){let y=et[f];if(y==128)f<c-1&&m==et[f+1]&&m&24?y=et[f]=m:et[f]=256;else if(y==64){let S=f+1;for(;S<c&&et[S]==64;)S++;let w=f&&m==8||S<t&&et[S]==8?O==1?1:8:256;for(let b=f;b<S;b++)et[b]=w;f=S-1}else y==8&&O==1&&(et[f]=1);m=y,y&7&&(O=y)}}}function tv(r,e,t,n,i){let l=i==1?2:1;for(let a=0,c=0,u=0;a<=n.length;a++){let f=a?n[a-1].to:e,m=a<n.length?n[a].from:t;for(let O=f,y,S,w;O<m;O++)if(S=Uh[y=r.charCodeAt(O)])if(S<0){for(let b=c-3;b>=0;b-=3)if(or[b+1]==-S){let Q=or[b+2],C=Q&2?i:Q&4?Q&1?l:i:0;C&&(et[O]=et[or[b]]=C),c=b;break}}else{if(or.length==189)break;or[c++]=O,or[c++]=y,or[c++]=u}else if((w=et[O])==2||w==1){let b=w==i;u=b?0:1;for(let Q=c-3;Q>=0;Q-=3){let C=or[Q+2];if(C&2)break;if(b)or[Q+2]|=2;else{if(C&4)break;or[Q+2]|=4}}}}}function nv(r,e,t,n){for(let i=0,l=n;i<=t.length;i++){let a=i?t[i-1].to:r,c=i<t.length?t[i].from:e;for(let u=a;u<c;){let f=et[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(et[m]==256)m++;else break;let O=l==1,y=(m<e?et[m]:n)==1,S=O==y?O?1:2:n;for(let w=m,b=i,Q=b?t[b-1].to:r;w>u;)w==Q&&(w=t[--b].from,Q=b?t[b-1].to:r),et[--w]=S;u=m}else l=f,u++}}}function Gh(r,e,t,n,i,l,a){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=et[u];b!=c&&(m=!1,O=b==16)}let y=!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 Q=b.to,C=f+1;;){if(Q==t)break e;if(C<l.length&&l[C].from==Q)Q=l[C++].to;else{if(et[Q]==c)break e;break}}if(f++,y)y.push(b);else{b.from>u&&a.push(new pr(u,b.from,S));let Q=b.direction==zi!=!(S%2);Kh(r,Q?n+1:n,i,b.inner,b.from,b.to,a),u=b.to}w=b.to}else{if(w==t||(m?et[w]!=c:et[w]==c))break;w++}y?Gh(r,u,w,n+1,i,y,a):u<w&&a.push(new pr(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=et[u-1];b!=c&&(m=!1,O=b==16)}let y=!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 Q=b.from,C=f;;){if(Q==e)break e;if(C&&l[C-1].to==Q)Q=l[--C].from;else{if(et[Q-1]==c)break e;break}}if(y)y.push(b);else{b.to<u&&a.push(new pr(b.to,u,S));let Q=b.direction==zi!=!(S%2);Kh(r,Q?n+1:n,i,b.inner,b.from,b.to,a),u=b.from}w=b.from}else{if(w==e||(m?et[w-1]!=c:et[w-1]==c))break;w--}y?Gh(r,w,u,n+1,i,y,a):w<u&&a.push(new pr(w,u,S)),u=w}}function Kh(r,e,t,n,i,l,a){let c=e%2?2:1;ev(r,i,l,n,c),tv(r,i,l,n,c),nv(i,l,n,c),Gh(r,i,l,e,t,n,a)}function rv(r,e,t){if(!r)return[new pr(0,0,e==j1?1:0)];if(e==zi&&!t.length&&!J3.test(r))return Ig(r.length);if(t.length)for(;r.length>et.length;)et[et.length]=256;let n=[],i=e==zi?0:1;return Kh(r,i,i,t,0,r.length,n),n}function Ig(r){return[new pr(0,r,0)]}let Yg="";function iv(r,e,t,n,i){var l;let a=n.head-r.from,c=pr.find(e,a,(l=n.bidiLevel)!==null&&l!==void 0?l:-1,n.assoc),u=e[c],f=u.side(i,t);if(a==f){let y=c+=i?1:-1;if(y<0||y>=e.length)return null;u=e[c=y],a=u.side(!i,t),f=u.side(i,t)}let m=Mt(r.text,a,u.forward(i,t));(m<u.from||m>u.to)&&(m=f),Yg=r.text.slice(Math.min(a,m),Math.max(a,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?q.cursor(O.side(!i,t)+r.from,O.forward(i,t)?1:-1,O.level):q.cursor(m+r.from,u.forward(i,t)?-1:1,u.level)}function sv(r,e,t){for(let n=e;n<t;n++){let i=Wg(r.charCodeAt(n));if(i==1)return zi;if(i==2||i==4)return j1}return zi}const Fg=we.define(),Bg=we.define(),qg=we.define(),Ug=we.define(),Jh=we.define(),Gg=we.define(),Kg=we.define(),V1=we.define(),R1=we.define(),Jg=we.define({combine:r=>r.some(e=>e)}),lv=we.define({combine:r=>r.some(e=>e)}),e8=we.define();class $s{constructor(e,t="nearest",n="nearest",i=5,l=5,a=!1){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=l,this.isSnapshot=a}map(e){return e.empty?this:new $s(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 $s(q.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Za=Ye.define({map:(r,e)=>r.map(e)}),t8=Ye.define();function mr(r,e,t){let n=r.facet(Ug);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 Tr=we.define({combine:r=>r.length?r[0]:!0});let ov=0;const xs=we.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 mn{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(xs.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(xs.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:l,decorations:a}=t||{};return new mn(ov++,e,n,i,c=>{let u=[];return a&&u.push(_c.of(f=>{let m=f.plugin(c);return m?a(m):Ve.none})),l&&u.push(l(c)),u})}static fromClass(e,t){return mn.define((n,i)=>new e(n,i),t)}}class q0{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(mr(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){mr(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){mr(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const n8=we.define(),L1=we.define(),_c=we.define(),r8=we.define(),X1=we.define(),fo=we.define(),i8=we.define();function Rm(r,e){let t=r.state.facet(i8);if(!t.length)return t;let n=t.map(l=>l instanceof Function?l(r):l),i=[];return ze.spans(n,e.from,e.to,{point(){},span(l,a,c,u){let f=l-e.from,m=a-e.from,O=i;for(let y=c.length-1;y>=0;y--,u--){let S=c[y].spec.bidiIsolate,w;if(S==null&&(S=sv(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 s8=we.define();function l8(r){let e=0,t=0,n=0,i=0;for(let l of r.state.facet(s8)){let a=l(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(n=Math.max(n,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:e,right:t,top:n,bottom:i}}const Xl=we.define();class Vn{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new Vn(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,a=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+a,O=f,y=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++)a=e[w].toA-e[w].toB;y=Math.max(y,S+a)}else if(i<e.length&&e[i].fromB<=O){let S=e[i++];O=Math.max(O,S.toB),y=Math.max(y,S.toA),a=S.toA-S.toB}else break;n.push(new Vn(m,y,f,O))}return n}}class fc{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=$t.empty(this.startState.doc.length);for(let l of n)this.changes=this.changes.compose(l.changes);let i=[];this.changes.iterChangedRanges((l,a,c,u)=>i.push(new Vn(l,a,c,u))),this.changedRanges=i}static create(e,t,n){return new fc(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 av=[];class pt{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 av}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&&W3(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=mi(this.dom),i=this.length?e>0:t>0;return new qn(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 Dc)return e;return null}static get(e){return e.cmTile}}class zc extends pt{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,a=0;for(let c of this.children){if(c.sync(e),a+=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=Lm(i);else t.insertBefore(c.dom,i);n=c.dom}for(i=n?n.nextSibling:t.firstChild,l&&i&&(l.written=!0);i;)i=Lm(i);this.length=a}}function Lm(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Dc extends zc{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=pt.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 a=n.children[i++];if(a instanceof Er)t.push(i),n=a,i=0;else{let c=l+a.length,u=e(a,l);if(u!==void 0)return u;l=c+a.breakAfter}}}resolveBlock(e,t){let n,i=-1,l,a=-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,a=e-u)}}),!n&&!l)throw new Error("No tile at position "+e);return n&&t<0||!l?{tile:n,offset:i}:{tile:l,offset:a}}}class Er extends zc{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 Er(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class Ts extends zc{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let i=new Ts(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,a=null,c=-1;function u(m,O){for(let y=0,S=0;y<m.children.length&&S<=O;y++){let w=m.children[y],b=S+w.length;b>=O&&(w.isComposite()?u(w,O-S):(!a||a.isHidden&&(t>0||n&&uv(a,w)))&&(b>O||w.flags&32)?(a=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:a)||i||a;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):cv(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 qn(i.dom,Math.min(i.dom.nodeValue.length,l)):i.domPosFor(l,i.flags&16?1:i.flags&32?-1:t);let a=n.tile.parent,c=!1;for(let u of a.children){if(c)return new qn(u.dom,0);u==n.tile&&(c=!0)}}return new qn(this.dom,0)}}function cv(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Ga(e);return t[t.length-1]||null}function uv(r,e){let t=r.coordsIn(0,1),n=e.coordsIn(0,1);return t&&n&&n.top<t.bottom}class fn extends zc{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new fn(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class Li extends pt{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,a=0;e==0&&t<0||e==n&&t>=0?ye.chrome||ye.gecko||(e?(i--,a=1):l<n&&(l++,a=-1)):t<0?i--:l<n&&l++;let c=eo(this.dom,i,l).getClientRects();if(!c.length)return null;let u=c[(a?a<0:t>=0)?0:c.length-1];return ye.safari&&!a&&u.width==0&&(u=Array.prototype.find.call(c,f=>f.width)||u),a?hc(u,a<0):u||null}static of(e,t){let n=new Li(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class Di extends pt{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 hc(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let l=this.dom.getClientRects(),a=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;a=l[u],!(e>0?u==0:u==l.length-1||a.top<a.bottom);u+=c?-1:1);return hc(a,!c)}}get overrideDOMText(){if(!this.length)return We.empty;let{root:e}=this;if(!e)return We.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 Di(l,n,e,i)}}class dc extends pt{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 We.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class hv{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:i,index:l,beforeBreak:a,parents:c}=this;for(;e||t>0;)if(i.isComposite())if(a){if(!e)break;n&&n.break(),e--,a=!1}else if(l==i.children.length){if(!e&&!c.length)break;n&&n.leave(i),a=!!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)?(a=!!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)a=!!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=a,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class fv{constructor(e,t,n,i){this.from=e,this.to=t,this.wrapper=n,this.rank=i}}class dv{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 a=this.ensureMarks(t,n),c=a.lastChild;if(c&&c.isText()&&!(c.flags&8)&&c.length+e.length<512){this.cache.reused.set(c,2);let u=a.children[a.children.length-1]=new Li(c.dom,c.text+e);u.parent=a}else a.append(i||Li.of(e,(l=this.cache.find(Li))===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)?U0(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 fn&&f.mark.eq(u.mark))f.dom!=u.dom&&f.setDOM(U0(u.dom)),i=f;else{if(this.cache.reused.get(u)){let O=pt.get(u.dom);O&&O.setDOM(U0(u.dom))}let m=fn.of(u.mark,u.dom);i.append(m),i=m}this.cache.reused.set(u,2)}let l=pt.get(e.text);l&&this.cache.reused.set(l,2);let a=new Li(e.text,e.text.nodeValue);a.flags|=8,i.append(a)}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=o8);let i=Ts.start(e,t||((n=this.cache.find(Ts))===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 a=e[l],c;if(t>0&&(c=i.lastChild)&&c instanceof fn&&c.mark.eq(a))i=c,t--;else{let u=fn.of(a,(n=this.cache.find(fn,f=>f.mark.eq(a)))===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||!Xm(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(ye.ios&&Xm(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(G0,0,32)||new Di(G0.toDOM(),0,G0,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 fv(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 Er&&i.wrapper.eq(n.wrapper))t=i;else{let l=Er.of(n.wrapper,(e=this.cache.find(Er,a=>a.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(dc,void 0,1);return n&&(n.flags=t),n||new dc(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class pv{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:a}=this.cursor.next(this.skipCount);if(this.skipCount=0,a)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 pc=[Di,Ts,Li,fn,dc,Er,Dc];for(let r=0;r<pc.length;r++)pc[r].bucket=r;class mv{constructor(e){this.view=e,this.buckets=pc.map(()=>[]),this.index=pc.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],a=this.index[i];for(let c=l.length-1;c>=0;c--){let u=(c+a)%l.length,f=l[u];if((!t||t(f))&&!this.reused.has(f))return l.splice(u,1),u<a&&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,a=0;;l++){if(l==i.length){if(a)return null;a=1,l=0}let c=i[l];if(!this.reused.has(c)&&(a==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 Di(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 Ov{constructor(e,t,n,i,l){this.view=e,this.decorations=i,this.disallowBlockEffectsFor=l,this.openWidget=!1,this.openMarks=0,this.cache=new mv(e),this.text=new pv(e.state.doc),this.builder=new dv(this.cache,new Dc(e,e.contentDOM),ze.iter(n)),this.cache.reused.set(t,2),this.old=new hv(t),this.reuseWalker={skip:(a,c,u)=>{if(this.cache.add(a),a.isComposite())return!1},enter:a=>this.cache.add(a),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let i=0,l=0,a=0;;){let c=a<e.length?e[a++]:null,u=c?c.fromA:this.old.root.length;if(u>i){let f=u-i;this.preserve(f,!a,!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=xv(this.old),l=this.openMarks;this.old.advance(e,n?1:-1,{skip:(a,c,u)=>{if(a.isWidget())if(this.openWidget)this.builder.continueWidget(u-c);else{let f=u>0||c<a.length?Di.of(a.widget,this.view,u-c,a.flags&496,this.cache.maybeReuse(a)):this.cache.reuse(a);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(a.isText())this.builder.ensureLine(null),!c&&u==a.length&&!this.cache.reused.has(a)?this.builder.addText(a.text,i,l,this.cache.reuse(a)):(this.cache.add(a),this.builder.addText(a.text.slice(c,u),i,l)),l=i.length;else if(a.isLine())a.flags&=-2,this.cache.reused.set(a,1),this.builder.addLine(a);else if(a instanceof dc)this.cache.add(a);else if(a instanceof fn)this.builder.ensureLine(null),this.builder.addMark(a,i,l),this.cache.reused.set(a,1),l=i.length;else return!1;this.openWidget=!1},enter:a=>{a.isLine()?this.builder.addLineStart(a.attrs,this.cache.maybeReuse(a)):(this.cache.add(a),a instanceof fn&&i.unshift(a.mark)),this.openWidget=!1},leave:a=>{a.isLine()?i.length&&(i.length=l=0):a instanceof fn&&(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,a=ze.spans(this.decorations,e,t,{point:(c,u,f,m,O,y)=>{if(f instanceof _i){if(this.disallowBlockEffectsFor[y]){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?Ms.block:Ms.inline),w=gv(f),b=this.cache.findWidget(S,u-c,w)||Di.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=yv(n,f);u>c&&this.text.skip(u-c)},span:(c,u,f,m)=>{for(let O=c;O<u;){let y=this.text.next(Math.min(512,u-O));y==null?(i.addLineStartIfNotCovered(n),i.addBreak(),O++):(i.ensureLine(n),i.addText(y,f,O==c?m:f.length),O+=y.length),n=null}}});i.addLineStartIfNotCovered(n),this.openWidget=a>l,this.openMarks=a}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=pt.get(i);if(i==this.view.contentDOM)break;l instanceof fn?t.push(l):l!=null&&l.isLine()?n=l:l instanceof Er||(i.nodeName=="DIV"&&!n&&i!=this.view.contentDOM?n=new Ts(i,o8):n||t.push(fn.of(new uo({tagName:i.nodeName.toLowerCase(),attributes:H3(i)}),i)))}return{line:n,marks:t}}}function Xm(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 gv(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 o8={class:"cm-line"};function yv(r,e){let t=e.spec.attributes,n=e.spec.class;return!t&&!n||(r||(r={class:"cm-line"}),t&&M1(t,r),n&&(r.class+=" "+n)),r}function xv(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 fn&&e.push(n.mark)}return e}function U0(r){let e=pt.get(r);return e&&e.setDOM(r.cloneNode()),r}class Ms extends Hi{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}}Ms.inline=new Ms("span");Ms.block=new Ms("div");const G0=new class extends Hi{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Nm{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Ve.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 Dc(e,e.contentDOM),this.updateInner([new Vn(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:!Av(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let l=i>-1?Sv(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){let{from:m,to:O}=this.hasComposition;n=new Vn(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,(ye.ie||ye.chrome)&&!l&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,c=this.blockWrappers;this.updateDeco();let u=bv(a,this.decorations,e.changes);u.length&&(n=Vn.extendWithRanges(n,u));let f=$v(c,this.blockWrappers,e.changes);return f.length&&(n=Vn.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 a=this.tile,c=new Ov(this.view,a,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&pt.get(t.text)&&c.cache.reused.set(pt.get(t.text),2),this.tile=c.run(e,t),e1(a,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=ye.chrome||ye.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 K0&&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(t8)&&(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,a=!l&&!(this.view.state.facet(Tr)||n.tabIndex>-1)&&Hl(n,this.view.observer.selectionRange)&&!(i&&n.contains(i));if(!(l||t||a))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)),ye.gecko&&u.empty&&!this.hasComposition&&vv(f)){let y=document.createTextNode("");this.view.observer.ignore(()=>f.node.insertBefore(y,f.node.childNodes[f.offset]||null)),f=m=new qn(y,0),c=!0}let O=this.view.observer.selectionRange;(c||!O.focusNode||(!Il(f.node,f.offset,O.anchorNode,O.anchorOffset)||!Il(m.node,m.offset,O.focusNode,O.focusOffset))&&!this.suppressWidgetCursorChange(O,u))&&(this.view.observer.ignore(()=>{ye.android&&ye.chrome&&n.contains(O.focusNode)&&Pv(O.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let y=Jl(this.view.root);if(y)if(u.empty){if(ye.gecko){let S=wv(f.node,f.offset);if(S&&S!=3){let w=(S==1?_g:zg)(f.node,f.offset);w&&(f=new qn(w.node,w.offset))}}y.collapse(f.node,f.offset),u.bidiLevel!=null&&y.caretBidiLevel!==void 0&&(y.caretBidiLevel=u.bidiLevel)}else if(y.extend){y.collapse(f.node,f.offset);try{y.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),y.removeAllRanges(),y.addRange(S)}a&&this.view.root.activeElement==n&&(n.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(f,m)),this.impreciseAnchor=f.precise?null:new qn(O.anchorNode,O.anchorOffset),this.impreciseHead=m.precise?null:new qn(O.focusNode,O.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Il(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=Jl(e.root),{anchorNode:i,anchorOffset:l}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let a=this.lineAt(t.head,t.assoc);if(!a)return;let c=a.posAtStart;if(t.head==c||t.head==c+a.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 a=Vr(e)==0?0:t==0?-1:1;for(;;){let c=e.parentNode;if(c==n.dom)break;a==0&&c.firstChild!=c.lastChild&&(e==c.firstChild?a=-1:a=1),e=c}a<0?l=e:l=e.nextSibling}if(l==n.dom.firstChild)return i;for(;l&&!pt.get(l);)l=l.nextSibling;if(!l)return i+n.length;for(let a=0,c=i;;a++){let u=n.children[a];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,a,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&&!a&&(a=f,c=e-m,u=m>e),m>e&&a)return!0}}),!n&&!a?this.domAtPos(e,t):(l&&a?n=null:u&&n&&(a=null),n&&t<0||!a?n.domIn(i,t):a.domIn(c,t))}coordsAt(e,t){let{tile:n,offset:i}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof K0?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,a){if(l.isComposite())for(let c of l.children){if(c.length>=a){let u=i(c,a);if(u)return u}if(a-=c.length,a<0)break}else if(l.isText()&&a<l.length){let c=Mt(l.text,a);if(c==a)return null;let u=eo(l.dom,a,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,a=l>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==yt.LTR,f=0,m=(O,y,S)=>{for(let w=0;w<O.children.length&&!(y>i);w++){let b=O.children[w],Q=y+b.length,C=b.dom.getBoundingClientRect(),{height:j}=C;if(S&&!w&&(f+=C.top-S.top),b instanceof Er)Q>n&&m(b,y,C);else if(y>=n&&(f>0&&t.push(-f),t.push(j+f),f=0,a)){let P=b.dom.lastChild,Z=P?Ga(P):[];if(Z.length){let X=Z[Z.length-1],_=u?X.right-C.left:C.right-X.left;_>c&&(c=_,this.minWidth=l,this.minWidthFrom=y,this.minWidthTo=Q)}}S&&w==O.children.length-1&&(f+=S.bottom-C.bottom),y=Q+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"?yt.RTL:yt.LTR}measureTextSize(){let e=this.tile.blockTiles(a=>{if(a.isLine()&&a.children.length&&a.length<=20){let c=0,u;for(let f of a.children){if(!f.isText()||/[^ -~]/.test(f.text))return;let m=Ga(f.dom);if(m.length!=1)return;c+=m[0].width,u=m[0].height}if(c)return{lineHeight:a.dom.getBoundingClientRect().height,charWidth:c/a.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 a=Ga(t.firstChild)[0];n=t.getBoundingClientRect().height,i=a&&a.width?a.width/27:7,l=a&&a.height?a.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],a=l?l.from-1:this.view.state.doc.length;if(a>n){let c=(t.lineBlockAt(a).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Ve.replace({widget:new K0(c),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!l)break;n=l.to+1}return Ve.set(e)}updateDeco(){let e=1,t=this.view.state.facet(_c).map(l=>(this.dynamicDecorationMap[e++]=typeof l=="function")?l(this.view):l),n=!1,i=this.view.state.facet(X1).map((l,a)=>{let c=typeof l=="function";return c&&(n=!0),c?l(this.view):l});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(ze.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(r8).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(e8))try{if(m(this.view,e.range,e))return!0}catch(O){mr(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 a=l8(this.view),c={left:i.left-a.left,top:i.top-a.top,right:i.right+a.right,bottom:i.bottom+a.bottom},{offsetWidth:u,offsetHeight:f}=this.view.scrollDOM;if(F3(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==yt.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(){e1(this.tile)}}function e1(r,e){let t=e==null?void 0:e.get(r);if(t!=1){t==null&&r.destroy();for(let n of r.children)e1(n,e)}}function vv(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 a8(r,e){let t=r.observer.selectionRange;if(!t.focusNode)return null;let n=_g(t.focusNode,t.focusOffset),i=zg(t.focusNode,t.focusOffset),l=n||i;if(i&&n&&i.node!=n.node){let c=pt.get(i.node);if(!c||c.isText()&&c.text!=i.node.nodeValue)l=i;else if(r.docView.lastCompositionAfterCursor){let u=pt.get(n.node);!u||u.isText()&&u.text!=n.node.nodeValue||(l=i)}}if(r.docView.lastCompositionAfterCursor=l!=n,!l)return null;let a=e-l.offset;return{from:a,to:a+l.node.nodeValue.length,node:l.node}}function Sv(r,e,t){let n=a8(r,t);if(!n)return null;let{node:i,from:l,to:a}=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 Vn(u.mapPos(l),u.mapPos(a),l,a),text:i}}function wv(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 kv=class{constructor(){this.changes=[]}compareRange(e,t){bs(e,t,this.changes)}comparePoint(e,t){bs(e,t,this.changes)}boundChange(e){bs(e,e,this.changes)}};function bv(r,e,t){let n=new kv;return ze.compare(r,e,t,n),n.changes}class Qv{constructor(){this.changes=[]}compareRange(e,t){bs(e,t,this.changes)}comparePoint(){}boundChange(e){bs(e,e,this.changes)}}function $v(r,e,t){let n=new Qv;return ze.compare(r,e,t,n),n.changes}function Pv(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 Av(r,e){let t=!1;return e&&r.iterChangedRanges((n,i)=>{n<e.to&&i>e.from&&(t=!0)}),t}class K0 extends Hi{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 Cv(r,e,t=1){let n=r.charCategorizer(e),i=r.doc.lineAt(e),l=e-i.from;if(i.length==0)return q.cursor(e);l==0?t=1:l==i.length&&(t=-1);let a=l,c=l;t<0?a=Mt(i.text,l,!1):c=Mt(i.text,l);let u=n(i.text.slice(a,c));for(;a>0;){let f=Mt(i.text,a,!1);if(n(i.text.slice(f,a))!=u)break;a=f}for(;c<i.length;){let f=Mt(i.text,c);if(n(i.text.slice(c,f))!=u)break;c=f}return q.range(a+i.from,c+i.from)}function Zv(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 a=r.state.sliceDoc(t.from,t.to);return t.from+L3(a,l,r.state.tabSize)}function Tv(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==pn.Text&&(i.type!=l.type||(t<0?l.from<e:l.to>e)))&&(i=l)}}return i||n}return n}function Mv(r,e,t,n){let i=Tv(r,e.head,e.assoc||-1),l=!n||i.type!=pn.Text||!(r.lineWrapping||i.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(l){let a=r.dom.getBoundingClientRect(),c=r.textDirectionAt(i.from),u=r.posAtCoords({x:t==(c==yt.LTR)?a.right-1:a.left+1,y:(l.top+l.bottom)/2});if(u!=null)return q.cursor(u,t?-1:1)}return q.cursor(t?i.to:i.from,t?-1:1)}function _m(r,e,t,n){let i=r.state.doc.lineAt(e.head),l=r.bidiSpans(i),a=r.textDirectionAt(i.from);for(let c=e,u=null;;){let f=iv(i,l,a,c,t),m=Yg;if(!f){if(i.number==(t?r.state.doc.lines:1))return c;m=`
|
|
61
|
-
`,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 Ev(r,e,t){let n=r.state.charCategorizer(e),i=n(t);return l=>{let a=n(l);return i==ot.Space&&(i=a),i==a}}function jv(r,e,t,n){let i=e.head,l=t?1:-1;if(i==(t?r.state.doc.length:0))return q.cursor(i,e.assoc);let a=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)a==null&&(a=f.left-u.left),c=l<0?f.top:f.bottom;else{let w=r.viewState.lineBlockAt(i);a==null&&(a=Math.min(u.right-u.left,r.defaultCharacterWidth*(i-w.from))),c=(l<0?w.top:w.bottom)+m}let O=u.left+a,y=r.viewState.heightOracle.textHeight>>1,S=n??y;for(let w=0;;w+=y){let b=c+(S+w)*l,Q=t1(r,{x:O,y:b},!1,l);if(t?b>u.bottom:b<u.top)return q.cursor(Q.pos,Q.assoc);let C=r.coordsAtPos(Q.pos,Q.assoc),j=C?(C.top+C.bottom)/2:0;if(!C||(t?j>c:j<c))return q.cursor(Q.pos,Q.assoc,void 0,a)}}function Yl(r,e,t){for(;;){let n=0;for(let i of r)i.between(e-1,e+1,(l,a,c)=>{if(e>l&&e<a){let u=n||t||(e-l<a-e?-1:1);e=u<0?l:a,n=u}});if(!n)return e}}function c8(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 a=Yl(r,i.from,0);a!=i.from&&(l=q.cursor(a,-1))}else{let a=Yl(r,i.from,-1),c=Yl(r,i.to,1);(a!=i.from||c!=i.to)&&(l=q.range(i.from==i.anchor?a:c,i.from==i.head?a:c))}l&&(t||(t=e.ranges.slice()),t[n]=l)}return t?q.create(t,e.mainIndex):e}function J0(r,e,t){let n=Yl(r.state.facet(fo).map(i=>i(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:q.cursor(n,n<t.from?1:-1)}class dr{constructor(e,t){this.pos=e,this.assoc=t}}function t1(r,e,t,n){let i=r.contentDOM.getBoundingClientRect(),l=i.top+r.viewState.paddingTop,{x:a,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==pn.Text){if(n<0?f.to<r.viewport.from:f.from>r.viewport.to)break;let y=r.docView.coordsAt(n<0?f.from:f.to,n>0?-1:1);if(y&&(n<0?y.top<=u+l:y.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==pn.Text){let O=Zv(r,i,f,a,c);return new dr(O,O==f.from?1:-1)}}if(f.type!=pn.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 Vv(r,a,c,r.textDirectionAt(f.from)).scanTile(m,f.from)}class Vv{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[pr.find(i,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:i}=this.bidiSpansAt(e);return i[pr.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,a=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 Q=n+Math.floor(Math.random()*S);for(let C=0;C<S;C++){if(!l.has(Q)){w=Q;break t}Q++,Q==i&&(Q=n)}break e}l.add(w);let b=t(w);if(b)for(let Q=0;Q<b.length;Q++){let C=b[Q],j=0;if(!(C.width==0&&b.length>1)){if(C.bottom<this.y)(!c||c.bottom<C.bottom)&&(c=C),j=1;else if(C.top>this.y)(!u||u.top>C.top)&&(u=C),j=-1;else{let P=C.left>this.x?this.x-C.left:C.right<this.x?this.x-C.right:0,Z=Math.abs(P);Z<m&&(f=w,m=Z,O=C),P&&(j=P<0==(this.baseDir==yt.LTR)?-1:1)}j==-1&&(!a||this.baseDirAt(e[w],1))?i=w:j==1&&(!a||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 y=(a?this.dirAt(e[f],1):this.baseDir)==yt.LTR;return{i:f,after:this.x>(O.left+O.right)/2==y}}scanText(e,t){let n=[];for(let l=0;l<e.length;l=Mt(e.text,l))n.push(t+l);n.push(t+e.length);let i=this.scan(n,l=>{let a=n[l]-t,c=n[l+1]-t;return eo(e.dom,a,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:eo(u.dom,0,u.length)).getClientRects()}),l=e.children[i.i],a=n[i.i];return l.isText()?this.scanText(l,a):l.isComposite()?this.scanTile(l,a):i.after?new dr(n[i.i+1],-1):new dr(a,1)}}const Os="";class Rv{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(Ie.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Os}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 a=pt.get(i),c=i.nextSibling;if(c==t){a!=null&&a.breakAfter&&!c&&n!=this.view.contentDOM&&this.lineBreak();break}let u=pt.get(c);(a&&u?a.breakAfter:(a?a.breakAfter:uc(i))||uc(c)&&(i.nodeName!="BR"||a!=null&&a.isWidget())&&this.text.length>l)&&!Xv(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,a=1,c;if(this.lineSeparator?(l=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(c=i.exec(t))&&(l=c.index,a=c[0].length),this.append(t.slice(n,l<0?t.length:l)),l<0)break;if(this.lineBreak(),a>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=a-1);n=l+a}}readNode(e){let t=pt.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+(Lv(e,n.node,n.offset)?t:0))}}function Lv(r,e,t){for(;;){if(!e||t<Vr(e))return!1;if(e==r)return!0;t=mi(e)+1,e=e.parentNode}}function Xv(r,e){let t;for(;!(r==e||!r);r=r.nextSibling){let n=pt.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 zm{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Nv{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:l,impreciseAnchor:a}=e.docView,c=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=u8(e.docView.tile,t,n,0))){let u=l||a?[]:zv(e),f=new Rv(u,e);f.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=f.text,this.newSel=Dv(u,this.bounds.from)}else{let u=e.observer.selectionRange,f=l&&l.node==u.focusNode&&l.offset==u.focusOffset||!qh(e.contentDOM,u.focusNode)?c.main.head:e.docView.posFromDOM(u.focusNode,u.focusOffset),m=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!qh(e.contentDOM,u.anchorNode)?c.main.anchor:e.docView.posFromDOM(u.anchorNode,u.anchorOffset),O=e.viewport;if((ye.ios||ye.chrome)&&c.main.empty&&f!=m&&(O.from>0||O.to<e.state.doc.length)){let y=Math.min(f,m),S=Math.max(f,m),w=O.from-y,b=O.to-S;(w==0||w==1||y==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(q.range(m,f));else if(e.lineWrapping&&m==f&&!(c.main.empty&&c.main.head==f)&&e.inputState.lastTouchTime>Date.now()-100){let y=e.coordsAtPos(f,-1),S=0;y&&(S=e.inputState.lastTouchY<=y.bottom?-1:1),this.newSel=q.create([q.cursor(f,S)])}else this.newSel=q.single(m,f)}}}function u8(r,e,t,n){if(r.isComposite()){let i=-1,l=-1,a=-1,c=-1;for(let u=0,f=n,m=n;u<r.children.length;u++){let O=r.children[u],y=f+O.length;if(f<e&&y>t)return u8(O,e,t,f);if(y>=e&&i==-1&&(i=u,l=f),f>t&&O.dom.parentNode==r.dom){a=u,c=m;break}m=y,f=y+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:a<r.children.length&&a>=0?r.children[a].dom:null}}else return r.isText()?{from:n,to:n+r.length,startDOM:r.dom,endDOM:r.dom.nextSibling}:null}function h8(r,e){let t,{newSel:n}=e,{state:i}=r,l=i.selection.main,a=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;(a===8||ye.android&&e.text.length<u-c)&&(f=l.to,m="end");let O=i.doc.sliceString(c,u,Os),y,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(y=e.text.length-(O.length-(l.to-c)))?t={from:l.from,to:l.to,insert:We.of(e.text.slice(l.from-c,y).split(Os))}:(S=f8(O,e.text,f-c,m))&&(ye.chrome&&a==13&&S.toB==S.from+2&&e.text.slice(S.from,S.toB)==Os+Os&&S.toB--,t={from:c+S.from,to:c+S.toA,insert:We.of(e.text.slice(S.from,S.toB).split(Os))})}else n&&(!r.hasFocus&&i.facet(Tr)||mc(n,l))&&(n=null);if(!t&&!n)return!1;if((ye.mac||ye.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=q.single(n.main.anchor-1,n.main.head-1)),t={from:t.from,to:t.to,insert:We.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)}:ye.chrome&&t&&t.from==t.to&&t.from==l.head&&t.insert.toString()==`
|
|
62
|
-
`&&r.lineWrapping&&(n&&(n=q.single(n.main.anchor-1,n.main.head-1)),t={from:l.from,to:l.to,insert:We.of([" "])}),t)return N1(r,t,n,a);if(n&&!mc(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=c8(i.facet(fo).map(f=>f(r)),n))),r.dispatch({selection:n,scrollIntoView:c,userEvent:u}),!0}else return!1}function N1(r,e,t,n=-1){if(ye.ios&&r.inputState.flushIOSKey(e))return!0;let i=r.state.selection.main;if(ye.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&&Qs(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)&&Qs(r.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&Qs(r.contentDOM,"Delete",46)))return!0;let l=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let a,c=()=>a||(a=_v(r,e,t));return r.state.facet(Gg).some(u=>u(r,e.from,e.to,l,c))||r.dispatch(c()),!0}function _v(r,e,t){let n,i=r.state,l=i.selection.main,a=-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=Yl(i.facet(fo).map(O=>O(r)),f,u);e.from==m&&(a=m)}if(a>-1)n={changes:e,selection:q.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,y=t&&a8(r,t.main.head);if(y){let w=e.insert.length-(e.to-e.from);O={from:y.from,to:y.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,Q=b-m.length;if(r.state.sliceDoc(Q,b)!=m||b>=O.from&&Q<=O.to)return{range:w};let C=i.changes({from:Q,to:b,insert:e.insert}),j=w.to-l.to;return{changes:C,range:f?q.range(Math.max(0,f.anchor+j),Math.max(0,f.head+j)):w.map(C)}})}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 f8(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 a=r.length,c=e.length;for(;a>0&&c>0&&r.charCodeAt(a-1)==e.charCodeAt(c-1);)a--,c--;if(n=="end"){let u=Math.max(0,l-Math.min(a,c));t-=a+u-l}if(a<l&&r.length<e.length){let u=t<=l&&t>=a?l-t:0;l-=u,c=l+(c-a),a=l}else if(c<l){let u=t<=l&&t>=c?l-t:0;l-=u,a=l+(a-c),c=l}return{from:l,toA:a,toB:c}}function zv(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 zm(t,n)),(i!=t||l!=n)&&e.push(new zm(i,l))),e}function Dv(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?q.single(t+e,n+e):null}function mc(r,e){return e.head==r.main.head&&e.anchor==r.main.anchor}class Wv{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,ye.safari&&e.contentDOM.addEventListener("input",()=>null),ye.gecko&&iS(e.contentDOM.ownerDocument)}handleEvent(e){!Gv(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=Hv(e),n=this.handlers,i=this.view.contentDOM;for(let l in t)if(l!="scroll"){let a=!t[l].handlers.length,c=n[l];c&&a!=!c.handlers.length&&(i.removeEventListener(l,this.handleEvent),c=null),c||i.addEventListener(l,this.handleEvent,{passive:a})}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&&p8.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ye.android&&ye.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return ye.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&!e.shiftKey&&((t=d8.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||Iv.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,Qs(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:ye.safari&&!ye.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 Dm(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(i){mr(t.state,i)}}}function Hv(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,a=i&&i.plugin.domEventObservers;if(l)for(let c in l){let u=l[c];u&&t(c).handlers.push(Dm(n.value,u))}if(a)for(let c in a){let u=a[c];u&&t(c).observers.push(Dm(n.value,u))}}for(let n in Gn)t(n).handlers.push(Gn[n]);for(let n in On)t(n).observers.push(On[n]);return e}const d8=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Iv="dthko",p8=[16,17,18,20,91,92,224,225],Ta=6;function Ma(r){return Math.max(0,r)*.7+8}function Yv(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class Fv{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=Lg(e.contentDOM),this.atoms=e.state.facet(fo).map(a=>a(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(Ie.allowMultipleSelections)&&Bv(e,t),this.dragging=Uv(e,t)&&g8(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&&Yv(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,i=0,l=0,a=this.view.win.innerWidth,c=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:l,bottom:c}=this.scrollParents.y.getBoundingClientRect());let u=l8(this.view);e.clientX-u.left<=i+Ta?t=-Ma(i-e.clientX):e.clientX+u.right>=a-Ta&&(t=Ma(e.clientX-a)),e.clientY-u.top<=l+Ta?n=-Ma(l-e.clientY):e.clientY+u.bottom>=c-Ta&&(n=Ma(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=c8(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 Bv(r,e){let t=r.state.facet(Fg);return t.length?t[0](e):ye.mac?e.metaKey:e.ctrlKey}function qv(r,e){let t=r.state.facet(Bg);return t.length?t[0](e):ye.mac?!e.altKey:!e.ctrlKey}function Uv(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=Jl(r.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let l=0;l<i.length;l++){let a=i[l];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function Gv(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=pt.get(t))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}const Gn=Object.create(null),On=Object.create(null),m8=ye.ie&&ye.ie_version<15||ye.ios&&ye.webkit_version<604;function Kv(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(),O8(r,t.value)},50)}function Wc(r,e,t){for(let n of r.facet(e))t=n(t,r);return t}function O8(r,e){e=Wc(r.state,V1,e);let{state:t}=r,n,i=1,l=t.toText(e),a=l.lines==t.selection.ranges.length;if(n1!=null&&t.selection.ranges.every(u=>u.empty)&&n1==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((a?l.line(i++).text:e)+t.lineBreak);return{changes:{from:m.from,insert:O},range:q.cursor(f.from+O.length)}})}else a?n=t.changeByRange(u=>{let f=l.line(i++);return{changes:{from:u.from,to:u.to,insert:f.text},range:q.cursor(u.from+f.length)}}):n=t.replaceSelection(l);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}On.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};On.wheel=On.mousewheel=r=>{r.inputState.lastWheelEvent=Date.now()};Gn.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&r.inputState.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!1);On.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")};On.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};Gn.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(qg))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=eS(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new Fv(r,e,t,n)),n&&r.observer.ignore(()=>{Xg(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 Wm(r,e,t,n){if(n==1)return q.cursor(e,t);if(n==2)return Cv(r.state,e,t);{let i=r.docView.lineAt(e,t),l=r.state.doc.lineAt(i?i.posAtEnd:e),a=i?i.posAtStart:l.from,c=i?i.posAtEnd:l.to;return c<r.state.doc.length&&c==l.to&&c++,q.range(a,c)}}const Jv=ye.ie&&ye.ie_version<=11;let Hm=null,Im=0,Ym=0;function g8(r){if(!Jv)return r.detail;let e=Hm,t=Ym;return Hm=r,Ym=Date.now(),Im=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(Im+1)%3:1}function eS(r,e){let t=r.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=g8(e),i=r.state.selection;return{update(l){l.docChanged&&(t.pos=l.changes.mapPos(t.pos),i=i.map(l.changes))},get(l,a,c){let u=r.posAndSideAtCoords({x:l.clientX,y:l.clientY},!1),f,m=Wm(r,u.pos,u.assoc,n);if(t.pos!=u.pos&&!a){let O=Wm(r,t.pos,t.assoc,n),y=Math.min(O.from,m.from),S=Math.max(O.to,m.to);m=y<m.from?q.range(y,S,m.assoc):q.range(S,y,m.assoc)}return a?i.replaceRange(i.main.extend(m.from,m.to,m.assoc)):c&&n==1&&i.ranges.length>1&&(f=tS(i,u.pos))?f:c?i.addRange(m):q.create([m])}}}function tS(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 q.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}Gn.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,a=l+i.length;(l>=t.to||a<=t.from)&&(t=q.range(l,a))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",Wc(r.state,R1,r.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Gn.dragend=r=>(r.inputState.draggedContent=null,!1);function Fm(r,e,t,n){if(t=Wc(r.state,V1,t),!t)return;let i=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:l}=r.inputState,a=n&&l&&qv(r,e)?{from:l.from,to:l.to}:null,c={from:i,insert:t},u=r.state.changes(a?[a,c]:c);r.focus(),r.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}Gn.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&&Fm(r,e,n.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a<t.length;a++){let c=new FileReader;c.onerror=l,c.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(n[a]=c.result),l()},c.readAsText(t[a])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return Fm(r,e,n,!0),!0}return!1};Gn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=m8?null:e.clipboardData;return t?(O8(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Kv(r),!1)};function nS(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 rS(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 a=r.doc.lineAt(l);a.number>i&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),i=a.number}n=!0}return{text:Wc(r,R1,e.join(r.lineBreak)),ranges:t,linewise:n}}let n1=null;Gn.copy=Gn.cut=(r,e)=>{if(!Hl(r.contentDOM,r.observer.selectionRange))return!1;let{text:t,ranges:n,linewise:i}=rS(r.state);if(!t&&!i)return!1;n1=i?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let l=m8?null:e.clipboardData;return l?(l.clearData(),l.setData("text/plain",t),!0):(nS(r,t),!1)};const y8=Lr.define();function x8(r,e){let t=[];for(let n of r.facet(Kg)){let i=n(r,e);i&&t.push(i)}return t.length?r.update({effects:t,annotations:y8.of(!0)}):null}function v8(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=x8(r.state,e);t?r.dispatch(t):r.update([])}},10)}On.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),v8(r)};On.blur=r=>{r.observer.clearSelectionRange(),v8(r)};On.compositionstart=On.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};On.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,ye.chrome&&ye.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50))};On.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};Gn.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"),a=e.getTargetRanges();if(l&&a.length){let c=a[0],u=r.posAtDOM(c.startContainer,c.startOffset),f=r.posAtDOM(c.endContainer,c.endOffset);return N1(r,{from:u,to:f,insert:r.state.toText(l)},null),!0}}let i;if(ye.chrome&&ye.android&&(i=d8.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 a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>l+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return ye.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),ye.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>On.compositionend(r,e),20),!1};const Bm=new Set;function iS(r){Bm.has(r)||(Bm.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const qm=["pre-wrap","normal","pre-line","break-spaces"];let Es=!1;function Um(){Es=!1}class sS{constructor(e){this.lineWrapping=e,this.doc=We.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 qm.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,a){let c=qm.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<a.length;f++){let m=a[f];m<0?f++:this.heightSamples[Math.floor(m*10)]=!0}}return u}}class lS{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Bn{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"?pn.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 _i?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 Bn(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var nt=(function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r})(nt||(nt={}));const Ka=.001;class tn{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)>Ka&&(Es=!0),this.height=e)}replace(e,t,n){return tn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let l=this,a=n.doc;for(let c=i.length-1;c>=0;c--){let{fromA:u,toA:f,fromB:m,toB:O}=i[c],y=l.lineAt(u,nt.ByPosNoHeight,n.setDoc(t),0,0),S=y.to>=f?y:l.lineAt(f,nt.ByPosNoHeight,n,0,0);for(O+=S.to-f,f=S.to;c>0&&y.from<=i[c-1].toA;)u=i[c-1].fromA,m=i[c-1].fromB,c--,u<y.from&&(y=l.lineAt(u,nt.ByPosNoHeight,n,0,0));m+=y.from-u,u=y.from;let w=_1.build(n.setDoc(a),e,m,O);l=Oc(l,l.replace(u,f,w))}return l.updateHeight(n,0)}static empty(){return new Qn(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 a=0;return e[t-1]==null?(a=1,t--):e[t]==null&&(a=1,n++),new aS(tn.of(e.slice(0,t)),a,tn.of(e.slice(n)))}}function Oc(r,e){return r==e?r:(r.constructor!=e.constructor&&(Es=!0),e)}tn.prototype.size=1;const oS=Ve.replace({});class S8 extends tn{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new Bn(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 Bn(i,0,n,this.spaceAbove,oS):this.mainBlock(n,i)}lineAt(e,t,n,i,l){let a=this.mainBlock(i,l);return this.spaceAbove?this.blockAt(0,n,i,l).join(a):a}forEachLine(e,t,n,i,l,a){e<=l+this.length&&t>=l&&a(this.lineAt(0,nt.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 Qn extends S8{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 Bn(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 Qn||i instanceof Lt&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Lt?i=new Qn(i.length,this.height,this.spaceAbove):i.height=this.height,this.outdated||(i.outdated=!1),i):tn.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 Lt extends tn{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,a,c=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*l);a=u/l,this.length>l+1&&(c=(this.height-u)/(this.length-l-1))}else a=this.height/l;return{firstLine:n,lastLine:i,perLine:a,perChar:c}}blockAt(e,t,n,i){let{firstLine:l,lastLine:a,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,y=Math.max(n,e-O/2);return new Bn(m.from,m.length,y,O,0)}else{let f=Math.max(0,Math.min(a-l,Math.floor((e-n)/c))),{from:m,length:O}=t.doc.line(l+f);return new Bn(m,O,n+c*f,c,0)}}lineAt(e,t,n,i,l){if(t==nt.ByHeight)return this.blockAt(e,n,i,l);if(t==nt.ByPosNoHeight){let{from:S,to:w}=n.doc.lineAt(e);return new Bn(S,w-S,0,0,0)}let{firstLine:a,perLine:c,perChar:u}=this.heightMetrics(n,l),f=n.doc.lineAt(e),m=c+f.length*u,O=f.number-a,y=i+c*O+u*(f.from-l-O);return new Bn(f.from,f.length,Math.max(i,Math.min(y,i+this.height-m)),m,0)}forEachLine(e,t,n,i,l,a){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 y=n.doc.lineAt(m);if(m==e){let w=y.number-c;O+=u*w+f*(e-l-w)}let S=u+f*y.length;a(new Bn(y.from,y.length,O,S,0)),O+=S,m=y.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let l=n[n.length-1];l instanceof Lt?n[n.length-1]=new Lt(l.length+i):n.push(null,new Lt(i-1))}if(e>0){let l=n[0];l instanceof Lt?n[0]=new Lt(e+l.length):n.unshift(new Lt(e-1),null)}return tn.of(n)}decomposeLeft(e,t){t.push(new Lt(e-1),null)}decomposeRight(e,t){t.push(null,new Lt(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 a=[],c=Math.max(t,i.from),u=-1;for(i.from>t&&a.push(new Lt(i.from-t-1).updateHeight(e,t));c<=l&&i.more;){let m=e.doc.lineAt(c).length;a.length&&a.push(null);let O=i.heights[i.index++],y=0;O<0&&(y=-O,O=i.heights[i.index++]),u==-1?u=O:Math.abs(O-u)>=Ka&&(u=-2);let S=new Qn(m,O,y);S.outdated=!1,a.push(S),c+=m+1}c<=l&&a.push(null,new Lt(l-c).updateHeight(e,c));let f=tn.of(a);return(u<0||Math.abs(f.height-this.height)>=Ka||Math.abs(u-this.heightMetrics(e,t).perLine)>=Ka)&&(Es=!0),Oc(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 aS extends tn{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 a=i+this.left.height,c=l+this.left.length+this.break,u=t==nt.ByHeight?e<a:e<c,f=u?this.left.lineAt(e,t,n,i,l):this.right.lineAt(e,t,n,a,c);if(this.break||(u?f.to<c:f.from>c))return f;let m=t==nt.ByPosNoHeight?nt.ByPosNoHeight:nt.ByPos;return u?f.join(this.right.lineAt(c,m,n,a,c)):this.left.lineAt(c,m,n,i,l).join(f)}forEachLine(e,t,n,i,l,a){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,a),t>=u&&this.right.forEachLine(e,t,n,c,u,a);else{let f=this.lineAt(u,nt.ByPos,n,i,l);e<f.from&&this.left.forEachLine(e,f.from-1,n,i,l,a),f.to>=e&&f.from<=t&&a(f),t>f.to&&this.right.forEachLine(f.to+1,t,n,c,u,a)}}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 a=l.length;for(let c of n)l.push(c);if(e>0&&Gm(l,a-1),t<this.length){let c=l.length;this.decomposeRight(t,l),Gm(l,c)}return tn.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?tn.of(this.break?[e,null,t]:[e,t]):(this.left=Oc(this.left,e),this.right=Oc(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:a}=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+a.length&&i.more?u=a=a.updateHeight(e,c,n,i):a.updateHeight(e,c,n),u?this.balanced(l,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Gm(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof Lt&&(n=r[e+1])instanceof Lt&&r.splice(e-1,3,new Lt(t.length+1+n.length))}const cS=5;class _1{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 Qn?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Qn(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 a=t-e;n.block?this.addBlock(new S8(a,i,n)):(a||l||i>=cS)&&this.addLineDeco(i,l,a)}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 Qn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new Lt(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 Qn)return e;let t=new Qn(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 Qn)&&!this.isCovered?this.nodes.push(new Qn(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 Qn&&i.updateHeight(this.oracle,n),n+=i?i.length:1;return this.nodes}static build(e,t,n,i){let l=new _1(n,e);return ze.spans(t,n,i,l,0),l.finish(n)}}function uS(r,e,t){let n=new hS;return ze.compare(r,e,t,n,0),n.changes}class hS{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&bs(e,t,this.changes,5)}}function fS(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,i=n.defaultView||window,l=Math.max(0,t.left),a=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 y=m.getBoundingClientRect();l=Math.max(l,y.left),a=Math.min(a,y.right),c=Math.max(c,y.top),u=Math.min(f==r.parentNode?i.innerHeight:u,y.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,a)-t.left,top:c-(t.top+e),bottom:Math.max(c,u)-(t.top+e)}}function dS(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 pS(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class eh{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 Ve.replace({widget:new mS(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class mS extends Hi{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 Km{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=Jm,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=yt.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(L1).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new sS(n),this.stateDeco=eO(t),this.heightMap=tn.empty().applyChanges(this.stateDeco,We.empty,this.heightOracle.setDoc(t.doc),[new Vn(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=Ve.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:a})=>i>=l&&i<=a)){let{from:l,to:a}=this.lineBlockAt(i);e.push(new Ea(l,a))}}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?Jm:new z1(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(Nl(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=eO(this.state);let i=e.changedRanges,l=Vn.extendWithRanges(i,uS(n,this.stateDeco,e?e.changes:$t.empty(this.state.doc.length))),a=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Um(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),l),(this.heightMap.height!=a||Es)&&(e.flags|=2),c?(this.scrollAnchorPos=e.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=a);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(lv)&&(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"?yt.RTL:yt.LTR;let a=this.heightOracle.mustRefreshForWrapping(l)||this.mustMeasureContent==="refresh",c=t.getBoundingClientRect(),u=a||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:X,scaleY:_}=Rg(t,c);(X>.005&&Math.abs(this.scaleX-X)>.005||_>.005&&Math.abs(this.scaleY-_)>.005)&&(this.scaleX=X,this.scaleY=_,f|=16,a=u=!0)}let O=(parseInt(n.paddingTop)||0)*this.scaleY,y=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=y)&&(this.paddingTop=O,this.paddingBottom=y,f|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,f|=16);let S=Lg(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=Ng(this.scrollParent||e.win);let b=(this.printing?pS:fS)(t,this.paddingTop),Q=b.top-this.pixelViewport.top,C=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let j=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(j!=this.inView&&(this.inView=j,j&&(u=!0)),!this.inView&&!this.scrollTarget&&!dS(e.dom))return 0;let P=c.width;if((this.contentDOMWidth!=P||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=e.scrollDOM.clientHeight,f|=16),u){let X=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(X)&&(a=!0),a||i.lineWrapping&&Math.abs(P-this.contentDOMWidth)>i.charWidth){let{lineHeight:_,charWidth:E,textHeight:R}=e.docView.measureTextSize();a=_>0&&i.refresh(l,_,E,R,Math.max(5,P/E),X),a&&(e.docView.minWidth=0,f|=16)}Q>0&&C>0?m=Math.max(Q,C):Q<0&&C<0&&(m=Math.min(Q,C)),Um();for(let _ of this.viewports){let E=_.from==this.viewport.from?X:e.docView.measureVisibleLineHeights(_);this.heightMap=(a?tn.empty().applyChanges(this.stateDeco,We.empty,this.heightOracle,[new Vn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new lS(_.from,E))}Es&&(f|=2)}let Z=!this.viewportIsAppropriate(this.viewport,m)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return Z&&(f&2&&(f|=this.updateScaler()),this.viewport=this.getViewport(m,this.scrollTarget),f|=this.updateForViewport()),(f&2||Z)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]: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:a,visibleBottom:c}=this,u=new Ea(i.lineAt(a-n*1e3,nt.ByHeight,l,0,0).from,i.lineAt(c+(1-n)*1e3,nt.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,nt.ByPos,l,0,0),y;t.y=="center"?y=(O.top+O.bottom)/2-m/2:t.y=="start"||t.y=="nearest"&&f<u.from?y=O.top:y=O.bottom-m,u=new Ea(i.lineAt(y-1e3/2,nt.ByHeight,l,0,0).from,i.lineAt(y+m+1e3/2,nt.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 Ea(this.heightMap.lineAt(n,nt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,nt.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,nt.ByPos,this.heightOracle,0,0),{bottom:l}=this.heightMap.lineAt(t,nt.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:c}=this;return(e==0||i<=a-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||l>=c+Math.max(10,Math.min(n,250)))&&i>a-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 eh(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,a=i<<1;if(this.defaultTextDirection!=yt.LTR&&!n)return[];let c=[],u=(m,O,y,S)=>{if(O-m<l)return;let w=this.state.selection.main,b=[w.from];w.empty||b.push(w.to);for(let C of b)if(C>m&&C<O){u(m,C-10,y,S),u(C+10,O,y,S);return}let Q=gS(e,C=>C.from>=y.from&&C.to<=y.to&&Math.abs(C.from-m)<l&&Math.abs(C.to-O)<l&&!b.some(j=>C.from<j&&C.to>j));if(!Q){if(O<y.to&&t&&n&&t.visibleRanges.some(P=>P.from<=O&&P.to>=O)){let P=t.moveToLineBoundary(q.cursor(O),!1,!0).head;P>m&&(O=P)}let C=this.gapSize(y,m,O,S),j=n||C<2e6?C:2e6;Q=new eh(m,O,C,j)}c.push(Q)},f=m=>{if(m.length<a||m.type!=pn.Text)return;let O=OS(m.from,m.to,this.stateDeco);if(O.total<a)return;let y=this.scrollTarget?this.scrollTarget.range.head:null,S,w;if(n){let b=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,Q,C;if(y!=null){let j=Va(O,y),P=((this.visibleBottom-this.visibleTop)/2+b)/m.height;Q=j-P,C=j+P}else Q=(this.visibleTop-m.top-b)/m.height,C=(this.visibleBottom-m.top+b)/m.height;S=ja(O,Q),w=ja(O,C)}else{let b=O.total*this.heightOracle.charWidth,Q=i*this.heightOracle.charWidth,C=0;if(b>2e6)for(let _ of e)_.from>=m.from&&_.from<m.to&&_.size!=_.displaySize&&_.from*this.heightOracle.charWidth+C<this.pixelViewport.left&&(C=_.size-_.displaySize);let j=this.pixelViewport.left+C,P=this.pixelViewport.right+C,Z,X;if(y!=null){let _=Va(O,y),E=((P-j)/2+Q)/b;Z=_-E,X=_+E}else Z=(j-Q)/b,X=(P+Q)/b;S=ja(O,Z),w=ja(O,X)}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=Va(i,n)-Va(i,t);return this.heightOracle.lineWrapping?e.height*l:i.total*this.heightOracle.charWidth*l}updateLineGaps(e){eh.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Ve.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=[];ze.spans(t,this.viewport.from,this.viewport.to,{span(l,a){n.push({from:l,to:a})},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 a=this.visibleRanges[l],c=n[l];(a.from!=c.from||a.to!=c.to)&&(i|=4,e&&e.mapPos(a.from,-1)==c.from&&e.mapPos(a.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)||Nl(this.heightMap.lineAt(e,nt.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)||Nl(this.heightMap.lineAt(this.scaler.fromDOM(e),nt.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 Nl(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 Ea{constructor(e,t){this.from=e,this.to=t}}function OS(r,e,t){let n=[],i=r,l=0;return ze.spans(t,r,e,{span(){},point(a,c){a>i&&(n.push({from:i,to:a}),l+=a-i),i=c}},20),i<e&&(n.push({from:i,to:e}),l+=e-i),{total:l,ranges:n}}function ja({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:a}=e[i],c=a-l;if(n<=c)return l+n;n-=c}}function Va(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 gS(r,e){for(let t of r)if(e(t))return t}const Jm={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}};function eO(r){let e=r.facet(_c).filter(n=>typeof n!="function"),t=r.facet(X1).filter(n=>typeof n!="function");return t.length&&e.push(ze.join(t)),e}class z1{constructor(e,t,n){let i=0,l=0,a=0;this.viewports=n.map(({from:c,to:u})=>{let f=t.lineAt(c,nt.ByPos,e,0,0).top,m=t.lineAt(u,nt.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=a+(c.top-l)*this.scale,a=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 z1?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 Nl(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new Bn(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(i=>Nl(i,e)):r._content)}const Ra=we.define({combine:r=>r.join(" ")}),r1=we.define({combine:r=>r.indexOf(!0)>-1}),i1=di.newName(),w8=di.newName(),k8=di.newName(),b8={"&light":"."+w8,"&dark":"."+k8};function s1(r,e,t){return new di(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 yS=s1("."+i1,{"&":{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"}},b8),xS={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},th=ye.ie&&ye.ie_version<=11;class vS{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new B3,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);(ye.ie&&ye.ie_version<=11||ye.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&&ye.android&&e.constructor.EDIT_CONTEXT!==!1&&!(ye.chrome&&ye.chrome_version<126)&&(this.editContext=new wS(e),e.state.facet(Tr)&&(e.contentDOM.editContext=this.editContext.editContext)),th&&(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(Tr)?n.root.activeElement!=this.dom:!Hl(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}(ye.ie&&ye.ie_version<=11||ye.android&&ye.chrome)&&!n.state.selection.main.empty&&i.focusNode&&Il(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Jl(e.root);if(!t)return!1;let n=ye.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&SS(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let i=Hl(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&U3(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,xS),th&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),th&&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&&Qs(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 a=this.readMutation(l);a&&(a.typeOver&&(i=!0),t==-1?{from:t,to:n}=a:(t=Math.min(a.from,t),n=Math.max(a.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&Hl(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 Nv(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=h8(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!mc(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=tO(t,e.previousSibling||e.target.previousSibling,-1),i=tO(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(Tr)!=e.state.facet(Tr)&&(e.view.contentDOM.editContext=e.state.facet(Tr)?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 tO(r,e,t){for(;e;){let n=pt.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 nO(r,e){let t=e.startContainer,n=e.startOffset,i=e.endContainer,l=e.endOffset,a=r.docView.domAtPos(r.state.selection.main.anchor,1);return Il(a.node,a.offset,i,l)&&([t,n,i,l]=[i,l,t,n]),{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:l}}function SS(r,e){if(e.getComposedRanges){let i=e.getComposedRanges(r.root)[0];if(i)return nO(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?nO(r,t):null}class wS{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:a}=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=f8(e.state.sliceDoc(c,u),n.text,(f?i.from:i.to)-c,f?"end":null);if(!m){let y=q.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));mc(y,i)||e.dispatch({selection:y,userEvent:"select"});return}let O={from:m.from+c,to:m.toA+c,insert:We.of(n.text.slice(m.from,m.toB).split(`
|
|
63
|
-
`))};if((ye.mac||ye.android)&&O.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(O={from:c,to:u,insert:We.of([n.text.replace("."," ")])}),this.pendingContextChange=O,!e.state.readOnly){let y=this.to-this.from+(O.to-O.from+O.insert.length);N1(e,O,q.single(this.toEditorPos(n.selectionStart,y),this.toEditorPos(n.selectionEnd,y)))}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 a=this.toEditorPos(n.rangeStart),c=this.toEditorPos(n.rangeEnd);a<c;a++){let u=e.coordsForChar(a);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 a=l.underlineStyle,c=l.underlineThickness;if(!/none/i.test(a)&&!/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(a)?a+" ":a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${/thin/i.test(c)?1:2}px`;i.push(Ve.mark({attributes:{style:m}}).range(u,f))}}}e.dispatch({effects:t8.of(Ve.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=Jl(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,a,c,u,f)=>{if(n)return;let m=f.length-(a-l);if(i&&a>=i.to)if(i.from==l&&i.to==a&&i.insert.eq(f)){i=this.pendingContextChange=null,t+=m,this.to+=m;return}else i=null,this.revertPending(e.state);if(l+=t,a+=t,a<=this.from)this.from+=m,this.to+=m;else if(l<this.to){if(l<this.from||a>this.to||this.to-this.from+f.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(l),this.toContextPos(a),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 Se{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||q3(e.parent)||document,this.viewState=new Km(this,e.state||Ie.create(e)),e.scrollTo&&e.scrollTo.is(Za)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(xs).map(i=>new q0(i));for(let i of this.plugins)i.update(this);this.observer=new vS(this),this.inputState=new Wv(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Nm(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 kt?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 y of e){if(y.startState!=l)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");l=y.state}if(this.destroyed){this.viewState.state=l;return}let a=this.hasFocus,c=0,u=null;e.some(y=>y.annotation(y8))?(this.inputState.notifiedFocused=a,c=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,u=x8(l,a),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(Ie.phrases)!=this.state.facet(Ie.phrases))return this.setState(l);i=fc.create(this,l,e),i.flags|=c;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let y of e){if(O&&(O=O.map(y.changes)),y.scrollIntoView){let{main:S}=y.state.selection;O=new $s(S.empty?S:q.cursor(S.head,S.head>S.anchor?-1:1))}for(let S of y.effects)S.is(Za)&&(O=S.value.clip(this.state))}this.viewState.update(i,O),this.bidiCache=gc.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(Xl)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(y=>y.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Ra)!=i.state.facet(Ra)&&(this.viewState.mustMeasureContent=!0),(t||n||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!i.empty)for(let y of this.state.facet(Jh))try{y(i)}catch(S){mr(this.state,S,"update listener")}(u||m)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),m&&!h8(this,m)&&f.force&&Qs(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 Km(this,e),this.plugins=e.facet(xs).map(n=>new q0(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Nm(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(xs),n=e.state.facet(xs);if(t!=n){let i=[];for(let l of n){let a=t.indexOf(l);if(a<0)i.push(new q0(l));else{let c=this.plugins[a];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){mr(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:a}=this.viewState;Math.abs(i-this.viewState.scrollOffset)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let c=0;;c++){if(a<0)if(Ng(n||this.win))l=-1,a=this.viewState.heightMap.height;else{let S=this.viewState.scrollAnchorAt(i);l=S.from,a=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 mr(this.state,w),rO}}),O=fc.create(this,this.state,[]),y=!1;O.flags|=u,t?t.flags|=u:t=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),y=this.docView.update(O),y&&this.docViewUpdate());for(let S=0;S<f.length;S++)if(m[S]!=rO)try{let w=f[S];w.write&&w.write(m[S],this)}catch(w){mr(this.state,w)}if(y&&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,a=-1;continue}else{let w=((l<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(l).top)-a)/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),a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let c of this.state.facet(Jh))c(t)}get themeClasses(){return i1+" "+(this.state.facet(r1)?k8:w8)+" "+this.state.facet(Ra)}updateAttrs(){let e=iO(this,n8,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Tr)?"true":"false",class:"cm-content",style:`${ye.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),iO(this,L1,t);let n=this.observer.ignore(()=>{let i=Em(this.contentDOM,this.contentAttrs,t),l=Em(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(Se.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(Xl);let e=this.state.facet(Se.cspNonce);di.mount(this.root,this.styleModules.concat(yS).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 J0(this,e,_m(this,e,t,n))}moveByGroup(e,t){return J0(this,e,_m(this,e,t,n=>Ev(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 q.cursor(l.side(t,i)+e.from,l.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return Mv(this,e,t,n)}moveVertically(e,t,n){return J0(this,e,jv(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=t1(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),t1(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),a=l[pr.find(l,e-i.from,-1,t)];return hc(n,a.dir==yt.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(Jg)||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>kS)return Ig(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||Hg(l.isolates,n=Rm(this,e))))return l.order;n||(n=Rm(this,e));let i=rv(e.text,t,n);return this.bidiCache.push(new gc(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ye.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Xg(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 Za.of(new $s(typeof e=="number"?q.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 Za.of(new $s(q.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 mn.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return mn.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=di.newName(),i=[Ra.of(n),Xl.of(s1(`.${n}`,e))];return t&&t.dark&&i.push(r1.of(!0)),i}static baseTheme(e){return co.lowest(Xl.of(s1("."+i1,e,b8)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&pt.get(n)||pt.get(e);return((t=i==null?void 0:i.root)===null||t===void 0?void 0:t.view)||null}}Se.styleModule=Xl;Se.inputHandler=Gg;Se.clipboardInputFilter=V1;Se.clipboardOutputFilter=R1;Se.scrollHandler=e8;Se.focusChangeEffect=Kg;Se.perLineTextDirection=Jg;Se.exceptionSink=Ug;Se.updateListener=Jh;Se.editable=Tr;Se.mouseSelectionStyle=qg;Se.dragMovesSelection=Bg;Se.clickAddsSelectionRange=Fg;Se.decorations=_c;Se.blockWrappers=r8;Se.outerDecorations=X1;Se.atomicRanges=fo;Se.bidiIsolatedRanges=i8;Se.scrollMargins=s8;Se.darkTheme=r1;Se.cspNonce=we.define({combine:r=>r.length?r[0]:""});Se.contentAttributes=L1;Se.editorAttributes=n8;Se.lineWrapping=Se.contentAttributes.of({class:"cm-lineWrapping"});Se.announce=Ye.define();const kS=4096,rO={};class gc{constructor(e,t,n,i,l,a){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=l,this.order=a}static update(e,t){if(t.empty&&!e.some(l=>l.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:yt.LTR;for(let l=Math.max(0,e.length-10);l<e.length;l++){let a=e[l];a.dir==i&&!t.touchesRange(a.from,a.to)&&n.push(new gc(t.mapPos(a.from,1),t.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return n}}function iO(r,e,t){for(let n=r.state.facet(e),i=n.length-1;i>=0;i--){let l=n[i],a=typeof l=="function"?l(r):l;a&&M1(a,t)}return t}const bS=ye.mac?"mac":ye.windows?"win":ye.linux?"linux":"key";function QS(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,l,a,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))a=!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),a&&(n="Shift-"+n),n}function La(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 $S=co.default(Se.domEventHandlers({keydown(r,e){return $8(Q8(e.state),r,e,"editor")}})),D1=we.define({enables:$S}),sO=new WeakMap;function Q8(r){let e=r.facet(D1),t=sO.get(e);return t||sO.set(e,t=CS(e.reduce((n,i)=>n.concat(i),[]))),t}function PS(r,e,t){return $8(Q8(r.state),e,r,t)}let ai=null;const AS=4e3;function CS(r,e=bS){let t=Object.create(null),n=Object.create(null),i=(a,c)=>{let u=n[a];if(u==null)n[a]=c;else if(u!=c)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},l=(a,c,u,f,m)=>{var O,y;let S=t[a]||(t[a]=Object.create(null)),w=c.split(/ (?!$)/).map(C=>QS(C,e));for(let C=1;C<w.length;C++){let j=w.slice(0,C).join(" ");i(j,!0),S[j]||(S[j]={preventDefault:!0,stopPropagation:!1,run:[P=>{let Z=ai={view:P,prefix:j,scope:a};return setTimeout(()=>{ai==Z&&(ai=null)},AS),!0}]})}let b=w.join(" ");i(b,!1);let Q=S[b]||(S[b]={preventDefault:!1,stopPropagation:!1,run:((y=(O=S._any)===null||O===void 0?void 0:O.run)===null||y===void 0?void 0:y.slice())||[]});u&&Q.run.push(u),f&&(Q.preventDefault=!0),m&&(Q.stopPropagation=!0)};for(let a of r){let c=a.scope?a.scope.split(" "):["editor"];if(a.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}=a;for(let y in m)m[y].run.push(S=>O(S,l1))}let u=a[e]||a.key;if(u)for(let f of c)l(f,u,a.run,a.preventDefault,a.stopPropagation),a.shift&&l(f,"Shift-"+u,a.shift,a.preventDefault,a.stopPropagation)}return t}let l1=null;function $8(r,e,t,n){l1=e;let i=z3(e),l=Wi(i,0),a=ao(l)==i.length&&i!=" ",c="",u=!1,f=!1,m=!1;ai&&ai.view==t&&ai.scope==n&&(c=ai.prefix+" ",p8.indexOf(e.keyCode)<0&&(f=!0,ai=null));let O=new Set,y=Q=>{if(Q){for(let C of Q.run)if(!O.has(C)&&(O.add(C),C(t)))return Q.stopPropagation&&(m=!0),!0;Q.preventDefault&&(Q.stopPropagation&&(m=!0),f=!0)}return!1},S=r[n],w,b;return S&&(y(S[c+La(i,e,!a)])?u=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ye.windows&&e.ctrlKey&&e.altKey)&&!(ye.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(w=pi[e.keyCode])&&w!=i?(y(S[c+La(w,e,!0)])||e.shiftKey&&(b=Gl[e.keyCode])!=i&&b!=w&&y(S[c+La(b,e,!1)]))&&(u=!0):a&&e.shiftKey&&y(S[c+La(i,e,!0)])&&(u=!0),!u&&y(S._any)&&(u=!0)),f&&(u=!0),u&&m&&e.stopPropagation(),l1=null,u}function ZS(){return MS}const TS=Ve.line({class:"cm-activeLine"}),MS=mn.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(TS.range(i.from)),e=i.from)}return Ve.set(t)}},{decorations:r=>r.decorations}),lO=we.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 P8(r,e){let t=r.plugin(A8),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const A8=mn.fromClass(class{constructor(r){this.input=r.state.facet(yc),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(lO);this.top=new Xa(r,!0,e.topContainer),this.bottom=new Xa(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(lO);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Xa(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Xa(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(yc);if(t!=this.input){let n=t.filter(u=>u),i=[],l=[],a=[],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:a).push(m)}this.specs=n,this.panels=i,this.top.sync(l),this.bottom.sync(a);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=>Se.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Xa{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=oO(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=oO(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 oO(r){let e=r.nextSibling;return r.remove(),e}const yc=we.define({enables:A8});function ES(r,e){let t,n=new Promise(a=>t=a),i=a=>jS(a,e,t);r.state.field(nh,!1)?r.dispatch({effects:C8.of(i)}):r.dispatch({effects:Ye.appendConfig.of(nh.init(()=>[i]))});let l=Z8.of(i);return{close:l,result:n.then(a=>((r.win.queueMicrotask||(u=>r.win.setTimeout(u,10)))(()=>{r.state.field(nh).indexOf(i)>-1&&r.dispatch({effects:l})}),a))}}const nh=$n.define({create(){return[]},update(r,e){for(let t of e.effects)t.is(C8)?r=[t.value].concat(r):t.is(Z8)&&(r=r.filter(n=>n!=t.value));return r},provide:r=>yc.computeN([r],e=>e.field(r))}),C8=Ye.define(),Z8=Ye.define();function jS(r,e,t){let n=e.content?e.content(r,()=>a(null)):null;if(!n){if(n=Tt("form"),e.input){let c=Tt("input",e.input);/^(text|password|number|email|tel|url)$/.test(c.type)&&c.classList.add("cm-textfield"),c.name||(c.name="input"),n.appendChild(Tt("label",(e.label||"")+": ",c))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Tt("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(),a(null)):f.keyCode==13&&(f.preventDefault(),a(u))}),u.addEventListener("submit",f=>{f.preventDefault(),a(u)})}let l=Tt("div",n,Tt("button",{onclick:()=>a(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 a(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 Rr extends fi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Rr.prototype.elementClass="";Rr.prototype.toDOM=void 0;Rr.prototype.mapMode=Yt.TrackBefore;Rr.prototype.startSide=Rr.prototype.endSide=-1;Rr.prototype.point=!0;const Ja=we.define(),VS=we.define(),RS={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ze.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Fl=we.define();function LS(r){return[T8(),Fl.of({...RS,...r})]}const aO=we.define({combine:r=>r.some(e=>e)});function T8(r){return[XS]}const XS=mn.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(Fl).map(e=>new uO(r,e)),this.fixed=!r.state.facet(aO);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(aO)!=!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=ze.iter(this.view.state.facet(Ja),this.view.viewport.from),n=[],i=this.gutters.map(l=>new NS(l,this.view.viewport,-this.view.documentPadding.top));for(let l of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(l.type)){let a=!0;for(let c of l.type)if(c.type==pn.Text&&a){o1(t,n,c.from);for(let u of i)u.line(this.view,c,n);a=!1}else if(c.widget)for(let u of i)u.widget(this.view,c)}else if(l.type==pn.Text){o1(t,n,l.from);for(let a of i)a.line(this.view,l,n)}else if(l.widget)for(let a of i)a.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(Fl),t=r.state.facet(Fl),n=r.docChanged||r.heightChanged||r.viewportChanged||!ze.eq(r.startState.facet(Ja),r.state.facet(Ja),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 a=e.indexOf(l);a<0?i.push(new uO(this.view,l)):(this.gutters[a].update(r),i.push(this.gutters[a]))}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=>Se.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==yt.LTR?{left:n,right:i}:{right:n,left:i}})});function cO(r){return Array.isArray(r)?r:[r]}function o1(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class NS{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=ze.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,l=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==i.elements.length){let c=new M8(e,a,l,n);i.elements.push(c),i.dom.appendChild(c.dom)}else i.elements[this.i].update(e,a,l,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];o1(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 a=this.gutter;i.length==0&&!a.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(VS)){let a=l(e,t.widget,t);a&&(i||(i=[])).push(a)}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 uO{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,a;if(l!=this.dom&&this.dom.contains(l)){for(;l.parentNode!=this.dom;)l=l.parentNode;let u=l.getBoundingClientRect();a=(u.top+u.bottom)/2}else a=i.clientY;let c=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,c,i)&&i.preventDefault()});this.markers=cO(t.markers(e)),t.initialSpacer&&(this.spacer=new M8(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=cO(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!ze.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 M8{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":""),_S(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let l=0,a=0;;){let c=a,u=l<t.length?t[l++]:null,f=!1;if(u){let m=u.elementClass;m&&(n+=" "+m);for(let O=a;O<this.markers.length;O++)if(this.markers[O].compare(u)){c=O,f=!0;break}}else c=this.markers.length;for(;a<c;){let m=this.markers[a++];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&&a++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function _S(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 zS=we.define(),DS=we.define(),vs=we.define({combine(r){return Ds(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let l=n[i],a=t[i];n[i]=l?(c,u,f)=>l(c,u,f)||a(c,u,f):a}return n}})}});class rh extends Rr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ih(r,e){return r.state.facet(vs).formatNumber(e,r.state)}const WS=Fl.compute([vs],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(zS)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new rh(ih(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let i of e.state.facet(DS)){let l=i(e,t,n);if(l)return l}return null},lineMarkerChange:e=>e.startState.facet(vs)!=e.state.facet(vs),initialSpacer(e){return new rh(ih(e,hO(e.state.doc.lines)))},updateSpacer(e,t){let n=ih(t.view,hO(t.view.state.doc.lines));return n==e.number?e:new rh(n)},domEventHandlers:r.facet(vs).domEventHandlers,side:"before"}));function HS(r={}){return[vs.of(r),T8(),WS]}function hO(r){let e=9;for(;e<r;)e=e*10+9;return e}const IS=new class extends Rr{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},YS=Ja.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(IS.range(i)))}return ze.of(e)});function FS(){return YS}const E8=1024;let BS=0;class Rn{constructor(e,t){this.from=e,this.to=t}}class Xe{constructor(e={}){this.id=BS++,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=nn.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}Xe.closedBy=new Xe({deserialize:r=>r.split(" ")});Xe.openedBy=new Xe({deserialize:r=>r.split(" ")});Xe.group=new Xe({deserialize:r=>r.split(" ")});Xe.isolate=new Xe({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});Xe.contextHash=new Xe({perNode:!0});Xe.lookAhead=new Xe({perNode:!0});Xe.mounted=new Xe({perNode:!0});class Ps{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[Xe.mounted.id]}}const qS=Object.create(null);class nn{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):qS,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new nn(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(Xe.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(Xe.group),l=-1;l<(i?i.length:0);l++){let a=t[l<0?n.name:i[l]];if(a)return a}}}}nn.none=new nn("",Object.create(null),0,8);class W1{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 a=l(n);if(a){i||(i=Object.assign({},n.props));let c=a[1],u=a[0];u.combine&&u.id in i&&(c=u.combine(i[u.id],c)),i[u.id]=c}}t.push(i?new nn(n.name,i,n.id,n.flags):n)}return new W1(t)}}const Na=new WeakMap,fO=new WeakMap;var Ge;(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"})(Ge||(Ge={}));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[a,c]of l)this.props[typeof a=="number"?a:a.id]=c}}toString(){let e=Ps.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 xc(this.topNode,e)}cursorAt(e,t=0,n=0){let i=Na.get(this)||this.topNode,l=new xc(i);return l.moveTo(e,t),Na.set(this,l._tree),l}get topNode(){return new Bt(this,0,0,null)}resolve(e,t=0){let n=to(Na.get(this)||this.topNode,e,t,!1);return Na.set(this,n),n}resolveInner(e,t=0){let n=to(fO.get(this)||this.topNode,e,t,!0);return fO.set(this,n),n}resolveStack(e,t=0){return KS(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:l=this.length}=e,a=e.mode||0,c=(a&Ge.IncludeAnonymous)>0;for(let u=this.cursor(a|Ge.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:Y1(nn.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(nn.none,t,n,i)))}static build(e){return JS(e)}}at.empty=new at(nn.none,[],[],0);class H1{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 H1(this.buffer,this.index)}}class Oi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return nn.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 a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return l+"("+a.join(",")+")"}findChild(e,t,n,i,l){let{buffer:a}=this,c=-1;for(let u=e;u!=t&&!(j8(l,i,a[u+1],a[u+2])&&(c=u,n>0));u=a[u+3]);return c}slice(e,t,n){let i=this.buffer,l=new Uint16Array(t-e),a=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,a=Math.max(a,f)}return new Oi(l,a,this.set)}}function j8(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 to(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 a=!n&&r instanceof Bt&&r.index<0?null:r.parent;if(!a)return r;r=a}let l=n?0:Ge.IgnoreOverlays;if(n)for(let a=r,c=a.parent;c;a=c,c=a.parent)a instanceof Bt&&a.index<0&&((i=c.enter(e,t,l))===null||i===void 0?void 0:i.from)!=a.from&&(r=c);for(;;){let a=r.enter(e,t,l);if(!a)return r;r=a}}class V8{cursor(e=0){return new xc(this,e)}getChild(e,t=null,n=null){let i=dO(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return dO(this,e,t,n)}resolve(e,t=0){return to(this,e,t,!1)}resolveInner(e,t=0){return to(this,e,t,!0)}matchContext(e){return a1(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 Bt extends V8{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 a=this;;){for(let{children:c,positions:u}=a._tree,f=t>0?c.length:-1;e!=f;e+=t){let m=c[e],O=u[e]+a.from,y;if(!(!(l&Ge.EnterBracketed&&m instanceof at&&(y=Ps.get(m))&&!y.overlay&&y.bracketed&&n>=O&&n<=O+m.length)&&!j8(i,n,O,O+m.length))){if(m instanceof Oi){if(l&Ge.ExcludeBuffers)continue;let S=m.findChild(0,m.buffer.length,t,n-O,i);if(S>-1)return new Or(new US(a,m,e,O),null,S)}else if(l&Ge.IncludeAnonymous||!m.type.isAnonymous||I1(m)){let S;if(!(l&Ge.IgnoreMounts)&&(S=Ps.get(m))&&!S.overlay)return new Bt(S.tree,O,e,a);let w=new Bt(m,O,e,a);return l&Ge.IncludeAnonymous||!w.type.isAnonymous?w:w.nextChild(t<0?m.children.length-1:0,t,n,i,l)}}}if(l&Ge.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))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&Ge.IgnoreOverlays)&&(i=Ps.get(this._tree))&&i.overlay){let l=e-this.from,a=n&Ge.EnterBracketed&&i.bracketed;for(let{from:c,to:u}of i.overlay)if((t>0||a?c<=l:c<l)&&(t<0||a?u>=l:u>l))return new Bt(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 dO(r,e,t,n){let i=r.cursor(),l=[];if(!i.firstChild())return l;if(t!=null){for(let a=!1;!a;)if(a=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 a1(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 US{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class Or extends V8{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 Or(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&Ge.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 Or(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 Or(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 Or(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 a=n.buffer[this.index+1];e.push(n.slice(i,l,a)),t.push(0)}return new at(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function R8(r){if(!r.length)return null;let e=0,t=r[0];for(let l=1;l<r.length;l++){let a=r[l];(a.from>t.from||a.to<t.to)&&(t=a,e=l)}let n=t instanceof Bt&&t.index<0?null:t.parent,i=r.slice();return n?i[e]=n:i.splice(e,1),new GS(i,t)}class GS{constructor(e,t){this.heads=e,this.node=t}get next(){return R8(this.heads)}}function KS(r,e,t){let n=r.resolveInner(e,t),i=null;for(let l=n instanceof Bt?n:n.context.parent;l;l=l.parent)if(l.index<0){let a=l.parent;(i||(i=[n])).push(a.resolve(e,t)),l=a}else{let a=Ps.get(l.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let c=new Bt(a.tree,a.overlay[0].from+l.from,-1,l);(i||(i=[n])).push(to(c,e,t,!1))}}return i?R8(i):n}class xc{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&~Ge.EnterBracketed,e instanceof Bt)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 Bt?(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&Ge.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ge.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ge.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,a=e<0?-1:n._tree.children.length;l!=a;l+=e){let c=n._tree.children[l];if(this.mode&Ge.IncludeAnonymous||c instanceof Oi||!c.type.isAnonymous||I1(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 a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;t=a,n=l+1;break e}i=this.stack[--l]}for(let i=n;i<this.stack.length;i++)t=new Or(this.buffer,t,this.stack[i]);return this.bufferNode=new Or(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 a1(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 a1(this._tree,e,i);let a=n[t.buffer[this.stack[l]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function I1(r){return r.children.some(e=>e instanceof Oi||!e.type.isAnonymous||I1(e))}function JS(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=E8,reused:l=[],minRepeatType:a=n.types.length}=r,c=Array.isArray(t)?new H1(t,t.length):t,u=n.types,f=0,m=0;function O(X,_,E,R,Y,le){let{id:J,start:z,end:U,size:re}=c,K=m,ae=f;if(re<0)if(c.next(),re==-1){let $=l[J];E.push($),R.push(z-X);return}else if(re==-3){f=J;return}else if(re==-4){m=J;return}else throw new RangeError(`Unrecognized record size: ${re}`);let ce=u[J],I,ee,F=z-X;if(U-z<=i&&(ee=Q(c.pos-_,Y))){let $=new Uint16Array(ee.size-ee.skip),L=c.pos-ee.size,G=$.length;for(;c.pos>L;)G=C(ee.start,$,G);I=new Oi($,U-ee.start,n),F=ee.start-X}else{let $=c.pos-re;c.next();let L=[],G=[],se=J>=a?J:-1,fe=0,$e=U;for(;c.pos>$;)se>=0&&c.id==se&&c.size>=0?(c.end<=$e-i&&(w(L,G,z,fe,c.end,$e,se,K,ae),fe=L.length,$e=c.end),c.next()):le>2500?y(z,$,L,G):O(z,$,L,G,se,le+1);if(se>=0&&fe>0&&fe<L.length&&w(L,G,z,fe,z,$e,se,K,ae),L.reverse(),G.reverse(),se>-1&&fe>0){let ue=S(ce,ae);I=Y1(ce,L,G,0,L.length,0,U-z,ue,ue)}else I=b(ce,L,G,U-z,K-U,ae)}E.push(I),R.push(F)}function y(X,_,E,R){let Y=[],le=0,J=-1;for(;c.pos>_;){let{id:z,start:U,end:re,size:K}=c;if(K>4)c.next();else{if(J>-1&&U<J)break;J<0&&(J=re-i),Y.push(z,U,re),le++,c.next()}}if(le){let z=new Uint16Array(le*4),U=Y[Y.length-2];for(let re=Y.length-3,K=0;re>=0;re-=3)z[K++]=Y[re],z[K++]=Y[re+1]-U,z[K++]=Y[re+2]-U,z[K++]=K;E.push(new Oi(z,Y[2]-U,n)),R.push(U-X)}}function S(X,_){return(E,R,Y)=>{let le=0,J=E.length-1,z,U;if(J>=0&&(z=E[J])instanceof at){if(!J&&z.type==X&&z.length==Y)return z;(U=z.prop(Xe.lookAhead))&&(le=R[J]+z.length+U)}return b(X,E,R,Y,le,_)}}function w(X,_,E,R,Y,le,J,z,U){let re=[],K=[];for(;X.length>R;)re.push(X.pop()),K.push(_.pop()+E-Y);X.push(b(n.types[J],re,K,le-Y,z-le,U)),_.push(Y-E)}function b(X,_,E,R,Y,le,J){if(le){let z=[Xe.contextHash,le];J=J?[z].concat(J):[z]}if(Y>25){let z=[Xe.lookAhead,Y];J=J?[z].concat(J):[z]}return new at(X,_,E,R,J)}function Q(X,_){let E=c.fork(),R=0,Y=0,le=0,J=E.end-i,z={size:0,start:0,skip:0};e:for(let U=E.pos-X;E.pos>U;){let re=E.size;if(E.id==_&&re>=0){z.size=R,z.start=Y,z.skip=le,le+=4,R+=4,E.next();continue}let K=E.pos-re;if(re<0||K<U||E.start<J)break;let ae=E.id>=a?4:0,ce=E.start;for(E.next();E.pos>K;){if(E.size<0)if(E.size==-3||E.size==-4)ae+=4;else break e;else E.id>=a&&(ae+=4);E.next()}Y=ce,R+=re,le+=ae}return(_<0||R==X)&&(z.size=R,z.start=Y,z.skip=le),z.size>4?z:void 0}function C(X,_,E){let{id:R,start:Y,end:le,size:J}=c;if(c.next(),J>=0&&R<a){let z=E;if(J>4){let U=c.pos-(J-4);for(;c.pos>U;)E=C(X,_,E)}_[--E]=z,_[--E]=le-X,_[--E]=Y-X,_[--E]=R}else J==-3?f=R:J==-4&&(m=R);return E}let j=[],P=[];for(;c.pos>0;)O(r.start||0,r.bufferStart||0,j,P,-1,0);let Z=(e=r.length)!==null&&e!==void 0?e:j.length?P[0]+j[0].length:0;return new at(u[r.topID],j.reverse(),P.reverse(),Z)}const pO=new WeakMap;function ec(r,e){if(!r.isAnonymous||e instanceof Oi||e.type!=r)return 1;let t=pO.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof at)){t=1;break}t+=ec(r,n)}pO.set(e,t)}return t}function Y1(r,e,t,n,i,l,a,c,u){let f=0;for(let w=n;w<i;w++)f+=ec(r,e[w]);let m=Math.ceil(f*1.5/8),O=[],y=[];function S(w,b,Q,C,j){for(let P=Q;P<C;){let Z=P,X=b[P],_=ec(r,w[P]);for(P++;P<C;P++){let E=ec(r,w[P]);if(_+E>=m)break;_+=E}if(P==Z+1){if(_>m){let E=w[Z];S(E.children,E.positions,0,E.children.length,b[Z]+j);continue}O.push(w[Z])}else{let E=b[P-1]+w[P-1].length-X;O.push(Y1(r,w,b,Z,P,X,E,null,u))}y.push(X+j-l)}}return S(e,t,n,i,0),(c||u)(O,y,a)}class L8{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 Or?this.setBuffer(e.context.buffer,e.index,t):e instanceof Bt&&this.map.set(e.tree,t)}get(e){return e instanceof Or?this.getBuffer(e.context.buffer,e.index):e instanceof Bt?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 jr{constructor(e,t,n,i,l=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(l?1:0)|(a?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 jr(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,a=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(;a&&a.from<O;){let y=a;if(u>=y.from||O<=y.to||f){let S=Math.max(y.from,u)-f,w=Math.min(y.to,O)-f;y=S>=w?null:new jr(S,w,y.tree,y.offset+f,c>0,!!m)}if(y&&i.push(y),a.to>O)break;a=l<e.length?e[l++]:null}if(!m)break;u=m.toA,f=m.toA-m.toB}return i}}class X8{startParse(e,t,n){return typeof e=="string"&&(e=new ew(e)),n=n?n.length?n.map(i=>new Rn(i.from,i.to)):[new Rn(0,0)]:[new Rn(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 ew{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 tw(r){return(e,t,n,i)=>new rw(e,r,t,n,i)}class mO{constructor(e,t,n,i,l,a){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=i,this.target=l,this.from=a}}function OO(r){if(!r.length||r.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}class nw{constructor(e,t,n,i,l,a,c,u){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=l,this.bracketed=a,this.target=c,this.prev=u,this.depth=0,this.ranges=[]}}const c1=new Xe({perNode:!0});class rw{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([[c1,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[Xe.mounted.id]=new Ps(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 lw(this.fragments),t=null,n=null,i=new xc(new Bt(this.baseTree,this.ranges[0].from,0,null),Ge.IncludeAnonymous|Ge.IgnoreMounts);e:for(let l,a;;){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,y=m.to+f.pos;O>=i.from&&y<=i.to&&!t.ranges.some(S=>S.from<y&&S.to>O)&&t.ranges.push({from:O,to:y})}}c=!1}else if(n&&(a=iw(n.ranges,i.from,i.to)))c=a!=2;else if(!i.type.isAnonymous&&(l=this.nest(i,this.input))&&(i.from<i.to||!l.overlay)){i.tree||(sw(i),t&&t.depth++,n&&n.depth++);let f=e.findMounts(i.from,l.parser);if(typeof l.overlay=="function")t=new nw(l.parser,l.overlay,f,this.inner.length,i.from,!!l.bracketed,i.tree,t);else{let m=xO(this.ranges,l.overlay||(i.from<i.to?[new Rn(i.from,i.to)]:[]));m.length&&OO(m),(m.length||!l.overlay)&&this.inner.push(new mO(l.parser,m.length?l.parser.startParse(this.input,vO(f,m),m):l.parser.startParse(""),l.overlay?l.overlay.map(O=>new Rn(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 Rn(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=xO(this.ranges,t.ranges);f.length&&(OO(f),this.inner.splice(t.index,0,new mO(t.parser,t.parser.startParse(this.input,vO(t.mounts,f),f),t.ranges.map(m=>new Rn(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 iw(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 gO(r,e,t,n,i,l){if(e<t){let a=r.buffer[e+1];n.push(r.slice(e,t,a)),i.push(a-l)}}function sw(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),a=i.children[l],c=a.buffer,u=[l];function f(m,O,y,S,w,b){let Q=t[b],C=[],j=[];gO(a,m,Q,C,j,S);let P=c[Q+1],Z=c[Q+2];u.push(C.length);let X=b?f(Q+4,c[Q+3],a.set.types[c[Q]],P,Z-P,b-1):e.toTree();return C.push(X),j.push(P-S),gO(a,c[Q+3],O,C,j,S),new at(y,C,j,w)}i.children[l]=f(0,c.length,nn.none,0,a.length,t.length-1);for(let m of u){let O=r.tree.children[m],y=r.tree.positions[m];r.yield(new Bt(O,y+r.from,m,r._tree))}}class yO{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Ge.IncludeAnonymous|Ge.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Ge.IgnoreOverlays|Ge.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 lw=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(c1))!==null&&t!==void 0?t:n.to,this.inner=new yO(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(c1))!==null&&e!==void 0?e:t.to,this.inner=new yO(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 a=(n=l.tree)===null||n===void 0?void 0:n.prop(Xe.mounted);if(a&&a.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:a})}}}return i}};function xO(r,e){let t=null,n=e;for(let i=1,l=0;i<r.length;i++){let a=r[i-1].to,c=r[i].from;for(;l<n.length;l++){let u=n[l];if(u.from>=c)break;u.to<=a||(t||(n=t=e.slice()),u.from<a?(t[l]=new Rn(u.from,a),u.to>c&&t.splice(l+1,0,new Rn(c,u.to))):u.to>c?t[l--]=new Rn(c,u.to):t.splice(l--,1))}}return n}function ow(r,e,t,n){let i=0,l=0,a=!1,c=!1,u=-1e9,f=[];for(;;){let m=i==r.length?1e9:a?r[i].to:r[i].from,O=l==e.length?1e9:c?e[l].to:e[l].from;if(a!=c){let y=Math.max(u,t),S=Math.min(m,O,n);y<S&&f.push(new Rn(y,S))}if(u=Math.min(m,O),u==1e9)break;m==u&&(a?(a=!1,i++):a=!0),O==u&&(c?(c=!1,l++):c=!0)}return f}function vO(r,e){let t=[];for(let{pos:n,mount:i,frag:l}of r){let a=n+(i.overlay?i.overlay[0].from:0),c=a+i.tree.length,u=Math.max(l.from,a),f=Math.min(l.to,c);if(i.overlay){let m=i.overlay.map(y=>new Rn(y.from+n,y.to+n)),O=ow(e,m,u,f);for(let y=0,S=u;;y++){let w=y==O.length,b=w?f:O[y].from;if(b>S&&t.push(new jr(S,b,i.tree,-a,l.from>=S||l.openStart,l.to<=b||l.openEnd)),w)break;S=O[y].to}}else t.push(new jr(u,f,i.tree,-a,l.from>=a||l.openStart,l.to<=c||l.openEnd))}return t}let aw=0;class jn{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=aw++}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 jn&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let i=new jn(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 vc(e);return n=>n.modified.indexOf(t)>-1?n:vc.get(n.base||n,n.modified.concat(t).sort((i,l)=>i.id-l.id))}}let cw=0;class vc{constructor(e){this.name=e,this.instances=[],this.id=cw++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(c=>c.base==e&&uw(t,c.modified));if(n)return n;let i=[],l=new jn(e.name,i,e,t);for(let c of t)c.instances.push(l);let a=hw(t);for(let c of e.set)if(!c.modified.length)for(let u of a)i.push(vc.get(c,u));return l}}function uw(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function hw(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 Hc(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=[],a=2,c=i;for(let O=0;;){if(c=="..."&&O>0&&O+3==i.length){a=1;break}let y=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!y)throw new RangeError("Invalid path: "+i);if(l.push(y[0]=="*"?"":y[0][0]=='"'?JSON.parse(y[0]):y[0]),O+=y[0].length,O==i.length)break;let S=i[O++];if(O==i.length&&S=="!"){a=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 no(n,a,u>0?l.slice(0,u):null);e[f]=m.sort(e[f])}}return N8.add(e)}const N8=new Xe({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 no(i.tags,i.mode,i.context);t?t.next=l:n=l,t=l}return n}});class no{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}}no.empty=new no([],2,null);function _8(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 a of l.tag)t[a.id]=l.class;let{scope:n,all:i=null}=e||{};return{style:l=>{let a=i;for(let c of l)for(let u of c.set){let f=t[u.id];if(f){a=a?a+" "+f:f;break}}return a},scope:n}}function fw(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function dw(r,e,t,n=0,i=r.length){let l=new pw(n,Array.isArray(e)?e:[e],t);l.highlightRange(r.cursor(),n,i,"",l.highlighters),l.flush(i)}class pw{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:a,from:c,to:u}=e;if(c>=n||u<=t)return;a.isTop&&(l=this.highlighters.filter(S=>!S.scope||S.scope(a)));let f=i,m=mw(e)||no.empty,O=fw(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 y=e.tree&&e.tree.prop(Xe.mounted);if(y&&y.overlay){let S=e.node.enter(y.overlay[0].from+c,1),w=this.highlighters.filter(Q=>!Q.scope||Q.scope(y.tree.type)),b=e.firstChild();for(let Q=0,C=c;;Q++){let j=Q<y.overlay.length?y.overlay[Q]:null,P=j?j.from+c:u,Z=Math.max(t,C),X=Math.min(n,P);if(Z<X&&b)for(;e.from<X&&(this.highlightRange(e,Z,X,i,l),this.startSpan(Math.min(X,e.to),f),!(e.to>=P||!e.nextSibling())););if(!j||P>n)break;C=j.to+c,C>t&&(this.highlightRange(S.cursor(),Math.max(t,j.from+c),Math.min(n,C),"",w),this.startSpan(Math.min(n,C),f))}b&&e.parent()}else if(e.firstChild()){y&&(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 mw(r){let e=r.type.prop(N8);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const de=jn.define,_a=de(),li=de(),SO=de(li),wO=de(li),oi=de(),za=de(oi),sh=de(oi),ur=de(),Ei=de(ur),ar=de(),cr=de(),u1=de(),El=de(u1),Da=de(),M={comment:_a,lineComment:de(_a),blockComment:de(_a),docComment:de(_a),name:li,variableName:de(li),typeName:SO,tagName:de(SO),propertyName:wO,attributeName:de(wO),className:de(li),labelName:de(li),namespace:de(li),macroName:de(li),literal:oi,string:za,docString:de(za),character:de(za),attributeValue:de(za),number:sh,integer:de(sh),float:de(sh),bool:de(oi),regexp:de(oi),escape:de(oi),color:de(oi),url:de(oi),keyword:ar,self:de(ar),null:de(ar),atom:de(ar),unit:de(ar),modifier:de(ar),operatorKeyword:de(ar),controlKeyword:de(ar),definitionKeyword:de(ar),moduleKeyword:de(ar),operator:cr,derefOperator:de(cr),arithmeticOperator:de(cr),logicOperator:de(cr),bitwiseOperator:de(cr),compareOperator:de(cr),updateOperator:de(cr),definitionOperator:de(cr),typeOperator:de(cr),controlOperator:de(cr),punctuation:u1,separator:de(u1),bracket:El,angleBracket:de(El),squareBracket:de(El),paren:de(El),brace:de(El),content:ur,heading:Ei,heading1:de(Ei),heading2:de(Ei),heading3:de(Ei),heading4:de(Ei),heading5:de(Ei),heading6:de(Ei),contentSeparator:de(ur),list:de(ur),quote:de(ur),emphasis:de(ur),strong:de(ur),link:de(ur),monospace:de(ur),strikethrough:de(ur),inserted:de(),deleted:de(),changed:de(),invalid:de(),meta:Da,documentMeta:de(Da),annotation:de(Da),processingInstruction:de(Da),definition:jn.defineModifier("definition"),constant:jn.defineModifier("constant"),function:jn.defineModifier("function"),standard:jn.defineModifier("standard"),local:jn.defineModifier("local"),special:jn.defineModifier("special")};for(let r in M){let e=M[r];e instanceof jn&&(e.name=r)}_8([{tag:M.link,class:"tok-link"},{tag:M.heading,class:"tok-heading"},{tag:M.emphasis,class:"tok-emphasis"},{tag:M.strong,class:"tok-strong"},{tag:M.keyword,class:"tok-keyword"},{tag:M.atom,class:"tok-atom"},{tag:M.bool,class:"tok-bool"},{tag:M.url,class:"tok-url"},{tag:M.labelName,class:"tok-labelName"},{tag:M.inserted,class:"tok-inserted"},{tag:M.deleted,class:"tok-deleted"},{tag:M.literal,class:"tok-literal"},{tag:M.string,class:"tok-string"},{tag:M.number,class:"tok-number"},{tag:[M.regexp,M.escape,M.special(M.string)],class:"tok-string2"},{tag:M.variableName,class:"tok-variableName"},{tag:M.local(M.variableName),class:"tok-variableName tok-local"},{tag:M.definition(M.variableName),class:"tok-variableName tok-definition"},{tag:M.special(M.variableName),class:"tok-variableName2"},{tag:M.definition(M.propertyName),class:"tok-propertyName tok-definition"},{tag:M.typeName,class:"tok-typeName"},{tag:M.namespace,class:"tok-namespace"},{tag:M.className,class:"tok-className"},{tag:M.macroName,class:"tok-macroName"},{tag:M.propertyName,class:"tok-propertyName"},{tag:M.operator,class:"tok-operator"},{tag:M.comment,class:"tok-comment"},{tag:M.meta,class:"tok-meta"},{tag:M.invalid,class:"tok-invalid"},{tag:M.punctuation,class:"tok-punctuation"}]);var lh;const Ss=new Xe;function z8(r){return we.define({combine:r?e=>e.concat(r):void 0})}const F1=new Xe;class Un{constructor(e,t,n=[],i=""){this.data=e,this.name=i,Ie.prototype.hasOwnProperty("tree")||Object.defineProperty(Ie.prototype,"tree",{get(){return xt(this)}}),this.parser=t,this.extension=[gi.of(this),Ie.languageData.of((l,a,c)=>{let u=kO(l,a,c),f=u.type.prop(Ss);if(!f)return[];let m=l.facet(f),O=u.type.prop(F1);if(O){let y=u.resolve(a-u.from,c);for(let S of O)if(S.test(y,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 kO(e,t,n).type.prop(Ss)==this.data}findRegions(e){let t=e.facet(gi);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,a)=>{if(l.prop(Ss)==this.data){n.push({from:a,to:a+l.length});return}let c=l.prop(Xe.mounted);if(c){if(c.tree.prop(Ss)==this.data){if(c.overlay)for(let u of c.overlay)n.push({from:u.from+a,to:u.to+a});else n.push({from:a,to:a+l.length});return}else if(c.overlay){let u=n.length;if(i(c.tree,c.overlay[0].from+a),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]+a)}};return i(xt(e),0),n}get allowsNesting(){return!0}}Un.setState=Ye.define();function kO(r,e,t){let n=r.facet(gi),i=xt(r).topNode;if(!n||n.allowsNesting)for(let l=i;l;l=l.enter(e,t,Ge.ExcludeBuffers|Ge.EnterBracketed))l.type.isTop&&(i=l);return i}class js extends Un{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=z8(e.languageData);return new js(t,e.parser.configure({props:[Ss.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new js(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function xt(r){let e=r.field(Un.state,!1);return e?e.tree:at.empty}class Ow{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 jl=null;class Sc{constructor(e,t,n=[],i,l,a,c,u){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=l,this.viewport=a,this.skipped=c,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Sc(e,t,[],at.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Ow(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(jr.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(jr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=jl;jl=this;try{return e()}finally{jl=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=bO(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:l,viewport:a,skipped:c}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((f,m,O,y)=>u.push({fromA:f,toA:m,fromB:O,toB:y})),n=jr.applyChanges(n,u),i=at.empty,l=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.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 Sc(this.parser,t,n,i,l,a,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=bO(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 X8{createParse(t,n,i){let l=i[0].from,a=i[i.length-1].to;return{parsedPos:l,advance(){let u=jl;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=a,new at(nn.none,[],[],a-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 jl}}function bO(r,e,t){return jr.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class Vs{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 Vs(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Sc.create(e.facet(gi).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Vs(n)}}Un.state=$n.define({create:Vs.init,update(r,e){for(let t of e.effects)if(t.is(Un.setState))return t.value;return e.startState.facet(gi)!=e.state.facet(gi)?Vs.init(e.state):r.apply(e)}});let D8=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(D8=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const oh=typeof navigator<"u"&&(!((lh=navigator.scheduling)===null||lh===void 0)&&lh.isInputPending)?()=>navigator.scheduling.isInputPending():null,gw=mn.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(Un.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(Un.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=D8(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(Un.state);if(l.tree==l.context.tree&&l.context.isDone(i+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!oh?Math.max(25,e.timeRemaining()-5):1e9),c=l.context.treeLen<i&&n.doc.length>i+1e3,u=l.context.work(()=>oh&&oh()||Date.now()>a,i+(c?0:1e5));this.chunkBudget-=Date.now()-t,(u||this.chunkBudget<=0)&&(l.context.takeTree(),this.view.dispatch({effects:Un.setState.of(new Vs(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=>mr(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()}}}),gi=we.define({combine(r){return r.length?r[0]:null},enables:r=>[Un.state,gw,Se.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class B1{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const yw=we.define(),Ic=we.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 wc(r){let e=r.facet(Ic);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ro(r,e){let t="",n=r.tabSize,i=r.facet(Ic)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let l=0;l<e;l++)t+=i;return t}function q1(r,e){r instanceof Ie&&(r=new Yc(r));for(let n of r.state.facet(yw)){let i=n(r,e);if(i!==void 0)return i}let t=xt(r.state);return t.length>=e?xw(r,t,e):null}class Yc{constructor(e,t={}){this.state=e,this.options=t,this.unit=wc(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),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(l+=a-this.countColumn(n,n.search(/\S|$/))),l}countColumn(e,t=e.length){return Xc(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 a=l(i);if(a>-1)return a}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Fc=new Xe;function xw(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 a=i;a&&!(a.from<n.node.from||a.to>n.node.to||a.from==n.node.from&&a.type==n.node.type);a=a.parent)l.push(a);for(let a=l.length-1;a>=0;a--)n={node:l[a],next:n}}return W8(n,r,t)}function W8(r,e,t){for(let n=r;n;n=n.next){let i=Sw(n.node);if(i)return i(U1.create(e,t,n))}return 0}function vw(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Sw(r){let e=r.type.prop(Fc);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(Xe.closedBy))){let i=r.lastChild,l=i&&n.indexOf(i.name)>-1;return a=>H8(a,!0,1,void 0,l&&!vw(a)?i.from:void 0)}return r.parent==null?ww:null}function ww(){return 0}class U1 extends Yc{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 U1(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(kw(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return W8(this.context.next,this.base,this.pos)}}function kw(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function bw(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),a=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>=a)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 Qw({closing:r,align:e=!0,units:t=1}){return n=>H8(n,e,t,r)}function H8(r,e,t,n,i){let l=r.textAfter,a=l.match(/^\s*/)[0].length,c=n&&l.slice(a,a+n.length)==n||i==r.pos+a,u=e?bw(r):null;return u?c?r.column(u.from):r.column(u.to):r.baseIndent+(c?0:r.unit*t)}const $w=r=>r.baseIndent;function tc({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const Pw=200;function Aw(){return Ie.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+Pw)return r;let l=t.sliceString(i.from,n);if(!e.some(f=>f.test(l)))return r;let{state:a}=r,c=-1,u=[];for(let{head:f}of a.selection.ranges){let m=a.doc.lineAt(f);if(m.from==c)continue;c=m.from;let O=q1(a,m.from);if(O==null)continue;let y=/^\s*/.exec(m.text)[0],S=ro(a,O);y!=S&&u.push({from:m.from,to:m.from+y.length,insert:S})}return u.length?[r,{changes:u,sequential:!0}]:r})}const Cw=we.define(),Bc=new Xe;function I8(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 Zw(r,e,t){let n=xt(r);if(n.length<t)return null;let i=n.resolveStack(t,1),l=null;for(let a=i;a;a=a.next){let c=a.node;if(c.to<=t||c.from>t)continue;if(l&&c.from<e)break;let u=c.type.prop(Bc);if(u&&(c.to<n.length-50||n.length==r.doc.length||!Tw(c))){let f=u(c,r);f&&f.from<=t&&f.from>=e&&f.to>t&&(l=f)}}return l}function Tw(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function QO(r,e,t){for(let n of r.facet(Cw)){let i=n(r,e,t);if(i)return i}return Zw(r,e,t)}function Y8(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 F8=Ye.define({map:Y8}),G1=Ye.define({map:Y8}),kc=$n.define({create(){return Ve.none},update(r,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,n)=>r=$O(r,t,n)),r=r.map(e.changes);for(let t of e.effects)if(t.is(F8)&&!Mw(r,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(B8),i=n?Ve.replace({widget:new Vw(n(e.state,t.value))}):PO;r=r.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(G1)&&(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=$O(r,e.selection.main.head)),r},provide:r=>Se.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(PO.range(n,i))}return Ve.set(e,!0)}});function $O(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 h1(r,e,t){var n;let i=null;return(n=r.field(kc,!1))===null||n===void 0||n.between(e,t,(l,a)=>{(!i||i.from>l)&&(i={from:l,to:a})}),i}function Mw(r,e,t){let n=!1;return r.between(e,e,(i,l)=>{i==e&&l==t&&(n=!0)}),n}const Ew={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},B8=we.define({combine(r){return Ds(r,Ew)}});function jw(r){return[kc,Xw]}function q8(r,e){let{state:t}=r,n=t.facet(B8),i=a=>{let c=r.lineBlockAt(r.posAtDOM(a.target)),u=h1(r.state,c.from,c.to);u&&r.dispatch({effects:G1.of(u)}),a.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 PO=Ve.replace({widget:new class extends Hi{toDOM(r){return q8(r,null)}}});class Vw extends Hi{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return q8(e,this.value)}}const Rw={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ah extends Rr{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 Lw(r={}){let e={...Rw,...r},t=new ah(e,!0),n=new ah(e,!1),i=mn.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(gi)!=a.state.facet(gi)||a.startState.field(kc,!1)!=a.state.field(kc,!1)||xt(a.startState)!=xt(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let c=new Ni;for(let u of a.viewportLineBlocks){let f=h1(a.state,u.from,u.to)?n:QO(a.state,u.from,u.to)?t:null;f&&c.add(u.from,u.from,f)}return c.finish()}}),{domEventHandlers:l}=e;return[i,LS({class:"cm-foldGutter",markers(a){var c;return((c=a.plugin(i))===null||c===void 0?void 0:c.markers)||ze.empty},initialSpacer(){return new ah(e,!1)},domEventHandlers:{...l,click:(a,c,u)=>{if(l.click&&l.click(a,c,u))return!0;let f=h1(a.state,c.from,c.to);if(f)return a.dispatch({effects:G1.of(f)}),!0;let m=QO(a.state,c.from,c.to);return m?(a.dispatch({effects:F8.of(m)}),!0):!1}}}),jw()]}const Xw=Se.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 qc{constructor(e,t){this.specs=e;let n;function i(c){let u=di.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,a=t.scope;this.scope=a instanceof Un?c=>c.prop(Ss)==a.data:a?c=>c==a:void 0,this.style=_8(e.map(c=>({tag:c.tag,class:c.class||i(Object.assign({},c,{tag:null}))})),{all:l}).style,this.module=n?new di(n):null,this.themeType=t.themeType}static define(e,t){return new qc(e,t||{})}}const f1=we.define(),Nw=we.define({combine(r){return r.length?[r[0]]:null}});function ch(r){let e=r.facet(f1);return e.length?e:r.facet(Nw)}function _w(r,e){let t=[Dw],n;return r instanceof qc&&(r.module&&t.push(Se.styleModule.of(r.module)),n=r.themeType),n?t.push(f1.computeN([Se.darkTheme],i=>i.facet(Se.darkTheme)==(n=="dark")?[r]:[])):t.push(f1.of(r)),t}class zw{constructor(e){this.markCache=Object.create(null),this.tree=xt(e.state),this.decorations=this.buildDeco(e,ch(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=xt(e.state),n=ch(e.state),i=n!=ch(e.startState),{viewport:l}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length<l.to&&!i&&t.type==this.tree.type&&a>=l.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(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 Ve.none;let n=new Ni;for(let{from:i,to:l}of e.visibleRanges)dw(this.tree,t,(a,c,u)=>{n.add(a,c,this.markCache[u]||(this.markCache[u]=Ve.mark({class:u})))},i,l);return n.finish()}}const Dw=co.high(mn.fromClass(zw,{decorations:r=>r.decorations})),Ww=Se.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),U8=1e4,G8="()[]{}",K8=we.define({combine(r){return Ds(r,{afterCursor:!0,brackets:G8,maxScanDistance:U8,renderMatch:Yw})}}),Hw=Ve.mark({class:"cm-matchingBracket"}),Iw=Ve.mark({class:"cm-nonmatchingBracket"});function Yw(r){let e=[],t=r.matched?Hw:Iw;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 AO(r){let e=[],t=r.facet(K8);for(let n of r.selection.ranges){if(!n.empty)continue;let i=gr(r,n.head,-1,t)||n.head>0&&gr(r,n.head-1,1,t)||t.afterCursor&&(gr(r,n.head,1,t)||n.head<r.doc.length&&gr(r,n.head+1,-1,t));i&&(e=e.concat(t.renderMatch(i,r)))}return Ve.set(e,!0)}const Fw=mn.fromClass(class{constructor(r){this.paused=!1,this.decorations=AO(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=AO(r.state),this.paused=!1))}},{decorations:r=>r.decorations}),Bw=[Fw,Ww];function qw(r={}){return[K8.of(r),Bw]}const J8=new Xe;function d1(r,e,t){let n=r.prop(e<0?Xe.openedBy:Xe.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 p1(r){let e=r.type.prop(J8);return e?e(r.node):r}function gr(r,e,t,n={}){let i=n.maxScanDistance||U8,l=n.brackets||G8,a=xt(r),c=a.resolveInner(e,t);for(let u=c;u;u=u.parent){let f=d1(u.type,t,l);if(f&&u.from<u.to){let m=p1(u);if(m&&(t>0?e>=m.from&&e<m.to:e>m.from&&e<=m.to))return Uw(r,e,t,u,m,f,l)}}return Gw(r,e,t,a,c.type,i,l)}function Uw(r,e,t,n,i,l,a){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=p1(m);return{start:u,end:O?{from:O.from,to:O.to}:void 0,matched:!0}}else if(d1(m.type,t,a))f++;else if(d1(m.type,-t,a)){if(f==0){let O=p1(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 Gw(r,e,t,n,i,l,a){let c=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),u=a.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 y=0;!m.next().done&&y<=l;){let S=m.value;t<0&&(y+=S.length);let w=e+y*t;for(let b=t>0?0:S.length-1,Q=t>0?S.length:-1;b!=Q;b+=t){let C=a.indexOf(S[b]);if(!(C<0||n.resolveInner(w+b,1).type!=i))if(C%2==0==t>0)O++;else{if(O==1)return{start:f,end:{from:w+b,to:w+b+1},matched:C>>1==u>>1};O--}}t>0&&(y+=S.length)}return m.done?{start:f,matched:!1}:null}const Kw=Object.create(null),CO=[nn.none],ZO=[],TO=Object.create(null),Jw=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"]])Jw[r]=ek(Kw,e);function uh(r,e){ZO.indexOf(r)>-1||(ZO.push(r),console.warn(e))}function ek(r,e){let t=[];for(let c of e.split(" ")){let u=[];for(let f of c.split(".")){let m=r[f]||M[f];m?typeof m=="function"?u.length?u=u.map(m):uh(f,`Modifier ${f} used at start of tag`):u.length?uh(f,`Tag ${f} used as modifier`):u=Array.isArray(m)?m:[m]:uh(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=TO[i];if(l)return l.id;let a=TO[i]=nn.define({id:CO.length,name:n,props:[Hc({[n]:t})]});return CO.push(a),a.id}yt.RTL,yt.LTR;const tk=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=J1(r.state,t.from);return n.line?nk(r):n.block?ik(r):!1};function K1(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 nk=K1(ok,0),rk=K1(e4,0),ik=K1((r,e)=>e4(r,e,lk(e)),0);function J1(r,e){let t=r.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const Vl=50;function sk(r,{open:e,close:t},n,i){let l=r.sliceDoc(n-Vl,n),a=r.sliceDoc(i,i+Vl),c=/\s*$/.exec(l)[0].length,u=/^\s*/.exec(a)[0].length,f=l.length-c;if(l.slice(f-e.length,f)==e&&a.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*Vl?m=O=r.sliceDoc(n,i):(m=r.sliceDoc(n,n+Vl),O=r.sliceDoc(i-Vl,i));let y=/^\s*/.exec(m)[0].length,S=/\s*$/.exec(O)[0].length,w=O.length-S-t.length;return m.slice(y,y+e.length)==e&&O.slice(w,w+t.length)==t?{open:{pos:n+y+e.length,margin:/\s/.test(m.charAt(y+e.length))?1:0},close:{pos:i-S-t.length,margin:/\s/.test(O.charAt(w-1))?1:0}}:null}function lk(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 e4(r,e,t=e.selection.ranges){let n=t.map(l=>J1(e,l.from).block);if(!n.every(l=>l))return null;let i=t.map((l,a)=>sk(e,n[a],l.from,l.to));if(r!=2&&!i.every(l=>l))return{changes:e.changes(t.map((l,a)=>i[a]?[]:[{from:l.from,insert:n[a].open+" "},{from:l.to,insert:" "+n[a].close}]))};if(r!=1&&i.some(l=>l)){let l=[];for(let a=0,c;a<i.length;a++)if(c=i[a]){let u=n[a],{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 ok(r,e,t=e.selection.ranges){let n=[],i=-1;e:for(let{from:l,to:a}of t){let c=n.length,u=1e9,f;for(let m=l;m<=a;){let O=e.doc.lineAt(m);if(f==null&&(f=J1(e,O.from).line,!f))continue e;if(O.from>i&&(l==a||a>O.from)){i=O.from;let y=/^\s*/.exec(O.text)[0].length,S=y==O.length,w=O.text.slice(y,y+f.length)==f?y:-1;y<O.text.length&&y<u&&(u=y),n.push({line:O,comment:w,token:f,indent:y,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 a=e.changes(l);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&n.some(l=>l.comment>=0)){let l=[];for(let{line:a,comment:c,token:u}of n)if(c>=0){let f=a.from+c,m=f+u.length;a.text[m-a.from]==" "&&m++,l.push({from:f,to:m})}return{changes:l}}return null}const m1=Lr.define(),ak=Lr.define(),ck=we.define(),t4=we.define({combine(r){return Ds(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)})}}),n4=$n.define({create(){return yr.empty},update(r,e){let t=e.state.facet(t4),n=e.annotation(m1);if(n){let u=dn.fromTransaction(e,n.selection),f=n.side,m=f==0?r.undone:r.done;return u?m=bc(m,m.length,t.minDepth,u):m=s4(m,e.startState.selection),new yr(f==0?n.rest:m,f==0?m:n.rest)}let i=e.annotation(ak);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(kt.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let l=dn.fromTransaction(e),a=e.annotation(kt.time),c=e.annotation(kt.userEvent);return l?r=r.addChanges(l,a,c,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,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 yr(r.done.map(dn.fromJSON),r.undone.map(dn.fromJSON))}});function uk(r={}){return[n4,t4.of(r),Se.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?r4:e.inputType=="historyRedo"?O1:null;return n?(e.preventDefault(),n(t)):!1}})]}function Uc(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(n4,!1);if(!i)return!1;let l=i.pop(r,t,e);return l?(n(l),!0):!1}}const r4=Uc(0,!1),O1=Uc(1,!1),hk=Uc(0,!0),fk=Uc(1,!0);class dn{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 dn(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 dn(e.changes&&$t.fromJSON(e.changes),[],e.mapped&&xr.fromJSON(e.mapped),e.startSelection&&q.fromJSON(e.startSelection),e.selectionsAfter.map(q.fromJSON))}static fromTransaction(e,t){let n=Ln;for(let i of e.startState.facet(ck)){let l=i(e);l.length&&(n=n.concat(l))}return!n.length&&e.changes.empty?null:new dn(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Ln)}static selection(e){return new dn(void 0,Ln,void 0,void 0,e)}}function bc(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 dk(r,e){let t=[],n=!1;return r.iterChangedRanges((i,l)=>t.push(i,l)),e.iterChangedRanges((i,l,a,c)=>{for(let u=0;u<t.length;){let f=t[u++],m=t[u++];c>=f&&a<=m&&(n=!0)}}),n}function pk(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function i4(r,e){return r.length?e.length?r.concat(e):r:e}const Ln=[],mk=200;function s4(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-mk));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),bc(r,r.length-1,1e9,t.setSelAfter(n)))}else return[dn.selection([e])]}function Ok(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 hh(r,e){if(!r.length)return r;let t=r.length,n=Ln;for(;t;){let i=gk(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?[dn.selection(n)]:Ln}function gk(r,e,t){let n=i4(r.selectionsAfter.length?r.selectionsAfter.map(c=>c.map(e)):Ln,t);if(!r.changes)return dn.selection(n);let i=r.changes.map(e),l=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(l):l;return new dn(i,Ye.mapEffects(r.effects,e),a,r.startSelection.map(l),n)}const yk=/^(input\.type|delete)($|\.)/;class yr{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 yr(this.done,this.undone):this}addChanges(e,t,n,i,l){let a=this.done,c=a[a.length-1];return c&&c.changes&&!c.changes.empty&&e.changes&&(!n||yk.test(n))&&(!c.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(l,dk(c.changes,e.changes))||n=="input.type.compose")?a=bc(a,a.length-1,i.minDepth,new dn(e.changes.compose(c.changes),i4(Ye.mapEffects(e.effects,c.changes),c.effects),c.mapped,c.startSelection,Ln)):a=bc(a,a.length,i.minDepth,e),new yr(a,Ln,t,n)}addSelection(e,t,n,i){let l=this.done.length?this.done[this.done.length-1].selectionsAfter:Ln;return l.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&pk(l[l.length-1],e)?this:new yr(s4(this.done,e),this.undone,t,n)}addMapping(e){return new yr(hh(this.done,e),hh(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],a=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:m1.of({side:e,rest:Ok(i),selection:a}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(l.changes){let c=i.length==1?Ln:i.slice(0,i.length-1);return l.mapped&&(c=hh(c,l.mapped)),t.update({changes:l.changes,selection:l.startSelection,effects:l.effects,annotations:m1.of({side:e,rest:c,selection:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}yr.empty=new yr(Ln,Ln);const xk=[{key:"Mod-z",run:r4,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:O1,preventDefault:!0},{linux:"Ctrl-Shift-z",run:O1,preventDefault:!0},{key:"Mod-u",run:hk,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:fk,preventDefault:!0}];function Ws(r,e){return q.create(r.ranges.map(e),r.mainIndex)}function Kn(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Jn({state:r,dispatch:e},t){let n=Ws(r.selection,t);return n.eq(r.selection,!0)?!1:(e(Kn(r,n)),!0)}function Gc(r,e){return q.cursor(e?r.to:r.from)}function l4(r,e){return Jn(r,t=>t.empty?r.moveByChar(t,e):Gc(t,e))}function qt(r){return r.textDirectionAt(r.state.selection.main.head)==yt.LTR}const o4=r=>l4(r,!qt(r)),a4=r=>l4(r,qt(r));function c4(r,e){return Jn(r,t=>t.empty?r.moveByGroup(t,e):Gc(t,e))}const vk=r=>c4(r,!qt(r)),Sk=r=>c4(r,qt(r));function wk(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 Kc(r,e,t){let n=xt(r).resolveInner(e.head),i=t?Xe.closedBy:Xe.openedBy;for(let u=e.head;;){let f=t?n.childAfter(u):n.childBefore(u);if(!f)break;wk(r,f,i)?n=f:u=t?f.to:f.from}let l=n.type.prop(i),a,c;return l&&(a=t?gr(r,n.from,1):gr(r,n.to,-1))&&a.matched?c=t?a.end.to:a.end.from:c=t?n.to:n.from,q.cursor(c,t?-1:1)}const kk=r=>Jn(r,e=>Kc(r.state,e,!qt(r))),bk=r=>Jn(r,e=>Kc(r.state,e,qt(r)));function u4(r,e){return Jn(r,t=>{if(!t.empty)return Gc(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const h4=r=>u4(r,!1),f4=r=>u4(r,!0);function d4(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let l of r.state.facet(Se.scrollMargins)){let a=l(r);a!=null&&a.top&&(t=Math.max(a==null?void 0:a.top,t)),a!=null&&a.bottom&&(n=Math.max(a==null?void 0:a.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 p4(r,e){let t=d4(r),{state:n}=r,i=Ws(n.selection,a=>a.empty?r.moveVertically(a,e,t.height):Gc(a,e));if(i.eq(n.selection))return!1;let l;if(t.selfScroll){let a=r.coordsAtPos(n.selection.main.head),c=r.scrollDOM.getBoundingClientRect(),u=c.top+t.marginTop,f=c.bottom-t.marginBottom;a&&a.top>u&&a.bottom<f&&(l=Se.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-u}))}return r.dispatch(Kn(n,i),{effects:l}),!0}const MO=r=>p4(r,!1),g1=r=>p4(r,!0);function yi(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=q.cursor(n.from+l))}return i}const Qk=r=>Jn(r,e=>yi(r,e,!0)),$k=r=>Jn(r,e=>yi(r,e,!1)),Pk=r=>Jn(r,e=>yi(r,e,!qt(r))),Ak=r=>Jn(r,e=>yi(r,e,qt(r))),Ck=r=>Jn(r,e=>q.cursor(r.lineBlockAt(e.head).from,1)),Zk=r=>Jn(r,e=>q.cursor(r.lineBlockAt(e.head).to,-1));function Tk(r,e,t){let n=!1,i=Ws(r.selection,l=>{let a=gr(r,l.head,-1)||gr(r,l.head,1)||l.head>0&&gr(r,l.head-1,1)||l.head<r.doc.length&&gr(r,l.head+1,-1);if(!a||!a.end)return l;n=!0;let c=a.start.from==l.head?a.end.to:a.end.from;return q.cursor(c)});return n?(e(Kn(r,i)),!0):!1}const Mk=({state:r,dispatch:e})=>Tk(r,e);function Xn(r,e){let t=Ws(r.state.selection,n=>{let i=e(n);return q.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return t.eq(r.state.selection)?!1:(r.dispatch(Kn(r.state,t)),!0)}function m4(r,e){return Xn(r,t=>r.moveByChar(t,e))}const O4=r=>m4(r,!qt(r)),g4=r=>m4(r,qt(r));function y4(r,e){return Xn(r,t=>r.moveByGroup(t,e))}const Ek=r=>y4(r,!qt(r)),jk=r=>y4(r,qt(r)),Vk=r=>Xn(r,e=>Kc(r.state,e,!qt(r))),Rk=r=>Xn(r,e=>Kc(r.state,e,qt(r)));function x4(r,e){return Xn(r,t=>r.moveVertically(t,e))}const v4=r=>x4(r,!1),S4=r=>x4(r,!0);function w4(r,e){return Xn(r,t=>r.moveVertically(t,e,d4(r).height))}const EO=r=>w4(r,!1),jO=r=>w4(r,!0),Lk=r=>Xn(r,e=>yi(r,e,!0)),Xk=r=>Xn(r,e=>yi(r,e,!1)),Nk=r=>Xn(r,e=>yi(r,e,!qt(r))),_k=r=>Xn(r,e=>yi(r,e,qt(r))),zk=r=>Xn(r,e=>q.cursor(r.lineBlockAt(e.head).from)),Dk=r=>Xn(r,e=>q.cursor(r.lineBlockAt(e.head).to)),VO=({state:r,dispatch:e})=>(e(Kn(r,{anchor:0})),!0),RO=({state:r,dispatch:e})=>(e(Kn(r,{anchor:r.doc.length})),!0),LO=({state:r,dispatch:e})=>(e(Kn(r,{anchor:r.selection.main.anchor,head:0})),!0),XO=({state:r,dispatch:e})=>(e(Kn(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),Wk=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),Hk=({state:r,dispatch:e})=>{let t=Jc(r).map(({from:n,to:i})=>q.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:q.create(t),userEvent:"select"})),!0},Ik=({state:r,dispatch:e})=>{let t=Ws(r.selection,n=>{let i=xt(r),l=i.resolveStack(n.from,1);if(n.empty){let a=i.resolveStack(n.from,-1);a.node.from>=l.node.from&&a.node.to<=l.node.to&&(l=a)}for(let a=l;a;a=a.next){let{node:c}=a;if((c.from<n.from&&c.to>=n.to||c.to>n.to&&c.from<=n.from)&&a.next)return q.range(c.to,c.from)}return n});return t.eq(r.selection)?!1:(e(Kn(r,t)),!0)};function k4(r,e){let{state:t}=r,n=t.selection,i=t.selection.ranges.slice();for(let l of t.selection.ranges){let a=t.doc.lineAt(l.head);if(e?a.to<r.state.doc.length:a.from>0)for(let c=l;;){let u=r.moveVertically(c,e);if(u.head<a.from||u.head>a.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(Kn(t,q.create(i,i.length-1))),!0)}const Yk=r=>k4(r,!1),Fk=r=>k4(r,!0),Bk=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=q.create([t.main]):t.main.empty||(n=q.create([q.cursor(t.main.head)])),n?(e(Kn(r,n)),!0):!1};function po(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(l=>{let{from:a,to:c}=l;if(a==c){let u=e(l);u<a?(t="delete.backward",u=Wa(r,u,!1)):u>a&&(t="delete.forward",u=Wa(r,u,!0)),a=Math.min(a,u),c=Math.max(c,u)}else a=Wa(r,a,!1),c=Wa(r,c,!0);return a==c?{range:l}:{changes:{from:a,to:c},range:q.cursor(a,a<l.head?-1:1)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?Se.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Wa(r,e,t){if(r instanceof Se)for(let n of r.state.facet(Se.atomicRanges).map(i=>i(r)))n.between(e,e,(i,l)=>{i<e&&l>e&&(e=t?l:i)});return e}const b4=(r,e,t)=>po(r,n=>{let i=n.from,{state:l}=r,a=l.doc.lineAt(i),c,u;if(t&&!e&&i>a.from&&i<a.from+200&&!/[^ \t]/.test(c=a.text.slice(0,i-a.from))){if(c[c.length-1]==" ")return i-1;let f=Xc(c,l.tabSize),m=f%wc(l)||wc(l);for(let O=0;O<m&&c[c.length-1-O]==" ";O++)i--;u=i}else u=Mt(a.text,i-a.from,e,e)+a.from,u==i&&a.number!=(e?l.doc.lines:1)?u+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(a.text.slice(u-a.from,i-a.from))&&(u=Mt(a.text,u-a.from,!1,!1)+a.from);return u}),y1=r=>b4(r,!1,!0),Q4=r=>b4(r,!0,!1),$4=(r,e)=>po(r,t=>{let n=t.head,{state:i}=r,l=i.doc.lineAt(n),a=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=Mt(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=a(f);if(c!=null&&m!=c)break;(f!=" "||n!=t.head)&&(c=m),n=u}return n}),P4=r=>$4(r,!1),qk=r=>$4(r,!0),Uk=r=>po(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),Gk=r=>po(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Kk=r=>po(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),Jk=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:We.of(["",""])},range:q.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},eb=({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),a=i==l.from?i-1:Mt(l.text,i-l.from,!1)+l.from,c=i==l.to?i+1:Mt(l.text,i-l.from,!0)+l.from;return{changes:{from:a,to:c,insert:r.doc.slice(i,c).append(r.doc.slice(a,i))},range:q.cursor(c)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Jc(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 a=e[e.length-1];a.to=l.to,a.ranges.push(n)}else e.push({from:i.from,to:l.to,ranges:[n]});t=l.number+1}return e}function A4(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let l of Jc(r)){if(t?l.to==r.doc.length:l.from==0)continue;let a=r.doc.lineAt(t?l.to+1:l.from-1),c=a.length+1;if(t){n.push({from:l.to,to:a.to},{from:l.from,insert:a.text+r.lineBreak});for(let u of l.ranges)i.push(q.range(Math.min(r.doc.length,u.anchor+c),Math.min(r.doc.length,u.head+c)))}else{n.push({from:a.from,to:l.from},{from:l.to,insert:r.lineBreak+a.text});for(let u of l.ranges)i.push(q.range(u.anchor-c,u.head-c))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:q.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const tb=({state:r,dispatch:e})=>A4(r,e,!1),nb=({state:r,dispatch:e})=>A4(r,e,!0);function C4(r,e,t){if(r.readOnly)return!1;let n=[];for(let l of Jc(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 rb=({state:r,dispatch:e})=>C4(r,e,!1),ib=({state:r,dispatch:e})=>C4(r,e,!0),sb=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Jc(e).map(({from:i,to:l})=>(i>0?i--:l<e.doc.length&&l++,{from:i,to:l}))),n=Ws(e.selection,i=>{let l;if(r.lineWrapping){let a=r.lineBlockAt(i.head),c=r.coordsAtPos(i.head,i.assoc||1);c&&(l=a.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 lb(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=xt(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(Xe.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 NO=Z4(!1),ob=Z4(!0);function Z4(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:l,to:a}=i,c=e.doc.lineAt(l),u=!r&&l==a&&lb(e,l);r&&(l=a=(a<=c.to?c:e.doc.lineAt(a)).to);let f=new Yc(e,{simulateBreak:l,simulateDoubleBreak:!!u}),m=q1(f,l);for(m==null&&(m=Xc(/^\s*/.exec(e.doc.lineAt(l).text)[0],e.tabSize));a<c.to&&/\s/.test(c.text[a-c.from]);)a++;u?{from:l,to:a}=u:l>c.from&&l<c.from+100&&!/\S/.test(c.text.slice(0,l))&&(l=c.from);let O=["",ro(e,m)];return u&&O.push(ro(e,f.lineIndent(c.from,-1))),{changes:{from:l,to:a,insert:We.of(O)},range:q.cursor(l+1+O[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function ef(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let a=n.from;a<=n.to;){let c=r.doc.lineAt(a);c.number>t&&(n.empty||n.to>c.from)&&(e(c,i,n),t=c.number),a=c.to+1}let l=r.changes(i);return{changes:i,range:q.range(l.mapPos(n.anchor,1),l.mapPos(n.head,1))}})}const ab=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new Yc(r,{overrideIndentation:l=>{let a=t[l];return a??-1}}),i=ef(r,(l,a,c)=>{let u=q1(n,l.from);if(u==null)return;/\S/.test(l.text)||(u=0);let f=/^\s*/.exec(l.text)[0],m=ro(r,u);(f!=m||c.from<l.from+f.length)&&(t[l.from]=u,a.push({from:l.from,to:l.from+f.length,insert:m}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},cb=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(ef(r,(t,n)=>{n.push({from:t.from,insert:r.facet(Ic)})}),{userEvent:"input.indent"})),!0),ub=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(ef(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let l=Xc(i,r.tabSize),a=0,c=ro(r,Math.max(0,l-wc(r)));for(;a<i.length&&a<c.length&&i.charCodeAt(a)==c.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+i.length,insert:c.slice(a)})}),{userEvent:"delete.dedent"})),!0),hb=r=>(r.setTabFocusMode(),!0),fb=[{key:"Ctrl-b",run:o4,shift:O4,preventDefault:!0},{key:"Ctrl-f",run:a4,shift:g4},{key:"Ctrl-p",run:h4,shift:v4},{key:"Ctrl-n",run:f4,shift:S4},{key:"Ctrl-a",run:Ck,shift:zk},{key:"Ctrl-e",run:Zk,shift:Dk},{key:"Ctrl-d",run:Q4},{key:"Ctrl-h",run:y1},{key:"Ctrl-k",run:Uk},{key:"Ctrl-Alt-h",run:P4},{key:"Ctrl-o",run:Jk},{key:"Ctrl-t",run:eb},{key:"Ctrl-v",run:g1}],db=[{key:"ArrowLeft",run:o4,shift:O4,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:vk,shift:Ek,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Pk,shift:Nk,preventDefault:!0},{key:"ArrowRight",run:a4,shift:g4,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Sk,shift:jk,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Ak,shift:_k,preventDefault:!0},{key:"ArrowUp",run:h4,shift:v4,preventDefault:!0},{mac:"Cmd-ArrowUp",run:VO,shift:LO},{mac:"Ctrl-ArrowUp",run:MO,shift:EO},{key:"ArrowDown",run:f4,shift:S4,preventDefault:!0},{mac:"Cmd-ArrowDown",run:RO,shift:XO},{mac:"Ctrl-ArrowDown",run:g1,shift:jO},{key:"PageUp",run:MO,shift:EO},{key:"PageDown",run:g1,shift:jO},{key:"Home",run:$k,shift:Xk,preventDefault:!0},{key:"Mod-Home",run:VO,shift:LO},{key:"End",run:Qk,shift:Lk,preventDefault:!0},{key:"Mod-End",run:RO,shift:XO},{key:"Enter",run:NO,shift:NO},{key:"Mod-a",run:Wk},{key:"Backspace",run:y1,shift:y1,preventDefault:!0},{key:"Delete",run:Q4,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:P4,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:qk,preventDefault:!0},{mac:"Mod-Backspace",run:Gk,preventDefault:!0},{mac:"Mod-Delete",run:Kk,preventDefault:!0}].concat(fb.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),pb=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:kk,shift:Vk},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:bk,shift:Rk},{key:"Alt-ArrowUp",run:tb},{key:"Shift-Alt-ArrowUp",run:rb},{key:"Alt-ArrowDown",run:nb},{key:"Shift-Alt-ArrowDown",run:ib},{key:"Mod-Alt-ArrowUp",run:Yk},{key:"Mod-Alt-ArrowDown",run:Fk},{key:"Escape",run:Bk},{key:"Mod-Enter",run:ob},{key:"Alt-l",mac:"Ctrl-l",run:Hk},{key:"Mod-i",run:Ik,preventDefault:!0},{key:"Mod-[",run:ub},{key:"Mod-]",run:cb},{key:"Mod-Alt-\\",run:ab},{key:"Shift-Mod-k",run:sb},{key:"Shift-Mod-\\",run:Mk},{key:"Mod-/",run:tk},{key:"Alt-A",run:rk},{key:"Ctrl-m",mac:"Shift-Alt-m",run:hb}].concat(db);function _O(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 mb(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=_O(e)+_O(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function Ob(r){let e=r.map(i=>typeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:mb(e);return i=>{let l=i.matchBefore(n);return l||i.explicit?{from:l?l.from:i.pos,options:e,validFor:t}:null}}function gb(r,e){return t=>{for(let n=xt(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 yb=Lr.define(),xb=Se.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 vb{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class tf{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,Yt.TrackDel),n=e.mapPos(this.to,1,Yt.TrackDel);return t==null||n==null?null:new tf(this.field,t,n)}}class nf{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],l=e.doc.lineAt(t),a=/^\s*/.exec(l.text)[0];for(let u of this.lines){if(n.length){let f=a,m=/^\t*/.exec(u)[0].length;for(let O=0;O<m;O++)f+=e.facet(Ic);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 tf(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 a of e.split(/\r\n?|\n/)){for(;l=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(a);){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 y of i)y.field>=f&&y.field++}for(let O of i)if(O.line==n.length&&O.from>l.index){let y=l[2]?3+(l[1]||"").length:2;O.from-=y,O.to-=y}i.push(new vb(f,n.length,l.index,l.index+m.length)),a=a.slice(0,l.index)+u+a.slice(l.index+l[0].length)}a=a.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(a)}return new nf(n,i)}}let Sb=Ve.widget({widget:new class extends Hi{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),wb=Ve.mark({class:"cm-snippetField"});class Hs{constructor(e,t){this.ranges=e,this.active=t,this.deco=Ve.set(e.map(n=>(n.from==n.to?Sb:wb).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 Hs(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 mo=Ye.define({map(r,e){return r&&r.map(e)}}),kb=Ye.define(),io=$n.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(mo))return t.value;if(t.is(kb)&&r)return new Hs(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=>Se.decorations.from(r,e=>e?e.deco:Ve.none)});function rf(r,e){return q.create(r.filter(t=>t.field==e).map(t=>q.range(t.from,t.to)))}function bb(r){let e=nf.parse(r);return(t,n,i,l)=>{let{text:a,ranges:c}=e.instantiate(t.state,i),{main:u}=t.state.selection,f={changes:{from:i,to:l==u.from?u.to:l,insert:We.of(a)},scrollIntoView:!0,annotations:n?[yb.of(n),kt.userEvent.of("input.complete")]:void 0};if(c.length&&(f.selection=rf(c,0)),c.some(m=>m.field>0)){let m=new Hs(c,0),O=f.effects=[mo.of(m)];t.state.field(io,!1)===void 0&&O.push(Ye.appendConfig.of([io,Cb,Zb,xb]))}t.dispatch(t.state.update(f))}}function T4(r){return({state:e,dispatch:t})=>{let n=e.field(io,!1);if(!n||r<0&&n.active==0)return!1;let i=n.active+r,l=r>0&&!n.ranges.some(a=>a.field==i+r);return t(e.update({selection:rf(n.ranges,i),effects:mo.of(l?null:new Hs(n.ranges,i)),scrollIntoView:!0})),!0}}const Qb=({state:r,dispatch:e})=>r.field(io,!1)?(e(r.update({effects:mo.of(null)})),!0):!1,$b=T4(1),Pb=T4(-1),Ab=[{key:"Tab",run:$b,shift:Pb},{key:"Escape",run:Qb}],zO=we.define({combine(r){return r.length?r[0]:Ab}}),Cb=co.highest(D1.compute([zO],r=>r.facet(zO)));function hn(r,e){return{...e,apply:bb(r)}}const Zb=Se.domEventHandlers({mousedown(r,e){let t=e.state.field(io,!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:rf(t.ranges,i.field),effects:mo.of(t.ranges.some(l=>l.field>i.field)?new Hs(t.ranges,i.field):null),scrollIntoView:!0}),!0)}}),so={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Xi=Ye.define({map(r,e){let t=e.mapPos(r,-1,Yt.TrackAfter);return t??void 0}}),sf=new class extends fi{};sf.startSide=1;sf.endSide=-1;const M4=$n.define({create(){return ze.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(Xi)&&(r=r.update({add:[sf.range(t.value,t.value+1)]}));return r}});function Tb(){return[Eb,M4]}const fh="()[]{}<>«»»«[]{}";function E4(r){for(let e=0;e<fh.length;e+=2)if(fh.charCodeAt(e)==r)return fh.charAt(e+1);return xg(r<128?r:r+1)}function j4(r,e){return r.languageDataAt("closeBrackets",e)[0]||so}const Mb=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Eb=Se.inputHandler.of((r,e,t,n)=>{if((Mb?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let i=r.state.selection.main;if(n.length>2||n.length==2&&ao(Wi(n,0))==1||e!=i.from||t!=i.to)return!1;let l=Rb(r.state,n);return l?(r.dispatch(l),!0):!1}),jb=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=j4(r,r.selection.main.head).brackets||so.brackets,i=null,l=r.changeByRange(a=>{if(a.empty){let c=Lb(r.doc,a.head);for(let u of n)if(u==c&&eu(r.doc,a.head)==E4(Wi(u,0)))return{changes:{from:a.head-u.length,to:a.head+u.length},range:q.cursor(a.head-u.length)}}return{range:i=a}});return i||e(r.update(l,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Vb=[{key:"Backspace",run:jb}];function Rb(r,e){let t=j4(r,r.selection.main.head),n=t.brackets||so.brackets;for(let i of n){let l=E4(Wi(i,0));if(e==i)return l==i?_b(r,i,n.indexOf(i+i+i)>-1,t):Xb(r,i,l,t.before||so.before);if(e==l&&V4(r,r.selection.main.from))return Nb(r,i,l)}return null}function V4(r,e){let t=!1;return r.field(M4).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function eu(r,e){let t=r.sliceString(e,e+2);return t.slice(0,ao(Wi(t,0)))}function Lb(r,e){let t=r.sliceString(e-2,e);return ao(Wi(t,0))==t.length?t:t.slice(1)}function Xb(r,e,t,n){let i=null,l=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:Xi.of(a.to+e.length),range:q.range(a.anchor+e.length,a.head+e.length)};let c=eu(r.doc,a.head);return!c||/\s/.test(c)||n.indexOf(c)>-1?{changes:{insert:e+t,from:a.head},effects:Xi.of(a.head+e.length),range:q.cursor(a.head+e.length)}:{range:i=a}});return i?null:r.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Nb(r,e,t){let n=null,i=r.changeByRange(l=>l.empty&&eu(r.doc,l.head)==t?{changes:{from:l.head,to:l.head+t.length,insert:t},range:q.cursor(l.head+t.length)}:n={range:l});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function _b(r,e,t,n){let i=n.stringPrefixes||so.stringPrefixes,l=null,a=r.changeByRange(c=>{if(!c.empty)return{changes:[{insert:e,from:c.from},{insert:e,from:c.to}],effects:Xi.of(c.to+e.length),range:q.range(c.anchor+e.length,c.head+e.length)};let u=c.head,f=eu(r.doc,u),m;if(f==e){if(DO(r,u))return{changes:{insert:e+e,from:u},effects:Xi.of(u+e.length),range:q.cursor(u+e.length)};if(V4(r,u)){let y=t&&r.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+y.length,insert:y},range:q.cursor(u+y.length)}}}else{if(t&&r.sliceDoc(u-2*e.length,u)==e+e&&(m=WO(r,u-2*e.length,i))>-1&&DO(r,m))return{changes:{insert:e+e+e+e,from:u},effects:Xi.of(u+e.length),range:q.cursor(u+e.length)};if(r.charCategorizer(u)(f)!=ot.Word&&WO(r,u,i)>-1&&!zb(r,u,e,i))return{changes:{insert:e+e,from:u},effects:Xi.of(u+e.length),range:q.cursor(u+e.length)}}return{range:l=c}});return l?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function DO(r,e){let t=xt(r).resolveInner(e+1);return t.parent&&t.from==e}function zb(r,e,t,n){let i=xt(r).resolveInner(e,-1),l=n.reduce((a,c)=>Math.max(a,c.length),0);for(let a=0;a<5;a++){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 WO(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=ot.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))!=ot.Word)return l}return-1}const HO=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class Rs{constructor(e,t,n=0,i=e.length,l,a){this.test=a,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(HO(c)):HO,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 Wi(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=xg(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=ao(e);let i=this.normalize(t);if(i.length)for(let l=0,a=n;;l++){let c=i.charCodeAt(l),u=this.match(c,a,this.bufferPos+this.bufferStart);if(l==i.length-1){if(u)return this.value=u,this;break}a==n&&l<t.length&&t.charCodeAt(l)==c&&a++}}}match(e,t,n){let i=null;for(let l=0;l<this.matches.length;l+=2){let a=this.matches[l],c=!1;this.query.charCodeAt(a)==e&&(a==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"&&(Rs.prototype[Symbol.iterator]=function(){return this});const R4={from:-1,to:-1,match:/.*/.exec("")},lf="gm"+(/x/.unicode==null?"":"u");class L4{constructor(e,t,n,i=0,l=e.length){if(this.text=e,this.to=l,this.curLine="",this.done=!1,this.value=R4,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new X4(e,t,n,i,l);this.re=new RegExp(t,lf+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=Qc(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=Qc(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 dh=new WeakMap;class As{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=dh.get(e);if(!i||i.from>=n||i.to<=t){let c=new As(t,e.sliceString(t,n));return dh.set(e,c),c}if(i.from==t&&i.to==n)return i;let{text:l,from:a}=i;return a>t&&(l=e.sliceString(t,a)+l,a=t),i.to<n&&(l+=e.sliceString(i.to,n)),dh.set(e,new As(a,l)),new As(t,l.slice(t-a,n-a))}}class X4{constructor(e,t,n,i,l){this.text=e,this.to=l,this.done=!1,this.value=R4,this.matchPos=Qc(e,i),this.re=new RegExp(t,lf+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=As.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=Qc(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=As.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(L4.prototype[Symbol.iterator]=X4.prototype[Symbol.iterator]=function(){return this});function Db(r){try{return new RegExp(r,lf),!0}catch{return!1}}function Qc(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 Wb=r=>{let{state:e}=r,t=String(e.doc.lineAt(r.state.selection.main.head).number),{close:n,result:i}=ES(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 a=l&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(l.elements.line.value);if(!a){r.dispatch({effects:n});return}let c=e.doc.lineAt(e.selection.main.head),[,u,f,m,O]=a,y=m?+m.slice(1):0,S=f?+f:c.number;if(f&&O){let Q=S/100;u&&(Q=Q*(u=="-"?-1:1)+c.number/e.doc.lines),S=Math.round(e.doc.lines*Q)}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=q.cursor(w.from+Math.max(0,Math.min(y,w.length)));r.dispatch({effects:[n,Se.scrollIntoView(b.from,{y:"center"})],selection:b})}),!0},Hb={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ib=we.define({combine(r){return Ds(r,Hb,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function Yb(r){return[Gb,Ub]}const Fb=Ve.mark({class:"cm-selectionMatch"}),Bb=Ve.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function IO(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=ot.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=ot.Word)}function qb(r,e,t,n){return r(e.sliceDoc(t,t+1))==ot.Word&&r(e.sliceDoc(n-1,n))==ot.Word}const Ub=mn.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(Ib),{state:t}=r,n=t.selection;if(n.ranges.length>1)return Ve.none;let i=n.main,l,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return Ve.none;let u=t.wordAt(i.head);if(!u)return Ve.none;a=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 Ve.none;if(e.wholeWords){if(l=t.sliceDoc(i.from,i.to),a=t.charCategorizer(i.head),!(IO(a,t,i.from,i.to)&&qb(a,t,i.from,i.to)))return Ve.none}else if(l=t.sliceDoc(i.from,i.to),!l)return Ve.none}let c=[];for(let u of r.visibleRanges){let f=new Rs(t.doc,l,u.from,u.to);for(;!f.next().done;){let{from:m,to:O}=f.value;if((!a||IO(a,t,m,O))&&(i.empty&&m<=i.from&&O>=i.to?c.push(Bb.range(m,O)):(m>=i.to||O<=i.from)&&c.push(Fb.range(m,O)),c.length>e.maxMatches))return Ve.none}}return Ve.set(c)}},{decorations:r=>r.decorations}),Gb=Se.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Kb=({state:r,dispatch:e})=>{let{selection:t}=r,n=q.create(t.ranges.map(i=>r.wordAt(i.head)||q.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function Jb(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 a=!1,c=new Rs(r.doc,e,n[n.length-1].to);;)if(c.next(),c.done){if(a)return null;c=new Rs(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),a=!0}else{if(a&&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 e7=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(l=>l.from===l.to))return Kb({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=Jb(r,n);return i?(e(r.update({selection:r.selection.addRange(q.range(i.from,i.to),!1),effects:Se.scrollIntoView(i.to)})),!0):!1},Is=we.define({combine(r){return Ds(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new p7(e),scrollToMatch:e=>Se.scrollIntoView(e)})}});class N4{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||Db(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"?`
|
|
64
|
-
`: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 l7(this):new r7(this)}getCursor(e,t=0,n){let i=e.doc?e:Ie.create({doc:e});return n==null&&(n=i.doc.length),this.regexp?ys(this,i,t,n):gs(this,i,t,n)}}class _4{constructor(e){this.spec=e}}function t7(r,e,t){return(n,i,l,a)=>{if(t&&!t(n,i,l,a))return!1;let c=n>=a&&i<=a+l.length?l.slice(n-a,i-a):e.doc.sliceString(n,i);return r(c,e,n,i)}}function gs(r,e,t,n){let i;return r.wholeWord&&(i=n7(e.doc,e.charCategorizer(e.selection.main.head))),r.test&&(i=t7(r.test,e,i)),new Rs(e.doc,r.unquoted,t,n,r.caseSensitive?void 0:l=>l.toLowerCase(),i)}function n7(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($c(i,t-l))!=ot.Word||e(Pc(i,t-l))!=ot.Word)&&(e(Pc(i,n-l))!=ot.Word||e($c(i,n-l))!=ot.Word))}class r7 extends _4{constructor(e){super(e)}nextMatch(e,t,n){let i=gs(this.spec,e,n,e.doc.length).nextOverlapping();if(i.done){let l=Math.min(e.doc.length,t+this.spec.unquoted.length);i=gs(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),a=gs(this.spec,e,l,i),c=null;for(;!a.nextOverlapping().done;)c=a.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=gs(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=gs(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 i7(r,e,t){return(n,i,l)=>(!t||t(n,i,l))&&r(l[0],e,n,i)}function ys(r,e,t,n){let i;return r.wholeWord&&(i=s7(e.charCategorizer(e.selection.main.head))),r.test&&(i=i7(r.test,e,i)),new L4(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:i},t,n)}function $c(r,e){return r.slice(Mt(r,e,!1),e)}function Pc(r,e){return r.slice(e,Mt(r,e))}function s7(r){return(e,t,n)=>!n[0].length||(r($c(n.input,n.index))!=ot.Word||r(Pc(n.input,n.index))!=ot.Word)&&(r(Pc(n.input,n.index+n[0].length))!=ot.Word||r($c(n.input,n.index+n[0].length))!=ot.Word)}class l7 extends _4{nextMatch(e,t,n){let i=ys(this.spec,e,n,e.doc.length).next();return i.done&&(i=ys(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),a=ys(this.spec,e,l,n),c=null;for(;!a.next().done;)c=a.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=ys(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=ys(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 lo=Ye.define(),of=Ye.define(),hi=$n.define({create(r){return new ph(x1(r).create(),null)},update(r,e){for(let t of e.effects)t.is(lo)?r=new ph(t.value.create(),r.panel):t.is(of)&&(r=new ph(r.query,t.value?af:null));return r},provide:r=>yc.from(r,e=>e.panel)});class ph{constructor(e,t){this.query=e,this.panel=t}}const o7=Ve.mark({class:"cm-searchMatch"}),a7=Ve.mark({class:"cm-searchMatch cm-searchMatch-selected"}),c7=mn.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(hi))}update(r){let e=r.state.field(hi);(e!=r.startState.field(hi)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return Ve.none;let{view:t}=this,n=new Ni;for(let i=0,l=t.visibleRanges,a=l.length;i<a;i++){let{from:c,to:u}=l[i];for(;i<a-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(y=>y.from==f&&y.to==m);n.add(f,m,O?a7:o7)})}return n.finish()}},{decorations:r=>r.decorations});function Oo(r){return e=>{let t=e.state.field(hi,!1);return t&&t.query.spec.valid?r(e,t):W4(e)}}const Ac=Oo((r,{query:e})=>{let{to:t}=r.state.selection.main,n=e.nextMatch(r.state,t,t);if(!n)return!1;let i=q.single(n.from,n.to),l=r.state.facet(Is);return r.dispatch({selection:i,effects:[cf(r,n),l.scrollToMatch(i.main,r)],userEvent:"select.search"}),D4(r),!0}),Cc=Oo((r,{query:e})=>{let{state:t}=r,{from:n}=t.selection.main,i=e.prevMatch(t,n,n);if(!i)return!1;let l=q.single(i.from,i.to),a=r.state.facet(Is);return r.dispatch({selection:l,effects:[cf(r,i),a.scrollToMatch(l.main,r)],userEvent:"select.search"}),D4(r),!0}),u7=Oo((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:q.create(t.map(n=>q.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),h7=({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=[],a=0;for(let c=new Rs(r.doc,r.sliceDoc(n,i));!c.next().done;){if(l.length>1e3)return!1;c.value.from==n&&(a=l.length),l.push(q.range(c.value.from,c.value.to))}return e(r.update({selection:q.create(l,a),userEvent:"select.search.matches"})),!0},YO=Oo((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 a=l,c=[],u,f,m=[];a.from==n&&a.to==i&&(f=t.toText(e.getReplacement(a)),c.push({from:a.from,to:a.to,insert:f}),a=e.nextMatch(t,a.from,a.to),m.push(Se.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+".")));let O=r.state.changes(c);return a&&(u=q.single(a.from,a.to).map(O),m.push(cf(r,a)),m.push(t.facet(Is).scrollToMatch(u.main,r))),r.dispatch({changes:O,selection:u,effects:m,userEvent:"input.replace"}),!0}),f7=Oo((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(i=>{let{from:l,to:a}=i;return{from:l,to:a,insert:e.getReplacement(i)}});if(!t.length)return!1;let n=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:Se.announce.of(n),userEvent:"input.replace.all"}),!0});function af(r){return r.state.facet(Is).createPanel(r)}function x1(r,e){var t,n,i,l,a;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(Is);return new N4({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:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:f.wholeWord})}function z4(r){let e=P8(r,af);return e&&e.dom.querySelector("[main-field]")}function D4(r){let e=z4(r);e&&e==r.root.activeElement&&e.select()}const W4=r=>{let e=r.state.field(hi,!1);if(e&&e.panel){let t=z4(r);if(t&&t!=r.root.activeElement){let n=x1(r.state,e.query.spec);n.valid&&r.dispatch({effects:lo.of(n)}),t.focus(),t.select()}}else r.dispatch({effects:[of.of(!0),e?lo.of(x1(r.state,e.query.spec)):Ye.appendConfig.of(O7)]});return!0},H4=r=>{let e=r.state.field(hi,!1);if(!e||!e.panel)return!1;let t=P8(r,af);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:of.of(!1)}),!0},d7=[{key:"Mod-f",run:W4,scope:"editor search-panel"},{key:"F3",run:Ac,shift:Cc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Ac,shift:Cc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:H4,scope:"editor search-panel"},{key:"Mod-Shift-l",run:h7},{key:"Mod-Alt-g",run:Wb},{key:"Mod-d",run:e7,preventDefault:!0}];class p7{constructor(e){this.view=e;let t=this.query=e.state.field(hi).query.spec;this.commit=this.commit.bind(this),this.searchField=Tt("input",{value:t.search,placeholder:wn(e,"Find"),"aria-label":wn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Tt("input",{value:t.replace,placeholder:wn(e,"Replace"),"aria-label":wn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Tt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Tt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Tt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(i,l,a){return Tt("button",{class:"cm-button",name:i,onclick:l,type:"button"},a)}this.dom=Tt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,n("next",()=>Ac(e),[wn(e,"next")]),n("prev",()=>Cc(e),[wn(e,"previous")]),n("select",()=>u7(e),[wn(e,"all")]),Tt("label",null,[this.caseField,wn(e,"match case")]),Tt("label",null,[this.reField,wn(e,"regexp")]),Tt("label",null,[this.wordField,wn(e,"by word")]),...e.state.readOnly?[]:[Tt("br"),this.replaceField,n("replace",()=>YO(e),[wn(e,"replace")]),n("replaceAll",()=>f7(e),[wn(e,"replace all")])],Tt("button",{name:"close",onclick:()=>H4(e),"aria-label":wn(e,"close"),type:"button"},["×"])])}commit(){let e=new N4({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:lo.of(e)}))}keydown(e){PS(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Cc:Ac)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),YO(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(lo)&&!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(Is).top}}function wn(r,e){return r.state.phrase(e)}const Ha=30,Ia=/[\s\.,:;?!]/;function cf(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-Ha),a=Math.min(i,t+Ha),c=r.state.sliceDoc(l,a);if(l!=n.from){for(let u=0;u<Ha;u++)if(!Ia.test(c[u+1])&&Ia.test(c[u])){c=c.slice(u);break}}if(a!=i){for(let u=c.length-1;u>c.length-Ha;u--)if(!Ia.test(c[u-1])&&Ia.test(c[u])){c=c.slice(0,u);break}}return Se.announce.of(`${r.state.phrase("current match")}. ${c} ${r.state.phrase("on line")} ${n.number}.`)}const m7=Se.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"}}),O7=[hi,co.low(c7),m7],g7="#e5c07b",FO="#e06c75",y7="#56b6c2",x7="#ffffff",nc="#abb2bf",v1="#7d8799",v7="#61afef",S7="#98c379",BO="#d19a66",w7="#c678dd",k7="#21252b",qO="#2c313a",UO="#282c34",mh="#353a42",b7="#3E4451",GO="#528bff",Q7=Se.theme({"&":{color:nc,backgroundColor:UO},".cm-content":{caretColor:GO},".cm-cursor, .cm-dropCursor":{borderLeftColor:GO},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:b7},".cm-panels":{backgroundColor:k7,color:nc},".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:UO,color:v1,border:"none"},".cm-activeLineGutter":{backgroundColor:qO},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:mh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:mh,borderBottomColor:mh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:qO,color:nc}}},{dark:!0}),$7=qc.define([{tag:M.keyword,color:w7},{tag:[M.name,M.deleted,M.character,M.propertyName,M.macroName],color:FO},{tag:[M.function(M.variableName),M.labelName],color:v7},{tag:[M.color,M.constant(M.name),M.standard(M.name)],color:BO},{tag:[M.definition(M.name),M.separator],color:nc},{tag:[M.typeName,M.className,M.number,M.changed,M.annotation,M.modifier,M.self,M.namespace],color:g7},{tag:[M.operator,M.operatorKeyword,M.url,M.escape,M.regexp,M.link,M.special(M.string)],color:y7},{tag:[M.meta,M.comment],color:v1},{tag:M.strong,fontWeight:"bold"},{tag:M.emphasis,fontStyle:"italic"},{tag:M.strikethrough,textDecoration:"line-through"},{tag:M.link,color:v1,textDecoration:"underline"},{tag:M.heading,fontWeight:"bold",color:FO},{tag:[M.atom,M.bool,M.special(M.variableName)],color:BO},{tag:[M.processingInstruction,M.string,M.inserted],color:S7},{tag:M.invalid,color:x7}]),P7=[Q7,_w($7)];var KO={};class Zc{constructor(e,t,n,i,l,a,c,u,f,m=0,O){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=l,this.score=a,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 Zc(e,[],t,n,n,0,[],0,i?new JO(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,a=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,a?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,y=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,y+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 a=this,c=this.buffer.length;if(c==0&&a.parent&&(c=a.bufferBase-a.parent.bufferBase,a=a.parent),c>0&&a.buffer[c-4]==0&&a.buffer[c-1]>-1){if(t==n)return;if(a.buffer[c-2]>=t){a.buffer[c-2]=n;return}}}if(!l||this.pos==n)this.buffer.push(e,t,n,i);else{let a=this.buffer.length;if(a>0&&(this.buffer[a-4]!=0||this.buffer[a-1]<0)){let c=!1;for(let u=a;u>0&&this.buffer[u-2]>n;u-=4)if(this.buffer[u-1]>=0){c=!0;break}if(c)for(;a>0&&this.buffer[a-2]>n;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4)}this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=n,this.buffer[a+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:a}=this.p;this.pos=i;let c=a.stateFlag(l,1);!c&&(i>n||t<=a.maxNode)&&(this.reducePos=i),this.pushState(l,c?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.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 Zc(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 A7(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,a;l<t.length;l+=2)(a=t[l+1])!=this.state&&this.p.parser.hasAction(a,e)&&i.push(t[l],a);if(this.stack.length<120)for(let l=0;i.length<8&&l<t.length;l+=2){let a=t[l+1];i.some((c,u)=>u&1&&c==a)||i.push(t[l],a)}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 a=this.split();a.pushState(l,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(t[i],this.pos),a.reducePos=this.pos,a.score-=200,n.push(a)}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 a=this.findForcedReduction();if(a==null)return!1;t=a}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,a=>{if(!(a&393216))if(a&65536){let c=(a>>19)-l;if(c>1){let u=a&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(a,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 JO(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 JO{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class A7{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 Tc{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 Tc(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 Tc(this.stack,this.pos,this.index)}}function _l(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 a=r.charCodeAt(n++),c=!1;if(a==126){l=65535;break}a>=92&&a--,a>=34&&a--;let u=a-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 rc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const e2=new rc;class C7{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=e2,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 a=this.ranges[--i];l-=n.from-a.to,n=a}for(;t<0?l>n.to:l>=n.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];l+=a.from-n.to,n=a}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 a=this.rangeIndex,c=this.range;for(;c.to<=n;)c=this.ranges[++a];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=e2,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 Cs{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;I4(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Cs.prototype.contextual=Cs.prototype.fallback=Cs.prototype.extend=!1;class Mc{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?_l(e):e}token(e,t){let n=e.pos,i=0;for(;;){let l=e.next<0,a=e.resolveOffset(1,1);if(I4(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(l||i++,a==null)break;e.reset(a,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}Mc.prototype.contextual=Cs.prototype.fallback=Cs.prototype.extend=!1;class Pn{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function I4(r,e,t,n,i,l){let a=0,c=1<<n,{dialect:u}=t.p.parser;e:for(;(c&r[a])!=0;){let f=r[a+1];for(let S=a+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||Z7(w,e.token.value,i,l))){e.acceptToken(w);break}}let m=e.next,O=0,y=r[a+2];if(e.next<0&&y>O&&r[f+y*3-3]==65535){a=r[f+y*3-1];continue e}for(;O<y;){let S=O+y>>1,w=f+S+(S<<1),b=r[w],Q=r[w+1]||65536;if(m<b)y=S;else if(m>=Q)O=S+1;else{a=r[w+2],e.advance();continue e}}break}}function t2(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function Z7(r,e,t,n){let i=t2(t,n,e);return i<0||t2(t,n,r)<i}const kn=typeof process<"u"&&KO&&/\bparse\b/.test(KO.LOG);let Oh=null;function n2(r,e,t){let n=r.cursor(Ge.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 T7{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?n2(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?n2(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],a=this.start[t]+n.positions[i];if(a>e)return this.nextStart=a,null;if(l instanceof at){if(a==e){if(a<this.safeFrom)return null;let c=a+l.length;if(c<=this.safeTo){let u=l.prop(Xe.lookAhead);if(!u||c+u<this.fragment.to)return l}}this.index[t]++,a+l.length>=Math.max(this.safeFrom,e)&&(this.trees.push(l),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+l.length}}}class M7{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new rc)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:l}=i,a=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&a)==0)continue;let m=l[f],O=this.tokens[f];if(!(n&&!m.fallback)&&((m.contextual||O.start!=e.pos||O.mask!=a||O.context!=c)&&(this.updateCachedToken(O,m,e),O.mask=a,O.context=c),O.lookAhead>O.end+25&&(u=Math.max(O.lookAhead,u)),O.value!=0)){let y=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>y))break}}for(;this.actions.length>t;)this.actions.pop();return u&&e.setLookAhead(u),!n&&e.pos==this.stream.end&&(n=new rc,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 rc,{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 a=0;a<l.specialized.length;a++)if(l.specialized[a]==e.value){let c=l.specializers[a](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:a}=e.p,{data:c}=a;for(let u=0;u<2;u++)for(let f=a.stateSlot(l,u?2:1);;f+=3){if(c[f]==65535)if(c[f+1]==1)f=Zr(c,f+2);else{i==0&&c[f+1]==2&&(i=this.putAction(Zr(c,f+2),t,n,i));break}c[f]==t&&(i=this.putAction(Zr(c,f+1),t,n,i))}return i}}class E7{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 C7(t,i),this.tokens=new M7(e,this.stream),this.topTerm=e.top[1];let{from:l}=i[0];this.stacks=[Zc.start(this,e.top[0],l)],this.fragments=n.length&&this.stream.end-l>e.bufferLength*4?new T7(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[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let c=e[a];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 a=i&&V7(i);if(a)return kn&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw kn&&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 a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,l,n);if(a)return kn&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(n.length>a)for(n.sort((c,u)=>u.score-c.score);n.length>a;)n.pop();n.some(c=>c.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let a=0;a<n.length-1;a++){let c=n[a];for(let u=a+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(a--,1);continue e}}}n.length>12&&(n.sort((a,c)=>c.score-a.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let a=1;a<n.length;a++)n[a].pos<this.minStackPos&&(this.minStackPos=n[a].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,a=kn?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 y=this.parser.nodeSet.types[O.type.id]==O.type?l.getGoto(e.state,O.type.id):-1;if(y>-1&&O.length&&(!f||(O.prop(Xe.contextHash)||0)==m))return e.useNode(O,y),kn&&console.log(a+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),kn&&console.log(a+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++],y=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,y),kn&&console.log(a+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 r2(e,t),!0}}runRecovery(e,t,n){let i=null,l=!1;for(let a=0;a<e.length;a++){let c=e[a],u=t[a<<1],f=t[(a<<1)+1],m=kn?this.stackID(c)+" -> ":"";if(c.deadEnd&&(l||(l=!0,c.restart(),kn&&console.log(m+this.stackID(c)+" (restarted)"),this.advanceFully(c,n))))continue;let O=c.split(),y=m;for(let S=0;S<10&&O.forceReduce()&&(kn&&console.log(y+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,n));S++)kn&&(y=this.stackID(O)+" -> ");for(let S of c.recoverByInsert(u))kn&&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),kn&&console.log(m+this.stackID(c)+` (via recover-delete ${this.parser.getName(u)})`),r2(c,n)):(!i||i.score<O.score)&&(i=O)}return i}stackToTree(e){return e.close(),at.build({buffer:Tc.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=(Oh||(Oh=new WeakMap)).get(e);return t||Oh.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function r2(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 j7{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const gh=r=>r;class Y4{constructor(e){this.start=e.start,this.shift=e.shift||gh,this.reduce=e.reduce||gh,this.reuse=e.reuse||gh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ls extends X8{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=Xe[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 y=-m;y>0;y--)l(c[f++],u,O);f++}}}this.nodeSet=new W1(t.map((c,u)=>nn.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=E8;let a=_l(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(i2),this.states=_l(e.states,Uint32Array),this.data=_l(e.stateData),this.goto=_l(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(c=>typeof c=="number"?new Cs(a,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 E7(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 a=i[l++],c=a&1,u=i[l++];if(c&&n)return u;for(let f=l+(a>>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),a;;l+=3){if((a=n[l])==65535)if(n[l+1]==1)a=n[l=Zr(n,l+2)];else{if(n[l+1]==2)return Zr(n,l+2);break}if(a==t||a==0)return Zr(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=Zr(this.data,l+2);else break;i=t(Zr(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=Zr(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];t.some((l,a)=>a&1&&l==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(Ls.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 a=Object.assign(Object.assign({},n),{external:l.to});return t.specializers[i]=i2(a),a})),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 a=t.indexOf(l);a>=0&&(n[a]=!0)}let i=null;for(let l=0;l<t.length;l++)if(!n[l])for(let a=this.dialects[t[l]],c;(c=this.data[a++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[c]=1;return new j7(e,n,i)}static deserialize(e){return new Ls(e)}}function Zr(r,e){return r[e]|r[e+1]<<16}function V7(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 i2(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const R7=55,L7=1,X7=56,N7=2,_7=57,z7=3,s2=4,D7=5,uf=6,F4=7,B4=8,q4=9,U4=10,W7=11,H7=12,I7=13,yh=58,Y7=14,F7=15,l2=59,G4=21,B7=23,K4=24,q7=25,S1=27,J4=28,U7=29,G7=32,K7=35,J7=37,eQ=38,tQ=0,nQ=1,rQ={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},iQ={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},o2={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 sQ(r){return r==45||r==46||r==58||r>=65&&r<=90||r==95||r>=97&&r<=122||r>=161}let a2=null,c2=null,u2=0;function w1(r,e){let t=r.pos+e;if(u2==t&&c2==r)return a2;let n=r.peek(e),i="";for(;sQ(n);)i+=String.fromCharCode(n),n=r.peek(++e);return c2=r,u2=t,a2=i?i.toLowerCase():n==lQ||n==oQ?void 0:null}const e6=60,Ec=62,hf=47,lQ=63,oQ=33,aQ=45;function h2(r,e){this.name=r,this.parent=e}const cQ=[uf,U4,F4,B4,q4],uQ=new Y4({start:null,shift(r,e,t,n){return cQ.indexOf(e)>-1?new h2(w1(n,1)||"",r):r},reduce(r,e){return e==G4&&r?r.parent:r},reuse(r,e,t,n){let i=e.type.id;return i==uf||i==J7?new h2(w1(n,1)||"",r):r},strict:!1}),hQ=new Pn((r,e)=>{if(r.next!=e6){r.next<0&&e.context&&r.acceptToken(yh);return}r.advance();let t=r.next==hf;t&&r.advance();let n=w1(r,0);if(n===void 0)return;if(!n)return r.acceptToken(t?F7:Y7);let i=e.context?e.context.name:null;if(t){if(n==i)return r.acceptToken(W7);if(i&&iQ[i])return r.acceptToken(yh,-2);if(e.dialectEnabled(tQ))return r.acceptToken(H7);for(let l=e.context;l;l=l.parent)if(l.name==n)return;r.acceptToken(I7)}else{if(n=="script")return r.acceptToken(F4);if(n=="style")return r.acceptToken(B4);if(n=="textarea")return r.acceptToken(q4);if(rQ.hasOwnProperty(n))return r.acceptToken(U4);i&&o2[i]&&o2[i][n]?r.acceptToken(yh,-1):r.acceptToken(uf)}},{contextual:!0}),fQ=new Pn(r=>{for(let e=0,t=0;;t++){if(r.next<0){t&&r.acceptToken(l2);break}if(r.next==aQ)e++;else if(r.next==Ec&&e>=2){t>=3&&r.acceptToken(l2,-2);break}else e=0;r.advance()}});function dQ(r){for(;r;r=r.parent)if(r.name=="svg"||r.name=="math")return!0;return!1}const pQ=new Pn((r,e)=>{if(r.next==hf&&r.peek(1)==Ec){let t=e.dialectEnabled(nQ)||dQ(e.context);r.acceptToken(t?D7:s2,2)}else r.next==Ec&&r.acceptToken(s2,1)});function ff(r,e,t){let n=2+r.length;return new Pn(i=>{for(let l=0,a=0,c=0;;c++){if(i.next<0){c&&i.acceptToken(e);break}if(l==0&&i.next==e6||l==1&&i.next==hf||l>=2&&l<n&&i.next==r.charCodeAt(l-2))l++,a++;else if(l==n&&i.next==Ec){c>a?i.acceptToken(e,-a):i.acceptToken(t,-(a-2));break}else if((i.next==10||i.next==13)&&c){i.acceptToken(e,1);break}else l=a=0;i.advance()}})}const mQ=ff("script",R7,L7),OQ=ff("style",X7,N7),gQ=ff("textarea",_7,z7),yQ=Hc({"Text RawText IncompleteTag IncompleteCloseTag":M.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":M.angleBracket,TagName:M.tagName,"MismatchedCloseTag/TagName":[M.tagName,M.invalid],AttributeName:M.attributeName,"AttributeValue UnquotedAttributeValue":M.attributeValue,Is:M.definitionOperator,"EntityReference CharacterReference":M.character,Comment:M.blockComment,ProcessingInst:M.processingInstruction,DoctypeDecl:M.documentMeta}),xQ=Ls.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO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c!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:uQ,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:[yQ],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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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:[mQ,OQ,gQ,pQ,hQ,fQ,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function t6(r,e){let t=Object.create(null);for(let n of r.getChildren(K4)){let i=n.getChild(q7),l=n.getChild(S1)||n.getChild(J4);i&&(t[e.read(i.from,i.to)]=l?l.type.id==S1?e.read(l.from+1,l.to-1):e.read(l.from,l.to):"")}return t}function f2(r,e){let t=r.getChild(B7);return t?e.read(t.from,t.to):" "}function xh(r,e,t){let n;for(let i of t)if(!i.attrs||i.attrs(n||(n=t6(r.node.parent.firstChild,e))))return{parser:i.parser,bracketed:!0};return null}function n6(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 a=e.length?Object.create(null):null;for(let c of e)(a[c.name]||(a[c.name]=[])).push(c);return tw((c,u)=>{let f=c.type.id;if(f==U7)return xh(c,u,t);if(f==G7)return xh(c,u,n);if(f==K7)return xh(c,u,i);if(f==G4&&l.length){let m=c.node,O=m.firstChild,y=O&&f2(O,u),S;if(y){for(let w of l)if(w.tag==y&&(!w.attrs||w.attrs(S||(S=t6(O,u))))){let b=m.lastChild,Q=b.type.id==eQ?b.from:m.to;if(Q>O.to)return{parser:w.parser,overlay:[{from:O.to,to:Q}]}}}}if(a&&f==K4){let m=c.node,O;if(O=m.firstChild){let y=a[u.read(O.from,O.to)];if(y)for(let S of y){if(S.tagName&&S.tagName!=f2(m.parent,u))continue;let w=m.lastChild;if(w.type.id==S1){let b=w.from+1,Q=w.lastChild,C=w.to-(Q&&Q.isError?0:1);if(C>b)return{parser:S.parser,overlay:[{from:b,to:C}],bracketed:!0}}else if(w.type.id==J4)return{parser:S.parser,overlay:[{from:w.from,to:w.to}]}}}}return null})}const vQ=132,d2=1,SQ=133,wQ=134,r6=2,kQ=135,bQ=3,QQ=4,i6=[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],$Q=58,PQ=40,s6=95,AQ=91,ic=45,CQ=46,ZQ=35,TQ=37,MQ=38,EQ=92,jQ=10,VQ=42;function oo(r){return r>=65&&r<=90||r>=97&&r<=122||r>=161}function df(r){return r>=48&&r<=57}function p2(r){return df(r)||r>=97&&r<=102||r>=65&&r<=70}const l6=(r,e,t)=>(n,i)=>{for(let l=!1,a=0,c=0;;c++){let{next:u}=n;if(oo(u)||u==ic||u==s6||l&&df(u))!l&&(u!=ic||c>0)&&(l=!0),a===c&&u==ic&&a++,n.advance();else if(u==EQ&&n.peek(1)!=jQ){if(n.advance(),p2(n.next)){do n.advance();while(p2(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();l=!0}else{l&&n.acceptToken(a==2&&i.canShift(r6)?e:u==PQ?t:r);break}}},RQ=new Pn(l6(SQ,r6,wQ),{contextual:!0}),LQ=new Pn(l6(kQ,bQ,QQ),{contextual:!0}),XQ=new Pn(r=>{if(i6.includes(r.peek(-1))){let{next:e}=r;(oo(e)||e==s6||e==ZQ||e==CQ||e==VQ||e==AQ||e==$Q&&oo(r.peek(1))||e==ic||e==MQ)&&r.acceptToken(vQ)}}),NQ=new Pn(r=>{if(!i6.includes(r.peek(-1))){let{next:e}=r;if(e==TQ&&(r.advance(),r.acceptToken(d2)),oo(e)){do r.advance();while(oo(r.next)||df(r.next));r.acceptToken(d2)}}}),_Q=Hc({"AtKeyword import charset namespace keyframes media supports font-feature-values":M.definitionKeyword,"from to selector scope MatchFlag":M.keyword,NamespaceName:M.namespace,KeyframeName:M.labelName,KeyframeRangeName:M.operatorKeyword,TagName:M.tagName,ClassName:M.className,PseudoClassName:M.constant(M.className),IdName:M.labelName,"FeatureName PropertyName":M.propertyName,AttributeName:M.attributeName,NumberLiteral:M.number,KeywordQuery:M.keyword,UnaryQueryOp:M.operatorKeyword,"CallTag ValueName FontName":M.atom,VariableName:M.variableName,Callee:M.operatorKeyword,Unit:M.unit,"UniversalSelector NestingSelector":M.definitionOperator,"MatchOp CompareOp":M.compareOperator,"ChildOp SiblingOp, LogicOp":M.logicOperator,BinOp:M.arithmeticOperator,Important:M.modifier,Comment:M.blockComment,ColorLiteral:M.color,"ParenthesizedContent StringLiteral":M.string,":":M.punctuation,"PseudoOp #":M.derefOperator,"; , |":M.separator,"( )":M.paren,"[ ]":M.squareBracket,"{ }":M.brace}),zQ={__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},DQ={__proto__:null,or:104,and:104,not:112,only:112,layer:180},WQ={__proto__:null,selector:118,layer:176},HQ={__proto__:null,"@import":172,"@media":184,"@charset":188,"@namespace":192,"@keyframes":198,"@supports":210,"@scope":214,"@font-feature-values":220},IQ={__proto__:null,to:217},YQ=Ls.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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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:[_Q],skippedNodes:[0,5,114],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+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=`%{<%lO%jhDRS!mWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!mWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$`Q!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|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:[XQ,NQ,RQ,LQ,1,2,3,4,new Mc("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=>zQ[r]||-1},{term:135,get:r=>DQ[r]||-1},{term:4,get:r=>WQ[r]||-1},{term:28,get:r=>HQ[r]||-1},{term:133,get:r=>IQ[r]||-1}],tokenPrec:2182});let vh=null;function Sh(){if(!vh&&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)));vh=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return vh||[]}const m2=["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})),O2=["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}))),FQ=["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})),BQ=["@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})),Cr=/^(\w[\w-]*|-\w[\w-]*|)$/,qQ=/^-(-[\w-]*)?$/;function UQ(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 g2=new L8,GQ=["Declaration"];function KQ(r){for(let e=r;;){if(e.type.isTop)return e;if(!(e=e.parent))return r}}function o6(r,e,t){if(e.to-e.from>4096){let n=g2.get(e);if(n)return n;let i=[],l=new Set,a=e.cursor(Ge.IncludeAnonymous);if(a.firstChild())do for(let c of o6(r,a.node,t))l.has(c.label)||(l.add(c.label),i.push(c));while(a.nextSibling());return g2.set(e,i),i}else{let n=[],i=new Set;return e.cursor().iterate(l=>{var a;if(t(l)&&l.matchContext(GQ)&&((a=l.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let c=r.sliceString(l.from,l.to);i.has(c)||(i.add(c),n.push({label:c,type:"variable"}))}}),n}}const JQ=r=>e=>{let{state:t,pos:n}=e,i=xt(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:Sh(),validFor:Cr};if(i.name=="ValueName")return{from:i.from,options:O2,validFor:Cr};if(i.name=="PseudoClassName")return{from:i.from,options:m2,validFor:Cr};if(r(i)||(e.explicit||l)&&UQ(i,t.doc))return{from:r(i)||l?i.from:n,options:o6(t.doc,KQ(i),r),validFor:qQ};if(i.name=="TagName"){for(let{parent:u}=i;u;u=u.parent)if(u.name=="Block")return{from:i.from,options:Sh(),validFor:Cr};return{from:i.from,options:FQ,validFor:Cr}}if(i.name=="AtKeyword")return{from:i.from,options:BQ,validFor:Cr};if(!e.explicit)return null;let a=i.resolve(n),c=a.childBefore(n);return c&&c.name==":"&&a.name=="PseudoClassSelector"?{from:n,options:m2,validFor:Cr}:c&&c.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:n,options:O2,validFor:Cr}:a.name=="Block"||a.name=="Styles"?{from:n,options:Sh(),validFor:Cr}:null},e9=JQ(r=>r.name=="VariableName"),jc=js.define({name:"css",parser:YQ.configure({props:[Fc.add({Declaration:tc()}),Bc.add({"Block KeyframeList":I8})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function a6(){return new B1(jc,jc.data.of({autocomplete:e9}))}const t9=316,n9=317,y2=1,r9=2,i9=3,s9=4,l9=318,o9=320,a9=321,c9=5,u9=6,h9=0,k1=[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],c6=125,f9=59,b1=47,d9=42,p9=43,m9=45,O9=60,g9=44,y9=63,x9=46,v9=91,S9=new Y4({start:!1,shift(r,e){return e==c9||e==u9||e==o9?r:e==a9},strict:!1}),w9=new Pn((r,e)=>{let{next:t}=r;(t==c6||t==-1||e.context)&&r.acceptToken(l9)},{contextual:!0,fallback:!0}),k9=new Pn((r,e)=>{let{next:t}=r,n;k1.indexOf(t)>-1||t==b1&&((n=r.peek(1))==b1||n==d9)||t!=c6&&t!=f9&&t!=-1&&!e.context&&r.acceptToken(t9)},{contextual:!0}),b9=new Pn((r,e)=>{r.next==v9&&!e.context&&r.acceptToken(n9)},{contextual:!0}),Q9=new Pn((r,e)=>{let{next:t}=r;if(t==p9||t==m9){if(r.advance(),t==r.next){r.advance();let n=!e.context&&e.canShift(y2);r.acceptToken(n?y2:r9)}}else t==y9&&r.peek(1)==x9&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(i9))},{contextual:!0});function wh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}const $9=new Pn((r,e)=>{if(r.next!=O9||!e.dialectEnabled(h9)||(r.advance(),r.next==b1))return;let t=0;for(;k1.indexOf(r.next)>-1;)r.advance(),t++;if(wh(r.next,!0)){for(r.advance(),t++;wh(r.next,!1);)r.advance(),t++;for(;k1.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==g9)return;for(let n=0;;n++){if(n==7){if(!wh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(n))break;r.advance(),t++}}r.acceptToken(s9,-t)}),P9=Hc({"get set async static":M.modifier,"for while do if else switch try catch finally return throw break continue default case defer":M.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":M.operatorKeyword,"let var const using function class extends":M.definitionKeyword,"import export from":M.moduleKeyword,"with debugger new":M.keyword,TemplateString:M.special(M.string),super:M.atom,BooleanLiteral:M.bool,this:M.self,null:M.null,Star:M.modifier,VariableName:M.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":M.function(M.variableName),VariableDefinition:M.definition(M.variableName),Label:M.labelName,PropertyName:M.propertyName,PrivatePropertyName:M.special(M.propertyName),"CallExpression/MemberExpression/PropertyName":M.function(M.propertyName),"FunctionDeclaration/VariableDefinition":M.function(M.definition(M.variableName)),"ClassDeclaration/VariableDefinition":M.definition(M.className),"NewExpression/VariableName":M.className,PropertyDefinition:M.definition(M.propertyName),PrivatePropertyDefinition:M.definition(M.special(M.propertyName)),UpdateOp:M.updateOperator,"LineComment Hashbang":M.lineComment,BlockComment:M.blockComment,Number:M.number,String:M.string,Escape:M.escape,ArithOp:M.arithmeticOperator,LogicOp:M.logicOperator,BitOp:M.bitwiseOperator,CompareOp:M.compareOperator,RegExp:M.regexp,Equals:M.definitionOperator,Arrow:M.function(M.punctuation),": Spread":M.punctuation,"( )":M.paren,"[ ]":M.squareBracket,"{ }":M.brace,"InterpolationStart InterpolationEnd":M.special(M.brace),".":M.derefOperator,", ;":M.separator,"@":M.meta,TypeName:M.typeName,TypeDefinition:M.definition(M.typeName),"type enum interface implements namespace module declare":M.definitionKeyword,"abstract global Privacy readonly override":M.modifier,"is keyof unique infer asserts":M.operatorKeyword,JSXAttributeValue:M.attributeValue,JSXText:M.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":M.angleBracket,"JSXIdentifier JSXNameSpacedName":M.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":M.attributeName,"JSXBuiltin/JSXIdentifier":M.standard(M.tagName)}),A9={__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},C9={__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},Z9={__proto__:null,"<":193},T9=Ls.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'#ESOO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q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=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:S9,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:[P9],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;=`+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Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[k9,b9,Q9,$9,2,3,4,5,6,7,8,9,10,11,12,13,14,w9,new Mc("$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 Mc("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=>A9[r]||-1},{term:343,get:r=>C9[r]||-1},{term:95,get:r=>Z9[r]||-1}],tokenPrec:15201}),u6=[hn("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),hn("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),hn("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),hn("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),hn("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),hn(`try {
|
|
65
|
-
\${}
|
|
66
|
-
} catch (\${error}) {
|
|
67
|
-
\${}
|
|
68
|
-
}`,{label:"try",detail:"/ catch block",type:"keyword"}),hn("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),hn(`if (\${}) {
|
|
69
|
-
\${}
|
|
70
|
-
} else {
|
|
71
|
-
\${}
|
|
72
|
-
}`,{label:"if",detail:"/ else block",type:"keyword"}),hn(`class \${name} {
|
|
73
|
-
constructor(\${params}) {
|
|
74
|
-
\${}
|
|
75
|
-
}
|
|
76
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),hn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),hn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],M9=u6.concat([hn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),hn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),hn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),x2=new L8,h6=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Rl(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}const E9=["FunctionDeclaration"],j9={FunctionDeclaration:Rl("function"),ClassDeclaration:Rl("class"),ClassExpression:()=>!0,EnumDeclaration:Rl("constant"),TypeAliasDeclaration:Rl("type"),NamespaceDeclaration:Rl("namespace"),VariableDefinition(r,e){r.matchContext(E9)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function f6(r,e){let t=x2.get(e);if(t)return t;let n=[],i=!0;function l(a,c){let u=r.sliceString(a.from,a.to);n.push({label:u,type:c})}return e.cursor(Ge.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let c=j9[a.name];if(c&&c(a,l)||h6.has(a.name))return!1}else if(a.to-a.from>8192){for(let c of f6(r,a.node))n.push(c);return!1}}),x2.set(e,n),n}const v2=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,d6=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function V9(r){let e=xt(r.state).resolveInner(r.pos,-1);if(d6.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&v2.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let i=e;i;i=i.parent)h6.has(i.name)&&(n=n.concat(f6(r.state.doc,i)));return{options:n,from:t?e.from:r.pos,validFor:v2}}const vr=js.define({name:"javascript",parser:T9.configure({props:[Fc.add({IfStatement:tc({except:/^\s*({|else\b)/}),TryStatement:tc({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:$w,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:Qw({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":tc({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}}),Bc.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":I8,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:"$"}}),p6={test:r=>/^JSX/.test(r.name),facet:z8({commentTokens:{block:{open:"{/*",close:"*/}"}}})},m6=vr.configure({dialect:"ts"},"typescript"),O6=vr.configure({dialect:"jsx",props:[F1.add(r=>r.isTop?[p6]:void 0)]}),g6=vr.configure({dialect:"jsx ts",props:[F1.add(r=>r.isTop?[p6]:void 0)]},"typescript");let y6=r=>({label:r,type:"keyword"});const x6="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(y6),R9=x6.concat(["declare","implements","private","protected","public"].map(y6));function v6(r={}){let e=r.jsx?r.typescript?g6:O6:r.typescript?m6:vr,t=r.typescript?M9.concat(R9):u6.concat(x6);return new B1(e,[vr.data.of({autocomplete:gb(d6,Ob(t))}),vr.data.of({autocomplete:V9}),r.jsx?N9:[]])}function L9(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 S2(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 X9=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),N9=Se.inputHandler.of((r,e,t,n,i)=>{if((X9?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!vr.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:a}=l,c=a.changeByRange(u=>{var f;let{head:m}=u,O=xt(a).resolveInner(m-1,-1),y;if(O.name=="JSXStartTag"&&(O=O.parent),!(a.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&&((y=S2(a.doc,w.firstChild,m))||((f=w.firstChild)===null||f===void 0?void 0:f.name)=="JSXFragmentTag")){let b=`${y}>`;return{range:q.cursor(m+b.length,-1),changes:{from:m,insert:b}}}}else if(n==">"){let S=L9(O);if(S&&S.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(m,m+2))&&(y=S2(a.doc,S,m)))return{range:u,changes:{from:m,insert:`</${y}>`}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,a.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Ll=["_blank","_self","_top","_parent"],kh=["ascii","utf-8","utf-16","latin1","latin1"],bh=["get","post","put","delete"],Qh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bn=["true","false"],Qe={},_9={a:{attrs:{href:null,ping:null,type:null,media:null,target:Ll,hreflang:null}},abbr:Qe,address:Qe,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Qe,aside:Qe,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Qe,base:{attrs:{href:null,target:Ll}},bdi:Qe,bdo:Qe,blockquote:{attrs:{cite:null}},body:Qe,br:Qe,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Qh,formmethod:bh,formnovalidate:["novalidate"],formtarget:Ll,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Qe,center:Qe,cite:Qe,code:Qe,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:Qe,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Qe,div:Qe,dl:Qe,dt:Qe,em:Qe,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Qe,figure:Qe,footer:Qe,form:{attrs:{action:null,name:null,"accept-charset":kh,autocomplete:["on","off"],enctype:Qh,method:bh,novalidate:["novalidate"],target:Ll}},h1:Qe,h2:Qe,h3:Qe,h4:Qe,h5:Qe,h6:Qe,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Qe,hgroup:Qe,hr:Qe,html:{attrs:{manifest:null}},i:Qe,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:Qh,formmethod:bh,formnovalidate:["novalidate"],formtarget:Ll,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:Qe,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Qe,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:Qe,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:kh,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:Qe,noscript:Qe,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:Qe,param:{attrs:{name:null,value:null}},pre:Qe,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Qe,rt:Qe,ruby:Qe,samp:Qe,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:kh}},section:Qe,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Qe,source:{attrs:{src:null,type:null,media:null}},span:Qe,strong:Qe,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Qe,summary:Qe,sup:Qe,table:Qe,tbody:Qe,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Qe,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:Qe,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Qe,time:{attrs:{datetime:null}},title:Qe,tr:Qe,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Qe,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:Qe},S6={accesskey:null,class:null,contenteditable:bn,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:bn,autocorrect:bn,autocapitalize:bn,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":bn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bn,"aria-hidden":bn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bn,"aria-multiselectable":bn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bn,"aria-relevant":null,"aria-required":bn,"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},w6="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 w6)S6[r]=null;class Vc{constructor(e,t){this.tags={..._9,...e},this.globalAttrs={...S6,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Vc.default=new Vc;function Xs(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 Ns(r,e=!1){for(;r;r=r.parent)if(r.name=="Element")if(e)e=!1;else return r;return null}function k6(r,e,t){let n=t.tags[Xs(r,Ns(e))];return(n==null?void 0:n.children)||t.allTags}function pf(r,e){let t=[];for(let n=Ns(e);n&&!n.type.isTop;n=Ns(n.parent)){let i=Xs(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 b6=/^[:\-\.\w\u00b7-\uffff]*$/;function w2(r,e,t,n,i){let l=/\s*>/.test(r.sliceDoc(i,i+5))?"":">",a=Ns(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:i,options:k6(r.doc,a,e).map(c=>({label:c,type:"type"})).concat(pf(r.doc,t).map((c,u)=>({label:"/"+c,apply:"/"+c+l,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function k2(r,e,t,n){let i=/\s*>/.test(r.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:pf(r.doc,e).map((l,a)=>({label:l,apply:l+i,type:"type",boost:99-a})),validFor:b6}}function z9(r,e,t,n){let i=[],l=0;for(let a of k6(r.doc,t,e))i.push({label:"<"+a,type:"type"});for(let a of pf(r.doc,t))i.push({label:"</"+a+">",type:"type",boost:99-l++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function D9(r,e,t,n,i){let l=Ns(t),a=l?e.tags[Xs(r.doc,l)]:null,c=a&&a.attrs?Object.keys(a.attrs):[],u=a&&a.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:b6}}function W9(r,e,t,n,i){var l;let a=(l=t.parent)===null||l===void 0?void 0:l.getChild("AttributeName"),c=[],u;if(a){let f=r.sliceDoc(a.from,a.to),m=e.globalAttrs[f];if(!m){let O=Ns(t),y=O?e.tags[Xs(r.doc,O)]:null;m=(y==null?void 0:y.attrs)&&y.attrs[f]}if(m){let O=r.sliceDoc(n,i).toLowerCase(),y='"',S='"';/^['"]/.test(O)?(u=O[0]=='"'?/^[^"]*$/:/^[^']*$/,y="",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:y+w+S,type:"constant"})}}return{from:n,to:i,options:c,validFor:u}}function H9(r,e){let{state:t,pos:n}=e,i=xt(t).resolveInner(n,-1),l=i.resolve(n);for(let a=n,c;l==i&&(c=i.childBefore(a));){let u=c.lastChild;if(!u||!u.type.isError||u.from<u.to)break;l=i=c,a=u.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?k2(t,i,i.from,n):w2(t,r,i,i.from,n):i.name=="StartTag"||i.name=="IncompleteTag"?w2(t,r,i,n,n):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?k2(t,i,n,n):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?D9(t,r,i,i.name=="AttributeName"?i.from:n,n):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?W9(t,r,i,i.name=="Is"?n:i.from,n):e.explicit&&(l.name=="Element"||l.name=="Text"||l.name=="Document")?z9(t,r,i,n):null}function I9(r){let{extraTags:e,extraGlobalAttributes:t}=r,n=t||e?new Vc(e,t):Vc.default;return i=>H9(n,i)}const Y9=vr.parser.configure({top:"SingleExpression"}),Q6=[{tag:"script",attrs:r=>r.type=="text/typescript"||r.lang=="ts",parser:m6.parser},{tag:"script",attrs:r=>r.type=="text/babel"||r.type=="text/jsx",parser:O6.parser},{tag:"script",attrs:r=>r.type=="text/typescript-jsx",parser:g6.parser},{tag:"script",attrs(r){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(r.type)},parser:Y9},{tag:"script",attrs(r){return!r.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(r.type)},parser:vr.parser},{tag:"style",attrs(r){return(!r.lang||r.lang=="css")&&(!r.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(r.type))},parser:jc.parser}],$6=[{name:"style",parser:jc.parser.configure({top:"Styles"})}].concat(w6.map(r=>({name:r,parser:vr.parser}))),P6=js.define({name:"html",parser:xQ.configure({props:[Fc.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}}),Bc.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}}}),J8.add({"OpenTag CloseTag":r=>r.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),sc=P6.configure({wrap:n6(Q6,$6)});function b2(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=n6((r.nestedLanguages||[]).concat(Q6),(r.nestedAttributes||[]).concat($6)));let n=t?P6.configure({wrap:t,dialect:e}):e?sc.configure({dialect:e}):sc;return new B1(n,[sc.data.of({autocomplete:I9(r)}),r.autoCloseTags!==!1?F9:[],v6().support,a6().support])}const Q2=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),F9=Se.inputHandler.of((r,e,t,n,i)=>{if(r.composing||r.state.readOnly||e!=t||n!=">"&&n!="/"||!sc.isActiveAt(r.state,e,-1))return!1;let l=i(),{state:a}=l,c=a.changeByRange(u=>{var f,m,O;let y=a.doc.sliceString(u.from-1,u.to)==n,{head:S}=u,w=xt(a).resolveInner(S,-1),b;if(y&&n==">"&&w.name=="EndTag"){let Q=w.parent;if(((m=(f=Q.parent)===null||f===void 0?void 0:f.lastChild)===null||m===void 0?void 0:m.name)!="CloseTag"&&(b=Xs(a.doc,Q.parent,S))&&!Q2.has(b)){let C=S+(a.doc.sliceString(S,S+1)===">"?1:0),j=`</${b}>`;return{range:u,changes:{from:S,to:C,insert:j}}}}else if(y&&n=="/"&&w.name=="IncompleteCloseTag"){let Q=w.parent;if(w.from==S-2&&((O=Q.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(b=Xs(a.doc,Q,S))&&!Q2.has(b)){let C=S+(a.doc.sliceString(S,S+1)===">"?1:0),j=`${b}>`;return{range:q.cursor(S+j.length,-1),changes:{from:S,to:C,insert:j}}}}return{range:u}});return c.changes.empty?!1:(r.dispatch([l,a.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function B9(r){switch(r){case"html":return b2();case"css":return a6();case"javascript":case"js":case"typescript":case"ts":return v6({typescript:r==="typescript"||r==="ts"});default:return b2()}}function q9(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 U9=p.memo(function({content:e,filePath:t,language:n,onChange:i,readOnly:l=!1}){const a=p.useRef(null),c=p.useRef(null),u=p.useRef(i);u.current=i;const f=p.useCallback(m=>{if(a.current&&(a.current.destroy(),a.current=null),!m)return;c.current=m;const O=n??(t?q9(t):"html"),y=Se.updateListener.of(w=>{w.docChanged&&u.current&&u.current(w.state.doc.toString())}),S=Ie.create({doc:e,extensions:[HS(),ZS(),FS(),uk(),Lw(),Aw(),qw(),Tb(),Yb(),D1.of([...Vb,...pb,...d7,...xk]),B9(O),P7,y,Ie.readOnly.of(l),Se.theme({"&":{height:"100%"},".cm-scroller":{overflow:"auto"}})]});a.current=new Se({state:S,parent:m})},[e,t,n,l]);return v.jsx("div",{ref:f,className:"h-full w-full overflow-hidden"})});function G9({projectId:r,comp:e,isActive:t,onSelect:n}){const[i,l]=p.useState(!1),a=p.useRef(null),c=()=>{a.current=setTimeout(()=>l(!0),300)},u=()=>{a.current&&(clearTimeout(a.current),a.current=null),l(!1)},f=e.replace(/^compositions\//,"").replace(/\.html$/,""),m=`/api/projects/${r}/thumbnail/${e}?t=2`,O=`/api/projects/${r}/preview/comp/${e}`;return v.jsxs("div",{onClick:n,onPointerEnter:c,onPointerLeave:u,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:[v.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[i&&v.jsx("iframe",{src:O,sandbox:"allow-scripts allow-same-origin",className:"absolute inset-0 w-[1920px] h-[1080px] border-none pointer-events-none",style:{transformOrigin:"0 0",transform:`scale(${80/1920})`},tabIndex:-1}),v.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:v.jsx("img",{src:m,alt:f,loading:"lazy",className:"w-full h-full object-contain",onError:y=>{y.target.style.display="none"}})})]}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:f}),v.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})]})}const K9=p.memo(function({projectId:e,compositions:t,activeComposition:n,onSelect:i}){return t.length===0?v.jsx("div",{className:"flex-1 flex items-center justify-center px-4",children:v.jsx("p",{className:"text-xs text-neutral-600 text-center",children:"No compositions found"})}):v.jsx("div",{className:"flex-1 overflow-y-auto",children:t.map(l=>v.jsx(G9,{projectId:e,comp:l,isActive:n===l,onSelect:()=>i(l)},l))})});function A6({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"),a=()=>{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)),a())}),n.addEventListener("error",a),n.src=r,n.load(),a},[r]),e?v.jsx("img",{src:e,alt:"",draggable:!1,className:"w-full h-full object-contain"}):v.jsx("div",{className:"w-full h-full bg-neutral-800 animate-pulse"})}const C6=/\.(jpg|jpeg|png|gif|webp|svg|ico)$/i,Z6=/\.(mp4|webm|mov)$/i,T6=/\.(mp3|wav|ogg|m4a|aac)$/i,M6=/\.(mp4|webm|mov|mp3|wav|ogg|m4a|aac|jpg|jpeg|png|gif|webp|svg|ico)$/i;function $2(r){return M6.test(r)}function J9({serveUrl:r,name:e,isImage:t,isVideo:n,isAudio:i}){return v.jsxs(v.Fragment,{children:[t&&v.jsx("img",{src:r,alt:e,loading:"lazy",className:"w-full h-full object-contain",onError:l=>{l.target.style.display="none"}}),n&&v.jsx(A6,{src:r}),i&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-purple-400",children:[v.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("circle",{cx:"18",cy:"16",r:"3"})]})}),!t&&!n&&!i&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}function e$({projectId:r,asset:e,onCopy:t,isCopied:n,onDelete:i,onRename:l}){const[a,c]=p.useState(!1),[u,f]=p.useState(null),[m,O]=p.useState(!1),[y,S]=p.useState(""),[w,b]=p.useState(!1),Q=e.split("/").pop()??e,C=`/api/projects/${r}/preview/${e}`,j=Z6.test(e);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:()=>t(e),onContextMenu:P=>{P.preventDefault(),f({x:P.clientX,y:P.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:[v.jsxs("div",{className:"w-16 h-10 rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[v.jsx(J9,{serveUrl:C,name:Q,isImage:C6.test(e),isVideo:j,isAudio:T6.test(e)}),j&&a&&v.jsx("video",{src:C,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"})]}),v.jsx("div",{className:"min-w-0 flex-1",children:m?v.jsx("input",{autoFocus:!0,value:y,onChange:P=>S(P.target.value),onKeyDown:P=>{if(P.key==="Enter"){P.preventDefault();const Z=y.trim();if(Z&&Z!==Q){const X=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,X+Z)}O(!1)}else P.key==="Escape"&&O(!1)},onBlur:()=>{const P=y.trim();if(P&&P!==Q){const Z=e.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"";l==null||l(e,Z+P)}O(!1)},onClick:P=>P.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}):v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate block",children:Q}),n?v.jsx("span",{className:"text-[9px] text-studio-accent",children:"Copied!"}):v.jsx("span",{className:"text-[9px] text-neutral-600 truncate block",children:e})]})})]}),u&&v.jsx("div",{className:"fixed inset-0 z-[200]",onClick:()=>f(null),onContextMenu:P=>{P.preventDefault(),f(null)},children:v.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:[v.jsx("button",{onClick:P=>{P.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&&v.jsx("button",{onClick:P=>{P.stopPropagation(),S(Q),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&&v.jsx("button",{onClick:P=>{P.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&&v.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:[v.jsxs("span",{className:"text-[10px] text-red-400 truncate",children:["Delete ",Q,"?"]}),v.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[v.jsx("button",{onClick:P=>{P.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"}),v.jsx("button",{onClick:P=>{P.stopPropagation(),b(!1)},className:"px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors",children:"Cancel"})]})]})]})}const t$=p.memo(function({projectId:e,assets:t,onImport:n,onDelete:i,onRename:l}){const a=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]),y=p.useCallback(async w=>{try{await navigator.clipboard.writeText(w),m(w),setTimeout(()=>m(null),1500)}catch{}},[]),S=t.filter(w=>M6.test(w));return v.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&&v.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800/40 flex-shrink-0",children:[v.jsxs("button",{onClick:()=>{var w;return(w=a.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:[v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:v.jsx("path",{d:"M12 5v14M5 12h14"})}),"Import media"]}),v.jsx("input",{ref:a,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="")}})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:S.length===0?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[v.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"17 8 12 3 7 8",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15",strokeLinecap:"round"})]}),v.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"Drop media files here"})]}):S.map(w=>v.jsx(e$,{projectId:e,asset:w,onCopy:y,isCopied:f===w,onDelete:i,onRename:l},w))})]})}),E6=r=>({title:t,...n})=>v.jsx(r,{alt:t,"aria-label":t,"aria-hidden":t?void 0:!0,...n}),n$=E6(Hx),r$=E6(N2),Zt=14,Rt="duotone";function j6({path:r}){var n;const e=((n=r.split(".").pop())==null?void 0:n.toLowerCase())??"",t="flex-shrink-0";return e==="html"?v.jsx(qx,{size:Zt,weight:Rt,color:"#E44D26",className:t}):e==="css"?v.jsx(Bx,{size:Zt,weight:Rt,color:"#264DE4",className:t}):e==="js"||e==="mjs"||e==="cjs"?v.jsx(Gx,{size:Zt,weight:Rt,color:"#F0DB4F",className:t}):e==="jsx"?v.jsx(Kx,{size:Zt,weight:Rt,color:"#61DAFB",className:t}):e==="ts"||e==="mts"?v.jsx(n3,{size:Zt,weight:Rt,color:"#3178C6",className:t}):e==="tsx"?v.jsx(r3,{size:Zt,weight:Rt,color:"#3178C6",className:t}):e==="json"?v.jsx(Fx,{size:Zt,weight:Rt,color:"#4ADE80",className:t}):e==="svg"?v.jsx(t3,{size:Zt,weight:Rt,color:"#F97316",className:t}):e==="md"||e==="mdx"?v.jsx(Jx,{size:Zt,weight:Rt,color:"#9CA3AF",className:t}):e==="txt"?v.jsx(i3,{size:Zt,weight:Rt,color:"#9CA3AF",className:t}):e==="png"?v.jsx(e3,{size:Zt,weight:Rt,color:"#22C55E",className:t}):e==="jpg"||e==="jpeg"?v.jsx(Ux,{size:Zt,weight:Rt,color:"#22C55E",className:t}):e==="webp"||e==="gif"||e==="ico"?v.jsx(o3,{size:Zt,weight:Rt,color:"#22C55E",className:t}):e==="mp4"||e==="webm"||e==="mov"?v.jsx(s3,{size:Zt,weight:Rt,color:"#A855F7",className:t}):e==="mp3"||e==="wav"||e==="ogg"||e==="m4a"?v.jsx(f3,{size:Zt,weight:Rt,color:"#3CE6AC",className:t}):e==="woff"||e==="woff2"||e==="ttf"||e==="otf"?v.jsx(u3,{size:Zt,weight:Rt,color:"#6B7280",className:t}):v.jsx(Yx,{size:Zt,weight:Rt,color:"#6B7280",className:t})}function i$(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 a=n[l],c=l===n.length-1,u=n.slice(0,l+1).join("/");i.children.has(a)||i.children.set(a,{name:a,fullPath:u,children:new Map,isFile:c}),i=i.children.get(a),c&&(i.isFile=!0)}}return e}function V6(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 mf(r,e){if(!e)return!1;if(r.fullPath===e)return!0;for(const t of r.children.values())if(mf(t,e))return!0;return!1}function s$({state:r,onClose:e,onNewFile:t,onNewFolder:n,onRename:i,onDuplicate:l,onDelete:a}){const c=p.useRef(null);p.useEffect(()=>{const O=S=>{c.current&&!c.current.contains(S.target)&&e()},y=S=>{S.key==="Escape"&&e()};return document.addEventListener("mousedown",O),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",y)}},[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 v.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&&v.jsxs(v.Fragment,{children:[v.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:[v.jsx(xm,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),v.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:[v.jsx(sg,{size:12,weight:"duotone",className:"text-neutral-500"}),"New Folder"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),!r.targetIsFolder&&v.jsxs(v.Fragment,{children:[v.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:[v.jsx(xm,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),v.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:[v.jsx(a3,{size:12,weight:"duotone",className:"text-neutral-500"}),"Rename"]}),!r.targetIsFolder&&v.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:[v.jsx(Ix,{size:12,weight:"duotone",className:"text-neutral-500"}),"Duplicate"]}),v.jsx("div",{className:"border-t border-neutral-700 my-1"}),v.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:()=>{a(r.targetPath),e()},children:[v.jsx(h3,{size:12,weight:"duotone"}),"Delete"]})]})}function Rc({defaultValue:r,depth:e,isFolder:t,onCommit:n,onCancel:i}){const l=p.useRef(null),a=p.useRef(!1),[c,u]=p.useState(r);p.useEffect(()=>{const y=l.current;if(y)if(y.focus(),r&&r.includes(".")){const S=r.lastIndexOf(".");y.setSelectionRange(0,S)}else y.select()},[r]);const f=y=>{a.current||(a.current=!0,n(y))},m=y=>{if(y.key==="Enter"){y.preventDefault();const S=c.trim();S&&!(/[/\\]/.test(S)||S.includes(".."))?f(S):i()}else y.key==="Escape"&&(y.preventDefault(),i())},O=()=>{const y=c.trim();y&&y!==r&&!(/[/\\]/.test(y)||y.includes(".."))?f(y):i()};return v.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?v.jsx(l3,{size:Zt,weight:"duotone",color:"#6B7280",className:"flex-shrink-0"}):v.jsx(j6,{path:c}),v.jsx("input",{ref:l,value:c,onChange:y=>u(y.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 l$({name:r,onConfirm:e,onCancel:t}){const n=p.useRef(null);return p.useEffect(()=>{const i=a=>{a.key==="Escape"&&t()},l=a=>{n.current&&!n.current.contains(a.target)&&t()};return document.addEventListener("keydown",i),document.addEventListener("mousedown",l),()=>{document.removeEventListener("keydown",i),document.removeEventListener("mousedown",l)}},[t]),v.jsxs("div",{ref:n,className:"mx-1 my-0.5 p-2 bg-neutral-800 border border-neutral-700 rounded-md text-xs",children:[v.jsxs("p",{className:"text-neutral-300 mb-2",children:["Delete ",v.jsx("span",{className:"font-medium text-neutral-100",children:r}),"?"]}),v.jsxs("div",{className:"flex gap-1.5",children:[v.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"}),v.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 R6({node:r,depth:e,activeFile:t,onSelectFile:n,defaultOpen:i,onContextMenu:l,inlineInput:a,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O}){const[y,S]=p.useState(i),w=p.useCallback(()=>S(P=>!P),[]),b=p.useMemo(()=>V6(r.children),[r.children]),Q=y?n$:r$,C=O===r.fullPath;return(a==null?void 0:a.mode)==="rename"&&a.originalPath===r.fullPath?v.jsx(Rc,{defaultValue:a.originalName??r.name,depth:e,isFolder:!0,onCommit:P=>{var Z;(Z=a==null?void 0:a.onCommit)==null||Z.call(a,P)},onCancel:()=>{var P;(P=a==null?void 0:a.onCancel)==null||P.call(a)}}):v.jsxs(v.Fragment,{children:[v.jsxs("button",{draggable:!0,onDragStart:P=>c(P,r.fullPath),onClick:w,onContextMenu:P=>{P.preventDefault(),l(P,r.fullPath,!0)},onDragOver:P=>{P.preventDefault(),P.stopPropagation(),u(P,r.fullPath)},onDrop:P=>{P.preventDefault(),P.stopPropagation(),f(P,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 ${C?"bg-[#3CE6AC]/10 outline outline-1 outline-[#3CE6AC]/40":""}`,style:{paddingLeft:`${8+e*12}px`},children:[v.jsx(Q,{size:10,className:"flex-shrink-0 text-neutral-600"}),v.jsx("span",{className:"truncate font-medium",children:r.name})]}),y&&v.jsxs(v.Fragment,{children:[a&&(a.mode==="new-file"||a.mode==="new-folder")&&a.parentPath===r.fullPath&&v.jsx(Rc,{defaultValue:"",depth:e+1,isFolder:a.mode==="new-folder",onCommit:P=>{var Z;(Z=a==null?void 0:a.onCommit)==null||Z.call(a,P)},onCancel:()=>{var P;(P=a==null?void 0:a.onCancel)==null||P.call(a)}}),b.map(P=>P.isFile&&P.children.size===0?v.jsx(Q1,{node:P,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:a,onDragStart:c},P.fullPath):P.children.size>0?v.jsx(R6,{node:P,depth:e+1,activeFile:t,onSelectFile:n,defaultOpen:mf(P,t),onContextMenu:l,inlineInput:a,onDragStart:c,onDragOver:u,onDrop:f,onDragLeave:m,dragOverFolder:O},P.fullPath):v.jsx(Q1,{node:P,depth:e+1,activeFile:t,onSelectFile:n,onContextMenu:l,inlineInput:a,onDragStart:c},P.fullPath))]})]})}function Q1({node:r,depth:e,activeFile:t,onSelectFile:n,onContextMenu:i,inlineInput:l,onDragStart:a}){const c=r.fullPath===t;return(l==null?void 0:l.mode)==="rename"&&l.originalPath===r.fullPath?v.jsx(Rc,{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)}}):v.jsxs("button",{draggable:!0,onDragStart:f=>a(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:[v.jsx(j6,{path:r.name}),v.jsx("span",{className:"truncate",children:r.name})]})}const o$=p.memo(function({files:e,activeFile:t,onSelectFile:n,onCreateFile:i,onCreateFolder:l,onDeleteFile:a,onRenameFile:c,onDuplicateFile:u,onMoveFile:f,onImportFiles:m}){const O=p.useMemo(()=>i$(e),[e]),y=p.useMemo(()=>V6(O.children),[O]),[S,w]=p.useState(null),[b,Q]=p.useState(null),[C,j]=p.useState(null),[P,Z]=p.useState(null),X=p.useRef(null),_=!!(i||l||a||c||u),E=p.useCallback(($,L,G)=>{_&&($.preventDefault(),w({x:$.clientX,y:$.clientY,targetPath:L,targetIsFolder:G}))},[_]),R=p.useCallback(()=>w(null),[]),Y=p.useCallback($=>{Q({parentPath:$,mode:"new-file",onCommit:L=>{const G=$?`${$}/${L}`:L;i==null||i(G),Q(null)},onCancel:()=>Q(null)})},[i]),le=p.useCallback($=>{Q({parentPath:$,mode:"new-folder",onCommit:L=>{const G=$?`${$}/${L}`:L;l==null||l(G),Q(null)},onCancel:()=>Q(null)})},[l]),J=p.useCallback($=>{const L=$.includes("/")?$.slice($.lastIndexOf("/")+1):$,G=$.includes("/")?$.slice(0,$.lastIndexOf("/")):"";Q({parentPath:G,mode:"rename",originalPath:$,originalName:L,onCommit:se=>{if(se!==L){const fe=G?`${G}/${se}`:se;c==null||c($,fe)}Q(null)},onCancel:()=>Q(null)})},[c]),z=p.useCallback($=>{u==null||u($)},[u]),U=p.useCallback($=>{j($)},[]),re=p.useCallback(()=>{C&&(a==null||a(C),j(null))},[C,a]),K=p.useCallback(()=>{j(null)},[]),ae=p.useCallback(($,L)=>{X.current=L,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("text/plain",L)},[]),ce=p.useCallback(($,L)=>{Z(L)},[]),I=p.useCallback(($,L)=>{if($.dataTransfer.files.length>0&&!X.current){$.preventDefault(),m==null||m($.dataTransfer.files,L||void 0),Z(null);return}const G=X.current;if(!G||!f){Z(null);return}const se=G.includes("/")?G.slice(G.lastIndexOf("/")+1):G,fe=L?`${L}/${se}`:se;fe!==G&&!L.startsWith(G+"/")&&f(G,fe),Z(null),X.current=null},[f,m]),ee=p.useCallback(()=>{Z(null)},[]),F=p.useCallback($=>{_&&$.target===$.currentTarget&&($.preventDefault(),w({x:$.clientX,y:$.clientY,targetPath:"",targetIsFolder:!0}))},[_]);return v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[_&&v.jsxs("div",{className:"flex items-center justify-between px-2.5 py-1.5 border-b border-neutral-800/50 flex-shrink-0",children:[v.jsx("span",{className:"text-[10px] font-semibold tracking-wider text-neutral-600 uppercase",children:"Files"}),v.jsxs("div",{className:"flex items-center gap-0.5",children:[v.jsx("button",{onClick:()=>Y(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New File",children:v.jsx(c3,{size:12,weight:"bold"})}),v.jsx("button",{onClick:()=>le(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New Folder",children:v.jsx(sg,{size:12,weight:"duotone"})})]})]}),v.jsxs("div",{className:`flex-1 overflow-y-auto py-1 transition-colors ${P===""?"bg-[#3CE6AC]/5 outline outline-1 outline-[#3CE6AC]/30 -outline-offset-1":""}`,onContextMenu:F,onDragOver:$=>{$.preventDefault(),$.target===$.currentTarget&&Z("")},onDragLeave:$=>{$.target===$.currentTarget&&Z(null)},onDrop:$=>{$.preventDefault(),I($,"")},children:[b&&(b.mode==="new-file"||b.mode==="new-folder")&&b.parentPath===""&&v.jsx(Rc,{defaultValue:"",depth:0,isFolder:b.mode==="new-folder",onCommit:$=>{var L;return(L=b.onCommit)==null?void 0:L.call(b,$)},onCancel:()=>{var $;return($=b.onCancel)==null?void 0:$.call(b)}}),y.map($=>$.isFile&&$.children.size===0?v.jsx(Q1,{node:$,depth:0,activeFile:t,onSelectFile:n,onContextMenu:E,inlineInput:b,onDragStart:ae},$.fullPath):v.jsx(R6,{node:$,depth:0,activeFile:t,onSelectFile:n,defaultOpen:mf($,t),onContextMenu:E,inlineInput:b,onDragStart:ae,onDragOver:ce,onDrop:I,onDragLeave:ee,dragOverFolder:P},$.fullPath))]}),C&&v.jsx("div",{className:"border-t border-neutral-800/50 flex-shrink-0",children:v.jsx(l$,{name:C.includes("/")?C.slice(C.lastIndexOf("/")+1):C,onConfirm:re,onCancel:K})}),S&&v.jsx(s$,{state:S,onClose:R,onNewFile:Y,onNewFolder:le,onRename:J,onDuplicate:z,onDelete:U})]})}),L6="hf-studio-sidebar-tab";function a$(){const r=localStorage.getItem(L6);return r==="assets"?"assets":r==="code"?"code":"compositions"}const c$=p.memo(function({width:e=240,projectId:t,compositions:n,assets:i,activeComposition:l,onSelectComposition:a,onImportFiles:c,fileTree:u,editingFile:f,onSelectFile:m,onCreateFile:O,onCreateFolder:y,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:Q,codeChildren:C,onLint:j,linting:P}){const[Z,X]=p.useState(a$),_=p.useCallback(E=>{X(E),localStorage.setItem(L6,E)},[]);return Ft(()=>{const E=R=>{!R.metaKey&&!R.ctrlKey||(R.key==="1"&&(R.preventDefault(),_("compositions")),R.key==="2"&&(R.preventDefault(),_("assets")))};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)}),v.jsxs("div",{className:"flex flex-col h-full bg-neutral-950 border-r border-neutral-800/50",style:{width:e},children:[v.jsxs("div",{className:"flex border-b border-neutral-800/50 flex-shrink-0",children:[v.jsx("button",{type:"button",onClick:()=>_("code"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${Z==="code"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Code"}),v.jsx("button",{type:"button",onClick:()=>_("compositions"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${Z==="compositions"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Compositions"}),v.jsx("button",{type:"button",onClick:()=>_("assets"),className:`flex-1 py-2 text-[11px] font-medium transition-colors ${Z==="assets"?"text-neutral-200 border-b-2 border-studio-accent":"text-neutral-500 hover:text-neutral-400"}`,children:"Assets"})]}),Z==="compositions"&&v.jsx(K9,{projectId:t,compositions:n,activeComposition:l,onSelect:a}),Z==="assets"&&v.jsx(t$,{projectId:t,assets:i,onImport:c,onDelete:S,onRename:w}),Z==="code"&&v.jsxs("div",{className:"flex flex-1 min-h-0",children:[((u==null?void 0:u.length)??0)>0&&v.jsx("div",{className:"w-[160px] flex-shrink-0 border-r border-neutral-800 overflow-y-auto",children:v.jsx(o$,{files:u??[],activeFile:(f==null?void 0:f.path)??null,onSelectFile:m??(()=>{}),onCreateFile:O,onCreateFolder:y,onDeleteFile:S,onRenameFile:w,onDuplicateFile:b,onMoveFile:Q,onImportFiles:c})}),v.jsx("div",{className:"flex-1 overflow-hidden min-w-0",children:C??v.jsx("div",{className:"flex items-center justify-center h-full text-neutral-600 text-sm",children:"Select a file to edit"})})]}),j&&v.jsx("div",{className:"border-t border-neutral-800 p-2 flex-shrink-0",children:v.jsxs("button",{onClick:j,disabled:P,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:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[v.jsx("path",{d:"M9 11l3 3L22 4"}),v.jsx("path",{d:"M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"})]}),P?"Linting…":"Lint"]})})]})});function u$(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 h$(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 f$=p.memo(function({job:e,projectId:t,onDelete:n}){const[i,l]=p.useState(!1),a=`/api/projects/${t}/renders/file/${e.filename}`,c=p.useCallback(()=>{window.open(a,"_blank")},[a]),u=p.useCallback(O=>{O.stopPropagation();const y=document.createElement("a");y.href=a,y.download=e.filename,y.click()},[a,e.filename]),f=a,m=e.status==="complete";return v.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:v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[m&&v.jsxs(v.Fragment,{children:[i&&v.jsx("video",{src:f,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"}),v.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:v.jsx(A6,{src:f})})]}),e.status==="rendering"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-studio-accent animate-pulse"})}),e.status==="failed"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"})}),e.status==="cancelled"&&v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-neutral-600"})})]}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate",children:e.filename}),e.durationMs&&v.jsx("span",{className:"text-[9px] text-neutral-600 flex-shrink-0",children:u$(e.durationMs)})]}),e.status==="rendering"&&v.jsxs("div",{className:"mt-1",children:[v.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[v.jsx("span",{className:"text-[9px] text-neutral-500",children:e.stage||"Rendering"}),v.jsxs("span",{className:"text-[9px] font-mono text-studio-accent",children:[e.progress,"%"]})]}),v.jsx("div",{className:"w-full h-1 bg-neutral-800 rounded-full overflow-hidden",children:v.jsx("div",{className:"h-full bg-studio-accent rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),e.status==="failed"&&e.error&&v.jsx("span",{className:"text-[9px] text-red-400 mt-0.5 block",children:e.error}),e.status!=="rendering"&&v.jsx("span",{className:"text-[9px] text-neutral-600",children:h$(e.createdAt)})]}),i&&v.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[m&&v.jsx("button",{onClick:u,className:"p-1 rounded text-neutral-500 hover:text-green-400 transition-colors",title:"Download",children:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),v.jsx("button",{onClick:O=>{O.stopPropagation(),n()},className:"p-1 rounded text-neutral-500 hover:text-red-400 transition-colors",title:"Remove",children:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:v.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]})})}),$h={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 d$({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 a=$h[r];return v.jsxs("div",{className:"relative",onPointerEnter:i,onPointerLeave:l,children:[v.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:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"}),v.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),e&&v.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:[v.jsx("p",{className:"text-[10px] font-semibold text-neutral-200 mb-0.5",children:a.label}),v.jsx("p",{className:"text-[9px] text-neutral-400 leading-tight",children:a.desc}),v.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-neutral-800",children:["mp4","mov","webm"].filter(c=>c!==r).map(c=>v.jsxs("p",{className:"text-[9px] text-neutral-500 leading-relaxed",children:[v.jsx("span",{className:"text-neutral-400 font-medium",children:$h[c].label})," — ",$h[c].desc]},c))})]})]})}const P2=[{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 p$({onStartRender:r,isRendering:e}){var c;const[t,n]=p.useState("mp4"),[i,l]=p.useState("standard"),a=t!=="mov";return v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(d$,{format:t}),a&&v.jsx("select",{value:i,onChange:u=>l(u.target.value),disabled:e,title:(c=P2.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:P2.map(u=>v.jsx("option",{value:u.value,title:u.title,children:u.label},u.value))}),v.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 ${a?"":"rounded-l"}`,children:[v.jsx("option",{value:"mp4",children:"MP4"}),v.jsx("option",{value:"mov",children:"MOV"}),v.jsx("option",{value:"webm",children:"WebM"})]}),v.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 m$=p.memo(function({jobs:e,projectId:t,onDelete:n,onClearCompleted:i,onStartRender:l,isRendering:a}){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 v.jsxs("div",{className:"flex flex-col h-full",children:[v.jsx("div",{className:"flex items-center justify-end px-3 py-2 border-b border-neutral-800/50 flex-shrink-0",children:v.jsxs("div",{className:"flex items-center gap-1.5",children:[u>0&&v.jsx("button",{onClick:i,className:"text-[10px] text-neutral-600 hover:text-neutral-400 transition-colors",children:"Clear"}),v.jsx(p$,{onStartRender:l,isRendering:a})]})}),v.jsx("div",{ref:c,className:"flex-1 overflow-y-auto",children:e.length===0?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[v.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",strokeLinecap:"round",strokeLinejoin:"round"})]}),v.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"No renders yet"})]}):e.map(f=>v.jsx(f$,{job:f,projectId:t,onDelete:()=>n(f.id)},f.id))})]})});function O$(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 y=new Set(O.map(w=>w.id)),S=m.renders.filter(w=>!y.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 a=p.useCallback(async(f=30,m="standard",O="mp4")=>{if(!r)return;const y=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 P={id:crypto.randomUUID(),status:"failed",progress:0,error:"Could not reach render server. Use `hyperframes render` from the CLI instead.",filename:"Export failed",createdAt:y};t(Z=>[...Z,P]);return}if(!S.ok){const P={id:crypto.randomUUID(),status:"failed",progress:0,error:`Server error (${S.status}). Check the terminal for details.`,filename:"Export failed",createdAt:y};t(Z=>[...Z,P]);return}const{jobId:w}=await S.json(),Q={mp4:".mp4",webm:".webm",mov:".mov"}[O]??".mp4",C={id:w,status:"rendering",progress:0,filename:`${w}${Q}`,createdAt:y};t(P=>[...P,C]),i.current=w;const j=new EventSource(`/api/render/${w}/progress`);return n.current=j,j.addEventListener("progress",P=>{try{const Z=JSON.parse(P.data);t(X=>X.map(_=>_.id===w?{..._,progress:Z.progress??_.progress,stage:Z.stage??Z.message??_.stage,status:Z.status==="complete"?"complete":Z.status==="failed"?"failed":_.status,durationMs:Z.status==="complete"?Date.now()-y:void 0,error:Z.error??_.error}:_)),(Z.status==="complete"||Z.status==="failed")&&(j.close(),i.current=null)}catch{}}),j.onerror=()=>{j.close(),t(P=>P.map(Z=>Z.id===w&&Z.status==="rendering"?{...Z,status:"failed",error:"Connection lost. Is the render server running?"}:Z)),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:a,deleteRender:c,clearCompleted:u,isRendering:e.some(f=>f.status==="rendering")}}const X6=2,g$=1,A2=X6+g$;function y$(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 a=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>a&&(a=m)}t.push(a)}const i=Math.max(...t,.001);return t.map(l=>l/i)}function x$(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 a=l/e,c=.3+.3*Math.sin(a*Math.PI*3.2)+.2*Math.sin(a*Math.PI*7.1);i.push(Math.max(.05,Math.min(1,c*(.4+.6*n()))))}return i}const Ph=new Map,v$=p.memo(function({audioUrl:e,label:t,labelColor:n}){const i=p.useRef(null),l=p.useRef(null),a=p.useRef(null),[c,u]=p.useState(Ph.get(e)??null);p.useEffect(()=>{if(c||!e)return;const O=new AbortController;return fetch(e,{signal:O.signal}).then(y=>y.arrayBuffer()).then(y=>{const S=new AudioContext;return S.decodeAudioData(y).finally(()=>S.close())}).then(y=>{if(O.signal.aborted)return;const S=y.getChannelData(0),w=y$(S,4e3);Ph.set(e,w),u(w)}).catch(()=>{if(O.signal.aborted)return;const y=x$(e,4e3);Ph.set(e,y),u(y)}),()=>O.abort()},[e,c]);const f=p.useCallback(()=>{const O=i.current,y=l.current;if(!O||!y||!c)return;const S=O.clientWidth||400,w=Math.min(Math.floor(S/A2),c.length);let b="";for(let Q=0;Q<w;Q++){const C=Math.floor(Q/w*c.length),j=c[C]??0,P=Math.max(3,Math.round(j*100)),Z=(.45+j*.4).toFixed(2);b+=`<div style="position:absolute;bottom:0;left:${Q*A2}px;width:${X6}px;height:${P}%;background:rgba(75,163,210,${Z})"></div>`}y.innerHTML=b},[c]),m=p.useCallback(O=>{var y;(y=a.current)==null||y.disconnect(),i.current=O,O&&(f(),a.current=new ResizeObserver(()=>f()),a.current.observe(O))},[f]);return p.useEffect(()=>{f()},[f]),p.useEffect(()=>()=>{var O;(O=a.current)==null||O.disconnect()},[]),v.jsxs("div",{ref:m,className:"absolute inset-0 overflow-hidden",children:[v.jsx("div",{ref:l,className:"absolute left-0 right-0 bottom-0",style:{top:16}}),!c&&v.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%)"}}),v.jsx("div",{className:"absolute top-0 left-0 right-0 px-1.5 py-0.5 z-10",children:v.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 C2({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,[a,c]=p.useState(!1),u=async()=>{const f=r.map(O=>{let y=`[${O.severity}] ${O.message}`;return O.file&&(y+=`
|
|
77
|
-
File: ${O.file}`),O.fixHint&&(y+=`
|
|
78
|
-
Fix: ${O.fixHint}`),y}),m=`Fix these HyperFrames lint issues for project "${e}":
|
|
79
|
-
|
|
80
|
-
Project path: ${window.location.href}
|
|
81
|
-
|
|
82
|
-
${f.join(`
|
|
83
|
-
|
|
84
|
-
`)}`;try{await navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return v.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:t,children:v.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:[v.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-neutral-800",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[l?v.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500/10 flex items-center justify-center",children:v.jsx(Ba,{size:18,className:"text-red-400",weight:"fill"})}):v.jsx("div",{className:"w-8 h-8 rounded-full bg-studio-accent/10 flex items-center justify-center",children:v.jsx(_2,{size:18,className:"text-studio-accent",weight:"fill"})}),v.jsxs("div",{children:[v.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"}),v.jsx("p",{className:"text-xs text-neutral-500",children:"HyperFrame Lint Results"})]})]}),v.jsx("button",{onClick:t,className:"p-1.5 rounded-lg text-neutral-500 hover:text-neutral-200 hover:bg-neutral-800 transition-colors",children:v.jsx(fg,{size:16})})]}),l&&v.jsx("div",{className:"flex items-center justify-end px-5 py-2 border-b border-neutral-800/50",children:v.jsx("button",{onClick:u,className:`px-3 py-1 text-xs font-medium rounded-lg transition-colors ${a?"bg-green-600 text-white":"bg-studio-accent hover:bg-studio-accent/80 text-white"}`,children:a?"Copied!":"Copy to Agent"})}),v.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[!l&&v.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)=>v.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Ba,{size:14,className:"text-red-400 flex-shrink-0 mt-0.5",weight:"fill"}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"text-sm text-neutral-200",children:f.message}),f.file&&v.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&v.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[v.jsx(lc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),v.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`e-${m}`)),i.map((f,m)=>v.jsx("div",{className:"py-3 border-b border-neutral-800/50 last:border-0",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Ba,{size:14,className:"text-amber-400 flex-shrink-0 mt-0.5"}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"text-sm text-neutral-300",children:f.message}),f.file&&v.jsx("p",{className:"text-xs text-neutral-600 font-mono mt-0.5",children:f.file}),f.fixHint&&v.jsxs("div",{className:"flex items-start gap-1 mt-1.5",children:[v.jsx(lc,{size:10,className:"text-studio-accent flex-shrink-0 mt-0.5"}),v.jsx("p",{className:"text-xs text-studio-accent",children:f.fixHint})]})]})]})},`w-${m}`))]})]})})}function S$({projectId:r,filePath:e}){const t=`/api/projects/${r}/preview/${e}`,n=e.split("/").pop()??e;return C6.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[v.jsx("img",{src:t,alt:n,className:"max-w-full max-h-[70%] object-contain rounded border border-neutral-800"}),v.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):Z6.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[v.jsx("video",{src:t,controls:!0,className:"max-w-full max-h-[70%] rounded border border-neutral-800"}),v.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):T6.test(e)?v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-3",children:[v.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("circle",{cx:"18",cy:"16",r:"3"})]}),v.jsx("audio",{src:t,controls:!0,className:"w-full max-w-[280px]"}),v.jsx("span",{className:"text-[11px] text-neutral-500 font-mono",children:e})]}):v.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-2",children:[v.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[v.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]}),v.jsx("span",{className:"text-sm text-neutral-400 font-medium",children:n}),v.jsx("span",{className:"text-[11px] text-neutral-600 font-mono",children:e}),v.jsx("span",{className:"text-[10px] text-neutral-600",children:"Binary file — preview not available"})]})}let w$=0;const Z2={isEditMode:!1,model:null,selectedSegmentIds:new Set,selectedGroupId:null,sourceFilePath:null},qe=V2(r=>({...Z2,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 a=new Map(i.model.segments);return a.set(e,{...l,start:t,end:n}),{model:{...i.model,segments:a}}}),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 a=new Map(i.model.groups),c=l.animation[t],u=c!==null?{...c,...n}:n;return a.set(e,{...l,animation:{...l.animation,[t]:u}}),{model:{...i.model,groups:a}}}),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 a=i.segmentIds.slice(0,l),c=i.segmentIds.slice(l),u=`group-split-${w$++}`,f=new Map(n.model.groups);f.set(e,{...i,segmentIds:a}),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 y=new Map(n.model.segments);return c.forEach((S,w)=>{const b=y.get(S);b&&y.set(S,{...b,groupIndex:w})}),{model:{...n.model,groups:f,segments:y,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 a=[...i.segmentIds,...l.segmentIds],c=new Map(n.model.groups);c.set(e,{...i,segmentIds:a}),c.delete(t);const u=n.model.groupOrder.filter(O=>O!==t),f=new Map(n.model.segments);l.segmentIds.forEach((O,y)=>{const S=f.get(O);S&&f.set(O,{...S,groupIndex:i.segmentIds.length+y})});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({...Z2,selectedSegmentIds:new Set})}));function k$(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(),a=t.getBoundingClientRect(),c=parseFloat(r.style.width)||l.width,u=l.width/c,f=l.left-a.left,m=l.top-a.top,O=n.querySelectorAll(".caption-group"),y=[];for(let b=0;b<e.groupOrder.length;b++){const Q=e.groupOrder[b],C=e.groups.get(Q);if(!C)continue;const j=O[b];if(!j)continue;const P=i.getComputedStyle(j);if(parseFloat(P.opacity)<=.01||P.visibility==="hidden")continue;const Z=[];for(const X of j.children){const _=X;if(_.dataset.captionWrapper==="true"){const E=_.querySelector(":scope > span");E&&Z.push(E)}else _.tagName==="SPAN"&&Z.push(_)}if(Z.length===0&&((S=j.textContent)!=null&&S.trim())){const X=j.childNodes[0];if(X&&X.nodeType===Node.TEXT_NODE){const _=(X.textContent||"").split(/\s+/).filter(Boolean),E=n.createDocumentFragment();for(const R of _){const Y=n.createElement("span");Y.textContent=R+" ",Y.style.display="inline",E.appendChild(Y),Z.push(Y)}j.replaceChild(E,X)}else{const _=j.querySelector(":scope > span");if(_&&((w=_.textContent)!=null&&w.trim())){const E=_.textContent.split(/\s+/).filter(Boolean),R=n.createDocumentFragment();for(const Y of E){const le=n.createElement("span");le.textContent=Y+" ",le.style.display="inline",R.appendChild(le),Z.push(le)}_.replaceWith(R)}}}for(let X=0;X<C.segmentIds.length;X++){const _=C.segmentIds[X],E=Z[X];if(!E)continue;const R=E.getBoundingClientRect();y.push({segmentId:_,groupId:Q,groupIndex:b,wordIndex:X,x:R.left*u+f,y:R.top*u+m,width:R.width*u,height:R.height*u})}}return y}function Ya(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 a of i.children){const c=a;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 zl(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\)/),a=n.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);return{x:a?parseFloat(a[1]):0,y:a?parseFloat(a[2]):0,scale:i?parseFloat(i[1]):1,rotation:l?parseFloat(l[1]):0}}function ws(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 Fa(r,e,t,n,i,l){const a=ws(r),c=e.gsap;c&&c.set?c.set(a,{x:t,y:n,scale:i,rotation:l}):a.style.transform=`translate(${t.toFixed(1)}px, ${n.toFixed(1)}px) rotate(${l.toFixed(1)}deg) scale(${i.toFixed(3)})`}function T2(r,e,t){const n=ws(e),{x:i,y:l,scale:a,rotation:c}=zl(n,t),u={};Math.abs(i)>.5&&(u.x=i),Math.abs(l)>.5&&(u.y=l),Math.abs(a-1)>.001&&(u.scaleX=a,u.scaleY=a),Math.abs(c)>.1&&(u.rotation=c),Object.keys(u).length>0&&qe.getState().updateSegmentStyle(r,u)}const un=8,Ah=20,b$=p.memo(function({iframeRef:e}){const t=qe(Z=>Z.isEditMode),n=qe(Z=>Z.model),i=qe(Z=>Z.selectedSegmentIds),l=qe(Z=>Z.selectSegment),a=qe(Z=>Z.clearSelection),[c,u]=p.useState([]),f=p.useRef(null),m=p.useRef(n);m.current=n;const O=p.useRef(null);Ft(()=>{if(!t)return;let Z=[];const X=()=>{const R=e.current,Y=m.current,le=f.current;if(!R||!Y||!le)return;const J=k$(R,Y,le);J.length===Z.length&&J.every((z,U)=>Math.abs(z.x-Z[U].x)<.5&&Math.abs(z.y-Z[U].y)<.5)||(Z=J,u(J))},_=setInterval(X,66);X();const E=R=>{const{selectedSegmentIds:Y,model:le}=qe.getState();if(Y.size===0||!le)return;const J=R.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(J))return;R.preventDefault();const z=R.shiftKey?10:1,U=J==="ArrowLeft"?-z:J==="ArrowRight"?z:0,re=J==="ArrowUp"?-z:J==="ArrowDown"?z:0,K=e.current,ae=K==null?void 0:K.contentWindow;if(!(!K||!ae))for(const ce of Y)for(let I=0;I<le.groupOrder.length;I++){const ee=le.groups.get(le.groupOrder[I]);if(!ee)continue;const F=ee.segmentIds.indexOf(ce);if(F<0)continue;const $=Ya(K,I,F);if(!$)continue;const L=ws($),G=zl(L,ae);Fa($,ae,G.x+U,G.y+re,G.scale,G.rotation),T2(ce,$,ae);break}};return window.addEventListener("keydown",E),()=>{clearInterval(_),window.removeEventListener("keydown",E)}});const y=p.useCallback(()=>{const Z=e.current;if(!Z)return 1;const X=Z.getBoundingClientRect(),_=parseFloat(Z.style.width)||X.width;return X.width/_},[e]),S=p.useCallback((Z,X,_,E)=>{E.stopPropagation(),E.currentTarget.setPointerCapture(E.pointerId);const R=e.current;if(!R)return;const Y=Ya(R,Z,X),le=R.contentWindow;if(!Y||!le)return;const J=zl(ws(Y),le);O.current={type:"move",wordEl:Y,segmentId:_,startMX:E.clientX,startMY:E.clientY,origTX:J.x,origTY:J.y,origScale:J.scale,origRotation:J.rotation}},[e]),w=p.useCallback((Z,X,_,E)=>{var K;E.stopPropagation(),E.preventDefault(),E.currentTarget.setPointerCapture(E.pointerId);const R=e.current;if(!R)return;const Y=Ya(R,Z,X),le=R.contentWindow;if(!Y||!le)return;const J=Y.getBoundingClientRect(),z=y(),U=J.left*z+(((K=e.current)==null?void 0:K.getBoundingClientRect().left)??0)+J.width*z/2,re=zl(ws(Y),le);O.current={type:"scale",wordEl:Y,segmentId:_,startMX:E.clientX,startDxFromCenter:E.clientX-U,origTX:re.x,origTY:re.y,origScale:re.scale,origRotation:re.rotation}},[e,y]),b=p.useCallback((Z,X)=>{X.stopPropagation(),X.preventDefault(),X.currentTarget.setPointerCapture(X.pointerId);const _=e.current;if(!_)return;const E=Ya(_,Z.groupIndex,Z.wordIndex),R=_.contentWindow;if(!E||!R)return;const Y=zl(ws(E),R);O.current={type:"rotate",wordEl:E,segmentId:Z.segmentId,startMX:X.clientX,origTX:Y.x,origTY:Y.y,origRotation:Y.rotation,origScale:Y.scale}},[e]),Q=p.useCallback(()=>{var Z;try{return((Z=e.current)==null?void 0:Z.contentWindow)??null}catch{return null}},[e]),C=p.useCallback(Z=>{const X=O.current;if(!X)return;const _=Q();if(_){if(X.type==="move"){const E=y(),R=(Z.clientX-X.startMX)/E,Y=(Z.clientY-X.startMY)/E;Fa(X.wordEl,_,X.origTX+R,X.origTY+Y,X.origScale,X.origRotation)}else if(X.type==="scale"){const E=X.startMX-X.startDxFromCenter,R=Math.abs(X.startDxFromCenter),Y=Math.abs(Z.clientX-E),le=R>5?Y/R:1,J=Math.max(.1,X.origScale*le);Fa(X.wordEl,_,X.origTX,X.origTY,J,X.origRotation)}else if(X.type==="rotate"){const R=(Z.clientX-X.startMX)/200*90;Fa(X.wordEl,_,X.origTX,X.origTY,X.origScale,X.origRotation+R)}}},[y,Q]),j=p.useCallback(()=>{const Z=O.current;if(Z){const X=Q();X&&T2(Z.segmentId,Z.wordEl,X),O.current=null}},[Q]),P=p.useCallback(Z=>{Z.target===Z.currentTarget&&a()},[a]);return t?v.jsx("div",{ref:f,className:"absolute inset-0 z-50",style:{pointerEvents:"auto"},onClick:P,onPointerMove:C,onPointerUp:j,onLostPointerCapture:j,children:c.map(Z=>{const X=i.has(Z.segmentId);return v.jsx("div",{className:["absolute",X?"ring-2 ring-studio-accent":"hover:ring-1 hover:ring-white/30"].join(" "),style:{left:Z.x,top:Z.y,width:Z.width,height:Z.height,cursor:X?"move":"pointer",touchAction:"none",borderRadius:2},onClick:_=>{_.stopPropagation(),l(Z.segmentId,_.shiftKey)},onPointerDown:_=>{X&&S(Z.groupIndex,Z.wordIndex,Z.segmentId,_)},children:X&&v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{position:"absolute",left:"50%",top:-Ah-un,marginLeft:-un/2,width:un,height:un,borderRadius:"50%",backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",cursor:"grab",touchAction:"none"},onPointerDown:_=>b(Z,_)}),v.jsx("div",{style:{position:"absolute",left:"50%",top:-Ah,width:1,height:Ah,marginLeft:-.5,backgroundColor:"var(--hf-accent, #3CE6AC)",opacity:.5,pointerEvents:"none"}}),[{right:-un/2,bottom:-un/2,cursor:"nwse-resize"},{left:-un/2,top:-un/2,cursor:"nwse-resize"},{right:-un/2,top:-un/2,cursor:"nesw-resize"},{left:-un/2,bottom:-un/2,cursor:"nesw-resize"}].map((_,E)=>v.jsx("div",{style:{position:"absolute",..._,width:un,height:un,backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",borderRadius:2,touchAction:"none"},onPointerDown:R=>w(Z.groupIndex,Z.wordIndex,Z.segmentId,R)},E))]})},Z.segmentId)})}):null}),ui="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 $1({label:r,children:e}){return v.jsxs("div",{className:"mb-3",children:[v.jsx("div",{className:"flex items-center gap-1.5 mt-2 mb-1.5",children:v.jsx("span",{className:"text-2xs font-medium text-neutral-500 uppercase tracking-wider",children:r})}),v.jsx("div",{className:"space-y-1",children:e})]})}function Mr({label:r,children:e}){return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-2xs text-neutral-600 w-14 text-right flex-shrink-0",children:r}),v.jsx("div",{className:"flex-1 min-w-0",children:e})]})}const Q$=["none","fade","slide-up","slide-down","slide-left","slide-right","pop","slam","bounce","typewriter","blur-in","flip","drop"],$$=["none","color-change","scale-pop","glow-pulse","underline-sweep","background-fill","bounce"],P$=["none","fade","slide-up","slide-down","slide-left","slide-right","scatter","drop","collapse","blur-out","shrink"],A$=["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 Ch({label:r,presets:e,animation:t,showIntensity:n,onChange:i}){const l=(t==null?void 0:t.preset)??"none",a=(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 v.jsxs($1,{label:r,children:[v.jsx(Mr,{label:"Preset",children:v.jsx("select",{value:l,onChange:m=>i({preset:m.target.value}),className:ui,children:e.map(m=>v.jsx("option",{value:m,children:m},m))})}),v.jsx(Mr,{label:"Duration",children:v.jsx("input",{type:"number",value:a,step:.05,min:0,max:2,onChange:m=>i({duration:Number(m.target.value)}),className:ui})}),v.jsx(Mr,{label:"Ease",children:v.jsx("select",{value:c,onChange:m=>i({ease:m.target.value}),className:ui,children:A$.map(m=>v.jsx("option",{value:m,children:m},m))})}),v.jsx(Mr,{label:"Stagger",children:v.jsx("input",{type:"number",value:u,step:.02,min:0,max:.5,onChange:m=>i({stagger:Number(m.target.value)}),className:ui})}),n&&v.jsx(Mr,{label:"Intensity",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.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"}),v.jsx("span",{className:"text-2xs text-neutral-400 font-mono w-8 text-right flex-shrink-0",children:f.toFixed(2)})]})})]})}const C$=p.memo(function(){const e=qe(S=>S.model),t=qe(S=>S.selectedGroupId),n=qe(S=>S.selectedSegmentIds),i=qe(S=>S.updateGroupAnimation),l=qe(S=>S.applyAnimationToAll);let a=t;if(!a&&e&&n.size>0){const S=[...n][0];if(S){for(const[w,b]of e.groups)if(b.segmentIds.includes(S)){a=w;break}}}const c=a?e==null?void 0:e.groups.get(a):void 0,u=c==null?void 0:c.animation,f=p.useCallback(S=>{a&&i(a,"entrance",S)},[a,i]),m=p.useCallback(S=>{a&&i(a,"highlight",S)},[a,i]),O=p.useCallback(S=>{a&&i(a,"exit",S)},[a,i]),y=p.useCallback(()=>{u&&l(u)},[u,l]);return!c||!a||!u?v.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:v.jsx("p",{className:"text-xs text-neutral-500",children:"Select a caption group to edit animations"})}):v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[v.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[v.jsx(Ch,{label:"Entrance",presets:Q$,animation:u.entrance,onChange:f}),v.jsx(Ch,{label:"Highlight",presets:$$,animation:u.highlight,showIntensity:!0,onChange:m}),v.jsx(Ch,{label:"Exit",presets:P$,animation:u.exit,onChange:O})]}),v.jsx("div",{className:"flex-shrink-0 px-3 py-2 border-t border-neutral-800",children:v.jsx("button",{type:"button",onClick:y,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"})})]})}),Z$=p.memo(function({iframeRef:e}){var _;const t=qe(E=>E.model),n=qe(E=>E.selectedSegmentIds),i=qe(E=>E.selectedGroupId),l=qe(E=>E.updateSelectedStyle),a=qe(E=>E.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 E of t.groupOrder){const R=t.groups.get(E);if(R&&R.segmentIds.includes(f)){O=E;break}}const y=O?(_=t==null?void 0:t.groups.get(O))==null?void 0:_.style:void 0,S=(m==null?void 0:m.style)??{},w={...y,...S},b=p.useCallback(E=>{var U,re,K;const R=e.current;if(!R||!t)return;let Y=null;try{Y=R.contentDocument}catch{return}if(!Y)return;const le=Y.querySelectorAll(".caption-group"),J=[];for(const ae of n)for(let ce=0;ce<t.groupOrder.length;ce++){const I=t.groups.get(t.groupOrder[ce]);if(!I)continue;const ee=I.segmentIds.indexOf(ae);if(ee<0)continue;const F=le[ce];if(!F)continue;const $=F.children;let L=0;for(const G of $){const se=G;if(se.dataset.captionWrapper==="true"){const fe=se.querySelector(":scope > span");if(fe&&L===ee){J.push(fe);break}}else if(se.tagName==="SPAN"&&L===ee){J.push(se);break}L++}break}if(E.x!==void 0||E.y!==void 0||E.scaleX!==void 0||E.scaleY!==void 0||E.rotation!==void 0)try{const ae=(re=(U=e.current)==null?void 0:U.contentWindow)==null?void 0:re.gsap;if(ae)for(const ce of J){let I=ce.parentElement;(!I||I.dataset.captionWrapper!=="true")&&(I=Y.createElement("span"),I.style.display="inline-block",I.dataset.captionWrapper="true",(K=ce.parentNode)==null||K.insertBefore(I,ce),I.appendChild(ce));const ee=ae.getProperty(I,"x")||0,F=ae.getProperty(I,"y")||0,$=ae.getProperty(I,"scale")||1,L=ae.getProperty(I,"rotation")||0;ae.set(I,{x:E.x??ee,y:E.y??F,scale:E.scaleX??$,rotation:E.rotation??L})}}catch{}},[e,t,n]),Q=p.useCallback(E=>{i?a(i,E):l(E),b(E)},[i,a,l,b]);if(n.size===0)return v.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:v.jsx("p",{className:"text-xs text-neutral-500",children:"Select caption words to edit their style"})});const C=w.x??0,j=w.y??0,P=w.rotation??0,Z=w.scaleX??1,X=n.size===1?"1 word":`${n.size} words`;return v.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[v.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800 flex-shrink-0",children:[v.jsx("div",{className:"flex items-center justify-between mb-1.5",children:v.jsx("span",{className:"text-2xs text-neutral-500",children:X})}),v.jsxs("div",{className:"flex gap-1",children:[v.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"}),v.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"&&v.jsx(C$,{}),c==="style"&&v.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[v.jsxs($1,{label:"Position",children:[v.jsx(Mr,{label:"X",children:v.jsx("input",{type:"number",value:C,onChange:E=>Q({x:Number(E.target.value)}),className:ui})}),v.jsx(Mr,{label:"Y",children:v.jsx("input",{type:"number",value:j,onChange:E=>Q({y:Number(E.target.value)}),className:ui})})]}),v.jsxs($1,{label:"Transform",children:[v.jsx(Mr,{label:"Scale",children:v.jsx("input",{type:"number",value:Z,step:.1,onChange:E=>Q({scaleX:Number(E.target.value),scaleY:Number(E.target.value)}),className:ui})}),v.jsx(Mr,{label:"Rotation",children:v.jsx("input",{type:"number",value:P,onChange:E=>Q({rotation:Number(E.target.value)}),className:ui})})]})]})]})}),M2=["#3CE6AC","#FF6B6B","#4ECDC4","#FFE66D","#A78BFA","#F472B6","#34D399","#FB923C","#60A5FA","#C084FC"],T$=p.memo(function({pixelsPerSecond:e,onSeek:t}){const n=qe(b=>b.model),i=qe(b=>b.selectedSegmentIds),l=qe(b=>b.selectSegment),a=qe(b=>b.updateSegmentTiming),c=qe(b=>b.splitGroup),u=p.useRef(null),f=p.useCallback((b,Q,C,j,P)=>{b.stopPropagation(),b.preventDefault(),b.target.setPointerCapture(b.pointerId),u.current={segId:Q,edge:C,originalStart:j,originalEnd:P,startX:b.clientX}},[]),m=p.useCallback(b=>{const Q=u.current;if(!Q)return;const C=(b.clientX-Q.startX)/e;if(Q.edge==="start"){const j=Math.max(0,Q.originalStart+C),P=Math.min(j,Q.originalEnd-.05);a(Q.segId,P,Q.originalEnd)}else{const j=Math.max(Q.originalStart+.05,Q.originalEnd+C),P=Math.max(0,j);a(Q.segId,Q.originalStart,P)}},[e,a]),O=p.useCallback(()=>{u.current=null},[]),y=p.useCallback((b,Q)=>{b.stopPropagation(),l(Q,b.shiftKey)},[l]),S=p.useCallback((b,Q,C)=>{b.stopPropagation(),c(Q,C)},[c]),w=p.useCallback(b=>{if(!t)return;const Q=b.currentTarget.getBoundingClientRect(),C=b.clientX-Q.left-32,j=Math.max(0,C/e);t(j)},[t,e]);return n?v.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,Q)=>{const C=n.groups.get(b);if(!C)return null;const j=M2[Q%M2.length];return C.segmentIds.map(P=>{const Z=n.segments.get(P);if(!Z)return null;const X=32+Z.start*e,_=Math.max((Z.end-Z.start)*e,4),E=i.has(P);return v.jsxs("div",{className:`absolute top-1 bottom-1 rounded flex items-center overflow-hidden cursor-pointer${E?" ring-1 ring-white/50 z-10":""}`,style:{left:X,width:_,backgroundColor:j,zIndex:E?10:1},onClick:R=>y(R,P),onDoubleClick:R=>S(R,b,P),children:[v.jsx("div",{className:"absolute left-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:R=>f(R,P,"start",Z.start,Z.end)}),v.jsx("span",{className:"flex-1 truncate px-2 pointer-events-none",style:{fontSize:9,color:"#000000",lineHeight:1},children:Z.text}),v.jsx("div",{className:"absolute right-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:R=>f(R,P,"end",Z.start,Z.end)})]},P)})})}):null});function M$(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 a=r.segments.get(l);if(a&&Object.keys(a.style).length>0){const c={wordIndex:t};a.wordId&&(c.wordId=a.wordId);const u=a.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 E$(r){const e=p.useRef(r);e.current=r;const t=p.useRef(null),n=p.useRef(!1),i=p.useCallback(()=>{const a=qe.getState();if(!a.model||!a.sourceFilePath||!a.isEditMode)return;const c=e.current;if(!c)return;const u=M$(a.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))},[]);Ft(()=>{let a=qe.getState().model;const c=qe.subscribe(u=>{if(!(!u.isEditMode||u.model===a||!u.model)){if(a=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 a=qe.getState();if(!a.model||!a.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=a.model,y=[];for(const w of O.groupOrder){const b=O.groups.get(w);if(b)for(const Q of b.segmentIds)y.push(Q)}const S=new Map(O.segments);for(const w of m){const b=y[w.wordIndex];if(!b)continue;const Q=S.get(b);if(!Q)continue;const C={...Q.style};w.x!==void 0&&(C.x=w.x),w.y!==void 0&&(C.y=w.y),w.scale!==void 0&&(C.scaleX=w.scale,C.scaleY=w.scale),w.rotation!==void 0&&(C.rotation=w.rotation),w.activeColor!==void 0&&(C.activeColor=w.activeColor),w.dimColor!==void 0&&(C.dimColor=w.dimColor),w.opacity!==void 0&&(C.opacity=w.opacity),w.fontSize!==void 0&&(C.fontSize=w.fontSize),w.fontWeight!==void 0&&(C.fontWeight=w.fontWeight),w.fontFamily!==void 0&&(C.fontFamily=w.fontFamily),S.set(b,{...Q,style:C})}n.current=!0,qe.getState().setModel({...O,segments:S})}catch{}},[]);return{save:i,loadOverrides:l}}const N6={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"},j$={backgroundColor:"transparent",backgroundOpacity:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,borderRadius:0,borderWidth:0,borderColor:"transparent",borderStyle:"solid",boxShadow:"none"},E2={preset:"fade",duration:.2,ease:"power2.out",stagger:0,staggerDirection:"start",intensity:1},ms={entrance:E2,highlight:null,exit:{...E2}};function V$(r,e){const{width:t,height:n,duration:i,wordsPerGroup:l=5}=e,a=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}`,y=[];m.forEach((w,b)=>{const Q=`segment-${f+b}`,C={id:Q,wordId:w.id??`w${f+b}`,text:w.text,start:w.start,end:w.end,groupIndex:b,style:{},animation:{}};a.set(Q,C),y.push(Q)});const S={id:O,segmentIds:y,style:{...N6},animation:{entrance:{...ms.entrance},highlight:ms.highlight,exit:{...ms.exit}},containerStyle:{...j$}};c.set(O,S),u.push(O)}return{width:t,height:n,duration:i,segments:a,groups:c,groupOrder:u,defaultAnimation:{entrance:{...ms.entrance},highlight:ms.highlight,exit:{...ms.exit}}}}function R$(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 X$(n)}catch{return[]}}function L$(r,e,t,n,i,l){const a=R$(t);if(a.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=V$(a,{width:n,height:i,duration:l,wordsPerGroup:f}),O=u.item(0),y=c.item(0),S=O??y;if(S){const w=e.getComputedStyle(S),b={},Q=parseFloat(w.fontSize);!isNaN(Q)&&Q>0&&(b.fontSize=Q);const C=w.fontWeight;if(C){const E=parseInt(C,10);b.fontWeight=isNaN(E)?C:E}const j=w.fontFamily;j&&(b.fontFamily=j);const P=w.color;P&&(b.color=P);const Z=w.textTransform;(Z==="none"||Z==="uppercase"||Z==="lowercase"||Z==="capitalize")&&(b.textTransform=Z);const X=w.letterSpacing;if(X&&X!=="normal"){const E=parseFloat(X),R=b.fontSize??N6.fontSize;!isNaN(E)&&R>0&&(b.letterSpacing=E/R)}const _={};if(y){const E=e.getComputedStyle(y),R=E.backgroundColor;R&&R!=="rgba(0, 0, 0, 0)"&&R!=="transparent"&&(_.backgroundColor=R,_.backgroundOpacity=1);const Y=parseFloat(E.borderRadius);!isNaN(Y)&&Y>0&&(_.borderRadius=Y);const le=parseFloat(E.paddingTop),J=parseFloat(E.paddingRight),z=parseFloat(E.paddingBottom),U=parseFloat(E.paddingLeft);isNaN(le)||(_.paddingTop=le),isNaN(J)||(_.paddingRight=J),isNaN(z)||(_.paddingBottom=z),isNaN(U)||(_.paddingLeft=U)}for(const E of m.groupOrder){const R=m.groups.get(E);R&&(R.style={...R.style,...b},R.containerStyle={...R.containerStyle,..._})}}return m}function X$(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 N$(){const[r,e]=p.useState(null),[t,n]=p.useState(!0);Ft(()=>{const H=window.location.hash.match(/^#project\/([^/]+)/);if(H){e(H[1]),n(!1);return}fetch("/api/projects").then(he=>he.json()).then(he=>{const Oe=(he.projects??[])[0];Oe&&(e(Oe.id),window.location.hash=`#project/${Oe.id}`)}).catch(()=>{}).finally(()=>n(!1))});const[i,l]=p.useState(null),[a,c]=p.useState(null),[u,f]=p.useState([]),[m,O]=p.useState(new Map),y=O$(r),S=qe(H=>H.isEditMode),w=qe(H=>H.selectedSegmentIds.size>0),b=E$(r),[Q,C]=p.useState(240),[j,P]=p.useState(400),[Z,X]=p.useState(!1),[_,E]=p.useState(!0);p.useEffect(()=>{if(!r)return;let H=!1;const he=()=>{if(qe.getState().isEditMode||H)return;const Le=ve.current;let Pe=null,Gt=null;try{Pe=(Le==null?void 0:Le.contentDocument)??null,Gt=(Le==null?void 0:Le.contentWindow)??null}catch{return}if(!Pe||!Gt||Pe.querySelectorAll(".caption-group").length===0)return;let Nt=null;const xi=Pe.querySelectorAll("[data-composition-src], [data-composition-file]");for(const _t of xi){const ft=_t.getAttribute("data-composition-src")||_t.getAttribute("data-composition-file");if(ft&&ft.includes("captions")){Nt=ft;break}}if(!Nt){for(const[_t,ft]of m)if(_t.includes("caption")||ft.includes("caption")){Nt=ft;break}}if(!Nt&&(a!=null&&a.includes("captions"))&&(Nt=a),!Nt){const _t=Pe.querySelector('[data-composition-id*="caption"]');if(_t){const ft=_t.getAttribute("data-composition-id")||"";Nt=m.get(ft)||null}}if(!Nt)return;H=!0;const Ii=Nt;fetch(`/api/projects/${r}/files/${encodeURIComponent(Ii)}`).then(_t=>_t.json()).then(_t=>{if(!_t.content||!Pe||!Gt||qe.getState().isEditMode)return;const ft=Pe.querySelector("[data-composition-id]"),Nr=parseInt((ft==null?void 0:ft.getAttribute("data-width"))??"1920",10),_r=parseInt((ft==null?void 0:ft.getAttribute("data-height"))??"1080",10),go=parseFloat((ft==null?void 0:ft.getAttribute("data-duration"))??"0"),Ys=L$(Pe,Gt,_t.content,Nr,_r,go);if(!Ys)return;const Yi=qe.getState();Yi.setModel(Ys),Yi.setSourceFilePath(Ii),Yi.setEditMode(!0),b.loadOverrides()}).catch(()=>{}).finally(()=>{H=!1})},Oe=Le=>{const Pe=Le.data;(Pe==null?void 0:Pe.source)==="hf-preview"&&((Pe==null?void 0:Pe.type)==="state"||(Pe==null?void 0:Pe.type)==="timeline")&&he()};return window.addEventListener("message",Oe),he(),()=>{window.removeEventListener("message",Oe)}},[a,r,m,b]),p.useEffect(()=>{S&&E(!w)},[w,S]);const[R,Y]=p.useState(!1),[le,J]=p.useState(null),[z,U]=p.useState(!1),re=p.useRef(0),K=p.useRef(null),ae=a?`/api/projects/${r}/preview/comp/${a}`:null,ce=p.useCallback((H,he)=>{const Oe=pe.current;if(!Oe)return null;let Le=H.compositionSrc;if(Le&&m.size>0){const Pe=m.get(H.id)||m.get(Le.replace(/^compositions\//,"").replace(/\.html$/,""));Pe&&(Le=Pe)}if(Le)return v.jsx(H0,{previewUrl:`/api/projects/${Oe}/preview/comp/${Le}`,label:H.id||H.tag,labelColor:he.label,seekTime:0,duration:H.duration});if(ae&&H.duration>0)return v.jsx(H0,{previewUrl:ae,label:H.id||H.tag,labelColor:he.label,seekTime:H.start,duration:H.duration});if(H.tag==="audio"){const Pe=H.src?H.src.startsWith("http")?H.src:`/api/projects/${Oe}/preview/${H.src}`:"";return v.jsx(v$,{audioUrl:Pe,label:H.id||H.tag,labelColor:he.label})}if((H.tag==="video"||H.tag==="img")&&H.src){const Pe=H.src.startsWith("http")?H.src:`/api/projects/${Oe}/preview/${H.src}`;return v.jsx(ox,{videoSrc:Pe,label:H.id||H.tag,labelColor:he.label,duration:H.duration})}if(H.tag==="div"&&H.duration>0){const Pe=`/api/projects/${Oe}/preview`;return v.jsx(H0,{previewUrl:Pe,label:H.id||H.tag,labelColor:he.label,seekTime:H.start,duration:H.duration})}return null},[m,ae]),[I,ee]=p.useState(null),[F,$]=p.useState(null),[L,G]=p.useState(!1),[se,fe]=p.useState(0),$e=p.useRef(null),ue=p.useRef(null),pe=p.useRef(r),ve=p.useRef(null),Te=p.useRef([]);Ft(()=>{const H=()=>{$e.current&&clearTimeout($e.current),$e.current=setTimeout(()=>fe(Oe=>Oe+1),400)},he=new EventSource("/api/events");return he.addEventListener("file-change",H),()=>he.close()}),pe.current=r,p.useEffect(()=>{if(!r)return;let H=!1;return fetch(`/api/projects/${r}`).then(he=>he.json()).then(he=>{!H&&he.files&&f(he.files)}).catch(()=>{}),()=>{H=!0}},[r]);const Ee=p.useCallback(H=>{const he=pe.current;if(he){if(C(Oe=>Math.max(Oe,Math.floor(window.innerWidth*.5))),$2(H)){l({path:H,content:null});return}fetch(`/api/projects/${he}/files/${encodeURIComponent(H)}`).then(Oe=>Oe.json()).then(Oe=>{Oe.content!=null&&l({path:H,content:Oe.content})}).catch(()=>{})}},[]),De=p.useRef(i==null?void 0:i.path);De.current=i==null?void 0:i.path;const ht=p.useCallback(H=>{const he=pe.current;if(!he)return;const Oe=De.current;Oe&&(ue.current&&clearTimeout(ue.current),ue.current=setTimeout(()=>{fetch(`/api/projects/${he}/files/${encodeURIComponent(Oe)}`,{method:"PUT",headers:{"Content-Type":"text/plain"},body:H}).then(()=>{$e.current&&clearTimeout($e.current),$e.current=setTimeout(()=>fe(Le=>Le+1),600)}).catch(()=>{})},600))},[]),B=p.useCallback(async()=>{const H=pe.current;if(!H)return;const Oe=await(await fetch(`/api/projects/${H}`)).json();Oe.files&&f(Oe.files)},[]),Ze=p.useCallback(async H=>{const he=pe.current;if(!he)return;let Oe="";H.endsWith(".html")&&(Oe=`<!DOCTYPE html>
|
|
85
|
-
<html>
|
|
86
|
-
<head>
|
|
87
|
-
<meta charset="UTF-8">
|
|
88
|
-
</head>
|
|
89
|
-
<body>
|
|
90
|
-
|
|
91
|
-
</body>
|
|
92
|
-
</html>
|
|
93
|
-
`);const Le=await fetch(`/api/projects/${he}/files/${encodeURIComponent(H)}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:Oe});if(Le.ok)await B(),Ee(H);else{const Pe=await Le.json().catch(()=>({error:"unknown"}));console.error(`Create file failed: ${Pe.error}`)}},[B,Ee]),Ne=p.useCallback(async H=>{const he=pe.current;if(!he)return;const Oe=await fetch(`/api/projects/${he}/files/${encodeURIComponent(H+"/.gitkeep")}`,{method:"POST",headers:{"Content-Type":"text/plain"},body:""});if(Oe.ok)await B();else{const Le=await Oe.json().catch(()=>({error:"unknown"}));console.error(`Create folder failed: ${Le.error}`)}},[B]),Me=p.useCallback(async H=>{const he=pe.current;if(!he)return;const Oe=await fetch(`/api/projects/${he}/files/${encodeURIComponent(H)}`,{method:"DELETE"});if(Oe.ok)De.current===H&&l(null),await B();else{const Le=await Oe.json().catch(()=>({error:"unknown"}));console.error(`Delete failed: ${Le.error}`)}},[B]),Ke=p.useCallback(async(H,he)=>{const Oe=pe.current;if(!Oe)return;const Le=await fetch(`/api/projects/${Oe}/files/${encodeURIComponent(H)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({newPath:he})});if(Le.ok)De.current===H&&Ee(he),await B(),fe(Pe=>Pe+1);else{const Pe=await Le.json().catch(()=>({error:"unknown"}));console.error(`Rename failed: ${Pe.error}`)}},[B,Ee]),Fe=p.useCallback(async H=>{const he=pe.current;if(!he)return;const Oe=await fetch(`/api/projects/${he}/duplicate-file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:H})});if(Oe.ok){const Le=await Oe.json();await B(),Le.path&&Ee(Le.path)}else{const Le=await Oe.json().catch(()=>({error:"unknown"}));console.error(`Duplicate failed: ${Le.error}`)}},[B,Ee]),st=Ke,vt=p.useCallback(H=>{J(H),setTimeout(()=>J(null),4e3)},[]),St=p.useCallback(async(H,he)=>{var Gt;const Oe=pe.current;if(!Oe||H.length===0)return;const Le=new FormData;for(const gn of Array.from(H))Le.append("file",gn);const Pe=he?`?dir=${encodeURIComponent(he)}`:"";try{const gn=await fetch(`/api/projects/${Oe}/upload${Pe}`,{method:"POST",body:Le});if(gn.ok){const Nt=await gn.json();(Gt=Nt.skipped)!=null&&Gt.length&&vt(`Skipped (too large): ${Nt.skipped.join(", ")}`),await B(),fe(xi=>xi+1)}else gn.status===413?vt("Upload rejected: payload too large"):vt(`Upload failed (${gn.status})`)}catch{vt("Upload failed: network error")}},[B,vt]),er=p.useCallback(async()=>{const H=pe.current;if(H){G(!0);try{const Le=((await(await fetch(`/api/projects/${H}/lint`)).json()).findings??[]).map(Pe=>({severity:Pe.severity==="error"?"error":"warning",message:Pe.message??"",file:Pe.file,fixHint:Pe.fixHint}));ee(Le)}catch(he){const Oe=he instanceof Error?he.message:String(he);ee([{severity:"error",message:`Failed to run lint: ${Oe}`}])}finally{G(!1)}}},[]),Nn=p.useCallback((H,he)=>{he.preventDefault(),he.target.setPointerCapture(he.pointerId),K.current={side:H,startX:he.clientX,startW:H==="left"?Q:j}},[Q,j]),tr=p.useCallback(H=>{const he=K.current;if(!he)return;const Oe=H.clientX-he.startX,Le=Math.floor(window.innerWidth*.5),Pe=Math.max(160,Math.min(he.side==="left"?Le:600,he.startW+(he.side==="left"?Oe:-Oe)));he.side==="left"?C(Pe):P(Pe)},[]),_n=p.useCallback(()=>{K.current=null},[]),Ut=p.useMemo(()=>u.filter(H=>H==="index.html"||H.startsWith("compositions/")),[u]),Xr=p.useMemo(()=>u.filter(H=>!H.endsWith(".html")&&!H.endsWith(".md")&&!H.endsWith(".json")),[u]);return t||!r?v.jsx("div",{className:"h-full w-full bg-neutral-950 flex items-center justify-center",children:v.jsx("div",{className:"w-4 h-4 rounded-full bg-studio-accent animate-pulse"})}):v.jsxs("div",{className:"flex flex-col h-full w-full bg-neutral-950 relative",onDragOver:H=>{H.dataTransfer.types.includes("Files")&&H.preventDefault()},onDragEnter:H=>{H.dataTransfer.types.includes("Files")&&(H.preventDefault(),re.current++,Y(!0))},onDragLeave:()=>{re.current--,re.current===0&&Y(!1)},onDrop:H=>{re.current=0,Y(!1),!H.defaultPrevented&&(H.preventDefault(),H.dataTransfer.files.length&&St(H.dataTransfer.files))},children:[v.jsxs("div",{className:"flex items-center justify-between h-10 px-3 bg-neutral-900 border-b border-neutral-800 flex-shrink-0",children:[v.jsx("div",{className:"flex items-center gap-2",children:v.jsx("span",{className:"text-[11px] font-medium text-neutral-400",children:r})}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("button",{onClick:()=>X(H=>!H),className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${Z?"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:Z?"Show sidebar":"Hide sidebar",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),v.jsx("path",{d:"M9 3v18"})]})}),v.jsx("button",{onClick:()=>U(H=>!H),className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${z?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"bg-transparent border-transparent text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800"}`,title:z?"Hide timeline":"Show timeline",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),v.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),v.jsx("line",{x1:"3",y1:"5",x2:"21",y2:"5"})]})}),v.jsxs("button",{onClick:()=>E(H=>!H),className:`h-7 flex items-center gap-1.5 px-2.5 rounded-md text-[11px] font-medium border transition-colors ${_?"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:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16",fill:"currentColor",stroke:"none"})]}),"Renders",y.jobs.length>0?` (${y.jobs.length})`:""]})]})]}),v.jsxs("div",{className:"flex flex-1 min-h-0",children:[!Z&&v.jsx(c$,{width:Q,projectId:r,compositions:Ut,assets:Xr,activeComposition:(i==null?void 0:i.path)??null,onSelectComposition:H=>{c(H==="index.html"||H.startsWith("compositions/")?H:null),l({path:H,content:null}),fetch(`/api/projects/${r}/files/${H}`).then(he=>he.json()).then(he=>l({path:H,content:he.content})).catch(()=>{})},fileTree:u,editingFile:i,onSelectFile:Ee,onCreateFile:Ze,onCreateFolder:Ne,onDeleteFile:Me,onRenameFile:Ke,onDuplicateFile:Fe,onMoveFile:st,onImportFiles:St,codeChildren:i?$2(i.path)?v.jsx(S$,{projectId:r??"",filePath:i.path}):v.jsx(U9,{content:i.content??"",filePath:i.path,onChange:ht}):void 0,onLint:er,linting:L}),!Z&&v.jsx("div",{className:"w-1 flex-shrink-0 bg-neutral-800 hover:bg-studio-accent cursor-col-resize transition-colors active:bg-studio-accent/80",style:{touchAction:"none"},onPointerDown:H=>Nn("left",H),onPointerMove:tr,onPointerUp:_n}),v.jsx("div",{className:"flex-1 relative min-w-0",children:v.jsx(g3,{projectId:r,refreshKey:se,activeCompositionPath:a,renderClipContent:ce,onCompIdToSrcChange:O,onCompositionChange:H=>{c(H)},onIframeRef:H=>{if(ve.current=H,Te.current=[],$(null),!H)return;const he=()=>{try{const Oe=H.contentWindow;if(!Oe||Oe.__hfErrorCapture)return;Oe.__hfErrorCapture=!0;const Le=Oe.console.error.bind(Oe.console);Oe.console.error=function(...Pe){Le(...Pe);const Gt=Pe.map(gn=>gn instanceof Error?gn.message:String(gn)).join(" ");Gt.includes("favicon")||(Te.current=[...Te.current,{severity:"error",message:Gt}],$([...Te.current]))},Oe.addEventListener("error",Pe=>{const Gt=Pe.message||String(Pe);Te.current=[...Te.current,{severity:"error",message:Gt}],$([...Te.current])})}catch{}};he(),H.addEventListener("load",()=>{Te.current=[],$(null),he()})},previewOverlay:S?v.jsx(b$,{iframeRef:ve}):void 0,timelineFooter:S?v.jsxs("div",{className:"border-t border-neutral-800/30 flex-shrink-0",style:{height:60},children:[v.jsx("div",{className:"flex items-center gap-1.5 px-2 py-0.5",children:v.jsx("span",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Captions"})}),v.jsx(T$,{pixelsPerSecond:100})]}):void 0,timelineVisible:z,onToggleTimeline:()=>U(H=>!H)})}),!_&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"w-1 flex-shrink-0 bg-neutral-800 hover:bg-studio-accent cursor-col-resize transition-colors active:bg-studio-accent/80",style:{touchAction:"none"},onPointerDown:H=>Nn("right",H),onPointerMove:tr,onPointerUp:_n}),v.jsx("div",{className:"flex flex-col border-l border-neutral-800 bg-neutral-900 flex-shrink-0",style:{width:j},children:S?v.jsx(Z$,{iframeRef:ve}):v.jsx(m$,{jobs:y.jobs,projectId:r,onDelete:y.deleteRender,onClearCompleted:y.clearCompleted,onStartRender:(H,he)=>y.startRender(30,he,H),isRendering:y.isRendering})})]})]}),I!==null&&r&&v.jsx(C2,{findings:I,projectId:r,onClose:()=>ee(null)}),F!==null&&F.length>0&&r&&v.jsx(C2,{findings:F,projectId:r,onClose:()=>$(null)}),R&&v.jsx("div",{className:"absolute inset-0 z-[90] flex items-center justify-center bg-black/50 backdrop-blur-sm pointer-events-none",children:v.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:[v.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:[v.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v.jsx("polyline",{points:"7 10 12 15 17 10"}),v.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),v.jsx("span",{className:"text-sm font-medium text-studio-accent",children:"Drop files to import into project"})]})}),le&&v.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-[91] px-4 py-2 rounded-lg bg-red-900/90 border border-red-700/50 text-sm text-red-200 shadow-lg animate-in fade-in slide-in-from-bottom-2",children:le})]})}Wy.createRoot(document.getElementById("root")).render(v.jsx(p.StrictMode,{children:v.jsx(N$,{})}));
|