hyperframes 0.6.79 → 0.6.80

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.
@@ -46,7 +46,7 @@ var nT=Object.defineProperty;var rT=(t,e,n)=>e in t?nT(t,e,{enumerable:!0,config
46
46
  `+W[p].replace(" at new "," at ");return a.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",a.displayName)),de}while(1<=p&&0<=b);break}}}finally{Ae=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?Se(f):""}function Ve(a,o){switch(a.tag){case 26:case 27:case 5:return Se(a.type);case 16:return Se("Lazy");case 13:return a.child!==o&&o!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Me(a.type,!1);case 11:return Me(a.type.render,!1);case 1:return Me(a.type,!0);case 31:return Se("Activity");default:return""}}function Pe(a){try{var o="",f=null;do o+=Ve(a,f),f=a,a=a.return;while(a);return o}catch(p){return`
47
47
  Error generating stack: `+p.message+`
48
48
  `+p.stack}}var ft=Object.prototype.hasOwnProperty,yt=t.unstable_scheduleCallback,_e=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,Le=t.unstable_requestPaint,be=t.unstable_now,dt=t.unstable_getCurrentPriorityLevel,Ue=t.unstable_ImmediatePriority,bt=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,on=t.unstable_LowPriority,Rt=t.unstable_IdlePriority,we=t.log,ht=t.unstable_setDisableYieldValue,Mt=null,ot=null;function ve(a){if(typeof we=="function"&&ht(a),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Mt,a)}catch{}}var ze=Math.clz32?Math.clz32:vt,Ze=Math.log,Be=Math.LN2;function vt(a){return a>>>=0,a===0?32:31-(Ze(a)/Be|0)|0}var lt=256,Je=262144,mt=4194304;function Tt(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function cn(a,o,f){var p=a.pendingLanes;if(p===0)return 0;var b=0,S=a.suspendedLanes,Q=a.pingedLanes;a=a.warmLanes;var _=p&134217727;return _!==0?(p=_&~S,p!==0?b=Tt(p):(Q&=_,Q!==0?b=Tt(Q):f||(f=_&~a,f!==0&&(b=Tt(f))))):(_=p&~S,_!==0?b=Tt(_):Q!==0?b=Tt(Q):f||(f=p&~a,f!==0&&(b=Tt(f)))),b===0?0:o!==0&&o!==b&&(o&S)===0&&(S=b&-b,f=o&-o,S>=f||S===32&&(f&4194048)!==0)?o:b}function Bn(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function bl(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sa(){var a=mt;return mt<<=1,(mt&62914560)===0&&(mt=4194304),a}function Zi(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function En(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function di(a,o,f,p,b,S){var Q=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var _=a.entanglements,W=a.expirationTimes,se=a.hiddenUpdates;for(f=Q&~f;0<f;){var de=31-ze(f),pe=1<<de;_[de]=0,W[de]=-1;var oe=se[de];if(oe!==null)for(se[de]=null,de=0;de<oe.length;de++){var ce=oe[de];ce!==null&&(ce.lane&=-536870913)}f&=~pe}p!==0&&wa(a,p,0),S!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=S&~(Q&~o))}function wa(a,o,f){a.pendingLanes|=o,a.suspendedLanes&=~o;var p=31-ze(o);a.entangledLanes|=o,a.entanglements[p]=a.entanglements[p]|1073741824|f&261930}function ka(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var p=31-ze(f),b=1<<p;b&o|a[p]&o&&(a[p]|=o),f&=~b}}function Ce(a,o){var f=o&-o;return f=(f&42)!==0?1:rt(f),(f&(a.suspendedLanes|o))!==0?0:f}function rt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function bn(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function mr(){var a=G.p;return a!==0?a:(a=window.event,a===void 0?32:x5(a.type))}function vl(a,o){var f=G.p;try{return G.p=a,o()}finally{G.p=f}}var jr=Math.random().toString(36).slice(2),tn="__reactFiber$"+jr,vn="__reactProps$"+jr,Ur="__reactContainer$"+jr,Aa="__reactEvents$"+jr,Ni="__reactListeners$"+jr,xe="__reactHandles$"+jr,Fe="__reactResources$"+jr,ct="__reactMarker$"+jr;function zt(a){delete a[tn],delete a[vn],delete a[Aa],delete a[Ni],delete a[xe]}function Tn(a){var o=a[tn];if(o)return o;for(var f=a.parentNode;f;){if(o=f[Ur]||f[tn]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=n5(a);a!==null;){if(f=a[tn])return f;a=n5(a)}return o}a=f,f=a.parentNode}return null}function Pr(a){if(a=a[tn]||a[Ur]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Kn(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Ma(a){var o=a[Fe];return o||(o=a[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function un(a){a[ct]=!0}var r0=new Set,i0={};function Ri(a,o){Ca(a,o),Ca(a+"Capture",o)}function Ca(a,o){for(i0[a]=o,a=0;a<o.length;a++)r0.add(o[a])}var Ud=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),a0={},l0={};function Wd(a){return ft.call(l0,a)?!0:ft.call(a0,a)?!1:Ud.test(a)?l0[a]=!0:(a0[a]=!0,!1)}function Ea(a,o,f){if(Wd(o))if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var p=o.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+f)}}function pt(a,o,f){if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+f)}}function $t(a,o,f,p){if(p===null)a.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(o,f,""+p)}}function Lt(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Jn(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Wr(a,o,f){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,S=p.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return b.call(this)},set:function(Q){f=""+Q,S.call(this,Q)}}),Object.defineProperty(a,o,{enumerable:p.enumerable}),{getValue:function(){return f},setValue:function(Q){f=""+Q},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Kr(a){if(!a._valueTracker){var o=Jn(a)?"checked":"value";a._valueTracker=Wr(a,o,""+a[o])}}function H6(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),p="";return a&&(p=Jn(a)?a.checked?"true":"false":a.value),a=p,a!==f?(o.setValue(a),!0):!1}function s0(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var UM=/[\n"\\]/g;function Qr(a){return a.replace(UM,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Kd(a,o,f,p,b,S,Q,_){a.name="",Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?a.type=Q:a.removeAttribute("type"),o!=null?Q==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Lt(o)):a.value!==""+Lt(o)&&(a.value=""+Lt(o)):Q!=="submit"&&Q!=="reset"||a.removeAttribute("value"),o!=null?Jd(a,Q,Lt(o)):f!=null?Jd(a,Q,Lt(f)):p!=null&&a.removeAttribute("value"),b==null&&S!=null&&(a.defaultChecked=!!S),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?a.name=""+Lt(_):a.removeAttribute("name")}function X6(a,o,f,p,b,S,Q,_){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(a.type=S),o!=null||f!=null){if(!(S!=="submit"&&S!=="reset"||o!=null)){Kr(a);return}f=f!=null?""+Lt(f):"",o=o!=null?""+Lt(o):f,_||o===a.value||(a.value=o),a.defaultValue=o}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=_?a.checked:!!p,a.defaultChecked=!!p,Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"&&(a.name=Q),Kr(a)}function Jd(a,o,f){o==="number"&&s0(a.ownerDocument)===a||a.defaultValue===""+f||(a.defaultValue=""+f)}function ls(a,o,f,p){if(a=a.options,o){o={};for(var b=0;b<f.length;b++)o["$"+f[b]]=!0;for(f=0;f<a.length;f++)b=o.hasOwnProperty("$"+a[f].value),a[f].selected!==b&&(a[f].selected=b),b&&p&&(a[f].defaultSelected=!0)}else{for(f=""+Lt(f),o=null,b=0;b<a.length;b++){if(a[b].value===f){a[b].selected=!0,p&&(a[b].defaultSelected=!0);return}o!==null||a[b].disabled||(o=a[b])}o!==null&&(o.selected=!0)}}function z6(a,o,f){if(o!=null&&(o=""+Lt(o),o!==a.value&&(a.value=o),f==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=f!=null?""+Lt(f):""}function F6(a,o,f,p){if(o==null){if(p!=null){if(f!=null)throw Error(r(92));if(K(p)){if(1<p.length)throw Error(r(93));p=p[0]}f=p}f==null&&(f=""),o=f}f=Lt(o),a.defaultValue=f,p=a.textContent,p===f&&p!==""&&p!==null&&(a.value=p),Kr(a)}function ss(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var WM=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function B6(a,o,f){var p=o.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?p?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":p?a.setProperty(o,f):typeof f!="number"||f===0||WM.has(o)?o==="float"?a.cssFloat=f:a[o]=(""+f).trim():a[o]=f+"px"}function Y6(a,o,f){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,f!=null){for(var p in f)!f.hasOwnProperty(p)||o!=null&&o.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="");for(var b in o)p=o[b],o.hasOwnProperty(b)&&f[b]!==p&&B6(a,b,p)}else for(var S in o)o.hasOwnProperty(S)&&B6(a,S,o[S])}function eh(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var KM=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),JM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function o0(a){return JM.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Vi(){}var th=null;function nh(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var os=null,cs=null;function I6(a){var o=Pr(a);if(o&&(a=o.stateNode)){var f=a[vn]||null;e:switch(a=o.stateNode,o.type){case"input":if(Kd(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Qr(""+o)+'"][type="radio"]'),o=0;o<f.length;o++){var p=f[o];if(p!==a&&p.form===a.form){var b=p[vn]||null;if(!b)throw Error(r(90));Kd(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(o=0;o<f.length;o++)p=f[o],p.form===a.form&&H6(p)}break e;case"textarea":z6(a,f.value,f.defaultValue);break e;case"select":o=f.value,o!=null&&ls(a,!!f.multiple,o,!1)}}}var rh=!1;function q6(a,o,f){if(rh)return a(o,f);rh=!0;try{var p=a(o);return p}finally{if(rh=!1,(os!==null||cs!==null)&&(G0(),os&&(o=os,a=cs,cs=os=null,I6(o),a)))for(o=0;o<a.length;o++)I6(a[o])}}function Xo(a,o){var f=a.stateNode;if(f===null)return null;var p=f[vn]||null;if(p===null)return null;f=p[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":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(r(231,o,typeof f));return f}var _i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ih=!1;if(_i)try{var zo={};Object.defineProperty(zo,"passive",{get:function(){ih=!0}}),window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch{ih=!1}var Ta=null,ah=null,c0=null;function G6(){if(c0)return c0;var a,o=ah,f=o.length,p,b="value"in Ta?Ta.value:Ta.textContent,S=b.length;for(a=0;a<f&&o[a]===b[a];a++);var Q=f-a;for(p=1;p<=Q&&o[f-p]===b[S-p];p++);return c0=b.slice(a,1<p?1-p:void 0)}function u0(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function f0(){return!0}function U6(){return!1}function er(a){function o(f,p,b,S,Q){this._reactName=f,this._targetInst=b,this.type=p,this.nativeEvent=S,this.target=Q,this.currentTarget=null;for(var _ in a)a.hasOwnProperty(_)&&(f=a[_],this[_]=f?f(S):S[_]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?f0:U6,this.isPropagationStopped=U6,this}return O(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=f0)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=f0)},persist:function(){},isPersistent:f0}),o}var Sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},d0=er(Sl),Fo=O({},Sl,{view:0,detail:0}),eC=er(Fo),lh,sh,Bo,h0=O({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ch,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Bo&&(Bo&&a.type==="mousemove"?(lh=a.screenX-Bo.screenX,sh=a.screenY-Bo.screenY):sh=lh=0,Bo=a),lh)},movementY:function(a){return"movementY"in a?a.movementY:sh}}),W6=er(h0),tC=O({},h0,{dataTransfer:0}),nC=er(tC),rC=O({},Fo,{relatedTarget:0}),oh=er(rC),iC=O({},Sl,{animationName:0,elapsedTime:0,pseudoElement:0}),aC=er(iC),lC=O({},Sl,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),sC=er(lC),oC=O({},Sl,{data:0}),K6=er(oC),cC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uC={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"},fC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dC(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=fC[a])?!!o[a]:!1}function ch(){return dC}var hC=O({},Fo,{key:function(a){if(a.key){var o=cC[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=u0(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?uC[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ch,charCode:function(a){return a.type==="keypress"?u0(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?u0(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),mC=er(hC),pC=O({},h0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J6=er(pC),gC=O({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ch}),OC=er(gC),xC=O({},Sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yC=er(xC),bC=O({},h0,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),vC=er(bC),SC=O({},Sl,{newState:0,oldState:0}),wC=er(SC),kC=[9,13,27,32],uh=_i&&"CompositionEvent"in window,Yo=null;_i&&"documentMode"in document&&(Yo=document.documentMode);var AC=_i&&"TextEvent"in window&&!Yo,eO=_i&&(!uh||Yo&&8<Yo&&11>=Yo),tO=" ",nO=!1;function rO(a,o){switch(a){case"keyup":return kC.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iO(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var us=!1;function MC(a,o){switch(a){case"compositionend":return iO(o);case"keypress":return o.which!==32?null:(nO=!0,tO);case"textInput":return a=o.data,a===tO&&nO?null:a;default:return null}}function CC(a,o){if(us)return a==="compositionend"||!uh&&rO(a,o)?(a=G6(),c0=ah=Ta=null,us=!1,a):null;switch(a){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 eO&&o.locale!=="ko"?null:o.data;default:return null}}var EC={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 aO(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!EC[a.type]:o==="textarea"}function lO(a,o,f,p){os?cs?cs.push(p):cs=[p]:os=p,o=n1(o,"onChange"),0<o.length&&(f=new d0("onChange","change",null,f,p),a.push({event:f,listeners:o}))}var Io=null,qo=null;function TC(a){Xx(a,0)}function m0(a){var o=Kn(a);if(H6(o))return a}function sO(a,o){if(a==="change")return o}var oO=!1;if(_i){var fh;if(_i){var dh="oninput"in document;if(!dh){var cO=document.createElement("div");cO.setAttribute("oninput","return;"),dh=typeof cO.oninput=="function"}fh=dh}else fh=!1;oO=fh&&(!document.documentMode||9<document.documentMode)}function uO(){Io&&(Io.detachEvent("onpropertychange",fO),qo=Io=null)}function fO(a){if(a.propertyName==="value"&&m0(qo)){var o=[];lO(o,qo,a,nh(a)),q6(TC,o)}}function $C(a,o,f){a==="focusin"?(uO(),Io=o,qo=f,Io.attachEvent("onpropertychange",fO)):a==="focusout"&&uO()}function jC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return m0(qo)}function PC(a,o){if(a==="click")return m0(o)}function QC(a,o){if(a==="input"||a==="change")return m0(o)}function ZC(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var pr=typeof Object.is=="function"?Object.is:ZC;function Go(a,o){if(pr(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),p=Object.keys(o);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var b=f[p];if(!ft.call(o,b)||!pr(a[b],o[b]))return!1}return!0}function dO(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function hO(a,o){var f=dO(a);a=0;for(var p;f;){if(f.nodeType===3){if(p=a+f.textContent.length,a<=o&&p>=o)return{node:f,offset:o-a};a=p}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=dO(f)}}function mO(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?mO(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function pO(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=s0(a.document);o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=s0(a.document)}return o}function hh(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var NC=_i&&"documentMode"in document&&11>=document.documentMode,fs=null,mh=null,Uo=null,ph=!1;function gO(a,o,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;ph||fs==null||fs!==s0(p)||(p=fs,"selectionStart"in p&&hh(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Uo&&Go(Uo,p)||(Uo=p,p=n1(mh,"onSelect"),0<p.length&&(o=new d0("onSelect","select",null,o,f),a.push({event:o,listeners:p}),o.target=fs)))}function wl(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var ds={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},gh={},OO={};_i&&(OO=document.createElement("div").style,"AnimationEvent"in window||(delete ds.animationend.animation,delete ds.animationiteration.animation,delete ds.animationstart.animation),"TransitionEvent"in window||delete ds.transitionend.transition);function kl(a){if(gh[a])return gh[a];if(!ds[a])return a;var o=ds[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in OO)return gh[a]=o[f];return a}var xO=kl("animationend"),yO=kl("animationiteration"),bO=kl("animationstart"),RC=kl("transitionrun"),VC=kl("transitionstart"),_C=kl("transitioncancel"),vO=kl("transitionend"),SO=new Map,Oh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Oh.push("scrollEnd");function Jr(a,o){SO.set(a,o),Ri(o,[a])}var p0=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Zr=[],hs=0,xh=0;function g0(){for(var a=hs,o=xh=hs=0;o<a;){var f=Zr[o];Zr[o++]=null;var p=Zr[o];Zr[o++]=null;var b=Zr[o];Zr[o++]=null;var S=Zr[o];if(Zr[o++]=null,p!==null&&b!==null){var Q=p.pending;Q===null?b.next=b:(b.next=Q.next,Q.next=b),p.pending=b}S!==0&&wO(f,b,S)}}function O0(a,o,f,p){Zr[hs++]=a,Zr[hs++]=o,Zr[hs++]=f,Zr[hs++]=p,xh|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function yh(a,o,f,p){return O0(a,o,f,p),x0(a)}function Al(a,o){return O0(a,null,null,o),x0(a)}function wO(a,o,f){a.lanes|=f;var p=a.alternate;p!==null&&(p.lanes|=f);for(var b=!1,S=a.return;S!==null;)S.childLanes|=f,p=S.alternate,p!==null&&(p.childLanes|=f),S.tag===22&&(a=S.stateNode,a===null||a._visibility&1||(b=!0)),a=S,S=S.return;return a.tag===3?(S=a.stateNode,b&&o!==null&&(b=31-ze(f),a=S.hiddenUpdates,p=a[b],p===null?a[b]=[o]:p.push(o),o.lane=f|536870912),S):null}function x0(a){if(50<xc)throw xc=0,Em=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var ms={};function LC(a,o,f,p){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gr(a,o,f,p){return new LC(a,o,f,p)}function bh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Li(a,o){var f=a.alternate;return f===null?(f=gr(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&65011712,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function kO(a,o){a.flags&=65011714;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,o=f.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function y0(a,o,f,p,b,S){var Q=0;if(p=a,typeof a=="function")bh(a)&&(Q=1);else if(typeof a=="string")Q=FE(a,f,Y.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case R:return a=gr(31,f,o,b),a.elementType=R,a.lanes=S,a;case w:return Ml(f.children,b,S,o);case A:Q=8,b|=24;break;case k:return a=gr(12,f,o,b|2),a.elementType=k,a.lanes=S,a;case M:return a=gr(13,f,o,b),a.elementType=M,a.lanes=S,a;case j:return a=gr(19,f,o,b),a.elementType=j,a.lanes=S,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case T:Q=10;break e;case C:Q=9;break e;case $:Q=11;break e;case E:Q=14;break e;case N:Q=16,p=null;break e}Q=29,f=Error(r(130,a===null?"null":typeof a,"")),p=null}return o=gr(Q,f,o,b),o.elementType=a,o.type=p,o.lanes=S,o}function Ml(a,o,f,p){return a=gr(7,a,p,o),a.lanes=f,a}function vh(a,o,f){return a=gr(6,a,null,o),a.lanes=f,a}function AO(a){var o=gr(18,null,null,0);return o.stateNode=a,o}function Sh(a,o,f){return o=gr(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var MO=new WeakMap;function Nr(a,o){if(typeof a=="object"&&a!==null){var f=MO.get(a);return f!==void 0?f:(o={value:a,source:o,stack:Pe(o)},MO.set(a,o),o)}return{value:a,source:o,stack:Pe(o)}}var ps=[],gs=0,b0=null,Wo=0,Rr=[],Vr=0,$a=null,hi=1,mi="";function Di(a,o){ps[gs++]=Wo,ps[gs++]=b0,b0=a,Wo=o}function CO(a,o,f){Rr[Vr++]=hi,Rr[Vr++]=mi,Rr[Vr++]=$a,$a=a;var p=hi;a=mi;var b=32-ze(p)-1;p&=~(1<<b),f+=1;var S=32-ze(o)+b;if(30<S){var Q=b-b%5;S=(p&(1<<Q)-1).toString(32),p>>=Q,b-=Q,hi=1<<32-ze(o)+b|f<<b|p,mi=S+a}else hi=1<<S|f<<b|p,mi=a}function wh(a){a.return!==null&&(Di(a,1),CO(a,1,0))}function kh(a){for(;a===b0;)b0=ps[--gs],ps[gs]=null,Wo=ps[--gs],ps[gs]=null;for(;a===$a;)$a=Rr[--Vr],Rr[Vr]=null,mi=Rr[--Vr],Rr[Vr]=null,hi=Rr[--Vr],Rr[Vr]=null}function EO(a,o){Rr[Vr++]=hi,Rr[Vr++]=mi,Rr[Vr++]=$a,hi=o.id,mi=o.overflow,$a=a}var $n=null,Dt=null,st=!1,ja=null,_r=!1,Ah=Error(r(519));function Pa(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ko(Nr(o,a)),Ah}function TO(a){var o=a.stateNode,f=a.type,p=a.memoizedProps;switch(o[tn]=a,o[vn]=p,f){case"dialog":tt("cancel",o),tt("close",o);break;case"iframe":case"object":case"embed":tt("load",o);break;case"video":case"audio":for(f=0;f<bc.length;f++)tt(bc[f],o);break;case"source":tt("error",o);break;case"img":case"image":case"link":tt("error",o),tt("load",o);break;case"details":tt("toggle",o);break;case"input":tt("invalid",o),X6(o,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":tt("invalid",o);break;case"textarea":tt("invalid",o),F6(o,p.value,p.defaultValue,p.children)}f=p.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||o.textContent===""+f||p.suppressHydrationWarning===!0||Yx(o.textContent,f)?(p.popover!=null&&(tt("beforetoggle",o),tt("toggle",o)),p.onScroll!=null&&tt("scroll",o),p.onScrollEnd!=null&&tt("scrollend",o),p.onClick!=null&&(o.onclick=Vi),o=!0):o=!1,o||Pa(a,!0)}function $O(a){for($n=a.return;$n;)switch($n.tag){case 5:case 31:case 13:_r=!1;return;case 27:case 3:_r=!0;return;default:$n=$n.return}}function Os(a){if(a!==$n)return!1;if(!st)return $O(a),st=!0,!1;var o=a.tag,f;if((f=o!==3&&o!==27)&&((f=o===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||zm(a.type,a.memoizedProps)),f=!f),f&&Dt&&Pa(a),$O(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Dt=t5(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Dt=t5(a)}else o===27?(o=Dt,Ya(a.type)?(a=qm,qm=null,Dt=a):Dt=o):Dt=$n?Dr(a.stateNode.nextSibling):null;return!0}function Cl(){Dt=$n=null,st=!1}function Mh(){var a=ja;return a!==null&&(ir===null?ir=a:ir.push.apply(ir,a),ja=null),a}function Ko(a){ja===null?ja=[a]:ja.push(a)}var Ch=P(null),El=null,Hi=null;function Qa(a,o,f){X(Ch,o._currentValue),o._currentValue=f}function Xi(a){a._currentValue=Ch.current,Z(Ch)}function Eh(a,o,f){for(;a!==null;){var p=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),a===f)break;a=a.return}}function Th(a,o,f,p){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var S=b.dependencies;if(S!==null){var Q=b.child;S=S.firstContext;e:for(;S!==null;){var _=S;S=b;for(var W=0;W<o.length;W++)if(_.context===o[W]){S.lanes|=f,_=S.alternate,_!==null&&(_.lanes|=f),Eh(S.return,f,a),p||(Q=null);break e}S=_.next}}else if(b.tag===18){if(Q=b.return,Q===null)throw Error(r(341));Q.lanes|=f,S=Q.alternate,S!==null&&(S.lanes|=f),Eh(Q,f,a),Q=null}else Q=b.child;if(Q!==null)Q.return=b;else for(Q=b;Q!==null;){if(Q===a){Q=null;break}if(b=Q.sibling,b!==null){b.return=Q.return,Q=b;break}Q=Q.return}b=Q}}function xs(a,o,f,p){a=null;for(var b=o,S=!1;b!==null;){if(!S){if((b.flags&524288)!==0)S=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var Q=b.alternate;if(Q===null)throw Error(r(387));if(Q=Q.memoizedProps,Q!==null){var _=b.type;pr(b.pendingProps.value,Q.value)||(a!==null?a.push(_):a=[_])}}else if(b===B.current){if(Q=b.alternate,Q===null)throw Error(r(387));Q.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(Ac):a=[Ac])}b=b.return}a!==null&&Th(o,a,f,p),o.flags|=262144}function v0(a){for(a=a.firstContext;a!==null;){if(!pr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Tl(a){El=a,Hi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function jn(a){return jO(El,a)}function S0(a,o){return El===null&&Tl(a),jO(a,o)}function jO(a,o){var f=o._currentValue;if(o={context:o,memoizedValue:f,next:null},Hi===null){if(a===null)throw Error(r(308));Hi=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else Hi=Hi.next=o;return f}var DC=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(f,p){a.push(p)}};this.abort=function(){o.aborted=!0,a.forEach(function(f){return f()})}},HC=t.unstable_scheduleCallback,XC=t.unstable_NormalPriority,fn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $h(){return{controller:new DC,data:new Map,refCount:0}}function Jo(a){a.refCount--,a.refCount===0&&HC(XC,function(){a.controller.abort()})}var ec=null,jh=0,ys=0,bs=null;function zC(a,o){if(ec===null){var f=ec=[];jh=0,ys=Zm(),bs={status:"pending",value:void 0,then:function(p){f.push(p)}}}return jh++,o.then(PO,PO),o}function PO(){if(--jh===0&&ec!==null){bs!==null&&(bs.status="fulfilled");var a=ec;ec=null,ys=0,bs=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function FC(a,o){var f=[],p={status:"pending",value:null,reason:null,then:function(b){f.push(b)}};return a.then(function(){p.status="fulfilled",p.value=o;for(var b=0;b<f.length;b++)(0,f[b])(o)},function(b){for(p.status="rejected",p.reason=b,b=0;b<f.length;b++)(0,f[b])(void 0)}),p}var QO=D.S;D.S=function(a,o){gx=be(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&zC(a,o),QO!==null&&QO(a,o)};var $l=P(null);function Ph(){var a=$l.current;return a!==null?a:Zt.pooledCache}function w0(a,o){o===null?X($l,$l.current):X($l,o.pool)}function ZO(){var a=Ph();return a===null?null:{parent:fn._currentValue,pool:a}}var vs=Error(r(460)),Qh=Error(r(474)),k0=Error(r(542)),A0={then:function(){}};function NO(a){return a=a.status,a==="fulfilled"||a==="rejected"}function RO(a,o,f){switch(f=a[f],f===void 0?a.push(o):f!==o&&(o.then(Vi,Vi),o=f),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,_O(a),a;default:if(typeof o.status=="string")o.then(Vi,Vi);else{if(a=Zt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(p){if(o.status==="pending"){var b=o;b.status="fulfilled",b.value=p}},function(p){if(o.status==="pending"){var b=o;b.status="rejected",b.reason=p}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,_O(a),a}throw Pl=o,vs}}function jl(a){try{var o=a._init;return o(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(Pl=f,vs):f}}var Pl=null;function VO(){if(Pl===null)throw Error(r(459));var a=Pl;return Pl=null,a}function _O(a){if(a===vs||a===k0)throw Error(r(483))}var Ss=null,tc=0;function M0(a){var o=tc;return tc+=1,Ss===null&&(Ss=[]),RO(Ss,a,o)}function nc(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function C0(a,o){throw o.$$typeof===x?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function LO(a){function o(ie,te){if(a){var le=ie.deletions;le===null?(ie.deletions=[te],ie.flags|=16):le.push(te)}}function f(ie,te){if(!a)return null;for(;te!==null;)o(ie,te),te=te.sibling;return null}function p(ie){for(var te=new Map;ie!==null;)ie.key!==null?te.set(ie.key,ie):te.set(ie.index,ie),ie=ie.sibling;return te}function b(ie,te){return ie=Li(ie,te),ie.index=0,ie.sibling=null,ie}function S(ie,te,le){return ie.index=le,a?(le=ie.alternate,le!==null?(le=le.index,le<te?(ie.flags|=67108866,te):le):(ie.flags|=67108866,te)):(ie.flags|=1048576,te)}function Q(ie){return a&&ie.alternate===null&&(ie.flags|=67108866),ie}function _(ie,te,le,he){return te===null||te.tag!==6?(te=vh(le,ie.mode,he),te.return=ie,te):(te=b(te,le),te.return=ie,te)}function W(ie,te,le,he){var De=le.type;return De===w?de(ie,te,le.props.children,he,le.key):te!==null&&(te.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===N&&jl(De)===te.type)?(te=b(te,le.props),nc(te,le),te.return=ie,te):(te=y0(le.type,le.key,le.props,null,ie.mode,he),nc(te,le),te.return=ie,te)}function se(ie,te,le,he){return te===null||te.tag!==4||te.stateNode.containerInfo!==le.containerInfo||te.stateNode.implementation!==le.implementation?(te=Sh(le,ie.mode,he),te.return=ie,te):(te=b(te,le.children||[]),te.return=ie,te)}function de(ie,te,le,he,De){return te===null||te.tag!==7?(te=Ml(le,ie.mode,he,De),te.return=ie,te):(te=b(te,le),te.return=ie,te)}function pe(ie,te,le){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=vh(""+te,ie.mode,le),te.return=ie,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return le=y0(te.type,te.key,te.props,null,ie.mode,le),nc(le,te),le.return=ie,le;case v:return te=Sh(te,ie.mode,le),te.return=ie,te;case N:return te=jl(te),pe(ie,te,le)}if(K(te)||z(te))return te=Ml(te,ie.mode,le,null),te.return=ie,te;if(typeof te.then=="function")return pe(ie,M0(te),le);if(te.$$typeof===T)return pe(ie,S0(ie,te),le);C0(ie,te)}return null}function oe(ie,te,le,he){var De=te!==null?te.key:null;if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return De!==null?null:_(ie,te,""+le,he);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case y:return le.key===De?W(ie,te,le,he):null;case v:return le.key===De?se(ie,te,le,he):null;case N:return le=jl(le),oe(ie,te,le,he)}if(K(le)||z(le))return De!==null?null:de(ie,te,le,he,null);if(typeof le.then=="function")return oe(ie,te,M0(le),he);if(le.$$typeof===T)return oe(ie,te,S0(ie,le),he);C0(ie,le)}return null}function ce(ie,te,le,he,De){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return ie=ie.get(le)||null,_(te,ie,""+he,De);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case y:return ie=ie.get(he.key===null?le:he.key)||null,W(te,ie,he,De);case v:return ie=ie.get(he.key===null?le:he.key)||null,se(te,ie,he,De);case N:return he=jl(he),ce(ie,te,le,he,De)}if(K(he)||z(he))return ie=ie.get(le)||null,de(te,ie,he,De,null);if(typeof he.then=="function")return ce(ie,te,le,M0(he),De);if(he.$$typeof===T)return ce(ie,te,le,S0(te,he),De);C0(te,he)}return null}function Te(ie,te,le,he){for(var De=null,St=null,Qe=te,We=te=0,at=null;Qe!==null&&We<le.length;We++){Qe.index>We?(at=Qe,Qe=null):at=Qe.sibling;var wt=oe(ie,Qe,le[We],he);if(wt===null){Qe===null&&(Qe=at);break}a&&Qe&&wt.alternate===null&&o(ie,Qe),te=S(wt,te,We),St===null?De=wt:St.sibling=wt,St=wt,Qe=at}if(We===le.length)return f(ie,Qe),st&&Di(ie,We),De;if(Qe===null){for(;We<le.length;We++)Qe=pe(ie,le[We],he),Qe!==null&&(te=S(Qe,te,We),St===null?De=Qe:St.sibling=Qe,St=Qe);return st&&Di(ie,We),De}for(Qe=p(Qe);We<le.length;We++)at=ce(Qe,ie,We,le[We],he),at!==null&&(a&&at.alternate!==null&&Qe.delete(at.key===null?We:at.key),te=S(at,te,We),St===null?De=at:St.sibling=at,St=at);return a&&Qe.forEach(function(Wa){return o(ie,Wa)}),st&&Di(ie,We),De}function He(ie,te,le,he){if(le==null)throw Error(r(151));for(var De=null,St=null,Qe=te,We=te=0,at=null,wt=le.next();Qe!==null&&!wt.done;We++,wt=le.next()){Qe.index>We?(at=Qe,Qe=null):at=Qe.sibling;var Wa=oe(ie,Qe,wt.value,he);if(Wa===null){Qe===null&&(Qe=at);break}a&&Qe&&Wa.alternate===null&&o(ie,Qe),te=S(Wa,te,We),St===null?De=Wa:St.sibling=Wa,St=Wa,Qe=at}if(wt.done)return f(ie,Qe),st&&Di(ie,We),De;if(Qe===null){for(;!wt.done;We++,wt=le.next())wt=pe(ie,wt.value,he),wt!==null&&(te=S(wt,te,We),St===null?De=wt:St.sibling=wt,St=wt);return st&&Di(ie,We),De}for(Qe=p(Qe);!wt.done;We++,wt=le.next())wt=ce(Qe,ie,We,wt.value,he),wt!==null&&(a&&wt.alternate!==null&&Qe.delete(wt.key===null?We:wt.key),te=S(wt,te,We),St===null?De=wt:St.sibling=wt,St=wt);return a&&Qe.forEach(function(tT){return o(ie,tT)}),st&&Di(ie,We),De}function Qt(ie,te,le,he){if(typeof le=="object"&&le!==null&&le.type===w&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case y:e:{for(var De=le.key;te!==null;){if(te.key===De){if(De=le.type,De===w){if(te.tag===7){f(ie,te.sibling),he=b(te,le.props.children),he.return=ie,ie=he;break e}}else if(te.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===N&&jl(De)===te.type){f(ie,te.sibling),he=b(te,le.props),nc(he,le),he.return=ie,ie=he;break e}f(ie,te);break}else o(ie,te);te=te.sibling}le.type===w?(he=Ml(le.props.children,ie.mode,he,le.key),he.return=ie,ie=he):(he=y0(le.type,le.key,le.props,null,ie.mode,he),nc(he,le),he.return=ie,ie=he)}return Q(ie);case v:e:{for(De=le.key;te!==null;){if(te.key===De)if(te.tag===4&&te.stateNode.containerInfo===le.containerInfo&&te.stateNode.implementation===le.implementation){f(ie,te.sibling),he=b(te,le.children||[]),he.return=ie,ie=he;break e}else{f(ie,te);break}else o(ie,te);te=te.sibling}he=Sh(le,ie.mode,he),he.return=ie,ie=he}return Q(ie);case N:return le=jl(le),Qt(ie,te,le,he)}if(K(le))return Te(ie,te,le,he);if(z(le)){if(De=z(le),typeof De!="function")throw Error(r(150));return le=De.call(le),He(ie,te,le,he)}if(typeof le.then=="function")return Qt(ie,te,M0(le),he);if(le.$$typeof===T)return Qt(ie,te,S0(ie,le),he);C0(ie,le)}return typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint"?(le=""+le,te!==null&&te.tag===6?(f(ie,te.sibling),he=b(te,le),he.return=ie,ie=he):(f(ie,te),he=vh(le,ie.mode,he),he.return=ie,ie=he),Q(ie)):f(ie,te)}return function(ie,te,le,he){try{tc=0;var De=Qt(ie,te,le,he);return Ss=null,De}catch(Qe){if(Qe===vs||Qe===k0)throw Qe;var St=gr(29,Qe,null,ie.mode);return St.lanes=he,St.return=ie,St}finally{}}}var Ql=LO(!0),DO=LO(!1),Za=!1;function Zh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nh(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Na(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ra(a,o,f){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(kt&2)!==0){var b=p.pending;return b===null?o.next=o:(o.next=b.next,b.next=o),p.pending=o,o=x0(a),wO(a,null,f),o}return O0(a,p,o,f),x0(a)}function rc(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194048)!==0)){var p=o.lanes;p&=a.pendingLanes,f|=p,o.lanes=f,ka(a,f)}}function Rh(a,o){var f=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var b=null,S=null;if(f=f.firstBaseUpdate,f!==null){do{var Q={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};S===null?b=S=Q:S=S.next=Q,f=f.next}while(f!==null);S===null?b=S=o:S=S.next=o}else b=S=o;f={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:p.shared,callbacks:p.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}var Vh=!1;function ic(){if(Vh){var a=bs;if(a!==null)throw a}}function ac(a,o,f,p){Vh=!1;var b=a.updateQueue;Za=!1;var S=b.firstBaseUpdate,Q=b.lastBaseUpdate,_=b.shared.pending;if(_!==null){b.shared.pending=null;var W=_,se=W.next;W.next=null,Q===null?S=se:Q.next=se,Q=W;var de=a.alternate;de!==null&&(de=de.updateQueue,_=de.lastBaseUpdate,_!==Q&&(_===null?de.firstBaseUpdate=se:_.next=se,de.lastBaseUpdate=W))}if(S!==null){var pe=b.baseState;Q=0,de=se=W=null,_=S;do{var oe=_.lane&-536870913,ce=oe!==_.lane;if(ce?(it&oe)===oe:(p&oe)===oe){oe!==0&&oe===ys&&(Vh=!0),de!==null&&(de=de.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Te=a,He=_;oe=o;var Qt=f;switch(He.tag){case 1:if(Te=He.payload,typeof Te=="function"){pe=Te.call(Qt,pe,oe);break e}pe=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=He.payload,oe=typeof Te=="function"?Te.call(Qt,pe,oe):Te,oe==null)break e;pe=O({},pe,oe);break e;case 2:Za=!0}}oe=_.callback,oe!==null&&(a.flags|=64,ce&&(a.flags|=8192),ce=b.callbacks,ce===null?b.callbacks=[oe]:ce.push(oe))}else ce={lane:oe,tag:_.tag,payload:_.payload,callback:_.callback,next:null},de===null?(se=de=ce,W=pe):de=de.next=ce,Q|=oe;if(_=_.next,_===null){if(_=b.shared.pending,_===null)break;ce=_,_=ce.next,ce.next=null,b.lastBaseUpdate=ce,b.shared.pending=null}}while(!0);de===null&&(W=pe),b.baseState=W,b.firstBaseUpdate=se,b.lastBaseUpdate=de,S===null&&(b.shared.lanes=0),Ha|=Q,a.lanes=Q,a.memoizedState=pe}}function HO(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function XO(a,o){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)HO(f[a],o)}var ws=P(null),E0=P(0);function zO(a,o){a=Wi,X(E0,a),X(ws,o),Wi=a|o.baseLanes}function _h(){X(E0,Wi),X(ws,ws.current)}function Lh(){Wi=E0.current,Z(ws),Z(E0)}var Or=P(null),Lr=null;function Va(a){var o=a.alternate;X(nn,nn.current&1),X(Or,a),Lr===null&&(o===null||ws.current!==null||o.memoizedState!==null)&&(Lr=a)}function Dh(a){X(nn,nn.current),X(Or,a),Lr===null&&(Lr=a)}function FO(a){a.tag===22?(X(nn,nn.current),X(Or,a),Lr===null&&(Lr=a)):_a()}function _a(){X(nn,nn.current),X(Or,Or.current)}function xr(a){Z(Or),Lr===a&&(Lr=null),Z(nn)}var nn=P(0);function T0(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Ym(f)||Im(f)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var zi=0,Ge=null,jt=null,dn=null,$0=!1,ks=!1,Zl=!1,j0=0,lc=0,As=null,BC=0;function Gt(){throw Error(r(321))}function Hh(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!pr(a[f],o[f]))return!1;return!0}function Xh(a,o,f,p,b,S){return zi=S,Ge=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,D.H=a===null||a.memoizedState===null?C4:rm,Zl=!1,S=f(p,b),Zl=!1,ks&&(S=YO(o,f,p,b)),BO(a),S}function BO(a){D.H=cc;var o=jt!==null&&jt.next!==null;if(zi=0,dn=jt=Ge=null,$0=!1,lc=0,As=null,o)throw Error(r(300));a===null||hn||(a=a.dependencies,a!==null&&v0(a)&&(hn=!0))}function YO(a,o,f,p){Ge=a;var b=0;do{if(ks&&(As=null),lc=0,ks=!1,25<=b)throw Error(r(301));if(b+=1,dn=jt=null,a.updateQueue!=null){var S=a.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}D.H=E4,S=o(f,p)}while(ks);return S}function YC(){var a=D.H,o=a.useState()[0];return o=typeof o.then=="function"?sc(o):o,a=a.useState()[0],(jt!==null?jt.memoizedState:null)!==a&&(Ge.flags|=1024),o}function zh(){var a=j0!==0;return j0=0,a}function Fh(a,o,f){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~f}function Bh(a){if($0){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}$0=!1}zi=0,dn=jt=Ge=null,ks=!1,lc=j0=0,As=null}function Yn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dn===null?Ge.memoizedState=dn=a:dn=dn.next=a,dn}function rn(){if(jt===null){var a=Ge.alternate;a=a!==null?a.memoizedState:null}else a=jt.next;var o=dn===null?Ge.memoizedState:dn.next;if(o!==null)dn=o,jt=a;else{if(a===null)throw Ge.alternate===null?Error(r(467)):Error(r(310));jt=a,a={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},dn===null?Ge.memoizedState=dn=a:dn=dn.next=a}return dn}function P0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sc(a){var o=lc;return lc+=1,As===null&&(As=[]),a=RO(As,a,o),o=Ge,(dn===null?o.memoizedState:dn.next)===null&&(o=o.alternate,D.H=o===null||o.memoizedState===null?C4:rm),a}function Q0(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return sc(a);if(a.$$typeof===T)return jn(a)}throw Error(r(438,String(a)))}function Yh(a){var o=null,f=Ge.updateQueue;if(f!==null&&(o=f.memoCache),o==null){var p=Ge.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(o={data:p.data.map(function(b){return b.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),f===null&&(f=P0(),Ge.updateQueue=f),f.memoCache=o,f=o.data[o.index],f===void 0)for(f=o.data[o.index]=Array(a),p=0;p<a;p++)f[p]=L;return o.index++,f}function Fi(a,o){return typeof o=="function"?o(a):o}function Z0(a){var o=rn();return Ih(o,jt,a)}function Ih(a,o,f){var p=a.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=f;var b=a.baseQueue,S=p.pending;if(S!==null){if(b!==null){var Q=b.next;b.next=S.next,S.next=Q}o.baseQueue=b=S,p.pending=null}if(S=a.baseState,b===null)a.memoizedState=S;else{o=b.next;var _=Q=null,W=null,se=o,de=!1;do{var pe=se.lane&-536870913;if(pe!==se.lane?(it&pe)===pe:(zi&pe)===pe){var oe=se.revertLane;if(oe===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),pe===ys&&(de=!0);else if((zi&oe)===oe){se=se.next,oe===ys&&(de=!0);continue}else pe={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},W===null?(_=W=pe,Q=S):W=W.next=pe,Ge.lanes|=oe,Ha|=oe;pe=se.action,Zl&&f(S,pe),S=se.hasEagerState?se.eagerState:f(S,pe)}else oe={lane:pe,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},W===null?(_=W=oe,Q=S):W=W.next=oe,Ge.lanes|=pe,Ha|=pe;se=se.next}while(se!==null&&se!==o);if(W===null?Q=S:W.next=_,!pr(S,a.memoizedState)&&(hn=!0,de&&(f=bs,f!==null)))throw f;a.memoizedState=S,a.baseState=Q,a.baseQueue=W,p.lastRenderedState=S}return b===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function qh(a){var o=rn(),f=o.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=a;var p=f.dispatch,b=f.pending,S=o.memoizedState;if(b!==null){f.pending=null;var Q=b=b.next;do S=a(S,Q.action),Q=Q.next;while(Q!==b);pr(S,o.memoizedState)||(hn=!0),o.memoizedState=S,o.baseQueue===null&&(o.baseState=S),f.lastRenderedState=S}return[S,p]}function IO(a,o,f){var p=Ge,b=rn(),S=st;if(S){if(f===void 0)throw Error(r(407));f=f()}else f=o();var Q=!pr((jt||b).memoizedState,f);if(Q&&(b.memoizedState=f,hn=!0),b=b.queue,Wh(UO.bind(null,p,b,a),[a]),b.getSnapshot!==o||Q||dn!==null&&dn.memoizedState.tag&1){if(p.flags|=2048,Ms(9,{destroy:void 0},GO.bind(null,p,b,f,o),null),Zt===null)throw Error(r(349));S||(zi&127)!==0||qO(p,o,f)}return f}function qO(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Ge.updateQueue,o===null?(o=P0(),Ge.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function GO(a,o,f,p){o.value=f,o.getSnapshot=p,WO(o)&&KO(a)}function UO(a,o,f){return f(function(){WO(o)&&KO(a)})}function WO(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!pr(a,f)}catch{return!0}}function KO(a){var o=Al(a,2);o!==null&&ar(o,a,2)}function Gh(a){var o=Yn();if(typeof a=="function"){var f=a;if(a=f(),Zl){ve(!0);try{f()}finally{ve(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:a},o}function JO(a,o,f,p){return a.baseState=f,Ih(a,jt,typeof p=="function"?p:Fi)}function IC(a,o,f,p,b){if(V0(a))throw Error(r(485));if(a=o.action,a!==null){var S={payload:b,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){S.listeners.push(Q)}};D.T!==null?f(!0):S.isTransition=!1,p(S),f=o.pending,f===null?(S.next=o.pending=S,e4(o,S)):(S.next=f.next,o.pending=f.next=S)}}function e4(a,o){var f=o.action,p=o.payload,b=a.state;if(o.isTransition){var S=D.T,Q={};D.T=Q;try{var _=f(b,p),W=D.S;W!==null&&W(Q,_),t4(a,o,_)}catch(se){Uh(a,o,se)}finally{S!==null&&Q.types!==null&&(S.types=Q.types),D.T=S}}else try{S=f(b,p),t4(a,o,S)}catch(se){Uh(a,o,se)}}function t4(a,o,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(p){n4(a,o,p)},function(p){return Uh(a,o,p)}):n4(a,o,f)}function n4(a,o,f){o.status="fulfilled",o.value=f,r4(o),a.state=f,o=a.pending,o!==null&&(f=o.next,f===o?a.pending=null:(f=f.next,o.next=f,e4(a,f)))}function Uh(a,o,f){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do o.status="rejected",o.reason=f,r4(o),o=o.next;while(o!==p)}a.action=null}function r4(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function i4(a,o){return o}function a4(a,o){if(st){var f=Zt.formState;if(f!==null){e:{var p=Ge;if(st){if(Dt){t:{for(var b=Dt,S=_r;b.nodeType!==8;){if(!S){b=null;break t}if(b=Dr(b.nextSibling),b===null){b=null;break t}}S=b.data,b=S==="F!"||S==="F"?b:null}if(b){Dt=Dr(b.nextSibling),p=b.data==="F!";break e}}Pa(p)}p=!1}p&&(o=f[0])}}return f=Yn(),f.memoizedState=f.baseState=o,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i4,lastRenderedState:o},f.queue=p,f=k4.bind(null,Ge,p),p.dispatch=f,p=Gh(!1),S=nm.bind(null,Ge,!1,p.queue),p=Yn(),b={state:o,dispatch:null,action:a,pending:null},p.queue=b,f=IC.bind(null,Ge,b,S,f),b.dispatch=f,p.memoizedState=a,[o,f,!1]}function l4(a){var o=rn();return s4(o,jt,a)}function s4(a,o,f){if(o=Ih(a,o,i4)[0],a=Z0(Fi)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var p=sc(o)}catch(Q){throw Q===vs?k0:Q}else p=o;o=rn();var b=o.queue,S=b.dispatch;return f!==o.memoizedState&&(Ge.flags|=2048,Ms(9,{destroy:void 0},qC.bind(null,b,f),null)),[p,S,a]}function qC(a,o){a.action=o}function o4(a){var o=rn(),f=jt;if(f!==null)return s4(o,f,a);rn(),o=o.memoizedState,f=rn();var p=f.queue.dispatch;return f.memoizedState=a,[o,p,!1]}function Ms(a,o,f,p){return a={tag:a,create:f,deps:p,inst:o,next:null},o=Ge.updateQueue,o===null&&(o=P0(),Ge.updateQueue=o),f=o.lastEffect,f===null?o.lastEffect=a.next=a:(p=f.next,f.next=a,a.next=p,o.lastEffect=a),a}function c4(){return rn().memoizedState}function N0(a,o,f,p){var b=Yn();Ge.flags|=a,b.memoizedState=Ms(1|o,{destroy:void 0},f,p===void 0?null:p)}function R0(a,o,f,p){var b=rn();p=p===void 0?null:p;var S=b.memoizedState.inst;jt!==null&&p!==null&&Hh(p,jt.memoizedState.deps)?b.memoizedState=Ms(o,S,f,p):(Ge.flags|=a,b.memoizedState=Ms(1|o,S,f,p))}function u4(a,o){N0(8390656,8,a,o)}function Wh(a,o){R0(2048,8,a,o)}function GC(a){Ge.flags|=4;var o=Ge.updateQueue;if(o===null)o=P0(),Ge.updateQueue=o,o.events=[a];else{var f=o.events;f===null?o.events=[a]:f.push(a)}}function f4(a){var o=rn().memoizedState;return GC({ref:o,nextImpl:a}),function(){if((kt&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function d4(a,o){return R0(4,2,a,o)}function h4(a,o){return R0(4,4,a,o)}function m4(a,o){if(typeof o=="function"){a=a();var f=o(a);return function(){typeof f=="function"?f():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function p4(a,o,f){f=f!=null?f.concat([a]):null,R0(4,4,m4.bind(null,o,a),f)}function Kh(){}function g4(a,o){var f=rn();o=o===void 0?null:o;var p=f.memoizedState;return o!==null&&Hh(o,p[1])?p[0]:(f.memoizedState=[a,o],a)}function O4(a,o){var f=rn();o=o===void 0?null:o;var p=f.memoizedState;if(o!==null&&Hh(o,p[1]))return p[0];if(p=a(),Zl){ve(!0);try{a()}finally{ve(!1)}}return f.memoizedState=[p,o],p}function Jh(a,o,f){return f===void 0||(zi&1073741824)!==0&&(it&261930)===0?a.memoizedState=o:(a.memoizedState=f,a=xx(),Ge.lanes|=a,Ha|=a,f)}function x4(a,o,f,p){return pr(f,o)?f:ws.current!==null?(a=Jh(a,f,p),pr(a,o)||(hn=!0),a):(zi&42)===0||(zi&1073741824)!==0&&(it&261930)===0?(hn=!0,a.memoizedState=f):(a=xx(),Ge.lanes|=a,Ha|=a,o)}function y4(a,o,f,p,b){var S=G.p;G.p=S!==0&&8>S?S:8;var Q=D.T,_={};D.T=_,nm(a,!1,o,f);try{var W=b(),se=D.S;if(se!==null&&se(_,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var de=FC(W,p);oc(a,o,de,vr(a))}else oc(a,o,p,vr(a))}catch(pe){oc(a,o,{then:function(){},status:"rejected",reason:pe},vr())}finally{G.p=S,Q!==null&&_.types!==null&&(Q.types=_.types),D.T=Q}}function UC(){}function em(a,o,f,p){if(a.tag!==5)throw Error(r(476));var b=b4(a).queue;y4(a,b,o,H,f===null?UC:function(){return v4(a),f(p)})}function b4(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:H},next:null};var f={};return o.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:f},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function v4(a){var o=b4(a);o.next===null&&(o=a.alternate.memoizedState),oc(a,o.next.queue,{},vr())}function tm(){return jn(Ac)}function S4(){return rn().memoizedState}function w4(){return rn().memoizedState}function WC(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var f=vr();a=Na(f);var p=Ra(o,a,f);p!==null&&(ar(p,o,f),rc(p,o,f)),o={cache:$h()},a.payload=o;return}o=o.return}}function KC(a,o,f){var p=vr();f={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},V0(a)?A4(o,f):(f=yh(a,o,f,p),f!==null&&(ar(f,a,p),M4(f,o,p)))}function k4(a,o,f){var p=vr();oc(a,o,f,p)}function oc(a,o,f,p){var b={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(V0(a))A4(o,b);else{var S=a.alternate;if(a.lanes===0&&(S===null||S.lanes===0)&&(S=o.lastRenderedReducer,S!==null))try{var Q=o.lastRenderedState,_=S(Q,f);if(b.hasEagerState=!0,b.eagerState=_,pr(_,Q))return O0(a,o,b,0),Zt===null&&g0(),!1}catch{}finally{}if(f=yh(a,o,b,p),f!==null)return ar(f,a,p),M4(f,o,p),!0}return!1}function nm(a,o,f,p){if(p={lane:2,revertLane:Zm(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},V0(a)){if(o)throw Error(r(479))}else o=yh(a,f,p,2),o!==null&&ar(o,a,2)}function V0(a){var o=a.alternate;return a===Ge||o!==null&&o===Ge}function A4(a,o){ks=$0=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function M4(a,o,f){if((f&4194048)!==0){var p=o.lanes;p&=a.pendingLanes,f|=p,o.lanes=f,ka(a,f)}}var cc={readContext:jn,use:Q0,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};cc.useEffectEvent=Gt;var C4={readContext:jn,use:Q0,useCallback:function(a,o){return Yn().memoizedState=[a,o===void 0?null:o],a},useContext:jn,useEffect:u4,useImperativeHandle:function(a,o,f){f=f!=null?f.concat([a]):null,N0(4194308,4,m4.bind(null,o,a),f)},useLayoutEffect:function(a,o){return N0(4194308,4,a,o)},useInsertionEffect:function(a,o){N0(4,2,a,o)},useMemo:function(a,o){var f=Yn();o=o===void 0?null:o;var p=a();if(Zl){ve(!0);try{a()}finally{ve(!1)}}return f.memoizedState=[p,o],p},useReducer:function(a,o,f){var p=Yn();if(f!==void 0){var b=f(o);if(Zl){ve(!0);try{f(o)}finally{ve(!1)}}}else b=o;return p.memoizedState=p.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},p.queue=a,a=a.dispatch=KC.bind(null,Ge,a),[p.memoizedState,a]},useRef:function(a){var o=Yn();return a={current:a},o.memoizedState=a},useState:function(a){a=Gh(a);var o=a.queue,f=k4.bind(null,Ge,o);return o.dispatch=f,[a.memoizedState,f]},useDebugValue:Kh,useDeferredValue:function(a,o){var f=Yn();return Jh(f,a,o)},useTransition:function(){var a=Gh(!1);return a=y4.bind(null,Ge,a.queue,!0,!1),Yn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,f){var p=Ge,b=Yn();if(st){if(f===void 0)throw Error(r(407));f=f()}else{if(f=o(),Zt===null)throw Error(r(349));(it&127)!==0||qO(p,o,f)}b.memoizedState=f;var S={value:f,getSnapshot:o};return b.queue=S,u4(UO.bind(null,p,S,a),[a]),p.flags|=2048,Ms(9,{destroy:void 0},GO.bind(null,p,S,f,o),null),f},useId:function(){var a=Yn(),o=Zt.identifierPrefix;if(st){var f=mi,p=hi;f=(p&~(1<<32-ze(p)-1)).toString(32)+f,o="_"+o+"R_"+f,f=j0++,0<f&&(o+="H"+f.toString(32)),o+="_"}else f=BC++,o="_"+o+"r_"+f.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:tm,useFormState:a4,useActionState:a4,useOptimistic:function(a){var o=Yn();o.memoizedState=o.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=f,o=nm.bind(null,Ge,!0,f),f.dispatch=o,[a,o]},useMemoCache:Yh,useCacheRefresh:function(){return Yn().memoizedState=WC.bind(null,Ge)},useEffectEvent:function(a){var o=Yn(),f={impl:a};return o.memoizedState=f,function(){if((kt&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},rm={readContext:jn,use:Q0,useCallback:g4,useContext:jn,useEffect:Wh,useImperativeHandle:p4,useInsertionEffect:d4,useLayoutEffect:h4,useMemo:O4,useReducer:Z0,useRef:c4,useState:function(){return Z0(Fi)},useDebugValue:Kh,useDeferredValue:function(a,o){var f=rn();return x4(f,jt.memoizedState,a,o)},useTransition:function(){var a=Z0(Fi)[0],o=rn().memoizedState;return[typeof a=="boolean"?a:sc(a),o]},useSyncExternalStore:IO,useId:S4,useHostTransitionStatus:tm,useFormState:l4,useActionState:l4,useOptimistic:function(a,o){var f=rn();return JO(f,jt,a,o)},useMemoCache:Yh,useCacheRefresh:w4};rm.useEffectEvent=f4;var E4={readContext:jn,use:Q0,useCallback:g4,useContext:jn,useEffect:Wh,useImperativeHandle:p4,useInsertionEffect:d4,useLayoutEffect:h4,useMemo:O4,useReducer:qh,useRef:c4,useState:function(){return qh(Fi)},useDebugValue:Kh,useDeferredValue:function(a,o){var f=rn();return jt===null?Jh(f,a,o):x4(f,jt.memoizedState,a,o)},useTransition:function(){var a=qh(Fi)[0],o=rn().memoizedState;return[typeof a=="boolean"?a:sc(a),o]},useSyncExternalStore:IO,useId:S4,useHostTransitionStatus:tm,useFormState:o4,useActionState:o4,useOptimistic:function(a,o){var f=rn();return jt!==null?JO(f,jt,a,o):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:Yh,useCacheRefresh:w4};E4.useEffectEvent=f4;function im(a,o,f,p){o=a.memoizedState,f=f(p,o),f=f==null?o:O({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var am={enqueueSetState:function(a,o,f){a=a._reactInternals;var p=vr(),b=Na(p);b.payload=o,f!=null&&(b.callback=f),o=Ra(a,b,p),o!==null&&(ar(o,a,p),rc(o,a,p))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var p=vr(),b=Na(p);b.tag=1,b.payload=o,f!=null&&(b.callback=f),o=Ra(a,b,p),o!==null&&(ar(o,a,p),rc(o,a,p))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=vr(),p=Na(f);p.tag=2,o!=null&&(p.callback=o),o=Ra(a,p,f),o!==null&&(ar(o,a,f),rc(o,a,f))}};function T4(a,o,f,p,b,S,Q){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,S,Q):o.prototype&&o.prototype.isPureReactComponent?!Go(f,p)||!Go(b,S):!0}function $4(a,o,f,p){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,p),o.state!==a&&am.enqueueReplaceState(o,o.state,null)}function Nl(a,o){var f=o;if("ref"in o){f={};for(var p in o)p!=="ref"&&(f[p]=o[p])}if(a=a.defaultProps){f===o&&(f=O({},f));for(var b in a)f[b]===void 0&&(f[b]=a[b])}return f}function j4(a){p0(a)}function P4(a){console.error(a)}function Q4(a){p0(a)}function _0(a,o){try{var f=a.onUncaughtError;f(o.value,{componentStack:o.stack})}catch(p){setTimeout(function(){throw p})}}function Z4(a,o,f){try{var p=a.onCaughtError;p(f.value,{componentStack:f.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function lm(a,o,f){return f=Na(f),f.tag=3,f.payload={element:null},f.callback=function(){_0(a,o)},f}function N4(a){return a=Na(a),a.tag=3,a}function R4(a,o,f,p){var b=f.type.getDerivedStateFromError;if(typeof b=="function"){var S=p.value;a.payload=function(){return b(S)},a.callback=function(){Z4(o,f,p)}}var Q=f.stateNode;Q!==null&&typeof Q.componentDidCatch=="function"&&(a.callback=function(){Z4(o,f,p),typeof b!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var _=p.stack;this.componentDidCatch(p.value,{componentStack:_!==null?_:""})})}function JC(a,o,f,p,b){if(f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(o=f.alternate,o!==null&&xs(o,f,b,!0),f=Or.current,f!==null){switch(f.tag){case 31:case 13:return Lr===null?U0():f.alternate===null&&Ut===0&&(Ut=3),f.flags&=-257,f.flags|=65536,f.lanes=b,p===A0?f.flags|=16384:(o=f.updateQueue,o===null?f.updateQueue=new Set([p]):o.add(p),jm(a,p,b)),!1;case 22:return f.flags|=65536,p===A0?f.flags|=16384:(o=f.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([p])},f.updateQueue=o):(f=o.retryQueue,f===null?o.retryQueue=new Set([p]):f.add(p)),jm(a,p,b)),!1}throw Error(r(435,f.tag))}return jm(a,p,b),U0(),!1}if(st)return o=Or.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=b,p!==Ah&&(a=Error(r(422),{cause:p}),Ko(Nr(a,f)))):(p!==Ah&&(o=Error(r(423),{cause:p}),Ko(Nr(o,f))),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,p=Nr(p,f),b=lm(a.stateNode,p,b),Rh(a,b),Ut!==4&&(Ut=2)),!1;var S=Error(r(520),{cause:p});if(S=Nr(S,f),Oc===null?Oc=[S]:Oc.push(S),Ut!==4&&(Ut=2),o===null)return!0;p=Nr(p,f),f=o;do{switch(f.tag){case 3:return f.flags|=65536,a=b&-b,f.lanes|=a,a=lm(f.stateNode,p,a),Rh(f,a),!1;case 1:if(o=f.type,S=f.stateNode,(f.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Xa===null||!Xa.has(S))))return f.flags|=65536,b&=-b,f.lanes|=b,b=N4(b),R4(b,a,f,p),Rh(f,b),!1}f=f.return}while(f!==null);return!1}var sm=Error(r(461)),hn=!1;function Pn(a,o,f,p){o.child=a===null?DO(o,null,f,p):Ql(o,a.child,f,p)}function V4(a,o,f,p,b){f=f.render;var S=o.ref;if("ref"in p){var Q={};for(var _ in p)_!=="ref"&&(Q[_]=p[_])}else Q=p;return Tl(o),p=Xh(a,o,f,Q,S,b),_=zh(),a!==null&&!hn?(Fh(a,o,b),Bi(a,o,b)):(st&&_&&wh(o),o.flags|=1,Pn(a,o,p,b),o.child)}function _4(a,o,f,p,b){if(a===null){var S=f.type;return typeof S=="function"&&!bh(S)&&S.defaultProps===void 0&&f.compare===null?(o.tag=15,o.type=S,L4(a,o,S,p,b)):(a=y0(f.type,null,p,o,o.mode,b),a.ref=o.ref,a.return=o,o.child=a)}if(S=a.child,!pm(a,b)){var Q=S.memoizedProps;if(f=f.compare,f=f!==null?f:Go,f(Q,p)&&a.ref===o.ref)return Bi(a,o,b)}return o.flags|=1,a=Li(S,p),a.ref=o.ref,a.return=o,o.child=a}function L4(a,o,f,p,b){if(a!==null){var S=a.memoizedProps;if(Go(S,p)&&a.ref===o.ref)if(hn=!1,o.pendingProps=p=S,pm(a,b))(a.flags&131072)!==0&&(hn=!0);else return o.lanes=a.lanes,Bi(a,o,b)}return om(a,o,f,p,b)}function D4(a,o,f,p){var b=p.children,S=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((o.flags&128)!==0){if(S=S!==null?S.baseLanes|f:f,a!==null){for(p=o.child=a.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~S}else p=0,o.child=null;return H4(a,o,S,f,p)}if((f&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&w0(o,S!==null?S.cachePool:null),S!==null?zO(o,S):_h(),FO(o);else return p=o.lanes=536870912,H4(a,o,S!==null?S.baseLanes|f:f,f,p)}else S!==null?(w0(o,S.cachePool),zO(o,S),_a(),o.memoizedState=null):(a!==null&&w0(o,null),_h(),_a());return Pn(a,o,b,f),o.child}function uc(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function H4(a,o,f,p,b){var S=Ph();return S=S===null?null:{parent:fn._currentValue,pool:S},o.memoizedState={baseLanes:f,cachePool:S},a!==null&&w0(o,null),_h(),FO(o),a!==null&&xs(a,o,p,!0),o.childLanes=b,null}function L0(a,o){return o=H0({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function X4(a,o,f){return Ql(o,a.child,null,f),a=L0(o,o.pendingProps),a.flags|=2,xr(o),o.memoizedState=null,a}function eE(a,o,f){var p=o.pendingProps,b=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(st){if(p.mode==="hidden")return a=L0(o,p),o.lanes=536870912,uc(null,a);if(Dh(o),(a=Dt)?(a=e5(a,_r),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:$a!==null?{id:hi,overflow:mi}:null,retryLane:536870912,hydrationErrors:null},f=AO(a),f.return=o,o.child=f,$n=o,Dt=null)):a=null,a===null)throw Pa(o);return o.lanes=536870912,null}return L0(o,p)}var S=a.memoizedState;if(S!==null){var Q=S.dehydrated;if(Dh(o),b)if(o.flags&256)o.flags&=-257,o=X4(a,o,f);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(hn||xs(a,o,f,!1),b=(f&a.childLanes)!==0,hn||b){if(p=Zt,p!==null&&(Q=Ce(p,f),Q!==0&&Q!==S.retryLane))throw S.retryLane=Q,Al(a,Q),ar(p,a,Q),sm;U0(),o=X4(a,o,f)}else a=S.treeContext,Dt=Dr(Q.nextSibling),$n=o,st=!0,ja=null,_r=!1,a!==null&&EO(o,a),o=L0(o,p),o.flags|=4096;return o}return a=Li(a.child,{mode:p.mode,children:p.children}),a.ref=o.ref,o.child=a,a.return=o,a}function D0(a,o){var f=o.ref;if(f===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(a===null||a.ref!==f)&&(o.flags|=4194816)}}function om(a,o,f,p,b){return Tl(o),f=Xh(a,o,f,p,void 0,b),p=zh(),a!==null&&!hn?(Fh(a,o,b),Bi(a,o,b)):(st&&p&&wh(o),o.flags|=1,Pn(a,o,f,b),o.child)}function z4(a,o,f,p,b,S){return Tl(o),o.updateQueue=null,f=YO(o,p,f,b),BO(a),p=zh(),a!==null&&!hn?(Fh(a,o,S),Bi(a,o,S)):(st&&p&&wh(o),o.flags|=1,Pn(a,o,f,S),o.child)}function F4(a,o,f,p,b){if(Tl(o),o.stateNode===null){var S=ms,Q=f.contextType;typeof Q=="object"&&Q!==null&&(S=jn(Q)),S=new f(p,S),o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=am,o.stateNode=S,S._reactInternals=o,S=o.stateNode,S.props=p,S.state=o.memoizedState,S.refs={},Zh(o),Q=f.contextType,S.context=typeof Q=="object"&&Q!==null?jn(Q):ms,S.state=o.memoizedState,Q=f.getDerivedStateFromProps,typeof Q=="function"&&(im(o,f,Q,p),S.state=o.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(Q=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),Q!==S.state&&am.enqueueReplaceState(S,S.state,null),ac(o,p,S,b),ic(),S.state=o.memoizedState),typeof S.componentDidMount=="function"&&(o.flags|=4194308),p=!0}else if(a===null){S=o.stateNode;var _=o.memoizedProps,W=Nl(f,_);S.props=W;var se=S.context,de=f.contextType;Q=ms,typeof de=="object"&&de!==null&&(Q=jn(de));var pe=f.getDerivedStateFromProps;de=typeof pe=="function"||typeof S.getSnapshotBeforeUpdate=="function",_=o.pendingProps!==_,de||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(_||se!==Q)&&$4(o,S,p,Q),Za=!1;var oe=o.memoizedState;S.state=oe,ac(o,p,S,b),ic(),se=o.memoizedState,_||oe!==se||Za?(typeof pe=="function"&&(im(o,f,pe,p),se=o.memoizedState),(W=Za||T4(o,f,W,p,oe,se,Q))?(de||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=p,o.memoizedState=se),S.props=p,S.state=se,S.context=Q,p=W):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),p=!1)}else{S=o.stateNode,Nh(a,o),Q=o.memoizedProps,de=Nl(f,Q),S.props=de,pe=o.pendingProps,oe=S.context,se=f.contextType,W=ms,typeof se=="object"&&se!==null&&(W=jn(se)),_=f.getDerivedStateFromProps,(se=typeof _=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(Q!==pe||oe!==W)&&$4(o,S,p,W),Za=!1,oe=o.memoizedState,S.state=oe,ac(o,p,S,b),ic();var ce=o.memoizedState;Q!==pe||oe!==ce||Za||a!==null&&a.dependencies!==null&&v0(a.dependencies)?(typeof _=="function"&&(im(o,f,_,p),ce=o.memoizedState),(de=Za||T4(o,f,de,p,oe,ce,W)||a!==null&&a.dependencies!==null&&v0(a.dependencies))?(se||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(p,ce,W),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(p,ce,W)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||Q===a.memoizedProps&&oe===a.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&oe===a.memoizedState||(o.flags|=1024),o.memoizedProps=p,o.memoizedState=ce),S.props=p,S.state=ce,S.context=W,p=de):(typeof S.componentDidUpdate!="function"||Q===a.memoizedProps&&oe===a.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&oe===a.memoizedState||(o.flags|=1024),p=!1)}return S=p,D0(a,o),p=(o.flags&128)!==0,S||p?(S=o.stateNode,f=p&&typeof f.getDerivedStateFromError!="function"?null:S.render(),o.flags|=1,a!==null&&p?(o.child=Ql(o,a.child,null,b),o.child=Ql(o,null,f,b)):Pn(a,o,f,b),o.memoizedState=S.state,a=o.child):a=Bi(a,o,b),a}function B4(a,o,f,p){return Cl(),o.flags|=256,Pn(a,o,f,p),o.child}var cm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function um(a){return{baseLanes:a,cachePool:ZO()}}function fm(a,o,f){return a=a!==null?a.childLanes&~f:0,o&&(a|=br),a}function Y4(a,o,f){var p=o.pendingProps,b=!1,S=(o.flags&128)!==0,Q;if((Q=S)||(Q=a!==null&&a.memoizedState===null?!1:(nn.current&2)!==0),Q&&(b=!0,o.flags&=-129),Q=(o.flags&32)!==0,o.flags&=-33,a===null){if(st){if(b?Va(o):_a(),(a=Dt)?(a=e5(a,_r),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:$a!==null?{id:hi,overflow:mi}:null,retryLane:536870912,hydrationErrors:null},f=AO(a),f.return=o,o.child=f,$n=o,Dt=null)):a=null,a===null)throw Pa(o);return Im(a)?o.lanes=32:o.lanes=536870912,null}var _=p.children;return p=p.fallback,b?(_a(),b=o.mode,_=H0({mode:"hidden",children:_},b),p=Ml(p,b,f,null),_.return=o,p.return=o,_.sibling=p,o.child=_,p=o.child,p.memoizedState=um(f),p.childLanes=fm(a,Q,f),o.memoizedState=cm,uc(null,p)):(Va(o),dm(o,_))}var W=a.memoizedState;if(W!==null&&(_=W.dehydrated,_!==null)){if(S)o.flags&256?(Va(o),o.flags&=-257,o=hm(a,o,f)):o.memoizedState!==null?(_a(),o.child=a.child,o.flags|=128,o=null):(_a(),_=p.fallback,b=o.mode,p=H0({mode:"visible",children:p.children},b),_=Ml(_,b,f,null),_.flags|=2,p.return=o,_.return=o,p.sibling=_,o.child=p,Ql(o,a.child,null,f),p=o.child,p.memoizedState=um(f),p.childLanes=fm(a,Q,f),o.memoizedState=cm,o=uc(null,p));else if(Va(o),Im(_)){if(Q=_.nextSibling&&_.nextSibling.dataset,Q)var se=Q.dgst;Q=se,p=Error(r(419)),p.stack="",p.digest=Q,Ko({value:p,source:null,stack:null}),o=hm(a,o,f)}else if(hn||xs(a,o,f,!1),Q=(f&a.childLanes)!==0,hn||Q){if(Q=Zt,Q!==null&&(p=Ce(Q,f),p!==0&&p!==W.retryLane))throw W.retryLane=p,Al(a,p),ar(Q,a,p),sm;Ym(_)||U0(),o=hm(a,o,f)}else Ym(_)?(o.flags|=192,o.child=a.child,o=null):(a=W.treeContext,Dt=Dr(_.nextSibling),$n=o,st=!0,ja=null,_r=!1,a!==null&&EO(o,a),o=dm(o,p.children),o.flags|=4096);return o}return b?(_a(),_=p.fallback,b=o.mode,W=a.child,se=W.sibling,p=Li(W,{mode:"hidden",children:p.children}),p.subtreeFlags=W.subtreeFlags&65011712,se!==null?_=Li(se,_):(_=Ml(_,b,f,null),_.flags|=2),_.return=o,p.return=o,p.sibling=_,o.child=p,uc(null,p),p=o.child,_=a.child.memoizedState,_===null?_=um(f):(b=_.cachePool,b!==null?(W=fn._currentValue,b=b.parent!==W?{parent:W,pool:W}:b):b=ZO(),_={baseLanes:_.baseLanes|f,cachePool:b}),p.memoizedState=_,p.childLanes=fm(a,Q,f),o.memoizedState=cm,uc(a.child,p)):(Va(o),f=a.child,a=f.sibling,f=Li(f,{mode:"visible",children:p.children}),f.return=o,f.sibling=null,a!==null&&(Q=o.deletions,Q===null?(o.deletions=[a],o.flags|=16):Q.push(a)),o.child=f,o.memoizedState=null,f)}function dm(a,o){return o=H0({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function H0(a,o){return a=gr(22,a,null,o),a.lanes=0,a}function hm(a,o,f){return Ql(o,a.child,null,f),a=dm(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function I4(a,o,f){a.lanes|=o;var p=a.alternate;p!==null&&(p.lanes|=o),Eh(a.return,o,f)}function mm(a,o,f,p,b,S){var Q=a.memoizedState;Q===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:b,treeForkCount:S}:(Q.isBackwards=o,Q.rendering=null,Q.renderingStartTime=0,Q.last=p,Q.tail=f,Q.tailMode=b,Q.treeForkCount=S)}function q4(a,o,f){var p=o.pendingProps,b=p.revealOrder,S=p.tail;p=p.children;var Q=nn.current,_=(Q&2)!==0;if(_?(Q=Q&1|2,o.flags|=128):Q&=1,X(nn,Q),Pn(a,o,p,f),p=st?Wo:0,!_&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&I4(a,f,o);else if(a.tag===19)I4(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(b){case"forwards":for(f=o.child,b=null;f!==null;)a=f.alternate,a!==null&&T0(a)===null&&(b=f),f=f.sibling;f=b,f===null?(b=o.child,o.child=null):(b=f.sibling,f.sibling=null),mm(o,!1,b,f,S,p);break;case"backwards":case"unstable_legacy-backwards":for(f=null,b=o.child,o.child=null;b!==null;){if(a=b.alternate,a!==null&&T0(a)===null){o.child=b;break}a=b.sibling,b.sibling=f,f=b,b=a}mm(o,!0,f,null,S,p);break;case"together":mm(o,!1,null,null,void 0,p);break;default:o.memoizedState=null}return o.child}function Bi(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ha|=o.lanes,(f&o.childLanes)===0)if(a!==null){if(xs(a,o,f,!1),(f&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,f=Li(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Li(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function pm(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&v0(a)))}function tE(a,o,f){switch(o.tag){case 3:re(o,o.stateNode.containerInfo),Qa(o,fn,a.memoizedState.cache),Cl();break;case 27:case 5:ue(o);break;case 4:re(o,o.stateNode.containerInfo);break;case 10:Qa(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Dh(o),null;break;case 13:var p=o.memoizedState;if(p!==null)return p.dehydrated!==null?(Va(o),o.flags|=128,null):(f&o.child.childLanes)!==0?Y4(a,o,f):(Va(o),a=Bi(a,o,f),a!==null?a.sibling:null);Va(o);break;case 19:var b=(a.flags&128)!==0;if(p=(f&o.childLanes)!==0,p||(xs(a,o,f,!1),p=(f&o.childLanes)!==0),b){if(p)return q4(a,o,f);o.flags|=128}if(b=o.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),X(nn,nn.current),p)break;return null;case 22:return o.lanes=0,D4(a,o,f,o.pendingProps);case 24:Qa(o,fn,a.memoizedState.cache)}return Bi(a,o,f)}function G4(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps)hn=!0;else{if(!pm(a,f)&&(o.flags&128)===0)return hn=!1,tE(a,o,f);hn=(a.flags&131072)!==0}else hn=!1,st&&(o.flags&1048576)!==0&&CO(o,Wo,o.index);switch(o.lanes=0,o.tag){case 16:e:{var p=o.pendingProps;if(a=jl(o.elementType),o.type=a,typeof a=="function")bh(a)?(p=Nl(a,p),o.tag=1,o=F4(null,o,a,p,f)):(o.tag=0,o=om(null,o,a,p,f));else{if(a!=null){var b=a.$$typeof;if(b===$){o.tag=11,o=V4(null,o,a,p,f);break e}else if(b===E){o.tag=14,o=_4(null,o,a,p,f);break e}}throw o=U(a)||a,Error(r(306,o,""))}}return o;case 0:return om(a,o,o.type,o.pendingProps,f);case 1:return p=o.type,b=Nl(p,o.pendingProps),F4(a,o,p,b,f);case 3:e:{if(re(o,o.stateNode.containerInfo),a===null)throw Error(r(387));p=o.pendingProps;var S=o.memoizedState;b=S.element,Nh(a,o),ac(o,p,null,f);var Q=o.memoizedState;if(p=Q.cache,Qa(o,fn,p),p!==S.cache&&Th(o,[fn],f,!0),ic(),p=Q.element,S.isDehydrated)if(S={element:p,isDehydrated:!1,cache:Q.cache},o.updateQueue.baseState=S,o.memoizedState=S,o.flags&256){o=B4(a,o,p,f);break e}else if(p!==b){b=Nr(Error(r(424)),o),Ko(b),o=B4(a,o,p,f);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Dt=Dr(a.firstChild),$n=o,st=!0,ja=null,_r=!0,f=DO(o,null,p,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Cl(),p===b){o=Bi(a,o,f);break e}Pn(a,o,p,f)}o=o.child}return o;case 26:return D0(a,o),a===null?(f=l5(o.type,null,o.pendingProps,null))?o.memoizedState=f:st||(f=o.type,a=o.pendingProps,p=r1(ne.current).createElement(f),p[tn]=o,p[vn]=a,Qn(p,f,a),un(p),o.stateNode=p):o.memoizedState=l5(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return ue(o),a===null&&st&&(p=o.stateNode=r5(o.type,o.pendingProps,ne.current),$n=o,_r=!0,b=Dt,Ya(o.type)?(qm=b,Dt=Dr(p.firstChild)):Dt=b),Pn(a,o,o.pendingProps.children,f),D0(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&st&&((b=p=Dt)&&(p=jE(p,o.type,o.pendingProps,_r),p!==null?(o.stateNode=p,$n=o,Dt=Dr(p.firstChild),_r=!1,b=!0):b=!1),b||Pa(o)),ue(o),b=o.type,S=o.pendingProps,Q=a!==null?a.memoizedProps:null,p=S.children,zm(b,S)?p=null:Q!==null&&zm(b,Q)&&(o.flags|=32),o.memoizedState!==null&&(b=Xh(a,o,YC,null,null,f),Ac._currentValue=b),D0(a,o),Pn(a,o,p,f),o.child;case 6:return a===null&&st&&((a=f=Dt)&&(f=PE(f,o.pendingProps,_r),f!==null?(o.stateNode=f,$n=o,Dt=null,a=!0):a=!1),a||Pa(o)),null;case 13:return Y4(a,o,f);case 4:return re(o,o.stateNode.containerInfo),p=o.pendingProps,a===null?o.child=Ql(o,null,p,f):Pn(a,o,p,f),o.child;case 11:return V4(a,o,o.type,o.pendingProps,f);case 7:return Pn(a,o,o.pendingProps,f),o.child;case 8:return Pn(a,o,o.pendingProps.children,f),o.child;case 12:return Pn(a,o,o.pendingProps.children,f),o.child;case 10:return p=o.pendingProps,Qa(o,o.type,p.value),Pn(a,o,p.children,f),o.child;case 9:return b=o.type._context,p=o.pendingProps.children,Tl(o),b=jn(b),p=p(b),o.flags|=1,Pn(a,o,p,f),o.child;case 14:return _4(a,o,o.type,o.pendingProps,f);case 15:return L4(a,o,o.type,o.pendingProps,f);case 19:return q4(a,o,f);case 31:return eE(a,o,f);case 22:return D4(a,o,f,o.pendingProps);case 24:return Tl(o),p=jn(fn),a===null?(b=Ph(),b===null&&(b=Zt,S=$h(),b.pooledCache=S,S.refCount++,S!==null&&(b.pooledCacheLanes|=f),b=S),o.memoizedState={parent:p,cache:b},Zh(o),Qa(o,fn,b)):((a.lanes&f)!==0&&(Nh(a,o),ac(o,null,null,f),ic()),b=a.memoizedState,S=o.memoizedState,b.parent!==p?(b={parent:p,cache:p},o.memoizedState=b,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=b),Qa(o,fn,p)):(p=S.cache,Qa(o,fn,p),p!==b.cache&&Th(o,[fn],f,!0))),Pn(a,o,o.pendingProps.children,f),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Yi(a){a.flags|=4}function gm(a,o,f,p,b){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(Sx())a.flags|=8192;else throw Pl=A0,Qh}else a.flags&=-16777217}function U4(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!f5(o))if(Sx())a.flags|=8192;else throw Pl=A0,Qh}function X0(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?Sa():536870912,a.lanes|=o,$s|=o)}function fc(a,o){if(!st)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function Ht(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,p=0;if(o)for(var b=a.child;b!==null;)f|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)f|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=p,a.childLanes=f,o}function nE(a,o,f){var p=o.pendingProps;switch(kh(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(o),null;case 1:return Ht(o),null;case 3:return f=o.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Xi(fn),ae(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Os(o)?Yi(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Mh())),Ht(o),null;case 26:var b=o.type,S=o.memoizedState;return a===null?(Yi(o),S!==null?(Ht(o),U4(o,S)):(Ht(o),gm(o,b,null,p,f))):S?S!==a.memoizedState?(Yi(o),Ht(o),U4(o,S)):(Ht(o),o.flags&=-16777217):(a=a.memoizedProps,a!==p&&Yi(o),Ht(o),gm(o,b,a,p,f)),null;case 27:if(me(o),f=ne.current,b=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==p&&Yi(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return Ht(o),null}a=Y.current,Os(o)?TO(o):(a=r5(b,p,f),o.stateNode=a,Yi(o))}return Ht(o),null;case 5:if(me(o),b=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==p&&Yi(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return Ht(o),null}if(S=Y.current,Os(o))TO(o);else{var Q=r1(ne.current);switch(S){case 1:S=Q.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:S=Q.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":S=Q.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":S=Q.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":S=Q.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof p.is=="string"?Q.createElement("select",{is:p.is}):Q.createElement("select"),p.multiple?S.multiple=!0:p.size&&(S.size=p.size);break;default:S=typeof p.is=="string"?Q.createElement(b,{is:p.is}):Q.createElement(b)}}S[tn]=o,S[vn]=p;e:for(Q=o.child;Q!==null;){if(Q.tag===5||Q.tag===6)S.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===o)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===o)break e;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}o.stateNode=S;e:switch(Qn(S,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Yi(o)}}return Ht(o),gm(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,f),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==p&&Yi(o);else{if(typeof p!="string"&&o.stateNode===null)throw Error(r(166));if(a=ne.current,Os(o)){if(a=o.stateNode,f=o.memoizedProps,p=null,b=$n,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}a[tn]=o,a=!!(a.nodeValue===f||p!==null&&p.suppressHydrationWarning===!0||Yx(a.nodeValue,f)),a||Pa(o,!0)}else a=r1(a).createTextNode(p),a[tn]=o,o.stateNode=a}return Ht(o),null;case 31:if(f=o.memoizedState,a===null||a.memoizedState!==null){if(p=Os(o),f!==null){if(a===null){if(!p)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[tn]=o}else Cl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ht(o),a=!1}else f=Mh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return o.flags&256?(xr(o),o):(xr(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Ht(o),null;case 13:if(p=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Os(o),p!==null&&p.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=o.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[tn]=o}else Cl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ht(o),b=!1}else b=Mh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return o.flags&256?(xr(o),o):(xr(o),null)}return xr(o),(o.flags&128)!==0?(o.lanes=f,o):(f=p!==null,a=a!==null&&a.memoizedState!==null,f&&(p=o.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),S=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(S=p.memoizedState.cachePool.pool),S!==b&&(p.flags|=2048)),f!==a&&f&&(o.child.flags|=8192),X0(o,o.updateQueue),Ht(o),null);case 4:return ae(),a===null&&_m(o.stateNode.containerInfo),Ht(o),null;case 10:return Xi(o.type),Ht(o),null;case 19:if(Z(nn),p=o.memoizedState,p===null)return Ht(o),null;if(b=(o.flags&128)!==0,S=p.rendering,S===null)if(b)fc(p,!1);else{if(Ut!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(S=T0(a),S!==null){for(o.flags|=128,fc(p,!1),a=S.updateQueue,o.updateQueue=a,X0(o,a),o.subtreeFlags=0,a=f,f=o.child;f!==null;)kO(f,a),f=f.sibling;return X(nn,nn.current&1|2),st&&Di(o,p.treeForkCount),o.child}a=a.sibling}p.tail!==null&&be()>I0&&(o.flags|=128,b=!0,fc(p,!1),o.lanes=4194304)}else{if(!b)if(a=T0(S),a!==null){if(o.flags|=128,b=!0,a=a.updateQueue,o.updateQueue=a,X0(o,a),fc(p,!0),p.tail===null&&p.tailMode==="hidden"&&!S.alternate&&!st)return Ht(o),null}else 2*be()-p.renderingStartTime>I0&&f!==536870912&&(o.flags|=128,b=!0,fc(p,!1),o.lanes=4194304);p.isBackwards?(S.sibling=o.child,o.child=S):(a=p.last,a!==null?a.sibling=S:o.child=S,p.last=S)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=be(),a.sibling=null,f=nn.current,X(nn,b?f&1|2:f&1),st&&Di(o,p.treeForkCount),a):(Ht(o),null);case 22:case 23:return xr(o),Lh(),p=o.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(o.flags|=8192):p&&(o.flags|=8192),p?(f&536870912)!==0&&(o.flags&128)===0&&(Ht(o),o.subtreeFlags&6&&(o.flags|=8192)):Ht(o),f=o.updateQueue,f!==null&&X0(o,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==f&&(o.flags|=2048),a!==null&&Z($l),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),Xi(fn),Ht(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function rE(a,o){switch(kh(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Xi(fn),ae(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return me(o),null;case 31:if(o.memoizedState!==null){if(xr(o),o.alternate===null)throw Error(r(340));Cl()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(xr(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Cl()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return Z(nn),null;case 4:return ae(),null;case 10:return Xi(o.type),null;case 22:case 23:return xr(o),Lh(),a!==null&&Z($l),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return Xi(fn),null;case 25:return null;default:return null}}function W4(a,o){switch(kh(o),o.tag){case 3:Xi(fn),ae();break;case 26:case 27:case 5:me(o);break;case 4:ae();break;case 31:o.memoizedState!==null&&xr(o);break;case 13:xr(o);break;case 19:Z(nn);break;case 10:Xi(o.type);break;case 22:case 23:xr(o),Lh(),a!==null&&Z($l);break;case 24:Xi(fn)}}function dc(a,o){try{var f=o.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var b=p.next;f=b;do{if((f.tag&a)===a){p=void 0;var S=f.create,Q=f.inst;p=S(),Q.destroy=p}f=f.next}while(f!==b)}}catch(_){Et(o,o.return,_)}}function La(a,o,f){try{var p=o.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var S=b.next;p=S;do{if((p.tag&a)===a){var Q=p.inst,_=Q.destroy;if(_!==void 0){Q.destroy=void 0,b=o;var W=f,se=_;try{se()}catch(de){Et(b,W,de)}}}p=p.next}while(p!==S)}}catch(de){Et(o,o.return,de)}}function K4(a){var o=a.updateQueue;if(o!==null){var f=a.stateNode;try{XO(o,f)}catch(p){Et(a,a.return,p)}}}function J4(a,o,f){f.props=Nl(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(p){Et(a,o,p)}}function hc(a,o){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}typeof f=="function"?a.refCleanup=f(p):f.current=p}}catch(b){Et(a,o,b)}}function pi(a,o){var f=a.ref,p=a.refCleanup;if(f!==null)if(typeof p=="function")try{p()}catch(b){Et(a,o,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(b){Et(a,o,b)}else f.current=null}function ex(a){var o=a.type,f=a.memoizedProps,p=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":f.autoFocus&&p.focus();break e;case"img":f.src?p.src=f.src:f.srcSet&&(p.srcset=f.srcSet)}}catch(b){Et(a,a.return,b)}}function Om(a,o,f){try{var p=a.stateNode;AE(p,a.type,f,o),p[vn]=o}catch(b){Et(a,a.return,b)}}function tx(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ya(a.type)||a.tag===4}function xm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||tx(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ya(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function ym(a,o,f){var p=a.tag;if(p===5||p===6)a=a.stateNode,o?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(a,o):(o=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,o.appendChild(a),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=Vi));else if(p!==4&&(p===27&&Ya(a.type)&&(f=a.stateNode,o=null),a=a.child,a!==null))for(ym(a,o,f),a=a.sibling;a!==null;)ym(a,o,f),a=a.sibling}function z0(a,o,f){var p=a.tag;if(p===5||p===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(p!==4&&(p===27&&Ya(a.type)&&(f=a.stateNode),a=a.child,a!==null))for(z0(a,o,f),a=a.sibling;a!==null;)z0(a,o,f),a=a.sibling}function nx(a){var o=a.stateNode,f=a.memoizedProps;try{for(var p=a.type,b=o.attributes;b.length;)o.removeAttributeNode(b[0]);Qn(o,p,f),o[tn]=a,o[vn]=f}catch(S){Et(a,a.return,S)}}var Ii=!1,mn=!1,bm=!1,rx=typeof WeakSet=="function"?WeakSet:Set,Sn=null;function iE(a,o){if(a=a.containerInfo,Hm=u1,a=pO(a),hh(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var p=f.getSelection&&f.getSelection();if(p&&p.rangeCount!==0){f=p.anchorNode;var b=p.anchorOffset,S=p.focusNode;p=p.focusOffset;try{f.nodeType,S.nodeType}catch{f=null;break e}var Q=0,_=-1,W=-1,se=0,de=0,pe=a,oe=null;t:for(;;){for(var ce;pe!==f||b!==0&&pe.nodeType!==3||(_=Q+b),pe!==S||p!==0&&pe.nodeType!==3||(W=Q+p),pe.nodeType===3&&(Q+=pe.nodeValue.length),(ce=pe.firstChild)!==null;)oe=pe,pe=ce;for(;;){if(pe===a)break t;if(oe===f&&++se===b&&(_=Q),oe===S&&++de===p&&(W=Q),(ce=pe.nextSibling)!==null)break;pe=oe,oe=pe.parentNode}pe=ce}f=_===-1||W===-1?null:{start:_,end:W}}else f=null}f=f||{start:0,end:0}}else f=null;for(Xm={focusedElem:a,selectionRange:f},u1=!1,Sn=o;Sn!==null;)if(o=Sn,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Sn=a;else for(;Sn!==null;){switch(o=Sn,S=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(f=0;f<a.length;f++)b=a[f],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&S!==null){a=void 0,f=o,b=S.memoizedProps,S=S.memoizedState,p=f.stateNode;try{var Te=Nl(f.type,b);a=p.getSnapshotBeforeUpdate(Te,S),p.__reactInternalSnapshotBeforeUpdate=a}catch(He){Et(f,f.return,He)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,f=a.nodeType,f===9)Bm(a);else if(f===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Bm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Sn=a;break}Sn=o.return}}function ix(a,o,f){var p=f.flags;switch(f.tag){case 0:case 11:case 15:Gi(a,f),p&4&&dc(5,f);break;case 1:if(Gi(a,f),p&4)if(a=f.stateNode,o===null)try{a.componentDidMount()}catch(Q){Et(f,f.return,Q)}else{var b=Nl(f.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(b,o,a.__reactInternalSnapshotBeforeUpdate)}catch(Q){Et(f,f.return,Q)}}p&64&&K4(f),p&512&&hc(f,f.return);break;case 3:if(Gi(a,f),p&64&&(a=f.updateQueue,a!==null)){if(o=null,f.child!==null)switch(f.child.tag){case 27:case 5:o=f.child.stateNode;break;case 1:o=f.child.stateNode}try{XO(a,o)}catch(Q){Et(f,f.return,Q)}}break;case 27:o===null&&p&4&&nx(f);case 26:case 5:Gi(a,f),o===null&&p&4&&ex(f),p&512&&hc(f,f.return);break;case 12:Gi(a,f);break;case 31:Gi(a,f),p&4&&sx(a,f);break;case 13:Gi(a,f),p&4&&ox(a,f),p&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=hE.bind(null,f),QE(a,f))));break;case 22:if(p=f.memoizedState!==null||Ii,!p){o=o!==null&&o.memoizedState!==null||mn,b=Ii;var S=mn;Ii=p,(mn=o)&&!S?Ui(a,f,(f.subtreeFlags&8772)!==0):Gi(a,f),Ii=b,mn=S}break;case 30:break;default:Gi(a,f)}}function ax(a){var o=a.alternate;o!==null&&(a.alternate=null,ax(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&zt(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Ft=null,tr=!1;function qi(a,o,f){for(f=f.child;f!==null;)lx(a,o,f),f=f.sibling}function lx(a,o,f){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Mt,f)}catch{}switch(f.tag){case 26:mn||pi(f,o),qi(a,o,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:mn||pi(f,o);var p=Ft,b=tr;Ya(f.type)&&(Ft=f.stateNode,tr=!1),qi(a,o,f),Sc(f.stateNode),Ft=p,tr=b;break;case 5:mn||pi(f,o);case 6:if(p=Ft,b=tr,Ft=null,qi(a,o,f),Ft=p,tr=b,Ft!==null)if(tr)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(f.stateNode)}catch(S){Et(f,o,S)}else try{Ft.removeChild(f.stateNode)}catch(S){Et(f,o,S)}break;case 18:Ft!==null&&(tr?(a=Ft,Kx(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),_s(a)):Kx(Ft,f.stateNode));break;case 4:p=Ft,b=tr,Ft=f.stateNode.containerInfo,tr=!0,qi(a,o,f),Ft=p,tr=b;break;case 0:case 11:case 14:case 15:La(2,f,o),mn||La(4,f,o),qi(a,o,f);break;case 1:mn||(pi(f,o),p=f.stateNode,typeof p.componentWillUnmount=="function"&&J4(f,o,p)),qi(a,o,f);break;case 21:qi(a,o,f);break;case 22:mn=(p=mn)||f.memoizedState!==null,qi(a,o,f),mn=p;break;default:qi(a,o,f)}}function sx(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{_s(a)}catch(f){Et(o,o.return,f)}}}function ox(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{_s(a)}catch(f){Et(o,o.return,f)}}function aE(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new rx),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new rx),o;default:throw Error(r(435,a.tag))}}function F0(a,o){var f=aE(a);o.forEach(function(p){if(!f.has(p)){f.add(p);var b=mE.bind(null,a,p);p.then(b,b)}})}function nr(a,o){var f=o.deletions;if(f!==null)for(var p=0;p<f.length;p++){var b=f[p],S=a,Q=o,_=Q;e:for(;_!==null;){switch(_.tag){case 27:if(Ya(_.type)){Ft=_.stateNode,tr=!1;break e}break;case 5:Ft=_.stateNode,tr=!1;break e;case 3:case 4:Ft=_.stateNode.containerInfo,tr=!0;break e}_=_.return}if(Ft===null)throw Error(r(160));lx(S,Q,b),Ft=null,tr=!1,S=b.alternate,S!==null&&(S.return=null),b.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)cx(o,a),o=o.sibling}var ei=null;function cx(a,o){var f=a.alternate,p=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:nr(o,a),rr(a),p&4&&(La(3,a,a.return),dc(3,a),La(5,a,a.return));break;case 1:nr(o,a),rr(a),p&512&&(mn||f===null||pi(f,f.return)),p&64&&Ii&&(a=a.updateQueue,a!==null&&(p=a.callbacks,p!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?p:f.concat(p))));break;case 26:var b=ei;if(nr(o,a),rr(a),p&512&&(mn||f===null||pi(f,f.return)),p&4){var S=f!==null?f.memoizedState:null;if(p=a.memoizedState,f===null)if(p===null)if(a.stateNode===null){e:{p=a.type,f=a.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":S=b.getElementsByTagName("title")[0],(!S||S[ct]||S[tn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=b.createElement(p),b.head.insertBefore(S,b.querySelector("head > title"))),Qn(S,p,f),S[tn]=a,un(S),p=S;break e;case"link":var Q=c5("link","href",b).get(p+(f.href||""));if(Q){for(var _=0;_<Q.length;_++)if(S=Q[_],S.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&S.getAttribute("rel")===(f.rel==null?null:f.rel)&&S.getAttribute("title")===(f.title==null?null:f.title)&&S.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){Q.splice(_,1);break t}}S=b.createElement(p),Qn(S,p,f),b.head.appendChild(S);break;case"meta":if(Q=c5("meta","content",b).get(p+(f.content||""))){for(_=0;_<Q.length;_++)if(S=Q[_],S.getAttribute("content")===(f.content==null?null:""+f.content)&&S.getAttribute("name")===(f.name==null?null:f.name)&&S.getAttribute("property")===(f.property==null?null:f.property)&&S.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&S.getAttribute("charset")===(f.charSet==null?null:f.charSet)){Q.splice(_,1);break t}}S=b.createElement(p),Qn(S,p,f),b.head.appendChild(S);break;default:throw Error(r(468,p))}S[tn]=a,un(S),p=S}a.stateNode=p}else u5(b,a.type,a.stateNode);else a.stateNode=o5(b,p,a.memoizedProps);else S!==p?(S===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):S.count--,p===null?u5(b,a.type,a.stateNode):o5(b,p,a.memoizedProps)):p===null&&a.stateNode!==null&&Om(a,a.memoizedProps,f.memoizedProps)}break;case 27:nr(o,a),rr(a),p&512&&(mn||f===null||pi(f,f.return)),f!==null&&p&4&&Om(a,a.memoizedProps,f.memoizedProps);break;case 5:if(nr(o,a),rr(a),p&512&&(mn||f===null||pi(f,f.return)),a.flags&32){b=a.stateNode;try{ss(b,"")}catch(Te){Et(a,a.return,Te)}}p&4&&a.stateNode!=null&&(b=a.memoizedProps,Om(a,b,f!==null?f.memoizedProps:b)),p&1024&&(bm=!0);break;case 6:if(nr(o,a),rr(a),p&4){if(a.stateNode===null)throw Error(r(162));p=a.memoizedProps,f=a.stateNode;try{f.nodeValue=p}catch(Te){Et(a,a.return,Te)}}break;case 3:if(l1=null,b=ei,ei=i1(o.containerInfo),nr(o,a),ei=b,rr(a),p&4&&f!==null&&f.memoizedState.isDehydrated)try{_s(o.containerInfo)}catch(Te){Et(a,a.return,Te)}bm&&(bm=!1,ux(a));break;case 4:p=ei,ei=i1(a.stateNode.containerInfo),nr(o,a),rr(a),ei=p;break;case 12:nr(o,a),rr(a);break;case 31:nr(o,a),rr(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,F0(a,p)));break;case 13:nr(o,a),rr(a),a.child.flags&8192&&a.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Y0=be()),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,F0(a,p)));break;case 22:b=a.memoizedState!==null;var W=f!==null&&f.memoizedState!==null,se=Ii,de=mn;if(Ii=se||b,mn=de||W,nr(o,a),mn=de,Ii=se,rr(a),p&8192)e:for(o=a.stateNode,o._visibility=b?o._visibility&-2:o._visibility|1,b&&(f===null||W||Ii||mn||Rl(a)),f=null,o=a;;){if(o.tag===5||o.tag===26){if(f===null){W=f=o;try{if(S=W.stateNode,b)Q=S.style,typeof Q.setProperty=="function"?Q.setProperty("display","none","important"):Q.display="none";else{_=W.stateNode;var pe=W.memoizedProps.style,oe=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;_.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(Te){Et(W,W.return,Te)}}}else if(o.tag===6){if(f===null){W=o;try{W.stateNode.nodeValue=b?"":W.memoizedProps}catch(Te){Et(W,W.return,Te)}}}else if(o.tag===18){if(f===null){W=o;try{var ce=W.stateNode;b?Jx(ce,!0):Jx(W.stateNode,!1)}catch(Te){Et(W,W.return,Te)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;f===o&&(f=null),o=o.return}f===o&&(f=null),o.sibling.return=o.return,o=o.sibling}p&4&&(p=a.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,F0(a,f))));break;case 19:nr(o,a),rr(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,F0(a,p)));break;case 30:break;case 21:break;default:nr(o,a),rr(a)}}function rr(a){var o=a.flags;if(o&2){try{for(var f,p=a.return;p!==null;){if(tx(p)){f=p;break}p=p.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var b=f.stateNode,S=xm(a);z0(a,S,b);break;case 5:var Q=f.stateNode;f.flags&32&&(ss(Q,""),f.flags&=-33);var _=xm(a);z0(a,_,Q);break;case 3:case 4:var W=f.stateNode.containerInfo,se=xm(a);ym(a,se,W);break;default:throw Error(r(161))}}catch(de){Et(a,a.return,de)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function ux(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;ux(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Gi(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)ix(a,o.alternate,o),o=o.sibling}function Rl(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:La(4,o,o.return),Rl(o);break;case 1:pi(o,o.return);var f=o.stateNode;typeof f.componentWillUnmount=="function"&&J4(o,o.return,f),Rl(o);break;case 27:Sc(o.stateNode);case 26:case 5:pi(o,o.return),Rl(o);break;case 22:o.memoizedState===null&&Rl(o);break;case 30:Rl(o);break;default:Rl(o)}a=a.sibling}}function Ui(a,o,f){for(f=f&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var p=o.alternate,b=a,S=o,Q=S.flags;switch(S.tag){case 0:case 11:case 15:Ui(b,S,f),dc(4,S);break;case 1:if(Ui(b,S,f),p=S,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(se){Et(p,p.return,se)}if(p=S,b=p.updateQueue,b!==null){var _=p.stateNode;try{var W=b.shared.hiddenCallbacks;if(W!==null)for(b.shared.hiddenCallbacks=null,b=0;b<W.length;b++)HO(W[b],_)}catch(se){Et(p,p.return,se)}}f&&Q&64&&K4(S),hc(S,S.return);break;case 27:nx(S);case 26:case 5:Ui(b,S,f),f&&p===null&&Q&4&&ex(S),hc(S,S.return);break;case 12:Ui(b,S,f);break;case 31:Ui(b,S,f),f&&Q&4&&sx(b,S);break;case 13:Ui(b,S,f),f&&Q&4&&ox(b,S);break;case 22:S.memoizedState===null&&Ui(b,S,f),hc(S,S.return);break;case 30:break;default:Ui(b,S,f)}o=o.sibling}}function vm(a,o){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&Jo(f))}function Sm(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Jo(a))}function ti(a,o,f,p){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)fx(a,o,f,p),o=o.sibling}function fx(a,o,f,p){var b=o.flags;switch(o.tag){case 0:case 11:case 15:ti(a,o,f,p),b&2048&&dc(9,o);break;case 1:ti(a,o,f,p);break;case 3:ti(a,o,f,p),b&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Jo(a)));break;case 12:if(b&2048){ti(a,o,f,p),a=o.stateNode;try{var S=o.memoizedProps,Q=S.id,_=S.onPostCommit;typeof _=="function"&&_(Q,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(W){Et(o,o.return,W)}}else ti(a,o,f,p);break;case 31:ti(a,o,f,p);break;case 13:ti(a,o,f,p);break;case 23:break;case 22:S=o.stateNode,Q=o.alternate,o.memoizedState!==null?S._visibility&2?ti(a,o,f,p):mc(a,o):S._visibility&2?ti(a,o,f,p):(S._visibility|=2,Cs(a,o,f,p,(o.subtreeFlags&10256)!==0||!1)),b&2048&&vm(Q,o);break;case 24:ti(a,o,f,p),b&2048&&Sm(o.alternate,o);break;default:ti(a,o,f,p)}}function Cs(a,o,f,p,b){for(b=b&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var S=a,Q=o,_=f,W=p,se=Q.flags;switch(Q.tag){case 0:case 11:case 15:Cs(S,Q,_,W,b),dc(8,Q);break;case 23:break;case 22:var de=Q.stateNode;Q.memoizedState!==null?de._visibility&2?Cs(S,Q,_,W,b):mc(S,Q):(de._visibility|=2,Cs(S,Q,_,W,b)),b&&se&2048&&vm(Q.alternate,Q);break;case 24:Cs(S,Q,_,W,b),b&&se&2048&&Sm(Q.alternate,Q);break;default:Cs(S,Q,_,W,b)}o=o.sibling}}function mc(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var f=a,p=o,b=p.flags;switch(p.tag){case 22:mc(f,p),b&2048&&vm(p.alternate,p);break;case 24:mc(f,p),b&2048&&Sm(p.alternate,p);break;default:mc(f,p)}o=o.sibling}}var pc=8192;function Es(a,o,f){if(a.subtreeFlags&pc)for(a=a.child;a!==null;)dx(a,o,f),a=a.sibling}function dx(a,o,f){switch(a.tag){case 26:Es(a,o,f),a.flags&pc&&a.memoizedState!==null&&BE(f,ei,a.memoizedState,a.memoizedProps);break;case 5:Es(a,o,f);break;case 3:case 4:var p=ei;ei=i1(a.stateNode.containerInfo),Es(a,o,f),ei=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=pc,pc=16777216,Es(a,o,f),pc=p):Es(a,o,f));break;default:Es(a,o,f)}}function hx(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function gc(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var p=o[f];Sn=p,px(p,a)}hx(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)mx(a),a=a.sibling}function mx(a){switch(a.tag){case 0:case 11:case 15:gc(a),a.flags&2048&&La(9,a,a.return);break;case 3:gc(a);break;case 12:gc(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,B0(a)):gc(a);break;default:gc(a)}}function B0(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var p=o[f];Sn=p,px(p,a)}hx(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:La(8,o,o.return),B0(o);break;case 22:f=o.stateNode,f._visibility&2&&(f._visibility&=-3,B0(o));break;default:B0(o)}a=a.sibling}}function px(a,o){for(;Sn!==null;){var f=Sn;switch(f.tag){case 0:case 11:case 15:La(8,f,o);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var p=f.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Jo(f.memoizedState.cache)}if(p=f.child,p!==null)p.return=f,Sn=p;else e:for(f=a;Sn!==null;){p=Sn;var b=p.sibling,S=p.return;if(ax(p),p===f){Sn=null;break e}if(b!==null){b.return=S,Sn=b;break e}Sn=S}}}var lE={getCacheForType:function(a){var o=jn(fn),f=o.data.get(a);return f===void 0&&(f=a(),o.data.set(a,f)),f},cacheSignal:function(){return jn(fn).controller.signal}},sE=typeof WeakMap=="function"?WeakMap:Map,kt=0,Zt=null,et=null,it=0,Ct=0,yr=null,Da=!1,Ts=!1,wm=!1,Wi=0,Ut=0,Ha=0,Vl=0,km=0,br=0,$s=0,Oc=null,ir=null,Am=!1,Y0=0,gx=0,I0=1/0,q0=null,Xa=null,On=0,za=null,js=null,Ki=0,Mm=0,Cm=null,Ox=null,xc=0,Em=null;function vr(){return(kt&2)!==0&&it!==0?it&-it:D.T!==null?Zm():mr()}function xx(){if(br===0)if((it&536870912)===0||st){var a=Je;Je<<=1,(Je&3932160)===0&&(Je=262144),br=a}else br=536870912;return a=Or.current,a!==null&&(a.flags|=32),br}function ar(a,o,f){(a===Zt&&(Ct===2||Ct===9)||a.cancelPendingCommit!==null)&&(Ps(a,0),Fa(a,it,br,!1)),En(a,f),((kt&2)===0||a!==Zt)&&(a===Zt&&((kt&2)===0&&(Vl|=f),Ut===4&&Fa(a,it,br,!1)),gi(a))}function yx(a,o,f){if((kt&6)!==0)throw Error(r(327));var p=!f&&(o&127)===0&&(o&a.expiredLanes)===0||Bn(a,o),b=p?uE(a,o):$m(a,o,!0),S=p;do{if(b===0){Ts&&!p&&Fa(a,o,0,!1);break}else{if(f=a.current.alternate,S&&!oE(f)){b=$m(a,o,!1),S=!1;continue}if(b===2){if(S=o,a.errorRecoveryDisabledLanes&S)var Q=0;else Q=a.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){o=Q;e:{var _=a;b=Oc;var W=_.current.memoizedState.isDehydrated;if(W&&(Ps(_,Q).flags|=256),Q=$m(_,Q,!1),Q!==2){if(wm&&!W){_.errorRecoveryDisabledLanes|=S,Vl|=S,b=4;break e}S=ir,ir=b,S!==null&&(ir===null?ir=S:ir.push.apply(ir,S))}b=Q}if(S=!1,b!==2)continue}}if(b===1){Ps(a,0),Fa(a,o,0,!0);break}e:{switch(p=a,S=b,S){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Fa(p,o,br,!Da);break e;case 2:ir=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(b=Y0+300-be(),10<b)){if(Fa(p,o,br,!Da),cn(p,0,!0)!==0)break e;Ki=o,p.timeoutHandle=Ux(bx.bind(null,p,f,ir,q0,Am,o,br,Vl,$s,Da,S,"Throttled",-0,0),b);break e}bx(p,f,ir,q0,Am,o,br,Vl,$s,Da,S,null,-0,0)}}break}while(!0);gi(a)}function bx(a,o,f,p,b,S,Q,_,W,se,de,pe,oe,ce){if(a.timeoutHandle=-1,pe=o.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vi},dx(o,S,pe);var Te=(S&62914560)===S?Y0-be():(S&4194048)===S?gx-be():0;if(Te=YE(pe,Te),Te!==null){Ki=S,a.cancelPendingCommit=Te(Ex.bind(null,a,o,S,f,p,b,Q,_,W,de,pe,null,oe,ce)),Fa(a,S,Q,!se);return}}Ex(a,o,S,f,p,b,Q,_,W)}function oE(a){for(var o=a;;){var f=o.tag;if((f===0||f===11||f===15)&&o.flags&16384&&(f=o.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var p=0;p<f.length;p++){var b=f[p],S=b.getSnapshot;b=b.value;try{if(!pr(S(),b))return!1}catch{return!1}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Fa(a,o,f,p){o&=~km,o&=~Vl,a.suspendedLanes|=o,a.pingedLanes&=~o,p&&(a.warmLanes|=o),p=a.expirationTimes;for(var b=o;0<b;){var S=31-ze(b),Q=1<<S;p[S]=-1,b&=~Q}f!==0&&wa(a,f,o)}function G0(){return(kt&6)===0?(yc(0),!1):!0}function Tm(){if(et!==null){if(Ct===0)var a=et.return;else a=et,Hi=El=null,Bh(a),Ss=null,tc=0,a=et;for(;a!==null;)W4(a.alternate,a),a=a.return;et=null}}function Ps(a,o){var f=a.timeoutHandle;f!==-1&&(a.timeoutHandle=-1,EE(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),Ki=0,Tm(),Zt=a,et=f=Li(a.current,null),it=o,Ct=0,yr=null,Da=!1,Ts=Bn(a,o),wm=!1,$s=br=km=Vl=Ha=Ut=0,ir=Oc=null,Am=!1,(o&8)!==0&&(o|=o&32);var p=a.entangledLanes;if(p!==0)for(a=a.entanglements,p&=o;0<p;){var b=31-ze(p),S=1<<b;o|=a[b],p&=~S}return Wi=o,g0(),f}function vx(a,o){Ge=null,D.H=cc,o===vs||o===k0?(o=VO(),Ct=3):o===Qh?(o=VO(),Ct=4):Ct=o===sm?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,yr=o,et===null&&(Ut=1,_0(a,Nr(o,a.current)))}function Sx(){var a=Or.current;return a===null?!0:(it&4194048)===it?Lr===null:(it&62914560)===it||(it&536870912)!==0?a===Lr:!1}function wx(){var a=D.H;return D.H=cc,a===null?cc:a}function kx(){var a=D.A;return D.A=lE,a}function U0(){Ut=4,Da||(it&4194048)!==it&&Or.current!==null||(Ts=!0),(Ha&134217727)===0&&(Vl&134217727)===0||Zt===null||Fa(Zt,it,br,!1)}function $m(a,o,f){var p=kt;kt|=2;var b=wx(),S=kx();(Zt!==a||it!==o)&&(q0=null,Ps(a,o)),o=!1;var Q=Ut;e:do try{if(Ct!==0&&et!==null){var _=et,W=yr;switch(Ct){case 8:Tm(),Q=6;break e;case 3:case 2:case 9:case 6:Or.current===null&&(o=!0);var se=Ct;if(Ct=0,yr=null,Qs(a,_,W,se),f&&Ts){Q=0;break e}break;default:se=Ct,Ct=0,yr=null,Qs(a,_,W,se)}}cE(),Q=Ut;break}catch(de){vx(a,de)}while(!0);return o&&a.shellSuspendCounter++,Hi=El=null,kt=p,D.H=b,D.A=S,et===null&&(Zt=null,it=0,g0()),Q}function cE(){for(;et!==null;)Ax(et)}function uE(a,o){var f=kt;kt|=2;var p=wx(),b=kx();Zt!==a||it!==o?(q0=null,I0=be()+500,Ps(a,o)):Ts=Bn(a,o);e:do try{if(Ct!==0&&et!==null){o=et;var S=yr;t:switch(Ct){case 1:Ct=0,yr=null,Qs(a,o,S,1);break;case 2:case 9:if(NO(S)){Ct=0,yr=null,Mx(o);break}o=function(){Ct!==2&&Ct!==9||Zt!==a||(Ct=7),gi(a)},S.then(o,o);break e;case 3:Ct=7;break e;case 4:Ct=5;break e;case 7:NO(S)?(Ct=0,yr=null,Mx(o)):(Ct=0,yr=null,Qs(a,o,S,7));break;case 5:var Q=null;switch(et.tag){case 26:Q=et.memoizedState;case 5:case 27:var _=et;if(Q?f5(Q):_.stateNode.complete){Ct=0,yr=null;var W=_.sibling;if(W!==null)et=W;else{var se=_.return;se!==null?(et=se,W0(se)):et=null}break t}}Ct=0,yr=null,Qs(a,o,S,5);break;case 6:Ct=0,yr=null,Qs(a,o,S,6);break;case 8:Tm(),Ut=6;break e;default:throw Error(r(462))}}fE();break}catch(de){vx(a,de)}while(!0);return Hi=El=null,D.H=p,D.A=b,kt=f,et!==null?0:(Zt=null,it=0,g0(),Ut)}function fE(){for(;et!==null&&!Ye();)Ax(et)}function Ax(a){var o=G4(a.alternate,a,Wi);a.memoizedProps=a.pendingProps,o===null?W0(a):et=o}function Mx(a){var o=a,f=o.alternate;switch(o.tag){case 15:case 0:o=z4(f,o,o.pendingProps,o.type,void 0,it);break;case 11:o=z4(f,o,o.pendingProps,o.type.render,o.ref,it);break;case 5:Bh(o);default:W4(f,o),o=et=kO(o,Wi),o=G4(f,o,Wi)}a.memoizedProps=a.pendingProps,o===null?W0(a):et=o}function Qs(a,o,f,p){Hi=El=null,Bh(o),Ss=null,tc=0;var b=o.return;try{if(JC(a,b,o,f,it)){Ut=1,_0(a,Nr(f,a.current)),et=null;return}}catch(S){if(b!==null)throw et=b,S;Ut=1,_0(a,Nr(f,a.current)),et=null;return}o.flags&32768?(st||p===1?a=!0:Ts||(it&536870912)!==0?a=!1:(Da=a=!0,(p===2||p===9||p===3||p===6)&&(p=Or.current,p!==null&&p.tag===13&&(p.flags|=16384))),Cx(o,a)):W0(o)}function W0(a){var o=a;do{if((o.flags&32768)!==0){Cx(o,Da);return}a=o.return;var f=nE(o.alternate,o,Wi);if(f!==null){et=f;return}if(o=o.sibling,o!==null){et=o;return}et=o=a}while(o!==null);Ut===0&&(Ut=5)}function Cx(a,o){do{var f=rE(a.alternate,a);if(f!==null){f.flags&=32767,et=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!o&&(a=a.sibling,a!==null)){et=a;return}et=a=f}while(a!==null);Ut=6,et=null}function Ex(a,o,f,p,b,S,Q,_,W){a.cancelPendingCommit=null;do K0();while(On!==0);if((kt&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(S=o.lanes|o.childLanes,S|=xh,di(a,f,S,Q,_,W),a===Zt&&(et=Zt=null,it=0),js=o,za=a,Ki=f,Mm=S,Cm=b,Ox=p,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,pE(Re,function(){return Qx(),null})):(a.callbackNode=null,a.callbackPriority=0),p=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||p){p=D.T,D.T=null,b=G.p,G.p=2,Q=kt,kt|=4;try{iE(a,o,f)}finally{kt=Q,G.p=b,D.T=p}}On=1,Tx(),$x(),jx()}}function Tx(){if(On===1){On=0;var a=za,o=js,f=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||f){f=D.T,D.T=null;var p=G.p;G.p=2;var b=kt;kt|=4;try{cx(o,a);var S=Xm,Q=pO(a.containerInfo),_=S.focusedElem,W=S.selectionRange;if(Q!==_&&_&&_.ownerDocument&&mO(_.ownerDocument.documentElement,_)){if(W!==null&&hh(_)){var se=W.start,de=W.end;if(de===void 0&&(de=se),"selectionStart"in _)_.selectionStart=se,_.selectionEnd=Math.min(de,_.value.length);else{var pe=_.ownerDocument||document,oe=pe&&pe.defaultView||window;if(oe.getSelection){var ce=oe.getSelection(),Te=_.textContent.length,He=Math.min(W.start,Te),Qt=W.end===void 0?He:Math.min(W.end,Te);!ce.extend&&He>Qt&&(Q=Qt,Qt=He,He=Q);var ie=hO(_,He),te=hO(_,Qt);if(ie&&te&&(ce.rangeCount!==1||ce.anchorNode!==ie.node||ce.anchorOffset!==ie.offset||ce.focusNode!==te.node||ce.focusOffset!==te.offset)){var le=pe.createRange();le.setStart(ie.node,ie.offset),ce.removeAllRanges(),He>Qt?(ce.addRange(le),ce.extend(te.node,te.offset)):(le.setEnd(te.node,te.offset),ce.addRange(le))}}}}for(pe=[],ce=_;ce=ce.parentNode;)ce.nodeType===1&&pe.push({element:ce,left:ce.scrollLeft,top:ce.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<pe.length;_++){var he=pe[_];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}u1=!!Hm,Xm=Hm=null}finally{kt=b,G.p=p,D.T=f}}a.current=o,On=2}}function $x(){if(On===2){On=0;var a=za,o=js,f=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||f){f=D.T,D.T=null;var p=G.p;G.p=2;var b=kt;kt|=4;try{ix(a,o.alternate,o)}finally{kt=b,G.p=p,D.T=f}}On=3}}function jx(){if(On===4||On===3){On=0,Le();var a=za,o=js,f=Ki,p=Ox;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?On=5:(On=0,js=za=null,Px(a,a.pendingLanes));var b=a.pendingLanes;if(b===0&&(Xa=null),bn(f),o=o.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Mt,o,void 0,(o.current.flags&128)===128)}catch{}if(p!==null){o=D.T,b=G.p,G.p=2,D.T=null;try{for(var S=a.onRecoverableError,Q=0;Q<p.length;Q++){var _=p[Q];S(_.value,{componentStack:_.stack})}}finally{D.T=o,G.p=b}}(Ki&3)!==0&&K0(),gi(a),b=a.pendingLanes,(f&261930)!==0&&(b&42)!==0?a===Em?xc++:(xc=0,Em=a):xc=0,yc(0)}}function Px(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Jo(o)))}function K0(){return Tx(),$x(),jx(),Qx()}function Qx(){if(On!==5)return!1;var a=za,o=Mm;Mm=0;var f=bn(Ki),p=D.T,b=G.p;try{G.p=32>f?32:f,D.T=null,f=Cm,Cm=null;var S=za,Q=Ki;if(On=0,js=za=null,Ki=0,(kt&6)!==0)throw Error(r(331));var _=kt;if(kt|=4,mx(S.current),fx(S,S.current,Q,f),kt=_,yc(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Mt,S)}catch{}return!0}finally{G.p=b,D.T=p,Px(a,o)}}function Zx(a,o,f){o=Nr(f,o),o=lm(a.stateNode,o,2),a=Ra(a,o,2),a!==null&&(En(a,2),gi(a))}function Et(a,o,f){if(a.tag===3)Zx(a,a,f);else for(;o!==null;){if(o.tag===3){Zx(o,a,f);break}else if(o.tag===1){var p=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Xa===null||!Xa.has(p))){a=Nr(f,a),f=N4(2),p=Ra(o,f,2),p!==null&&(R4(f,p,o,a),En(p,2),gi(p));break}}o=o.return}}function jm(a,o,f){var p=a.pingCache;if(p===null){p=a.pingCache=new sE;var b=new Set;p.set(o,b)}else b=p.get(o),b===void 0&&(b=new Set,p.set(o,b));b.has(f)||(wm=!0,b.add(f),a=dE.bind(null,a,o,f),o.then(a,a))}function dE(a,o,f){var p=a.pingCache;p!==null&&p.delete(o),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,Zt===a&&(it&f)===f&&(Ut===4||Ut===3&&(it&62914560)===it&&300>be()-Y0?(kt&2)===0&&Ps(a,0):km|=f,$s===it&&($s=0)),gi(a)}function Nx(a,o){o===0&&(o=Sa()),a=Al(a,o),a!==null&&(En(a,o),gi(a))}function hE(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),Nx(a,f)}function mE(a,o){var f=0;switch(a.tag){case 31:case 13:var p=a.stateNode,b=a.memoizedState;b!==null&&(f=b.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(o),Nx(a,f)}function pE(a,o){return yt(a,o)}var J0=null,Zs=null,Pm=!1,e1=!1,Qm=!1,Ba=0;function gi(a){a!==Zs&&a.next===null&&(Zs===null?J0=Zs=a:Zs=Zs.next=a),e1=!0,Pm||(Pm=!0,OE())}function yc(a,o){if(!Qm&&e1){Qm=!0;do for(var f=!1,p=J0;p!==null;){if(a!==0){var b=p.pendingLanes;if(b===0)var S=0;else{var Q=p.suspendedLanes,_=p.pingedLanes;S=(1<<31-ze(42|a)+1)-1,S&=b&~(Q&~_),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(f=!0,Lx(p,S))}else S=it,S=cn(p,p===Zt?S:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(S&3)===0||Bn(p,S)||(f=!0,Lx(p,S));p=p.next}while(f);Qm=!1}}function gE(){Rx()}function Rx(){e1=Pm=!1;var a=0;Ba!==0&&CE()&&(a=Ba);for(var o=be(),f=null,p=J0;p!==null;){var b=p.next,S=Vx(p,o);S===0?(p.next=null,f===null?J0=b:f.next=b,b===null&&(Zs=f)):(f=p,(a!==0||(S&3)!==0)&&(e1=!0)),p=b}On!==0&&On!==5||yc(a),Ba!==0&&(Ba=0)}function Vx(a,o){for(var f=a.suspendedLanes,p=a.pingedLanes,b=a.expirationTimes,S=a.pendingLanes&-62914561;0<S;){var Q=31-ze(S),_=1<<Q,W=b[Q];W===-1?((_&f)===0||(_&p)!==0)&&(b[Q]=bl(_,o)):W<=o&&(a.expiredLanes|=_),S&=~_}if(o=Zt,f=it,f=cn(a,a===o?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,f===0||a===o&&(Ct===2||Ct===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&_e(p),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||Bn(a,f)){if(o=f&-f,o===a.callbackPriority)return o;switch(p!==null&&_e(p),bn(f)){case 2:case 8:f=bt;break;case 32:f=Re;break;case 268435456:f=Rt;break;default:f=Re}return p=_x.bind(null,a),f=yt(f,p),a.callbackPriority=o,a.callbackNode=f,o}return p!==null&&p!==null&&_e(p),a.callbackPriority=2,a.callbackNode=null,2}function _x(a,o){if(On!==0&&On!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(K0()&&a.callbackNode!==f)return null;var p=it;return p=cn(a,a===Zt?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(yx(a,p,o),Vx(a,be()),a.callbackNode!=null&&a.callbackNode===f?_x.bind(null,a):null)}function Lx(a,o){if(K0())return null;yx(a,o,!0)}function OE(){TE(function(){(kt&6)!==0?yt(Ue,gE):Rx()})}function Zm(){if(Ba===0){var a=ys;a===0&&(a=lt,lt<<=1,(lt&261888)===0&&(lt=256)),Ba=a}return Ba}function Dx(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:o0(""+a)}function Hx(a,o){var f=o.ownerDocument.createElement("input");return f.name=o.name,f.value=o.value,a.id&&f.setAttribute("form",a.id),o.parentNode.insertBefore(f,o),a=new FormData(a),f.parentNode.removeChild(f),a}function xE(a,o,f,p,b){if(o==="submit"&&f&&f.stateNode===b){var S=Dx((b[vn]||null).action),Q=p.submitter;Q&&(o=(o=Q[vn]||null)?Dx(o.formAction):Q.getAttribute("formAction"),o!==null&&(S=o,Q=null));var _=new d0("action","action",null,p,b);a.push({event:_,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ba!==0){var W=Q?Hx(b,Q):new FormData(b);em(f,{pending:!0,data:W,method:b.method,action:S},null,W)}}else typeof S=="function"&&(_.preventDefault(),W=Q?Hx(b,Q):new FormData(b),em(f,{pending:!0,data:W,method:b.method,action:S},S,W))},currentTarget:b}]})}}for(var Nm=0;Nm<Oh.length;Nm++){var Rm=Oh[Nm],yE=Rm.toLowerCase(),bE=Rm[0].toUpperCase()+Rm.slice(1);Jr(yE,"on"+bE)}Jr(xO,"onAnimationEnd"),Jr(yO,"onAnimationIteration"),Jr(bO,"onAnimationStart"),Jr("dblclick","onDoubleClick"),Jr("focusin","onFocus"),Jr("focusout","onBlur"),Jr(RC,"onTransitionRun"),Jr(VC,"onTransitionStart"),Jr(_C,"onTransitionCancel"),Jr(vO,"onTransitionEnd"),Ca("onMouseEnter",["mouseout","mouseover"]),Ca("onMouseLeave",["mouseout","mouseover"]),Ca("onPointerEnter",["pointerout","pointerover"]),Ca("onPointerLeave",["pointerout","pointerover"]),Ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bc="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(" "),vE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bc));function Xx(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var p=a[f],b=p.event;p=p.listeners;e:{var S=void 0;if(o)for(var Q=p.length-1;0<=Q;Q--){var _=p[Q],W=_.instance,se=_.currentTarget;if(_=_.listener,W!==S&&b.isPropagationStopped())break e;S=_,b.currentTarget=se;try{S(b)}catch(de){p0(de)}b.currentTarget=null,S=W}else for(Q=0;Q<p.length;Q++){if(_=p[Q],W=_.instance,se=_.currentTarget,_=_.listener,W!==S&&b.isPropagationStopped())break e;S=_,b.currentTarget=se;try{S(b)}catch(de){p0(de)}b.currentTarget=null,S=W}}}}function tt(a,o){var f=o[Aa];f===void 0&&(f=o[Aa]=new Set);var p=a+"__bubble";f.has(p)||(zx(o,a,2,!1),f.add(p))}function Vm(a,o,f){var p=0;o&&(p|=4),zx(f,a,p,o)}var t1="_reactListening"+Math.random().toString(36).slice(2);function _m(a){if(!a[t1]){a[t1]=!0,r0.forEach(function(f){f!=="selectionchange"&&(vE.has(f)||Vm(f,!1,a),Vm(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[t1]||(o[t1]=!0,Vm("selectionchange",!1,o))}}function zx(a,o,f,p){switch(x5(o)){case 2:var b=GE;break;case 8:b=UE;break;default:b=Jm}f=b.bind(null,o,f,a),b=void 0,!ih||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(b=!0),p?b!==void 0?a.addEventListener(o,f,{capture:!0,passive:b}):a.addEventListener(o,f,!0):b!==void 0?a.addEventListener(o,f,{passive:b}):a.addEventListener(o,f,!1)}function Lm(a,o,f,p,b){var S=p;if((o&1)===0&&(o&2)===0&&p!==null)e:for(;;){if(p===null)return;var Q=p.tag;if(Q===3||Q===4){var _=p.stateNode.containerInfo;if(_===b)break;if(Q===4)for(Q=p.return;Q!==null;){var W=Q.tag;if((W===3||W===4)&&Q.stateNode.containerInfo===b)return;Q=Q.return}for(;_!==null;){if(Q=Tn(_),Q===null)return;if(W=Q.tag,W===5||W===6||W===26||W===27){p=S=Q;continue e}_=_.parentNode}}p=p.return}q6(function(){var se=S,de=nh(f),pe=[];e:{var oe=SO.get(a);if(oe!==void 0){var ce=d0,Te=a;switch(a){case"keypress":if(u0(f)===0)break e;case"keydown":case"keyup":ce=mC;break;case"focusin":Te="focus",ce=oh;break;case"focusout":Te="blur",ce=oh;break;case"beforeblur":case"afterblur":ce=oh;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=W6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=nC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=OC;break;case xO:case yO:case bO:ce=aC;break;case vO:ce=yC;break;case"scroll":case"scrollend":ce=eC;break;case"wheel":ce=vC;break;case"copy":case"cut":case"paste":ce=sC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=J6;break;case"toggle":case"beforetoggle":ce=wC}var He=(o&4)!==0,Qt=!He&&(a==="scroll"||a==="scrollend"),ie=He?oe!==null?oe+"Capture":null:oe;He=[];for(var te=se,le;te!==null;){var he=te;if(le=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||le===null||ie===null||(he=Xo(te,ie),he!=null&&He.push(vc(te,he,le))),Qt)break;te=te.return}0<He.length&&(oe=new ce(oe,Te,null,f,de),pe.push({event:oe,listeners:He}))}}if((o&7)===0){e:{if(oe=a==="mouseover"||a==="pointerover",ce=a==="mouseout"||a==="pointerout",oe&&f!==th&&(Te=f.relatedTarget||f.fromElement)&&(Tn(Te)||Te[Ur]))break e;if((ce||oe)&&(oe=de.window===de?de:(oe=de.ownerDocument)?oe.defaultView||oe.parentWindow:window,ce?(Te=f.relatedTarget||f.toElement,ce=se,Te=Te?Tn(Te):null,Te!==null&&(Qt=l(Te),He=Te.tag,Te!==Qt||He!==5&&He!==27&&He!==6)&&(Te=null)):(ce=null,Te=se),ce!==Te)){if(He=W6,he="onMouseLeave",ie="onMouseEnter",te="mouse",(a==="pointerout"||a==="pointerover")&&(He=J6,he="onPointerLeave",ie="onPointerEnter",te="pointer"),Qt=ce==null?oe:Kn(ce),le=Te==null?oe:Kn(Te),oe=new He(he,te+"leave",ce,f,de),oe.target=Qt,oe.relatedTarget=le,he=null,Tn(de)===se&&(He=new He(ie,te+"enter",Te,f,de),He.target=le,He.relatedTarget=Qt,he=He),Qt=he,ce&&Te)t:{for(He=SE,ie=ce,te=Te,le=0,he=ie;he;he=He(he))le++;he=0;for(var De=te;De;De=He(De))he++;for(;0<le-he;)ie=He(ie),le--;for(;0<he-le;)te=He(te),he--;for(;le--;){if(ie===te||te!==null&&ie===te.alternate){He=ie;break t}ie=He(ie),te=He(te)}He=null}else He=null;ce!==null&&Fx(pe,oe,ce,He,!1),Te!==null&&Qt!==null&&Fx(pe,Qt,Te,He,!0)}}e:{if(oe=se?Kn(se):window,ce=oe.nodeName&&oe.nodeName.toLowerCase(),ce==="select"||ce==="input"&&oe.type==="file")var St=sO;else if(aO(oe))if(oO)St=QC;else{St=jC;var Qe=$C}else ce=oe.nodeName,!ce||ce.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?se&&eh(se.elementType)&&(St=sO):St=PC;if(St&&(St=St(a,se))){lO(pe,St,f,de);break e}Qe&&Qe(a,oe,se),a==="focusout"&&se&&oe.type==="number"&&se.memoizedProps.value!=null&&Jd(oe,"number",oe.value)}switch(Qe=se?Kn(se):window,a){case"focusin":(aO(Qe)||Qe.contentEditable==="true")&&(fs=Qe,mh=se,Uo=null);break;case"focusout":Uo=mh=fs=null;break;case"mousedown":ph=!0;break;case"contextmenu":case"mouseup":case"dragend":ph=!1,gO(pe,f,de);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":gO(pe,f,de)}var We;if(uh)e:{switch(a){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else us?rO(a,f)&&(at="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(at="onCompositionStart");at&&(eO&&f.locale!=="ko"&&(us||at!=="onCompositionStart"?at==="onCompositionEnd"&&us&&(We=G6()):(Ta=de,ah="value"in Ta?Ta.value:Ta.textContent,us=!0)),Qe=n1(se,at),0<Qe.length&&(at=new K6(at,a,null,f,de),pe.push({event:at,listeners:Qe}),We?at.data=We:(We=iO(f),We!==null&&(at.data=We)))),(We=AC?MC(a,f):CC(a,f))&&(at=n1(se,"onBeforeInput"),0<at.length&&(Qe=new K6("onBeforeInput","beforeinput",null,f,de),pe.push({event:Qe,listeners:at}),Qe.data=We)),xE(pe,a,se,f,de)}Xx(pe,o)})}function vc(a,o,f){return{instance:a,listener:o,currentTarget:f}}function n1(a,o){for(var f=o+"Capture",p=[];a!==null;){var b=a,S=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||S===null||(b=Xo(a,f),b!=null&&p.unshift(vc(a,b,S)),b=Xo(a,o),b!=null&&p.push(vc(a,b,S))),a.tag===3)return p;a=a.return}return[]}function SE(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Fx(a,o,f,p,b){for(var S=o._reactName,Q=[];f!==null&&f!==p;){var _=f,W=_.alternate,se=_.stateNode;if(_=_.tag,W!==null&&W===p)break;_!==5&&_!==26&&_!==27||se===null||(W=se,b?(se=Xo(f,S),se!=null&&Q.unshift(vc(f,se,W))):b||(se=Xo(f,S),se!=null&&Q.push(vc(f,se,W)))),f=f.return}Q.length!==0&&a.push({event:o,listeners:Q})}var wE=/\r\n?/g,kE=/\u0000|\uFFFD/g;function Bx(a){return(typeof a=="string"?a:""+a).replace(wE,`
49
- `).replace(kE,"")}function Yx(a,o){return o=Bx(o),Bx(a)===o}function Pt(a,o,f,p,b,S){switch(f){case"children":typeof p=="string"?o==="body"||o==="textarea"&&p===""||ss(a,p):(typeof p=="number"||typeof p=="bigint")&&o!=="body"&&ss(a,""+p);break;case"className":pt(a,"class",p);break;case"tabIndex":pt(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":pt(a,f,p);break;case"style":Y6(a,p,S);break;case"data":if(o!=="object"){pt(a,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||f!=="href")){a.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=o0(""+p),a.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(f==="formAction"?(o!=="input"&&Pt(a,o,"name",b.name,b,null),Pt(a,o,"formEncType",b.formEncType,b,null),Pt(a,o,"formMethod",b.formMethod,b,null),Pt(a,o,"formTarget",b.formTarget,b,null)):(Pt(a,o,"encType",b.encType,b,null),Pt(a,o,"method",b.method,b,null),Pt(a,o,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=o0(""+p),a.setAttribute(f,p);break;case"onClick":p!=null&&(a.onclick=Vi);break;case"onScroll":p!=null&&tt("scroll",a);break;case"onScrollEnd":p!=null&&tt("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}f=o0(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""+p):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":p===!0?a.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(f,p):a.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(f):a.setAttribute(f,p);break;case"popover":tt("beforetoggle",a),tt("toggle",a),Ea(a,"popover",p);break;case"xlinkActuate":$t(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":$t(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":$t(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":$t(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":$t(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":$t(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":$t(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":$t(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":$t(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Ea(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=KM.get(f)||f,Ea(a,f,p))}}function Dm(a,o,f,p,b,S){switch(f){case"style":Y6(a,p,S);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"children":typeof p=="string"?ss(a,p):(typeof p=="number"||typeof p=="bigint")&&ss(a,""+p);break;case"onScroll":p!=null&&tt("scroll",a);break;case"onScrollEnd":p!=null&&tt("scrollend",a);break;case"onClick":p!=null&&(a.onclick=Vi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!i0.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(b=f.endsWith("Capture"),o=f.slice(2,b?f.length-7:void 0),S=a[vn]||null,S=S!=null?S[f]:null,typeof S=="function"&&a.removeEventListener(o,S,b),typeof p=="function")){typeof S!="function"&&S!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(o,p,b);break e}f in a?a[f]=p:p===!0?a.setAttribute(f,""):Ea(a,f,p)}}}function Qn(a,o,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",a),tt("load",a);var p=!1,b=!1,S;for(S in f)if(f.hasOwnProperty(S)){var Q=f[S];if(Q!=null)switch(S){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Pt(a,o,S,Q,f,null)}}b&&Pt(a,o,"srcSet",f.srcSet,f,null),p&&Pt(a,o,"src",f.src,f,null);return;case"input":tt("invalid",a);var _=S=Q=b=null,W=null,se=null;for(p in f)if(f.hasOwnProperty(p)){var de=f[p];if(de!=null)switch(p){case"name":b=de;break;case"type":Q=de;break;case"checked":W=de;break;case"defaultChecked":se=de;break;case"value":S=de;break;case"defaultValue":_=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,o));break;default:Pt(a,o,p,de,f,null)}}X6(a,S,_,W,se,Q,b,!1);return;case"select":tt("invalid",a),p=Q=S=null;for(b in f)if(f.hasOwnProperty(b)&&(_=f[b],_!=null))switch(b){case"value":S=_;break;case"defaultValue":Q=_;break;case"multiple":p=_;default:Pt(a,o,b,_,f,null)}o=S,f=Q,a.multiple=!!p,o!=null?ls(a,!!p,o,!1):f!=null&&ls(a,!!p,f,!0);return;case"textarea":tt("invalid",a),S=b=p=null;for(Q in f)if(f.hasOwnProperty(Q)&&(_=f[Q],_!=null))switch(Q){case"value":p=_;break;case"defaultValue":b=_;break;case"children":S=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:Pt(a,o,Q,_,f,null)}F6(a,p,b,S);return;case"option":for(W in f)if(f.hasOwnProperty(W)&&(p=f[W],p!=null))switch(W){case"selected":a.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Pt(a,o,W,p,f,null)}return;case"dialog":tt("beforetoggle",a),tt("toggle",a),tt("cancel",a),tt("close",a);break;case"iframe":case"object":tt("load",a);break;case"video":case"audio":for(p=0;p<bc.length;p++)tt(bc[p],a);break;case"image":tt("error",a),tt("load",a);break;case"details":tt("toggle",a);break;case"embed":case"source":case"link":tt("error",a),tt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in f)if(f.hasOwnProperty(se)&&(p=f[se],p!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Pt(a,o,se,p,f,null)}return;default:if(eh(o)){for(de in f)f.hasOwnProperty(de)&&(p=f[de],p!==void 0&&Dm(a,o,de,p,f,void 0));return}}for(_ in f)f.hasOwnProperty(_)&&(p=f[_],p!=null&&Pt(a,o,_,p,f,null))}function AE(a,o,f,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,S=null,Q=null,_=null,W=null,se=null,de=null;for(ce in f){var pe=f[ce];if(f.hasOwnProperty(ce)&&pe!=null)switch(ce){case"checked":break;case"value":break;case"defaultValue":W=pe;default:p.hasOwnProperty(ce)||Pt(a,o,ce,null,p,pe)}}for(var oe in p){var ce=p[oe];if(pe=f[oe],p.hasOwnProperty(oe)&&(ce!=null||pe!=null))switch(oe){case"type":S=ce;break;case"name":b=ce;break;case"checked":se=ce;break;case"defaultChecked":de=ce;break;case"value":Q=ce;break;case"defaultValue":_=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(r(137,o));break;default:ce!==pe&&Pt(a,o,oe,ce,p,pe)}}Kd(a,Q,_,W,se,de,S,b);return;case"select":ce=Q=_=oe=null;for(S in f)if(W=f[S],f.hasOwnProperty(S)&&W!=null)switch(S){case"value":break;case"multiple":ce=W;default:p.hasOwnProperty(S)||Pt(a,o,S,null,p,W)}for(b in p)if(S=p[b],W=f[b],p.hasOwnProperty(b)&&(S!=null||W!=null))switch(b){case"value":oe=S;break;case"defaultValue":_=S;break;case"multiple":Q=S;default:S!==W&&Pt(a,o,b,S,p,W)}o=_,f=Q,p=ce,oe!=null?ls(a,!!f,oe,!1):!!p!=!!f&&(o!=null?ls(a,!!f,o,!0):ls(a,!!f,f?[]:"",!1));return;case"textarea":ce=oe=null;for(_ in f)if(b=f[_],f.hasOwnProperty(_)&&b!=null&&!p.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Pt(a,o,_,null,p,b)}for(Q in p)if(b=p[Q],S=f[Q],p.hasOwnProperty(Q)&&(b!=null||S!=null))switch(Q){case"value":oe=b;break;case"defaultValue":ce=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==S&&Pt(a,o,Q,b,p,S)}z6(a,oe,ce);return;case"option":for(var Te in f)if(oe=f[Te],f.hasOwnProperty(Te)&&oe!=null&&!p.hasOwnProperty(Te))switch(Te){case"selected":a.selected=!1;break;default:Pt(a,o,Te,null,p,oe)}for(W in p)if(oe=p[W],ce=f[W],p.hasOwnProperty(W)&&oe!==ce&&(oe!=null||ce!=null))switch(W){case"selected":a.selected=oe&&typeof oe!="function"&&typeof oe!="symbol";break;default:Pt(a,o,W,oe,p,ce)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in f)oe=f[He],f.hasOwnProperty(He)&&oe!=null&&!p.hasOwnProperty(He)&&Pt(a,o,He,null,p,oe);for(se in p)if(oe=p[se],ce=f[se],p.hasOwnProperty(se)&&oe!==ce&&(oe!=null||ce!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,o));break;default:Pt(a,o,se,oe,p,ce)}return;default:if(eh(o)){for(var Qt in f)oe=f[Qt],f.hasOwnProperty(Qt)&&oe!==void 0&&!p.hasOwnProperty(Qt)&&Dm(a,o,Qt,void 0,p,oe);for(de in p)oe=p[de],ce=f[de],!p.hasOwnProperty(de)||oe===ce||oe===void 0&&ce===void 0||Dm(a,o,de,oe,p,ce);return}}for(var ie in f)oe=f[ie],f.hasOwnProperty(ie)&&oe!=null&&!p.hasOwnProperty(ie)&&Pt(a,o,ie,null,p,oe);for(pe in p)oe=p[pe],ce=f[pe],!p.hasOwnProperty(pe)||oe===ce||oe==null&&ce==null||Pt(a,o,pe,oe,p,ce)}function Ix(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ME(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var b=f[p],S=b.transferSize,Q=b.initiatorType,_=b.duration;if(S&&_&&Ix(Q)){for(Q=0,_=b.responseEnd,p+=1;p<f.length;p++){var W=f[p],se=W.startTime;if(se>_)break;var de=W.transferSize,pe=W.initiatorType;de&&Ix(pe)&&(W=W.responseEnd,Q+=de*(W<_?1:(_-se)/(W-se)))}if(--p,o+=8*(S+Q)/(b.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Hm=null,Xm=null;function r1(a){return a.nodeType===9?a:a.ownerDocument}function qx(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gx(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function zm(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Fm=null;function CE(){var a=window.event;return a&&a.type==="popstate"?a===Fm?!1:(Fm=a,!0):(Fm=null,!1)}var Ux=typeof setTimeout=="function"?setTimeout:void 0,EE=typeof clearTimeout=="function"?clearTimeout:void 0,Wx=typeof Promise=="function"?Promise:void 0,TE=typeof queueMicrotask=="function"?queueMicrotask:typeof Wx<"u"?function(a){return Wx.resolve(null).then(a).catch($E)}:Ux;function $E(a){setTimeout(function(){throw a})}function Ya(a){return a==="head"}function Kx(a,o){var f=o,p=0;do{var b=f.nextSibling;if(a.removeChild(f),b&&b.nodeType===8)if(f=b.data,f==="/$"||f==="/&"){if(p===0){a.removeChild(b),_s(o);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Sc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,Sc(f);for(var S=f.firstChild;S;){var Q=S.nextSibling,_=S.nodeName;S[ct]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&S.rel.toLowerCase()==="stylesheet"||f.removeChild(S),S=Q}}else f==="body"&&Sc(a.ownerDocument.body);f=b}while(f);_s(o)}function Jx(a,o){var f=a;a=0;do{var p=f.nextSibling;if(f.nodeType===1?o?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(o?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=p}while(f)}function Bm(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var f=o;switch(o=o.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":Bm(f),zt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function jE(a,o,f,p){for(;a.nodeType===1;){var b=f;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[ct])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(S=a.getAttribute("rel"),S==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(S!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(S=a.getAttribute("src"),(S!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&S&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var S=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===S)return a}else return a;if(a=Dr(a.nextSibling),a===null)break}return null}function PE(a,o,f){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=Dr(a.nextSibling),a===null))return null;return a}function e5(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=Dr(a.nextSibling),a===null))return null;return a}function Ym(a){return a.data==="$?"||a.data==="$~"}function Im(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function QE(a,o){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||f.readyState!=="loading")o();else{var p=function(){o(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Dr(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var qm=null;function t5(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(o===0)return Dr(a.nextSibling);o--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||o++}a=a.nextSibling}return null}function n5(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(o===0)return a;o--}else f!=="/$"&&f!=="/&"||o++}a=a.previousSibling}return null}function r5(a,o,f){switch(o=r1(f),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Sc(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);zt(a)}var Hr=new Map,i5=new Set;function i1(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ji=G.d;G.d={f:ZE,r:NE,D:RE,C:VE,L:_E,m:LE,X:HE,S:DE,M:XE};function ZE(){var a=Ji.f(),o=G0();return a||o}function NE(a){var o=Pr(a);o!==null&&o.tag===5&&o.type==="form"?v4(o):Ji.r(a)}var Ns=typeof document>"u"?null:document;function a5(a,o,f){var p=Ns;if(p&&typeof o=="string"&&o){var b=Qr(o);b='link[rel="'+a+'"][href="'+b+'"]',typeof f=="string"&&(b+='[crossorigin="'+f+'"]'),i5.has(b)||(i5.add(b),a={rel:a,crossOrigin:f,href:o},p.querySelector(b)===null&&(o=p.createElement("link"),Qn(o,"link",a),un(o),p.head.appendChild(o)))}}function RE(a){Ji.D(a),a5("dns-prefetch",a,null)}function VE(a,o){Ji.C(a,o),a5("preconnect",a,o)}function _E(a,o,f){Ji.L(a,o,f);var p=Ns;if(p&&a&&o){var b='link[rel="preload"][as="'+Qr(o)+'"]';o==="image"&&f&&f.imageSrcSet?(b+='[imagesrcset="'+Qr(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(b+='[imagesizes="'+Qr(f.imageSizes)+'"]')):b+='[href="'+Qr(a)+'"]';var S=b;switch(o){case"style":S=Rs(a);break;case"script":S=Vs(a)}Hr.has(S)||(a=O({rel:"preload",href:o==="image"&&f&&f.imageSrcSet?void 0:a,as:o},f),Hr.set(S,a),p.querySelector(b)!==null||o==="style"&&p.querySelector(wc(S))||o==="script"&&p.querySelector(kc(S))||(o=p.createElement("link"),Qn(o,"link",a),un(o),p.head.appendChild(o)))}}function LE(a,o){Ji.m(a,o);var f=Ns;if(f&&a){var p=o&&typeof o.as=="string"?o.as:"script",b='link[rel="modulepreload"][as="'+Qr(p)+'"][href="'+Qr(a)+'"]',S=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Vs(a)}if(!Hr.has(S)&&(a=O({rel:"modulepreload",href:a},o),Hr.set(S,a),f.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(kc(S)))return}p=f.createElement("link"),Qn(p,"link",a),un(p),f.head.appendChild(p)}}}function DE(a,o,f){Ji.S(a,o,f);var p=Ns;if(p&&a){var b=Ma(p).hoistableStyles,S=Rs(a);o=o||"default";var Q=b.get(S);if(!Q){var _={loading:0,preload:null};if(Q=p.querySelector(wc(S)))_.loading=5;else{a=O({rel:"stylesheet",href:a,"data-precedence":o},f),(f=Hr.get(S))&&Gm(a,f);var W=Q=p.createElement("link");un(W),Qn(W,"link",a),W._p=new Promise(function(se,de){W.onload=se,W.onerror=de}),W.addEventListener("load",function(){_.loading|=1}),W.addEventListener("error",function(){_.loading|=2}),_.loading|=4,a1(Q,o,p)}Q={type:"stylesheet",instance:Q,count:1,state:_},b.set(S,Q)}}}function HE(a,o){Ji.X(a,o);var f=Ns;if(f&&a){var p=Ma(f).hoistableScripts,b=Vs(a),S=p.get(b);S||(S=f.querySelector(kc(b)),S||(a=O({src:a,async:!0},o),(o=Hr.get(b))&&Um(a,o),S=f.createElement("script"),un(S),Qn(S,"link",a),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(b,S))}}function XE(a,o){Ji.M(a,o);var f=Ns;if(f&&a){var p=Ma(f).hoistableScripts,b=Vs(a),S=p.get(b);S||(S=f.querySelector(kc(b)),S||(a=O({src:a,async:!0,type:"module"},o),(o=Hr.get(b))&&Um(a,o),S=f.createElement("script"),un(S),Qn(S,"link",a),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(b,S))}}function l5(a,o,f,p){var b=(b=ne.current)?i1(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(o=Rs(f.href),f=Ma(b).hoistableStyles,p=f.get(o),p||(p={type:"style",instance:null,count:0,state:null},f.set(o,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=Rs(f.href);var S=Ma(b).hoistableStyles,Q=S.get(a);if(Q||(b=b.ownerDocument||b,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(a,Q),(S=b.querySelector(wc(a)))&&!S._p&&(Q.instance=S,Q.state.loading=5),Hr.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Hr.set(a,f),S||zE(b,a,f,Q.state))),o&&p===null)throw Error(r(528,""));return Q}if(o&&p!==null)throw Error(r(529,""));return null;case"script":return o=f.async,f=f.src,typeof f=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Vs(f),f=Ma(b).hoistableScripts,p=f.get(o),p||(p={type:"script",instance:null,count:0,state:null},f.set(o,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Rs(a){return'href="'+Qr(a)+'"'}function wc(a){return'link[rel="stylesheet"]['+a+"]"}function s5(a){return O({},a,{"data-precedence":a.precedence,precedence:null})}function zE(a,o,f,p){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?p.loading=1:(o=a.createElement("link"),p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2}),Qn(o,"link",f),un(o),a.head.appendChild(o))}function Vs(a){return'[src="'+Qr(a)+'"]'}function kc(a){return"script[async]"+a}function o5(a,o,f){if(o.count++,o.instance===null)switch(o.type){case"style":var p=a.querySelector('style[data-href~="'+Qr(f.href)+'"]');if(p)return o.instance=p,un(p),p;var b=O({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),un(p),Qn(p,"style",b),a1(p,f.precedence,a),o.instance=p;case"stylesheet":b=Rs(f.href);var S=a.querySelector(wc(b));if(S)return o.state.loading|=4,o.instance=S,un(S),S;p=s5(f),(b=Hr.get(b))&&Gm(p,b),S=(a.ownerDocument||a).createElement("link"),un(S);var Q=S;return Q._p=new Promise(function(_,W){Q.onload=_,Q.onerror=W}),Qn(S,"link",p),o.state.loading|=4,a1(S,f.precedence,a),o.instance=S;case"script":return S=Vs(f.src),(b=a.querySelector(kc(S)))?(o.instance=b,un(b),b):(p=f,(b=Hr.get(S))&&(p=O({},f),Um(p,b)),a=a.ownerDocument||a,b=a.createElement("script"),un(b),Qn(b,"link",p),a.head.appendChild(b),o.instance=b);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,a1(p,f.precedence,a));return o.instance}function a1(a,o,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,S=b,Q=0;Q<p.length;Q++){var _=p[Q];if(_.dataset.precedence===o)S=_;else if(S!==b)break}S?S.parentNode.insertBefore(a,S.nextSibling):(o=f.nodeType===9?f.head:f,o.insertBefore(a,o.firstChild))}function Gm(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Um(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var l1=null;function c5(a,o,f){if(l1===null){var p=new Map,b=l1=new Map;b.set(f,p)}else b=l1,p=b.get(f),p||(p=new Map,b.set(f,p));if(p.has(a))return p;for(p.set(a,null),f=f.getElementsByTagName(a),b=0;b<f.length;b++){var S=f[b];if(!(S[ct]||S[tn]||a==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var Q=S.getAttribute(o)||"";Q=a+Q;var _=p.get(Q);_?_.push(S):p.set(Q,[S])}}return p}function u5(a,o,f){a=a.ownerDocument||a,a.head.insertBefore(f,o==="title"?a.querySelector("head > title"):null)}function FE(a,o,f){if(f===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function f5(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function BE(a,o,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var b=Rs(p.href),S=o.querySelector(wc(b));if(S){o=S._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=s1.bind(a),o.then(a,a)),f.state.loading|=4,f.instance=S,un(S);return}S=o.ownerDocument||o,p=s5(p),(b=Hr.get(b))&&Gm(p,b),S=S.createElement("link"),un(S);var Q=S;Q._p=new Promise(function(_,W){Q.onload=_,Q.onerror=W}),Qn(S,"link",p),f.instance=S}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,o),(o=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=s1.bind(a),o.addEventListener("load",f),o.addEventListener("error",f))}}var Wm=0;function YE(a,o){return a.stylesheets&&a.count===0&&c1(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var p=setTimeout(function(){if(a.stylesheets&&c1(a,a.stylesheets),a.unsuspend){var S=a.unsuspend;a.unsuspend=null,S()}},6e4+o);0<a.imgBytes&&Wm===0&&(Wm=62500*ME());var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&c1(a,a.stylesheets),a.unsuspend)){var S=a.unsuspend;a.unsuspend=null,S()}},(a.imgBytes>Wm?50:800)+o);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function s1(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)c1(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var o1=null;function c1(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,o1=new Map,o.forEach(IE,a),o1=null,s1.call(a))}function IE(a,o){if(!(o.state.loading&4)){var f=o1.get(a);if(f)var p=f.get(null);else{f=new Map,o1.set(a,f);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<b.length;S++){var Q=b[S];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(f.set(Q.dataset.precedence,Q),p=Q)}p&&f.set(null,p)}b=o.instance,Q=b.getAttribute("data-precedence"),S=f.get(Q)||p,S===p&&f.set(null,b),f.set(Q,b),this.count++,p=s1.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),S?S.parentNode.insertBefore(b,S.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),o.state.loading|=4}}var Ac={$$typeof:T,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function qE(a,o,f,p,b,S,Q,_,W){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zi(0),this.hiddenUpdates=Zi(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=S,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function d5(a,o,f,p,b,S,Q,_,W,se,de,pe){return a=new qE(a,o,f,Q,W,se,de,pe,_),o=1,S===!0&&(o|=24),S=gr(3,null,null,o),a.current=S,S.stateNode=a,o=$h(),o.refCount++,a.pooledCache=o,o.refCount++,S.memoizedState={element:p,isDehydrated:f,cache:o},Zh(S),a}function h5(a){return a?(a=ms,a):ms}function m5(a,o,f,p,b,S){b=h5(b),p.context===null?p.context=b:p.pendingContext=b,p=Na(o),p.payload={element:f},S=S===void 0?null:S,S!==null&&(p.callback=S),f=Ra(a,p,o),f!==null&&(ar(f,a,o),rc(f,a,o))}function p5(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function Km(a,o){p5(a,o),(a=a.alternate)&&p5(a,o)}function g5(a){if(a.tag===13||a.tag===31){var o=Al(a,67108864);o!==null&&ar(o,a,67108864),Km(a,67108864)}}function O5(a){if(a.tag===13||a.tag===31){var o=vr();o=rt(o);var f=Al(a,o);f!==null&&ar(f,a,o),Km(a,o)}}var u1=!0;function GE(a,o,f,p){var b=D.T;D.T=null;var S=G.p;try{G.p=2,Jm(a,o,f,p)}finally{G.p=S,D.T=b}}function UE(a,o,f,p){var b=D.T;D.T=null;var S=G.p;try{G.p=8,Jm(a,o,f,p)}finally{G.p=S,D.T=b}}function Jm(a,o,f,p){if(u1){var b=ep(p);if(b===null)Lm(a,o,p,f1,f),y5(a,p);else if(KE(b,a,o,f,p))p.stopPropagation();else if(y5(a,p),o&4&&-1<WE.indexOf(a)){for(;b!==null;){var S=Pr(b);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var Q=Tt(S.pendingLanes);if(Q!==0){var _=S;for(_.pendingLanes|=2,_.entangledLanes|=2;Q;){var W=1<<31-ze(Q);_.entanglements[1]|=W,Q&=~W}gi(S),(kt&6)===0&&(I0=be()+500,yc(0))}}break;case 31:case 13:_=Al(S,2),_!==null&&ar(_,S,2),G0(),Km(S,2)}if(S=ep(p),S===null&&Lm(a,o,p,f1,f),S===b)break;b=S}b!==null&&p.stopPropagation()}else Lm(a,o,p,null,f)}}function ep(a){return a=nh(a),tp(a)}var f1=null;function tp(a){if(f1=null,a=Tn(a),a!==null){var o=l(a);if(o===null)a=null;else{var f=o.tag;if(f===13){if(a=s(o),a!==null)return a;a=null}else if(f===31){if(a=c(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return f1=a,null}function x5(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dt()){case Ue:return 2;case bt:return 8;case Re:case on:return 32;case Rt:return 268435456;default:return 32}default:return 32}}var np=!1,Ia=null,qa=null,Ga=null,Mc=new Map,Cc=new Map,Ua=[],WE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y5(a,o){switch(a){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Mc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cc.delete(o.pointerId)}}function Ec(a,o,f,p,b,S){return a===null||a.nativeEvent!==S?(a={blockedOn:o,domEventName:f,eventSystemFlags:p,nativeEvent:S,targetContainers:[b]},o!==null&&(o=Pr(o),o!==null&&g5(o)),a):(a.eventSystemFlags|=p,o=a.targetContainers,b!==null&&o.indexOf(b)===-1&&o.push(b),a)}function KE(a,o,f,p,b){switch(o){case"focusin":return Ia=Ec(Ia,a,o,f,p,b),!0;case"dragenter":return qa=Ec(qa,a,o,f,p,b),!0;case"mouseover":return Ga=Ec(Ga,a,o,f,p,b),!0;case"pointerover":var S=b.pointerId;return Mc.set(S,Ec(Mc.get(S)||null,a,o,f,p,b)),!0;case"gotpointercapture":return S=b.pointerId,Cc.set(S,Ec(Cc.get(S)||null,a,o,f,p,b)),!0}return!1}function b5(a){var o=Tn(a.target);if(o!==null){var f=l(o);if(f!==null){if(o=f.tag,o===13){if(o=s(f),o!==null){a.blockedOn=o,vl(a.priority,function(){O5(f)});return}}else if(o===31){if(o=c(f),o!==null){a.blockedOn=o,vl(a.priority,function(){O5(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function d1(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=ep(a.nativeEvent);if(f===null){f=a.nativeEvent;var p=new f.constructor(f.type,f);th=p,f.target.dispatchEvent(p),th=null}else return o=Pr(f),o!==null&&g5(o),a.blockedOn=f,!1;o.shift()}return!0}function v5(a,o,f){d1(a)&&f.delete(o)}function JE(){np=!1,Ia!==null&&d1(Ia)&&(Ia=null),qa!==null&&d1(qa)&&(qa=null),Ga!==null&&d1(Ga)&&(Ga=null),Mc.forEach(v5),Cc.forEach(v5)}function h1(a,o){a.blockedOn===o&&(a.blockedOn=null,np||(np=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,JE)))}var m1=null;function S5(a){m1!==a&&(m1=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){m1===a&&(m1=null);for(var o=0;o<a.length;o+=3){var f=a[o],p=a[o+1],b=a[o+2];if(typeof p!="function"){if(tp(p||f)===null)continue;break}var S=Pr(f);S!==null&&(a.splice(o,3),o-=3,em(S,{pending:!0,data:b,method:f.method,action:p},p,b))}}))}function _s(a){function o(W){return h1(W,a)}Ia!==null&&h1(Ia,a),qa!==null&&h1(qa,a),Ga!==null&&h1(Ga,a),Mc.forEach(o),Cc.forEach(o);for(var f=0;f<Ua.length;f++){var p=Ua[f];p.blockedOn===a&&(p.blockedOn=null)}for(;0<Ua.length&&(f=Ua[0],f.blockedOn===null);)b5(f),f.blockedOn===null&&Ua.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var b=f[p],S=f[p+1],Q=b[vn]||null;if(typeof S=="function")Q||S5(f);else if(Q){var _=null;if(S&&S.hasAttribute("formAction")){if(b=S,Q=S[vn]||null)_=Q.formAction;else if(tp(b)!==null)continue}else _=Q.action;typeof _=="function"?f[p+1]=_:(f.splice(p,3),p-=3),S5(f)}}}function w5(){function a(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(Q){return b=Q})},focusReset:"manual",scroll:"manual"})}function o(){b!==null&&(b(),b=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),b!==null&&(b(),b=null)}}}function rp(a){this._internalRoot=a}p1.prototype.render=rp.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var f=o.current,p=vr();m5(f,p,a,o,null,null)},p1.prototype.unmount=rp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;m5(a.current,2,null,a,null,null),G0(),o[Ur]=null}};function p1(a){this._internalRoot=a}p1.prototype.unstable_scheduleHydration=function(a){if(a){var o=mr();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Ua.length&&o!==0&&o<Ua[f].priority;f++);Ua.splice(f,0,a),f===0&&b5(a)}};var k5=e.version;if(k5!=="19.2.6")throw Error(r(527,k5,"19.2.6"));G.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(o),a=a!==null?g(a):null,a=a===null?null:a.stateNode,a};var eT={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var g1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!g1.isDisabled&&g1.supportsFiber)try{Mt=g1.inject(eT),ot=g1}catch{}}return $c.createRoot=function(a,o){if(!i(a))throw Error(r(299));var f=!1,p="",b=j4,S=P4,Q=Q4;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(Q=o.onRecoverableError)),o=d5(a,1,!1,null,null,f,p,null,b,S,Q,w5),a[Ur]=o.current,_m(a),new rp(o)},$c.hydrateRoot=function(a,o,f){if(!i(a))throw Error(r(299));var p=!1,b="",S=j4,Q=P4,_=Q4,W=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(S=f.onUncaughtError),f.onCaughtError!==void 0&&(Q=f.onCaughtError),f.onRecoverableError!==void 0&&(_=f.onRecoverableError),f.formState!==void 0&&(W=f.formState)),o=d5(a,1,!0,o,f??null,p,b,W,S,Q,_,w5),o.context=h5(null),f=o.current,p=vr(),p=rt(p),b=Na(p),b.callback=null,Ra(f,b,p),f=p,o.current.lanes=f,En(o,f),gi(o),a[Ur]=o.current,_m(a),new p1(o)},$c.version="19.2.6",$c}var N5;function dT(){if(N5)return lp.exports;N5=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),lp.exports=fT(),lp.exports}var hT=dT();const R5="hyperframes-studio:anonymousId",mT="hyperframes-studio:telemetryDisabled",kS="hyperframes-studio:telemetryNoticeShown";function wd(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}function pT(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`anon-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function gT(){const t=wd();if(!t)return"anonymous";const e=t.getItem(R5);if(e)return e;const n=pT();try{t.setItem(R5,n)}catch{}return n}function OT(){var t;return((t=wd())==null?void 0:t.getItem(mT))==="1"}function xT(){var t;return((t=wd())==null?void 0:t.getItem(kS))==="1"}function yT(){var t;try{(t=wd())==null||t.setItem(kS,"1")}catch{}}const AS="hyperframes-studio:sessionStartFired";function MS(){try{return typeof sessionStorage>"u"?null:sessionStorage}catch{return null}}function bT(){var t;return((t=MS())==null?void 0:t.getItem(AS))==="1"}function vT(){var t;try{(t=MS())==null||t.setItem(AS,"1")}catch{}}const ST={user_agent:"",language:"",screen_width:0,screen_height:0,device_pixel_ratio:0,timezone_offset_minutes:0,is_mobile:!1,studio_version:"dev"};let Ls=null;function wT(){if(Ls)return Ls;if(typeof navigator>"u"||typeof window>"u")return Ls=ST,Ls;const t=navigator.userAgent,e=window.screen;return Ls={user_agent:t,language:navigator.language,screen_width:e.width,screen_height:e.height,device_pixel_ratio:window.devicePixelRatio,timezone_offset_minutes:new Date().getTimezoneOffset(),is_mobile:/Android|iPhone|iPad/i.test(t),studio_version:"0.6.79"},Ls}const CS="phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx",kT="https://us.i.posthog.com",AT=1e3;let xf=[],up=null,x1=null;function MT(){return typeof navigator<"u"&&navigator.doNotTrack==="1"}function CT(){return CS.startsWith("phc_")}function ET(){try{return!1}catch{return!1}}function TT(){try{return!1}catch{return!1}}function $T(){return x1!==null||(x1=CT()&&!ET()&&!TT()&&!OT()&&!MT()),x1}function b8(t,e={}){if(!$T())return;const n=wT();xf.push({event:t,properties:{...e,...n},timestamp:new Date().toISOString()}),up===null&&(up=setTimeout(()=>{up=null,V2()},AT)),PT()}function V2(){if(xf.length===0)return;const t=gT(),e=xf.map(n=>({event:n.event,properties:{...n.properties,$ip:null},distinct_id:t,timestamp:n.timestamp}));xf=[],jT(`${kT}/batch/`,JSON.stringify({api_key:CS,batch:e}))}function jT(t,e){try{fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:!0}).catch(()=>{});return}catch{}try{navigator.sendBeacon(t,new Blob([e],{type:"application/json"}))}catch{}}function PT(){xT()||(yT(),console.info("%c[HyperFrames]%c Anonymous studio usage analytics enabled. Disable: localStorage.setItem('hyperframes-studio:telemetryDisabled','1') (then reload).","color:#7c3aed;font-weight:bold","color:inherit"))}typeof window<"u"&&(window.addEventListener("pagehide",()=>V2(),{capture:!0}),window.addEventListener("visibilitychange",()=>{typeof document<"u"&&document.visibilityState==="hidden"&&V2()}));function QT(t){b8("studio_session_start",{has_project:t.has_project})}function ZT(t){b8("studio_render_start",{fps:t.fps,quality:t.quality,format:t.format,resolution:t.resolution,composition:t.composition})}function NT(){var t,e;try{const n=navigator,i=[`ua=${((t=n.userAgentData)==null?void 0:t.platform)??navigator.platform??"unknown"}`,`screen=${screen.width}x${screen.height}@${devicePixelRatio}x`,`lang=${navigator.language}`];return n.deviceMemory&&i.push(`mem=${n.deviceMemory}GB`),(e=n.connection)!=null&&e.effectiveType&&i.push(`net=${n.connection.effectiveType}`),navigator.hardwareConcurrency&&i.push(`cpu=${navigator.hardwareConcurrency}cores`),i.join(" ")}catch{return""}}function RT(t){b8("survey sent",{$survey_id:"studio_experience",$survey_response:t.rating,...t.comment?{$survey_response_2:t.comment}:{},doctor_summary:NT(),source:"studio"})}function VT(t){const[e,n]=d.useState([]),r=d.useRef(null),i=d.useRef(null),l=d.useCallback(async()=>{if(t)try{const h=await fetch(`/api/projects/${t}/renders`);if(!h.ok)return;const g=await h.json();Array.isArray(g.renders)&&n(O=>{const x=new Set(O.map(v=>v.id)),y=g.renders.filter(v=>!x.has(v.id)).map(v=>({id:v.id,status:v.status==="failed"?"failed":"complete",progress:100,filename:v.filename,createdAt:v.createdAt,durationMs:v.durationMs}));return[...O,...y]})}catch{}},[t]);d.useEffect(()=>{l()},[l]);const s=d.useCallback(async(h={})=>{if(!t)return;const g=h.fps??30,O=h.quality??"standard",x=h.format??"mp4",y=h.resolution,v=h.composition;ZT({fps:g,quality:O,format:x,resolution:y,composition:v});const w=Date.now(),A={fps:g,quality:O,format:x};y&&y!=="auto"&&(A.resolution=y),v&&(A.composition=v);let k;try{k=await fetch(`/api/projects/${t}/render`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)})}catch{const E={id:crypto.randomUUID(),status:"failed",progress:0,error:"Could not reach render server. Use `hyperframes render` from the CLI instead.",filename:"Export failed",createdAt:w};n(N=>[...N,E]);return}if(!k.ok){const E={id:crypto.randomUUID(),status:"failed",progress:0,error:`Server error (${k.status}). Check the terminal for details.`,filename:"Export failed",createdAt:w};n(N=>[...N,E]);return}const{jobId:C}=await k.json(),$={mp4:".mp4",webm:".webm",mov:".mov"}[x]??".mp4",M={id:C,status:"rendering",progress:0,filename:`${C}${$}`,createdAt:w};n(E=>[...E,M]),i.current=C;const j=new EventSource(`/api/render/${C}/progress`);return r.current=j,j.addEventListener("progress",E=>{try{const N=JSON.parse(E.data);n(R=>R.map(L=>L.id===C?{...L,progress:N.progress??L.progress,stage:N.stage??N.message??L.stage,status:N.status==="complete"?"complete":N.status==="failed"?"failed":L.status,durationMs:N.status==="complete"?Date.now()-w:void 0,error:N.error??L.error}:L)),(N.status==="complete"||N.status==="failed")&&(j.close(),i.current=null)}catch{}}),j.onerror=()=>{j.close(),n(E=>E.map(N=>N.id===C&&N.status==="rendering"?{...N,status:"failed",error:"Connection lost. Is the render server running?"}:N)),i.current=null},C},[t]),c=d.useCallback(async h=>{try{await fetch(`/api/render/${h}`,{method:"DELETE"})}catch{}n(g=>g.filter(O=>O.id!==h))},[]),u=d.useCallback(()=>{n(h=>h.filter(g=>g.status==="rendering"))},[]);return d.useEffect(()=>()=>{var h;(h=r.current)==null||h.close(),r.current=null},[t]),{jobs:e,startRender:s,deleteRender:c,clearCompleted:u,isRendering:e.some(h=>h.status==="rendering")}}const _T="modulepreload",LT=function(t){return"/"+t},V5={},ES=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(h){return Promise.all(h.map(g=>Promise.resolve(g).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=s(n.map(h=>{if(h=LT(h),h in V5)return;V5[h]=!0;const g=h.endsWith(".css"),O=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${O}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":_T,g||(x.as="script"),x.crossOrigin="",x.href=h,u&&x.setAttribute("nonce",u),document.head.appendChild(x),g)return new Promise((y,v)=>{x.addEventListener("load",y),x.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return i.then(s=>{for(const c of s||[])c.status==="rejected"&&l(c.reason);return e().catch(l)})};function DT(t){if(typeof t!="object"||t===null)return!0;const e=t;return e.isLoaded===!0||typeof e.totalFrames=="number"&&e.totalFrames>0}function Xt(t){d.useEffect(t,[])}const TS={primary:["bg-white text-neutral-950 font-medium","shadow-btn-primary","hover:bg-neutral-200","active:scale-[0.97]"].join(" "),secondary:["bg-transparent text-neutral-300 font-medium","border border-border","hover:bg-surface-hover hover:text-white hover:border-border-strong","active:scale-[0.98]"].join(" "),danger:["bg-accent-red text-white font-medium","hover:bg-red-600","active:scale-[0.97]"].join(" "),ghost:["bg-transparent text-neutral-400","hover:bg-surface-hover hover:text-white","active:scale-[0.98]"].join(" ")},HT={sm:"h-7 px-2.5 text-xs gap-1.5 rounded-button",md:"h-8 px-3 text-sm gap-1.5 rounded-button",lg:"h-9 px-4 text-base gap-2 rounded-button"},XT=d.forwardRef(({variant:t="secondary",size:e="md",loading:n,icon:r,children:i,className:l="",disabled:s,...c},u)=>m.jsxs("button",{ref:u,disabled:s||n,className:["inline-flex items-center justify-center","transition-all duration-press ease-standard","disabled:opacity-40 disabled:pointer-events-none","select-none cursor-pointer",TS[t],HT[e],l].join(" "),...c,children:[n?m.jsxs("svg",{className:"animate-spin h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",children:[m.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),m.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):r?m.jsx("span",{className:"flex-shrink-0",children:r}):null,i&&m.jsx("span",{children:i})]}));XT.displayName="Button";const zT={sm:"min-w-7 min-h-7 rounded-button",md:"min-w-8 min-h-8 rounded-button",lg:"min-w-9 min-h-9 rounded-button"},FT=d.forwardRef(({icon:t,size:e="md",variant:n="ghost",className:r="",...i},l)=>m.jsx("button",{ref:l,className:["inline-flex items-center justify-center","transition-all duration-press ease-standard","disabled:opacity-40 disabled:pointer-events-none","select-none cursor-pointer",TS[n],zT[e],r].join(" "),...i,children:t}));FT.displayName="IconButton";function _5({title:t,detail:e,mono:n,size:r=64,progress:i}){const l=typeof i=="number"&&Number.isFinite(i)?Math.min(1,Math.max(0,i)):void 0,s=Math.round(r*1.16);return m.jsxs("div",{className:"hf-loader",draggable:!1,children:[m.jsx("div",{className:"hf-loader-mark-frame",style:{width:s,height:s},draggable:!1,children:m.jsxs("svg",{className:"hf-loader-mark",width:r,height:r,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[m.jsx("g",{className:"hf-loader-mark__mark",transform:"translate(50 50)",children:m.jsx("g",{className:"hf-loader-mark__core",transform:"scale(1)",opacity:".92",children:m.jsxs("g",{transform:"translate(-50 -50)",children:[m.jsx("path",{d:"M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z",fill:"url(#hf-loader-grad-left)"}),m.jsx("path",{d:"M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z",fill:"url(#hf-loader-grad-right)"})]})})}),m.jsxs("defs",{children:[m.jsxs("linearGradient",{id:"hf-loader-grad-left",x1:"48.5676",y1:"25",x2:"44.7804",y2:"71.9384",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#06E3FA"}),m.jsx("stop",{offset:"1",stopColor:"#4FDB5E"})]}),m.jsxs("linearGradient",{id:"hf-loader-grad-right",x1:"54.8282",y1:"73.8392",x2:"72.0989",y2:"32.8932",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#06E3FA"}),m.jsx("stop",{offset:"1",stopColor:"#4FDB5E"})]})]})]})}),m.jsx("div",{className:"hf-loader-title",children:t}),e&&m.jsx("div",{className:"hf-loader-detail",children:e}),l!==void 0&&m.jsx("div",{className:"hf-loader-progress","aria-hidden":"true",children:m.jsx("div",{className:"hf-loader-progress__fill",style:{transform:`scaleX(${l})`}})}),n&&m.jsx("div",{className:"hf-loader-mono",children:n})]})}var v8=wS();function Yt({label:t,children:e,delay:n=400,side:r="top"}){const[i,l]=d.useState(!1),[s,c]=d.useState({x:0,y:0}),u=d.useRef(null),h=d.useRef(null),g=d.useCallback(()=>{u.current=setTimeout(()=>{const x=h.current;if(!x)return;const v=(x.firstElementChild??x).getBoundingClientRect();v.width===0&&v.height===0||(c({x:v.left+v.width/2,y:r==="top"?v.top-6:v.bottom+6}),l(!0))},n)},[n,r]),O=d.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null),l(!1)},[]);return m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:h,onPointerEnter:g,onPointerLeave:O,className:"contents",children:e}),i&&v8.createPortal(m.jsx("div",{className:"fixed z-[200] pointer-events-none",style:{left:s.x,top:s.y,transform:r==="top"?"translate(-50%, -100%)":"translate(-50%, 0)"},children:m.jsx("div",{className:"px-2 py-1 rounded-md bg-neutral-800 border border-neutral-700/50 text-[10px] font-medium text-neutral-200 whitespace-nowrap shadow-lg",children:t})}),document.body)]})}const BT=3,YT=3;function L5(t){return typeof t=="object"&&t!==null}function IT(t){if(!(t instanceof CustomEvent))return null;const e=t.detail;if(!L5(e))return null;const n=e.state;return L5(n)?n.loading===!0&&n.ready!==!0:null}const qT=400;function GT(t){const e=t.shadowRoot;if(!e)return;const n=e.querySelector(".hfp-container"),r=e.querySelector(".hfp-iframe");n==null||n.style.setProperty("pointer-events","auto"),r==null||r.style.setProperty("pointer-events","auto")}function UT(t){const e=t.tagName.toLowerCase();return e==="video"||e==="audio"}function D5(t,e){try{const n=t.contentWindow,r=t.contentDocument;if(!n||!r)return e;for(const l of r.querySelectorAll("video, audio"))if(UT(l)&&!l.error&&l.networkState!==YT&&l.readyState<BT)return!0;const i=n.__hfLottie;if(i!=null&&i.length){for(const l of i)if(!DT(l))return!0}return!1}catch{return e}}const _2=d.forwardRef(({projectId:t,directUrl:e,onLoad:n,onCompositionLoadingChange:r,portrait:i,style:l,suppressLoadingOverlay:s},c)=>{const u=d.useRef(null),h=d.useRef(0),g=d.useRef(null),O=d.useRef(null),[x,y]=d.useState(!1),[v,w]=d.useState(!1),[A,k]=d.useState(!1),[C,T]=d.useState(!1),[$,M]=d.useState(!0),[j,E]=d.useState(!0);d.useEffect(()=>{if(!$){E(!0);return}const L=setTimeout(()=>E(!1),qT);return()=>clearTimeout(L)},[$]),Xt(()=>{const L=u.current;if(!L)return;let V=!1,z;return ES(()=>import("./hyperframes-player-WXAuftNy.js"),[]).then(()=>{if(V)return;const q=document.createElement("hyperframes-player"),U=e||`/api/projects/${t}/preview`;if(q.setAttribute("shader-capture-scale","1"),q.setAttribute("shader-loading","player"),q.setAttribute("src",U),q.setAttribute("width",String(i?1080:1920)),q.setAttribute("height",String(i?1920:1080)),q.style.width="100%",q.style.height="100%",q.style.display="block",q.style.background="transparent",L.appendChild(q),q.shadowRoot){const P=document.createElement("style");P.textContent=".hfp-container{overflow:visible}.hfp-iframe{box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 4px 32px rgba(0,0,0,.7)}",q.shadowRoot.appendChild(P)}GT(q);const K=q.iframeElement;typeof c=="function"?c(K):c&&(c.current=K);const D=P=>P.stopImmediatePropagation();q.addEventListener("click",D,{capture:!0});const G=P=>{const Z=IT(P);Z!==null&&T(Z)};q.addEventListener("shadertransitionstate",G);const H=()=>{M(!1)},F=()=>{M(!1)};q.addEventListener("ready",H),q.addEventListener("error",F);const I=()=>{if(h.current++,T(!1),M(!0),h.current>1){L.classList.remove("preview-revealing"),L.offsetWidth,L.classList.add("preview-revealing");const X=()=>L.classList.remove("preview-revealing");L.addEventListener("animationend",X,{once:!0})}n(),g.current&&clearInterval(g.current);let Z=h.current>1?!1:D5(K,!1);if(Z){y(!0);let X=0;g.current=setInterval(()=>{X+=1,Z=D5(K,Z),(!Z||X>100)&&(g.current&&clearInterval(g.current),g.current=null,y(!1),Z&&console.debug("[Player] Asset-loading overlay timed out after 10s; hiding anyway. Check network or asset integrity."))},100)}else y(!1)};K.addEventListener("load",I),z=()=>{if(K.removeEventListener("load",I),q.removeEventListener("click",D,{capture:!0}),q.removeEventListener("shadertransitionstate",G),q.removeEventListener("ready",H),q.removeEventListener("error",F),g.current&&clearInterval(g.current),g.current=null,L.removeChild(q),typeof c!="function"){if(c){const P=c;P.current===K&&(P.current=null)}}}}),()=>{V=!0,z==null||z()}}),d.useEffect(()=>{if(O.current&&(clearTimeout(O.current),O.current=null),x){w(!0),k(!1);return}return k(!0),O.current=setTimeout(()=>{w(!1),k(!1),O.current=null},240),()=>{O.current&&(clearTimeout(O.current),O.current=null)}},[x]);const N=!s&&!j&&$,R=v&&!C&&!N;return d.useEffect(()=>{r==null||r(N||R)},[r,N,R]),m.jsxs("div",{className:"relative w-full h-full max-w-full max-h-full overflow-hidden flex items-center justify-center",style:l,children:[m.jsx("div",{ref:u,className:"w-full h-full"}),N&&m.jsx("div",{className:"absolute inset-0 bg-black flex items-center justify-center z-30 select-none","data-hyperframes-ignore":"","data-testid":"composition-loading-overlay",draggable:!1,onDragStart:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),onPointerDown:L=>L.preventDefault(),children:m.jsx(_5,{title:"Loading composition",detail:"Preparing the Studio preview.",size:56})}),R&&m.jsx("div",{className:"absolute inset-0 bg-black flex items-center justify-center z-20 select-none","data-hyperframes-ignore":"",draggable:!1,style:{opacity:A?0:1,pointerEvents:A?"none":"auto",transition:"opacity 240ms ease-out"},onDragStart:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),onPointerDown:L=>L.preventDefault(),children:m.jsx(_5,{title:"Preparing preview assets",detail:"Waiting for media and motion assets before playback starts.",size:56})})]})});_2.displayName="Player";const Zu=30;function yn(t){if(!Number.isFinite(t)||t<0)return"0:00";const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}function L2(t,e=Zu){return!Number.isFinite(t)||t<=0||!Number.isFinite(e)||e<=0?0:Math.round(t*e)}function $S(t,e=Zu){return!Number.isFinite(t)||t<=0||!Number.isFinite(e)||e<=0?0:t/e}function D2(t,e,n=Zu){const r=L2(t,n),i=Math.max(0,r+e);return $S(i,n)}function jS(t,e,n=Zu){const r=L2(t,n),i=L2(e,n);return`${r}f / ${i}f`}function PS(t){return Number.isFinite(t)&&t>0}function H5(t,e){const n=Math.max(0,Number.isFinite(e)?e:0),r=Math.max(0,Number.isFinite(t)?t:0);return n>0?Math.min(r,n):r}function fp(t){if(!t)return 0;try{const e=Number(t.getDuration());return PS(e)?e:0}catch{return 0}}function WT(t){return{now:()=>t.performance.now(),requestAnimationFrame:e=>t.requestAnimationFrame(e),cancelAnimationFrame:e=>t.cancelAnimationFrame(e)}}function KT(t,e,n,r=()=>1){var y;const i=Math.max(0,Number.isFinite(e)?e:0);let l=H5(Number(((y=t.getTime)==null?void 0:y.call(t))??0),i),s=!1,c=0,u=l,h=n.now();const g=v=>{var w;if(l=H5(v,i),typeof t.renderSeek=="function"){t.renderSeek(l);return}(w=t.seek)==null||w.call(t,l)},O=()=>{c&&(n.cancelAnimationFrame(c),c=0)},x=v=>{if(!s)return;const w=Math.max(.1,Number(r())||1),A=(v-h)/1e3*w;if(g(u+A),l>=i){s=!1,c=0;return}c=n.requestAnimationFrame(x)};return{play:()=>{s||i<=0||(l>=i&&g(0),s=!0,u=l,h=n.now(),O(),c=n.requestAnimationFrame(x))},pause:()=>{s=!1,O()},seek:(v,w)=>{if(g(v),w!=null&&w.keepPlaying){s&&(u=l,h=n.now());return}s=!1,O()},getTime:()=>l,getDuration:()=>i,isPlaying:()=>s}}function X5(t){return{play:()=>t.play(),pause:()=>t.pause(),seek:(e,n)=>{const r=!(n!=null&&n.keepPlaying);r&&t.pause(),t.seek(e),r&&t.pause()},getTime:()=>t.time(),getDuration:()=>t.duration(),isPlaying:()=>t.isActive()}}function z5(t){if(!t)return 0;const e=Number.parseFloat(t.getAttribute("data-duration")??"")||Number.parseFloat(t.getAttribute("data-hf-authored-duration")??"");return PS(e)?e:0}function JT(t){if(!t)return 0;const e=z5(t.querySelector("[data-composition-id]"));if(e>0)return e;let n=0;for(const r of Array.from(t.querySelectorAll("[data-start]"))){const i=Number.parseFloat(r.getAttribute("data-start")??""),l=z5(r);!Number.isFinite(i)||i<0||l<=0||(n=Math.max(n,i+l))}return n}function H2(t){var n;const e=((n=t.ownerDocument.defaultView)==null?void 0:n.HTMLElement)??globalThis.HTMLElement;return typeof e<"u"&&t instanceof e}function QS(t){const e=t.ownerDocument.defaultView??window,n=e.HTMLMediaElement??globalThis.HTMLMediaElement,r=e.HTMLImageElement??globalThis.HTMLImageElement;if(t instanceof n||t instanceof r)return t;const i=t.querySelector("video, audio, img");return i instanceof n||i instanceof r?i:null}function ZS(t,e){const n=e.getAttribute("data-playback-start")?"playback-start":e.getAttribute("data-media-start")?"media-start":void 0,r=e.getAttribute("data-playback-start")??e.getAttribute("data-media-start");if(r!=null){const O=parseFloat(r);Number.isFinite(O)&&(t.playbackStart=O)}n&&(t.playbackStartAttr=n);const i=QS(e);if(!i)return;t.tag=i.tagName.toLowerCase();const l=i.getAttribute("src");l&&(t.src=l);const c=(i.ownerDocument.defaultView??window).HTMLMediaElement??globalThis.HTMLMediaElement;if(typeof c>"u"||!(i instanceof c))return;const u=e.getAttribute("data-source-duration")??i.getAttribute("data-source-duration"),h=u?parseFloat(u):i.duration;Number.isFinite(h)&&h>0&&(t.sourceDuration=h);const g=i.defaultPlaybackRate;Number.isFinite(g)&&g>0&&(t.playbackRate=g)}function Nu(t){var i,l,s;const e=(i=t.label)==null?void 0:i.trim();if(e)return e;const n=(l=t.id)==null?void 0:l.trim();if(n)return n;const r=(s=t.tag)==null?void 0:s.trim().toLowerCase();return r?`${r} clip`:"Timeline clip"}const e$=new Set(["base","link","meta","noscript","script","style","template"]);function F5(t){return t.trim().replace(/[_-]+/g," ").replace(/\s+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function t$(t){const e=t.getAttribute("data-timeline-label")??t.getAttribute("data-label")??t.getAttribute("aria-label");if(e!=null&&e.trim())return e.trim();if(t.id.trim())return F5(t.id);const n=t.className.split(/\s+/).filter(Boolean),r=n.find(i=>i!=="clip")??n[0];return r?F5(r):Nu({tag:t.tagName})}function Ul(t){if(H2(t)&&t.id)return`#${t.id}`;const e=t.getAttribute("data-composition-id");if(e)return`[data-composition-id="${e}"]`;if(H2(t)){const n=t.className.split(/\s+/).filter(Boolean),r=n.find(i=>i!=="clip")??n[0];if(r)return`.${r}`}}function au(t){var n;const e=(n=t.parentElement)==null?void 0:n.closest("[data-composition-id]");return(e==null?void 0:e.getAttribute("data-composition-file"))??(e==null?void 0:e.getAttribute("data-composition-src"))??void 0}function lu(t,e,n){if(!(!n||n.startsWith("#")||n.startsWith("[data-composition-id=")))try{const i=Array.from(t.querySelectorAll(n)).indexOf(e);return i>=0?i:void 0}catch{return}}function X2(t){const e=t.sourceFile??"index.html";return t.domId?`${e}#${t.domId}`:t.selector?`${e}:${t.selector}:${t.selectorIndex??0}`:`${e}:${t.id}:${t.fallbackIndex}`}function su(t){var r;const e=((r=t.preferredId)==null?void 0:r.trim())||X2({id:t.label,fallbackIndex:t.fallbackIndex,domId:t.domId,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:t.sourceFile}),n=X2({id:e,fallbackIndex:t.fallbackIndex,domId:t.domId,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:t.sourceFile});return{id:e,key:n}}function z2(t){return t.key??t.id}function n$(t){const e=t.querySelector("[data-composition-id]");return Array.from(t.querySelectorAll("[data-start]")).filter(n=>n!==e)}function B5(t,e){return Math.abs(t-e)<.001}function r$(t,e){var s;const n=(s=e.tagName)==null?void 0:s.toLowerCase();if(n&&t.tagName.toLowerCase()!==n)return!1;const r=Number.parseFloat(t.getAttribute("data-start")??"");if(Number.isFinite(r)&&!B5(r,e.start))return!1;const i=Number.parseFloat(t.getAttribute("data-duration")??"");if(Number.isFinite(i)&&!B5(i,e.duration))return!1;const l=Number.parseInt(t.getAttribute("data-track-index")??"",10);return!(Number.isFinite(l)&&l!==e.track)}function i$(t,e){return t.getElementById(e)??t.querySelector(`[data-composition-id="${e}"]`)??t.querySelector(`.${e}`)??null}function a$(t,e,n,r=new Set){const i=e.id?i$(t,e.id):null;if(i&&!r.has(i))return i;const l=n$(t).filter(c=>!r.has(c)),s=l.find(c=>r$(c,e));return s||(l[n]??null)}function l$(t,e){if(!H2(e)||e.parentElement!==t)return!1;const n=e.tagName.toLowerCase();return e$.has(n)||e.hasAttribute("data-start")||e.hasAttribute("data-track-index")?!1:!!Ul(e)}function s$(t,e){t.documentElement&&(t.documentElement.style.overflow="hidden",t.documentElement.style.margin="0"),t.body&&(t.body.style.overflow="hidden",t.body.style.margin="0"),e.scrollTo({top:0,left:0,behavior:"auto"})}function o$(t){const e=/data-composition-id=["']([^"']+)["']/gi,n=new Set,r=Array.from(t.querySelectorAll("style, script"));for(const s of r){const c=s.textContent||"";if(!c)continue;let u;for(;(u=e.exec(c))!==null;){const h=(u[1]||"").trim();h&&n.add(h)}}if(n.size===0)return;const i=new Set,l=Array.from(t.querySelectorAll("[data-composition-id]"));for(const s of l){const c=s.getAttribute("data-composition-id");c&&i.add(c)}for(const s of n){if(s==="root"||i.has(s))continue;const c=t.getElementById(`${s}-layer`)||t.getElementById(`${s}-comp`)||t.getElementById(s);c&&(c.getAttribute("data-composition-id")||c.setAttribute("data-composition-id",s))}}function c$(t){return t instanceof HTMLElement}function NS(t){const e=t.getRootNode();return typeof ShadowRoot<"u"&&e instanceof ShadowRoot&&c$(e.host)?e.host:null}function RS(t,e,n){var r;(r=t.contentWindow)==null||r.postMessage({source:"hf-parent",type:"control",action:e,...n},"*")}function VS(t,e){return t||e>1}function u$(t,e){if(t)try{const n=NS(t);if(n&&typeof n.muted=="boolean"){n.muted=e;return}RS(t,"set-muted",{muted:e})}catch(n){console.warn("[useTimelinePlayer] Failed to set preview media mute state",n)}}function f$(t,e){if(!t)return;const n=Number.isFinite(e)&&e>0?e:1;try{const r=NS(t);if(r&&typeof r.playbackRate=="number"){r.playbackRate=n;return}RS(t,"set-playback-rate",{playbackRate:n})}catch(r){console.warn("[useTimelinePlayer] Failed to set preview playback rate",r)}}function d$(t,e,n,r){const i=new Set(n.map(O=>O.id)),l=t.querySelector("[data-composition-id]"),s=l==null?void 0:l.getAttribute("data-composition-id"),c=t.querySelectorAll("[data-composition-id][data-start]"),u=[];c.forEach(O=>{var L,V,z,q,U,K,D,G,H;const x=O,y=x.getAttribute("data-composition-id");if(!y||y===s||i.has(x.id)||i.has(y))return;const v=x.getAttribute("data-start")??"0";let w=parseFloat(v);if(isNaN(w)){const F=t.getElementById(v)||t.querySelector(`[data-composition-id="${v}"]`);if(F){const I=F.getAttribute("data-start")??"0";let P=parseFloat(I);if(isNaN(P)){const Y=t.getElementById(I)||t.querySelector(`[data-composition-id="${I}"]`),J=parseFloat((Y==null?void 0:Y.getAttribute("data-start"))??"0")||0,ne=Y==null?void 0:Y.getAttribute("data-composition-id"),B=parseFloat((Y==null?void 0:Y.getAttribute("data-duration"))??"")||(ne?((z=(V=(L=e.__timelines)==null?void 0:L[ne])==null?void 0:V.duration)==null?void 0:z.call(V))??0:0);P=J+B}const Z=F.getAttribute("data-composition-id"),X=parseFloat(F.getAttribute("data-duration")??"")||(Z?((K=(U=(q=e.__timelines)==null?void 0:q[Z])==null?void 0:U.duration)==null?void 0:K.call(U))??0:0);w=P+X}else w=0}let A=parseFloat(x.getAttribute("data-duration")??"");if((isNaN(A)||A<=0)&&(A=((H=(G=(D=e.__timelines)==null?void 0:D[y])==null?void 0:G.duration)==null?void 0:H.call(G))??0),!Number.isFinite(A)||A<=0||(Number.isFinite(w)||(w=0),Number.isFinite(r)&&r>0&&(w>=r||(A=Math.min(A,Math.max(0,r-w)),A<=0))))return;const k=x.getAttribute("data-track-index"),C=k!=null?parseInt(k,10):0,T=x.getAttribute("data-composition-src")||x.getAttribute("data-composition-file"),$=Ul(x),M=au(x),j=lu(t,x,$),E=Nu({id:x.id||y||null,label:x.getAttribute("data-timeline-label")??x.getAttribute("data-label"),tag:x.tagName}),N=su({preferredId:x.id||y||null,label:E,fallbackIndex:u.length,domId:x.id||void 0,selector:$,selectorIndex:j,sourceFile:M}),R={id:N.id,label:E,key:N.key,tag:x.tagName.toLowerCase(),start:w,duration:A,track:isNaN(C)?0:C,domId:x.id||void 0,selector:$,selectorIndex:j,sourceFile:M};if(T)R.compositionSrc=T;else{const F=x.querySelector("video[src]");F&&(R.src=F.getAttribute("src")||void 0,R.tag="video")}u.push(R)});let h=!1;const g=n.map(O=>{if(O.compositionSrc)return O;const x=t.getElementById(O.id)??t.querySelector(`[data-composition-id="${O.id}"]`);if(!x)return O;const y=x.getAttribute("data-composition-src")||x.getAttribute("data-composition-file");return y?(h=!0,{...O,compositionSrc:y}):O});return{missing:u,updatedEls:g,patched:h}}const Y5=t=>{let e;const n=new Set,r=(h,g)=>{const O=typeof h=="function"?h(e):h;if(!Object.is(O,e)){const x=e;e=g??(typeof O!="object"||O===null)?O:Object.assign({},e,O),n.forEach(y=>y(e,x))}},i=()=>e,c={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h))},u=e=t(r,i,c);return c},h$=(t=>t?Y5(t):Y5),m$=t=>t;function p$(t,e=m$){const n=O1.useSyncExternalStore(t.subscribe,O1.useCallback(()=>e(t.getState()),[t,e]),O1.useCallback(()=>e(t.getInitialState()),[t,e]));return O1.useDebugValue(n),n}const I5=t=>{const e=h$(t),n=r=>p$(e,r);return Object.assign(n,e),n},_S=(t=>t?I5(t):I5),LS="hf-studio-ui-preferences";function q5(t){return typeof t=="object"&&t!==null}function DS(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function HS(t){if(!t)return{};try{const e=t.getItem(LS);if(!e)return{};const n=JSON.parse(e);if(!q5(n))return{};const r={};if(typeof n.leftCollapsed=="boolean"&&(r.leftCollapsed=n.leftCollapsed),typeof n.timelineVisible=="boolean"&&(r.timelineVisible=n.timelineVisible),typeof n.playbackRate=="number"&&Number.isFinite(n.playbackRate)&&(r.playbackRate=n.playbackRate),typeof n.audioMuted=="boolean"&&(r.audioMuted=n.audioMuted),q5(n.previewZoom)){const{zoomPercent:i,panX:l,panY:s}=n.previewZoom;typeof i=="number"&&Number.isFinite(i)&&typeof l=="number"&&Number.isFinite(l)&&typeof s=="number"&&Number.isFinite(s)&&(r.previewZoom={zoomPercent:i,panX:l,panY:s})}return Array.isArray(n.recentBlocks)&&(r.recentBlocks=n.recentBlocks.filter(i=>typeof i=="string")),typeof n.snapEnabled=="boolean"&&(r.snapEnabled=n.snapEnabled),typeof n.gridVisible=="boolean"&&(r.gridVisible=n.gridVisible),typeof n.gridSpacing=="number"&&Number.isFinite(n.gridSpacing)&&(r.gridSpacing=n.gridSpacing),typeof n.snapToGrid=="boolean"&&(r.snapToGrid=n.snapToGrid),r}catch{return{}}}function ul(t=DS()){return HS(t)}function ho(t,e=DS()){if(e)try{const n={...HS(e),...t};e.setItem(LS,JSON.stringify(n))}catch{}}const dp=new Set,zr={notify:t=>dp.forEach(e=>e(t)),subscribe:t=>(dp.add(t),()=>dp.delete(t))},fe=_S(t=>({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,playbackRate:ul().playbackRate??1,audioMuted:ul().audioMuted??!1,loopEnabled:!1,zoomMode:"fit",manualZoomPercent:100,inPoint:null,outPoint:null,selectedKeyframes:new Set,toggleSelectedKeyframe:e=>t(n=>{const r=new Set(n.selectedKeyframes);return r.has(e)?r.delete(e):r.add(e),{selectedKeyframes:r}}),clearSelectedKeyframes:()=>t({selectedKeyframes:new Set}),keyframeCache:new Map,setKeyframeCache:(e,n)=>t(r=>{const i=new Map(r.keyframeCache);return n?i.set(e,n):i.delete(e),{keyframeCache:i}}),requestedSeekTime:null,requestSeek:e=>t({requestedSeekTime:e}),clearSeekRequest:()=>t({requestedSeekTime:null}),setIsPlaying:e=>t({isPlaying:e}),setPlaybackRate:e=>{ho({playbackRate:e}),t({playbackRate:e})},setAudioMuted:e=>{ho({audioMuted:e}),t({audioMuted:e})},setLoopEnabled:e=>t({loopEnabled:e}),setZoomMode:e=>t({zoomMode:e}),setInPoint:e=>t(n=>{const r=e!==null&&Number.isFinite(e)?e:null;return{inPoint:r,outPoint:r!==null&&n.outPoint!==null&&r>=n.outPoint?null:n.outPoint,loopEnabled:r!==null?!0:n.loopEnabled}}),setOutPoint:e=>t(n=>{const r=e!==null&&Number.isFinite(e)?e:null;return{outPoint:r,inPoint:r!==null&&n.inPoint!==null&&r<=n.inPoint?null:n.inPoint,loopEnabled:r!==null?!0:n.loopEnabled}}),setManualZoomPercent:e=>t({manualZoomPercent:Math.max(10,Math.min(2e3,Math.round(e)))}),setCurrentTime:e=>t({currentTime:Number.isFinite(e)?e:0}),setDuration:e=>t({duration:Number.isFinite(e)?e:0}),setTimelineReady:e=>t({timelineReady:e}),setElements:e=>t({elements:e}),setSelectedElementId:e=>t({selectedElementId:e}),updateElement:(e,n)=>t(r=>({elements:r.elements.map(i=>(i.key??i.id)===e?{...i,...n}:i)})),reset:()=>t({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,inPoint:null,outPoint:null,selectedKeyframes:new Set,keyframeCache:new Map})})),XS="phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx",zS="https://us.i.posthog.com",g$=3e4,O$=5e3;let ql=[],qc=null,Ds=null;function FS(){if(Ds)return Ds;try{const t=localStorage.getItem("hf-studio-anon-id");if(t)return Ds=t,t}catch{}Ds=crypto.randomUUID();try{localStorage.setItem("hf-studio-anon-id",Ds)}catch{}return Ds}function x$(){try{return localStorage.getItem("hf-studio-telemetry-opt-out")!=="1"}catch{return!0}}function y$(){var t,e;return{studio_version:"0.6.79",screen_width:(t=window.screen)==null?void 0:t.width,screen_height:(e=window.screen)==null?void 0:e.height,viewport_width:window.innerWidth,viewport_height:window.innerHeight,user_agent:navigator.userAgent,url_hash:location.hash.replace(/#project\//,"")}}function _t(t,e={}){x$()&&(ql.push({event:`studio:${t}`,properties:{...y$(),...e},timestamp:new Date().toISOString()}),qc||(qc=setInterval(b$,g$)))}async function b$(){if(ql.length===0)return;const t=ql.map(r=>({event:r.event,properties:{...r.properties,$ip:null},distinct_id:FS(),timestamp:r.timestamp}));ql=[];const e=new AbortController,n=setTimeout(()=>e.abort(),O$);try{await fetch(`${zS}/batch/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:XS,batch:t}),signal:e.signal})}catch{}finally{clearTimeout(n)}}typeof window<"u"&&window.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){if(qc&&(clearInterval(qc),qc=null),ql.length===0)return;const t=ql.map(n=>({event:n.event,properties:{...n.properties,$ip:null},distinct_id:FS(),timestamp:n.timestamp}));ql=[];const e=JSON.stringify({api_key:XS,batch:t});try{navigator.sendBeacon(`${zS}/batch/`,e)}catch{}}});const v$=[{title:"Playback",hints:[{key:"Space",label:"Play / Pause"},{key:"J",label:"Play backward"},{key:"K",label:"Stop"},{key:"L",label:"Play forward"},{key:"M",label:"Toggle mute"},{key:"⇧L",label:"Toggle loop"},{key:"←/→",label:"Step 1 frame"},{key:"⇧←/⇧→",label:"Step 10 frames"},{key:"F",label:"Toggle fullscreen"}]},{title:"Work area",hints:[{key:"I",label:"Set in-point"},{key:"⇧I",label:"Clear in-point"},{key:"O",label:"Set out-point"},{key:"⇧O",label:"Clear out-point"},{key:"A",label:"Jump to in-point"},{key:"E",label:"Jump to out-point"}]}],S$=d.memo(function({disabled:e,duration:n,inPoint:r,outPoint:i,setInPoint:l,setOutPoint:s,onSeek:c}){const[u,h]=d.useState(!1),[g,O]=d.useState(""),x=d.useRef(null);d.useEffect(()=>{if(!u)return;const A=k=>{x.current&&!x.current.contains(k.target)&&h(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[u]);const y=d.useCallback(()=>{if(e)return;const A=Number.parseInt(g,10);!Number.isFinite(A)||n<=0||c(Math.min(n,$S(Math.max(0,A))))},[e,n,g,c]),v=d.useCallback(A=>{A.preventDefault(),y()},[y]),w=d.useCallback(A=>{A.key==="Enter"&&(A.preventDefault(),y())},[y]);return m.jsxs("div",{ref:x,className:"relative flex-shrink-0",children:[m.jsx(Yt,{label:"Shortcuts and tools",children:m.jsx("button",{type:"button",onClick:()=>h(A=>!A),className:`w-6 h-6 flex items-center justify-center rounded border transition-colors ${u?"border-neutral-600 text-neutral-200 bg-neutral-800":"border-neutral-800 text-neutral-600 hover:text-neutral-300 hover:border-neutral-600"}`,"aria-label":"Shortcuts and tools","aria-expanded":u,children:m.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),m.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M6 12h.01M10 12h.01M14 12h.01M18 12h.01M8 16h8"})]})})}),u&&m.jsxs("div",{className:"absolute bottom-full right-0 mb-2 z-50 rounded-lg shadow-xl min-w-[220px] overflow-y-auto",style:{background:"#161618",border:"1px solid rgba(255,255,255,0.08)",maxHeight:"min(280px, calc(100vh - 80px))"},children:[m.jsxs("div",{className:"px-3 pt-3 pb-2.5",children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:"Jump to frame"}),m.jsxs("form",{onSubmit:v,className:"flex items-center gap-1.5",children:[m.jsx("input",{value:g,onChange:A=>O(A.target.value),disabled:e,inputMode:"numeric",pattern:"[0-9]*","aria-label":"Jump to frame",placeholder:"frame number",className:"h-6 flex-1 rounded border border-neutral-700 bg-neutral-900 px-2 text-[10px] font-mono tabular-nums text-neutral-200 outline-none transition-colors placeholder:text-neutral-600 focus:border-studio-accent/60",onKeyDown:w,onBlur:y}),m.jsx(Yt,{label:"Jump to frame",children:m.jsx("button",{type:"submit",disabled:e,className:"h-6 px-2 rounded border border-neutral-700 text-[10px] text-neutral-300 transition-colors hover:border-neutral-500 hover:bg-neutral-800 disabled:opacity-40",children:"Go"})})]})]}),m.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)"}}),m.jsxs("div",{className:"px-3 pt-2.5 pb-2",children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:"Work area"}),m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[20px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:"I"}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:"In-point"})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:r!==null?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-[10px] text-neutral-300",children:yn(r)}),m.jsx(Yt,{label:"Clear in-point",children:m.jsx("button",{type:"button",onClick:()=>l(null),className:"w-4 h-4 flex items-center justify-center rounded text-neutral-500 hover:text-neutral-200 transition-colors","aria-label":"Clear in-point",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})})]}):m.jsx("span",{className:"text-[10px] text-neutral-600",children:"—"})})]}),m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[20px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:"O"}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:"Out-point"})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:i!==null?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-[10px] text-neutral-300",children:yn(i)}),m.jsx(Yt,{label:"Clear out-point",children:m.jsx("button",{type:"button",onClick:()=>s(null),className:"w-4 h-4 flex items-center justify-center rounded text-neutral-500 hover:text-neutral-200 transition-colors","aria-label":"Clear out-point",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})})]}):m.jsx("span",{className:"text-[10px] text-neutral-600",children:"—"})})]})]})]}),m.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)"}}),m.jsx("div",{className:"px-3 pt-2.5 pb-3 flex flex-col gap-3",children:v$.map(A=>m.jsxs("div",{children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:A.title}),m.jsx("div",{className:"flex flex-col gap-1",children:A.hints.map(k=>m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[36px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:k.key}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:k.label})]},k.key))})]},A.title))})]})]})}),w$=[.25,.5,1,1.5,2],k$=d.memo(function({playbackRate:e,setPlaybackRate:n,disabled:r}){const[i,l]=d.useState(!1),s=d.useRef(null);return d.useEffect(()=>{if(!i)return;const c=u=>{s.current&&!s.current.contains(u.target)&&l(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[i]),m.jsxs("div",{ref:s,className:"relative flex-shrink-0",children:[m.jsx(Yt,{label:"Playback speed",children:m.jsx("button",{type:"button",onClick:()=>l(c=>!c),disabled:r,className:"w-10 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:e===1?"1x":`${e}x`})}),i&&m.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:w$.map(c=>m.jsxs("button",{onClick:()=>{_t("playback",{action:"speed_change",rate:c}),n(c),l(!1)},className:"block w-full px-3 py-1.5 text-[11px] text-left font-mono tabular-nums transition-colors",style:{color:c===e?"#FAFAFA":"#71717A",background:c===e?"rgba(255,255,255,0.06)":"transparent"},onMouseEnter:u=>{c!==e&&(u.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:u=>{c!==e&&(u.currentTarget.style.background="transparent")},children:[c,"x"]},c))})]})}),A$=8;function G5(t,e,n){if(!Number.isFinite(n)||n<=0)return 0;const r=(t-e)/n,i=Math.max(0,Math.min(1,r)),l=Math.min(.5,A$/n);return i<=l?0:i>=1-l?1:i}function y1(t,e,n){t.current&&(t.current.style.width=`${n}%`),e.current&&(e.current.style.left=`${n}%`)}function M$(t,e,n,r){const i=d.useCallback(s=>{if(n)return;const c=t.seekBarRef.current;if(!c||r<=0)return;const u=c.getBoundingClientRect(),h=G5(s,u.left,u.width);y1(t.progressFillRef,t.progressThumbRef,h*100),e(h*r)},[n,r,e,t]),l=d.useCallback(s=>{if(s.button!==0)return;s.preventDefault(),s.currentTarget.focus(),t.isDraggingRef.current=!0;const c=s.currentTarget,u=s.pointerId;try{c.setPointerCapture(u)}catch{}i(s.clientX);let h=0,g=s.clientX;const O=w=>{if(w.pointerId!==u||!t.isDraggingRef.current)return;g=w.clientX;const A=t.seekBarRef.current,k=t.durationRef.current;if(A&&k>0){const C=A.getBoundingClientRect(),T=G5(w.clientX,C.left,C.width)*100;y1(t.progressFillRef,t.progressThumbRef,T)}h||(h=requestAnimationFrame(()=>{h=0,t.isDraggingRef.current&&i(g)}))},x=()=>{t.isDraggingRef.current=!1,h&&(cancelAnimationFrame(h),h=0),i(g);try{c.releasePointerCapture(u)}catch{}c.removeEventListener("pointermove",O),c.removeEventListener("pointerup",y),c.removeEventListener("pointercancel",y),window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),document.removeEventListener("visibilitychange",v),window.removeEventListener("blur",x),c.blur()},y=w=>{w.pointerId===u&&x()},v=()=>{document.visibilityState==="hidden"&&x()};c.addEventListener("pointermove",O),c.addEventListener("pointerup",y),c.addEventListener("pointercancel",y),window.addEventListener("pointerup",y),window.addEventListener("pointercancel",y),document.addEventListener("visibilitychange",v),window.addEventListener("blur",x)},[i,t]);return Xt(()=>{const s=h=>{t.currentTimeRef.current=h;const g=t.durationRef.current,O=g>0?Math.min(100,h/g*100):0;y1(t.progressFillRef,t.progressThumbRef,O),t.timeDisplayRef.current&&(t.timeDisplayRef.current.textContent=t.timeDisplayModeRef.current==="frame"?jS(h,g):yn(h)),t.sliderRef.current&&t.sliderRef.current.setAttribute("aria-valuenow",String(Math.round(h)))},c=zr.subscribe(s);s(fe.getState().currentTime);const u=setInterval(()=>{const h=fe.getState().currentTime,g=fe.getState().duration;g>0&&h>0&&y1(t.progressFillRef,t.progressThumbRef,Math.min(100,h/g*100))},500);return()=>{c(),clearInterval(u)}}),{handlePointerDown:l}}function C$(){return m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:m.jsx("polygon",{points:"6,3 20,12 6,21"})})}function E$(){return m.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:[m.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),m.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})}const T$=d.memo(function({audioMuted:e,audioAutoMuted:n,effectiveAudioMuted:r,controlsDisabled:i,setAudioMuted:l}){const s=n?"Audio muted above 1x speed":e?"Unmute audio":"Mute audio";return m.jsx(Yt,{label:s,children:m.jsx("button",{type:"button",onClick:()=>{n||(_t("playback",{action:"mute_toggle",muted:!e}),l(!e))},disabled:i||n,"aria-label":s,"aria-pressed":r,className:`h-7 w-7 flex-shrink-0 flex items-center justify-center rounded-md border transition-colors disabled:pointer-events-none ${r?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"} ${n?"opacity-70":""}`,children:m.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M11 5 6 9H3v6h3l5 4V5Z"}),r?m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"m19 9-6 6"}),m.jsx("path",{d:"m13 9 6 6"})]}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M15.5 8.5a5 5 0 0 1 0 7"}),m.jsx("path",{d:"M18.5 5.5a9 9 0 0 1 0 13"})]})]})})})}),$$=d.memo(function({loopEnabled:e,disabled:n,setLoopEnabled:r}){return m.jsx(Yt,{label:"Loop playback",children:m.jsx("button",{type:"button",onClick:()=>{_t("playback",{action:"loop_toggle",enabled:!e}),r(!e)},disabled:n,className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${e?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"}`,"aria-label":e?"Disable loop playback":"Enable loop playback","aria-pressed":e,children:m.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M17 2l4 4-4 4"}),m.jsx("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),m.jsx("path",{d:"M7 22l-4-4 4-4"}),m.jsx("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"})]})})})}),j$=d.memo(function({isFullscreen:e,onToggleFullscreen:n}){return m.jsx(Yt,{label:e?"Exit fullscreen (F)":"Enter fullscreen (F)",children:m.jsx("button",{type:"button",onClick:()=>{_t("playback",{action:"fullscreen_toggle",active:!e}),n()},className:`h-7 w-7 flex-shrink-0 flex items-center justify-center rounded-md border transition-colors ${e?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"}`,"aria-label":e?"Exit fullscreen":"Enter fullscreen",children:m.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e?m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})})})})});function U5({position:t,duration:e}){return e<=0?null:m.jsx("div",{className:"absolute z-[3] pointer-events-none",style:{left:`${Math.min(100,t/e*100)}%`,top:"50%",transform:"translate(-50%, -50%)",width:"2px",height:"10px",background:"#3CE6AC",borderRadius:"1px"}})}function P$({inPoint:t,outPoint:e,duration:n}){return t===null&&e===null||n<=0?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${t!==null?Math.min(100,t/n*100):0}%`,right:`${e!==null?100-Math.min(100,e/n*100):0}%`,background:"rgba(60,230,172,0.15)"}}),t!==null&&m.jsx(U5,{position:t,duration:n}),e!==null&&m.jsx(U5,{position:e,duration:n})]})}const Q$=d.memo(function({disabled:e,duration:n,inPoint:r,outPoint:i,progressFillRef:l,progressThumbRef:s,seekBarRef:c,sliderRef:u,onPointerDown:h,onKeyDown:g}){return m.jsx("div",{ref:O=>{c.current=O,u.current=O},role:"slider",tabIndex:e?-1:0,"aria-label":"Seek","aria-disabled":e||void 0,"aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":0,className:`min-w-[96px] flex-1 h-6 flex items-center group outline-none focus-visible:ring-1 focus-visible:ring-white/30 focus-visible:rounded ${e?"cursor-not-allowed opacity-50":"cursor-pointer"}`,style:{touchAction:"none"},onPointerDown:h,onKeyDown:g,children:m.jsxs("div",{className:"w-full rounded-full relative",style:{background:"rgba(255,255,255,0.15)",height:"3px"},children:[m.jsx(P$,{inPoint:r,outPoint:i,duration:n}),m.jsx("div",{ref:l,className:"absolute top-0 bottom-0 left-0 z-[1] rounded-full",style:{background:"linear-gradient(90deg, var(--hf-accent, #3CE6AC), #2BBFA0)"}}),m.jsx("div",{ref:s,className:"absolute top-1/2 z-[4] 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)"}})]})})}),Z$=d.memo(function({onTogglePlay:e,onSeek:n,disabled:r=!1,isFullscreen:i=!1,onToggleFullscreen:l}){const s=fe(F=>F.isPlaying),c=fe(F=>F.duration),u=fe(F=>F.timelineReady),h=fe(F=>F.playbackRate),g=fe(F=>F.audioMuted),O=fe(F=>F.loopEnabled),x=fe.getState().setPlaybackRate,y=fe.getState().setAudioMuted,v=fe.getState().setLoopEnabled,w=fe(F=>F.inPoint),A=fe(F=>F.outPoint),k=fe.getState().setInPoint,C=fe.getState().setOutPoint,[T,$]=d.useState("time"),M=d.useRef(null),j=d.useRef(null),E=d.useRef(null),N=d.useRef(null),R=d.useRef(null),L=d.useRef(!1),V=d.useRef(0),z=d.useRef(T);z.current=T;const q=d.useRef(c);q.current=c;const U=r||!u,K=h>1,D=VS(g,h);d.useEffect(()=>{if(!E.current)return;const F=V.current;E.current.textContent=T==="frame"?jS(F,c):yn(F)},[c,T]);const{handlePointerDown:G}=M$({seekBarRef:N,progressFillRef:M,progressThumbRef:j,sliderRef:R,timeDisplayRef:E,isDraggingRef:L,durationRef:q,currentTimeRef:V,timeDisplayModeRef:z},n,r,c),H=d.useCallback(F=>{if(r||!u||c<=0)return;const I=F.shiftKey?10:1;F.key==="ArrowLeft"?(F.preventDefault(),n(D2(V.current,-I))):F.key==="ArrowRight"&&(F.preventDefault(),n(Math.min(c,D2(V.current,I))))},[r,u,c,n]);return m.jsxs("div",{className:"px-4 py-2 flex flex-wrap items-center gap-x-2 gap-y-1","aria-disabled":r||void 0,style:{borderTop:"1px solid rgba(255,255,255,0.04)",paddingBottom:"calc(0.5rem + env(safe-area-inset-bottom))"},children:[m.jsx(Yt,{label:s?"Pause":"Play",children:m.jsx("button",{type:"button","aria-label":s?"Pause":"Play",onClick:()=>{_t("playback",{action:s?"pause":"play"}),e()},disabled:U,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:s?m.jsx(E$,{}):m.jsx(C$,{})})}),m.jsx(Yt,{label:T==="time"?"Switch to frame display":"Switch to time display",children:m.jsxs("button",{type:"button",onClick:()=>$(F=>F==="time"?"frame":"time"),disabled:r,className:"font-mono text-[11px] tabular-nums flex-shrink-0 w-[118px] text-left transition-colors disabled:pointer-events-none hover:opacity-80",style:{color:"#A1A1AA",cursor:"pointer"},children:[m.jsx("span",{ref:E,children:yn(0)}),T==="time"?m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{color:"#3F3F46",margin:"0 2px"},children:"/"}),m.jsx("span",{style:{color:"#52525B"},children:yn(c)})]}):null]})}),m.jsx(Q$,{disabled:r,duration:c,inPoint:w,outPoint:A,progressFillRef:M,progressThumbRef:j,seekBarRef:N,sliderRef:R,onPointerDown:G,onKeyDown:H}),m.jsx(T$,{audioMuted:g,audioAutoMuted:K,effectiveAudioMuted:D,controlsDisabled:U,setAudioMuted:y}),m.jsx(k$,{playbackRate:h,setPlaybackRate:x,disabled:r}),m.jsx($$,{loopEnabled:O,disabled:r,setLoopEnabled:v}),l&&m.jsx(j$,{isFullscreen:i,onToggleFullscreen:l}),m.jsx(S$,{disabled:r,duration:c,inPoint:w,outPoint:A,setInPoint:k,setOutPoint:C,onSeek:n})]})}),W5=100;function qs(t){return Math.round(t*W5)/W5}function ou(t,e,n){return Math.min(Math.max(t,e),n)}const K5=.55,b1=40,J5=12;function ey(t,e,n){const r=(i,l,s)=>{if(s<i+b1){const c=Math.max(0,1-(s-i)/b1);return-Math.round(J5*c)}if(s>l-b1){const c=Math.max(0,1-(l-s)/b1);return Math.round(J5*c)}return 0};return{x:r(t.left,t.right,e),y:r(t.top,t.bottom,n)}}function N$(t,e,n){const r=(t.currentScrollLeft??0)-(t.originScrollLeft??0),i=(t.currentScrollTop??0)-(t.originScrollTop??0),l=(e-t.originClientX+r)/Math.max(t.pixelsPerSecond,1),s=(n-t.originClientY+i)/Math.max(t.trackHeight,1),c=Math.round(s),u=Math.max(0,t.trackOrder.indexOf(t.track)),h=u+c,g=ou(h,0,Math.max(0,t.trackOrder.length-1)),O=Math.min(...t.trackOrder),x=Math.max(...t.trackOrder);let y=t.trackOrder[g]??t.track;const v=u===0,w=u===t.trackOrder.length-1;return v&&h<0&&u+s<=-K5?y=O-1:w&&h>t.trackOrder.length-1&&u+s>=t.trackOrder.length-1+K5&&(y=x+1),{start:ou(qs(t.start+l),0,Math.max(0,t.maxStart)),track:y}}function R$(t,e,n){const r=Math.max(.05,t.minDuration??.1),i=(n-t.originClientX)/Math.max(t.pixelsPerSecond,1);if(e==="end"){const y=ou(qs(t.duration+i),r,Math.max(r,t.maxEnd-t.start));return{start:t.start,duration:y,playbackStart:t.playbackStart}}const l=Math.max(.1,t.playbackRate??1),s=t.playbackStart!=null?t.playbackStart/l:Number.POSITIVE_INFINITY,c=-Math.min(t.start-t.minStart,s),u=t.duration-r,h=ou(i,c,u),g=qs(t.start+h),O=qs(t.duration-h),x=t.playbackStart!=null?qs(Math.max(0,t.playbackStart+h*l)):void 0;return{start:g,duration:O,playbackStart:x}}function V$(t){if(t.compositionSrc||t.playbackStartAttr!=null||t.sourceDuration!=null&&Number.isFinite(t.sourceDuration)&&t.sourceDuration>0)return!0;const e=t.tag.toLowerCase();return["video","audio","img"].includes(e)}function _$(t){return!!(t.domId||t.selector)}function ty(t){if(t.timingSource==="implicit"||t.timelineLocked)return{canMove:!1,canTrimStart:!1,canTrimEnd:!1};const e=_$(t),n=Number.isFinite(t.duration)&&t.duration>0,r=V$(t);return{canMove:e&&(r||n),canTrimEnd:e&&n,canTrimStart:e&&n}}function L$(t){if(t.capabilities.canMove)return null;const e=Math.max(0,t.width),n=ou(t.offsetX,0,e),r=Math.max(0,t.handleWidth);return n<=r&&!t.capabilities.canTrimStart?"resize-start":n>=Math.max(0,e-r)&&!t.capabilities.canTrimEnd?"resize-end":"move"}function D$(t,e){return{start:t.start,end:t.start+t.duration,anchorX:e.anchorX,anchorY:e.anchorY}}function H$({rangeStart:t,rangeEnd:e,elements:n,prompt:r}){const i=Math.min(t,e),l=Math.max(t,e),s=n.map(c=>`- #${c.id} (${c.tag}) — ${yn(c.start)} to ${yn(c.start+c.duration)}, track ${c.track}`).join(`
49
+ `).replace(kE,"")}function Yx(a,o){return o=Bx(o),Bx(a)===o}function Pt(a,o,f,p,b,S){switch(f){case"children":typeof p=="string"?o==="body"||o==="textarea"&&p===""||ss(a,p):(typeof p=="number"||typeof p=="bigint")&&o!=="body"&&ss(a,""+p);break;case"className":pt(a,"class",p);break;case"tabIndex":pt(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":pt(a,f,p);break;case"style":Y6(a,p,S);break;case"data":if(o!=="object"){pt(a,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||f!=="href")){a.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=o0(""+p),a.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(f==="formAction"?(o!=="input"&&Pt(a,o,"name",b.name,b,null),Pt(a,o,"formEncType",b.formEncType,b,null),Pt(a,o,"formMethod",b.formMethod,b,null),Pt(a,o,"formTarget",b.formTarget,b,null)):(Pt(a,o,"encType",b.encType,b,null),Pt(a,o,"method",b.method,b,null),Pt(a,o,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=o0(""+p),a.setAttribute(f,p);break;case"onClick":p!=null&&(a.onclick=Vi);break;case"onScroll":p!=null&&tt("scroll",a);break;case"onScrollEnd":p!=null&&tt("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}f=o0(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""+p):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":p===!0?a.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(f,p):a.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(f):a.setAttribute(f,p);break;case"popover":tt("beforetoggle",a),tt("toggle",a),Ea(a,"popover",p);break;case"xlinkActuate":$t(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":$t(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":$t(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":$t(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":$t(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":$t(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":$t(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":$t(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":$t(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Ea(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=KM.get(f)||f,Ea(a,f,p))}}function Dm(a,o,f,p,b,S){switch(f){case"style":Y6(a,p,S);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"children":typeof p=="string"?ss(a,p):(typeof p=="number"||typeof p=="bigint")&&ss(a,""+p);break;case"onScroll":p!=null&&tt("scroll",a);break;case"onScrollEnd":p!=null&&tt("scrollend",a);break;case"onClick":p!=null&&(a.onclick=Vi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!i0.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(b=f.endsWith("Capture"),o=f.slice(2,b?f.length-7:void 0),S=a[vn]||null,S=S!=null?S[f]:null,typeof S=="function"&&a.removeEventListener(o,S,b),typeof p=="function")){typeof S!="function"&&S!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(o,p,b);break e}f in a?a[f]=p:p===!0?a.setAttribute(f,""):Ea(a,f,p)}}}function Qn(a,o,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",a),tt("load",a);var p=!1,b=!1,S;for(S in f)if(f.hasOwnProperty(S)){var Q=f[S];if(Q!=null)switch(S){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Pt(a,o,S,Q,f,null)}}b&&Pt(a,o,"srcSet",f.srcSet,f,null),p&&Pt(a,o,"src",f.src,f,null);return;case"input":tt("invalid",a);var _=S=Q=b=null,W=null,se=null;for(p in f)if(f.hasOwnProperty(p)){var de=f[p];if(de!=null)switch(p){case"name":b=de;break;case"type":Q=de;break;case"checked":W=de;break;case"defaultChecked":se=de;break;case"value":S=de;break;case"defaultValue":_=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,o));break;default:Pt(a,o,p,de,f,null)}}X6(a,S,_,W,se,Q,b,!1);return;case"select":tt("invalid",a),p=Q=S=null;for(b in f)if(f.hasOwnProperty(b)&&(_=f[b],_!=null))switch(b){case"value":S=_;break;case"defaultValue":Q=_;break;case"multiple":p=_;default:Pt(a,o,b,_,f,null)}o=S,f=Q,a.multiple=!!p,o!=null?ls(a,!!p,o,!1):f!=null&&ls(a,!!p,f,!0);return;case"textarea":tt("invalid",a),S=b=p=null;for(Q in f)if(f.hasOwnProperty(Q)&&(_=f[Q],_!=null))switch(Q){case"value":p=_;break;case"defaultValue":b=_;break;case"children":S=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:Pt(a,o,Q,_,f,null)}F6(a,p,b,S);return;case"option":for(W in f)if(f.hasOwnProperty(W)&&(p=f[W],p!=null))switch(W){case"selected":a.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Pt(a,o,W,p,f,null)}return;case"dialog":tt("beforetoggle",a),tt("toggle",a),tt("cancel",a),tt("close",a);break;case"iframe":case"object":tt("load",a);break;case"video":case"audio":for(p=0;p<bc.length;p++)tt(bc[p],a);break;case"image":tt("error",a),tt("load",a);break;case"details":tt("toggle",a);break;case"embed":case"source":case"link":tt("error",a),tt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in f)if(f.hasOwnProperty(se)&&(p=f[se],p!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Pt(a,o,se,p,f,null)}return;default:if(eh(o)){for(de in f)f.hasOwnProperty(de)&&(p=f[de],p!==void 0&&Dm(a,o,de,p,f,void 0));return}}for(_ in f)f.hasOwnProperty(_)&&(p=f[_],p!=null&&Pt(a,o,_,p,f,null))}function AE(a,o,f,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,S=null,Q=null,_=null,W=null,se=null,de=null;for(ce in f){var pe=f[ce];if(f.hasOwnProperty(ce)&&pe!=null)switch(ce){case"checked":break;case"value":break;case"defaultValue":W=pe;default:p.hasOwnProperty(ce)||Pt(a,o,ce,null,p,pe)}}for(var oe in p){var ce=p[oe];if(pe=f[oe],p.hasOwnProperty(oe)&&(ce!=null||pe!=null))switch(oe){case"type":S=ce;break;case"name":b=ce;break;case"checked":se=ce;break;case"defaultChecked":de=ce;break;case"value":Q=ce;break;case"defaultValue":_=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(r(137,o));break;default:ce!==pe&&Pt(a,o,oe,ce,p,pe)}}Kd(a,Q,_,W,se,de,S,b);return;case"select":ce=Q=_=oe=null;for(S in f)if(W=f[S],f.hasOwnProperty(S)&&W!=null)switch(S){case"value":break;case"multiple":ce=W;default:p.hasOwnProperty(S)||Pt(a,o,S,null,p,W)}for(b in p)if(S=p[b],W=f[b],p.hasOwnProperty(b)&&(S!=null||W!=null))switch(b){case"value":oe=S;break;case"defaultValue":_=S;break;case"multiple":Q=S;default:S!==W&&Pt(a,o,b,S,p,W)}o=_,f=Q,p=ce,oe!=null?ls(a,!!f,oe,!1):!!p!=!!f&&(o!=null?ls(a,!!f,o,!0):ls(a,!!f,f?[]:"",!1));return;case"textarea":ce=oe=null;for(_ in f)if(b=f[_],f.hasOwnProperty(_)&&b!=null&&!p.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Pt(a,o,_,null,p,b)}for(Q in p)if(b=p[Q],S=f[Q],p.hasOwnProperty(Q)&&(b!=null||S!=null))switch(Q){case"value":oe=b;break;case"defaultValue":ce=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==S&&Pt(a,o,Q,b,p,S)}z6(a,oe,ce);return;case"option":for(var Te in f)if(oe=f[Te],f.hasOwnProperty(Te)&&oe!=null&&!p.hasOwnProperty(Te))switch(Te){case"selected":a.selected=!1;break;default:Pt(a,o,Te,null,p,oe)}for(W in p)if(oe=p[W],ce=f[W],p.hasOwnProperty(W)&&oe!==ce&&(oe!=null||ce!=null))switch(W){case"selected":a.selected=oe&&typeof oe!="function"&&typeof oe!="symbol";break;default:Pt(a,o,W,oe,p,ce)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in f)oe=f[He],f.hasOwnProperty(He)&&oe!=null&&!p.hasOwnProperty(He)&&Pt(a,o,He,null,p,oe);for(se in p)if(oe=p[se],ce=f[se],p.hasOwnProperty(se)&&oe!==ce&&(oe!=null||ce!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,o));break;default:Pt(a,o,se,oe,p,ce)}return;default:if(eh(o)){for(var Qt in f)oe=f[Qt],f.hasOwnProperty(Qt)&&oe!==void 0&&!p.hasOwnProperty(Qt)&&Dm(a,o,Qt,void 0,p,oe);for(de in p)oe=p[de],ce=f[de],!p.hasOwnProperty(de)||oe===ce||oe===void 0&&ce===void 0||Dm(a,o,de,oe,p,ce);return}}for(var ie in f)oe=f[ie],f.hasOwnProperty(ie)&&oe!=null&&!p.hasOwnProperty(ie)&&Pt(a,o,ie,null,p,oe);for(pe in p)oe=p[pe],ce=f[pe],!p.hasOwnProperty(pe)||oe===ce||oe==null&&ce==null||Pt(a,o,pe,oe,p,ce)}function Ix(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ME(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var b=f[p],S=b.transferSize,Q=b.initiatorType,_=b.duration;if(S&&_&&Ix(Q)){for(Q=0,_=b.responseEnd,p+=1;p<f.length;p++){var W=f[p],se=W.startTime;if(se>_)break;var de=W.transferSize,pe=W.initiatorType;de&&Ix(pe)&&(W=W.responseEnd,Q+=de*(W<_?1:(_-se)/(W-se)))}if(--p,o+=8*(S+Q)/(b.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Hm=null,Xm=null;function r1(a){return a.nodeType===9?a:a.ownerDocument}function qx(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gx(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function zm(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Fm=null;function CE(){var a=window.event;return a&&a.type==="popstate"?a===Fm?!1:(Fm=a,!0):(Fm=null,!1)}var Ux=typeof setTimeout=="function"?setTimeout:void 0,EE=typeof clearTimeout=="function"?clearTimeout:void 0,Wx=typeof Promise=="function"?Promise:void 0,TE=typeof queueMicrotask=="function"?queueMicrotask:typeof Wx<"u"?function(a){return Wx.resolve(null).then(a).catch($E)}:Ux;function $E(a){setTimeout(function(){throw a})}function Ya(a){return a==="head"}function Kx(a,o){var f=o,p=0;do{var b=f.nextSibling;if(a.removeChild(f),b&&b.nodeType===8)if(f=b.data,f==="/$"||f==="/&"){if(p===0){a.removeChild(b),_s(o);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Sc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,Sc(f);for(var S=f.firstChild;S;){var Q=S.nextSibling,_=S.nodeName;S[ct]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&S.rel.toLowerCase()==="stylesheet"||f.removeChild(S),S=Q}}else f==="body"&&Sc(a.ownerDocument.body);f=b}while(f);_s(o)}function Jx(a,o){var f=a;a=0;do{var p=f.nextSibling;if(f.nodeType===1?o?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(o?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=p}while(f)}function Bm(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var f=o;switch(o=o.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":Bm(f),zt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function jE(a,o,f,p){for(;a.nodeType===1;){var b=f;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[ct])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(S=a.getAttribute("rel"),S==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(S!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(S=a.getAttribute("src"),(S!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&S&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var S=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===S)return a}else return a;if(a=Dr(a.nextSibling),a===null)break}return null}function PE(a,o,f){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=Dr(a.nextSibling),a===null))return null;return a}function e5(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=Dr(a.nextSibling),a===null))return null;return a}function Ym(a){return a.data==="$?"||a.data==="$~"}function Im(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function QE(a,o){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||f.readyState!=="loading")o();else{var p=function(){o(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Dr(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var qm=null;function t5(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(o===0)return Dr(a.nextSibling);o--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||o++}a=a.nextSibling}return null}function n5(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(o===0)return a;o--}else f!=="/$"&&f!=="/&"||o++}a=a.previousSibling}return null}function r5(a,o,f){switch(o=r1(f),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Sc(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);zt(a)}var Hr=new Map,i5=new Set;function i1(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ji=G.d;G.d={f:ZE,r:NE,D:RE,C:VE,L:_E,m:LE,X:HE,S:DE,M:XE};function ZE(){var a=Ji.f(),o=G0();return a||o}function NE(a){var o=Pr(a);o!==null&&o.tag===5&&o.type==="form"?v4(o):Ji.r(a)}var Ns=typeof document>"u"?null:document;function a5(a,o,f){var p=Ns;if(p&&typeof o=="string"&&o){var b=Qr(o);b='link[rel="'+a+'"][href="'+b+'"]',typeof f=="string"&&(b+='[crossorigin="'+f+'"]'),i5.has(b)||(i5.add(b),a={rel:a,crossOrigin:f,href:o},p.querySelector(b)===null&&(o=p.createElement("link"),Qn(o,"link",a),un(o),p.head.appendChild(o)))}}function RE(a){Ji.D(a),a5("dns-prefetch",a,null)}function VE(a,o){Ji.C(a,o),a5("preconnect",a,o)}function _E(a,o,f){Ji.L(a,o,f);var p=Ns;if(p&&a&&o){var b='link[rel="preload"][as="'+Qr(o)+'"]';o==="image"&&f&&f.imageSrcSet?(b+='[imagesrcset="'+Qr(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(b+='[imagesizes="'+Qr(f.imageSizes)+'"]')):b+='[href="'+Qr(a)+'"]';var S=b;switch(o){case"style":S=Rs(a);break;case"script":S=Vs(a)}Hr.has(S)||(a=O({rel:"preload",href:o==="image"&&f&&f.imageSrcSet?void 0:a,as:o},f),Hr.set(S,a),p.querySelector(b)!==null||o==="style"&&p.querySelector(wc(S))||o==="script"&&p.querySelector(kc(S))||(o=p.createElement("link"),Qn(o,"link",a),un(o),p.head.appendChild(o)))}}function LE(a,o){Ji.m(a,o);var f=Ns;if(f&&a){var p=o&&typeof o.as=="string"?o.as:"script",b='link[rel="modulepreload"][as="'+Qr(p)+'"][href="'+Qr(a)+'"]',S=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Vs(a)}if(!Hr.has(S)&&(a=O({rel:"modulepreload",href:a},o),Hr.set(S,a),f.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(kc(S)))return}p=f.createElement("link"),Qn(p,"link",a),un(p),f.head.appendChild(p)}}}function DE(a,o,f){Ji.S(a,o,f);var p=Ns;if(p&&a){var b=Ma(p).hoistableStyles,S=Rs(a);o=o||"default";var Q=b.get(S);if(!Q){var _={loading:0,preload:null};if(Q=p.querySelector(wc(S)))_.loading=5;else{a=O({rel:"stylesheet",href:a,"data-precedence":o},f),(f=Hr.get(S))&&Gm(a,f);var W=Q=p.createElement("link");un(W),Qn(W,"link",a),W._p=new Promise(function(se,de){W.onload=se,W.onerror=de}),W.addEventListener("load",function(){_.loading|=1}),W.addEventListener("error",function(){_.loading|=2}),_.loading|=4,a1(Q,o,p)}Q={type:"stylesheet",instance:Q,count:1,state:_},b.set(S,Q)}}}function HE(a,o){Ji.X(a,o);var f=Ns;if(f&&a){var p=Ma(f).hoistableScripts,b=Vs(a),S=p.get(b);S||(S=f.querySelector(kc(b)),S||(a=O({src:a,async:!0},o),(o=Hr.get(b))&&Um(a,o),S=f.createElement("script"),un(S),Qn(S,"link",a),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(b,S))}}function XE(a,o){Ji.M(a,o);var f=Ns;if(f&&a){var p=Ma(f).hoistableScripts,b=Vs(a),S=p.get(b);S||(S=f.querySelector(kc(b)),S||(a=O({src:a,async:!0,type:"module"},o),(o=Hr.get(b))&&Um(a,o),S=f.createElement("script"),un(S),Qn(S,"link",a),f.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(b,S))}}function l5(a,o,f,p){var b=(b=ne.current)?i1(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(o=Rs(f.href),f=Ma(b).hoistableStyles,p=f.get(o),p||(p={type:"style",instance:null,count:0,state:null},f.set(o,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=Rs(f.href);var S=Ma(b).hoistableStyles,Q=S.get(a);if(Q||(b=b.ownerDocument||b,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(a,Q),(S=b.querySelector(wc(a)))&&!S._p&&(Q.instance=S,Q.state.loading=5),Hr.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Hr.set(a,f),S||zE(b,a,f,Q.state))),o&&p===null)throw Error(r(528,""));return Q}if(o&&p!==null)throw Error(r(529,""));return null;case"script":return o=f.async,f=f.src,typeof f=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Vs(f),f=Ma(b).hoistableScripts,p=f.get(o),p||(p={type:"script",instance:null,count:0,state:null},f.set(o,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Rs(a){return'href="'+Qr(a)+'"'}function wc(a){return'link[rel="stylesheet"]['+a+"]"}function s5(a){return O({},a,{"data-precedence":a.precedence,precedence:null})}function zE(a,o,f,p){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?p.loading=1:(o=a.createElement("link"),p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2}),Qn(o,"link",f),un(o),a.head.appendChild(o))}function Vs(a){return'[src="'+Qr(a)+'"]'}function kc(a){return"script[async]"+a}function o5(a,o,f){if(o.count++,o.instance===null)switch(o.type){case"style":var p=a.querySelector('style[data-href~="'+Qr(f.href)+'"]');if(p)return o.instance=p,un(p),p;var b=O({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),un(p),Qn(p,"style",b),a1(p,f.precedence,a),o.instance=p;case"stylesheet":b=Rs(f.href);var S=a.querySelector(wc(b));if(S)return o.state.loading|=4,o.instance=S,un(S),S;p=s5(f),(b=Hr.get(b))&&Gm(p,b),S=(a.ownerDocument||a).createElement("link"),un(S);var Q=S;return Q._p=new Promise(function(_,W){Q.onload=_,Q.onerror=W}),Qn(S,"link",p),o.state.loading|=4,a1(S,f.precedence,a),o.instance=S;case"script":return S=Vs(f.src),(b=a.querySelector(kc(S)))?(o.instance=b,un(b),b):(p=f,(b=Hr.get(S))&&(p=O({},f),Um(p,b)),a=a.ownerDocument||a,b=a.createElement("script"),un(b),Qn(b,"link",p),a.head.appendChild(b),o.instance=b);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,a1(p,f.precedence,a));return o.instance}function a1(a,o,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,S=b,Q=0;Q<p.length;Q++){var _=p[Q];if(_.dataset.precedence===o)S=_;else if(S!==b)break}S?S.parentNode.insertBefore(a,S.nextSibling):(o=f.nodeType===9?f.head:f,o.insertBefore(a,o.firstChild))}function Gm(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Um(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var l1=null;function c5(a,o,f){if(l1===null){var p=new Map,b=l1=new Map;b.set(f,p)}else b=l1,p=b.get(f),p||(p=new Map,b.set(f,p));if(p.has(a))return p;for(p.set(a,null),f=f.getElementsByTagName(a),b=0;b<f.length;b++){var S=f[b];if(!(S[ct]||S[tn]||a==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var Q=S.getAttribute(o)||"";Q=a+Q;var _=p.get(Q);_?_.push(S):p.set(Q,[S])}}return p}function u5(a,o,f){a=a.ownerDocument||a,a.head.insertBefore(f,o==="title"?a.querySelector("head > title"):null)}function FE(a,o,f){if(f===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function f5(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function BE(a,o,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var b=Rs(p.href),S=o.querySelector(wc(b));if(S){o=S._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=s1.bind(a),o.then(a,a)),f.state.loading|=4,f.instance=S,un(S);return}S=o.ownerDocument||o,p=s5(p),(b=Hr.get(b))&&Gm(p,b),S=S.createElement("link"),un(S);var Q=S;Q._p=new Promise(function(_,W){Q.onload=_,Q.onerror=W}),Qn(S,"link",p),f.instance=S}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,o),(o=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=s1.bind(a),o.addEventListener("load",f),o.addEventListener("error",f))}}var Wm=0;function YE(a,o){return a.stylesheets&&a.count===0&&c1(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var p=setTimeout(function(){if(a.stylesheets&&c1(a,a.stylesheets),a.unsuspend){var S=a.unsuspend;a.unsuspend=null,S()}},6e4+o);0<a.imgBytes&&Wm===0&&(Wm=62500*ME());var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&c1(a,a.stylesheets),a.unsuspend)){var S=a.unsuspend;a.unsuspend=null,S()}},(a.imgBytes>Wm?50:800)+o);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function s1(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)c1(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var o1=null;function c1(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,o1=new Map,o.forEach(IE,a),o1=null,s1.call(a))}function IE(a,o){if(!(o.state.loading&4)){var f=o1.get(a);if(f)var p=f.get(null);else{f=new Map,o1.set(a,f);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<b.length;S++){var Q=b[S];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(f.set(Q.dataset.precedence,Q),p=Q)}p&&f.set(null,p)}b=o.instance,Q=b.getAttribute("data-precedence"),S=f.get(Q)||p,S===p&&f.set(null,b),f.set(Q,b),this.count++,p=s1.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),S?S.parentNode.insertBefore(b,S.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),o.state.loading|=4}}var Ac={$$typeof:T,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function qE(a,o,f,p,b,S,Q,_,W){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zi(0),this.hiddenUpdates=Zi(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=S,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function d5(a,o,f,p,b,S,Q,_,W,se,de,pe){return a=new qE(a,o,f,Q,W,se,de,pe,_),o=1,S===!0&&(o|=24),S=gr(3,null,null,o),a.current=S,S.stateNode=a,o=$h(),o.refCount++,a.pooledCache=o,o.refCount++,S.memoizedState={element:p,isDehydrated:f,cache:o},Zh(S),a}function h5(a){return a?(a=ms,a):ms}function m5(a,o,f,p,b,S){b=h5(b),p.context===null?p.context=b:p.pendingContext=b,p=Na(o),p.payload={element:f},S=S===void 0?null:S,S!==null&&(p.callback=S),f=Ra(a,p,o),f!==null&&(ar(f,a,o),rc(f,a,o))}function p5(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function Km(a,o){p5(a,o),(a=a.alternate)&&p5(a,o)}function g5(a){if(a.tag===13||a.tag===31){var o=Al(a,67108864);o!==null&&ar(o,a,67108864),Km(a,67108864)}}function O5(a){if(a.tag===13||a.tag===31){var o=vr();o=rt(o);var f=Al(a,o);f!==null&&ar(f,a,o),Km(a,o)}}var u1=!0;function GE(a,o,f,p){var b=D.T;D.T=null;var S=G.p;try{G.p=2,Jm(a,o,f,p)}finally{G.p=S,D.T=b}}function UE(a,o,f,p){var b=D.T;D.T=null;var S=G.p;try{G.p=8,Jm(a,o,f,p)}finally{G.p=S,D.T=b}}function Jm(a,o,f,p){if(u1){var b=ep(p);if(b===null)Lm(a,o,p,f1,f),y5(a,p);else if(KE(b,a,o,f,p))p.stopPropagation();else if(y5(a,p),o&4&&-1<WE.indexOf(a)){for(;b!==null;){var S=Pr(b);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var Q=Tt(S.pendingLanes);if(Q!==0){var _=S;for(_.pendingLanes|=2,_.entangledLanes|=2;Q;){var W=1<<31-ze(Q);_.entanglements[1]|=W,Q&=~W}gi(S),(kt&6)===0&&(I0=be()+500,yc(0))}}break;case 31:case 13:_=Al(S,2),_!==null&&ar(_,S,2),G0(),Km(S,2)}if(S=ep(p),S===null&&Lm(a,o,p,f1,f),S===b)break;b=S}b!==null&&p.stopPropagation()}else Lm(a,o,p,null,f)}}function ep(a){return a=nh(a),tp(a)}var f1=null;function tp(a){if(f1=null,a=Tn(a),a!==null){var o=l(a);if(o===null)a=null;else{var f=o.tag;if(f===13){if(a=s(o),a!==null)return a;a=null}else if(f===31){if(a=c(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return f1=a,null}function x5(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dt()){case Ue:return 2;case bt:return 8;case Re:case on:return 32;case Rt:return 268435456;default:return 32}default:return 32}}var np=!1,Ia=null,qa=null,Ga=null,Mc=new Map,Cc=new Map,Ua=[],WE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y5(a,o){switch(a){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Mc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cc.delete(o.pointerId)}}function Ec(a,o,f,p,b,S){return a===null||a.nativeEvent!==S?(a={blockedOn:o,domEventName:f,eventSystemFlags:p,nativeEvent:S,targetContainers:[b]},o!==null&&(o=Pr(o),o!==null&&g5(o)),a):(a.eventSystemFlags|=p,o=a.targetContainers,b!==null&&o.indexOf(b)===-1&&o.push(b),a)}function KE(a,o,f,p,b){switch(o){case"focusin":return Ia=Ec(Ia,a,o,f,p,b),!0;case"dragenter":return qa=Ec(qa,a,o,f,p,b),!0;case"mouseover":return Ga=Ec(Ga,a,o,f,p,b),!0;case"pointerover":var S=b.pointerId;return Mc.set(S,Ec(Mc.get(S)||null,a,o,f,p,b)),!0;case"gotpointercapture":return S=b.pointerId,Cc.set(S,Ec(Cc.get(S)||null,a,o,f,p,b)),!0}return!1}function b5(a){var o=Tn(a.target);if(o!==null){var f=l(o);if(f!==null){if(o=f.tag,o===13){if(o=s(f),o!==null){a.blockedOn=o,vl(a.priority,function(){O5(f)});return}}else if(o===31){if(o=c(f),o!==null){a.blockedOn=o,vl(a.priority,function(){O5(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function d1(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=ep(a.nativeEvent);if(f===null){f=a.nativeEvent;var p=new f.constructor(f.type,f);th=p,f.target.dispatchEvent(p),th=null}else return o=Pr(f),o!==null&&g5(o),a.blockedOn=f,!1;o.shift()}return!0}function v5(a,o,f){d1(a)&&f.delete(o)}function JE(){np=!1,Ia!==null&&d1(Ia)&&(Ia=null),qa!==null&&d1(qa)&&(qa=null),Ga!==null&&d1(Ga)&&(Ga=null),Mc.forEach(v5),Cc.forEach(v5)}function h1(a,o){a.blockedOn===o&&(a.blockedOn=null,np||(np=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,JE)))}var m1=null;function S5(a){m1!==a&&(m1=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){m1===a&&(m1=null);for(var o=0;o<a.length;o+=3){var f=a[o],p=a[o+1],b=a[o+2];if(typeof p!="function"){if(tp(p||f)===null)continue;break}var S=Pr(f);S!==null&&(a.splice(o,3),o-=3,em(S,{pending:!0,data:b,method:f.method,action:p},p,b))}}))}function _s(a){function o(W){return h1(W,a)}Ia!==null&&h1(Ia,a),qa!==null&&h1(qa,a),Ga!==null&&h1(Ga,a),Mc.forEach(o),Cc.forEach(o);for(var f=0;f<Ua.length;f++){var p=Ua[f];p.blockedOn===a&&(p.blockedOn=null)}for(;0<Ua.length&&(f=Ua[0],f.blockedOn===null);)b5(f),f.blockedOn===null&&Ua.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var b=f[p],S=f[p+1],Q=b[vn]||null;if(typeof S=="function")Q||S5(f);else if(Q){var _=null;if(S&&S.hasAttribute("formAction")){if(b=S,Q=S[vn]||null)_=Q.formAction;else if(tp(b)!==null)continue}else _=Q.action;typeof _=="function"?f[p+1]=_:(f.splice(p,3),p-=3),S5(f)}}}function w5(){function a(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(Q){return b=Q})},focusReset:"manual",scroll:"manual"})}function o(){b!==null&&(b(),b=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),b!==null&&(b(),b=null)}}}function rp(a){this._internalRoot=a}p1.prototype.render=rp.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var f=o.current,p=vr();m5(f,p,a,o,null,null)},p1.prototype.unmount=rp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;m5(a.current,2,null,a,null,null),G0(),o[Ur]=null}};function p1(a){this._internalRoot=a}p1.prototype.unstable_scheduleHydration=function(a){if(a){var o=mr();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Ua.length&&o!==0&&o<Ua[f].priority;f++);Ua.splice(f,0,a),f===0&&b5(a)}};var k5=e.version;if(k5!=="19.2.6")throw Error(r(527,k5,"19.2.6"));G.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(o),a=a!==null?g(a):null,a=a===null?null:a.stateNode,a};var eT={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var g1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!g1.isDisabled&&g1.supportsFiber)try{Mt=g1.inject(eT),ot=g1}catch{}}return $c.createRoot=function(a,o){if(!i(a))throw Error(r(299));var f=!1,p="",b=j4,S=P4,Q=Q4;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(Q=o.onRecoverableError)),o=d5(a,1,!1,null,null,f,p,null,b,S,Q,w5),a[Ur]=o.current,_m(a),new rp(o)},$c.hydrateRoot=function(a,o,f){if(!i(a))throw Error(r(299));var p=!1,b="",S=j4,Q=P4,_=Q4,W=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(S=f.onUncaughtError),f.onCaughtError!==void 0&&(Q=f.onCaughtError),f.onRecoverableError!==void 0&&(_=f.onRecoverableError),f.formState!==void 0&&(W=f.formState)),o=d5(a,1,!0,o,f??null,p,b,W,S,Q,_,w5),o.context=h5(null),f=o.current,p=vr(),p=rt(p),b=Na(p),b.callback=null,Ra(f,b,p),f=p,o.current.lanes=f,En(o,f),gi(o),a[Ur]=o.current,_m(a),new p1(o)},$c.version="19.2.6",$c}var N5;function dT(){if(N5)return lp.exports;N5=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),lp.exports=fT(),lp.exports}var hT=dT();const R5="hyperframes-studio:anonymousId",mT="hyperframes-studio:telemetryDisabled",kS="hyperframes-studio:telemetryNoticeShown";function wd(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}function pT(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`anon-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function gT(){const t=wd();if(!t)return"anonymous";const e=t.getItem(R5);if(e)return e;const n=pT();try{t.setItem(R5,n)}catch{}return n}function OT(){var t;return((t=wd())==null?void 0:t.getItem(mT))==="1"}function xT(){var t;return((t=wd())==null?void 0:t.getItem(kS))==="1"}function yT(){var t;try{(t=wd())==null||t.setItem(kS,"1")}catch{}}const AS="hyperframes-studio:sessionStartFired";function MS(){try{return typeof sessionStorage>"u"?null:sessionStorage}catch{return null}}function bT(){var t;return((t=MS())==null?void 0:t.getItem(AS))==="1"}function vT(){var t;try{(t=MS())==null||t.setItem(AS,"1")}catch{}}const ST={user_agent:"",language:"",screen_width:0,screen_height:0,device_pixel_ratio:0,timezone_offset_minutes:0,is_mobile:!1,studio_version:"dev"};let Ls=null;function wT(){if(Ls)return Ls;if(typeof navigator>"u"||typeof window>"u")return Ls=ST,Ls;const t=navigator.userAgent,e=window.screen;return Ls={user_agent:t,language:navigator.language,screen_width:e.width,screen_height:e.height,device_pixel_ratio:window.devicePixelRatio,timezone_offset_minutes:new Date().getTimezoneOffset(),is_mobile:/Android|iPhone|iPad/i.test(t),studio_version:"0.6.80"},Ls}const CS="phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx",kT="https://us.i.posthog.com",AT=1e3;let xf=[],up=null,x1=null;function MT(){return typeof navigator<"u"&&navigator.doNotTrack==="1"}function CT(){return CS.startsWith("phc_")}function ET(){try{return!1}catch{return!1}}function TT(){try{return!1}catch{return!1}}function $T(){return x1!==null||(x1=CT()&&!ET()&&!TT()&&!OT()&&!MT()),x1}function b8(t,e={}){if(!$T())return;const n=wT();xf.push({event:t,properties:{...e,...n},timestamp:new Date().toISOString()}),up===null&&(up=setTimeout(()=>{up=null,V2()},AT)),PT()}function V2(){if(xf.length===0)return;const t=gT(),e=xf.map(n=>({event:n.event,properties:{...n.properties,$ip:null},distinct_id:t,timestamp:n.timestamp}));xf=[],jT(`${kT}/batch/`,JSON.stringify({api_key:CS,batch:e}))}function jT(t,e){try{fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:!0}).catch(()=>{});return}catch{}try{navigator.sendBeacon(t,new Blob([e],{type:"application/json"}))}catch{}}function PT(){xT()||(yT(),console.info("%c[HyperFrames]%c Anonymous studio usage analytics enabled. Disable: localStorage.setItem('hyperframes-studio:telemetryDisabled','1') (then reload).","color:#7c3aed;font-weight:bold","color:inherit"))}typeof window<"u"&&(window.addEventListener("pagehide",()=>V2(),{capture:!0}),window.addEventListener("visibilitychange",()=>{typeof document<"u"&&document.visibilityState==="hidden"&&V2()}));function QT(t){b8("studio_session_start",{has_project:t.has_project})}function ZT(t){b8("studio_render_start",{fps:t.fps,quality:t.quality,format:t.format,resolution:t.resolution,composition:t.composition})}function NT(){var t,e;try{const n=navigator,i=[`ua=${((t=n.userAgentData)==null?void 0:t.platform)??navigator.platform??"unknown"}`,`screen=${screen.width}x${screen.height}@${devicePixelRatio}x`,`lang=${navigator.language}`];return n.deviceMemory&&i.push(`mem=${n.deviceMemory}GB`),(e=n.connection)!=null&&e.effectiveType&&i.push(`net=${n.connection.effectiveType}`),navigator.hardwareConcurrency&&i.push(`cpu=${navigator.hardwareConcurrency}cores`),i.join(" ")}catch{return""}}function RT(t){b8("survey sent",{$survey_id:"studio_experience",$survey_response:t.rating,...t.comment?{$survey_response_2:t.comment}:{},doctor_summary:NT(),source:"studio"})}function VT(t){const[e,n]=d.useState([]),r=d.useRef(null),i=d.useRef(null),l=d.useCallback(async()=>{if(t)try{const h=await fetch(`/api/projects/${t}/renders`);if(!h.ok)return;const g=await h.json();Array.isArray(g.renders)&&n(O=>{const x=new Set(O.map(v=>v.id)),y=g.renders.filter(v=>!x.has(v.id)).map(v=>({id:v.id,status:v.status==="failed"?"failed":"complete",progress:100,filename:v.filename,createdAt:v.createdAt,durationMs:v.durationMs}));return[...O,...y]})}catch{}},[t]);d.useEffect(()=>{l()},[l]);const s=d.useCallback(async(h={})=>{if(!t)return;const g=h.fps??30,O=h.quality??"standard",x=h.format??"mp4",y=h.resolution,v=h.composition;ZT({fps:g,quality:O,format:x,resolution:y,composition:v});const w=Date.now(),A={fps:g,quality:O,format:x};y&&y!=="auto"&&(A.resolution=y),v&&(A.composition=v);let k;try{k=await fetch(`/api/projects/${t}/render`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)})}catch{const E={id:crypto.randomUUID(),status:"failed",progress:0,error:"Could not reach render server. Use `hyperframes render` from the CLI instead.",filename:"Export failed",createdAt:w};n(N=>[...N,E]);return}if(!k.ok){const E={id:crypto.randomUUID(),status:"failed",progress:0,error:`Server error (${k.status}). Check the terminal for details.`,filename:"Export failed",createdAt:w};n(N=>[...N,E]);return}const{jobId:C}=await k.json(),$={mp4:".mp4",webm:".webm",mov:".mov"}[x]??".mp4",M={id:C,status:"rendering",progress:0,filename:`${C}${$}`,createdAt:w};n(E=>[...E,M]),i.current=C;const j=new EventSource(`/api/render/${C}/progress`);return r.current=j,j.addEventListener("progress",E=>{try{const N=JSON.parse(E.data);n(R=>R.map(L=>L.id===C?{...L,progress:N.progress??L.progress,stage:N.stage??N.message??L.stage,status:N.status==="complete"?"complete":N.status==="failed"?"failed":L.status,durationMs:N.status==="complete"?Date.now()-w:void 0,error:N.error??L.error}:L)),(N.status==="complete"||N.status==="failed")&&(j.close(),i.current=null)}catch{}}),j.onerror=()=>{j.close(),n(E=>E.map(N=>N.id===C&&N.status==="rendering"?{...N,status:"failed",error:"Connection lost. Is the render server running?"}:N)),i.current=null},C},[t]),c=d.useCallback(async h=>{try{await fetch(`/api/render/${h}`,{method:"DELETE"})}catch{}n(g=>g.filter(O=>O.id!==h))},[]),u=d.useCallback(()=>{n(h=>h.filter(g=>g.status==="rendering"))},[]);return d.useEffect(()=>()=>{var h;(h=r.current)==null||h.close(),r.current=null},[t]),{jobs:e,startRender:s,deleteRender:c,clearCompleted:u,isRendering:e.some(h=>h.status==="rendering")}}const _T="modulepreload",LT=function(t){return"/"+t},V5={},ES=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(h){return Promise.all(h.map(g=>Promise.resolve(g).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=s(n.map(h=>{if(h=LT(h),h in V5)return;V5[h]=!0;const g=h.endsWith(".css"),O=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${O}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":_T,g||(x.as="script"),x.crossOrigin="",x.href=h,u&&x.setAttribute("nonce",u),document.head.appendChild(x),g)return new Promise((y,v)=>{x.addEventListener("load",y),x.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return i.then(s=>{for(const c of s||[])c.status==="rejected"&&l(c.reason);return e().catch(l)})};function DT(t){if(typeof t!="object"||t===null)return!0;const e=t;return e.isLoaded===!0||typeof e.totalFrames=="number"&&e.totalFrames>0}function Xt(t){d.useEffect(t,[])}const TS={primary:["bg-white text-neutral-950 font-medium","shadow-btn-primary","hover:bg-neutral-200","active:scale-[0.97]"].join(" "),secondary:["bg-transparent text-neutral-300 font-medium","border border-border","hover:bg-surface-hover hover:text-white hover:border-border-strong","active:scale-[0.98]"].join(" "),danger:["bg-accent-red text-white font-medium","hover:bg-red-600","active:scale-[0.97]"].join(" "),ghost:["bg-transparent text-neutral-400","hover:bg-surface-hover hover:text-white","active:scale-[0.98]"].join(" ")},HT={sm:"h-7 px-2.5 text-xs gap-1.5 rounded-button",md:"h-8 px-3 text-sm gap-1.5 rounded-button",lg:"h-9 px-4 text-base gap-2 rounded-button"},XT=d.forwardRef(({variant:t="secondary",size:e="md",loading:n,icon:r,children:i,className:l="",disabled:s,...c},u)=>m.jsxs("button",{ref:u,disabled:s||n,className:["inline-flex items-center justify-center","transition-all duration-press ease-standard","disabled:opacity-40 disabled:pointer-events-none","select-none cursor-pointer",TS[t],HT[e],l].join(" "),...c,children:[n?m.jsxs("svg",{className:"animate-spin h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",children:[m.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),m.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):r?m.jsx("span",{className:"flex-shrink-0",children:r}):null,i&&m.jsx("span",{children:i})]}));XT.displayName="Button";const zT={sm:"min-w-7 min-h-7 rounded-button",md:"min-w-8 min-h-8 rounded-button",lg:"min-w-9 min-h-9 rounded-button"},FT=d.forwardRef(({icon:t,size:e="md",variant:n="ghost",className:r="",...i},l)=>m.jsx("button",{ref:l,className:["inline-flex items-center justify-center","transition-all duration-press ease-standard","disabled:opacity-40 disabled:pointer-events-none","select-none cursor-pointer",TS[n],zT[e],r].join(" "),...i,children:t}));FT.displayName="IconButton";function _5({title:t,detail:e,mono:n,size:r=64,progress:i}){const l=typeof i=="number"&&Number.isFinite(i)?Math.min(1,Math.max(0,i)):void 0,s=Math.round(r*1.16);return m.jsxs("div",{className:"hf-loader",draggable:!1,children:[m.jsx("div",{className:"hf-loader-mark-frame",style:{width:s,height:s},draggable:!1,children:m.jsxs("svg",{className:"hf-loader-mark",width:r,height:r,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[m.jsx("g",{className:"hf-loader-mark__mark",transform:"translate(50 50)",children:m.jsx("g",{className:"hf-loader-mark__core",transform:"scale(1)",opacity:".92",children:m.jsxs("g",{transform:"translate(-50 -50)",children:[m.jsx("path",{d:"M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z",fill:"url(#hf-loader-grad-left)"}),m.jsx("path",{d:"M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z",fill:"url(#hf-loader-grad-right)"})]})})}),m.jsxs("defs",{children:[m.jsxs("linearGradient",{id:"hf-loader-grad-left",x1:"48.5676",y1:"25",x2:"44.7804",y2:"71.9384",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#06E3FA"}),m.jsx("stop",{offset:"1",stopColor:"#4FDB5E"})]}),m.jsxs("linearGradient",{id:"hf-loader-grad-right",x1:"54.8282",y1:"73.8392",x2:"72.0989",y2:"32.8932",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#06E3FA"}),m.jsx("stop",{offset:"1",stopColor:"#4FDB5E"})]})]})]})}),m.jsx("div",{className:"hf-loader-title",children:t}),e&&m.jsx("div",{className:"hf-loader-detail",children:e}),l!==void 0&&m.jsx("div",{className:"hf-loader-progress","aria-hidden":"true",children:m.jsx("div",{className:"hf-loader-progress__fill",style:{transform:`scaleX(${l})`}})}),n&&m.jsx("div",{className:"hf-loader-mono",children:n})]})}var v8=wS();function Yt({label:t,children:e,delay:n=400,side:r="top"}){const[i,l]=d.useState(!1),[s,c]=d.useState({x:0,y:0}),u=d.useRef(null),h=d.useRef(null),g=d.useCallback(()=>{u.current=setTimeout(()=>{const x=h.current;if(!x)return;const v=(x.firstElementChild??x).getBoundingClientRect();v.width===0&&v.height===0||(c({x:v.left+v.width/2,y:r==="top"?v.top-6:v.bottom+6}),l(!0))},n)},[n,r]),O=d.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null),l(!1)},[]);return m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:h,onPointerEnter:g,onPointerLeave:O,className:"contents",children:e}),i&&v8.createPortal(m.jsx("div",{className:"fixed z-[200] pointer-events-none",style:{left:s.x,top:s.y,transform:r==="top"?"translate(-50%, -100%)":"translate(-50%, 0)"},children:m.jsx("div",{className:"px-2 py-1 rounded-md bg-neutral-800 border border-neutral-700/50 text-[10px] font-medium text-neutral-200 whitespace-nowrap shadow-lg",children:t})}),document.body)]})}const BT=3,YT=3;function L5(t){return typeof t=="object"&&t!==null}function IT(t){if(!(t instanceof CustomEvent))return null;const e=t.detail;if(!L5(e))return null;const n=e.state;return L5(n)?n.loading===!0&&n.ready!==!0:null}const qT=400;function GT(t){const e=t.shadowRoot;if(!e)return;const n=e.querySelector(".hfp-container"),r=e.querySelector(".hfp-iframe");n==null||n.style.setProperty("pointer-events","auto"),r==null||r.style.setProperty("pointer-events","auto")}function UT(t){const e=t.tagName.toLowerCase();return e==="video"||e==="audio"}function D5(t,e){try{const n=t.contentWindow,r=t.contentDocument;if(!n||!r)return e;for(const l of r.querySelectorAll("video, audio"))if(UT(l)&&!l.error&&l.networkState!==YT&&l.readyState<BT)return!0;const i=n.__hfLottie;if(i!=null&&i.length){for(const l of i)if(!DT(l))return!0}return!1}catch{return e}}const _2=d.forwardRef(({projectId:t,directUrl:e,onLoad:n,onCompositionLoadingChange:r,portrait:i,style:l,suppressLoadingOverlay:s},c)=>{const u=d.useRef(null),h=d.useRef(0),g=d.useRef(null),O=d.useRef(null),[x,y]=d.useState(!1),[v,w]=d.useState(!1),[A,k]=d.useState(!1),[C,T]=d.useState(!1),[$,M]=d.useState(!0),[j,E]=d.useState(!0);d.useEffect(()=>{if(!$){E(!0);return}const L=setTimeout(()=>E(!1),qT);return()=>clearTimeout(L)},[$]),Xt(()=>{const L=u.current;if(!L)return;let V=!1,z;return ES(()=>import("./hyperframes-player-WXAuftNy.js"),[]).then(()=>{if(V)return;const q=document.createElement("hyperframes-player"),U=e||`/api/projects/${t}/preview`;if(q.setAttribute("shader-capture-scale","1"),q.setAttribute("shader-loading","player"),q.setAttribute("src",U),q.setAttribute("width",String(i?1080:1920)),q.setAttribute("height",String(i?1920:1080)),q.style.width="100%",q.style.height="100%",q.style.display="block",q.style.background="transparent",L.appendChild(q),q.shadowRoot){const P=document.createElement("style");P.textContent=".hfp-container{overflow:visible}.hfp-iframe{box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 4px 32px rgba(0,0,0,.7)}",q.shadowRoot.appendChild(P)}GT(q);const K=q.iframeElement;typeof c=="function"?c(K):c&&(c.current=K);const D=P=>P.stopImmediatePropagation();q.addEventListener("click",D,{capture:!0});const G=P=>{const Z=IT(P);Z!==null&&T(Z)};q.addEventListener("shadertransitionstate",G);const H=()=>{M(!1)},F=()=>{M(!1)};q.addEventListener("ready",H),q.addEventListener("error",F);const I=()=>{if(h.current++,T(!1),M(!0),h.current>1){L.classList.remove("preview-revealing"),L.offsetWidth,L.classList.add("preview-revealing");const X=()=>L.classList.remove("preview-revealing");L.addEventListener("animationend",X,{once:!0})}n(),g.current&&clearInterval(g.current);let Z=h.current>1?!1:D5(K,!1);if(Z){y(!0);let X=0;g.current=setInterval(()=>{X+=1,Z=D5(K,Z),(!Z||X>100)&&(g.current&&clearInterval(g.current),g.current=null,y(!1),Z&&console.debug("[Player] Asset-loading overlay timed out after 10s; hiding anyway. Check network or asset integrity."))},100)}else y(!1)};K.addEventListener("load",I),z=()=>{if(K.removeEventListener("load",I),q.removeEventListener("click",D,{capture:!0}),q.removeEventListener("shadertransitionstate",G),q.removeEventListener("ready",H),q.removeEventListener("error",F),g.current&&clearInterval(g.current),g.current=null,L.removeChild(q),typeof c!="function"){if(c){const P=c;P.current===K&&(P.current=null)}}}}),()=>{V=!0,z==null||z()}}),d.useEffect(()=>{if(O.current&&(clearTimeout(O.current),O.current=null),x){w(!0),k(!1);return}return k(!0),O.current=setTimeout(()=>{w(!1),k(!1),O.current=null},240),()=>{O.current&&(clearTimeout(O.current),O.current=null)}},[x]);const N=!s&&!j&&$,R=v&&!C&&!N;return d.useEffect(()=>{r==null||r(N||R)},[r,N,R]),m.jsxs("div",{className:"relative w-full h-full max-w-full max-h-full overflow-hidden flex items-center justify-center",style:l,children:[m.jsx("div",{ref:u,className:"w-full h-full"}),N&&m.jsx("div",{className:"absolute inset-0 bg-black flex items-center justify-center z-30 select-none","data-hyperframes-ignore":"","data-testid":"composition-loading-overlay",draggable:!1,onDragStart:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),onPointerDown:L=>L.preventDefault(),children:m.jsx(_5,{title:"Loading composition",detail:"Preparing the Studio preview.",size:56})}),R&&m.jsx("div",{className:"absolute inset-0 bg-black flex items-center justify-center z-20 select-none","data-hyperframes-ignore":"",draggable:!1,style:{opacity:A?0:1,pointerEvents:A?"none":"auto",transition:"opacity 240ms ease-out"},onDragStart:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),onPointerDown:L=>L.preventDefault(),children:m.jsx(_5,{title:"Preparing preview assets",detail:"Waiting for media and motion assets before playback starts.",size:56})})]})});_2.displayName="Player";const Zu=30;function yn(t){if(!Number.isFinite(t)||t<0)return"0:00";const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n.toString().padStart(2,"0")}`}function L2(t,e=Zu){return!Number.isFinite(t)||t<=0||!Number.isFinite(e)||e<=0?0:Math.round(t*e)}function $S(t,e=Zu){return!Number.isFinite(t)||t<=0||!Number.isFinite(e)||e<=0?0:t/e}function D2(t,e,n=Zu){const r=L2(t,n),i=Math.max(0,r+e);return $S(i,n)}function jS(t,e,n=Zu){const r=L2(t,n),i=L2(e,n);return`${r}f / ${i}f`}function PS(t){return Number.isFinite(t)&&t>0}function H5(t,e){const n=Math.max(0,Number.isFinite(e)?e:0),r=Math.max(0,Number.isFinite(t)?t:0);return n>0?Math.min(r,n):r}function fp(t){if(!t)return 0;try{const e=Number(t.getDuration());return PS(e)?e:0}catch{return 0}}function WT(t){return{now:()=>t.performance.now(),requestAnimationFrame:e=>t.requestAnimationFrame(e),cancelAnimationFrame:e=>t.cancelAnimationFrame(e)}}function KT(t,e,n,r=()=>1){var y;const i=Math.max(0,Number.isFinite(e)?e:0);let l=H5(Number(((y=t.getTime)==null?void 0:y.call(t))??0),i),s=!1,c=0,u=l,h=n.now();const g=v=>{var w;if(l=H5(v,i),typeof t.renderSeek=="function"){t.renderSeek(l);return}(w=t.seek)==null||w.call(t,l)},O=()=>{c&&(n.cancelAnimationFrame(c),c=0)},x=v=>{if(!s)return;const w=Math.max(.1,Number(r())||1),A=(v-h)/1e3*w;if(g(u+A),l>=i){s=!1,c=0;return}c=n.requestAnimationFrame(x)};return{play:()=>{s||i<=0||(l>=i&&g(0),s=!0,u=l,h=n.now(),O(),c=n.requestAnimationFrame(x))},pause:()=>{s=!1,O()},seek:(v,w)=>{if(g(v),w!=null&&w.keepPlaying){s&&(u=l,h=n.now());return}s=!1,O()},getTime:()=>l,getDuration:()=>i,isPlaying:()=>s}}function X5(t){return{play:()=>t.play(),pause:()=>t.pause(),seek:(e,n)=>{const r=!(n!=null&&n.keepPlaying);r&&t.pause(),t.seek(e),r&&t.pause()},getTime:()=>t.time(),getDuration:()=>t.duration(),isPlaying:()=>t.isActive()}}function z5(t){if(!t)return 0;const e=Number.parseFloat(t.getAttribute("data-duration")??"")||Number.parseFloat(t.getAttribute("data-hf-authored-duration")??"");return PS(e)?e:0}function JT(t){if(!t)return 0;const e=z5(t.querySelector("[data-composition-id]"));if(e>0)return e;let n=0;for(const r of Array.from(t.querySelectorAll("[data-start]"))){const i=Number.parseFloat(r.getAttribute("data-start")??""),l=z5(r);!Number.isFinite(i)||i<0||l<=0||(n=Math.max(n,i+l))}return n}function H2(t){var n;const e=((n=t.ownerDocument.defaultView)==null?void 0:n.HTMLElement)??globalThis.HTMLElement;return typeof e<"u"&&t instanceof e}function QS(t){const e=t.ownerDocument.defaultView??window,n=e.HTMLMediaElement??globalThis.HTMLMediaElement,r=e.HTMLImageElement??globalThis.HTMLImageElement;if(t instanceof n||t instanceof r)return t;const i=t.querySelector("video, audio, img");return i instanceof n||i instanceof r?i:null}function ZS(t,e){const n=e.getAttribute("data-playback-start")?"playback-start":e.getAttribute("data-media-start")?"media-start":void 0,r=e.getAttribute("data-playback-start")??e.getAttribute("data-media-start");if(r!=null){const O=parseFloat(r);Number.isFinite(O)&&(t.playbackStart=O)}n&&(t.playbackStartAttr=n);const i=QS(e);if(!i)return;t.tag=i.tagName.toLowerCase();const l=i.getAttribute("src");l&&(t.src=l);const c=(i.ownerDocument.defaultView??window).HTMLMediaElement??globalThis.HTMLMediaElement;if(typeof c>"u"||!(i instanceof c))return;const u=e.getAttribute("data-source-duration")??i.getAttribute("data-source-duration"),h=u?parseFloat(u):i.duration;Number.isFinite(h)&&h>0&&(t.sourceDuration=h);const g=i.defaultPlaybackRate;Number.isFinite(g)&&g>0&&(t.playbackRate=g)}function Nu(t){var i,l,s;const e=(i=t.label)==null?void 0:i.trim();if(e)return e;const n=(l=t.id)==null?void 0:l.trim();if(n)return n;const r=(s=t.tag)==null?void 0:s.trim().toLowerCase();return r?`${r} clip`:"Timeline clip"}const e$=new Set(["base","link","meta","noscript","script","style","template"]);function F5(t){return t.trim().replace(/[_-]+/g," ").replace(/\s+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function t$(t){const e=t.getAttribute("data-timeline-label")??t.getAttribute("data-label")??t.getAttribute("aria-label");if(e!=null&&e.trim())return e.trim();if(t.id.trim())return F5(t.id);const n=t.className.split(/\s+/).filter(Boolean),r=n.find(i=>i!=="clip")??n[0];return r?F5(r):Nu({tag:t.tagName})}function Ul(t){if(H2(t)&&t.id)return`#${t.id}`;const e=t.getAttribute("data-composition-id");if(e)return`[data-composition-id="${e}"]`;if(H2(t)){const n=t.className.split(/\s+/).filter(Boolean),r=n.find(i=>i!=="clip")??n[0];if(r)return`.${r}`}}function au(t){var n;const e=(n=t.parentElement)==null?void 0:n.closest("[data-composition-id]");return(e==null?void 0:e.getAttribute("data-composition-file"))??(e==null?void 0:e.getAttribute("data-composition-src"))??void 0}function lu(t,e,n){if(!(!n||n.startsWith("#")||n.startsWith("[data-composition-id=")))try{const i=Array.from(t.querySelectorAll(n)).indexOf(e);return i>=0?i:void 0}catch{return}}function X2(t){const e=t.sourceFile??"index.html";return t.domId?`${e}#${t.domId}`:t.selector?`${e}:${t.selector}:${t.selectorIndex??0}`:`${e}:${t.id}:${t.fallbackIndex}`}function su(t){var r;const e=((r=t.preferredId)==null?void 0:r.trim())||X2({id:t.label,fallbackIndex:t.fallbackIndex,domId:t.domId,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:t.sourceFile}),n=X2({id:e,fallbackIndex:t.fallbackIndex,domId:t.domId,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:t.sourceFile});return{id:e,key:n}}function z2(t){return t.key??t.id}function n$(t){const e=t.querySelector("[data-composition-id]");return Array.from(t.querySelectorAll("[data-start]")).filter(n=>n!==e)}function B5(t,e){return Math.abs(t-e)<.001}function r$(t,e){var s;const n=(s=e.tagName)==null?void 0:s.toLowerCase();if(n&&t.tagName.toLowerCase()!==n)return!1;const r=Number.parseFloat(t.getAttribute("data-start")??"");if(Number.isFinite(r)&&!B5(r,e.start))return!1;const i=Number.parseFloat(t.getAttribute("data-duration")??"");if(Number.isFinite(i)&&!B5(i,e.duration))return!1;const l=Number.parseInt(t.getAttribute("data-track-index")??"",10);return!(Number.isFinite(l)&&l!==e.track)}function i$(t,e){return t.getElementById(e)??t.querySelector(`[data-composition-id="${e}"]`)??t.querySelector(`.${e}`)??null}function a$(t,e,n,r=new Set){const i=e.id?i$(t,e.id):null;if(i&&!r.has(i))return i;const l=n$(t).filter(c=>!r.has(c)),s=l.find(c=>r$(c,e));return s||(l[n]??null)}function l$(t,e){if(!H2(e)||e.parentElement!==t)return!1;const n=e.tagName.toLowerCase();return e$.has(n)||e.hasAttribute("data-start")||e.hasAttribute("data-track-index")?!1:!!Ul(e)}function s$(t,e){t.documentElement&&(t.documentElement.style.overflow="hidden",t.documentElement.style.margin="0"),t.body&&(t.body.style.overflow="hidden",t.body.style.margin="0"),e.scrollTo({top:0,left:0,behavior:"auto"})}function o$(t){const e=/data-composition-id=["']([^"']+)["']/gi,n=new Set,r=Array.from(t.querySelectorAll("style, script"));for(const s of r){const c=s.textContent||"";if(!c)continue;let u;for(;(u=e.exec(c))!==null;){const h=(u[1]||"").trim();h&&n.add(h)}}if(n.size===0)return;const i=new Set,l=Array.from(t.querySelectorAll("[data-composition-id]"));for(const s of l){const c=s.getAttribute("data-composition-id");c&&i.add(c)}for(const s of n){if(s==="root"||i.has(s))continue;const c=t.getElementById(`${s}-layer`)||t.getElementById(`${s}-comp`)||t.getElementById(s);c&&(c.getAttribute("data-composition-id")||c.setAttribute("data-composition-id",s))}}function c$(t){return t instanceof HTMLElement}function NS(t){const e=t.getRootNode();return typeof ShadowRoot<"u"&&e instanceof ShadowRoot&&c$(e.host)?e.host:null}function RS(t,e,n){var r;(r=t.contentWindow)==null||r.postMessage({source:"hf-parent",type:"control",action:e,...n},"*")}function VS(t,e){return t||e>1}function u$(t,e){if(t)try{const n=NS(t);if(n&&typeof n.muted=="boolean"){n.muted=e;return}RS(t,"set-muted",{muted:e})}catch(n){console.warn("[useTimelinePlayer] Failed to set preview media mute state",n)}}function f$(t,e){if(!t)return;const n=Number.isFinite(e)&&e>0?e:1;try{const r=NS(t);if(r&&typeof r.playbackRate=="number"){r.playbackRate=n;return}RS(t,"set-playback-rate",{playbackRate:n})}catch(r){console.warn("[useTimelinePlayer] Failed to set preview playback rate",r)}}function d$(t,e,n,r){const i=new Set(n.map(O=>O.id)),l=t.querySelector("[data-composition-id]"),s=l==null?void 0:l.getAttribute("data-composition-id"),c=t.querySelectorAll("[data-composition-id][data-start]"),u=[];c.forEach(O=>{var L,V,z,q,U,K,D,G,H;const x=O,y=x.getAttribute("data-composition-id");if(!y||y===s||i.has(x.id)||i.has(y))return;const v=x.getAttribute("data-start")??"0";let w=parseFloat(v);if(isNaN(w)){const F=t.getElementById(v)||t.querySelector(`[data-composition-id="${v}"]`);if(F){const I=F.getAttribute("data-start")??"0";let P=parseFloat(I);if(isNaN(P)){const Y=t.getElementById(I)||t.querySelector(`[data-composition-id="${I}"]`),J=parseFloat((Y==null?void 0:Y.getAttribute("data-start"))??"0")||0,ne=Y==null?void 0:Y.getAttribute("data-composition-id"),B=parseFloat((Y==null?void 0:Y.getAttribute("data-duration"))??"")||(ne?((z=(V=(L=e.__timelines)==null?void 0:L[ne])==null?void 0:V.duration)==null?void 0:z.call(V))??0:0);P=J+B}const Z=F.getAttribute("data-composition-id"),X=parseFloat(F.getAttribute("data-duration")??"")||(Z?((K=(U=(q=e.__timelines)==null?void 0:q[Z])==null?void 0:U.duration)==null?void 0:K.call(U))??0:0);w=P+X}else w=0}let A=parseFloat(x.getAttribute("data-duration")??"");if((isNaN(A)||A<=0)&&(A=((H=(G=(D=e.__timelines)==null?void 0:D[y])==null?void 0:G.duration)==null?void 0:H.call(G))??0),!Number.isFinite(A)||A<=0||(Number.isFinite(w)||(w=0),Number.isFinite(r)&&r>0&&(w>=r||(A=Math.min(A,Math.max(0,r-w)),A<=0))))return;const k=x.getAttribute("data-track-index"),C=k!=null?parseInt(k,10):0,T=x.getAttribute("data-composition-src")||x.getAttribute("data-composition-file"),$=Ul(x),M=au(x),j=lu(t,x,$),E=Nu({id:x.id||y||null,label:x.getAttribute("data-timeline-label")??x.getAttribute("data-label"),tag:x.tagName}),N=su({preferredId:x.id||y||null,label:E,fallbackIndex:u.length,domId:x.id||void 0,selector:$,selectorIndex:j,sourceFile:M}),R={id:N.id,label:E,key:N.key,tag:x.tagName.toLowerCase(),start:w,duration:A,track:isNaN(C)?0:C,domId:x.id||void 0,selector:$,selectorIndex:j,sourceFile:M};if(T)R.compositionSrc=T;else{const F=x.querySelector("video[src]");F&&(R.src=F.getAttribute("src")||void 0,R.tag="video")}u.push(R)});let h=!1;const g=n.map(O=>{if(O.compositionSrc)return O;const x=t.getElementById(O.id)??t.querySelector(`[data-composition-id="${O.id}"]`);if(!x)return O;const y=x.getAttribute("data-composition-src")||x.getAttribute("data-composition-file");return y?(h=!0,{...O,compositionSrc:y}):O});return{missing:u,updatedEls:g,patched:h}}const Y5=t=>{let e;const n=new Set,r=(h,g)=>{const O=typeof h=="function"?h(e):h;if(!Object.is(O,e)){const x=e;e=g??(typeof O!="object"||O===null)?O:Object.assign({},e,O),n.forEach(y=>y(e,x))}},i=()=>e,c={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h))},u=e=t(r,i,c);return c},h$=(t=>t?Y5(t):Y5),m$=t=>t;function p$(t,e=m$){const n=O1.useSyncExternalStore(t.subscribe,O1.useCallback(()=>e(t.getState()),[t,e]),O1.useCallback(()=>e(t.getInitialState()),[t,e]));return O1.useDebugValue(n),n}const I5=t=>{const e=h$(t),n=r=>p$(e,r);return Object.assign(n,e),n},_S=(t=>t?I5(t):I5),LS="hf-studio-ui-preferences";function q5(t){return typeof t=="object"&&t!==null}function DS(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function HS(t){if(!t)return{};try{const e=t.getItem(LS);if(!e)return{};const n=JSON.parse(e);if(!q5(n))return{};const r={};if(typeof n.leftCollapsed=="boolean"&&(r.leftCollapsed=n.leftCollapsed),typeof n.timelineVisible=="boolean"&&(r.timelineVisible=n.timelineVisible),typeof n.playbackRate=="number"&&Number.isFinite(n.playbackRate)&&(r.playbackRate=n.playbackRate),typeof n.audioMuted=="boolean"&&(r.audioMuted=n.audioMuted),q5(n.previewZoom)){const{zoomPercent:i,panX:l,panY:s}=n.previewZoom;typeof i=="number"&&Number.isFinite(i)&&typeof l=="number"&&Number.isFinite(l)&&typeof s=="number"&&Number.isFinite(s)&&(r.previewZoom={zoomPercent:i,panX:l,panY:s})}return Array.isArray(n.recentBlocks)&&(r.recentBlocks=n.recentBlocks.filter(i=>typeof i=="string")),typeof n.snapEnabled=="boolean"&&(r.snapEnabled=n.snapEnabled),typeof n.gridVisible=="boolean"&&(r.gridVisible=n.gridVisible),typeof n.gridSpacing=="number"&&Number.isFinite(n.gridSpacing)&&(r.gridSpacing=n.gridSpacing),typeof n.snapToGrid=="boolean"&&(r.snapToGrid=n.snapToGrid),r}catch{return{}}}function ul(t=DS()){return HS(t)}function ho(t,e=DS()){if(e)try{const n={...HS(e),...t};e.setItem(LS,JSON.stringify(n))}catch{}}const dp=new Set,zr={notify:t=>dp.forEach(e=>e(t)),subscribe:t=>(dp.add(t),()=>dp.delete(t))},fe=_S(t=>({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,playbackRate:ul().playbackRate??1,audioMuted:ul().audioMuted??!1,loopEnabled:!1,zoomMode:"fit",manualZoomPercent:100,inPoint:null,outPoint:null,selectedKeyframes:new Set,toggleSelectedKeyframe:e=>t(n=>{const r=new Set(n.selectedKeyframes);return r.has(e)?r.delete(e):r.add(e),{selectedKeyframes:r}}),clearSelectedKeyframes:()=>t({selectedKeyframes:new Set}),keyframeCache:new Map,setKeyframeCache:(e,n)=>t(r=>{const i=new Map(r.keyframeCache);return n?i.set(e,n):i.delete(e),{keyframeCache:i}}),requestedSeekTime:null,requestSeek:e=>t({requestedSeekTime:e}),clearSeekRequest:()=>t({requestedSeekTime:null}),setIsPlaying:e=>t({isPlaying:e}),setPlaybackRate:e=>{ho({playbackRate:e}),t({playbackRate:e})},setAudioMuted:e=>{ho({audioMuted:e}),t({audioMuted:e})},setLoopEnabled:e=>t({loopEnabled:e}),setZoomMode:e=>t({zoomMode:e}),setInPoint:e=>t(n=>{const r=e!==null&&Number.isFinite(e)?e:null;return{inPoint:r,outPoint:r!==null&&n.outPoint!==null&&r>=n.outPoint?null:n.outPoint,loopEnabled:r!==null?!0:n.loopEnabled}}),setOutPoint:e=>t(n=>{const r=e!==null&&Number.isFinite(e)?e:null;return{outPoint:r,inPoint:r!==null&&n.inPoint!==null&&r<=n.inPoint?null:n.inPoint,loopEnabled:r!==null?!0:n.loopEnabled}}),setManualZoomPercent:e=>t({manualZoomPercent:Math.max(10,Math.min(2e3,Math.round(e)))}),setCurrentTime:e=>t({currentTime:Number.isFinite(e)?e:0}),setDuration:e=>t({duration:Number.isFinite(e)?e:0}),setTimelineReady:e=>t({timelineReady:e}),setElements:e=>t({elements:e}),setSelectedElementId:e=>t({selectedElementId:e}),updateElement:(e,n)=>t(r=>({elements:r.elements.map(i=>(i.key??i.id)===e?{...i,...n}:i)})),reset:()=>t({isPlaying:!1,currentTime:0,duration:0,timelineReady:!1,elements:[],selectedElementId:null,inPoint:null,outPoint:null,selectedKeyframes:new Set,keyframeCache:new Map})})),XS="phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx",zS="https://us.i.posthog.com",g$=3e4,O$=5e3;let ql=[],qc=null,Ds=null;function FS(){if(Ds)return Ds;try{const t=localStorage.getItem("hf-studio-anon-id");if(t)return Ds=t,t}catch{}Ds=crypto.randomUUID();try{localStorage.setItem("hf-studio-anon-id",Ds)}catch{}return Ds}function x$(){try{return localStorage.getItem("hf-studio-telemetry-opt-out")!=="1"}catch{return!0}}function y$(){var t,e;return{studio_version:"0.6.80",screen_width:(t=window.screen)==null?void 0:t.width,screen_height:(e=window.screen)==null?void 0:e.height,viewport_width:window.innerWidth,viewport_height:window.innerHeight,user_agent:navigator.userAgent,url_hash:location.hash.replace(/#project\//,"")}}function _t(t,e={}){x$()&&(ql.push({event:`studio:${t}`,properties:{...y$(),...e},timestamp:new Date().toISOString()}),qc||(qc=setInterval(b$,g$)))}async function b$(){if(ql.length===0)return;const t=ql.map(r=>({event:r.event,properties:{...r.properties,$ip:null},distinct_id:FS(),timestamp:r.timestamp}));ql=[];const e=new AbortController,n=setTimeout(()=>e.abort(),O$);try{await fetch(`${zS}/batch/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:XS,batch:t}),signal:e.signal})}catch{}finally{clearTimeout(n)}}typeof window<"u"&&window.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){if(qc&&(clearInterval(qc),qc=null),ql.length===0)return;const t=ql.map(n=>({event:n.event,properties:{...n.properties,$ip:null},distinct_id:FS(),timestamp:n.timestamp}));ql=[];const e=JSON.stringify({api_key:XS,batch:t});try{navigator.sendBeacon(`${zS}/batch/`,e)}catch{}}});const v$=[{title:"Playback",hints:[{key:"Space",label:"Play / Pause"},{key:"J",label:"Play backward"},{key:"K",label:"Stop"},{key:"L",label:"Play forward"},{key:"M",label:"Toggle mute"},{key:"⇧L",label:"Toggle loop"},{key:"←/→",label:"Step 1 frame"},{key:"⇧←/⇧→",label:"Step 10 frames"},{key:"F",label:"Toggle fullscreen"}]},{title:"Work area",hints:[{key:"I",label:"Set in-point"},{key:"⇧I",label:"Clear in-point"},{key:"O",label:"Set out-point"},{key:"⇧O",label:"Clear out-point"},{key:"A",label:"Jump to in-point"},{key:"E",label:"Jump to out-point"}]}],S$=d.memo(function({disabled:e,duration:n,inPoint:r,outPoint:i,setInPoint:l,setOutPoint:s,onSeek:c}){const[u,h]=d.useState(!1),[g,O]=d.useState(""),x=d.useRef(null);d.useEffect(()=>{if(!u)return;const A=k=>{x.current&&!x.current.contains(k.target)&&h(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[u]);const y=d.useCallback(()=>{if(e)return;const A=Number.parseInt(g,10);!Number.isFinite(A)||n<=0||c(Math.min(n,$S(Math.max(0,A))))},[e,n,g,c]),v=d.useCallback(A=>{A.preventDefault(),y()},[y]),w=d.useCallback(A=>{A.key==="Enter"&&(A.preventDefault(),y())},[y]);return m.jsxs("div",{ref:x,className:"relative flex-shrink-0",children:[m.jsx(Yt,{label:"Shortcuts and tools",children:m.jsx("button",{type:"button",onClick:()=>h(A=>!A),className:`w-6 h-6 flex items-center justify-center rounded border transition-colors ${u?"border-neutral-600 text-neutral-200 bg-neutral-800":"border-neutral-800 text-neutral-600 hover:text-neutral-300 hover:border-neutral-600"}`,"aria-label":"Shortcuts and tools","aria-expanded":u,children:m.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),m.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M6 12h.01M10 12h.01M14 12h.01M18 12h.01M8 16h8"})]})})}),u&&m.jsxs("div",{className:"absolute bottom-full right-0 mb-2 z-50 rounded-lg shadow-xl min-w-[220px] overflow-y-auto",style:{background:"#161618",border:"1px solid rgba(255,255,255,0.08)",maxHeight:"min(280px, calc(100vh - 80px))"},children:[m.jsxs("div",{className:"px-3 pt-3 pb-2.5",children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:"Jump to frame"}),m.jsxs("form",{onSubmit:v,className:"flex items-center gap-1.5",children:[m.jsx("input",{value:g,onChange:A=>O(A.target.value),disabled:e,inputMode:"numeric",pattern:"[0-9]*","aria-label":"Jump to frame",placeholder:"frame number",className:"h-6 flex-1 rounded border border-neutral-700 bg-neutral-900 px-2 text-[10px] font-mono tabular-nums text-neutral-200 outline-none transition-colors placeholder:text-neutral-600 focus:border-studio-accent/60",onKeyDown:w,onBlur:y}),m.jsx(Yt,{label:"Jump to frame",children:m.jsx("button",{type:"submit",disabled:e,className:"h-6 px-2 rounded border border-neutral-700 text-[10px] text-neutral-300 transition-colors hover:border-neutral-500 hover:bg-neutral-800 disabled:opacity-40",children:"Go"})})]})]}),m.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)"}}),m.jsxs("div",{className:"px-3 pt-2.5 pb-2",children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:"Work area"}),m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[20px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:"I"}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:"In-point"})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:r!==null?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-[10px] text-neutral-300",children:yn(r)}),m.jsx(Yt,{label:"Clear in-point",children:m.jsx("button",{type:"button",onClick:()=>l(null),className:"w-4 h-4 flex items-center justify-center rounded text-neutral-500 hover:text-neutral-200 transition-colors","aria-label":"Clear in-point",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})})]}):m.jsx("span",{className:"text-[10px] text-neutral-600",children:"—"})})]}),m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[20px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:"O"}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:"Out-point"})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:i!==null?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-mono text-[10px] text-neutral-300",children:yn(i)}),m.jsx(Yt,{label:"Clear out-point",children:m.jsx("button",{type:"button",onClick:()=>s(null),className:"w-4 h-4 flex items-center justify-center rounded text-neutral-500 hover:text-neutral-200 transition-colors","aria-label":"Clear out-point",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})})]}):m.jsx("span",{className:"text-[10px] text-neutral-600",children:"—"})})]})]})]}),m.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)"}}),m.jsx("div",{className:"px-3 pt-2.5 pb-3 flex flex-col gap-3",children:v$.map(A=>m.jsxs("div",{children:[m.jsx("p",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider mb-1.5",children:A.title}),m.jsx("div",{className:"flex flex-col gap-1",children:A.hints.map(k=>m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"font-mono text-[10px] rounded border border-neutral-700 px-1.5 py-0.5 text-neutral-300 min-w-[36px] text-center",style:{background:"rgba(255,255,255,0.05)"},children:k.key}),m.jsx("span",{className:"text-[10px] text-neutral-400",children:k.label})]},k.key))})]},A.title))})]})]})}),w$=[.25,.5,1,1.5,2],k$=d.memo(function({playbackRate:e,setPlaybackRate:n,disabled:r}){const[i,l]=d.useState(!1),s=d.useRef(null);return d.useEffect(()=>{if(!i)return;const c=u=>{s.current&&!s.current.contains(u.target)&&l(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[i]),m.jsxs("div",{ref:s,className:"relative flex-shrink-0",children:[m.jsx(Yt,{label:"Playback speed",children:m.jsx("button",{type:"button",onClick:()=>l(c=>!c),disabled:r,className:"w-10 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:e===1?"1x":`${e}x`})}),i&&m.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:w$.map(c=>m.jsxs("button",{onClick:()=>{_t("playback",{action:"speed_change",rate:c}),n(c),l(!1)},className:"block w-full px-3 py-1.5 text-[11px] text-left font-mono tabular-nums transition-colors",style:{color:c===e?"#FAFAFA":"#71717A",background:c===e?"rgba(255,255,255,0.06)":"transparent"},onMouseEnter:u=>{c!==e&&(u.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:u=>{c!==e&&(u.currentTarget.style.background="transparent")},children:[c,"x"]},c))})]})}),A$=8;function G5(t,e,n){if(!Number.isFinite(n)||n<=0)return 0;const r=(t-e)/n,i=Math.max(0,Math.min(1,r)),l=Math.min(.5,A$/n);return i<=l?0:i>=1-l?1:i}function y1(t,e,n){t.current&&(t.current.style.width=`${n}%`),e.current&&(e.current.style.left=`${n}%`)}function M$(t,e,n,r){const i=d.useCallback(s=>{if(n)return;const c=t.seekBarRef.current;if(!c||r<=0)return;const u=c.getBoundingClientRect(),h=G5(s,u.left,u.width);y1(t.progressFillRef,t.progressThumbRef,h*100),e(h*r)},[n,r,e,t]),l=d.useCallback(s=>{if(s.button!==0)return;s.preventDefault(),s.currentTarget.focus(),t.isDraggingRef.current=!0;const c=s.currentTarget,u=s.pointerId;try{c.setPointerCapture(u)}catch{}i(s.clientX);let h=0,g=s.clientX;const O=w=>{if(w.pointerId!==u||!t.isDraggingRef.current)return;g=w.clientX;const A=t.seekBarRef.current,k=t.durationRef.current;if(A&&k>0){const C=A.getBoundingClientRect(),T=G5(w.clientX,C.left,C.width)*100;y1(t.progressFillRef,t.progressThumbRef,T)}h||(h=requestAnimationFrame(()=>{h=0,t.isDraggingRef.current&&i(g)}))},x=()=>{t.isDraggingRef.current=!1,h&&(cancelAnimationFrame(h),h=0),i(g);try{c.releasePointerCapture(u)}catch{}c.removeEventListener("pointermove",O),c.removeEventListener("pointerup",y),c.removeEventListener("pointercancel",y),window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),document.removeEventListener("visibilitychange",v),window.removeEventListener("blur",x),c.blur()},y=w=>{w.pointerId===u&&x()},v=()=>{document.visibilityState==="hidden"&&x()};c.addEventListener("pointermove",O),c.addEventListener("pointerup",y),c.addEventListener("pointercancel",y),window.addEventListener("pointerup",y),window.addEventListener("pointercancel",y),document.addEventListener("visibilitychange",v),window.addEventListener("blur",x)},[i,t]);return Xt(()=>{const s=h=>{t.currentTimeRef.current=h;const g=t.durationRef.current,O=g>0?Math.min(100,h/g*100):0;y1(t.progressFillRef,t.progressThumbRef,O),t.timeDisplayRef.current&&(t.timeDisplayRef.current.textContent=t.timeDisplayModeRef.current==="frame"?jS(h,g):yn(h)),t.sliderRef.current&&t.sliderRef.current.setAttribute("aria-valuenow",String(Math.round(h)))},c=zr.subscribe(s);s(fe.getState().currentTime);const u=setInterval(()=>{const h=fe.getState().currentTime,g=fe.getState().duration;g>0&&h>0&&y1(t.progressFillRef,t.progressThumbRef,Math.min(100,h/g*100))},500);return()=>{c(),clearInterval(u)}}),{handlePointerDown:l}}function C$(){return m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:m.jsx("polygon",{points:"6,3 20,12 6,21"})})}function E$(){return m.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#FAFAFA","aria-hidden":"true",children:[m.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),m.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})}const T$=d.memo(function({audioMuted:e,audioAutoMuted:n,effectiveAudioMuted:r,controlsDisabled:i,setAudioMuted:l}){const s=n?"Audio muted above 1x speed":e?"Unmute audio":"Mute audio";return m.jsx(Yt,{label:s,children:m.jsx("button",{type:"button",onClick:()=>{n||(_t("playback",{action:"mute_toggle",muted:!e}),l(!e))},disabled:i||n,"aria-label":s,"aria-pressed":r,className:`h-7 w-7 flex-shrink-0 flex items-center justify-center rounded-md border transition-colors disabled:pointer-events-none ${r?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"} ${n?"opacity-70":""}`,children:m.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M11 5 6 9H3v6h3l5 4V5Z"}),r?m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"m19 9-6 6"}),m.jsx("path",{d:"m13 9 6 6"})]}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M15.5 8.5a5 5 0 0 1 0 7"}),m.jsx("path",{d:"M18.5 5.5a9 9 0 0 1 0 13"})]})]})})})}),$$=d.memo(function({loopEnabled:e,disabled:n,setLoopEnabled:r}){return m.jsx(Yt,{label:"Loop playback",children:m.jsx("button",{type:"button",onClick:()=>{_t("playback",{action:"loop_toggle",enabled:!e}),r(!e)},disabled:n,className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors ${e?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"}`,"aria-label":e?"Disable loop playback":"Enable loop playback","aria-pressed":e,children:m.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M17 2l4 4-4 4"}),m.jsx("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),m.jsx("path",{d:"M7 22l-4-4 4-4"}),m.jsx("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"})]})})})}),j$=d.memo(function({isFullscreen:e,onToggleFullscreen:n}){return m.jsx(Yt,{label:e?"Exit fullscreen (F)":"Enter fullscreen (F)",children:m.jsx("button",{type:"button",onClick:()=>{_t("playback",{action:"fullscreen_toggle",active:!e}),n()},className:`h-7 w-7 flex-shrink-0 flex items-center justify-center rounded-md border transition-colors ${e?"text-studio-accent bg-studio-accent/10 border-studio-accent/30":"border-neutral-700 text-neutral-400 hover:border-neutral-500 hover:bg-neutral-800"}`,"aria-label":e?"Exit fullscreen":"Enter fullscreen",children:m.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e?m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})})})})});function U5({position:t,duration:e}){return e<=0?null:m.jsx("div",{className:"absolute z-[3] pointer-events-none",style:{left:`${Math.min(100,t/e*100)}%`,top:"50%",transform:"translate(-50%, -50%)",width:"2px",height:"10px",background:"#3CE6AC",borderRadius:"1px"}})}function P$({inPoint:t,outPoint:e,duration:n}){return t===null&&e===null||n<=0?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${t!==null?Math.min(100,t/n*100):0}%`,right:`${e!==null?100-Math.min(100,e/n*100):0}%`,background:"rgba(60,230,172,0.15)"}}),t!==null&&m.jsx(U5,{position:t,duration:n}),e!==null&&m.jsx(U5,{position:e,duration:n})]})}const Q$=d.memo(function({disabled:e,duration:n,inPoint:r,outPoint:i,progressFillRef:l,progressThumbRef:s,seekBarRef:c,sliderRef:u,onPointerDown:h,onKeyDown:g}){return m.jsx("div",{ref:O=>{c.current=O,u.current=O},role:"slider",tabIndex:e?-1:0,"aria-label":"Seek","aria-disabled":e||void 0,"aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":0,className:`min-w-[96px] flex-1 h-6 flex items-center group outline-none focus-visible:ring-1 focus-visible:ring-white/30 focus-visible:rounded ${e?"cursor-not-allowed opacity-50":"cursor-pointer"}`,style:{touchAction:"none"},onPointerDown:h,onKeyDown:g,children:m.jsxs("div",{className:"w-full rounded-full relative",style:{background:"rgba(255,255,255,0.15)",height:"3px"},children:[m.jsx(P$,{inPoint:r,outPoint:i,duration:n}),m.jsx("div",{ref:l,className:"absolute top-0 bottom-0 left-0 z-[1] rounded-full",style:{background:"linear-gradient(90deg, var(--hf-accent, #3CE6AC), #2BBFA0)"}}),m.jsx("div",{ref:s,className:"absolute top-1/2 z-[4] 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)"}})]})})}),Z$=d.memo(function({onTogglePlay:e,onSeek:n,disabled:r=!1,isFullscreen:i=!1,onToggleFullscreen:l}){const s=fe(F=>F.isPlaying),c=fe(F=>F.duration),u=fe(F=>F.timelineReady),h=fe(F=>F.playbackRate),g=fe(F=>F.audioMuted),O=fe(F=>F.loopEnabled),x=fe.getState().setPlaybackRate,y=fe.getState().setAudioMuted,v=fe.getState().setLoopEnabled,w=fe(F=>F.inPoint),A=fe(F=>F.outPoint),k=fe.getState().setInPoint,C=fe.getState().setOutPoint,[T,$]=d.useState("time"),M=d.useRef(null),j=d.useRef(null),E=d.useRef(null),N=d.useRef(null),R=d.useRef(null),L=d.useRef(!1),V=d.useRef(0),z=d.useRef(T);z.current=T;const q=d.useRef(c);q.current=c;const U=r||!u,K=h>1,D=VS(g,h);d.useEffect(()=>{if(!E.current)return;const F=V.current;E.current.textContent=T==="frame"?jS(F,c):yn(F)},[c,T]);const{handlePointerDown:G}=M$({seekBarRef:N,progressFillRef:M,progressThumbRef:j,sliderRef:R,timeDisplayRef:E,isDraggingRef:L,durationRef:q,currentTimeRef:V,timeDisplayModeRef:z},n,r,c),H=d.useCallback(F=>{if(r||!u||c<=0)return;const I=F.shiftKey?10:1;F.key==="ArrowLeft"?(F.preventDefault(),n(D2(V.current,-I))):F.key==="ArrowRight"&&(F.preventDefault(),n(Math.min(c,D2(V.current,I))))},[r,u,c,n]);return m.jsxs("div",{className:"px-4 py-2 flex flex-wrap items-center gap-x-2 gap-y-1","aria-disabled":r||void 0,style:{borderTop:"1px solid rgba(255,255,255,0.04)",paddingBottom:"calc(0.5rem + env(safe-area-inset-bottom))"},children:[m.jsx(Yt,{label:s?"Pause":"Play",children:m.jsx("button",{type:"button","aria-label":s?"Pause":"Play",onClick:()=>{_t("playback",{action:s?"pause":"play"}),e()},disabled:U,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:s?m.jsx(E$,{}):m.jsx(C$,{})})}),m.jsx(Yt,{label:T==="time"?"Switch to frame display":"Switch to time display",children:m.jsxs("button",{type:"button",onClick:()=>$(F=>F==="time"?"frame":"time"),disabled:r,className:"font-mono text-[11px] tabular-nums flex-shrink-0 w-[118px] text-left transition-colors disabled:pointer-events-none hover:opacity-80",style:{color:"#A1A1AA",cursor:"pointer"},children:[m.jsx("span",{ref:E,children:yn(0)}),T==="time"?m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{color:"#3F3F46",margin:"0 2px"},children:"/"}),m.jsx("span",{style:{color:"#52525B"},children:yn(c)})]}):null]})}),m.jsx(Q$,{disabled:r,duration:c,inPoint:w,outPoint:A,progressFillRef:M,progressThumbRef:j,seekBarRef:N,sliderRef:R,onPointerDown:G,onKeyDown:H}),m.jsx(T$,{audioMuted:g,audioAutoMuted:K,effectiveAudioMuted:D,controlsDisabled:U,setAudioMuted:y}),m.jsx(k$,{playbackRate:h,setPlaybackRate:x,disabled:r}),m.jsx($$,{loopEnabled:O,disabled:r,setLoopEnabled:v}),l&&m.jsx(j$,{isFullscreen:i,onToggleFullscreen:l}),m.jsx(S$,{disabled:r,duration:c,inPoint:w,outPoint:A,setInPoint:k,setOutPoint:C,onSeek:n})]})}),W5=100;function qs(t){return Math.round(t*W5)/W5}function ou(t,e,n){return Math.min(Math.max(t,e),n)}const K5=.55,b1=40,J5=12;function ey(t,e,n){const r=(i,l,s)=>{if(s<i+b1){const c=Math.max(0,1-(s-i)/b1);return-Math.round(J5*c)}if(s>l-b1){const c=Math.max(0,1-(l-s)/b1);return Math.round(J5*c)}return 0};return{x:r(t.left,t.right,e),y:r(t.top,t.bottom,n)}}function N$(t,e,n){const r=(t.currentScrollLeft??0)-(t.originScrollLeft??0),i=(t.currentScrollTop??0)-(t.originScrollTop??0),l=(e-t.originClientX+r)/Math.max(t.pixelsPerSecond,1),s=(n-t.originClientY+i)/Math.max(t.trackHeight,1),c=Math.round(s),u=Math.max(0,t.trackOrder.indexOf(t.track)),h=u+c,g=ou(h,0,Math.max(0,t.trackOrder.length-1)),O=Math.min(...t.trackOrder),x=Math.max(...t.trackOrder);let y=t.trackOrder[g]??t.track;const v=u===0,w=u===t.trackOrder.length-1;return v&&h<0&&u+s<=-K5?y=O-1:w&&h>t.trackOrder.length-1&&u+s>=t.trackOrder.length-1+K5&&(y=x+1),{start:ou(qs(t.start+l),0,Math.max(0,t.maxStart)),track:y}}function R$(t,e,n){const r=Math.max(.05,t.minDuration??.1),i=(n-t.originClientX)/Math.max(t.pixelsPerSecond,1);if(e==="end"){const y=ou(qs(t.duration+i),r,Math.max(r,t.maxEnd-t.start));return{start:t.start,duration:y,playbackStart:t.playbackStart}}const l=Math.max(.1,t.playbackRate??1),s=t.playbackStart!=null?t.playbackStart/l:Number.POSITIVE_INFINITY,c=-Math.min(t.start-t.minStart,s),u=t.duration-r,h=ou(i,c,u),g=qs(t.start+h),O=qs(t.duration-h),x=t.playbackStart!=null?qs(Math.max(0,t.playbackStart+h*l)):void 0;return{start:g,duration:O,playbackStart:x}}function V$(t){if(t.compositionSrc||t.playbackStartAttr!=null||t.sourceDuration!=null&&Number.isFinite(t.sourceDuration)&&t.sourceDuration>0)return!0;const e=t.tag.toLowerCase();return["video","audio","img"].includes(e)}function _$(t){return!!(t.domId||t.selector)}function ty(t){if(t.timingSource==="implicit"||t.timelineLocked)return{canMove:!1,canTrimStart:!1,canTrimEnd:!1};const e=_$(t),n=Number.isFinite(t.duration)&&t.duration>0,r=V$(t);return{canMove:e&&(r||n),canTrimEnd:e&&n,canTrimStart:e&&n}}function L$(t){if(t.capabilities.canMove)return null;const e=Math.max(0,t.width),n=ou(t.offsetX,0,e),r=Math.max(0,t.handleWidth);return n<=r&&!t.capabilities.canTrimStart?"resize-start":n>=Math.max(0,e-r)&&!t.capabilities.canTrimEnd?"resize-end":"move"}function D$(t,e){return{start:t.start,end:t.start+t.duration,anchorX:e.anchorX,anchorY:e.anchorY}}function H$({rangeStart:t,rangeEnd:e,elements:n,prompt:r}){const i=Math.min(t,e),l=Math.max(t,e),s=n.map(c=>`- #${c.id} (${c.tag}) — ${yn(c.start)} to ${yn(c.start+c.duration)}, track ${c.track}`).join(`
50
50
  `);return`Edit the following HyperFrames composition:
51
51
 
52
52
  Time range: ${yn(i)} — ${yn(l)}
@@ -64,7 +64,7 @@ Preserve all other elements and timing outside this range.`}function ny(t){retur
64
64
  `,r.index),c=(((h=t.slice(l+1,r.index).match(/^(\s*)/))==null?void 0:h[1])??"")+" ",u=e.split(`
65
65
  `).map((g,O)=>O===0?g:c+g).join(`
66
66
  `);return`${t.slice(0,i)}
67
- ${c}${u}${t.slice(i)}`}function Sj({scrollRef:t,ppsRef:e,durationRef:n,trackOrderRef:r,onFileDrop:i,onAssetDrop:l,onBlockDrop:s}){const[c,u]=d.useState(!1),h=d.useCallback(O=>{const x=O.dataTransfer.files.length>0,y=Array.from(O.dataTransfer.types),v=y.includes(B2),w=y.includes(Zf);!x&&!v&&!w||(O.preventDefault(),(v||w)&&(O.dataTransfer.dropEffect="copy"),u(!0))},[]),g=d.useCallback(O=>{O.preventDefault(),u(!1);const x=t.current,y=x==null?void 0:x.getBoundingClientRect(),v={rectLeft:(y==null?void 0:y.left)??0,rectTop:(y==null?void 0:y.top)??0,scrollLeft:(x==null?void 0:x.scrollLeft)??0,scrollTop:(x==null?void 0:x.scrollTop)??0,pixelsPerSecond:e.current,duration:n.current,trackHeight:no,trackOrder:r.current};if(i&&O.dataTransfer.files.length>0){i(Array.from(O.dataTransfer.files),x&&y?mp(v,O.clientX,O.clientY):void 0);return}const w=O.dataTransfer.getData(B2);if(w&&l&&x&&y){try{const k=JSON.parse(w);k.path&&l(k.path,mp(v,O.clientX,O.clientY))}catch{}return}const A=O.dataTransfer.getData(Zf);if(A&&s&&x&&y)try{const k=JSON.parse(A);k.name&&s(k.name,mp(v,O.clientX,O.clientY))}catch{}},[l,s,i,t,e,n,r]);return{isDragOver:c,setIsDragOver:u,handleAssetDragOver:h,handleAssetDrop:g}}function wj({isDragOver:t,onFileDrop:e,onDragOver:n,onDragLeave:r,onDrop:i}){return m.jsxs("div",{className:`h-full border-t bg-[#0a0a0b] flex flex-col select-none transition-colors duration-150 ${t?"border-studio-accent/50 bg-studio-accent/[0.03]":"border-neutral-800/50"}`,onDragOver:n,onDragLeave:r,onDrop:i,children:[m.jsx("div",{className:"flex-shrink-0 border-b border-neutral-800/40 flex items-end relative",style:{height:mo,paddingLeft:pn},children:[0,10,20,30,40,50].map(l=>m.jsxs("div",{className:"flex flex-col items-center",style:{position:"absolute",left:pn+l*14},children:[m.jsx("span",{className:"text-[9px] text-neutral-600 font-mono tabular-nums leading-none mb-0.5",children:`${Math.floor(l/60)}:${(l%60).toString().padStart(2,"0")}`}),m.jsx("div",{className:"w-px h-[5px] bg-neutral-700/40"})]},l))}),m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx("div",{className:`flex items-center gap-3 px-6 py-3 border border-dashed rounded-lg transition-colors duration-150 ${t?"border-studio-accent/60 bg-studio-accent/[0.06]":"border-neutral-700/50"}`,children:t?m.jsxs(m.Fragment,{children:[m.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:[m.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),m.jsx("polyline",{points:"7 10 12 15 17 10"}),m.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),m.jsx("span",{className:"text-[13px] text-studio-accent",children:"Drop media files to import"})]}):m.jsxs(m.Fragment,{children:[m.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:[m.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2"}),m.jsx("path",{d:"M7 2v20"}),m.jsx("path",{d:"M17 2v20"}),m.jsx("path",{d:"M2 7h20"}),m.jsx("path",{d:"M2 17h20"})]}),m.jsx("span",{className:"text-[13px] text-neutral-500",children:e?"Drop media here or describe your video to start":"Describe your video to start creating"})]})})})]})}const dy=d.memo(function({el:e,pps:n,clipY:r,isSelected:i,isHovered:l,isDragging:s=!1,hasCustomContent:c,capabilities:u,theme:h=BS,trackStyle:g,isComposition:O,onHoverStart:x,onHoverEnd:y,onPointerDown:v,onResizeStart:w,onClick:A,onDoubleClick:k,onContextMenu:C,children:T}){const $=e.start*n,M=Math.max(e.duration*n,4),j=Y$({isHovered:l,isSelected:i,isDragging:s}),E=i?g.accent:l?h.clipBorderHover:h.clipBorder,N=s?h.clipShadowDragging:i?`0 0 0 1px ${g.accent}80, 0 0 8px ${g.accent}25`:l?h.clipShadowHover:h.clipShadow,R=e.label||e.id||e.tag,L=j>.01;return m.jsxs("div",{"data-clip":"true",className:c?"absolute overflow-visible":"absolute flex items-center overflow-visible",style:{left:$,width:M,top:r,bottom:r,borderRadius:h.clipRadius,background:g.clip,border:`1px solid ${E}`,boxShadow:N,transition:"border-color 100ms, box-shadow 100ms",zIndex:s?20:i?10:l?5:1,cursor:u.canMove?"grab":"default",transform:s?"translateY(-1px)":void 0,opacity:s?.92:1},title:O?`${e.compositionSrc} • Double-click to open`:`${R} • ${e.start.toFixed(1)}s – ${(e.start+e.duration).toFixed(1)}s`,onPointerEnter:x,onPointerLeave:y,onPointerDown:v,onClick:A,onDoubleClick:k,onContextMenu:C,children:[m.jsx("div",{"aria-hidden":"true",style:{position:"absolute",left:0,top:0,bottom:0,width:3,background:g.accent,opacity:i?.7:.3,borderRadius:`${h.clipRadius} 0 0 ${h.clipRadius}`,zIndex:2,pointerEvents:"none"}}),L&&u.canTrimStart&&m.jsx("div",{"aria-hidden":"true",onPointerDown:V=>w==null?void 0:w("start",V),style:{position:"absolute",left:0,top:0,bottom:0,width:14,cursor:"col-resize",zIndex:4},children:m.jsx("div",{style:{position:"absolute",left:4,top:6,bottom:6,width:2,borderRadius:1,background:g.accent,opacity:j*.6}})}),L&&u.canTrimEnd&&m.jsx("div",{"aria-hidden":"true",onPointerDown:V=>w==null?void 0:w("end",V),style:{position:"absolute",right:0,top:0,bottom:0,width:14,cursor:"col-resize",zIndex:4},children:m.jsx("div",{style:{position:"absolute",right:4,top:6,bottom:6,width:2,borderRadius:1,background:g.accent,opacity:j*.6}})}),T]})}),kj=.8,Aj=d.memo(function({keyframesData:e,clipWidthPx:n,clipHeightPx:r,accentColor:i,isSelected:l,currentPercentage:s,elementId:c,selectedKeyframes:u,onClickKeyframe:h,onShiftClickKeyframe:g,onDragKeyframe:O,onContextMenuKeyframe:x}){const y=d.useRef(null);if(n<20)return null;const v=Math.round(r*kj),w=v/2,A=e.keyframes.slice().sort((M,j)=>M.percentage-j.percentage),k=l?i:"#a3a3a3",C=l?.4:.25,T=(M,j)=>{M.stopPropagation(),M.shiftKey?g==null||g(c,j):h==null||h(j)},$=(M,j)=>{if(M.button!==0)return;M.stopPropagation();const E=M.clientX,N=L=>{const V=L.clientX-E;Math.abs(V)>4&&(y.current={startX:E,startPct:j})},R=L=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",R);const V=y.current;if(y.current=null,!V)return;const q=(L.clientX-V.startX)/n*100,U=Math.max(0,Math.min(100,Math.round(V.startPct+q)));Math.abs(U-V.startPct)>.5&&(O==null||O(V.startPct,U))};document.addEventListener("pointermove",N),document.addEventListener("pointerup",R)};return m.jsxs("div",{className:"absolute inset-0",style:{zIndex:3,pointerEvents:"none"},children:[A.map((M,j)=>{if(j===0)return null;const E=A[j-1],N=E.percentage/100*n,R=M.percentage/100*n;return m.jsx("div",{className:"absolute",style:{left:N,top:"50%",width:R-N,height:2,transform:"translateY(-1px)",background:k,opacity:C,borderRadius:1}},`line-${E.percentage}-${M.percentage}`)}),A.map(M=>{const j=M.percentage/100*n-w,E=`${c}:${M.percentage}`,N=u.has(E),R=l&&Math.abs(M.percentage-s)<.5,L=N||R?i:"#a3a3a3";return m.jsx("button",{type:"button",className:"absolute",style:{left:j,top:"50%",transform:"translateY(-50%)",width:v,height:v,pointerEvents:"auto",background:"none",border:"none",cursor:"pointer",padding:0},onClick:V=>T(V,M.percentage),onPointerDown:V=>$(V,M.percentage),onContextMenu:V=>{V.preventDefault(),V.stopPropagation(),x==null||x(V,c,M.percentage)},title:`${M.percentage}%`,children:m.jsxs("svg",{width:v,height:v,viewBox:"0 0 10 10",children:[N&&m.jsx("path",{d:"M5 0L10 5L5 10L0 5Z",fill:"none",stroke:i,strokeWidth:"0.8",opacity:.5}),m.jsx("path",{d:"M5 1L9 5L5 9L1 5Z",fill:L,opacity:N||R?1:.55})]})},M.percentage)})]})}),Mj=d.memo(function({major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g}){return m.jsxs(m.Fragment,{children:[m.jsx("svg",{className:"absolute pointer-events-none",style:{left:pn,width:i},height:l,children:e.map(O=>{const x=O*r;return m.jsx("line",{x1:x,y1:mo,x2:x,y2:l,stroke:g.tickMinor,strokeWidth:"1"},`g-${O}`)})}),m.jsxs("div",{className:"relative overflow-hidden",style:{height:mo,marginLeft:pn,width:i},children:[u&&!h&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none z-10",children:m.jsx("span",{className:"text-[9px] font-medium",style:{color:g.textSecondary},children:"Drag or click a clip to edit range"})}),n.map(O=>m.jsx("div",{className:"absolute bottom-0",style:{left:O*r},children:m.jsx("div",{className:"w-px h-[3px]",style:{background:g.tickMinor}})},`m-${O}`)),e.map(O=>m.jsxs("div",{className:"absolute bottom-0 flex flex-col items-center",style:{left:O*r},children:[m.jsx("span",{className:"text-[9px] font-mono tabular-nums leading-none mb-0.5",style:{color:g.tickText},children:J$(O,s,c)}),m.jsx("div",{className:"w-px h-[5px]",style:{background:g.tickMajor}})]},`M-${O}`))]})]})}),Cj={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Ej="VITE_STUDIO_ENABLE_PREVIEW_MANUAL_DRAGGING",Tj="VITE_STUDIO_ENABLE_INSPECTOR_PANELS",$j="VITE_STUDIO_ENABLE_MOTION_PANEL",jj=new Set(["1","true","yes","on","enabled"]),Pj=new Set(["0","false","no","off","disabled"]);function Po(t,e,n){for(const r of e){const i=t[r];if(typeof i=="boolean")return i;if(typeof i!="string")continue;const l=i.trim().toLowerCase();if(l){if(jj.has(l))return!0;if(Pj.has(l))return!1}}return n}const Qj=typeof window<"u"?window.__HF_STUDIO_ENV__??{}:{},Qo={...Cj??{},...Qj},Zj=Po(Qo,[Ej,"VITE_STUDIO_PREVIEW_MANUAL_EDITING_ENABLED"],!0),Mn=Po(Qo,[Tj,"VITE_STUDIO_INSPECTOR_PANELS_ENABLED"],!0),M8=Po(Qo,[$j,"VITE_STUDIO_MOTION_PANEL_ENABLED"],!1),pp=Po(Qo,["VITE_STUDIO_ENABLE_BLOCKS_PANEL","VITE_STUDIO_BLOCKS_PANEL_ENABLED"],!0),Y2=Po(Qo,["VITE_STUDIO_ENABLE_GSAP_PANEL","VITE_STUDIO_GSAP_PANEL_ENABLED"],!0),Ja=Po(Qo,["VITE_STUDIO_ENABLE_KEYFRAMES","VITE_STUDIO_KEYFRAMES_ENABLED"],!1),I2=Mn,hy="Manual editing is temporarily disabled",Nj=d.memo(function({major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g,displayTrackOrder:O,trackOrder:x,tracks:y,trackStyles:v,selectedElementId:w,hoveredClip:A,draggedClip:k,resizingClip:C,blockedClipRef:T,suppressClickRef:$,scrollRef:M,renderClipContent:j,renderClipOverlay:E,playheadRef:N,onResizeElement:R,onMoveElement:L,onDrillDown:V,onSelectElement:z,setHoveredClip:q,setShowPopover:U,setRangeSelection:K,setResizingClip:D,setDraggedClip:G,setSelectedElementId:H,syncClipDragAutoScroll:F,shiftClickClipRef:I,getPreviewElement:P,getTrackStyle:Z,keyframeCache:X,selectedKeyframes:Y,currentTime:J,onClickKeyframe:ne,onShiftClickKeyframe:B,onDragKeyframe:re,onContextMenuKeyframe:ae,onContextMenuClip:ue,onToggleKeyframeAtPlayhead:me}){const ye=(k==null?void 0:k.element)??null,Oe=(k==null?void 0:k.started)===!0&&ye?I$({element:ye,draggedElementId:ye.key??ye.id,previewStart:k.previewStart,previewTrack:k.previewTrack}):null,Se=(k==null?void 0:k.started)===!0&&Oe&&M.current?{left:k.pointerClientX-M.current.getBoundingClientRect().left+M.current.scrollLeft-k.pointerOffsetX,top:k.pointerClientY-M.current.getBoundingClientRect().top+M.current.scrollTop-k.pointerOffsetY}:null,Ae=(Me,Ve)=>m.jsxs(m.Fragment,{children:[E==null?void 0:E(Me),m.jsx("div",{className:j?"absolute inset-0 overflow-hidden":"flex items-center overflow-hidden flex-1 min-w-0 px-3 gap-2",children:(j==null?void 0:j(Me,Ve))??m.jsx("span",{className:"truncate text-[10px] font-medium leading-none",style:{color:Ve.label},children:Me.label||Me.id||Me.tag})})]});return m.jsxs("div",{className:"relative",style:{height:l,width:pn+i},children:[m.jsx(Mj,{major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g}),O.map(Me=>{var yt;const Ve=((yt=y.find(([_e])=>_e===Me))==null?void 0:yt[1])??[],Pe=v.get(Me)??Z(""),ft=(k==null?void 0:k.started)===!0&&!x.includes(Me)&&Ve.length===0;return m.jsxs("div",{className:"relative flex",style:{height:no,background:g.rowBackground,borderBottom:`1px solid ${g.rowBorder}`},children:[m.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:pn,background:g.gutterBackground,borderRight:`1px solid ${g.gutterBorder}`},children:m.jsx("div",{className:"flex items-center justify-center",style:{width:18,height:18,borderRadius:6,backgroundColor:Pe.iconBackground,border:`1px solid ${g.gutterBorder}`,color:"#fff"},children:Pe.icon})}),m.jsxs("div",{style:{width:i},className:"relative",children:[ft&&m.jsx("div",{className:"absolute inset-0 flex items-center",style:{paddingLeft:16,color:Pe.label,fontSize:11,letterSpacing:"0.06em",textTransform:"uppercase",opacity:.5},children:"New track"}),Ve.map((_e,Ye)=>{const Le=Z(_e.tag),be=_e.key??_e.id,dt=ty(_e),Ue=w===be,bt=!!_e.compositionSrc,Re=`${be}-${Ye}`;if((k==null?void 0:k.started)===!0&&((ye==null?void 0:ye.key)??(ye==null?void 0:ye.id))===be)return null;const Rt=P(_e);return m.jsxs(dy,{onContextMenu:we=>{we.preventDefault(),ue==null||ue(we,_e)},el:Rt,pps:r,clipY:hp,isSelected:Ue,isHovered:A===Re,isDragging:!1,hasCustomContent:!!j,capabilities:dt,theme:g,trackStyle:Le,isComposition:bt,onHoverStart:()=>q(Re),onHoverEnd:()=>q(null),onResizeStart:(we,ht)=>{ht.button!==0||ht.shiftKey||!R||we==="start"&&!dt.canTrimStart||we==="end"&&!dt.canTrimEnd||(ht.stopPropagation(),T.current=null,U(!1),K(null),D({element:_e,edge:we,originClientX:ht.clientX,previewStart:_e.start,previewDuration:_e.duration,previewPlaybackStart:_e.playbackStart,started:!1}))},onPointerDown:we=>{var ve,ze;if(we.button!==0)return;if(we.shiftKey){I.current={element:_e,anchorX:we.clientX,anchorY:we.clientY};return}const Mt=we.currentTarget.getBoundingClientRect(),ot=L$({width:Mt.width,offsetX:we.clientX-Mt.left,handleWidth:q$,capabilities:dt});if(ot&&(ot==="move"&&L||ot!=="move"&&R)){T.current={element:_e,intent:ot,originClientX:we.clientX,originClientY:we.clientY,started:!1};return}!L||!dt.canMove||(T.current=null,U(!1),K(null),G({element:_e,originClientX:we.clientX,originClientY:we.clientY,originScrollLeft:((ve=M.current)==null?void 0:ve.scrollLeft)??0,originScrollTop:((ze=M.current)==null?void 0:ze.scrollTop)??0,pointerClientX:we.clientX,pointerClientY:we.clientY,pointerOffsetX:we.clientX-Mt.left,pointerOffsetY:we.clientY-Mt.top,previewStart:_e.start,previewTrack:_e.track,started:!1}),F(we.clientX,we.clientY))},onClick:we=>{if(we.stopPropagation(),$.current)return;const ht=Ue?null:_e;H(ht?be:null),z==null||z(ht)},onDoubleClick:we=>{we.stopPropagation(),!$.current&&bt&&V&&V(_e)},children:[Ae(Rt,Le),Ja&&(X==null?void 0:X.get(be))&&m.jsx(Aj,{keyframesData:X.get(be),clipWidthPx:Math.max(Rt.duration*r,4),clipHeightPx:no-2*hp,accentColor:Le.accent,isSelected:Ue,currentPercentage:Rt.duration>0?(J-Rt.start)/Rt.duration*100:0,elementId:be,selectedKeyframes:Y,onClickKeyframe:we=>ne==null?void 0:ne(Rt,we),onShiftClickKeyframe:B,onDragKeyframe:(we,ht)=>re==null?void 0:re(Rt,we,ht),onContextMenuKeyframe:ae})]},Re)})]})]},Me)}),Oe&&Se&&m.jsx("div",{className:"absolute pointer-events-none",style:{top:Se.top,left:Se.left,width:Math.max(Oe.duration*r,4),height:no-hp*2,zIndex:40},children:m.jsx(dy,{el:{...Oe,start:0},pps:r,clipY:0,isSelected:w===(Oe.key??Oe.id),isHovered:!1,isDragging:!0,hasCustomContent:!!j,capabilities:ty(Oe),theme:g,trackStyle:Z(Oe.tag),isComposition:!!Oe.compositionSrc,onHoverStart:()=>{},onHoverEnd:()=>{},onResizeStart:()=>{},onClick:()=>{},onDoubleClick:()=>{},children:Ae(Oe,Z(Oe.tag))})}),h&&m.jsx("div",{className:"absolute pointer-events-none",style:{left:pn+Math.min(h.start,h.end)*r,width:Math.abs(h.end-h.start)*r,top:mo,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}}),m.jsxs("div",{ref:N,className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${pn}px`,zIndex:100},children:[m.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)"}}),m.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:m.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))"}})})]})]})}),q2=".hyperframes/studio-motion.json",gp="studio-motion",fl="data-hf-studio-motion",po="data-hf-studio-motion-original-transform",fu="data-hf-studio-motion-original-opacity",du="data-hf-studio-motion-original-visibility",v1=["none","power1.in","power1.out","power1.inOut","power2.in","power2.out","power2.inOut","power3.in","power3.out","power3.inOut","power4.in","power4.out","power4.inOut","sine.in","sine.out","sine.inOut","expo.in","expo.out","expo.inOut","circ.in","circ.out","circ.inOut","back.in(1.7)","back.out(1.7)","back.inOut(1.7)","elastic.out(1, 0.45)","bounce.out"],Hc={x1:.215,y1:.61,x2:.355,y2:1},Rj={none:{x1:0,y1:0,x2:1,y2:1},"power1.in":{x1:.55,y1:.085,x2:.68,y2:.53},"power1.out":{x1:.25,y1:.46,x2:.45,y2:.94},"power1.inOut":{x1:.455,y1:.03,x2:.515,y2:.955},"power2.in":{x1:.55,y1:.055,x2:.675,y2:.19},"power2.out":{x1:.215,y1:.61,x2:.355,y2:1},"power2.inOut":{x1:.645,y1:.045,x2:.355,y2:1},"power3.in":{x1:.895,y1:.03,x2:.685,y2:.22},"power3.out":{x1:.165,y1:.84,x2:.44,y2:1},"power3.inOut":{x1:.77,y1:0,x2:.175,y2:1},"power4.in":{x1:.755,y1:.05,x2:.855,y2:.06},"power4.out":{x1:.23,y1:1,x2:.32,y2:1},"power4.inOut":{x1:.86,y1:0,x2:.07,y2:1},"sine.in":{x1:.47,y1:0,x2:.745,y2:.715},"sine.out":{x1:.39,y1:.575,x2:.565,y2:1},"sine.inOut":{x1:.445,y1:.05,x2:.55,y2:.95},"expo.in":{x1:.95,y1:.05,x2:.795,y2:.035},"expo.out":{x1:.19,y1:1,x2:.22,y2:1},"expo.inOut":{x1:1,y1:0,x2:0,y2:1},"circ.in":{x1:.6,y1:.04,x2:.98,y2:.335},"circ.out":{x1:.075,y1:.82,x2:.165,y2:1},"circ.inOut":{x1:.785,y1:.135,x2:.15,y2:.86},"back.in(1.7)":{x1:.6,y1:-.28,x2:.735,y2:.045},"back.out(1.7)":{x1:.175,y1:.885,x2:.32,y2:1.275},"back.inOut(1.7)":{x1:.68,y1:-.55,x2:.265,y2:1.55},"elastic.out(1, 0.45)":{x1:.16,y1:1.32,x2:.28,y2:.86},"bounce.out":{x1:.34,y1:1.56,x2:.64,y2:.74}},Vj=/^M\s*0\s*,\s*0\s*C\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s+1\s*,\s*1\s*$/i;function my(t,e){return Number.isFinite(t)&&t>0?t:e}function _j(t,e){return Number.isFinite(t)&&t>=0?t:e}function Lj(t){return t.trim()||"none"}function Xc(t){return Math.round(t*1e3)/1e3}function S1(t,e,n,r){return Number.isFinite(t)?Math.min(n,Math.max(e,t)):r}function w1(t){const e=Xc(t);return Object.is(e,-0)?"0":`${e}`}function G2(t){return typeof t=="number"&&Number.isFinite(t)?t:null}function C8(t){return{x1:Xc(S1(t.x1??Hc.x1,0,1,.215)),y1:Xc(S1(t.y1??Hc.y1,-.6,1.6,.61)),x2:Xc(S1(t.x2??Hc.x2,0,1,.355)),y2:Xc(S1(t.y2??Hc.y2,-.6,1.6,1))}}function py(t){if(!t)return null;const e=t.trim().match(Vj);if(!e)return null;const n={x1:Number.parseFloat(e[1]??""),y1:Number.parseFloat(e[2]??""),x2:Number.parseFloat(e[3]??""),y2:Number.parseFloat(e[4]??"")};return Object.values(n).every(Number.isFinite)?C8(n):null}function GS(t){const e=C8(t);return`M0,0 C${w1(e.x1)},${w1(e.y1)} ${w1(e.x2)},${w1(e.y2)} 1,1`}function hu(t){return Rj[t]??Hc}function Dj(t,e){const n=_j(e.start,0),r=my(e.duration,.6),i=my(e.distance,32),l=Lj(e.ease),s=e.direction??"up",c={start:n,duration:r,ease:l,customEase:e.customEase};if(t==="pop")return{...c,from:{scale:.88,autoAlpha:0},to:{scale:1,autoAlpha:1}};if(t==="slide"){const u=s==="right"?-i:s==="left"?i:0,h=s==="down"?-i:s==="up"?i:0;return{...c,from:{x:u,y:h,autoAlpha:0},to:{x:0,y:0,autoAlpha:1}}}return{...c,from:{y:s==="down"?-i:i,autoAlpha:0},to:{y:0,autoAlpha:1}}}function gy(t){if(!t||typeof t!="object")return null;const e=t,n={};for(const r of["x","y","scale","rotation","opacity","autoAlpha"]){const i=G2(e[r]);i!=null&&(n[r]=i)}return Object.keys(n).length>0?n:null}function Hj(t){if(!t||typeof t!="object")return;const e=t,n=typeof e.id=="string"?e.id.trim():"",r=typeof e.data=="string"?e.data.trim():"";if(!(!n||!r))return{id:n,data:r}}function US(t){const e=t.getAttribute(fl);if(!e||e==="true")return null;try{const n=JSON.parse(e);if(!n||typeof n!="object")return null;const r=n,i=G2(r.start),l=G2(r.duration);if(i==null||l==null||i<0||l<=0)return null;const s=typeof r.ease=="string"&&r.ease.trim()?r.ease.trim():"none",c=gy(r.from),u=gy(r.to);return!c||!u?null:{start:i,duration:l,ease:s,customEase:Hj(r.customEase),from:c,to:u}}catch{return null}}function Xj(t,e){t.getAttribute(po)||(t.setAttribute(po,t.style.transform),t.setAttribute(fu,t.style.opacity),t.setAttribute(du,t.style.visibility));const n={start:e.start,duration:e.duration,ease:e.ease,from:e.from,to:e.to};e.customEase&&(n.customEase=e.customEase),t.setAttribute(fl,JSON.stringify(n))}function zj(t,e){var n;t.hasAttribute(fl)&&((n=e==null?void 0:e.set)==null||n.call(e,t,{clearProps:"transform,opacity,visibility"}),t.style.transform=t.getAttribute(po)??"",t.style.opacity=t.getAttribute(fu)??"",t.style.visibility=t.getAttribute(du)??"",t.removeAttribute(fl),t.removeAttribute(po),t.removeAttribute(fu),t.removeAttribute(du))}function Fj(t,e){var n,r,i,l;try{const s=(r=(n=t.__player)==null?void 0:n.getTime)==null?void 0:r.call(n);if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s)}catch{}try{const s=(l=(i=t.__timeline)==null?void 0:i.time)==null?void 0:l.call(i);if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s)}catch{}return 0}function U2(t,e){var h,g,O,x,y,v;const n=t.defaultView;if(!n)return 0;const r=n.gsap;n.__timelines=n.__timelines??{},(g=(h=n.__timelines[gp])==null?void 0:h.kill)==null||g.call(h),delete n.__timelines[gp];const i=(O=t.defaultView)==null?void 0:O.HTMLElement;if(!i)return 0;const l=[];for(const w of Array.from(t.querySelectorAll(`[${fl}]`))){if(!(w instanceof i))continue;const A=US(w);A&&l.push({element:w,motion:A})}if(!(r!=null&&r.timeline)||l.length===0)return 0;const s=r.timeline({paused:!0,defaults:{overwrite:"auto"}});let c=0;for(const{element:w,motion:A}of l){if(!s.fromTo)continue;const k={...A.from},C=Bj(n,A),T={...A.to,duration:A.duration,ease:C,overwrite:"auto",immediateRender:!1};s.fromTo(w,k,T,A.start),c+=1}if(c===0)return(x=s.kill)==null||x.call(s),0;n.__timelines[gp]=s,(y=s.pause)==null||y.call(s);const u=Fj(n);return s.totalTime?s.totalTime(u,!1):(v=s.time)==null||v.call(s,u),c}function Bj(t,e){var i,l;const n=e.customEase;if(!n)return e.ease;const r=t.CustomEase;if(typeof(r==null?void 0:r.create)!="function")return e.ease;try{return(l=(i=t.gsap)==null?void 0:i.registerPlugin)==null||l.call(i,r),r.create(n.id,n.data),n.id}catch{return e.ease}}const Yj={set:"Set",to:"Animate",from:"Animate In",fromTo:"From → To"},WS={set:"Instantly snap to these values — no transition",to:"Smoothly animate the element to these target values",from:"Element starts at these values and transitions to its normal state",fromTo:"Animate from one state to another"},sl={x:"Move X",y:"Move Y",width:"Width",height:"Height",rotation:"Rotate",opacity:"Opacity",scale:"Scale",scaleX:"Scale X",scaleY:"Scale Y",autoAlpha:"Visibility",visibility:"Visible",scaleX_alias:"Stretch X",filter:"Filter",clipPath:"Clip Path",color:"Color",backgroundColor:"Background",borderColor:"Border Color",borderRadius:"Radius",fontSize:"Font Size",letterSpacing:"Tracking",skewX:"Skew X",skewY:"Skew Y"},KS={x:"px",y:"px",width:"px",height:"px",rotation:"°",opacity:"%",scale:"×",scaleX:"×",scaleY:"×",autoAlpha:"%",visibility:""},Ij={x:"Move left/right (negative = left, positive = right)",y:"Move up/down (negative = up, positive = down)",opacity:"How visible (0 = invisible, 1 = fully visible)",scale:"Size multiplier (1 = normal, 2 = double, 0.5 = half)",scaleX:"Horizontal stretch (1 = normal)",scaleY:"Vertical stretch (1 = normal)",rotation:"Spin angle (360 = full rotation)",width:"Element width",height:"Element height",autoAlpha:"Like opacity but hides element completely at 0",visibility:"Show or hide the element"},mu={none:"Constant speed","power1.out":"Gentle slowdown","power2.out":"Smooth slowdown","power3.out":"Snappy slowdown","power4.out":"Sharp slowdown","power1.in":"Gentle speedup","power2.in":"Smooth speedup","power3.in":"Strong speedup","power4.in":"Sharp speedup","power1.inOut":"Gentle ease","power2.inOut":"Smooth ease","power3.inOut":"Strong ease","power4.inOut":"Sharp ease","back.out":"Overshoot & settle","back.in":"Pull back & go","back.inOut":"Pull & overshoot","elastic.out":"Springy bounce","elastic.in":"Wind up spring","elastic.inOut":"Full spring","bounce.out":"Drop & bounce","bounce.in":"Reverse bounce","bounce.inOut":"Double bounce","expo.out":"Very snappy stop","expo.in":"Very slow start","expo.inOut":"Dramatic ease","spring-gentle":"Gentle spring","spring-bouncy":"Bouncy spring","spring-stiff":"Stiff spring","spring-wobbly":"Wobbly spring","spring-heavy":"Heavy spring"},qj={none:[0,0,1,1],"power1.out":[0,0,.58,1],"power2.out":[.16,1,.3,1],"power3.out":[.08,.82,.17,1],"power4.out":[.06,.73,.09,1],"power1.in":[.42,0,1,1],"power2.in":[.55,.06,.68,.19],"power3.in":[.6,.04,.98,.34],"power4.in":[.7,0,.84,0],"power1.inOut":[.42,0,.58,1],"power2.inOut":[.45,.05,.55,.95],"power3.inOut":[.65,.05,.35,1],"power4.inOut":[.76,0,.24,1],"back.out":[.34,1.56,.64,1],"back.in":[.36,0,.66,-.56],"back.inOut":[.68,-.55,.27,1.55],"expo.out":[.16,1,.3,1],"expo.in":[.7,0,.84,0],"expo.inOut":[.87,0,.13,1]};function Gj(t){var i;const e=t.match(/^custom\((.+)\)$/);if(!e)return hu("power2.out");const r=(i=e[1].match(/[\d.]+/g))==null?void 0:i.map(Number);return!r||r.length<6?hu("power2.out"):{x1:r[2],y1:r[3],x2:r[4],y2:r[5]}}const JS=new Set(["opacity","autoAlpha"]),e7={opacity:{min:0,max:1,step:.01},autoAlpha:{min:0,max:1,step:.01},scale:{min:-10,max:10,step:.01},scaleX:{min:-10,max:10,step:.01},scaleY:{min:-10,max:10,step:.01},rotation:{step:1},skewX:{min:-90,max:90,step:1},skewY:{min:-90,max:90,step:1},width:{min:0,step:1},height:{min:0,step:1},borderRadius:{min:0,step:1},x:{step:1},y:{step:1},fontSize:{min:1,step:1},letterSpacing:{step:.1}};function Oy(t,e){const n=e7[t];if(!n)return e;let r=e;return n.min!==void 0&&(r=Math.max(n.min,r)),n.max!==void 0&&(r=Math.min(n.max,r)),r}const Uj=["to","from","fromTo","set"],Wj={to:"Animate",from:"Animate In",fromTo:"From → To",set:"Set Instantly"},Kj=["none","power1.out","power2.out","power3.out","power1.in","power2.in","power1.inOut","power2.inOut","back.out","elastic.out","bounce.out","expo.out"],Jj=d.memo(function({state:e,onClose:n,onDelete:r,onDeleteAll:i,onChangeEase:l,onCopyProperties:s}){const c=d.useRef(null),u=d.useRef(null),h=d.useCallback(y=>{var v;y instanceof KeyboardEvent&&y.key!=="Escape"||y instanceof MouseEvent&&((v=c.current)!=null&&v.contains(y.target))||n()},[n]);d.useEffect(()=>(document.addEventListener("mousedown",h),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",h)}),[h]);const g=Math.min(e.x,window.innerWidth-200),O=Math.min(e.y,window.innerHeight-300),x=e.currentEase?mu[e.currentEase]??e.currentEase:"Default";return m.jsxs("div",{ref:c,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[180px]",style:{left:g,top:O},children:[m.jsxs("div",{className:"relative group",children:[m.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",children:[m.jsxs("span",{children:["Ease: ",m.jsx("span",{className:"text-neutral-500",children:x})]}),m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",className:"text-neutral-500 ml-2",children:m.jsx("path",{d:"M3 1l4 3-4 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),m.jsx("div",{ref:u,className:"absolute left-full top-0 ml-0.5 hidden group-hover:block bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[160px] max-h-[300px] overflow-y-auto",children:Kj.map(y=>m.jsxs("button",{type:"button",className:`w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-neutral-800 cursor-pointer text-left ${y===e.currentEase?"text-white font-medium":"text-neutral-300"}`,onClick:()=>{l(e.elementId,e.percentage,y),n()},children:[y===e.currentEase&&m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",className:"text-green-400 flex-shrink-0",children:m.jsx("path",{d:"M1 4l2 2 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})}),m.jsx("span",{className:y===e.currentEase?"":"ml-[16px]",children:mu[y]??y})]},y))})]}),m.jsx("div",{className:"my-1 border-t border-neutral-700/60"}),m.jsx("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{r(e.elementId,e.percentage),n()},children:"Delete Keyframe"}),m.jsx("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{i(e.elementId),n()},children:"Delete All Keyframes"}),m.jsx("button",{type:"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:()=>{s(e.elementId,e.percentage),n()},children:"Copy Properties"})]})});function eP({scrollRef:t,ppsRef:e,durationRef:n,trackOrderRef:r,onMoveElement:i,onResizeElement:l,onBlockedEditAttempt:s,setShowPopover:c,setRangeSelectionRef:u}){const h=fe(q=>q.updateElement),[g,O]=d.useState(null),x=d.useRef(null);x.current=g;const[y,v]=d.useState(null),w=d.useRef(null);w.current=y;const A=d.useRef(null),k=d.useRef(!1),C=d.useRef(i);C.current=i;const T=d.useRef(l);T.current=l;const $=d.useRef(0),M=d.useRef(null),j=d.useCallback((q,U,K)=>{const D=t.current,G=N$({start:q.element.start,track:q.element.track,duration:q.element.duration,originClientX:q.originClientX,originClientY:q.originClientY,originScrollLeft:q.originScrollLeft,originScrollTop:q.originScrollTop,currentScrollLeft:(D==null?void 0:D.scrollLeft)??q.originScrollLeft,currentScrollTop:(D==null?void 0:D.scrollTop)??q.originScrollTop,pixelsPerSecond:e.current,trackHeight:no,maxStart:Math.max(0,n.current-q.element.duration),trackOrder:r.current},U,K);return{...q,started:!0,pointerClientX:U,pointerClientY:K,previewStart:G.start,previewTrack:G.track}},[t,e,n,r]),E=d.useCallback(()=>{M.current=null,$.current&&(cancelAnimationFrame($.current),$.current=0)},[]),N=d.useCallback(()=>{$.current=0;const q=x.current,U=M.current,K=t.current;if(!q||!U||!K)return;const D=K.getBoundingClientRect(),G=ey(D,U.clientX,U.clientY);if(G.x===0&&G.y===0)return;const H=Math.max(0,K.scrollWidth-K.clientWidth),F=Math.max(0,K.scrollHeight-K.clientHeight),I=Math.max(0,Math.min(H,K.scrollLeft+G.x)),P=Math.max(0,Math.min(F,K.scrollTop+G.y));I===K.scrollLeft&&P===K.scrollTop||(K.scrollLeft=I,K.scrollTop=P,O(Z=>Z&&j(Z,U.clientX,U.clientY)),$.current=requestAnimationFrame(N))},[t,j]),R=d.useCallback((q,U)=>{M.current={clientX:q,clientY:U};const K=t.current;if(!K)return;const D=K.getBoundingClientRect(),G=ey(D,q,U);if(G.x===0&&G.y===0){$.current&&(cancelAnimationFrame($.current),$.current=0);return}$.current||($.current=requestAnimationFrame(N))},[t,N]),L=d.useRef(j);L.current=j;const V=d.useRef(R);V.current=R;const z=d.useRef(E);return z.current=E,Xt(()=>{const q=()=>{requestAnimationFrame(()=>{k.current=!1})},U=D=>{var P,Z,X;const G=x.current,H=w.current,F=A.current;if(H){const Y=Math.abs(D.clientX-H.originClientX);if(!H.started&&Y<2)return;c(!1),(P=u.current)==null||P.call(u,null);const J=H.element.sourceDuration!=null?Math.max(0,(H.element.sourceDuration-(H.element.playbackStart??0))/Math.max(H.element.playbackRate??1,.1)):Number.POSITIVE_INFINITY,ne=H.element.tag.toLowerCase(),B=ne==="audio"||ne==="video",re=R$({start:H.element.start,duration:H.element.duration,originClientX:H.originClientX,pixelsPerSecond:e.current,minStart:0,maxEnd:Math.min(n.current,H.element.start+J),playbackStart:H.edge==="start"&&B?H.element.playbackStart??0:H.element.playbackStart,playbackRate:H.element.playbackRate},H.edge,D.clientX);v(ae=>ae&&{...ae,started:!0,previewStart:re.start,previewDuration:re.duration,previewPlaybackStart:re.playbackStart});return}if(F){const Y=Math.hypot(D.clientX-F.originClientX,D.clientY-F.originClientY),J=F.intent==="move"?4:2;if(!F.started&&Y<J)return;F.started||(F.started=!0,A.current=F,k.current=!0,c(!1),(Z=u.current)==null||Z.call(u,null),s==null||s(F.element,F.intent));return}if(!G)return;const I=Math.hypot(D.clientX-G.originClientX,D.clientY-G.originClientY);!G.started&&I<4||(c(!1),(X=u.current)==null||X.call(u,null),O(Y=>Y&&L.current(Y,D.clientX,D.clientY)),V.current(D.clientX,D.clientY))},K=()=>{var I,P;z.current();const D=w.current;if(D){if(w.current=null,v(null),!D.started||(k.current=!0,q(),!(D.previewStart!==D.element.start||D.previewDuration!==D.element.duration||D.previewPlaybackStart!==D.element.playbackStart)))return;h(D.element.key??D.element.id,{start:D.previewStart,duration:D.previewDuration,playbackStart:D.previewPlaybackStart}),Promise.resolve((I=T.current)==null?void 0:I.call(T,D.element,{start:D.previewStart,duration:D.previewDuration,playbackStart:D.previewPlaybackStart})).catch(X=>{h(D.element.key??D.element.id,{start:D.element.start,duration:D.element.duration,playbackStart:D.element.playbackStart}),console.error("[Timeline] Failed to persist clip resize",X)});return}const G=A.current;if(G){if(A.current=null,!G.started)return;q();return}const H=x.current;!H||(x.current=null,O(null),!H.started)||(k.current=!0,q(),!(H.previewStart!==H.element.start||H.previewTrack!==H.element.track))||(h(H.element.key??H.element.id,{start:H.previewStart,track:H.previewTrack}),Promise.resolve((P=C.current)==null?void 0:P.call(C,H.element,{start:H.previewStart,track:H.previewTrack})).catch(Z=>{h(H.element.key??H.element.id,{start:H.element.start,track:H.element.track}),console.error("[Timeline] Failed to persist clip move",Z)}))};return window.addEventListener("pointermove",U),window.addEventListener("pointerup",K),window.addEventListener("pointercancel",K),()=>{z.current(),window.removeEventListener("pointermove",U),window.removeEventListener("pointerup",K),window.removeEventListener("pointercancel",K)}}),{draggedClip:g,setDraggedClip:O,resizingClip:y,setResizingClip:v,blockedClipRef:A,suppressClickRef:k,syncClipDragAutoScroll:R,stopClipDragAutoScroll:E}}const tP=d.memo(function({x:e,y:n,element:r,currentTime:i,onClose:l,onSplit:s,onDelete:c}){const u=d.useRef(null),h=d.useCallback(w=>{var A;w instanceof KeyboardEvent&&w.key!=="Escape"||w instanceof MouseEvent&&((A=u.current)!=null&&A.contains(w.target))||l()},[l]);d.useEffect(()=>(document.addEventListener("mousedown",h),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",h)}),[h]);const g=Math.min(e,window.innerWidth-200),O=Math.min(n,window.innerHeight-200),x=["video","audio","img"].includes(r.tag),y=x&&i>r.start&&i<r.start+r.duration,v=x?y?`Split at ${i.toFixed(2)}s`:"Split (move playhead inside clip)":null;return m.jsxs("div",{ref:u,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[180px]",style:{left:g,top:O},children:[v&&m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:`w-full flex items-center justify-between px-3 py-1.5 text-xs text-left ${y?"text-neutral-300 hover:bg-neutral-800 cursor-pointer":"text-neutral-600 cursor-not-allowed"}`,disabled:!y,onClick:()=>{y&&(s(r,i),l())},children:[m.jsx("span",{children:v}),m.jsx("span",{className:"text-neutral-500 text-[10px] ml-3",children:"S"})]}),m.jsx("div",{className:"my-1 border-t border-neutral-700/60"})]}),m.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{c(r),l()},children:[m.jsx("span",{children:"Delete"}),m.jsx("span",{className:"text-neutral-500 text-[10px] ml-3",children:"⌫"})]})]})}),nP=d.memo(function({onSeek:e,onDrillDown:n,renderClipContent:r,renderClipOverlay:i,onFileDrop:l,onAssetDrop:s,onBlockDrop:c,onDeleteElement:u,onMoveElement:h,onResizeElement:g,onBlockedEditAttempt:O,onSplitElement:x,onSelectElement:y,onDeleteKeyframe:v,onDeleteAllKeyframes:w,onChangeKeyframeEase:A,onMoveKeyframe:k,onToggleKeyframeAtPlayhead:C,theme:T}={}){const $=d.useMemo(()=>({...BS,...T}),[T]),M=fe(xe=>xe.elements),j=fe(xe=>xe.duration),E=fe(xe=>xe.timelineReady),N=fe(xe=>xe.selectedElementId),R=fe(xe=>xe.setSelectedElementId),L=fe(xe=>xe.currentTime),V=fe(xe=>xe.zoomMode),z=fe(xe=>xe.manualZoomPercent),q=fe(xe=>xe.setZoomMode),U=fe(xe=>xe.setManualZoomPercent),K=d.useRef(null),D=d.useRef(null),G=d.useRef(null),[H,F]=d.useState(null),I=d.useRef(!1),[P,Z]=d.useState(!1);Xt(()=>{const xe=zt=>zt.key==="Shift"&&Z(!0),Fe=zt=>zt.key==="Shift"&&Z(!1),ct=()=>Z(!1);return window.addEventListener("keydown",xe),window.addEventListener("keyup",Fe),window.addEventListener("blur",ct),()=>{window.removeEventListener("keydown",xe),window.removeEventListener("keyup",Fe),window.removeEventListener("blur",ct)}});const[X,Y]=d.useState(!1),[J,ne]=d.useState(!0),[B,re]=d.useState(null),[ae,ue]=d.useState(null),[me,ye]=d.useState(0),Oe=d.useRef(null),Se=d.useRef(0),Ae=d.useCallback(()=>{const xe=G.current;ne(xe?rj(xe.scrollHeight,xe.clientHeight):!0)},[]),Me=d.useCallback(()=>{Se.current&&cancelAnimationFrame(Se.current),Se.current=requestAnimationFrame(()=>{Se.current=0,Ae()})},[Ae]),Ve=d.useCallback(xe=>{Oe.current&&(Oe.current.disconnect(),Oe.current=null),D.current=xe,xe&&(ye(xe.clientWidth),Me(),Oe.current=new ResizeObserver(([Fe])=>{ye(Fe.contentRect.width),Me()}),Oe.current.observe(xe))},[Me]);Xt(()=>()=>{var xe;(xe=Oe.current)==null||xe.disconnect(),Se.current&&cancelAnimationFrame(Se.current)});const Pe=d.useMemo(()=>{const xe=Number.isFinite(j)?j:0;if(M.length===0)return xe;const Fe=Math.max(...M.map(zt=>zt.start+zt.duration)),ct=Math.max(xe,Fe);return Number.isFinite(ct)?ct:xe},[M,j]),ft=d.useMemo(()=>{const xe=new Map;for(const Fe of M){const ct=xe.get(Fe.track)??[];ct.push(Fe),xe.set(Fe.track,ct)}return Array.from(xe.entries()).sort(([Fe],[ct])=>Fe-ct)},[M]),yt=d.useMemo(()=>{var Fe;const xe=new Map;for(const[ct,zt]of ft)xe.set(ct,uy(((Fe=zt[0])==null?void 0:Fe.tag)??""));return xe},[ft]),_e=d.useMemo(()=>ft.map(([xe])=>xe),[ft]),Ye=d.useRef(_e);Ye.current=_e;const Le=d.useRef(100),be=d.useRef(Pe);be.current=Pe;const dt=d.useRef(null),{draggedClip:Ue,setDraggedClip:bt,resizingClip:Re,setResizingClip:on,blockedClipRef:Rt,suppressClickRef:we,syncClipDragAutoScroll:ht}=eP({scrollRef:G,ppsRef:Le,durationRef:be,trackOrderRef:Ye,onMoveElement:h,onResizeElement:g,onBlockedEditAttempt:O,setShowPopover:Y,setRangeSelectionRef:dt}),Mt=d.useMemo(()=>!(Ue!=null&&Ue.started)||_e.length===0||_e.includes(Ue.previewTrack)?_e:[..._e,Ue.previewTrack].sort((xe,Fe)=>xe-Fe),[Ue,_e]),ot=nj(Mt.length),ve=fe(xe=>xe.keyframeCache),ze=fe(xe=>xe.selectedKeyframes),Ze=fe(xe=>xe.toggleSelectedKeyframe),Be=d.useMemo(()=>M.find(xe=>(xe.key??xe.id)===N)??null,[M,N]),vt=d.useRef(Be);vt.current=Be;const lt=me>pn&&Pe>0?(me-pn-2)/Pe:100,Je=fj(lt,V,z);Le.current=Je;const mt=Math.max(0,Pe*Je),Tt=d.useRef(V);Tt.current=V;const cn=d.useRef(z);cn.current=z;const Bn=d.useRef(lt);Bn.current=lt;const{seekFromX:bl,autoScrollDuringDrag:Sa,dragScrollRaf:Zi}=hj({playheadRef:K,scrollRef:G,ppsRef:Le,durationRef:be,isDragging:I,currentTime:L,zoomMode:V,zoomModeRef:Tt,manualZoomPercentRef:cn,fitPps:lt,fitPpsRef:Bn,effectiveDuration:Pe,pps:Je,timelineReady:E,elementsLength:M.length,setZoomMode:q,setManualZoomPercent:U,onSeek:e}),{rangeSelection:En,setRangeSelection:di,shiftClickClipRef:wa,handlePointerDown:ka,handlePointerMove:Ce,handlePointerUp:rt}=aj({scrollRef:G,ppsRef:Le,effectiveDuration:Pe,pps:Je,onSeek:e,seekFromX:bl,autoScrollDuringDrag:Sa,dragScrollRaf:Zi,isDragging:I,setShowPopover:Y});dt.current=di;const bn=d.useRef(vt.current);d.useEffect(()=>{const xe=bn.current,Fe=vt.current;bn.current=Fe,xe&&!Fe&&(Y(!1),di(null))});const{major:mr,minor:vl}=d.useMemo(()=>K$(Pe,Je),[Pe,Je]),jr=mr.length>=2?Math.max(.25,mr[1]-mr[0]):Pe;d.useEffect(()=>{Ae()},[Ae,E,M.length,ot]);const tn=d.useCallback(xe=>Re&&(Re.element.key??Re.element.id)===(xe.key??xe.id)?{...xe,start:Re.previewStart,duration:Re.previewDuration,playbackStart:Re.previewPlaybackStart}:xe,[Re]),{isDragOver:vn,setIsDragOver:Ur,handleAssetDragOver:Aa,handleAssetDrop:Ni}=Sj({scrollRef:G,ppsRef:Le,durationRef:be,trackOrderRef:Ye,onFileDrop:l,onAssetDrop:s,onBlockDrop:c});return!E||M.length===0?m.jsx(wj,{isDragOver:vn,onFileDrop:!!l,onDragOver:Aa,onDragLeave:()=>Ur(!1),onDrop:Ni}):m.jsxs("div",{ref:Ve,"aria-label":"Timeline",className:`relative border-t select-none h-full overflow-hidden ${P?"cursor-crosshair":"cursor-default"}`,style:{touchAction:"pan-x pan-y",background:$.shellBackground,borderColor:$.shellBorder},children:[m.jsx("div",{ref:G,tabIndex:-1,className:`${V==="fit"?"overflow-x-hidden":"overflow-x-auto"} overflow-y-auto h-full outline-none`,onDragOver:Aa,onDragLeave:()=>Ur(!1),onDrop:Ni,onPointerDown:ka,onPointerMove:Ce,onPointerUp:rt,onLostPointerCapture:rt,children:m.jsx(Nj,{major:mr,minor:vl,pps:Je,trackContentWidth:mt,totalH:ot,effectiveDuration:Pe,majorTickInterval:jr,shiftHeld:P,rangeSelection:En,theme:$,displayTrackOrder:Mt,trackOrder:_e,tracks:ft,trackStyles:yt,selectedElementId:N,hoveredClip:H,draggedClip:Ue,resizingClip:Re,blockedClipRef:Rt,suppressClickRef:we,scrollRef:G,renderClipContent:r,renderClipOverlay:i,playheadRef:K,onResizeElement:g,onMoveElement:h,onDrillDown:n,onSelectElement:y,setHoveredClip:F,setShowPopover:Y,setRangeSelection:di,setResizingClip:on,setDraggedClip:bt,setSelectedElementId:R,syncClipDragAutoScroll:ht,shiftClickClipRef:wa,getPreviewElement:tn,getTrackStyle:uy,keyframeCache:ve,selectedKeyframes:ze,currentTime:L,onToggleKeyframeAtPlayhead:C,onClickKeyframe:(xe,Fe)=>{fe.getState().clearSelectedKeyframes();const ct=xe.key??xe.id;R(ct),y==null||y(xe);const zt=xe.start+Fe/100*xe.duration;e==null||e(zt)},onShiftClickKeyframe:(xe,Fe)=>{Ze(`${xe}:${Fe}`)},onDragKeyframe:(xe,Fe,ct)=>{k==null||k(xe,Fe,ct)},onContextMenuKeyframe:(xe,Fe,ct)=>{const zt=M.find(Kn=>(Kn.key??Kn.id)===Fe);if(zt){R(Fe),y==null||y(zt);const Kn=zt.start+ct/100*zt.duration;e==null||e(Kn)}const Tn=ve.get(Fe),Pr=Tn==null?void 0:Tn.keyframes.find(Kn=>Kn.percentage===ct);re({x:xe.clientX,y:xe.clientY,elementId:Fe,percentage:ct,currentEase:(Pr==null?void 0:Pr.ease)??(Tn==null?void 0:Tn.ease)})},onContextMenuClip:(xe,Fe)=>{xe.preventDefault(),R(Fe.key??Fe.id),y==null||y(Fe),ue({x:xe.clientX,y:xe.clientY,element:Fe})}})}),J&&!X&&!En&&m.jsx("div",{className:"absolute bottom-2 right-3 pointer-events-none z-20",children:m.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border",style:{background:"rgba(17,23,35,0.84)",borderColor:$.gutterBorder},children:[m.jsx("kbd",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{color:$.textSecondary,background:"rgba(255,255,255,0.06)"},children:"Shift"}),m.jsx("span",{className:"text-[9px]",style:{color:$.textSecondary},children:"+ drag/click to edit range"})]})}),X&&En&&m.jsx(z$,{rangeStart:En.start,rangeEnd:En.end,anchorX:En.anchorX,anchorY:En.anchorY,onClose:()=>{Y(!1),di(null)}}),B&&m.jsx(Jj,{state:B,onClose:()=>re(null),onDelete:(xe,Fe)=>v==null?void 0:v(xe,Fe),onDeleteAll:xe=>w==null?void 0:w(xe),onChangeEase:(xe,Fe,ct)=>A==null?void 0:A(xe,Fe,ct),onCopyProperties:(xe,Fe)=>{const ct=ve.get(xe),zt=ct==null?void 0:ct.keyframes.find(Tn=>Tn.percentage===Fe);zt&&navigator.clipboard.writeText(JSON.stringify(zt.properties,null,2))}}),ae&&m.jsx(tP,{x:ae.x,y:ae.y,element:ae.element,currentTime:L,onClose:()=>ue(null),onSplit:(xe,Fe)=>x==null?void 0:x(xe,Fe),onDelete:xe=>u==null?void 0:u(xe)})]})}),xy=66,yy=6,rP=d.memo(function({videoSrc:e,label:n,labelColor:r,duration:i=5}){const[l,s]=d.useState(0),[c,u]=d.useState(!1),[h,g]=d.useState([]),[O,x]=d.useState(16/9),y=d.useRef(null),v=d.useRef(null),w=d.useRef(!1),A=d.useCallback(T=>{var j,E,N;if((j=y.current)==null||j.disconnect(),(E=v.current)==null||E.disconnect(),!T)return;const $=((N=T.parentElement)==null?void 0:N.clientWidth)||T.clientWidth;s($),y.current=new IntersectionObserver(([R])=>{var L;R.isIntersecting&&(u(!0),(L=y.current)==null||L.disconnect())},{rootMargin:"200px"}),y.current.observe(T);const M=T.parentElement||T;v.current=new ResizeObserver(([R])=>{s(R.contentRect.width)}),v.current.observe(M)},[]);Xt(()=>()=>{var T,$;(T=y.current)==null||T.disconnect(),($=v.current)==null||$.disconnect()}),d.useEffect(()=>{if(!c||w.current)return;w.current=!0;const T=document.createElement("video");T.crossOrigin="anonymous",T.muted=!0,T.preload="auto";const $=document.createElement("canvas"),M=$.getContext("2d");if(!M){w.current=!1;return}const j=[],E=Math.min(.4,i*.05);for(let V=0;V<yy;V++){const z=V/(yy-1)*i;j.push(Math.max(z,E))}let N=0,R=!1;const L=()=>{if(R||N>=j.length){R||(T.src="",T.load());return}T.currentTime=j[N]};return T.addEventListener("loadedmetadata",()=>{if(T.videoWidth>0&&T.videoHeight>0){x(T.videoWidth/T.videoHeight);const V=xy*2,z=Math.round(V*(T.videoWidth/T.videoHeight));$.width=z,$.height=V}L()}),T.addEventListener("seeked",()=>{if(R)return;M.drawImage(T,0,0,$.width,$.height);const V=$.toDataURL("image/jpeg",.6);g(z=>[...z,V]),N++,L()}),T.addEventListener("error",()=>{}),T.src=e,T.load(),()=>{R=!0,w.current=!1,g([]),T.src="",T.load()}},[c,e,i]);const k=Math.round(xy*O),C=l>0?Math.max(1,Math.ceil(l/k)):1;return m.jsxs("div",{ref:A,className:"absolute inset-0 overflow-hidden",children:[c&&h.length>0&&m.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:C}).map((T,$)=>{const M=h[$%h.length];return m.jsx("div",{className:"flex-shrink-0 h-full relative overflow-hidden bg-neutral-900",style:{width:k},children:m.jsx("img",{src:M,alt:"",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"})},$)})}),c&&h.length===0&&m.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%)"}}),m.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:m.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:r,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:n})})]})}),iP=66,aP="v3";function lP({previewUrl:t,seekTime:e=2,duration:n=5,selector:r,selectorIndex:i,origin:l}){const s=t.replace("/preview/comp/","/thumbnail/").replace(/\/preview$/,"/thumbnail/index.html"),c=e+n/2,u=new URL(s,l);return u.searchParams.set("t",c.toFixed(2)),u.searchParams.set("v",aP),r&&(u.searchParams.set("selector",r),i!=null&&i>0&&u.searchParams.set("selectorIndex",String(i))),u.toString()}const Op=d.memo(function({previewUrl:e,label:n,labelColor:r,selector:i,selectorIndex:l,seekTime:s=2,duration:c=5}){const[u,h]=d.useState(0),[g,O]=d.useState(!1),[x,y]=d.useState(16/9),v=d.useRef(null),w=d.useCallback(T=>{var j,E;if((j=v.current)==null||j.disconnect(),!T)return;const $=((E=T.parentElement)==null?void 0:E.clientWidth)||T.clientWidth;h($);const M=T.parentElement||T;v.current=new ResizeObserver(([N])=>{h(N.contentRect.width)}),v.current.observe(M)},[]);Xt(()=>()=>{var T;(T=v.current)==null||T.disconnect()});const A=lP({previewUrl:e,seekTime:s,duration:c,selector:i,selectorIndex:l,origin:window.location.origin}),k=Math.max(48,Math.round(iP*x)),C=u>0?Math.max(1,Math.ceil(u/k)):1;return m.jsxs("div",{ref:w,className:"absolute inset-0 overflow-hidden",children:[m.jsx("img",{src:A,alt:"",draggable:!1,loading:"eager",onLoad:T=>{const $=T.currentTarget;$.naturalWidth>0&&$.naturalHeight>0&&y($.naturalWidth/$.naturalHeight),O(!0)},className:"hidden"}),g&&m.jsx("div",{className:"absolute inset-0 flex",style:{animation:"hf-thumb-fade 200ms ease-out",mixBlendMode:"lighten"},children:Array.from({length:C}).map((T,$)=>m.jsx("div",{className:"relative h-full flex-shrink-0 overflow-hidden",style:{width:k},children:m.jsx("img",{src:A,alt:"",draggable:!1,className:"absolute inset-0 h-full w-full object-cover",style:{opacity:.7}})},$))}),m.jsx("div",{className:"absolute left-3 top-0 bottom-0 flex items-center",style:{zIndex:10},children:m.jsx("span",{className:"block max-w-full truncate text-[10px] font-semibold leading-none",style:{color:r,textShadow:g?"0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6)":"none"},children:n})})]})});let sP=0;const by={isEditMode:!1,model:null,selectedSegmentIds:new Set,selectedGroupId:null,sourceFilePath:null},Ot=_S(t=>({...by,setEditMode:e=>t({isEditMode:e}),setModel:e=>t({model:e}),setSourceFilePath:e=>t({sourceFilePath:e}),selectSegment:(e,n=!1)=>t(r=>{if(n){const i=new Set(r.selectedSegmentIds);return i.has(e)?i.delete(e):i.add(e),{selectedSegmentIds:i,selectedGroupId:null}}return{selectedSegmentIds:new Set([e]),selectedGroupId:null}}),selectGroup:e=>t(n=>{var i;const r=(i=n.model)==null?void 0:i.groups.get(e);return r?{selectedSegmentIds:new Set(r.segmentIds),selectedGroupId:e}:{}}),selectAll:()=>t(e=>e.model?{selectedSegmentIds:new Set(e.model.segments.keys()),selectedGroupId:null}:{}),clearSelection:()=>t({selectedSegmentIds:new Set,selectedGroupId:null}),updateSegmentStyle:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.segments.get(e);if(!i)return{};const l=new Map(r.model.segments);return l.set(e,{...i,style:{...i.style,...n}}),{model:{...r.model,segments:l}}}),updateSegmentText:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.segments.get(e);if(!i)return{};const l=new Map(r.model.segments);return l.set(e,{...i,text:n}),{model:{...r.model,segments:l}}}),updateSegmentTiming:(e,n,r)=>t(i=>{if(!i.model)return{};const l=i.model.segments.get(e);if(!l)return{};const s=new Map(i.model.segments);return s.set(e,{...l,start:n,end:r}),{model:{...i.model,segments:s}}}),updateGroupStyle:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=new Map(r.model.groups);return l.set(e,{...i,style:{...i.style,...n}}),{model:{...r.model,groups:l}}}),updateGroupContainer:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=new Map(r.model.groups);return l.set(e,{...i,containerStyle:{...i.containerStyle,...n}}),{model:{...r.model,groups:l}}}),updateGroupAnimation:(e,n,r)=>t(i=>{if(!i.model)return{};const l=i.model.groups.get(e);if(!l)return{};const s=new Map(i.model.groups),c=l.animation[n],u=c!==null?{...c,...r}:r;return s.set(e,{...l,animation:{...l.animation,[n]:u}}),{model:{...i.model,groups:s}}}),splitGroup:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=i.segmentIds.indexOf(n);if(l<=0)return{};const s=i.segmentIds.slice(0,l),c=i.segmentIds.slice(l),u=`group-split-${sP++}`,h=new Map(r.model.groups);h.set(e,{...i,segmentIds:s}),h.set(u,{...i,id:u,segmentIds:c});const g=r.model.groupOrder.indexOf(e),O=[...r.model.groupOrder];O.splice(g+1,0,u);const x=new Map(r.model.segments);return c.forEach((y,v)=>{const w=x.get(y);w&&x.set(y,{...w,groupIndex:v})}),{model:{...r.model,groups:h,segments:x,groupOrder:O}}}),mergeGroups:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e),l=r.model.groups.get(n);if(!i||!l)return{};const s=[...i.segmentIds,...l.segmentIds],c=new Map(r.model.groups);c.set(e,{...i,segmentIds:s}),c.delete(n);const u=r.model.groupOrder.filter(O=>O!==n),h=new Map(r.model.segments);l.segmentIds.forEach((O,x)=>{const y=h.get(O);y&&h.set(O,{...y,groupIndex:i.segmentIds.length+x})});const g=r.selectedGroupId===n?null:r.selectedGroupId;return{model:{...r.model,groups:c,segments:h,groupOrder:u},selectedGroupId:g}}),updateSelectedStyle:e=>t(n=>{if(!n.model||n.selectedSegmentIds.size===0)return{};const r=new Map(n.model.segments);for(const i of n.selectedSegmentIds){const l=r.get(i);l&&r.set(i,{...l,style:{...l.style,...e}})}return{model:{...n.model,segments:r}}}),applyAnimationToAll:e=>t(n=>{if(!n.model)return{};const r=new Map(n.model.groups);for(const[i,l]of r)r.set(i,{...l,animation:e});return{model:{...n.model,groups:r}}}),reset:()=>t({...by,selectedSegmentIds:new Set})})),oP=new Set(["ArrowLeft","ArrowRight"]),cP=["input","textarea","select","button","a[href]","[contenteditable='true']","[role='button']","[role='checkbox']","[role='combobox']","[role='menuitem']","[role='radio']","[role='slider']","[role='spinbutton']","[role='switch']","[role='textbox']"].join(",");function uP(t){if(!t||typeof t!="object")return!1;const e=t;return typeof e.closest!="function"?!1:e.closest.call(t,cP)!==null}function fP(t,e={isCaptionEditMode:!1,selectedCaptionSegmentCount:0}){return t.metaKey||t.ctrlKey||t.altKey||uP(t.target)?!0:oP.has(t.code)&&e.isCaptionEditMode&&e.selectedCaptionSegmentCount>0}const vy=[1,2,4];function dP({iframeRef:t,shuttleDirectionRef:e,shuttleSpeedIndexRef:n,iframeShortcutCleanupRef:r,getAdapter:i,play:l,playBackward:s,pause:c,seek:u}){const h=d.useRef(new Set),g=d.useRef(()=>{}),O=d.useRef(()=>{}),x=d.useCallback(C=>{const T=i(),$=(T==null?void 0:T.getTime())??fe.getState().currentTime;u(D2($,C,Zu))},[i,u]),y=d.useCallback(C=>{e.current===C?n.current=Math.min(n.current+1,vy.length-1):n.current=0;const T=vy[n.current];fe.getState().setPlaybackRate(T),C==="forward"?l():s(T)},[l,s,e,n]),v=d.useCallback(()=>{fe.getState().isPlaying?c():l()},[l,c]),w=d.useCallback(C=>{var M,j,E;if(C.defaultPrevented)return;const T=Ot.getState();if(fP(C,{isCaptionEditMode:T.isEditMode,selectedCaptionSegmentCount:T.selectedSegmentIds.size}))return;const $=C.key.toLowerCase();if(h.current.add($),C.code==="Space"){C.preventDefault(),v();return}if(C.code==="ArrowLeft"){C.preventDefault(),x(C.shiftKey?-10:-1);return}if(C.code==="ArrowRight"){C.preventDefault(),x(C.shiftKey?10:1);return}if(!C.repeat){if($==="m"){C.preventDefault();const N=fe.getState();N.playbackRate<=1&&N.setAudioMuted(!N.audioMuted);return}if($==="l"&&C.shiftKey){C.preventDefault();const N=fe.getState();N.setLoopEnabled(!N.loopEnabled);return}if($==="k"){C.preventDefault(),c();return}if($==="j"){if(C.preventDefault(),h.current.has("k")){x(-1);return}y("backward");return}if($==="l"){if(C.preventDefault(),h.current.has("k")){x(1);return}y("forward");return}if($==="i"){C.preventDefault();const N=((M=i())==null?void 0:M.getTime())??fe.getState().currentTime;fe.getState().setInPoint(C.shiftKey?null:N);return}if($==="o"){C.preventDefault();const N=((j=i())==null?void 0:j.getTime())??fe.getState().currentTime;fe.getState().setOutPoint(C.shiftKey?null:N);return}if($==="a"){C.preventDefault(),u(fe.getState().inPoint??0,{keepPlaying:!0});return}if($==="e"){C.preventDefault();const{outPoint:N}=fe.getState();u(N??((E=i())==null?void 0:E.getDuration())??fe.getState().duration,{keepPlaying:!0});return}}},[c,y,x,v,i,u]),A=d.useCallback(C=>{h.current.delete(C.key.toLowerCase())},[]);g.current=w,O.current=A;const k=d.useCallback(()=>{var j,E,N;(j=r.current)==null||j.call(r),r.current=null;let C=null,T=null;try{C=((E=t.current)==null?void 0:E.contentWindow)??null,T=((N=t.current)==null?void 0:N.contentDocument)??null}catch{return}if(!C&&!T)return;const $=R=>g.current(R),M=R=>O.current(R);try{C==null||C.addEventListener("keydown",$,!0),C==null||C.addEventListener("keyup",M,!0)}catch{}T==null||T.addEventListener("keydown",$,!0),T==null||T.addEventListener("keyup",M,!0),r.current=()=>{try{C==null||C.removeEventListener("keydown",$,!0),C==null||C.removeEventListener("keyup",M,!0)}catch{}T==null||T.removeEventListener("keydown",$,!0),T==null||T.removeEventListener("keyup",M,!0)}},[t,r]);return{playbackKeyDownRef:g,playbackKeyUpRef:O,attachIframeShortcutListeners:k,togglePlay:v}}function hP(t){const{clip:e,fallbackIndex:n,doc:r}=t;let i=t.hostEl??null;const l=Nu({id:e.id,label:e.label,tag:e.tagName||e.kind});let s,c,u,h;i&&(s=i.id||void 0,c=Ul(i),u=r&&c?lu(r,i,c):void 0,h=au(i));const g=su({preferredId:e.id,label:l,fallbackIndex:n,domId:s,selector:c,selectorIndex:u,sourceFile:h}),O={id:g.id,label:l,key:g.key,tag:e.tagName||e.kind,start:e.start,duration:e.duration,track:e.track,domId:s,selector:c,selectorIndex:u,sourceFile:h};if(i&&ZS(O,i),e.assetUrl&&(O.src=e.assetUrl),e.kind==="composition"&&e.compositionId){let x=e.compositionSrc;if(x||(i=(r==null?void 0:r.querySelector(`[data-composition-id="${e.compositionId}"]`))??i,x=(i==null?void 0:i.getAttribute("data-composition-src"))??(i==null?void 0:i.getAttribute("data-composition-file"))??null),x)O.compositionSrc=x;else if(i){const y=i.querySelector("video[src]");y&&(O.src=y.getAttribute("src")||void 0,O.tag="video")}if(i){O.domId=i.id||void 0,O.selector=Ul(i),O.selectorIndex=r&&O.selector?lu(r,i,O.selector):void 0,O.sourceFile=au(i);const y=su({preferredId:e.id,label:l,fallbackIndex:n,domId:O.domId,selector:O.selector,selectorIndex:O.selectorIndex,sourceFile:O.sourceFile});O.id=y.id,O.key=y.key}}return O}function t7(t,e,n=[]){if(!Number.isFinite(e)||e<=0)return[];const r=t.querySelector("[data-composition-id]");if(!r)return[];const i=new Set(n.map(z2)),l=n.reduce((c,u)=>Math.max(c,Number.isFinite(u.track)?u.track:0),-1),s=[];for(const c of Array.from(r.children)){if(!l$(r,c))continue;const u=Ul(c);if(!u)continue;const h=lu(t,c,u),g=au(c),O=t$(c),x=su({preferredId:c.id||null,label:O,fallbackIndex:n.length+s.length,domId:c.id||void 0,selector:u,selectorIndex:h,sourceFile:g});i.has(x.key)||i.has(x.id)||s.push({domId:c.id||void 0,duration:e,id:x.id,key:x.key,label:O,selector:u,selectorIndex:h,sourceFile:g,start:0,tag:c.tagName.toLowerCase(),timingSource:"implicit",track:l+1+s.length})}return s}function n7(t,e){const n=t.querySelector("[data-composition-id]"),r=t.querySelectorAll("[data-start]"),i=[];let l=0;return r.forEach(s=>{if(s===n)return;const c=s,u=c.getAttribute("data-start");if(u==null)return;const h=parseFloat(u);if(isNaN(h)||Number.isFinite(e)&&e>0&&h>=e)return;const g=c.tagName.toLowerCase();let O=0;const x=c.getAttribute("data-duration");if(x!=null&&(O=parseFloat(x)),(isNaN(O)||O<=0)&&(O=Math.max(0,e-h)),Number.isFinite(e)&&e>0&&(O=Math.min(O,Math.max(0,e-h))),!Number.isFinite(O)||O<=0)return;const y=c.getAttribute("data-track-index"),v=y!=null?parseInt(y,10):l++,w=c.getAttribute("data-composition-id"),A=Ul(c),k=au(c),C=lu(t,c,A),T=Nu({id:c.id||w||null,label:c.getAttribute("data-timeline-label")??c.getAttribute("data-label"),tag:g}),$=su({preferredId:c.id||w||null,label:T,fallbackIndex:i.length,domId:c.id||void 0,selector:A,selectorIndex:C,sourceFile:k}),M={id:$.id,label:T,key:$.key,tag:g,start:h,duration:O,track:isNaN(v)?0:v,domId:c.id||void 0,selector:A,selectorIndex:C,sourceFile:k,timingSource:"authored"},j=QS(c);if(j){j.tagName==="IMG"&&(M.tag="img");const N=j.getAttribute("src");N&&(M.src=N);const R=c.getAttribute("data-volume")??j.getAttribute("data-volume");R&&(M.volume=parseFloat(R)),ZS(M,c)}c.hasAttribute("data-timeline-locked")&&(M.timelineLocked=!0);const E=c.getAttribute("data-composition-src")||c.getAttribute("data-composition-file");if(E)M.compositionSrc=E;else if(w&&w!==(n==null?void 0:n.getAttribute("data-composition-id"))){const N=c.querySelector("video[src]");N&&(M.src=N.getAttribute("src")||void 0,M.tag="video")}i.push(M)}),[...i,...t7(t,e,i)]}function mP(t,e,n,r){const i=Number.isFinite(n)?n:0,l=Number.isFinite(r)?r:0;if(t.length===0||e.length>=t.length||l>i)return e;const s=new Set(e.map(z2)),c=t.filter(u=>!s.has(z2(u)));return c.length===0?e:[...e,...c]}function pP(t){const e=t.match(/\/preview\/comp\/(.+?)(?:\?|$)/);return e?decodeURIComponent(e[1]):void 0}function gP(t){if(!Number.isFinite(t.rootDuration)||t.rootDuration<=0)return null;const e=pP(t.iframeSrc);return{id:t.compositionId,label:Nu({id:t.compositionId,tag:t.tagName}),key:X2({id:t.compositionId,fallbackIndex:0,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:e}),tag:t.tagName.toLowerCase()||"div",start:0,duration:t.rootDuration,track:0,compositionSrc:e,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:e}}function OP({iframeRef:t,probeIntervalRef:e,pendingSeekRef:n,isRefreshingRef:r,getAdapter:i,syncTimelineElements:l,setDuration:s,setCurrentTime:c,setTimelineReady:u,setIsPlaying:h,attachIframeShortcutListeners:g,applyPreviewAudioState:O}){const x=d.useCallback(C=>{var q;if(!C.clips||C.clips.length===0)return;const T=new Set(C.clips.map(U=>U.compositionId).filter(Boolean)),$=C.clips.filter(U=>!U.parentCompositionId||!T.has(U.parentCompositionId));let M=null;try{M=((q=t.current)==null?void 0:q.contentDocument)??null}catch{M=null}const j=new Set,E=$.map((U,K)=>{const D=M?a$(M,U,K,j):null;return D&&j.add(D),hP({clip:U,fallbackIndex:K,doc:M,hostEl:D})}),N=C.durationInFrames/30,R=Number.isFinite(N)&&N<7200?N:0,L=R>0?R:fe.getState().duration,V=L>0?E.filter(U=>U.start<L).map(U=>({...U,duration:Math.min(U.duration,L-U.start)})).filter(U=>U.duration>0):E,z=M&&L>0?[...V,...t7(M,L,V)]:V;z.length>0&&l(z,R>0?R:void 0)},[t,l]),y=d.useCallback(()=>{try{const C=t.current,T=C==null?void 0:C.contentDocument,$=C==null?void 0:C.contentWindow;if(!T||!$)return;const M=fe.getState().elements,j=fe.getState().duration,{missing:E,updatedEls:N,patched:R}=d$(T,$,M,j);if(E.length>0||R){const L=new Set(N.map(z=>z.id)),V=E.filter(z=>!L.has(z.id));l([...N,...V])}}catch(C){console.warn("[useTimelinePlayer] enrichMissingCompositions failed",C)}},[t,l]),v=d.useCallback(()=>{const C=i();if(!C||C.getDuration()<=0)return!1;C.pause();const T=n.current;n.current=null;const $=T!=null?Math.min(T,C.getDuration()):0;C.seek($),zr.notify($);const M=C.getDuration();Number.isFinite(M)&&M>0&&M<7200&&M!==fe.getState().duration&&s(M),c($),r.current||u(!0),r.current=!1,h(!1);try{const j=t.current,E=j==null?void 0:j.contentDocument,N=j==null?void 0:j.contentWindow;E&&N&&(s$(E,N),o$(E),g());const R=N==null?void 0:N.__clipManifest;if(R&&R.clips.length>0&&x(R),y(),O(),fe.getState().elements.length===0&&E){const L=n7(E,C.getDuration());L.length>0&&l(L)}if(fe.getState().elements.length===0&&E){const L=E.querySelector("[data-composition-id]"),V=C.getDuration();if(L&&V>0){const z=gP({compositionId:L.getAttribute("data-composition-id")||"composition",tagName:L.tagName||"div",rootDuration:V,iframeSrc:(j==null?void 0:j.src)||"",selector:Ul(L)});z&&l([z])}}}catch(j){console.warn("[useTimelinePlayer] Could not read timeline elements from iframe",j)}return!0},[i,s,c,u,h,x,y,l,g,O,t,r,n]),w=d.useCallback(()=>{if(O(),e.current&&clearInterval(e.current),v())return;const C=t.current;let T=!1;const $=()=>{T||v()&&(T=!0,window.removeEventListener("message",M),e.current&&clearInterval(e.current))},M=j=>{if(j.source&&C&&j.source!==C.contentWindow)return;const E=j.data;(E==null?void 0:E.source)==="hf-preview"&&((E==null?void 0:E.type)==="state"||(E==null?void 0:E.type)==="timeline")&&$()};window.addEventListener("message",M),e.current=setTimeout(()=>{T||($(),T||console.warn("[useTimelinePlayer] Runtime did not signal readiness within 5s")),window.removeEventListener("message",M)},5e3)},[v,t,e,O]);return{processTimelineMessage:x,processTimelineMessageRef:{current:x},enrichMissingCompositions:y,enrichMissingCompositionsRef:{current:y},initializeAdapter:v,onIframeLoad:w}}const W2=new Map,xp=new Map;let Hs=null;async function xP(){if(Hs===!1)return null;if(Hs)return Hs;try{return Hs=await ES(()=>import("./index-DSLrl2tB.js"),[]),Hs}catch{return Hs=!1,null}}function r7(t){try{return new URL(t,window.location.href).href}catch{return t}}async function yP(t){const e=await xP();if(!e)return null;const n=new e.Input({source:new e.UrlSource(t),formats:e.ALL_FORMATS});try{const r=await n.getDurationFromMetadata();if(r==null||!Number.isFinite(r)||r<=0)return null;const i=await n.getPrimaryVideoTrack(),l=await n.getAudioTracks();return{duration:r,width:i==null?void 0:i.displayWidth,height:i==null?void 0:i.displayHeight,hasVideo:i!=null,hasAudio:l.length>0}}catch{return null}finally{n.dispose()}}function bP(t){return W2.get(r7(t))}async function vP(t){const e=r7(t),n=W2.get(e);if(n)return n;let r=xp.get(e);return r||(r=yP(e).then(i=>(xp.delete(e),i&&W2.set(e,i),i)),xp.set(e,r),r)}function SP(t){return t.keepPlaying&&!t.wasReverseShuttle&&t.storeWasPlaying&&(t.duration<=0||t.nextTime<t.duration)}function wP(t){return!t.keepPlaying||t.wasReverseShuttle}function kP(){const t=d.useRef(null),e=d.useRef(0),n=d.useRef(void 0),r=d.useRef(null),i=d.useRef(!1),l=d.useRef(0),s=d.useRef(null),c=d.useRef(0),u=d.useRef(null),h=d.useRef(0),g=d.useRef(null),{setIsPlaying:O,setCurrentTime:x,setDuration:y,setTimelineReady:v,setElements:w}=fe.getState(),A=d.useCallback((Z,X)=>{const Y=fe.getState(),J=X??Y.duration,ne=mP(Y.elements,Z,Y.duration,J);(ne.length!==Y.elements.length||ne.some((ae,ue)=>{const me=Y.elements[ue];return!me||ae.id!==me.id||ae.start!==me.start||ae.duration!==me.duration||ae.track!==me.track}))&&w(ne),Number.isFinite(X)&&(X??0)>0&&X!==Y.duration&&y(X??0),Y.timelineReady||v(!0);const re=ne.filter(ae=>ae.src&&ae.sourceDuration==null&&["video","audio"].includes(ae.tag.toLowerCase())&&!bP(ae.src));re.length>0&&Promise.allSettled(re.map(async ae=>{const ue=await vP(ae.src);if(!ue)return;const me=ae.key??ae.id;fe.setState(ye=>{const Oe=ye.elements.findIndex(Ae=>(Ae.key??Ae.id)===me);if(Oe===-1||ye.elements[Oe].sourceDuration!=null)return{};const Se=ye.elements.slice();return Se[Oe]={...ye.elements[Oe],sourceDuration:ue.duration},{elements:Se}})}))},[w,v,y]),k=d.useCallback(()=>{var Z,X;try{const Y=t.current,J=Y==null?void 0:Y.contentWindow;if(!Y||!J)return null;const ne=J.__player&&typeof J.__player.play=="function"?J.__player:null,B=JT(Y.contentDocument),re=fp(ne);if(re>0&&B<=re)return ne;let ae=null;if(J.__timeline){const ye=X5(J.__timeline),Oe=fp(ye);if(Oe>0&&B<=Oe)return ye;Oe>0&&(ae??(ae=ye))}if(J.__timelines){const ye=Object.keys(J.__timelines);if(ye.length>0){const Oe=(X=(Z=Y==null?void 0:Y.contentDocument)==null?void 0:Z.querySelector("[data-composition-id]"))==null?void 0:X.getAttribute("data-composition-id"),Se=Oe&&Oe in J.__timelines?Oe:ye[ye.length-1],Ae=X5(J.__timelines[Se]),Me=fp(Ae);if(Me>0&&B<=Me)return Ae;Me>0&&(ae??(ae=Ae))}}const ue=ne??ae,me=Math.max(fe.getState().duration,B,re);if(ue&&me>0&&("renderSeek"in ue||typeof ue.seek=="function")){const ye=g.current;if((ye==null?void 0:ye.player)===ue&&ye.duration===me)return ye.adapter;ye==null||ye.adapter.pause();const Oe=KT(ue,me,WT(J),()=>fe.getState().playbackRate);return g.current={player:ue,duration:me,adapter:Oe},Oe}return ue}catch(Y){return console.warn("[useTimelinePlayer] Could not get playback adapter (cross-origin)",Y),null}},[]),C=d.useCallback(()=>{cancelAnimationFrame(l.current)},[]),T=d.useCallback(()=>{const Z=()=>{const X=k();if(X){const Y=X.getTime(),J=X.getDuration(),ne=J>0?Math.min(Y,J):Y;zr.notify(ne);const{inPoint:B,outPoint:re}=fe.getState(),ae=re!==null?Math.min(re,J):J,ue=B!==null?B:0,me=ue<ae?ae:J,ye=ue<ae?ue:0;if(ne>=me){if(fe.getState().loopEnabled&&J>0){X.seek(ye,{keepPlaying:!0}),zr.notify(ye),X.play(),O(!0),e.current=requestAnimationFrame(Z);return}X.isPlaying()&&X.pause(),x(ne),O(!1),cancelAnimationFrame(e.current);return}}e.current=requestAnimationFrame(Z)};e.current=requestAnimationFrame(Z)},[k,x,O]),$=d.useCallback(()=>{cancelAnimationFrame(e.current)},[]),M=d.useCallback(Z=>{const X=t.current;if(X){f$(X,Z);try{const Y=X.contentWindow;if(Y!=null&&Y.__timelines)for(const J of Object.values(Y.__timelines))J&&typeof J.timeScale=="function"&&J.timeScale(Z)}catch(Y){console.warn("[useTimelinePlayer] Could not set playback rate (cross-origin)",Y)}}},[]),j=d.useCallback(Z=>{const{audioMuted:X,playbackRate:Y}=fe.getState(),J=Z??Y;u$(t.current,VS(X,J))},[]),E=d.useCallback(()=>{$(),C();const Z=k();Z&&(Z.getTime()>=Z.getDuration()&&Z.seek(fe.getState().inPoint??0),M(fe.getState().playbackRate),j(),Z.play(),s.current="forward",O(!0),T())},[k,O,T,M,j,$,C]),N=d.useCallback(Z=>{$(),C();const X=k();if(!X)return;const Y=Math.max(0,X.getDuration()),J=X.getTime()<=0&&Y>0?Y:X.getTime();X.pause(),J!==X.getTime()&&X.seek(J);const ne=Math.max(.1,Math.min(4,Z));M(ne),j(ne);let B=J,re=performance.now();const ae=ue=>{const me=(ue-re)/1e3*ne;let ye=B-me;const{inPoint:Oe,outPoint:Se}=fe.getState(),Ae=Se!==null?Math.min(Se,Y):Y,Me=Oe!==null?Oe:0,Ve=Me<Ae?Ae:Y,Pe=Me<Ae?Me:0;if(ye<=Pe)if(fe.getState().loopEnabled&&Y>0)B=Ve,re=ue,ye=Ve;else{X.seek(Pe),zr.notify(Pe),x(Pe),O(!1),s.current=null,l.current=0;return}X.seek(Math.max(0,ye)),zr.notify(Math.max(0,ye)),O(!0),l.current=requestAnimationFrame(ae)};O(!0),s.current="backward",l.current=requestAnimationFrame(ae)},[k,x,O,M,j,$,C]),R=d.useCallback(()=>{C();const Z=k();Z&&(Z.pause(),x(Z.getTime()),O(!1),s.current=null,c.current=0,$())},[k,x,O,$,C]),L=d.useCallback((Z,X)=>{const Y=s.current==="backward";C();const J=k();if(!J)return r.current=Math.max(0,Z),!1;const ne=Math.max(0,J.getDuration()),B=Math.max(0,ne>0?Math.min(ne,Z):Z),re=(X==null?void 0:X.keepPlaying)===!0,ae=SP({keepPlaying:re,wasReverseShuttle:Y,storeWasPlaying:fe.getState().isPlaying,duration:ne,nextTime:B});return J.seek(B,X),zr.notify(B),x(B),ae?($(),M(fe.getState().playbackRate),j(),J.play(),O(!0),s.current="forward",c.current=0,T()):wP({keepPlaying:re,wasReverseShuttle:Y})&&($(),fe.getState().isPlaying&&O(!1),s.current=null,c.current=0),!0},[k,r,x,O,T,$,C,M,j,s,c]);d.useEffect(()=>fe.subscribe((Z,X)=>{Z.requestedSeekTime!==null&&Z.requestedSeekTime!==X.requestedSeekTime&&(L(Z.requestedSeekTime),fe.getState().clearSeekRequest())}),[L]);const{playbackKeyDownRef:V,playbackKeyUpRef:z,attachIframeShortcutListeners:q,togglePlay:U}=dP({iframeRef:t,shuttleDirectionRef:s,shuttleSpeedIndexRef:c,iframeShortcutCleanupRef:u,getAdapter:k,play:E,playBackward:N,pause:R,seek:L}),{processTimelineMessageRef:K,enrichMissingCompositionsRef:D,onIframeLoad:G}=OP({iframeRef:t,probeIntervalRef:n,pendingSeekRef:r,isRefreshingRef:i,getAdapter:k,syncTimelineElements:A,setDuration:y,setCurrentTime:x,setTimelineReady:v,setIsPlaying:O,attachIframeShortcutListeners:q,applyPreviewAudioState:j}),H=d.useCallback(()=>{const Z=k();r.current=Z?Z.getTime():fe.getState().currentTime??0,i.current=!0,$(),C(),O(!1)},[k,$,O,C]),F=d.useCallback(()=>{const Z=t.current;if(!Z)return;H();const X=Z.src,Y=new URL(X,window.location.origin);Y.searchParams.set("_t",String(Date.now())),Z.src=Y.toString()},[H]),I=d.useRef(k);I.current=k,Xt(()=>{const Z=ne=>V.current(ne),X=ne=>z.current(ne),Y=ne=>{const B=ne.data,re=t.current;if(!(ne.source&&re&&ne.source!==re.contentWindow)){if((B==null?void 0:B.source)==="hf-preview"&&(B==null?void 0:B.type)==="state")try{if(fe.getState().elements.length===0){const ue=re==null?void 0:re.contentWindow,me=ue==null?void 0:ue.__clipManifest;me&&me.clips.length>0&&K.current(me)}Date.now()-h.current>500&&D.current()}catch(ae){console.warn("[useTimelinePlayer] Could not read clip manifest from iframe",ae)}if((B==null?void 0:B.source)==="hf-preview"&&(B==null?void 0:B.type)==="timeline"&&Array.isArray(B.clips)&&(h.current=Date.now(),K.current(B),D.current(),fe.getState().elements.length===0))try{const ae=re==null?void 0:re.contentDocument,ue=k();if(ae&&ue){const me=n7(ae,ue.getDuration());me.length>0&&A(me)}}catch(ae){console.warn("[useTimelinePlayer] Could not read timeline elements on navigate (cross-origin)",ae)}}},J=()=>{var ne;if(document.hidden&&fe.getState().isPlaying){const B=(ne=I.current)==null?void 0:ne.call(I);B&&(B.pause(),O(!1),$())}};return window.addEventListener("keydown",Z,!0),window.addEventListener("keyup",X,!0),window.addEventListener("message",Y),document.addEventListener("visibilitychange",J),()=>{var ne;window.removeEventListener("keydown",Z,!0),window.removeEventListener("keyup",X,!0),(ne=u.current)==null||ne.call(u),u.current=null,window.removeEventListener("message",Y),document.removeEventListener("visibilitychange",J),$(),C(),n.current&&clearInterval(n.current)}});const P=d.useCallback(()=>{$(),C(),n.current&&clearInterval(n.current),fe.getState().reset()},[$,C]);return d.useEffect(()=>fe.subscribe((Z,X)=>{const Y=Z.playbackRate!==X.playbackRate,J=Z.audioMuted!==X.audioMuted;!Y&&!J||(Y&&M(Z.playbackRate),j())}),[M,j]),{iframeRef:t,play:E,pause:R,togglePlay:U,seek:L,onIframeLoad:G,refreshPlayer:F,saveSeekPosition:H,resetPlayer:P}}const AP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),MP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),CP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),EP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M87.51,64.49a12,12,0,0,1,0-17l32-32a12,12,0,0,1,17,0l32,32a12,12,0,0,1-17,17L140,53V96a12,12,0,0,1-24,0V53L104.49,64.49A12,12,0,0,1,87.51,64.49Zm64,127L140,203V160a12,12,0,0,0-24,0v43l-11.51-11.52a12,12,0,0,0-17,17l32,32a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm89-72-32-32a12,12,0,0,0-17,17L203,116H160a12,12,0,0,0,0,24h43l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,240.49,119.51ZM53,140H96a12,12,0,0,0,0-24H53l11.52-11.51a12,12,0,1,0-17-17l-32,32a12,12,0,0,0,0,17l32,32a12,12,0,1,0,17-17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,128,128,232,24,128,128,24Z",opacity:"0.2"}),d.createElement("path",{d:"M90.34,61.66a8,8,0,0,1,0-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V96a8,8,0,0,1-16,0V43.31L101.66,61.66A8,8,0,0,1,90.34,61.66Zm64,132.68L136,212.69V160a8,8,0,0,0-16,0v52.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm83.32-72-32-32a8,8,0,0,0-11.32,11.32L212.69,120H160a8,8,0,0,0,0,16h52.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,237.66,122.34ZM43.31,136H96a8,8,0,0,0,0-16H43.31l18.35-18.34A8,8,0,0,0,50.34,90.34l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96,136H64v24a8,8,0,0,1-13.66,5.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,64,96v24H96a8,8,0,0,1,0,16Zm0-72h24V96a8,8,0,0,0,16,0V64h24a8,8,0,0,0,5.66-13.66l-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,96,64Zm141.66,58.34-32-32A8,8,0,0,0,192,96v24H160a8,8,0,0,0,0,16h32v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,237.66,122.34ZM160,192H136V160a8,8,0,0,0-16,0v32H96a8,8,0,0,0-5.66,13.66l32,32a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,160,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M91.76,60.24a6,6,0,0,1,0-8.48l32-32a6,6,0,0,1,8.48,0l32,32a6,6,0,1,1-8.48,8.48L134,38.49V96a6,6,0,0,1-12,0V38.49L100.24,60.24A6,6,0,0,1,91.76,60.24Zm64,135.52L134,217.51V160a6,6,0,0,0-12,0v57.51l-21.76-21.75a6,6,0,0,0-8.48,8.48l32,32a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm80.48-72-32-32a6,6,0,0,0-8.48,8.48L217.51,122H160a6,6,0,0,0,0,12h57.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,236.24,123.76ZM38.49,134H96a6,6,0,0,0,0-12H38.49l21.75-21.76a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48l32,32a6,6,0,0,0,8.48-8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M90.34,61.66a8,8,0,0,1,0-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V96a8,8,0,0,1-16,0V43.31L101.66,61.66A8,8,0,0,1,90.34,61.66Zm64,132.68L136,212.69V160a8,8,0,0,0-16,0v52.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm83.32-72-32-32a8,8,0,0,0-11.32,11.32L212.69,120H160a8,8,0,0,0,0,16h52.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,237.66,122.34ZM43.31,136H96a8,8,0,0,0,0-16H43.31l18.35-18.34A8,8,0,0,0,50.34,90.34l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M93.17,58.83a4,4,0,0,1,0-5.66l32-32a4,4,0,0,1,5.66,0l32,32a4,4,0,0,1-5.66,5.66L132,33.66V96a4,4,0,0,1-8,0V33.66L98.83,58.83A4,4,0,0,1,93.17,58.83Zm64,138.34L132,222.34V160a4,4,0,0,0-8,0v62.34L98.83,197.17a4,4,0,0,0-5.66,5.66l32,32a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm77.66-72-32-32a4,4,0,0,0-5.66,5.66L222.34,124H160a4,4,0,0,0,0,8h62.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,234.83,125.17ZM33.66,132H96a4,4,0,0,0,0-8H33.66L58.83,98.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66l32,32a4,4,0,1,0,5.66-5.66Z"}))]]),TP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),$P=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),jP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),PP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M84,100A12,12,0,0,1,96,88h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,100Zm12,52h64a12,12,0,0,0,0-24H96a12,12,0,0,0,0,24ZM236,56V184a20,20,0,0,1-20,20H157.89l-12.52,21.92a20,20,0,0,1-34.74,0L98.11,204H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V180h61.07a12,12,0,0,1,10.42,6.05L128,207.94l12.51-21.89A12,12,0,0,1,150.93,180H212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,56V184a8,8,0,0,1-8,8H150.93l-16,28a8,8,0,0,1-13.9,0l-16-28H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),d.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V184a16,16,0,0,0,16,16h60.43l13.68,23.94a16,16,0,0,0,27.78,0L155.57,200H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM160,144H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M166,104a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,104Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-74V184a14,14,0,0,1-14,14H154.41L140.16,223a14,14,0,0,1-24.32,0L101.59,198H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V184a2,2,0,0,0,2,2h65.07a6,6,0,0,1,5.21,3l16,28a2,2,0,0,0,3.48,0l16-28a6,6,0,0,1,5.21-3H216a2,2,0,0,0,2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164,104a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,104Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-76V184a12,12,0,0,1-12,12H153.25L138.42,222a12,12,0,0,1-20.84,0L102.75,196H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V184a4,4,0,0,0,4,4h65.07a4,4,0,0,1,3.47,2l16,28a4,4,0,0,0,6.94,0l16-28a4,4,0,0,1,3.47-2H216a4,4,0,0,0,4-4Z"}))]]),QP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.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,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),ZP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),NP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),RP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),VP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),_P=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),LP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),DP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),HP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),XP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),zP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),FP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),BP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),YP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),IP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),qP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),GP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),UP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),WP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),KP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),JP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),eQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,100h72v56H44Zm96-24V60h24V76Zm-24,0H92V60h24Zm0,104v16H92V180Zm24,0h24v16H140Zm0-24V100h72v56Zm72-80H188V60h24ZM68,60V76H44V60ZM44,180H68v16H44Zm144,16V180h24v16Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M32,176H224v24a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8ZM216,48H40a8,8,0,0,0-8,8V80H224V56A8,8,0,0,0,216,48Z",opacity:"0.2"}),d.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,40ZM40,88h80v80H40Zm96-16V56h32V72Zm-16,0H88V56h32Zm0,112v16H88V184Zm16,0h32v16H136Zm0-16V88h80v80Zm80-96H184V56h32ZM72,56V72H40V56ZM40,184H72v16H40Zm176,16H184V184h32v16Z"}))],["fill",d.createElement(d.Fragment,null,d.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,40ZM184,56h32V72H184ZM72,200H40V184H72ZM72,72H40V56H72Zm48,128H88V184h32Zm0-128H88V56h32Zm48,128H136V184h32Zm0-128H136V56h32Zm48,128H184V184h32v16Z"}))],["light",d.createElement(d.Fragment,null,d.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,42ZM38,86h84v84H38Zm96-12V54h36V74Zm-12,0H86V54h36Zm0,108v20H86V182Zm12,0h36v20H134Zm0-12V86h84v84ZM218,56V74H182V54h34A2,2,0,0,1,218,56ZM40,54H74V74H38V56A2,2,0,0,1,40,54ZM38,200V182H74v20H40A2,2,0,0,1,38,200Zm178,2H182V182h36v18A2,2,0,0,1,216,202Z"}))],["regular",d.createElement(d.Fragment,null,d.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,40ZM40,88h80v80H40Zm96-16V56h32V72Zm-16,0H88V56h32Zm0,112v16H88V184Zm16,0h32v16H136Zm0-16V88h80v80Zm80-96H184V56h32ZM72,56V72H40V56ZM40,184H72v16H40Zm176,16H184V184h32v16Z"}))],["thin",d.createElement(d.Fragment,null,d.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,44ZM36,84h88v88H36Zm96-8V52h40V76Zm-8,0H84V52h40Zm0,104v24H84V180Zm8,0h40v24H132Zm0-8V84h88v88ZM220,56V76H180V52h36A4,4,0,0,1,220,56ZM40,52H76V76H36V56A4,4,0,0,1,40,52ZM36,200V180H76v24H40A4,4,0,0,1,36,200Zm180,4H180V180h40v20A4,4,0,0,1,216,204Z"}))]]),tQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),nQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),rQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),iQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,80H140V60h56ZM116,60v56H60V60ZM60,140h56v56H60Zm80,56V140h56v56Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"}),d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56v60a4,4,0,0,1-4,4H136V44a4,4,0,0,1,4-4h60A16,16,0,0,1,216,56ZM116,40H56A16,16,0,0,0,40,56v60a4,4,0,0,0,4,4h76V44A4,4,0,0,0,116,40Zm96,96H136v76a4,4,0,0,0,4,4h60a16,16,0,0,0,16-16V140A4,4,0,0,0,212,136ZM40,140v60a16,16,0,0,0,16,16h60a4,4,0,0,0,4-4V136H44A4,4,0,0,0,40,140Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,14v66H134V54h66A2,2,0,0,1,202,56ZM56,54h66v68H54V56A2,2,0,0,1,56,54ZM54,200V134h68v68H56A2,2,0,0,1,54,200Zm146,2H134V134h68v66A2,2,0,0,1,200,202Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,12v68H132V52h68A4,4,0,0,1,204,56ZM56,52h68v72H52V56A4,4,0,0,1,56,52ZM52,200V132h72v72H56A4,4,0,0,1,52,200Zm148,4H132V132h72v68A4,4,0,0,1,200,204Z"}))]]),aQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),lQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),sQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H160a20,20,0,0,0-20,20v88a12,12,0,0,1-24,0V56A20,20,0,0,0,96,36H56A20,20,0,0,0,36,56v88a92,92,0,0,0,92,92h.71c50.34-.38,91.3-42.1,91.3-93V56A20,20,0,0,0,200,36Zm-4,24V84H164V60ZM92,60V84H60V60Zm36.52,152H128a68,68,0,0,1-68-68V108H92v36a36,36,0,0,0,72,0V108h32v35C196,180.77,165.73,211.72,128.52,212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M104,56V96H48V56a8,8,0,0,1,8-8H96A8,8,0,0,1,104,56Zm96-8H160a8,8,0,0,0-8,8V96h56V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V88H160V56ZM96,56V88H56V56Zm32.55,160A72,72,0,0,1,56,144V104H96v40a32,32,0,0,0,64,0V104h40v39C200,183,168,215.71,128.55,216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V96H160V56ZM96,56V96H56V56Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,42H160a14,14,0,0,0-14,14v88a18,18,0,0,1-36,0V56A14,14,0,0,0,96,42H56A14,14,0,0,0,42,56v88a86,86,0,0,0,86,86h.65c47.06-.35,85.35-39.38,85.35-87V56A14,14,0,0,0,200,42ZM160,54h40a2,2,0,0,1,2,2V90H158V56A2,2,0,0,1,160,54ZM56,54H96a2,2,0,0,1,2,2V90H54V56A2,2,0,0,1,56,54Zm72.56,164H128a74,74,0,0,1-74-74V102H98v42a30,30,0,0,0,60,0V102h44v41C202,184.05,169.06,217.7,128.56,218Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V88H160V56ZM96,56V88H56V56Zm32.55,160A72,72,0,0,1,56,144V104H96v40a32,32,0,0,0,64,0V104h40v39C200,183,168,215.71,128.55,216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,44H160a12,12,0,0,0-12,12v88a20,20,0,0,1-40,0V56A12,12,0,0,0,96,44H56A12,12,0,0,0,44,56v88a84,84,0,0,0,84,84h.64c46-.34,83.36-38.47,83.36-85V56A12,12,0,0,0,200,44Zm-40,8h40a4,4,0,0,1,4,4V92H156V56A4,4,0,0,1,160,52ZM56,52H96a4,4,0,0,1,4,4V92H52V56A4,4,0,0,1,56,52Zm72.58,168H128a76,76,0,0,1-76-76V100h48v44a28,28,0,0,0,56,0V100h48v43C204,185.15,170.17,219.69,128.58,220Z"}))]]),oQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.45,52.51l-80-24A12,12,0,0,0,116,40V140.22A52,52,0,1,0,140,184V104.13l64.55,19.36A12,12,0,0,0,220,112V64A12,12,0,0,0,211.45,52.51ZM88,212a28,28,0,1,1,28-28A28,28,0,0,1,88,212ZM196,95.87l-56-16.8V56.13l56,16.8Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,184a40,40,0,1,1-40-40A40,40,0,0,1,128,184Z",opacity:"0.2"}),d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34ZM88,216a32,32,0,1,1,32-32A32,32,0,0,1,88,216ZM200,101.25l-64-19.2V50.75L200,70Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M209.72,58.25l-80-24A6,6,0,0,0,122,40V153.05A46,46,0,1,0,134,184V96.06l72.28,21.69A6,6,0,0,0,214,112V64A6,6,0,0,0,209.72,58.25ZM88,218a34,34,0,1,1,34-34A34,34,0,0,1,88,218ZM202,103.94l-68-20.4V48.06l68,20.4Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34ZM88,216a32,32,0,1,1,32-32A32,32,0,0,1,88,216ZM200,101.25l-64-19.2V50.75L200,70Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M209.15,60.17l-80-24A4,4,0,0,0,124,40V158.75A44,44,0,1,0,132,184V93.38l74.85,22.45A4,4,0,0,0,212,112V64A4,4,0,0,0,209.15,60.17ZM88,220a36,36,0,1,1,36-36A36,36,0,0,1,88,220ZM204,106.62,132,85V45.38L204,67Z"}))]]),cQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"}),d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z"}))]]),uQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),fQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),dQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M238.78,183.79,98.28,87.65A40.18,40.18,0,0,0,100,76a40,40,0,1,0-15.29,31.45l30,20.56-30,20.56a40,40,0,1,0,3.57,59.74h0A39.73,39.73,0,0,0,100,180a40.18,40.18,0,0,0-1.72-11.66L136,142.54l89.22,61.06a12,12,0,0,0,13.56-19.81ZM71.31,191.33h0A16,16,0,1,1,76,180,16,16,0,0,1,71.31,191.33ZM48.69,87.3a16,16,0,1,1,22.62,0h0A16,16,0,0,1,48.69,87.3Zm112.82,23.24a12,12,0,0,1,3.13-16.68L225.22,52.4a12,12,0,0,1,13.56,19.81l-60.59,41.46a12,12,0,0,1-16.68-3.13Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M40.2,95.8a28,28,0,1,1,39.6,0A28,28,0,0,1,40.2,95.8Zm0,64.4a28,28,0,1,0,39.6,0A28,28,0,0,0,40.2,160.2Z",opacity:"0.2"}),d.createElement("path",{d:"M157.73,113.13A8,8,0,0,1,159.82,102L227.48,55.7a8,8,0,0,1,9,13.21l-67.67,46.3a7.92,7.92,0,0,1-4.51,1.4A8,8,0,0,1,157.73,113.13Zm80.87,85.09a8,8,0,0,1-11.12,2.08L136,137.7,93.49,166.78a36,36,0,1,1-9-13.19L121.83,128,84.44,102.41a35.86,35.86,0,1,1,9-13.19l143,97.87A8,8,0,0,1,238.6,198.22ZM80,180a20,20,0,1,0-5.86,14.14A19.85,19.85,0,0,0,80,180ZM74.14,90.13a20,20,0,1,0-28.28,0A19.85,19.85,0,0,0,74.14,90.13Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.52,187.09l-143-97.87a36,36,0,1,0-14.38,17.27l21.39,21.69L79.15,149.54l0,0a35.91,35.91,0,1,0,14.38,17.27l26.91-18.41L170,198.64a32.26,32.26,0,0,0,22.7,9.37,31.52,31.52,0,0,0,4.11-.27l.28,0,36.27-6.11a8,8,0,0,0,3.19-14.5Zm-162.38-97A20,20,0,1,1,80,76,20,20,0,0,1,74.14,90.13Zm0,104A20,20,0,1,1,80,180,20,20,0,0,1,74.14,194.15Zm61-101.5L169.94,57.4a32.19,32.19,0,0,1,26.84-9.14l.28,0,36,6.07a8.21,8.21,0,0,1,6.09,4.42,8,8,0,0,1-2.67,10.12l-69.93,47.85a4,4,0,0,1-4.51,0l-26.31-18A4,4,0,0,1,135.18,92.65Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M159.38,112a6,6,0,0,1,1.57-8.34l67.66-46.31a6,6,0,0,1,6.78,9.91l-67.67,46.3a6,6,0,0,1-8.34-1.56ZM237,197.09a6,6,0,0,1-8.34,1.56L136,135.27,91,166.06A34,34,0,1,1,84,156a1.8,1.8,0,0,0,.19.2L125.37,128,84.23,99.84,84,100a34,34,0,1,1,7-10.1l144.38,98.8A6,6,0,0,1,237,197.09ZM75.56,91.55a22,22,0,1,0-31.12,0,21.88,21.88,0,0,0,31.12,0ZM82,180a22,22,0,1,0-6.44,15.56h0A21.88,21.88,0,0,0,82,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M157.73,113.13A8,8,0,0,1,159.82,102L227.48,55.7a8,8,0,0,1,9,13.21l-67.67,46.3a7.92,7.92,0,0,1-4.51,1.4A8,8,0,0,1,157.73,113.13Zm80.87,85.09a8,8,0,0,1-11.12,2.08L136,137.7,93.49,166.78a36,36,0,1,1-9-13.19L121.83,128,84.44,102.41a35.86,35.86,0,1,1,9-13.19l143,97.87A8,8,0,0,1,238.6,198.22ZM80,180a20,20,0,1,0-5.86,14.14A19.85,19.85,0,0,0,80,180ZM74.14,90.13a20,20,0,1,0-28.28,0A19.85,19.85,0,0,0,74.14,90.13Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M161,110.87a4,4,0,0,1,1.05-5.56L229.74,59a4,4,0,0,1,4.52,6.61l-67.67,46.3a4,4,0,0,1-5.56-1ZM235.3,196a4,4,0,0,1-5.56,1L136,132.85,88.47,165.38a32,32,0,1,1-5.84-8c.45.45.89.92,1.31,1.4l45-30.78-45-30.78c-.42.48-.86,1-1.31,1.4a31.86,31.86,0,1,1,5.84-8l49.69,34h0l96.09,65.76A4,4,0,0,1,235.3,196ZM77,93a24.42,24.42,0,0,0,2.82-3.38s0,0,0,0l0,0A24,24,0,1,0,77,93ZM84,180a23.75,23.75,0,0,0-4.15-13.49l0-.06,0,0A24.5,24.5,0,0,0,77,163,24,24,0,1,0,77,197h0A23.85,23.85,0,0,0,84,180Z"}))]]),hQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,176H52V52H204Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),d.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,32Zm0,176H48V48H208V208Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34Zm2,174a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.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,32Zm0,176H48V48H208V208Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36Zm4,172a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),mQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),d.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),d.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),d.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),pQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),gQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z",opacity:"0.2"}),d.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["fill",d.createElement(d.Fragment,null,d.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,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z"}))]]),OQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),xQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),yQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),bQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),vQ=d.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Xe=d.forwardRef((t,e)=>{const{alt:n,color:r,size:i,weight:l,mirrored:s,children:c,weights:u,...h}=t,{color:g="currentColor",size:O,weight:x="regular",mirrored:y=!1,...v}=d.useContext(vQ);return d.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i??O,height:i??O,fill:r??g,viewBox:"0 0 256 256",transform:s||y?"scale(-1, 1)":void 0,...v,...h},!!n&&d.createElement("title",null,n),c,u.get(l??x))});Xe.displayName="IconBase";const i7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:AP}));i7.displayName="ArrowClockwiseIcon";const SQ=i7,a7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:MP}));a7.displayName="ArrowCounterClockwiseIcon";const wQ=a7,l7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:CP}));l7.displayName="ArrowLeftIcon";const kQ=l7,s7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:EP}));s7.displayName="ArrowsOutCardinalIcon";const AQ=s7,o7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:TP}));o7.displayName="CameraIcon";const MQ=o7,c7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:$P}));c7.displayName="CaretDownIcon";const CQ=c7,Nf=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:jP}));Nf.displayName="CaretRightIcon";const u7=Nf,f7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:PP}));f7.displayName="ChatCenteredTextIcon";const EQ=f7,d7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:QP}));d7.displayName="CheckIcon";const TQ=d7,h7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:ZP}));h7.displayName="CheckCircleIcon";const m7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:NP}));m7.displayName="ClipboardTextIcon";const $Q=m7,p7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:RP}));p7.displayName="ClockIcon";const jQ=p7,g7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:VP}));g7.displayName="CopyIcon";const PQ=g7,O7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:_P}));O7.displayName="EyeIcon";const QQ=O7,x7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:LP}));x7.displayName="FileIcon";const ZQ=x7,y7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:DP}));y7.displayName="FileCodeIcon";const NQ=y7,b7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:HP}));b7.displayName="FileCssIcon";const RQ=b7,v7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:XP}));v7.displayName="FileHtmlIcon";const VQ=v7,S7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:zP}));S7.displayName="FileJpgIcon";const _Q=S7,w7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:FP}));w7.displayName="FileJsIcon";const LQ=w7,k7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:BP}));k7.displayName="FileJsxIcon";const DQ=k7,A7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:YP}));A7.displayName="FileMdIcon";const HQ=A7,M7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:IP}));M7.displayName="FilePlusIcon";const Sy=M7,C7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:qP}));C7.displayName="FilePngIcon";const XQ=C7,E7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:GP}));E7.displayName="FileSvgIcon";const zQ=E7,T7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:UP}));T7.displayName="FileTsIcon";const FQ=T7,$7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:WP}));$7.displayName="FileTsxIcon";const BQ=$7,j7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:KP}));j7.displayName="FileTxtIcon";const YQ=j7,P7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:JP}));P7.displayName="FileVideoIcon";const IQ=P7,Q7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:eQ}));Q7.displayName="FilmStripIcon";const qQ=Q7,Z7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:tQ}));Z7.displayName="FolderSimpleIcon";const GQ=Z7,N7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:nQ}));N7.displayName="FolderSimplePlusIcon";const R7=N7,V7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:rQ}));V7.displayName="GearIcon";const UQ=V7,_7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:iQ}));_7.displayName="GridFourIcon";const WQ=_7,L7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:aQ}));L7.displayName="ImageIcon";const KQ=L7,D7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:lQ}));D7.displayName="LightningIcon";const JQ=D7,H7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:sQ}));H7.displayName="MagnetStraightIcon";const eZ=H7,X7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:oQ}));X7.displayName="MusicNoteIcon";const tZ=X7,z7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:cQ}));z7.displayName="PaletteIcon";const nZ=z7,F7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:uQ}));F7.displayName="PencilSimpleIcon";const rZ=F7,B7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:fQ}));B7.displayName="PlusIcon";const Y7=B7,I7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:dQ}));I7.displayName="ScissorsIcon";const iZ=I7,q7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:hQ}));q7.displayName="SquareIcon";const aZ=q7,G7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:mQ}));G7.displayName="StackIcon";const lZ=G7,U7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:pQ}));U7.displayName="TextAaIcon";const sZ=U7,W7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:gQ}));W7.displayName="TextTIcon";const oZ=W7,K7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:OQ}));K7.displayName="TrashIcon";const cZ=K7,bf=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:xQ}));bf.displayName="WarningIcon";const J7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:yQ}));J7.displayName="WaveformIcon";const uZ=J7,E8=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:bQ}));E8.displayName="XIcon";const fZ=E8;function wy({findings:t,projectId:e,onClose:n}){const r=t.filter(h=>h.severity==="error"),i=t.filter(h=>h.severity==="warning"),l=t.length>0,[s,c]=d.useState(!1),u=async()=>{const h=t.map(x=>{let y=`[${x.severity}] ${x.message}`;return x.file&&(y+=`
67
+ ${c}${u}${t.slice(i)}`}function Sj({scrollRef:t,ppsRef:e,durationRef:n,trackOrderRef:r,onFileDrop:i,onAssetDrop:l,onBlockDrop:s}){const[c,u]=d.useState(!1),h=d.useCallback(O=>{const x=O.dataTransfer.files.length>0,y=Array.from(O.dataTransfer.types),v=y.includes(B2),w=y.includes(Zf);!x&&!v&&!w||(O.preventDefault(),(v||w)&&(O.dataTransfer.dropEffect="copy"),u(!0))},[]),g=d.useCallback(O=>{O.preventDefault(),u(!1);const x=t.current,y=x==null?void 0:x.getBoundingClientRect(),v={rectLeft:(y==null?void 0:y.left)??0,rectTop:(y==null?void 0:y.top)??0,scrollLeft:(x==null?void 0:x.scrollLeft)??0,scrollTop:(x==null?void 0:x.scrollTop)??0,pixelsPerSecond:e.current,duration:n.current,trackHeight:no,trackOrder:r.current};if(i&&O.dataTransfer.files.length>0){i(Array.from(O.dataTransfer.files),x&&y?mp(v,O.clientX,O.clientY):void 0);return}const w=O.dataTransfer.getData(B2);if(w&&l&&x&&y){try{const k=JSON.parse(w);k.path&&l(k.path,mp(v,O.clientX,O.clientY))}catch{}return}const A=O.dataTransfer.getData(Zf);if(A&&s&&x&&y)try{const k=JSON.parse(A);k.name&&s(k.name,mp(v,O.clientX,O.clientY))}catch{}},[l,s,i,t,e,n,r]);return{isDragOver:c,setIsDragOver:u,handleAssetDragOver:h,handleAssetDrop:g}}function wj({isDragOver:t,onFileDrop:e,onDragOver:n,onDragLeave:r,onDrop:i}){return m.jsxs("div",{className:`h-full border-t bg-[#0a0a0b] flex flex-col select-none transition-colors duration-150 ${t?"border-studio-accent/50 bg-studio-accent/[0.03]":"border-neutral-800/50"}`,onDragOver:n,onDragLeave:r,onDrop:i,children:[m.jsx("div",{className:"flex-shrink-0 border-b border-neutral-800/40 flex items-end relative",style:{height:mo,paddingLeft:pn},children:[0,10,20,30,40,50].map(l=>m.jsxs("div",{className:"flex flex-col items-center",style:{position:"absolute",left:pn+l*14},children:[m.jsx("span",{className:"text-[9px] text-neutral-600 font-mono tabular-nums leading-none mb-0.5",children:`${Math.floor(l/60)}:${(l%60).toString().padStart(2,"0")}`}),m.jsx("div",{className:"w-px h-[5px] bg-neutral-700/40"})]},l))}),m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx("div",{className:`flex items-center gap-3 px-6 py-3 border border-dashed rounded-lg transition-colors duration-150 ${t?"border-studio-accent/60 bg-studio-accent/[0.06]":"border-neutral-700/50"}`,children:t?m.jsxs(m.Fragment,{children:[m.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:[m.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),m.jsx("polyline",{points:"7 10 12 15 17 10"}),m.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),m.jsx("span",{className:"text-[13px] text-studio-accent",children:"Drop media files to import"})]}):m.jsxs(m.Fragment,{children:[m.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:[m.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2"}),m.jsx("path",{d:"M7 2v20"}),m.jsx("path",{d:"M17 2v20"}),m.jsx("path",{d:"M2 7h20"}),m.jsx("path",{d:"M2 17h20"})]}),m.jsx("span",{className:"text-[13px] text-neutral-500",children:e?"Drop media here or describe your video to start":"Describe your video to start creating"})]})})})]})}const dy=d.memo(function({el:e,pps:n,clipY:r,isSelected:i,isHovered:l,isDragging:s=!1,hasCustomContent:c,capabilities:u,theme:h=BS,trackStyle:g,isComposition:O,onHoverStart:x,onHoverEnd:y,onPointerDown:v,onResizeStart:w,onClick:A,onDoubleClick:k,onContextMenu:C,children:T}){const $=e.start*n,M=Math.max(e.duration*n,4),j=Y$({isHovered:l,isSelected:i,isDragging:s}),E=i?g.accent:l?h.clipBorderHover:h.clipBorder,N=s?h.clipShadowDragging:i?`0 0 0 1px ${g.accent}80, 0 0 8px ${g.accent}25`:l?h.clipShadowHover:h.clipShadow,R=e.label||e.id||e.tag,L=j>.01;return m.jsxs("div",{"data-clip":"true",className:c?"absolute overflow-visible":"absolute flex items-center overflow-visible",style:{left:$,width:M,top:r,bottom:r,borderRadius:h.clipRadius,background:g.clip,border:`1px solid ${E}`,boxShadow:N,transition:"border-color 100ms, box-shadow 100ms",zIndex:s?20:i?10:l?5:1,cursor:u.canMove?"grab":"default",transform:s?"translateY(-1px)":void 0,opacity:s?.92:1},title:O?`${e.compositionSrc} • Double-click to open`:`${R} • ${e.start.toFixed(1)}s – ${(e.start+e.duration).toFixed(1)}s`,onPointerEnter:x,onPointerLeave:y,onPointerDown:v,onClick:A,onDoubleClick:k,onContextMenu:C,children:[m.jsx("div",{"aria-hidden":"true",style:{position:"absolute",left:0,top:0,bottom:0,width:3,background:g.accent,opacity:i?.7:.3,borderRadius:`${h.clipRadius} 0 0 ${h.clipRadius}`,zIndex:2,pointerEvents:"none"}}),L&&u.canTrimStart&&m.jsx("div",{"aria-hidden":"true",onPointerDown:V=>w==null?void 0:w("start",V),style:{position:"absolute",left:0,top:0,bottom:0,width:14,cursor:"col-resize",zIndex:4},children:m.jsx("div",{style:{position:"absolute",left:4,top:6,bottom:6,width:2,borderRadius:1,background:g.accent,opacity:j*.6}})}),L&&u.canTrimEnd&&m.jsx("div",{"aria-hidden":"true",onPointerDown:V=>w==null?void 0:w("end",V),style:{position:"absolute",right:0,top:0,bottom:0,width:14,cursor:"col-resize",zIndex:4},children:m.jsx("div",{style:{position:"absolute",right:4,top:6,bottom:6,width:2,borderRadius:1,background:g.accent,opacity:j*.6}})}),T]})}),kj=.8,Aj=d.memo(function({keyframesData:e,clipWidthPx:n,clipHeightPx:r,accentColor:i,isSelected:l,currentPercentage:s,elementId:c,selectedKeyframes:u,onClickKeyframe:h,onShiftClickKeyframe:g,onDragKeyframe:O,onContextMenuKeyframe:x}){const y=d.useRef(null);if(n<20)return null;const v=Math.round(r*kj),w=v/2,A=e.keyframes.slice().sort((M,j)=>M.percentage-j.percentage),k=l?i:"#a3a3a3",C=l?.4:.25,T=(M,j)=>{M.stopPropagation(),M.shiftKey?g==null||g(c,j):h==null||h(j)},$=(M,j)=>{if(M.button!==0)return;M.stopPropagation();const E=M.clientX,N=L=>{const V=L.clientX-E;Math.abs(V)>4&&(y.current={startX:E,startPct:j})},R=L=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",R);const V=y.current;if(y.current=null,!V)return;const q=(L.clientX-V.startX)/n*100,U=Math.max(0,Math.min(100,Math.round(V.startPct+q)));Math.abs(U-V.startPct)>.5&&(O==null||O(V.startPct,U))};document.addEventListener("pointermove",N),document.addEventListener("pointerup",R)};return m.jsxs("div",{className:"absolute inset-0",style:{zIndex:3,pointerEvents:"none"},children:[A.map((M,j)=>{if(j===0)return null;const E=A[j-1],N=E.percentage/100*n,R=M.percentage/100*n;return m.jsx("div",{className:"absolute",style:{left:N,top:"50%",width:R-N,height:2,transform:"translateY(-1px)",background:k,opacity:C,borderRadius:1}},`line-${E.percentage}-${M.percentage}`)}),A.map(M=>{const j=M.percentage/100*n-w,E=`${c}:${M.percentage}`,N=u.has(E),R=l&&Math.abs(M.percentage-s)<.5,L=N||R?i:"#a3a3a3";return m.jsx("button",{type:"button",className:"absolute",style:{left:j,top:"50%",transform:"translateY(-50%)",width:v,height:v,pointerEvents:"auto",background:"none",border:"none",cursor:"pointer",padding:0},onClick:V=>T(V,M.percentage),onPointerDown:V=>$(V,M.percentage),onContextMenu:V=>{V.preventDefault(),V.stopPropagation(),x==null||x(V,c,M.percentage)},title:`${M.percentage}%`,children:m.jsxs("svg",{width:v,height:v,viewBox:"0 0 10 10",children:[N&&m.jsx("path",{d:"M5 0L10 5L5 10L0 5Z",fill:"none",stroke:i,strokeWidth:"0.8",opacity:.5}),m.jsx("path",{d:"M5 1L9 5L5 9L1 5Z",fill:L,opacity:N||R?1:.55})]})},M.percentage)})]})}),Mj=d.memo(function({major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g}){return m.jsxs(m.Fragment,{children:[m.jsx("svg",{className:"absolute pointer-events-none",style:{left:pn,width:i},height:l,children:e.map(O=>{const x=O*r;return m.jsx("line",{x1:x,y1:mo,x2:x,y2:l,stroke:g.tickMinor,strokeWidth:"1"},`g-${O}`)})}),m.jsxs("div",{className:"relative overflow-hidden",style:{height:mo,marginLeft:pn,width:i},children:[u&&!h&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none z-10",children:m.jsx("span",{className:"text-[9px] font-medium",style:{color:g.textSecondary},children:"Drag or click a clip to edit range"})}),n.map(O=>m.jsx("div",{className:"absolute bottom-0",style:{left:O*r},children:m.jsx("div",{className:"w-px h-[3px]",style:{background:g.tickMinor}})},`m-${O}`)),e.map(O=>m.jsxs("div",{className:"absolute bottom-0 flex flex-col items-center",style:{left:O*r},children:[m.jsx("span",{className:"text-[9px] font-mono tabular-nums leading-none mb-0.5",style:{color:g.tickText},children:J$(O,s,c)}),m.jsx("div",{className:"w-px h-[5px]",style:{background:g.tickMajor}})]},`M-${O}`))]})]})}),Cj={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Ej="VITE_STUDIO_ENABLE_PREVIEW_MANUAL_DRAGGING",Tj="VITE_STUDIO_ENABLE_INSPECTOR_PANELS",$j="VITE_STUDIO_ENABLE_MOTION_PANEL",jj=new Set(["1","true","yes","on","enabled"]),Pj=new Set(["0","false","no","off","disabled"]);function Po(t,e,n){for(const r of e){const i=t[r];if(typeof i=="boolean")return i;if(typeof i!="string")continue;const l=i.trim().toLowerCase();if(l){if(jj.has(l))return!0;if(Pj.has(l))return!1}}return n}const Qj=typeof window<"u"?window.__HF_STUDIO_ENV__??{}:{},Qo={...Cj??{},...Qj},Zj=Po(Qo,[Ej,"VITE_STUDIO_PREVIEW_MANUAL_EDITING_ENABLED"],!0),Mn=Po(Qo,[Tj,"VITE_STUDIO_INSPECTOR_PANELS_ENABLED"],!0),M8=Po(Qo,[$j,"VITE_STUDIO_MOTION_PANEL_ENABLED"],!1),pp=Po(Qo,["VITE_STUDIO_ENABLE_BLOCKS_PANEL","VITE_STUDIO_BLOCKS_PANEL_ENABLED"],!0),Y2=Po(Qo,["VITE_STUDIO_ENABLE_GSAP_PANEL","VITE_STUDIO_GSAP_PANEL_ENABLED"],!0),Ja=Po(Qo,["VITE_STUDIO_ENABLE_KEYFRAMES","VITE_STUDIO_KEYFRAMES_ENABLED"],!1),I2=Mn,hy="Manual editing is temporarily disabled",Nj=d.memo(function({major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g,displayTrackOrder:O,trackOrder:x,tracks:y,trackStyles:v,selectedElementId:w,hoveredClip:A,draggedClip:k,resizingClip:C,blockedClipRef:T,suppressClickRef:$,scrollRef:M,renderClipContent:j,renderClipOverlay:E,playheadRef:N,onResizeElement:R,onMoveElement:L,onDrillDown:V,onSelectElement:z,setHoveredClip:q,setShowPopover:U,setRangeSelection:K,setResizingClip:D,setDraggedClip:G,setSelectedElementId:H,syncClipDragAutoScroll:F,shiftClickClipRef:I,getPreviewElement:P,getTrackStyle:Z,keyframeCache:X,selectedKeyframes:Y,currentTime:J,onClickKeyframe:ne,onShiftClickKeyframe:B,onDragKeyframe:re,onContextMenuKeyframe:ae,onContextMenuClip:ue,onToggleKeyframeAtPlayhead:me}){const ye=(k==null?void 0:k.element)??null,Oe=(k==null?void 0:k.started)===!0&&ye?I$({element:ye,draggedElementId:ye.key??ye.id,previewStart:k.previewStart,previewTrack:k.previewTrack}):null,Se=(k==null?void 0:k.started)===!0&&Oe&&M.current?{left:k.pointerClientX-M.current.getBoundingClientRect().left+M.current.scrollLeft-k.pointerOffsetX,top:k.pointerClientY-M.current.getBoundingClientRect().top+M.current.scrollTop-k.pointerOffsetY}:null,Ae=(Me,Ve)=>m.jsxs(m.Fragment,{children:[E==null?void 0:E(Me),m.jsx("div",{className:j?"absolute inset-0 overflow-hidden":"flex items-center overflow-hidden flex-1 min-w-0 px-3 gap-2",children:(j==null?void 0:j(Me,Ve))??m.jsx("span",{className:"truncate text-[10px] font-medium leading-none",style:{color:Ve.label},children:Me.label||Me.id||Me.tag})})]});return m.jsxs("div",{className:"relative",style:{height:l,width:pn+i},children:[m.jsx(Mj,{major:e,minor:n,pps:r,trackContentWidth:i,totalH:l,effectiveDuration:s,majorTickInterval:c,shiftHeld:u,rangeSelection:h,theme:g}),O.map(Me=>{var yt;const Ve=((yt=y.find(([_e])=>_e===Me))==null?void 0:yt[1])??[],Pe=v.get(Me)??Z(""),ft=(k==null?void 0:k.started)===!0&&!x.includes(Me)&&Ve.length===0;return m.jsxs("div",{className:"relative flex",style:{height:no,background:g.rowBackground,borderBottom:`1px solid ${g.rowBorder}`},children:[m.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:pn,background:g.gutterBackground,borderRight:`1px solid ${g.gutterBorder}`},children:m.jsx("div",{className:"flex items-center justify-center",style:{width:18,height:18,borderRadius:6,backgroundColor:Pe.iconBackground,border:`1px solid ${g.gutterBorder}`,color:"#fff"},children:Pe.icon})}),m.jsxs("div",{style:{width:i},className:"relative",children:[ft&&m.jsx("div",{className:"absolute inset-0 flex items-center",style:{paddingLeft:16,color:Pe.label,fontSize:11,letterSpacing:"0.06em",textTransform:"uppercase",opacity:.5},children:"New track"}),Ve.map((_e,Ye)=>{const Le=Z(_e.tag),be=_e.key??_e.id,dt=ty(_e),Ue=w===be,bt=!!_e.compositionSrc,Re=`${be}-${Ye}`;if((k==null?void 0:k.started)===!0&&((ye==null?void 0:ye.key)??(ye==null?void 0:ye.id))===be)return null;const Rt=P(_e);return m.jsxs(dy,{onContextMenu:we=>{we.preventDefault(),ue==null||ue(we,_e)},el:Rt,pps:r,clipY:hp,isSelected:Ue,isHovered:A===Re,isDragging:!1,hasCustomContent:!!j,capabilities:dt,theme:g,trackStyle:Le,isComposition:bt,onHoverStart:()=>q(Re),onHoverEnd:()=>q(null),onResizeStart:(we,ht)=>{ht.button!==0||ht.shiftKey||!R||we==="start"&&!dt.canTrimStart||we==="end"&&!dt.canTrimEnd||(ht.stopPropagation(),T.current=null,U(!1),K(null),D({element:_e,edge:we,originClientX:ht.clientX,previewStart:_e.start,previewDuration:_e.duration,previewPlaybackStart:_e.playbackStart,started:!1}))},onPointerDown:we=>{var ve,ze;if(we.button!==0)return;if(we.shiftKey){I.current={element:_e,anchorX:we.clientX,anchorY:we.clientY};return}const Mt=we.currentTarget.getBoundingClientRect(),ot=L$({width:Mt.width,offsetX:we.clientX-Mt.left,handleWidth:q$,capabilities:dt});if(ot&&(ot==="move"&&L||ot!=="move"&&R)){T.current={element:_e,intent:ot,originClientX:we.clientX,originClientY:we.clientY,started:!1};return}!L||!dt.canMove||(T.current=null,U(!1),K(null),G({element:_e,originClientX:we.clientX,originClientY:we.clientY,originScrollLeft:((ve=M.current)==null?void 0:ve.scrollLeft)??0,originScrollTop:((ze=M.current)==null?void 0:ze.scrollTop)??0,pointerClientX:we.clientX,pointerClientY:we.clientY,pointerOffsetX:we.clientX-Mt.left,pointerOffsetY:we.clientY-Mt.top,previewStart:_e.start,previewTrack:_e.track,started:!1}),F(we.clientX,we.clientY))},onClick:we=>{if(we.stopPropagation(),$.current)return;const ht=Ue?null:_e;H(ht?be:null),z==null||z(ht)},onDoubleClick:we=>{we.stopPropagation(),!$.current&&bt&&V&&V(_e)},children:[Ae(Rt,Le),Ja&&(X==null?void 0:X.get(be))&&m.jsx(Aj,{keyframesData:X.get(be),clipWidthPx:Math.max(Rt.duration*r,4),clipHeightPx:no-2*hp,accentColor:Le.accent,isSelected:Ue,currentPercentage:Rt.duration>0?(J-Rt.start)/Rt.duration*100:0,elementId:be,selectedKeyframes:Y,onClickKeyframe:we=>ne==null?void 0:ne(Rt,we),onShiftClickKeyframe:B,onDragKeyframe:(we,ht)=>re==null?void 0:re(Rt,we,ht),onContextMenuKeyframe:ae})]},Re)})]})]},Me)}),Oe&&Se&&m.jsx("div",{className:"absolute pointer-events-none",style:{top:Se.top,left:Se.left,width:Math.max(Oe.duration*r,4),height:no-hp*2,zIndex:40},children:m.jsx(dy,{el:{...Oe,start:0},pps:r,clipY:0,isSelected:w===(Oe.key??Oe.id),isHovered:!1,isDragging:!0,hasCustomContent:!!j,capabilities:ty(Oe),theme:g,trackStyle:Z(Oe.tag),isComposition:!!Oe.compositionSrc,onHoverStart:()=>{},onHoverEnd:()=>{},onResizeStart:()=>{},onClick:()=>{},onDoubleClick:()=>{},children:Ae(Oe,Z(Oe.tag))})}),h&&m.jsx("div",{className:"absolute pointer-events-none",style:{left:pn+Math.min(h.start,h.end)*r,width:Math.abs(h.end-h.start)*r,top:mo,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}}),m.jsxs("div",{ref:N,className:"absolute top-0 bottom-0 pointer-events-none",style:{left:`${pn}px`,zIndex:100},children:[m.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)"}}),m.jsx("div",{className:"absolute",style:{left:"50%",top:0,transform:"translateX(-50%)"},children:m.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))"}})})]})]})}),q2=".hyperframes/studio-motion.json",gp="studio-motion",fl="data-hf-studio-motion",po="data-hf-studio-motion-original-transform",fu="data-hf-studio-motion-original-opacity",du="data-hf-studio-motion-original-visibility",v1=["none","power1.in","power1.out","power1.inOut","power2.in","power2.out","power2.inOut","power3.in","power3.out","power3.inOut","power4.in","power4.out","power4.inOut","sine.in","sine.out","sine.inOut","expo.in","expo.out","expo.inOut","circ.in","circ.out","circ.inOut","back.in(1.7)","back.out(1.7)","back.inOut(1.7)","elastic.out(1, 0.45)","bounce.out"],Hc={x1:.215,y1:.61,x2:.355,y2:1},Rj={none:{x1:0,y1:0,x2:1,y2:1},"power1.in":{x1:.55,y1:.085,x2:.68,y2:.53},"power1.out":{x1:.25,y1:.46,x2:.45,y2:.94},"power1.inOut":{x1:.455,y1:.03,x2:.515,y2:.955},"power2.in":{x1:.55,y1:.055,x2:.675,y2:.19},"power2.out":{x1:.215,y1:.61,x2:.355,y2:1},"power2.inOut":{x1:.645,y1:.045,x2:.355,y2:1},"power3.in":{x1:.895,y1:.03,x2:.685,y2:.22},"power3.out":{x1:.165,y1:.84,x2:.44,y2:1},"power3.inOut":{x1:.77,y1:0,x2:.175,y2:1},"power4.in":{x1:.755,y1:.05,x2:.855,y2:.06},"power4.out":{x1:.23,y1:1,x2:.32,y2:1},"power4.inOut":{x1:.86,y1:0,x2:.07,y2:1},"sine.in":{x1:.47,y1:0,x2:.745,y2:.715},"sine.out":{x1:.39,y1:.575,x2:.565,y2:1},"sine.inOut":{x1:.445,y1:.05,x2:.55,y2:.95},"expo.in":{x1:.95,y1:.05,x2:.795,y2:.035},"expo.out":{x1:.19,y1:1,x2:.22,y2:1},"expo.inOut":{x1:1,y1:0,x2:0,y2:1},"circ.in":{x1:.6,y1:.04,x2:.98,y2:.335},"circ.out":{x1:.075,y1:.82,x2:.165,y2:1},"circ.inOut":{x1:.785,y1:.135,x2:.15,y2:.86},"back.in(1.7)":{x1:.6,y1:-.28,x2:.735,y2:.045},"back.out(1.7)":{x1:.175,y1:.885,x2:.32,y2:1.275},"back.inOut(1.7)":{x1:.68,y1:-.55,x2:.265,y2:1.55},"elastic.out(1, 0.45)":{x1:.16,y1:1.32,x2:.28,y2:.86},"bounce.out":{x1:.34,y1:1.56,x2:.64,y2:.74}},Vj=/^M\s*0\s*,\s*0\s*C\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s+1\s*,\s*1\s*$/i;function my(t,e){return Number.isFinite(t)&&t>0?t:e}function _j(t,e){return Number.isFinite(t)&&t>=0?t:e}function Lj(t){return t.trim()||"none"}function Xc(t){return Math.round(t*1e3)/1e3}function S1(t,e,n,r){return Number.isFinite(t)?Math.min(n,Math.max(e,t)):r}function w1(t){const e=Xc(t);return Object.is(e,-0)?"0":`${e}`}function G2(t){return typeof t=="number"&&Number.isFinite(t)?t:null}function C8(t){return{x1:Xc(S1(t.x1??Hc.x1,0,1,.215)),y1:Xc(S1(t.y1??Hc.y1,-.6,1.6,.61)),x2:Xc(S1(t.x2??Hc.x2,0,1,.355)),y2:Xc(S1(t.y2??Hc.y2,-.6,1.6,1))}}function py(t){if(!t)return null;const e=t.trim().match(Vj);if(!e)return null;const n={x1:Number.parseFloat(e[1]??""),y1:Number.parseFloat(e[2]??""),x2:Number.parseFloat(e[3]??""),y2:Number.parseFloat(e[4]??"")};return Object.values(n).every(Number.isFinite)?C8(n):null}function GS(t){const e=C8(t);return`M0,0 C${w1(e.x1)},${w1(e.y1)} ${w1(e.x2)},${w1(e.y2)} 1,1`}function hu(t){return Rj[t]??Hc}function Dj(t,e){const n=_j(e.start,0),r=my(e.duration,.6),i=my(e.distance,32),l=Lj(e.ease),s=e.direction??"up",c={start:n,duration:r,ease:l,customEase:e.customEase};if(t==="pop")return{...c,from:{scale:.88,autoAlpha:0},to:{scale:1,autoAlpha:1}};if(t==="slide"){const u=s==="right"?-i:s==="left"?i:0,h=s==="down"?-i:s==="up"?i:0;return{...c,from:{x:u,y:h,autoAlpha:0},to:{x:0,y:0,autoAlpha:1}}}return{...c,from:{y:s==="down"?-i:i,autoAlpha:0},to:{y:0,autoAlpha:1}}}function gy(t){if(!t||typeof t!="object")return null;const e=t,n={};for(const r of["x","y","scale","rotation","opacity","autoAlpha"]){const i=G2(e[r]);i!=null&&(n[r]=i)}return Object.keys(n).length>0?n:null}function Hj(t){if(!t||typeof t!="object")return;const e=t,n=typeof e.id=="string"?e.id.trim():"",r=typeof e.data=="string"?e.data.trim():"";if(!(!n||!r))return{id:n,data:r}}function US(t){const e=t.getAttribute(fl);if(!e||e==="true")return null;try{const n=JSON.parse(e);if(!n||typeof n!="object")return null;const r=n,i=G2(r.start),l=G2(r.duration);if(i==null||l==null||i<0||l<=0)return null;const s=typeof r.ease=="string"&&r.ease.trim()?r.ease.trim():"none",c=gy(r.from),u=gy(r.to);return!c||!u?null:{start:i,duration:l,ease:s,customEase:Hj(r.customEase),from:c,to:u}}catch{return null}}function Xj(t,e){t.getAttribute(po)||(t.setAttribute(po,t.style.transform),t.setAttribute(fu,t.style.opacity),t.setAttribute(du,t.style.visibility));const n={start:e.start,duration:e.duration,ease:e.ease,from:e.from,to:e.to};e.customEase&&(n.customEase=e.customEase),t.setAttribute(fl,JSON.stringify(n))}function zj(t,e){var n;t.hasAttribute(fl)&&((n=e==null?void 0:e.set)==null||n.call(e,t,{clearProps:"transform,opacity,visibility"}),t.style.transform=t.getAttribute(po)??"",t.style.opacity=t.getAttribute(fu)??"",t.style.visibility=t.getAttribute(du)??"",t.removeAttribute(fl),t.removeAttribute(po),t.removeAttribute(fu),t.removeAttribute(du))}function Fj(t,e){var n,r,i,l;try{const s=(r=(n=t.__player)==null?void 0:n.getTime)==null?void 0:r.call(n);if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s)}catch{}try{const s=(l=(i=t.__timeline)==null?void 0:i.time)==null?void 0:l.call(i);if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s)}catch{}return 0}function U2(t,e){var h,g,O,x,y,v;const n=t.defaultView;if(!n)return 0;const r=n.gsap;n.__timelines=n.__timelines??{},(g=(h=n.__timelines[gp])==null?void 0:h.kill)==null||g.call(h),delete n.__timelines[gp];const i=(O=t.defaultView)==null?void 0:O.HTMLElement;if(!i)return 0;const l=[];for(const w of Array.from(t.querySelectorAll(`[${fl}]`))){if(!(w instanceof i))continue;const A=US(w);A&&l.push({element:w,motion:A})}if(!(r!=null&&r.timeline)||l.length===0)return 0;const s=r.timeline({paused:!0,defaults:{overwrite:"auto"}});let c=0;for(const{element:w,motion:A}of l){if(!s.fromTo)continue;const k={...A.from},C=Bj(n,A),T={...A.to,duration:A.duration,ease:C,overwrite:"auto",immediateRender:!1};s.fromTo(w,k,T,A.start),c+=1}if(c===0)return(x=s.kill)==null||x.call(s),0;n.__timelines[gp]=s,(y=s.pause)==null||y.call(s);const u=Fj(n);return s.totalTime?s.totalTime(u,!1):(v=s.time)==null||v.call(s,u),c}function Bj(t,e){var i,l;const n=e.customEase;if(!n)return e.ease;const r=t.CustomEase;if(typeof(r==null?void 0:r.create)!="function")return e.ease;try{return(l=(i=t.gsap)==null?void 0:i.registerPlugin)==null||l.call(i,r),r.create(n.id,n.data),n.id}catch{return e.ease}}const Yj={set:"Set",to:"Animate",from:"Animate In",fromTo:"From → To"},WS={set:"Instantly snap to these values — no transition",to:"Smoothly animate the element to these target values",from:"Element starts at these values and transitions to its normal state",fromTo:"Animate from one state to another"},sl={x:"Move X",y:"Move Y",width:"Width",height:"Height",rotation:"Rotate",opacity:"Opacity",scale:"Scale",scaleX:"Scale X",scaleY:"Scale Y",autoAlpha:"Visibility",visibility:"Visible",scaleX_alias:"Stretch X",filter:"Filter",clipPath:"Clip Path",color:"Color",backgroundColor:"Background",borderColor:"Border Color",borderRadius:"Radius",fontSize:"Font Size",letterSpacing:"Tracking",skewX:"Skew X",skewY:"Skew Y",innerText:"Counter Value"},KS={x:"px",y:"px",width:"px",height:"px",rotation:"°",opacity:"%",scale:"×",scaleX:"×",scaleY:"×",autoAlpha:"%",visibility:""},Ij={x:"Move left/right (negative = left, positive = right)",y:"Move up/down (negative = up, positive = down)",opacity:"How visible (0 = invisible, 1 = fully visible)",scale:"Size multiplier (1 = normal, 2 = double, 0.5 = half)",scaleX:"Horizontal stretch (1 = normal)",scaleY:"Vertical stretch (1 = normal)",rotation:"Spin angle (360 = full rotation)",width:"Element width",height:"Element height",autoAlpha:"Like opacity but hides element completely at 0",visibility:"Show or hide the element",innerText:"End value for a number roll-up (the number it counts up/down to)"},mu={none:"Constant speed","power1.out":"Gentle slowdown","power2.out":"Smooth slowdown","power3.out":"Snappy slowdown","power4.out":"Sharp slowdown","power1.in":"Gentle speedup","power2.in":"Smooth speedup","power3.in":"Strong speedup","power4.in":"Sharp speedup","power1.inOut":"Gentle ease","power2.inOut":"Smooth ease","power3.inOut":"Strong ease","power4.inOut":"Sharp ease","back.out":"Overshoot & settle","back.in":"Pull back & go","back.inOut":"Pull & overshoot","elastic.out":"Springy bounce","elastic.in":"Wind up spring","elastic.inOut":"Full spring","bounce.out":"Drop & bounce","bounce.in":"Reverse bounce","bounce.inOut":"Double bounce","expo.out":"Very snappy stop","expo.in":"Very slow start","expo.inOut":"Dramatic ease","spring-gentle":"Gentle spring","spring-bouncy":"Bouncy spring","spring-stiff":"Stiff spring","spring-wobbly":"Wobbly spring","spring-heavy":"Heavy spring"},qj={none:[0,0,1,1],"power1.out":[0,0,.58,1],"power2.out":[.16,1,.3,1],"power3.out":[.08,.82,.17,1],"power4.out":[.06,.73,.09,1],"power1.in":[.42,0,1,1],"power2.in":[.55,.06,.68,.19],"power3.in":[.6,.04,.98,.34],"power4.in":[.7,0,.84,0],"power1.inOut":[.42,0,.58,1],"power2.inOut":[.45,.05,.55,.95],"power3.inOut":[.65,.05,.35,1],"power4.inOut":[.76,0,.24,1],"back.out":[.34,1.56,.64,1],"back.in":[.36,0,.66,-.56],"back.inOut":[.68,-.55,.27,1.55],"expo.out":[.16,1,.3,1],"expo.in":[.7,0,.84,0],"expo.inOut":[.87,0,.13,1]};function Gj(t){var i;const e=t.match(/^custom\((.+)\)$/);if(!e)return hu("power2.out");const r=(i=e[1].match(/[\d.]+/g))==null?void 0:i.map(Number);return!r||r.length<6?hu("power2.out"):{x1:r[2],y1:r[3],x2:r[4],y2:r[5]}}const JS=new Set(["opacity","autoAlpha"]),e7={opacity:{min:0,max:1,step:.01},autoAlpha:{min:0,max:1,step:.01},scale:{min:-10,max:10,step:.01},scaleX:{min:-10,max:10,step:.01},scaleY:{min:-10,max:10,step:.01},rotation:{step:1},skewX:{min:-90,max:90,step:1},skewY:{min:-90,max:90,step:1},width:{min:0,step:1},height:{min:0,step:1},borderRadius:{min:0,step:1},x:{step:1},y:{step:1},fontSize:{min:1,step:1},letterSpacing:{step:.1},innerText:{step:1}};function Oy(t,e){const n=e7[t];if(!n)return e;let r=e;return n.min!==void 0&&(r=Math.max(n.min,r)),n.max!==void 0&&(r=Math.min(n.max,r)),r}const Uj=["to","from","fromTo","set"],Wj={to:"Animate",from:"Animate In",fromTo:"From → To",set:"Set Instantly"},Kj=["none","power1.out","power2.out","power3.out","power1.in","power2.in","power1.inOut","power2.inOut","back.out","elastic.out","bounce.out","expo.out"],Jj=d.memo(function({state:e,onClose:n,onDelete:r,onDeleteAll:i,onChangeEase:l,onCopyProperties:s}){const c=d.useRef(null),u=d.useRef(null),h=d.useCallback(y=>{var v;y instanceof KeyboardEvent&&y.key!=="Escape"||y instanceof MouseEvent&&((v=c.current)!=null&&v.contains(y.target))||n()},[n]);d.useEffect(()=>(document.addEventListener("mousedown",h),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",h)}),[h]);const g=Math.min(e.x,window.innerWidth-200),O=Math.min(e.y,window.innerHeight-300),x=e.currentEase?mu[e.currentEase]??e.currentEase:"Default";return m.jsxs("div",{ref:c,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[180px]",style:{left:g,top:O},children:[m.jsxs("div",{className:"relative group",children:[m.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-1.5 text-xs text-neutral-300 hover:bg-neutral-800 cursor-pointer text-left",children:[m.jsxs("span",{children:["Ease: ",m.jsx("span",{className:"text-neutral-500",children:x})]}),m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",className:"text-neutral-500 ml-2",children:m.jsx("path",{d:"M3 1l4 3-4 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),m.jsx("div",{ref:u,className:"absolute left-full top-0 ml-0.5 hidden group-hover:block bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[160px] max-h-[300px] overflow-y-auto",children:Kj.map(y=>m.jsxs("button",{type:"button",className:`w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-neutral-800 cursor-pointer text-left ${y===e.currentEase?"text-white font-medium":"text-neutral-300"}`,onClick:()=>{l(e.elementId,e.percentage,y),n()},children:[y===e.currentEase&&m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",className:"text-green-400 flex-shrink-0",children:m.jsx("path",{d:"M1 4l2 2 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})}),m.jsx("span",{className:y===e.currentEase?"":"ml-[16px]",children:mu[y]??y})]},y))})]}),m.jsx("div",{className:"my-1 border-t border-neutral-700/60"}),m.jsx("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{r(e.elementId,e.percentage),n()},children:"Delete Keyframe"}),m.jsx("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{i(e.elementId),n()},children:"Delete All Keyframes"}),m.jsx("button",{type:"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:()=>{s(e.elementId,e.percentage),n()},children:"Copy Properties"})]})});function eP({scrollRef:t,ppsRef:e,durationRef:n,trackOrderRef:r,onMoveElement:i,onResizeElement:l,onBlockedEditAttempt:s,setShowPopover:c,setRangeSelectionRef:u}){const h=fe(q=>q.updateElement),[g,O]=d.useState(null),x=d.useRef(null);x.current=g;const[y,v]=d.useState(null),w=d.useRef(null);w.current=y;const A=d.useRef(null),k=d.useRef(!1),C=d.useRef(i);C.current=i;const T=d.useRef(l);T.current=l;const $=d.useRef(0),M=d.useRef(null),j=d.useCallback((q,U,K)=>{const D=t.current,G=N$({start:q.element.start,track:q.element.track,duration:q.element.duration,originClientX:q.originClientX,originClientY:q.originClientY,originScrollLeft:q.originScrollLeft,originScrollTop:q.originScrollTop,currentScrollLeft:(D==null?void 0:D.scrollLeft)??q.originScrollLeft,currentScrollTop:(D==null?void 0:D.scrollTop)??q.originScrollTop,pixelsPerSecond:e.current,trackHeight:no,maxStart:Math.max(0,n.current-q.element.duration),trackOrder:r.current},U,K);return{...q,started:!0,pointerClientX:U,pointerClientY:K,previewStart:G.start,previewTrack:G.track}},[t,e,n,r]),E=d.useCallback(()=>{M.current=null,$.current&&(cancelAnimationFrame($.current),$.current=0)},[]),N=d.useCallback(()=>{$.current=0;const q=x.current,U=M.current,K=t.current;if(!q||!U||!K)return;const D=K.getBoundingClientRect(),G=ey(D,U.clientX,U.clientY);if(G.x===0&&G.y===0)return;const H=Math.max(0,K.scrollWidth-K.clientWidth),F=Math.max(0,K.scrollHeight-K.clientHeight),I=Math.max(0,Math.min(H,K.scrollLeft+G.x)),P=Math.max(0,Math.min(F,K.scrollTop+G.y));I===K.scrollLeft&&P===K.scrollTop||(K.scrollLeft=I,K.scrollTop=P,O(Z=>Z&&j(Z,U.clientX,U.clientY)),$.current=requestAnimationFrame(N))},[t,j]),R=d.useCallback((q,U)=>{M.current={clientX:q,clientY:U};const K=t.current;if(!K)return;const D=K.getBoundingClientRect(),G=ey(D,q,U);if(G.x===0&&G.y===0){$.current&&(cancelAnimationFrame($.current),$.current=0);return}$.current||($.current=requestAnimationFrame(N))},[t,N]),L=d.useRef(j);L.current=j;const V=d.useRef(R);V.current=R;const z=d.useRef(E);return z.current=E,Xt(()=>{const q=()=>{requestAnimationFrame(()=>{k.current=!1})},U=D=>{var P,Z,X;const G=x.current,H=w.current,F=A.current;if(H){const Y=Math.abs(D.clientX-H.originClientX);if(!H.started&&Y<2)return;c(!1),(P=u.current)==null||P.call(u,null);const J=H.element.sourceDuration!=null?Math.max(0,(H.element.sourceDuration-(H.element.playbackStart??0))/Math.max(H.element.playbackRate??1,.1)):Number.POSITIVE_INFINITY,ne=H.element.tag.toLowerCase(),B=ne==="audio"||ne==="video",re=R$({start:H.element.start,duration:H.element.duration,originClientX:H.originClientX,pixelsPerSecond:e.current,minStart:0,maxEnd:Math.min(n.current,H.element.start+J),playbackStart:H.edge==="start"&&B?H.element.playbackStart??0:H.element.playbackStart,playbackRate:H.element.playbackRate},H.edge,D.clientX);v(ae=>ae&&{...ae,started:!0,previewStart:re.start,previewDuration:re.duration,previewPlaybackStart:re.playbackStart});return}if(F){const Y=Math.hypot(D.clientX-F.originClientX,D.clientY-F.originClientY),J=F.intent==="move"?4:2;if(!F.started&&Y<J)return;F.started||(F.started=!0,A.current=F,k.current=!0,c(!1),(Z=u.current)==null||Z.call(u,null),s==null||s(F.element,F.intent));return}if(!G)return;const I=Math.hypot(D.clientX-G.originClientX,D.clientY-G.originClientY);!G.started&&I<4||(c(!1),(X=u.current)==null||X.call(u,null),O(Y=>Y&&L.current(Y,D.clientX,D.clientY)),V.current(D.clientX,D.clientY))},K=()=>{var I,P;z.current();const D=w.current;if(D){if(w.current=null,v(null),!D.started||(k.current=!0,q(),!(D.previewStart!==D.element.start||D.previewDuration!==D.element.duration||D.previewPlaybackStart!==D.element.playbackStart)))return;h(D.element.key??D.element.id,{start:D.previewStart,duration:D.previewDuration,playbackStart:D.previewPlaybackStart}),Promise.resolve((I=T.current)==null?void 0:I.call(T,D.element,{start:D.previewStart,duration:D.previewDuration,playbackStart:D.previewPlaybackStart})).catch(X=>{h(D.element.key??D.element.id,{start:D.element.start,duration:D.element.duration,playbackStart:D.element.playbackStart}),console.error("[Timeline] Failed to persist clip resize",X)});return}const G=A.current;if(G){if(A.current=null,!G.started)return;q();return}const H=x.current;!H||(x.current=null,O(null),!H.started)||(k.current=!0,q(),!(H.previewStart!==H.element.start||H.previewTrack!==H.element.track))||(h(H.element.key??H.element.id,{start:H.previewStart,track:H.previewTrack}),Promise.resolve((P=C.current)==null?void 0:P.call(C,H.element,{start:H.previewStart,track:H.previewTrack})).catch(Z=>{h(H.element.key??H.element.id,{start:H.element.start,track:H.element.track}),console.error("[Timeline] Failed to persist clip move",Z)}))};return window.addEventListener("pointermove",U),window.addEventListener("pointerup",K),window.addEventListener("pointercancel",K),()=>{z.current(),window.removeEventListener("pointermove",U),window.removeEventListener("pointerup",K),window.removeEventListener("pointercancel",K)}}),{draggedClip:g,setDraggedClip:O,resizingClip:y,setResizingClip:v,blockedClipRef:A,suppressClickRef:k,syncClipDragAutoScroll:R,stopClipDragAutoScroll:E}}const tP=d.memo(function({x:e,y:n,element:r,currentTime:i,onClose:l,onSplit:s,onDelete:c}){const u=d.useRef(null),h=d.useCallback(w=>{var A;w instanceof KeyboardEvent&&w.key!=="Escape"||w instanceof MouseEvent&&((A=u.current)!=null&&A.contains(w.target))||l()},[l]);d.useEffect(()=>(document.addEventListener("mousedown",h),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",h)}),[h]);const g=Math.min(e,window.innerWidth-200),O=Math.min(n,window.innerHeight-200),x=["video","audio","img"].includes(r.tag),y=x&&i>r.start&&i<r.start+r.duration,v=x?y?`Split at ${i.toFixed(2)}s`:"Split (move playhead inside clip)":null;return m.jsxs("div",{ref:u,className:"fixed z-50 bg-neutral-900 border border-neutral-700 rounded-md shadow-lg py-1 min-w-[180px]",style:{left:g,top:O},children:[v&&m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:`w-full flex items-center justify-between px-3 py-1.5 text-xs text-left ${y?"text-neutral-300 hover:bg-neutral-800 cursor-pointer":"text-neutral-600 cursor-not-allowed"}`,disabled:!y,onClick:()=>{y&&(s(r,i),l())},children:[m.jsx("span",{children:v}),m.jsx("span",{className:"text-neutral-500 text-[10px] ml-3",children:"S"})]}),m.jsx("div",{className:"my-1 border-t border-neutral-700/60"})]}),m.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-1.5 text-xs text-red-400 hover:bg-neutral-800 cursor-pointer text-left",onClick:()=>{c(r),l()},children:[m.jsx("span",{children:"Delete"}),m.jsx("span",{className:"text-neutral-500 text-[10px] ml-3",children:"⌫"})]})]})}),nP=d.memo(function({onSeek:e,onDrillDown:n,renderClipContent:r,renderClipOverlay:i,onFileDrop:l,onAssetDrop:s,onBlockDrop:c,onDeleteElement:u,onMoveElement:h,onResizeElement:g,onBlockedEditAttempt:O,onSplitElement:x,onSelectElement:y,onDeleteKeyframe:v,onDeleteAllKeyframes:w,onChangeKeyframeEase:A,onMoveKeyframe:k,onToggleKeyframeAtPlayhead:C,theme:T}={}){const $=d.useMemo(()=>({...BS,...T}),[T]),M=fe(xe=>xe.elements),j=fe(xe=>xe.duration),E=fe(xe=>xe.timelineReady),N=fe(xe=>xe.selectedElementId),R=fe(xe=>xe.setSelectedElementId),L=fe(xe=>xe.currentTime),V=fe(xe=>xe.zoomMode),z=fe(xe=>xe.manualZoomPercent),q=fe(xe=>xe.setZoomMode),U=fe(xe=>xe.setManualZoomPercent),K=d.useRef(null),D=d.useRef(null),G=d.useRef(null),[H,F]=d.useState(null),I=d.useRef(!1),[P,Z]=d.useState(!1);Xt(()=>{const xe=zt=>zt.key==="Shift"&&Z(!0),Fe=zt=>zt.key==="Shift"&&Z(!1),ct=()=>Z(!1);return window.addEventListener("keydown",xe),window.addEventListener("keyup",Fe),window.addEventListener("blur",ct),()=>{window.removeEventListener("keydown",xe),window.removeEventListener("keyup",Fe),window.removeEventListener("blur",ct)}});const[X,Y]=d.useState(!1),[J,ne]=d.useState(!0),[B,re]=d.useState(null),[ae,ue]=d.useState(null),[me,ye]=d.useState(0),Oe=d.useRef(null),Se=d.useRef(0),Ae=d.useCallback(()=>{const xe=G.current;ne(xe?rj(xe.scrollHeight,xe.clientHeight):!0)},[]),Me=d.useCallback(()=>{Se.current&&cancelAnimationFrame(Se.current),Se.current=requestAnimationFrame(()=>{Se.current=0,Ae()})},[Ae]),Ve=d.useCallback(xe=>{Oe.current&&(Oe.current.disconnect(),Oe.current=null),D.current=xe,xe&&(ye(xe.clientWidth),Me(),Oe.current=new ResizeObserver(([Fe])=>{ye(Fe.contentRect.width),Me()}),Oe.current.observe(xe))},[Me]);Xt(()=>()=>{var xe;(xe=Oe.current)==null||xe.disconnect(),Se.current&&cancelAnimationFrame(Se.current)});const Pe=d.useMemo(()=>{const xe=Number.isFinite(j)?j:0;if(M.length===0)return xe;const Fe=Math.max(...M.map(zt=>zt.start+zt.duration)),ct=Math.max(xe,Fe);return Number.isFinite(ct)?ct:xe},[M,j]),ft=d.useMemo(()=>{const xe=new Map;for(const Fe of M){const ct=xe.get(Fe.track)??[];ct.push(Fe),xe.set(Fe.track,ct)}return Array.from(xe.entries()).sort(([Fe],[ct])=>Fe-ct)},[M]),yt=d.useMemo(()=>{var Fe;const xe=new Map;for(const[ct,zt]of ft)xe.set(ct,uy(((Fe=zt[0])==null?void 0:Fe.tag)??""));return xe},[ft]),_e=d.useMemo(()=>ft.map(([xe])=>xe),[ft]),Ye=d.useRef(_e);Ye.current=_e;const Le=d.useRef(100),be=d.useRef(Pe);be.current=Pe;const dt=d.useRef(null),{draggedClip:Ue,setDraggedClip:bt,resizingClip:Re,setResizingClip:on,blockedClipRef:Rt,suppressClickRef:we,syncClipDragAutoScroll:ht}=eP({scrollRef:G,ppsRef:Le,durationRef:be,trackOrderRef:Ye,onMoveElement:h,onResizeElement:g,onBlockedEditAttempt:O,setShowPopover:Y,setRangeSelectionRef:dt}),Mt=d.useMemo(()=>!(Ue!=null&&Ue.started)||_e.length===0||_e.includes(Ue.previewTrack)?_e:[..._e,Ue.previewTrack].sort((xe,Fe)=>xe-Fe),[Ue,_e]),ot=nj(Mt.length),ve=fe(xe=>xe.keyframeCache),ze=fe(xe=>xe.selectedKeyframes),Ze=fe(xe=>xe.toggleSelectedKeyframe),Be=d.useMemo(()=>M.find(xe=>(xe.key??xe.id)===N)??null,[M,N]),vt=d.useRef(Be);vt.current=Be;const lt=me>pn&&Pe>0?(me-pn-2)/Pe:100,Je=fj(lt,V,z);Le.current=Je;const mt=Math.max(0,Pe*Je),Tt=d.useRef(V);Tt.current=V;const cn=d.useRef(z);cn.current=z;const Bn=d.useRef(lt);Bn.current=lt;const{seekFromX:bl,autoScrollDuringDrag:Sa,dragScrollRaf:Zi}=hj({playheadRef:K,scrollRef:G,ppsRef:Le,durationRef:be,isDragging:I,currentTime:L,zoomMode:V,zoomModeRef:Tt,manualZoomPercentRef:cn,fitPps:lt,fitPpsRef:Bn,effectiveDuration:Pe,pps:Je,timelineReady:E,elementsLength:M.length,setZoomMode:q,setManualZoomPercent:U,onSeek:e}),{rangeSelection:En,setRangeSelection:di,shiftClickClipRef:wa,handlePointerDown:ka,handlePointerMove:Ce,handlePointerUp:rt}=aj({scrollRef:G,ppsRef:Le,effectiveDuration:Pe,pps:Je,onSeek:e,seekFromX:bl,autoScrollDuringDrag:Sa,dragScrollRaf:Zi,isDragging:I,setShowPopover:Y});dt.current=di;const bn=d.useRef(vt.current);d.useEffect(()=>{const xe=bn.current,Fe=vt.current;bn.current=Fe,xe&&!Fe&&(Y(!1),di(null))});const{major:mr,minor:vl}=d.useMemo(()=>K$(Pe,Je),[Pe,Je]),jr=mr.length>=2?Math.max(.25,mr[1]-mr[0]):Pe;d.useEffect(()=>{Ae()},[Ae,E,M.length,ot]);const tn=d.useCallback(xe=>Re&&(Re.element.key??Re.element.id)===(xe.key??xe.id)?{...xe,start:Re.previewStart,duration:Re.previewDuration,playbackStart:Re.previewPlaybackStart}:xe,[Re]),{isDragOver:vn,setIsDragOver:Ur,handleAssetDragOver:Aa,handleAssetDrop:Ni}=Sj({scrollRef:G,ppsRef:Le,durationRef:be,trackOrderRef:Ye,onFileDrop:l,onAssetDrop:s,onBlockDrop:c});return!E||M.length===0?m.jsx(wj,{isDragOver:vn,onFileDrop:!!l,onDragOver:Aa,onDragLeave:()=>Ur(!1),onDrop:Ni}):m.jsxs("div",{ref:Ve,"aria-label":"Timeline",className:`relative border-t select-none h-full overflow-hidden ${P?"cursor-crosshair":"cursor-default"}`,style:{touchAction:"pan-x pan-y",background:$.shellBackground,borderColor:$.shellBorder},children:[m.jsx("div",{ref:G,tabIndex:-1,className:`${V==="fit"?"overflow-x-hidden":"overflow-x-auto"} overflow-y-auto h-full outline-none`,onDragOver:Aa,onDragLeave:()=>Ur(!1),onDrop:Ni,onPointerDown:ka,onPointerMove:Ce,onPointerUp:rt,onLostPointerCapture:rt,children:m.jsx(Nj,{major:mr,minor:vl,pps:Je,trackContentWidth:mt,totalH:ot,effectiveDuration:Pe,majorTickInterval:jr,shiftHeld:P,rangeSelection:En,theme:$,displayTrackOrder:Mt,trackOrder:_e,tracks:ft,trackStyles:yt,selectedElementId:N,hoveredClip:H,draggedClip:Ue,resizingClip:Re,blockedClipRef:Rt,suppressClickRef:we,scrollRef:G,renderClipContent:r,renderClipOverlay:i,playheadRef:K,onResizeElement:g,onMoveElement:h,onDrillDown:n,onSelectElement:y,setHoveredClip:F,setShowPopover:Y,setRangeSelection:di,setResizingClip:on,setDraggedClip:bt,setSelectedElementId:R,syncClipDragAutoScroll:ht,shiftClickClipRef:wa,getPreviewElement:tn,getTrackStyle:uy,keyframeCache:ve,selectedKeyframes:ze,currentTime:L,onToggleKeyframeAtPlayhead:C,onClickKeyframe:(xe,Fe)=>{fe.getState().clearSelectedKeyframes();const ct=xe.key??xe.id;R(ct),y==null||y(xe);const zt=xe.start+Fe/100*xe.duration;e==null||e(zt)},onShiftClickKeyframe:(xe,Fe)=>{Ze(`${xe}:${Fe}`)},onDragKeyframe:(xe,Fe,ct)=>{k==null||k(xe,Fe,ct)},onContextMenuKeyframe:(xe,Fe,ct)=>{const zt=M.find(Kn=>(Kn.key??Kn.id)===Fe);if(zt){R(Fe),y==null||y(zt);const Kn=zt.start+ct/100*zt.duration;e==null||e(Kn)}const Tn=ve.get(Fe),Pr=Tn==null?void 0:Tn.keyframes.find(Kn=>Kn.percentage===ct);re({x:xe.clientX,y:xe.clientY,elementId:Fe,percentage:ct,currentEase:(Pr==null?void 0:Pr.ease)??(Tn==null?void 0:Tn.ease)})},onContextMenuClip:(xe,Fe)=>{xe.preventDefault(),R(Fe.key??Fe.id),y==null||y(Fe),ue({x:xe.clientX,y:xe.clientY,element:Fe})}})}),J&&!X&&!En&&m.jsx("div",{className:"absolute bottom-2 right-3 pointer-events-none z-20",children:m.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border",style:{background:"rgba(17,23,35,0.84)",borderColor:$.gutterBorder},children:[m.jsx("kbd",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{color:$.textSecondary,background:"rgba(255,255,255,0.06)"},children:"Shift"}),m.jsx("span",{className:"text-[9px]",style:{color:$.textSecondary},children:"+ drag/click to edit range"})]})}),X&&En&&m.jsx(z$,{rangeStart:En.start,rangeEnd:En.end,anchorX:En.anchorX,anchorY:En.anchorY,onClose:()=>{Y(!1),di(null)}}),B&&m.jsx(Jj,{state:B,onClose:()=>re(null),onDelete:(xe,Fe)=>v==null?void 0:v(xe,Fe),onDeleteAll:xe=>w==null?void 0:w(xe),onChangeEase:(xe,Fe,ct)=>A==null?void 0:A(xe,Fe,ct),onCopyProperties:(xe,Fe)=>{const ct=ve.get(xe),zt=ct==null?void 0:ct.keyframes.find(Tn=>Tn.percentage===Fe);zt&&navigator.clipboard.writeText(JSON.stringify(zt.properties,null,2))}}),ae&&m.jsx(tP,{x:ae.x,y:ae.y,element:ae.element,currentTime:L,onClose:()=>ue(null),onSplit:(xe,Fe)=>x==null?void 0:x(xe,Fe),onDelete:xe=>u==null?void 0:u(xe)})]})}),xy=66,yy=6,rP=d.memo(function({videoSrc:e,label:n,labelColor:r,duration:i=5}){const[l,s]=d.useState(0),[c,u]=d.useState(!1),[h,g]=d.useState([]),[O,x]=d.useState(16/9),y=d.useRef(null),v=d.useRef(null),w=d.useRef(!1),A=d.useCallback(T=>{var j,E,N;if((j=y.current)==null||j.disconnect(),(E=v.current)==null||E.disconnect(),!T)return;const $=((N=T.parentElement)==null?void 0:N.clientWidth)||T.clientWidth;s($),y.current=new IntersectionObserver(([R])=>{var L;R.isIntersecting&&(u(!0),(L=y.current)==null||L.disconnect())},{rootMargin:"200px"}),y.current.observe(T);const M=T.parentElement||T;v.current=new ResizeObserver(([R])=>{s(R.contentRect.width)}),v.current.observe(M)},[]);Xt(()=>()=>{var T,$;(T=y.current)==null||T.disconnect(),($=v.current)==null||$.disconnect()}),d.useEffect(()=>{if(!c||w.current)return;w.current=!0;const T=document.createElement("video");T.crossOrigin="anonymous",T.muted=!0,T.preload="auto";const $=document.createElement("canvas"),M=$.getContext("2d");if(!M){w.current=!1;return}const j=[],E=Math.min(.4,i*.05);for(let V=0;V<yy;V++){const z=V/(yy-1)*i;j.push(Math.max(z,E))}let N=0,R=!1;const L=()=>{if(R||N>=j.length){R||(T.src="",T.load());return}T.currentTime=j[N]};return T.addEventListener("loadedmetadata",()=>{if(T.videoWidth>0&&T.videoHeight>0){x(T.videoWidth/T.videoHeight);const V=xy*2,z=Math.round(V*(T.videoWidth/T.videoHeight));$.width=z,$.height=V}L()}),T.addEventListener("seeked",()=>{if(R)return;M.drawImage(T,0,0,$.width,$.height);const V=$.toDataURL("image/jpeg",.6);g(z=>[...z,V]),N++,L()}),T.addEventListener("error",()=>{}),T.src=e,T.load(),()=>{R=!0,w.current=!1,g([]),T.src="",T.load()}},[c,e,i]);const k=Math.round(xy*O),C=l>0?Math.max(1,Math.ceil(l/k)):1;return m.jsxs("div",{ref:A,className:"absolute inset-0 overflow-hidden",children:[c&&h.length>0&&m.jsx("div",{className:"absolute inset-0 flex",children:Array.from({length:C}).map((T,$)=>{const M=h[$%h.length];return m.jsx("div",{className:"flex-shrink-0 h-full relative overflow-hidden bg-neutral-900",style:{width:k},children:m.jsx("img",{src:M,alt:"",draggable:!1,className:"absolute inset-0 w-full h-full object-cover"})},$)})}),c&&h.length===0&&m.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%)"}}),m.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:m.jsx("span",{className:"text-[9px] font-semibold truncate block leading-tight",style:{color:r,textShadow:"0 1px 2px rgba(0,0,0,0.9)"},children:n})})]})}),iP=66,aP="v3";function lP({previewUrl:t,seekTime:e=2,duration:n=5,selector:r,selectorIndex:i,origin:l}){const s=t.replace("/preview/comp/","/thumbnail/").replace(/\/preview$/,"/thumbnail/index.html"),c=e+n/2,u=new URL(s,l);return u.searchParams.set("t",c.toFixed(2)),u.searchParams.set("v",aP),r&&(u.searchParams.set("selector",r),i!=null&&i>0&&u.searchParams.set("selectorIndex",String(i))),u.toString()}const Op=d.memo(function({previewUrl:e,label:n,labelColor:r,selector:i,selectorIndex:l,seekTime:s=2,duration:c=5}){const[u,h]=d.useState(0),[g,O]=d.useState(!1),[x,y]=d.useState(16/9),v=d.useRef(null),w=d.useCallback(T=>{var j,E;if((j=v.current)==null||j.disconnect(),!T)return;const $=((E=T.parentElement)==null?void 0:E.clientWidth)||T.clientWidth;h($);const M=T.parentElement||T;v.current=new ResizeObserver(([N])=>{h(N.contentRect.width)}),v.current.observe(M)},[]);Xt(()=>()=>{var T;(T=v.current)==null||T.disconnect()});const A=lP({previewUrl:e,seekTime:s,duration:c,selector:i,selectorIndex:l,origin:window.location.origin}),k=Math.max(48,Math.round(iP*x)),C=u>0?Math.max(1,Math.ceil(u/k)):1;return m.jsxs("div",{ref:w,className:"absolute inset-0 overflow-hidden",children:[m.jsx("img",{src:A,alt:"",draggable:!1,loading:"eager",onLoad:T=>{const $=T.currentTarget;$.naturalWidth>0&&$.naturalHeight>0&&y($.naturalWidth/$.naturalHeight),O(!0)},className:"hidden"}),g&&m.jsx("div",{className:"absolute inset-0 flex",style:{animation:"hf-thumb-fade 200ms ease-out",mixBlendMode:"lighten"},children:Array.from({length:C}).map((T,$)=>m.jsx("div",{className:"relative h-full flex-shrink-0 overflow-hidden",style:{width:k},children:m.jsx("img",{src:A,alt:"",draggable:!1,className:"absolute inset-0 h-full w-full object-cover",style:{opacity:.7}})},$))}),m.jsx("div",{className:"absolute left-3 top-0 bottom-0 flex items-center",style:{zIndex:10},children:m.jsx("span",{className:"block max-w-full truncate text-[10px] font-semibold leading-none",style:{color:r,textShadow:g?"0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6)":"none"},children:n})})]})});let sP=0;const by={isEditMode:!1,model:null,selectedSegmentIds:new Set,selectedGroupId:null,sourceFilePath:null},Ot=_S(t=>({...by,setEditMode:e=>t({isEditMode:e}),setModel:e=>t({model:e}),setSourceFilePath:e=>t({sourceFilePath:e}),selectSegment:(e,n=!1)=>t(r=>{if(n){const i=new Set(r.selectedSegmentIds);return i.has(e)?i.delete(e):i.add(e),{selectedSegmentIds:i,selectedGroupId:null}}return{selectedSegmentIds:new Set([e]),selectedGroupId:null}}),selectGroup:e=>t(n=>{var i;const r=(i=n.model)==null?void 0:i.groups.get(e);return r?{selectedSegmentIds:new Set(r.segmentIds),selectedGroupId:e}:{}}),selectAll:()=>t(e=>e.model?{selectedSegmentIds:new Set(e.model.segments.keys()),selectedGroupId:null}:{}),clearSelection:()=>t({selectedSegmentIds:new Set,selectedGroupId:null}),updateSegmentStyle:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.segments.get(e);if(!i)return{};const l=new Map(r.model.segments);return l.set(e,{...i,style:{...i.style,...n}}),{model:{...r.model,segments:l}}}),updateSegmentText:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.segments.get(e);if(!i)return{};const l=new Map(r.model.segments);return l.set(e,{...i,text:n}),{model:{...r.model,segments:l}}}),updateSegmentTiming:(e,n,r)=>t(i=>{if(!i.model)return{};const l=i.model.segments.get(e);if(!l)return{};const s=new Map(i.model.segments);return s.set(e,{...l,start:n,end:r}),{model:{...i.model,segments:s}}}),updateGroupStyle:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=new Map(r.model.groups);return l.set(e,{...i,style:{...i.style,...n}}),{model:{...r.model,groups:l}}}),updateGroupContainer:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=new Map(r.model.groups);return l.set(e,{...i,containerStyle:{...i.containerStyle,...n}}),{model:{...r.model,groups:l}}}),updateGroupAnimation:(e,n,r)=>t(i=>{if(!i.model)return{};const l=i.model.groups.get(e);if(!l)return{};const s=new Map(i.model.groups),c=l.animation[n],u=c!==null?{...c,...r}:r;return s.set(e,{...l,animation:{...l.animation,[n]:u}}),{model:{...i.model,groups:s}}}),splitGroup:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e);if(!i)return{};const l=i.segmentIds.indexOf(n);if(l<=0)return{};const s=i.segmentIds.slice(0,l),c=i.segmentIds.slice(l),u=`group-split-${sP++}`,h=new Map(r.model.groups);h.set(e,{...i,segmentIds:s}),h.set(u,{...i,id:u,segmentIds:c});const g=r.model.groupOrder.indexOf(e),O=[...r.model.groupOrder];O.splice(g+1,0,u);const x=new Map(r.model.segments);return c.forEach((y,v)=>{const w=x.get(y);w&&x.set(y,{...w,groupIndex:v})}),{model:{...r.model,groups:h,segments:x,groupOrder:O}}}),mergeGroups:(e,n)=>t(r=>{if(!r.model)return{};const i=r.model.groups.get(e),l=r.model.groups.get(n);if(!i||!l)return{};const s=[...i.segmentIds,...l.segmentIds],c=new Map(r.model.groups);c.set(e,{...i,segmentIds:s}),c.delete(n);const u=r.model.groupOrder.filter(O=>O!==n),h=new Map(r.model.segments);l.segmentIds.forEach((O,x)=>{const y=h.get(O);y&&h.set(O,{...y,groupIndex:i.segmentIds.length+x})});const g=r.selectedGroupId===n?null:r.selectedGroupId;return{model:{...r.model,groups:c,segments:h,groupOrder:u},selectedGroupId:g}}),updateSelectedStyle:e=>t(n=>{if(!n.model||n.selectedSegmentIds.size===0)return{};const r=new Map(n.model.segments);for(const i of n.selectedSegmentIds){const l=r.get(i);l&&r.set(i,{...l,style:{...l.style,...e}})}return{model:{...n.model,segments:r}}}),applyAnimationToAll:e=>t(n=>{if(!n.model)return{};const r=new Map(n.model.groups);for(const[i,l]of r)r.set(i,{...l,animation:e});return{model:{...n.model,groups:r}}}),reset:()=>t({...by,selectedSegmentIds:new Set})})),oP=new Set(["ArrowLeft","ArrowRight"]),cP=["input","textarea","select","button","a[href]","[contenteditable='true']","[role='button']","[role='checkbox']","[role='combobox']","[role='menuitem']","[role='radio']","[role='slider']","[role='spinbutton']","[role='switch']","[role='textbox']"].join(",");function uP(t){if(!t||typeof t!="object")return!1;const e=t;return typeof e.closest!="function"?!1:e.closest.call(t,cP)!==null}function fP(t,e={isCaptionEditMode:!1,selectedCaptionSegmentCount:0}){return t.metaKey||t.ctrlKey||t.altKey||uP(t.target)?!0:oP.has(t.code)&&e.isCaptionEditMode&&e.selectedCaptionSegmentCount>0}const vy=[1,2,4];function dP({iframeRef:t,shuttleDirectionRef:e,shuttleSpeedIndexRef:n,iframeShortcutCleanupRef:r,getAdapter:i,play:l,playBackward:s,pause:c,seek:u}){const h=d.useRef(new Set),g=d.useRef(()=>{}),O=d.useRef(()=>{}),x=d.useCallback(C=>{const T=i(),$=(T==null?void 0:T.getTime())??fe.getState().currentTime;u(D2($,C,Zu))},[i,u]),y=d.useCallback(C=>{e.current===C?n.current=Math.min(n.current+1,vy.length-1):n.current=0;const T=vy[n.current];fe.getState().setPlaybackRate(T),C==="forward"?l():s(T)},[l,s,e,n]),v=d.useCallback(()=>{fe.getState().isPlaying?c():l()},[l,c]),w=d.useCallback(C=>{var M,j,E;if(C.defaultPrevented)return;const T=Ot.getState();if(fP(C,{isCaptionEditMode:T.isEditMode,selectedCaptionSegmentCount:T.selectedSegmentIds.size}))return;const $=C.key.toLowerCase();if(h.current.add($),C.code==="Space"){C.preventDefault(),v();return}if(C.code==="ArrowLeft"){C.preventDefault(),x(C.shiftKey?-10:-1);return}if(C.code==="ArrowRight"){C.preventDefault(),x(C.shiftKey?10:1);return}if(!C.repeat){if($==="m"){C.preventDefault();const N=fe.getState();N.playbackRate<=1&&N.setAudioMuted(!N.audioMuted);return}if($==="l"&&C.shiftKey){C.preventDefault();const N=fe.getState();N.setLoopEnabled(!N.loopEnabled);return}if($==="k"){C.preventDefault(),c();return}if($==="j"){if(C.preventDefault(),h.current.has("k")){x(-1);return}y("backward");return}if($==="l"){if(C.preventDefault(),h.current.has("k")){x(1);return}y("forward");return}if($==="i"){C.preventDefault();const N=((M=i())==null?void 0:M.getTime())??fe.getState().currentTime;fe.getState().setInPoint(C.shiftKey?null:N);return}if($==="o"){C.preventDefault();const N=((j=i())==null?void 0:j.getTime())??fe.getState().currentTime;fe.getState().setOutPoint(C.shiftKey?null:N);return}if($==="a"){C.preventDefault(),u(fe.getState().inPoint??0,{keepPlaying:!0});return}if($==="e"){C.preventDefault();const{outPoint:N}=fe.getState();u(N??((E=i())==null?void 0:E.getDuration())??fe.getState().duration,{keepPlaying:!0});return}}},[c,y,x,v,i,u]),A=d.useCallback(C=>{h.current.delete(C.key.toLowerCase())},[]);g.current=w,O.current=A;const k=d.useCallback(()=>{var j,E,N;(j=r.current)==null||j.call(r),r.current=null;let C=null,T=null;try{C=((E=t.current)==null?void 0:E.contentWindow)??null,T=((N=t.current)==null?void 0:N.contentDocument)??null}catch{return}if(!C&&!T)return;const $=R=>g.current(R),M=R=>O.current(R);try{C==null||C.addEventListener("keydown",$,!0),C==null||C.addEventListener("keyup",M,!0)}catch{}T==null||T.addEventListener("keydown",$,!0),T==null||T.addEventListener("keyup",M,!0),r.current=()=>{try{C==null||C.removeEventListener("keydown",$,!0),C==null||C.removeEventListener("keyup",M,!0)}catch{}T==null||T.removeEventListener("keydown",$,!0),T==null||T.removeEventListener("keyup",M,!0)}},[t,r]);return{playbackKeyDownRef:g,playbackKeyUpRef:O,attachIframeShortcutListeners:k,togglePlay:v}}function hP(t){const{clip:e,fallbackIndex:n,doc:r}=t;let i=t.hostEl??null;const l=Nu({id:e.id,label:e.label,tag:e.tagName||e.kind});let s,c,u,h;i&&(s=i.id||void 0,c=Ul(i),u=r&&c?lu(r,i,c):void 0,h=au(i));const g=su({preferredId:e.id,label:l,fallbackIndex:n,domId:s,selector:c,selectorIndex:u,sourceFile:h}),O={id:g.id,label:l,key:g.key,tag:e.tagName||e.kind,start:e.start,duration:e.duration,track:e.track,domId:s,selector:c,selectorIndex:u,sourceFile:h};if(i&&ZS(O,i),e.assetUrl&&(O.src=e.assetUrl),e.kind==="composition"&&e.compositionId){let x=e.compositionSrc;if(x||(i=(r==null?void 0:r.querySelector(`[data-composition-id="${e.compositionId}"]`))??i,x=(i==null?void 0:i.getAttribute("data-composition-src"))??(i==null?void 0:i.getAttribute("data-composition-file"))??null),x)O.compositionSrc=x;else if(i){const y=i.querySelector("video[src]");y&&(O.src=y.getAttribute("src")||void 0,O.tag="video")}if(i){O.domId=i.id||void 0,O.selector=Ul(i),O.selectorIndex=r&&O.selector?lu(r,i,O.selector):void 0,O.sourceFile=au(i);const y=su({preferredId:e.id,label:l,fallbackIndex:n,domId:O.domId,selector:O.selector,selectorIndex:O.selectorIndex,sourceFile:O.sourceFile});O.id=y.id,O.key=y.key}}return O}function t7(t,e,n=[]){if(!Number.isFinite(e)||e<=0)return[];const r=t.querySelector("[data-composition-id]");if(!r)return[];const i=new Set(n.map(z2)),l=n.reduce((c,u)=>Math.max(c,Number.isFinite(u.track)?u.track:0),-1),s=[];for(const c of Array.from(r.children)){if(!l$(r,c))continue;const u=Ul(c);if(!u)continue;const h=lu(t,c,u),g=au(c),O=t$(c),x=su({preferredId:c.id||null,label:O,fallbackIndex:n.length+s.length,domId:c.id||void 0,selector:u,selectorIndex:h,sourceFile:g});i.has(x.key)||i.has(x.id)||s.push({domId:c.id||void 0,duration:e,id:x.id,key:x.key,label:O,selector:u,selectorIndex:h,sourceFile:g,start:0,tag:c.tagName.toLowerCase(),timingSource:"implicit",track:l+1+s.length})}return s}function n7(t,e){const n=t.querySelector("[data-composition-id]"),r=t.querySelectorAll("[data-start]"),i=[];let l=0;return r.forEach(s=>{if(s===n)return;const c=s,u=c.getAttribute("data-start");if(u==null)return;const h=parseFloat(u);if(isNaN(h)||Number.isFinite(e)&&e>0&&h>=e)return;const g=c.tagName.toLowerCase();let O=0;const x=c.getAttribute("data-duration");if(x!=null&&(O=parseFloat(x)),(isNaN(O)||O<=0)&&(O=Math.max(0,e-h)),Number.isFinite(e)&&e>0&&(O=Math.min(O,Math.max(0,e-h))),!Number.isFinite(O)||O<=0)return;const y=c.getAttribute("data-track-index"),v=y!=null?parseInt(y,10):l++,w=c.getAttribute("data-composition-id"),A=Ul(c),k=au(c),C=lu(t,c,A),T=Nu({id:c.id||w||null,label:c.getAttribute("data-timeline-label")??c.getAttribute("data-label"),tag:g}),$=su({preferredId:c.id||w||null,label:T,fallbackIndex:i.length,domId:c.id||void 0,selector:A,selectorIndex:C,sourceFile:k}),M={id:$.id,label:T,key:$.key,tag:g,start:h,duration:O,track:isNaN(v)?0:v,domId:c.id||void 0,selector:A,selectorIndex:C,sourceFile:k,timingSource:"authored"},j=QS(c);if(j){j.tagName==="IMG"&&(M.tag="img");const N=j.getAttribute("src");N&&(M.src=N);const R=c.getAttribute("data-volume")??j.getAttribute("data-volume");R&&(M.volume=parseFloat(R)),ZS(M,c)}c.hasAttribute("data-timeline-locked")&&(M.timelineLocked=!0);const E=c.getAttribute("data-composition-src")||c.getAttribute("data-composition-file");if(E)M.compositionSrc=E;else if(w&&w!==(n==null?void 0:n.getAttribute("data-composition-id"))){const N=c.querySelector("video[src]");N&&(M.src=N.getAttribute("src")||void 0,M.tag="video")}i.push(M)}),[...i,...t7(t,e,i)]}function mP(t,e,n,r){const i=Number.isFinite(n)?n:0,l=Number.isFinite(r)?r:0;if(t.length===0||e.length>=t.length||l>i)return e;const s=new Set(e.map(z2)),c=t.filter(u=>!s.has(z2(u)));return c.length===0?e:[...e,...c]}function pP(t){const e=t.match(/\/preview\/comp\/(.+?)(?:\?|$)/);return e?decodeURIComponent(e[1]):void 0}function gP(t){if(!Number.isFinite(t.rootDuration)||t.rootDuration<=0)return null;const e=pP(t.iframeSrc);return{id:t.compositionId,label:Nu({id:t.compositionId,tag:t.tagName}),key:X2({id:t.compositionId,fallbackIndex:0,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:e}),tag:t.tagName.toLowerCase()||"div",start:0,duration:t.rootDuration,track:0,compositionSrc:e,selector:t.selector,selectorIndex:t.selectorIndex,sourceFile:e}}function OP({iframeRef:t,probeIntervalRef:e,pendingSeekRef:n,isRefreshingRef:r,getAdapter:i,syncTimelineElements:l,setDuration:s,setCurrentTime:c,setTimelineReady:u,setIsPlaying:h,attachIframeShortcutListeners:g,applyPreviewAudioState:O}){const x=d.useCallback(C=>{var q;if(!C.clips||C.clips.length===0)return;const T=new Set(C.clips.map(U=>U.compositionId).filter(Boolean)),$=C.clips.filter(U=>!U.parentCompositionId||!T.has(U.parentCompositionId));let M=null;try{M=((q=t.current)==null?void 0:q.contentDocument)??null}catch{M=null}const j=new Set,E=$.map((U,K)=>{const D=M?a$(M,U,K,j):null;return D&&j.add(D),hP({clip:U,fallbackIndex:K,doc:M,hostEl:D})}),N=C.durationInFrames/30,R=Number.isFinite(N)&&N<7200?N:0,L=R>0?R:fe.getState().duration,V=L>0?E.filter(U=>U.start<L).map(U=>({...U,duration:Math.min(U.duration,L-U.start)})).filter(U=>U.duration>0):E,z=M&&L>0?[...V,...t7(M,L,V)]:V;z.length>0&&l(z,R>0?R:void 0)},[t,l]),y=d.useCallback(()=>{try{const C=t.current,T=C==null?void 0:C.contentDocument,$=C==null?void 0:C.contentWindow;if(!T||!$)return;const M=fe.getState().elements,j=fe.getState().duration,{missing:E,updatedEls:N,patched:R}=d$(T,$,M,j);if(E.length>0||R){const L=new Set(N.map(z=>z.id)),V=E.filter(z=>!L.has(z.id));l([...N,...V])}}catch(C){console.warn("[useTimelinePlayer] enrichMissingCompositions failed",C)}},[t,l]),v=d.useCallback(()=>{const C=i();if(!C||C.getDuration()<=0)return!1;C.pause();const T=n.current;n.current=null;const $=T!=null?Math.min(T,C.getDuration()):0;C.seek($),zr.notify($);const M=C.getDuration();Number.isFinite(M)&&M>0&&M<7200&&M!==fe.getState().duration&&s(M),c($),r.current||u(!0),r.current=!1,h(!1);try{const j=t.current,E=j==null?void 0:j.contentDocument,N=j==null?void 0:j.contentWindow;E&&N&&(s$(E,N),o$(E),g());const R=N==null?void 0:N.__clipManifest;if(R&&R.clips.length>0&&x(R),y(),O(),fe.getState().elements.length===0&&E){const L=n7(E,C.getDuration());L.length>0&&l(L)}if(fe.getState().elements.length===0&&E){const L=E.querySelector("[data-composition-id]"),V=C.getDuration();if(L&&V>0){const z=gP({compositionId:L.getAttribute("data-composition-id")||"composition",tagName:L.tagName||"div",rootDuration:V,iframeSrc:(j==null?void 0:j.src)||"",selector:Ul(L)});z&&l([z])}}}catch(j){console.warn("[useTimelinePlayer] Could not read timeline elements from iframe",j)}return!0},[i,s,c,u,h,x,y,l,g,O,t,r,n]),w=d.useCallback(()=>{if(O(),e.current&&clearInterval(e.current),v())return;const C=t.current;let T=!1;const $=()=>{T||v()&&(T=!0,window.removeEventListener("message",M),e.current&&clearInterval(e.current))},M=j=>{if(j.source&&C&&j.source!==C.contentWindow)return;const E=j.data;(E==null?void 0:E.source)==="hf-preview"&&((E==null?void 0:E.type)==="state"||(E==null?void 0:E.type)==="timeline")&&$()};window.addEventListener("message",M),e.current=setTimeout(()=>{T||($(),T||console.warn("[useTimelinePlayer] Runtime did not signal readiness within 5s")),window.removeEventListener("message",M)},5e3)},[v,t,e,O]);return{processTimelineMessage:x,processTimelineMessageRef:{current:x},enrichMissingCompositions:y,enrichMissingCompositionsRef:{current:y},initializeAdapter:v,onIframeLoad:w}}const W2=new Map,xp=new Map;let Hs=null;async function xP(){if(Hs===!1)return null;if(Hs)return Hs;try{return Hs=await ES(()=>import("./index-DSLrl2tB.js"),[]),Hs}catch{return Hs=!1,null}}function r7(t){try{return new URL(t,window.location.href).href}catch{return t}}async function yP(t){const e=await xP();if(!e)return null;const n=new e.Input({source:new e.UrlSource(t),formats:e.ALL_FORMATS});try{const r=await n.getDurationFromMetadata();if(r==null||!Number.isFinite(r)||r<=0)return null;const i=await n.getPrimaryVideoTrack(),l=await n.getAudioTracks();return{duration:r,width:i==null?void 0:i.displayWidth,height:i==null?void 0:i.displayHeight,hasVideo:i!=null,hasAudio:l.length>0}}catch{return null}finally{n.dispose()}}function bP(t){return W2.get(r7(t))}async function vP(t){const e=r7(t),n=W2.get(e);if(n)return n;let r=xp.get(e);return r||(r=yP(e).then(i=>(xp.delete(e),i&&W2.set(e,i),i)),xp.set(e,r),r)}function SP(t){return t.keepPlaying&&!t.wasReverseShuttle&&t.storeWasPlaying&&(t.duration<=0||t.nextTime<t.duration)}function wP(t){return!t.keepPlaying||t.wasReverseShuttle}function kP(){const t=d.useRef(null),e=d.useRef(0),n=d.useRef(void 0),r=d.useRef(null),i=d.useRef(!1),l=d.useRef(0),s=d.useRef(null),c=d.useRef(0),u=d.useRef(null),h=d.useRef(0),g=d.useRef(null),{setIsPlaying:O,setCurrentTime:x,setDuration:y,setTimelineReady:v,setElements:w}=fe.getState(),A=d.useCallback((Z,X)=>{const Y=fe.getState(),J=X??Y.duration,ne=mP(Y.elements,Z,Y.duration,J);(ne.length!==Y.elements.length||ne.some((ae,ue)=>{const me=Y.elements[ue];return!me||ae.id!==me.id||ae.start!==me.start||ae.duration!==me.duration||ae.track!==me.track}))&&w(ne),Number.isFinite(X)&&(X??0)>0&&X!==Y.duration&&y(X??0),Y.timelineReady||v(!0);const re=ne.filter(ae=>ae.src&&ae.sourceDuration==null&&["video","audio"].includes(ae.tag.toLowerCase())&&!bP(ae.src));re.length>0&&Promise.allSettled(re.map(async ae=>{const ue=await vP(ae.src);if(!ue)return;const me=ae.key??ae.id;fe.setState(ye=>{const Oe=ye.elements.findIndex(Ae=>(Ae.key??Ae.id)===me);if(Oe===-1||ye.elements[Oe].sourceDuration!=null)return{};const Se=ye.elements.slice();return Se[Oe]={...ye.elements[Oe],sourceDuration:ue.duration},{elements:Se}})}))},[w,v,y]),k=d.useCallback(()=>{var Z,X;try{const Y=t.current,J=Y==null?void 0:Y.contentWindow;if(!Y||!J)return null;const ne=J.__player&&typeof J.__player.play=="function"?J.__player:null,B=JT(Y.contentDocument),re=fp(ne);if(re>0&&B<=re)return ne;let ae=null;if(J.__timeline){const ye=X5(J.__timeline),Oe=fp(ye);if(Oe>0&&B<=Oe)return ye;Oe>0&&(ae??(ae=ye))}if(J.__timelines){const ye=Object.keys(J.__timelines);if(ye.length>0){const Oe=(X=(Z=Y==null?void 0:Y.contentDocument)==null?void 0:Z.querySelector("[data-composition-id]"))==null?void 0:X.getAttribute("data-composition-id"),Se=Oe&&Oe in J.__timelines?Oe:ye[ye.length-1],Ae=X5(J.__timelines[Se]),Me=fp(Ae);if(Me>0&&B<=Me)return Ae;Me>0&&(ae??(ae=Ae))}}const ue=ne??ae,me=Math.max(fe.getState().duration,B,re);if(ue&&me>0&&("renderSeek"in ue||typeof ue.seek=="function")){const ye=g.current;if((ye==null?void 0:ye.player)===ue&&ye.duration===me)return ye.adapter;ye==null||ye.adapter.pause();const Oe=KT(ue,me,WT(J),()=>fe.getState().playbackRate);return g.current={player:ue,duration:me,adapter:Oe},Oe}return ue}catch(Y){return console.warn("[useTimelinePlayer] Could not get playback adapter (cross-origin)",Y),null}},[]),C=d.useCallback(()=>{cancelAnimationFrame(l.current)},[]),T=d.useCallback(()=>{const Z=()=>{const X=k();if(X){const Y=X.getTime(),J=X.getDuration(),ne=J>0?Math.min(Y,J):Y;zr.notify(ne);const{inPoint:B,outPoint:re}=fe.getState(),ae=re!==null?Math.min(re,J):J,ue=B!==null?B:0,me=ue<ae?ae:J,ye=ue<ae?ue:0;if(ne>=me){if(fe.getState().loopEnabled&&J>0){X.seek(ye,{keepPlaying:!0}),zr.notify(ye),X.play(),O(!0),e.current=requestAnimationFrame(Z);return}X.isPlaying()&&X.pause(),x(ne),O(!1),cancelAnimationFrame(e.current);return}}e.current=requestAnimationFrame(Z)};e.current=requestAnimationFrame(Z)},[k,x,O]),$=d.useCallback(()=>{cancelAnimationFrame(e.current)},[]),M=d.useCallback(Z=>{const X=t.current;if(X){f$(X,Z);try{const Y=X.contentWindow;if(Y!=null&&Y.__timelines)for(const J of Object.values(Y.__timelines))J&&typeof J.timeScale=="function"&&J.timeScale(Z)}catch(Y){console.warn("[useTimelinePlayer] Could not set playback rate (cross-origin)",Y)}}},[]),j=d.useCallback(Z=>{const{audioMuted:X,playbackRate:Y}=fe.getState(),J=Z??Y;u$(t.current,VS(X,J))},[]),E=d.useCallback(()=>{$(),C();const Z=k();Z&&(Z.getTime()>=Z.getDuration()&&Z.seek(fe.getState().inPoint??0),M(fe.getState().playbackRate),j(),Z.play(),s.current="forward",O(!0),T())},[k,O,T,M,j,$,C]),N=d.useCallback(Z=>{$(),C();const X=k();if(!X)return;const Y=Math.max(0,X.getDuration()),J=X.getTime()<=0&&Y>0?Y:X.getTime();X.pause(),J!==X.getTime()&&X.seek(J);const ne=Math.max(.1,Math.min(4,Z));M(ne),j(ne);let B=J,re=performance.now();const ae=ue=>{const me=(ue-re)/1e3*ne;let ye=B-me;const{inPoint:Oe,outPoint:Se}=fe.getState(),Ae=Se!==null?Math.min(Se,Y):Y,Me=Oe!==null?Oe:0,Ve=Me<Ae?Ae:Y,Pe=Me<Ae?Me:0;if(ye<=Pe)if(fe.getState().loopEnabled&&Y>0)B=Ve,re=ue,ye=Ve;else{X.seek(Pe),zr.notify(Pe),x(Pe),O(!1),s.current=null,l.current=0;return}X.seek(Math.max(0,ye)),zr.notify(Math.max(0,ye)),O(!0),l.current=requestAnimationFrame(ae)};O(!0),s.current="backward",l.current=requestAnimationFrame(ae)},[k,x,O,M,j,$,C]),R=d.useCallback(()=>{C();const Z=k();Z&&(Z.pause(),x(Z.getTime()),O(!1),s.current=null,c.current=0,$())},[k,x,O,$,C]),L=d.useCallback((Z,X)=>{const Y=s.current==="backward";C();const J=k();if(!J)return r.current=Math.max(0,Z),!1;const ne=Math.max(0,J.getDuration()),B=Math.max(0,ne>0?Math.min(ne,Z):Z),re=(X==null?void 0:X.keepPlaying)===!0,ae=SP({keepPlaying:re,wasReverseShuttle:Y,storeWasPlaying:fe.getState().isPlaying,duration:ne,nextTime:B});return J.seek(B,X),zr.notify(B),x(B),ae?($(),M(fe.getState().playbackRate),j(),J.play(),O(!0),s.current="forward",c.current=0,T()):wP({keepPlaying:re,wasReverseShuttle:Y})&&($(),fe.getState().isPlaying&&O(!1),s.current=null,c.current=0),!0},[k,r,x,O,T,$,C,M,j,s,c]);d.useEffect(()=>fe.subscribe((Z,X)=>{Z.requestedSeekTime!==null&&Z.requestedSeekTime!==X.requestedSeekTime&&(L(Z.requestedSeekTime),fe.getState().clearSeekRequest())}),[L]);const{playbackKeyDownRef:V,playbackKeyUpRef:z,attachIframeShortcutListeners:q,togglePlay:U}=dP({iframeRef:t,shuttleDirectionRef:s,shuttleSpeedIndexRef:c,iframeShortcutCleanupRef:u,getAdapter:k,play:E,playBackward:N,pause:R,seek:L}),{processTimelineMessageRef:K,enrichMissingCompositionsRef:D,onIframeLoad:G}=OP({iframeRef:t,probeIntervalRef:n,pendingSeekRef:r,isRefreshingRef:i,getAdapter:k,syncTimelineElements:A,setDuration:y,setCurrentTime:x,setTimelineReady:v,setIsPlaying:O,attachIframeShortcutListeners:q,applyPreviewAudioState:j}),H=d.useCallback(()=>{const Z=k();r.current=Z?Z.getTime():fe.getState().currentTime??0,i.current=!0,$(),C(),O(!1)},[k,$,O,C]),F=d.useCallback(()=>{const Z=t.current;if(!Z)return;H();const X=Z.src,Y=new URL(X,window.location.origin);Y.searchParams.set("_t",String(Date.now())),Z.src=Y.toString()},[H]),I=d.useRef(k);I.current=k,Xt(()=>{const Z=ne=>V.current(ne),X=ne=>z.current(ne),Y=ne=>{const B=ne.data,re=t.current;if(!(ne.source&&re&&ne.source!==re.contentWindow)){if((B==null?void 0:B.source)==="hf-preview"&&(B==null?void 0:B.type)==="state")try{if(fe.getState().elements.length===0){const ue=re==null?void 0:re.contentWindow,me=ue==null?void 0:ue.__clipManifest;me&&me.clips.length>0&&K.current(me)}Date.now()-h.current>500&&D.current()}catch(ae){console.warn("[useTimelinePlayer] Could not read clip manifest from iframe",ae)}if((B==null?void 0:B.source)==="hf-preview"&&(B==null?void 0:B.type)==="timeline"&&Array.isArray(B.clips)&&(h.current=Date.now(),K.current(B),D.current(),fe.getState().elements.length===0))try{const ae=re==null?void 0:re.contentDocument,ue=k();if(ae&&ue){const me=n7(ae,ue.getDuration());me.length>0&&A(me)}}catch(ae){console.warn("[useTimelinePlayer] Could not read timeline elements on navigate (cross-origin)",ae)}}},J=()=>{var ne;if(document.hidden&&fe.getState().isPlaying){const B=(ne=I.current)==null?void 0:ne.call(I);B&&(B.pause(),O(!1),$())}};return window.addEventListener("keydown",Z,!0),window.addEventListener("keyup",X,!0),window.addEventListener("message",Y),document.addEventListener("visibilitychange",J),()=>{var ne;window.removeEventListener("keydown",Z,!0),window.removeEventListener("keyup",X,!0),(ne=u.current)==null||ne.call(u),u.current=null,window.removeEventListener("message",Y),document.removeEventListener("visibilitychange",J),$(),C(),n.current&&clearInterval(n.current)}});const P=d.useCallback(()=>{$(),C(),n.current&&clearInterval(n.current),fe.getState().reset()},[$,C]);return d.useEffect(()=>fe.subscribe((Z,X)=>{const Y=Z.playbackRate!==X.playbackRate,J=Z.audioMuted!==X.audioMuted;!Y&&!J||(Y&&M(Z.playbackRate),j())}),[M,j]),{iframeRef:t,play:E,pause:R,togglePlay:U,seek:L,onIframeLoad:G,refreshPlayer:F,saveSeekPosition:H,resetPlayer:P}}const AP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),MP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),CP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),EP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M87.51,64.49a12,12,0,0,1,0-17l32-32a12,12,0,0,1,17,0l32,32a12,12,0,0,1-17,17L140,53V96a12,12,0,0,1-24,0V53L104.49,64.49A12,12,0,0,1,87.51,64.49Zm64,127L140,203V160a12,12,0,0,0-24,0v43l-11.51-11.52a12,12,0,0,0-17,17l32,32a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm89-72-32-32a12,12,0,0,0-17,17L203,116H160a12,12,0,0,0,0,24h43l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,240.49,119.51ZM53,140H96a12,12,0,0,0,0-24H53l11.52-11.51a12,12,0,1,0-17-17l-32,32a12,12,0,0,0,0,17l32,32a12,12,0,1,0,17-17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,128,128,232,24,128,128,24Z",opacity:"0.2"}),d.createElement("path",{d:"M90.34,61.66a8,8,0,0,1,0-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V96a8,8,0,0,1-16,0V43.31L101.66,61.66A8,8,0,0,1,90.34,61.66Zm64,132.68L136,212.69V160a8,8,0,0,0-16,0v52.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm83.32-72-32-32a8,8,0,0,0-11.32,11.32L212.69,120H160a8,8,0,0,0,0,16h52.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,237.66,122.34ZM43.31,136H96a8,8,0,0,0,0-16H43.31l18.35-18.34A8,8,0,0,0,50.34,90.34l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96,136H64v24a8,8,0,0,1-13.66,5.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,64,96v24H96a8,8,0,0,1,0,16Zm0-72h24V96a8,8,0,0,0,16,0V64h24a8,8,0,0,0,5.66-13.66l-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,96,64Zm141.66,58.34-32-32A8,8,0,0,0,192,96v24H160a8,8,0,0,0,0,16h32v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,237.66,122.34ZM160,192H136V160a8,8,0,0,0-16,0v32H96a8,8,0,0,0-5.66,13.66l32,32a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,160,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M91.76,60.24a6,6,0,0,1,0-8.48l32-32a6,6,0,0,1,8.48,0l32,32a6,6,0,1,1-8.48,8.48L134,38.49V96a6,6,0,0,1-12,0V38.49L100.24,60.24A6,6,0,0,1,91.76,60.24Zm64,135.52L134,217.51V160a6,6,0,0,0-12,0v57.51l-21.76-21.75a6,6,0,0,0-8.48,8.48l32,32a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm80.48-72-32-32a6,6,0,0,0-8.48,8.48L217.51,122H160a6,6,0,0,0,0,12h57.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,236.24,123.76ZM38.49,134H96a6,6,0,0,0,0-12H38.49l21.75-21.76a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48l32,32a6,6,0,0,0,8.48-8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M90.34,61.66a8,8,0,0,1,0-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V96a8,8,0,0,1-16,0V43.31L101.66,61.66A8,8,0,0,1,90.34,61.66Zm64,132.68L136,212.69V160a8,8,0,0,0-16,0v52.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm83.32-72-32-32a8,8,0,0,0-11.32,11.32L212.69,120H160a8,8,0,0,0,0,16h52.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,237.66,122.34ZM43.31,136H96a8,8,0,0,0,0-16H43.31l18.35-18.34A8,8,0,0,0,50.34,90.34l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M93.17,58.83a4,4,0,0,1,0-5.66l32-32a4,4,0,0,1,5.66,0l32,32a4,4,0,0,1-5.66,5.66L132,33.66V96a4,4,0,0,1-8,0V33.66L98.83,58.83A4,4,0,0,1,93.17,58.83Zm64,138.34L132,222.34V160a4,4,0,0,0-8,0v62.34L98.83,197.17a4,4,0,0,0-5.66,5.66l32,32a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm77.66-72-32-32a4,4,0,0,0-5.66,5.66L222.34,124H160a4,4,0,0,0,0,8h62.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,234.83,125.17ZM33.66,132H96a4,4,0,0,0,0-8H33.66L58.83,98.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66l32,32a4,4,0,1,0,5.66-5.66Z"}))]]),TP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),$P=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),jP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),PP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M84,100A12,12,0,0,1,96,88h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,100Zm12,52h64a12,12,0,0,0,0-24H96a12,12,0,0,0,0,24ZM236,56V184a20,20,0,0,1-20,20H157.89l-12.52,21.92a20,20,0,0,1-34.74,0L98.11,204H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V180h61.07a12,12,0,0,1,10.42,6.05L128,207.94l12.51-21.89A12,12,0,0,1,150.93,180H212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,56V184a8,8,0,0,1-8,8H150.93l-16,28a8,8,0,0,1-13.9,0l-16-28H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),d.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V184a16,16,0,0,0,16,16h60.43l13.68,23.94a16,16,0,0,0,27.78,0L155.57,200H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM160,144H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M166,104a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,104Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-74V184a14,14,0,0,1-14,14H154.41L140.16,223a14,14,0,0,1-24.32,0L101.59,198H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V184a2,2,0,0,0,2,2h65.07a6,6,0,0,1,5.21,3l16,28a2,2,0,0,0,3.48,0l16-28a6,6,0,0,1,5.21-3H216a2,2,0,0,0,2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164,104a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,104Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-76V184a12,12,0,0,1-12,12H153.25L138.42,222a12,12,0,0,1-20.84,0L102.75,196H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V184a4,4,0,0,0,4,4h65.07a4,4,0,0,1,3.47,2l16,28a4,4,0,0,0,6.94,0l16-28a4,4,0,0,1,3.47-2H216a4,4,0,0,0,4-4Z"}))]]),QP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.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,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),ZP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),NP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),RP=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),VP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),_P=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),LP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),DP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),HP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),XP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),zP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),FP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),BP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),YP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),IP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),qP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),GP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),UP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),WP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),KP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),JP=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),eQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,100h72v56H44Zm96-24V60h24V76Zm-24,0H92V60h24Zm0,104v16H92V180Zm24,0h24v16H140Zm0-24V100h72v56Zm72-80H188V60h24ZM68,60V76H44V60ZM44,180H68v16H44Zm144,16V180h24v16Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M32,176H224v24a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8ZM216,48H40a8,8,0,0,0-8,8V80H224V56A8,8,0,0,0,216,48Z",opacity:"0.2"}),d.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,40ZM40,88h80v80H40Zm96-16V56h32V72Zm-16,0H88V56h32Zm0,112v16H88V184Zm16,0h32v16H136Zm0-16V88h80v80Zm80-96H184V56h32ZM72,56V72H40V56ZM40,184H72v16H40Zm176,16H184V184h32v16Z"}))],["fill",d.createElement(d.Fragment,null,d.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,40ZM184,56h32V72H184ZM72,200H40V184H72ZM72,72H40V56H72Zm48,128H88V184h32Zm0-128H88V56h32Zm48,128H136V184h32Zm0-128H136V56h32Zm48,128H184V184h32v16Z"}))],["light",d.createElement(d.Fragment,null,d.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,42ZM38,86h84v84H38Zm96-12V54h36V74Zm-12,0H86V54h36Zm0,108v20H86V182Zm12,0h36v20H134Zm0-12V86h84v84ZM218,56V74H182V54h34A2,2,0,0,1,218,56ZM40,54H74V74H38V56A2,2,0,0,1,40,54ZM38,200V182H74v20H40A2,2,0,0,1,38,200Zm178,2H182V182h36v18A2,2,0,0,1,216,202Z"}))],["regular",d.createElement(d.Fragment,null,d.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,40ZM40,88h80v80H40Zm96-16V56h32V72Zm-16,0H88V56h32Zm0,112v16H88V184Zm16,0h32v16H136Zm0-16V88h80v80Zm80-96H184V56h32ZM72,56V72H40V56ZM40,184H72v16H40Zm176,16H184V184h32v16Z"}))],["thin",d.createElement(d.Fragment,null,d.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,44ZM36,84h88v88H36Zm96-8V52h40V76Zm-8,0H84V52h40Zm0,104v24H84V180Zm8,0h40v24H132Zm0-8V84h88v88ZM220,56V76H180V52h36A4,4,0,0,1,220,56ZM40,52H76V76H36V56A4,4,0,0,1,40,52ZM36,200V180H76v24H40A4,4,0,0,1,36,200Zm180,4H180V180h40v20A4,4,0,0,1,216,204Z"}))]]),tQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),nQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),rQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),iQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,80H140V60h56ZM116,60v56H60V60ZM60,140h56v56H60Zm80,56V140h56v56Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"}),d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56v60a4,4,0,0,1-4,4H136V44a4,4,0,0,1,4-4h60A16,16,0,0,1,216,56ZM116,40H56A16,16,0,0,0,40,56v60a4,4,0,0,0,4,4h76V44A4,4,0,0,0,116,40Zm96,96H136v76a4,4,0,0,0,4,4h60a16,16,0,0,0,16-16V140A4,4,0,0,0,212,136ZM40,140v60a16,16,0,0,0,16,16h60a4,4,0,0,0,4-4V136H44A4,4,0,0,0,40,140Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,14v66H134V54h66A2,2,0,0,1,202,56ZM56,54h66v68H54V56A2,2,0,0,1,56,54ZM54,200V134h68v68H56A2,2,0,0,1,54,200Zm146,2H134V134h68v66A2,2,0,0,1,200,202Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,12v68H132V52h68A4,4,0,0,1,204,56ZM56,52h68v72H52V56A4,4,0,0,1,56,52ZM52,200V132h72v72H56A4,4,0,0,1,52,200Zm148,4H132V132h72v68A4,4,0,0,1,200,204Z"}))]]),aQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),lQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),sQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H160a20,20,0,0,0-20,20v88a12,12,0,0,1-24,0V56A20,20,0,0,0,96,36H56A20,20,0,0,0,36,56v88a92,92,0,0,0,92,92h.71c50.34-.38,91.3-42.1,91.3-93V56A20,20,0,0,0,200,36Zm-4,24V84H164V60ZM92,60V84H60V60Zm36.52,152H128a68,68,0,0,1-68-68V108H92v36a36,36,0,0,0,72,0V108h32v35C196,180.77,165.73,211.72,128.52,212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M104,56V96H48V56a8,8,0,0,1,8-8H96A8,8,0,0,1,104,56Zm96-8H160a8,8,0,0,0-8,8V96h56V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V88H160V56ZM96,56V88H56V56Zm32.55,160A72,72,0,0,1,56,144V104H96v40a32,32,0,0,0,64,0V104h40v39C200,183,168,215.71,128.55,216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V96H160V56ZM96,56V96H56V56Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,42H160a14,14,0,0,0-14,14v88a18,18,0,0,1-36,0V56A14,14,0,0,0,96,42H56A14,14,0,0,0,42,56v88a86,86,0,0,0,86,86h.65c47.06-.35,85.35-39.38,85.35-87V56A14,14,0,0,0,200,42ZM160,54h40a2,2,0,0,1,2,2V90H158V56A2,2,0,0,1,160,54ZM56,54H96a2,2,0,0,1,2,2V90H54V56A2,2,0,0,1,56,54Zm72.56,164H128a74,74,0,0,1-74-74V102H98v42a30,30,0,0,0,60,0V102h44v41C202,184.05,169.06,217.7,128.56,218Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H160a16,16,0,0,0-16,16v88a16,16,0,0,1-32,0V56A16,16,0,0,0,96,40H56A16,16,0,0,0,40,56v88a88,88,0,0,0,88,88h.67c48.15-.36,87.33-40.29,87.33-89V56A16,16,0,0,0,200,40Zm0,16V88H160V56ZM96,56V88H56V56Zm32.55,160A72,72,0,0,1,56,144V104H96v40a32,32,0,0,0,64,0V104h40v39C200,183,168,215.71,128.55,216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,44H160a12,12,0,0,0-12,12v88a20,20,0,0,1-40,0V56A12,12,0,0,0,96,44H56A12,12,0,0,0,44,56v88a84,84,0,0,0,84,84h.64c46-.34,83.36-38.47,83.36-85V56A12,12,0,0,0,200,44Zm-40,8h40a4,4,0,0,1,4,4V92H156V56A4,4,0,0,1,160,52ZM56,52H96a4,4,0,0,1,4,4V92H52V56A4,4,0,0,1,56,52Zm72.58,168H128a76,76,0,0,1-76-76V100h48v44a28,28,0,0,0,56,0V100h48v43C204,185.15,170.17,219.69,128.58,220Z"}))]]),oQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.45,52.51l-80-24A12,12,0,0,0,116,40V140.22A52,52,0,1,0,140,184V104.13l64.55,19.36A12,12,0,0,0,220,112V64A12,12,0,0,0,211.45,52.51ZM88,212a28,28,0,1,1,28-28A28,28,0,0,1,88,212ZM196,95.87l-56-16.8V56.13l56,16.8Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,184a40,40,0,1,1-40-40A40,40,0,0,1,128,184Z",opacity:"0.2"}),d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34ZM88,216a32,32,0,1,1,32-32A32,32,0,0,1,88,216ZM200,101.25l-64-19.2V50.75L200,70Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M209.72,58.25l-80-24A6,6,0,0,0,122,40V153.05A46,46,0,1,0,134,184V96.06l72.28,21.69A6,6,0,0,0,214,112V64A6,6,0,0,0,209.72,58.25ZM88,218a34,34,0,1,1,34-34A34,34,0,0,1,88,218ZM202,103.94l-68-20.4V48.06l68,20.4Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.3,56.34l-80-24A8,8,0,0,0,120,40V148.26A48,48,0,1,0,136,184V98.75l69.7,20.91A8,8,0,0,0,216,112V64A8,8,0,0,0,210.3,56.34ZM88,216a32,32,0,1,1,32-32A32,32,0,0,1,88,216ZM200,101.25l-64-19.2V50.75L200,70Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M209.15,60.17l-80-24A4,4,0,0,0,124,40V158.75A44,44,0,1,0,132,184V93.38l74.85,22.45A4,4,0,0,0,212,112V64A4,4,0,0,0,209.15,60.17ZM88,220a36,36,0,1,1,36-36A36,36,0,0,1,88,220ZM204,106.62,132,85V45.38L204,67Z"}))]]),cQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"}),d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z"}))]]),uQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),fQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),dQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M238.78,183.79,98.28,87.65A40.18,40.18,0,0,0,100,76a40,40,0,1,0-15.29,31.45l30,20.56-30,20.56a40,40,0,1,0,3.57,59.74h0A39.73,39.73,0,0,0,100,180a40.18,40.18,0,0,0-1.72-11.66L136,142.54l89.22,61.06a12,12,0,0,0,13.56-19.81ZM71.31,191.33h0A16,16,0,1,1,76,180,16,16,0,0,1,71.31,191.33ZM48.69,87.3a16,16,0,1,1,22.62,0h0A16,16,0,0,1,48.69,87.3Zm112.82,23.24a12,12,0,0,1,3.13-16.68L225.22,52.4a12,12,0,0,1,13.56,19.81l-60.59,41.46a12,12,0,0,1-16.68-3.13Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M40.2,95.8a28,28,0,1,1,39.6,0A28,28,0,0,1,40.2,95.8Zm0,64.4a28,28,0,1,0,39.6,0A28,28,0,0,0,40.2,160.2Z",opacity:"0.2"}),d.createElement("path",{d:"M157.73,113.13A8,8,0,0,1,159.82,102L227.48,55.7a8,8,0,0,1,9,13.21l-67.67,46.3a7.92,7.92,0,0,1-4.51,1.4A8,8,0,0,1,157.73,113.13Zm80.87,85.09a8,8,0,0,1-11.12,2.08L136,137.7,93.49,166.78a36,36,0,1,1-9-13.19L121.83,128,84.44,102.41a35.86,35.86,0,1,1,9-13.19l143,97.87A8,8,0,0,1,238.6,198.22ZM80,180a20,20,0,1,0-5.86,14.14A19.85,19.85,0,0,0,80,180ZM74.14,90.13a20,20,0,1,0-28.28,0A19.85,19.85,0,0,0,74.14,90.13Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.52,187.09l-143-97.87a36,36,0,1,0-14.38,17.27l21.39,21.69L79.15,149.54l0,0a35.91,35.91,0,1,0,14.38,17.27l26.91-18.41L170,198.64a32.26,32.26,0,0,0,22.7,9.37,31.52,31.52,0,0,0,4.11-.27l.28,0,36.27-6.11a8,8,0,0,0,3.19-14.5Zm-162.38-97A20,20,0,1,1,80,76,20,20,0,0,1,74.14,90.13Zm0,104A20,20,0,1,1,80,180,20,20,0,0,1,74.14,194.15Zm61-101.5L169.94,57.4a32.19,32.19,0,0,1,26.84-9.14l.28,0,36,6.07a8.21,8.21,0,0,1,6.09,4.42,8,8,0,0,1-2.67,10.12l-69.93,47.85a4,4,0,0,1-4.51,0l-26.31-18A4,4,0,0,1,135.18,92.65Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M159.38,112a6,6,0,0,1,1.57-8.34l67.66-46.31a6,6,0,0,1,6.78,9.91l-67.67,46.3a6,6,0,0,1-8.34-1.56ZM237,197.09a6,6,0,0,1-8.34,1.56L136,135.27,91,166.06A34,34,0,1,1,84,156a1.8,1.8,0,0,0,.19.2L125.37,128,84.23,99.84,84,100a34,34,0,1,1,7-10.1l144.38,98.8A6,6,0,0,1,237,197.09ZM75.56,91.55a22,22,0,1,0-31.12,0,21.88,21.88,0,0,0,31.12,0ZM82,180a22,22,0,1,0-6.44,15.56h0A21.88,21.88,0,0,0,82,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M157.73,113.13A8,8,0,0,1,159.82,102L227.48,55.7a8,8,0,0,1,9,13.21l-67.67,46.3a7.92,7.92,0,0,1-4.51,1.4A8,8,0,0,1,157.73,113.13Zm80.87,85.09a8,8,0,0,1-11.12,2.08L136,137.7,93.49,166.78a36,36,0,1,1-9-13.19L121.83,128,84.44,102.41a35.86,35.86,0,1,1,9-13.19l143,97.87A8,8,0,0,1,238.6,198.22ZM80,180a20,20,0,1,0-5.86,14.14A19.85,19.85,0,0,0,80,180ZM74.14,90.13a20,20,0,1,0-28.28,0A19.85,19.85,0,0,0,74.14,90.13Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M161,110.87a4,4,0,0,1,1.05-5.56L229.74,59a4,4,0,0,1,4.52,6.61l-67.67,46.3a4,4,0,0,1-5.56-1ZM235.3,196a4,4,0,0,1-5.56,1L136,132.85,88.47,165.38a32,32,0,1,1-5.84-8c.45.45.89.92,1.31,1.4l45-30.78-45-30.78c-.42.48-.86,1-1.31,1.4a31.86,31.86,0,1,1,5.84-8l49.69,34h0l96.09,65.76A4,4,0,0,1,235.3,196ZM77,93a24.42,24.42,0,0,0,2.82-3.38s0,0,0,0l0,0A24,24,0,1,0,77,93ZM84,180a23.75,23.75,0,0,0-4.15-13.49l0-.06,0,0A24.5,24.5,0,0,0,77,163,24,24,0,1,0,77,197h0A23.85,23.85,0,0,0,84,180Z"}))]]),hQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,176H52V52H204Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),d.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,32Zm0,176H48V48H208V208Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34Zm2,174a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.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,32Zm0,176H48V48H208V208Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36Zm4,172a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),mQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),d.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),d.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),d.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),pQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),gQ=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z",opacity:"0.2"}),d.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["fill",d.createElement(d.Fragment,null,d.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,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z"}))]]),OQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),xQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),yQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),bQ=new Map([["bold",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}),d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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",d.createElement(d.Fragment,null,d.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"}))]]),vQ=d.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Xe=d.forwardRef((t,e)=>{const{alt:n,color:r,size:i,weight:l,mirrored:s,children:c,weights:u,...h}=t,{color:g="currentColor",size:O,weight:x="regular",mirrored:y=!1,...v}=d.useContext(vQ);return d.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i??O,height:i??O,fill:r??g,viewBox:"0 0 256 256",transform:s||y?"scale(-1, 1)":void 0,...v,...h},!!n&&d.createElement("title",null,n),c,u.get(l??x))});Xe.displayName="IconBase";const i7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:AP}));i7.displayName="ArrowClockwiseIcon";const SQ=i7,a7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:MP}));a7.displayName="ArrowCounterClockwiseIcon";const wQ=a7,l7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:CP}));l7.displayName="ArrowLeftIcon";const kQ=l7,s7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:EP}));s7.displayName="ArrowsOutCardinalIcon";const AQ=s7,o7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:TP}));o7.displayName="CameraIcon";const MQ=o7,c7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:$P}));c7.displayName="CaretDownIcon";const CQ=c7,Nf=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:jP}));Nf.displayName="CaretRightIcon";const u7=Nf,f7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:PP}));f7.displayName="ChatCenteredTextIcon";const EQ=f7,d7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:QP}));d7.displayName="CheckIcon";const TQ=d7,h7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:ZP}));h7.displayName="CheckCircleIcon";const m7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:NP}));m7.displayName="ClipboardTextIcon";const $Q=m7,p7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:RP}));p7.displayName="ClockIcon";const jQ=p7,g7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:VP}));g7.displayName="CopyIcon";const PQ=g7,O7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:_P}));O7.displayName="EyeIcon";const QQ=O7,x7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:LP}));x7.displayName="FileIcon";const ZQ=x7,y7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:DP}));y7.displayName="FileCodeIcon";const NQ=y7,b7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:HP}));b7.displayName="FileCssIcon";const RQ=b7,v7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:XP}));v7.displayName="FileHtmlIcon";const VQ=v7,S7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:zP}));S7.displayName="FileJpgIcon";const _Q=S7,w7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:FP}));w7.displayName="FileJsIcon";const LQ=w7,k7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:BP}));k7.displayName="FileJsxIcon";const DQ=k7,A7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:YP}));A7.displayName="FileMdIcon";const HQ=A7,M7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:IP}));M7.displayName="FilePlusIcon";const Sy=M7,C7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:qP}));C7.displayName="FilePngIcon";const XQ=C7,E7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:GP}));E7.displayName="FileSvgIcon";const zQ=E7,T7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:UP}));T7.displayName="FileTsIcon";const FQ=T7,$7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:WP}));$7.displayName="FileTsxIcon";const BQ=$7,j7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:KP}));j7.displayName="FileTxtIcon";const YQ=j7,P7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:JP}));P7.displayName="FileVideoIcon";const IQ=P7,Q7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:eQ}));Q7.displayName="FilmStripIcon";const qQ=Q7,Z7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:tQ}));Z7.displayName="FolderSimpleIcon";const GQ=Z7,N7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:nQ}));N7.displayName="FolderSimplePlusIcon";const R7=N7,V7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:rQ}));V7.displayName="GearIcon";const UQ=V7,_7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:iQ}));_7.displayName="GridFourIcon";const WQ=_7,L7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:aQ}));L7.displayName="ImageIcon";const KQ=L7,D7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:lQ}));D7.displayName="LightningIcon";const JQ=D7,H7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:sQ}));H7.displayName="MagnetStraightIcon";const eZ=H7,X7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:oQ}));X7.displayName="MusicNoteIcon";const tZ=X7,z7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:cQ}));z7.displayName="PaletteIcon";const nZ=z7,F7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:uQ}));F7.displayName="PencilSimpleIcon";const rZ=F7,B7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:fQ}));B7.displayName="PlusIcon";const Y7=B7,I7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:dQ}));I7.displayName="ScissorsIcon";const iZ=I7,q7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:hQ}));q7.displayName="SquareIcon";const aZ=q7,G7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:mQ}));G7.displayName="StackIcon";const lZ=G7,U7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:pQ}));U7.displayName="TextAaIcon";const sZ=U7,W7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:gQ}));W7.displayName="TextTIcon";const oZ=W7,K7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:OQ}));K7.displayName="TrashIcon";const cZ=K7,bf=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:xQ}));bf.displayName="WarningIcon";const J7=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:yQ}));J7.displayName="WaveformIcon";const uZ=J7,E8=d.forwardRef((t,e)=>d.createElement(Xe,{ref:e,...t,weights:bQ}));E8.displayName="XIcon";const fZ=E8;function wy({findings:t,projectId:e,onClose:n}){const r=t.filter(h=>h.severity==="error"),i=t.filter(h=>h.severity==="warning"),l=t.length>0,[s,c]=d.useState(!1),u=async()=>{const h=t.map(x=>{let y=`[${x.severity}] ${x.message}`;return x.file&&(y+=`
68
68
  File: ${x.file}`),x.fixHint&&(y+=`
69
69
  Fix: ${x.fixHint}`),y}),g=`Fix these HyperFrames lint issues for project "${e}":
70
70
 
@@ -137,4 +137,4 @@ ${t}`}function wR({activeCompPath:t,previewIframeRef:e,domEditSelection:n,applyD
137
137
  `),"","## Current composition state","",u].join(`
138
138
  `)}function eI({name:t,title:e,description:n,blockType:r,duration:i,category:l,tags:s,posterUrl:c,videoUrl:u,onAdd:h,onShowPrompt:g,onPreview:O}){var R;const[x,y]=d.useState(!1),[v,w]=d.useState(!1),A=d.useRef(null),k=pM(l),C=(s==null?void 0:s.includes("html-in-canvas"))||(s==null?void 0:s.includes("webgl")),T=d.useCallback(()=>{A.current=setTimeout(()=>{y(!0),O==null||O({videoUrl:u,posterUrl:c,title:e})},300)},[O,u,c,e]),$=d.useCallback(()=>{A.current&&(clearTimeout(A.current),A.current=null),y(!1),O==null||O(null)},[O]);d.useEffect(()=>()=>{A.current&&clearTimeout(A.current)},[]);const M=d.useCallback(L=>{L.stopPropagation(),!(v||!h)&&(w(!0),h(),setTimeout(()=>w(!1),1e3))},[h,v]),{activeCompPath:j,compositionDimensions:E}=No(),N=d.useCallback(L=>{L.stopPropagation();const V=fe.getState(),z={currentTime:V.currentTime,activeCompPath:j,elements:V.elements.map(U=>({id:U.id,start:U.start,duration:U.duration,track:U.track,label:U.label,compositionSrc:U.compositionSrc})),compositionDimensions:E??void 0},q=JY(e,t,n,l,r,z);g==null||g({title:e,prompt:q})},[e,t,n,l,r,j,E,g]);return m.jsxs("div",{className:"group/card rounded-md overflow-hidden cursor-pointer transition-colors bg-neutral-900 hover:bg-neutral-800",onPointerEnter:T,onPointerLeave:$,children:[m.jsxs("div",{className:"aspect-video w-full overflow-hidden relative",children:[x&&u?m.jsx("video",{src:u,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-full object-cover"}):c?m.jsx("img",{src:c,alt:e,loading:"lazy",className:"w-full h-full object-cover"}):u?m.jsx("video",{src:u,muted:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover"}):m.jsx("div",{className:`w-full h-full flex items-center justify-center ${k.bg}`,children:m.jsx("span",{className:`text-[9px] font-medium ${k.text}`,children:l.toUpperCase()})}),m.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-1.5 bg-black/60 opacity-0 group-hover/card:opacity-100 transition-opacity",children:[h&&m.jsxs("button",{type:"button",onClick:M,title:"Add to composition at current time",className:"flex items-center gap-1 px-3 py-1.5 rounded-md bg-white text-black text-[10px] font-semibold hover:bg-neutral-200 transition-colors",children:[m.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:m.jsx("path",{d:"M12 5v14M5 12h14"})}),v?"Added!":"Add"]}),m.jsxs("button",{type:"button",onClick:N,title:"Generate a prompt to paste into your AI agent",className:`flex items-center gap-1.5 px-3 ${h?"py-1":"py-1.5"} rounded-md transition-colors ${h?"bg-white/15 text-white/90 hover:bg-white/25 text-[9px]":"bg-white text-black hover:bg-neutral-200 text-[10px] font-semibold"}`,children:[m.jsxs("svg",{width:h?9:11,height:h?9:11,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),m.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Ask agent"]})]}),m.jsxs("div",{className:"absolute top-1 right-1 flex items-center gap-0.5 pointer-events-none",children:[C&&m.jsx("span",{className:"px-1 py-px rounded text-[7px] font-semibold text-purple-300 bg-purple-900/70",children:"WebGL"}),i!=null&&m.jsxs("span",{className:"px-1 py-px rounded text-[8px] font-medium text-white/80 bg-black/50",children:[i,"s"]})]})]}),m.jsxs("div",{className:"px-1.5 py-1.5",children:[m.jsx("div",{className:"text-[10px] font-medium text-neutral-200 truncate leading-tight",children:e}),m.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[m.jsx("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${k.dot}`}),m.jsx("span",{className:`text-[8px] ${k.text}`,children:(R=mM.find(L=>L.id===l))==null?void 0:R.label})]})]})]})}function tI({title:t,prompt:e,onClose:n}){const[r,i]=d.useState(e),[l,s]=d.useState(!1),c=d.useRef(null);d.useEffect(()=>{requestAnimationFrame(()=>{var h;return(h=c.current)==null?void 0:h.focus()})},[]);const u=d.useCallback(()=>{navigator.clipboard.writeText(r),s(!0),setTimeout(()=>s(!1),1500)},[r]);return m.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:n,children:m.jsxs("div",{className:"w-[560px] max-h-[80vh] flex flex-col rounded-2xl border border-neutral-800 bg-neutral-950 shadow-2xl",onClick:h=>h.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-neutral-800/60",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-sm font-medium text-neutral-200",children:"Ask agent"}),m.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:t})]}),m.jsx("button",{className:"p-1 rounded-md text-neutral-500 hover:text-neutral-300 hover:bg-neutral-800/50",onClick:n,children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[m.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:[m.jsx("p",{className:"text-[11px] text-neutral-500 mb-2",children:"Edit the prompt below, then copy and paste into your AI agent"}),m.jsx("textarea",{ref:c,value:r,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&(h.metaKey||h.ctrlKey)&&u(),h.key==="Escape"&&n()},className:"w-full min-h-[240px] text-[11px] text-neutral-200 leading-relaxed font-mono bg-neutral-900/60 rounded-lg p-3 border border-neutral-800 resize-y focus:outline-none focus:border-studio-accent/60 focus:ring-1 focus:ring-studio-accent/30"})]}),m.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-neutral-800/60",children:[m.jsxs("span",{className:"text-[11px] text-neutral-600",children:[navigator.platform.includes("Mac")?"⌘":"Ctrl","+Enter to copy"]}),m.jsx("button",{className:`px-4 py-1.5 rounded-lg text-xs font-medium transition-colors ${l?"bg-emerald-500 text-white":"bg-studio-accent/90 text-neutral-950 hover:bg-studio-accent"}`,onClick:u,children:l?"Copied!":"Copy prompt"})]})]})})}const Zn=14,Nn="duotone";function gM({path:t}){var r;const e=((r=t.split(".").pop())==null?void 0:r.toLowerCase())??"",n="flex-shrink-0";return e==="html"?m.jsx(VQ,{size:Zn,weight:Nn,color:"#E44D26",className:n}):e==="css"?m.jsx(RQ,{size:Zn,weight:Nn,color:"#264DE4",className:n}):e==="js"||e==="mjs"||e==="cjs"?m.jsx(LQ,{size:Zn,weight:Nn,color:"#F0DB4F",className:n}):e==="jsx"?m.jsx(DQ,{size:Zn,weight:Nn,color:"#61DAFB",className:n}):e==="ts"||e==="mts"?m.jsx(FQ,{size:Zn,weight:Nn,color:"#3178C6",className:n}):e==="tsx"?m.jsx(BQ,{size:Zn,weight:Nn,color:"#3178C6",className:n}):e==="json"?m.jsx(NQ,{size:Zn,weight:Nn,color:"#4ADE80",className:n}):e==="svg"?m.jsx(zQ,{size:Zn,weight:Nn,color:"#F97316",className:n}):e==="md"||e==="mdx"?m.jsx(HQ,{size:Zn,weight:Nn,color:"#9CA3AF",className:n}):e==="txt"?m.jsx(YQ,{size:Zn,weight:Nn,color:"#9CA3AF",className:n}):e==="png"?m.jsx(XQ,{size:Zn,weight:Nn,color:"#22C55E",className:n}):e==="jpg"||e==="jpeg"?m.jsx(_Q,{size:Zn,weight:Nn,color:"#22C55E",className:n}):e==="webp"||e==="gif"||e==="ico"?m.jsx(KQ,{size:Zn,weight:Nn,color:"#22C55E",className:n}):e==="mp4"||e==="webm"||e==="mov"?m.jsx(IQ,{size:Zn,weight:Nn,color:"#A855F7",className:n}):e==="mp3"||e==="wav"||e==="ogg"||e==="m4a"?m.jsx(uZ,{size:Zn,weight:Nn,color:"#3CE6AC",className:n}):e==="woff"||e==="woff2"||e==="ttf"||e==="otf"?m.jsx(sZ,{size:Zn,weight:Nn,color:"#6B7280",className:n}):m.jsx(ZQ,{size:Zn,weight:Nn,color:"#6B7280",className:n})}function nI(t){const e={name:"",fullPath:"",children:new Map,isFile:!1};for(const n of t){const r=n.split("/");let i=e;for(let l=0;l<r.length;l++){const s=r[l],c=l===r.length-1,u=r.slice(0,l+1).join("/");i.children.has(s)||i.children.set(s,{name:s,fullPath:u,children:new Map,isFile:c}),i=i.children.get(s),c&&(i.isFile=!0)}}return e}function OM(t){return Array.from(t.values()).sort((e,n)=>e.name==="index.html"?-1:n.name==="index.html"?1:!e.isFile&&n.isFile?-1:e.isFile&&!n.isFile?1:e.name.localeCompare(n.name))}function Z6(t,e){if(!e)return!1;if(t.fullPath===e)return!0;for(const n of t.children.values())if(Z6(n,e))return!0;return!1}const rI=14;function iI({state:t,onClose:e,onNewFile:n,onNewFolder:r,onRename:i,onDuplicate:l,onDelete:s}){const c=d.useRef(null);d.useEffect(()=>{const O=y=>{c.current&&!c.current.contains(y.target)&&e()},x=y=>{y.key==="Escape"&&e()};return document.addEventListener("mousedown",O),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",x)}},[e]);const u=Math.min(t.x,window.innerWidth-180),h=Math.min(t.y,window.innerHeight-200),g=t.targetIsFolder?t.targetPath:t.targetPath.includes("/")?t.targetPath.slice(0,t.targetPath.lastIndexOf("/")):"";return m.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:h},children:[t.targetIsFolder&&m.jsxs(m.Fragment,{children:[m.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(t.targetPath),e()},children:[m.jsx(Sy,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),m.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:()=>{r(t.targetPath),e()},children:[m.jsx(R7,{size:12,weight:"duotone",className:"text-neutral-500"}),"New Folder"]}),m.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),!t.targetIsFolder&&m.jsxs(m.Fragment,{children:[m.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(g),e()},children:[m.jsx(Sy,{size:12,weight:"duotone",className:"text-neutral-500"}),"New File"]}),m.jsx("div",{className:"border-t border-neutral-700 my-1"})]}),m.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(t.targetPath),e()},children:[m.jsx(rZ,{size:12,weight:"duotone",className:"text-neutral-500"}),"Rename"]}),!t.targetIsFolder&&m.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(t.targetPath),e()},children:[m.jsx(PQ,{size:12,weight:"duotone",className:"text-neutral-500"}),"Duplicate"]}),m.jsx("div",{className:"border-t border-neutral-700 my-1"}),m.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:()=>{s(t.targetPath),e()},children:[m.jsx(cZ,{size:12,weight:"duotone"}),"Delete"]})]})}function Od({defaultValue:t,depth:e,isFolder:n,onCommit:r,onCancel:i}){const l=d.useRef(null),s=d.useRef(!1),[c,u]=d.useState(t);d.useEffect(()=>{const x=l.current;if(x)if(x.focus(),t&&t.includes(".")){const y=t.lastIndexOf(".");x.setSelectionRange(0,y)}else x.select()},[t]);const h=x=>{s.current||(s.current=!0,r(x))},g=x=>{if(x.key==="Enter"){x.preventDefault();const y=c.trim();y&&!(/[/\\]/.test(y)||y.includes(".."))?h(y):i()}else x.key==="Escape"&&(x.preventDefault(),i())},O=()=>{const x=c.trim();x&&x!==t&&!(/[/\\]/.test(x)||x.includes(".."))?h(x):i()};return m.jsxs("div",{className:"flex items-center gap-2 py-0.5 min-h-7",style:{paddingLeft:`${8+e*12+(n?0:14)}px`},children:[n?m.jsx(GQ,{size:rI,weight:"duotone",color:"#6B7280",className:"flex-shrink-0"}):m.jsx(gM,{path:c}),m.jsx("input",{ref:l,value:c,onChange:x=>u(x.target.value),onKeyDown:g,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 aI({name:t,onConfirm:e,onCancel:n}){const r=d.useRef(null);return d.useEffect(()=>{const i=s=>{s.key==="Escape"&&n()},l=s=>{r.current&&!r.current.contains(s.target)&&n()};return document.addEventListener("keydown",i),document.addEventListener("mousedown",l),()=>{document.removeEventListener("keydown",i),document.removeEventListener("mousedown",l)}},[n]),m.jsxs("div",{ref:r,className:"mx-1 my-0.5 p-2 bg-neutral-800 border border-neutral-700 rounded-md text-xs",children:[m.jsxs("p",{className:"text-neutral-300 mb-2",children:["Delete ",m.jsx("span",{className:"font-medium text-neutral-100",children:t}),"?"]}),m.jsxs("div",{className:"flex gap-1.5",children:[m.jsx("button",{onClick:n,className:"flex-1 px-2 py-1 rounded bg-neutral-700 text-neutral-300 hover:bg-neutral-600 transition-colors",children:"Cancel"}),m.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"})]})]})}const o8=d.memo(function({node:e,depth:n,activeFile:r,onSelectFile:i,onContextMenu:l,inlineInput:s,onDragStart:c}){const u=e.fullPath===r;return(s==null?void 0:s.mode)==="rename"&&s.originalPath===e.fullPath?m.jsx(Od,{defaultValue:s.originalName??e.name,depth:n,isFolder:!1,onCommit:g=>{var O;(O=s==null?void 0:s.onCommit)==null||O.call(s,g)},onCancel:()=>{var g;(g=s==null?void 0:s.onCancel)==null||g.call(s)}}):m.jsxs("button",{draggable:!0,onDragStart:g=>c(g,e.fullPath),onClick:()=>i(e.fullPath),onContextMenu:g=>{g.preventDefault(),l(g,e.fullPath,!1)},className:`w-full flex items-center gap-2 py-1 min-h-7 text-left transition-all text-xs ${u?"bg-neutral-800/60 text-neutral-200":"text-neutral-500 hover:bg-neutral-800/30 hover:text-neutral-300"}`,style:{paddingLeft:`${8+n*12+14}px`},children:[m.jsx(gM,{path:e.name}),m.jsx("span",{className:"truncate",children:e.name})]})}),lI=d.memo(function t({node:e,depth:n,activeFile:r,onSelectFile:i,defaultOpen:l,onContextMenu:s,inlineInput:c,onDragStart:u,onDragOver:h,onDrop:g,onDragLeave:O,dragOverFolder:x}){const[y,v]=d.useState(l),w=d.useCallback(()=>v($=>!$),[]),A=d.useMemo(()=>OM(e.children),[e.children]),k=y?IV:qV,C=x===e.fullPath;return(c==null?void 0:c.mode)==="rename"&&c.originalPath===e.fullPath?m.jsx(Od,{defaultValue:c.originalName??e.name,depth:n,isFolder:!0,onCommit:$=>{var M;(M=c==null?void 0:c.onCommit)==null||M.call(c,$)},onCancel:()=>{var $;($=c==null?void 0:c.onCancel)==null||$.call(c)}}):m.jsxs(m.Fragment,{children:[m.jsxs("button",{draggable:!0,onDragStart:$=>u($,e.fullPath),onClick:w,onContextMenu:$=>{$.preventDefault(),s($,e.fullPath,!0)},onDragOver:$=>{$.preventDefault(),$.stopPropagation(),h($,e.fullPath)},onDrop:$=>{$.preventDefault(),$.stopPropagation(),g($,e.fullPath)},onDragLeave:O,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+n*12}px`},children:[m.jsx(k,{size:10,className:"flex-shrink-0 text-neutral-600"}),m.jsx("span",{className:"truncate font-medium",children:e.name})]}),y&&m.jsxs(m.Fragment,{children:[c&&(c.mode==="new-file"||c.mode==="new-folder")&&c.parentPath===e.fullPath&&m.jsx(Od,{defaultValue:"",depth:n+1,isFolder:c.mode==="new-folder",onCommit:$=>{var M;(M=c==null?void 0:c.onCommit)==null||M.call(c,$)},onCancel:()=>{var $;($=c==null?void 0:c.onCancel)==null||$.call(c)}}),A.map($=>$.isFile&&$.children.size===0?m.jsx(o8,{node:$,depth:n+1,activeFile:r,onSelectFile:i,onContextMenu:s,inlineInput:c,onDragStart:u},$.fullPath):$.children.size>0?m.jsx(t,{node:$,depth:n+1,activeFile:r,onSelectFile:i,defaultOpen:Z6($,r),onContextMenu:s,inlineInput:c,onDragStart:u,onDragOver:h,onDrop:g,onDragLeave:O,dragOverFolder:x},$.fullPath):m.jsx(o8,{node:$,depth:n+1,activeFile:r,onSelectFile:i,onContextMenu:s,inlineInput:c,onDragStart:u},$.fullPath))]})]})}),sI=d.memo(function({files:e,activeFile:n,onSelectFile:r,onCreateFile:i,onCreateFolder:l,onDeleteFile:s,onRenameFile:c,onDuplicateFile:u,onMoveFile:h,onImportFiles:g}){const O=d.useMemo(()=>nI(e),[e]),x=d.useMemo(()=>OM(O.children),[O]),[y,v]=d.useState(null),[w,A]=d.useState(null),[k,C]=d.useState(null),[T,$]=d.useState(null),M=d.useRef(null),j=!!(i||l||s||c||u),E=d.useCallback((P,Z,X)=>{j&&(P.preventDefault(),v({x:P.clientX,y:P.clientY,targetPath:Z,targetIsFolder:X}))},[j]),N=d.useCallback(()=>v(null),[]),R=d.useCallback(P=>{A({parentPath:P,mode:"new-file",onCommit:Z=>{const X=P?`${P}/${Z}`:Z;i==null||i(X),A(null)},onCancel:()=>A(null)})},[i]),L=d.useCallback(P=>{A({parentPath:P,mode:"new-folder",onCommit:Z=>{const X=P?`${P}/${Z}`:Z;l==null||l(X),A(null)},onCancel:()=>A(null)})},[l]),V=d.useCallback(P=>{const Z=P.includes("/")?P.slice(P.lastIndexOf("/")+1):P,X=P.includes("/")?P.slice(0,P.lastIndexOf("/")):"";A({parentPath:X,mode:"rename",originalPath:P,originalName:Z,onCommit:Y=>{if(Y!==Z){const J=X?`${X}/${Y}`:Y;c==null||c(P,J)}A(null)},onCancel:()=>A(null)})},[c]),z=d.useCallback(P=>{u==null||u(P)},[u]),q=d.useCallback(P=>{C(P)},[]),U=d.useCallback(()=>{k&&(s==null||s(k),C(null))},[k,s]),K=d.useCallback(()=>{C(null)},[]),D=d.useCallback((P,Z)=>{M.current=Z,P.dataTransfer.effectAllowed="move",P.dataTransfer.setData("text/plain",Z)},[]),G=d.useCallback((P,Z)=>{$(Z)},[]),H=d.useCallback((P,Z)=>{if(P.dataTransfer.files.length>0&&!M.current){P.preventDefault(),g==null||g(P.dataTransfer.files,Z||void 0),$(null);return}const X=M.current;if(!X||!h){$(null);return}const Y=X.includes("/")?X.slice(X.lastIndexOf("/")+1):X,J=Z?`${Z}/${Y}`:Y;J!==X&&!Z.startsWith(X+"/")&&h(X,J),$(null),M.current=null},[h,g]),F=d.useCallback(()=>{$(null)},[]),I=d.useCallback(P=>{j&&P.target===P.currentTarget&&(P.preventDefault(),v({x:P.clientX,y:P.clientY,targetPath:"",targetIsFolder:!0}))},[j]);return m.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[j&&m.jsxs("div",{className:"flex items-center justify-between px-2.5 py-1.5 border-b border-neutral-800/50 flex-shrink-0",children:[m.jsx("span",{className:"text-[10px] font-semibold tracking-wider text-neutral-600 uppercase",children:"Files"}),m.jsxs("div",{className:"flex items-center gap-0.5",children:[m.jsx("button",{onClick:()=>R(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New File",children:m.jsx(Y7,{size:12,weight:"bold"})}),m.jsx("button",{onClick:()=>L(""),className:"p-0.5 rounded hover:bg-neutral-800 text-neutral-600 hover:text-neutral-400 transition-colors",title:"New Folder",children:m.jsx(R7,{size:12,weight:"duotone"})})]})]}),m.jsxs("div",{className:`flex-1 overflow-y-auto py-1 transition-colors ${T===""?"bg-[#3CE6AC]/5 outline outline-1 outline-[#3CE6AC]/30 -outline-offset-1":""}`,onContextMenu:I,onDragOver:P=>{P.preventDefault(),P.target===P.currentTarget&&$("")},onDragLeave:P=>{P.target===P.currentTarget&&$(null)},onDrop:P=>{P.preventDefault(),H(P,"")},children:[w&&(w.mode==="new-file"||w.mode==="new-folder")&&w.parentPath===""&&m.jsx(Od,{defaultValue:"",depth:0,isFolder:w.mode==="new-folder",onCommit:P=>{var Z;return(Z=w.onCommit)==null?void 0:Z.call(w,P)},onCancel:()=>{var P;return(P=w.onCancel)==null?void 0:P.call(w)}}),x.map(P=>P.isFile&&P.children.size===0?m.jsx(o8,{node:P,depth:0,activeFile:n,onSelectFile:r,onContextMenu:E,inlineInput:w,onDragStart:D},P.fullPath):m.jsx(lI,{node:P,depth:0,activeFile:n,onSelectFile:r,defaultOpen:Z6(P,n),onContextMenu:E,inlineInput:w,onDragStart:D,onDragOver:G,onDrop:H,onDragLeave:F,dragOverFolder:T},P.fullPath))]}),k&&m.jsx("div",{className:"border-t border-neutral-800/50 flex-shrink-0",children:m.jsx(aI,{name:k.includes("/")?k.slice(k.lastIndexOf("/")+1):k,onConfirm:U,onCancel:K})}),y&&m.jsx(iI,{state:y,onClose:N,onNewFile:R,onNewFolder:L,onRename:V,onDuplicate:z,onDelete:q})]})}),xM="hf-studio-sidebar-tab";function oI(){const t=localStorage.getItem(xM);return t==="assets"?"assets":t==="code"?"code":t==="blocks"?"blocks":"compositions"}const cI=d.memo(d.forwardRef(function({width:e=240,projectId:n,compositions:r,assets:i,activeComposition:l,onSelectComposition:s,onImportFiles:c,fileTree:u,editingFile:h,onSelectFile:g,onCreateFile:O,onCreateFolder:x,onDeleteFile:y,onRenameFile:v,onDuplicateFile:w,onMoveFile:A,codeChildren:k,onRenderComposition:C,isRendering:T,onLint:$,linting:M,onToggleCollapse:j,onAddBlock:E,onPreviewBlock:N,takeoverContent:R},L){const[V,z]=d.useState(oI),q=d.useRef(V);q.current=V;const U=d.useCallback(D=>{z(D),localStorage.setItem(xM,D),_t("tab_switch",{panel:"left_sidebar",tab:D})},[]),K=d.useCallback(()=>q.current,[]);return d.useImperativeHandle(L,()=>({selectTab:U,getTab:K}),[U,K]),m.jsx("div",{className:"flex flex-col h-full bg-neutral-950 border-r border-neutral-800/50",style:{width:e},children:R?m.jsx("div",{className:"flex min-h-0 flex-1",children:R}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"border-b border-neutral-800/50 px-3 py-3 flex-shrink-0",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("div",{className:"grid min-w-0 flex-1 gap-0.5 rounded-[18px] bg-neutral-900 p-1 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)]",style:{gridTemplateColumns:pp?"1fr 1fr 1fr 1fr":"1fr 1fr 1fr"},children:[m.jsx(Yt,{label:"Source code editor",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>U("code"),className:`rounded-[14px] px-1.5 py-2 text-[10px] font-semibold truncate transition-all ${V==="code"?"bg-neutral-800 text-white":"text-neutral-500 hover:text-neutral-200"}`,children:"Code"})}),m.jsx(Yt,{label:"Compositions and sub-compositions",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>U("compositions"),className:`rounded-[14px] px-1.5 py-2 text-[10px] font-semibold truncate transition-all ${V==="compositions"?"bg-neutral-800 text-white":"text-neutral-500 hover:text-neutral-200"}`,children:"Comps"})}),m.jsx(Yt,{label:"Videos, images, audio, fonts",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>U("assets"),className:`rounded-[14px] px-1.5 py-2 text-[10px] font-semibold truncate transition-all ${V==="assets"?"bg-neutral-800 text-white":"text-neutral-500 hover:text-neutral-200"}`,children:"Assets"})}),pp&&m.jsx(Yt,{label:"Browse blocks and components",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>U("blocks"),className:`rounded-[14px] px-1.5 py-2 text-[10px] font-semibold truncate transition-all ${V==="blocks"?"bg-neutral-800 text-white":"text-neutral-500 hover:text-neutral-200"}`,children:"Catalog"})})]}),j&&m.jsx("button",{type:"button",onClick:j,className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md border border-transparent text-neutral-500 transition-colors hover:border-neutral-800 hover:bg-neutral-900 hover:text-neutral-300",title:"Hide sidebar","aria-label":"Hide sidebar",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"m14 7-5 5 5 5"}),m.jsx("path",{d:"M19 4v16"})]})})]})}),V==="compositions"&&m.jsx(FY,{projectId:n,compositions:r,activeComposition:l,onSelect:s,onRenderComposition:C,isRendering:T}),V==="assets"&&m.jsx(IY,{projectId:n,assets:i,onImport:c,onDelete:y,onRename:v}),V==="code"&&m.jsxs("div",{className:"flex flex-1 min-h-0",children:[((u==null?void 0:u.length)??0)>0&&m.jsx("div",{className:"w-[160px] flex-shrink-0 border-r border-neutral-800 overflow-y-auto",children:m.jsx(sI,{files:u??[],activeFile:(h==null?void 0:h.path)??null,onSelectFile:g??(()=>{}),onCreateFile:O,onCreateFolder:x,onDeleteFile:y,onRenameFile:v,onDuplicateFile:w,onMoveFile:A,onImportFiles:c})}),m.jsx("div",{className:"flex-1 overflow-hidden min-w-0",children:k??m.jsx("div",{className:"flex items-center justify-center h-full text-neutral-600 text-sm",children:"Select a file to edit"})})]}),pp&&V==="blocks"&&m.jsx(WY,{onAddBlock:E,onPreviewBlock:N}),$&&m.jsx("div",{className:"border-t border-neutral-800 p-2 flex-shrink-0",children:m.jsxs("button",{onClick:$,disabled:M,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:[m.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("path",{d:"M9 11l3 3L22 4"}),m.jsx("path",{d:"M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"})]}),M?"Linting…":"Lint"]})})]})})}));function uI({projectId:t,filePath:e}){const n=`/api/projects/${t}/preview/${e}`,r=e.split("/").pop()??e;return uu.test(e)?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[m.jsx("img",{src:n,alt:r,className:"max-w-full max-h-[70%] object-contain rounded border border-neutral-800"}),m.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):w8.test(e)?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950",children:[m.jsx("video",{src:n,controls:!0,className:"max-w-full max-h-[70%] rounded border border-neutral-800"}),m.jsx("span",{className:"mt-3 text-[11px] text-neutral-500 font-mono",children:e})]}):k8.test(e)?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-3",children:[m.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[m.jsx("path",{d:"M9 18V5l12-2v13",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"6",cy:"18",r:"3"}),m.jsx("circle",{cx:"18",cy:"16",r:"3"})]}),m.jsx("audio",{src:n,controls:!0,className:"w-full max-w-[280px]"}),m.jsx("span",{className:"text-[11px] text-neutral-500 font-mono",children:e})]}):m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 bg-neutral-950 gap-2",children:[m.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-600",children:[m.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("polyline",{points:"14 2 14 8 20 8",strokeLinecap:"round",strokeLinejoin:"round"})]}),m.jsx("span",{className:"text-sm text-neutral-400 font-medium",children:r}),m.jsx("span",{className:"text-[11px] text-neutral-600 font-mono",children:e}),m.jsx("span",{className:"text-[10px] text-neutral-600",children:"Binary file — preview not available"})]})}const yM=d.createContext(null);function bM(){const t=d.useContext(yM);if(!t)throw new Error("useFileManagerContext must be used within FileManagerProvider");return t}function fI({value:{editingFile:t,setEditingFile:e,projectDir:n,fileTree:r,fileTreeLoaded:i,setFileTree:l,editingPathRef:s,projectIdRef:c,saveRafRef:u,importedFontAssetsRef:h,readProjectFile:g,writeProjectFile:O,readOptionalProjectFile:x,revealSourceOffset:y,openSourceForSelection:v,handleFileSelect:w,handleContentChange:A,refreshFileTree:k,uploadProjectFiles:C,handleCreateFile:T,handleCreateFolder:$,handleDeleteFile:M,handleRenameFile:j,handleDuplicateFile:E,handleMoveFile:N,handleImportFiles:R,handleImportFonts:L,compositions:V,assets:z,fontAssets:q},children:U}){const K=d.useMemo(()=>({editingFile:t,setEditingFile:e,projectDir:n,fileTree:r,fileTreeLoaded:i,setFileTree:l,editingPathRef:s,projectIdRef:c,saveRafRef:u,importedFontAssetsRef:h,readProjectFile:g,writeProjectFile:O,readOptionalProjectFile:x,revealSourceOffset:y,openSourceForSelection:v,handleFileSelect:w,handleContentChange:A,refreshFileTree:k,uploadProjectFiles:C,handleCreateFile:T,handleCreateFolder:$,handleDeleteFile:M,handleRenameFile:j,handleDuplicateFile:E,handleMoveFile:N,handleImportFiles:R,handleImportFonts:L,compositions:V,assets:z,fontAssets:q}),[t,e,n,r,i,l,s,c,u,h,g,O,x,y,v,w,A,k,C,T,$,M,j,E,N,R,L,V,z,q]);return m.jsx(yM,{value:K,children:U})}const vM="hf-studio-render-settings";function SM(){try{const t=localStorage.getItem(vM);if(t){const e=JSON.parse(t);return{format:["mp4","webm","mov"].includes(e.format)?e.format:"mp4",quality:["draft","standard","high"].includes(e.quality)?e.quality:"standard",fps:[24,30,60].includes(e.fps)?e.fps:30}}}catch{}return{format:"mp4",quality:"standard",fps:30}}function f2(t,e,n){try{localStorage.setItem(vM,JSON.stringify({format:t,quality:e,fps:n}))}catch{}}function dI({leftSidebarRef:t,onSelectComposition:e,onAddBlock:n,onPreviewBlock:r,onLint:i,linting:l}){const{leftCollapsed:s,leftWidth:c,toggleLeftSidebar:u,handlePanelResizeStart:h,handlePanelResizeMove:g,handlePanelResizeEnd:O}=I8(),{projectId:x,renderQueue:y,waitForPendingDomEditSaves:v}=No(),{compositions:w,assets:A,editingFile:k,fileTree:C,revealSourceOffset:T,handleFileSelect:$,handleCreateFile:M,handleCreateFolder:j,handleDeleteFile:E,handleRenameFile:N,handleDuplicateFile:R,handleMoveFile:L,handleImportFiles:V,handleContentChange:z}=bM(),q=d.useCallback(async U=>{await v();const{format:K,quality:D,fps:G}=SM();await y.startRender({composition:U,format:K,quality:D,fps:G})},[y,v]);return s?m.jsx("div",{className:"flex w-10 flex-shrink-0 flex-col items-center border-r border-neutral-800/50 bg-neutral-950 pt-1",children:m.jsx("button",{type:"button",onClick:u,className:"flex h-8 w-8 items-center justify-center rounded-md border border-transparent text-neutral-500 transition-colors hover:border-neutral-800 hover:bg-neutral-900 hover:text-neutral-300",title:"Show sidebar","aria-label":"Show sidebar",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M5 4v16"}),m.jsx("path",{d:"m10 7 5 5-5 5"})]})})}):m.jsxs(m.Fragment,{children:[m.jsx(cI,{ref:t,width:c,projectId:x,compositions:w,assets:A,activeComposition:(k==null?void 0:k.path)??null,onSelectComposition:e,fileTree:C,editingFile:k,onSelectFile:$,onCreateFile:M,onCreateFolder:j,onDeleteFile:E,onRenameFile:N,onDuplicateFile:R,onMoveFile:L,onImportFiles:V,codeChildren:k?IS(k.path)?m.jsx(uI,{projectId:x,filePath:k.path}):m.jsx(VY,{content:k.content??"",filePath:k.path,onChange:z,revealOffset:T}):void 0,onRenderComposition:q,isRendering:y.isRendering,onLint:i,linting:l,onToggleCollapse:u,onAddBlock:n,onPreviewBlock:r}),m.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:U=>h("left",U),onPointerMove:g,onPointerUp:O,children:m.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})})]})}const hI=25,mI=400,pI='[data-preview-pan-surface="true"]',xd=48,c8={zoomPercent:100,panX:0,panY:0},gI=.007,wv=10;function nl(t){return Math.round(t*1e4)/1e4}function oa(t){return Number.isFinite(t)?Math.min(mI,Math.max(hI,t)):100}function OI(t){return t===1}function d2(t,e){return t instanceof Element?e!=null&&e.contains(t)?!0:!!t.closest(pI):!1}function xI(t,e){if(!Number.isFinite(t))return oa(e);const r=-(Math.abs(t)>wv?wv*Math.sign(t):t)*gI,i=oa(e);return oa(i*Math.exp(r))}function wM(t){const e=oa(t.zoomPercent)/100,n=t.contentWidth??t.viewportWidth,r=t.contentHeight??t.viewportHeight,i=Math.max(0,(n*e-t.viewportWidth)/2)+xd,l=Math.max(0,(r*e-t.viewportHeight)/2)+xd;return{panX:Math.min(i,Math.max(-i,t.panX)),panY:Math.min(l,Math.max(-l,t.panY))}}function yI(t,e,n,r,i,l,s){const c=oa(n)/100,u=Math.abs(l*c-r)/2+xd,h=Math.abs(s*c-i)/2+xd;return{panX:Math.min(u,Math.max(-u,t)),panY:Math.min(h,Math.max(-h,e))}}function bI(t){const e=oa(t.state.zoomPercent),n=xI(t.deltaY,e),r=e/100,i=n/100;let l=t.state.panX,s=t.state.panY;if(t.cursorX!==void 0&&t.cursorY!==void 0){const g=i/r;l=t.cursorX*(1-g)+l*g,s=t.cursorY*(1-g)+s*g}const c=t.contentWidth??t.viewportWidth,u=t.contentHeight??t.viewportHeight,h=yI(l,s,n,t.viewportWidth,t.viewportHeight,c,u);return{zoomPercent:n,...h}}function vI(t){const e=wM({panX:t.state.panX-t.deltaX,panY:t.state.panY-t.deltaY,zoomPercent:t.state.zoomPercent,viewportWidth:t.viewportWidth,viewportHeight:t.viewportHeight,contentWidth:t.contentWidth,contentHeight:t.contentHeight});return{zoomPercent:oa(t.state.zoomPercent),...e}}function SI({projectId:t,directUrl:e}){return e??t}const wI=1200,kI=200,kv=16;function h2(t){return Math.abs(t.zoomPercent-100)<.5&&Math.abs(t.panX)<.1&&Math.abs(t.panY)<.1}function AI(){const t=ul().previewZoom;return t?{zoomPercent:oa(t.zoomPercent),panX:t.panX,panY:t.panY}:c8}function MI(t){try{const e=t==null?void 0:t.contentDocument,n=(e==null?void 0:e.querySelector("[data-composition-id][data-width][data-height]"))??(e==null?void 0:e.querySelector("[data-width][data-height]"));if(!n)return null;const r=Number.parseInt(n.getAttribute("data-width")??"",10),i=Number.parseInt(n.getAttribute("data-height")??"",10);return!Number.isFinite(r)||r<=0||!Number.isFinite(i)||i<=0?null:{width:r,height:i}}catch{return null}}function Av(t,e,n,r){const i=Math.max(0,t-kv),l=Math.max(0,e-kv),s=n&&n.width>0&&n.height>0?n.width/n.height:r?9/16:16/9;if(i===0||l===0)return{width:0,height:0};let c=i,u=c/s;return u>l&&(u=l,c=u*s),{width:nl(c),height:nl(u)}}const CI=d.memo(function({projectId:e,iframeRef:n,onIframeLoad:r,onCompositionLoadingChange:i,portrait:l,directUrl:s,suppressLoadingOverlay:c,onStageRef:u}){const h=SI({projectId:e,directUrl:s}),g=d.useRef(null),O=d.useRef(null),x=d.useRef(null);d.useEffect(()=>{u==null||u(O)},[u]);const[y,v]=d.useState(null),[w,A]=d.useState(()=>Av(0,0,null,l)),k=d.useRef(AI()),[C,T]=d.useState(()=>k.current),$=d.useRef(null),M=d.useRef(null),j=d.useRef(null),E=d.useRef(!1),N=d.useRef(null);d.useEffect(()=>()=>{j.current&&clearTimeout(j.current),M.current&&clearTimeout(M.current)},[]),d.useEffect(()=>{const H=g.current;if(!H)return;const F=()=>{const P=H.getBoundingClientRect();A(Av(P.width,P.height,y,l))};F();const I=new ResizeObserver(F);return I.observe(H),()=>I.disconnect()},[y,l]);const R=d.useCallback(()=>{const H=MI(x.current);v(F=>(F==null?void 0:F.width)===(H==null?void 0:H.width)&&(F==null?void 0:F.height)===(H==null?void 0:H.height)?F:H)},[]),L=d.useCallback(H=>{x.current=H,n.current=H},[n]),V=d.useRef(w);V.current=w;const z=d.useCallback(H=>{const F=O.current;if(!F)return;const I=nl(H.zoomPercent/100),P=nl(H.panX),Z=nl(H.panY);F.style.transform=`translate3d(${P}px, ${Z}px, 0) scale(${I})`},[]),q=d.useCallback((H,F)=>{const I={zoomPercent:oa(H.zoomPercent),panX:Number.isFinite(H.panX)?H.panX:0,panY:Number.isFinite(H.panY)?H.panY:0};if(k.current=I,F&&!E.current){E.current=!0;const P=$.current;P&&(P.style.opacity="1")}z(I),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{E.current=!1;const P=k.current;if(ho({previewZoom:P}),T(Z=>Z.zoomPercent===P.zoomPercent&&Z.panX===P.panX&&Z.panY===P.panY?Z:P),F){const Z=$.current;Z&&(Z.textContent=h2(P)?"Fit":`${Math.round(P.zoomPercent)}%`,M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{$.current&&($.current.style.opacity="0")},wI))}},kI)},[z]),U=d.useCallback(H=>q(H,!0),[q]),K=d.useCallback(H=>q(H,!1),[q]),D=d.useCallback(()=>{const H=k.current;(Math.abs(H.zoomPercent-100)>.5||Math.abs(H.panX)>.1||Math.abs(H.panY)>.1)&&z(H)},[z]);d.useEffect(()=>{const H=g.current;if(!H)return;const F=I=>{const P=H.getBoundingClientRect();if(I.clientX<P.left||I.clientX>P.right||I.clientY<P.top||I.clientY>P.bottom)return;if(I.ctrlKey||I.metaKey){I.preventDefault(),I.stopPropagation();const J=V.current,ne=I.clientX-(P.left+P.width/2),B=I.clientY-(P.top+P.height/2),re=bI({state:k.current,deltaY:I.deltaY,viewportWidth:P.width,viewportHeight:P.height,contentWidth:J.width,contentHeight:J.height,cursorX:ne,cursorY:B});U(re);return}if(!d2(I.target,O.current))return;I.preventDefault(),I.stopPropagation();const X=V.current,Y=vI({state:k.current,deltaX:I.deltaX,deltaY:I.deltaY,viewportWidth:P.width,viewportHeight:P.height,contentWidth:X.width,contentHeight:X.height});K(Y)};return document.addEventListener("wheel",F,{passive:!1,capture:!0}),()=>document.removeEventListener("wheel",F,{capture:!0})},[U,K]),d.useEffect(()=>{const H=g.current;if(!H)return;const F=I=>{if(h2(k.current))return;const P=H.getBoundingClientRect();I.clientX<P.left||I.clientX>P.right||I.clientY<P.top||I.clientY>P.bottom||U(c8)};return document.addEventListener("dblclick",F,{capture:!0}),()=>document.removeEventListener("dblclick",F,{capture:!0})},[U]),d.useEffect(()=>{const H=(X,Y)=>{const J=g.current;if(!J)return null;const ne=J.getBoundingClientRect();return X<ne.left||X>ne.right||Y<ne.top||Y>ne.bottom?null:ne},F=X=>{H(X.clientX,X.clientY)&&d2(X.target,O.current)&&OI(X.button)&&(X.preventDefault(),N.current={pointerId:X.pointerId,startX:X.clientX,startY:X.clientY,originX:k.current.panX,originY:k.current.panY})},I=X=>{const Y=N.current,J=g.current;if(!Y||!J||Y.pointerId!==X.pointerId)return;X.preventDefault();const ne=J.getBoundingClientRect(),B=V.current,re=wM({panX:Y.originX+X.clientX-Y.startX,panY:Y.originY+X.clientY-Y.startY,zoomPercent:k.current.zoomPercent,viewportWidth:ne.width,viewportHeight:ne.height,contentWidth:B.width,contentHeight:B.height});K({...k.current,...re})},P=X=>{var Y;((Y=N.current)==null?void 0:Y.pointerId)===X.pointerId&&(N.current=null)},Z=X=>{X.button===1&&H(X.clientX,X.clientY)&&d2(X.target,O.current)&&X.preventDefault()};return document.addEventListener("pointerdown",F,{capture:!0}),document.addEventListener("pointermove",I,{capture:!0}),document.addEventListener("pointerup",P,{capture:!0}),document.addEventListener("pointercancel",P,{capture:!0}),document.addEventListener("auxclick",Z,{capture:!0}),()=>{document.removeEventListener("pointerdown",F,{capture:!0}),document.removeEventListener("pointermove",I,{capture:!0}),document.removeEventListener("pointerup",P,{capture:!0}),document.removeEventListener("pointercancel",P,{capture:!0}),document.removeEventListener("auxclick",Z,{capture:!0})}},[K]);const G=k.current;return m.jsx("div",{className:"flex flex-col h-full min-h-0",children:m.jsxs("div",{ref:g,className:"relative flex-1 flex items-center justify-center p-2 overflow-hidden min-h-0 outline-none focus:ring-1 focus:ring-studio-accent/40 bg-neutral-700",tabIndex:0,"aria-label":"Composition preview",children:[m.jsx("div",{className:"absolute inset-2 flex items-center justify-center pointer-events-none",children:m.jsxs("div",{ref:O,className:"relative shrink-0 pointer-events-auto",style:{width:`${w.width}px`,height:`${w.height}px`,transform:`translate3d(${nl(G.panX)}px, ${nl(G.panY)}px, 0) scale(${nl(G.zoomPercent/100)})`,transformOrigin:"center center"},"data-testid":"preview-zoom-stage",children:[(s==null?void 0:s.includes("/components/"))&&m.jsx(_2,{projectId:e,onLoad:()=>{},portrait:l,suppressLoadingOverlay:!0,style:{position:"absolute",inset:0,zIndex:0}},`backdrop-${e}`),m.jsx(_2,{ref:L,projectId:s?void 0:e,directUrl:s,onLoad:()=>{R(),r(),D()},onCompositionLoadingChange:i,portrait:l,suppressLoadingOverlay:c,style:s!=null&&s.includes("/components/")?{position:"absolute",inset:0,zIndex:1}:void 0},h)]})}),m.jsx("div",{ref:$,className:"pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50 rounded-lg px-4 py-2 text-sm font-mono tabular-nums text-white/90 bg-black/60 backdrop-blur-sm shadow-lg",style:{opacity:0,transition:"opacity 300ms ease-out"},"aria-live":"polite"}),!h2(C)&&m.jsxs("button",{type:"button",className:"absolute bottom-3 right-3 z-50 rounded-md px-2.5 py-1 text-xs font-medium text-white/80 bg-black/50 backdrop-blur-sm hover:bg-black/70 hover:text-white transition-colors",onClick:()=>U(c8),"aria-label":"Reset zoom to fit","data-testid":"preview-reset-zoom",children:[Math.round(C.zoomPercent),"% — Reset"]})]})})});function EI({stack:t,onNavigate:e}){return t.length<=1?null:m.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:[m.jsx("button",{type:"button",onClick:()=>{var n;_t("navigation",{action:"back",target:(n=t[t.length-2])==null?void 0:n.label}),e(t.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:m.jsx(kQ,{size:12,weight:"bold"})}),t.map((n,r)=>{const i=r===t.length-1;return m.jsxs("span",{className:"flex items-center gap-1",children:[r>0&&m.jsx(u7,{size:10,className:"text-neutral-600 flex-shrink-0"}),i?m.jsx("span",{className:"text-xs text-neutral-200 font-medium",children:n.label}):m.jsx("button",{type:"button",onClick:()=>{_t("navigation",{action:"breadcrumb",target:n.label}),e(r)},className:"text-xs text-neutral-500 hover:text-neutral-200 transition-colors",children:n.label})]},n.id)})]})}function TI(t){try{const e=JSON.parse(t);return e.name?e:null}catch{return null}}function $I(t,e,n,r){if(n.width===0||n.height===0)return null;const i=(t-n.left)/n.width,l=(e-n.top)/n.height,s=r?1080:1920,c=r?1920:1080;return{left:Math.max(0,Math.min(i*s,s)),top:Math.max(0,Math.min(l*c,c))}}function jI(t,e){var i,l;const n=((i=e.dimensions)==null?void 0:i.width)??0,r=((l=e.dimensions)==null?void 0:l.height)??0;return{left:Math.max(0,t.left-n/2),top:Math.max(0,t.top-r/2)}}function PI({portrait:t,stageRef:e,onBlockDrop:n}){const[r,i]=d.useState(!1),l=d.useCallback(u=>{n&&u.dataTransfer.types.includes(Zf)&&(u.preventDefault(),u.dataTransfer.dropEffect="copy",i(!0))},[n]),s=d.useCallback(()=>{i(!1)},[]),c=d.useCallback(u=>{if(i(!1),!n)return;const h=u.dataTransfer.getData(Zf);if(!h)return;u.preventDefault();const g=TI(h),O=e.current;if(!g||!O)return;const x=$I(u.clientX,u.clientY,O.getBoundingClientRect(),t);x&&n(g.name,jI(x,g))},[n,e,t]);return{isDragOver:r,handleDragOver:l,handleDragLeave:s,handleDrop:c}}function QI({projectId:t,activeCompositionPath:e,onCompositionChange:n}){const[r,i]=d.useState([{id:"master",label:"Master",previewUrl:`/api/projects/${t}/preview`}]),l=d.useRef(n);l.current=n;const s=d.useCallback(y=>{i(v=>{var k;const w=typeof y=="function"?y(v):y,A=(k=w[w.length-1])==null?void 0:k.id;return queueMicrotask(()=>{var C;return(C=l.current)==null?void 0:C.call(l,A==="master"?null:A)}),w})},[]),c=d.useRef(0),[u,h]=d.useState(new Map),g=d.useRef(u);g.current=u;const O=d.useCallback(y=>{y===0&&c.current>0&&fe.getState().setCurrentTime(c.current),fe.getState().setElements([]),s(v=>v.slice(0,y+1))},[]),x=d.useCallback(y=>{if(!y.compositionSrc)return;c.current=fe.getState().currentTime;const v=y.id;let w=g.current.get(v);if(!w){const A=y.compositionSrc,k=A.match(/compositions\/.*\.html/);w=k?k[0]:A}fe.getState().setElements([]),s(A=>{var $;if(A[A.length-1].id===w&&A.length>1)return A.slice(0,-1);const C=(($=w.split("/").pop())==null?void 0:$.replace(/\.html$/,""))||w,T=`/api/projects/${t}/preview/comp/${w}`;return[...A,{id:w,label:C,previewUrl:T}]})},[t]);return d.useEffect(()=>{if(e==="index.html")fe.getState().setElements([]),s(y=>y.length>1?[y[0]]:y);else if(e&&e.startsWith("compositions/")){const y=e.replace(/^compositions\//,"").replace(/\.html$/,""),v=`/api/projects/${t}/preview/comp/${e}`;fe.getState().setElements([]),s(w=>{var A;return((A=w[w.length-1])==null?void 0:A.id)===e?w:[{id:"master",label:"Master",previewUrl:`/api/projects/${t}/preview`},{id:e,label:y,previewUrl:v}]})}else e||fe.getState().setElements([])},[e,t,s]),{compositionStack:r,updateCompositionStack:s,handleNavigateComposition:O,handleDrillDown:x,masterSeekRef:c,compIdToSrc:u,setCompIdToSrc:h}}const ZI=100,NI=220,RI=120;function VI(t){return document.addEventListener("fullscreenchange",t),()=>document.removeEventListener("fullscreenchange",t)}function _I(){return document.fullscreenElement}const LI=d.memo(function({projectId:e,portrait:n,previewOverlay:r,timelineToolbar:i,timelineFooter:l,refreshKey:s,activeCompositionPath:c,onIframeRef:u,onCompositionChange:h,renderClipContent:g,onFileDrop:O,onDeleteElement:x,onAssetDrop:y,onBlockDrop:v,onPreviewBlockDrop:w,onMoveElement:A,onResizeElement:k,onBlockedEditAttempt:C,onSplitElement:T,onSelectTimelineElement:$,onDeleteKeyframe:M,onDeleteAllKeyframes:j,onChangeKeyframeEase:E,onMoveKeyframe:N,onToggleKeyframeAtPlayhead:R,onCompIdToSrcChange:L,timelineVisible:V,onToggleTimeline:z,onCompositionLoadingChange:q}){const{iframeRef:U,togglePlay:K,seek:D,onIframeLoad:G,refreshPlayer:H}=kP(),F=d.useRef(e);F.current!==e&&(F.current=e,fe.getState().reset());const I=d.useRef(null),P=d.useCallback(Ze=>{I.current=Ze.current},[]),{isDragOver:Z,handleDragOver:X,handleDragLeave:Y,handleDrop:J}=PI({portrait:n,stageRef:I,onBlockDrop:w}),ne=d.useRef(s);d.useEffect(()=>{s!==ne.current&&(ne.current=s,H())},[s,H]);const B=d.useCallback(()=>{G(),u==null||u(U.current)},[G,U,u]),{compositionStack:re,updateCompositionStack:ae,handleNavigateComposition:ue,handleDrillDown:me,compIdToSrc:ye,setCompIdToSrc:Oe}=QI({projectId:e,activeCompositionPath:c,onCompositionChange:h}),Se=U,Ae=d.useCallback(Ze=>{var lt;if(!Ze.compositionSrc)return;const Be=Ze.id;let vt=ye.get(Be);if(!vt)try{const Je=(lt=Se.current)==null?void 0:lt.contentDocument;if(Je){const mt=Je.querySelector(`[data-composition-id="${Be}"][data-composition-src]`);mt&&(vt=mt.getAttribute("data-composition-src")||void 0)}}catch{}me({id:Be,compositionSrc:vt??Ze.compositionSrc})},[ye,me,Se]),Me=d.useRef(ye);Me.current=ye,Xt(()=>{fetch(`/api/projects/${e}/files/index.html`).then(Ze=>Ze.json()).then(Ze=>{const Be=Ze.content||"",vt=new Map,lt=/data-composition-id=["']([^"']+)["'][^>]*data-composition-src=["']([^"']+)["']|data-composition-src=["']([^"']+)["'][^>]*data-composition-id=["']([^"']+)["']/g;let Je;for(;(Je=lt.exec(Be))!==null;){const mt=Je[1]||Je[4],Tt=Je[2]||Je[3];mt&&Tt&&vt.set(mt,Tt)}Oe(vt),L==null||L(vt)}).catch(()=>{})}),d.useEffect(()=>{if(ye.size===0)return;const Ze=lt=>{const Je=Me.current;if(Je.size===0)return null;let mt=!1;const Tt=lt.map(cn=>{if(cn.compositionSrc)return cn;const Bn=Je.get(cn.id)??Je.get(cn.id.replace(/-(host|comp|layer)$/,""));return Bn?(mt=!0,{...cn,compositionSrc:Bn}):cn});return mt?Tt:null},Be=Ze(fe.getState().elements);Be&&fe.getState().setElements(Be);let vt=!1;return fe.subscribe((lt,Je)=>{if(vt||lt.elements===Je.elements||lt.elements.length===0||lt.elements.every(Tt=>Tt.compositionSrc))return;vt=!0;const mt=Ze(lt.elements);mt&&lt.setElements(mt),vt=!1})},[ye]);const[Ve,Pe]=d.useState(NI),ft=d.useRef(!1),[yt,_e]=d.useState(!0),Ye=d.useCallback(Ze=>{Ze||(ft.current=!0),!(Ze&&ft.current)&&_e(Ze)},[]),Le=yt;d.useEffect(()=>{q==null||q(yt)},[yt,q]);const be=d.useSyncExternalStore(VI,_I),dt=V??!0,Ue=d.useRef(!1),bt=d.useRef(null),Re=be===bt.current&&be!=null,on=d.useCallback(()=>{bt.current&&(document.fullscreenElement?document.exitFullscreen():bt.current.requestFullscreen())},[]),Rt=re[re.length-1],we=re.length>1?Rt.previewUrl:void 0,ht=d.useRef(u);ht.current=u,d.useEffect(()=>{var Ze;(Ze=ht.current)==null||Ze.call(ht,U.current)},[re.length,s,U]);const Mt=d.useCallback(Ze=>{Le||(Ze.preventDefault(),Ue.current=!0,Ze.target.setPointerCapture(Ze.pointerId))},[Le]),ot=d.useCallback(Ze=>{if(Le||!Ue.current||!bt.current)return;const Be=bt.current.getBoundingClientRect(),vt=Ze.clientY-Be.top,lt=Be.height,Je=Math.max(ZI,Math.min(lt-RI,lt-vt));Pe(Je)},[Le]),ve=d.useCallback(()=>{Ue.current=!1},[]),ze=d.useCallback(Ze=>{Ze.key==="Escape"&&re.length>1&&ae(Be=>Be.slice(0,-1))},[re.length]);return m.jsxs("div",{ref:bt,className:"flex flex-col h-full min-h-0 bg-neutral-950",onKeyDown:ze,tabIndex:-1,"data-studio-fullscreen-target":"",children:[m.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[m.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden","data-preview-pan-surface":"true",onDragOver:X,onDragLeave:Y,onDrop:J,children:[m.jsx(CI,{projectId:e,iframeRef:U,onIframeLoad:B,onCompositionLoadingChange:Ye,portrait:n,directUrl:we,suppressLoadingOverlay:ft.current,onStageRef:P}),Z&&m.jsx("div",{className:"absolute inset-2 z-40 rounded-lg border-2 border-dashed border-studio-accent/50 bg-studio-accent/[0.04] pointer-events-none"}),!Re&&r]}),m.jsxs("div",{className:"bg-neutral-950 border-t border-neutral-800/50 flex-shrink-0",children:[!Re&&re.length>1&&m.jsx(EI,{stack:re,onNavigate:ue}),m.jsx(Z$,{onTogglePlay:K,onSeek:D,disabled:Le,isFullscreen:Re,onToggleFullscreen:on})]})]}),!Re&&dt?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"group h-2 flex-shrink-0 cursor-row-resize flex items-center justify-center z-10",style:{touchAction:"none"},onPointerDown:Mt,onPointerMove:ot,onPointerUp:ve,children:m.jsx("div",{className:"h-px w-full bg-white/10 transition-colors group-hover:bg-white/16 group-active:bg-white/22"})}),m.jsxs("div",{className:"relative flex flex-col flex-shrink-0",style:{height:Ve},"aria-disabled":Le||void 0,children:[m.jsxs("div",{className:"flex flex-col flex-1 min-h-0 overflow-hidden bg-neutral-950",onDoubleClick:Ze=>{Ze.target.closest("[data-clip]")||Le||re.length>1&&ae(Be=>Be.slice(0,-1))},children:[m.jsx("div",{className:"flex-shrink-0",children:i}),m.jsx(nP,{onSeek:D,onDrillDown:Ae,renderClipContent:g,onFileDrop:O,onDeleteElement:x,onAssetDrop:y,onBlockDrop:v,onMoveElement:A,onResizeElement:k,onBlockedEditAttempt:C,onSplitElement:T,onSelectElement:$,onDeleteKeyframe:M,onDeleteAllKeyframes:j,onChangeKeyframeEase:E,onMoveKeyframe:N,onToggleKeyframeAtPlayhead:R})]}),l&&m.jsx("div",{className:"flex-shrink-0",children:l}),Le&&m.jsx("div",{className:"absolute inset-0 z-30 cursor-not-allowed bg-black/18","data-testid":"timeline-loading-disabled-overlay","aria-hidden":"true",onPointerDown:Ze=>Ze.preventDefault(),onDragOver:Ze=>Ze.preventDefault(),onDrop:Ze=>Ze.preventDefault()})]})]}):!Re&&z?m.jsx("div",{className:"flex-shrink-0 border-t border-neutral-800/50 bg-neutral-950/96",children:m.jsxs("div",{className:"flex h-10 items-center justify-between px-3",children:[m.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-500",children:"Timeline"}),m.jsxs("button",{type:"button",onClick:z,className:"flex h-7 items-center gap-1.5 rounded-md border border-neutral-800 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-700 hover:bg-neutral-900 hover:text-neutral-100",title:Vw(!1),"aria-label":"Show timeline editor",children:[m.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("rect",{x:"3",y:"13",width:"18",height:"8",rx:"1"}),m.jsx("path",{d:"M7 9h10"}),m.jsx("path",{d:"M8 5h8"})]}),m.jsx("span",{children:"Show"}),m.jsx("span",{className:"hidden rounded bg-white/5 px-1 py-0.5 font-mono text-[9px] text-neutral-500 sm:inline",children:Rw})]})]})}):null]})}),DI=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function HI(t){return t.metaKey||t.ctrlKey||t.altKey?!1:DI.has(t.key)}function XI(t,e,n){var y,v;let r=null,i=null;try{r=t.contentDocument,i=t.contentWindow}catch{return[]}if(!r||!i)return[];const l=t.getBoundingClientRect(),s=n.getBoundingClientRect(),c=parseFloat(t.style.width)||l.width,u=l.width/c,h=l.left-s.left,g=l.top-s.top,O=r.querySelectorAll(".caption-group"),x=[];for(let w=0;w<e.groupOrder.length;w++){const A=e.groupOrder[w],k=e.groups.get(A);if(!k)continue;const C=O[w];if(!C)continue;const T=i.getComputedStyle(C);if(parseFloat(T.opacity)<=.01||T.visibility==="hidden")continue;const $=[];for(const M of C.children){const j=M;if(j.dataset.captionWrapper==="true"){const E=j.querySelector(":scope > span");E&&$.push(E)}else j.tagName==="SPAN"&&$.push(j)}if($.length===0&&((y=C.textContent)!=null&&y.trim())){const M=C.childNodes[0];if(M&&M.nodeType===Node.TEXT_NODE){const j=(M.textContent||"").split(/\s+/).filter(Boolean),E=r.createDocumentFragment();for(const N of j){const R=r.createElement("span");R.textContent=N+" ",R.style.display="inline",E.appendChild(R),$.push(R)}C.replaceChild(E,M)}else{const j=C.querySelector(":scope > span");if(j&&((v=j.textContent)!=null&&v.trim())){const E=j.textContent.split(/\s+/).filter(Boolean),N=r.createDocumentFragment();for(const R of E){const L=r.createElement("span");L.textContent=R+" ",L.style.display="inline",N.appendChild(L),$.push(L)}j.replaceWith(N)}}}for(let M=0;M<k.segmentIds.length;M++){const j=k.segmentIds[M],E=$[M];if(!E)continue;const N=E.getBoundingClientRect();x.push({segmentId:j,groupId:A,groupIndex:w,wordIndex:M,x:N.left*u+h,y:N.top*u+g,width:N.width*u,height:N.height*u})}}return x}function tf(t,e,n){let r=null;try{r=t.contentDocument}catch{return null}if(!r)return null;const i=r.querySelectorAll(".caption-group")[e];if(!i)return null;const l=[];for(const s of i.children){const c=s;if(c.dataset.captionWrapper==="true"){const u=c.querySelector(":scope > span");u&&l.push(u)}else c.tagName==="SPAN"&&l.push(c)}return l[n]??null}function Yc(t,e){const n=e.gsap;if(n&&n.getProperty)return{x:n.getProperty(t,"x")||0,y:n.getProperty(t,"y")||0,scale:n.getProperty(t,"scale")||1,rotation:n.getProperty(t,"rotation")||0};const r=t.style.transform||"",i=r.match(/scale\(([^)]+)\)/),l=r.match(/rotate\(([^)]+)deg\)/),s=r.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);return{x:s?parseFloat(s[1]):0,y:s?parseFloat(s[2]):0,scale:i?parseFloat(i[1]):1,rotation:l?parseFloat(l[1]):0}}function eo(t){var i;if(t.dataset.captionWrapper==="true")return t;const e=t.parentElement;if(e&&e.dataset.captionWrapper==="true")return e;const r=t.ownerDocument.createElement("span");return r.style.display="inline-block",r.dataset.captionWrapper="true",(i=t.parentNode)==null||i.insertBefore(r,t),r.appendChild(t),r}function nf(t,e,n,r,i,l){const s=eo(t),c=e.gsap;c&&c.set?c.set(s,{x:n,y:r,scale:i,rotation:l}):s.style.transform=`translate(${n.toFixed(1)}px, ${r.toFixed(1)}px) rotate(${l.toFixed(1)}deg) scale(${i.toFixed(3)})`}function zI(t,e){const n=eo(t),{x:r,y:i,scale:l,rotation:s}=Yc(n,e),c={};return Math.abs(r)>.5&&(c.x=r),Math.abs(i)>.5&&(c.y=i),Math.abs(l-1)>.001&&(c.scaleX=l,c.scaleY=l),Math.abs(s)>.1&&(c.rotation=s),c}const lr=8,m2=20;function Mv(t,e,n){const r=zI(e,n);Object.keys(r).length>0&&Ot.getState().updateSegmentStyle(t,r)}const FI=d.memo(function({iframeRef:e}){const n=Ot($=>$.isEditMode),r=Ot($=>$.model),i=Ot($=>$.selectedSegmentIds),l=Ot($=>$.selectSegment),s=Ot($=>$.clearSelection),[c,u]=d.useState([]),h=d.useRef(null),g=d.useRef(r);g.current=r;const O=d.useRef(null);Xt(()=>{if(!n)return;let $=[];const M=()=>{const N=e.current,R=g.current,L=h.current;if(!N||!R||!L)return;const V=XI(N,R,L);V.length===$.length&&V.every((z,q)=>Math.abs(z.x-$[q].x)<.5&&Math.abs(z.y-$[q].y)<.5)||($=V,u(V))},j=setInterval(M,66);M();const E=N=>{const{selectedSegmentIds:R,model:L}=Ot.getState();if(R.size===0||!L)return;const V=N.key;if(!HI(N))return;N.preventDefault();const z=N.shiftKey?10:1,q=V==="ArrowLeft"?-z:V==="ArrowRight"?z:0,U=V==="ArrowUp"?-z:V==="ArrowDown"?z:0,K=e.current,D=K==null?void 0:K.contentWindow;if(!(!K||!D))for(const G of R)for(let H=0;H<L.groupOrder.length;H++){const F=L.groups.get(L.groupOrder[H]);if(!F)continue;const I=F.segmentIds.indexOf(G);if(I<0)continue;const P=tf(K,H,I);if(!P)continue;const Z=eo(P),X=Yc(Z,D);nf(P,D,X.x+q,X.y+U,X.scale,X.rotation),Mv(G,P,D);break}};return window.addEventListener("keydown",E),()=>{clearInterval(j),window.removeEventListener("keydown",E)}});const x=d.useCallback(()=>{const $=e.current;if(!$)return 1;const M=$.getBoundingClientRect(),j=parseFloat($.style.width)||M.width;return M.width/j},[e]),y=d.useCallback(($,M,j,E)=>{E.stopPropagation(),E.currentTarget.setPointerCapture(E.pointerId);const N=e.current;if(!N)return;const R=tf(N,$,M),L=N.contentWindow;if(!R||!L)return;const V=Yc(eo(R),L);O.current={type:"move",wordEl:R,segmentId:j,startMX:E.clientX,startMY:E.clientY,origTX:V.x,origTY:V.y,origScale:V.scale,origRotation:V.rotation}},[e]),v=d.useCallback(($,M,j,E)=>{var K;E.stopPropagation(),E.preventDefault(),E.currentTarget.setPointerCapture(E.pointerId);const N=e.current;if(!N)return;const R=tf(N,$,M),L=N.contentWindow;if(!R||!L)return;const V=R.getBoundingClientRect(),z=x(),q=V.left*z+(((K=e.current)==null?void 0:K.getBoundingClientRect().left)??0)+V.width*z/2,U=Yc(eo(R),L);O.current={type:"scale",wordEl:R,segmentId:j,startMX:E.clientX,startDxFromCenter:E.clientX-q,origTX:U.x,origTY:U.y,origScale:U.scale,origRotation:U.rotation}},[e,x]),w=d.useCallback(($,M)=>{M.stopPropagation(),M.preventDefault(),M.currentTarget.setPointerCapture(M.pointerId);const j=e.current;if(!j)return;const E=tf(j,$.groupIndex,$.wordIndex),N=j.contentWindow;if(!E||!N)return;const R=Yc(eo(E),N);O.current={type:"rotate",wordEl:E,segmentId:$.segmentId,startMX:M.clientX,origTX:R.x,origTY:R.y,origRotation:R.rotation,origScale:R.scale}},[e]),A=d.useCallback(()=>{var $;try{return(($=e.current)==null?void 0:$.contentWindow)??null}catch{return null}},[e]),k=d.useCallback($=>{const M=O.current;if(!M)return;const j=A();if(j){if(M.type==="move"){const E=x(),N=($.clientX-M.startMX)/E,R=($.clientY-M.startMY)/E;nf(M.wordEl,j,M.origTX+N,M.origTY+R,M.origScale,M.origRotation)}else if(M.type==="scale"){const E=M.startMX-M.startDxFromCenter,N=Math.abs(M.startDxFromCenter),R=Math.abs($.clientX-E),L=N>5?R/N:1,V=Math.max(.1,M.origScale*L);nf(M.wordEl,j,M.origTX,M.origTY,V,M.origRotation)}else if(M.type==="rotate"){const N=($.clientX-M.startMX)/200*90;nf(M.wordEl,j,M.origTX,M.origTY,M.origScale,M.origRotation+N)}}},[x,A]),C=d.useCallback(()=>{const $=O.current;if($){const M=A();M&&Mv($.segmentId,$.wordEl,M),O.current=null}},[A]),T=d.useCallback($=>{$.target===$.currentTarget&&s()},[s]);return n?m.jsx("div",{ref:h,className:"absolute inset-0 z-50",style:{pointerEvents:"auto"},onClick:T,onPointerMove:k,onPointerUp:C,onLostPointerCapture:C,children:c.map($=>{const M=i.has($.segmentId);return m.jsx("div",{className:["absolute",M?"ring-2 ring-studio-accent":"hover:ring-1 hover:ring-white/30"].join(" "),style:{left:$.x,top:$.y,width:$.width,height:$.height,cursor:M?"move":"pointer",touchAction:"none",borderRadius:2},onClick:j=>{j.stopPropagation(),l($.segmentId,j.shiftKey)},onPointerDown:j=>{M&&y($.groupIndex,$.wordIndex,$.segmentId,j)},children:M&&m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{position:"absolute",left:"50%",top:-m2-lr,marginLeft:-lr/2,width:lr,height:lr,borderRadius:"50%",backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",cursor:"grab",touchAction:"none"},onPointerDown:j=>w($,j)}),m.jsx("div",{style:{position:"absolute",left:"50%",top:-m2,width:1,height:m2,marginLeft:-.5,backgroundColor:"var(--hf-accent, #3CE6AC)",opacity:.5,pointerEvents:"none"}}),[{right:-lr/2,bottom:-lr/2,cursor:"nwse-resize"},{left:-lr/2,top:-lr/2,cursor:"nwse-resize"},{right:-lr/2,top:-lr/2,cursor:"nesw-resize"},{left:-lr/2,bottom:-lr/2,cursor:"nesw-resize"}].map((j,E)=>m.jsx("div",{style:{position:"absolute",...j,width:lr,height:lr,backgroundColor:"var(--hf-accent, #3CE6AC)",border:"1px solid rgba(0,0,0,0.5)",borderRadius:2,touchAction:"none"},onPointerDown:N=>v($.groupIndex,$.wordIndex,$.segmentId,N)},E))]})},$.segmentId)})}):null}),Cv=["#3CE6AC","#FF6B6B","#4ECDC4","#FFE66D","#A78BFA","#F472B6","#34D399","#FB923C","#60A5FA","#C084FC"],BI=d.memo(function({pixelsPerSecond:e,onSeek:n}){const r=Ot(w=>w.model),i=Ot(w=>w.selectedSegmentIds),l=Ot(w=>w.selectSegment),s=Ot(w=>w.updateSegmentTiming),c=Ot(w=>w.splitGroup),u=d.useRef(null),h=d.useCallback((w,A,k,C,T)=>{w.stopPropagation(),w.preventDefault(),w.target.setPointerCapture(w.pointerId),u.current={segId:A,edge:k,originalStart:C,originalEnd:T,startX:w.clientX}},[]),g=d.useCallback(w=>{const A=u.current;if(!A)return;const k=(w.clientX-A.startX)/e;if(A.edge==="start"){const C=Math.max(0,A.originalStart+k),T=Math.min(C,A.originalEnd-.05);s(A.segId,T,A.originalEnd)}else{const C=Math.max(A.originalStart+.05,A.originalEnd+k),T=Math.max(0,C);s(A.segId,A.originalStart,T)}},[e,s]),O=d.useCallback(()=>{u.current=null},[]),x=d.useCallback((w,A)=>{w.stopPropagation(),l(A,w.shiftKey)},[l]),y=d.useCallback((w,A,k)=>{w.stopPropagation(),c(A,k)},[c]),v=d.useCallback(w=>{if(!n)return;const A=w.currentTarget.getBoundingClientRect(),k=w.clientX-A.left-32,C=Math.max(0,k/e);n(C)},[n,e]);return r?m.jsx("div",{className:"relative select-none overflow-x-auto",style:{height:40,minWidth:"100%"},onPointerMove:g,onPointerUp:O,onPointerLeave:O,onClick:v,children:r.groupOrder.map((w,A)=>{const k=r.groups.get(w);if(!k)return null;const C=Cv[A%Cv.length];return k.segmentIds.map(T=>{const $=r.segments.get(T);if(!$)return null;const M=32+$.start*e,j=Math.max(($.end-$.start)*e,4),E=i.has(T);return m.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:M,width:j,backgroundColor:C,zIndex:E?10:1},onClick:N=>x(N,T),onDoubleClick:N=>y(N,w,T),children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:N=>h(N,T,"start",$.start,$.end)}),m.jsx("span",{className:"flex-1 truncate px-2 pointer-events-none",style:{fontSize:9,color:"#000000",lineHeight:1},children:$.text}),m.jsx("div",{className:"absolute right-0 top-0 bottom-0 cursor-col-resize z-20",style:{width:6},onPointerDown:N=>h(N,T,"end",$.start,$.end)})]},T)})})}):null});function kM(t){const e=t.ownerDocument.defaultView;if(!e)return!0;let n=t;for(;n;){const r=e.getComputedStyle(n);if(r.display==="none"||r.visibility==="hidden")return!1;const i=Number.parseFloat(r.opacity);if(Number.isFinite(i)&&i<=.01)return!1;n=n.parentElement}return!0}function rf(t){if(!t)return null;const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}function YI(t){let e=t;for(;e;){if(e.hasAttribute("data-composition-file")||e.hasAttribute("data-composition-src"))return e;e=e.parentElement}return null}function II(t){const e=t.rootScaleX>0?t.rootScaleX:1,n=t.rootScaleY>0?t.rootScaleY:1,r=t.sourceRectWidth&&t.sourceRectWidth>0&&t.sourceWidth&&t.sourceWidth>0?t.sourceRectWidth*e/t.sourceWidth:e,i=t.sourceRectHeight&&t.sourceRectHeight>0&&t.sourceHeight&&t.sourceHeight>0?t.sourceRectHeight*n/t.sourceHeight:n;return{scaleX:r>0?r:e,scaleY:i>0?i:n}}function uo(t,e,n){const r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),l=e.contentDocument,s=(l==null?void 0:l.querySelector("[data-composition-id]"))??(l==null?void 0:l.documentElement)??null,c=s==null?void 0:s.getBoundingClientRect(),u=rf((s==null?void 0:s.getAttribute("data-width"))??null),h=rf((s==null?void 0:s.getAttribute("data-height"))??null),g=u??(c==null?void 0:c.width),O=h??(c==null?void 0:c.height);if(!g||!O||!c)return null;const x=n.getBoundingClientRect(),y=r.width/g,v=r.height/O,w=YI(n),A=w==null?void 0:w.getBoundingClientRect(),k=II({rootScaleX:y,rootScaleY:v,sourceRectWidth:A==null?void 0:A.width,sourceRectHeight:A==null?void 0:A.height,sourceWidth:rf((w==null?void 0:w.getAttribute("data-width"))??null),sourceHeight:rf((w==null?void 0:w.getAttribute("data-height"))??null)});return{left:r.left-i.left+x.left*y,top:r.top-i.top+x.top*v,width:x.width*y,height:x.height*v,editScaleX:k.scaleX,editScaleY:k.scaleY}}const af=.5;function u8(t,e){return t===e?!0:!t||!e?!1:Math.abs(t.left-e.left)<af&&Math.abs(t.top-e.top)<af&&Math.abs(t.width-e.width)<af&&Math.abs(t.height-e.height)<af&&Math.abs(t.editScaleX-e.editScaleX)<.001&&Math.abs(t.editScaleY-e.editScaleY)<.001}function qI(t,e){return t===e?!0:t.length!==e.length?!1:t.every((n,r)=>{const i=e[r];return!!(i&&n.key===i.key&&n.element===i.element&&n.selection===i.selection&&u8(n.rect,i.rect))})}function AM(t){const e=t[0];if(!e)return null;let n=e.left,r=e.top,i=e.left+e.width,l=e.top+e.height;for(const s of t.slice(1))n=Math.min(n,s.left),r=Math.min(r,s.top),i=Math.max(i,s.left+s.width),l=Math.max(l,s.top+s.height);return{left:n,top:r,width:i-n,height:l-r,editScaleX:1,editScaleY:1}}function GI(t){return t.filter(e=>!t.some(n=>n!==e&&n.element.contains(e.element)))}function rl(t){return[t.sourceFile??"",t.id??"",t.selector??"",t.selectorIndex??""].join("|")}function Ev(t,e,n,r){const i=rl(e),l=r.current;if((l==null?void 0:l.key)===i&&l.element.isConnected&&l.element.ownerDocument===t)return l.element;const s=or(t,e,n);return r.current=s?{key:i,element:s}:null,s}const lf=4,sf=20,UI=.05,Tv=15;function WI(t){t==null||t.focus({preventScroll:!0})}function KI(t){const e=t.scaleX>0?t.scaleX:1,n=t.scaleY>0?t.scaleY:1;if(t.uniform){const r=t.dx/e,i=t.dy/n,l=Math.abs(r)>=Math.abs(i)?r:i,s=Math.max(1,Math.max(t.actualWidth,t.actualHeight)+l);return{overlayWidth:Math.max(sf,s*e),overlayHeight:Math.max(sf,s*n),width:s,height:s}}return{overlayWidth:Math.max(sf,t.originWidth+t.dx),overlayHeight:Math.max(sf,t.originHeight+t.dy),width:Math.max(1,t.actualWidth+t.dx/e),height:Math.max(1,t.actualHeight+t.dy/n)}}function $v(t,e,n,r){return Math.atan2(r-e,n-t)*180/Math.PI}function JI(t){return((t+180)%360+360)%360-180}function eq(t){return Math.round(t*10)/10}function jv(t){const e=$v(t.centerX,t.centerY,t.startX,t.startY),n=$v(t.centerX,t.centerY,t.currentX,t.currentY),r=JI(n-e),i=t.actualAngle+r;return{angle:t.snap?Math.round(i/Tv)*Tv:eq(i)}}function tq(t,e){return Math.abs(e-t)>=UI}function nq({iframeRef:t,overlayRef:e,selectionRef:n,activeCompositionPathRef:r,groupSelectionsRef:i,hoverSelectionRef:l,rafPausedRef:s}){const[c,u]=d.useState(null),[h,g]=d.useState(null),[O,x]=d.useState([]),y=d.useRef(null),v=d.useRef(null),w=d.useRef([]),A=d.useRef(null),k=d.useRef(null),C=d.useRef(new Map),T=E=>{u8(y.current,E)||(y.current=E,u(E))},$=E=>{u8(v.current,E)||(v.current=E,g(E))},M=E=>{qI(w.current,E)||(w.current=E,x(E))},j=(E,N)=>{const R=rl(N),L=C.current.get(R);if(L!=null&&L.isConnected&&L.ownerDocument===E)return L;const V=or(E,N,r.current);return V?C.current.set(R,V):C.current.delete(R),V};return Xt(()=>{let E=0;const N=()=>{T(null),$(null),M([])},R=()=>{if(E=requestAnimationFrame(R),s.current)return;const L=n.current,V=t.current,z=e.current;if(!V||!z){A.current=null,k.current=null,C.current.clear(),N();return}const q=V.contentDocument;if(!q){A.current=null,k.current=null,C.current.clear(),N();return}if(L){const F=Ev(q,L,r.current,A);F&&kM(F)?T(uo(z,V,F)):T(null)}else A.current=null,T(null);const U=i.current;if(U.length>0){const F=[],I=new Set;for(const P of U){const Z=rl(P);I.add(Z);const X=j(q,P),Y=X?uo(z,V,X):null;X&&Y&&F.push({key:Z,selection:P,element:X,rect:Y})}for(const P of C.current.keys())I.has(P)||C.current.delete(P);M(F)}else C.current.clear(),M([]);const K=l.current,D=!!(L&&K&&rl(L)===rl(K)),G=!!(K&&U.some(F=>rl(F)===rl(K)));if(!K||D||G){k.current=null,$(null);return}const H=Ev(q,K,r.current,k);if(!H){$(null);return}$(uo(z,V,H))};return E=requestAnimationFrame(R),()=>cancelAnimationFrame(E)}),{overlayRect:c,overlayRectRef:y,setOverlayRect:T,hoverRect:h,hoverRectRef:v,setHoverRect:$,groupOverlayItems:O,groupOverlayItemsRef:w,setGroupOverlayItems:M}}const rq=100,Pv=.01,iq=1e-6;function Qv(t){return Number.isFinite(t.x)&&Number.isFinite(t.y)}function Zv(t){return Math.hypot(t.x,t.y)}function Nv(t){return Number.isFinite(t.left)&&Number.isFinite(t.top)&&Number.isFinite(t.width)&&Number.isFinite(t.height)}function aq(t){const e=t.document.documentElement,n=t.innerWidth||e.clientWidth||1,r=t.innerHeight||e.clientHeight||1;return{width:n>0?n:1,height:r>0?r:1}}function lq(t){try{const e=t.frameElement;if(!e)return null;const n=e.ownerDocument.defaultView,r=n==null?void 0:n.HTMLElement;return r&&e instanceof r?e:null}catch{return null}}function p2(t){const e=t.getBoundingClientRect();if(!Nv(e)||e.width<=0&&e.height<=0)return null;let n={x:e.left+e.width/2,y:e.top+e.height/2},r=t.ownerDocument.defaultView;for(;r;){const i=lq(r);if(!i)break;const l=i.getBoundingClientRect();if(!Nv(l)||l.width<=0||l.height<=0)return null;const s=aq(r);n={x:l.left+n.x*(l.width/s.width),y:l.top+n.y*(l.height/s.height)},r=i.ownerDocument.defaultView}return n}function sq(t){const e=t.a*t.d-t.b*t.c;return!Number.isFinite(e)||Math.abs(e)<iq?null:{a:t.d/e,b:-t.b/e,c:-t.c/e,d:t.a/e}}function oq(t,e){return{x:t.a*e.x+t.c*e.y,y:t.b*e.x+t.d*e.y}}function cq(t,e,n={}){const r=n.probeSize??rq;if(!Number.isFinite(r)||r<=0)return{ok:!1,reason:"Invalid movement probe size."};const i=V8(t);try{vf(t,e);const l=p2(t);if(!l)return{ok:!1,reason:"Element has no measurable box."};vf(t,{x:e.x+r,y:e.y});const s=p2(t);if(!s)return{ok:!1,reason:"Element X movement could not be measured."};vf(t,{x:e.x,y:e.y+r});const c=p2(t);if(!c)return{ok:!1,reason:"Element Y movement could not be measured."};const u={x:(s.x-l.x)/r,y:(s.y-l.y)/r},h={x:(c.x-l.x)/r,y:(c.y-l.y)/r};if(!Qv(u)||!Qv(h)||Zv(u)<Pv||Zv(h)<Pv)return{ok:!1,reason:"Element movement response is too small to measure."};const g={a:u.x,b:u.y,c:h.x,d:h.y},O=sq(g);return O?{ok:!0,matrix:O}:{ok:!1,reason:"Element movement response is not invertible."}}finally{Gs(t,i)}}function uq(t){const e=oq(t.screenToOffset,{x:t.dx,y:t.dy});return{x:t.initialOffset.x+e.x,y:t.initialOffset.y+e.y}}function MM(t){const e=ng(t.element),n=V8(t.element),r=ow(t.element),i=cq(t.element,e);if(!i.ok){const l=t.rect.editScaleX||1,s=t.rect.editScaleY||1;return{ok:!0,member:{key:t.key,selection:t.selection,element:t.element,initialOffset:e,initialPathOffset:n,gestureToken:r,screenToOffset:{a:1/l,b:0,c:0,d:1/s},originRect:t.rect}}}return{ok:!0,member:{key:t.key,selection:t.selection,element:t.element,initialOffset:e,initialPathOffset:n,gestureToken:r,screenToOffset:i.matrix,originRect:t.rect}}}function CM(t,e,n){return uq({initialOffset:t.initialOffset,screenToOffset:t.screenToOffset,dx:e,dy:n})}function Rv(t,e,n){const r=CM(t,e,n);return vf(t.element,r),r}function Vv(t,e,n){const r=CM(t,e,n);return _f(t.element,r),r}function fq(t){Gs(t.element,t.initialPathOffset),vi(t.element,t.gestureToken)}function EM(t){for(const e of t)fq(e)}function _v(t){for(const e of t)vi(e.element,e.gestureToken)}const g2=6,Lv=1;function Do(t){return t.left+t.width}function Ho(t){return t.top+t.height}function Id(t){return t.left+t.width/2}function qd(t){return t.top+t.height/2}function dq(t){return t.map(({rect:e,id:n})=>({left:e.left,top:e.top,right:Do(e),bottom:Ho(e),centerX:Id(e),centerY:qd(e),id:n}))}function hq(t){return{left:t.left,top:t.top,right:Do(t),bottom:Ho(t),centerX:Id(t),centerY:qd(t),id:"composition"}}function mq(t,e,n){const r=[],i=[];if(e<=0||n<=0)return{x:r,y:i};const l=e*n;let s=t.left+l;const c=t.left+t.width;let u=0;for(;s<c;)r.push({position:s,source:"grid",id:`grid-x-${u}`}),s+=l,u++;let h=t.top+l;const g=t.top+t.height;for(u=0;h<g;)i.push({position:h,source:"grid",id:`grid-y-${u}`}),h+=l,u++;return{x:r,y:i}}function yd(t,e,n,r,i){const l=[];for(const s of e){const c=n(s);for(const u of t)for(const h of c){const g=h-u,O=Math.abs(g);O<=i&&l.push({adjustment:g,distance:O,guidePosition:h,source:s.id==="composition"?"composition":"element",targetId:s.id})}}if(r)for(const s of r)for(const c of t){const u=s.position-c,h=Math.abs(u);h<=i&&l.push({adjustment:u,distance:h,guidePosition:s.position,source:"grid",targetId:s.id})}return l}function bd(t){if(t.length===0)return null;const e=t.filter(x=>x.source==="element"||x.source==="composition"),n=t.filter(x=>x.source==="grid");let r;const i=e.length?Math.min(...e.map(x=>x.distance)):1/0,l=n.length?Math.min(...n.map(x=>x.distance)):1/0;i<=l?r=e:r=n;const s=Math.min(...r.map(x=>x.distance)),c=r.filter(x=>x.distance===s),u=c.some(x=>x.adjustment>0),h=c.some(x=>x.adjustment<0);if(u&&h)return null;const g=c[0].adjustment,O=r.filter(x=>x.adjustment===g);return{adjustment:g,matches:O}}function pq(t,e,n,r){const i=[];if(t==="x"){i.push(e.top,Ho(e));for(const l of n){const s=r.get(l);s&&i.push(s.top,s.bottom)}}else{i.push(e.left,Do(e));for(const l of n){const s=r.get(l);s&&i.push(s.left,s.right)}}return{from:Math.min(...i),to:Math.max(...i)}}function TM(t,e,n,r){const i=[];for(const[l,s]of[["x",t],["y",e]]){if(!s)continue;const c=new Set;for(const u of s.matches){if(c.has(u.guidePosition))continue;c.add(u.guidePosition);const h=s.matches.filter(O=>O.guidePosition===u.guidePosition).map(O=>O.targetId),g=pq(l,n,h,r);i.push({axis:l,position:u.guidePosition,from:g.from,to:g.to})}}return i}const $M=(t,e)=>({dx:t,dy:e,guides:[],spacingGuides:[]});function Dv(t){var O,x;if(t.disabled||t.threshold<=0)return $M(t.proposedDx,t.proposedDy);const e=t.movingRect,n={left:e.left+t.proposedDx,top:e.top+t.proposedDy,width:e.width,height:e.height},r=yd([n.left,Id(n),Do(n)],t.targets,y=>[y.left,y.centerX,y.right],(O=t.gridEdges)==null?void 0:O.x,t.threshold),i=yd([n.top,qd(n),Ho(n)],t.targets,y=>[y.top,y.centerY,y.bottom],(x=t.gridEdges)==null?void 0:x.y,t.threshold),l=bd(r),s=bd(i),c=t.proposedDx+((l==null?void 0:l.adjustment)??0),u=t.proposedDy+((s==null?void 0:s.adjustment)??0),h={left:e.left+c,top:e.top+u,width:e.width,height:e.height},g=new Map(t.targets.map(y=>[y.id,y]));return{dx:c,dy:u,guides:TM(l,s,h,g),spacingGuides:[]}}function gq(t){var x,y;if(t.disabled||t.threshold<=0)return $M(t.proposedDx,t.proposedDy);const e=t.movingRect,n=Do(e)+t.proposedDx,r=Ho(e)+t.proposedDy,i=yd([n],t.targets,v=>[v.left,v.centerX,v.right],(x=t.gridEdges)==null?void 0:x.x,t.threshold),l=yd([r],t.targets,v=>[v.top,v.centerY,v.bottom],(y=t.gridEdges)==null?void 0:y.y,t.threshold),s=bd(i),c=bd(l),u=t.proposedDx+((s==null?void 0:s.adjustment)??0),h=t.proposedDy+((c==null?void 0:c.adjustment)??0),g={left:e.left,top:e.top,width:e.width+u,height:e.height+h},O=new Map(t.targets.map(v=>[v.id,v]));return{dx:u,dy:h,guides:TM(s,c,g,O),spacingGuides:[]}}function Hv(t){const e=[],n=t.movingRect,r={left:n.left,top:n.top,right:Do(n),bottom:Ho(n),centerX:Id(n),centerY:qd(n),id:"\0__snap_moving__"},i=[...t.targets,r],l=[...i].sort((c,u)=>c.centerX-u.centerX);for(let c=0;c<l.length-2;c++){const u=l[c],h=l[c+1],g=l[c+2],O=h.left-u.right,x=g.left-h.right;if(!(O<0||x<0||!(u.id==="\0__snap_moving__"||h.id==="\0__snap_moving__"||g.id==="\0__snap_moving__"))&&Math.abs(O-x)<=Lv){const v=Math.min(u.top,h.top,g.top),w=Math.max(u.bottom,h.bottom,g.bottom);e.push({axis:"x",position:u.right,size:O,from:v,to:w}),e.push({axis:"x",position:h.right,size:x,from:v,to:w})}}const s=[...i].sort((c,u)=>c.centerY-u.centerY);for(let c=0;c<s.length-2;c++){const u=s[c],h=s[c+1],g=s[c+2],O=h.top-u.bottom,x=g.top-h.bottom;if(!(O<0||x<0||!(u.id==="\0__snap_moving__"||h.id==="\0__snap_moving__"||g.id==="\0__snap_moving__"))&&Math.abs(O-x)<=Lv){const v=Math.min(u.left,h.left,g.left),w=Math.max(u.right,h.right,g.right);e.push({axis:"y",position:u.bottom,size:O,from:v,to:w}),e.push({axis:"y",position:h.bottom,size:x,from:v,to:w})}}return e}function Xv(t){if(!t)return null;const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}const Oq=new Set(["script","style","link","meta","base","template","br","wbr"]);function xq(t){return t.nodeType===1}function yq(t,e,n){const r=[],i=l=>{if(!(r.length>=n))for(const s of Array.from(l.children))xq(s)&&(Oq.has(s.tagName.toLowerCase())||s.hasAttribute("data-composition-id")||e.has(s)||kM(s)&&(r.push(s),i(s)))};return i(t),r}function jM(t){const e=ul(),n=e.snapEnabled??!0,r=t.iframe.contentDocument;if(!r)return{targets:[],compositionTarget:null,gridEdges:null,snapEnabled:n};const i=r.querySelector("[data-composition-id]")??r.documentElement,l=i==null?void 0:i.getBoundingClientRect(),s=Xv((i==null?void 0:i.getAttribute("data-width"))??null),c=Xv((i==null?void 0:i.getAttribute("data-height"))??null),u=s??(l==null?void 0:l.width),h=c??(l==null?void 0:l.height);if(!u||!h||!l)return{targets:[],compositionTarget:null,gridEdges:null,snapEnabled:n};const g=t.iframe.getBoundingClientRect(),O=t.overlayEl.getBoundingClientRect(),x=g.width/u;g.height/h;const y={left:g.left-O.left,top:g.top-O.top,width:g.width,height:g.height},v=hq(y),w=80,A=yq(i,t.excludeElements,w);A.length>=w&&console.warn(`[snap] Target cap reached (${w}). Elements beyond this limit are excluded from snap alignment.`);const k=[];for(let j=0;j<A.length;j++){const E=uo(t.overlayEl,t.iframe,A[j]);E&&k.push({rect:E,id:`snap-target-${j}`})}const C=dq(k);let T=null;const $=e.gridSpacing??50;return(e.snapToGrid??!1)&&$>0&&(T=mq(y,$,x)),{targets:C,compositionTarget:v,gridEdges:T,snapEnabled:n}}function PM(t){const e=new Set,n=t.selection;if(n!=null&&n.element&&e.add(n.element),t.groupSelections)for(const r of t.groupSelections)r.element&&e.add(r.element);return e}function bq(t,e){var h,g,O;const n=e.groupOverlayItemsRef.current;if(n.length<=1)return!1;const r=(h=n.find(x=>!x.selection.capabilities.canApplyManualOffset))==null?void 0:h.selection;if(r)return t.preventDefault(),t.stopPropagation(),e.onBlockedMoveRef.current(r),!1;(O=(g=e.onManualDragStartRef).current)==null||O.call(g);const i=GI(n),l=[];for(const x of i){const y=MM({key:x.key,selection:x.selection,element:x.element,rect:x.rect});if(!y.ok)return EM(l),t.preventDefault(),t.stopPropagation(),e.onBlockedMoveRef.current(y.selection),!1;l.push(y.member)}const s=e.overlayRef.current,c=e.iframeRef.current,u=s&&c?jM({overlayEl:s,iframe:c,excludeElements:PM({groupSelections:n.map(x=>x.selection)})}):void 0;return t.preventDefault(),t.stopPropagation(),t.currentTarget.setPointerCapture(t.pointerId),e.rafPausedRef.current=!0,e.groupGestureRef.current={startX:t.clientX,startY:t.clientY,originItems:n,members:l,snapContext:u},!0}function vq(t,e,n,r){var M,j;const i=(r==null?void 0:r.selection)??n.selectionRef.current,l=(r==null?void 0:r.rect)??n.overlayRectRef.current,s=n.boxRef.current,c=n.overlayRef.current;if(!i||!l||t!=="drag"&&!s)return!1;const u=t==="rotate"?"rotation":t==="drag"?"path-offset":"box-size";if(t==="drag"&&!i.capabilities.canApplyManualOffset||t==="resize"&&!i.capabilities.canApplyManualSize||t==="rotate"&&!i.capabilities.canApplyManualRotation||t==="resize"&&(!Number.isFinite(l.width)||!Number.isFinite(l.height)))return!1;const h=Vf(i.element),g=uw(i.element),O=h.width>0?h.width:l.width/l.editScaleX,x=h.height>0?h.height:l.height/l.editScaleY;let y=V8(i.element),v,w;if(t==="drag"){(j=(M=n.onManualDragStartRef).current)==null||j.call(M);const E=MM({key:rl(i),selection:i,element:i.element,rect:l});if(!E.ok)return n.onBlockedMoveRef.current(E.selection),!1;w=E.member,y=E.member.initialPathOffset,v=E.member.gestureToken}else v=ow(i.element);const A=c==null?void 0:c.getBoundingClientRect(),k=((A==null?void 0:A.left)??0)+l.left+l.width/2,C=((A==null?void 0:A.top)??0)+l.top+l.height/2,T=n.iframeRef.current,$=(t==="drag"||t==="resize")&&c&&T?jM({overlayEl:c,iframe:T,excludeElements:PM({selection:i})}):void 0;return e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId),n.rafPausedRef.current=!0,n.gestureRef.current={kind:t,mode:u,selection:i,startX:e.clientX,startY:e.clientY,centerX:k,centerY:C,initialPathOffset:y,initialRotation:vN(i.element),initialBoxSize:bN(i.element),pathOffsetMember:w,originLeft:l.left,originTop:l.top,originWidth:l.width,originHeight:l.height,actualWidth:O,actualHeight:x,actualRotation:g.angle,editScaleX:l.editScaleX,editScaleY:l.editScaleY,manualEditDragToken:v,snapContext:$},!0}function Sq(t){const e=g=>{t.setOverlayRect(g)},n=g=>{e({left:g.originLeft,top:g.originTop,width:g.originWidth,height:g.originHeight,editScaleX:g.editScaleX,editScaleY:g.editScaleY})},r=g=>{t.setGroupOverlayItems(g)},i=g=>{EM(g.members),r(g.originItems)};return{startGesture:(g,O,x)=>vq(g,O,t,x),startGroupDrag:g=>bq(g,t),onPointerMove:g=>{const O=t.gestureRef.current,x=t.groupGestureRef.current,y=(O==null?void 0:O.selection)??t.selectionRef.current,v=t.boxRef.current,w=t.blockedMoveRef.current;if(!w&&!O&&!x&&t.onCanvasPointerMoveRef.current(g,{preferClipAncestor:!1}),w&&y){const C=g.clientX-w.startX,T=g.clientY-w.startY;!w.notified&&Math.hypot(C,T)>=lf&&(w.notified=!0,t.suppressNextBoxClickRef.current=!0,t.onBlockedMoveRef.current(y));return}if(x){let C=g.clientX-x.startX,T=g.clientY-x.startY;const $=x.snapContext;if($!=null&&$.snapEnabled&&$.targets.length>0){const M=AM(x.originItems.map(j=>j.rect));if(M){const j=$.compositionTarget?[...$.targets,$.compositionTarget]:$.targets,E=Dv({movingRect:M,proposedDx:C,proposedDy:T,targets:j,gridEdges:$.gridEdges??void 0,threshold:g2,disabled:g.altKey});C=E.dx,T=E.dy;const N={left:M.left+C,top:M.top+T,width:M.width,height:M.height},R=g.altKey?[]:Hv({movingRect:N,targets:j});t.snapGuidesRef.current={guides:E.guides,spacingGuides:R}}}x.lastSnappedDx=C,x.lastSnappedDy=T,r(x.originItems.map(M=>({...M,rect:{...M.rect,left:M.rect.left+C,top:M.rect.top+T}})));for(const M of x.members)Rv(M,C,T);return}if(!O||!y)return;let A=g.clientX-O.startX,k=g.clientY-O.startY;if(O.kind==="rotate"){pN(y.element,jv({centerX:O.centerX,centerY:O.centerY,startX:O.startX,startY:O.startY,currentX:g.clientX,currentY:g.clientY,actualAngle:O.actualRotation,snap:g.shiftKey}));return}if(O.kind==="drag"){const C=O.snapContext;if(C!=null&&C.snapEnabled&&C.targets.length>0){const M={left:O.originLeft,top:O.originTop,width:O.originWidth,height:O.originHeight},j=C.compositionTarget?[...C.targets,C.compositionTarget]:C.targets,E=Dv({movingRect:M,proposedDx:A,proposedDy:k,targets:j,gridEdges:C.gridEdges??void 0,threshold:g2,disabled:g.altKey});A=E.dx,k=E.dy;const N={left:M.left+A,top:M.top+k,width:M.width,height:M.height},R=g.altKey?[]:Hv({movingRect:N,targets:j});t.snapGuidesRef.current={guides:E.guides,spacingGuides:R}}O.lastSnappedDx=A,O.lastSnappedDy=k;const T=O.originLeft+A,$=O.originTop+k;e({left:T,top:$,width:O.originWidth,height:O.originHeight,editScaleX:O.editScaleX,editScaleY:O.editScaleY}),v&&(v.style.left=`${T}px`,v.style.top=`${$}px`),O.pathOffsetMember&&Rv(O.pathOffsetMember,A,k)}else{if(!v)return;const C=O.snapContext;if(C!=null&&C.snapEnabled&&C.targets.length>0){const V={left:O.originLeft,top:O.originTop,width:O.originWidth,height:O.originHeight},z=C.compositionTarget?[...C.targets,C.compositionTarget]:C.targets,q=gq({movingRect:V,proposedDx:A,proposedDy:k,targets:z,gridEdges:C.gridEdges??void 0,threshold:g2,disabled:g.altKey});A=q.dx,k=q.dy,t.snapGuidesRef.current={guides:q.guides,spacingGuides:[]}}const T=KI({originWidth:O.originWidth,originHeight:O.originHeight,actualWidth:O.actualWidth,actualHeight:O.actualHeight,scaleX:O.editScaleX,scaleY:O.editScaleY,dx:A,dy:k,uniform:g.shiftKey});dN(y.element,T);const $=t.overlayRef.current,M=t.iframeRef.current,j=$&&M?uo($,M,y.element):null,E=j?j.left:O.originLeft,N=j?j.top:O.originTop,R=j?j.width:T.overlayWidth,L=j?j.height:T.overlayHeight;v.style.left=`${E}px`,v.style.top=`${N}px`,v.style.width=`${R}px`,v.style.height=`${L}px`,e({left:E,top:N,width:R,height:L,editScaleX:O.editScaleX,editScaleY:O.editScaleY})}},onPointerUp:g=>{t.snapGuidesRef.current=null;const O=t.gestureRef.current,x=t.groupGestureRef.current,y=(O==null?void 0:O.selection)??t.selectionRef.current,v=t.boxRef.current;if(t.blockedMoveRef.current=null,x){t.groupGestureRef.current=null,t.rafPausedRef.current=!1;const A=g.clientX-x.startX,k=g.clientY-x.startY;if(Math.hypot(A,k)<lf){i(x),t.suppressNextBoxClickRef.current=!0;return}const C=x.lastSnappedDx??A,T=x.lastSnappedDy??k;r(x.originItems.map(M=>({...M,rect:{...M.rect,left:M.rect.left+C,top:M.rect.top+T}})));const $=x.members.map(M=>({selection:M.selection,next:Vv(M,C,T)}));Promise.resolve(t.onGroupPathOffsetCommitRef.current($)).catch(()=>{for(const M of x.members)M.gestureToken&&M1(M.element,M.gestureToken)&&Gs(M.element,M.initialPathOffset)}).finally(()=>_v(x.members));return}if(!O||!y){t.gestureRef.current=null,t.rafPausedRef.current=!1;return}t.gestureRef.current=null,t.rafPausedRef.current=!1;const w=Math.hypot(g.clientX-O.startX,g.clientY-O.startY);if(O.kind==="drag"&&w<lf){Gs(y.element,O.initialPathOffset),vi(y.element,O.manualEditDragToken),v&&(v.style.left=`${O.originLeft}px`,v.style.top=`${O.originTop}px`),n(O),t.suppressNextBoxClickRef.current=!0,t.onCanvasMouseDown(g,{preferClipAncestor:!1});return}if(O.kind==="resize"&&w<lf){bp(y.element,O.initialBoxSize),vi(y.element,O.manualEditDragToken),v&&(v.style.width=`${O.originWidth}px`,v.style.height=`${O.originHeight}px`),n(O),t.suppressNextBoxClickRef.current=!0;return}if(O.kind==="rotate"){const A=jv({centerX:O.centerX,centerY:O.centerY,startX:O.startX,startY:O.startY,currentX:g.clientX,currentY:g.clientY,actualAngle:O.actualRotation,snap:g.shiftKey});if(!tq(O.actualRotation,A.angle)){vp(y.element,O.initialRotation),vi(y.element,O.manualEditDragToken);return}N8(y.element,A),Promise.resolve(t.onRotationCommitRef.current(y,A)).catch(()=>{O.manualEditDragToken&&M1(y.element,O.manualEditDragToken)&&vp(y.element,O.initialRotation)}).finally(()=>vi(y.element,O.manualEditDragToken))}else if(O.kind==="drag"){const A=O.lastSnappedDx??g.clientX-O.startX,k=O.lastSnappedDy??g.clientY-O.startY;if(!O.pathOffsetMember)return;const C=Vv(O.pathOffsetMember,A,k),T=O.originLeft+A,$=O.originTop+k;e({left:T,top:$,width:O.originWidth,height:O.originHeight,editScaleX:O.editScaleX,editScaleY:O.editScaleY}),v&&(v.style.left=`${T}px`,v.style.top=`${$}px`),Promise.resolve(t.onPathOffsetCommitRef.current(y,C)).catch(()=>{var M;(M=O.pathOffsetMember)!=null&&M.gestureToken&&M1(y.element,O.pathOffsetMember.gestureToken)&&Gs(y.element,O.initialPathOffset)}).finally(()=>{O.pathOffsetMember&&_v([O.pathOffsetMember])})}else{t.suppressNextBoxClickRef.current=!0;const A=Vf(y.element);Q8(y.element,A),Promise.resolve(t.onBoxSizeCommitRef.current(y,A)).catch(()=>{O.manualEditDragToken&&M1(y.element,O.manualEditDragToken)&&bp(y.element,O.initialBoxSize)}).finally(()=>vi(y.element,O.manualEditDragToken))}},clearPointerState:g=>{t.snapGuidesRef.current=null;const O=t.groupGestureRef.current;O&&i(O);const x=t.gestureRef.current,y=(x==null?void 0:x.selection)??g.current;(x==null?void 0:x.mode)==="path-offset"&&y&&(Gs(y.element,x.initialPathOffset),vi(y.element,x.manualEditDragToken),n(x)),(x==null?void 0:x.mode)==="box-size"&&y&&(bp(y.element,x.initialBoxSize),vi(y.element,x.manualEditDragToken),n(x)),(x==null?void 0:x.mode)==="rotation"&&y&&(vp(y.element,x.initialRotation),vi(y.element,x.manualEditDragToken)),t.blockedMoveRef.current=null,t.groupGestureRef.current=null,t.gestureRef.current=null,t.rafPausedRef.current=!1}}}const zv=6,Fv=4,Bv="rgba(255, 68, 204, 0.85)",of="rgba(255, 68, 204, 0.6)",wq="rgba(255, 68, 204, 0.15)",kq=d.memo(function({snapGuidesRef:e,overlayWidth:n,overlayHeight:r}){const i=d.useRef([]),l=d.useRef([]),s=d.useRef([]),c=d.useRef(n);c.current=n;const u=d.useRef(r);return u.current=r,Xt(()=>{let h=0;const g=()=>{h=requestAnimationFrame(g);const O=e.current,x=(O==null?void 0:O.guides)??[],y=(O==null?void 0:O.spacingGuides)??[],v=c.current,w=u.current;for(let A=0;A<zv;A++){const k=i.current[A];if(!k)continue;const C=x[A];if(!C){k.style.display="none";continue}k.style.display="",C.axis==="x"?(k.style.left=`${C.position}px`,k.style.top="0",k.style.width="1px",k.style.height=`${w}px`):(k.style.left="0",k.style.top=`${C.position}px`,k.style.width=`${v}px`,k.style.height="1px")}for(let A=0;A<Fv;A++){const k=l.current[A],C=s.current[A];if(!k)continue;const T=y[A];if(!T){k.style.display="none";continue}k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="center",T.axis==="x"?(k.style.left=`${T.position}px`,k.style.top=`${T.from}px`,k.style.width=`${T.size}px`,k.style.height=`${T.to-T.from}px`,k.style.borderLeft=`1px dashed ${of}`,k.style.borderRight=`1px dashed ${of}`,k.style.borderTop="none",k.style.borderBottom="none"):(k.style.left=`${T.from}px`,k.style.top=`${T.position}px`,k.style.width=`${T.to-T.from}px`,k.style.height=`${T.size}px`,k.style.borderTop=`1px dashed ${of}`,k.style.borderBottom=`1px dashed ${of}`,k.style.borderLeft="none",k.style.borderRight="none"),C&&(C.textContent=`${Math.round(T.size)}`)}};return h=requestAnimationFrame(g),()=>cancelAnimationFrame(h)}),m.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",children:[Array.from({length:zv},(h,g)=>m.jsx("div",{ref:O=>{i.current[g]=O},style:{display:"none",position:"absolute",backgroundColor:Bv,zIndex:50}},`guide-${g}`)),Array.from({length:Fv},(h,g)=>m.jsx("div",{ref:O=>{l.current[g]=O},style:{display:"none",position:"absolute",zIndex:50},children:m.jsx("span",{ref:O=>{s.current[g]=O},style:{fontSize:"10px",fontFamily:"monospace",color:Bv,backgroundColor:wq,padding:"0 3px",borderRadius:"2px",lineHeight:"14px",whiteSpace:"nowrap"}})},`spacing-${g}`))]})}),Aq=d.memo(function({visible:e,spacing:n,scaleX:r,scaleY:i,compositionLeft:l,compositionTop:s,compositionWidth:c,compositionHeight:u}){if(!e||n<=0)return null;const h=n*r,g=n*i;return h<4||g<4?null:m.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute",style:{left:l,top:s,width:c,height:u,backgroundImage:[`repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent ${h}px)`,`repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent ${g}px)`].join(", "),backgroundSize:`${h}px ${g}px`}})}),Mq=d.memo(function({iframeRef:e,activeCompositionPath:n,selection:r,groupSelections:i=[],hoverSelection:l,allowCanvasMovement:s=!0,onCanvasMouseDown:c,onCanvasPointerMove:u,onCanvasPointerLeave:h,onSelectionChange:g,onBlockedMove:O,gridVisible:x=!1,gridSpacing:y=50,onManualDragStart:v,onPathOffsetCommit:w,onGroupPathOffsetCommit:A,onBoxSizeCommit:k,onRotationCommit:C}){const T=d.useRef(null),$=d.useRef(null),M=d.useRef(null),j=d.useRef(null),E=d.useRef(null),N=d.useRef(!1),R=d.useRef(!1),L=d.useRef(!1),V=d.useRef(null),z=d.useRef(!1),q=d.useRef(r);q.current=r;const U=d.useRef(n);U.current=n;const K=d.useRef(i);K.current=i;const D=d.useRef(l);D.current=l;const G=d.useRef(w);G.current=w;const H=d.useRef(A);H.current=A;const F=d.useRef(k);F.current=k;const I=d.useRef(C);I.current=C;const P=d.useRef(O);P.current=O;const Z=d.useRef(v);Z.current=v;const X=d.useRef(u);X.current=u;const Y=d.useRef(h);Y.current=h;const J=d.useRef(g);J.current=g;const{overlayRect:ne,overlayRectRef:B,setOverlayRect:re,hoverRect:ae,groupOverlayItems:ue,groupOverlayItemsRef:me,setGroupOverlayItems:ye}=nq({iframeRef:e,overlayRef:T,selectionRef:q,activeCompositionPathRef:U,groupSelectionsRef:K,hoverSelectionRef:D,rafPausedRef:z}),[Oe,Se]=d.useState({left:0,top:0,width:0,height:0,scaleX:1,scaleY:1});Xt(()=>{let be=0;const dt=()=>{be=requestAnimationFrame(dt);const Ue=e.current,bt=T.current;if(!Ue||!bt)return;const Re=Ue.getBoundingClientRect(),on=bt.getBoundingClientRect(),Rt=Re.left-on.left,we=Re.top-on.top;if(Re.width<=0||Re.height<=0)return;const ht=Ue.contentDocument,Mt=(ht==null?void 0:ht.querySelector("[data-composition-id]"))??(ht==null?void 0:ht.documentElement),ot=Number.parseFloat((Mt==null?void 0:Mt.getAttribute("data-width"))??""),ve=Number.parseFloat((Mt==null?void 0:Mt.getAttribute("data-height"))??""),ze=ot>0?Re.width/ot:1,Ze=ve>0?Re.height/ve:1;Se(Be=>Math.abs(Be.left-Rt)<.5&&Math.abs(Be.top-we)<.5&&Math.abs(Be.width-Re.width)<.5&&Math.abs(Be.height-Re.height)<.5&&Math.abs(Be.scaleX-ze)<.001&&Math.abs(Be.scaleY-Ze)<.001?Be:{left:Rt,top:we,width:Re.width,height:Re.height,scaleX:ze,scaleY:Ze})};return be=requestAnimationFrame(dt),()=>cancelAnimationFrame(be)});const Ae=Sq({overlayRef:T,iframeRef:e,boxRef:$,selectionRef:q,overlayRectRef:B,groupOverlayItemsRef:me,gestureRef:M,groupGestureRef:j,blockedMoveRef:E,rafPausedRef:z,suppressNextBoxClickRef:N,setOverlayRect:re,setGroupOverlayItems:ye,onBlockedMoveRef:P,onManualDragStartRef:Z,onPathOffsetCommitRef:G,onGroupPathOffsetCommitRef:H,onBoxSizeCommitRef:F,onRotationCommitRef:I,onCanvasPointerMoveRef:X,onCanvasMouseDown:c,snapGuidesRef:V}),Me=d.useMemo(()=>r?`${r.sourceFile}:${r.id??r.selector??r.label}:${r.selectorIndex??0}`:"none",[r]),Ve=d.useMemo(()=>AM(ue.map(be=>be.rect)),[ue]),Pe=i.length>1,ft=Pe&&ue.length>1&&ue.every(be=>be.selection.capabilities.canApplyManualOffset),yt=be=>{if(L.current){L.current=!1,R.current=!1,N.current=!1,be.preventDefault(),be.stopPropagation();return}const dt=be.target;dt!=null&&dt.closest('[data-dom-edit-selection-box="true"]')||(c(be,{preferClipAncestor:!1}),be.shiftKey&&(R.current=!0,N.current=!0))},_e=be=>{if(!s||be.button!==0)return;if(be.shiftKey){const we=D.current;if(!we)return;be.preventDefault(),be.stopPropagation(),L.current=!0,R.current=!0,N.current=!0,J.current(we,{additive:!0});return}const dt=be.target;if(dt!=null&&dt.closest('[data-dom-edit-selection-box="true"]'))return;const Ue=D.current;if(!(Ue!=null&&Ue.capabilities.canApplyManualOffset))return;const bt=T.current,Re=e.current,on=bt&&Re?uo(bt,Re,Ue.element):null;if(!on)return;if(L.current=!0,q.current=Ue,re(on),!Ae.startGesture("drag",be,{selection:Ue,rect:on})){L.current=!1;return}J.current(Ue)},Ye=be=>{if(!(M.current||j.current)){if(N.current){N.current=!1,be.stopPropagation();return}c(be,{preferClipAncestor:!1})}},Le=be=>{R.current&&(R.current=!1,be.preventDefault(),be.stopPropagation())};return m.jsxs("div",{ref:T,className:"absolute inset-0 z-10 pointer-events-auto outline-none",tabIndex:-1,"aria-label":"Composition canvas",onPointerDownCapture:be=>WI(be.currentTarget),onPointerDown:_e,onMouseDown:yt,onPointerMove:Ae.onPointerMove,onPointerLeave:()=>Y.current(),onPointerUp:Ae.onPointerUp,onPointerCancel:()=>Ae.clearPointerState(q),children:[l&&ae&&m.jsx("div",{"aria-hidden":"true","data-dom-edit-hover-box":"true",className:"pointer-events-none absolute rounded-xl border border-studio-accent/80 bg-studio-accent/5 shadow-[0_0_0_1px_rgba(60,230,172,0.25)]",style:{left:ae.left,top:ae.top,width:ae.width,height:ae.height}}),Pe&&ue.length>1&&Ve&&m.jsxs(m.Fragment,{children:[ue.map(be=>m.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute rounded-xl border border-studio-accent/70 bg-studio-accent/[0.03]",style:{left:be.rect.left,top:be.rect.top,width:be.rect.width,height:be.rect.height}},be.key)),m.jsx("div",{"data-dom-edit-selection-box":"true",className:"pointer-events-auto absolute rounded-xl border border-studio-accent bg-studio-accent/5 shadow-[0_0_0_1px_rgba(60,230,172,0.3)]",style:{left:Ve.left,top:Ve.top,width:Ve.width,height:Ve.height,cursor:s&&ft?"move":"default"},onPointerDown:be=>{!s||!ft||be.shiftKey||Ae.startGroupDrag(be)},onMouseDown:Le,onClick:Ye})]}),!Pe&&r&&ne&&m.jsxs(m.Fragment,{children:[s&&r.capabilities.canApplyManualRotation&&m.jsxs("div",{className:"pointer-events-none absolute",style:{left:ne.left+ne.width/2,top:ne.top-34,width:28,height:34,transform:"translateX(-50%)"},children:[m.jsx("div",{className:"absolute left-1/2 top-3 bottom-0 w-px -translate-x-1/2 bg-studio-accent/60"}),m.jsx("button",{type:"button",className:"pointer-events-auto absolute left-1/2 top-0 h-3 w-3 -translate-x-1/2 rounded-full border border-studio-accent bg-studio-accent p-0 shadow-[0_0_0_2px_rgba(60,230,172,0.18)]",style:{cursor:"grab",touchAction:"none"},title:"Rotate","aria-label":"Rotate selection",onPointerDown:be=>{be.stopPropagation(),Ae.startGesture("rotate",be)}})]}),m.jsx("div",{ref:$,"data-dom-edit-selection-box":"true",className:"pointer-events-auto absolute rounded-xl border border-studio-accent/80 bg-studio-accent/5 shadow-[0_0_0_1px_rgba(60,230,172,0.25)]",style:{left:ne.left,top:ne.top,width:ne.width,height:ne.height,cursor:s&&r.capabilities.canApplyManualOffset?"move":"default"},onPointerDown:be=>{if(!(!s||be.shiftKey)){if(r.capabilities.canApplyManualOffset){Ae.startGesture("drag",be);return}be.preventDefault(),be.stopPropagation(),be.currentTarget.setPointerCapture(be.pointerId),E.current={pointerId:be.pointerId,startX:be.clientX,startY:be.clientY,notified:!1}}},onMouseDown:Le,onClick:Ye,children:s&&r.capabilities.canApplyManualSize&&m.jsx("div",{className:"absolute -right-1.5 -bottom-1.5 w-3 h-3 rounded-sm bg-studio-accent border border-studio-accent/60",style:{cursor:"se-resize",touchAction:"none"},onPointerDown:be=>{be.stopPropagation(),Ae.startGesture("resize",be)}})},Me)]}),m.jsx(Aq,{visible:x,spacing:y,scaleX:Oe.scaleX,scaleY:Oe.scaleY,compositionLeft:Oe.left,compositionTop:Oe.top,compositionWidth:Oe.width,compositionHeight:Oe.height}),m.jsx(kq,{snapGuidesRef:V,overlayWidth:Oe.width,overlayHeight:Oe.height})]})}),cf={snapEnabled:!0,gridVisible:!1,gridSpacing:50,snapToGrid:!1};function O2(){const t=ul();return{snapEnabled:t.snapEnabled??cf.snapEnabled,gridVisible:t.gridVisible??cf.gridVisible,gridSpacing:t.gridSpacing??cf.gridSpacing,snapToGrid:t.snapToGrid??cf.snapToGrid}}const Cq=d.memo(function({onSnapChange:e}){const[n,r]=d.useState(O2),[i,l]=d.useState(!1),s=d.useRef(null),c=d.useRef(null),u=d.useCallback(O=>{r(x=>{const y={...x,...O};return ho(O),e==null||e(y),y})},[e]),h=d.useCallback(()=>{u({snapEnabled:!n.snapEnabled})},[n.snapEnabled,u]),g=d.useCallback(()=>{u({gridVisible:!n.gridVisible})},[n.gridVisible,u]);return d.useEffect(()=>{const O=x=>{const y=x.target;y instanceof HTMLInputElement||y instanceof HTMLTextAreaElement||y instanceof HTMLElement&&y.isContentEditable||y instanceof HTMLIFrameElement||(x.key==="s"&&!x.metaKey&&!x.ctrlKey&&!x.altKey&&(x.preventDefault(),u({snapEnabled:!O2().snapEnabled})),x.key==="g"&&!x.metaKey&&!x.ctrlKey&&!x.altKey&&(x.preventDefault(),u({gridVisible:!O2().gridVisible})))};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[u]),d.useEffect(()=>{if(!i)return;const O=x=>{var v,w;const y=x.target;(v=s.current)!=null&&v.contains(y)||(w=c.current)!=null&&w.contains(y)||l(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[i]),m.jsxs("div",{className:"absolute top-2 right-2 z-50 flex items-center gap-1",children:[m.jsx("button",{type:"button",className:`rounded-md p-1.5 transition-colors ${n.snapEnabled?"bg-studio-accent/20 text-studio-accent":"bg-black/40 text-white/60 hover:bg-black/60 hover:text-white/80"}`,onClick:h,title:n.snapEnabled?"Snap enabled (S)":"Snap disabled (S)","aria-label":"Toggle snap",children:m.jsx(eZ,{size:16,weight:n.snapEnabled?"fill":"regular"})}),m.jsxs("div",{className:"relative",children:[m.jsx("button",{ref:c,type:"button",className:`rounded-md p-1.5 transition-colors ${n.gridVisible?"bg-studio-accent/20 text-studio-accent":"bg-black/40 text-white/60 hover:bg-black/60 hover:text-white/80"}`,onClick:g,onContextMenu:O=>{O.preventDefault(),l(x=>!x)},title:n.gridVisible?"Grid visible (G)":"Grid hidden (G)","aria-label":"Toggle grid",children:m.jsx(WQ,{size:16,weight:n.gridVisible?"fill":"regular"})}),i&&m.jsxs("div",{ref:s,className:"absolute right-0 top-full mt-1 rounded-lg bg-neutral-800 border border-neutral-700 p-3 shadow-xl min-w-[180px]",children:[m.jsxs("label",{className:"flex items-center justify-between text-xs text-white/80 mb-2",children:[m.jsx("span",{children:"Grid spacing"}),m.jsx("input",{type:"number",min:10,max:500,step:10,value:n.gridSpacing,onChange:O=>{const x=Number.parseInt(O.target.value,10);Number.isFinite(x)&&x>=10&&x<=500&&u({gridSpacing:x})},className:"w-16 rounded bg-neutral-900 border border-neutral-600 px-1.5 py-0.5 text-xs text-white text-right tabular-nums outline-none focus:border-studio-accent"})]}),m.jsxs("label",{className:"flex items-center gap-2 text-xs text-white/80 cursor-pointer",children:[m.jsx("input",{type:"checkbox",checked:n.snapToGrid,onChange:()=>u({snapToGrid:!n.snapToGrid}),className:"accent-studio-accent"}),m.jsx("span",{children:"Snap to grid"})]})]})]})]})}),Eq=10,Tq=2e4;function $q(){try{return!1}catch{return!1}}function jq(){return Eq}const To={sessionCount:"hyperframes-studio:feedbackSessionCount",lastPromptedAt:"hyperframes-studio:feedbackLastPromptedAt"};function Pq(){if($q())return!1;try{const t=parseInt(localStorage.getItem(To.sessionCount)||"0",10)||0,e=parseInt(localStorage.getItem(To.lastPromptedAt)||"0",10)||0;return t-e>=jq()}catch{return!1}}const Yv="hyperframes-studio:feedbackSessionCounted";function Qq(){try{if(sessionStorage.getItem(Yv))return;sessionStorage.setItem(Yv,"1");const t=parseInt(localStorage.getItem(To.sessionCount)||"0",10)||0;localStorage.setItem(To.sessionCount,String(t+1))}catch{}}function Iv(){try{const t=localStorage.getItem(To.sessionCount)||"0";localStorage.setItem(To.lastPromptedAt,t)}catch{}}const Zq=d.memo(function(){const[e,n]=d.useState(!1),[r,i]=d.useState(null),[l,s]=d.useState(""),[c,u]=d.useState(!1),[h,g]=d.useState(!1),O=d.useRef(null),x=d.useRef(null);d.useEffect(()=>{Qq();const A=setTimeout(()=>{Pq()&&n(!0)},3e3);return()=>clearTimeout(A)},[]),d.useEffect(()=>{if(!(!e||r!==null||c))return x.current=setTimeout(()=>{y()},Tq),()=>{x.current&&clearTimeout(x.current)}},[e,r,c]),d.useEffect(()=>{r!==null&&O.current&&O.current.focus()},[r]);const y=d.useCallback(()=>{g(!0),Iv(),setTimeout(()=>n(!1),300)},[]),v=d.useCallback(()=>{r!==null&&(RT({rating:r,comment:l.trim()||void 0}),u(!0),Iv(),setTimeout(()=>{g(!0),setTimeout(()=>n(!1),300)},1500))},[r,l]),w=d.useCallback(A=>{i(A),x.current&&(clearTimeout(x.current),x.current=null)},[]);return e?m.jsx("div",{className:["flex items-center gap-3 px-4 h-8 border-t border-neutral-800/50 bg-neutral-900/80 text-[11px] transition-all duration-300",h?"opacity-0 translate-y-2":"opacity-100 translate-y-0"].join(" "),children:c?m.jsx("span",{className:"text-neutral-500",children:"Thanks for the feedback!"}):r!==null?m.jsxs(m.Fragment,{children:[m.jsx("input",{ref:O,type:"text",value:l,onChange:A=>s(A.target.value),onKeyDown:A=>{A.key==="Enter"&&v(),A.key==="Escape"&&y()},placeholder:"Any details? (enter to send, esc to close)",className:"flex-1 bg-transparent border-none text-[11px] text-neutral-300 placeholder-neutral-600 outline-none",maxLength:500}),m.jsx("button",{onClick:v,className:"text-[11px] text-neutral-500 hover:text-neutral-300 transition-colors flex-shrink-0",children:"send"})]}):m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-neutral-500 flex-shrink-0",children:"How's the Studio experience?"}),m.jsx("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(A=>m.jsx("button",{onClick:()=>w(A),className:"w-6 h-6 rounded text-[11px] text-neutral-600 hover:text-neutral-200 hover:bg-neutral-700/50 transition-colors",children:A},A))}),m.jsx("div",{className:"flex-1"}),m.jsx("button",{onClick:y,className:"text-neutral-700 hover:text-neutral-400 transition-colors flex-shrink-0","aria-label":"Dismiss",children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})}):null});function Nq({timelineToolbar:t,renderClipContent:e,handleTimelineElementDelete:n,handleTimelineAssetDrop:r,handleTimelineBlockDrop:i,handlePreviewBlockDrop:l,handleTimelineFileDrop:s,handleTimelineElementMove:c,handleTimelineElementResize:u,handleBlockedTimelineEdit:h,handleTimelineElementSplit:g,setCompIdToSrc:O,setCompositionLoading:x,shouldShowSelectedDomBounds:y,blockPreview:v}){const{projectId:w,refreshKey:A,activeCompPath:k,setActiveCompPath:C,captionEditMode:T,compositionLoading:$,isPlaying:M,previewIframeRef:j,refreshPreviewDocumentVersion:E,handlePreviewIframeRef:N,timelineVisible:R,toggleTimelineVisibility:L}=No(),{domEditHoverSelection:V,domEditSelection:z,domEditGroupSelections:q,handleTimelineElementSelect:U,handlePreviewCanvasMouseDown:K,handlePreviewCanvasPointerMove:D,handlePreviewCanvasPointerLeave:G,applyDomSelection:H,handleBlockedDomMove:F,handleDomManualDragStart:I,handleDomPathOffsetCommit:P,handleDomGroupPathOffsetCommit:Z,handleDomBoxSizeCommit:X,handleDomRotationCommit:Y,selectedGsapAnimations:J,handleGsapRemoveKeyframe:ne,handleGsapUpdateMeta:B,handleGsapAddKeyframe:re,handleGsapConvertToKeyframes:ae,handleGsapDeleteAnimation:ue}=Ed(),[me,ye]=d.useState(()=>{const Oe=ul();return{snapEnabled:Oe.snapEnabled??!0,gridVisible:Oe.gridVisible??!1,gridSpacing:Oe.gridSpacing??50,snapToGrid:Oe.snapToGrid??!1}});return m.jsxs("div",{className:"flex-1 flex flex-col relative min-w-0",children:[m.jsx("div",{className:"flex-1 min-h-0 relative",children:m.jsx(LI,{projectId:w,refreshKey:A,activeCompositionPath:k,timelineToolbar:t,renderClipContent:e,onDeleteElement:n,onAssetDrop:r,onBlockDrop:i,onPreviewBlockDrop:l,onFileDrop:s,onMoveElement:c,onResizeElement:u,onBlockedEditAttempt:h,onSplitElement:g,onSelectTimelineElement:U,onDeleteAllKeyframes:Oe=>{const Se=J.find(Ae=>Ae.keyframes)??J[0];Se&&ue(Se.id)},onDeleteKeyframe:(Oe,Se)=>{const Ae=J.find(Me=>Me.keyframes);Ae&&ne(Ae.id,Se)},onChangeKeyframeEase:(Oe,Se,Ae)=>{const Me=J.find(Ve=>Ve.keyframes);Me&&B(Me.id,{ease:Ae})},onMoveKeyframe:(Oe,Se,Ae)=>{const Me=J.find(Pe=>Pe.keyframes);if(!(Me!=null&&Me.keyframes))return;const Ve=Me.keyframes.keyframes.find(Pe=>Pe.percentage===Se);if(Ve){ne(Me.id,Se);for(const[Pe,ft]of Object.entries(Ve.properties))re(Me.id,Ae,Pe,ft)}},onToggleKeyframeAtPlayhead:Oe=>{const Se=fe.getState().currentTime,Ae=Oe.duration>0?Math.max(0,Math.min(100,Math.round((Se-Oe.start)/Oe.duration*100))):0,Me=J.find(Ve=>Ve.keyframes);if(Me!=null&&Me.keyframes){const Ve=Me.keyframes.keyframes.find(Pe=>Math.abs(Pe.percentage-Ae)<=1);Ve?ne(Me.id,Ve.percentage):re(Me.id,Ae,"x",0)}else{const Ve=J.find(Pe=>!Pe.keyframes);Ve&&ae(Ve.id)}},onCompIdToSrcChange:O,onCompositionLoadingChange:x,onCompositionChange:Oe=>{Oe!==k&&(C(Oe),E())},onIframeRef:N,previewOverlay:v?m.jsx("div",{className:"absolute inset-0 z-30 bg-black pointer-events-none",children:v.videoUrl?m.jsx("video",{src:v.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-full object-contain"}):v.posterUrl?m.jsx("img",{src:v.posterUrl,alt:v.title,className:"w-full h-full object-contain"}):null}):T?m.jsx(FI,{iframeRef:j}):Mn?m.jsxs(m.Fragment,{children:[m.jsx(Mq,{iframeRef:j,activeCompositionPath:k,hoverSelection:I2&&!T&&!$&&!M?V:null,selection:y?z:null,groupSelections:y?q:[],allowCanvasMovement:Zj,onCanvasMouseDown:K,onCanvasPointerMove:D,onCanvasPointerLeave:G,onSelectionChange:H,onBlockedMove:F,onManualDragStart:I,onPathOffsetCommit:P,onGroupPathOffsetCommit:Z,onBoxSizeCommit:X,onRotationCommit:Y,gridVisible:me.gridVisible,gridSpacing:me.gridSpacing}),m.jsx(Cq,{onSnapChange:ye})]}):null,timelineFooter:T?m.jsxs("div",{className:"border-t border-neutral-800/30 flex-shrink-0",style:{height:60},children:[m.jsx("div",{className:"flex items-center gap-1.5 px-2 py-0.5",children:m.jsx("span",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Captions"})}),m.jsx(BI,{pixelsPerSecond:100})]}):void 0,timelineVisible:R,onToggleTimeline:L})}),m.jsx(Zq,{})]})}function Er(t){return Math.max(0,Math.min(255,Math.round(t)))}function N6(t){return Math.max(0,Math.min(1,t))}function x2(t){return Er(t).toString(16).padStart(2,"0")}function Rq(t){return`${Math.round(N6(t)*100)/100}`}function QM(t){const e=t.trim().toLowerCase();if(!e)return null;if(e==="transparent")return{red:0,green:0,blue:0,alpha:0};const n=e.match(/^#([0-9a-f]{3})$/i);if(n){const[l,s,c]=n[1].split("");return{red:Number.parseInt(l+l,16),green:Number.parseInt(s+s,16),blue:Number.parseInt(c+c,16),alpha:1}}const r=e.match(/^#([0-9a-f]{6})$/i);if(r)return{red:Number.parseInt(r[1].slice(0,2),16),green:Number.parseInt(r[1].slice(2,4),16),blue:Number.parseInt(r[1].slice(4,6),16),alpha:1};const i=e.match(/^rgba?\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)(?:\s*,\s*([0-9.]+))?\s*\)$/i);return i?{red:Er(Number.parseFloat(i[1])),green:Er(Number.parseFloat(i[2])),blue:Er(Number.parseFloat(i[3])),alpha:N6(i[4]!=null?Number.parseFloat(i[4]):1)}:null}function y2(t){return`#${x2(t.red)}${x2(t.green)}${x2(t.blue)}`}function uf(t){const e=Er(t.red),n=Er(t.green),r=Er(t.blue),i=N6(t.alpha);return i>=1?`rgb(${e}, ${n}, ${r})`:`rgba(${e}, ${n}, ${r}, ${Rq(i)})`}function Vq(t){const e=Er(t.red)/255,n=Er(t.green)/255,r=Er(t.blue)/255,i=Math.max(e,n,r),l=Math.min(e,n,r),s=i-l;let c=0;return s!==0&&(i===e?c=60*((n-r)/s%6):i===n?c=60*((r-e)/s+2):c=60*((e-n)/s+4)),c<0&&(c+=360),{hue:c,saturation:i===0?0:s/i,value:i}}function qv(t){const e=(t.hue%360+360)%360/60,n=Math.max(0,Math.min(1,t.saturation)),r=Math.max(0,Math.min(1,t.value)),i=r*n,l=i*(1-Math.abs(e%2-1)),s=r-i;let c=0,u=0,h=0;return e>=0&&e<1?(c=i,u=l):e>=1&&e<2?(c=l,u=i):e>=2&&e<3?(u=i,h=l):e>=3&&e<4?(u=l,h=i):e>=4&&e<5?(c=l,h=i):(c=i,h=l),{red:Er((c+s)*255),green:Er((u+s)*255),blue:Er((h+s)*255)}}const ZM=new Set(["inherit","initial","revert","revert-layer","serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-sans-serif","ui-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]),_q=[...fg,"Inter","system-ui","sans-serif","serif","monospace"];function Gv(t){return t.replace(/[^\w .-]+/g," ").replace(/\s+/g," ").trim()}function ff(t){var r,i;const e=((r=t.style)==null?void 0:r.toLowerCase())??"",n=((i=t.fullName)==null?void 0:i.toLowerCase())??"";return e==="regular"||n.endsWith(" regular")?0:e==="normal"||n.endsWith(" normal")?1:e==="medium"||n.endsWith(" medium")?2:3}function b2(t){const e=new Set;return t.reduce((n,r)=>{const i=r.trim();if(!i)return n;const l=i.toLowerCase();return e.has(l)||(e.add(l),n.push(i)),n},[])}function Uv(t){const e=new Set;return t.reduce((n,r)=>{const i=r.family.trim();if(!i)return n;const l=i.toLowerCase();return e.has(l)||(e.add(l),n.push({family:i,source:r.source})),n},[])}function Lq(t){return[...t].sort((e,n)=>{const r=Wv(e.source)-Wv(n.source);if(r!==0)return r;const i=fg.findIndex(c=>c.toLowerCase()===e.family.toLowerCase()),l=fg.findIndex(c=>c.toLowerCase()===n.family.toLowerCase()),s=(i===-1?Number.MAX_SAFE_INTEGER:i)-(l===-1?Number.MAX_SAFE_INTEGER:l);return s===0?e.family.localeCompare(n.family):s})}function Wv(t){return t==="Current"?0:t==="Document"?1:t==="Imported"?2:t==="Google"?3:t==="Local"?4:5}const Qi="min-w-0 rounded-xl border border-neutral-800 bg-neutral-900/95 px-3 py-2 text-neutral-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)] transition-colors focus-within:border-neutral-600",Kt="text-[11px] font-medium uppercase tracking-[0.18em] text-neutral-500",qn="grid grid-cols-[repeat(auto-fit,minmax(118px,1fr))] gap-3",Dq={},f8="none",NM={none:"none",soft:"0 12px 36px rgba(0, 0, 0, 0.28)",lift:"0 18px 54px rgba(0, 0, 0, 0.38)",glow:"0 0 0 1px rgba(60, 230, 172, 0.34), 0 18px 56px rgba(60, 230, 172, 0.2)"};function v2(t){return QM(t)??{red:0,green:0,blue:0,alpha:1}}function d8(t){if(!t)return null;const e=Number.parseFloat(t);return Number.isFinite(e)?e:null}function Bt(t){const e=Math.round(t*100)/100;return Number.isInteger(e)?`${e}`:e.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}function as(t){if(!t)return null;const e=t.trim().match(/^(-?\d+(?:\.\d+)?)([a-z%]*)$/i);if(!e)return null;const n=Number.parseFloat(e[1]);return Number.isFinite(n)?{value:n,unit:e[2]??""}:null}function ta(t){const e=as(t);return!e||e.unit&&e.unit.toLowerCase()!=="px"?null:e.value}function RM(t,e,n,r){return Number.isFinite(t)?Math.max(e,Math.min(n,t)):r}function Hq(t,e={}){const n=as(t.trim());if(!n||n.unit&&n.unit.toLowerCase()!=="px")return null;const r=RM(n.value,e.min??Number.NEGATIVE_INFINITY,e.max??Number.POSITIVE_INFINITY,e.fallback??0);return`${Bt(r)}px`}function zl(t){return`${Bt(t)}px`}function Kv(t,e){const n=e.trim();if(!n||n==="normal")return n||"normal";const r=as(n);return r?t==="letter-spacing"?r.unit?n:`${Bt(r.value)}px`:r.unit?n:r.value>4?`${Bt(r.value)}px`:Bt(r.value):n}function Xq(t){const e=[];let n="",r=0;for(const i of t.trim()){if(i==="("&&(r+=1),i===")"&&(r=Math.max(0,r-1)),/\s/.test(i)&&r===0){n.trim()&&e.push(n.trim()),n="";continue}n+=i}return n.trim()&&e.push(n.trim()),e}function Jv(t,e){const n=t==null?void 0:t.trim();if(!n||n===f8)return 0;const r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(`(?:^|\\s)${r}\\((-?\\d+(?:\\.\\d+)?)px\\)`,"i").exec(n);if(!i)return 0;const l=Number.parseFloat(i[1]);return Number.isFinite(l)?Math.max(0,l):0}function eS(t,e,n){const r=RM(n,0,200,0),i=Xq(t&&t.trim()!==f8?t:""),l=e.toLowerCase(),s=i.filter(c=>!c.toLowerCase().startsWith(`${l}(`));return r>0&&s.push(`${e}(${Bt(r)}px)`),s.length>0?s.join(" "):f8}function zq(t){const e=(t==null?void 0:t.trim())||"none";for(const[n,r]of Object.entries(NM))if(e===r)return n;return e==="none"?"none":"custom"}function Fq(t,e){return t==="custom"?(e==null?void 0:e.trim())||"none":NM[t]}function Bq(t){const e=t==null?void 0:t.trim();return!e||e==="none"?"none":/^inset\(/i.test(e)?"inset":/^circle\(/i.test(e)?"circle":"custom"}function Yq(t){const e=/^inset\(\s*(-?\d+(?:\.\d+)?)px\b/i.exec((t==null?void 0:t.trim())??"");if(!e)return 0;const n=Number.parseFloat(e[1]);return Number.isFinite(n)?Math.max(0,n):0}function Iq(t,e){const n=[["border-width",t]],r=as(t),i=(e==null?void 0:e.trim().toLowerCase())||"none";return r&&r.value>0&&(i==="none"||i==="hidden")&&n.push(["border-style","solid"]),n}function qq(t,e){const n=[["border-style",t]],r=t.trim().toLowerCase();if(!r||r==="none"||r==="hidden")return n;const i=as((e==null?void 0:e.trim())||"0");return(!i||i.value<=0)&&n.push(["border-width","1px"]),n}function Gq(t,e,n){return t==="custom"?(n==null?void 0:n.trim())||"none":t==="circle"?"circle(50% at 50% 50%)":t==="inset"?`inset(0 round ${Bt(Math.max(0,e))}px)`:"none"}function Uq(t,e){return`inset(${Bt(Math.max(0,t))}px round ${Bt(Math.max(0,e))}px)`}function tS(t,e,n){const r=as(t);if(!r)return null;const i=n!=null&&n.altKey?.1:n!=null&&n.shiftKey?10:1,l=r.value+i*e;return`${Bt(l)}${r.unit}`}function Wq(t){if(!t)return"";const n=t.toLowerCase().indexOf("url(");if(n<0)return"";let r=n+4;for(;r<t.length&&(t[r]===" "||t[r]===`
139
139
  `||t[r]==="\r"||t[r]===" "||t[r]==="\f");)r+=1;const i=t[r]==='"'||t[r]==="'"?t[r]:null;if(i){r+=1;const s=t.indexOf(i,r);return s>=r?t.slice(r,s):""}const l=t.indexOf(")",r);return l<r?"":t.slice(r,l).trim()}function Kq(t){var y;const e=t.element,n=(y=e.ownerDocument)==null?void 0:y.defaultView,r=Array.from(e.children).filter(v=>v.nodeType===1);if(r.length===0)return null;let i=1/0,l=1/0,s=-1/0,c=-1/0;for(const v of r){if(n){const A=n.getComputedStyle(v);if(A.visibility==="hidden"||A.display==="none")continue}const w=v.getBoundingClientRect();w.width===0&&w.height===0||(i=Math.min(i,w.left),l=Math.min(l,w.top),s=Math.max(s,w.right),c=Math.max(c,w.bottom))}if(!isFinite(i))return null;const u=e.getBoundingClientRect(),h=u.width>0?t.boundingBox.width/u.width:1,g=u.height>0?t.boundingBox.height/u.height:1,O=Math.round((s-i)*h),x=Math.round((c-l)*g);return O>0&&x>0?{width:O,height:x}:null}function VM({value:t,disabled:e,liveCommit:n,onCommit:r}){const[i,l]=d.useState(t),s=d.useRef(null),c=d.useRef(t),u=d.useRef(i),h=d.useRef(null);c.current=t,u.current=i,d.useEffect(()=>{l(t)},[t]),d.useEffect(()=>{const y=h.current;if(!y)return;const v=w=>{if(e||document.activeElement!==y)return;const A=w.deltaY===0?w.deltaX:w.deltaY;if(A===0)return;const k=tS(u.current,A<0?1:-1,w);k&&(w.preventDefault(),w.stopPropagation(),l(k),x.current(k))};return y.addEventListener("wheel",v,{passive:!1}),()=>y.removeEventListener("wheel",v)},[e]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]);const g=y=>{s.current&&clearTimeout(s.current),y!==c.current&&r(y)},O=y=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{y!==c.current&&r(y)},120)},x=d.useRef(O);return x.current=O,m.jsx("input",{ref:h,type:"text",value:i,disabled:e,onChange:y=>{l(y.target.value),n&&O(y.target.value)},onBlur:()=>g(i),onKeyDown:y=>{if(y.key==="Enter"){y.target.blur();return}if(y.key!=="ArrowUp"&&y.key!=="ArrowDown")return;const v=tS(i,y.key==="ArrowUp"?1:-1,y);v&&(y.preventDefault(),l(v),O(v))},title:as(t)?"Scroll or use Arrow keys to adjust":void 0,className:"min-w-0 w-full bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600"})}function An({label:t,value:e,disabled:n,liveCommit:r,scrub:i,suffix:l,tooltip:s,onCommit:c}){const u=d.useRef(null),h=d.useCallback(y=>{if(n||!i)return;const v=parseFloat(e);Number.isFinite(v)&&(y.target.setPointerCapture(y.pointerId),u.current={startX:y.clientX,startValue:v,pointerId:y.pointerId})},[n,i,e]),g=d.useCallback(y=>{const v=u.current;if(!v)return;const w=y.clientX-v.startX;c(String(Math.round(v.startValue+w)))},[c]),O=d.useCallback(()=>{u.current=null},[]),x=i&&!n?{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500 cursor-ew-resize select-none",onPointerDown:h,onPointerMove:g,onPointerUp:O}:{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500"};return m.jsx("div",{className:Qi,title:s,children:m.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[m.jsx("span",{...x,children:t}),m.jsx(VM,{value:e,disabled:n,liveCommit:r,onCommit:c}),l&&m.jsx("span",{className:"flex-shrink-0 text-[10px] text-neutral-600",children:l})]})})}function R6({label:t,value:e,disabled:n,onCommit:r}){return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:t}),m.jsx("div",{className:Qi,children:m.jsx(VM,{value:e,disabled:n,onCommit:r})})]})}function ii({value:t,min:e,max:n,step:r,displayValue:i,formatDisplayValue:l,disabled:s,onCommit:c}){const[u,h]=d.useState(t),g=d.useRef(null),O=d.useRef(t);O.current=t,d.useEffect(()=>{h(t)},[t]),d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const x=v=>{g.current&&clearTimeout(g.current),v!==O.current&&c(v)},y=v=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{v!==O.current&&c(v)},40)};return m.jsxs("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2",children:[m.jsx("input",{type:"range",min:e,max:n,step:r,value:u,disabled:s,onChange:v=>{const w=Number(v.target.value);h(w),y(w)},onMouseUp:()=>x(u),onTouchEnd:()=>x(u),onBlur:()=>x(u),className:"h-2 min-w-0 w-full cursor-pointer appearance-none rounded-full bg-neutral-800 accent-[#3ce6ac] disabled:cursor-not-allowed"}),m.jsx("div",{className:"min-w-[52px] rounded-xl border border-neutral-800 bg-neutral-900 px-2 py-2 text-right text-[11px] font-medium text-neutral-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)]",children:(l==null?void 0:l(u))??i})]})}function fo({options:t,value:e,disabled:n,onChange:r}){return m.jsx("div",{className:"grid min-w-0 gap-1 rounded-xl bg-neutral-900 p-1 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)]",style:{gridTemplateColumns:`repeat(${t.length}, minmax(0, 1fr))`},children:t.map(i=>m.jsx("button",{type:"button",disabled:n,onClick:()=>r(i.value),className:`min-w-0 truncate rounded-lg px-2 py-1.5 text-[11px] font-medium transition-colors disabled:cursor-not-allowed ${i.value===e?"bg-neutral-800 text-white shadow-[0_1px_3px_rgba(0,0,0,0.28)]":"text-neutral-500 hover:text-neutral-200"}`,children:i.label},i.value))})}function Vn({label:t,value:e,disabled:n,options:r,onChange:i}){const l=e&&!r.includes(e)?[e,...r]:r;return m.jsxs("label",{className:`${Qi} flex items-center gap-3`,children:[m.jsx("span",{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500",children:t}),m.jsx("select",{value:e,disabled:n,onChange:s=>i(s.target.value),className:"min-w-0 w-full appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600",children:l.map(s=>m.jsx("option",{value:s,children:s},s))})]})}function Cr({title:t,icon:e,children:n,accessory:r,defaultCollapsed:i=!1}){const[l,s]=d.useState(i);return m.jsxs("section",{className:"min-w-0 border-t border-neutral-800/80",children:[m.jsxs("button",{type:"button",onClick:()=>s(c=>!c),className:"flex w-full items-center justify-between gap-2 px-4 py-3",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[m.jsx("span",{className:"flex-shrink-0 text-neutral-500",children:e}),m.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-neutral-300",children:t})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[r,m.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:`flex-shrink-0 text-neutral-500 transition-transform ${l?"-rotate-90":""}`,children:m.jsx("path",{d:"M2 3l3 4 3-4z"})})]})]}),!l&&m.jsx("div",{className:"px-4 pb-4",children:n})]})}const Jq=new Set(["video","audio"]);function eG(t){return Jq.has(t.tagName)}function nS(t){return!Number.isFinite(t)||t<0?"0.00s":`${t.toFixed(2)}s`}function tG({projectDir:t,element:e,styles:n,onSetStyle:r,onSetAttribute:i,onSetHtmlAttribute:l}){const s=e.tagName==="video",c=e.element,u=d8(e.dataAttributes.volume??"")??1,h=Math.round(u*100),g=Number.parseFloat(e.dataAttributes["media-start"]??e.dataAttributes["playback-start"]??"0")||0,O=c.hasAttribute("loop"),x=c.hasAttribute("muted"),y=e.dataAttributes["has-audio"]==="true",v=Number.parseFloat(e.dataAttributes["playback-rate"]??"1")||1,w=n["object-fit"]||"contain",A=n["object-position"]||"center",k=Number.parseFloat(e.dataAttributes["source-duration"]??"")||c.duration||0,C=Math.max(30,Math.ceil(k||g+10)),T=c.getAttribute("src")??"",[$,M]=d.useState(!1),j=t&&T&&!T.startsWith("http")?`${t}/${T}`:T;return m.jsx(Cr,{title:s?"Video":"Audio",icon:s?m.jsx(qw,{size:15}):m.jsx(FV,{size:15}),children:m.jsxs("div",{className:"space-y-4",children:[T&&m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-neutral-500",children:"Source"}),m.jsxs("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(j).then(()=>{M(!0),setTimeout(()=>M(!1),1500)})},className:"flex h-6 items-center gap-1 rounded-lg border border-neutral-700 bg-neutral-950 px-2 text-[10px] font-medium text-neutral-400 transition-colors hover:border-neutral-600 hover:text-neutral-200",children:[$?m.jsx(DV,{size:11}):m.jsx(GV,{size:11}),m.jsx("span",{children:$?"Copied":"Copy"})]})]}),m.jsx("div",{className:"mt-1 truncate text-[11px] font-medium text-neutral-300",title:j,children:j})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Volume"}),m.jsx(ii,{value:h,min:0,max:100,step:1,displayValue:`${h}%`,formatDisplayValue:E=>`${Math.round(E)}%`,onCommit:E=>{i("volume",Bt(E/100))}})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Playback rate"}),m.jsx(ii,{value:v*100,min:25,max:300,step:5,displayValue:`${Bt(v)}x`,formatDisplayValue:E=>`${Bt(E/100)}x`,onCommit:E=>{i("playback-rate",Bt(E/100))}})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Media start"}),m.jsx(ii,{value:Math.round(g*100),min:0,max:C*100,step:10,displayValue:nS(g),formatDisplayValue:E=>nS(E/100),onCommit:E=>{i("media-start",(E/100).toFixed(2))}})]}),m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Loop"}),m.jsx(fo,{value:O?"on":"off",onChange:E=>{l("loop",E==="on"?"true":null)},options:[{label:"On",value:"on"},{label:"Off",value:"off"}]})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Muted"}),m.jsx(fo,{value:x?"on":"off",onChange:E=>{l("muted",E==="on"?"true":null)},options:[{label:"On",value:"on"},{label:"Off",value:"off"}]})]})]}),s&&m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Has audio track"}),m.jsx(fo,{value:y?"yes":"no",onChange:E=>{E==="yes"?(i("has-audio","true"),l("muted",null)):(i("has-audio",""),l("muted","true"))},options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]})]}),s&&m.jsx(m.Fragment,{children:m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Fit",value:w,onChange:E=>{r("object-fit",E)},options:["contain","cover","fill","none","scale-down"]}),m.jsx(Vn,{label:"Position",value:A,onChange:E=>{r("object-position",E)},options:["center","top","bottom","left","right","left top","right top","left bottom","right bottom"]})]})})]})})}function S2(t,e,n){return Math.max(e,Math.min(n,t))}function nG(t,e,n,r){const s=Math.max(12,e.width-n.width-12),c=t.left+t.width/2-n.width/2,u=S2(c,12,s),h=t.bottom+8,g=t.top-n.height-8,O=h+n.height<=e.height-12,x=g>=12;return O||!x?{left:u,top:S2(h,12,Math.max(12,e.height-n.height-12)),placement:"bottom"}:{left:u,top:S2(g,12,Math.max(12,e.height-n.height-12)),placement:"top"}}const rS={width:292,height:386};function iS({label:t,value:e,min:n,max:r,step:i,displayValue:l,background:s,thumbColor:c,disabled:u,onCommit:h}){const g=d.useRef(null),O=(e-n)/(r-n)*100,x=v=>{var C;const w=(C=g.current)==null?void 0:C.getBoundingClientRect();if(!w||w.width<=0)return;const A=n+(v-w.left)/w.width*(r-n),k=Math.round(A/i)*i;h(Math.max(n,Math.min(r,k)))},y=v=>{h(Math.max(n,Math.min(r,v)))};return m.jsxs("div",{className:"grid gap-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:Kt,children:t}),m.jsx("span",{className:"text-[10px] font-medium text-neutral-400",children:l})]}),m.jsx("div",{ref:g,role:"slider",tabIndex:u?-1:0,"aria-label":t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":e,"aria-disabled":u,className:`relative h-4 rounded-full border border-neutral-700 shadow-[inset_0_1px_2px_rgba(0,0,0,0.55)] outline-none focus:border-[#f5a400] focus:ring-2 focus:ring-[#f5a400]/40 ${u?"cursor-not-allowed opacity-50":"cursor-ew-resize"}`,style:{background:s},onPointerDown:v=>{u||(v.currentTarget.setPointerCapture(v.pointerId),x(v.clientX))},onPointerUp:v=>{v.currentTarget.blur()},onPointerMove:v=>{u||v.buttons!==1||x(v.clientX)},onKeyDown:v=>{u||(v.key==="ArrowRight"||v.key==="ArrowUp"?(v.preventDefault(),y(e+i)):v.key==="ArrowLeft"||v.key==="ArrowDown"?(v.preventDefault(),y(e-i)):v.key==="Home"?(v.preventDefault(),y(n)):v.key==="End"&&(v.preventDefault(),y(r)))},children:m.jsx("div",{className:"pointer-events-none absolute top-1/2 h-6 w-6 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-[0_0_0_1px_rgba(0,0,0,0.85),0_6px_14px_rgba(0,0,0,0.5)]",style:{left:`${Math.max(0,Math.min(100,O))}%`,backgroundColor:c}})})]})}function iu({label:t,value:e,disabled:n,onCommit:r}){const i=d.useRef(null),l=d.useRef(null),[s,c]=d.useState(!1),[u,h]=d.useState(null),[g,O]=d.useState(()=>v2(e)),[x,y]=d.useState(()=>y2(v2(e)).toUpperCase()),v=Vq(g),w=uf({...qv({hue:v.hue,saturation:1,value:1}),alpha:1}),A=uf({...g,alpha:1}),k=uf(g),C=Math.round(v.saturation*100),T=Math.round(v.value*100),$=Math.round(g.alpha*100);d.useEffect(()=>{const z=v2(e);O(z),y(y2(z).toUpperCase())},[e]);const M=d.useCallback(()=>{var U,K;const z=(U=i.current)==null?void 0:U.getBoundingClientRect();if(!z)return;const q=(K=l.current)==null?void 0:K.getBoundingClientRect();h(nG(z,{width:window.innerWidth,height:window.innerHeight},{width:(q==null?void 0:q.width)||rS.width,height:(q==null?void 0:q.height)||rS.height}))},[]);d.useLayoutEffect(()=>{if(!s)return;M();const z=()=>M();return window.addEventListener("resize",z),window.addEventListener("scroll",z,!0),()=>{window.removeEventListener("resize",z),window.removeEventListener("scroll",z,!0)}},[s,M]),d.useEffect(()=>{if(!s)return;const z=U=>{var D,G;const K=U.target;K&&((D=l.current)!=null&&D.contains(K)||(G=i.current)!=null&&G.contains(K)||c(!1))},q=U=>{U.key==="Escape"&&c(!1)};return document.addEventListener("pointerdown",z),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("keydown",q)}},[s]);const j=z=>{O(z),y(y2(z).toUpperCase()),r(uf(z))},E=z=>{const q=qv({hue:z.hue??v.hue,saturation:z.saturation??v.saturation,value:z.value??v.value});j({...q,alpha:g.alpha})},N=(z,q,U)=>{const K=U.getBoundingClientRect(),D=Math.max(0,Math.min(1,(z-K.left)/K.width)),G=Math.max(0,Math.min(1,1-(q-K.top)/K.height));E({saturation:D,value:G})},R=z=>{y(z);const q=z.trim().startsWith("#")?z.trim():`#${z.trim()}`,U=QM(q);U&&j({...U,alpha:g.alpha})},L=s?v8.createPortal(m.jsxs("div",{ref:l,className:"fixed z-[9999] w-[292px] overflow-hidden rounded-2xl border border-neutral-700 bg-neutral-950 shadow-2xl shadow-black/50",style:{left:(u==null?void 0:u.left)??-9999,top:(u==null?void 0:u.top)??-9999},children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-neutral-800 px-3 py-2",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"truncate text-[11px] font-medium text-neutral-100",children:t}),m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-neutral-600",children:"Color"})]}),m.jsx("button",{type:"button",onClick:()=>c(!1),className:"flex h-7 w-7 items-center justify-center rounded-lg text-neutral-500 transition-colors hover:bg-neutral-900 hover:text-neutral-200","aria-label":"Close color picker",children:m.jsx(Cd,{size:13})})]}),m.jsxs("div",{className:"space-y-3 p-3",children:[m.jsxs("div",{className:"relative h-36 cursor-crosshair overflow-hidden rounded-xl border border-neutral-700 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]",style:{backgroundColor:w},onPointerDown:z=>{z.currentTarget.setPointerCapture(z.pointerId),N(z.clientX,z.clientY,z.currentTarget)},onPointerMove:z=>{z.buttons===1&&N(z.clientX,z.clientY,z.currentTarget)},children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-white to-transparent"}),m.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black to-transparent"}),m.jsx("div",{className:"pointer-events-none absolute top-0 h-full w-px -translate-x-1/2 bg-white/70 shadow-[0_0_0_1px_rgba(0,0,0,0.45)] mix-blend-difference",style:{left:`${v.saturation*100}%`}}),m.jsx("div",{className:"pointer-events-none absolute left-0 h-px w-full -translate-y-1/2 bg-white/70 shadow-[0_0_0_1px_rgba(0,0,0,0.45)] mix-blend-difference",style:{top:`${(1-v.value)*100}%`}}),m.jsx("div",{className:"pointer-events-none absolute h-6 w-6 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-[0_0_0_1px_rgba(0,0,0,0.85),0_8px_18px_rgba(0,0,0,0.45)]",style:{left:`${v.saturation*100}%`,top:`${(1-v.value)*100}%`,backgroundColor:A}})]}),m.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[m.jsx("div",{className:"h-9 w-9 flex-shrink-0 rounded-xl border border-neutral-600 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)]",style:{backgroundColor:k}}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:"truncate text-[11px] font-medium text-neutral-100",children:k}),m.jsxs("div",{className:"mt-0.5 text-[9px] uppercase tracking-[0.12em] text-neutral-600",children:["S ",C,"% · B ",T,"% · A ",$,"%"]})]})]}),m.jsx(iS,{label:"Hue",value:v.hue,min:0,max:360,step:1,displayValue:`${Math.round(v.hue)}°`,background:"linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)",thumbColor:w,disabled:n,onCommit:z=>E({hue:z})}),m.jsx(iS,{label:"Alpha",value:g.alpha,min:0,max:1,step:.01,displayValue:`${$}%`,background:`linear-gradient(90deg, transparent, ${A})`,thumbColor:k,disabled:n,onCommit:z=>j({...g,alpha:z})}),m.jsxs("label",{className:"grid gap-1.5",children:[m.jsx("span",{className:Kt,children:"Hex"}),m.jsx("input",{value:x,onChange:z=>R(z.target.value),className:`${Qi} h-10 w-full text-[11px] font-medium outline-none`,spellCheck:!1})]})]})]}),document.body):null,V=()=>{n||(c(z=>!z),s||requestAnimationFrame(M))};return m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:t}),m.jsxs("button",{type:"button",disabled:n,"aria-label":`Pick ${t.toLowerCase()} color`,ref:i,onClick:V,className:`${Qi} flex items-center gap-3 text-left hover:border-neutral-700 disabled:cursor-not-allowed ${s?"border-neutral-600":""}`,children:[m.jsx("div",{className:"relative h-7 w-7 flex-shrink-0 overflow-hidden rounded-lg border border-neutral-700 bg-neutral-950 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]",style:{backgroundColor:e||"transparent"}}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] font-medium text-neutral-100",children:e})]}),L]})}function rG(t){const e=[];let n="",r=null;for(const i of t){if((i==='"'||i==="'")&&!r){r=i;continue}if(i===r){r=null;continue}if(i===","&&!r){n.trim()&&e.push(n.trim()),n="";continue}n+=i}return n.trim()&&e.push(n.trim()),e.map(i=>i.replace(/^["']|["']$/g,"").trim()).filter(Boolean)}function iG(t){return rG(t)[0]??"inherit"}function aG(t){const e=t.trim();return ZM.has(e.toLowerCase())?e:`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function df(t){const e=t.trim();return e?ZM.has(e.toLowerCase())?e:`${aG(e)}, ui-sans-serif, system-ui, sans-serif`:"inherit"}function lG(){if(typeof document>"u")return[];const t=document.fonts;return t?Array.from(t,e=>e.family.replace(/^["']|["']$/g,"").trim()).filter(Boolean).sort((e,n)=>e.localeCompare(n)):[]}function aS(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"")}function sG(t,e){const n=e.trim().toLowerCase();return!n||t.toLowerCase().includes(n)?!0:aS(t).includes(aS(n))}function lS(t){if(typeof document>"u")return;const e=t.trim();if(!e)return;const n=`studio-google-font-${e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`;if(document.getElementById(n))return;if(!document.querySelector('link[data-studio-google-font-preconnect="true"]')){const l=document.createElement("link");l.setAttribute("data-studio-google-font-preconnect","true"),l.rel="preconnect",l.href="https://fonts.gstatic.com",l.crossOrigin="anonymous",document.head.appendChild(l)}const i=document.createElement("link");i.id=n,i.rel="stylesheet",i.href=Zw(e),document.head.appendChild(i)}function hf(t){if(typeof document>"u")return;const e=`studio-imported-font-${t.family.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`;if(document.getElementById(e))return;const n=document.createElement("style");n.id=e,n.textContent=T8(t),document.head.appendChild(n)}function oG({value:t,disabled:e,importedFonts:n,onImportFonts:r,onCommit:i}){const l=iG(t),s=d.useRef(null),c=d.useRef(null),u=d.useRef(null),[h,g]=d.useState(!1),[O,x]=d.useState(""),[y,v]=d.useState([]),[w,A]=d.useState([]),[k,C]=d.useState(()=>[...Yy]),[T,$]=d.useState(!1),[M,j]=d.useState(!1),[E,N]=d.useState(!1),[R,L]=d.useState(null),V=typeof window<"u"&&typeof window.queryLocalFonts=="function";d.useEffect(()=>{if(!h)return;const F=I=>{var Z;const P=I.target;P instanceof Node&&((Z=s.current)!=null&&Z.contains(P)||g(!1))};return document.addEventListener("pointerdown",F),()=>document.removeEventListener("pointerdown",F)},[h]),d.useEffect(()=>{h&&requestAnimationFrame(()=>{var F;return(F=c.current)==null?void 0:F.focus()})},[h]),d.useEffect(()=>{let F=!1;return fetch("/api/fonts").then(I=>I.ok?I.json():null).then(I=>{F||!Array.isArray(I==null?void 0:I.fonts)||v(P=>b2([...P,...I.fonts]))}).catch(()=>{}),()=>{F=!0}},[]),d.useEffect(()=>{let F=!1;return j(!0),fetch("/api/fonts/google").then(I=>I.ok?I.json():null).then(I=>{F||!Array.isArray(I==null?void 0:I.fonts)||C(b2([...I.fonts,...Yy]))}).catch(()=>{}).finally(()=>{F||j(!1)}),()=>{F=!0}},[]),d.useEffect(()=>{k.some(I=>I.toLowerCase()===l.toLowerCase())&&lS(l);const F=n.find(I=>I.family.toLowerCase()===l.toLowerCase());F&&hf(F)},[l,k,n]);const z=async()=>{if(!V||!window.queryLocalFonts){L("This browser does not expose installed fonts. Import a font file instead.");return}$(!0),L(null);try{const F=await window.queryLocalFonts(),I=[...F].sort((Z,X)=>ff(Z)-ff(X)),P=I.map(Z=>Z.family).filter(Z=>!!Z).map(Z=>go(`${Z}.ttf`));A(I),v(Z=>b2([...Z,...P])),L(F.length===0?"No browser-local fonts were returned.":null)}catch(F){const I=F instanceof Error?F.name:"";L(I==="NotAllowedError"?"Local font access was denied. Import a font file instead.":"Local font access is unavailable. Import a font file instead.")}finally{$(!1)}},q=async F=>{if(!(!(F!=null&&F.length)||!r)){N(!0),L(null);try{const I=await r(F);for(const Z of I)hf(Z);const P=I[0];P?(i(df(P.family)),x(""),g(!1)):L("No supported font files were imported.")}finally{N(!1)}}},U=d.useMemo(()=>Uv(n.map(F=>({family:F.family,source:"Imported"}))),[n]),K=d.useMemo(()=>{const F=lG(),I=new Set(k.map(Z=>Z.toLowerCase())),P=y.map(Z=>({family:Z,source:I.has(Z.toLowerCase())?"Google":"Local"}));return Lq(Uv([{family:l,source:"Current"},...F.map(Z=>({family:Z,source:"Document"})),...U,...k.map(Z=>({family:Z,source:"Google"})),...P,..._q.map(Z=>({family:Z,source:"System"}))]))},[l,k,y,U]),D=d.useMemo(()=>{const F=K.filter(Z=>sG(Z.family,O));if(O.trim())return F.slice(0,200);const I=new Map;for(const Z of F){const X=I.get(Z.source)??[];X.push(Z),I.set(Z.source,X)}const P=[];for(const Z of["Current","Document","Imported"])P.push(...I.get(Z)??[]);return P.push(...(I.get("Google")??[]).slice(0,100)),P.push(...(I.get("Local")??[]).slice(0,80)),P.push(...I.get("System")??[]),P},[K,O]),G=async F=>{if(!r)return null;const P=w.filter(B=>go(`${B.family}.ttf`)===F).sort((B,re)=>ff(B)-ff(re)).find(B=>typeof B.blob=="function");if(!(P!=null&&P.blob))return null;const Z=await P.blob(),X=Gv(P.style??"Regular")||"Regular",Y=Gv(`${F} ${X}`)||F,J=new File([Z],`${Y}.ttf`,{type:Z.type||"font/ttf"}),ne=await r([J]);return ne.find(B=>B.family.toLowerCase()===F.toLowerCase())??ne[0]??null},H=async F=>{if(F.source==="Local"){N(!0),L(null);try{const P=await G(F.family);if(P){hf(P),i(df(P.family)),x(""),g(!1);return}i(df(F.family)),x(""),g(!1)}finally{N(!1)}return}F.source==="Google"&&lS(F.family);const I=n.find(P=>P.family.toLowerCase()===F.family.toLowerCase());I&&hf(I),i(df(F.family)),x(""),g(!1)};return m.jsxs("div",{ref:s,className:"relative grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Font family"}),m.jsxs("button",{type:"button",disabled:e,onClick:()=>g(F=>!F),className:`${Qi} flex h-10 items-center justify-between gap-3 text-left hover:border-neutral-700 disabled:cursor-not-allowed`,children:[m.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] font-medium text-neutral-100",style:{fontFamily:t},children:l}),m.jsx("span",{className:"flex-shrink-0 text-[10px] uppercase tracking-[0.14em] text-neutral-600",children:"Font"})]}),h&&m.jsxs("div",{className:"absolute left-0 right-0 top-[calc(100%+6px)] z-50 overflow-hidden rounded-xl border border-neutral-700 bg-neutral-950 shadow-2xl",children:[m.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto_auto] gap-2 border-b border-neutral-800 p-2",children:[m.jsx("input",{ref:c,type:"text",value:O,disabled:e,placeholder:M?"Loading Google Fonts...":"Search fonts",onChange:F=>x(F.target.value),onKeyDown:F=>{F.key==="Escape"&&(F.preventDefault(),g(!1)),F.key==="Enter"&&D[0]&&(F.preventDefault(),H(D[0]))},className:"min-w-0 rounded-lg border border-neutral-800 bg-neutral-900 px-2.5 py-2 text-[11px] font-medium text-neutral-100 outline-none placeholder:text-neutral-600 focus:border-neutral-600"}),V&&m.jsx("button",{type:"button",disabled:e||T,onClick:z,className:"rounded-lg border border-neutral-700 bg-neutral-900 px-2.5 text-[10px] font-medium text-neutral-400 transition-colors hover:border-neutral-600 hover:text-neutral-100 disabled:cursor-not-allowed disabled:text-neutral-700",children:T?"...":"Local"}),m.jsx("button",{type:"button",disabled:e||E||!r,onClick:()=>{var F;return(F=u.current)==null?void 0:F.click()},className:"rounded-lg border border-neutral-700 bg-neutral-900 px-2.5 text-[10px] font-medium text-neutral-400 transition-colors hover:border-neutral-600 hover:text-neutral-100 disabled:cursor-not-allowed disabled:text-neutral-700",children:E?"...":"Import"}),m.jsx("input",{ref:u,type:"file",accept:".ttf,.otf,.ttc,.woff,.woff2,.eot,font/*",multiple:!0,"aria-label":"Import local font files",disabled:e||E||!r,className:"hidden",onChange:async F=>{await q(F.target.files),F.target.value=""}})]}),R&&m.jsx("div",{className:"border-b border-neutral-800 px-3 py-2 text-[10px] leading-4 text-neutral-500",children:R}),m.jsx("div",{className:"max-h-64 overflow-y-auto p-1",children:D.length===0?m.jsx("div",{className:"px-2 py-3 text-[11px] text-neutral-500",children:"No fonts found."}):D.map(F=>m.jsxs("button",{type:"button",onClick:()=>H(F),className:`flex w-full min-w-0 items-center justify-between gap-3 rounded-lg px-2 py-2 text-left text-[11px] transition-colors ${F.family===l?"bg-studio-accent/15 text-neutral-50":"text-neutral-300 hover:bg-neutral-900 hover:text-neutral-100"}`,children:[m.jsx("span",{className:"min-w-0 truncate font-medium",children:F.family}),m.jsx("span",{className:"flex-shrink-0 text-[9px] uppercase tracking-[0.14em] text-neutral-600",children:F.source})]},`${F.source}-${F.family}`))})]})]})}const cG=["closest-side","closest-corner","farthest-side","farthest-corner"];function _M(t){return t===" "||t===`
140
- `||t==="\r"||t===" "||t==="\f"}function h8(t){return t!=null&&t>="0"&&t<="9"}function LM(t){if(!t)return!1;let e=t[0]==="-"?1:0,n=0;for(;h8(t[e]);)e+=1,n+=1;if(t[e]===".")for(e+=1;h8(t[e]);)e+=1,n+=1;return n>0&&e===t.length}function V6(t){if(!t)return null;const e=t.trim();if(!LM(e))return null;const n=Number(e);return Number.isFinite(n)?n:null}function _6(t){const e=[];let n="";for(const r of t){if(_M(r)){n&&(e.push(n),n="");continue}n+=r}return n&&e.push(n),e}function to(t,e){return _6(t.toLowerCase()).includes(e)}function vd(t,e){if(!(t!=null&&t.endsWith("%")))return e;const n=V6(t.slice(0,-1));return n==null?e:n0(n,0,100)}function DM(t){const e=t==null?void 0:t.trim().toLowerCase();return e!=null&&e.endsWith("deg")?V6(e.slice(0,-3)):null}function uG(t){if(!t.endsWith("%"))return null;const e=t.slice(0,-1).trimEnd();let n=e.length;for(;n>0&&(h8(e[n-1])||e[n-1]===".");)n-=1;n>0&&e[n-1]==="-"&&(n-=1);const r=e.slice(n);return!LM(r)||n===0||!_M(e[n-1])?null:n}function n0(t,e,n){return Math.min(n,Math.max(e,t))}function Si(t){return Math.round(t*100)/100}function fG(t,e){const n=V6(t);return n==null?e:n0(n,0,100)}function L6(t){const e=t.trim(),n=uG(e);if(n==null)return{color:e,position:null};const r=e.slice(0,-1).trimEnd();return{color:r.slice(0,n).trim(),position:fG(r.slice(n),0)}}function Gd(t){return t.length===0?[{color:"rgba(60, 230, 172, 0.18)",position:0},{color:"rgba(255, 255, 255, 0.04)",position:100}]:t.length===1?[{color:t[0].color,position:0},{color:t[0].color,position:100}]:t.map((n,r)=>({color:n.color,position:n.position??r/(t.length-1)*100})).map(n=>({color:n.color,position:Si(n0(n.position,0,100))}))}function dG(t){const e=[];let n="",r=0;for(const i of t){if(i==="("&&(r+=1),i===")"&&(r=Math.max(0,r-1)),i===","&&r===0){n.trim()&&e.push(n.trim()),n="";continue}n+=i}return n.trim()&&e.push(n.trim()),e}function hG(t){const e=t.trim().toLowerCase(),n={"to top":0,"to top right":45,"to right top":45,"to right":90,"to bottom right":135,"to right bottom":135,"to bottom":180,"to bottom left":225,"to left bottom":225,"to left":270,"to top left":315,"to left top":315};return e in n?n[e]:null}function mG(t){const e=t[0]??"",n=hG(e),r=DM(e),i=r!=null,l=r??n??180,s=i||n!=null?t.slice(1):t;return{kind:"linear",repeating:!1,angle:l,centerX:50,centerY:50,shape:"ellipse",radialSize:"farthest-corner",stops:Gd(s.map(L6))}}function pG(t){const e=t[0]??"",n=e.toLowerCase(),r=to(n,"at")||to(n,"circle")||to(n,"ellipse")||n.includes("closest-")||n.includes("farthest-"),i=r?e:"",l=r?t.slice(1):t,s=i.toLowerCase(),c=_6(s),u=c.indexOf("at"),h=to(s,"circle")?"circle":"ellipse",g=cG.find(O=>c.includes(O))??"farthest-corner";return{kind:"radial",repeating:!1,angle:180,centerX:vd(c[u+1],50),centerY:vd(c[u+2],50),shape:h,radialSize:g,stops:Gd(l.map(L6))}}function gG(t){const e=t[0]??"",n=e.toLowerCase(),r=to(n,"from")||to(n,"at"),i=r?e:"",l=r?t.slice(1):t,s=_6(i.toLowerCase()),c=s.indexOf("from"),u=s.indexOf("at");return{kind:"conic",repeating:!1,angle:DM(s[c+1])??0,centerX:vd(s[u+1],50),centerY:vd(s[u+2],50),shape:"ellipse",radialSize:"farthest-corner",stops:Gd(l.map(L6))}}function m8(t){return{kind:"linear",repeating:!1,angle:135,centerX:50,centerY:50,shape:"ellipse",radialSize:"farthest-corner",stops:Gd([{color:t&&t!=="transparent"?t:"rgba(60, 230, 172, 0.18)",position:0},{color:"rgba(255, 255, 255, 0.04)",position:100}])}}function OG(t){if(!t||t==="none")return null;const e=t.trim(),n=e.indexOf("(");if(n<=0||!e.endsWith(")"))return null;const r=e.slice(0,n).toLowerCase(),l={"linear-gradient":{kind:"linear",repeating:!1},"radial-gradient":{kind:"radial",repeating:!1},"conic-gradient":{kind:"conic",repeating:!1},"repeating-linear-gradient":{kind:"linear",repeating:!0},"repeating-radial-gradient":{kind:"radial",repeating:!0},"repeating-conic-gradient":{kind:"conic",repeating:!0}}[r];if(!l)return null;const{kind:s,repeating:c}=l,u=dG(e.slice(n+1,-1));return{...s==="linear"?mG(u):s==="radial"?pG(u):gG(u),repeating:c}}function xG(t){return`${t.color} ${Si(t.position)}%`}function Sd(t){const e=`${t.repeating?"repeating-":""}${t.kind}-gradient`,n=t.stops.map(xG).join(", ");return t.kind==="linear"?`${e}(${Si(t.angle)}deg, ${n})`:t.kind==="radial"?`${e}(${t.shape} ${t.radialSize} at ${Si(t.centerX)}% ${Si(t.centerY)}%, ${n})`:`${e}(from ${Si(t.angle)}deg at ${Si(t.centerX)}% ${Si(t.centerY)}%, ${n})`}function w2(t,e,n){return Math.round(t+(e-t)*n)}function k2(t){return t.toString(16).padStart(2,"0")}function yG(t,e){var A;const n=n0(e,0,100),r=[...t.stops].sort((k,C)=>k.position-C.position),i=r.find(k=>Math.abs(k.position-n)<.001);if(i)return i.color;const l=r.find(k=>k.position>n)??r.at(-1),s=[...r].reverse().find(k=>k.position<n)??r[0];if(!s||!l)return((A=r[0])==null?void 0:A.color)??"rgba(255, 255, 255, 1)";if(s===l)return s.color;const c=s.color,u=l.color,h=c?oS(c):null,g=u?oS(u):null;if(!h||!g)return s.color;const O=(n-s.position)/Math.max(1,l.position-s.position),x=w2(h.red,g.red,O),y=w2(h.green,g.green,O),v=w2(h.blue,g.blue,O),w=Si(h.alpha+(g.alpha-h.alpha)*O);return w>=1?`#${k2(x)}${k2(y)}${k2(v)}`.toUpperCase():`rgba(${x}, ${y}, ${v}, ${w})`}function sS(t,e){const n=Si(n0(e,0,100)),r=yG(t,n),i=[...t.stops,{color:r,position:n}].sort((l,s)=>l.position-s.position);return{...t,stops:i}}function oS(t){const e=t.trim().toLowerCase();if(e==="transparent")return{red:0,green:0,blue:0,alpha:0};const n=e.match(/^#([0-9a-f]{6})$/i);if(n)return{red:Number.parseInt(n[1].slice(0,2),16),green:Number.parseInt(n[1].slice(2,4),16),blue:Number.parseInt(n[1].slice(4,6),16),alpha:1};const r=e.match(/^rgba?\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)(?:\s*,\s*([0-9.]+))?\s*\)$/i);return r?{red:Number.parseFloat(r[1]),green:Number.parseFloat(r[2]),blue:Number.parseFloat(r[3]),alpha:r[4]!=null?Number.parseFloat(r[4]):1}:null}function Qu(t){const e=t.trim(),n=/^[a-z]+:\/\//i.test(e)?new URL(e).pathname:e;return decodeURIComponent(n).replace(/\\/g,"/").replace(/^\.?\//,"")}function bG(t,e){const n=Qu(t).split("/").filter(Boolean),r=Qu(e).split("/").filter(Boolean);for(n.pop();n.length>0&&r.length>0&&n[0]===r[0];)n.shift(),r.shift();return[...n.map(()=>".."),...r].join("/")||e}function cS(t){return Qu(t)}function vG(t,e,n){const r=Qu(t);if(!r)return null;for(const i of n){const l=Qu(i),s=bG(e,i);if(r===l||r===s||r.endsWith(`/${l}`)||r.endsWith(`/${s}`))return i}return null}function SG({projectId:t,sourceFile:e,value:n,assets:r,disabled:i,onCommit:l,onImportAssets:s}){const c=d.useRef(null),[u,h]=d.useState(!1),g=d.useMemo(()=>r.filter(v=>uu.test(v)),[r]),O=d.useMemo(()=>vG(n,e,g),[g,e,n]),x=O?"":n,y=async v=>{if(!(!(v!=null&&v.length)||!s)){h(!0);try{const A=(await s(v)).find(k=>uu.test(k));A&&l(`url("${cS(A)}")`)}finally{h(!1)}}};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[m.jsx("span",{className:Kt,children:"Project asset"}),m.jsxs("button",{type:"button",disabled:i||u,onClick:()=>{var v;return(v=c.current)==null?void 0:v.click()},className:`inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors ${i||u?"cursor-not-allowed text-neutral-600":"cursor-pointer hover:border-neutral-600 hover:text-white"}`,children:[m.jsx(F8,{size:12,className:"flex-shrink-0"}),m.jsx("span",{className:"truncate",children:u?"Uploading…":"Upload image"})]}),m.jsx("input",{ref:c,type:"file",accept:"image/*","aria-label":"Upload image asset",disabled:i||u,className:"hidden",onChange:async v=>{await y(v.target.files),v.target.value=""}})]}),g.length>0?m.jsxs("div",{className:"space-y-3",children:[O&&m.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-800 bg-neutral-900/80",children:m.jsx("img",{src:`/api/projects/${t}/preview/${O}`,alt:O.split("/").pop()??O,className:"h-28 w-full object-contain bg-neutral-950/80"})}),m.jsx("div",{className:Qi,children:m.jsxs("select",{value:O??"",disabled:i,onChange:v=>{const w=v.target.value;if(!w){l("none");return}l(`url("${cS(w)}")`)},className:"min-w-0 w-full appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx("option",{value:"",children:"None"}),g.map(v=>m.jsx("option",{value:v,children:v},v))]})})]}):m.jsx("div",{className:"rounded-xl border border-dashed border-neutral-800 bg-neutral-900/50 px-3 py-3 text-[11px] leading-5 text-neutral-500",children:"No image assets yet. Upload one here and Studio will also add it to the Assets tab."})]}),m.jsx(R6,{label:"External URL",value:x,disabled:i,onCommit:v=>l(v.trim()?`url("${v.trim()}")`:"none")})]})}function wG({value:t,fallbackColor:e,disabled:n,onCommit:r}){const i=d.useRef(null),l=OG(t)??m8(e),s=x=>r(Sd(x)),c=x=>s({...l,...x}),u=(x,y)=>{const v=l.stops.map((w,A)=>A===x?{...w,...y}:w);s({...l,stops:v})},h=x=>{var v,w;const y=x!=null?sS(l,x):sS(l,((v=l.stops.at(-1))==null?void 0:v.position)!=null?Math.min(100,(((w=l.stops.at(-1))==null?void 0:w.position)??90)+10):100);s(y)},g=x=>{l.stops.length<=2||s({...l,stops:l.stops.filter((y,v)=>v!==x)})},O={backgroundImage:Sd(l)};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:`${Qi} space-y-3 p-3`,children:[m.jsx("div",{ref:i,className:"relative h-11 overflow-hidden rounded-lg border border-neutral-700",style:O,onClick:x=>{var v;if(n)return;const y=(v=i.current)==null?void 0:v.getBoundingClientRect();!y||y.width<=0||h((x.clientX-y.left)/y.width*100)},children:l.stops.map((x,y)=>m.jsx("div",{className:"absolute top-1/2 h-4 w-4 -translate-y-1/2 rounded-full border-2 border-white/90 shadow-[0_0_0_1px_rgba(0,0,0,0.35)]",style:{left:`calc(${x.position}% - 8px)`,backgroundColor:x.color}},`stop-preview-${y}`))}),m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[m.jsx(fo,{disabled:n,value:l.kind,onChange:x=>c({kind:x}),options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"},{label:"Conic",value:"conic"}]}),m.jsxs("label",{className:"flex items-center gap-2 text-[11px] font-medium text-neutral-400",children:[m.jsx("input",{type:"checkbox",checked:l.repeating,disabled:n,onChange:x=>c({repeating:x.target.checked}),className:"h-4 w-4 rounded border-neutral-700 bg-neutral-950 text-[#3ce6ac] focus:ring-[#3ce6ac]"}),"Repeat"]}),m.jsxs("button",{type:"button",disabled:n,onClick:()=>s({...l,stops:[...l.stops].reverse().map(x=>({...x,position:100-x.position}))}),className:"inline-flex h-7 items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx(Y8,{size:12}),"Reverse"]})]})]}),(l.kind==="linear"||l.kind==="conic")&&m.jsxs("div",{className:"grid gap-1.5",children:[m.jsx("span",{className:Kt,children:l.kind==="linear"?"Angle":"Start angle"}),m.jsx(ii,{value:l.angle,min:0,max:360,step:1,disabled:n,displayValue:`${Math.round(l.angle)}°`,formatDisplayValue:x=>`${Math.round(x)}°`,onCommit:x=>c({angle:x})})]}),l.kind==="radial"&&m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Shape",value:l.shape,disabled:n,onChange:x=>c({shape:x}),options:["ellipse","circle"]}),m.jsx(Vn,{label:"Size",value:l.radialSize,disabled:n,onChange:x=>c({radialSize:x}),options:["closest-side","closest-corner","farthest-side","farthest-corner"]})]}),(l.kind==="radial"||l.kind==="conic")&&m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Center X"}),m.jsx(ii,{value:l.centerX,min:0,max:100,step:1,disabled:n,displayValue:`${Math.round(l.centerX)}%`,formatDisplayValue:x=>`${Math.round(x)}%`,onCommit:x=>c({centerX:x})})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Center Y"}),m.jsx(ii,{value:l.centerY,min:0,max:100,step:1,disabled:n,displayValue:`${Math.round(l.centerY)}%`,formatDisplayValue:x=>`${Math.round(x)}%`,onCommit:x=>c({centerY:x})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:Kt,children:"Stops"}),m.jsxs("button",{type:"button",disabled:n||l.stops.length>=6,onClick:()=>h(),className:"inline-flex h-7 items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx(F8,{size:12}),"Add stop"]})]}),m.jsx("div",{className:"space-y-3",children:l.stops.map((x,y)=>m.jsxs("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_68px_28px] gap-2",children:[m.jsx(iu,{label:`Stop ${y+1}`,value:x.color,disabled:n,onCommit:v=>u(y,{color:v})}),m.jsx(R6,{label:"Pos",value:`${Math.round(x.position)}%`,disabled:n,onCommit:v=>u(y,{position:Number.parseFloat(v.replace("%",""))||0})}),m.jsx("button",{type:"button",disabled:n||l.stops.length<=2,onClick:()=>g(y),className:"mt-[22px] flex h-10 items-center justify-center rounded-lg border border-neutral-700 bg-neutral-950 text-neutral-400 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-700","aria-label":`Remove stop ${y+1}`,children:m.jsx(Cd,{size:12})})]},`stop-editor-${y}`))})]})]})}function kG({projectId:t,element:e,styles:n,assets:r,onSetStyle:i,onImportAssets:l}){const s=!e.capabilities.canEditStyles,c=n.display==="flex"||n.display==="inline-flex",u=d8(n["border-radius"])??0,h=Math.round((d8(n.opacity)??1)*100),g=ta(n["border-width"]??"")??ta(n["border-top-width"]??"")??0,O=n.background!=null&&n.background!=="none"&&n.background!==""||n["background-color"]!=null&&n["background-color"]!=="transparent"&&n["background-color"]!=="rgba(0, 0, 0, 0)"&&n["background-color"]!==""||n["background-image"]!=null&&n["background-image"]!=="none"&&n["background-image"]!==""||g>0,x=n["border-style"]||n["border-top-style"]||"none",y=n["border-color"]||n["border-top-color"]||"rgba(255, 255, 255, 0.18)",v=zq(n["box-shadow"]),w=Jv(n.filter,"blur"),A=Jv(n["backdrop-filter"],"blur"),k=n["clip-path"]||"none",C=Bq(k),T=Yq(k),$=n["background-image"]??"none",M=H8(e),j=$&&$!=="none"?$.includes("gradient")?"Gradient":"Image":"Solid",[E,N]=d.useState(j),R=Wq($);d.useEffect(()=>{N(j)},[j,e.id,e.selector,$]);const L=V=>{if(N(V),V==="Solid"){i("background-image","none");return}V==="Gradient"&&!$.includes("gradient")&&i("background-image",Sd(m8(n["background-color"])))};return m.jsxs(m.Fragment,{children:[c&&m.jsx(Cr,{title:"Flex",icon:m.jsx(Hf,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(fo,{disabled:s,value:n["flex-direction"]||"row",onChange:V=>i("flex-direction",V),options:[{label:"→ Row",value:"row"},{label:"↓ Column",value:"column"}]}),m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Justify",value:n["justify-content"]||"flex-start",disabled:s,onChange:V=>i("justify-content",V),options:["flex-start","center","space-between","space-around","space-evenly","flex-end"]}),m.jsx(Vn,{label:"Align",value:n["align-items"]||"stretch",disabled:s,onChange:V=>i("align-items",V),options:["stretch","flex-start","center","flex-end","baseline"]})]}),m.jsx(R6,{label:"Gap",value:n.gap??"0px",disabled:s,onCommit:V=>i("gap",V.endsWith("px")?V:`${V}px`)})]})}),O&&m.jsx(Cr,{title:"Radius",icon:m.jsx(KV,{size:15}),defaultCollapsed:!0,children:m.jsx(ii,{value:u,min:0,max:Math.max(240,Math.ceil(u)),step:1,disabled:s,displayValue:`${Bt(u)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("border-radius",`${Bt(V)}px`)})}),m.jsx(Cr,{title:"Stroke",icon:m.jsx(YV,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Width",value:zl(g),disabled:s,liveCommit:!0,onCommit:async V=>{const z=Hq(V,{min:0,max:200,fallback:g});if(z)for(const[q,U]of Iq(z,x))await i(q,U)}}),m.jsx(Vn,{label:"Style",value:x,disabled:s,onChange:async V=>{for(const[z,q]of qq(V,zl(g)))await i(z,q)},options:["none","solid","dashed","dotted","double","hidden","groove","ridge","inset","outset"]})]}),m.jsx(iu,{label:"Stroke color",value:y,disabled:s,onCommit:V=>i("border-color",V)})]})}),m.jsx(Cr,{title:"Effects",icon:m.jsx(B8,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(Vn,{label:"Shadow",value:v,disabled:s,onChange:V=>{V!=="custom"&&i("box-shadow",Fq(V,n["box-shadow"]))},options:["custom","none","soft","lift","glow"]}),m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Layer blur"}),m.jsx(ii,{value:w,min:0,max:Math.max(40,Math.ceil(w)),step:1,disabled:s,displayValue:`${Bt(w)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("filter",eS(n.filter,"blur",V))})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Backdrop"}),m.jsx(ii,{value:A,min:0,max:Math.max(60,Math.ceil(A)),step:1,disabled:s,displayValue:`${Bt(A)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("backdrop-filter",eS(n["backdrop-filter"],"blur",V))})]})]})]})}),m.jsx(Cr,{title:"Clip",icon:m.jsx(Hf,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Overflow",value:n.overflow||"visible",disabled:s,onChange:V=>i("overflow",V),options:["visible","hidden","clip","auto","scroll"]}),m.jsx(Vn,{label:"Mask",value:C,disabled:s,onChange:V=>{V!=="custom"&&i("clip-path",Gq(V,u,k))},options:["custom","none","inset","circle"]})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Mask inset"}),m.jsx(ii,{value:T,min:0,max:Math.max(120,Math.ceil(T)),step:1,disabled:s,displayValue:`${Bt(T)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("clip-path",Uq(V,u))})]})]})}),m.jsx(Cr,{title:"Transparency",icon:m.jsx(Iw,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(ii,{value:h,min:0,max:100,step:1,disabled:s,displayValue:`${h}%`,formatDisplayValue:V=>`${Math.round(V)}%`,onCommit:V=>i("opacity",Bt(V/100))}),m.jsx(Vn,{label:"Mode",value:n["mix-blend-mode"]||"normal",disabled:s,onChange:V=>i("mix-blend-mode",V),options:["normal","multiply","screen","overlay","darken","lighten"]})]})}),m.jsx(Cr,{title:"Fill",icon:m.jsx(BV,{size:15}),accessory:m.jsx("div",{className:"rounded-full border border-neutral-700 bg-neutral-900 px-2.5 py-1 text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-400",children:E}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(fo,{disabled:s,value:E,onChange:L,options:[{label:"Solid",value:"Solid"},{label:"Gradient",value:"Gradient"},{label:"Image",value:"Image"}]}),E==="Solid"?m.jsx(iu,{label:"Fill color",value:n["background-color"]??"transparent",disabled:s,onCommit:V=>i("background-color",V)}):E==="Gradient"?m.jsx(wG,{value:$!=="none"?$:Sd(m8(n["background-color"])),fallbackColor:n["background-color"],disabled:s,onCommit:V=>i("background-image",V)}):m.jsx(SG,{projectId:t,sourceFile:e.sourceFile,value:R,assets:r,disabled:s,onCommit:V=>i("background-image",V),onImportAssets:l}),!M&&m.jsx(iu,{label:"Text color",value:n.color??"rgb(0, 0, 0)",disabled:s,onCommit:V=>i("color",V)})]})})]})}function HM(t){const e=t.trim().replace(/\s+/g," ");return e.length<=56?e:`${e.slice(0,55)}…`}function XM(t,e){return t.computedStyles.color||e.color||"rgb(0, 0, 0)"}function Dc(t,e,n,r){return t.computedStyles[n]||e[n]||r}const Ic=["100","200","300","400","500","600","700","800","900"],AG={100:"100 · Thin",200:"200 · Extra Light",300:"300 · Light",400:"400 · Regular",500:"500 · Medium",600:"600 · Semi Bold",700:"700 · Bold",800:"800 · Extra Bold",900:"900 · Black"};function MG(t){var i;const e=document.fonts;if(!e)return Ic;const n=(i=t.split(",")[0])==null?void 0:i.trim().replace(/['"]/g,"");if(!n)return Ic;const r=[];for(const l of Ic)e.check(`${l} 16px "${n}"`)&&r.push(l);return r.length>0?r:Ic}function CG({label:t,value:e,disabled:n,autoFocus:r,onCommit:i}){const[l,s]=d.useState(e),c=d.useRef(null),u=d.useRef(null),h=d.useRef(!1),g=d.useRef(e);g.current=e,d.useEffect(()=>{h.current||s(e)},[e]),d.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]),d.useEffect(()=>{var y;r&&((y=c.current)==null||y.focus())},[r]);const O=y=>{u.current&&clearTimeout(u.current),y!==g.current&&i(y)},x=y=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{y!==g.current&&i(y)},120)};return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:t}),m.jsx("div",{className:Qi,children:m.jsx("textarea",{ref:c,value:l,disabled:n,rows:4,onFocus:()=>{h.current=!0},onChange:y=>{s(y.target.value),x(y.target.value)},onBlur:()=>{h.current=!1,O(l)},className:"w-full resize-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600"})})]})}function EG({value:t,disabled:e,fontFamily:n,onCommit:r}){const i=n?MG(n):Ic,l=t&&!i.includes(t)?[t,...i]:i;return m.jsx("div",{className:Qi,children:m.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[m.jsx("span",{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500",children:"Weight"}),m.jsx("select",{value:t,disabled:e,onChange:s=>r(s.target.value),className:"min-w-0 w-full appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600",children:l.map(s=>m.jsx("option",{value:s,children:AG[s]??s},s))})]})})}function TG({field:t,inheritedStyles:e,disabled:n,onCommit:r}){return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Line",value:Dc(t,e,"line-height","normal"),disabled:n,options:["normal","1","1.1","1.2","1.25","1.3","1.4","1.5","1.6","1.75","2"],onChange:i=>r("line-height",Kv("line-height",i))}),m.jsx(Vn,{label:"Track",value:Dc(t,e,"letter-spacing","0px"),disabled:n,options:["0px","-0.05em","-0.04em","-0.03em","-0.02em","-0.01em","0em","0.01em","0.02em","0.03em","0.05em","0.1em","0.15em","0.2em"],onChange:i=>r("letter-spacing",Kv("letter-spacing",i))})]}),m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Align",value:Dc(t,e,"text-align","start"),disabled:n,onChange:i=>r("text-align",i),options:["start","left","center","right","justify","end"]}),m.jsx(Vn,{label:"Case",value:Dc(t,e,"text-transform","none"),disabled:n,onChange:i=>r("text-transform",i),options:["none","uppercase","lowercase","capitalize"]})]}),m.jsx(Vn,{label:"Style",value:Dc(t,e,"font-style","normal"),disabled:n,onChange:i=>r("font-style",i),options:["normal","italic"]})]})}function uS({field:t,styles:e,fontAssets:n,onImportFonts:r,showRemove:i,onSetText:l,onSetTextFieldStyle:s,onRemoveTextField:c}){return m.jsxs("div",{className:"space-y-4 rounded-xl border border-neutral-800 bg-neutral-900/60 p-3",children:[m.jsxs("div",{className:i?"flex min-w-0 items-center justify-between gap-2":"min-w-0",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"truncate text-[11px] font-medium text-neutral-100",children:HM(t.value)||"Text"}),m.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-neutral-500",children:t.tagName})]}),i&&m.jsx("button",{type:"button",onClick:()=>c(t.key),className:"inline-flex h-7 flex-shrink-0 items-center rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:"Remove"})]}),m.jsx(CG,{label:"Content",value:t.value,disabled:!1,autoFocus:i,onCommit:u=>l(u,t.key)},t.key),m.jsx(iu,{label:"Text color",value:XM(t,e),disabled:!1,onCommit:u=>s(t.key,"color",u)}),m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Size",value:t.computedStyles["font-size"]||e["font-size"]||"16px",disabled:!1,liveCommit:!0,onCommit:u=>s(t.key,"font-size",u)}),m.jsx(EG,{value:t.computedStyles["font-weight"]||e["font-weight"]||"400",fontFamily:t.computedStyles["font-family"]||e["font-family"],disabled:!1,onCommit:u=>s(t.key,"font-weight",u)})]}),m.jsx(oG,{value:t.computedStyles["font-family"]||e["font-family"]||"inherit",disabled:!1,importedFonts:n,onImportFonts:r,onCommit:u=>s(t.key,"font-family",u)}),m.jsx(TG,{field:t,inheritedStyles:e,disabled:!1,onCommit:(u,h)=>s(t.key,u,h)})]})}function $G({element:t,styles:e,fontAssets:n,onImportFonts:r,onSetText:i,onSetTextFieldStyle:l,onAddTextField:s,onRemoveTextField:c}){var y;const u=H8(t),[h,g]=d.useState(((y=t.textFields[0])==null?void 0:y.key)??null);if(d.useEffect(()=>{const v=t.textFields;g(w=>{var A;return w&&v.some(k=>k.key===w)?w:((A=v[0])==null?void 0:A.key)??null})},[t.id,t.selector,t.textFields]),!u)return null;const O=t.textFields,x=O.find(v=>v.key===h)??O[0];return x?O.length===1?m.jsx(Cr,{title:"Text",icon:m.jsx(f3,{size:15}),children:m.jsx(uS,{field:x,styles:e,fontAssets:n,onImportFonts:r,showRemove:!1,onSetText:i,onSetTextFieldStyle:l,onRemoveTextField:c})}):m.jsx(Cr,{title:"Text",icon:m.jsx(f3,{size:15}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid gap-1.5",children:[m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[m.jsx("span",{className:Kt,children:"Text layers"}),m.jsxs("button",{type:"button",onClick:()=>{Promise.resolve(s(x.key)).then(v=>{v&&g(v)})},className:"inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:[m.jsx(F8,{size:12,className:"flex-shrink-0"}),m.jsx("span",{className:"truncate",children:"Add text"})]})]}),m.jsx("div",{className:"grid gap-2",children:O.map((v,w)=>{const A=v.key===x.key;return m.jsx("button",{type:"button",onClick:()=>g(v.key),className:`min-w-0 w-full rounded-xl border px-3 py-2 text-left transition-colors ${A?"border-studio-accent/50 bg-studio-accent/10":"border-neutral-800 bg-neutral-900/80 hover:border-neutral-700 hover:bg-neutral-900"}`,children:m.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx("span",{className:"h-4 w-4 flex-shrink-0 rounded border border-neutral-700 bg-neutral-950",style:{backgroundColor:XM(v,e)}}),m.jsx("span",{className:"min-w-0 truncate text-[11px] font-medium text-neutral-100",children:HM(v.value)||`Text ${w+1}`})]}),m.jsx("span",{className:"flex-shrink-0 rounded-md border border-neutral-700 bg-neutral-950 px-1.5 py-0.5 text-[10px] uppercase tracking-[0.12em] text-neutral-500",children:v.tagName})]})},v.key)})})]}),m.jsx(uS,{field:x,styles:e,fontAssets:n,onImportFonts:r,showRemove:!0,onSetText:i,onSetTextFieldStyle:l,onRemoveTextField:c})]})}):null}const fS=["x","y","scale","scaleX","scaleY","rotation","skewX","skewY","z","rotationX","rotationY","rotationZ","perspective","transformOrigin","opacity","visibility","autoAlpha","width","height","color","backgroundColor","borderColor","borderRadius","fontSize","letterSpacing","filter","clipPath"],jG=["none","power1.in","power1.out","power1.inOut","power2.in","power2.out","power2.inOut","power3.in","power3.out","power3.inOut","power4.in","power4.out","power4.inOut","back.in","back.out","back.inOut","elastic.in","elastic.out","elastic.inOut","bounce.in","bounce.out","bounce.inOut","expo.in","expo.out","expo.inOut","spring-gentle","spring-bouncy","spring-stiff","spring-wobbly","spring-heavy"];function dS(t,e){const n=KS[t]??"";return JS.has(t)?`${Math.round(Number(e)*100)}${n}`:`${e}${n}`}function PG(t){const e=t.ease??"none",n=mu[e]??e,r=Object.entries(t.properties),i=t.targetSelector,l=t.duration??0,s=t.position,c=typeof s=="number"?parseFloat(s.toFixed(3)):s,u=r.map(([g,O])=>`${(sl[g]??g).toLowerCase()} to ${dS(g,O)}`),h=u.length>0?u.join(", "):"no properties yet";if(t.method==="set")return`At ${c}s, instantly set ${i}'s ${h}.`;if(t.method==="from")return`Starting at ${c}s, over ${l}s, ${i} enters from ${h} using a ${n.toLowerCase()} curve.`;if(t.method==="fromTo"){const O=Object.entries(t.fromProperties??{}).map(([y,v])=>`${(sl[y]??y).toLowerCase()} ${dS(y,v)}`),x=O.length>0?O.join(", "):"—";return`Starting at ${c}s, over ${l}s, ${i} animates from [${x}] to [${h}] using a ${n.toLowerCase()} curve.`}return`Starting at ${c}s, over ${l}s, animate ${i}'s ${h} using a ${n.toLowerCase()} curve.`}function mf(t){return Math.round(t*100)/100}function QG({ease:t,duration:e,onCustomEaseCommit:n}){const r=t.startsWith("custom("),i=qj[t],l=r?Gj(t):null,s=r&&l?[l.x1,l.y1,l.x2,l.y2]:i??null,[c,u]=d.useState(null),[h,g]=d.useState(null),O=d.useRef(null),x=d.useRef(null),y=d.useRef(0),v=d.useCallback(()=>{const P=performance.now(),Z=1e3,X=Y=>{const J=Math.min((Y-P)/Z,1);g(J),J<1?y.current=requestAnimationFrame(X):setTimeout(()=>g(null),400)};cancelAnimationFrame(y.current),y.current=requestAnimationFrame(X)},[]),w=c??s;if(!w)return null;const[A,k,C,T]=w,$=200,M=100,j=14,E=$-j*2,N=M-j*2,R=(P,Z)=>({x:j+E*P,y:M-j-N*Z}),L=`M${j},${M-j} C${R(A,k).x},${R(A,k).y} ${R(C,T).x},${R(C,T).y} ${$-j},${j}`;let V=j,z=M-j;if(h!==null){const P=h,Z=1-P;V=j+E*(Z*Z*Z*0+3*Z*Z*P*A+3*Z*P*P*C+P*P*P),z=M-j-N*(Z*Z*Z*0+3*Z*Z*P*k+3*Z*P*P*T+P*P*P)}const q=(P,Z)=>{Z.preventDefault(),Z.stopPropagation(),O.current=P,Z.target.setPointerCapture(Z.pointerId),c||u([A,k,C,T])},U=P=>{if(!O.current||!x.current)return;P.preventDefault();const Z=x.current.getBoundingClientRect(),X=(P.clientX-Z.left)/Z.width*$,Y=(P.clientY-Z.top)/Z.height*M,J=Math.max(0,Math.min(1,(X-j)/E)),ne=Math.max(-1,Math.min(2,(M-j-Y)/N)),B=c??[A,k,C,T],re=O.current==="p1"?[mf(J),mf(ne),B[2],B[3]]:[B[0],B[1],mf(J),mf(ne)];u(re)},K=()=>{if(!O.current||!c)return;O.current=null;const P=`M0,0 C${c[0]},${c[1]} ${c[2]},${c[3]} 1,1`;n(`custom(${P})`),u(null)},D=R(A,k),G=R(C,T),H=R(0,0),F=R(1,1),I=r?"Custom curve":mu[t]??t;return m.jsxs("div",{className:"rounded-lg bg-neutral-900/50 p-2",children:[m.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[m.jsx("span",{className:"text-[10px] font-medium text-neutral-500",children:"Speed curve"}),m.jsx("button",{type:"button",onClick:v,className:"rounded px-1.5 py-0.5 text-[10px] font-medium text-emerald-400 transition-colors hover:bg-emerald-500/10",children:h!==null?"Playing…":"Preview"})]}),m.jsx("div",{className:"overflow-hidden rounded pt-[72px] -mt-[72px]",style:{aspectRatio:`${$}/${M}`},children:m.jsxs("svg",{ref:x,width:"100%",height:"100%",viewBox:`0 0 ${$} ${M}`,preserveAspectRatio:"none",style:{overflow:"visible"},className:"touch-none select-none",onPointerMove:U,onPointerUp:K,onPointerCancel:K,children:[m.jsx("line",{x1:j,y1:M-j,x2:$-j,y2:M-j,stroke:"white",strokeOpacity:"0.06",strokeWidth:"0.5"}),m.jsx("line",{x1:j,y1:j,x2:j,y2:M-j,stroke:"white",strokeOpacity:"0.06",strokeWidth:"0.5"}),m.jsx("line",{x1:H.x,y1:H.y,x2:D.x,y2:D.y,stroke:"rgba(52,211,153,0.25)",strokeWidth:"1"}),m.jsx("line",{x1:F.x,y1:F.y,x2:G.x,y2:G.y,stroke:"rgba(52,211,153,0.25)",strokeWidth:"1"}),m.jsx("path",{d:L,fill:"none",stroke:"#34d399",strokeWidth:"2",strokeLinecap:"round"}),h!==null&&m.jsx("circle",{cx:V,cy:z,r:"4",fill:"#34d399"}),m.jsx("circle",{cx:D.x,cy:D.y,r:"5",fill:"#0a0a1a",stroke:"#34d399",strokeWidth:"2",className:"cursor-grab active:cursor-grabbing",onPointerDown:P=>q("p1",P)}),m.jsx("circle",{cx:G.x,cy:G.y,r:"5",fill:"#0a0a1a",stroke:"#34d399",strokeWidth:"2",className:"cursor-grab active:cursor-grabbing",onPointerDown:P=>q("p2",P)}),e!=null&&e>0&&m.jsxs(m.Fragment,{children:[m.jsx("text",{x:j,y:M-1,textAnchor:"start",className:"fill-neutral-600 text-[8px]",children:"0s"}),m.jsxs("text",{x:j+E/2,y:M-1,textAnchor:"middle",className:"fill-neutral-600 text-[8px]",children:[(e/2).toFixed(1),"s"]}),m.jsxs("text",{x:$-j,y:M-1,textAnchor:"end",className:"fill-neutral-600 text-[8px]",children:[e,"s"]})]})]})}),m.jsx("p",{className:"mt-1 text-center text-[10px] text-neutral-500",children:I})]})}const p8=new Set(["visibility"]),ZG=new Set(["filter","clipPath"]),NG=[{label:"Blur",value:"blur(4px)"},{label:"Bright",value:"brightness(1.5)"},{label:"Gray",value:"grayscale(1)"},{label:"None",value:"none"}],RG=[{label:"Circle",value:"circle(50% at 50% 50%)"},{label:"Inset",value:"inset(10%)"},{label:"None",value:"none"}];function zM(t){return JS.has(t)}function VG(t,e){return zM(t)?String(Math.round(Math.max(0,Math.min(1,Number(e)))*100)):String(e)}function _G(t,e){if(zM(t))return String(Oy(t,Number(e)/100));const n=Number(e);return!Number.isNaN(n)&&e7[t]?String(Oy(t,n)):e}function A2({onClick:t,title:e}){return m.jsx("button",{type:"button",onClick:t,className:"flex-shrink-0 rounded p-0.5 text-neutral-600 transition-colors hover:bg-neutral-800 hover:text-red-400",title:e,children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:m.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})})}function hS({prop:t,val:e,onCommit:n,onRemove:r,removeTitle:i}){if(p8.has(t)){const l=e==="visible"||e===1;return m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2 px-2 py-1 rounded-lg bg-neutral-900 border border-neutral-800",children:[m.jsx("span",{className:"flex-1 text-[11px] font-medium text-neutral-500",children:sl[t]??t}),m.jsx("button",{type:"button",onClick:()=>n(l?"hidden":"visible"),className:`flex-shrink-0 w-7 h-4 rounded-full transition-colors relative ${l?"bg-emerald-500/30":"bg-neutral-700"}`,title:l?"Visible — click to hide":"Hidden — click to show",children:m.jsx("span",{className:`absolute top-0.5 h-3 w-3 rounded-full transition-transform ${l?"bg-emerald-400 translate-x-3.5":"bg-neutral-500 translate-x-0.5"}`})})]}),m.jsx(A2,{onClick:r,title:i})]})}if(ZG.has(t)){const l=t==="filter"?NG:t==="clipPath"?RG:[];return m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2 px-2 py-1 rounded-lg bg-neutral-900 border border-neutral-800",children:[m.jsx("span",{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500",children:sl[t]??t}),m.jsx("input",{type:"text",defaultValue:String(e),className:"flex-1 bg-transparent text-[11px] text-neutral-200 outline-none",onBlur:s=>n(s.currentTarget.value),onKeyDown:s=>{s.key==="Enter"&&s.currentTarget.blur()}})]}),m.jsx(A2,{onClick:r,title:i})]}),l.length>0&&m.jsx("div",{className:"flex gap-1 pl-1",children:l.map(s=>m.jsx("button",{type:"button",onClick:()=>n(s.value),className:"px-1.5 py-0.5 rounded text-[9px] font-medium text-neutral-500 bg-neutral-800/50 hover:bg-neutral-800 hover:text-neutral-300 transition-colors",children:s.label},s.value))})]})}return m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"min-w-0 flex-1",children:m.jsx(An,{label:sl[t]??t,value:VG(t,e),suffix:KS[t],tooltip:Ij[t],scrub:!0,liveCommit:!0,onCommit:l=>n(_G(t,l))})}),m.jsx(A2,{onClick:r,title:i})]})}function mS({adding:t,available:e,addLabel:n,addTitle:r,onAdd:i,onOpen:l,onClose:s,buttonClassName:c}){return t&&e.length>0?m.jsxs("select",{autoFocus:!0,className:"min-w-0 rounded-lg border border-neutral-700 bg-neutral-900 px-2 py-1 text-[11px] text-neutral-100 outline-none",defaultValue:"",onChange:u=>{u.target.value&&i(u.target.value),s()},onBlur:s,children:[m.jsx("option",{value:"",disabled:!0,children:"Choose property…"}),e.map(u=>m.jsx("option",{value:u,children:sl[u]??u},u))]}):e.length===0?null:m.jsx("button",{type:"button",onClick:l,className:c,title:r,children:n})}function M2(t){const e=Number(t);return Number.isFinite(e)?e:t}const LG=d.memo(function({animation:e,defaultExpanded:n,onUpdateProperty:r,onUpdateMeta:i,onDeleteAnimation:l,onAddProperty:s,onRemoveProperty:c,onUpdateFromProperty:u,onAddFromProperty:h,onRemoveFromProperty:g,onLivePreview:O,onLivePreviewEnd:x}){var F;const[y,v]=d.useState(n),[w,A]=d.useState(!1),[k,C]=d.useState(!1),T=d.useMemo(()=>new Set(Object.keys(e.properties)),[e.properties]),$=d.useMemo(()=>fS.filter(I=>!T.has(I)&&(e.method==="set"||!p8.has(I))),[T,e.method]),M=d.useMemo(()=>new Set(Object.keys(e.fromProperties??{})),[e.fromProperties]),j=d.useMemo(()=>fS.filter(I=>!M.has(I)&&!p8.has(I)),[M]),E=d.useCallback((I,P)=>{const Z=M2(P);r(e.id,I,Z),x==null||x()},[e.id,r,x]),N=d.useCallback((I,P)=>{O==null||O(I,M2(P))},[O]),R=d.useCallback((I,P)=>{const Z=M2(P);u==null||u(e.id,I,Z),x==null||x()},[e.id,u,x]),L=d.useCallback(I=>{const P=Number(I);Number.isFinite(P)&&P>=0&&i(e.id,{duration:Math.max(0,P)})},[e.id,i]),V=d.useCallback(I=>{const P=Number(I);Number.isFinite(P)&&P>=0&&i(e.id,{position:Math.max(0,P)})},[e.id,i]),[z,q]=d.useState(!1),U=Yj[e.method]??e.method,K=e.ease??"none",D=K.startsWith("custom(")?"Custom curve":mu[K]??K,G=typeof e.position=="number"?e.position+(e.duration??0):e.position,H=d.useMemo(()=>PG(e),[e]);return m.jsxs("div",{className:"border-b border-neutral-800 pb-3",children:[m.jsxs("button",{type:"button",onClick:()=>v(I=>!I),className:"flex w-full items-center gap-2 py-1.5",children:[m.jsx("span",{className:"rounded bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-semibold text-emerald-400",title:WS[e.method],children:U}),m.jsxs("span",{className:"text-[11px] font-medium text-neutral-400",title:"When this effect plays",children:[typeof e.position=="number"?`${parseFloat(e.position.toFixed(3))}s`:e.position," ","– ",typeof G=="number"?`${parseFloat(G.toFixed(3))}s`:G]}),m.jsx("span",{className:"ml-auto text-[10px] text-neutral-500",title:K,children:D}),m.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:`flex-shrink-0 text-neutral-500 transition-transform ${y?"":"-rotate-90"}`,children:m.jsx("path",{d:"M2 3l3 4 3-4z"})})]}),y&&m.jsx("div",{className:"pt-2",children:m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("p",{className:"flex-1 text-[10px] leading-relaxed text-neutral-400 italic",children:H}),m.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(H),q(!0),setTimeout(()=>q(!1),1500)},className:"flex-shrink-0 rounded px-1.5 py-0.5 text-[9px] font-medium text-neutral-500 transition-colors hover:bg-neutral-800 hover:text-neutral-300",title:"Copy description to clipboard — paste into agent prompts",children:z?"Copied":"Copy"})]}),m.jsxs("div",{className:qn,children:[e.method!=="set"&&m.jsx(An,{label:"Length",value:String(Math.max(0,e.duration??0)),suffix:"s",tooltip:"How long this effect lasts",onCommit:L}),m.jsx(An,{label:"Starts at",value:typeof e.position=="string"?e.position:String(parseFloat(Math.max(0,e.position).toFixed(3))),suffix:typeof e.position=="number"?"s":void 0,tooltip:"When this effect begins on the timeline",onCommit:V})]}),e.method!=="set"&&m.jsxs(m.Fragment,{children:[m.jsx(Vn,{label:"Speed",value:(F=e.ease)!=null&&F.startsWith("custom(")?"custom":e.ease??"none",options:[...jG,"custom"],onChange:I=>{if(I==="custom"){const P=hu(e.ease??"power2.out"),Z=`M0,0 C${P.x1},${P.y1} ${P.x2},${P.y2} 1,1`;i(e.id,{ease:`custom(${Z})`})}else i(e.id,{ease:I})}}),m.jsx(QG,{ease:e.ease??"none",duration:e.duration,onCustomEaseCommit:I=>i(e.id,{ease:I})})]}),e.method==="fromTo"&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("p",{className:"text-[9px] font-semibold uppercase tracking-wider text-orange-400/70",children:"From"}),m.jsx("div",{className:"space-y-1.5",children:Object.entries(e.fromProperties??{}).map(([I,P])=>m.jsx(hS,{prop:I,val:P,onCommit:Z=>R(I,Z),onRemove:()=>g==null?void 0:g(e.id,I),removeTitle:`Remove from-${sl[I]??I}`},I))}),m.jsx("div",{className:"pt-0.5",children:m.jsx(mS,{adding:k,available:j,addLabel:"+ From property",addTitle:"Add a from-state property",onAdd:I=>h==null?void 0:h(e.id,I),onOpen:()=>C(!0),onClose:()=>C(!1),buttonClassName:"text-[11px] font-medium text-orange-400/70 transition-colors hover:text-orange-300"})})]}),e.method==="fromTo"&&Object.keys(e.properties).length>0&&m.jsx("p",{className:"text-[9px] font-semibold uppercase tracking-wider text-emerald-400/70",children:"To"}),Object.keys(e.properties).length>0&&m.jsx("div",{className:"space-y-1.5",children:Object.entries(e.properties).map(([I,P])=>m.jsx(hS,{prop:I,val:P,onCommit:Z=>{N(I,Z),E(I,Z)},onRemove:()=>c(e.id,I),removeTitle:`Remove ${sl[I]??I}`},I))}),m.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[m.jsx(mS,{adding:w,available:$,addLabel:"+ Effect",addTitle:"Add another animated property to this effect",onAdd:I=>s(e.id,I),onOpen:()=>A(!0),onClose:()=>A(!1),buttonClassName:"text-[11px] font-medium text-neutral-400 transition-colors hover:text-neutral-200"}),m.jsx("button",{type:"button",onClick:()=>l(e.id),className:"ml-auto text-[11px] font-medium text-red-400 transition-colors hover:text-red-300",title:"Remove this animation",children:"Remove"})]})]})})]})}),DG=d.memo(function({animations:e,multipleTimelines:n,unsupportedTimelinePattern:r,onUpdateProperty:i,onUpdateMeta:l,onDeleteAnimation:s,onAddProperty:c,onRemoveProperty:u,onUpdateFromProperty:h,onAddFromProperty:g,onRemoveFromProperty:O,onAddAnimation:x,onLivePreview:y,onLivePreviewEnd:v}){const[w,A]=d.useState(!1);return m.jsxs(Cr,{title:"Animation",icon:m.jsx(qw,{size:15}),children:[n&&m.jsx("p",{className:"mb-2 rounded-lg bg-amber-500/10 px-3 py-2 text-[11px] leading-relaxed text-amber-400",children:"This file has multiple GSAP timelines. Animation editing is disabled to prevent data loss — consolidate into a single timeline to enable editing."}),r&&m.jsx("p",{className:"mb-2 rounded-lg bg-amber-500/10 px-3 py-2 text-[11px] leading-relaxed text-amber-400",children:"This composition uses a timeline assignment pattern (window.__timelines[...]) that the editor doesn't support. Use a variable declaration (const tl = gsap.timeline()) to enable editing."}),n||r?null:m.jsxs("div",{className:"space-y-2",children:[e.map((k,C)=>m.jsx(LG,{animation:k,defaultExpanded:C===0,onUpdateProperty:i,onUpdateMeta:l,onDeleteAnimation:s,onAddProperty:c,onRemoveProperty:u,onUpdateFromProperty:h,onAddFromProperty:g,onRemoveFromProperty:O,onLivePreview:y,onLivePreviewEnd:v},k.id)),m.jsx("div",{className:"relative pt-1",children:w?m.jsxs("div",{className:"flex gap-1.5",children:[Uj.map(k=>m.jsx("button",{type:"button",title:WS[k],onClick:()=>{x(k),A(!1)},className:"rounded-lg border border-neutral-700 bg-neutral-900 px-2.5 py-1.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:Wj[k]??k},k)),m.jsx("button",{type:"button",onClick:()=>A(!1),className:"px-1.5 text-[11px] text-neutral-500 hover:text-neutral-300",children:"Cancel"})]}):m.jsx("button",{type:"button",onClick:()=>A(!0),className:"text-[11px] font-medium text-neutral-400 transition-colors hover:text-neutral-200",title:"Add a new animation effect to this element",children:"+ Add effect"})})]})]})}),HG=d.memo(function({state:e,onClick:n,title:r,size:i=10}){const l=e==="active",s=e==="ghost"?.25:e==="inactive"?.6:1,c=e==="active"?"#3b82f6":"#a3a3a3";return m.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),n()},className:"flex-shrink-0 p-0.5 transition-opacity hover:opacity-100",style:{color:c,opacity:s},title:r,children:m.jsx("svg",{width:i,height:i,viewBox:"0 0 10 10",children:m.jsx("rect",{x:"5",y:"0.7",width:"6",height:"6",rx:"1",transform:"rotate(45 5 0.7)",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.2"})})})}),C2=.5;function XG({disabled:t}){return m.jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",style:{opacity:t?.25:1},children:m.jsx("path",{d:"M5 1L1 5L5 9",stroke:"#a3a3a3",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function zG({disabled:t}){return m.jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",style:{opacity:t?.25:1},children:m.jsx("path",{d:"M1 1L5 5L1 9",stroke:"#a3a3a3",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const Fs=d.memo(function({property:e,keyframes:n,currentPercentage:r,onSeek:i,onAddKeyframe:l,onRemoveKeyframe:s,onConvertToKeyframes:c}){const u=(n==null?void 0:n.filter(v=>e in v.properties))??[],h=u.filter(v=>v.percentage<r-C2).at(-1)??null,g=u.find(v=>v.percentage>r+C2)??null,O=u.find(v=>Math.abs(v.percentage-r)<=C2)??null;let x;!n||n.length===0?x="ghost":O?x="active":u.length>0?x="inactive":x="ghost";const y=()=>{x==="ghost"?c():x==="active"?s(r):l(r)};return m.jsxs("div",{className:"flex h-5 items-center gap-0.5",children:[m.jsx("button",{type:"button",disabled:!h,onClick:()=>h&&i(h.percentage),className:"flex h-5 w-3 items-center justify-center disabled:cursor-default",children:m.jsx(XG,{disabled:!h})}),m.jsx(HG,{state:x,onClick:y,size:9,title:x==="ghost"?`Convert ${e} to keyframes`:x==="active"?`Remove ${e} keyframe`:`Add ${e} keyframe`}),m.jsx("button",{type:"button",disabled:!g,onClick:()=>g&&i(g.percentage),className:"flex h-5 w-3 items-center justify-center disabled:cursor-default",children:m.jsx(zG,{disabled:!g})})]})});function E2(t){return!Number.isFinite(t)||t<0?"0.00s":`${t.toFixed(2)}s`}function T2(t){const e=t.replace(/s$/i,"").trim(),n=Number.parseFloat(e);return Number.isFinite(n)&&n>=0?n:null}function FG({element:t,onSetAttribute:e}){const n=Number.parseFloat(t.dataAttributes.start??"0")||0,r=Number.parseFloat(t.dataAttributes.duration??t.dataAttributes["hf-authored-duration"]??"0")||0,i=n+r,l=u=>{const h=T2(u);h!=null&&e("start",h.toFixed(2))},s=u=>{const h=T2(u);h==null||h<=0||e("duration",h.toFixed(2))},c=u=>{const h=T2(u);h==null||h<=n||e("duration",(h-n).toFixed(2))};return m.jsxs(Cr,{title:"Timing",icon:m.jsx(HV,{size:15}),children:[m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Start",value:E2(n),onCommit:l}),m.jsx(An,{label:"End",value:E2(i),onCommit:c})]}),m.jsx("div",{className:"mt-3",children:m.jsx(An,{label:"Duration",value:E2(r),onCommit:s})})]})}const BG=d.memo(function({projectId:e,projectDir:n,assets:r,element:i,multiSelectCount:l=0,copiedAgentPrompt:s,onClearSelection:c,onSetStyle:u,onSetAttribute:h,onSetHtmlAttribute:g,onSetManualOffset:O,onSetManualSize:x,onSetManualRotation:y,onSetText:v,onSetTextFieldStyle:w,onAddTextField:A,onRemoveTextField:k,onAskAgent:C,onImportAssets:T,fontAssets:$=[],onImportFonts:M,previewIframeRef:j,gsapAnimations:E=[],gsapMultipleTimelines:N,gsapUnsupportedTimelinePattern:R,onUpdateGsapProperty:L,onUpdateGsapMeta:V,onDeleteGsapAnimation:z,onAddGsapProperty:q,onRemoveGsapProperty:U,onUpdateGsapFromProperty:K,onAddGsapFromProperty:D,onRemoveGsapFromProperty:G,onAddGsapAnimation:H,onAddKeyframe:F,onRemoveKeyframe:I,onConvertToKeyframes:P,onCommitAnimatedProperty:Z,onSeekToTime:X}){var on,Rt,we,ht,Mt,ot;const Y=(i==null?void 0:i.computedStyles)??Dq;if(!i)return m.jsx("div",{className:"flex h-full flex-col bg-neutral-900",children:m.jsx("div",{className:"flex flex-1 flex-col items-center justify-center px-6 text-center",children:l>1?m.jsxs(m.Fragment,{children:[m.jsx(Hf,{size:18,className:"mb-3 text-neutral-600"}),m.jsxs("p",{className:"text-sm font-medium text-neutral-200",children:[l," elements selected"]}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"Select a single element to edit its properties. Click an element in the preview or use the timeline layer panel."})]}):m.jsxs(m.Fragment,{children:[m.jsx(Iw,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"Select an element in the preview."}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"The inspector is tuned for element edits with safer geometry controls, color picking, and cleaner grouped layer controls."})]})})});const J=!i.capabilities.canApplyManualOffset,ne=!i.capabilities.canApplyManualSize,B=i.id?`#${i.id}`:i.selector,re=i.capabilities.canEditStyles,ae=ng(i.element),ue=Vf(i.element),me=ue.width>0?ue.width:ta(Y.width??"")??i.boundingBox.width,ye=ue.height>0?ue.height:ta(Y.height??"")??i.boundingBox.height,Oe=(ve,ze)=>{const Ze=ta(ze);if(Ze==null)return;if(Z&&(Ye||E.length>0)){Z(i,ve,Ze);return}if(_e&&Ye&&F){const vt=Math.max(0,Math.min(100,Math.round(yt*10)/10));F(Ye,vt,ve,Ze);return}const Be=ng(i.element);O(i,{x:ve==="x"?Ze:Be.x,y:ve==="y"?Ze:Be.y})},Se=(ve,ze)=>{const Ze=ta(ze);if(Ze==null||Ze<=0)return;const Be=Vf(i.element),vt=Be.width>0?Be.width:ta(Y.width??"")??i.boundingBox.width,lt=Be.height>0?Be.height:ta(Y.height??"")??i.boundingBox.height;x(i,{width:ve==="width"?Ze:vt,height:ve==="height"?Ze:lt})},Ae=uw(i.element),Me=ve=>{const ze=Number.parseFloat(ve);Number.isFinite(ze)&&y(i,{angle:ze})},Ve=Number.parseFloat(((on=i==null?void 0:i.dataAttributes)==null?void 0:on.start)??"0")||0,Pe=Number.parseFloat(((Rt=i==null?void 0:i.dataAttributes)==null?void 0:Rt.duration)??"1")||0,ft=fe(ve=>ve.currentTime),yt=Pe>0?(ft-Ve)/Pe*100:0,_e=((ht=(we=E==null?void 0:E.find(ve=>ve.keyframes))==null?void 0:we.keyframes)==null?void 0:ht.keyframes)??null,Ye=((Mt=E==null?void 0:E.find(ve=>ve.keyframes))==null?void 0:Mt.id)??((ot=E==null?void 0:E[0])==null?void 0:ot.id)??null,Le=(()=>{var Ze;if(!Ye||E.length===0)return null;const ve=j==null?void 0:j.current;if(!(ve!=null&&ve.contentWindow))return null;const ze=i.id?`#${i.id}`:i.selector;if(!ze)return null;try{const Be=ve.contentWindow.gsap;if(!(Be!=null&&Be.getProperty))return null;const vt=(Ze=ve.contentDocument)==null?void 0:Ze.querySelector(ze);if(!vt)return null;const lt=new Set;for(const mt of E){if(mt.keyframes)for(const Tt of mt.keyframes.keyframes)for(const cn of Object.keys(Tt.properties))lt.add(cn);for(const Tt of Object.keys(mt.properties))lt.add(Tt)}const Je={};for(const mt of lt){const Tt=Number(Be.getProperty(vt,mt));Number.isFinite(Tt)&&(Je[mt]=Math.round(Tt*100)/100)}return Object.keys(Je).length>0?Je:null}catch{return null}})(),be=(Le==null?void 0:Le.x)??ae.x,dt=(Le==null?void 0:Le.y)??ae.y,Ue=(Le==null?void 0:Le.width)??me,bt=(Le==null?void 0:Le.height)??ye,Re=(Le==null?void 0:Le.rotation)??Ae.angle;return m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900 text-neutral-100",children:[m.jsxs("div",{className:"border-b border-neutral-800 px-4 py-5",children:[m.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:Kt,children:"Document"}),m.jsx("div",{className:"mt-3 truncate text-[12px] font-semibold text-neutral-100",children:i.label}),m.jsx("div",{className:"mt-1 truncate text-[11px] text-neutral-500",children:B})]}),m.jsx("button",{type:"button","aria-label":"Clear selection",onClick:c,className:"flex h-9 w-9 items-center justify-center rounded-full border border-neutral-700 bg-neutral-950 text-neutral-500 shadow-[0_1px_2px_rgba(0,0,0,0.2)] transition-colors hover:border-neutral-600 hover:text-neutral-200",children:m.jsx(Cd,{size:13})})]}),m.jsx("div",{className:"mt-4 flex min-w-0 flex-wrap items-center gap-2",children:m.jsxs("button",{type:"button",onClick:C,className:"inline-flex h-8 items-center justify-center gap-2 rounded-xl border border-neutral-700 bg-neutral-950 px-3.5 text-[11px] font-medium text-neutral-100 transition-colors hover:border-studio-accent/40 hover:text-studio-accent",children:[m.jsx(XV,{size:15}),m.jsx("span",{children:s?"Prompt copied":"Copy prompt to AI agent"})]})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto",children:[m.jsx($G,{element:i,styles:Y,fontAssets:$,onImportFonts:M,onSetText:v,onSetTextFieldStyle:w,onAddTextField:A,onRemoveTextField:k}),i.dataAttributes.start!=null&&m.jsx(FG,{element:i,onSetAttribute:h}),eG(i)&&m.jsx(tG,{projectDir:n,element:i,styles:Y,onSetStyle:u,onSetAttribute:h,onSetHtmlAttribute:g}),m.jsxs(Cr,{title:"Layout",icon:m.jsx(zV,{size:15}),children:[m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"X",value:zl(be),disabled:J,scrub:!0,onCommit:ve=>Oe("x",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"x",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"x",be),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"Y",value:zl(dt),disabled:J,scrub:!0,onCommit:ve=>Oe("y",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"y",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"y",dt),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"W",value:zl(Ue),disabled:ne,scrub:!0,onCommit:ve=>Se("width",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"width",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"width",Ue),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"H",value:zl(bt),disabled:ne,scrub:!0,onCommit:ve=>Se("height",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"height",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"height",bt),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),i.capabilities.canApplyManualSize&&m.jsx("button",{type:"button",className:"flex-shrink-0 rounded p-1 text-neutral-500 transition-colors hover:bg-neutral-800 hover:text-neutral-300",title:"Fit to children",onClick:()=>{const ve=Kq(i);ve&&x(i,ve)},children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.2",children:[m.jsx("rect",{x:"2",y:"2",width:"10",height:"10",strokeDasharray:"2 1.5",rx:"1"}),m.jsx("path",{d:"M2 4.5h1m-1 5h1m8-5h1m-1 5h1M4.5 2v1m5-1v1M4.5 11v1m5-1v1"})]})}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"R",value:`${Re}°`,onCommit:ve=>Me(ve.replace("°",""))})}),Ja&&Ye&&m.jsx(Fs,{property:"rotation",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"rotation",Re),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]})]}),Le&&m.jsxs("div",{className:"mt-3 border-t border-neutral-800/40 pt-3",children:[m.jsx("div",{className:"mb-2 text-[10px] font-medium uppercase tracking-wider text-neutral-600",children:"3D Transform"}),m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"Z",value:zl(Le.z??0),scrub:!0,onCommit:ve=>{const ze=ta(ve);ze!=null&&Z&&Z(i,"z",ze)}})}),Ja&&(Ye||Z)&&m.jsx(Fs,{property:"z",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>{Z&&Z(i,"z",(Le==null?void 0:Le.z)??0)},onRemoveKeyframe:ve=>Ye&&(I==null?void 0:I(Ye,ve)),onConvertToKeyframes:()=>Ye&&(P==null?void 0:P(Ye))})]}),m.jsx(An,{label:"Scale",value:String(Le.scale??1),scrub:!0,onCommit:ve=>{const ze=Number.parseFloat(ve);Number.isFinite(ze)&&Z&&Z(i,"scale",ze)}}),m.jsx(An,{label:"RotX",value:`${Le.rotationX??0}°`,onCommit:ve=>{const ze=Number.parseFloat(ve.replace("°",""));Number.isFinite(ze)&&Z&&Z(i,"rotationX",ze)}}),m.jsx(An,{label:"RotY",value:`${Le.rotationY??0}°`,onCommit:ve=>{const ze=Number.parseFloat(ve.replace("°",""));Number.isFinite(ze)&&Z&&Z(i,"rotationY",ze)}})]})]}),m.jsxs("div",{className:"mt-3",children:[m.jsx("div",{className:"mb-2 text-[10px] font-medium uppercase tracking-wider text-neutral-600",children:"Stacking"}),m.jsx(An,{label:"Z-index",value:String(parseInt(Y["z-index"]||"auto",10)||0),scrub:!0,onCommit:ve=>u("z-index",ve)})]})]}),Y2&&L&&V&&z&&q&&H&&m.jsx(DG,{animations:E,multipleTimelines:N,unsupportedTimelinePattern:R,onUpdateProperty:L,onUpdateMeta:V,onDeleteAnimation:z,onAddProperty:q,onRemoveProperty:U??(()=>{}),onUpdateFromProperty:K,onAddFromProperty:D,onRemoveFromProperty:G,onAddAnimation:H}),re&&m.jsx(kG,{projectId:e,element:i,styles:Y,assets:r,onSetStyle:u,onImportAssets:T})]})]})}),FM="min-w-0 rounded-xl border border-neutral-800 bg-neutral-900/95 px-3 py-2 text-neutral-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)] transition-colors focus-within:border-neutral-600",D6="text-[11px] font-medium uppercase tracking-[0.18em] text-neutral-500",pS="grid grid-cols-[repeat(auto-fit,minmax(118px,1fr))] gap-3";function $2(t){const e=Math.round(t*100)/100;return Number.isInteger(e)?`${e}`:e.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}function j2(t,e,n,r){return t==null||!Number.isFinite(t)?r:Math.min(n,Math.max(e,t))}function P2(t){const e=Number.parseFloat(t.trim());return Number.isFinite(e)?e:null}function YG({value:t,disabled:e,onCommit:n}){const[r,i]=d.useState(t),l=d.useRef(!1);d.useEffect(()=>{l.current||i(t)},[t]);const s=()=>{l.current=!1;const c=r.trim();c!==t&&n(c)};return m.jsx("input",{type:"text",value:r,disabled:e,onFocus:()=>{l.current=!0},onChange:c=>i(c.target.value),onBlur:s,onKeyDown:c=>{c.key==="Enter"&&c.target.blur()},className:"w-full min-w-0 bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600"})}function pf({label:t,value:e,disabled:n,onCommit:r}){return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:D6,children:t}),m.jsx("div",{className:FM,children:m.jsx(YG,{value:e,disabled:n,onCommit:r})})]})}function IG({value:t,options:e,onChange:n}){return m.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-2xl border border-neutral-800 bg-neutral-950 p-1",children:e.map(r=>m.jsx("button",{type:"button",onClick:()=>n(r.value),className:`h-9 rounded-xl text-[11px] font-semibold transition-colors ${r.value===t?"bg-neutral-800 text-white shadow-sm":"text-neutral-500 hover:bg-neutral-900 hover:text-neutral-200"}`,children:r.label},r.value))})}function gS({label:t,value:e,options:n,onChange:r}){return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:D6,children:t}),m.jsx("div",{className:FM,children:m.jsx("select",{value:e,onChange:i=>r(i.target.value),className:"w-full min-w-0 appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none",children:n.map(i=>m.jsx("option",{value:i,children:i},i))})})]})}function OS({title:t,children:e,accessory:n}){return m.jsxs("section",{className:"border-b border-neutral-800 px-4 py-5",children:[m.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(B8,{size:15,className:"text-neutral-500"}),m.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-neutral-300",children:t})]}),n]}),e]})}function gf(t){const e=Math.round(t*100)/100;return Number.isInteger(e)?`${e}`:e.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}function qG(t,e){const n=1-t,r=n*n,i=t*t;return{x:3*r*t*e.x1+3*n*i*e.x2+i*t,y:3*r*t*e.y1+3*n*i*e.y2+i*t}}function GG(t,e){const n=[];for(let r=0;r<=48;r+=1){const i=e(qG(r/48,t));n.push(`${r===0?"M":"L"}${i.x.toFixed(2)},${i.y.toFixed(2)}`)}return n.join(" ")}function UG({points:t,onCommit:e}){const n=d.useRef(null),[r,i]=d.useState(t),l=d.useRef(null);d.useEffect(()=>{i(t)},[t]);const s=324,c=214,u={left:46,top:24,width:242,height:146},h=-.4,g=1.4,O=M=>({x:u.left+M.x*u.width,y:u.top+(g-M.y)/(g-h)*u.height}),x=M=>{var R;const j=(R=n.current)==null?void 0:R.getBoundingClientRect();if(!j)return null;const E=(M.clientX-j.left)/j.width*s,N=(M.clientY-j.top)/j.height*c;return C8({x1:l.current==="p1"?(E-u.left)/u.width:r.x1,y1:l.current==="p1"?g-(N-u.top)/u.height*(g-h):r.y1,x2:l.current==="p2"?(E-u.left)/u.width:r.x2,y2:l.current==="p2"?g-(N-u.top)/u.height*(g-h):r.y2})},y=O({x:0,y:0}),v=O({x:1,y:1}),w=O({x:r.x1,y:r.y1}),A=O({x:r.x2,y:r.y2}),k=GG(r,O),C=M=>{if(!l.current)return;M.preventDefault();const j=x(M);j&&i(j)},T=()=>{l.current&&(l.current=null,e(r))},$=(M,j)=>{j.preventDefault(),j.stopPropagation(),l.current=M,j.currentTarget.setPointerCapture(j.pointerId)};return m.jsxs("div",{className:"overflow-hidden rounded-2xl border border-neutral-800 bg-black/40",children:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-800 px-3 py-2",children:[m.jsxs("div",{children:[m.jsx("div",{className:D6,children:"CustomEase"}),m.jsx("div",{className:"mt-1 font-mono text-[10px] text-neutral-500",children:GS(r)})]}),m.jsxs("button",{type:"button",onClick:()=>{const M=hu("power3.out");i(M),e(M)},className:"inline-flex h-8 items-center justify-center gap-2 rounded-xl border border-neutral-800 bg-neutral-950 px-3 text-[10px] font-semibold uppercase tracking-[0.14em] text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-100",children:[m.jsx(Y8,{size:13}),"Reset"]})]}),m.jsxs("svg",{ref:n,viewBox:`0 0 ${s} ${c}`,className:"block w-full select-none touch-none",onPointerMove:C,onPointerUp:T,onPointerCancel:T,children:[m.jsx("rect",{x:"0",y:"0",width:s,height:c,fill:"transparent"}),[0,.5,1].map(M=>{const j=O({x:0,y:M});return m.jsxs("g",{children:[m.jsx("line",{x1:u.left,x2:u.left+u.width,y1:j.y,y2:j.y,stroke:"rgba(255,255,255,0.12)",strokeDasharray:"5 8"}),m.jsx("text",{x:u.left-12,y:j.y+4,textAnchor:"end",className:"fill-neutral-500 text-[10px] font-semibold",children:M})]},M)}),m.jsx("line",{x1:u.left,x2:u.left+u.width,y1:u.top+u.height,y2:u.top+u.height,stroke:"rgba(255,255,255,0.18)"}),m.jsx("line",{x1:u.left,x2:u.left,y1:u.top,y2:u.top+u.height,stroke:"rgba(255,255,255,0.18)"}),m.jsx("line",{x1:y.x,y1:y.y,x2:w.x,y2:w.y,stroke:"rgba(255,221,87,0.34)"}),m.jsx("line",{x1:v.x,y1:v.y,x2:A.x,y2:A.y,stroke:"rgba(255,221,87,0.34)"}),m.jsx("path",{d:k,fill:"none",stroke:"#ffdd57",strokeWidth:"4",strokeLinecap:"round"}),m.jsx("circle",{cx:y.x,cy:y.y,r:"5",fill:"#ffdd57"}),m.jsx("circle",{cx:v.x,cy:v.y,r:"5",fill:"#ffdd57"}),m.jsx("circle",{cx:w.x,cy:w.y,r:"9",fill:"#141414",stroke:"#ffdd57",strokeWidth:"4",className:"cursor-grab active:cursor-grabbing",onPointerDown:M=>$("p1",M)}),m.jsx("circle",{cx:A.x,cy:A.y,r:"9",fill:"#141414",stroke:"#ffdd57",strokeWidth:"4",className:"cursor-grab active:cursor-grabbing",onPointerDown:M=>$("p2",M)}),m.jsx("text",{x:w.x+12,y:w.y-10,className:"fill-neutral-400 text-[10px] font-semibold",children:"P1"}),m.jsx("text",{x:A.x+12,y:A.y-10,className:"fill-neutral-400 text-[10px] font-semibold",children:"P2"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2 border-t border-neutral-800 p-3",children:[m.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-950 px-3 py-2 font-mono text-[10px] text-neutral-400",children:["P1 ",gf(r.x1),", ",gf(r.y1)]}),m.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-950 px-3 py-2 font-mono text-[10px] text-neutral-400",children:["P2 ",gf(r.x2),", ",gf(r.y2)]})]})]})}const WG=[{label:"Fade Up",value:"fade-up"},{label:"Slide",value:"slide"},{label:"Pop",value:"pop"}],KG=["up","down","left","right"];function JG(t){return t?Math.max(Math.abs(t.from.x??0),Math.abs(t.from.y??0),1):32}function eU(t){return t?t.from.scale!=null||t.to.scale!=null?"pop":t.from.x!=null||t.to.x!=null?"slide":"fade-up":"fade-up"}function tU(t){if(!t)return"up";const e=t.from.x??0,n=t.from.y??0;return Math.abs(e)>Math.abs(n)?e<0?"right":"left":n<0?"down":"up"}function xS(t){return`studio-${(t.id||t.selector||t.label||"layer").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"layer"}-ease`}const nU=d.memo(function({element:e,motion:n,onClearSelection:r,onSetMotion:i,onClearMotion:l}){var $;const s=eU(n),c=tU(n),u=(n==null?void 0:n.start)??0,h=(n==null?void 0:n.duration)??.6,g=JG(n),O=(n==null?void 0:n.ease)??"power3.out",x=(($=n==null?void 0:n.customEase)==null?void 0:$.data)??"",y=x.trim().length>0,v=d.useMemo(()=>py(x)??hu(v1.includes(O)?O:"power3.out"),[O,x]);if(!e)return m.jsxs("div",{className:"flex h-full flex-col items-center justify-center bg-neutral-900 px-6 text-center",children:[m.jsx(B8,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"Select an element for motion."}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"Timeline layers and inspector selections can receive Studio-authored GSAP motion."})]});const w=e.id?`#${e.id}`:e.selector,A=y?"CustomEase":v1.includes(O)?O:"power3.out",k=y?["CustomEase",...v1]:v1,C=M=>{var R;const j=M.customEaseData??x,E=j.trim()?{id:((R=n==null?void 0:n.customEase)==null?void 0:R.id)??xS(e),data:j.trim()}:void 0,N=E?E.id:(M.ease??O).trim()||"none";i(e,Dj(M.preset??s,{start:j2(M.start??u,0,3600,0),duration:j2(M.duration??h,.01,3600,.6),distance:j2(M.distance??g,1,2e3,32),direction:M.direction??c,ease:N,customEase:E}))},T=M=>{C({ease:xS(e),customEaseData:GS(M)})};return m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900 text-neutral-100",children:[m.jsx("div",{className:"border-b border-neutral-800 px-4 py-5",children:m.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.18em] text-neutral-500",children:"Motion Target"}),m.jsx("div",{className:"mt-3 truncate text-[12px] font-semibold text-neutral-100",children:e.label}),m.jsx("div",{className:"mt-1 truncate text-[11px] text-neutral-500",children:w})]}),m.jsx("button",{type:"button","aria-label":"Clear selection",onClick:r,className:"flex h-9 w-9 items-center justify-center rounded-full border border-neutral-700 bg-neutral-950 text-neutral-500 shadow-[0_1px_2px_rgba(0,0,0,0.2)] transition-colors hover:border-neutral-600 hover:text-neutral-200",children:m.jsx(Cd,{size:13})})]})}),m.jsxs("div",{className:"flex-1 overflow-y-auto",children:[m.jsx(OS,{title:"GSAP Motion",accessory:m.jsx("div",{className:"rounded-full border border-studio-accent/40 bg-studio-accent/10 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.16em] text-studio-accent",children:"GSAP"}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(IG,{value:s,onChange:M=>C({preset:M}),options:WG}),m.jsxs("div",{className:pS,children:[m.jsx(gS,{label:"Direction",value:c,onChange:M=>C({direction:M}),options:KG}),m.jsx(gS,{label:"Ease",value:A,onChange:M=>{M!=="CustomEase"&&C({ease:M,customEaseData:""})},options:k})]}),m.jsxs("div",{className:pS,children:[m.jsx(pf,{label:"Start",value:$2(u),onCommit:M=>C({start:P2(M)??0})}),m.jsx(pf,{label:"Duration",value:$2(h),onCommit:M=>C({duration:P2(M)??.6})}),m.jsx(pf,{label:"Distance",value:$2(g),onCommit:M=>C({distance:P2(M)??32})})]})]})}),m.jsx(OS,{title:"Ease Curve",accessory:m.jsx("div",{className:"rounded-full border border-yellow-400/30 bg-yellow-400/10 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.16em] text-yellow-300",children:"CustomEase"}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(UG,{points:v,onCommit:T}),m.jsx(pf,{label:"CustomEase path",value:x,onCommit:M=>{const j=py(M);j&&T(j)}}),m.jsx("div",{className:"flex justify-end",children:m.jsx("button",{type:"button",onClick:()=>l(e),disabled:!n,className:"inline-flex h-8 items-center rounded-xl border border-neutral-700 bg-neutral-950 px-3 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:border-neutral-800 disabled:text-neutral-600",children:"Clear motion"})})]})})]})]})}),rU=4;function BM(t){if(!(t.selector||t.id))return!1;let e=t.element;for(;e;){if(e.hasAttribute("data-timeline-locked"))return!1;e=e.parentElement}return!0}function iU(t,e){const n=t[e].depth,r=[];let i=e;for(;i>0;)if(i--,t[i].depth<n){i++;break}for(let l=i;l<t.length;l++){const s=t[l].depth;if(s<n)break;s===n&&r.push(l)}return r}function aU(t,e){const n=t.querySelectorAll("[data-layer-index]"),r=[];for(const i of e)for(const l of n)if(l.dataset.layerIndex===String(i)){r.push(l.getBoundingClientRect());break}return r}function lU(t,e){if(e.length===0||t<=e[0].top+e[0].height/2)return 0;for(let r=0;r<e.length-1;r++){const i=(e[r].bottom+e[r+1].top)/2;if(t<=i)return r+1}const n=e[e.length-1];return t<=n.top+n.height/2?e.length-1:e.length}function sU(t,e,n){return e.length===0?null:t<=0?e[0].top-n.top:t>=e.length?e[e.length-1].bottom-n.top:e[t].top-n.top}function oU({visibleLayers:t,scrollContainerRef:e,onReorder:n,onSingleSibling:r}){const i=d.useRef(null),[l,s]=d.useState(null),[c,u]=d.useState(null),h=d.useCallback((x,y)=>{if(y.button!==0)return;const v=t[x];if(!v||!BM(v))return;const w=iU(t,x);if(w.length<=1){r==null||r();return}const A=w.indexOf(x);if(A===-1)return;const k=e.current;k&&(y.preventDefault(),k.setPointerCapture(y.pointerId),i.current={pointerId:y.pointerId,startY:y.clientY,dragLayerIndex:x,siblingIndices:w,fromSiblingPos:A,insertSiblingPos:A,siblingRects:aU(k,w),activated:!1})},[t,e,r]),g=d.useCallback(x=>{var A;const y=i.current;if(!y)return;if(!y.activated){if(Math.abs(x.clientY-y.startY)<rU)return;y.activated=!0,s(((A=t[y.dragLayerIndex])==null?void 0:A.key)??null)}const v=lU(x.clientY,y.siblingRects);y.insertSiblingPos=v;const w=e.current;if(w){const k=w.getBoundingClientRect();u(sU(v,y.siblingRects,k))}},[t,e]),O=d.useCallback(()=>{const x=i.current;if(i.current=null,s(null),u(null),!x||!x.activated)return;const y=e.current;if(y)try{y.releasePointerCapture(x.pointerId)}catch{}let v=x.insertSiblingPos;if(v>x.fromSiblingPos&&v--,v===x.fromSiblingPos)return;const w=x.siblingIndices.map(A=>t[A]);n({siblingLayers:w,fromIndex:x.fromSiblingPos,toIndex:v})},[t,e,n]);return{dragKey:l,insertionLineY:c,handleRowPointerDown:h,handleContainerPointerMove:g,handleContainerPointerUp:O}}const cU={video:"Vi",audio:"Au",img:"Im",svg:"Sv",canvas:"Cn",div:"Di",section:"Se",span:"Sp",p:"P",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",a:"A",button:"Bt",ul:"Ul",ol:"Ol",li:"Li",style:"St",template:"Te"};function uU(t){return cU[t]??t.slice(0,2).toUpperCase()}function fU(t){return t.hasAttribute("data-composition-src")||t.hasAttribute("data-composition-file")}const dU=d.memo(function(){const{previewIframeRef:e,activeCompPath:n,refreshKey:r,compositionLoading:i,timelineElements:l,currentTime:s,showToast:c}=No(),{domEditSelection:u,applyDomSelection:h,updateDomEditHoverSelection:g,handleDomZIndexReorderCommit:O}=Ed(),[x,y]=d.useState([]),[v,w]=d.useState({}),A=d.useRef(0),k=d.useRef(null),C=!n||n==="index.html",T=d.useCallback(()=>{const H=e.current;if(!H)return;let F=null;try{F=H.contentDocument}catch{return}if(!F)return;const I=F.querySelector("[data-composition-id]")??F.documentElement??null;if(!I)return;const P=rR(I,{activeCompositionPath:n});y(O8(P))},[e,n,C]);d.useEffect(()=>{T()},[T,r]),d.useEffect(()=>{const H=e.current;if(!H)return;const F=()=>{A.current+=1,T()};return H.addEventListener("load",F),()=>H.removeEventListener("load",F)},[e,T]),d.useEffect(()=>{if(!i){const H=setTimeout(T,100);return()=>clearTimeout(H)}},[i,T]);const $=d.useCallback(H=>Tw(H.element,{activeCompositionPath:n,isMasterView:C,preferClipAncestor:!1}),[n,C]),M=d.useCallback(async H=>{const F=await $(H);if(!F)return;let I=lg(F,l);if(!I){const P=F.sourceFile??"index.html";let Z=H.element.parentElement;for(;Z&&!I;){const X=Z.id;if(X){const Y=l.find(J=>J.domId===X&&(J.sourceFile??"index.html")===P);Y&&(I=Y.key??Y.id)}Z=Z.parentElement}}if(I){const P=l.find(Z=>(Z.key??Z.id)===I);if(P){const Z=QN(s,P);Z!=null&&fe.getState().requestSeek(Z)}}},[s,$,l]),j=d.useCallback(async H=>{const F=await $(H);F&&(h(F),await M(H))},[$,h,M]),E=d.useCallback(async H=>{if(!H){g(null);return}const F=await $(H);g(F)},[$,g]),N=d.useCallback((H,F)=>{F.stopPropagation(),w(I=>({...I,[H]:!I[H]}))},[]),R=d.useCallback(H=>{const{siblingLayers:F,fromIndex:I,toIndex:P}=H,Z=[...F],[X]=Z.splice(I,1);Z.splice(P,0,X);const J=[...F.map(ae=>g8(ae.element))].sort((ae,ue)=>ue-ae),B=J.some((ae,ue)=>ue>0&&ae===J[ue-1])?Z.map((ae,ue)=>Z.length-ue):J,re=Z.map((ae,ue)=>({element:ae.element,zIndex:B[ue],id:ae.id,selector:ae.selector,selectorIndex:ae.selectorIndex,sourceFile:ae.sourceFile}));O(re)},[O]),L=u?$w(u):null,V=hU(x,v),z=d.useCallback(()=>{c("Only one layer at this level","info")},[c]),{dragKey:q,insertionLineY:U,handleRowPointerDown:K,handleContainerPointerMove:D,handleContainerPointerUp:G}=oU({visibleLayers:V,scrollContainerRef:k,onReorder:R,onSingleSibling:z});return x.length===0?m.jsxs("div",{className:"flex h-full flex-col items-center justify-center bg-neutral-900 px-6 text-center",children:[m.jsx(Hf,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"No layers"}),m.jsx("p",{className:"mt-1 text-xs text-neutral-500",children:"Load a composition to see its element tree"})]}):m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900",onPointerLeave:()=>E(null),children:[m.jsxs("div",{className:"border-b border-white/10 px-3 py-2 text-[11px] text-neutral-500",children:[x.length," layer",x.length===1?"":"s"]}),m.jsxs("div",{ref:k,className:"relative min-h-0 flex-1 overflow-y-auto py-1",onPointerMove:D,onPointerUp:G,onPointerCancel:G,children:[V.map((H,F)=>{const I=H.key===L,P=H.key===q,Z=BM(H),X=v[H.key]??!1,Y=H.childCount>0,J=fU(H.element);return m.jsxs("div",{"data-layer-index":F,role:"button",tabIndex:0,onClick:()=>!q&&j(H),onPointerDown:ne=>K(F,ne),onPointerEnter:()=>!q&&E(H),onKeyDown:ne=>{(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),j(H))},className:`group flex w-full items-center gap-1.5 px-2 py-1 text-left transition-colors ${P?"opacity-40":I?"bg-studio-accent/14 text-studio-accent":"text-neutral-300 hover:bg-white/[0.04] hover:text-neutral-100"} ${q?"cursor-grabbing":Z?"cursor-pointer":"cursor-not-allowed opacity-50"}`,style:{paddingLeft:8+H.depth*16},children:[Y?m.jsx("button",{type:"button",onClick:ne=>N(H.key,ne),className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded text-neutral-500 hover:text-neutral-300",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:`transition-transform ${X?"":"rotate-90"}`,children:m.jsx("path",{d:"M2 1l4 3-4 3z"})})}):m.jsx("span",{className:"w-4 flex-shrink-0"}),m.jsx("span",{className:`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded text-[8px] font-bold uppercase ${I?"bg-studio-accent/18 text-studio-accent":J?"bg-blue-900/40 text-blue-400":"bg-neutral-800 text-neutral-500"}`,children:uU(H.tagName)}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px]",children:H.label}),Y&&m.jsx("span",{className:"text-[9px] tabular-nums text-neutral-600",children:H.childCount})]},H.key)}),U!=null&&m.jsx("div",{className:"pointer-events-none absolute left-2 right-2 h-0.5 bg-studio-accent",style:{top:U}})]})]})});function g8(t){var e,n;try{const r=(e=t.style)==null?void 0:e.zIndex;if(r&&r!=="auto"){const c=parseInt(r,10);if(Number.isFinite(c))return c}const i=(n=t.ownerDocument)==null?void 0:n.defaultView;if(!i)return 0;const l=i.getComputedStyle(t).zIndex;if(l==="auto"||l==="")return 0;const s=parseInt(l,10);return Number.isFinite(s)?s:0}catch{return 0}}function O8(t){if(t.length<=1)return t;const e=t[0].depth;for(let i=1;i<t.length;i++)if(t[i].depth<e)return t;const n=[];for(let i=0;i<t.length;i++)if(t[i].depth===e){const l=[];let s=i+1;for(;s<t.length&&t[s].depth>e;)l.push(t[s]),s++;n.push({root:t[i],children:l,domIndex:n.length})}if(n.length<=1){if(n.length===1&&n[0].children.length>0){const i=O8(n[0].children);return[n[0].root,...i]}return t}n.sort((i,l)=>{const s=g8(i.root.element),c=g8(l.root.element);return s!==c?c-s:l.domIndex-i.domIndex});const r=[];for(const i of n)r.push(i.root),i.children.length>0&&r.push(...O8(i.children));return r}function hU(t,e){if(Object.keys(e).length===0)return t;const n=[];let r=-1;for(const i of t)r>=0&&i.depth>r||(r=-1,n.push(i),e[i.key]&&i.childCount>0&&(r=i.depth));return n}const ll="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 x8({label:t,children:e}){return m.jsxs("div",{className:"mb-3",children:[m.jsx("div",{className:"flex items-center gap-1.5 mt-2 mb-1.5",children:m.jsx("span",{className:"text-2xs font-medium text-neutral-500 uppercase tracking-wider",children:t})}),m.jsx("div",{className:"space-y-1",children:e})]})}function ia({label:t,children:e}){return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-2xs text-neutral-600 w-14 text-right flex-shrink-0",children:t}),m.jsx("div",{className:"flex-1 min-w-0",children:e})]})}const mU=["none","fade","slide-up","slide-down","slide-left","slide-right","pop","slam","bounce","typewriter","blur-in","flip","drop"],pU=["none","color-change","scale-pop","glow-pulse","underline-sweep","background-fill","bounce"],gU=["none","fade","slide-up","slide-down","slide-left","slide-right","scatter","drop","collapse","blur-out","shrink"],OU=["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 Q2({label:t,presets:e,animation:n,showIntensity:r,onChange:i}){const l=(n==null?void 0:n.preset)??"none",s=(n==null?void 0:n.duration)??.2,c=(n==null?void 0:n.ease)??"power2.out",u=(n==null?void 0:n.stagger)??0,h=(n==null?void 0:n.intensity)??1;return m.jsxs(x8,{label:t,children:[m.jsx(ia,{label:"Preset",children:m.jsx("select",{value:l,onChange:g=>i({preset:g.target.value}),className:ll,children:e.map(g=>m.jsx("option",{value:g,children:g},g))})}),m.jsx(ia,{label:"Duration",children:m.jsx("input",{type:"number",value:s,step:.05,min:0,max:2,onChange:g=>i({duration:Number(g.target.value)}),className:ll})}),m.jsx(ia,{label:"Ease",children:m.jsx("select",{value:c,onChange:g=>i({ease:g.target.value}),className:ll,children:OU.map(g=>m.jsx("option",{value:g,children:g},g))})}),m.jsx(ia,{label:"Stagger",children:m.jsx("input",{type:"number",value:u,step:.02,min:0,max:.5,onChange:g=>i({stagger:Number(g.target.value)}),className:ll})}),r&&m.jsx(ia,{label:"Intensity",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"range",min:0,max:1,step:.01,value:h,onChange:g=>i({intensity:Number(g.target.value)}),className:"flex-1 accent-studio-accent"}),m.jsx("span",{className:"text-2xs text-neutral-400 font-mono w-8 text-right flex-shrink-0",children:h.toFixed(2)})]})})]})}const xU=d.memo(function(){const e=Ot(y=>y.model),n=Ot(y=>y.selectedGroupId),r=Ot(y=>y.selectedSegmentIds),i=Ot(y=>y.updateGroupAnimation),l=Ot(y=>y.applyAnimationToAll);let s=n;if(!s&&e&&r.size>0){const y=[...r][0];if(y){for(const[v,w]of e.groups)if(w.segmentIds.includes(y)){s=v;break}}}const c=s?e==null?void 0:e.groups.get(s):void 0,u=c==null?void 0:c.animation,h=d.useCallback(y=>{s&&i(s,"entrance",y)},[s,i]),g=d.useCallback(y=>{s&&i(s,"highlight",y)},[s,i]),O=d.useCallback(y=>{s&&i(s,"exit",y)},[s,i]),x=d.useCallback(()=>{u&&l(u)},[u,l]);return!c||!s||!u?m.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:m.jsx("p",{className:"text-xs text-neutral-500",children:"Select a caption group to edit animations"})}):m.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[m.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[m.jsx(Q2,{label:"Entrance",presets:mU,animation:u.entrance,onChange:h}),m.jsx(Q2,{label:"Highlight",presets:pU,animation:u.highlight,showIntensity:!0,onChange:g}),m.jsx(Q2,{label:"Exit",presets:gU,animation:u.exit,onChange:O})]}),m.jsx("div",{className:"flex-shrink-0 px-3 py-2 border-t border-neutral-800",children:m.jsx("button",{type:"button",onClick:x,className:"w-full py-1.5 rounded border border-neutral-700 text-2xs text-neutral-300 hover:border-studio-accent/50 hover:text-studio-accent transition-colors",children:"Apply to all groups"})})]})}),yU=d.memo(function({iframeRef:e}){var j;const n=Ot(E=>E.model),r=Ot(E=>E.selectedSegmentIds),i=Ot(E=>E.selectedGroupId),l=Ot(E=>E.updateSelectedStyle),s=Ot(E=>E.updateGroupStyle),[c,u]=d.useState("style"),h=r.size>0?[...r][0]:void 0,g=n==null?void 0:n.segments.get(h??"");let O=null;if(n&&h)for(const E of n.groupOrder){const N=n.groups.get(E);if(N&&N.segmentIds.includes(h)){O=E;break}}const x=O?(j=n==null?void 0:n.groups.get(O))==null?void 0:j.style:void 0,y=(g==null?void 0:g.style)??{},v={...x,...y},w=d.useCallback(E=>{var q,U,K;const N=e.current;if(!N||!n)return;let R=null;try{R=N.contentDocument}catch{return}if(!R)return;const L=R.querySelectorAll(".caption-group"),V=[];for(const D of r)for(let G=0;G<n.groupOrder.length;G++){const H=n.groups.get(n.groupOrder[G]);if(!H)continue;const F=H.segmentIds.indexOf(D);if(F<0)continue;const I=L[G];if(!I)continue;const P=I.children;let Z=0;for(const X of P){const Y=X;if(Y.dataset.captionWrapper==="true"){const J=Y.querySelector(":scope > span");if(J&&Z===F){V.push(J);break}}else if(Y.tagName==="SPAN"&&Z===F){V.push(Y);break}Z++}break}if(E.x!==void 0||E.y!==void 0||E.scaleX!==void 0||E.scaleY!==void 0||E.rotation!==void 0)try{const D=(U=(q=e.current)==null?void 0:q.contentWindow)==null?void 0:U.gsap;if(D)for(const G of V){let H=G.parentElement;(!H||H.dataset.captionWrapper!=="true")&&(H=R.createElement("span"),H.style.display="inline-block",H.dataset.captionWrapper="true",(K=G.parentNode)==null||K.insertBefore(H,G),H.appendChild(G));const F=D.getProperty(H,"x")||0,I=D.getProperty(H,"y")||0,P=D.getProperty(H,"scale")||1,Z=D.getProperty(H,"rotation")||0;D.set(H,{x:E.x??F,y:E.y??I,scale:E.scaleX??P,rotation:E.rotation??Z})}}catch{}},[e,n,r]),A=d.useCallback(E=>{i?s(i,E):l(E),w(E)},[i,s,l,w]);if(r.size===0)return m.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:m.jsx("p",{className:"text-xs text-neutral-500",children:"Select caption words to edit their style"})});const k=v.x??0,C=v.y??0,T=v.rotation??0,$=v.scaleX??1,M=r.size===1?"1 word":`${r.size} words`;return m.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[m.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800 flex-shrink-0",children:[m.jsx("div",{className:"flex items-center justify-between mb-1.5",children:m.jsx("span",{className:"text-2xs text-neutral-500",children:M})}),m.jsxs("div",{className:"flex gap-1",children:[m.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"}),m.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"&&m.jsx(xU,{}),c==="style"&&m.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[m.jsxs(x8,{label:"Position",children:[m.jsx(ia,{label:"X",children:m.jsx("input",{type:"number",value:k,onChange:E=>A({x:Number(E.target.value)}),className:ll})}),m.jsx(ia,{label:"Y",children:m.jsx("input",{type:"number",value:C,onChange:E=>A({y:Number(E.target.value)}),className:ll})})]}),m.jsxs(x8,{label:"Transform",children:[m.jsx(ia,{label:"Scale",children:m.jsx("input",{type:"number",value:$,step:.1,onChange:E=>A({scaleX:Number(E.target.value),scaleY:Number(E.target.value)}),className:ll})}),m.jsx(ia,{label:"Rotation",children:m.jsx("input",{type:"number",value:T,onChange:E=>A({rotation:Number(E.target.value)}),className:ll})})]})]})]})}),bU=d.memo(function({blockTitle:e,params:n,compositionPath:r,onClose:i}){const[l,s]=d.useState(()=>{const u={};for(const h of n)u[h.key]=h.default;return u}),c=d.useCallback((u,h)=>{s(g=>({...g,[u]:h})),console.log(`[BlockParams] ${r} ${u}: ${h}`)},[r]);return m.jsxs("div",{className:"flex flex-col h-full",children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-neutral-800",children:[m.jsx("div",{className:"text-[11px] font-semibold text-neutral-200 truncate",children:e}),m.jsx("button",{type:"button",onClick:i,className:"text-neutral-500 hover:text-neutral-300 transition-colors",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-3",children:[m.jsx("div",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Parameters"}),n.map(u=>m.jsx(vU,{param:u,value:l[u.key]??u.default,onChange:h=>c(u.key,h)},u.key))]})]})});function vU({param:t,value:e,onChange:n}){return m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-medium text-neutral-400",children:t.label}),t.type==="color"&&m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"color",value:e,onChange:r=>n(r.target.value),className:"w-7 h-7 rounded border border-neutral-700 bg-transparent cursor-pointer"}),m.jsx("input",{type:"text",value:e,onChange:r=>n(r.target.value),className:"flex-1 bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 font-mono focus:outline-none focus:border-neutral-700"})]}),t.type==="number"&&m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"range",min:t.min??0,max:t.max??100,step:t.step??1,value:e,onChange:r=>n(r.target.value),className:"flex-1"}),m.jsx("span",{className:"text-[10px] text-neutral-400 w-8 text-right tabular-nums",children:e})]}),t.type==="text"&&m.jsx("input",{type:"text",value:e,onChange:r=>n(r.target.value),className:"w-full bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 focus:outline-none focus:border-neutral-700"}),t.type==="select"&&t.options&&m.jsx("select",{value:e,onChange:r=>n(r.target.value),className:"w-full bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 focus:outline-none focus:border-neutral-700",children:t.options.map(r=>m.jsx("option",{value:r.value,children:r.label},r.value))})]})}function SU(t){if(t<1e3)return`${t}ms`;const e=Math.round(t/1e3);return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function wU(t){const e=Date.now()-t;return e<6e4?"just now":e<36e5?`${Math.floor(e/6e4)}m ago`:`${Math.floor(e/36e5)}h ago`}const kU=d.memo(function({job:e,projectId:n,onDelete:r}){const[i,l]=d.useState(!1),s=`/api/projects/${n}/renders/file/${e.filename}`,c=d.useCallback(()=>{window.open(s,"_blank")},[s]),u=d.useCallback(O=>{O.stopPropagation();const x=document.createElement("a");x.href=s,x.download=e.filename,x.click()},[s,e.filename]),h=s,g=e.status==="complete";return m.jsx("div",{onPointerEnter:()=>l(!0),onPointerLeave:()=>l(!1),onClick:g?c:void 0,className:["px-3 py-2.5 border-b border-neutral-800/30 last:border-0 transition-colors duration-150",g?"cursor-pointer hover:bg-neutral-800/30":""].filter(Boolean).join(" "),children:m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[g&&m.jsxs(m.Fragment,{children:[i&&m.jsx("video",{src:h,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"}),m.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:m.jsx(hM,{src:h})})]}),e.status==="rendering"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-studio-accent animate-pulse"})}),e.status==="failed"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"})}),e.status==="cancelled"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-neutral-600"})})]}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate",children:e.filename}),e.durationMs&&m.jsx("span",{className:"text-[9px] text-neutral-600 flex-shrink-0",children:SU(e.durationMs)})]}),e.status==="rendering"&&m.jsxs("div",{className:"mt-1",children:[m.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[m.jsx("span",{className:"text-[9px] text-neutral-500",children:e.stage||"Rendering"}),m.jsxs("span",{className:"text-[9px] font-mono text-studio-accent",children:[e.progress,"%"]})]}),m.jsx("div",{className:"w-full h-1 bg-neutral-800 rounded-full overflow-hidden",children:m.jsx("div",{className:"h-full bg-studio-accent rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),e.status==="failed"&&e.error&&m.jsx("span",{className:"text-[9px] text-red-400 mt-0.5 block",children:e.error}),e.status!=="rendering"&&m.jsx("span",{className:"text-[9px] text-neutral-600",children:wU(e.createdAt)})]}),i&&m.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[g&&m.jsx("button",{onClick:u,className:"p-1 rounded text-neutral-500 hover:text-green-400 transition-colors",title:"Download",children:m.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),m.jsx("polyline",{points:"7 10 12 15 17 10"}),m.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),m.jsx("button",{onClick:O=>{O.stopPropagation(),r()},className:"p-1 rounded text-neutral-500 hover:text-red-400 transition-colors",title:"Remove",children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]})})}),AU=["auto","1080p","4k"],yS={auto:"Auto","1080p":"1080p","4k":"4K"},YM={landscape:{width:1920,height:1080},portrait:{width:1080,height:1920},"landscape-4k":{width:3840,height:2160},"portrait-4k":{width:2160,height:3840},square:{width:1080,height:1080},"square-4k":{width:2160,height:2160}};function MU(t){return t==null?"landscape":t.width===t.height?"square":t.height>t.width?"portrait":"landscape"}function IM(t,e){if(t==="auto")return"auto";const n=MU(e);return t==="1080p"?n:n==="landscape"?"landscape-4k":n==="portrait"?"portrait-4k":"square-4k"}function CU(t,e){if(t==="auto")return e??null;const n=IM(t,e);return n==="auto"?null:YM[n]}function EU(t,e){if(t==="auto"||e==null)return!0;const n=IM(t,e);if(n==="auto")return!0;const r=YM[n];return r.width*e.height!==r.height*e.width||r.width<e.width?!1:Number.isInteger(r.width/e.width)}function TU(t,e){const n=CU(t,e);return n?`${yS[t]} · ${n.width}×${n.height}`:yS[t]}const Z2={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 $U({format:t}){const[e,n]=d.useState(!1),r=d.useRef(void 0),i=()=>{clearTimeout(r.current),n(!0)},l=()=>{r.current=setTimeout(()=>n(!1),120)};d.useEffect(()=>()=>clearTimeout(r.current),[]);const s=Z2[t];return m.jsxs("div",{className:"relative",onPointerEnter:i,onPointerLeave:l,children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"}),m.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),e&&m.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:[m.jsx("p",{className:"text-[10px] font-semibold text-neutral-200 mb-0.5",children:s.label}),m.jsx("p",{className:"text-[9px] text-neutral-400 leading-tight",children:s.desc}),m.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-neutral-800",children:["mp4","mov","webm"].filter(c=>c!==t).map(c=>m.jsxs("p",{className:"text-[9px] text-neutral-500 leading-relaxed",children:[m.jsx("span",{className:"text-neutral-400 font-medium",children:Z2[c].label})," — ",Z2[c].desc]},c))})]})]})}const bS=[{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 jU({onStartRender:t,isRendering:e,compositionDimensions:n}){var y;const r=SM(),[i,l]=d.useState(r.format),[s,c]=d.useState(r.quality),[u,h]=d.useState("auto"),[g,O]=d.useState(r.fps),x=i!=="mov";return m.jsxs("div",{className:"flex items-center gap-1 flex-wrap justify-end",children:[m.jsx($U,{format:i}),m.jsx("select",{value:u,onChange:v=>h(v.target.value),disabled:e,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:AU.map(v=>m.jsx("option",{value:v,disabled:!EU(v,n),children:TU(v,n)},v))}),x&&m.jsx("select",{value:s,onChange:v=>{const w=v.target.value;c(w),f2(i,w,g)},disabled:e,title:(y=bS.find(v=>v.value===s))==null?void 0:y.title,className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:bS.map(v=>m.jsx("option",{value:v.value,title:v.title,children:v.label},v.value))}),m.jsxs("select",{value:g,onChange:v=>{const w=Number(v.target.value);O(w),f2(i,s,w)},disabled:e,title:"Frames per second",className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:[m.jsx("option",{value:24,children:"24fps"}),m.jsx("option",{value:30,children:"30fps"}),m.jsx("option",{value:60,children:"60fps"})]}),m.jsxs("select",{value:i,onChange:v=>{const w=v.target.value;l(w),f2(w,s,g)},disabled:e,className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:[m.jsx("option",{value:"mp4",children:"MP4"}),m.jsx("option",{value:"mov",children:"MOV"}),m.jsx("option",{value:"webm",children:"WebM"})]}),m.jsx("button",{onClick:()=>{_t("render_start",{format:i,quality:s,resolution:u,fps:g}),t(i,s,u,g)},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 PU=d.memo(function({jobs:e,projectId:n,onDelete:r,onClearCompleted:i,onStartRender:l,isRendering:s,compositionDimensions:c}){const u=d.useRef(null);d.useEffect(()=>{u.current&&u.current.scrollTo({top:u.current.scrollHeight,behavior:"smooth"})},[e.length]);const h=e.filter(g=>g.status!=="rendering").length;return m.jsxs("div",{className:"flex flex-col h-full",children:[m.jsx("div",{className:"flex items-center justify-end flex-wrap gap-y-1.5 px-3 py-2 border-b border-neutral-800/50 flex-shrink-0",children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[h>0&&m.jsx("button",{onClick:i,className:"text-[10px] text-neutral-600 hover:text-neutral-400 transition-colors",children:"Clear"}),m.jsx(jU,{onStartRender:l,isRendering:s,compositionDimensions:c})]})}),m.jsx("div",{ref:u,className:"flex-1 overflow-y-auto",children:e.length===0?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[m.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",strokeLinecap:"round",strokeLinejoin:"round"})]}),m.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"No renders yet"})]}):e.map(g=>m.jsx(kU,{job:g,projectId:n,onDelete:()=>r(g.id)},g.id))})]})});function QU({selectedStudioMotion:t,designPanelActive:e,motionPanelActive:n,activeBlockParams:r,onCloseBlockParams:i}){const{rightWidth:l,rightPanelTab:s,setRightPanelTab:c,handlePanelResizeStart:u,handlePanelResizeMove:h,handlePanelResizeEnd:g}=I8(),{captionEditMode:O,previewIframeRef:x,projectId:y,activeCompPath:v,compositionDimensions:w,waitForPendingDomEditSaves:A,renderQueue:k}=No(),{domEditSelection:C,domEditGroupSelections:T,copiedAgentPrompt:$,clearDomSelection:M,handleDomStyleCommit:j,handleDomAttributeCommit:E,handleDomHtmlAttributeCommit:N,handleDomPathOffsetCommit:R,handleDomBoxSizeCommit:L,handleDomRotationCommit:V,handleDomTextCommit:z,handleDomTextFieldStyleCommit:q,handleDomAddTextField:U,handleDomRemoveTextField:K,handleAskAgent:D,handleDomMotionCommit:G,handleDomMotionClear:H,selectedGsapAnimations:F,gsapMultipleTimelines:I,gsapUnsupportedTimelinePattern:P,handleGsapUpdateProperty:Z,handleGsapUpdateMeta:X,handleGsapDeleteAnimation:Y,handleGsapAddAnimation:J,handleGsapAddProperty:ne,handleGsapRemoveProperty:B,handleGsapUpdateFromProperty:re,handleGsapAddFromProperty:ae,handleGsapRemoveFromProperty:ue,commitAnimatedProperty:me}=Ed(),{assets:ye,fontAssets:Oe,projectDir:Se,handleImportFiles:Ae,handleImportFonts:Me}=bM(),Ve=k.jobs;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:Pe=>u("right",Pe),onPointerMove:h,onPointerUp:g,children:m.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),m.jsx("div",{className:"flex flex-col border-l border-neutral-800 bg-neutral-900 flex-shrink-0",style:{width:l},children:O?m.jsx(yU,{iframeRef:x}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-1 border-b border-neutral-800 px-3 py-2",children:[Mn&&m.jsxs(m.Fragment,{children:[m.jsx(Yt,{label:"Element styles and properties",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("design"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="design"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Design"})}),m.jsx(Yt,{label:"Composition layer stack",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("layers"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="layers"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Layers"})}),M8&&m.jsx(Yt,{label:"Animation and motion",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("motion"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="motion"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Motion"})})]}),m.jsx(Yt,{label:"Render queue and exports",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("renders"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="renders"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:Ve.length>0?`Renders (${Ve.length})`:"Renders"})})]}),m.jsx("div",{className:"min-h-0 flex-1",children:s==="block-params"&&r?m.jsx(bU,{blockName:r.blockName,blockTitle:r.blockTitle,params:r.params,compositionPath:r.compositionPath,onClose:i??(()=>{})}):s==="layers"?m.jsx(dU,{}):e?m.jsx(BG,{projectId:y,projectDir:Se,assets:ye,element:T.length>1?null:C,multiSelectCount:T.length,copiedAgentPrompt:$,onClearSelection:M,onSetStyle:j,onSetAttribute:E,onSetHtmlAttribute:N,onSetManualOffset:R,onSetManualSize:L,onSetManualRotation:V,onSetText:z,onSetTextFieldStyle:q,onAddTextField:U,onRemoveTextField:K,onAskAgent:D,onImportAssets:Ae,fontAssets:Oe,onImportFonts:Me,previewIframeRef:x,gsapAnimations:F,gsapMultipleTimelines:I,gsapUnsupportedTimelinePattern:P,onUpdateGsapProperty:Z,onUpdateGsapMeta:X,onDeleteGsapAnimation:Y,onAddGsapProperty:ne,onRemoveGsapProperty:B,onUpdateGsapFromProperty:re,onAddGsapFromProperty:ae,onRemoveGsapFromProperty:ue,onAddGsapAnimation:J,onCommitAnimatedProperty:me}):n?m.jsx(nU,{element:T.length>1?null:C,motion:t,onClearSelection:M,onSetMotion:G,onClearMotion:H}):m.jsx(PU,{jobs:Ve,projectId:y,onDelete:k.deleteRender,onClearCompleted:k.clearCompleted,onStartRender:async(Pe,ft,yt,_e)=>{await A();const Ye=v&&v!=="index.html"?v:void 0;await k.startRender({fps:_e,quality:ft,format:Pe,resolution:yt,composition:Ye})},compositionDimensions:w,isRendering:k.isRendering})})]})})]})}function ZU(t,e){const n=t.slice().sort((l,s)=>l.percentage-s.percentage),r=new Set;for(const l of n)for(const s of Object.keys(l.properties))typeof l.properties[s]=="number"&&r.add(s);const i={};for(const l of r){let s=null,c=null;for(const u of n){const h=u.properties[l];typeof h=="number"&&(u.percentage<=e&&(s={pct:u.percentage,val:h}),u.percentage>=e&&!c&&(c={pct:u.percentage,val:h}))}if(s&&c&&s.pct!==c.pct){const u=(e-s.pct)/(c.pct-s.pct);i[l]=Math.round(s.val+u*(c.val-s.val))}else s?i[l]=Math.round(s.val):c&&(i[l]=Math.round(c.val))}return i}function NU(t,e,n){if(!(t!=null&&t.contentWindow))return{};let r;try{r=t.contentWindow.gsap}catch{return{}}if(!(r!=null&&r.getProperty))return{};const i=e.id?`#${e.id}`:e.selector;if(!i)return{};let l=null;try{l=t.contentDocument}catch{return{}}const s=l==null?void 0:l.querySelector(i);if(!s)return{};const c=new Set;for(const h of n)for(const g of Object.keys(h.properties))typeof h.properties[g]=="number"&&c.add(g);const u={};for(const h of c){const g=Number(r.getProperty(s,h));Number.isFinite(g)&&(u[h]=Math.round(g))}return u}function RU(t){var u,h;const e=fe(g=>g.currentTime);if(!t)return{state:"none",onToggle:void 0};const n=t.domEditSelection,r=t.selectedGsapAnimations,i=r.find(g=>g.keyframes),l=r.find(g=>!g.keyframes);let s="none";if(i!=null&&i.keyframes&&n){const g=Number.parseFloat(((u=n.dataAttributes)==null?void 0:u.start)??"0")||0,O=Number.parseFloat(((h=n.dataAttributes)==null?void 0:h.duration)??"1")||1,x=O>0?Math.max(0,Math.min(100,Math.round((e-g)/O*1e3)/10)):0;s=i.keyframes.keyframes.some(y=>Math.abs(y.percentage-x)<=1)?"active":"inactive"}return{state:s,onToggle:n?async()=>{var O,x,y,v;const g=fe.getState().currentTime;if(i!=null&&i.keyframes){i.hasUnresolvedKeyframes&&await((O=t.handleGsapMaterializeKeyframes)==null?void 0:O.call(t,i.id));const w=Number.parseFloat(((x=n.dataAttributes)==null?void 0:x.start)??"0")||0,A=Number.parseFloat(((y=n.dataAttributes)==null?void 0:y.duration)??"1")||1,k=A>0?Math.max(0,Math.min(100,Math.round((g-w)/A*1e3)/10)):0,C=i.keyframes.keyframes.find(T=>Math.abs(T.percentage-k)<=1);if(C)t.handleGsapRemoveKeyframe(i.id,C.percentage);else{const T=NU(((v=t.previewIframeRef)==null?void 0:v.current)??null,n,i.keyframes.keyframes),$=Object.keys(T).length>0?T:ZU(i.keyframes.keyframes,k);for(const[M,j]of Object.entries($))t.handleGsapAddKeyframe(i.id,k,M,j)}}else l?t.handleGsapConvertToKeyframes(l.id):t.handleGsapAddAnimation("to")}:void 0}}function VU({toggleTimelineVisibility:t,domEditSession:e,onSplitElement:n}){const r=fe(g=>g.zoomMode),i=fe(g=>g.manualZoomPercent),l=fe(g=>g.setZoomMode),s=fe(g=>g.setManualZoomPercent),c=kd(r,i),{state:u,onToggle:h}=RU(e);return m.jsx("div",{className:"border-b border-neutral-800/40 bg-neutral-950/96",children:m.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-500",children:"Timeline"}),Ja&&h&&m.jsx(Yt,{label:u==="active"?"Remove keyframe at playhead":u==="inactive"?"Add keyframe at playhead":"Enable keyframes",children:m.jsx("button",{type:"button",onClick:h,className:`flex h-7 w-7 items-center justify-center rounded transition-colors ${u==="active"?"text-studio-accent":u==="inactive"?"text-neutral-400 hover:text-studio-accent":"text-neutral-600 hover:text-neutral-400"}`,children:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"currentColor",children:u==="active"?m.jsx("path",{d:"M5 0.5L9.5 5L5 9.5L0.5 5Z"}):m.jsx("path",{d:"M5 1.2L8.8 5L5 8.8L1.2 5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})})}),n&&(()=>{const{selectedElementId:g,elements:O,currentTime:x}=fe.getState(),y=g?O.find(A=>(A.key??A.id)===g):null;if(!(y&&!y.compositionSrc&&["video","audio","img"].includes(y.tag)))return null;const w=x>y.start&&x<y.start+y.duration;return m.jsx(Yt,{label:"Split clip at playhead (S)",children:m.jsx("button",{type:"button",disabled:!w,onClick:()=>{w&&n(y,x)},className:`flex h-7 w-7 items-center justify-center rounded transition-colors ${w?"text-neutral-500 hover:text-neutral-200":"text-neutral-700 cursor-not-allowed"}`,children:m.jsx(JV,{size:15})})})})()]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Yt,{label:"Fit timeline to width",children:m.jsx("button",{type:"button",onClick:()=>l("fit"),className:`h-7 px-2.5 rounded-md border text-[11px] font-medium transition-colors ${r==="fit"?"border-studio-accent/30 bg-studio-accent/10 text-studio-accent":"border-neutral-800 text-neutral-400 hover:border-neutral-700 hover:text-neutral-200"}`,children:"Fit"})}),m.jsx(Yt,{label:"Zoom out",children:m.jsx("button",{type:"button",onClick:()=>{l("manual"),s(ly("out",r,i))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",children:"-"})}),m.jsx("div",{className:"min-w-[58px] text-center text-[10px] font-medium tabular-nums text-neutral-500",children:`${c}%`}),m.jsx(Yt,{label:"Zoom in",children:m.jsx("button",{type:"button",onClick:()=>{l("manual"),s(ly("in",r,i))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",children:"+"})}),m.jsx(Yt,{label:Vw(!0),children:m.jsx("button",{type:"button",onClick:t,className:"ml-1 flex h-7 w-7 items-center justify-center rounded-md text-neutral-500 transition-colors hover:bg-neutral-900 hover:text-neutral-200","aria-label":"Hide timeline editor",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M5 7h14"}),m.jsx("path",{d:"m8 11 4 4 4-4"})]})})})]})]})})}function _U({waiting:t}){return m.jsx("div",{className:"h-full w-full bg-neutral-950 flex items-center justify-center",children:t?m.jsxs("div",{className:"flex flex-col items-center gap-3 text-center px-6",children:[m.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin"}),m.jsxs("p",{className:"text-xs text-neutral-600",children:["Waiting for preview server… run"," ",m.jsx("code",{className:"text-neutral-500 font-mono",children:"npm run dev"})]})]}):m.jsx("div",{className:"w-4 h-4 rounded-full bg-studio-accent animate-pulse"})})}function LU({message:t,tone:e}){return m.jsx("div",{className:`absolute bottom-6 left-1/2 -translate-x-1/2 z-[91] px-4 py-2 rounded-lg border text-sm shadow-lg animate-in fade-in slide-in-from-bottom-2 ${e==="error"?"bg-red-900/90 border-red-700/50 text-red-200":"bg-neutral-900/95 border-neutral-700/60 text-neutral-100"}`,children:t})}function DU(){const[t,e]=d.useState(null),[n,r]=d.useState(!0),[i,l]=d.useState(!1);return Xt(()=>{const s=a3(window.location.hash);let c=!1,u=null;function h(){l(!0),u=window.setTimeout(g,2e3)}function g(){fetch("/api/projects").then(O=>O.json()).then(O=>{if(!c)if(s)e(s),l(!1);else{const x=(O.projects??[])[0];x?(e(x.id),l(!1),window.location.hash=Hw(x.id)):h()}}).catch(()=>{c||h()}).finally(()=>{c||r(!1)})}return g(),()=>{c=!0,u!==null&&clearTimeout(u)}}),d.useEffect(()=>{const s=()=>{const c=a3(window.location.hash);c&&c!==t&&e(c)};return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[t]),{projectId:t,resolving:n,waitingForServer:i}}function HU(){const{projectId:t,resolving:e,waitingForServer:n}=DU(),r=d.useRef(jV());d.useEffect(()=>{e||n||bT()||(vT(),QT({has_project:t!=null}))},[t,e,n]);const[i,l]=d.useState(null),[s,c]=d.useState(()=>r.current.activeCompPath==null),[u,h]=d.useState(new Map),[g,O]=d.useState(null),[x,y]=d.useState(!0),[v,w]=d.useState(0),[,A]=d.useState(0),[k,C]=d.useState(null),[T,$]=d.useState(null),M=d.useRef(null),j=d.useRef(i);j.current=i;const E=d.useRef(null),N=VT(t),R=Ot(Ce=>Ce.isEditMode),L=Ot(Ce=>Ce.selectedSegmentIds.size>0),V=hZ(t),z=fe(Ce=>Ce.currentTime),q=fe(Ce=>Ce.elements),U=fe(Ce=>Ce.setSelectedElementId),K=fe(Ce=>Ce.duration),D=fe(Ce=>Ce.isPlaying),G=!i||i==="index.html",H=i?`/api/projects/${t}/preview/comp/${i}`:null,F=d.useMemo(()=>{const Ce=q.length>0?Math.max(...q.map(rt=>rt.start+rt.duration)):0;return Math.max(K,Ce)},[K,q]),I=d.useCallback(()=>{A(Ce=>Ce+1),window.setTimeout(()=>A(Ce=>Ce+1),80),window.setTimeout(()=>A(Ce=>Ce+1),300)},[]),[P,Z]=d.useState(()=>r.current.timelineVisible??ul().timelineVisible??!0),X=d.useCallback(()=>{Z(Ce=>(ho({timelineVisible:!Ce}),!Ce))},[]),{appToast:Y,showToast:J}=AV(),ne=EZ({rightCollapsed:r.current.rightCollapsed,rightPanelTab:r.current.rightPanelTab}),B=CZ({projectId:t}),re=d.useRef(0),ae=d.useRef(new Set),ue=d.useCallback(()=>{w(Ce=>Ce+1)},[]),me=zZ({projectId:t,showToast:J,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,setRefreshKey:w});d.useEffect(()=>{if(s||!me.fileTreeLoaded)return;const Ce=CV(r.current.activeCompPath,me.fileTree);l(rt=>rt===Ce?rt:Ce),c(!0)},[s,me.fileTree,me.fileTreeLoaded]);const ye=EN({projectId:t,showToast:J,readOptionalProjectFile:me.readOptionalProjectFile,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,previewIframeRef:M,activeCompPathRef:j,domEditSaveTimestampRef:re,reloadPreview:()=>w(Ce=>Ce+1),pendingTimelineEditPathRef:ae}),Oe=RN({projectId:t,activeCompPath:i,timelineElements:q,showToast:J,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,reloadPreview:ue,previewIframeRef:M,pendingTimelineEditPathRef:ae,uploadProjectFiles:me.uploadProjectFiles}),Se=d.useMemo(()=>({activeCompPath:i,timelineElements:q,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,refreshFileTree:me.refreshFileTree,reloadPreview:ue,showToast:J}),[i,q,me,B.recordEdit,ue,J]),Ae=d.useCallback(Ce=>{t&&(async()=>{const rt=await kp({projectId:t,blockName:Ce,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime}),bn=(rt==null?void 0:rt.block.type)==="hyperframes:block"?rt.block.params:void 0;bn!=null&&bn.length&&(C({blockName:rt.block.name,blockTitle:rt.block.title,params:bn,compositionPath:rt.compositionPath}),ne.setRightCollapsed(!1),ne.setRightPanelTab("block-params"))})()},[t,Se,ne]),Me=d.useCallback((Ce,rt)=>{t&&kp({projectId:t,blockName:Ce,placement:rt,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime})},[t,Se]),Ve=d.useCallback((Ce,rt)=>{t&&kp({projectId:t,blockName:Ce,visualPosition:rt,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime})},[t,Se]),Pe=d.useRef(()=>{}),ft=d.useRef(null),yt=d.useRef(async()=>{}),_e=Ce=>yt.current(Ce),Ye=d.useRef(()=>!1),Le=d.useRef(()=>{}),be=d.useRef(()=>{}),{handleCopy:dt,handlePaste:Ue,handleCut:bt}=aV({projectId:t,activeCompPath:i,domEditSelectionRef:ft,showToast:J,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,reloadPreview:ue,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleDomEditElementDelete:_e,previewIframeRef:M}),Re=JR({toggleTimelineVisibility:X,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleTimelineElementSplit:Oe.handleTimelineElementSplit,handleDomEditElementDelete:_e,domEditSelectionRef:ft,editHistory:B,readOptionalProjectFile:me.readOptionalProjectFile,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,domEditSaveTimestampRef:re,showToast:J,syncHistoryPreviewAfterApply:ye.syncHistoryPreviewAfterApply,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves,leftSidebarRef:E,handleCopy:dt,handlePaste:Ue,handleCut:bt,onResetKeyframes:()=>Ye.current(),onDeleteSelectedKeyframes:()=>Le.current(),onAfterUndoRedo:()=>be.current()}),on=d.useCallback(Ce=>{var rt;return(rt=E.current)==null?void 0:rt.selectTab(Ce)},[]),Rt=d.useCallback(()=>{var Ce;return((Ce=E.current)==null?void 0:Ce.getTab())??"compositions"},[]),we=WR({projectId:t,activeCompPath:i,isMasterView:G,compIdToSrc:u,captionEditMode:R,compositionLoading:x,previewIframeRef:M,timelineElements:q,currentTime:z,setSelectedTimelineElementId:U,setRightCollapsed:ne.setRightCollapsed,setRightPanelTab:ne.setRightPanelTab,showToast:J,refreshPreviewDocumentVersion:I,queueDomEditSave:ye.queueDomEditSave,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,domEditSaveTimestampRef:re,editHistory:{recordEdit:B.recordEdit},fileTree:me.fileTree,importedFontAssetsRef:me.importedFontAssetsRef,projectDir:me.projectDir,projectIdRef:me.projectIdRef,previewIframe:g,refreshKey:v,rightPanelTab:ne.rightPanelTab,applyStudioManualEditsToPreviewRef:ye.applyStudioManualEditsToPreviewRef,syncPreviewHistoryHotkey:Re.syncPreviewHistoryHotkey,reloadPreview:ue,setRefreshKey:w,openSourceForSelection:me.openSourceForSelection,selectSidebarTab:on,getSidebarTab:Rt});ft.current=we.domEditSelection,Pe.current=we.clearDomSelection,yt.current=we.handleDomEditElementDelete,Ye.current=we.handleResetSelectedElementKeyframes,be.current=we.invalidateGsapCache,Le.current=()=>{const Ce=fe.getState().selectedKeyframes,rt=we.selectedGsapAnimations.find(bn=>bn.keyframes);!rt||Ce.size===0||Ce.forEach(bn=>{const mr=Number(bn.split(":")[1]);Number.isFinite(mr)&&we.handleGsapRemoveKeyframe(rt.id,mr)})},fV({projectId:t,activeCompPath:i,compIdToSrc:u,captionEditMode:R,captionHasSelection:L,previewIframeRef:M,captionSync:V,setRightCollapsed:ne.setRightCollapsed});const ht=OV({projectIdRef:me.projectIdRef,compIdToSrc:u,activePreviewUrl:H,effectiveTimelineDuration:F}),Mt=kV(),{lintModal:ot,linting:ve,handleLint:ze,closeLintModal:Ze}=wV(t),Be=SV({projectId:t,activeCompPath:i,showToast:J,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves}),{consoleErrors:vt,setConsoleErrors:lt,resetErrors:Je}=xV(g),mt=RV(me.handleImportFiles),Tt=d.useCallback(Ce=>{M.current=Ce,O(Ce),Re.syncPreviewTimelineHotkey(Ce),Re.syncPreviewHistoryHotkey(Ce),Je(),I()},[Re,Je,I]),cn=d.useCallback(Ce=>{l(Ce.endsWith(".html")?Ce:null),me.setEditingFile({path:Ce,content:null}),fetch(`/api/projects/${t}/files/${Ce}`).then(rt=>rt.json()).then(rt=>me.setEditingFile({path:Ce,content:rt.content})).catch(()=>{})},[t,me]),{selectedStudioMotion:Bn,designPanelActive:bl,motionPanelActive:Sa,inspectorPanelActive:Zi,inspectorButtonActive:En,shouldShowSelectedDomBounds:di}=NV(ne.rightPanelTab,ne.rightCollapsed,D,we.domEditSelection);QV({projectId:t,activeCompPath:i,currentTime:z,duration:F,isPlaying:D,compositionLoading:x,refreshKey:v,previewIframeRef:M,rightPanelTab:ne.rightPanelTab,rightCollapsed:ne.rightCollapsed,timelineVisible:P,activeCompPathHydrated:s,domEditSelection:we.domEditSelection,buildDomSelectionFromTarget:we.buildDomSelectionFromTarget,applyDomSelection:we.applyDomSelection,initialState:r.current});const wa=ZV({projectId:t,activeCompPath:i,setActiveCompPath:l,showToast:J,previewIframeRef:M,captionEditMode:R,compositionLoading:x,refreshKey:v,setRefreshKey:w,currentTime:z,timelineElements:q,isPlaying:D,editHistory:B,handleUndo:Re.handleUndo,handleRedo:Re.handleRedo,renderQueue:{jobs:N.jobs,isRendering:N.isRendering,deleteRender:N.deleteRender,clearCompleted:N.clearCompleted,startRender:N.startRender},compositionDimensions:Mt,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves,handlePreviewIframeRef:Tt,refreshPreviewDocumentVersion:I,timelineVisible:P,toggleTimelineVisibility:X});if(e||n||!t)return m.jsx(_U,{waiting:n});const ka=m.jsx(VU,{toggleTimelineVisibility:X,domEditSession:we,onSplitElement:Oe.handleTimelineElementSplit});return m.jsx(e_,{value:wa,children:m.jsx(t_,{value:ne,children:m.jsx(fI,{value:me,children:m.jsx(n_,{value:we,children:m.jsxs("div",{className:"flex flex-col h-full w-full bg-neutral-950 relative",onDragOver:mt.onDragOver,onDragEnter:mt.onDragEnter,onDragLeave:mt.onDragLeave,onDrop:mt.onDrop,children:[m.jsx(i_,{captureFrameHref:Be.captureFrameHref,captureFrameFilename:Be.captureFrameFilename,handleCaptureFrameClick:Be.handleCaptureFrameClick,refreshCaptureFrameTime:Be.refreshCaptureFrameTime,inspectorButtonActive:En,inspectorPanelActive:Zi}),m.jsxs("div",{className:"flex flex-1 min-h-0",children:[m.jsx(dI,{leftSidebarRef:E,onSelectComposition:cn,onAddBlock:Ae,onPreviewBlock:$,onLint:ze,linting:ve}),m.jsx(Nq,{timelineToolbar:ka,renderClipContent:ht,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleTimelineAssetDrop:Oe.handleTimelineAssetDrop,handleTimelineBlockDrop:Me,handlePreviewBlockDrop:Ve,handleTimelineFileDrop:Oe.handleTimelineFileDrop,handleTimelineElementMove:Oe.handleTimelineElementMove,handleTimelineElementResize:Oe.handleTimelineElementResize,handleBlockedTimelineEdit:Oe.handleBlockedTimelineEdit,handleTimelineElementSplit:Oe.handleTimelineElementSplit,setCompIdToSrc:h,setCompositionLoading:y,shouldShowSelectedDomBounds:di,blockPreview:T}),!ne.rightCollapsed&&m.jsx(QU,{selectedStudioMotion:Bn,designPanelActive:bl,motionPanelActive:Sa,activeBlockParams:k,onCloseBlockParams:()=>{C(null),ne.setRightPanelTab("design")}})]}),ot!==null&&m.jsx(wy,{findings:ot,projectId:t,onClose:Ze}),vt!==null&&vt.length>0&&m.jsx(wy,{findings:vt,projectId:t,onClose:()=>lt(null)}),we.agentModalOpen&&we.domEditSelection&&m.jsx(_V,{selectionLabel:we.domEditSelection.label,contextPreview:sR(we.domEditSelection,i),anchorPoint:we.agentModalAnchorPoint,onSubmit:we.handleAgentModalSubmit,onClose:()=>{we.setAgentModalOpen(!1),we.setAgentPromptSelectionContext(void 0),we.setAgentModalAnchorPoint(null)}}),mt.active&&m.jsx(LV,{}),Y&&m.jsx(LU,{message:Y.message,tone:Y.tone})]})})})})})}class XU extends d.Component{constructor(){super(...arguments);A5(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){var i,l;console.error("[Studio] Uncaught error:",n,r.componentStack),_t("crash",{error_message:n.message,error_name:n.name,stack_trace:((i=n.stack)==null?void 0:i.slice(0,4e3))??null,component_stack:((l=r.componentStack)==null?void 0:l.slice(0,2e3))??null})}render(){return this.state.error?m.jsxs("div",{style:{position:"fixed",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"#0a0a0a",color:"#e5e5e5",fontFamily:"system-ui, -apple-system, sans-serif",gap:16},children:[m.jsx("div",{style:{fontSize:18,fontWeight:600},children:"Something went wrong"}),m.jsx("div",{style:{fontSize:13,color:"#888",maxWidth:480,textAlign:"center"},children:this.state.error.message}),m.jsx("button",{onClick:()=>this.setState({error:null}),style:{marginTop:8,padding:"8px 20px",background:"#2563eb",color:"#fff",border:"none",borderRadius:6,fontSize:14,cursor:"pointer"},children:"Try again"})]}):this.props.children}}_t("session_start");function qM(t){var e;return t instanceof Error?{error_message:t.message,error_name:t.name,stack_trace:((e=t.stack)==null?void 0:e.slice(0,4e3))??null}:{error_message:String(t),error_name:null,stack_trace:null}}function zU(t,e){return!!(t.includes("Error fetching")&&(t.includes("404")||t.includes("Not Found"))||e==="EncodingError"||t.includes("unsupported or unrecognizable format")||t.includes("MEDIA_ERR_SRC_NOT_SUPPORTED"))}const GM=50;let N2=0,R2=0,vS=!1,SS=!1;window.addEventListener("error",t=>{var e;if((e=t.message)!=null&&e.includes("ResizeObserver loop")){t.stopImmediatePropagation(),t.preventDefault();return}if(N2++,N2>GM){vS||(vS=!0,_t("error_cap_reached",{count:N2}));return}_t("unhandled_error",{...qM(t.error),error_message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno})});let Of=0;window.addEventListener("unhandledrejection",t=>{const e=qM(t.reason);if(zU(e.error_message,e.error_name)){Of++,(Of===1||Of%100===0)&&_t("composition_asset_error_filtered",{error_message:e.error_message.slice(0,200),error_name:e.error_name,total_filtered:Of});return}if(R2++,R2>GM){SS||(SS=!0,_t("rejection_cap_reached",{count:R2}));return}_t("unhandled_promise_rejection",e)});hT.createRoot(document.getElementById("root")).render(m.jsx(d.StrictMode,{children:m.jsx(XU,{children:m.jsx(HU,{})})}));
140
+ `||t==="\r"||t===" "||t==="\f"}function h8(t){return t!=null&&t>="0"&&t<="9"}function LM(t){if(!t)return!1;let e=t[0]==="-"?1:0,n=0;for(;h8(t[e]);)e+=1,n+=1;if(t[e]===".")for(e+=1;h8(t[e]);)e+=1,n+=1;return n>0&&e===t.length}function V6(t){if(!t)return null;const e=t.trim();if(!LM(e))return null;const n=Number(e);return Number.isFinite(n)?n:null}function _6(t){const e=[];let n="";for(const r of t){if(_M(r)){n&&(e.push(n),n="");continue}n+=r}return n&&e.push(n),e}function to(t,e){return _6(t.toLowerCase()).includes(e)}function vd(t,e){if(!(t!=null&&t.endsWith("%")))return e;const n=V6(t.slice(0,-1));return n==null?e:n0(n,0,100)}function DM(t){const e=t==null?void 0:t.trim().toLowerCase();return e!=null&&e.endsWith("deg")?V6(e.slice(0,-3)):null}function uG(t){if(!t.endsWith("%"))return null;const e=t.slice(0,-1).trimEnd();let n=e.length;for(;n>0&&(h8(e[n-1])||e[n-1]===".");)n-=1;n>0&&e[n-1]==="-"&&(n-=1);const r=e.slice(n);return!LM(r)||n===0||!_M(e[n-1])?null:n}function n0(t,e,n){return Math.min(n,Math.max(e,t))}function Si(t){return Math.round(t*100)/100}function fG(t,e){const n=V6(t);return n==null?e:n0(n,0,100)}function L6(t){const e=t.trim(),n=uG(e);if(n==null)return{color:e,position:null};const r=e.slice(0,-1).trimEnd();return{color:r.slice(0,n).trim(),position:fG(r.slice(n),0)}}function Gd(t){return t.length===0?[{color:"rgba(60, 230, 172, 0.18)",position:0},{color:"rgba(255, 255, 255, 0.04)",position:100}]:t.length===1?[{color:t[0].color,position:0},{color:t[0].color,position:100}]:t.map((n,r)=>({color:n.color,position:n.position??r/(t.length-1)*100})).map(n=>({color:n.color,position:Si(n0(n.position,0,100))}))}function dG(t){const e=[];let n="",r=0;for(const i of t){if(i==="("&&(r+=1),i===")"&&(r=Math.max(0,r-1)),i===","&&r===0){n.trim()&&e.push(n.trim()),n="";continue}n+=i}return n.trim()&&e.push(n.trim()),e}function hG(t){const e=t.trim().toLowerCase(),n={"to top":0,"to top right":45,"to right top":45,"to right":90,"to bottom right":135,"to right bottom":135,"to bottom":180,"to bottom left":225,"to left bottom":225,"to left":270,"to top left":315,"to left top":315};return e in n?n[e]:null}function mG(t){const e=t[0]??"",n=hG(e),r=DM(e),i=r!=null,l=r??n??180,s=i||n!=null?t.slice(1):t;return{kind:"linear",repeating:!1,angle:l,centerX:50,centerY:50,shape:"ellipse",radialSize:"farthest-corner",stops:Gd(s.map(L6))}}function pG(t){const e=t[0]??"",n=e.toLowerCase(),r=to(n,"at")||to(n,"circle")||to(n,"ellipse")||n.includes("closest-")||n.includes("farthest-"),i=r?e:"",l=r?t.slice(1):t,s=i.toLowerCase(),c=_6(s),u=c.indexOf("at"),h=to(s,"circle")?"circle":"ellipse",g=cG.find(O=>c.includes(O))??"farthest-corner";return{kind:"radial",repeating:!1,angle:180,centerX:vd(c[u+1],50),centerY:vd(c[u+2],50),shape:h,radialSize:g,stops:Gd(l.map(L6))}}function gG(t){const e=t[0]??"",n=e.toLowerCase(),r=to(n,"from")||to(n,"at"),i=r?e:"",l=r?t.slice(1):t,s=_6(i.toLowerCase()),c=s.indexOf("from"),u=s.indexOf("at");return{kind:"conic",repeating:!1,angle:DM(s[c+1])??0,centerX:vd(s[u+1],50),centerY:vd(s[u+2],50),shape:"ellipse",radialSize:"farthest-corner",stops:Gd(l.map(L6))}}function m8(t){return{kind:"linear",repeating:!1,angle:135,centerX:50,centerY:50,shape:"ellipse",radialSize:"farthest-corner",stops:Gd([{color:t&&t!=="transparent"?t:"rgba(60, 230, 172, 0.18)",position:0},{color:"rgba(255, 255, 255, 0.04)",position:100}])}}function OG(t){if(!t||t==="none")return null;const e=t.trim(),n=e.indexOf("(");if(n<=0||!e.endsWith(")"))return null;const r=e.slice(0,n).toLowerCase(),l={"linear-gradient":{kind:"linear",repeating:!1},"radial-gradient":{kind:"radial",repeating:!1},"conic-gradient":{kind:"conic",repeating:!1},"repeating-linear-gradient":{kind:"linear",repeating:!0},"repeating-radial-gradient":{kind:"radial",repeating:!0},"repeating-conic-gradient":{kind:"conic",repeating:!0}}[r];if(!l)return null;const{kind:s,repeating:c}=l,u=dG(e.slice(n+1,-1));return{...s==="linear"?mG(u):s==="radial"?pG(u):gG(u),repeating:c}}function xG(t){return`${t.color} ${Si(t.position)}%`}function Sd(t){const e=`${t.repeating?"repeating-":""}${t.kind}-gradient`,n=t.stops.map(xG).join(", ");return t.kind==="linear"?`${e}(${Si(t.angle)}deg, ${n})`:t.kind==="radial"?`${e}(${t.shape} ${t.radialSize} at ${Si(t.centerX)}% ${Si(t.centerY)}%, ${n})`:`${e}(from ${Si(t.angle)}deg at ${Si(t.centerX)}% ${Si(t.centerY)}%, ${n})`}function w2(t,e,n){return Math.round(t+(e-t)*n)}function k2(t){return t.toString(16).padStart(2,"0")}function yG(t,e){var A;const n=n0(e,0,100),r=[...t.stops].sort((k,C)=>k.position-C.position),i=r.find(k=>Math.abs(k.position-n)<.001);if(i)return i.color;const l=r.find(k=>k.position>n)??r.at(-1),s=[...r].reverse().find(k=>k.position<n)??r[0];if(!s||!l)return((A=r[0])==null?void 0:A.color)??"rgba(255, 255, 255, 1)";if(s===l)return s.color;const c=s.color,u=l.color,h=c?oS(c):null,g=u?oS(u):null;if(!h||!g)return s.color;const O=(n-s.position)/Math.max(1,l.position-s.position),x=w2(h.red,g.red,O),y=w2(h.green,g.green,O),v=w2(h.blue,g.blue,O),w=Si(h.alpha+(g.alpha-h.alpha)*O);return w>=1?`#${k2(x)}${k2(y)}${k2(v)}`.toUpperCase():`rgba(${x}, ${y}, ${v}, ${w})`}function sS(t,e){const n=Si(n0(e,0,100)),r=yG(t,n),i=[...t.stops,{color:r,position:n}].sort((l,s)=>l.position-s.position);return{...t,stops:i}}function oS(t){const e=t.trim().toLowerCase();if(e==="transparent")return{red:0,green:0,blue:0,alpha:0};const n=e.match(/^#([0-9a-f]{6})$/i);if(n)return{red:Number.parseInt(n[1].slice(0,2),16),green:Number.parseInt(n[1].slice(2,4),16),blue:Number.parseInt(n[1].slice(4,6),16),alpha:1};const r=e.match(/^rgba?\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)(?:\s*,\s*([0-9.]+))?\s*\)$/i);return r?{red:Number.parseFloat(r[1]),green:Number.parseFloat(r[2]),blue:Number.parseFloat(r[3]),alpha:r[4]!=null?Number.parseFloat(r[4]):1}:null}function Qu(t){const e=t.trim(),n=/^[a-z]+:\/\//i.test(e)?new URL(e).pathname:e;return decodeURIComponent(n).replace(/\\/g,"/").replace(/^\.?\//,"")}function bG(t,e){const n=Qu(t).split("/").filter(Boolean),r=Qu(e).split("/").filter(Boolean);for(n.pop();n.length>0&&r.length>0&&n[0]===r[0];)n.shift(),r.shift();return[...n.map(()=>".."),...r].join("/")||e}function cS(t){return Qu(t)}function vG(t,e,n){const r=Qu(t);if(!r)return null;for(const i of n){const l=Qu(i),s=bG(e,i);if(r===l||r===s||r.endsWith(`/${l}`)||r.endsWith(`/${s}`))return i}return null}function SG({projectId:t,sourceFile:e,value:n,assets:r,disabled:i,onCommit:l,onImportAssets:s}){const c=d.useRef(null),[u,h]=d.useState(!1),g=d.useMemo(()=>r.filter(v=>uu.test(v)),[r]),O=d.useMemo(()=>vG(n,e,g),[g,e,n]),x=O?"":n,y=async v=>{if(!(!(v!=null&&v.length)||!s)){h(!0);try{const A=(await s(v)).find(k=>uu.test(k));A&&l(`url("${cS(A)}")`)}finally{h(!1)}}};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[m.jsx("span",{className:Kt,children:"Project asset"}),m.jsxs("button",{type:"button",disabled:i||u,onClick:()=>{var v;return(v=c.current)==null?void 0:v.click()},className:`inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors ${i||u?"cursor-not-allowed text-neutral-600":"cursor-pointer hover:border-neutral-600 hover:text-white"}`,children:[m.jsx(F8,{size:12,className:"flex-shrink-0"}),m.jsx("span",{className:"truncate",children:u?"Uploading…":"Upload image"})]}),m.jsx("input",{ref:c,type:"file",accept:"image/*","aria-label":"Upload image asset",disabled:i||u,className:"hidden",onChange:async v=>{await y(v.target.files),v.target.value=""}})]}),g.length>0?m.jsxs("div",{className:"space-y-3",children:[O&&m.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-800 bg-neutral-900/80",children:m.jsx("img",{src:`/api/projects/${t}/preview/${O}`,alt:O.split("/").pop()??O,className:"h-28 w-full object-contain bg-neutral-950/80"})}),m.jsx("div",{className:Qi,children:m.jsxs("select",{value:O??"",disabled:i,onChange:v=>{const w=v.target.value;if(!w){l("none");return}l(`url("${cS(w)}")`)},className:"min-w-0 w-full appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx("option",{value:"",children:"None"}),g.map(v=>m.jsx("option",{value:v,children:v},v))]})})]}):m.jsx("div",{className:"rounded-xl border border-dashed border-neutral-800 bg-neutral-900/50 px-3 py-3 text-[11px] leading-5 text-neutral-500",children:"No image assets yet. Upload one here and Studio will also add it to the Assets tab."})]}),m.jsx(R6,{label:"External URL",value:x,disabled:i,onCommit:v=>l(v.trim()?`url("${v.trim()}")`:"none")})]})}function wG({value:t,fallbackColor:e,disabled:n,onCommit:r}){const i=d.useRef(null),l=OG(t)??m8(e),s=x=>r(Sd(x)),c=x=>s({...l,...x}),u=(x,y)=>{const v=l.stops.map((w,A)=>A===x?{...w,...y}:w);s({...l,stops:v})},h=x=>{var v,w;const y=x!=null?sS(l,x):sS(l,((v=l.stops.at(-1))==null?void 0:v.position)!=null?Math.min(100,(((w=l.stops.at(-1))==null?void 0:w.position)??90)+10):100);s(y)},g=x=>{l.stops.length<=2||s({...l,stops:l.stops.filter((y,v)=>v!==x)})},O={backgroundImage:Sd(l)};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:`${Qi} space-y-3 p-3`,children:[m.jsx("div",{ref:i,className:"relative h-11 overflow-hidden rounded-lg border border-neutral-700",style:O,onClick:x=>{var v;if(n)return;const y=(v=i.current)==null?void 0:v.getBoundingClientRect();!y||y.width<=0||h((x.clientX-y.left)/y.width*100)},children:l.stops.map((x,y)=>m.jsx("div",{className:"absolute top-1/2 h-4 w-4 -translate-y-1/2 rounded-full border-2 border-white/90 shadow-[0_0_0_1px_rgba(0,0,0,0.35)]",style:{left:`calc(${x.position}% - 8px)`,backgroundColor:x.color}},`stop-preview-${y}`))}),m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[m.jsx(fo,{disabled:n,value:l.kind,onChange:x=>c({kind:x}),options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"},{label:"Conic",value:"conic"}]}),m.jsxs("label",{className:"flex items-center gap-2 text-[11px] font-medium text-neutral-400",children:[m.jsx("input",{type:"checkbox",checked:l.repeating,disabled:n,onChange:x=>c({repeating:x.target.checked}),className:"h-4 w-4 rounded border-neutral-700 bg-neutral-950 text-[#3ce6ac] focus:ring-[#3ce6ac]"}),"Repeat"]}),m.jsxs("button",{type:"button",disabled:n,onClick:()=>s({...l,stops:[...l.stops].reverse().map(x=>({...x,position:100-x.position}))}),className:"inline-flex h-7 items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx(Y8,{size:12}),"Reverse"]})]})]}),(l.kind==="linear"||l.kind==="conic")&&m.jsxs("div",{className:"grid gap-1.5",children:[m.jsx("span",{className:Kt,children:l.kind==="linear"?"Angle":"Start angle"}),m.jsx(ii,{value:l.angle,min:0,max:360,step:1,disabled:n,displayValue:`${Math.round(l.angle)}°`,formatDisplayValue:x=>`${Math.round(x)}°`,onCommit:x=>c({angle:x})})]}),l.kind==="radial"&&m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Shape",value:l.shape,disabled:n,onChange:x=>c({shape:x}),options:["ellipse","circle"]}),m.jsx(Vn,{label:"Size",value:l.radialSize,disabled:n,onChange:x=>c({radialSize:x}),options:["closest-side","closest-corner","farthest-side","farthest-corner"]})]}),(l.kind==="radial"||l.kind==="conic")&&m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Center X"}),m.jsx(ii,{value:l.centerX,min:0,max:100,step:1,disabled:n,displayValue:`${Math.round(l.centerX)}%`,formatDisplayValue:x=>`${Math.round(x)}%`,onCommit:x=>c({centerX:x})})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Center Y"}),m.jsx(ii,{value:l.centerY,min:0,max:100,step:1,disabled:n,displayValue:`${Math.round(l.centerY)}%`,formatDisplayValue:x=>`${Math.round(x)}%`,onCommit:x=>c({centerY:x})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:Kt,children:"Stops"}),m.jsxs("button",{type:"button",disabled:n||l.stops.length>=6,onClick:()=>h(),className:"inline-flex h-7 items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-600",children:[m.jsx(F8,{size:12}),"Add stop"]})]}),m.jsx("div",{className:"space-y-3",children:l.stops.map((x,y)=>m.jsxs("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_68px_28px] gap-2",children:[m.jsx(iu,{label:`Stop ${y+1}`,value:x.color,disabled:n,onCommit:v=>u(y,{color:v})}),m.jsx(R6,{label:"Pos",value:`${Math.round(x.position)}%`,disabled:n,onCommit:v=>u(y,{position:Number.parseFloat(v.replace("%",""))||0})}),m.jsx("button",{type:"button",disabled:n||l.stops.length<=2,onClick:()=>g(y),className:"mt-[22px] flex h-10 items-center justify-center rounded-lg border border-neutral-700 bg-neutral-950 text-neutral-400 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:text-neutral-700","aria-label":`Remove stop ${y+1}`,children:m.jsx(Cd,{size:12})})]},`stop-editor-${y}`))})]})]})}function kG({projectId:t,element:e,styles:n,assets:r,onSetStyle:i,onImportAssets:l}){const s=!e.capabilities.canEditStyles,c=n.display==="flex"||n.display==="inline-flex",u=d8(n["border-radius"])??0,h=Math.round((d8(n.opacity)??1)*100),g=ta(n["border-width"]??"")??ta(n["border-top-width"]??"")??0,O=n.background!=null&&n.background!=="none"&&n.background!==""||n["background-color"]!=null&&n["background-color"]!=="transparent"&&n["background-color"]!=="rgba(0, 0, 0, 0)"&&n["background-color"]!==""||n["background-image"]!=null&&n["background-image"]!=="none"&&n["background-image"]!==""||g>0,x=n["border-style"]||n["border-top-style"]||"none",y=n["border-color"]||n["border-top-color"]||"rgba(255, 255, 255, 0.18)",v=zq(n["box-shadow"]),w=Jv(n.filter,"blur"),A=Jv(n["backdrop-filter"],"blur"),k=n["clip-path"]||"none",C=Bq(k),T=Yq(k),$=n["background-image"]??"none",M=H8(e),j=$&&$!=="none"?$.includes("gradient")?"Gradient":"Image":"Solid",[E,N]=d.useState(j),R=Wq($);d.useEffect(()=>{N(j)},[j,e.id,e.selector,$]);const L=V=>{if(N(V),V==="Solid"){i("background-image","none");return}V==="Gradient"&&!$.includes("gradient")&&i("background-image",Sd(m8(n["background-color"])))};return m.jsxs(m.Fragment,{children:[c&&m.jsx(Cr,{title:"Flex",icon:m.jsx(Hf,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(fo,{disabled:s,value:n["flex-direction"]||"row",onChange:V=>i("flex-direction",V),options:[{label:"→ Row",value:"row"},{label:"↓ Column",value:"column"}]}),m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Justify",value:n["justify-content"]||"flex-start",disabled:s,onChange:V=>i("justify-content",V),options:["flex-start","center","space-between","space-around","space-evenly","flex-end"]}),m.jsx(Vn,{label:"Align",value:n["align-items"]||"stretch",disabled:s,onChange:V=>i("align-items",V),options:["stretch","flex-start","center","flex-end","baseline"]})]}),m.jsx(R6,{label:"Gap",value:n.gap??"0px",disabled:s,onCommit:V=>i("gap",V.endsWith("px")?V:`${V}px`)})]})}),O&&m.jsx(Cr,{title:"Radius",icon:m.jsx(KV,{size:15}),defaultCollapsed:!0,children:m.jsx(ii,{value:u,min:0,max:Math.max(240,Math.ceil(u)),step:1,disabled:s,displayValue:`${Bt(u)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("border-radius",`${Bt(V)}px`)})}),m.jsx(Cr,{title:"Stroke",icon:m.jsx(YV,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Width",value:zl(g),disabled:s,liveCommit:!0,onCommit:async V=>{const z=Hq(V,{min:0,max:200,fallback:g});if(z)for(const[q,U]of Iq(z,x))await i(q,U)}}),m.jsx(Vn,{label:"Style",value:x,disabled:s,onChange:async V=>{for(const[z,q]of qq(V,zl(g)))await i(z,q)},options:["none","solid","dashed","dotted","double","hidden","groove","ridge","inset","outset"]})]}),m.jsx(iu,{label:"Stroke color",value:y,disabled:s,onCommit:V=>i("border-color",V)})]})}),m.jsx(Cr,{title:"Effects",icon:m.jsx(B8,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(Vn,{label:"Shadow",value:v,disabled:s,onChange:V=>{V!=="custom"&&i("box-shadow",Fq(V,n["box-shadow"]))},options:["custom","none","soft","lift","glow"]}),m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Layer blur"}),m.jsx(ii,{value:w,min:0,max:Math.max(40,Math.ceil(w)),step:1,disabled:s,displayValue:`${Bt(w)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("filter",eS(n.filter,"blur",V))})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Backdrop"}),m.jsx(ii,{value:A,min:0,max:Math.max(60,Math.ceil(A)),step:1,disabled:s,displayValue:`${Bt(A)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("backdrop-filter",eS(n["backdrop-filter"],"blur",V))})]})]})]})}),m.jsx(Cr,{title:"Clip",icon:m.jsx(Hf,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Overflow",value:n.overflow||"visible",disabled:s,onChange:V=>i("overflow",V),options:["visible","hidden","clip","auto","scroll"]}),m.jsx(Vn,{label:"Mask",value:C,disabled:s,onChange:V=>{V!=="custom"&&i("clip-path",Gq(V,u,k))},options:["custom","none","inset","circle"]})]}),m.jsxs("div",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:"Mask inset"}),m.jsx(ii,{value:T,min:0,max:Math.max(120,Math.ceil(T)),step:1,disabled:s,displayValue:`${Bt(T)}px`,formatDisplayValue:V=>`${Bt(V)}px`,onCommit:V=>i("clip-path",Uq(V,u))})]})]})}),m.jsx(Cr,{title:"Transparency",icon:m.jsx(Iw,{size:15}),defaultCollapsed:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(ii,{value:h,min:0,max:100,step:1,disabled:s,displayValue:`${h}%`,formatDisplayValue:V=>`${Math.round(V)}%`,onCommit:V=>i("opacity",Bt(V/100))}),m.jsx(Vn,{label:"Mode",value:n["mix-blend-mode"]||"normal",disabled:s,onChange:V=>i("mix-blend-mode",V),options:["normal","multiply","screen","overlay","darken","lighten"]})]})}),m.jsx(Cr,{title:"Fill",icon:m.jsx(BV,{size:15}),accessory:m.jsx("div",{className:"rounded-full border border-neutral-700 bg-neutral-900 px-2.5 py-1 text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-400",children:E}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(fo,{disabled:s,value:E,onChange:L,options:[{label:"Solid",value:"Solid"},{label:"Gradient",value:"Gradient"},{label:"Image",value:"Image"}]}),E==="Solid"?m.jsx(iu,{label:"Fill color",value:n["background-color"]??"transparent",disabled:s,onCommit:V=>i("background-color",V)}):E==="Gradient"?m.jsx(wG,{value:$!=="none"?$:Sd(m8(n["background-color"])),fallbackColor:n["background-color"],disabled:s,onCommit:V=>i("background-image",V)}):m.jsx(SG,{projectId:t,sourceFile:e.sourceFile,value:R,assets:r,disabled:s,onCommit:V=>i("background-image",V),onImportAssets:l}),!M&&m.jsx(iu,{label:"Text color",value:n.color??"rgb(0, 0, 0)",disabled:s,onCommit:V=>i("color",V)})]})})]})}function HM(t){const e=t.trim().replace(/\s+/g," ");return e.length<=56?e:`${e.slice(0,55)}…`}function XM(t,e){return t.computedStyles.color||e.color||"rgb(0, 0, 0)"}function Dc(t,e,n,r){return t.computedStyles[n]||e[n]||r}const Ic=["100","200","300","400","500","600","700","800","900"],AG={100:"100 · Thin",200:"200 · Extra Light",300:"300 · Light",400:"400 · Regular",500:"500 · Medium",600:"600 · Semi Bold",700:"700 · Bold",800:"800 · Extra Bold",900:"900 · Black"};function MG(t){var i;const e=document.fonts;if(!e)return Ic;const n=(i=t.split(",")[0])==null?void 0:i.trim().replace(/['"]/g,"");if(!n)return Ic;const r=[];for(const l of Ic)e.check(`${l} 16px "${n}"`)&&r.push(l);return r.length>0?r:Ic}function CG({label:t,value:e,disabled:n,autoFocus:r,onCommit:i}){const[l,s]=d.useState(e),c=d.useRef(null),u=d.useRef(null),h=d.useRef(!1),g=d.useRef(e);g.current=e,d.useEffect(()=>{h.current||s(e)},[e]),d.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]),d.useEffect(()=>{var y;r&&((y=c.current)==null||y.focus())},[r]);const O=y=>{u.current&&clearTimeout(u.current),y!==g.current&&i(y)},x=y=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{y!==g.current&&i(y)},120)};return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:Kt,children:t}),m.jsx("div",{className:Qi,children:m.jsx("textarea",{ref:c,value:l,disabled:n,rows:4,onFocus:()=>{h.current=!0},onChange:y=>{s(y.target.value),x(y.target.value)},onBlur:()=>{h.current=!1,O(l)},className:"w-full resize-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600"})})]})}function EG({value:t,disabled:e,fontFamily:n,onCommit:r}){const i=n?MG(n):Ic,l=t&&!i.includes(t)?[t,...i]:i;return m.jsx("div",{className:Qi,children:m.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[m.jsx("span",{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500",children:"Weight"}),m.jsx("select",{value:t,disabled:e,onChange:s=>r(s.target.value),className:"min-w-0 w-full appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600",children:l.map(s=>m.jsx("option",{value:s,children:AG[s]??s},s))})]})})}function TG({field:t,inheritedStyles:e,disabled:n,onCommit:r}){return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Line",value:Dc(t,e,"line-height","normal"),disabled:n,options:["normal","1","1.1","1.2","1.25","1.3","1.4","1.5","1.6","1.75","2"],onChange:i=>r("line-height",Kv("line-height",i))}),m.jsx(Vn,{label:"Track",value:Dc(t,e,"letter-spacing","0px"),disabled:n,options:["0px","-0.05em","-0.04em","-0.03em","-0.02em","-0.01em","0em","0.01em","0.02em","0.03em","0.05em","0.1em","0.15em","0.2em"],onChange:i=>r("letter-spacing",Kv("letter-spacing",i))})]}),m.jsxs("div",{className:qn,children:[m.jsx(Vn,{label:"Align",value:Dc(t,e,"text-align","start"),disabled:n,onChange:i=>r("text-align",i),options:["start","left","center","right","justify","end"]}),m.jsx(Vn,{label:"Case",value:Dc(t,e,"text-transform","none"),disabled:n,onChange:i=>r("text-transform",i),options:["none","uppercase","lowercase","capitalize"]})]}),m.jsx(Vn,{label:"Style",value:Dc(t,e,"font-style","normal"),disabled:n,onChange:i=>r("font-style",i),options:["normal","italic"]})]})}function uS({field:t,styles:e,fontAssets:n,onImportFonts:r,showRemove:i,onSetText:l,onSetTextFieldStyle:s,onRemoveTextField:c}){return m.jsxs("div",{className:"space-y-4 rounded-xl border border-neutral-800 bg-neutral-900/60 p-3",children:[m.jsxs("div",{className:i?"flex min-w-0 items-center justify-between gap-2":"min-w-0",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"truncate text-[11px] font-medium text-neutral-100",children:HM(t.value)||"Text"}),m.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-neutral-500",children:t.tagName})]}),i&&m.jsx("button",{type:"button",onClick:()=>c(t.key),className:"inline-flex h-7 flex-shrink-0 items-center rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:"Remove"})]}),m.jsx(CG,{label:"Content",value:t.value,disabled:!1,autoFocus:i,onCommit:u=>l(u,t.key)},t.key),m.jsx(iu,{label:"Text color",value:XM(t,e),disabled:!1,onCommit:u=>s(t.key,"color",u)}),m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Size",value:t.computedStyles["font-size"]||e["font-size"]||"16px",disabled:!1,liveCommit:!0,onCommit:u=>s(t.key,"font-size",u)}),m.jsx(EG,{value:t.computedStyles["font-weight"]||e["font-weight"]||"400",fontFamily:t.computedStyles["font-family"]||e["font-family"],disabled:!1,onCommit:u=>s(t.key,"font-weight",u)})]}),m.jsx(oG,{value:t.computedStyles["font-family"]||e["font-family"]||"inherit",disabled:!1,importedFonts:n,onImportFonts:r,onCommit:u=>s(t.key,"font-family",u)}),m.jsx(TG,{field:t,inheritedStyles:e,disabled:!1,onCommit:(u,h)=>s(t.key,u,h)})]})}function $G({element:t,styles:e,fontAssets:n,onImportFonts:r,onSetText:i,onSetTextFieldStyle:l,onAddTextField:s,onRemoveTextField:c}){var y;const u=H8(t),[h,g]=d.useState(((y=t.textFields[0])==null?void 0:y.key)??null);if(d.useEffect(()=>{const v=t.textFields;g(w=>{var A;return w&&v.some(k=>k.key===w)?w:((A=v[0])==null?void 0:A.key)??null})},[t.id,t.selector,t.textFields]),!u)return null;const O=t.textFields,x=O.find(v=>v.key===h)??O[0];return x?O.length===1?m.jsx(Cr,{title:"Text",icon:m.jsx(f3,{size:15}),children:m.jsx(uS,{field:x,styles:e,fontAssets:n,onImportFonts:r,showRemove:!1,onSetText:i,onSetTextFieldStyle:l,onRemoveTextField:c})}):m.jsx(Cr,{title:"Text",icon:m.jsx(f3,{size:15}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid gap-1.5",children:[m.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[m.jsx("span",{className:Kt,children:"Text layers"}),m.jsxs("button",{type:"button",onClick:()=>{Promise.resolve(s(x.key)).then(v=>{v&&g(v)})},className:"inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-neutral-700 bg-neutral-950 px-2.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:[m.jsx(F8,{size:12,className:"flex-shrink-0"}),m.jsx("span",{className:"truncate",children:"Add text"})]})]}),m.jsx("div",{className:"grid gap-2",children:O.map((v,w)=>{const A=v.key===x.key;return m.jsx("button",{type:"button",onClick:()=>g(v.key),className:`min-w-0 w-full rounded-xl border px-3 py-2 text-left transition-colors ${A?"border-studio-accent/50 bg-studio-accent/10":"border-neutral-800 bg-neutral-900/80 hover:border-neutral-700 hover:bg-neutral-900"}`,children:m.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx("span",{className:"h-4 w-4 flex-shrink-0 rounded border border-neutral-700 bg-neutral-950",style:{backgroundColor:XM(v,e)}}),m.jsx("span",{className:"min-w-0 truncate text-[11px] font-medium text-neutral-100",children:HM(v.value)||`Text ${w+1}`})]}),m.jsx("span",{className:"flex-shrink-0 rounded-md border border-neutral-700 bg-neutral-950 px-1.5 py-0.5 text-[10px] uppercase tracking-[0.12em] text-neutral-500",children:v.tagName})]})},v.key)})})]}),m.jsx(uS,{field:x,styles:e,fontAssets:n,onImportFonts:r,showRemove:!0,onSetText:i,onSetTextFieldStyle:l,onRemoveTextField:c})]})}):null}const fS=["x","y","scale","scaleX","scaleY","rotation","skewX","skewY","z","rotationX","rotationY","rotationZ","perspective","transformOrigin","opacity","visibility","autoAlpha","width","height","color","backgroundColor","borderColor","borderRadius","fontSize","letterSpacing","filter","clipPath","innerText"],jG=["none","power1.in","power1.out","power1.inOut","power2.in","power2.out","power2.inOut","power3.in","power3.out","power3.inOut","power4.in","power4.out","power4.inOut","back.in","back.out","back.inOut","elastic.in","elastic.out","elastic.inOut","bounce.in","bounce.out","bounce.inOut","expo.in","expo.out","expo.inOut","spring-gentle","spring-bouncy","spring-stiff","spring-wobbly","spring-heavy"];function dS(t,e){const n=KS[t]??"";return JS.has(t)?`${Math.round(Number(e)*100)}${n}`:`${e}${n}`}function PG(t){const e=t.ease??"none",n=mu[e]??e,r=Object.entries(t.properties),i=t.targetSelector,l=t.duration??0,s=t.position,c=typeof s=="number"?parseFloat(s.toFixed(3)):s,u=r.map(([g,O])=>`${(sl[g]??g).toLowerCase()} to ${dS(g,O)}`),h=u.length>0?u.join(", "):"no properties yet";if(t.method==="set")return`At ${c}s, instantly set ${i}'s ${h}.`;if(t.method==="from")return`Starting at ${c}s, over ${l}s, ${i} enters from ${h} using a ${n.toLowerCase()} curve.`;if(t.method==="fromTo"){const O=Object.entries(t.fromProperties??{}).map(([y,v])=>`${(sl[y]??y).toLowerCase()} ${dS(y,v)}`),x=O.length>0?O.join(", "):"—";return`Starting at ${c}s, over ${l}s, ${i} animates from [${x}] to [${h}] using a ${n.toLowerCase()} curve.`}return`Starting at ${c}s, over ${l}s, animate ${i}'s ${h} using a ${n.toLowerCase()} curve.`}function mf(t){return Math.round(t*100)/100}function QG({ease:t,duration:e,onCustomEaseCommit:n}){const r=t.startsWith("custom("),i=qj[t],l=r?Gj(t):null,s=r&&l?[l.x1,l.y1,l.x2,l.y2]:i??null,[c,u]=d.useState(null),[h,g]=d.useState(null),O=d.useRef(null),x=d.useRef(null),y=d.useRef(0),v=d.useCallback(()=>{const P=performance.now(),Z=1e3,X=Y=>{const J=Math.min((Y-P)/Z,1);g(J),J<1?y.current=requestAnimationFrame(X):setTimeout(()=>g(null),400)};cancelAnimationFrame(y.current),y.current=requestAnimationFrame(X)},[]),w=c??s;if(!w)return null;const[A,k,C,T]=w,$=200,M=100,j=14,E=$-j*2,N=M-j*2,R=(P,Z)=>({x:j+E*P,y:M-j-N*Z}),L=`M${j},${M-j} C${R(A,k).x},${R(A,k).y} ${R(C,T).x},${R(C,T).y} ${$-j},${j}`;let V=j,z=M-j;if(h!==null){const P=h,Z=1-P;V=j+E*(Z*Z*Z*0+3*Z*Z*P*A+3*Z*P*P*C+P*P*P),z=M-j-N*(Z*Z*Z*0+3*Z*Z*P*k+3*Z*P*P*T+P*P*P)}const q=(P,Z)=>{Z.preventDefault(),Z.stopPropagation(),O.current=P,Z.target.setPointerCapture(Z.pointerId),c||u([A,k,C,T])},U=P=>{if(!O.current||!x.current)return;P.preventDefault();const Z=x.current.getBoundingClientRect(),X=(P.clientX-Z.left)/Z.width*$,Y=(P.clientY-Z.top)/Z.height*M,J=Math.max(0,Math.min(1,(X-j)/E)),ne=Math.max(-1,Math.min(2,(M-j-Y)/N)),B=c??[A,k,C,T],re=O.current==="p1"?[mf(J),mf(ne),B[2],B[3]]:[B[0],B[1],mf(J),mf(ne)];u(re)},K=()=>{if(!O.current||!c)return;O.current=null;const P=`M0,0 C${c[0]},${c[1]} ${c[2]},${c[3]} 1,1`;n(`custom(${P})`),u(null)},D=R(A,k),G=R(C,T),H=R(0,0),F=R(1,1),I=r?"Custom curve":mu[t]??t;return m.jsxs("div",{className:"rounded-lg bg-neutral-900/50 p-2",children:[m.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[m.jsx("span",{className:"text-[10px] font-medium text-neutral-500",children:"Speed curve"}),m.jsx("button",{type:"button",onClick:v,className:"rounded px-1.5 py-0.5 text-[10px] font-medium text-emerald-400 transition-colors hover:bg-emerald-500/10",children:h!==null?"Playing…":"Preview"})]}),m.jsx("div",{className:"overflow-hidden rounded pt-[72px] -mt-[72px]",style:{aspectRatio:`${$}/${M}`},children:m.jsxs("svg",{ref:x,width:"100%",height:"100%",viewBox:`0 0 ${$} ${M}`,preserveAspectRatio:"none",style:{overflow:"visible"},className:"touch-none select-none",onPointerMove:U,onPointerUp:K,onPointerCancel:K,children:[m.jsx("line",{x1:j,y1:M-j,x2:$-j,y2:M-j,stroke:"white",strokeOpacity:"0.06",strokeWidth:"0.5"}),m.jsx("line",{x1:j,y1:j,x2:j,y2:M-j,stroke:"white",strokeOpacity:"0.06",strokeWidth:"0.5"}),m.jsx("line",{x1:H.x,y1:H.y,x2:D.x,y2:D.y,stroke:"rgba(52,211,153,0.25)",strokeWidth:"1"}),m.jsx("line",{x1:F.x,y1:F.y,x2:G.x,y2:G.y,stroke:"rgba(52,211,153,0.25)",strokeWidth:"1"}),m.jsx("path",{d:L,fill:"none",stroke:"#34d399",strokeWidth:"2",strokeLinecap:"round"}),h!==null&&m.jsx("circle",{cx:V,cy:z,r:"4",fill:"#34d399"}),m.jsx("circle",{cx:D.x,cy:D.y,r:"5",fill:"#0a0a1a",stroke:"#34d399",strokeWidth:"2",className:"cursor-grab active:cursor-grabbing",onPointerDown:P=>q("p1",P)}),m.jsx("circle",{cx:G.x,cy:G.y,r:"5",fill:"#0a0a1a",stroke:"#34d399",strokeWidth:"2",className:"cursor-grab active:cursor-grabbing",onPointerDown:P=>q("p2",P)}),e!=null&&e>0&&m.jsxs(m.Fragment,{children:[m.jsx("text",{x:j,y:M-1,textAnchor:"start",className:"fill-neutral-600 text-[8px]",children:"0s"}),m.jsxs("text",{x:j+E/2,y:M-1,textAnchor:"middle",className:"fill-neutral-600 text-[8px]",children:[(e/2).toFixed(1),"s"]}),m.jsxs("text",{x:$-j,y:M-1,textAnchor:"end",className:"fill-neutral-600 text-[8px]",children:[e,"s"]})]})]})}),m.jsx("p",{className:"mt-1 text-center text-[10px] text-neutral-500",children:I})]})}const p8=new Set(["visibility"]),ZG=new Set(["filter","clipPath"]),NG=[{label:"Blur",value:"blur(4px)"},{label:"Bright",value:"brightness(1.5)"},{label:"Gray",value:"grayscale(1)"},{label:"None",value:"none"}],RG=[{label:"Circle",value:"circle(50% at 50% 50%)"},{label:"Inset",value:"inset(10%)"},{label:"None",value:"none"}];function zM(t){return JS.has(t)}function VG(t,e){return zM(t)?String(Math.round(Math.max(0,Math.min(1,Number(e)))*100)):String(e)}function _G(t,e){if(zM(t))return String(Oy(t,Number(e)/100));const n=Number(e);return!Number.isNaN(n)&&e7[t]?String(Oy(t,n)):e}function A2({onClick:t,title:e}){return m.jsx("button",{type:"button",onClick:t,className:"flex-shrink-0 rounded p-0.5 text-neutral-600 transition-colors hover:bg-neutral-800 hover:text-red-400",title:e,children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:m.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})})}function hS({prop:t,val:e,onCommit:n,onRemove:r,removeTitle:i}){if(p8.has(t)){const l=e==="visible"||e===1;return m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2 px-2 py-1 rounded-lg bg-neutral-900 border border-neutral-800",children:[m.jsx("span",{className:"flex-1 text-[11px] font-medium text-neutral-500",children:sl[t]??t}),m.jsx("button",{type:"button",onClick:()=>n(l?"hidden":"visible"),className:`flex-shrink-0 w-7 h-4 rounded-full transition-colors relative ${l?"bg-emerald-500/30":"bg-neutral-700"}`,title:l?"Visible — click to hide":"Hidden — click to show",children:m.jsx("span",{className:`absolute top-0.5 h-3 w-3 rounded-full transition-transform ${l?"bg-emerald-400 translate-x-3.5":"bg-neutral-500 translate-x-0.5"}`})})]}),m.jsx(A2,{onClick:r,title:i})]})}if(ZG.has(t)){const l=t==="filter"?NG:t==="clipPath"?RG:[];return m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2 px-2 py-1 rounded-lg bg-neutral-900 border border-neutral-800",children:[m.jsx("span",{className:"flex-shrink-0 text-[11px] font-medium text-neutral-500",children:sl[t]??t}),m.jsx("input",{type:"text",defaultValue:String(e),className:"flex-1 bg-transparent text-[11px] text-neutral-200 outline-none",onBlur:s=>n(s.currentTarget.value),onKeyDown:s=>{s.key==="Enter"&&s.currentTarget.blur()}})]}),m.jsx(A2,{onClick:r,title:i})]}),l.length>0&&m.jsx("div",{className:"flex gap-1 pl-1",children:l.map(s=>m.jsx("button",{type:"button",onClick:()=>n(s.value),className:"px-1.5 py-0.5 rounded text-[9px] font-medium text-neutral-500 bg-neutral-800/50 hover:bg-neutral-800 hover:text-neutral-300 transition-colors",children:s.label},s.value))})]})}return m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"min-w-0 flex-1",children:m.jsx(An,{label:sl[t]??t,value:VG(t,e),suffix:KS[t],tooltip:Ij[t],scrub:!0,liveCommit:!0,onCommit:l=>n(_G(t,l))})}),m.jsx(A2,{onClick:r,title:i})]})}function mS({adding:t,available:e,addLabel:n,addTitle:r,onAdd:i,onOpen:l,onClose:s,buttonClassName:c}){return t&&e.length>0?m.jsxs("select",{autoFocus:!0,className:"min-w-0 rounded-lg border border-neutral-700 bg-neutral-900 px-2 py-1 text-[11px] text-neutral-100 outline-none",defaultValue:"",onChange:u=>{u.target.value&&i(u.target.value),s()},onBlur:s,children:[m.jsx("option",{value:"",disabled:!0,children:"Choose property…"}),e.map(u=>m.jsx("option",{value:u,children:sl[u]??u},u))]}):e.length===0?null:m.jsx("button",{type:"button",onClick:l,className:c,title:r,children:n})}function M2(t){const e=Number(t);return Number.isFinite(e)?e:t}const LG=d.memo(function({animation:e,defaultExpanded:n,onUpdateProperty:r,onUpdateMeta:i,onDeleteAnimation:l,onAddProperty:s,onRemoveProperty:c,onUpdateFromProperty:u,onAddFromProperty:h,onRemoveFromProperty:g,onLivePreview:O,onLivePreviewEnd:x}){var F;const[y,v]=d.useState(n),[w,A]=d.useState(!1),[k,C]=d.useState(!1),T=d.useMemo(()=>new Set(Object.keys(e.properties)),[e.properties]),$=d.useMemo(()=>fS.filter(I=>!T.has(I)&&(e.method==="set"||!p8.has(I))),[T,e.method]),M=d.useMemo(()=>new Set(Object.keys(e.fromProperties??{})),[e.fromProperties]),j=d.useMemo(()=>fS.filter(I=>!M.has(I)&&!p8.has(I)),[M]),E=d.useCallback((I,P)=>{const Z=M2(P);r(e.id,I,Z),x==null||x()},[e.id,r,x]),N=d.useCallback((I,P)=>{O==null||O(I,M2(P))},[O]),R=d.useCallback((I,P)=>{const Z=M2(P);u==null||u(e.id,I,Z),x==null||x()},[e.id,u,x]),L=d.useCallback(I=>{const P=Number(I);Number.isFinite(P)&&P>=0&&i(e.id,{duration:Math.max(0,P)})},[e.id,i]),V=d.useCallback(I=>{const P=Number(I);Number.isFinite(P)&&P>=0&&i(e.id,{position:Math.max(0,P)})},[e.id,i]),[z,q]=d.useState(!1),U=Yj[e.method]??e.method,K=e.ease??"none",D=K.startsWith("custom(")?"Custom curve":mu[K]??K,G=typeof e.position=="number"?e.position+(e.duration??0):e.position,H=d.useMemo(()=>PG(e),[e]);return m.jsxs("div",{className:"border-b border-neutral-800 pb-3",children:[m.jsxs("button",{type:"button",onClick:()=>v(I=>!I),className:"flex w-full items-center gap-2 py-1.5",children:[m.jsx("span",{className:"rounded bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-semibold text-emerald-400",title:WS[e.method],children:U}),m.jsxs("span",{className:"text-[11px] font-medium text-neutral-400",title:"When this effect plays",children:[typeof e.position=="number"?`${parseFloat(e.position.toFixed(3))}s`:e.position," ","– ",typeof G=="number"?`${parseFloat(G.toFixed(3))}s`:G]}),m.jsx("span",{className:"ml-auto text-[10px] text-neutral-500",title:K,children:D}),m.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:`flex-shrink-0 text-neutral-500 transition-transform ${y?"":"-rotate-90"}`,children:m.jsx("path",{d:"M2 3l3 4 3-4z"})})]}),y&&m.jsx("div",{className:"pt-2",children:m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("p",{className:"flex-1 text-[10px] leading-relaxed text-neutral-400 italic",children:H}),m.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(H),q(!0),setTimeout(()=>q(!1),1500)},className:"flex-shrink-0 rounded px-1.5 py-0.5 text-[9px] font-medium text-neutral-500 transition-colors hover:bg-neutral-800 hover:text-neutral-300",title:"Copy description to clipboard — paste into agent prompts",children:z?"Copied":"Copy"})]}),m.jsxs("div",{className:qn,children:[e.method!=="set"&&m.jsx(An,{label:"Length",value:String(Math.max(0,e.duration??0)),suffix:"s",tooltip:"How long this effect lasts",onCommit:L}),m.jsx(An,{label:"Starts at",value:typeof e.position=="string"?e.position:String(parseFloat(Math.max(0,e.position).toFixed(3))),suffix:typeof e.position=="number"?"s":void 0,tooltip:"When this effect begins on the timeline",onCommit:V})]}),e.method!=="set"&&m.jsxs(m.Fragment,{children:[m.jsx(Vn,{label:"Speed",value:(F=e.ease)!=null&&F.startsWith("custom(")?"custom":e.ease??"none",options:[...jG,"custom"],onChange:I=>{if(I==="custom"){const P=hu(e.ease??"power2.out"),Z=`M0,0 C${P.x1},${P.y1} ${P.x2},${P.y2} 1,1`;i(e.id,{ease:`custom(${Z})`})}else i(e.id,{ease:I})}}),m.jsx(QG,{ease:e.ease??"none",duration:e.duration,onCustomEaseCommit:I=>i(e.id,{ease:I})})]}),e.method==="fromTo"&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("p",{className:"text-[9px] font-semibold uppercase tracking-wider text-orange-400/70",children:"From"}),m.jsx("div",{className:"space-y-1.5",children:Object.entries(e.fromProperties??{}).map(([I,P])=>m.jsx(hS,{prop:I,val:P,onCommit:Z=>R(I,Z),onRemove:()=>g==null?void 0:g(e.id,I),removeTitle:`Remove from-${sl[I]??I}`},I))}),m.jsx("div",{className:"pt-0.5",children:m.jsx(mS,{adding:k,available:j,addLabel:"+ From property",addTitle:"Add a from-state property",onAdd:I=>h==null?void 0:h(e.id,I),onOpen:()=>C(!0),onClose:()=>C(!1),buttonClassName:"text-[11px] font-medium text-orange-400/70 transition-colors hover:text-orange-300"})})]}),e.method==="fromTo"&&Object.keys(e.properties).length>0&&m.jsx("p",{className:"text-[9px] font-semibold uppercase tracking-wider text-emerald-400/70",children:"To"}),Object.keys(e.properties).length>0&&m.jsx("div",{className:"space-y-1.5",children:Object.entries(e.properties).map(([I,P])=>m.jsx(hS,{prop:I,val:P,onCommit:Z=>{N(I,Z),E(I,Z)},onRemove:()=>c(e.id,I),removeTitle:`Remove ${sl[I]??I}`},I))}),m.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[m.jsx(mS,{adding:w,available:$,addLabel:"+ Effect",addTitle:"Add another animated property to this effect",onAdd:I=>s(e.id,I),onOpen:()=>A(!0),onClose:()=>A(!1),buttonClassName:"text-[11px] font-medium text-neutral-400 transition-colors hover:text-neutral-200"}),m.jsx("button",{type:"button",onClick:()=>l(e.id),className:"ml-auto text-[11px] font-medium text-red-400 transition-colors hover:text-red-300",title:"Remove this animation",children:"Remove"})]})]})})]})}),DG=d.memo(function({animations:e,multipleTimelines:n,unsupportedTimelinePattern:r,onUpdateProperty:i,onUpdateMeta:l,onDeleteAnimation:s,onAddProperty:c,onRemoveProperty:u,onUpdateFromProperty:h,onAddFromProperty:g,onRemoveFromProperty:O,onAddAnimation:x,onLivePreview:y,onLivePreviewEnd:v}){const[w,A]=d.useState(!1);return m.jsxs(Cr,{title:"Animation",icon:m.jsx(qw,{size:15}),children:[n&&m.jsx("p",{className:"mb-2 rounded-lg bg-amber-500/10 px-3 py-2 text-[11px] leading-relaxed text-amber-400",children:"This file has multiple GSAP timelines. Animation editing is disabled to prevent data loss — consolidate into a single timeline to enable editing."}),r&&m.jsx("p",{className:"mb-2 rounded-lg bg-amber-500/10 px-3 py-2 text-[11px] leading-relaxed text-amber-400",children:"This composition uses a timeline assignment pattern (window.__timelines[...]) that the editor doesn't support. Use a variable declaration (const tl = gsap.timeline()) to enable editing."}),n||r?null:m.jsxs("div",{className:"space-y-2",children:[e.map((k,C)=>m.jsx(LG,{animation:k,defaultExpanded:C===0,onUpdateProperty:i,onUpdateMeta:l,onDeleteAnimation:s,onAddProperty:c,onRemoveProperty:u,onUpdateFromProperty:h,onAddFromProperty:g,onRemoveFromProperty:O,onLivePreview:y,onLivePreviewEnd:v},k.id)),m.jsx("div",{className:"relative pt-1",children:w?m.jsxs("div",{className:"flex gap-1.5",children:[Uj.map(k=>m.jsx("button",{type:"button",title:WS[k],onClick:()=>{x(k),A(!1)},className:"rounded-lg border border-neutral-700 bg-neutral-900 px-2.5 py-1.5 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white",children:Wj[k]??k},k)),m.jsx("button",{type:"button",onClick:()=>A(!1),className:"px-1.5 text-[11px] text-neutral-500 hover:text-neutral-300",children:"Cancel"})]}):m.jsx("button",{type:"button",onClick:()=>A(!0),className:"text-[11px] font-medium text-neutral-400 transition-colors hover:text-neutral-200",title:"Add a new animation effect to this element",children:"+ Add effect"})})]})]})}),HG=d.memo(function({state:e,onClick:n,title:r,size:i=10}){const l=e==="active",s=e==="ghost"?.25:e==="inactive"?.6:1,c=e==="active"?"#3b82f6":"#a3a3a3";return m.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),n()},className:"flex-shrink-0 p-0.5 transition-opacity hover:opacity-100",style:{color:c,opacity:s},title:r,children:m.jsx("svg",{width:i,height:i,viewBox:"0 0 10 10",children:m.jsx("rect",{x:"5",y:"0.7",width:"6",height:"6",rx:"1",transform:"rotate(45 5 0.7)",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.2"})})})}),C2=.5;function XG({disabled:t}){return m.jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",style:{opacity:t?.25:1},children:m.jsx("path",{d:"M5 1L1 5L5 9",stroke:"#a3a3a3",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function zG({disabled:t}){return m.jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",style:{opacity:t?.25:1},children:m.jsx("path",{d:"M1 1L5 5L1 9",stroke:"#a3a3a3",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const Fs=d.memo(function({property:e,keyframes:n,currentPercentage:r,onSeek:i,onAddKeyframe:l,onRemoveKeyframe:s,onConvertToKeyframes:c}){const u=(n==null?void 0:n.filter(v=>e in v.properties))??[],h=u.filter(v=>v.percentage<r-C2).at(-1)??null,g=u.find(v=>v.percentage>r+C2)??null,O=u.find(v=>Math.abs(v.percentage-r)<=C2)??null;let x;!n||n.length===0?x="ghost":O?x="active":u.length>0?x="inactive":x="ghost";const y=()=>{x==="ghost"?c():x==="active"?s(r):l(r)};return m.jsxs("div",{className:"flex h-5 items-center gap-0.5",children:[m.jsx("button",{type:"button",disabled:!h,onClick:()=>h&&i(h.percentage),className:"flex h-5 w-3 items-center justify-center disabled:cursor-default",children:m.jsx(XG,{disabled:!h})}),m.jsx(HG,{state:x,onClick:y,size:9,title:x==="ghost"?`Convert ${e} to keyframes`:x==="active"?`Remove ${e} keyframe`:`Add ${e} keyframe`}),m.jsx("button",{type:"button",disabled:!g,onClick:()=>g&&i(g.percentage),className:"flex h-5 w-3 items-center justify-center disabled:cursor-default",children:m.jsx(zG,{disabled:!g})})]})});function E2(t){return!Number.isFinite(t)||t<0?"0.00s":`${t.toFixed(2)}s`}function T2(t){const e=t.replace(/s$/i,"").trim(),n=Number.parseFloat(e);return Number.isFinite(n)&&n>=0?n:null}function FG({element:t,onSetAttribute:e}){const n=Number.parseFloat(t.dataAttributes.start??"0")||0,r=Number.parseFloat(t.dataAttributes.duration??t.dataAttributes["hf-authored-duration"]??"0")||0,i=n+r,l=u=>{const h=T2(u);h!=null&&e("start",h.toFixed(2))},s=u=>{const h=T2(u);h==null||h<=0||e("duration",h.toFixed(2))},c=u=>{const h=T2(u);h==null||h<=n||e("duration",(h-n).toFixed(2))};return m.jsxs(Cr,{title:"Timing",icon:m.jsx(HV,{size:15}),children:[m.jsxs("div",{className:qn,children:[m.jsx(An,{label:"Start",value:E2(n),onCommit:l}),m.jsx(An,{label:"End",value:E2(i),onCommit:c})]}),m.jsx("div",{className:"mt-3",children:m.jsx(An,{label:"Duration",value:E2(r),onCommit:s})})]})}const BG=d.memo(function({projectId:e,projectDir:n,assets:r,element:i,multiSelectCount:l=0,copiedAgentPrompt:s,onClearSelection:c,onSetStyle:u,onSetAttribute:h,onSetHtmlAttribute:g,onSetManualOffset:O,onSetManualSize:x,onSetManualRotation:y,onSetText:v,onSetTextFieldStyle:w,onAddTextField:A,onRemoveTextField:k,onAskAgent:C,onImportAssets:T,fontAssets:$=[],onImportFonts:M,previewIframeRef:j,gsapAnimations:E=[],gsapMultipleTimelines:N,gsapUnsupportedTimelinePattern:R,onUpdateGsapProperty:L,onUpdateGsapMeta:V,onDeleteGsapAnimation:z,onAddGsapProperty:q,onRemoveGsapProperty:U,onUpdateGsapFromProperty:K,onAddGsapFromProperty:D,onRemoveGsapFromProperty:G,onAddGsapAnimation:H,onAddKeyframe:F,onRemoveKeyframe:I,onConvertToKeyframes:P,onCommitAnimatedProperty:Z,onSeekToTime:X}){var on,Rt,we,ht,Mt,ot;const Y=(i==null?void 0:i.computedStyles)??Dq;if(!i)return m.jsx("div",{className:"flex h-full flex-col bg-neutral-900",children:m.jsx("div",{className:"flex flex-1 flex-col items-center justify-center px-6 text-center",children:l>1?m.jsxs(m.Fragment,{children:[m.jsx(Hf,{size:18,className:"mb-3 text-neutral-600"}),m.jsxs("p",{className:"text-sm font-medium text-neutral-200",children:[l," elements selected"]}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"Select a single element to edit its properties. Click an element in the preview or use the timeline layer panel."})]}):m.jsxs(m.Fragment,{children:[m.jsx(Iw,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"Select an element in the preview."}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"The inspector is tuned for element edits with safer geometry controls, color picking, and cleaner grouped layer controls."})]})})});const J=!i.capabilities.canApplyManualOffset,ne=!i.capabilities.canApplyManualSize,B=i.id?`#${i.id}`:i.selector,re=i.capabilities.canEditStyles,ae=ng(i.element),ue=Vf(i.element),me=ue.width>0?ue.width:ta(Y.width??"")??i.boundingBox.width,ye=ue.height>0?ue.height:ta(Y.height??"")??i.boundingBox.height,Oe=(ve,ze)=>{const Ze=ta(ze);if(Ze==null)return;if(Z&&(Ye||E.length>0)){Z(i,ve,Ze);return}if(_e&&Ye&&F){const vt=Math.max(0,Math.min(100,Math.round(yt*10)/10));F(Ye,vt,ve,Ze);return}const Be=ng(i.element);O(i,{x:ve==="x"?Ze:Be.x,y:ve==="y"?Ze:Be.y})},Se=(ve,ze)=>{const Ze=ta(ze);if(Ze==null||Ze<=0)return;const Be=Vf(i.element),vt=Be.width>0?Be.width:ta(Y.width??"")??i.boundingBox.width,lt=Be.height>0?Be.height:ta(Y.height??"")??i.boundingBox.height;x(i,{width:ve==="width"?Ze:vt,height:ve==="height"?Ze:lt})},Ae=uw(i.element),Me=ve=>{const ze=Number.parseFloat(ve);Number.isFinite(ze)&&y(i,{angle:ze})},Ve=Number.parseFloat(((on=i==null?void 0:i.dataAttributes)==null?void 0:on.start)??"0")||0,Pe=Number.parseFloat(((Rt=i==null?void 0:i.dataAttributes)==null?void 0:Rt.duration)??"1")||0,ft=fe(ve=>ve.currentTime),yt=Pe>0?(ft-Ve)/Pe*100:0,_e=((ht=(we=E==null?void 0:E.find(ve=>ve.keyframes))==null?void 0:we.keyframes)==null?void 0:ht.keyframes)??null,Ye=((Mt=E==null?void 0:E.find(ve=>ve.keyframes))==null?void 0:Mt.id)??((ot=E==null?void 0:E[0])==null?void 0:ot.id)??null,Le=(()=>{var Ze;if(!Ye||E.length===0)return null;const ve=j==null?void 0:j.current;if(!(ve!=null&&ve.contentWindow))return null;const ze=i.id?`#${i.id}`:i.selector;if(!ze)return null;try{const Be=ve.contentWindow.gsap;if(!(Be!=null&&Be.getProperty))return null;const vt=(Ze=ve.contentDocument)==null?void 0:Ze.querySelector(ze);if(!vt)return null;const lt=new Set;for(const mt of E){if(mt.keyframes)for(const Tt of mt.keyframes.keyframes)for(const cn of Object.keys(Tt.properties))lt.add(cn);for(const Tt of Object.keys(mt.properties))lt.add(Tt)}const Je={};for(const mt of lt){const Tt=Number(Be.getProperty(vt,mt));Number.isFinite(Tt)&&(Je[mt]=Math.round(Tt*100)/100)}return Object.keys(Je).length>0?Je:null}catch{return null}})(),be=(Le==null?void 0:Le.x)??ae.x,dt=(Le==null?void 0:Le.y)??ae.y,Ue=(Le==null?void 0:Le.width)??me,bt=(Le==null?void 0:Le.height)??ye,Re=(Le==null?void 0:Le.rotation)??Ae.angle;return m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900 text-neutral-100",children:[m.jsxs("div",{className:"border-b border-neutral-800 px-4 py-5",children:[m.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:Kt,children:"Document"}),m.jsx("div",{className:"mt-3 truncate text-[12px] font-semibold text-neutral-100",children:i.label}),m.jsx("div",{className:"mt-1 truncate text-[11px] text-neutral-500",children:B})]}),m.jsx("button",{type:"button","aria-label":"Clear selection",onClick:c,className:"flex h-9 w-9 items-center justify-center rounded-full border border-neutral-700 bg-neutral-950 text-neutral-500 shadow-[0_1px_2px_rgba(0,0,0,0.2)] transition-colors hover:border-neutral-600 hover:text-neutral-200",children:m.jsx(Cd,{size:13})})]}),m.jsx("div",{className:"mt-4 flex min-w-0 flex-wrap items-center gap-2",children:m.jsxs("button",{type:"button",onClick:C,className:"inline-flex h-8 items-center justify-center gap-2 rounded-xl border border-neutral-700 bg-neutral-950 px-3.5 text-[11px] font-medium text-neutral-100 transition-colors hover:border-studio-accent/40 hover:text-studio-accent",children:[m.jsx(XV,{size:15}),m.jsx("span",{children:s?"Prompt copied":"Copy prompt to AI agent"})]})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto",children:[m.jsx($G,{element:i,styles:Y,fontAssets:$,onImportFonts:M,onSetText:v,onSetTextFieldStyle:w,onAddTextField:A,onRemoveTextField:k}),i.dataAttributes.start!=null&&m.jsx(FG,{element:i,onSetAttribute:h}),eG(i)&&m.jsx(tG,{projectDir:n,element:i,styles:Y,onSetStyle:u,onSetAttribute:h,onSetHtmlAttribute:g}),m.jsxs(Cr,{title:"Layout",icon:m.jsx(zV,{size:15}),children:[m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"X",value:zl(be),disabled:J,scrub:!0,onCommit:ve=>Oe("x",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"x",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"x",be),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"Y",value:zl(dt),disabled:J,scrub:!0,onCommit:ve=>Oe("y",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"y",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"y",dt),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"W",value:zl(Ue),disabled:ne,scrub:!0,onCommit:ve=>Se("width",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"width",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"width",Ue),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"H",value:zl(bt),disabled:ne,scrub:!0,onCommit:ve=>Se("height",ve)})}),Ja&&Ye&&m.jsx(Fs,{property:"height",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"height",bt),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]}),i.capabilities.canApplyManualSize&&m.jsx("button",{type:"button",className:"flex-shrink-0 rounded p-1 text-neutral-500 transition-colors hover:bg-neutral-800 hover:text-neutral-300",title:"Fit to children",onClick:()=>{const ve=Kq(i);ve&&x(i,ve)},children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.2",children:[m.jsx("rect",{x:"2",y:"2",width:"10",height:"10",strokeDasharray:"2 1.5",rx:"1"}),m.jsx("path",{d:"M2 4.5h1m-1 5h1m8-5h1m-1 5h1M4.5 2v1m5-1v1M4.5 11v1m5-1v1"})]})}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"R",value:`${Re}°`,onCommit:ve=>Me(ve.replace("°",""))})}),Ja&&Ye&&m.jsx(Fs,{property:"rotation",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>Z&&void Z(i,"rotation",Re),onRemoveKeyframe:ve=>I==null?void 0:I(Ye,ve),onConvertToKeyframes:()=>P==null?void 0:P(Ye)})]})]}),Le&&m.jsxs("div",{className:"mt-3 border-t border-neutral-800/40 pt-3",children:[m.jsx("div",{className:"mb-2 text-[10px] font-medium uppercase tracking-wider text-neutral-600",children:"3D Transform"}),m.jsxs("div",{className:qn,children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("div",{className:"flex-1",children:m.jsx(An,{label:"Z",value:zl(Le.z??0),scrub:!0,onCommit:ve=>{const ze=ta(ve);ze!=null&&Z&&Z(i,"z",ze)}})}),Ja&&(Ye||Z)&&m.jsx(Fs,{property:"z",keyframes:_e,currentPercentage:yt,onSeek:ve=>X==null?void 0:X(Ve+ve/100*Pe),onAddKeyframe:()=>{Z&&Z(i,"z",(Le==null?void 0:Le.z)??0)},onRemoveKeyframe:ve=>Ye&&(I==null?void 0:I(Ye,ve)),onConvertToKeyframes:()=>Ye&&(P==null?void 0:P(Ye))})]}),m.jsx(An,{label:"Scale",value:String(Le.scale??1),scrub:!0,onCommit:ve=>{const ze=Number.parseFloat(ve);Number.isFinite(ze)&&Z&&Z(i,"scale",ze)}}),m.jsx(An,{label:"RotX",value:`${Le.rotationX??0}°`,onCommit:ve=>{const ze=Number.parseFloat(ve.replace("°",""));Number.isFinite(ze)&&Z&&Z(i,"rotationX",ze)}}),m.jsx(An,{label:"RotY",value:`${Le.rotationY??0}°`,onCommit:ve=>{const ze=Number.parseFloat(ve.replace("°",""));Number.isFinite(ze)&&Z&&Z(i,"rotationY",ze)}})]})]}),m.jsxs("div",{className:"mt-3",children:[m.jsx("div",{className:"mb-2 text-[10px] font-medium uppercase tracking-wider text-neutral-600",children:"Stacking"}),m.jsx(An,{label:"Z-index",value:String(parseInt(Y["z-index"]||"auto",10)||0),scrub:!0,onCommit:ve=>u("z-index",ve)})]})]}),Y2&&L&&V&&z&&q&&H&&m.jsx(DG,{animations:E,multipleTimelines:N,unsupportedTimelinePattern:R,onUpdateProperty:L,onUpdateMeta:V,onDeleteAnimation:z,onAddProperty:q,onRemoveProperty:U??(()=>{}),onUpdateFromProperty:K,onAddFromProperty:D,onRemoveFromProperty:G,onAddAnimation:H}),re&&m.jsx(kG,{projectId:e,element:i,styles:Y,assets:r,onSetStyle:u,onImportAssets:T})]})]})}),FM="min-w-0 rounded-xl border border-neutral-800 bg-neutral-900/95 px-3 py-2 text-neutral-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)] transition-colors focus-within:border-neutral-600",D6="text-[11px] font-medium uppercase tracking-[0.18em] text-neutral-500",pS="grid grid-cols-[repeat(auto-fit,minmax(118px,1fr))] gap-3";function $2(t){const e=Math.round(t*100)/100;return Number.isInteger(e)?`${e}`:e.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}function j2(t,e,n,r){return t==null||!Number.isFinite(t)?r:Math.min(n,Math.max(e,t))}function P2(t){const e=Number.parseFloat(t.trim());return Number.isFinite(e)?e:null}function YG({value:t,disabled:e,onCommit:n}){const[r,i]=d.useState(t),l=d.useRef(!1);d.useEffect(()=>{l.current||i(t)},[t]);const s=()=>{l.current=!1;const c=r.trim();c!==t&&n(c)};return m.jsx("input",{type:"text",value:r,disabled:e,onFocus:()=>{l.current=!0},onChange:c=>i(c.target.value),onBlur:s,onKeyDown:c=>{c.key==="Enter"&&c.target.blur()},className:"w-full min-w-0 bg-transparent text-[11px] font-medium text-neutral-100 outline-none disabled:cursor-not-allowed disabled:text-neutral-600"})}function pf({label:t,value:e,disabled:n,onCommit:r}){return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:D6,children:t}),m.jsx("div",{className:FM,children:m.jsx(YG,{value:e,disabled:n,onCommit:r})})]})}function IG({value:t,options:e,onChange:n}){return m.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-2xl border border-neutral-800 bg-neutral-950 p-1",children:e.map(r=>m.jsx("button",{type:"button",onClick:()=>n(r.value),className:`h-9 rounded-xl text-[11px] font-semibold transition-colors ${r.value===t?"bg-neutral-800 text-white shadow-sm":"text-neutral-500 hover:bg-neutral-900 hover:text-neutral-200"}`,children:r.label},r.value))})}function gS({label:t,value:e,options:n,onChange:r}){return m.jsxs("label",{className:"grid min-w-0 gap-1.5",children:[m.jsx("span",{className:D6,children:t}),m.jsx("div",{className:FM,children:m.jsx("select",{value:e,onChange:i=>r(i.target.value),className:"w-full min-w-0 appearance-none bg-transparent text-[11px] font-medium text-neutral-100 outline-none",children:n.map(i=>m.jsx("option",{value:i,children:i},i))})})]})}function OS({title:t,children:e,accessory:n}){return m.jsxs("section",{className:"border-b border-neutral-800 px-4 py-5",children:[m.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(B8,{size:15,className:"text-neutral-500"}),m.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-neutral-300",children:t})]}),n]}),e]})}function gf(t){const e=Math.round(t*100)/100;return Number.isInteger(e)?`${e}`:e.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}function qG(t,e){const n=1-t,r=n*n,i=t*t;return{x:3*r*t*e.x1+3*n*i*e.x2+i*t,y:3*r*t*e.y1+3*n*i*e.y2+i*t}}function GG(t,e){const n=[];for(let r=0;r<=48;r+=1){const i=e(qG(r/48,t));n.push(`${r===0?"M":"L"}${i.x.toFixed(2)},${i.y.toFixed(2)}`)}return n.join(" ")}function UG({points:t,onCommit:e}){const n=d.useRef(null),[r,i]=d.useState(t),l=d.useRef(null);d.useEffect(()=>{i(t)},[t]);const s=324,c=214,u={left:46,top:24,width:242,height:146},h=-.4,g=1.4,O=M=>({x:u.left+M.x*u.width,y:u.top+(g-M.y)/(g-h)*u.height}),x=M=>{var R;const j=(R=n.current)==null?void 0:R.getBoundingClientRect();if(!j)return null;const E=(M.clientX-j.left)/j.width*s,N=(M.clientY-j.top)/j.height*c;return C8({x1:l.current==="p1"?(E-u.left)/u.width:r.x1,y1:l.current==="p1"?g-(N-u.top)/u.height*(g-h):r.y1,x2:l.current==="p2"?(E-u.left)/u.width:r.x2,y2:l.current==="p2"?g-(N-u.top)/u.height*(g-h):r.y2})},y=O({x:0,y:0}),v=O({x:1,y:1}),w=O({x:r.x1,y:r.y1}),A=O({x:r.x2,y:r.y2}),k=GG(r,O),C=M=>{if(!l.current)return;M.preventDefault();const j=x(M);j&&i(j)},T=()=>{l.current&&(l.current=null,e(r))},$=(M,j)=>{j.preventDefault(),j.stopPropagation(),l.current=M,j.currentTarget.setPointerCapture(j.pointerId)};return m.jsxs("div",{className:"overflow-hidden rounded-2xl border border-neutral-800 bg-black/40",children:[m.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-800 px-3 py-2",children:[m.jsxs("div",{children:[m.jsx("div",{className:D6,children:"CustomEase"}),m.jsx("div",{className:"mt-1 font-mono text-[10px] text-neutral-500",children:GS(r)})]}),m.jsxs("button",{type:"button",onClick:()=>{const M=hu("power3.out");i(M),e(M)},className:"inline-flex h-8 items-center justify-center gap-2 rounded-xl border border-neutral-800 bg-neutral-950 px-3 text-[10px] font-semibold uppercase tracking-[0.14em] text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-100",children:[m.jsx(Y8,{size:13}),"Reset"]})]}),m.jsxs("svg",{ref:n,viewBox:`0 0 ${s} ${c}`,className:"block w-full select-none touch-none",onPointerMove:C,onPointerUp:T,onPointerCancel:T,children:[m.jsx("rect",{x:"0",y:"0",width:s,height:c,fill:"transparent"}),[0,.5,1].map(M=>{const j=O({x:0,y:M});return m.jsxs("g",{children:[m.jsx("line",{x1:u.left,x2:u.left+u.width,y1:j.y,y2:j.y,stroke:"rgba(255,255,255,0.12)",strokeDasharray:"5 8"}),m.jsx("text",{x:u.left-12,y:j.y+4,textAnchor:"end",className:"fill-neutral-500 text-[10px] font-semibold",children:M})]},M)}),m.jsx("line",{x1:u.left,x2:u.left+u.width,y1:u.top+u.height,y2:u.top+u.height,stroke:"rgba(255,255,255,0.18)"}),m.jsx("line",{x1:u.left,x2:u.left,y1:u.top,y2:u.top+u.height,stroke:"rgba(255,255,255,0.18)"}),m.jsx("line",{x1:y.x,y1:y.y,x2:w.x,y2:w.y,stroke:"rgba(255,221,87,0.34)"}),m.jsx("line",{x1:v.x,y1:v.y,x2:A.x,y2:A.y,stroke:"rgba(255,221,87,0.34)"}),m.jsx("path",{d:k,fill:"none",stroke:"#ffdd57",strokeWidth:"4",strokeLinecap:"round"}),m.jsx("circle",{cx:y.x,cy:y.y,r:"5",fill:"#ffdd57"}),m.jsx("circle",{cx:v.x,cy:v.y,r:"5",fill:"#ffdd57"}),m.jsx("circle",{cx:w.x,cy:w.y,r:"9",fill:"#141414",stroke:"#ffdd57",strokeWidth:"4",className:"cursor-grab active:cursor-grabbing",onPointerDown:M=>$("p1",M)}),m.jsx("circle",{cx:A.x,cy:A.y,r:"9",fill:"#141414",stroke:"#ffdd57",strokeWidth:"4",className:"cursor-grab active:cursor-grabbing",onPointerDown:M=>$("p2",M)}),m.jsx("text",{x:w.x+12,y:w.y-10,className:"fill-neutral-400 text-[10px] font-semibold",children:"P1"}),m.jsx("text",{x:A.x+12,y:A.y-10,className:"fill-neutral-400 text-[10px] font-semibold",children:"P2"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2 border-t border-neutral-800 p-3",children:[m.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-950 px-3 py-2 font-mono text-[10px] text-neutral-400",children:["P1 ",gf(r.x1),", ",gf(r.y1)]}),m.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-950 px-3 py-2 font-mono text-[10px] text-neutral-400",children:["P2 ",gf(r.x2),", ",gf(r.y2)]})]})]})}const WG=[{label:"Fade Up",value:"fade-up"},{label:"Slide",value:"slide"},{label:"Pop",value:"pop"}],KG=["up","down","left","right"];function JG(t){return t?Math.max(Math.abs(t.from.x??0),Math.abs(t.from.y??0),1):32}function eU(t){return t?t.from.scale!=null||t.to.scale!=null?"pop":t.from.x!=null||t.to.x!=null?"slide":"fade-up":"fade-up"}function tU(t){if(!t)return"up";const e=t.from.x??0,n=t.from.y??0;return Math.abs(e)>Math.abs(n)?e<0?"right":"left":n<0?"down":"up"}function xS(t){return`studio-${(t.id||t.selector||t.label||"layer").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"layer"}-ease`}const nU=d.memo(function({element:e,motion:n,onClearSelection:r,onSetMotion:i,onClearMotion:l}){var $;const s=eU(n),c=tU(n),u=(n==null?void 0:n.start)??0,h=(n==null?void 0:n.duration)??.6,g=JG(n),O=(n==null?void 0:n.ease)??"power3.out",x=(($=n==null?void 0:n.customEase)==null?void 0:$.data)??"",y=x.trim().length>0,v=d.useMemo(()=>py(x)??hu(v1.includes(O)?O:"power3.out"),[O,x]);if(!e)return m.jsxs("div",{className:"flex h-full flex-col items-center justify-center bg-neutral-900 px-6 text-center",children:[m.jsx(B8,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"Select an element for motion."}),m.jsx("p",{className:"mt-2 max-w-[260px] text-xs leading-5 text-neutral-500",children:"Timeline layers and inspector selections can receive Studio-authored GSAP motion."})]});const w=e.id?`#${e.id}`:e.selector,A=y?"CustomEase":v1.includes(O)?O:"power3.out",k=y?["CustomEase",...v1]:v1,C=M=>{var R;const j=M.customEaseData??x,E=j.trim()?{id:((R=n==null?void 0:n.customEase)==null?void 0:R.id)??xS(e),data:j.trim()}:void 0,N=E?E.id:(M.ease??O).trim()||"none";i(e,Dj(M.preset??s,{start:j2(M.start??u,0,3600,0),duration:j2(M.duration??h,.01,3600,.6),distance:j2(M.distance??g,1,2e3,32),direction:M.direction??c,ease:N,customEase:E}))},T=M=>{C({ease:xS(e),customEaseData:GS(M)})};return m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900 text-neutral-100",children:[m.jsx("div",{className:"border-b border-neutral-800 px-4 py-5",children:m.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.18em] text-neutral-500",children:"Motion Target"}),m.jsx("div",{className:"mt-3 truncate text-[12px] font-semibold text-neutral-100",children:e.label}),m.jsx("div",{className:"mt-1 truncate text-[11px] text-neutral-500",children:w})]}),m.jsx("button",{type:"button","aria-label":"Clear selection",onClick:r,className:"flex h-9 w-9 items-center justify-center rounded-full border border-neutral-700 bg-neutral-950 text-neutral-500 shadow-[0_1px_2px_rgba(0,0,0,0.2)] transition-colors hover:border-neutral-600 hover:text-neutral-200",children:m.jsx(Cd,{size:13})})]})}),m.jsxs("div",{className:"flex-1 overflow-y-auto",children:[m.jsx(OS,{title:"GSAP Motion",accessory:m.jsx("div",{className:"rounded-full border border-studio-accent/40 bg-studio-accent/10 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.16em] text-studio-accent",children:"GSAP"}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(IG,{value:s,onChange:M=>C({preset:M}),options:WG}),m.jsxs("div",{className:pS,children:[m.jsx(gS,{label:"Direction",value:c,onChange:M=>C({direction:M}),options:KG}),m.jsx(gS,{label:"Ease",value:A,onChange:M=>{M!=="CustomEase"&&C({ease:M,customEaseData:""})},options:k})]}),m.jsxs("div",{className:pS,children:[m.jsx(pf,{label:"Start",value:$2(u),onCommit:M=>C({start:P2(M)??0})}),m.jsx(pf,{label:"Duration",value:$2(h),onCommit:M=>C({duration:P2(M)??.6})}),m.jsx(pf,{label:"Distance",value:$2(g),onCommit:M=>C({distance:P2(M)??32})})]})]})}),m.jsx(OS,{title:"Ease Curve",accessory:m.jsx("div",{className:"rounded-full border border-yellow-400/30 bg-yellow-400/10 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.16em] text-yellow-300",children:"CustomEase"}),children:m.jsxs("div",{className:"space-y-4",children:[m.jsx(UG,{points:v,onCommit:T}),m.jsx(pf,{label:"CustomEase path",value:x,onCommit:M=>{const j=py(M);j&&T(j)}}),m.jsx("div",{className:"flex justify-end",children:m.jsx("button",{type:"button",onClick:()=>l(e),disabled:!n,className:"inline-flex h-8 items-center rounded-xl border border-neutral-700 bg-neutral-950 px-3 text-[11px] font-medium text-neutral-300 transition-colors hover:border-neutral-600 hover:text-white disabled:cursor-not-allowed disabled:border-neutral-800 disabled:text-neutral-600",children:"Clear motion"})})]})})]})]})}),rU=4;function BM(t){if(!(t.selector||t.id))return!1;let e=t.element;for(;e;){if(e.hasAttribute("data-timeline-locked"))return!1;e=e.parentElement}return!0}function iU(t,e){const n=t[e].depth,r=[];let i=e;for(;i>0;)if(i--,t[i].depth<n){i++;break}for(let l=i;l<t.length;l++){const s=t[l].depth;if(s<n)break;s===n&&r.push(l)}return r}function aU(t,e){const n=t.querySelectorAll("[data-layer-index]"),r=[];for(const i of e)for(const l of n)if(l.dataset.layerIndex===String(i)){r.push(l.getBoundingClientRect());break}return r}function lU(t,e){if(e.length===0||t<=e[0].top+e[0].height/2)return 0;for(let r=0;r<e.length-1;r++){const i=(e[r].bottom+e[r+1].top)/2;if(t<=i)return r+1}const n=e[e.length-1];return t<=n.top+n.height/2?e.length-1:e.length}function sU(t,e,n){return e.length===0?null:t<=0?e[0].top-n.top:t>=e.length?e[e.length-1].bottom-n.top:e[t].top-n.top}function oU({visibleLayers:t,scrollContainerRef:e,onReorder:n,onSingleSibling:r}){const i=d.useRef(null),[l,s]=d.useState(null),[c,u]=d.useState(null),h=d.useCallback((x,y)=>{if(y.button!==0)return;const v=t[x];if(!v||!BM(v))return;const w=iU(t,x);if(w.length<=1){r==null||r();return}const A=w.indexOf(x);if(A===-1)return;const k=e.current;k&&(y.preventDefault(),k.setPointerCapture(y.pointerId),i.current={pointerId:y.pointerId,startY:y.clientY,dragLayerIndex:x,siblingIndices:w,fromSiblingPos:A,insertSiblingPos:A,siblingRects:aU(k,w),activated:!1})},[t,e,r]),g=d.useCallback(x=>{var A;const y=i.current;if(!y)return;if(!y.activated){if(Math.abs(x.clientY-y.startY)<rU)return;y.activated=!0,s(((A=t[y.dragLayerIndex])==null?void 0:A.key)??null)}const v=lU(x.clientY,y.siblingRects);y.insertSiblingPos=v;const w=e.current;if(w){const k=w.getBoundingClientRect();u(sU(v,y.siblingRects,k))}},[t,e]),O=d.useCallback(()=>{const x=i.current;if(i.current=null,s(null),u(null),!x||!x.activated)return;const y=e.current;if(y)try{y.releasePointerCapture(x.pointerId)}catch{}let v=x.insertSiblingPos;if(v>x.fromSiblingPos&&v--,v===x.fromSiblingPos)return;const w=x.siblingIndices.map(A=>t[A]);n({siblingLayers:w,fromIndex:x.fromSiblingPos,toIndex:v})},[t,e,n]);return{dragKey:l,insertionLineY:c,handleRowPointerDown:h,handleContainerPointerMove:g,handleContainerPointerUp:O}}const cU={video:"Vi",audio:"Au",img:"Im",svg:"Sv",canvas:"Cn",div:"Di",section:"Se",span:"Sp",p:"P",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",a:"A",button:"Bt",ul:"Ul",ol:"Ol",li:"Li",style:"St",template:"Te"};function uU(t){return cU[t]??t.slice(0,2).toUpperCase()}function fU(t){return t.hasAttribute("data-composition-src")||t.hasAttribute("data-composition-file")}const dU=d.memo(function(){const{previewIframeRef:e,activeCompPath:n,refreshKey:r,compositionLoading:i,timelineElements:l,currentTime:s,showToast:c}=No(),{domEditSelection:u,applyDomSelection:h,updateDomEditHoverSelection:g,handleDomZIndexReorderCommit:O}=Ed(),[x,y]=d.useState([]),[v,w]=d.useState({}),A=d.useRef(0),k=d.useRef(null),C=!n||n==="index.html",T=d.useCallback(()=>{const H=e.current;if(!H)return;let F=null;try{F=H.contentDocument}catch{return}if(!F)return;const I=F.querySelector("[data-composition-id]")??F.documentElement??null;if(!I)return;const P=rR(I,{activeCompositionPath:n});y(O8(P))},[e,n,C]);d.useEffect(()=>{T()},[T,r]),d.useEffect(()=>{const H=e.current;if(!H)return;const F=()=>{A.current+=1,T()};return H.addEventListener("load",F),()=>H.removeEventListener("load",F)},[e,T]),d.useEffect(()=>{if(!i){const H=setTimeout(T,100);return()=>clearTimeout(H)}},[i,T]);const $=d.useCallback(H=>Tw(H.element,{activeCompositionPath:n,isMasterView:C,preferClipAncestor:!1}),[n,C]),M=d.useCallback(async H=>{const F=await $(H);if(!F)return;let I=lg(F,l);if(!I){const P=F.sourceFile??"index.html";let Z=H.element.parentElement;for(;Z&&!I;){const X=Z.id;if(X){const Y=l.find(J=>J.domId===X&&(J.sourceFile??"index.html")===P);Y&&(I=Y.key??Y.id)}Z=Z.parentElement}}if(I){const P=l.find(Z=>(Z.key??Z.id)===I);if(P){const Z=QN(s,P);Z!=null&&fe.getState().requestSeek(Z)}}},[s,$,l]),j=d.useCallback(async H=>{const F=await $(H);F&&(h(F),await M(H))},[$,h,M]),E=d.useCallback(async H=>{if(!H){g(null);return}const F=await $(H);g(F)},[$,g]),N=d.useCallback((H,F)=>{F.stopPropagation(),w(I=>({...I,[H]:!I[H]}))},[]),R=d.useCallback(H=>{const{siblingLayers:F,fromIndex:I,toIndex:P}=H,Z=[...F],[X]=Z.splice(I,1);Z.splice(P,0,X);const J=[...F.map(ae=>g8(ae.element))].sort((ae,ue)=>ue-ae),B=J.some((ae,ue)=>ue>0&&ae===J[ue-1])?Z.map((ae,ue)=>Z.length-ue):J,re=Z.map((ae,ue)=>({element:ae.element,zIndex:B[ue],id:ae.id,selector:ae.selector,selectorIndex:ae.selectorIndex,sourceFile:ae.sourceFile}));O(re)},[O]),L=u?$w(u):null,V=hU(x,v),z=d.useCallback(()=>{c("Only one layer at this level","info")},[c]),{dragKey:q,insertionLineY:U,handleRowPointerDown:K,handleContainerPointerMove:D,handleContainerPointerUp:G}=oU({visibleLayers:V,scrollContainerRef:k,onReorder:R,onSingleSibling:z});return x.length===0?m.jsxs("div",{className:"flex h-full flex-col items-center justify-center bg-neutral-900 px-6 text-center",children:[m.jsx(Hf,{size:18,className:"mb-3 text-neutral-600"}),m.jsx("p",{className:"text-sm font-medium text-neutral-200",children:"No layers"}),m.jsx("p",{className:"mt-1 text-xs text-neutral-500",children:"Load a composition to see its element tree"})]}):m.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-neutral-900",onPointerLeave:()=>E(null),children:[m.jsxs("div",{className:"border-b border-white/10 px-3 py-2 text-[11px] text-neutral-500",children:[x.length," layer",x.length===1?"":"s"]}),m.jsxs("div",{ref:k,className:"relative min-h-0 flex-1 overflow-y-auto py-1",onPointerMove:D,onPointerUp:G,onPointerCancel:G,children:[V.map((H,F)=>{const I=H.key===L,P=H.key===q,Z=BM(H),X=v[H.key]??!1,Y=H.childCount>0,J=fU(H.element);return m.jsxs("div",{"data-layer-index":F,role:"button",tabIndex:0,onClick:()=>!q&&j(H),onPointerDown:ne=>K(F,ne),onPointerEnter:()=>!q&&E(H),onKeyDown:ne=>{(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),j(H))},className:`group flex w-full items-center gap-1.5 px-2 py-1 text-left transition-colors ${P?"opacity-40":I?"bg-studio-accent/14 text-studio-accent":"text-neutral-300 hover:bg-white/[0.04] hover:text-neutral-100"} ${q?"cursor-grabbing":Z?"cursor-pointer":"cursor-not-allowed opacity-50"}`,style:{paddingLeft:8+H.depth*16},children:[Y?m.jsx("button",{type:"button",onClick:ne=>N(H.key,ne),className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded text-neutral-500 hover:text-neutral-300",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:`transition-transform ${X?"":"rotate-90"}`,children:m.jsx("path",{d:"M2 1l4 3-4 3z"})})}):m.jsx("span",{className:"w-4 flex-shrink-0"}),m.jsx("span",{className:`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded text-[8px] font-bold uppercase ${I?"bg-studio-accent/18 text-studio-accent":J?"bg-blue-900/40 text-blue-400":"bg-neutral-800 text-neutral-500"}`,children:uU(H.tagName)}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px]",children:H.label}),Y&&m.jsx("span",{className:"text-[9px] tabular-nums text-neutral-600",children:H.childCount})]},H.key)}),U!=null&&m.jsx("div",{className:"pointer-events-none absolute left-2 right-2 h-0.5 bg-studio-accent",style:{top:U}})]})]})});function g8(t){var e,n;try{const r=(e=t.style)==null?void 0:e.zIndex;if(r&&r!=="auto"){const c=parseInt(r,10);if(Number.isFinite(c))return c}const i=(n=t.ownerDocument)==null?void 0:n.defaultView;if(!i)return 0;const l=i.getComputedStyle(t).zIndex;if(l==="auto"||l==="")return 0;const s=parseInt(l,10);return Number.isFinite(s)?s:0}catch{return 0}}function O8(t){if(t.length<=1)return t;const e=t[0].depth;for(let i=1;i<t.length;i++)if(t[i].depth<e)return t;const n=[];for(let i=0;i<t.length;i++)if(t[i].depth===e){const l=[];let s=i+1;for(;s<t.length&&t[s].depth>e;)l.push(t[s]),s++;n.push({root:t[i],children:l,domIndex:n.length})}if(n.length<=1){if(n.length===1&&n[0].children.length>0){const i=O8(n[0].children);return[n[0].root,...i]}return t}n.sort((i,l)=>{const s=g8(i.root.element),c=g8(l.root.element);return s!==c?c-s:l.domIndex-i.domIndex});const r=[];for(const i of n)r.push(i.root),i.children.length>0&&r.push(...O8(i.children));return r}function hU(t,e){if(Object.keys(e).length===0)return t;const n=[];let r=-1;for(const i of t)r>=0&&i.depth>r||(r=-1,n.push(i),e[i.key]&&i.childCount>0&&(r=i.depth));return n}const ll="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 x8({label:t,children:e}){return m.jsxs("div",{className:"mb-3",children:[m.jsx("div",{className:"flex items-center gap-1.5 mt-2 mb-1.5",children:m.jsx("span",{className:"text-2xs font-medium text-neutral-500 uppercase tracking-wider",children:t})}),m.jsx("div",{className:"space-y-1",children:e})]})}function ia({label:t,children:e}){return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-2xs text-neutral-600 w-14 text-right flex-shrink-0",children:t}),m.jsx("div",{className:"flex-1 min-w-0",children:e})]})}const mU=["none","fade","slide-up","slide-down","slide-left","slide-right","pop","slam","bounce","typewriter","blur-in","flip","drop"],pU=["none","color-change","scale-pop","glow-pulse","underline-sweep","background-fill","bounce"],gU=["none","fade","slide-up","slide-down","slide-left","slide-right","scatter","drop","collapse","blur-out","shrink"],OU=["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 Q2({label:t,presets:e,animation:n,showIntensity:r,onChange:i}){const l=(n==null?void 0:n.preset)??"none",s=(n==null?void 0:n.duration)??.2,c=(n==null?void 0:n.ease)??"power2.out",u=(n==null?void 0:n.stagger)??0,h=(n==null?void 0:n.intensity)??1;return m.jsxs(x8,{label:t,children:[m.jsx(ia,{label:"Preset",children:m.jsx("select",{value:l,onChange:g=>i({preset:g.target.value}),className:ll,children:e.map(g=>m.jsx("option",{value:g,children:g},g))})}),m.jsx(ia,{label:"Duration",children:m.jsx("input",{type:"number",value:s,step:.05,min:0,max:2,onChange:g=>i({duration:Number(g.target.value)}),className:ll})}),m.jsx(ia,{label:"Ease",children:m.jsx("select",{value:c,onChange:g=>i({ease:g.target.value}),className:ll,children:OU.map(g=>m.jsx("option",{value:g,children:g},g))})}),m.jsx(ia,{label:"Stagger",children:m.jsx("input",{type:"number",value:u,step:.02,min:0,max:.5,onChange:g=>i({stagger:Number(g.target.value)}),className:ll})}),r&&m.jsx(ia,{label:"Intensity",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"range",min:0,max:1,step:.01,value:h,onChange:g=>i({intensity:Number(g.target.value)}),className:"flex-1 accent-studio-accent"}),m.jsx("span",{className:"text-2xs text-neutral-400 font-mono w-8 text-right flex-shrink-0",children:h.toFixed(2)})]})})]})}const xU=d.memo(function(){const e=Ot(y=>y.model),n=Ot(y=>y.selectedGroupId),r=Ot(y=>y.selectedSegmentIds),i=Ot(y=>y.updateGroupAnimation),l=Ot(y=>y.applyAnimationToAll);let s=n;if(!s&&e&&r.size>0){const y=[...r][0];if(y){for(const[v,w]of e.groups)if(w.segmentIds.includes(y)){s=v;break}}}const c=s?e==null?void 0:e.groups.get(s):void 0,u=c==null?void 0:c.animation,h=d.useCallback(y=>{s&&i(s,"entrance",y)},[s,i]),g=d.useCallback(y=>{s&&i(s,"highlight",y)},[s,i]),O=d.useCallback(y=>{s&&i(s,"exit",y)},[s,i]),x=d.useCallback(()=>{u&&l(u)},[u,l]);return!c||!s||!u?m.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:m.jsx("p",{className:"text-xs text-neutral-500",children:"Select a caption group to edit animations"})}):m.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[m.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[m.jsx(Q2,{label:"Entrance",presets:mU,animation:u.entrance,onChange:h}),m.jsx(Q2,{label:"Highlight",presets:pU,animation:u.highlight,showIntensity:!0,onChange:g}),m.jsx(Q2,{label:"Exit",presets:gU,animation:u.exit,onChange:O})]}),m.jsx("div",{className:"flex-shrink-0 px-3 py-2 border-t border-neutral-800",children:m.jsx("button",{type:"button",onClick:x,className:"w-full py-1.5 rounded border border-neutral-700 text-2xs text-neutral-300 hover:border-studio-accent/50 hover:text-studio-accent transition-colors",children:"Apply to all groups"})})]})}),yU=d.memo(function({iframeRef:e}){var j;const n=Ot(E=>E.model),r=Ot(E=>E.selectedSegmentIds),i=Ot(E=>E.selectedGroupId),l=Ot(E=>E.updateSelectedStyle),s=Ot(E=>E.updateGroupStyle),[c,u]=d.useState("style"),h=r.size>0?[...r][0]:void 0,g=n==null?void 0:n.segments.get(h??"");let O=null;if(n&&h)for(const E of n.groupOrder){const N=n.groups.get(E);if(N&&N.segmentIds.includes(h)){O=E;break}}const x=O?(j=n==null?void 0:n.groups.get(O))==null?void 0:j.style:void 0,y=(g==null?void 0:g.style)??{},v={...x,...y},w=d.useCallback(E=>{var q,U,K;const N=e.current;if(!N||!n)return;let R=null;try{R=N.contentDocument}catch{return}if(!R)return;const L=R.querySelectorAll(".caption-group"),V=[];for(const D of r)for(let G=0;G<n.groupOrder.length;G++){const H=n.groups.get(n.groupOrder[G]);if(!H)continue;const F=H.segmentIds.indexOf(D);if(F<0)continue;const I=L[G];if(!I)continue;const P=I.children;let Z=0;for(const X of P){const Y=X;if(Y.dataset.captionWrapper==="true"){const J=Y.querySelector(":scope > span");if(J&&Z===F){V.push(J);break}}else if(Y.tagName==="SPAN"&&Z===F){V.push(Y);break}Z++}break}if(E.x!==void 0||E.y!==void 0||E.scaleX!==void 0||E.scaleY!==void 0||E.rotation!==void 0)try{const D=(U=(q=e.current)==null?void 0:q.contentWindow)==null?void 0:U.gsap;if(D)for(const G of V){let H=G.parentElement;(!H||H.dataset.captionWrapper!=="true")&&(H=R.createElement("span"),H.style.display="inline-block",H.dataset.captionWrapper="true",(K=G.parentNode)==null||K.insertBefore(H,G),H.appendChild(G));const F=D.getProperty(H,"x")||0,I=D.getProperty(H,"y")||0,P=D.getProperty(H,"scale")||1,Z=D.getProperty(H,"rotation")||0;D.set(H,{x:E.x??F,y:E.y??I,scale:E.scaleX??P,rotation:E.rotation??Z})}}catch{}},[e,n,r]),A=d.useCallback(E=>{i?s(i,E):l(E),w(E)},[i,s,l,w]);if(r.size===0)return m.jsx("div",{className:"flex items-center justify-center h-full px-4 text-center",children:m.jsx("p",{className:"text-xs text-neutral-500",children:"Select caption words to edit their style"})});const k=v.x??0,C=v.y??0,T=v.rotation??0,$=v.scaleX??1,M=r.size===1?"1 word":`${r.size} words`;return m.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[m.jsxs("div",{className:"px-3 py-2 border-b border-neutral-800 flex-shrink-0",children:[m.jsx("div",{className:"flex items-center justify-between mb-1.5",children:m.jsx("span",{className:"text-2xs text-neutral-500",children:M})}),m.jsxs("div",{className:"flex gap-1",children:[m.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"}),m.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"&&m.jsx(xU,{}),c==="style"&&m.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:[m.jsxs(x8,{label:"Position",children:[m.jsx(ia,{label:"X",children:m.jsx("input",{type:"number",value:k,onChange:E=>A({x:Number(E.target.value)}),className:ll})}),m.jsx(ia,{label:"Y",children:m.jsx("input",{type:"number",value:C,onChange:E=>A({y:Number(E.target.value)}),className:ll})})]}),m.jsxs(x8,{label:"Transform",children:[m.jsx(ia,{label:"Scale",children:m.jsx("input",{type:"number",value:$,step:.1,onChange:E=>A({scaleX:Number(E.target.value),scaleY:Number(E.target.value)}),className:ll})}),m.jsx(ia,{label:"Rotation",children:m.jsx("input",{type:"number",value:T,onChange:E=>A({rotation:Number(E.target.value)}),className:ll})})]})]})]})}),bU=d.memo(function({blockTitle:e,params:n,compositionPath:r,onClose:i}){const[l,s]=d.useState(()=>{const u={};for(const h of n)u[h.key]=h.default;return u}),c=d.useCallback((u,h)=>{s(g=>({...g,[u]:h})),console.log(`[BlockParams] ${r} ${u}: ${h}`)},[r]);return m.jsxs("div",{className:"flex flex-col h-full",children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-neutral-800",children:[m.jsx("div",{className:"text-[11px] font-semibold text-neutral-200 truncate",children:e}),m.jsx("button",{type:"button",onClick:i,className:"text-neutral-500 hover:text-neutral-300 transition-colors",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-3",children:[m.jsx("div",{className:"text-[9px] font-medium text-neutral-500 uppercase tracking-wider",children:"Parameters"}),n.map(u=>m.jsx(vU,{param:u,value:l[u.key]??u.default,onChange:h=>c(u.key,h)},u.key))]})]})});function vU({param:t,value:e,onChange:n}){return m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-medium text-neutral-400",children:t.label}),t.type==="color"&&m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"color",value:e,onChange:r=>n(r.target.value),className:"w-7 h-7 rounded border border-neutral-700 bg-transparent cursor-pointer"}),m.jsx("input",{type:"text",value:e,onChange:r=>n(r.target.value),className:"flex-1 bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 font-mono focus:outline-none focus:border-neutral-700"})]}),t.type==="number"&&m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"range",min:t.min??0,max:t.max??100,step:t.step??1,value:e,onChange:r=>n(r.target.value),className:"flex-1"}),m.jsx("span",{className:"text-[10px] text-neutral-400 w-8 text-right tabular-nums",children:e})]}),t.type==="text"&&m.jsx("input",{type:"text",value:e,onChange:r=>n(r.target.value),className:"w-full bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 focus:outline-none focus:border-neutral-700"}),t.type==="select"&&t.options&&m.jsx("select",{value:e,onChange:r=>n(r.target.value),className:"w-full bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 focus:outline-none focus:border-neutral-700",children:t.options.map(r=>m.jsx("option",{value:r.value,children:r.label},r.value))})]})}function SU(t){if(t<1e3)return`${t}ms`;const e=Math.round(t/1e3);return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function wU(t){const e=Date.now()-t;return e<6e4?"just now":e<36e5?`${Math.floor(e/6e4)}m ago`:`${Math.floor(e/36e5)}h ago`}const kU=d.memo(function({job:e,projectId:n,onDelete:r}){const[i,l]=d.useState(!1),s=`/api/projects/${n}/renders/file/${e.filename}`,c=d.useCallback(()=>{window.open(s,"_blank")},[s]),u=d.useCallback(O=>{O.stopPropagation();const x=document.createElement("a");x.href=s,x.download=e.filename,x.click()},[s,e.filename]),h=s,g=e.status==="complete";return m.jsx("div",{onPointerEnter:()=>l(!0),onPointerLeave:()=>l(!1),onClick:g?c:void 0,className:["px-3 py-2.5 border-b border-neutral-800/30 last:border-0 transition-colors duration-150",g?"cursor-pointer hover:bg-neutral-800/30":""].filter(Boolean).join(" "),children:m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsxs("div",{className:"w-20 h-[45px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 relative",children:[g&&m.jsxs(m.Fragment,{children:[i&&m.jsx("video",{src:h,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain"}),m.jsx("div",{className:"absolute inset-0 transition-opacity duration-150",style:{opacity:i?0:1},children:m.jsx(hM,{src:h})})]}),e.status==="rendering"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-studio-accent animate-pulse"})}),e.status==="failed"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"})}),e.status==="cancelled"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"w-2 h-2 rounded-full bg-neutral-600"})})]}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-[11px] font-medium text-neutral-300 truncate",children:e.filename}),e.durationMs&&m.jsx("span",{className:"text-[9px] text-neutral-600 flex-shrink-0",children:SU(e.durationMs)})]}),e.status==="rendering"&&m.jsxs("div",{className:"mt-1",children:[m.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[m.jsx("span",{className:"text-[9px] text-neutral-500",children:e.stage||"Rendering"}),m.jsxs("span",{className:"text-[9px] font-mono text-studio-accent",children:[e.progress,"%"]})]}),m.jsx("div",{className:"w-full h-1 bg-neutral-800 rounded-full overflow-hidden",children:m.jsx("div",{className:"h-full bg-studio-accent rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),e.status==="failed"&&e.error&&m.jsx("span",{className:"text-[9px] text-red-400 mt-0.5 block",children:e.error}),e.status!=="rendering"&&m.jsx("span",{className:"text-[9px] text-neutral-600",children:wU(e.createdAt)})]}),i&&m.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[g&&m.jsx("button",{onClick:u,className:"p-1 rounded text-neutral-500 hover:text-green-400 transition-colors",title:"Download",children:m.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),m.jsx("polyline",{points:"7 10 12 15 17 10"}),m.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),m.jsx("button",{onClick:O=>{O.stopPropagation(),r()},className:"p-1 rounded text-neutral-500 hover:text-red-400 transition-colors",title:"Remove",children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:m.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]})})}),AU=["auto","1080p","4k"],yS={auto:"Auto","1080p":"1080p","4k":"4K"},YM={landscape:{width:1920,height:1080},portrait:{width:1080,height:1920},"landscape-4k":{width:3840,height:2160},"portrait-4k":{width:2160,height:3840},square:{width:1080,height:1080},"square-4k":{width:2160,height:2160}};function MU(t){return t==null?"landscape":t.width===t.height?"square":t.height>t.width?"portrait":"landscape"}function IM(t,e){if(t==="auto")return"auto";const n=MU(e);return t==="1080p"?n:n==="landscape"?"landscape-4k":n==="portrait"?"portrait-4k":"square-4k"}function CU(t,e){if(t==="auto")return e??null;const n=IM(t,e);return n==="auto"?null:YM[n]}function EU(t,e){if(t==="auto"||e==null)return!0;const n=IM(t,e);if(n==="auto")return!0;const r=YM[n];return r.width*e.height!==r.height*e.width||r.width<e.width?!1:Number.isInteger(r.width/e.width)}function TU(t,e){const n=CU(t,e);return n?`${yS[t]} · ${n.width}×${n.height}`:yS[t]}const Z2={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 $U({format:t}){const[e,n]=d.useState(!1),r=d.useRef(void 0),i=()=>{clearTimeout(r.current),n(!0)},l=()=>{r.current=setTimeout(()=>n(!1),120)};d.useEffect(()=>()=>clearTimeout(r.current),[]);const s=Z2[t];return m.jsxs("div",{className:"relative",onPointerEnter:i,onPointerLeave:l,children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"}),m.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),e&&m.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:[m.jsx("p",{className:"text-[10px] font-semibold text-neutral-200 mb-0.5",children:s.label}),m.jsx("p",{className:"text-[9px] text-neutral-400 leading-tight",children:s.desc}),m.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-neutral-800",children:["mp4","mov","webm"].filter(c=>c!==t).map(c=>m.jsxs("p",{className:"text-[9px] text-neutral-500 leading-relaxed",children:[m.jsx("span",{className:"text-neutral-400 font-medium",children:Z2[c].label})," — ",Z2[c].desc]},c))})]})]})}const bS=[{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 jU({onStartRender:t,isRendering:e,compositionDimensions:n}){var y;const r=SM(),[i,l]=d.useState(r.format),[s,c]=d.useState(r.quality),[u,h]=d.useState("auto"),[g,O]=d.useState(r.fps),x=i!=="mov";return m.jsxs("div",{className:"flex items-center gap-1 flex-wrap justify-end",children:[m.jsx($U,{format:i}),m.jsx("select",{value:u,onChange:v=>h(v.target.value),disabled:e,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:AU.map(v=>m.jsx("option",{value:v,disabled:!EU(v,n),children:TU(v,n)},v))}),x&&m.jsx("select",{value:s,onChange:v=>{const w=v.target.value;c(w),f2(i,w,g)},disabled:e,title:(y=bS.find(v=>v.value===s))==null?void 0:y.title,className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:bS.map(v=>m.jsx("option",{value:v.value,title:v.title,children:v.label},v.value))}),m.jsxs("select",{value:g,onChange:v=>{const w=Number(v.target.value);O(w),f2(i,s,w)},disabled:e,title:"Frames per second",className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:[m.jsx("option",{value:24,children:"24fps"}),m.jsx("option",{value:30,children:"30fps"}),m.jsx("option",{value:60,children:"60fps"})]}),m.jsxs("select",{value:i,onChange:v=>{const w=v.target.value;l(w),f2(w,s,g)},disabled:e,className:"h-5 px-1 text-[10px] bg-neutral-800 border border-neutral-700 text-neutral-300 outline-none disabled:opacity-50",children:[m.jsx("option",{value:"mp4",children:"MP4"}),m.jsx("option",{value:"mov",children:"MOV"}),m.jsx("option",{value:"webm",children:"WebM"})]}),m.jsx("button",{onClick:()=>{_t("render_start",{format:i,quality:s,resolution:u,fps:g}),t(i,s,u,g)},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 PU=d.memo(function({jobs:e,projectId:n,onDelete:r,onClearCompleted:i,onStartRender:l,isRendering:s,compositionDimensions:c}){const u=d.useRef(null);d.useEffect(()=>{u.current&&u.current.scrollTo({top:u.current.scrollHeight,behavior:"smooth"})},[e.length]);const h=e.filter(g=>g.status!=="rendering").length;return m.jsxs("div",{className:"flex flex-col h-full",children:[m.jsx("div",{className:"flex items-center justify-end flex-wrap gap-y-1.5 px-3 py-2 border-b border-neutral-800/50 flex-shrink-0",children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[h>0&&m.jsx("button",{onClick:i,className:"text-[10px] text-neutral-600 hover:text-neutral-400 transition-colors",children:"Clear"}),m.jsx(jU,{onStartRender:l,isRendering:s,compositionDimensions:c})]})}),m.jsx("div",{ref:u,className:"flex-1 overflow-y-auto",children:e.length===0?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 gap-2",children:[m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-neutral-700",children:[m.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",strokeLinecap:"round",strokeLinejoin:"round"})]}),m.jsx("p",{className:"text-[10px] text-neutral-600 text-center",children:"No renders yet"})]}):e.map(g=>m.jsx(kU,{job:g,projectId:n,onDelete:()=>r(g.id)},g.id))})]})});function QU({selectedStudioMotion:t,designPanelActive:e,motionPanelActive:n,activeBlockParams:r,onCloseBlockParams:i}){const{rightWidth:l,rightPanelTab:s,setRightPanelTab:c,handlePanelResizeStart:u,handlePanelResizeMove:h,handlePanelResizeEnd:g}=I8(),{captionEditMode:O,previewIframeRef:x,projectId:y,activeCompPath:v,compositionDimensions:w,waitForPendingDomEditSaves:A,renderQueue:k}=No(),{domEditSelection:C,domEditGroupSelections:T,copiedAgentPrompt:$,clearDomSelection:M,handleDomStyleCommit:j,handleDomAttributeCommit:E,handleDomHtmlAttributeCommit:N,handleDomPathOffsetCommit:R,handleDomBoxSizeCommit:L,handleDomRotationCommit:V,handleDomTextCommit:z,handleDomTextFieldStyleCommit:q,handleDomAddTextField:U,handleDomRemoveTextField:K,handleAskAgent:D,handleDomMotionCommit:G,handleDomMotionClear:H,selectedGsapAnimations:F,gsapMultipleTimelines:I,gsapUnsupportedTimelinePattern:P,handleGsapUpdateProperty:Z,handleGsapUpdateMeta:X,handleGsapDeleteAnimation:Y,handleGsapAddAnimation:J,handleGsapAddProperty:ne,handleGsapRemoveProperty:B,handleGsapUpdateFromProperty:re,handleGsapAddFromProperty:ae,handleGsapRemoveFromProperty:ue,commitAnimatedProperty:me}=Ed(),{assets:ye,fontAssets:Oe,projectDir:Se,handleImportFiles:Ae,handleImportFonts:Me}=bM(),Ve=k.jobs;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"group w-2 flex-shrink-0 cursor-col-resize flex items-center justify-center",style:{touchAction:"none"},onPointerDown:Pe=>u("right",Pe),onPointerMove:h,onPointerUp:g,children:m.jsx("div",{className:"h-[52px] w-px bg-white/12 transition-colors group-hover:bg-white/18 group-active:bg-white/24"})}),m.jsx("div",{className:"flex flex-col border-l border-neutral-800 bg-neutral-900 flex-shrink-0",style:{width:l},children:O?m.jsx(yU,{iframeRef:x}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-1 border-b border-neutral-800 px-3 py-2",children:[Mn&&m.jsxs(m.Fragment,{children:[m.jsx(Yt,{label:"Element styles and properties",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("design"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="design"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Design"})}),m.jsx(Yt,{label:"Composition layer stack",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("layers"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="layers"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Layers"})}),M8&&m.jsx(Yt,{label:"Animation and motion",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("motion"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="motion"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:"Motion"})})]}),m.jsx(Yt,{label:"Render queue and exports",side:"bottom",children:m.jsx("button",{type:"button",onClick:()=>c("renders"),className:`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${s==="renders"?"bg-neutral-800 text-white":"text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"}`,children:Ve.length>0?`Renders (${Ve.length})`:"Renders"})})]}),m.jsx("div",{className:"min-h-0 flex-1",children:s==="block-params"&&r?m.jsx(bU,{blockName:r.blockName,blockTitle:r.blockTitle,params:r.params,compositionPath:r.compositionPath,onClose:i??(()=>{})}):s==="layers"?m.jsx(dU,{}):e?m.jsx(BG,{projectId:y,projectDir:Se,assets:ye,element:T.length>1?null:C,multiSelectCount:T.length,copiedAgentPrompt:$,onClearSelection:M,onSetStyle:j,onSetAttribute:E,onSetHtmlAttribute:N,onSetManualOffset:R,onSetManualSize:L,onSetManualRotation:V,onSetText:z,onSetTextFieldStyle:q,onAddTextField:U,onRemoveTextField:K,onAskAgent:D,onImportAssets:Ae,fontAssets:Oe,onImportFonts:Me,previewIframeRef:x,gsapAnimations:F,gsapMultipleTimelines:I,gsapUnsupportedTimelinePattern:P,onUpdateGsapProperty:Z,onUpdateGsapMeta:X,onDeleteGsapAnimation:Y,onAddGsapProperty:ne,onRemoveGsapProperty:B,onUpdateGsapFromProperty:re,onAddGsapFromProperty:ae,onRemoveGsapFromProperty:ue,onAddGsapAnimation:J,onCommitAnimatedProperty:me}):n?m.jsx(nU,{element:T.length>1?null:C,motion:t,onClearSelection:M,onSetMotion:G,onClearMotion:H}):m.jsx(PU,{jobs:Ve,projectId:y,onDelete:k.deleteRender,onClearCompleted:k.clearCompleted,onStartRender:async(Pe,ft,yt,_e)=>{await A();const Ye=v&&v!=="index.html"?v:void 0;await k.startRender({fps:_e,quality:ft,format:Pe,resolution:yt,composition:Ye})},compositionDimensions:w,isRendering:k.isRendering})})]})})]})}function ZU(t,e){const n=t.slice().sort((l,s)=>l.percentage-s.percentage),r=new Set;for(const l of n)for(const s of Object.keys(l.properties))typeof l.properties[s]=="number"&&r.add(s);const i={};for(const l of r){let s=null,c=null;for(const u of n){const h=u.properties[l];typeof h=="number"&&(u.percentage<=e&&(s={pct:u.percentage,val:h}),u.percentage>=e&&!c&&(c={pct:u.percentage,val:h}))}if(s&&c&&s.pct!==c.pct){const u=(e-s.pct)/(c.pct-s.pct);i[l]=Math.round(s.val+u*(c.val-s.val))}else s?i[l]=Math.round(s.val):c&&(i[l]=Math.round(c.val))}return i}function NU(t,e,n){if(!(t!=null&&t.contentWindow))return{};let r;try{r=t.contentWindow.gsap}catch{return{}}if(!(r!=null&&r.getProperty))return{};const i=e.id?`#${e.id}`:e.selector;if(!i)return{};let l=null;try{l=t.contentDocument}catch{return{}}const s=l==null?void 0:l.querySelector(i);if(!s)return{};const c=new Set;for(const h of n)for(const g of Object.keys(h.properties))typeof h.properties[g]=="number"&&c.add(g);const u={};for(const h of c){const g=Number(r.getProperty(s,h));Number.isFinite(g)&&(u[h]=Math.round(g))}return u}function RU(t){var u,h;const e=fe(g=>g.currentTime);if(!t)return{state:"none",onToggle:void 0};const n=t.domEditSelection,r=t.selectedGsapAnimations,i=r.find(g=>g.keyframes),l=r.find(g=>!g.keyframes);let s="none";if(i!=null&&i.keyframes&&n){const g=Number.parseFloat(((u=n.dataAttributes)==null?void 0:u.start)??"0")||0,O=Number.parseFloat(((h=n.dataAttributes)==null?void 0:h.duration)??"1")||1,x=O>0?Math.max(0,Math.min(100,Math.round((e-g)/O*1e3)/10)):0;s=i.keyframes.keyframes.some(y=>Math.abs(y.percentage-x)<=1)?"active":"inactive"}return{state:s,onToggle:n?async()=>{var O,x,y,v;const g=fe.getState().currentTime;if(i!=null&&i.keyframes){i.hasUnresolvedKeyframes&&await((O=t.handleGsapMaterializeKeyframes)==null?void 0:O.call(t,i.id));const w=Number.parseFloat(((x=n.dataAttributes)==null?void 0:x.start)??"0")||0,A=Number.parseFloat(((y=n.dataAttributes)==null?void 0:y.duration)??"1")||1,k=A>0?Math.max(0,Math.min(100,Math.round((g-w)/A*1e3)/10)):0,C=i.keyframes.keyframes.find(T=>Math.abs(T.percentage-k)<=1);if(C)t.handleGsapRemoveKeyframe(i.id,C.percentage);else{const T=NU(((v=t.previewIframeRef)==null?void 0:v.current)??null,n,i.keyframes.keyframes),$=Object.keys(T).length>0?T:ZU(i.keyframes.keyframes,k);for(const[M,j]of Object.entries($))t.handleGsapAddKeyframe(i.id,k,M,j)}}else l?t.handleGsapConvertToKeyframes(l.id):t.handleGsapAddAnimation("to")}:void 0}}function VU({toggleTimelineVisibility:t,domEditSession:e,onSplitElement:n}){const r=fe(g=>g.zoomMode),i=fe(g=>g.manualZoomPercent),l=fe(g=>g.setZoomMode),s=fe(g=>g.setManualZoomPercent),c=kd(r,i),{state:u,onToggle:h}=RU(e);return m.jsx("div",{className:"border-b border-neutral-800/40 bg-neutral-950/96",children:m.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.16em] text-neutral-500",children:"Timeline"}),Ja&&h&&m.jsx(Yt,{label:u==="active"?"Remove keyframe at playhead":u==="inactive"?"Add keyframe at playhead":"Enable keyframes",children:m.jsx("button",{type:"button",onClick:h,className:`flex h-7 w-7 items-center justify-center rounded transition-colors ${u==="active"?"text-studio-accent":u==="inactive"?"text-neutral-400 hover:text-studio-accent":"text-neutral-600 hover:text-neutral-400"}`,children:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"currentColor",children:u==="active"?m.jsx("path",{d:"M5 0.5L9.5 5L5 9.5L0.5 5Z"}):m.jsx("path",{d:"M5 1.2L8.8 5L5 8.8L1.2 5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})})}),n&&(()=>{const{selectedElementId:g,elements:O,currentTime:x}=fe.getState(),y=g?O.find(A=>(A.key??A.id)===g):null;if(!(y&&!y.compositionSrc&&["video","audio","img"].includes(y.tag)))return null;const w=x>y.start&&x<y.start+y.duration;return m.jsx(Yt,{label:"Split clip at playhead (S)",children:m.jsx("button",{type:"button",disabled:!w,onClick:()=>{w&&n(y,x)},className:`flex h-7 w-7 items-center justify-center rounded transition-colors ${w?"text-neutral-500 hover:text-neutral-200":"text-neutral-700 cursor-not-allowed"}`,children:m.jsx(JV,{size:15})})})})()]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Yt,{label:"Fit timeline to width",children:m.jsx("button",{type:"button",onClick:()=>l("fit"),className:`h-7 px-2.5 rounded-md border text-[11px] font-medium transition-colors ${r==="fit"?"border-studio-accent/30 bg-studio-accent/10 text-studio-accent":"border-neutral-800 text-neutral-400 hover:border-neutral-700 hover:text-neutral-200"}`,children:"Fit"})}),m.jsx(Yt,{label:"Zoom out",children:m.jsx("button",{type:"button",onClick:()=>{l("manual"),s(ly("out",r,i))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",children:"-"})}),m.jsx("div",{className:"min-w-[58px] text-center text-[10px] font-medium tabular-nums text-neutral-500",children:`${c}%`}),m.jsx(Yt,{label:"Zoom in",children:m.jsx("button",{type:"button",onClick:()=>{l("manual"),s(ly("in",r,i))},className:"h-7 w-7 rounded-md border border-neutral-800 text-neutral-400 transition-colors hover:border-neutral-700 hover:text-neutral-200",children:"+"})}),m.jsx(Yt,{label:Vw(!0),children:m.jsx("button",{type:"button",onClick:t,className:"ml-1 flex h-7 w-7 items-center justify-center rounded-md text-neutral-500 transition-colors hover:bg-neutral-900 hover:text-neutral-200","aria-label":"Hide timeline editor",children:m.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("path",{d:"M5 7h14"}),m.jsx("path",{d:"m8 11 4 4 4-4"})]})})})]})]})})}function _U({waiting:t}){return m.jsx("div",{className:"h-full w-full bg-neutral-950 flex items-center justify-center",children:t?m.jsxs("div",{className:"flex flex-col items-center gap-3 text-center px-6",children:[m.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin"}),m.jsxs("p",{className:"text-xs text-neutral-600",children:["Waiting for preview server… run"," ",m.jsx("code",{className:"text-neutral-500 font-mono",children:"npm run dev"})]})]}):m.jsx("div",{className:"w-4 h-4 rounded-full bg-studio-accent animate-pulse"})})}function LU({message:t,tone:e}){return m.jsx("div",{className:`absolute bottom-6 left-1/2 -translate-x-1/2 z-[91] px-4 py-2 rounded-lg border text-sm shadow-lg animate-in fade-in slide-in-from-bottom-2 ${e==="error"?"bg-red-900/90 border-red-700/50 text-red-200":"bg-neutral-900/95 border-neutral-700/60 text-neutral-100"}`,children:t})}function DU(){const[t,e]=d.useState(null),[n,r]=d.useState(!0),[i,l]=d.useState(!1);return Xt(()=>{const s=a3(window.location.hash);let c=!1,u=null;function h(){l(!0),u=window.setTimeout(g,2e3)}function g(){fetch("/api/projects").then(O=>O.json()).then(O=>{if(!c)if(s)e(s),l(!1);else{const x=(O.projects??[])[0];x?(e(x.id),l(!1),window.location.hash=Hw(x.id)):h()}}).catch(()=>{c||h()}).finally(()=>{c||r(!1)})}return g(),()=>{c=!0,u!==null&&clearTimeout(u)}}),d.useEffect(()=>{const s=()=>{const c=a3(window.location.hash);c&&c!==t&&e(c)};return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[t]),{projectId:t,resolving:n,waitingForServer:i}}function HU(){const{projectId:t,resolving:e,waitingForServer:n}=DU(),r=d.useRef(jV());d.useEffect(()=>{e||n||bT()||(vT(),QT({has_project:t!=null}))},[t,e,n]);const[i,l]=d.useState(null),[s,c]=d.useState(()=>r.current.activeCompPath==null),[u,h]=d.useState(new Map),[g,O]=d.useState(null),[x,y]=d.useState(!0),[v,w]=d.useState(0),[,A]=d.useState(0),[k,C]=d.useState(null),[T,$]=d.useState(null),M=d.useRef(null),j=d.useRef(i);j.current=i;const E=d.useRef(null),N=VT(t),R=Ot(Ce=>Ce.isEditMode),L=Ot(Ce=>Ce.selectedSegmentIds.size>0),V=hZ(t),z=fe(Ce=>Ce.currentTime),q=fe(Ce=>Ce.elements),U=fe(Ce=>Ce.setSelectedElementId),K=fe(Ce=>Ce.duration),D=fe(Ce=>Ce.isPlaying),G=!i||i==="index.html",H=i?`/api/projects/${t}/preview/comp/${i}`:null,F=d.useMemo(()=>{const Ce=q.length>0?Math.max(...q.map(rt=>rt.start+rt.duration)):0;return Math.max(K,Ce)},[K,q]),I=d.useCallback(()=>{A(Ce=>Ce+1),window.setTimeout(()=>A(Ce=>Ce+1),80),window.setTimeout(()=>A(Ce=>Ce+1),300)},[]),[P,Z]=d.useState(()=>r.current.timelineVisible??ul().timelineVisible??!0),X=d.useCallback(()=>{Z(Ce=>(ho({timelineVisible:!Ce}),!Ce))},[]),{appToast:Y,showToast:J}=AV(),ne=EZ({rightCollapsed:r.current.rightCollapsed,rightPanelTab:r.current.rightPanelTab}),B=CZ({projectId:t}),re=d.useRef(0),ae=d.useRef(new Set),ue=d.useCallback(()=>{w(Ce=>Ce+1)},[]),me=zZ({projectId:t,showToast:J,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,setRefreshKey:w});d.useEffect(()=>{if(s||!me.fileTreeLoaded)return;const Ce=CV(r.current.activeCompPath,me.fileTree);l(rt=>rt===Ce?rt:Ce),c(!0)},[s,me.fileTree,me.fileTreeLoaded]);const ye=EN({projectId:t,showToast:J,readOptionalProjectFile:me.readOptionalProjectFile,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,previewIframeRef:M,activeCompPathRef:j,domEditSaveTimestampRef:re,reloadPreview:()=>w(Ce=>Ce+1),pendingTimelineEditPathRef:ae}),Oe=RN({projectId:t,activeCompPath:i,timelineElements:q,showToast:J,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,reloadPreview:ue,previewIframeRef:M,pendingTimelineEditPathRef:ae,uploadProjectFiles:me.uploadProjectFiles}),Se=d.useMemo(()=>({activeCompPath:i,timelineElements:q,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,refreshFileTree:me.refreshFileTree,reloadPreview:ue,showToast:J}),[i,q,me,B.recordEdit,ue,J]),Ae=d.useCallback(Ce=>{t&&(async()=>{const rt=await kp({projectId:t,blockName:Ce,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime}),bn=(rt==null?void 0:rt.block.type)==="hyperframes:block"?rt.block.params:void 0;bn!=null&&bn.length&&(C({blockName:rt.block.name,blockTitle:rt.block.title,params:bn,compositionPath:rt.compositionPath}),ne.setRightCollapsed(!1),ne.setRightPanelTab("block-params"))})()},[t,Se,ne]),Me=d.useCallback((Ce,rt)=>{t&&kp({projectId:t,blockName:Ce,placement:rt,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime})},[t,Se]),Ve=d.useCallback((Ce,rt)=>{t&&kp({projectId:t,blockName:Ce,visualPosition:rt,...Se,previewIframe:M.current,currentTime:fe.getState().currentTime})},[t,Se]),Pe=d.useRef(()=>{}),ft=d.useRef(null),yt=d.useRef(async()=>{}),_e=Ce=>yt.current(Ce),Ye=d.useRef(()=>!1),Le=d.useRef(()=>{}),be=d.useRef(()=>{}),{handleCopy:dt,handlePaste:Ue,handleCut:bt}=aV({projectId:t,activeCompPath:i,domEditSelectionRef:ft,showToast:J,writeProjectFile:me.writeProjectFile,recordEdit:B.recordEdit,domEditSaveTimestampRef:re,reloadPreview:ue,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleDomEditElementDelete:_e,previewIframeRef:M}),Re=JR({toggleTimelineVisibility:X,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleTimelineElementSplit:Oe.handleTimelineElementSplit,handleDomEditElementDelete:_e,domEditSelectionRef:ft,editHistory:B,readOptionalProjectFile:me.readOptionalProjectFile,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,domEditSaveTimestampRef:re,showToast:J,syncHistoryPreviewAfterApply:ye.syncHistoryPreviewAfterApply,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves,leftSidebarRef:E,handleCopy:dt,handlePaste:Ue,handleCut:bt,onResetKeyframes:()=>Ye.current(),onDeleteSelectedKeyframes:()=>Le.current(),onAfterUndoRedo:()=>be.current()}),on=d.useCallback(Ce=>{var rt;return(rt=E.current)==null?void 0:rt.selectTab(Ce)},[]),Rt=d.useCallback(()=>{var Ce;return((Ce=E.current)==null?void 0:Ce.getTab())??"compositions"},[]),we=WR({projectId:t,activeCompPath:i,isMasterView:G,compIdToSrc:u,captionEditMode:R,compositionLoading:x,previewIframeRef:M,timelineElements:q,currentTime:z,setSelectedTimelineElementId:U,setRightCollapsed:ne.setRightCollapsed,setRightPanelTab:ne.setRightPanelTab,showToast:J,refreshPreviewDocumentVersion:I,queueDomEditSave:ye.queueDomEditSave,readProjectFile:me.readProjectFile,writeProjectFile:me.writeProjectFile,domEditSaveTimestampRef:re,editHistory:{recordEdit:B.recordEdit},fileTree:me.fileTree,importedFontAssetsRef:me.importedFontAssetsRef,projectDir:me.projectDir,projectIdRef:me.projectIdRef,previewIframe:g,refreshKey:v,rightPanelTab:ne.rightPanelTab,applyStudioManualEditsToPreviewRef:ye.applyStudioManualEditsToPreviewRef,syncPreviewHistoryHotkey:Re.syncPreviewHistoryHotkey,reloadPreview:ue,setRefreshKey:w,openSourceForSelection:me.openSourceForSelection,selectSidebarTab:on,getSidebarTab:Rt});ft.current=we.domEditSelection,Pe.current=we.clearDomSelection,yt.current=we.handleDomEditElementDelete,Ye.current=we.handleResetSelectedElementKeyframes,be.current=we.invalidateGsapCache,Le.current=()=>{const Ce=fe.getState().selectedKeyframes,rt=we.selectedGsapAnimations.find(bn=>bn.keyframes);!rt||Ce.size===0||Ce.forEach(bn=>{const mr=Number(bn.split(":")[1]);Number.isFinite(mr)&&we.handleGsapRemoveKeyframe(rt.id,mr)})},fV({projectId:t,activeCompPath:i,compIdToSrc:u,captionEditMode:R,captionHasSelection:L,previewIframeRef:M,captionSync:V,setRightCollapsed:ne.setRightCollapsed});const ht=OV({projectIdRef:me.projectIdRef,compIdToSrc:u,activePreviewUrl:H,effectiveTimelineDuration:F}),Mt=kV(),{lintModal:ot,linting:ve,handleLint:ze,closeLintModal:Ze}=wV(t),Be=SV({projectId:t,activeCompPath:i,showToast:J,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves}),{consoleErrors:vt,setConsoleErrors:lt,resetErrors:Je}=xV(g),mt=RV(me.handleImportFiles),Tt=d.useCallback(Ce=>{M.current=Ce,O(Ce),Re.syncPreviewTimelineHotkey(Ce),Re.syncPreviewHistoryHotkey(Ce),Je(),I()},[Re,Je,I]),cn=d.useCallback(Ce=>{l(Ce.endsWith(".html")?Ce:null),me.setEditingFile({path:Ce,content:null}),fetch(`/api/projects/${t}/files/${Ce}`).then(rt=>rt.json()).then(rt=>me.setEditingFile({path:Ce,content:rt.content})).catch(()=>{})},[t,me]),{selectedStudioMotion:Bn,designPanelActive:bl,motionPanelActive:Sa,inspectorPanelActive:Zi,inspectorButtonActive:En,shouldShowSelectedDomBounds:di}=NV(ne.rightPanelTab,ne.rightCollapsed,D,we.domEditSelection);QV({projectId:t,activeCompPath:i,currentTime:z,duration:F,isPlaying:D,compositionLoading:x,refreshKey:v,previewIframeRef:M,rightPanelTab:ne.rightPanelTab,rightCollapsed:ne.rightCollapsed,timelineVisible:P,activeCompPathHydrated:s,domEditSelection:we.domEditSelection,buildDomSelectionFromTarget:we.buildDomSelectionFromTarget,applyDomSelection:we.applyDomSelection,initialState:r.current});const wa=ZV({projectId:t,activeCompPath:i,setActiveCompPath:l,showToast:J,previewIframeRef:M,captionEditMode:R,compositionLoading:x,refreshKey:v,setRefreshKey:w,currentTime:z,timelineElements:q,isPlaying:D,editHistory:B,handleUndo:Re.handleUndo,handleRedo:Re.handleRedo,renderQueue:{jobs:N.jobs,isRendering:N.isRendering,deleteRender:N.deleteRender,clearCompleted:N.clearCompleted,startRender:N.startRender},compositionDimensions:Mt,waitForPendingDomEditSaves:ye.waitForPendingDomEditSaves,handlePreviewIframeRef:Tt,refreshPreviewDocumentVersion:I,timelineVisible:P,toggleTimelineVisibility:X});if(e||n||!t)return m.jsx(_U,{waiting:n});const ka=m.jsx(VU,{toggleTimelineVisibility:X,domEditSession:we,onSplitElement:Oe.handleTimelineElementSplit});return m.jsx(e_,{value:wa,children:m.jsx(t_,{value:ne,children:m.jsx(fI,{value:me,children:m.jsx(n_,{value:we,children:m.jsxs("div",{className:"flex flex-col h-full w-full bg-neutral-950 relative",onDragOver:mt.onDragOver,onDragEnter:mt.onDragEnter,onDragLeave:mt.onDragLeave,onDrop:mt.onDrop,children:[m.jsx(i_,{captureFrameHref:Be.captureFrameHref,captureFrameFilename:Be.captureFrameFilename,handleCaptureFrameClick:Be.handleCaptureFrameClick,refreshCaptureFrameTime:Be.refreshCaptureFrameTime,inspectorButtonActive:En,inspectorPanelActive:Zi}),m.jsxs("div",{className:"flex flex-1 min-h-0",children:[m.jsx(dI,{leftSidebarRef:E,onSelectComposition:cn,onAddBlock:Ae,onPreviewBlock:$,onLint:ze,linting:ve}),m.jsx(Nq,{timelineToolbar:ka,renderClipContent:ht,handleTimelineElementDelete:Oe.handleTimelineElementDelete,handleTimelineAssetDrop:Oe.handleTimelineAssetDrop,handleTimelineBlockDrop:Me,handlePreviewBlockDrop:Ve,handleTimelineFileDrop:Oe.handleTimelineFileDrop,handleTimelineElementMove:Oe.handleTimelineElementMove,handleTimelineElementResize:Oe.handleTimelineElementResize,handleBlockedTimelineEdit:Oe.handleBlockedTimelineEdit,handleTimelineElementSplit:Oe.handleTimelineElementSplit,setCompIdToSrc:h,setCompositionLoading:y,shouldShowSelectedDomBounds:di,blockPreview:T}),!ne.rightCollapsed&&m.jsx(QU,{selectedStudioMotion:Bn,designPanelActive:bl,motionPanelActive:Sa,activeBlockParams:k,onCloseBlockParams:()=>{C(null),ne.setRightPanelTab("design")}})]}),ot!==null&&m.jsx(wy,{findings:ot,projectId:t,onClose:Ze}),vt!==null&&vt.length>0&&m.jsx(wy,{findings:vt,projectId:t,onClose:()=>lt(null)}),we.agentModalOpen&&we.domEditSelection&&m.jsx(_V,{selectionLabel:we.domEditSelection.label,contextPreview:sR(we.domEditSelection,i),anchorPoint:we.agentModalAnchorPoint,onSubmit:we.handleAgentModalSubmit,onClose:()=>{we.setAgentModalOpen(!1),we.setAgentPromptSelectionContext(void 0),we.setAgentModalAnchorPoint(null)}}),mt.active&&m.jsx(LV,{}),Y&&m.jsx(LU,{message:Y.message,tone:Y.tone})]})})})})})}class XU extends d.Component{constructor(){super(...arguments);A5(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){var i,l;console.error("[Studio] Uncaught error:",n,r.componentStack),_t("crash",{error_message:n.message,error_name:n.name,stack_trace:((i=n.stack)==null?void 0:i.slice(0,4e3))??null,component_stack:((l=r.componentStack)==null?void 0:l.slice(0,2e3))??null})}render(){return this.state.error?m.jsxs("div",{style:{position:"fixed",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"#0a0a0a",color:"#e5e5e5",fontFamily:"system-ui, -apple-system, sans-serif",gap:16},children:[m.jsx("div",{style:{fontSize:18,fontWeight:600},children:"Something went wrong"}),m.jsx("div",{style:{fontSize:13,color:"#888",maxWidth:480,textAlign:"center"},children:this.state.error.message}),m.jsx("button",{onClick:()=>this.setState({error:null}),style:{marginTop:8,padding:"8px 20px",background:"#2563eb",color:"#fff",border:"none",borderRadius:6,fontSize:14,cursor:"pointer"},children:"Try again"})]}):this.props.children}}_t("session_start");function qM(t){var e;return t instanceof Error?{error_message:t.message,error_name:t.name,stack_trace:((e=t.stack)==null?void 0:e.slice(0,4e3))??null}:{error_message:String(t),error_name:null,stack_trace:null}}function zU(t,e){return!!(t.includes("Error fetching")&&(t.includes("404")||t.includes("Not Found"))||e==="EncodingError"||t.includes("unsupported or unrecognizable format")||t.includes("MEDIA_ERR_SRC_NOT_SUPPORTED"))}const GM=50;let N2=0,R2=0,vS=!1,SS=!1;window.addEventListener("error",t=>{var e;if((e=t.message)!=null&&e.includes("ResizeObserver loop")){t.stopImmediatePropagation(),t.preventDefault();return}if(N2++,N2>GM){vS||(vS=!0,_t("error_cap_reached",{count:N2}));return}_t("unhandled_error",{...qM(t.error),error_message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno})});let Of=0;window.addEventListener("unhandledrejection",t=>{const e=qM(t.reason);if(zU(e.error_message,e.error_name)){Of++,(Of===1||Of%100===0)&&_t("composition_asset_error_filtered",{error_message:e.error_message.slice(0,200),error_name:e.error_name,total_filtered:Of});return}if(R2++,R2>GM){SS||(SS=!0,_t("rejection_cap_reached",{count:R2}));return}_t("unhandled_promise_rejection",e)});hT.createRoot(document.getElementById("root")).render(m.jsx(d.StrictMode,{children:m.jsx(XU,{children:m.jsx(HU,{})})}));