heyterm 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -4
- package/dist/server/cli.js +927 -152
- package/dist/web/assets/index-BpHCz2ZQ.css +1 -0
- package/dist/web/assets/index-DoOx0AWu.js +108 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-B8NXrT8_.css +0 -1
- package/dist/web/assets/index-DN5rav7f.js +0 -108
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var ee=x.prototype=new b;ee.constructor=x,_(ee,y.prototype),ee.isPureReactComponent=!0;var te=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function E(e,t){return T(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+re(e,0):a,te(o)?(i=``,c!=null&&(i=c.replace(O,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(te(e))for(var u=0;u<e.length;u++)a=e[u],s=l+re(a,u),c+=A(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+re(a,u++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ae=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function oe(e){var t=C.T,n={};n.types=t===null?null:t.types,C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(S,ae)}catch(e){ae(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),C.T=t}}function se(e){var t=C.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else oe(se.bind(null,e))}var ce={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ce,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},e.addTransitionType=se,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!w.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)w.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return T(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=oe,e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},e.use=function(e){return C.H.use(e)},e.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},e.useCallback=function(e,t){return C.H.useCallback(e,t)},e.useContext=function(e){return C.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return C.H.useEffect(e,t)},e.useEffectEvent=function(e){return C.H.useEffectEvent(e)},e.useId=function(){return C.H.useId()},e.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return C.H.useMemo(e,t)},e.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},e.useRef=function(e){return C.H.useRef(e)},e.useState=function(e){return C.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return C.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,ee||(ee=!0,E());else{var t=n(l);t!==null&&O(x,t.startTime-e)}}}var ee=!1,te=-1,S=5,C=-1;function w(){return g?!0:!(e.unstable_now()-C<S)}function T(){if(g=!1,ee){var t=e.unstable_now();C=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&w());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&O(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():ee=!1}}}var E;if(typeof y==`function`)E=function(){y(T)};else if(typeof MessageChannel<`u`){var D=new MessageChannel,ne=D.port2;D.port1.onmessage=T,E=function(){ne.postMessage(null)}}else E=function(){_(T,0)};function O(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):S=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,E()))),r},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,ee=null;function te(e,t,n){return e===n||e===t&&(x=e,!0)}function S(e,t,n){return e===n?(ee=e,!1):e===t&&(ee!==null&&(x=e),!0)}function C(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),ne=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),k=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),ie=Symbol.for(`react.forward_ref`),ae=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),le=Symbol.for(`react.activity`),ue=Symbol.for(`react.legacy_hidden`),de=Symbol.for(`react.memo_cache_sentinel`),fe=Symbol.for(`react.view_transition`),pe=Symbol.for(`react.recoverable`),me=Symbol.iterator;function he(e){return typeof e!=`object`||!e?null:(e=me&&e[me]||e[`@@iterator`],typeof e==`function`?e:null)}var ge=Symbol.for(`react.client.reference`);function _e(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case k:return`Profiler`;case re:return`StrictMode`;case ae:return`Suspense`;case oe:return`SuspenseList`;case le:return`Activity`;case fe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ne:return`Portal`;case j:return e.displayName||`Context`;case A:return(e._context.displayName||`Context`)+`.Consumer`;case ie:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case se:return t=e.displayName||null,t===null?_e(e.type)||`Memo`:t;case ce:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var ve=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},be=[],xe=-1;function Se(e){return{current:e}}function Ce(e){0>xe||(e.current=be[xe],be[xe]=null,xe--)}function we(e,t){xe++,be[xe]=e.current,e.current=t}var Te=Se(null),Ee=Se(null),De=Se(null),Oe=Se(null);function ke(e,t){switch(we(De,t),we(Ee,e),we(Te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gp(t),e=_p(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ce(Te),we(Te,e)}function Ae(){Ce(Te),Ce(Ee),Ce(De)}function je(e){var t=e.memoizedState;t!==null&&(ph._currentValue=t.memoizedState,we(Oe,e)),t=Te.current;var n=_p(t,e.type);t!==n&&(we(Ee,e),we(Te,n))}function P(e){Ee.current===e&&(Ce(Te),Ce(Ee)),Oe.current===e&&(Ce(Oe),ph._currentValue=ye)}var Me,F;function Ne(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,F=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+Me+e+F}var Pe=!1;function Fe(e,t){if(!e||Pe)return``;Pe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
-
`),l=s.split(`
|
|
5
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ne(n):``}function Ie(e,t){switch(e.tag){case 26:case 27:case 5:return Ne(e.type);case 16:return Ne(`Lazy`);case 13:return e.child!==t&&t!==null?Ne(`Suspense Fallback`):Ne(`Suspense`);case 19:return Ne(`SuspenseList`);case 0:case 15:return Fe(e.type,!1);case 11:return Fe(e.type.render,!1);case 1:return Fe(e.type,!0);case 31:return Ne(`Activity`);case 30:return Ne(`ViewTransition`);default:return``}}function Le(e){try{var t=``,n=null;do t+=Ie(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var Re=Object.prototype.hasOwnProperty,ze=t.unstable_scheduleCallback,Be=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,He=t.unstable_requestPaint,Ue=t.unstable_now,We=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Ke=t.unstable_UserBlockingPriority,qe=t.unstable_NormalPriority,Je=t.unstable_LowPriority,Ye=t.unstable_IdlePriority,Xe=t.log,Ze=t.unstable_setDisableYieldValue,Qe=null,$e=null;function et(e){if(typeof Xe==`function`&&Ze(e),$e&&typeof $e.setStrictMode==`function`)try{$e.setStrictMode(Qe,e)}catch{}}var tt=Math.clz32?Math.clz32:it,nt=Math.log,rt=Math.LN2;function it(e){return e>>>=0,e===0?32:31-(nt(e)/rt|0)|0}var at=256,ot=262144,st=4194304;function ct(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function lt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ct(n))):i=ct(o):i=ct(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ct(n))):i=ct(o)):i=ct(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ut(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-tt(n),i=1<<r;t|=e[r],n&=~i}return t}function ft(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 pt(){var e=st;return st<<=1,!(st&62914560)&&(st=4194304),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-tt(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&_t(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function _t(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function yt(e,t){var n=t&-t;return n=n&42?1:bt(n),(n&(e.suspendedLanes|t))===0?n:0}function bt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function xt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function St(){var e=N.p;return e===0?(e=window.event,e===void 0?32:kh(e.type)):e}function Ct(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var wt=Math.random().toString(36).slice(2),Tt=`__reactFiber$`+wt,Et=`__reactProps$`+wt,Dt=`__reactContainer$`+wt,Ot=`__reactEvents$`+wt,kt=`__reactListeners$`+wt,At=`__reactHandles$`+wt,jt=`__reactResources$`+wt,Mt=`__reactMarker$`+wt,Nt=`__reactLoad$`+wt;function Pt(e){delete e[Tt],delete e[Et],delete e[kt],delete e[At]}function Ft(e){var t;if(t=e[Tt])return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[Tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vm(e);e!==null;){if(n=e[Tt])return n;e=vm(e)}return t}e=n,n=e.parentNode}return null}function It(e){if(e=e[Tt]||e[Dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Lt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Rt(e){var t=e[jt];return t||=e[jt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function zt(e){e[Mt]=!0}function Bt(e){e[Nt]=void 0}var Vt=new Set,Ht={};function Ut(e,t){Wt(e,t),Wt(e+`Capture`,t)}function Wt(e,t){for(Ht[e]=t,e=0;e<t.length;e++)Vt.add(t[e])}var Gt=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]*$`),Kt={},qt={};function Jt(e){return Re.call(qt,e)?!0:Re.call(Kt,e)?!1:Gt.test(e)?qt[e]=!0:(Kt[e]=!0,!1)}var Yt=!1;function Xt(){var e=Yt;return Yt=!1,e}function Zt(e,t,n){if(Jt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Qt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function $t(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function en(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function tn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function nn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rn(e){if(!e._valueTracker){var t=tn(e)?`checked`:`value`;e._valueTracker=nn(e,t,``+e[t])}}function an(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=tn(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var on=/[\n"\\]/g;function sn(e){return e.replace(on,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function cn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+en(t)):e.value!==``+en(t)&&(e.value=``+en(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):un(e,en(n)):o===`number`&&e.value==t?un(e,en(e.value)):un(e,en(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+en(s):e.removeAttribute(`name`)}function ln(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){rn(e);return}n=n==null?``:``+en(n),t=t==null?n:``+en(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),rn(e)}function un(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function dn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+en(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fn(e,t,n){t!=null&&(t=``+en(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+en(n)}function pn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ve(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=en(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),rn(e)}function mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hn=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 gn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||hn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function _n(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Yt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(gn(e,a,r),Yt=!0)}else for(var o in t)t.hasOwnProperty(o)&&gn(e,o,t[o])}function vn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 yn=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`],[`maskType`,`mask-type`],[`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`]]),bn=/^[\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 xn(e){return bn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Sn(){}var Cn=null;function wn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,En=null;function Dn(e){var t=It(e);if(t&&(e=t.stateNode)){var n=e[Et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(cn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+sn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Et]||null;if(!a)throw Error(i(90));cn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&an(r)}break a;case`textarea`:fn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}}}var On=!1;function kn(e,t,n){if(On)return e(t,n);On=!0;try{return e(t)}finally{if(On=!1,(Tn!==null||En!==null)&&(Ud(),Tn&&(t=Tn,e=En,En=Tn=null,Dn(t),e)))for(t=0;t<e.length;t++)Dn(e[t])}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var jn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Mn=!1;if(jn)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){Mn=!0}}),window.addEventListener(`test`,Nn,Nn),window.removeEventListener(`test`,Nn,Nn)}catch{Mn=!1}var Pn=null,Fn=null,In=null;function Ln(){if(In)return In;var e,t=Fn,n=t.length,r,i=`value`in Pn?Pn.value:Pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return In=i.slice(e,1<r?1-r:void 0)}function Rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zn(){return!0}function Bn(){return!1}function Vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?zn:Bn,this.isPropagationStopped=Bn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){},isPersistent:zn}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Un=Vn(Hn),Wn=T({},Hn,{view:0,detail:0}),Gn=Vn(Wn),Kn,qn,Jn,Yn=T({},Wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Jn&&(Jn&&e.type===`mousemove`?(Kn=e.screenX-Jn.screenX,qn=e.screenY-Jn.screenY):qn=Kn=0,Jn=e),Kn)},movementY:function(e){return`movementY`in e?e.movementY:qn}}),Xn=Vn(Yn),Zn=Vn(T({},Yn,{dataTransfer:0})),Qn=Vn(T({},Wn,{relatedTarget:0})),$n=Vn(T({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0})),er=Vn(T({},Hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),tr=Vn(T({},Hn,{data:0})),nr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},rr={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`},ir={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ir[e])?!!t[e]:!1}function or(){return ar}var sr=Vn(T({},Wn,{key:function(e){if(e.key){var t=nr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?rr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(e){return e.type===`keypress`?Rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),cr=Vn(T({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),lr=Vn(T({},Hn,{submitter:0})),ur=Vn(T({},Wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or})),dr=Vn(T({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),fr=Vn(T({},Yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),pr=Vn(T({},Hn,{newState:0,oldState:0,source:0})),mr=[9,13,27,32],hr=jn&&`CompositionEvent`in window,gr=null;jn&&`documentMode`in document&&(gr=document.documentMode);var _r=jn&&`TextEvent`in window&&!gr,vr=jn&&(!hr||gr&&8<gr&&11>=gr),yr=` `,br=!1;function I(e,t){switch(e){case`keyup`:return mr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function xr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Sr=!1;function Cr(e,t){switch(e){case`compositionend`:return xr(t);case`keypress`:return t.which===32?(br=!0,yr):null;case`textInput`:return e=t.data,e===yr&&br?null:e;default:return null}}function wr(e,t){if(Sr)return e===`compositionend`||!hr&&I(e,t)?(e=Ln(),In=Fn=Pn=null,Sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return vr&&t.locale!==`ko`?null:t.data;default:return null}}var Tr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Tr[e.type]:t===`textarea`}function Dr(e,t,n,r){Tn?En?En.push(r):En=[r]:Tn=r,t=$f(t,`onChange`),0<t.length&&(n=new Un(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Or=null,kr=null;function Ar(e){Kf(e,0)}function jr(e){if(an(Lt(e)))return e}function Mr(e,t){if(e===`change`)return t}var Nr=!1;if(jn){var Pr;if(jn){var Fr=`oninput`in document;if(!Fr){var Ir=document.createElement(`div`);Ir.setAttribute(`oninput`,`return;`),Fr=typeof Ir.oninput==`function`}Pr=Fr}else Pr=!1;Nr=Pr&&(!document.documentMode||9<document.documentMode)}function Lr(){Or&&(Or.detachEvent(`onpropertychange`,Rr),kr=Or=null)}function Rr(e){if(e.propertyName===`value`&&jr(kr)){var t=[];Dr(t,kr,e,wn(e)),kn(Ar,t)}}function zr(e,t,n){e===`focusin`?(Lr(),Or=t,kr=n,Or.attachEvent(`onpropertychange`,Rr)):e===`focusout`&&Lr()}function Br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return jr(kr)}function Vr(e,t){if(e===`click`)return jr(t)}function Hr(e,t){if(e===`input`||e===`change`)return jr(t)}function Ur(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Wr=typeof Object.is==`function`?Object.is:Ur;function Gr(e,t){if(Wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Re.call(t,i)||!Wr(e[i],t[i]))return!1}return!0}function Kr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var n=qr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=qr(n)}}function L(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?L(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Zr=jn&&`documentMode`in document&&11>=document.documentMode,Qr=null,$r=null,ei=null,ti=!1;function ni(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ti||Qr==null||Qr!==Kr(r)||(r=Qr,`selectionStart`in r&&Xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ei&&Gr(ei,r)||(ei=r,r=$f($r,`onSelect`),0<r.length&&(t=new Un(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Qr)))}function ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ii={animationend:ri(`Animation`,`AnimationEnd`),animationiteration:ri(`Animation`,`AnimationIteration`),animationstart:ri(`Animation`,`AnimationStart`),transitionrun:ri(`Transition`,`TransitionRun`),transitionstart:ri(`Transition`,`TransitionStart`),transitioncancel:ri(`Transition`,`TransitionCancel`),transitionend:ri(`Transition`,`TransitionEnd`)},ai={},oi={};jn&&(oi=document.createElement(`div`).style,`AnimationEvent`in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),`TransitionEvent`in window||delete ii.transitionend.transition);function si(e){if(ai[e])return ai[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oi)return ai[e]=t[n];return e}var ci=si(`animationend`),li=si(`animationiteration`),ui=si(`animationstart`),di=si(`transitionrun`),fi=si(`transitionstart`),pi=si(`transitioncancel`),mi=si(`transitionend`),hi=new Map,gi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);gi.push(`scrollEnd`);function _i(e,t){hi.set(e,t),Ut(t,[e])}var vi=0;function yi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=vi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function bi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function xi(e,t){return e=bi(e),t=bi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var R=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},z=[],Si=0,Ci=0;function wi(){for(var e=Si,t=Ci=Si=0;t<e;){var n=z[t];z[t++]=null;var r=z[t];z[t++]=null;var i=z[t];z[t++]=null;var a=z[t];if(z[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Oi(n,i,a)}}function Ti(e,t,n,r){z[Si++]=e,z[Si++]=t,z[Si++]=n,z[Si++]=r,Ci|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ei(e,t,n,r){return Ti(e,t,n,r),ki(e)}function Di(e,t){return Ti(e,null,null,t),ki(e)}function Oi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-tt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ki(e){if(50<Nd)throw Nd=0,Pd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ai={};function ji(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(e,t,n,r){return new ji(e,t,n,r)}function Ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pi(e,t){var n=e.alternate;return n===null?(n=Mi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ii(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ni(r)&&(s=1);else if(typeof r==`string`)s=$m(e,n,Te.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case le:return e=Mi(31,n,t,a),e.elementType=le,e.lanes=o,e;case O:return Li(n.children,a,o,t);case re:s=8,a|=24;break;case k:return e=Mi(12,n,t,a|2),e.elementType=k,e.lanes=o,e;case ae:return e=Mi(13,n,t,a),e.elementType=ae,e.lanes=o,e;case oe:return e=Mi(19,n,t,a),e.elementType=oe,e.lanes=o,e;case ue:case fe:return e=a|32,e=Mi(30,n,t,e),e.elementType=fe,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case j:s=10;break a;case A:s=9;break a;case ie:s=11;break a;case se:s=14;break a;case ce:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Li(e,t,n,r){return e=Mi(7,e,r,t),e.lanes=n,e}function Ri(e,t,n){return e=Mi(6,e,null,t),e.lanes=n,e}function zi(e){var t=Mi(18,null,null,0);return t.stateNode=e,t}function Bi(e,t,n){return t=Mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vi=new WeakMap;function Hi(e,t){if(typeof e==`object`&&e){var n=Vi.get(e);return n===void 0?(t={value:e,source:t,stack:Le(t)},Vi.set(e,t),t):n}return{value:e,source:t,stack:Le(t)}}var Ui=[],Wi=0,Gi=null,Ki=0,qi=[],Ji=0,Yi=null,Xi=1,Zi=``;function Qi(e,t){Ui[Wi++]=Ki,Ui[Wi++]=Gi,Gi=e,Ki=t}function $i(e,t,n){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Yi=e;var r=Xi;e=Zi;var i=32-tt(r)-1;r&=~(1<<i),n+=1;var a=32-tt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-tt(t)+i|n<<i|r,Zi=a+e}else Xi=1<<a|n<<i|r,Zi=e}function ea(e){e.return!==null&&(Qi(e,1),$i(e,1,0))}function ta(e){for(;e===Gi;)Gi=Ui[--Wi],Ui[Wi]=null,Ki=Ui[--Wi],Ui[Wi]=null;for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Zi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null}function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Xi=t.id,Zi=t.overflow,Yi=e}var ra=null,ia=null,B=!1,aa=null,oa=!1,sa=Error(i(519));function ca(e){throw ma(Hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),sa}function la(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Tt]=e,t[Et]=r,n){case`dialog`:q(`cancel`,t),q(`close`,t);break;case`iframe`:case`object`:case`embed`:q(`load`,t);break;case`video`:case`audio`:for(n=0;n<Wf.length;n++)q(Wf[n],t);break;case`source`:q(`error`,t);break;case`img`:case`image`:case`link`:q(`error`,t),q(`load`,t);break;case`details`:q(`toggle`,t);break;case`input`:q(`invalid`,t),ln(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:q(`invalid`,t);break;case`textarea`:q(`invalid`,t),pn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ap(t.textContent,n)?(r.popover!=null&&(q(`beforetoggle`,t),q(`toggle`,t)),r.onScroll!=null&&q(`scroll`,t),r.onScrollEnd!=null&&q(`scrollend`,t),r.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||ca(e,!0)}function ua(e){for(ra=e.return;ra;)switch(ra.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:ra=ra.return}}function da(e){if(e!==ra)return!1;if(!B)return ua(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||yp(e.type,e.memoizedProps)),n=!n),n&&ia&&ca(e),ua(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=_m(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=_m(e)}else t===27?(t=ia,Op(e.type)?(e=gm,gm=null,ia=e):ia=t):ia=ra?hm(e.stateNode.nextSibling):null;return!0}function fa(){ia=ra=null,B=!1}function pa(){var e=aa;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),aa=null),e}function ma(e){aa===null?aa=[e]:aa.push(e)}var ha=Se(null),ga=null,_a=null;function va(e,t,n){we(ha,t._currentValue),t._currentValue=n}function ya(e){e._currentValue=ha.current,Ce(ha)}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function xa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ba(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ba(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ba(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Sa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Wr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Oe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ph]:e.push(ph))}a=a.return}return e!==null&&xa(t,e,n,r),t.flags|=262144,e!==null}function Ca(e){for(e=e.firstContext;e!==null;){if(!Wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){ga=e,_a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ta(e){return Da(ga,e)}function Ea(e,t){return ga===null&&wa(e),Da(e,t)}function Da(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_a===null){if(e===null)throw Error(i(308));_a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _a=_a.next=t;return n}var Oa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ka=t.unstable_scheduleCallback,Aa=t.unstable_NormalPriority,ja={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ma(){return{controller:new Oa,data:new Map,refCount:0}}function Na(e){e.refCount--,e.refCount===0&&ka(Aa,function(){e.controller.abort()})}function Pa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Fa=null;function Ia(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var La=null,Ra=0,za=0,Ba=null;function Va(e,t){if(La===null){var n=La=[];Ra=0,za=zf(),Ba={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ra++,t.then(Ha,Ha),t}function Ha(){if(--Ra===0&&(Fa=null,La!==null)){Ba!==null&&(Ba.status=`fulfilled`);var e=La;La=null,za=0,Ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Wa=M.S;M.S=function(e,t){if(yd=Ue(),typeof t==`object`&&t&&typeof t.then==`function`&&Va(e,t),Fa!==null)for(var n=Tf;n!==null;)Pa(n,Fa),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)Pa(r,n),r=r.next;if(za!==0){r=Fa,r===null&&(r=Fa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Wa!==null&&Wa(e,t)};var Ga=Se(null);function Ka(){var e=Ga.current;return e===null?nd.pooledCache:e}function qa(e,t){t===null?we(Ga,Ga.current):we(Ga,t.pool)}function Ja(){var e=Ka();return e===null?null:{parent:ja._currentValue,pool:e}}var Ya=Error(i(460)),Xa=Error(i(474)),Za=Error(i(542)),V={then:function(){}};function Qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function $a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sn,Sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(Sn,Sn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e}throw eo=t,Ya}}function H(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,Ya):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===Ya||e===Za)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),$a(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function co(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Pi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ri(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ce&&H(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Ii(n.type,n.key,n.props,null,e.mode,r),oo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Ii(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case ne:return t=Bi(t,e.mode,n),t.return=e,t;case ce:return t=H(t),f(e,t,n)}if(ve(t)||he(t))return t=Li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===j)return f(e,Ea(e,t),n);so(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case ne:return n.key===i?u(e,t,n,r):null;case ce:return n=H(n),p(e,t,n,r)}if(ve(n)||he(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===j)return p(e,t,Ea(e,n),r);so(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case ne:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ce:return r=H(r),m(e,t,n,r,i)}if(ve(r)||he(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===j)return m(e,t,n,Ea(t,r),i);so(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Qi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Qi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Qi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Qi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Qi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Qi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ce&&H(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Li(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Ii(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case ne:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Bi(o,e.mode,c),c.return=e,e=c}return s(e);case ce:return o=H(o),_(e,r,o,c)}if(ve(o))return h(e,r,o,c);if(he(o)){if(l=he(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ao(o),c);if(o.$$typeof===j)return _(e,r,Ea(e,o),c);so(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ki(e),Oi(e,null,n),t}return Ti(e,r,t,n),ki(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vt(e,n)}}function vo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yo=!1;function bo(){if(yo){var e=Ba;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(K&f)===f:(r&f)===f){f!==0&&f===za&&(yo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:fo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=Se(null),To=Se(0);function Eo(e,t){e=cd,we(To,e),we(wo,t),cd=e|t.baseLanes}function Do(){we(To,cd),we(wo,wo.current)}function Oo(){cd=To.current,Ce(wo),Ce(To)}var ko=Se(null),Ao=null;function jo(e){var t=e.alternate;we(Io,Io.current&1),we(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){we(Io,Io.current),we(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(we(Io,Io.current),we(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){we(Io,Io.current),we(ko,ko.current)}function Fo(e){Ce(ko),Ao===e&&(Ao=null),Ce(Io)}var Io=Se(0);function Lo(e,t){we(ko,ko.current),we(Io,t)}function Ro(e){Ce(Io),Ce(ko),Ao===e&&(Ao=null)}function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fm(n)||pm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,U=null,Vo=null,Ho=null,Uo=!1,Wo=!1,Go=!1,Ko=0,qo=0,Jo=null,Yo=0;function Xo(){throw Error(i(321))}function Zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function Qo(e,t,n,r,i,a){return Bo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?mc:hc,Go=!1,a=n(r,i),Go=!1,Wo&&(a=es(t,n,r,i)),$o(e),a}function $o(e){M.H=pc;var t=Vo!==null&&Vo.next!==null;if(Bo=0,Ho=Vo=U=null,Uo=!1,qo=0,Jo=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&Ca(e)&&(Mc=!0))}function es(e,t,n,r){U=e;var a=0;do{if(Wo&&(Jo=null),qo=0,Wo=!1,25<=a)throw Error(i(301));if(a+=1,Ho=Vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=gc,o=t(n,r)}while(Wo);return o}function ts(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?cs(t):t,e=e.useState()[0],(Vo===null?null:Vo.memoizedState)!==e&&(U.flags|=1024),t}function ns(){var e=Ko!==0;return Ko=0,e}function rs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function is(e){if(Uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Uo=!1}Bo=0,Ho=Vo=U=null,Wo=!1,qo=Ko=0,Jo=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function os(){if(Vo===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=Vo.next;var t=Ho===null?U.memoizedState:Ho.next;if(t!==null)Ho=t,Vo=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));Vo=e,e={memoizedState:Vo.memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=qo;return qo+=1,Jo===null&&(Jo=[]),e=$a(Jo,e,t),t=U,(Ho===null?t.memoizedState:Ho.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?mc:hc),e}function ls(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return cs(e);if(e.$$typeof===pe)return;if(e.$$typeof===j)return Ta(e)}throw Error(i(438,String(e)))}function us(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ss(),U.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=de;return t.index++,n}function ds(e,t){return typeof t==`function`?t(e):t}function fs(e){return ps(os(),Vo,e)}function ps(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Bo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===za&&(d=!0);else if((Bo&p)===p){u=u.next,p===za&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,U.lanes|=p,ud|=p;f=u.action,Go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,U.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Wr(o,e.memoizedState)&&(Mc=!0,d&&(n=Ba,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ms(e){var t=os(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Wr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hs(e,t,n){var r=U,a=os(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Wr((Vo||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(vs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ho!==null&&!!(Ho.memoizedState.tag&1),Fs(e?9:8,{destroy:void 0},_s.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Bo&127||gs(r,t,n)}return n}function gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=ss(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _s(e,t,n,r){t.value=n,t.getSnapshot=r,ys(t)&&bs(e)}function vs(e,t,n){return n(function(){ys(t)&&bs(e)})}function ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wr(e,n)}catch{return!0}}function bs(e){var t=Di(e,2);t!==null&&Rd(t,e,2)}function xs(e){var t=as();if(typeof e==`function`){var n=e;if(e=n(),Go){et(!0);try{n()}finally{et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ps(e,Vo,typeof r==`function`?r:ds)}function Cs(e,t,n,r,a){if(uc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ws(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ws(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};o.types=a===null?null:a.types,M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ws(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(B){var n=nd.formState;if(n!==null){a:{var r=U;if(B){if(ia){b:{for(var i=ia,a=oa;i.nodeType!==8;)if(!a||(i=hm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ia=hm(i.nextSibling),r=i.data===`F!`;break a}}ca(r)}r=!1}r&&(t=n[0])}}return n=as(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=sc.bind(null,U,r),r.dispatch=n,r=xs(!1),a=lc.bind(null,U,!1,r.queue),r=as(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Cs.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(os(),Vo,e)}function Ms(e,t,n){if(t=ps(e,t,ks)[0],e=fs(ds)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=cs(t)}catch(e){throw e===Ya?Za:e}else r=t;t=os();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,Fs(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=os(),n=Vo;if(n!==null)return Ms(t,n,e);os(),t=t.memoizedState,n=os();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=ss(),U.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Is(){return os().memoizedState}function W(e,t,n,r){var i=as();U.flags|=e,i.memoizedState=Fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=os();r=r===void 0?null:r;var a=i.memoizedState.inst;Vo!==null&&r!==null&&Zo(r,Vo.memoizedState.deps)?i.memoizedState=Fs(t,a,n,r):(U.flags|=e,i.memoizedState=Fs(1|t,a,n,r))}function Rs(e,t){W(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=ss(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=os().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Zo(t,r[1]))return r[0];if(r=e(),Go){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Bo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),U.lanes|=e,ud|=e,n)}function Xs(e,t,n,r){return Wr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(K&261930)?(Mc=!0,e.memoizedState=n):(e=Id(),U.lanes|=e,ud|=e,t):(e=Ys(e,n,r),Wr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};s.types=o===null?null:o.types,M.T=s,lc(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Ua(c,r),Fd(e)):cc(e,t,r,Fd(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,ye,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:ye},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Fd())}function nc(){return Ta(ph)}function rc(){return os().memoizedState}function ic(){return os().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=ho(n);var r=go(t,e,n);r!==null&&(Rd(r,t,n),_o(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=Ei(e,t,n,r),n!==null&&(Rd(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Fd())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o))return Ti(e,t,i,0),nd===null&&wi(),!1}catch{}if(n=Ei(e,t,i,r),n!==null)return Rd(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=Ei(e,n,r,2),t!==null&&Rd(t,e,2)}function uc(e){var t=e.alternate;return e===U||t!==null&&t===U}function dc(e,t){Wo=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vt(e,n)}}var pc={readContext:Ta,use:ls,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo,useEffectEvent:Xo},mc={readContext:Ta,use:ls,useCallback:function(e,t){return as().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),W(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return W(4194308,4,e,t)},useInsertionEffect:function(e,t){W(4,2,e,t)},useMemo:function(e,t){var n=as();t=t===void 0?null:t;var r=e();if(Go){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(n!==void 0){var i=n(t);if(Go){et(!0);try{n(t)}finally{et(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=as();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=sc.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(as(),e,t)},useTransition:function(){var e=xs(!1);return e=Zs.bind(null,U,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=as();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));K&127||gs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=as(),t=nd.identifierPrefix;if(B){var n=Zi,r=Xi;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ko++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:us,useCacheRefresh:function(){return as().memoizedState=ac.bind(null,U)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:Ta,use:ls,useCallback:qs,useContext:Ta,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:fs,useRef:Is,useState:function(){return fs(ds)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(os(),Vo.memoizedState,e,t)},useTransition:function(){var e=fs(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:rc,useHostTransitionStatus:nc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Ss(os(),Vo,e,t)},useMemoCache:us,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:Ta,use:ls,useCallback:qs,useContext:Ta,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ms,useRef:Is,useState:function(){return ms(ds)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=os();return Vo===null?Ys(n,e,t):Xs(n,Vo.memoizedState,e,t)},useTransition:function(){var e=ms(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:rc,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=os();return Vo===null?(n.baseState=e,[e,n.queue.dispatch]):Ss(n,Vo,e,t)},useMemoCache:us,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Rd(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Rd(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Rd(t,e,n),_o(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){R(e)}function Cc(e){console.error(e)}function wc(e){R(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=ho(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Sa(t,n,a,!0),n=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===V?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===V?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Xd(),!1}if(B)return t=ko.current,t===null?(r!==sa&&(t=Error(i(423),{cause:r}),ma(Hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Hi(r,n),a=Dc(e.stateNode,r,a),vo(e,a),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==sa&&(e=Error(i(422),{cause:r}),ma(Hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Hi(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),vo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Pc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return wa(t),r=Qo(e,t,n,o,a,i),s=ns(),e!==null&&!Mc?(rs(e,t,i),cl(e,t,i)):(B&&s&&ea(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ni(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Gr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Gr(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qa(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&qa(t,null),Do(),Po()):(qa(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Ka();return a=a===null?null:{parent:ja._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&qa(t,null),Do(),No(t),e!==null&&Sa(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return lo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(Mo(t),(e=ia)?(e=dm(e,oa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||Sa(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(wo.current===null){if(r=nd,r!==null&&(s=yt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Di(e,s),Rd(r,e,s),jc;Xd()}t=Vc(e,t,n)}else e=o.treeContext,ia=hm(s.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=Pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return wa(t),n=Qo(e,t,n,r,void 0,i),r=ns(),e!==null&&!Mc?(rs(e,t,i),cl(e,t,i)):(B&&r&&ea(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return wa(t),t.updateQueue=null,n=es(t,r,n,i),$o(e),r=ns(),e!==null&&!Mc?(rs(e,t,a),cl(e,t,a)):(B&&r&&ea(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(wa(t),t.stateNode===null){var a=Ai,o=n.contextType;typeof o==`object`&&o&&(a=Ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ta(o):Ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ai,typeof u==`object`&&u&&(o=Ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=fo||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ai,typeof l==`object`&&l&&(c=Ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&Ca(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=fo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ca(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Uc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return fa(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ja()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(B){if(i?jo(t):Po(),(e=ia)?(e=dm(e,oa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=pm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Li(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(jo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Pi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Li(i,a,n,null),i.flags|=2):i=Pi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ja():(s=ja._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=Pi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Mi(22,e,null,t),e.lanes=0,e}function el(e,t,n){return lo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=Li(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(t),pm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ma({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||Sa(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(wo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=yt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Di(e,a),Rd(r,e,a),jc;return fm(o)||Xd(),el(e,t,c)}return fm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ia=hm(o.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ba(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function il(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function al(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=B?Ki:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return va(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Sa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ca(e)))}function ul(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),va(t,ja,e.memoizedState.cache),fa();break;case 27:case 5:je(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=Sa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(jo(t),e=cl(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Sa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:va(t,ja,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,B&&t.flags&1048576&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=H(t.elementType),t.type=e,typeof e==`function`)Ni(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ie){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===se){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===j){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=_e(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,va(t,ja,r),r!==o.cache&&xa(t,[ja],n,!0),bo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qc(e,t,r,n);break a}if(r!==a){a=Hi(Error(i(424)),t),ma(a),t=qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ia=hm(e.firstChild),ra=t,B=!0,aa=null,oa=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(fa(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=zm(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(t.stateNode=vp(t.type,t.pendingProps,De.current,t)):t.memoizedState=zm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&B&&(r=t.stateNode=xm(t.type,t.pendingProps,De.current),ra=t,oa=!0,a=ia,Op(t.type)?(gm=a,ia=hm(r.firstChild)):ia=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=ia)&&(r=lm(r,t.type,t.pendingProps,oa),r===null?a=!1:(t.stateNode=r,ra=t,ia=hm(r.firstChild),oa=!1,a=!0)),a||ca(t)),je(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,yp(a,o)?r=null:s!==null&&yp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Qo(e,t,ts,null,null,n),ph._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=ia)&&(n=um(n,t.pendingProps,oa),n===null?e=!1:(t.stateNode=n,ra=t,ia=null,e=!0)),e||ca(t)),null;case 13:return Zc(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,wa(t),a=Ta(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return wa(t),r=Ta(ja),e===null?(a=Ka(),a===null&&(a=nd,o=Ma(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),va(t,ja,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,va(t,ja,r),r!==a.cache&&xa(t,[ja],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),va(t,ja,r))),Nc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:B&&ea(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?eh(t,r):eh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw eo=V,Xa}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!th(t)){if(qd())e.flags|=8192;else throw eo=V,Xa}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:pt(),e.lanes|=t,md|=t)}function gl(e,t){if(!B)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ya(ja),Ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(da(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pa())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(P(t),n=De.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=Te.current,da(t)?la(t,e):(e=xm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(P(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=Te.current,da(t))la(t,o);else{var s=hp(De.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Tt]=t,o[Et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(cp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=De.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ra,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ap(e.nodeValue,n)),e||ca(t,!0)}else e=hp(e).createTextNode(r),e[Tt]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Tt]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=da(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Tt]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return Ae(),e===null&&Yf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ya(t.type),_l(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fi(n,e),n=n.sibling;return Lo(t,Io.current&1|2),B&&Qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ue()>bd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!B)return _l(t),null}else 2*Ue()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ue(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||B?Lo(t,o):(n=o,we(ko,t),we(Io,n),Ao===null&&(Ao=t)),B&&Qi(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Ce(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(ta(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Ae(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return P(t),null;case 31:if(t.memoizedState!==null){if(Fo(t),t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ae(),null;case 10:return ya(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&Ce(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function bl(e,t){switch(ta(t),t.tag){case 3:ya(ja),Ae();break;case 26:case 27:case 5:P(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:ya(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&Ce(Ga);break;case 24:ya(ja)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){vf(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=yi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Bp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Vp(e);m(e.child,!1,im,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)om(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&om(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&sm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;up(r,e.type,n,t),r[Et]=t}catch(t){vf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Op(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Op(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sn)),Dl(e,r),Yt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Op(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),Yt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Op(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);cp(t,r,n),t[Tt]=e,t[Et]=n}catch(t){vf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Pp(o);r.push(s),s.view&&(a=!0)}else a||Pp(o).view&&(a=!0);zl=!0,jp(o,Wl===0?t:t+`_`+Wl,n),Wl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Mp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||ql(e.child,t),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=xi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=yi(r,n),a=xi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||Ld(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=xi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=yi(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=xi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),Ld(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=yi(t,e.stateNode);t=xi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Pp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&jp(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=yi(n,r),a=xi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Fp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,pp=Sh,e=Yr(e),Xr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(mp={focusedElem:e,selectionRange:r},Sh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)cm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:cm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=yi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=xi(a.default,a.update),a!==`none`&&Gl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Co(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),mm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Yt=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ap(s,!0):Ap(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if($e&&typeof $e.onCommitFiberUnmount==`function`)try{$e.onCommitFiberUnmount(Qe,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Op(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),Sm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),Yt=!0}catch(e){vf(n,t,e)}else try{xu.removeChild(n.stateNode),Yt=!0}catch(e){vf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,kp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Jh(e)):kp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jh(e)}catch(e){vf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jh(e)}catch(e){vf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Op(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=vp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Mt]||r[Tt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),cp(r,t,n),r[Tt]=e,zt(r),t=r;break a;case`link`:if(o=Zm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Zm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[Tt]=e,zt(r),t=r}e.stateNode=t}}else iu||Qm(o,e.type,e.stateNode)}else e.stateNode=Km(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||Qm(o,e.type,e.stateNode):Km(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{mn(t,``),Yt=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Yt=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Yt=!1,Xm=null,o=Au,Au=Em(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(t.containerInfo)}catch(t){vf(e,e.return,t)}su&&(su=!1,Nu(e)),Yt=!1;break;case 4:a=ou,ou=iu,r=Xt(),o=Au,Au=Em(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,Yt&&du&&(fu=!0),Yt=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=Ue()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Xt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&xi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&Yt&&(e.flags|=4),du=o,Yt=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(mn(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Sh=!0,t.reset(),Sh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Mp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=yi(a,o),o=yi(n.memoizedProps,o);var s=xi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&Sm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)So(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||Qm(Em(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Na(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Na(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Na(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&rh(n,e)):ih(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&rh(n,e));break;case 3:case 4:var r=Au;Au=Em(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=Ta(ja),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ta(ja).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,G=null,K=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return td&2&&K!==0?K&-K:M.T===null?St():zf()}function Id(){if(pd===0){if(!(K&536870912)||B){var e=ot;ot<<=1,!(ot&3932160)&&(ot=262144),pd=e}else pd=536870912}return e=ko.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Bp(yi(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===nd&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,K,pd,!1)),ht(e,n),td&2&&e===nd||(e===nd&&(!(td&2)&&(dd|=n),ld===4&&Hd(e,K,pd,!1)),jf(e))}function zd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ut(e,t),a=r?$d(e,t):Zd(e,t,!0),o=r;do{if(a===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n))a=Zd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,a=4;break a}o=gd,gd=a,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=vd+300-Ue(),10<a)){if(Hd(r,t,pd,!ad),lt(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=Sp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),a);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}}while(1);jf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Bl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ch.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-Ue():(a&4194048)===a?yd-Ue():0,m=oh(d,m),m!==null)?(Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l)):sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=dt(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-tt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&_t(e,n,t)}function Ud(){return td&6?!0:(Mf(0,!1),!1)}function Wd(){if(G!==null){if(rd===0)var e=G.return;else e=G,_a=ga=null,is(e),ro=null,io=0,e=G;for(;e!==null;)bl(e.alternate,e),e=e.return;G=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Cp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),nd=e,G=n=Pi(e.current,null),K=t,rd=0,id=null,ad=!1,od=ut(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=dt(e,t),wi(),n}function Kd(e,t){U=null,M.H=pc,t===Ya||t===Za?(t=to(),rd=3):t===Xa?(t=to(),rd=4):rd=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,G===null&&(ld=1,Tc(e,Hi(t,e.current)))}function qd(){var e=ko.current;return e===null?!0:(K&4194048)===K?Ao===null:(K&62914560)===K||K&536870912?e===Ao:!1}function Jd(){var e=M.H;return M.H=pc,e===null?pc:e}function Yd(){var e=M.A;return M.A=$u,e}function Xd(){ld=4,ad||(K&4194048)!==K&&ko.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||nd===null||Hd(nd,K,pd,!1)}function Zd(e,t,n){var r=td;td|=2;var i=Jd(),a=Yd();(nd!==e||K!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&G!==null){var s=G,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,_a=ga=null,td=r,M.H=i,M.A=a,G===null&&(nd=null,K=0,wi()),o}function Qd(){for(;G!==null;)tf(G)}function $d(e,t){var n=td;td|=2;var r=Jd(),a=Yd();nd!==e||K!==t?(xd=null,bd=Ue()+500,Gd(e,t)):od=ut(e,t);a:do try{if(rd!==0&&G!==null){t=G;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(Qa(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||nd!==e||(rd=7),jf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Qa(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?th(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(i(462))}}ef();break}catch(t){Kd(e,t)}while(1);return _a=ga=null,M.H=r,M.A=a,td=n,G===null?(nd=null,K=0,wi(),ld):0}function ef(){for(;G!==null&&!Ve();)tf(G)}function tf(e){var t=dl(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):G=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:is(t);var r=t;r===ra&&(B?(ua(r),r.tag===5&&r.stateNode!=null&&(ia=r.stateNode)):(ua(r),B=!0));default:bl(n,t),t=G=Fi(t,cd),t=dl(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):G=t}function rf(e,t,n,r){_a=ga=null,is(t),ro=null,io=0;var i=t.return;try{if(Ac(e,i,t,n,K)){ld=1,Tc(e,Hi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;ld=1,Tc(e,Hi(n,e.current)),G=null;return}t.flags&32768?(B||r===1?e=!0:od||K&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=vl(t.alternate,t,cd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ld=6,G=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(G=nd=null,K=0),Td=t,wd=e,Ed=n,Od=a,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=Ci,gt(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=Ia(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(qe,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=M.T,M.T=null,i=N.p,N.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,N.p=i,M.T=r}}Cd=1,zl?Ad=Rp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Fu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=M.T,M.T=null;var i=N.p;N.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=mp;var o=Yr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&L(s.ownerDocument.documentElement,s)){if(c!==null&&Xr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Jr(s,h),v=Jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Sh=!!pp,mp=pp=null}finally{td=a,N.p=i,M.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,N.p=r,M.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,He();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),xt(r),n=n.stateNode,$e&&typeof $e.onCommitFiberRoot==`function`)try{$e.onCommitFiberRoot(Qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=M.T,a=N.p,N.p=2,M.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{M.T=n,N.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Na(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=xt(Ed),r=M.T,a=N.p;try{N.p=32>n?32:n,M.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Mf(0,!1),$e&&typeof $e.onPostCommitFiberRoot==`function`)try{$e.onPostCommitFiberRoot(Qe,o)}catch{}return!0}finally{N.p=a,M.T=r,mf(e,t)}}function _f(e,t,n){t=Hi(n,t),t=Dc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(ht(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Hi(n,e),n=Oc(2),r=go(t,n,2),r!==null&&(kc(n,r,t,e),ht(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(K&n)===n&&(ld===4||ld===3&&(K&62914560)===K&&300>Ue()-vd?td&2?fd|=n:Gd(e,0):fd|=n,md===K&&(md=0)),jf(e)}function xf(e,t){t===0&&(t=pt()),e=Di(e,t),e!==null&&(ht(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return ze(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-tt(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=K,a=lt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ut(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&xp()&&(e=Af);for(var t=Ue(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}Cd!==0&&Cd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-tt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ft(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=K,n=lt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ut(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Be(r),xt(n)){case 2:case 8:n=Ke;break;case 32:n=qe;break;case 268435456:n=Ye;break;default:n=qe}return r=If.bind(null,e),n=ze(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Be(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=K;return r=lt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Ff(e,Ue()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;zd(e,t,!0)}function Rf(){Ep(function(){td&6?ze(Ge,Nf):Pf()})}function zf(){if(Af===0){var e=za;e===0&&(e=at,at<<=1,!(at&261888)&&(at=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:xn(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[Et]||null).action),o=r.submitter;o&&(t=(t=o[Et]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Un(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Hf=0;Hf<gi.length;Hf++){var Uf=gi[Hf];_i(Uf.toLowerCase(),`on`+(Uf[0].toUpperCase()+Uf.slice(1)))}_i(ci,`onAnimationEnd`),_i(li,`onAnimationIteration`),_i(ui,`onAnimationStart`),_i(`dblclick`,`onDoubleClick`),_i(`focusin`,`onFocus`),_i(`focusout`,`onBlur`),_i(di,`onTransitionRun`),_i(fi,`onTransitionStart`),_i(pi,`onTransitionCancel`),_i(mi,`onTransitionEnd`),Wt(`onMouseEnter`,[`mouseout`,`mouseover`]),Wt(`onMouseLeave`,[`mouseout`,`mouseover`]),Wt(`onPointerEnter`,[`pointerout`,`pointerover`]),Wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ut(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ut(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ut(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ut(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ut(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ut(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Wf=`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(` `),Gf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Wf));function Kf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){R(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){R(e)}i.currentTarget=null,a=c}}}}function q(e,t){var n=t[Ot];n===void 0&&(n=t[Ot]=new Set);var r=e+`__bubble`;n.has(r)||(Xf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),Xf(n,e,r,t)}var Jf=`_reactListening`+Math.random().toString(36).slice(2);function Yf(e){if(!e[Jf]){e[Jf]=!0,Vt.forEach(function(t){t!==`selectionchange`&&(Gf.has(t)||qf(t,!1,e),qf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jf]||(t[Jf]=!0,qf(`selectionchange`,!1,t))}}function Xf(e,t,n,r){switch(kh(t)){case 2:var i=Ch;break;case 8:i=wh;break;default:i=Th}n=i.bind(null,t,n,e),i=void 0,!Mn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Zf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Ft(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}kn(function(){var r=a,i=wn(n),s=[];a:{var c=hi.get(e);if(c!==void 0){var l=Un,u=e;switch(e){case`keypress`:if(Rn(n)===0)break a;case`keydown`:case`keyup`:l=sr;break;case`focusin`:u=`focus`,l=Qn;break;case`focusout`:u=`blur`,l=Qn;break;case`beforeblur`:case`afterblur`:l=Qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Xn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ur;break;case ci:case li:case ui:l=$n;break;case mi:l=dr;break;case`scroll`:case`scrollend`:l=Gn;break;case`wheel`:l=fr;break;case`copy`:case`cut`:case`paste`:l=er;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=cr;break;case`submit`:l=lr;break;case`toggle`:case`beforetoggle`:l=pr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=An(m,p),g!=null&&d.push(Qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Cn&&(u=n.relatedTarget||n.fromElement)&&(Ft(u)||u[Dt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ft(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Xn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=cr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Lt(c),h=l==null?u:Lt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Ft(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,ep):null,c!==null&&tp(s,u,c,d,!1),l!==null&&f!==null&&tp(s,f,l,d,!0)))}a:{if(c=r?Lt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Mr;else if(Er(c)){if(Nr)_=Hr;else{_=Br;var v=zr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&vn(r.elementType)&&(_=Mr):_=Vr;if(_&&=_(e,r)){Dr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Lt(r):window,e){case`focusin`:(Er(v)||v.contentEditable===`true`)&&(Qr=v,$r=r,ei=null);break;case`focusout`:ei=$r=Qr=null;break;case`mousedown`:ti=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ti=!1,ni(s,n,i);break;case`selectionchange`:if(Zr)break;case`keydown`:case`keyup`:ni(s,n,i)}var y;if(hr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Sr?I(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(vr&&n.locale!==`ko`&&(Sr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Sr&&(y=Ln()):(Pn=i,Fn=`value`in Pn?Pn.value:Pn.textContent,Sr=!0)),v=$f(r,b),0<v.length&&(b=new tr(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=xr(n),y!==null&&(b.data=y)))),(y=_r?Cr(e,n):wr(e,n))&&(b=$f(r,`onBeforeInput`),0<b.length&&(v=new tr(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Kf(s,t)})}function Qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=An(e,n),i!=null&&r.unshift(Qf(e,i,a)),i=An(e,t),i!=null&&r.push(Qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ep(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=An(n,a),l!=null&&o.unshift(Qf(n,l,c))):i||(l=An(n,a),l!=null&&o.push(Qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var np=/\r\n?/g,rp=/\u0000|\uFFFD/g;function ip(e){return(typeof e==`string`?e:``+e).replace(np,`
|
|
9
|
-
`).replace(rp,``)}function ap(e,t){return t=ip(t),ip(e)===t}function op(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&mn(e,``+r);else return;break;case`className`:Qt(e,`class`,r);break;case`tabIndex`:Qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Qt(e,n,r);break;case`style`:_n(e,r,o);return;case`data`:if(t!==`object`){Qt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=xn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&op(e,t,`name`,a.name,a,null),op(e,t,`formEncType`,a.formEncType,a,null),op(e,t,`formMethod`,a.formMethod,a,null),op(e,t,`formTarget`,a.formTarget,a,null)):(op(e,t,`encType`,a.encType,a,null),op(e,t,`method`,a.method,a,null),op(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=xn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Sn);return;case`onScroll`:r!=null&&q(`scroll`,e);return;case`onScrollEnd`:r!=null&&q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=xn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:q(`beforetoggle`,e),q(`toggle`,e),Zt(e,`popover`,r);break;case`xlinkActuate`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Zt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=yn.get(n)||n,Zt(e,n,r);else return}Yt=!0}function sp(e,t,n,r,a,o){switch(n){case`style`:_n(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)mn(e,``+r);else return;break;case`onScroll`:r!=null&&q(`scroll`,e);return;case`onScrollEnd`:r!=null&&q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Sn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Et]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Yt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Zt(e,n,r)}return}Yt=!0}function cp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:q(`error`,e),q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,o,s,n,null)}}a&&op(e,t,`srcSet`,n.srcSet,n,null),r&&op(e,t,`src`,n.src,n,null);return;case`input`:q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:op(e,t,r,d,n,null)}}ln(e,o,c,l,u,s,a,!1);return;case`select`:for(a in q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:op(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&dn(e,!!r,n,!0):dn(e,!!r,t,!1);return;case`textarea`:for(s in q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:op(e,t,s,c,n,null)}pn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:op(e,t,l,r,n,null)}return;case`dialog`:q(`beforetoggle`,e),q(`toggle`,e),q(`cancel`,e),q(`close`,e);break;case`iframe`:case`object`:q(`load`,e);break;case`video`:case`audio`:for(r=0;r<Wf.length;r++)q(Wf[r],e);break;case`image`:q(`error`,e),q(`load`,e);break;case`details`:q(`toggle`,e);break;case`embed`:case`source`:case`link`:q(`error`,e),q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,u,r,n,null)}return;default:if(vn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&sp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&op(e,t,c,r,n,null))}var lp={};function up(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||op(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Yt=!0),o=m;break;case`name`:m!==f&&(Yt=!0),a=m;break;case`checked`:m!==f&&(Yt=!0),u=m;break;case`defaultChecked`:m!==f&&(Yt=!0),d=m;break;case`value`:m!==f&&(Yt=!0),s=m;break;case`defaultValue`:m!==f&&(Yt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&op(e,t,p,m,r,f)}}cn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||op(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Yt=!0),p=o;break;case`defaultValue`:o!==l&&(Yt=!0),c=o;break;case`multiple`:o!==l&&(Yt=!0),s=o;default:o!==l&&op(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?dn(e,!!n,n?[]:``,!1):dn(e,!!n,t,!0)):dn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:op(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Yt=!0),p=a;break;case`defaultValue`:a!==o&&(Yt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&op(e,t,s,a,r,o)}fn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:op(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Yt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:op(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&op(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:op(e,t,u,p,r,m)}return;default:if(vn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&sp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||sp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&op(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||op(e,t,f,p,r,m)}function dp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function fp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&dp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&dp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var pp=null,mp=null;function hp(e){return e.nodeType===9?e:e.ownerDocument}function gp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function _p(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function vp(e,t,n,r){return n=hp(n).createElement(e),n[Tt]=r,n[Et]=t,cp(n,e,t),zt(n),n}function yp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bp=null;function xp(){var e=window.event;return e&&e.type===`popstate`?e!==bp&&(bp=e,!0):(bp=null,!1)}var Sp=typeof setTimeout==`function`?setTimeout:void 0,Cp=typeof clearTimeout==`function`?clearTimeout:void 0,wp=typeof Promise==`function`?Promise:void 0,Tp=typeof requestAnimationFrame==`function`?requestAnimationFrame:Sp,Ep=typeof queueMicrotask==`function`?queueMicrotask:wp===void 0?Sp:function(e){return wp.resolve(null).then(e).catch(Dp)};function Dp(e){setTimeout(function(){throw e})}function Op(e){return e===`head`}function kp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Jh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cm(e.ownerDocument.body)}n=i}while(n);Jh(t)}function Ap(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function jp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Mp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Np(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Pp(e){return Np(e.getBoundingClientRect(),getComputedStyle(e),e)}function Fp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Np(t,n,e)}function Ip(e){return e.documentElement.clientHeight}function Lp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Rp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ip(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=nh(f),u>ah){s.length=o;break}f=new Promise(Lp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function zp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}zp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},zp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},zp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Bp(e){return{name:e,group:new zp(`group`,e),imagePair:new zp(`image-pair`,e),old:new zp(`old`,e),new:new zp(`new`,e)}}function Vp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Kp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Wp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Hp,e,s,r)}this._eventListeners=a}};function Hp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Vp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Kp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Wp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Up,e,n,i),r.splice(t,1),a!==null&&a()}};function Up(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Wp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Gp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Kp(e,t,n,r){if(e.length===0)return-1;r=Gp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Gp(a.optionsOrUseCapture)===r)return i}return-1}Vp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Vp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,qp,e,void 0,void 0)};function qp(e,t){return e.tag!==6&&(e=b(e),ym(e,t))}Vp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Jp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!qp(t[n],e);n--);};function Jp(e,t){return t.push(e),!1}Vp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=hp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0))};function Yp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Xp,e,void 0,void 0)};function Xp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Vp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Zp,e,void 0,void 0);for(var n=t=0;n<Qp.length;n++){var r=Qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Qp[t++]=r}Qp.length=t}};function Zp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Qp=[],$p=!1;function em(e,t,n){Qp.push({fragmentInstance:e,observer:t,instance:n}),$p||($p=!0,bm(function(){$p=!1;var e=Qp;Qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Vp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,tm,e,void 0,void 0),e};function tm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Vp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Vp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Jp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||nm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function nm(e,t,n,r,i){var a=Ft(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(m(t,!0,te,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(m(t,!0,S,a,r),a=x,ee=x=null,t=a!==null)),t):!1}function rm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Jp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),rm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),rm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function im(e,t){return e=b(e),am(e,t),!1}function am(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Qp.length;i++){var a=Qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Qp[r++]=a)}Qp.length=r,n.observe(e)}),am(e,t))}function sm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?em(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function cm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cm(n),Pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Mt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hm(e.nextSibling),e===null)break}return null}function um(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hm(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hm(e.nextSibling),e===null))return null;return e}function fm(e){return e.data===`$?`||e.data===`$~`}function pm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gm=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ym(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function bm(e){Tp(function(){Tp(function(t){return e(t)})})}function xm(e,t,n){switch(t=hp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Sm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&op(e,t,r,null,lp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Sn&&(e.onclick=null),Pt(e)}function Cm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pt(e)}var wm=new Map,Tm=new Set;function Em(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Dm=N.d;N.d={f:Om,r:km,D:Mm,C:Nm,L:Pm,m:Fm,X:Lm,S:Im,M:Rm};function Om(){var e=Dm.f(),t=Ud();return e||t}function km(e){var t=It(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):Dm.r(e)}var Am=typeof document>`u`?null:document;function jm(e,t,n){var r=Am;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tm.has(i)||(Tm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),cp(t,`link`,e),zt(t),r.head.appendChild(t)))}}function Mm(e){Dm.D(e),jm(`dns-prefetch`,e,null)}function Nm(e,t){Dm.C(e,t),jm(`preconnect`,e,t)}function Pm(e,t,n){Dm.L(e,t,n);var r=Am;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Bm(e);break;case`script`:a=Wm(e)}if(!(wm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vm(a))||t===`script`&&r.querySelector(Gm(a))))){var o=r.createElement(`link`);cp(o,`link`,e),t===`style`&&(o[Nt]=!0,o.onload=o.onerror=function(){Bt(o)}),zt(o),r.head.appendChild(o)}}}function Fm(e,t){Dm.m(e,t);var n=Am;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wm(e)}if(!wm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),wm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gm(a)))return}r=n.createElement(`link`),cp(r,`link`,e),zt(r),n.head.appendChild(r)}}}function Im(e,t,n){Dm.S(e,t,n);var r=Am;if(r&&e){var i=Rt(r).hoistableStyles,a=Bm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wm.get(a))&&Jm(e,n);var c=o=r.createElement(`link`);zt(c),cp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,qm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lm(e,t){Dm.X(e,t);var n=Am;if(n&&e){var r=Rt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=T({src:e,async:!0},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),zt(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t){Dm.M(e,t);var n=Am;if(n&&e){var r=Rt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),zt(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zm(e,t,n,r){var a=(a=De.current)?Em(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Bm(n.href),t=Rt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bm(n.href);var o=Rt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=wm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wm.set(e,o)),Um(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Wm(n),t=Rt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bm(e){return`href="`+sn(e)+`"`}function Vm(e){return`link[rel="stylesheet"][`+e+`]`}function Hm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Um(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Nt]){r.loading=1;return}}else t=e.createElement(`link`),t[Nt]=!0,t.onload=t.onerror=Bt.bind(null,t),cp(t,`link`,n),zt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Wm(e){return`[src="`+sn(e)+`"]`}function Gm(e){return`script[async]`+e}function Km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,zt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),zt(r),cp(r,`style`,a),qm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bm(n.href);var o=e.querySelector(Vm(a));if(o)return t.state.loading|=4,t.instance=o,zt(o),o;r=Hm(n),(a=wm.get(a))&&Jm(r,a),o=(e.ownerDocument||e).createElement(`link`),zt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),cp(o,`link`,r),t.state.loading|=4,qm(o,n.precedence,e),t.instance=o;case`script`:return o=Wm(n.src),(a=e.querySelector(Gm(o)))?(t.instance=a,zt(a),a):(r=n,(a=wm.get(o))&&(r=T({},n),Ym(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),zt(a),cp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qm(r,n.precedence,e));return t.instance}function qm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Ym(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Xm=null;function Zm(e,t,n){if(Xm===null){var r=new Map,i=Xm=new Map;i.set(n,r)}else i=Xm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Mt]||a[Tt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $m(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function eh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function th(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function nh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function rh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=nh(t),e.suspenseyImages.push(t)),e=lh.bind(e),t.decode().then(e,e))}function ih(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bm(r.href),a=t.querySelector(Vm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ch.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,zt(a);return}a=t.ownerDocument||t,r=Hm(r),(i=wm.get(i))&&Jm(r,i),a=a.createElement(`link`),zt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),cp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ch.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ah=0;function oh(e,t){return e.stylesheets&&e.count===0&&dh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ah===0&&(ah=62500*fp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ah?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)dh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ch(){this.count--,sh(this)}function lh(){this.imgCount--,sh(this)}var uh=null;function dh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uh=new Map,t.forEach(fh,e),uh=null,ch.call(e))}function fh(e,t){if(!(t.state.loading&4)){var n=uh.get(e);if(n)var r=n.get(null);else{n=new Map,uh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ch.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ph={$$typeof:j,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function mh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.hiddenUpdates=mt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function hh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new mh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Mi(3,null,null,t),e.current=a,a.stateNode=e,t=Ma(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function gh(e){return e?(e=Ai,e):Ai}function _h(e,t,n,r,i,a){i=gh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Rd(n,e,t),_o(n,e,t))}function vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yh(e,t){vh(e,t),(e=e.alternate)&&vh(e,t)}function bh(e){if(e.tag===13||e.tag===31){var t=Di(e,67108864);t!==null&&Rd(t,e,67108864),yh(e,67108864)}}function xh(e){if(e.tag===13||e.tag===31){var t=Fd();t=bt(t);var n=Di(e,t);n!==null&&Rd(n,e,t),yh(e,t)}}var Sh=!0;function Ch(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,Th(e,t,n,r)}finally{N.p=a,M.T=i}}function wh(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,Th(e,t,n,r)}finally{N.p=a,M.T=i}}function Th(e,t,n,r){if(Sh){var i=Eh(r);if(i===null)Zf(e,t,r,Dh,n),Rh(e,r);else if(Bh(i,e,t,n,r))r.stopPropagation();else if(Rh(e,r),t&4&&-1<Lh.indexOf(e)){for(;i!==null;){var a=It(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ct(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-tt(o);s.entanglements[1]|=c,o&=~c}jf(a),!(td&6)&&(bd=Ue()+500,Mf(0,!1))}}break;case 31:case 13:s=Di(a,2),s!==null&&Rd(s,a,2),Ud(),yh(a,2)}if(a=Eh(r),a===null&&Zf(e,t,r,Dh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Zf(e,t,r,null,n)}}function Eh(e){return e=wn(e),Oh(e)}var Dh=null;function Oh(e){if(Dh=null,e=Ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dh=e,null}function kh(e){switch(e){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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(We()){case Ge:return 2;case Ke:return 8;case qe:case Je:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var Ah=!1,jh=null,Mh=null,Nh=null,Ph=new Map,Fh=new Map,Ih=[],Lh=`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 Rh(e,t){switch(e){case`focusin`:case`focusout`:jh=null;break;case`dragenter`:case`dragleave`:Mh=null;break;case`mouseover`:case`mouseout`:Nh=null;break;case`pointerover`:case`pointerout`:Ph.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Fh.delete(t.pointerId)}}function zh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=It(t),t!==null&&bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bh(e,t,n,r,i){switch(t){case`focusin`:return jh=zh(jh,e,t,n,r,i),!0;case`dragenter`:return Mh=zh(Mh,e,t,n,r,i),!0;case`mouseover`:return Nh=zh(Nh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ph.set(a,zh(Ph.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Fh.set(a,zh(Fh.get(a)||null,e,t,n,r,i)),!0}return!1}function Vh(e){var t=Ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ct(e.priority,function(){xh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ct(e.priority,function(){xh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cn=r,n.target.dispatchEvent(r),Cn=null}else return t=It(n),t!==null&&bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){Hh(e)&&n.delete(t)}function Wh(){Ah=!1,jh!==null&&Hh(jh)&&(jh=null),Mh!==null&&Hh(Mh)&&(Mh=null),Nh!==null&&Hh(Nh)&&(Nh=null),Ph.forEach(Uh),Fh.forEach(Uh)}function Gh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ah||(Ah=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wh)))}var Kh=null;function qh(e){Kh!==e&&(Kh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Kh===e&&(Kh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Oh(r||n)===null)continue;break}var a=It(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Jh(e){function t(t){return Gh(t,e)}jh!==null&&Gh(jh,e),Mh!==null&&Gh(Mh,e),Nh!==null&&Gh(Nh,e),Ph.forEach(t),Fh.forEach(t);for(var n=0;n<Ih.length;n++){var r=Ih[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ih.length&&(n=Ih[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&Ih.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Et]||null;if(typeof a==`function`)o||qh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Et]||null)s=o.formAction;else if(Oh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),qh(n)}}}function Yh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Xh(e){this._internalRoot=e}Zh.prototype.render=Xh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;_h(n,Fd(),e,t,null,null)},Zh.prototype.unmount=Xh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_h(e.current,2,null,e,null,null),Ud(),t[Dt]=null}};function Zh(e){this._internalRoot=e}Zh.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ih.length&&t!==0&&t<Ih[n].priority;n++);Ih.splice(n,0,e),n===0&&Vh(e)}};var Qh=n.version;if(Qh!==`19.3.1`)throw Error(i(527,Qh,`19.3.1`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var $h={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eg.isDisabled&&eg.supportsFiber)try{Qe=eg.inject($h),$e=eg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=hh(e,1,!1,null,null,n,r,null,o,s,c,Yh),e[Dt]=t.current,Yf(e),new Xh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()}))(),v=l(d(),1),y=l(h(),1);function b(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var x=e=>{switch(e){case`success`:return S;case`info`:return w;case`warning`:return C;case`error`:return T;default:return null}},ee=Array(12).fill(0),te=({visible:e,className:t})=>v.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},v.createElement(`div`,{className:`sonner-spinner`},ee.map((e,t)=>v.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),S=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),C=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),w=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),T=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),E=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},v.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),v.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),D=()=>{let[e,t]=v.useState(document.hidden);return v.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},ne=1,O=100,re=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:ne++,k=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-O;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=re(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],v.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(j(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=re(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},A=(e,t)=>k.message(e,t),j=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ie=Object.assign(A,{success:k.success,info:k.info,warning:k.warning,error:k.error,custom:k.custom,message:k.message,promise:k.promise,dismiss:k.dismiss,loading:k.loading},{getHistory:()=>k.toasts,getToasts:()=>k.getActiveToasts()});b(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function ae(e){return e.label!==void 0}var oe=3,se=`24px`,ce=`16px`,le=4e3,ue=356,de=14,fe=45,pe=200;function me(...e){return e.filter(Boolean).join(` `)}function he(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var ge=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:y=``,duration:b,position:ee,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:ne=`Close toast`}=e,[O,re]=v.useState(null),[k,A]=v.useState(null),[j,ie]=v.useState(!1),[oe,se]=v.useState(!1),[ce,ue]=v.useState(!1),[de,ge]=v.useState(!1),[_e,ve]=v.useState(!1),[M,N]=v.useState(0),[ye,be]=v.useState(0),xe=v.useRef(n.duration||b||le),Se=v.useRef(null),Ce=v.useRef(null),we=c===0,Te=c+1<=o,Ee=n.type,De=Ee??`default`,Oe=n.dismissible!==!1,ke=n.className||``,Ae=n.descriptionClassName||``,je=v.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),P=v.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Me=v.useMemo(()=>n.duration||b||le,[n.duration,b]),F=v.useRef(0),Ne=v.useRef(0),Pe=v.useRef(0),Fe=v.useRef(null),[Ie,Le]=ee.split(`-`),Re=v.useMemo(()=>s.reduce((e,t,n)=>n>=je?e:e+t.height,0),[s,je]),ze=D(),Be=v.useMemo(()=>e.swipeDirections??he(ee),[e.swipeDirections,ee]),Ve=n.invert||t,He=Ee===`loading`;Ne.current=v.useMemo(()=>je*S+Re,[je,Re]),v.useEffect(()=>{xe.current=Me},[Me]),v.useEffect(()=>{ie(!0)},[]),v.useEffect(()=>{let e=Ce.current;if(e){let t=e.getBoundingClientRect().height;return be(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),v.useLayoutEffect(()=>{if(!j)return;let e=Ce.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,be(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ue=v.useCallback(()=>{se(!0),N(Ne.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},pe)},[n,d,a,Ne]);v.useEffect(()=>{if(n.promise&&Ee===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||ze?(()=>{if(Pe.current<F.current){let e=new Date().getTime()-F.current;xe.current-=e}Pe.current=new Date().getTime()})():xe.current!==1/0&&(F.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ue()},xe.current)),()=>clearTimeout(e)},[u,i,n,Ee,ze,Ue]),v.useEffect(()=>{n.delete&&(Ue(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ue,n.delete]);function We(){return T?.loading?v.createElement(`div`,{className:me(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":Ee===`loading`},T.loading):v.createElement(te,{className:me(w?.loader,n?.classNames?.loader),visible:Ee===`loading`})}let Ge=n.icon||T?.[Ee]||x(Ee);return v.createElement(`li`,{tabIndex:0,ref:Ce,className:me(_,ke,w?.toast,n?.classNames?.toast,w?.[De],n?.classNames?.[De]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":_e,"data-removed":oe,"data-visible":Te,"data-y-position":Ie,"data-x-position":Le,"data-index":c,"data-front":we,"data-swiping":ce,"data-dismissible":Oe,"data-type":Ee,"data-invert":Ve,"data-swipe-out":de,"data-swipe-direction":k,"data-expanded":!!(u||C&&j),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${oe?M:Ne.current}px`,"--initial-height":C?`auto`:`${ye}px`,...m,...n.style},onDragEnd:()=>{ue(!1),re(null),Fe.current=null},onPointerDown:e=>{e.button!==2&&!He&&Oe&&(Se.current=new Date,N(Ne.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ue(!0),Fe.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(de||!Oe)return;Fe.current=null;let e=Number(Ce.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(Ce.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-Se.current?.getTime(),i=O===`x`?e:t,a=Math.abs(i)/r;if((O===`x`?Be.includes(e>0?`right`:`left`):Be.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=fe||a>.11))N(Ne.current),n.onDismiss==null||n.onDismiss.call(n,n),A(O===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ue(),ge(!0);else{var o,s;(o=Ce.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=Ce.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),ve(!1),ue(!1),re(null)}},onPointerMove:e=>{var t,n;if(!Fe.current||!Oe||window.getSelection()?.toString().length>0)return;let r=e.clientY-Fe.current.y,i=e.clientX-Fe.current.x;!O&&(Math.abs(i)>1||Math.abs(r)>1)&&re(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(O===`y`){if(Be.includes(`top`)||Be.includes(`bottom`)){if(Be.includes(`top`)&&r<0||Be.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(O===`x`&&(Be.includes(`left`)||Be.includes(`right`))){if(Be.includes(`left`)&&i<0||Be.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&ve(!0),(t=Ce.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=Ce.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},P&&!n.jsx&&Ee!==`loading`?v.createElement(`button`,{"aria-label":ne,"data-disabled":He,"data-close-button":!0,onClick:He||!Oe?()=>{}:()=>{Ue(),n.onDismiss==null||n.onDismiss.call(n,n)},className:me(w?.closeButton,n?.classNames?.closeButton)},T?.close??E):null,(Ee||n.icon||n.promise)&&n.icon!==null&&(T?.[Ee]!==null||n.icon)?v.createElement(`div`,{"data-icon":``,className:me(w?.icon,n?.classNames?.icon)},Ee===`loading`?n.icon||We():n.promise?We():null,Ee===`loading`?null:Ge):null,v.createElement(`div`,{"data-content":``,className:me(w?.content,n?.classNames?.content)},v.createElement(`div`,{"data-title":``,className:me(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?v.createElement(`div`,{"data-description":``,className:me(y,Ae,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),v.isValidElement(n.cancel)?n.cancel:n.cancel&&ae(n.cancel)?v.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ae(n.cancel)&&Oe&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ue())},className:me(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,v.isValidElement(n.action)?n.action:n.action&&ae(n.action)?v.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ae(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ue())},className:me(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function _e(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function ve(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?ce:se;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var M=v.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=oe,toastOptions:g,dir:_=_e(),gap:b=de,icons:x,customAriaLabel:ee,containerAriaLabel:te=`Notifications`}=e,[S,C]=v.useState([]),w=v.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=v.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=v.useState([]),[ne,O]=v.useState(!1),[re,A]=v.useState(!1),[j,ie]=v.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),ae=v.useRef(null),se=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ce=v.useRef(null),le=v.useRef(!1),fe=v.useCallback(e=>{C(t=>(t.find(t=>t.id===e.id)?.delete||k.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return v.useEffect(()=>k.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{y.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),v.useEffect(()=>{if(d!==`system`){ie(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ie(`dark`):ie(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ie(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ie(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),v.useEffect(()=>{S.length<=1&&O(!1)},[S]),v.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=ae.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===ae.current||ae.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),v.useEffect(()=>{if(ae.current)return()=>{ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null,le.current=!1)}},[ae.current]),v.createElement(`section`,{ref:t,"aria-label":ee??`${te} ${se}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?v.createElement(`ol`,{key:t,dir:_===`auto`?_e():_,tabIndex:-1,ref:ae,className:c,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${ue}px`,"--gap":`${b}px`,...m,...ve(l,u)},onBlur:e=>{le.current&&!e.currentTarget.contains(e.relatedTarget)&&(le.current=!1,ce.current&&=(ce.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||le.current||(le.current=!0,ce.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{re||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||A(!0)},onPointerUp:()=>A(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>v.createElement(ge,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:re,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:fe,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:b,expanded:ne,swipeDirections:e.swipeDirections}))):null}))}),N=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},ye=(e=>e?N(e):N),be=e=>e;function xe(e,t=be){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),()=>t(e.getInitialState()));return v.useDebugValue(n),n}var Se=e=>{let t=ye(e),n=e=>xe(t,e);return Object.assign(n,t),n},Ce=(e=>e?Se(e):Se),we=`heyterm.handsOff`,Te=class e{day;voice;keyboard;pointer;constructor(e,t,n,r){this.day=e,this.voice=t,this.keyboard=n,this.pointer=r}static loadToday(){let t=new Date().toDateString();try{let n=JSON.parse(localStorage.getItem(we)??`null`);if(n?.day===t)return new e(t,n.voice,n.keyboard,n.pointer)}catch{}return new e(t,0,0,0)}get total(){return this.voice+this.keyboard+this.pointer}get voiceShare(){return this.total===0?void 0:this.voice/this.total}withAction(t){let n=this.day===new Date().toDateString()?this:new e(new Date().toDateString(),0,0,0),r=new e(n.day,n.voice+ +(t===`voice`),n.keyboard+ +(t===`keyboard`),n.pointer+ +(t===`pointer`));try{localStorage.setItem(we,JSON.stringify({day:r.day,voice:r.voice,keyboard:r.keyboard,pointer:r.pointer}))}catch{}return r}},Ee=`heyterm.voice`,De=class{static effective({preference:e,macVoiceAvailable:t}){return t?e??`mac`:`browser`}static savedPreference(){try{let e=localStorage.getItem(Ee);return e===`mac`||e===`browser`?e:void 0}catch{return}}static savePreference(e){try{localStorage.setItem(Ee,e)}catch{}}},Oe=`heyterm.layout`,ke={sidebarCollapsed:!1,conversationCollapsed:!1,arrangement:`grid`,theme:`light`};function Ae(){try{return{...ke,...JSON.parse(localStorage.getItem(Oe)??`{}`)}}catch{return ke}}function je(e){try{localStorage.setItem(Oe,JSON.stringify(e))}catch{}}var P=Ce(e=>({connectionStatus:`connecting`,hasSnapshot:!1,sessions:[],recentlyClosed:[],projects:[],control:{mode:`speak`,routing:!1},serverClockOffset:0,focusedSession:void 0,typingSession:void 0,catchUp:void 0,setup:void 0,conversation:[],speaking:!1,listening:`listening`,barHasText:!1,layout:Ae(),handsOff:Te.loadToday(),voicePreference:De.savedPreference(),applyServerMessage:t=>{t.type===`snapshot`&&e({hasSnapshot:!0,sessions:t.sessions,recentlyClosed:t.recentlyClosed,projects:t.projects,control:t.control,focusedSession:t.control.focusedSession,serverClockOffset:t.serverTime-Date.now()}),t.type===`focus`&&e({focusedSession:t.session}),t.type===`catch_up`&&e({catchUp:t.digests}),t.type===`setup`&&e({setup:t.setup}),t.type===`conversation`&&e({conversation:t.entries})},setConnectionStatus:t=>e({connectionStatus:t}),setTypingSession:t=>e({typingSession:t}),closeCatchUp:()=>e({catchUp:void 0}),recordAction:t=>e(e=>({handsOff:e.handsOff.withAction(t)})),setSpeaking:t=>e({speaking:t}),setBarState:t=>e(t),changeLayout:t=>e(e=>{let n={...e.layout,...t};return je(n),{layout:n}}),setVoicePreference:t=>{De.savePreference(t),e({voicePreference:t})}})),Me=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=Me()}))(),Ne=(0,v.createContext)(void 0);function Pe({connection:e,announcer:t,children:n}){let r=P(e=>e.recordAction),i=(0,v.useMemo)(()=>({connection:e,announcer:t,sendUtterance:(t,n)=>{r(n),e.send({type:`utterance`,text:t,source:n})},perform:n=>{r(`pointer`),t.unlock(),e.send({type:`action`,action:n})},focusSession:t=>e.send({type:`focus`,session:t})}),[e,t,r]);return(0,F.jsx)(Ne.Provider,{value:i,children:n})}function Fe(){let e=(0,v.useContext)(Ne);if(!e)throw Error(`useHeyTerm needs a HeyTermProvider above it`);return e}function Ie({size:e=16,children:t,...n}){return(0,F.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n,children:t})}function Le(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,F.jsx)(`path`,{d:`M9 3v18m7-6l-3-3l3-3`})]})}function Re(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,F.jsx)(`path`,{d:`M9 3v18m5-12l3 3l-3 3`})]})}function ze(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,F.jsx)(`path`,{d:`M15 3v18M8 9l3 3l-3 3`})]})}function Be(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,F.jsx)(`path`,{d:`M15 3v18m-5-6l-3-3l3-3`})]})}function Ve(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}),(0,F.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})}function He(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,F.jsx)(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3m.08 4h.01`})]})}function Ue(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M5 12h14m-7-7v14`})})}function We(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298zM16 9a5 5 0 0 1 0 6m3.364 3.364a9 9 0 0 0 0-12.728`})})}function Ge(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298zM16 9a5 5 0 0 1 0 6`})})}function Ke(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298zm5.5 9.798l5-5m-5 0l5 5`})})}function qe(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`})})}function Je(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`})})}function Ye(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M18 6L6 18M6 6l12 12`})})}function Xe(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`path`,{d:`M10 8h.01M12 12h.01M14 8h.01M16 12h.01M18 8h.01M6 8h.01M7 16h10m-9-4h.01`}),(0,F.jsx)(`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`})]})}function Ze(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,F.jsx)(`path`,{d:`M3 3v5h5`})]})}function Qe(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{d:`M20 6L9 17l-5-5`})})}function $e(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{d:`M12 5v14m7-7l-7 7l-7-7`})})}function et(e){return(0,F.jsxs)(Ie,{...e,children:[(0,F.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,F.jsx)(`path`,{d:`M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41`})]})}function tt(e){return(0,F.jsx)(Ie,{...e,children:(0,F.jsx)(`path`,{d:`M12 3a6 6 0 0 0 9 9a9 9 0 1 1-9-9`})})}var nt={starting:{label:`Starting`,textClass:`text-ink-faint`,markClass:`bg-idle`,ringClass:``,needsYou:!1},idle:{label:`Idle`,textClass:`text-ink-faint`,markClass:`bg-idle`,ringClass:``,needsYou:!1},working:{label:`Working`,textClass:`text-working`,markClass:`bg-working`,ringClass:``,needsYou:!1},needs_permission:{label:`Needs a permission`,textClass:`text-permission`,markClass:`bg-permission`,ringClass:`ring-1 ring-permission/70`,needsYou:!0},asked:{label:`Asked you`,textClass:`text-question`,markClass:`bg-question`,ringClass:`ring-1 ring-question/70`,needsYou:!0},needs_trust:{label:`Needs trust`,textClass:`text-trust`,markClass:`bg-trust`,ringClass:`ring-1 ring-trust/70`,needsYou:!0},done:{label:`Done`,textClass:`text-finished`,markClass:`bg-finished`,ringClass:``,needsYou:!1},failed:{label:`Failed`,textClass:`text-failed`,markClass:`bg-failed`,ringClass:`ring-1 ring-failed/60`,needsYou:!0},stopped:{label:`Stopped`,textClass:`text-ink-faint`,markClass:`bg-idle`,ringClass:``,needsYou:!1}},rt=[`needs_permission`,`asked`,`needs_trust`,`done`,`failed`];function it(e){return rt.includes(e)}function at(e){let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60);return n<60?`${n}m`:`${Math.floor(n/60)}h ${n%60}m`}function ot(){let{perform:e}=Fe(),t=P(e=>e.catchUp),n=P(e=>e.closeCatchUp);return(0,v.useEffect)(()=>{let e=e=>e.key===`Escape`&&n();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]),t?(0,F.jsxs)(`section`,{"aria-label":`Catch up`,className:`enter-rise absolute inset-x-2 top-2 z-30 mx-auto flex max-h-[70%] max-w-[720px] flex-col gap-1 overflow-y-auto rounded-outer border border-line-strong bg-panel p-1`,children:[(0,F.jsxs)(`header`,{className:`flex items-center px-3 pt-2 pb-1`,children:[(0,F.jsx)(`h2`,{className:`text-body font-medium text-ink`,children:`Since you last looked`}),(0,F.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:n,className:`press ml-auto flex size-7 cursor-pointer items-center justify-center rounded-inner text-ink-muted hover:bg-raised hover:text-ink`,children:(0,F.jsx)(Ye,{size:14})})]}),t.length===0&&(0,F.jsx)(`p`,{className:`px-3 pb-2 text-meta text-ink-muted`,children:`Nothing new.`}),t.map(t=>{let r=nt[t.state];return(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{e({type:`focus`,session:t.sessionName}),n()},className:`press flex cursor-pointer flex-col gap-1 rounded-inner bg-raised px-3 py-2.5 text-left transition-colors duration-150 hover:bg-line`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`size-2 rounded-mark ${r.markClass}`}),(0,F.jsx)(`span`,{className:`font-mono text-meta text-ink`,children:t.sessionName}),(0,F.jsx)(`span`,{className:`text-small ${r.textClass}`,children:r.label}),(0,F.jsxs)(`span`,{className:`ml-auto text-small text-ink-faint`,children:[st(t.commands.length,`command`),`, `,st(t.changedFiles.length,`file`)]})]}),t.lead&&(0,F.jsx)(`span`,{className:`text-meta leading-snug text-ink-muted`,children:t.lead}),t.changedFiles.length>0&&(0,F.jsx)(`span`,{className:`truncate font-mono text-small text-ink-faint`,children:t.changedFiles.join(` `)})]},t.sessionName)})]}):null}function st(e,t){return`${e} ${t}${e===1?``:`s`}`}var ct=class e{static quietMillisecondsBeforeSubmit=600;static smallestDictatedBurst=2;inputSource;lastDictationAt;editedByHand=!1;recordChange(e,t,n){ut(t.length>e.length?lt(e,t):``)?(this.inputSource=this.editedByHand?`keyboard`:`voice`,this.lastDictationAt=n):(this.editedByHand=!0,this.inputSource=`keyboard`)}shouldSubmit(t){return this.inputSource!==`voice`||this.lastDictationAt===void 0?!1:t-this.lastDictationAt>=e.quietMillisecondsBeforeSubmit}reset(){this.inputSource=void 0,this.lastDictationAt=void 0,this.editedByHand=!1}};function lt(e,t){let n=0;for(;n<e.length&&e[n]===t[n];)n+=1;return t.slice(n,n+(t.length-e.length))}function ut(e){return e.length>=ct.smallestDictatedBurst}var dt=class{static describe(e,t){let n={at:t.at,type:e.type,target:t.target,windowHasFocus:t.windowHasFocus};e.inputType&&(n.inputType=e.inputType),typeof e.data==`string`&&(n.length=e.data.length);let r=ft(e);return r&&(n.key=r),n}};function ft(e){if(!e.key)return;let t=[e.metaKey?`Meta`:``,e.ctrlKey?`Control`:``,e.altKey?`Alt`:``].filter(Boolean);return e.key.length>1||t.length>0?[...t,e.key].join(`+`):void 0}function pt(e,t){let n=[],r=()=>({target:mt(e()),windowHasFocus:document.hasFocus(),at:Date.now()}),i=e=>{let t={type:e.type};if(`inputType`in e&&(t.inputType=e.inputType,t.data=e.data),`clipboardData`in e&&(t.data=e.clipboardData?.getData(`text/plain`)??null),`key`in e){let n=e;Object.assign(t,{key:n.key,metaKey:n.metaKey,ctrlKey:n.ctrlKey,altKey:n.altKey})}n.push(dt.describe(t,r()))},a=[`beforeinput`,`input`,`paste`,`keydown`,`compositionstart`,`compositionend`,`focusin`];for(let e of a)document.addEventListener(e,i,!0);let o=e=>n.push(dt.describe({type:`window-${e.type}`},r()));window.addEventListener(`focus`,o),window.addEventListener(`blur`,o);let s=window.setInterval(()=>{n.length!==0&&(t(n),n=[])},2e3);return()=>{for(let e of a)document.removeEventListener(e,i,!0);window.removeEventListener(`focus`,o),window.removeEventListener(`blur`,o),window.clearInterval(s)}}function mt(e){let t=document.activeElement;return t&&t===e?`bar`:t?.closest(`.xterm`)?`terminal`:t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?`other_field`:`nothing`}var ht=class{static apply(e,t,n){let r=n.replace(/\s*[\r\n]+\s*/g,` `),i=e.slice(0,t.start),a=e.slice(t.end),o=`${i.length>0&&!/\s$/.test(i)&&a.length===0?` `:``}${r}`;return{text:`${i}${o}${a}`,caret:i.length+o.length}}},gt=class{static of({windowHasFocus:e,focusedElement:t}){return e?t===`bar`?`listening`:t===`terminal`?`typing_in_terminal`:`not_listening`:`window_in_background`}static pasteBelongsToBar(e){return e===`bar`||e===`nothing`}static focusedElement(e,t){return e&&e===t?`bar`:e?.closest(`.xterm`)?`terminal`:e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable?`other_field`:`nothing`}};function _t(){let e=P(e=>e.control.routing),t=P(e=>e.speaking),n=P(e=>e.listening),r=P(e=>e.barHasText),i=P(e=>e.typingSession);return t?`speaking`:e?`thinking`:i||n!==`listening`&&n!==`typing_in_terminal`?`deaf`:r?`hearing`:`idle`}var vt={idle:`Listening`,hearing:`Hearing you`,thinking:`Thinking`,speaking:`Speaking`,deaf:`Not listening`},yt=7,bt=3,xt=Array.from({length:49},(e,t)=>{let n=t%yt,r=Math.floor(t/yt),i=Math.hypot(n-bt,r-bt);return{column:n,row:r,ring:Math.round(i)}}).filter(e=>Math.hypot(e.column-bt,e.row-bt)<=3.35),St={idle:``,hearing:``,thinking:`orb-thinking`,speaking:`orb-speaking`,deaf:``};function Ct(e,t){return e===`deaf`?.22:e===`hearing`?t<=2?1:.85:e===`idle`?t===0?1:t===1?.8:t===2?.55:.35:.7}function wt({state:e,size:t=22,label:n}){return(0,F.jsx)(`svg`,{width:t,height:t,viewBox:`0 0 70 70`,role:`img`,"aria-label":n??`Assistant ${e}`,className:`shrink-0 text-ink ${St[e]}`,children:xt.map(t=>(0,F.jsx)(`circle`,{className:`orb-dot`,cx:t.column*10+5,cy:t.row*10+5,r:3.3,fill:`currentColor`,opacity:Ct(e,t.ring),style:{"--ring":t.ring}},`${t.column}-${t.row}`))})}function Tt({children:e}){return(0,F.jsx)(`kbd`,{className:`rounded-mark border border-line bg-tray px-1.5 py-0.5 font-mono text-small text-ink-faint`,children:e})}var Et=160;function Dt(e){return jt((At(kt(e).split(/\n\s*\n/)[0]??``)[0]??``).replace(/:$/,`.`))}function Ot(e){let t=kt(e).split(/\n\s*\n/).filter(e=>e.trim()).at(-1)??``;return jt(At(t).filter(e=>e.includes(`?`)).at(-1)??t)}function kt(e){return e.replace(/```[\s\S]*?```/g,``).replace(/[*_`#>]/g,``).replace(/^\s*[-•]\s+/gm,``).trim()}function At(e){return e.replace(/\s+/g,` `).split(/(?<=[.!?])\s+/).map(e=>e.trim()).filter(Boolean)}function jt(e){return e.length<=Et?e:`${e.slice(0,Et).replace(/\s+\S*$/,``)}…`}var Mt=[`permission`,`question`,`trust`,`failed`,`finished`],Nt=[`permission`,`question`],Pt=class{static build(e){return e.map(It).filter(e=>e!==void 0).sort((e,t)=>Mt.indexOf(e.kind)-Mt.indexOf(t.kind)||e.since-t.since)}},Ft=class{static forItems(e,t){if(t===`mute`)return;let n=t===`quiet`?e.filter(e=>Nt.includes(e.kind)):e;if(n.length!==0)return n.length===1?n[0].spoken:`${Wt(Ut(n.length))} sessions need you. ${n.map(e=>e.spoken).join(` `)}`}};function It(e){let t={sessionName:e.name,since:e.stateSince},n=e.pending;switch(e.state){case`needs_permission`:return n?.kind===`permission`?{...t,kind:`permission`,headline:Lt(e.name,n),spoken:zt(e.name,n),requestId:n.requestId}:void 0;case`asked`:if(e.blockedByTerminalDialog){let n=`${e.name} is waiting on a dialog in its terminal`;return{...t,kind:`question`,headline:n,spoken:`${n}.`}}if(n?.kind===`question`){let r=Vt(e.name,n);return{...t,kind:`question`,headline:r,spoken:Bt(r),requestId:n.requestId}}let r=`${e.name} asks: ${Ot(e.lastMessage??``)}`;return{...t,kind:`question`,headline:r,spoken:Bt(r)};case`needs_trust`:return e.trustSubject===`hooks`?{...t,kind:`trust`,headline:`${e.name} asks you to trust HeyTerm's hooks`,spoken:`${e.name} asks you to trust HeyTerm's hooks. Say trust it.`}:{...t,kind:`trust`,headline:`${e.name} needs you to trust its folder`,spoken:`${e.name} needs you to trust its folder. Say trust it.`};case`failed`:return{...t,kind:`failed`,headline:`${e.name} stopped on an error`,spoken:`${e.name} stopped on an error.`};case`done`:{if(e.lastSeenAt>=e.stateSince)return;let n=Dt(e.lastMessage??``);return{...t,kind:`finished`,headline:n?`${e.name} finished: ${n}`:`${e.name} finished`,spoken:`${e.name} is done.`}}default:return}}function Lt(e,t){return t.toolName===`Bash`?`${e} wants to run ${t.summary}`:/^(edit|fetch|use) /.test(t.summary)?`${e} wants to ${t.summary}`:`${e} wants to use ${t.summary}`}var Rt=[`Edit`,`Write`,`MultiEdit`,`NotebookEdit`];function zt(e,t){if(t.risk===`high`){let n=t.riskReasons[0]??`is risky`;return t.toolName===`Bash`?`${e} wants to run a command that ${n}. Say approve or deny.`:`${e} wants permission for something that ${n}. Say approve or deny.`}return t.toolName===`Bash`?`${e} wants to run a command. Say approve or deny.`:Rt.includes(t.toolName)?`${e} wants to edit a file. Say approve or deny.`:`${e} wants to use a tool. Say approve or deny.`}function Bt(e){return/[.?!]$/.test(e.trim())?e.trim():`${e.trim()}.`}function Vt(e,t){let[n,...r]=t.questions;if(!n)return`${e} has a question`;let i=n.options.map(e=>e.label).join(` or `),a=r.length>0?`, and ${Ut(r.length)} more`:``;return`${e} asks: ${n.question} ${i}${a}`}var Ht=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`];function Ut(e){return Ht[e]??String(e)}function Wt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Gt=[`permission`,`question`,`trust`,`failed`],Kt=class e{static isDecision(e){return Gt.includes(e)}static isStillWaiting(e,t){return Pt.build(t).some(t=>t.sessionName===e.session&&t.kind===e.kind&&t.since===e.since)}static waitingDecisions(t){return Pt.build(t).filter(t=>e.isDecision(t.kind))}static waitingWithoutEntry(t,n){let r=t.flatMap(e=>e.request?[e.request]:[]);return e.waitingDecisions(n).filter(e=>!r.some(t=>t.session===e.sessionName&&t.kind===e.kind&&t.since===e.since))}static replyWords(e){switch(e.type){case`approve`:return`Approve ${e.session}`;case`deny`:return`Deny ${e.session}`;case`trust`:return`Trust ${e.session}`;case`answer`:return`${e.session}: ${Object.values(e.answers).join(`, `)}`;default:return}}},qt=300,Jt=600,Yt=8,Xt=0;function Zt({label:e,children:t}){let[n,r]=(0,v.useState)(!1),[i,a]=(0,v.useState)(void 0),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c=(0,v.useRef)(void 0),l=()=>{clearTimeout(c.current);let e=Date.now()-Xt<Jt;c.current=setTimeout(()=>r(!0),e?0:qt)},u=()=>{clearTimeout(c.current),r(e=>(e&&(Xt=Date.now()),!1))};return(0,v.useEffect)(()=>()=>clearTimeout(c.current),[]),(0,v.useLayoutEffect)(()=>{if(!n||!o.current)return;let e=o.current.getBoundingClientRect(),t=s.current?.offsetHeight??32,r=e.top+e.height/2-t/2,i=Math.min(Math.max(Yt,r),window.innerHeight-t-Yt);a({top:i,left:e.right+8})},[n]),(0,F.jsxs)(`span`,{ref:o,className:`flex`,onPointerEnter:l,onPointerLeave:u,onPointerDown:u,onFocus:l,onBlur:u,children:[t,n&&(0,y.createPortal)((0,F.jsx)(`div`,{ref:s,"aria-hidden":!0,className:`pointer-events-none fixed z-50 flex max-w-[280px] flex-col gap-0.5 rounded-inner border border-line-strong bg-canvas px-2.5 py-1.5 text-meta text-ink`,style:{top:i?.top??-9999,left:i?.left??-9999},children:e}),document.body)]})}var Qt=class extends Error{constructor(e,t){let n=[];for(let e of t){let t=[];e.instancePath&&t.push(e.instancePath),e.message&&t.push(e.message),n.push(t.join(` `))}super(`${e}: ${n.join(`, `)}`),this.name=`ValidationError`,this.details=t}},$t=class extends Qt{constructor(e){super(`Invalid style definition`,e),this.name=`StyleValidationError`}},en=(function(){let e=Function.prototype.call.bind(Object.prototype.hasOwnProperty),t=e=>/[\uD800-\uDFFF]/.test(e)?[...e].length:e.length,n=RegExp(`^https?:\\/\\/`,`u`),r=function e(r){e.errors=null;let i=0;if(typeof r!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),i++;else{let a=i;r.length>2048&&t(r)>2048&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),i++),i===a&&(n.test(r)||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),i++))}return i===0},i=({keywordLocation:e,instanceLocation:t},n,r)=>({keywordLocation:`${n}${e.slice(1)}`,instanceLocation:`${r}${t.slice(1)}`}),a=e=>/~\//.test(e)?`${e}`.replace(/~/g,`~0`).replace(/\//g,`~1`):e,o=RegExp(`[uU][rR][lL][ \\t\\n\\f\\r]*\\([ \\t\\n\\f\\r]*[^#) \\t\\n\\f\\r]`,`u`),s=RegExp(`[eE][xX][pP][rR][eE][sS][sS][iI][oO][nN][ \\t\\n\\f\\r]*\\(`,`u`),c=RegExp(`[bB][eE][hH][aA][vV][iI][oO][rR][ \\t\\n\\f\\r]*:`,`u`),l=RegExp(`-[mM][oO][zZ]-[bB][iI][nN][dD][iI][nN][gG]`,`u`),u=RegExp(`[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:`,`u`),d=RegExp(`[vV][bB][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:`,`u`),f=RegExp(`\\\\`,`u`),p=function e(n){e.errors=null;let r=0;return typeof n==`string`?(n.length>16384&&t(n)>16384&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),(()=>{let e=0,t=null;return(()=>{let e=0;return e===e&&(o.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/0/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(s.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/1/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(c.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/2/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(l.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/3/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(u.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/4/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(d.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/5/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(f.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/6/pattern`,instanceLocation:`#`}),e++)),e===0})()||e++,e===0})()&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/not`,instanceLocation:`#`}),r++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++),r===0},m=function e(n){e.errors=null;let r=0;if(typeof n!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.length>1024&&t(n)>1024&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++);let a=e.errors,o=p(n),s=p.errors;e.errors=a,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/allOf/0/$ref`,`#`))),r++)}return r===0},h=RegExp(`^[a-z][a-zA-Z0-9]*$`,`u`),g=function e(n){e.errors=null;let r=0;if(typeof n!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{let i=r;n.length>64&&t(n)>64&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),r===i&&(h.test(n)||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),r++))}return r===0},_=function e(t){e.errors=null;let n=0,r=e.errors,a=g(t),o=g.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/allOf/0/$ref`,`#`))),n++),n===0},v=function t(n){t.errors=null;let r=0,o=null;return(()=>{let e=0,r=t.errors,a=m(n),o=m.errors;return t.errors=r,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/anyOf/0/$ref`,`#`))),e++),e===0})()||(()=>{let r=0;if(typeof n!=`object`||!n||Array.isArray(n))o===null&&(o=[]),o.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),r++;else{if(n.type!==void 0&&e(n,`type`)||(o===null&&(o=[]),o.push({keywordLocation:`#/anyOf/1/required`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)||(o===null&&(o=[]),o.push({keywordLocation:`#/anyOf/1/required`,instanceLocation:`#/name`}),r++),n.type!==void 0&&e(n,`type`)&&n.type!==`color`&&(o===null&&(o=[]),o.push({keywordLocation:`#/anyOf/1/properties/type/const`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)){let e=t.errors,a=_(n.name),o=_.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/anyOf/1/properties/name/$ref`,`#/name`))),r++)}for(let e of Object.keys(n))e!==`type`&&e!==`name`&&(o===null&&(o=[]),o.push({keywordLocation:`#/anyOf/1/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0})()||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),o&&t.errors.push(...o),r++),r===0},y=function e(n){e.errors=null;let r=0;if(typeof n!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.length>16384&&t(n)>16384&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++);let a=e.errors,o=p(n),s=p.errors;e.errors=a,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/allOf/0/$ref`,`#`))),r++)}return r===0},b=RegExp(`^#[a-zA-Z_][a-zA-Z0-9_.-]*$`,`u`),x=RegExp(`^data:image\\/(png|gif|jpeg|webp|avif);base64,[a-zA-Z0-9+/=]+$`,`u`),ee=RegExp(`@[iI][mM][pP][oO][rR][tT]`,`u`),te=RegExp(`@[fF][oO][nN][tT]-[fF][aA][cC][eE]`,`u`),S=RegExp(`@[dD][oO][cC][uU][mM][eE][nN][tT]`,`u`),C=RegExp(`@[cC][hH][aA][rR][sS][eE][tT]`,`u`),w=function e(n){e.errors=null;let r=0;if(typeof n!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.length>4096&&t(n)>4096&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),(()=>{let e=0,t=null;return(()=>{let e=0;return e===e&&(ee.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/0/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(te.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/1/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(S.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/2/pattern`,instanceLocation:`#`}),e++)),e===0})()||(()=>{let e=0;return e===e&&(C.test(n)||(t===null&&(t=[]),t.push({keywordLocation:`#/not/anyOf/3/pattern`,instanceLocation:`#`}),e++)),e===0})()||e++,e===0})()&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/not`,instanceLocation:`#`}),r++);let a=e.errors,o=p(n),s=p.errors;e.errors=a,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/allOf/0/$ref`,`#`))),r++)}return r===0},T=function n(r){n.errors=null;let o=0;if(typeof r!=`object`||!r||Array.isArray(r))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),o++;else{if(r[`alignment-baseline`]!==void 0&&e(r,`alignment-baseline`)){let e=n.errors,t=m(r[`alignment-baseline`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/alignment-baseline/$ref`,`#/alignment-baseline`))),o++)}if(r.amplitude!==void 0&&e(r,`amplitude`)){let e=n.errors,t=m(r.amplitude),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/amplitude/$ref`,`#/amplitude`))),o++)}if(r.azimuth!==void 0&&e(r,`azimuth`)){let e=n.errors,t=m(r.azimuth),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/azimuth/$ref`,`#/azimuth`))),o++)}if(r.baseFrequency!==void 0&&e(r,`baseFrequency`)){let e=n.errors,t=m(r.baseFrequency),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/baseFrequency/$ref`,`#/baseFrequency`))),o++)}if(r[`baseline-shift`]!==void 0&&e(r,`baseline-shift`)){let e=n.errors,t=m(r[`baseline-shift`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/baseline-shift/$ref`,`#/baseline-shift`))),o++)}if(r.bias!==void 0&&e(r,`bias`)){let e=n.errors,t=m(r.bias),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/bias/$ref`,`#/bias`))),o++)}if(r.class!==void 0&&e(r,`class`)){let e=n.errors,t=m(r.class),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/class/$ref`,`#/class`))),o++)}if(r.clipPathUnits!==void 0&&e(r,`clipPathUnits`)){let e=n.errors,t=m(r.clipPathUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/clipPathUnits/$ref`,`#/clipPathUnits`))),o++)}if(r[`clip-path`]!==void 0&&e(r,`clip-path`)){let e=n.errors,t=m(r[`clip-path`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/clip-path/$ref`,`#/clip-path`))),o++)}if(r[`clip-rule`]!==void 0&&e(r,`clip-rule`)){let e=n.errors,t=m(r[`clip-rule`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/clip-rule/$ref`,`#/clip-rule`))),o++)}if(r.color!==void 0&&e(r,`color`)){let e=n.errors,t=v(r.color),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/color/$ref`,`#/color`))),o++)}if(r[`color-interpolation`]!==void 0&&e(r,`color-interpolation`)){let e=n.errors,t=m(r[`color-interpolation`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/color-interpolation/$ref`,`#/color-interpolation`))),o++)}if(r[`color-interpolation-filters`]!==void 0&&e(r,`color-interpolation-filters`)){let e=n.errors,t=m(r[`color-interpolation-filters`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/color-interpolation-filters/$ref`,`#/color-interpolation-filters`))),o++)}if(r.crossorigin!==void 0&&e(r,`crossorigin`)){let e=n.errors,t=m(r.crossorigin),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/crossorigin/$ref`,`#/crossorigin`))),o++)}if(r.cx!==void 0&&e(r,`cx`)){let e=n.errors,t=m(r.cx),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/cx/$ref`,`#/cx`))),o++)}if(r.cy!==void 0&&e(r,`cy`)){let e=n.errors,t=m(r.cy),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/cy/$ref`,`#/cy`))),o++)}if(r.d!==void 0&&e(r,`d`)){let e=n.errors,t=y(r.d),a=y.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/d/$ref`,`#/d`))),o++)}if(r.decoding!==void 0&&e(r,`decoding`)){let e=n.errors,t=m(r.decoding),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/decoding/$ref`,`#/decoding`))),o++)}if(r.diffuseConstant!==void 0&&e(r,`diffuseConstant`)){let e=n.errors,t=m(r.diffuseConstant),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/diffuseConstant/$ref`,`#/diffuseConstant`))),o++)}if(r.direction!==void 0&&e(r,`direction`)){let e=n.errors,t=m(r.direction),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/direction/$ref`,`#/direction`))),o++)}if(r.display!==void 0&&e(r,`display`)){let e=n.errors,t=m(r.display),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/display/$ref`,`#/display`))),o++)}if(r.divisor!==void 0&&e(r,`divisor`)){let e=n.errors,t=m(r.divisor),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/divisor/$ref`,`#/divisor`))),o++)}if(r[`dominant-baseline`]!==void 0&&e(r,`dominant-baseline`)){let e=n.errors,t=m(r[`dominant-baseline`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/dominant-baseline/$ref`,`#/dominant-baseline`))),o++)}if(r.dx!==void 0&&e(r,`dx`)){let e=n.errors,t=m(r.dx),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/dx/$ref`,`#/dx`))),o++)}if(r.dy!==void 0&&e(r,`dy`)){let e=n.errors,t=m(r.dy),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/dy/$ref`,`#/dy`))),o++)}if(r.edgeMode!==void 0&&e(r,`edgeMode`)){let e=n.errors,t=m(r.edgeMode),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/edgeMode/$ref`,`#/edgeMode`))),o++)}if(r.elevation!==void 0&&e(r,`elevation`)){let e=n.errors,t=m(r.elevation),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/elevation/$ref`,`#/elevation`))),o++)}if(r.exponent!==void 0&&e(r,`exponent`)){let e=n.errors,t=m(r.exponent),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/exponent/$ref`,`#/exponent`))),o++)}if(r.fill!==void 0&&e(r,`fill`)){let e=n.errors,t=v(r.fill),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/fill/$ref`,`#/fill`))),o++)}if(r[`fill-opacity`]!==void 0&&e(r,`fill-opacity`)){let e=n.errors,t=m(r[`fill-opacity`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/fill-opacity/$ref`,`#/fill-opacity`))),o++)}if(r[`fill-rule`]!==void 0&&e(r,`fill-rule`)){let e=n.errors,t=m(r[`fill-rule`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/fill-rule/$ref`,`#/fill-rule`))),o++)}if(r.filter!==void 0&&e(r,`filter`)){let e=n.errors,t=m(r.filter),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/filter/$ref`,`#/filter`))),o++)}if(r.filterUnits!==void 0&&e(r,`filterUnits`)){let e=n.errors,t=m(r.filterUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/filterUnits/$ref`,`#/filterUnits`))),o++)}if(r[`flood-color`]!==void 0&&e(r,`flood-color`)){let e=n.errors,t=v(r[`flood-color`]),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/flood-color/$ref`,`#/flood-color`))),o++)}if(r[`flood-opacity`]!==void 0&&e(r,`flood-opacity`)){let e=n.errors,t=m(r[`flood-opacity`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/flood-opacity/$ref`,`#/flood-opacity`))),o++)}if(r[`font-family`]!==void 0&&e(r,`font-family`)){let t=null;(()=>{let e=0,t=n.errors,a=m(r[`font-family`]),o=m.errors;return n.errors=t,a||(n.errors===null&&(n.errors=[]),n.errors.push(...o.map(e=>i(e,`#/properties/font-family/anyOf/0/$ref`,`#/font-family`))),e++),e===0})()||(()=>{let n=0;if(typeof r[`font-family`]!=`object`||!r[`font-family`]||Array.isArray(r[`font-family`]))t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/type`,instanceLocation:`#/font-family`}),n++;else{r[`font-family`].type!==void 0&&e(r[`font-family`],`type`)||(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/required`,instanceLocation:`#/font-family/type`}),n++),r[`font-family`].name!==void 0&&e(r[`font-family`],`name`)||(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/required`,instanceLocation:`#/font-family/name`}),n++),r[`font-family`].type!==void 0&&e(r[`font-family`],`type`)&&r[`font-family`].type!==`variable`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/properties/type/const`,instanceLocation:`#/font-family/type`}),n++),r[`font-family`].name!==void 0&&e(r[`font-family`],`name`)&&r[`font-family`].name!==`fontFamily`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/properties/name/const`,instanceLocation:`#/font-family/name`}),n++);for(let e of Object.keys(r[`font-family`]))e!==`type`&&e!==`name`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-family/anyOf/1/additionalProperties`,instanceLocation:`#/font-family/`+a(e)}),n++)}return n===0})()||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/font-family/anyOf`,instanceLocation:`#/font-family`}),t&&n.errors.push(...t),o++)}if(r[`font-size`]!==void 0&&e(r,`font-size`)){let e=n.errors,t=m(r[`font-size`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/font-size/$ref`,`#/font-size`))),o++)}if(r[`font-size-adjust`]!==void 0&&e(r,`font-size-adjust`)){let e=n.errors,t=m(r[`font-size-adjust`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/font-size-adjust/$ref`,`#/font-size-adjust`))),o++)}if(r[`font-style`]!==void 0&&e(r,`font-style`)){let e=n.errors,t=m(r[`font-style`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/font-style/$ref`,`#/font-style`))),o++)}if(r[`font-variant`]!==void 0&&e(r,`font-variant`)){let e=n.errors,t=m(r[`font-variant`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/font-variant/$ref`,`#/font-variant`))),o++)}if(r[`font-weight`]!==void 0&&e(r,`font-weight`)){let t=null;(()=>{let e=0,t=n.errors,a=m(r[`font-weight`]),o=m.errors;return n.errors=t,a||(n.errors===null&&(n.errors=[]),n.errors.push(...o.map(e=>i(e,`#/properties/font-weight/anyOf/0/$ref`,`#/font-weight`))),e++),e===0})()||(()=>{let n=0;if(typeof r[`font-weight`]!=`object`||!r[`font-weight`]||Array.isArray(r[`font-weight`]))t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/type`,instanceLocation:`#/font-weight`}),n++;else{r[`font-weight`].type!==void 0&&e(r[`font-weight`],`type`)||(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/required`,instanceLocation:`#/font-weight/type`}),n++),r[`font-weight`].name!==void 0&&e(r[`font-weight`],`name`)||(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/required`,instanceLocation:`#/font-weight/name`}),n++),r[`font-weight`].type!==void 0&&e(r[`font-weight`],`type`)&&r[`font-weight`].type!==`variable`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/properties/type/const`,instanceLocation:`#/font-weight/type`}),n++),r[`font-weight`].name!==void 0&&e(r[`font-weight`],`name`)&&r[`font-weight`].name!==`fontWeight`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/properties/name/const`,instanceLocation:`#/font-weight/name`}),n++);for(let e of Object.keys(r[`font-weight`]))e!==`type`&&e!==`name`&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/font-weight/anyOf/1/additionalProperties`,instanceLocation:`#/font-weight/`+a(e)}),n++)}return n===0})()||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/font-weight/anyOf`,instanceLocation:`#/font-weight`}),t&&n.errors.push(...t),o++)}if(r.fx!==void 0&&e(r,`fx`)){let e=n.errors,t=m(r.fx),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/fx/$ref`,`#/fx`))),o++)}if(r.fy!==void 0&&e(r,`fy`)){let e=n.errors,t=m(r.fy),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/fy/$ref`,`#/fy`))),o++)}if(r.gradientTransform!==void 0&&e(r,`gradientTransform`)){let e=n.errors,t=m(r.gradientTransform),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/gradientTransform/$ref`,`#/gradientTransform`))),o++)}if(r.gradientUnits!==void 0&&e(r,`gradientUnits`)){let e=n.errors,t=m(r.gradientUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/gradientUnits/$ref`,`#/gradientUnits`))),o++)}if(r.height!==void 0&&e(r,`height`)){let e=n.errors,t=m(r.height),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/height/$ref`,`#/height`))),o++)}if(r.href!==void 0&&e(r,`href`)){let e=null;(()=>{let n=0;if(typeof r.href!=`string`)e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/type`,instanceLocation:`#/href`}),n++;else{let i=n;r.href.length>128&&t(r.href)>128&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/maxLength`,instanceLocation:`#/href`}),n++),n===i&&(b.test(r.href)||(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/pattern`,instanceLocation:`#/href`}),n++))}return n===0})()||(()=>{let n=0;if(typeof r.href!=`string`)e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/type`,instanceLocation:`#/href`}),n++;else{let i=n;r.href.length>262144&&t(r.href)>262144&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/maxLength`,instanceLocation:`#/href`}),n++),n===i&&(x.test(r.href)||(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/pattern`,instanceLocation:`#/href`}),n++))}return n===0})()||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/href/anyOf`,instanceLocation:`#/href`}),e&&n.errors.push(...e),o++)}if(r.id!==void 0&&e(r,`id`)){let e=n.errors,t=m(r.id),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/id/$ref`,`#/id`))),o++)}if(r[`image-rendering`]!==void 0&&e(r,`image-rendering`)){let e=n.errors,t=m(r[`image-rendering`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/image-rendering/$ref`,`#/image-rendering`))),o++)}if(r.in!==void 0&&e(r,`in`)){let e=n.errors,t=m(r.in),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/in/$ref`,`#/in`))),o++)}if(r.in2!==void 0&&e(r,`in2`)){let e=n.errors,t=m(r.in2),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/in2/$ref`,`#/in2`))),o++)}if(r.intercept!==void 0&&e(r,`intercept`)){let e=n.errors,t=m(r.intercept),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/intercept/$ref`,`#/intercept`))),o++)}if(r.k1!==void 0&&e(r,`k1`)){let e=n.errors,t=m(r.k1),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/k1/$ref`,`#/k1`))),o++)}if(r.k2!==void 0&&e(r,`k2`)){let e=n.errors,t=m(r.k2),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/k2/$ref`,`#/k2`))),o++)}if(r.k3!==void 0&&e(r,`k3`)){let e=n.errors,t=m(r.k3),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/k3/$ref`,`#/k3`))),o++)}if(r.k4!==void 0&&e(r,`k4`)){let e=n.errors,t=m(r.k4),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/k4/$ref`,`#/k4`))),o++)}if(r.kernelMatrix!==void 0&&e(r,`kernelMatrix`)){let e=n.errors,t=m(r.kernelMatrix),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/kernelMatrix/$ref`,`#/kernelMatrix`))),o++)}if(r.kernelUnitLength!==void 0&&e(r,`kernelUnitLength`)){let e=n.errors,t=m(r.kernelUnitLength),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/kernelUnitLength/$ref`,`#/kernelUnitLength`))),o++)}if(r.lang!==void 0&&e(r,`lang`)){let e=n.errors,t=m(r.lang),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/lang/$ref`,`#/lang`))),o++)}if(r.lengthAdjust!==void 0&&e(r,`lengthAdjust`)){let e=n.errors,t=m(r.lengthAdjust),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/lengthAdjust/$ref`,`#/lengthAdjust`))),o++)}if(r[`letter-spacing`]!==void 0&&e(r,`letter-spacing`)){let e=n.errors,t=m(r[`letter-spacing`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/letter-spacing/$ref`,`#/letter-spacing`))),o++)}if(r[`lighting-color`]!==void 0&&e(r,`lighting-color`)){let e=n.errors,t=v(r[`lighting-color`]),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/lighting-color/$ref`,`#/lighting-color`))),o++)}if(r[`marker-end`]!==void 0&&e(r,`marker-end`)){let e=n.errors,t=m(r[`marker-end`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/marker-end/$ref`,`#/marker-end`))),o++)}if(r[`marker-mid`]!==void 0&&e(r,`marker-mid`)){let e=n.errors,t=m(r[`marker-mid`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/marker-mid/$ref`,`#/marker-mid`))),o++)}if(r[`marker-start`]!==void 0&&e(r,`marker-start`)){let e=n.errors,t=m(r[`marker-start`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/marker-start/$ref`,`#/marker-start`))),o++)}if(r.markerHeight!==void 0&&e(r,`markerHeight`)){let e=n.errors,t=m(r.markerHeight),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/markerHeight/$ref`,`#/markerHeight`))),o++)}if(r.markerUnits!==void 0&&e(r,`markerUnits`)){let e=n.errors,t=m(r.markerUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/markerUnits/$ref`,`#/markerUnits`))),o++)}if(r.markerWidth!==void 0&&e(r,`markerWidth`)){let e=n.errors,t=m(r.markerWidth),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/markerWidth/$ref`,`#/markerWidth`))),o++)}if(r.mask!==void 0&&e(r,`mask`)){let e=n.errors,t=m(r.mask),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/mask/$ref`,`#/mask`))),o++)}if(r.maskContentUnits!==void 0&&e(r,`maskContentUnits`)){let e=n.errors,t=m(r.maskContentUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/maskContentUnits/$ref`,`#/maskContentUnits`))),o++)}if(r.maskUnits!==void 0&&e(r,`maskUnits`)){let e=n.errors,t=m(r.maskUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/maskUnits/$ref`,`#/maskUnits`))),o++)}if(r.media!==void 0&&e(r,`media`)){let e=n.errors,t=m(r.media),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/media/$ref`,`#/media`))),o++)}if(r.method!==void 0&&e(r,`method`)){let e=n.errors,t=m(r.method),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/method/$ref`,`#/method`))),o++)}if(r.mode!==void 0&&e(r,`mode`)){let e=n.errors,t=m(r.mode),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/mode/$ref`,`#/mode`))),o++)}if(r.numOctaves!==void 0&&e(r,`numOctaves`)){let e=n.errors,t=m(r.numOctaves),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/numOctaves/$ref`,`#/numOctaves`))),o++)}if(r.offset!==void 0&&e(r,`offset`)){let e=n.errors,t=m(r.offset),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/offset/$ref`,`#/offset`))),o++)}if(r.opacity!==void 0&&e(r,`opacity`)){let e=n.errors,t=m(r.opacity),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/opacity/$ref`,`#/opacity`))),o++)}if(r.operator!==void 0&&e(r,`operator`)){let e=n.errors,t=m(r.operator),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/operator/$ref`,`#/operator`))),o++)}if(r.order!==void 0&&e(r,`order`)){let e=n.errors,t=m(r.order),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/order/$ref`,`#/order`))),o++)}if(r.orient!==void 0&&e(r,`orient`)){let e=n.errors,t=m(r.orient),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/orient/$ref`,`#/orient`))),o++)}if(r.overflow!==void 0&&e(r,`overflow`)){let e=n.errors,t=m(r.overflow),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/overflow/$ref`,`#/overflow`))),o++)}if(r[`paint-order`]!==void 0&&e(r,`paint-order`)){let e=n.errors,t=m(r[`paint-order`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/paint-order/$ref`,`#/paint-order`))),o++)}if(r.path!==void 0&&e(r,`path`)){let e=n.errors,t=m(r.path),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/path/$ref`,`#/path`))),o++)}if(r.pathLength!==void 0&&e(r,`pathLength`)){let e=n.errors,t=m(r.pathLength),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/pathLength/$ref`,`#/pathLength`))),o++)}if(r.patternContentUnits!==void 0&&e(r,`patternContentUnits`)){let e=n.errors,t=m(r.patternContentUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/patternContentUnits/$ref`,`#/patternContentUnits`))),o++)}if(r.patternTransform!==void 0&&e(r,`patternTransform`)){let e=n.errors,t=m(r.patternTransform),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/patternTransform/$ref`,`#/patternTransform`))),o++)}if(r.patternUnits!==void 0&&e(r,`patternUnits`)){let e=n.errors,t=m(r.patternUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/patternUnits/$ref`,`#/patternUnits`))),o++)}if(r.points!==void 0&&e(r,`points`)){let e=n.errors,t=m(r.points),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/points/$ref`,`#/points`))),o++)}if(r.preserveAlpha!==void 0&&e(r,`preserveAlpha`)){let e=n.errors,t=m(r.preserveAlpha),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/preserveAlpha/$ref`,`#/preserveAlpha`))),o++)}if(r.preserveAspectRatio!==void 0&&e(r,`preserveAspectRatio`)){let e=n.errors,t=m(r.preserveAspectRatio),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/preserveAspectRatio/$ref`,`#/preserveAspectRatio`))),o++)}if(r.primitiveUnits!==void 0&&e(r,`primitiveUnits`)){let e=n.errors,t=m(r.primitiveUnits),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/primitiveUnits/$ref`,`#/primitiveUnits`))),o++)}if(r.r!==void 0&&e(r,`r`)){let e=n.errors,t=m(r.r),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/r/$ref`,`#/r`))),o++)}if(r.radius!==void 0&&e(r,`radius`)){let e=n.errors,t=m(r.radius),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/radius/$ref`,`#/radius`))),o++)}if(r.refX!==void 0&&e(r,`refX`)){let e=n.errors,t=m(r.refX),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/refX/$ref`,`#/refX`))),o++)}if(r.refY!==void 0&&e(r,`refY`)){let e=n.errors,t=m(r.refY),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/refY/$ref`,`#/refY`))),o++)}if(r.result!==void 0&&e(r,`result`)){let e=n.errors,t=m(r.result),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/result/$ref`,`#/result`))),o++)}if(r.rx!==void 0&&e(r,`rx`)){let e=n.errors,t=m(r.rx),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/rx/$ref`,`#/rx`))),o++)}if(r.ry!==void 0&&e(r,`ry`)){let e=n.errors,t=m(r.ry),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/ry/$ref`,`#/ry`))),o++)}if(r.scale!==void 0&&e(r,`scale`)){let e=n.errors,t=m(r.scale),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/scale/$ref`,`#/scale`))),o++)}if(r.seed!==void 0&&e(r,`seed`)){let e=n.errors,t=m(r.seed),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/seed/$ref`,`#/seed`))),o++)}if(r[`shape-rendering`]!==void 0&&e(r,`shape-rendering`)){let e=n.errors,t=m(r[`shape-rendering`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/shape-rendering/$ref`,`#/shape-rendering`))),o++)}if(r.slope!==void 0&&e(r,`slope`)){let e=n.errors,t=m(r.slope),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/slope/$ref`,`#/slope`))),o++)}if(r.specularConstant!==void 0&&e(r,`specularConstant`)){let e=n.errors,t=m(r.specularConstant),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/specularConstant/$ref`,`#/specularConstant`))),o++)}if(r.specularExponent!==void 0&&e(r,`specularExponent`)){let e=n.errors,t=m(r.specularExponent),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/specularExponent/$ref`,`#/specularExponent`))),o++)}if(r.spreadMethod!==void 0&&e(r,`spreadMethod`)){let e=n.errors,t=m(r.spreadMethod),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/spreadMethod/$ref`,`#/spreadMethod`))),o++)}if(r.startOffset!==void 0&&e(r,`startOffset`)){let e=n.errors,t=m(r.startOffset),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/startOffset/$ref`,`#/startOffset`))),o++)}if(r.stdDeviation!==void 0&&e(r,`stdDeviation`)){let e=n.errors,t=m(r.stdDeviation),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stdDeviation/$ref`,`#/stdDeviation`))),o++)}if(r.stitchTiles!==void 0&&e(r,`stitchTiles`)){let e=n.errors,t=m(r.stitchTiles),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stitchTiles/$ref`,`#/stitchTiles`))),o++)}if(r[`stop-color`]!==void 0&&e(r,`stop-color`)){let e=n.errors,t=v(r[`stop-color`]),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stop-color/$ref`,`#/stop-color`))),o++)}if(r[`stop-opacity`]!==void 0&&e(r,`stop-opacity`)){let e=n.errors,t=m(r[`stop-opacity`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stop-opacity/$ref`,`#/stop-opacity`))),o++)}if(r.stroke!==void 0&&e(r,`stroke`)){let e=n.errors,t=v(r.stroke),a=v.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke/$ref`,`#/stroke`))),o++)}if(r[`stroke-dasharray`]!==void 0&&e(r,`stroke-dasharray`)){let e=n.errors,t=m(r[`stroke-dasharray`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-dasharray/$ref`,`#/stroke-dasharray`))),o++)}if(r[`stroke-dashoffset`]!==void 0&&e(r,`stroke-dashoffset`)){let e=n.errors,t=m(r[`stroke-dashoffset`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-dashoffset/$ref`,`#/stroke-dashoffset`))),o++)}if(r[`stroke-linecap`]!==void 0&&e(r,`stroke-linecap`)){let e=n.errors,t=m(r[`stroke-linecap`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-linecap/$ref`,`#/stroke-linecap`))),o++)}if(r[`stroke-linejoin`]!==void 0&&e(r,`stroke-linejoin`)){let e=n.errors,t=m(r[`stroke-linejoin`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-linejoin/$ref`,`#/stroke-linejoin`))),o++)}if(r[`stroke-miterlimit`]!==void 0&&e(r,`stroke-miterlimit`)){let e=n.errors,t=m(r[`stroke-miterlimit`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-miterlimit/$ref`,`#/stroke-miterlimit`))),o++)}if(r[`stroke-opacity`]!==void 0&&e(r,`stroke-opacity`)){let e=n.errors,t=m(r[`stroke-opacity`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-opacity/$ref`,`#/stroke-opacity`))),o++)}if(r[`stroke-width`]!==void 0&&e(r,`stroke-width`)){let e=n.errors,t=m(r[`stroke-width`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/stroke-width/$ref`,`#/stroke-width`))),o++)}if(r.style!==void 0&&e(r,`style`)){let e=n.errors,t=w(r.style),a=w.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/style/$ref`,`#/style`))),o++)}if(r.surfaceScale!==void 0&&e(r,`surfaceScale`)){let e=n.errors,t=m(r.surfaceScale),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/surfaceScale/$ref`,`#/surfaceScale`))),o++)}if(r.systemLanguage!==void 0&&e(r,`systemLanguage`)){let e=n.errors,t=m(r.systemLanguage),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/systemLanguage/$ref`,`#/systemLanguage`))),o++)}if(r.tabindex!==void 0&&e(r,`tabindex`)){let e=n.errors,t=m(r.tabindex),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/tabindex/$ref`,`#/tabindex`))),o++)}if(r.tableValues!==void 0&&e(r,`tableValues`)){let e=n.errors,t=m(r.tableValues),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/tableValues/$ref`,`#/tableValues`))),o++)}if(r.targetX!==void 0&&e(r,`targetX`)){let e=n.errors,t=m(r.targetX),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/targetX/$ref`,`#/targetX`))),o++)}if(r.targetY!==void 0&&e(r,`targetY`)){let e=n.errors,t=m(r.targetY),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/targetY/$ref`,`#/targetY`))),o++)}if(r[`text-anchor`]!==void 0&&e(r,`text-anchor`)){let e=n.errors,t=m(r[`text-anchor`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/text-anchor/$ref`,`#/text-anchor`))),o++)}if(r[`text-decoration`]!==void 0&&e(r,`text-decoration`)){let e=n.errors,t=m(r[`text-decoration`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/text-decoration/$ref`,`#/text-decoration`))),o++)}if(r[`text-rendering`]!==void 0&&e(r,`text-rendering`)){let e=n.errors,t=m(r[`text-rendering`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/text-rendering/$ref`,`#/text-rendering`))),o++)}if(r.textLength!==void 0&&e(r,`textLength`)){let e=n.errors,t=m(r.textLength),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/textLength/$ref`,`#/textLength`))),o++)}if(r.transform!==void 0&&e(r,`transform`)){let e=n.errors,t=m(r.transform),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/transform/$ref`,`#/transform`))),o++)}if(r[`transform-origin`]!==void 0&&e(r,`transform-origin`)){let e=n.errors,t=m(r[`transform-origin`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/transform-origin/$ref`,`#/transform-origin`))),o++)}if(r.type!==void 0&&e(r,`type`)){let e=n.errors,t=m(r.type),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/type/$ref`,`#/type`))),o++)}if(r.values!==void 0&&e(r,`values`)){let e=n.errors,t=m(r.values),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/values/$ref`,`#/values`))),o++)}if(r.viewBox!==void 0&&e(r,`viewBox`)){let e=n.errors,t=m(r.viewBox),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/viewBox/$ref`,`#/viewBox`))),o++)}if(r.visibility!==void 0&&e(r,`visibility`)){let e=n.errors,t=m(r.visibility),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/visibility/$ref`,`#/visibility`))),o++)}if(r.width!==void 0&&e(r,`width`)){let e=n.errors,t=m(r.width),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/width/$ref`,`#/width`))),o++)}if(r[`word-spacing`]!==void 0&&e(r,`word-spacing`)){let e=n.errors,t=m(r[`word-spacing`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/word-spacing/$ref`,`#/word-spacing`))),o++)}if(r[`writing-mode`]!==void 0&&e(r,`writing-mode`)){let e=n.errors,t=m(r[`writing-mode`]),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/writing-mode/$ref`,`#/writing-mode`))),o++)}if(r.x!==void 0&&e(r,`x`)){let e=n.errors,t=m(r.x),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/x/$ref`,`#/x`))),o++)}if(r.x1!==void 0&&e(r,`x1`)){let e=n.errors,t=m(r.x1),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/x1/$ref`,`#/x1`))),o++)}if(r.x2!==void 0&&e(r,`x2`)){let e=n.errors,t=m(r.x2),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/x2/$ref`,`#/x2`))),o++)}if(r.xChannelSelector!==void 0&&e(r,`xChannelSelector`)){let e=n.errors,t=m(r.xChannelSelector),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/xChannelSelector/$ref`,`#/xChannelSelector`))),o++)}if(r.y!==void 0&&e(r,`y`)){let e=n.errors,t=m(r.y),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/y/$ref`,`#/y`))),o++)}if(r.y1!==void 0&&e(r,`y1`)){let e=n.errors,t=m(r.y1),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/y1/$ref`,`#/y1`))),o++)}if(r.y2!==void 0&&e(r,`y2`)){let e=n.errors,t=m(r.y2),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/y2/$ref`,`#/y2`))),o++)}if(r.yChannelSelector!==void 0&&e(r,`yChannelSelector`)){let e=n.errors,t=m(r.yChannelSelector),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/yChannelSelector/$ref`,`#/yChannelSelector`))),o++)}if(r.z!==void 0&&e(r,`z`)){let e=n.errors,t=m(r.z),a=m.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/z/$ref`,`#/z`))),o++)}for(let e of Object.keys(r))e!==`alignment-baseline`&&e!==`amplitude`&&e!==`azimuth`&&e!==`baseFrequency`&&e!==`baseline-shift`&&e!==`bias`&&e!==`class`&&e!==`clipPathUnits`&&e!==`clip-path`&&e!==`clip-rule`&&e!==`color`&&e!==`color-interpolation`&&e!==`color-interpolation-filters`&&e!==`crossorigin`&&e!==`cx`&&e!==`cy`&&e!==`d`&&e!==`decoding`&&e!==`diffuseConstant`&&e!==`direction`&&e!==`display`&&e!==`divisor`&&e!==`dominant-baseline`&&e!==`dx`&&e!==`dy`&&e!==`edgeMode`&&e!==`elevation`&&e!==`exponent`&&e!==`fill`&&e!==`fill-opacity`&&e!==`fill-rule`&&e!==`filter`&&e!==`filterUnits`&&e!==`flood-color`&&e!==`flood-opacity`&&e!==`font-family`&&e!==`font-size`&&e!==`font-size-adjust`&&e!==`font-style`&&e!==`font-variant`&&e!==`font-weight`&&e!==`fx`&&e!==`fy`&&e!==`gradientTransform`&&e!==`gradientUnits`&&e!==`height`&&e!==`href`&&e!==`id`&&e!==`image-rendering`&&e!==`in`&&e!==`in2`&&e!==`intercept`&&e!==`k1`&&e!==`k2`&&e!==`k3`&&e!==`k4`&&e!==`kernelMatrix`&&e!==`kernelUnitLength`&&e!==`lang`&&e!==`lengthAdjust`&&e!==`letter-spacing`&&e!==`lighting-color`&&e!==`marker-end`&&e!==`marker-mid`&&e!==`marker-start`&&e!==`markerHeight`&&e!==`markerUnits`&&e!==`markerWidth`&&e!==`mask`&&e!==`maskContentUnits`&&e!==`maskUnits`&&e!==`media`&&e!==`method`&&e!==`mode`&&e!==`numOctaves`&&e!==`offset`&&e!==`opacity`&&e!==`operator`&&e!==`order`&&e!==`orient`&&e!==`overflow`&&e!==`paint-order`&&e!==`path`&&e!==`pathLength`&&e!==`patternContentUnits`&&e!==`patternTransform`&&e!==`patternUnits`&&e!==`points`&&e!==`preserveAlpha`&&e!==`preserveAspectRatio`&&e!==`primitiveUnits`&&e!==`r`&&e!==`radius`&&e!==`refX`&&e!==`refY`&&e!==`result`&&e!==`rx`&&e!==`ry`&&e!==`scale`&&e!==`seed`&&e!==`shape-rendering`&&e!==`slope`&&e!==`specularConstant`&&e!==`specularExponent`&&e!==`spreadMethod`&&e!==`startOffset`&&e!==`stdDeviation`&&e!==`stitchTiles`&&e!==`stop-color`&&e!==`stop-opacity`&&e!==`stroke`&&e!==`stroke-dasharray`&&e!==`stroke-dashoffset`&&e!==`stroke-linecap`&&e!==`stroke-linejoin`&&e!==`stroke-miterlimit`&&e!==`stroke-opacity`&&e!==`stroke-width`&&e!==`style`&&e!==`surfaceScale`&&e!==`systemLanguage`&&e!==`tabindex`&&e!==`tableValues`&&e!==`targetX`&&e!==`targetY`&&e!==`text-anchor`&&e!==`text-decoration`&&e!==`text-rendering`&&e!==`textLength`&&e!==`transform`&&e!==`transform-origin`&&e!==`type`&&e!==`values`&&e!==`viewBox`&&e!==`visibility`&&e!==`width`&&e!==`word-spacing`&&e!==`writing-mode`&&e!==`x`&&e!==`x1`&&e!==`x2`&&e!==`xChannelSelector`&&e!==`y`&&e!==`y1`&&e!==`y2`&&e!==`yChannelSelector`&&e!==`z`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),o++)}return o===0},E=function n(r){n.errors=null;let i=0;if(typeof r!=`object`||!r||Array.isArray(r))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),i++;else{if(r.type!==void 0&&e(r,`type`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),i++),r.value!==void 0&&e(r,`value`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/value`}),i++),r.type!==void 0&&e(r,`type`)&&r.type!==`text`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),i++),r.value!==void 0&&e(r,`value`)){let o=null;(()=>{let e=0;return typeof r.value==`string`?r.value.length>4096&&t(r.value)>4096&&(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/0/maxLength`,instanceLocation:`#/value`}),e++):(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/0/type`,instanceLocation:`#/value`}),e++),e===0})()||(()=>{let t=0;if(typeof r.value!=`object`||!r.value||Array.isArray(r.value))o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/type`,instanceLocation:`#/value`}),t++;else{r.value.type!==void 0&&e(r.value,`type`)||(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/required`,instanceLocation:`#/value/type`}),t++),r.value.name!==void 0&&e(r.value,`name`)||(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/required`,instanceLocation:`#/value/name`}),t++),r.value.type!==void 0&&e(r.value,`type`)&&r.value.type!==`variable`&&(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/properties/type/const`,instanceLocation:`#/value/type`}),t++),r.value.name!==void 0&&e(r.value,`name`)&&r.value.name!==`initial`&&r.value.name!==`initials`&&(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/properties/name/enum`,instanceLocation:`#/value/name`}),t++);for(let e of Object.keys(r.value))e!==`type`&&e!==`name`&&(o===null&&(o=[]),o.push({keywordLocation:`#/properties/value/anyOf/1/additionalProperties`,instanceLocation:`#/value/`+a(e)}),t++)}return t===0})()||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/value/anyOf`,instanceLocation:`#/value`}),o&&n.errors.push(...o),i++)}for(let e of Object.keys(r))e!==`type`&&e!==`value`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),i++)}return i===0},D=function e(t){e.errors=null;let n=0,r=e.errors,a=g(t),o=g.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/allOf/0/$ref`,`#`))),n++),n===0},ne=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(n.type!==void 0&&e(n,`type`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),r++),n.type!==void 0&&e(n,`type`)&&n.type!==`component`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)){let e=t.errors,a=D(n.name),o=D.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/name/$ref`,`#/name`))),r++)}if(n.attributes!==void 0&&e(n,`attributes`)){let e=t.errors,a=T(n.attributes),o=T.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/attributes/$ref`,`#/attributes`))),r++)}for(let e of Object.keys(n))e!==`type`&&e!==`name`&&e!==`attributes`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},O=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(n.type!==void 0&&e(n,`type`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),r++),n.type!==void 0&&e(n,`type`)&&n.type!==`element`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)&&n.name!==`style`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/name/const`,instanceLocation:`#/name`}),r++),n.attributes!==void 0&&e(n,`attributes`)){let e=t.errors,a=T(n.attributes),o=T.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/attributes/$ref`,`#/attributes`))),r++)}if(n.children!==void 0&&e(n,`children`)){if(!Array.isArray(n.children))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/type`,instanceLocation:`#/children`}),r++;else{n.children.length>64&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/maxItems`,instanceLocation:`#/children`}),r++);for(let o=0;o<n.children.length;o++)if(n.children[o]!==void 0&&e(n.children,o)){if(typeof n.children[o]!=`object`||!n.children[o]||Array.isArray(n.children[o]))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/items/type`,instanceLocation:`#/children/`+o}),r++;else{if(n.children[o].type!==void 0&&e(n.children[o],`type`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/items/required`,instanceLocation:`#/children/`+o+`/type`}),r++),n.children[o].value!==void 0&&e(n.children[o],`value`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/items/required`,instanceLocation:`#/children/`+o+`/value`}),r++),n.children[o].type!==void 0&&e(n.children[o],`type`)&&n.children[o].type!==`text`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/items/properties/type/const`,instanceLocation:`#/children/`+o+`/type`}),r++),n.children[o].value!==void 0&&e(n.children[o],`value`)){let e=t.errors,a=w(n.children[o].value),s=w.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...s.map(e=>i(e,`#/properties/children/items/properties/value/$ref`,`#/children/`+o+`/value`))),r++)}for(let e of Object.keys(n.children[o]))e!==`type`&&e!==`value`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/items/additionalProperties`,instanceLocation:`#/children/`+o+`/`+a(e)}),r++)}}}}for(let e of Object.keys(n))e!==`type`&&e!==`name`&&e!==`attributes`&&e!==`children`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},re=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(n.type!==void 0&&e(n,`type`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),r++),n.type!==void 0&&e(n,`type`)&&n.type!==`element`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),r++),n.name!==void 0&&e(n,`name`)&&n.name!==`circle`&&n.name!==`clipPath`&&n.name!==`defs`&&n.name!==`desc`&&n.name!==`ellipse`&&n.name!==`feBlend`&&n.name!==`feColorMatrix`&&n.name!==`feComponentTransfer`&&n.name!==`feComposite`&&n.name!==`feConvolveMatrix`&&n.name!==`feDiffuseLighting`&&n.name!==`feDisplacementMap`&&n.name!==`feDistantLight`&&n.name!==`feDropShadow`&&n.name!==`feFlood`&&n.name!==`feFuncA`&&n.name!==`feFuncB`&&n.name!==`feFuncG`&&n.name!==`feFuncR`&&n.name!==`feGaussianBlur`&&n.name!==`feImage`&&n.name!==`feMerge`&&n.name!==`feMergeNode`&&n.name!==`feMorphology`&&n.name!==`feOffset`&&n.name!==`fePointLight`&&n.name!==`feSpecularLighting`&&n.name!==`feSpotLight`&&n.name!==`feTile`&&n.name!==`feTurbulence`&&n.name!==`filter`&&n.name!==`g`&&n.name!==`image`&&n.name!==`line`&&n.name!==`linearGradient`&&n.name!==`marker`&&n.name!==`mask`&&n.name!==`metadata`&&n.name!==`mpath`&&n.name!==`path`&&n.name!==`pattern`&&n.name!==`polygon`&&n.name!==`polyline`&&n.name!==`radialGradient`&&n.name!==`rect`&&n.name!==`stop`&&n.name!==`svg`&&n.name!==`switch`&&n.name!==`symbol`&&n.name!==`text`&&n.name!==`textPath`&&n.name!==`title`&&n.name!==`tspan`&&n.name!==`use`&&n.name!==`view`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/name/enum`,instanceLocation:`#/name`}),r++),n.attributes!==void 0&&e(n,`attributes`)){let e=t.errors,a=T(n.attributes),o=T.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/attributes/$ref`,`#/attributes`))),r++)}if(n.children!==void 0&&e(n,`children`)){if(!Array.isArray(n.children))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/type`,instanceLocation:`#/children`}),r++;else{n.children.length>1024&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/children/maxItems`,instanceLocation:`#/children`}),r++);for(let a=0;a<n.children.length;a++)if(n.children[a]!==void 0&&e(n.children,a)){let e=t.errors,o=k(n.children[a]),s=k.errors;t.errors=e,o||(t.errors===null&&(t.errors=[]),t.errors.push(...s.map(e=>i(e,`#/properties/children/items/$ref`,`#/children/`+a))),r++)}}}for(let e of Object.keys(n))e!==`type`&&e!==`name`&&e!==`attributes`&&e!==`children`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},k=function e(t){e.errors=null;let n=0;return(()=>{let n=0,r=e.errors,a=E(t),o=E.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/0/$ref`,`#`))),n++),n===0})()||(()=>{let n=0,r=e.errors,a=ne(t),o=ne.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/1/$ref`,`#`))),n++),n===0})()||(()=>{let n=0,r=e.errors,a=O(t),o=O.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/2/$ref`,`#`))),n++),n===0})()||(()=>{let n=0,r=e.errors,a=re(t),o=re.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/3/$ref`,`#`))),n++),n===0})()||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),n++),n===0},A=function e(t){e.errors=null;let n=0;return typeof t==`number`?(0<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),100>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},j=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.min!==void 0&&e(n,`min`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),r++),n.max!==void 0&&e(n,`max`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),r++),n.min!==void 0&&e(n,`min`)&&(typeof n.min==`number`?(-360<=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),r++),360>=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),r++)),n.max!==void 0&&e(n,`max`)&&(typeof n.max==`number`?(-360<=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),r++),360>=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),r++)),n.step!==void 0&&e(n,`step`)&&(typeof n.step==`number`?(0<n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),r++),720>=n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),r++));for(let e of Object.keys(n))e!==`min`&&e!==`max`&&e!==`step`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},ie=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.min!==void 0&&e(n,`min`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),r++),n.max!==void 0&&e(n,`max`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),r++),n.min!==void 0&&e(n,`min`)&&(typeof n.min==`number`?(0<=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),r++),10>=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),r++)),n.max!==void 0&&e(n,`max`)&&(typeof n.max==`number`?(0<=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),r++),10>=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),r++)),n.step!==void 0&&e(n,`step`)&&(typeof n.step==`number`?(0<n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),r++),10>=n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),r++));for(let e of Object.keys(n))e!==`min`&&e!==`max`&&e!==`step`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},ae=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{n.min!==void 0&&e(n,`min`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),r++),n.max!==void 0&&e(n,`max`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),r++),n.min!==void 0&&e(n,`min`)&&(typeof n.min==`number`?(-1e3<=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),r++),1e3>=n.min||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),r++)),n.max!==void 0&&e(n,`max`)&&(typeof n.max==`number`?(-1e3<=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),r++),1e3>=n.max||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),r++)),n.step!==void 0&&e(n,`step`)&&(typeof n.step==`number`?(0<n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),r++),2e3>=n.step||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),r++)):(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),r++));for(let e of Object.keys(n))e!==`min`&&e!==`max`&&e!==`step`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},oe=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(n.x!==void 0&&e(n,`x`)){let e=t.errors,a=ae(n.x),o=ae.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/x/$ref`,`#/x`))),r++)}if(n.y!==void 0&&e(n,`y`)){let e=t.errors,a=ae(n.y),o=ae.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/y/$ref`,`#/y`))),r++)}for(let e of Object.keys(n))e!==`x`&&e!==`y`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},se=RegExp(`^[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$`,`u`),ce=e=>{if(e.length<2)return!0;if(e.length===2)return!le(e[0],e[1]);let t=[],n=e.length>20?new Set:null,r=0,i=0;for(let a of e){if(typeof a==`object`)t.push(a);else if(n){if(n.add(a),n.size!==++r)return!1}else if(e.indexOf(a,i+1)!==-1)return!1;i++}for(let e=1;e<t.length;e++)for(let n=0;n<e;n++)if(le(t[e],t[n]))return!1;return!0},le=(e,t)=>{if(e===t)return!0;if(!e||!t||typeof e!=typeof t||e!==t&&typeof e!=`object`)return!1;let n=Object.getPrototypeOf(e);if(n!==Object.getPrototypeOf(t))return!1;if(n===Array.prototype)return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>le(e,t[n]));if(n===Object.prototype){let[n,r]=[Object.keys(e),Object.keys(t)];return n.length===r.length&&new Set([...n,...r]).size===n.length&&n.every(n=>le(e[n],t[n]))}return!1},ue=function n(r){n.errors=null;let o=0;if(typeof r!=`object`||!r||Array.isArray(r))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),o++;else{if(r.width!==void 0&&e(r,`width`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/width`}),o++),r.height!==void 0&&e(r,`height`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/height`}),o++),r.variants!==void 0&&e(r,`variants`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/variants`}),o++),r.width!==void 0&&e(r,`width`)&&(typeof r.width==`number`?(1<=r.width||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/width/minimum`,instanceLocation:`#/width`}),o++),1e6>=r.width||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/width/maximum`,instanceLocation:`#/width`}),o++)):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/width/type`,instanceLocation:`#/width`}),o++)),r.height!==void 0&&e(r,`height`)&&(typeof r.height==`number`?(1<=r.height||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/height/minimum`,instanceLocation:`#/height`}),o++),1e6>=r.height||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/height/maximum`,instanceLocation:`#/height`}),o++)):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/height/type`,instanceLocation:`#/height`}),o++)),r.probability!==void 0&&e(r,`probability`)){let e=n.errors,t=A(r.probability),a=A.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/probability/$ref`,`#/probability`))),o++)}if(r.rotate!==void 0&&e(r,`rotate`)){let e=n.errors,t=j(r.rotate),a=j.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/rotate/$ref`,`#/rotate`))),o++)}if(r.scale!==void 0&&e(r,`scale`)){let e=n.errors,t=ie(r.scale),a=ie.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/scale/$ref`,`#/scale`))),o++)}if(r.translate!==void 0&&e(r,`translate`)){let e=n.errors,t=oe(r.translate),a=oe.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/translate/$ref`,`#/translate`))),o++)}if(r.variants!==void 0&&e(r,`variants`)){if(typeof r.variants!=`object`||!r.variants||Array.isArray(r.variants))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/type`,instanceLocation:`#/variants`}),o++;else{Object.keys(r.variants).length>512&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/maxProperties`,instanceLocation:`#/variants`}),o++);for(let e of Object.keys(r.variants)){let t=n.errors,r=g(e),s=g.errors;n.errors=t,r||(n.errors===null&&(n.errors=[]),n.errors.push(...s.map(t=>i(t,`#/properties/variants/propertyNames/$ref`,`#/variants/`+a(e)))),o++)}for(let s of Object.keys(r.variants))if(typeof r.variants[s]!=`object`||!r.variants[s]||Array.isArray(r.variants[s]))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/type`,instanceLocation:`#/variants/`+a(s)}),o++;else{if(r.variants[s].elements!==void 0&&e(r.variants[s],`elements`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/required`,instanceLocation:`#/variants/`+a(s)+`/elements`}),o++),r.variants[s].elements!==void 0&&e(r.variants[s],`elements`)){if(!Array.isArray(r.variants[s].elements))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/elements/type`,instanceLocation:`#/variants/`+a(s)+`/elements`}),o++;else{r.variants[s].elements.length>1024&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/elements/maxItems`,instanceLocation:`#/variants/`+a(s)+`/elements`}),o++);for(let t=0;t<r.variants[s].elements.length;t++)if(r.variants[s].elements[t]!==void 0&&e(r.variants[s].elements,t)){let e=n.errors,c=k(r.variants[s].elements[t]),l=k.errors;n.errors=e,c||(n.errors===null&&(n.errors=[]),n.errors.push(...l.map(e=>i(e,`#/properties/variants/additionalProperties/properties/elements/items/$ref`,`#/variants/`+a(s)+`elements/`+t))),o++)}}}if(r.variants[s].weight!==void 0&&e(r.variants[s],`weight`)&&(typeof r.variants[s].weight==`number`?(0<=r.variants[s].weight||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/minimum`,instanceLocation:`#/variants/`+a(s)+`/weight`}),o++),1e6>=r.variants[s].weight||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/maximum`,instanceLocation:`#/variants/`+a(s)+`/weight`}),o++)):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/type`,instanceLocation:`#/variants/`+a(s)+`/weight`}),o++)),r.variants[s].tags!==void 0&&e(r.variants[s],`tags`)){if(!Array.isArray(r.variants[s].tags))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/type`,instanceLocation:`#/variants/`+a(s)+`/tags`}),o++;else{let i=o;r.variants[s].tags.length>32&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/maxItems`,instanceLocation:`#/variants/`+a(s)+`/tags`}),o++);for(let i=0;i<r.variants[s].tags.length;i++)if(r.variants[s].tags[i]!==void 0&&e(r.variants[s].tags,i)){if(typeof r.variants[s].tags[i]!=`string`)n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/type`,instanceLocation:`#/variants/`+a(s)+`tags/`+i}),o++;else{let e=o;r.variants[s].tags[i].length>129&&t(r.variants[s].tags[i])>129&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/maxLength`,instanceLocation:`#/variants/`+a(s)+`tags/`+i}),o++),o===e&&(se.test(r.variants[s].tags[i])||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/pattern`,instanceLocation:`#/variants/`+a(s)+`tags/`+i}),o++))}}o===i&&(ce(r.variants[s].tags)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/uniqueItems`,instanceLocation:`#/variants/`+a(s)+`/tags`}),o++))}}for(let e of Object.keys(r.variants[s]))e!==`elements`&&e!==`weight`&&e!==`tags`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/variants/additionalProperties/additionalProperties`,instanceLocation:`#/variants/`+a(s)+`/`+a(e)}),o++)}}}for(let e of Object.keys(r))e!==`width`&&e!==`height`&&e!==`probability`&&e!==`rotate`&&e!==`scale`&&e!==`translate`&&e!==`variants`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),o++)}return o===0},de=function t(n){t.errors=null;let r=0;if(typeof n!=`object`||!n||Array.isArray(n))t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(n.extends!==void 0&&e(n,`extends`)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/required`,instanceLocation:`#/extends`}),r++),n.extends!==void 0&&e(n,`extends`)){let e=t.errors,a=D(n.extends),o=D.errors;t.errors=e,a||(t.errors===null&&(t.errors=[]),t.errors.push(...o.map(e=>i(e,`#/properties/extends/$ref`,`#/extends`))),r++)}for(let e of Object.keys(n))e!==`extends`&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),r++)}return r===0},fe=RegExp(`^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$`,`u`),pe=function e(n){e.errors=null;let r=0;if(typeof n!=`string`)e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{let i=r;n.length>9&&t(n)>9&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),r===i&&(fe.test(n)||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),r++))}return r===0};return function n(o){n.errors=null;let s=0;if(typeof o!=`object`||!o||Array.isArray(o))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),s++;else{if(o.canvas!==void 0&&e(o,`canvas`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/required`,instanceLocation:`#/canvas`}),s++),o.$id!==void 0&&e(o,`$id`)&&(typeof o.$id==`string`?o.$id.length>256&&t(o.$id)>256&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$id/maxLength`,instanceLocation:`#/$id`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$id/type`,instanceLocation:`#/$id`}),s++)),o.$schema!==void 0&&e(o,`$schema`)&&(typeof o.$schema==`string`?o.$schema.length>256&&t(o.$schema)>256&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$schema/maxLength`,instanceLocation:`#/$schema`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$schema/type`,instanceLocation:`#/$schema`}),s++)),o.$comment!==void 0&&e(o,`$comment`)&&(typeof o.$comment==`string`?o.$comment.length>4096&&t(o.$comment)>4096&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$comment/maxLength`,instanceLocation:`#/$comment`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/$comment/type`,instanceLocation:`#/$comment`}),s++)),o.meta!==void 0&&e(o,`meta`)){if(typeof o.meta!=`object`||!o.meta||Array.isArray(o.meta))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/type`,instanceLocation:`#/meta`}),s++;else{if(o.meta.license!==void 0&&e(o.meta,`license`)){if(typeof o.meta.license!=`object`||!o.meta.license||Array.isArray(o.meta.license))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/type`,instanceLocation:`#/meta/license`}),s++;else{if(o.meta.license.name!==void 0&&e(o.meta.license,`name`)&&(typeof o.meta.license.name==`string`?o.meta.license.name.length>128&&t(o.meta.license.name)>128&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/name/maxLength`,instanceLocation:`#/meta/license/name`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/name/type`,instanceLocation:`#/meta/license/name`}),s++)),o.meta.license.url!==void 0&&e(o.meta.license,`url`)){let e=n.errors,t=r(o.meta.license.url),a=r.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/meta/properties/license/properties/url/$ref`,`#/meta/license/url`))),s++)}o.meta.license.text!==void 0&&e(o.meta.license,`text`)&&(typeof o.meta.license.text==`string`?o.meta.license.text.length>32768&&t(o.meta.license.text)>32768&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/text/maxLength`,instanceLocation:`#/meta/license/text`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/text/type`,instanceLocation:`#/meta/license/text`}),s++));for(let e of Object.keys(o.meta.license))e!==`name`&&e!==`url`&&e!==`text`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/license/additionalProperties`,instanceLocation:`#/meta/license/`+a(e)}),s++)}}if(o.meta.creator!==void 0&&e(o.meta,`creator`)){if(typeof o.meta.creator!=`object`||!o.meta.creator||Array.isArray(o.meta.creator))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/creator/type`,instanceLocation:`#/meta/creator`}),s++;else{if(o.meta.creator.name!==void 0&&e(o.meta.creator,`name`)&&(typeof o.meta.creator.name==`string`?o.meta.creator.name.length>128&&t(o.meta.creator.name)>128&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/creator/properties/name/maxLength`,instanceLocation:`#/meta/creator/name`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/creator/properties/name/type`,instanceLocation:`#/meta/creator/name`}),s++)),o.meta.creator.url!==void 0&&e(o.meta.creator,`url`)){let e=n.errors,t=r(o.meta.creator.url),a=r.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/meta/properties/creator/properties/url/$ref`,`#/meta/creator/url`))),s++)}for(let e of Object.keys(o.meta.creator))e!==`name`&&e!==`url`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/creator/additionalProperties`,instanceLocation:`#/meta/creator/`+a(e)}),s++)}}if(o.meta.source!==void 0&&e(o.meta,`source`)){if(typeof o.meta.source!=`object`||!o.meta.source||Array.isArray(o.meta.source))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/source/type`,instanceLocation:`#/meta/source`}),s++;else{if(o.meta.source.name!==void 0&&e(o.meta.source,`name`)&&(typeof o.meta.source.name==`string`?o.meta.source.name.length>128&&t(o.meta.source.name)>128&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/source/properties/name/maxLength`,instanceLocation:`#/meta/source/name`}),s++):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/source/properties/name/type`,instanceLocation:`#/meta/source/name`}),s++)),o.meta.source.url!==void 0&&e(o.meta.source,`url`)){let e=n.errors,t=r(o.meta.source.url),a=r.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/meta/properties/source/properties/url/$ref`,`#/meta/source/url`))),s++)}for(let e of Object.keys(o.meta.source))e!==`name`&&e!==`url`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/properties/source/additionalProperties`,instanceLocation:`#/meta/source/`+a(e)}),s++)}}for(let e of Object.keys(o.meta))e!==`license`&&e!==`creator`&&e!==`source`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/meta/additionalProperties`,instanceLocation:`#/meta/`+a(e)}),s++)}}if(o.attributes!==void 0&&e(o,`attributes`)){let e=n.errors,t=T(o.attributes),r=T.errors;n.errors=e,t||(n.errors===null&&(n.errors=[]),n.errors.push(...r.map(e=>i(e,`#/properties/attributes/$ref`,`#/attributes`))),s++)}if(o.canvas!==void 0&&e(o,`canvas`)){if(typeof o.canvas!=`object`||!o.canvas||Array.isArray(o.canvas))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/type`,instanceLocation:`#/canvas`}),s++;else{if(o.canvas.elements!==void 0&&e(o.canvas,`elements`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/elements`}),s++),o.canvas.width!==void 0&&e(o.canvas,`width`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/width`}),s++),o.canvas.height!==void 0&&e(o.canvas,`height`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/height`}),s++),o.canvas.elements!==void 0&&e(o.canvas,`elements`)){if(!Array.isArray(o.canvas.elements))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/elements/type`,instanceLocation:`#/canvas/elements`}),s++;else{o.canvas.elements.length>1024&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/elements/maxItems`,instanceLocation:`#/canvas/elements`}),s++);for(let t=0;t<o.canvas.elements.length;t++)if(o.canvas.elements[t]!==void 0&&e(o.canvas.elements,t)){let e=n.errors,r=k(o.canvas.elements[t]),a=k.errors;n.errors=e,r||(n.errors===null&&(n.errors=[]),n.errors.push(...a.map(e=>i(e,`#/properties/canvas/properties/elements/items/$ref`,`#/canvas/elements/`+t))),s++)}}}o.canvas.width!==void 0&&e(o.canvas,`width`)&&(typeof o.canvas.width==`number`?(1<=o.canvas.width||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/width/minimum`,instanceLocation:`#/canvas/width`}),s++),1e6>=o.canvas.width||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/width/maximum`,instanceLocation:`#/canvas/width`}),s++)):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/width/type`,instanceLocation:`#/canvas/width`}),s++)),o.canvas.height!==void 0&&e(o.canvas,`height`)&&(typeof o.canvas.height==`number`?(1<=o.canvas.height||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/height/minimum`,instanceLocation:`#/canvas/height`}),s++),1e6>=o.canvas.height||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/height/maximum`,instanceLocation:`#/canvas/height`}),s++)):(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/properties/height/type`,instanceLocation:`#/canvas/height`}),s++));for(let e of Object.keys(o.canvas))e!==`elements`&&e!==`width`&&e!==`height`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/canvas/additionalProperties`,instanceLocation:`#/canvas/`+a(e)}),s++)}}if(o.components!==void 0&&e(o,`components`)){if(typeof o.components!=`object`||!o.components||Array.isArray(o.components))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/components/type`,instanceLocation:`#/components`}),s++;else{Object.keys(o.components).length>512&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/components/maxProperties`,instanceLocation:`#/components`}),s++);for(let e of Object.keys(o.components)){let t=n.errors,r=g(e),o=g.errors;n.errors=t,r||(n.errors===null&&(n.errors=[]),n.errors.push(...o.map(t=>i(t,`#/properties/components/propertyNames/$ref`,`#/components/`+a(e)))),s++)}for(let e of Object.keys(o.components))(()=>{let t=0,r=n.errors,s=ue(o.components[e]),c=ue.errors;return n.errors=r,s||(n.errors===null&&(n.errors=[]),n.errors.push(...c.map(t=>i(t,`#/properties/components/additionalProperties/anyOf/0/$ref`,`#/components/`+a(e)))),t++),t===0})()||(()=>{let t=0,r=n.errors,s=de(o.components[e]),c=de.errors;return n.errors=r,s||(n.errors===null&&(n.errors=[]),n.errors.push(...c.map(t=>i(t,`#/properties/components/additionalProperties/anyOf/1/$ref`,`#/components/`+a(e)))),t++),t===0})()||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/components/additionalProperties/anyOf`,instanceLocation:`#/components/`+a(e)}),s++)}}if(o.colors!==void 0&&e(o,`colors`)){if(typeof o.colors!=`object`||!o.colors||Array.isArray(o.colors))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/type`,instanceLocation:`#/colors`}),s++;else{Object.keys(o.colors).length>512&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/maxProperties`,instanceLocation:`#/colors`}),s++);for(let e of Object.keys(o.colors)){let t=n.errors,r=g(e),o=g.errors;n.errors=t,r||(n.errors===null&&(n.errors=[]),n.errors.push(...o.map(t=>i(t,`#/properties/colors/propertyNames/$ref`,`#/colors/`+a(e)))),s++)}for(let t of Object.keys(o.colors))if(typeof o.colors[t]!=`object`||!o.colors[t]||Array.isArray(o.colors[t]))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/type`,instanceLocation:`#/colors/`+a(t)}),s++;else{if(o.colors[t].values!==void 0&&e(o.colors[t],`values`)||(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/required`,instanceLocation:`#/colors/`+a(t)+`/values`}),s++),o.colors[t].values!==void 0&&e(o.colors[t],`values`)){if(!Array.isArray(o.colors[t].values))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/type`,instanceLocation:`#/colors/`+a(t)+`/values`}),s++;else{o.colors[t].values.length>128&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/maxItems`,instanceLocation:`#/colors/`+a(t)+`/values`}),s++),o.colors[t].values.length<1&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/minItems`,instanceLocation:`#/colors/`+a(t)+`/values`}),s++);for(let r=0;r<o.colors[t].values.length;r++)if(o.colors[t].values[r]!==void 0&&e(o.colors[t].values,r)){let e=n.errors,c=pe(o.colors[t].values[r]),l=pe.errors;n.errors=e,c||(n.errors===null&&(n.errors=[]),n.errors.push(...l.map(e=>i(e,`#/properties/colors/additionalProperties/properties/values/items/$ref`,`#/colors/`+a(t)+`values/`+r))),s++)}}}if(o.colors[t].notEqualTo!==void 0&&e(o.colors[t],`notEqualTo`)){if(!Array.isArray(o.colors[t].notEqualTo))n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/notEqualTo/type`,instanceLocation:`#/colors/`+a(t)+`/notEqualTo`}),s++;else{o.colors[t].notEqualTo.length>64&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/notEqualTo/maxItems`,instanceLocation:`#/colors/`+a(t)+`/notEqualTo`}),s++);for(let r=0;r<o.colors[t].notEqualTo.length;r++)if(o.colors[t].notEqualTo[r]!==void 0&&e(o.colors[t].notEqualTo,r)){let e=n.errors,c=_(o.colors[t].notEqualTo[r]),l=_.errors;n.errors=e,c||(n.errors===null&&(n.errors=[]),n.errors.push(...l.map(e=>i(e,`#/properties/colors/additionalProperties/properties/notEqualTo/items/$ref`,`#/colors/`+a(t)+`notEqualTo/`+r))),s++)}}}if(o.colors[t].contrastTo!==void 0&&e(o.colors[t],`contrastTo`)){let e=n.errors,r=_(o.colors[t].contrastTo),c=_.errors;n.errors=e,r||(n.errors===null&&(n.errors=[]),n.errors.push(...c.map(e=>i(e,`#/properties/colors/additionalProperties/properties/contrastTo/$ref`,`#/colors/`+a(t)+`/contrastTo`))),s++)}for(let e of Object.keys(o.colors[t]))e!==`values`&&e!==`notEqualTo`&&e!==`contrastTo`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/properties/colors/additionalProperties/additionalProperties`,instanceLocation:`#/colors/`+a(t)+`/`+a(e)}),s++)}}}for(let e of Object.keys(o))e!==`$id`&&e!==`$schema`&&e!==`$comment`&&e!==`meta`&&e!==`attributes`&&e!==`canvas`&&e!==`components`&&e!==`colors`&&(n.errors===null&&(n.errors=[]),n.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+a(e)}),s++)}return s===0}})(),tn={type:`has an invalid type`,enum:`must be one of the allowed values`,const:`must equal the expected value`,pattern:`does not match the required pattern`,required:`is required but missing`,additionalProperties:`has an unexpected property`,propertyNames:`has an invalid property name`,minimum:`is smaller than allowed`,maximum:`is larger than allowed`,exclusiveMinimum:`is smaller than allowed`,exclusiveMaximum:`is larger than allowed`,minLength:`is too short`,maxLength:`is too long`,minItems:`has too few items`,maxItems:`has too many items`,uniqueItems:`has duplicate items`,minProperties:`has too few properties`,maxProperties:`has too many properties`,anyOf:`does not match any allowed variant`,oneOf:`does not match exactly one allowed variant`,allOf:`does not match all required schemas`,not:`matches a disallowed schema`};function nn(e){let t=e.keywordLocation.slice(e.keywordLocation.lastIndexOf(`/`)+1);return{instancePath:e.instanceLocation.slice(1),schemaPath:e.keywordLocation,keyword:t,message:tn[t]??`must satisfy '${t}'`}}var rn=class{static validate(e){if(!en(e))throw new $t((en.errors??[]).map(nn))}},an=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},on=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},sn,cn=class{constructor(e){sn.set(this,void 0),an(this,sn,e,`f`)}name(){return on(this,sn,`f`).name}url(){return on(this,sn,`f`).url}text(){return on(this,sn,`f`).text}};sn=new WeakMap;var ln=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},un=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},dn,fn=class{constructor(e){dn.set(this,void 0),ln(this,dn,e,`f`)}name(){return un(this,dn,`f`).name}url(){return un(this,dn,`f`).url}};dn=new WeakMap;var pn=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},mn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},hn,gn=class{constructor(e){hn.set(this,void 0),pn(this,hn,e,`f`)}name(){return mn(this,hn,`f`).name}url(){return mn(this,hn,`f`).url}};hn=new WeakMap;var _n=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},vn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},yn,bn,xn,Sn,Cn=class{constructor(e){yn.set(this,void 0),bn.set(this,void 0),xn.set(this,void 0),Sn.set(this,void 0),_n(this,yn,e,`f`)}license(){return _n(this,bn,vn(this,bn,`f`)??new cn(vn(this,yn,`f`).license??{}),`f`),vn(this,bn,`f`)}creator(){return _n(this,xn,vn(this,xn,`f`)??new fn(vn(this,yn,`f`).creator??{}),`f`),vn(this,xn,`f`)}source(){return _n(this,Sn,vn(this,Sn,`f`)??new gn(vn(this,yn,`f`).source??{}),`f`),vn(this,Sn,`f`)}};yn=new WeakMap,bn=new WeakMap,xn=new WeakMap,Sn=new WeakMap;var wn=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Tn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},En,Dn,On=class e{constructor(e){En.set(this,void 0),Dn.set(this,void 0),wn(this,En,e,`f`)}type(){return Tn(this,En,`f`).type}name(){return Tn(this,En,`f`).name}value(){return Tn(this,En,`f`).value}attributes(){return Tn(this,En,`f`).attributes}children(){return wn(this,Dn,Tn(this,Dn,`f`)??(Tn(this,En,`f`).children??[]).map(t=>new e(t)),`f`),Tn(this,Dn,`f`)}};En=new WeakMap,Dn=new WeakMap;var kn=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},An=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},jn,Mn,Nn=class{constructor(e){jn.set(this,void 0),Mn.set(this,void 0),kn(this,jn,e,`f`)}width(){return An(this,jn,`f`).width}height(){return An(this,jn,`f`).height}elements(){return kn(this,Mn,An(this,Mn,`f`)??An(this,jn,`f`).elements.map(e=>new On(e)),`f`),An(this,Mn,`f`)}};jn=new WeakMap,Mn=new WeakMap;var Pn=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Fn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},In,Ln=class{constructor(e){In.set(this,void 0),Pn(this,In,e,`f`)}x(){return Fn(this,In,`f`).x}y(){return Fn(this,In,`f`).y}};In=new WeakMap;var Rn=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},zn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Bn,Vn,Hn=class{constructor(e){Bn.set(this,void 0),Vn.set(this,void 0),Rn(this,Bn,e,`f`)}elements(){return Rn(this,Vn,zn(this,Vn,`f`)??zn(this,Bn,`f`).elements.map(e=>new On(e)),`f`),zn(this,Vn,`f`)}weight(){return zn(this,Bn,`f`).weight??1}tags(){return zn(this,Bn,`f`).tags??[]}hasTag(e,t){return t===void 0?this.tags().some(t=>t===e||t.startsWith(`${e}:`)):this.tags().includes(`${e}:${t}`)}};Bn=new WeakMap,Vn=new WeakMap;var Un=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Wn=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn=class{constructor(e,t,n){Gn.add(this),Kn.set(this,void 0),qn.set(this,void 0),Jn.set(this,void 0),Yn.set(this,void 0),Xn.set(this,void 0),Un(this,Kn,t,`f`),Un(this,qn,e,`f`),Un(this,Jn,n,`f`)}name(){return Wn(this,qn,`f`)}extendsName(){return`extends`in Wn(this,Kn,`f`)?Wn(this,Kn,`f`).extends:void 0}sourceName(){return this.extendsName()??Wn(this,qn,`f`)}width(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).width():Wn(this,Gn,`m`,Zn).call(this).width}height(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).height():Wn(this,Gn,`m`,Zn).call(this).height}probability(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).probability():Wn(this,Gn,`m`,Zn).call(this).probability??100}rotate(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).rotate():Wn(this,Gn,`m`,Zn).call(this).rotate}scale(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).scale():Wn(this,Gn,`m`,Zn).call(this).scale}translate(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).translate():(Un(this,Yn,Wn(this,Yn,`f`)??new Ln(Wn(this,Gn,`m`,Zn).call(this).translate??{}),`f`),Wn(this,Yn,`f`))}variants(){return Wn(this,Jn,`f`)?Wn(this,Jn,`f`).variants():(Un(this,Xn,Wn(this,Xn,`f`)??new Map(Object.entries(Wn(this,Gn,`m`,Zn).call(this).variants).map(([e,t])=>[e,new Hn(t)])),`f`),Wn(this,Xn,`f`))}};Kn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Gn=new WeakSet,Zn=function(){return Wn(this,Kn,`f`)};var $n=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},er=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},tr,nr=class{constructor(e){tr.set(this,void 0),$n(this,tr,e,`f`)}values(){return er(this,tr,`f`).values}notEqualTo(){return er(this,tr,`f`).notEqualTo??[]}contrastTo(){return er(this,tr,`f`).contrastTo}};tr=new WeakMap;var rr=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},ir=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},ar,or,sr,cr,lr,ur,dr,fr,pr,mr=class{constructor(e){ar.add(this),sr.set(this,void 0),cr.set(this,void 0),lr.set(this,void 0),ur.set(this,void 0),dr.set(this,void 0),rn.validate(e),rr(this,sr,structuredClone(e),`f`),ir(this,ar,`m`,fr).call(this)}id(){return ir(this,sr,`f`).$id}schema(){return ir(this,sr,`f`).$schema}comment(){return ir(this,sr,`f`).$comment}meta(){return rr(this,cr,ir(this,cr,`f`)??new Cn(ir(this,sr,`f`).meta??{}),`f`),ir(this,cr,`f`)}attributes(){return structuredClone(ir(this,sr,`f`).attributes??{})}definition(){return structuredClone(ir(this,sr,`f`))}canvas(){return rr(this,lr,ir(this,lr,`f`)??new Nn(ir(this,sr,`f`).canvas),`f`),ir(this,lr,`f`)}components(){if(ir(this,ur,`f`))return ir(this,ur,`f`);let e=Object.entries(ir(this,sr,`f`).components??{}),t=new Map;for(let[n,r]of e)ir(or,or,`m`,pr).call(or,r)||t.set(n,new Qn(n,r));for(let[n,r]of e)ir(or,or,`m`,pr).call(or,r)&&t.set(n,new Qn(n,r,t.get(r.extends)));return rr(this,ur,t,`f`),ir(this,ur,`f`)}colors(){return rr(this,dr,ir(this,dr,`f`)??new Map(Object.entries(ir(this,sr,`f`).colors??{}).map(([e,t])=>[e,new nr(t)])),`f`),ir(this,dr,`f`)}};or=mr,sr=new WeakMap,cr=new WeakMap,lr=new WeakMap,ur=new WeakMap,dr=new WeakMap,ar=new WeakSet,fr=function(){let e=ir(this,sr,`f`).components;if(!e)return;let t=[];for(let[n,r]of Object.entries(e)){if(!ir(or,or,`m`,pr).call(or,r))continue;let i=r.extends,a=e[i];a?ir(or,or,`m`,pr).call(or,a)&&t.push({instancePath:`/components/${n}/extends`,message:`references alias "${i}" — alias chains are not allowed`}):t.push({instancePath:`/components/${n}/extends`,message:`references unknown component "${i}"`})}if(t.length>0)throw new $t(t)},pr=function(e){return`extends`in e};var hr=class extends Qt{constructor(e){super(`Invalid options`,e),this.name=`OptionsValidationError`}},gr=(function(){let e=e=>/[\uD800-\uDFFF]/.test(e)?[...e].length:e.length,t=e=>/~\//.test(e)?`${e}`.replace(/~/g,`~0`).replace(/\//g,`~1`):e,n=Function.prototype.call.bind(Object.prototype.hasOwnProperty),r=function e(t){e.errors=null;let n=0;return typeof t==`string`?t!==`none`&&t!==`horizontal`&&t!==`vertical`&&t!==`both`&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/enum`,instanceLocation:`#`}),n++):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},i=({keywordLocation:e,instanceLocation:t},n,r)=>({keywordLocation:`${n}${e.slice(1)}`,instanceLocation:`${r}${t.slice(1)}`}),a=RegExp(`^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$`,`u`),o=function t(n){t.errors=null;let r=0;if(typeof n!=`string`)t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{let i=r;n.length>256&&e(n)>256&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),r===i&&(a.test(n)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),r++))}return r===0},s=function e(t){e.errors=null;let n=0;return Number.isInteger(t)?(1<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),1e3>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},c=function e(t){e.errors=null;let n=0;return typeof t==`number`?(0<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),10>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},l=function e(t){e.errors=null;let r=0,a=null;return(()=>{let n=0,r=e.errors,a=c(t),o=c.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/0/$ref`,`#`))),n++),n===0})()||(()=>{let r=0;if(!Array.isArray(t))a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),r++;else{t.length>2&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),r++),t.length<0&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),r++);for(let a=0;a<t.length;a++)if(t[a]!==void 0&&n(t,a)){let n=e.errors,o=c(t[a]),s=c.errors;e.errors=n,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/anyOf/1/items/$ref`,`#/`+a))),r++)}}return r===0})()||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),a&&e.errors.push(...a),r++),r===0},u=function e(t){e.errors=null;let n=0;return typeof t==`number`?(0<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),50>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},d=RegExp(`^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$`,`u`),f=function t(n){t.errors=null;let r=0;if(typeof n!=`string`)t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{let i=r;n.length>130&&e(n)>130&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),r===i&&(d.test(n)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),r++))}return r===0},p=RegExp(`^[a-z][a-zA-Z0-9]*Probability$`,`u`),m=RegExp(`^[a-z][a-zA-Z0-9]*Variant$`,`u`),h=RegExp(`^[a-z][a-zA-Z0-9]*$`,`u`),g=function t(n){t.errors=null;let r=0;if(typeof n!=`string`)t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{let i=r;n.length>64&&e(n)>64&&(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),r++),r===i&&(h.test(n)||(t.errors===null&&(t.errors=[]),t.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),r++))}return r===0},_=RegExp(`^[a-z][a-zA-Z0-9]*Color$`,`u`),v=RegExp(`^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$`,`u`),y=function e(t){e.errors=null;let n=0;return typeof t==`string`?n===n&&(v.test(t)||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},b=RegExp(`^[a-z][a-zA-Z0-9]*ColorFill$`,`u`),x=function e(t){e.errors=null;let n=0;return typeof t==`string`?t!==`solid`&&t!==`linear`&&t!==`radial`&&(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/enum`,instanceLocation:`#`}),n++):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},ee=RegExp(`^[a-z][a-zA-Z0-9]*ColorFillStops$`,`u`),te=function e(t){e.errors=null;let n=0;return Number.isInteger(t)?2<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},S=RegExp(`^[a-z][a-zA-Z0-9]*ColorAngle$`,`u`),C=function e(t){e.errors=null;let n=0;return typeof t==`number`?(-360<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),360>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},w=function e(t){e.errors=null;let r=0,a=null;return(()=>{let n=0,r=e.errors,a=C(t),o=C.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/0/$ref`,`#`))),n++),n===0})()||(()=>{let r=0;if(!Array.isArray(t))a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),r++;else{t.length>2&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),r++),t.length<0&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),r++);for(let a=0;a<t.length;a++)if(t[a]!==void 0&&n(t,a)){let n=e.errors,o=C(t[a]),s=C.errors;e.errors=n,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/anyOf/1/items/$ref`,`#/`+a))),r++)}}return r===0})()||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),a&&e.errors.push(...a),r++),r===0},T=RegExp(`^[a-z][a-zA-Z0-9]*ColorOrder$`,`u`),E=function e(t){e.errors=null;let n=0;return typeof t==`number`?(-1e3<=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),n++),1e3>=t||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),n++)):(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++),n===0},D=function e(t){e.errors=null;let r=0,a=null;return(()=>{let n=0,r=e.errors,a=E(t),o=E.errors;return e.errors=r,a||(e.errors===null&&(e.errors=[]),e.errors.push(...o.map(e=>i(e,`#/anyOf/0/$ref`,`#`))),n++),n===0})()||(()=>{let r=0;if(!Array.isArray(t))a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),r++;else{t.length>2&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),r++),t.length<0&&(a===null&&(a=[]),a.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),r++);for(let a=0;a<t.length;a++)if(t[a]!==void 0&&n(t,a)){let n=e.errors,o=E(t[a]),s=E.errors;e.errors=n,o||(e.errors===null&&(e.errors=[]),e.errors.push(...s.map(e=>i(e,`#/anyOf/1/items/$ref`,`#/`+a))),r++)}}return r===0})()||(e.errors===null&&(e.errors=[]),e.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),a&&e.errors.push(...a),r++),r===0};return function a(c){a.errors=null;let d=0;if(typeof c!=`object`||!c||Array.isArray(c))a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),d++;else{let h=d;Object.keys(c).length>512&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/maxProperties`,instanceLocation:`#`}),d++);for(let n of Object.keys(c))n.length>128&&e(n)>128&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/propertyNames/maxLength`,instanceLocation:`#/`+t(n)}),d++);if(c.seed!==void 0&&n(c,`seed`)&&(typeof c.seed==`string`?c.seed.length>1024&&e(c.seed)>1024&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/seed/maxLength`,instanceLocation:`#/seed`}),d++):(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/seed/type`,instanceLocation:`#/seed`}),d++)),c.size!==void 0&&n(c,`size`)&&(Number.isInteger(c.size)?(1<=c.size||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/size/minimum`,instanceLocation:`#/size`}),d++),4096>=c.size||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/size/maximum`,instanceLocation:`#/size`}),d++)):(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/size/type`,instanceLocation:`#/size`}),d++)),c.idRandomization!==void 0&&n(c,`idRandomization`)&&typeof c.idRandomization!=`boolean`&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/idRandomization/type`,instanceLocation:`#/idRandomization`}),d++),c.title!==void 0&&n(c,`title`)&&(typeof c.title==`string`?c.title.length>256&&e(c.title)>256&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/title/maxLength`,instanceLocation:`#/title`}),d++):(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/title/type`,instanceLocation:`#/title`}),d++)),c.flip!==void 0&&n(c,`flip`)){let e=null;(()=>{let e=0,t=a.errors,n=r(c.flip),o=r.errors;return a.errors=t,n||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(e=>i(e,`#/properties/flip/anyOf/0/$ref`,`#/flip`))),e++),e===0})()||(()=>{let t=0;if(!Array.isArray(c.flip))e===null&&(e=[]),e.push({keywordLocation:`#/properties/flip/anyOf/1/type`,instanceLocation:`#/flip`}),t++;else{c.flip.length>4&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/flip/anyOf/1/maxItems`,instanceLocation:`#/flip`}),t++),c.flip.length<0&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/flip/anyOf/1/minItems`,instanceLocation:`#/flip`}),t++);for(let e=0;e<c.flip.length;e++)if(c.flip[e]!==void 0&&n(c.flip,e)){let n=a.errors,o=r(c.flip[e]),s=r.errors;a.errors=n,o||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(t=>i(t,`#/properties/flip/anyOf/1/items/$ref`,`#/flip/`+e))),t++)}}return t===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/flip/anyOf`,instanceLocation:`#/flip`}),e&&a.errors.push(...e),d++)}if(c.fontFamily!==void 0&&n(c,`fontFamily`)){let e=null;(()=>{let e=0,t=a.errors,n=o(c.fontFamily),r=o.errors;return a.errors=t,n||(a.errors===null&&(a.errors=[]),a.errors.push(...r.map(e=>i(e,`#/properties/fontFamily/anyOf/0/$ref`,`#/fontFamily`))),e++),e===0})()||(()=>{let t=0;if(!Array.isArray(c.fontFamily))e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontFamily/anyOf/1/type`,instanceLocation:`#/fontFamily`}),t++;else{c.fontFamily.length>128&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontFamily/anyOf/1/maxItems`,instanceLocation:`#/fontFamily`}),t++),c.fontFamily.length<0&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontFamily/anyOf/1/minItems`,instanceLocation:`#/fontFamily`}),t++);for(let e=0;e<c.fontFamily.length;e++)if(c.fontFamily[e]!==void 0&&n(c.fontFamily,e)){let n=a.errors,r=o(c.fontFamily[e]),s=o.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(t=>i(t,`#/properties/fontFamily/anyOf/1/items/$ref`,`#/fontFamily/`+e))),t++)}}return t===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/fontFamily/anyOf`,instanceLocation:`#/fontFamily`}),e&&a.errors.push(...e),d++)}if(c.fontWeight!==void 0&&n(c,`fontWeight`)){let e=null;(()=>{let e=0,t=a.errors,n=s(c.fontWeight),r=s.errors;return a.errors=t,n||(a.errors===null&&(a.errors=[]),a.errors.push(...r.map(e=>i(e,`#/properties/fontWeight/anyOf/0/$ref`,`#/fontWeight`))),e++),e===0})()||(()=>{let t=0;if(!Array.isArray(c.fontWeight))e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontWeight/anyOf/1/type`,instanceLocation:`#/fontWeight`}),t++;else{c.fontWeight.length>128&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontWeight/anyOf/1/maxItems`,instanceLocation:`#/fontWeight`}),t++),c.fontWeight.length<0&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/fontWeight/anyOf/1/minItems`,instanceLocation:`#/fontWeight`}),t++);for(let e=0;e<c.fontWeight.length;e++)if(c.fontWeight[e]!==void 0&&n(c.fontWeight,e)){let n=a.errors,r=s(c.fontWeight[e]),o=s.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(t=>i(t,`#/properties/fontWeight/anyOf/1/items/$ref`,`#/fontWeight/`+e))),t++)}}return t===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/fontWeight/anyOf`,instanceLocation:`#/fontWeight`}),e&&a.errors.push(...e),d++)}if(c.scale!==void 0&&n(c,`scale`)){let e=a.errors,t=l(c.scale),n=l.errors;a.errors=e,t||(a.errors===null&&(a.errors=[]),a.errors.push(...n.map(e=>i(e,`#/properties/scale/allOf/0/$ref`,`#/scale`))),d++)}if(c.borderRadius!==void 0&&n(c,`borderRadius`)){let e=null;(()=>{let e=0,t=a.errors,n=u(c.borderRadius),r=u.errors;return a.errors=t,n||(a.errors===null&&(a.errors=[]),a.errors.push(...r.map(e=>i(e,`#/properties/borderRadius/anyOf/0/$ref`,`#/borderRadius`))),e++),e===0})()||(()=>{let t=0;if(!Array.isArray(c.borderRadius))e===null&&(e=[]),e.push({keywordLocation:`#/properties/borderRadius/anyOf/1/type`,instanceLocation:`#/borderRadius`}),t++;else{c.borderRadius.length>2&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/borderRadius/anyOf/1/maxItems`,instanceLocation:`#/borderRadius`}),t++),c.borderRadius.length<0&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/borderRadius/anyOf/1/minItems`,instanceLocation:`#/borderRadius`}),t++);for(let e=0;e<c.borderRadius.length;e++)if(c.borderRadius[e]!==void 0&&n(c.borderRadius,e)){let n=a.errors,r=u(c.borderRadius[e]),o=u.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(t=>i(t,`#/properties/borderRadius/anyOf/1/items/$ref`,`#/borderRadius/`+e))),t++)}}return t===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/borderRadius/anyOf`,instanceLocation:`#/borderRadius`}),e&&a.errors.push(...e),d++)}if(c.tags!==void 0&&n(c,`tags`)){let e=null;(()=>{let e=0,t=a.errors,n=f(c.tags),r=f.errors;return a.errors=t,n||(a.errors===null&&(a.errors=[]),a.errors.push(...r.map(e=>i(e,`#/properties/tags/anyOf/0/$ref`,`#/tags`))),e++),e===0})()||(()=>{let t=0;if(!Array.isArray(c.tags))e===null&&(e=[]),e.push({keywordLocation:`#/properties/tags/anyOf/1/type`,instanceLocation:`#/tags`}),t++;else{c.tags.length>128&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/tags/anyOf/1/maxItems`,instanceLocation:`#/tags`}),t++),c.tags.length<0&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/tags/anyOf/1/minItems`,instanceLocation:`#/tags`}),t++);for(let e=0;e<c.tags.length;e++)if(c.tags[e]!==void 0&&n(c.tags,e)){let n=a.errors,r=f(c.tags[e]),o=f.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(t=>i(t,`#/properties/tags/anyOf/1/items/$ref`,`#/tags/`+e))),t++)}}return t===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/properties/tags/anyOf`,instanceLocation:`#/tags`}),e&&a.errors.push(...e),d++)}if(d===h){for(let e of Object.keys(c)){if(p.test(e)&&(typeof c[e]==`number`?(0<=c[e]||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/minimum`,instanceLocation:`#/`+t(e)}),d++),100>=c[e]||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/maximum`,instanceLocation:`#/`+t(e)}),d++)):(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/type`,instanceLocation:`#/`+t(e)}),d++)),m.test(e)){let r=null;(()=>{let n=0,r=a.errors,o=g(c[e]),s=g.errors;return a.errors=r,o||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/0/$ref`,`#/`+t(e)))),n++),n===0})()||(()=>{let o=0;if(!Array.isArray(c[e]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/type`,instanceLocation:`#/`+t(e)}),o++;else{c[e].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/maxItems`,instanceLocation:`#/`+t(e)}),o++),c[e].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/minItems`,instanceLocation:`#/`+t(e)}),o++);for(let r=0;r<c[e].length;r++)if(c[e][r]!==void 0&&n(c[e],r)){let n=a.errors,s=g(c[e][r]),l=g.errors;a.errors=n,s||(a.errors===null&&(a.errors=[]),a.errors.push(...l.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/items/$ref`,`#/`+t(e)+`/`+r))),o++)}}return o===0})()||(()=>{let n=0;if(typeof c[e]!=`object`||!c[e]||Array.isArray(c[e]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/type`,instanceLocation:`#/`+t(e)}),n++;else{Object.keys(c[e]).length>512&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/maxProperties`,instanceLocation:`#/`+t(e)}),n++),Object.keys(c[e]).length<1&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/minProperties`,instanceLocation:`#/`+t(e)}),n++);for(let r of Object.keys(c[e])){let o=a.errors,s=g(r),c=g.errors;a.errors=o,s||(a.errors===null&&(a.errors=[]),a.errors.push(...c.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/propertyNames/$ref`,`#/`+t(e)+`/`+t(r)))),n++)}for(let i of Object.keys(c[e]))typeof c[e][i]==`number`?0<=c[e][i]||(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/minimum`,instanceLocation:`#/`+t(e)+`/`+t(i)}),n++):(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/type`,instanceLocation:`#/`+t(e)+`/`+t(i)}),n++)}return n===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf`,instanceLocation:`#/`+t(e)}),r&&a.errors.push(...r),d++)}if(_.test(e)){let r=null;(()=>{let n=0,r=a.errors,o=y(c[e]),s=y.errors;return a.errors=r,o||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/0/$ref`,`#/`+t(e)))),n++),n===0})()||(()=>{let o=0;if(!Array.isArray(c[e]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/type`,instanceLocation:`#/`+t(e)}),o++;else{c[e].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/maxItems`,instanceLocation:`#/`+t(e)}),o++),c[e].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/minItems`,instanceLocation:`#/`+t(e)}),o++);for(let r=0;r<c[e].length;r++)if(c[e][r]!==void 0&&n(c[e],r)){let n=a.errors,s=y(c[e][r]),l=y.errors;a.errors=n,s||(a.errors===null&&(a.errors=[]),a.errors.push(...l.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/items/$ref`,`#/`+t(e)+`/`+r))),o++)}}return o===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf`,instanceLocation:`#/`+t(e)}),r&&a.errors.push(...r),d++)}if(b.test(e)){let r=null;(()=>{let n=0,r=a.errors,o=x(c[e]),s=x.errors;return a.errors=r,o||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/0/$ref`,`#/`+t(e)))),n++),n===0})()||(()=>{let o=0;if(!Array.isArray(c[e]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/type`,instanceLocation:`#/`+t(e)}),o++;else{c[e].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/maxItems`,instanceLocation:`#/`+t(e)}),o++),c[e].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/minItems`,instanceLocation:`#/`+t(e)}),o++);for(let r=0;r<c[e].length;r++)if(c[e][r]!==void 0&&n(c[e],r)){let n=a.errors,s=x(c[e][r]),l=x.errors;a.errors=n,s||(a.errors===null&&(a.errors=[]),a.errors.push(...l.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/items/$ref`,`#/`+t(e)+`/`+r))),o++)}}return o===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf`,instanceLocation:`#/`+t(e)}),r&&a.errors.push(...r),d++)}if(ee.test(e)){let r=null;(()=>{let n=0,r=a.errors,o=te(c[e]),s=te.errors;return a.errors=r,o||(a.errors===null&&(a.errors=[]),a.errors.push(...s.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/0/$ref`,`#/`+t(e)))),n++),n===0})()||(()=>{let o=0;if(!Array.isArray(c[e]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/type`,instanceLocation:`#/`+t(e)}),o++;else{c[e].length>2&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/maxItems`,instanceLocation:`#/`+t(e)}),o++),c[e].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/minItems`,instanceLocation:`#/`+t(e)}),o++);for(let r=0;r<c[e].length;r++)if(c[e][r]!==void 0&&n(c[e],r)){let n=a.errors,s=te(c[e][r]),l=te.errors;a.errors=n,s||(a.errors===null&&(a.errors=[]),a.errors.push(...l.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/items/$ref`,`#/`+t(e)+`/`+r))),o++)}}return o===0})()||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf`,instanceLocation:`#/`+t(e)}),r&&a.errors.push(...r),d++)}if(S.test(e)){let n=a.errors,r=w(c[e]),o=w.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(n=>i(n,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorAngle$/allOf/0/$ref`,`#/`+t(e)))),d++)}if(T.test(e)&&(typeof c[e]==`string`?c[e]!==`random`&&c[e]!==`fixed`&&(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorOrder$/enum`,instanceLocation:`#/`+t(e)}),d++):(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorOrder$/type`,instanceLocation:`#/`+t(e)}),d++)),e===`rotate`){let n=a.errors,r=w(c[e]),o=w.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(n=>i(n,`#/patternProperties/^rotate$/allOf/0/$ref`,`#/`+t(e)))),d++)}if(e===`translateY`){let n=a.errors,r=D(c[e]),o=D.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(n=>i(n,`#/patternProperties/^translateY$/allOf/0/$ref`,`#/`+t(e)))),d++)}if(e===`translateX`){let n=a.errors,r=D(c[e]),o=D.errors;a.errors=n,r||(a.errors===null&&(a.errors=[]),a.errors.push(...o.map(n=>i(n,`#/patternProperties/^translateX$/allOf/0/$ref`,`#/`+t(e)))),d++)}}for(let e of Object.keys(c))e===`seed`||e===`size`||e===`idRandomization`||e===`title`||e===`flip`||e===`fontFamily`||e===`fontWeight`||e===`scale`||e===`borderRadius`||e===`tags`||p.test(e)||m.test(e)||_.test(e)||b.test(e)||ee.test(e)||S.test(e)||T.test(e)||e===`rotate`||e===`translateY`||e===`translateX`||(a.errors===null&&(a.errors=[]),a.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+t(e)}),d++)}}return d===0}})(),_r={type:`has an invalid type`,enum:`must be one of the allowed values`,const:`must equal the expected value`,pattern:`does not match the required pattern`,required:`is required but missing`,additionalProperties:`has an unexpected property`,propertyNames:`has an invalid property name`,minimum:`is smaller than allowed`,maximum:`is larger than allowed`,exclusiveMinimum:`is smaller than allowed`,exclusiveMaximum:`is larger than allowed`,minLength:`is too short`,maxLength:`is too long`,minItems:`has too few items`,maxItems:`has too many items`,uniqueItems:`has duplicate items`,minProperties:`has too few properties`,maxProperties:`has too many properties`,anyOf:`does not match any allowed variant`,oneOf:`does not match exactly one allowed variant`,allOf:`does not match all required schemas`,not:`matches a disallowed schema`};function vr(e){let t=e.keywordLocation.slice(e.keywordLocation.lastIndexOf(`/`)+1);return{instancePath:e.instanceLocation.slice(1),schemaPath:e.keywordLocation,keyword:t,message:_r[t]??`must satisfy '${t}'`}}var yr=class{static validate(e){if(!gr(e))throw new hr((gr.errors??[]).map(vr))}},br=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},I=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},xr,Sr,Cr,wr,Tr,Er,Dr=class{constructor(e={}){xr.add(this),Sr.set(this,void 0),Cr.set(this,void 0),yr.validate(e),br(this,Sr,structuredClone(e),`f`)}seed(){return I(this,Sr,`f`).seed}size(){return I(this,Sr,`f`).size}idRandomization(){return I(this,Sr,`f`).idRandomization}title(){return I(this,Sr,`f`).title}flip(){return I(this,xr,`m`,Tr).call(this,I(this,Sr,`f`).flip)}fontFamily(){return I(this,xr,`m`,Tr).call(this,I(this,Sr,`f`).fontFamily)}fontWeight(){return I(this,xr,`m`,Tr).call(this,I(this,Sr,`f`).fontWeight)}scale(){return I(this,xr,`m`,Er).call(this,I(this,Sr,`f`).scale)}borderRadius(){return I(this,xr,`m`,Er).call(this,I(this,Sr,`f`).borderRadius)}rotate(){return I(this,xr,`m`,Er).call(this,I(this,Sr,`f`).rotate)}translateX(){return I(this,xr,`m`,Er).call(this,I(this,Sr,`f`).translateX)}translateY(){return I(this,xr,`m`,Er).call(this,I(this,Sr,`f`).translateY)}tags(){return br(this,Cr,I(this,Cr,`f`)??I(this,xr,`m`,Tr).call(this,I(this,Sr,`f`).tags).map(e=>{let t=e.startsWith(`!`),n=t?e.slice(1):e,r=n.indexOf(`:`);return r===-1?{category:n,negated:t}:{category:n.slice(0,r),value:n.slice(r+1),negated:t}}),`f`)}componentVariant(e){let t=I(this,xr,`m`,wr).call(this,`${e}Variant`);if(t!==void 0)return typeof t==`string`?{[t]:1}:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,1])):t}componentProbability(e){return I(this,xr,`m`,wr).call(this,`${e}Probability`)}color(e){let t=I(this,xr,`m`,wr).call(this,`${e}Color`);return t===void 0?void 0:I(this,xr,`m`,Tr).call(this,t)}colorFill(e){return I(this,xr,`m`,Tr).call(this,I(this,xr,`m`,wr).call(this,`${e}ColorFill`))}colorAngle(e){return I(this,xr,`m`,Er).call(this,I(this,xr,`m`,wr).call(this,`${e}ColorAngle`))}colorFillStops(e){return I(this,xr,`m`,Er).call(this,I(this,xr,`m`,wr).call(this,`${e}ColorFillStops`))}colorOrder(e){return I(this,xr,`m`,wr).call(this,`${e}ColorOrder`)}};Sr=new WeakMap,Cr=new WeakMap,xr=new WeakSet,wr=function(e){return I(this,Sr,`f`)[e]},Tr=function(e){return e===void 0?[]:Array.isArray(e)?e:[e]},Er=function(e){if(e!==void 0){if(typeof e==`number`)return{min:e,max:e};if(e.length!==0)return{min:Math.min(...e),max:Math.max(...e)}}};var Or=class e{static hash(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}static hex(t){return e.hash(t).toString(16).padStart(8,`0`)}},kr=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Ar=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},jr,Mr=2**32,Nr=class{constructor(e){jr.set(this,void 0),kr(this,jr,e,`f`)}next(){let e=kr(this,jr,Ar(this,jr,`f`)+1831565813|0,`f`),t=Math.imul(e^e>>>15,e|1);return t^=t+Math.imul(t^t>>>7,t|61),(t^t>>>14)>>>0}nextFloat(){return this.next()/Mr}state(){return Ar(this,jr,`f`)}};jr=new WeakMap;var Pr=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Fr=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Ir,Lr,Rr,zr,Br=class{constructor(e){Ir.add(this),Lr.set(this,void 0),Pr(this,Lr,e,`f`)}pick(e,t){if(t.length===0)return;if(t.length===1)return t[0];let n=Fr(this,Ir,`m`,Rr).call(this,t);if(n.length===1)return n[0];let r=n.sort(Fr(this,Ir,`m`,zr));return r[Math.floor(this.getValue(e)*r.length)]}weightedPick(e,t){let n=Object.keys(t);if(n.length===0)return;if(n.length===1)return n[0];let r=n.sort(Fr(this,Ir,`m`,zr)),i=r.reduce((e,n)=>e+t[n],0);if(i===0)return this.pick(e,r);let a=this.getValue(e)*i,o=0;for(let e of r)if(o+=t[e],a<o)return e;return r[r.length-1]}bool(e,t=50){return this.getValue(e)*100<t}float(e,t){let n=Math.min(t.min,t.max),r=Math.max(t.min,t.max),i=t.step??0,a;if(i>0){let t=Math.floor((r-n)/i)+1;a=n+Math.floor(this.getValue(e)*t)*i}else a=n+this.getValue(e)*(r-n);return Math.round(a*1e4)/1e4}integer(e,t){let n=Math.min(t.min,t.max),r=Math.max(t.min,t.max);return Math.floor(this.getValue(e)*(r-n+1))+n}shuffle(e,t){if(t.length<=1)return[...t];let n=Fr(this,Ir,`m`,Rr).call(this,t).sort(Fr(this,Ir,`m`,zr)),r=new Nr(Or.hash(Fr(this,Lr,`f`)+`:`+e));for(let e=n.length-1;e>0;e--){let t=Math.floor(r.nextFloat()*(e+1)),i=n[e];n[e]=n[t],n[t]=i}return n}getValue(e){return new Nr(Or.hash(Fr(this,Lr,`f`)+`:`+e)).nextFloat()}};Lr=new WeakMap,Ir=new WeakSet,Rr=function(e,t=String){let n=new Set,r=[];for(let i of e){let e=t(i);n.has(e)||(n.add(e),r.push(i))}return r},zr=function(e,t){let n=String(e),r=String(t);return n<r?-1:+(n>r)};var Vr=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Hr,Ur,Wr,Gr=class{static toHex(e){let t=e.replace(/^#/,``).toLowerCase();return t.length===3?`#`+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.length===4?`#`+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:`#`+t}static toRgbHex(e){let t=this.toHex(e);return t.length>7?t.slice(0,7):t}static parseHex(e){let t=this.toHex(e).slice(1);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}static luminance(e){let t=this.parseHex(e),n=Vr(this,Hr,`m`,Wr).call(this,t[0]),r=Vr(this,Hr,`m`,Wr).call(this,t[1]),i=Vr(this,Hr,`m`,Wr).call(this,t[2]);return .2126*n+.7152*r+.0722*i}static sortByContrast(e,t){let n=this.luminance(t),r=e.map(e=>{let t=this.luminance(e);return{color:e,ratio:(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}});return r.sort((e,t)=>t.ratio-e.ratio),r.map(e=>e.color)}static filterNotEqualTo(e,t){let n=new Set(t.map(e=>this.toRgbHex(e))),r=e.filter(e=>!n.has(this.toRgbHex(e)));return r.length>0?r:Array.from(e)}};Hr=Gr,Wr=function(e){return Vr(Hr,Hr,`f`,Ur)[e]},Ur={value:[0,.0003035269835488375,.000607053967097675,.0009105809506465125,.00121410793419535,.0015176349177441874,.001821161901293025,.0021246888848418626,.0024282158683907,.0027317428519395373,.003035269835488375,.003346535763899161,.003676507324047436,.004024717018496307,.004391442037410293,.004776953480693729,.005181516702338386,.005605391624202723,.006048833022857055,.006512090792594474,.006995410187265387,.007499032043226175,.008023192985384994,.008568125618069307,.009134058702220787,.009721217320237847,.010329823029626938,.010960094006488246,.011612245179743887,.012286488356915872,.012983032342173012,.013702083047289686,.014443843596092545,.01520851442291271,.01599629336550963,.016807375752887384,.017641954488384078,.018500220128379697,.019382360956935723,.0202885630566524,.021219010376003558,.02217388479338738,.02315336617811041,.024157632448504756,.025186859627361627,.026241221894849898,.027320891639074897,.028426039504420793,.0295568344378088,.030713443732993635,.03189603307301153,.033104766570885055,.03433980680868217,.03560131487502034,.03688945040110004,.0382043715953465,.03954623527673283,.04091519690685319,.042311410620809675,.043735029256973465,.04518620438567554,.0466650863368801,.048171824226889426,.04970656598412723,.05126945837404324,.052860647023180246,.05448027644244237,.05612849004960009,.05780543019106723,.0595112381629812,.06124605423161761,.06301001765316767,.06480326669290577,.06662593864377289,.06847816984440017,.07036009569659588,.07227185068231748,.07421356838014963,.07618538148130785,.07818742180518633,.08021982031446831,.0822827071298148,.08437621154414882,.08650046203654976,.08865558628577294,.09084171118340767,.09305896284668747,.0953074666309647,.09758734714186246,.09989872824711389,.1022417330881013,.10461648409110419,.10702310297826761,.10946171077829933,.1119324278369056,.11443537382697373,.11697066775851084,.11953842798834562,.12213877222960187,.12477181756095049,.12743768043564743,.1301364766903643,.13286832155381798,.13563332965520566,.13843161503245183,.14126329114027164,.14412847085805777,.14702726649759498,.14995978981060856,.15292615199615017,.1559264637078274,.1589608350608804,.16202937563911096,.1651321945016676,.16826940018969075,.1714411007328226,.17464740365558504,.17788841598362914,.18116424424986022,.184474994500441,.18782077230067787,.1912016827407914,.19461783044157582,.19806931955994886,.20155625379439707,.20507873639031693,.20863687014525575,.21223075741405523,.21586050011389923,.21952619972926923,.2232279573168085,.22696587351009836,.23074004852434915,.23455058216100522,.238397573812271,.24228112246555486,.24620132670783548,.25015828472995344,.25415209433082675,.2581828529215958,.26225065752969623,.26635560480286247,.2704977910130658,.27467731206038465,.2788942634768104,.2831487404299921,.2874408377269175,.29177064981753587,.2961382707983211,.3005437944157765,.3049873140698863,.30946892281750854,.31398871337571754,.31854677812509186,.32314320911295075,.3277780980565422,.33245153634617935,.33716361504833037,.341914424908661,.3467040563550296,.35153259950043936,.3564001441459435,.3613067797835095,.3662525955988395,.3712376804741491,.37626212299090644,.3813260114325301,.386429433787049,.39157247774972326,.39675523072562685,.40197777983219574,.4072402119017367,.41254261348390375,.4178850708481375,.4232676699860717,.4286904966139067,.4341536361747489,.4396571738409188,.44520119451622786,.45078578283822346,.45641102318040466,.4620769996544071,.467783796112159,.47353149614800955,.4793201831008268,.4851499400560704,.4910208498478356,.4969329950608704,.5028864580325687,.5088813208549338,.5149176653765214,.5209955732043543,.5271151257058131,.5332764040105052,.5394794890121071,.5457244613701866,.5520114015120001,.5583403896342679,.5647115057049292,.5711248294648731,.5775804404296506,.5840784178911641,.5906188409193369,.5972017883637634,.6038273388553378,.6104955708078648,.6172065624196511,.6239603916750761,.6307571363461468,.6375968739940326,.6444796819705821,.6514056374198242,.6583748172794486,.665387298282272,.6724431569576875,.6795424696330938,.6866853124353134,.6938717612919899,.7011018919329731,.7083757798916868,.7156935005064807,.7230551289219693,.7304607400903537,.7379104087727308,.7454042095403874,.7529422167760779,.7605245046752924,.7681511472475071,.7758222183174236,.7835377915261935,.7912979403326302,.799102738014409,.8069522576692516,.8148465722161012,.8227857543962835,.8307698767746546,.83879901174074,.846873231509858,.8549926081242338,.8631572134541023,.8713671191987973,.8796223968878317,.8879231178819663,.8962693533742664,.9046611743911496,.9130986517934192,.9215818562772946,.9301108583754237,.938685728457888,.9473065367331999,.9559733532492861,.9646862478944651,.9734452903984125,.9822505503331171,.9911020971138298,1]};var Kr=class extends Error{constructor(e){let t=e.join(` → `);super(`Circular color reference: ${t}`),this.name=`CircularColorReferenceError`,this.chain=e}},qr=`fixed`,Jr=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},L=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi=class{constructor(e,t){Yr.add(this),Xr.set(this,void 0),Zr.set(this,void 0),Qr.set(this,void 0),$r.set(this,[]),ei.set(this,{}),ti.set(this,void 0),Jr(this,Xr,e,`f`),Jr(this,Zr,t,`f`),Jr(this,Qr,new Br(this.seed()),`f`)}seed(){return L(this,Zr,`f`).seed()??``}size(){return L(this,Yr,`m`,di).call(this,`size`,()=>L(this,Zr,`f`).size())}idRandomization(){return L(this,Yr,`m`,di).call(this,`idRandomization`,()=>L(this,Zr,`f`).idRandomization()??!1)}title(){return L(this,Yr,`m`,di).call(this,`title`,()=>L(this,Zr,`f`).title())}flip(){return L(this,Yr,`m`,di).call(this,`flip`,()=>L(this,Qr,`f`).pick(`flip`,L(this,Zr,`f`).flip())??`none`)}fontFamily(){return L(this,Yr,`m`,di).call(this,`fontFamily`,()=>L(this,Qr,`f`).pick(`fontFamily`,L(this,Zr,`f`).fontFamily())??`system-ui`)}fontWeight(){return L(this,Yr,`m`,di).call(this,`fontWeight`,()=>L(this,Qr,`f`).pick(`fontWeight`,L(this,Zr,`f`).fontWeight())??400)}scale(){return L(this,Yr,`m`,ui).call(this,`scale`,L(this,Zr,`f`).scale(),1)}borderRadius(){return L(this,Yr,`m`,ui).call(this,`borderRadius`,L(this,Zr,`f`).borderRadius(),0)}rotate(){return L(this,Yr,`m`,ui).call(this,`rotate`,L(this,Zr,`f`).rotate(),0)}translateX(){return L(this,Yr,`m`,ui).call(this,`translateX`,L(this,Zr,`f`).translateX(),0)}translateY(){return L(this,Yr,`m`,ui).call(this,`translateY`,L(this,Zr,`f`).translateY(),0)}variant(e){return L(this,Yr,`m`,di).call(this,`${e}Variant`,()=>{let t=L(this,Xr,`f`).components().get(e);if(t&&L(this,Yr,`m`,ri).call(this,e,t))return L(this,Qr,`f`).weightedPick(`${e}Variant`,L(this,Yr,`m`,ii).call(this,t))})}color(e){return L(this,Yr,`m`,di).call(this,`${e}Color`,()=>L(this,Yr,`m`,si).call(this,e))}colorFill(e){return L(this,Yr,`m`,di).call(this,`${e}ColorFill`,()=>L(this,Qr,`f`).pick(`${e}ColorFill`,L(this,Zr,`f`).colorFill(e))??`solid`)}colorAngle(e){return L(this,Yr,`m`,ui).call(this,`${e}ColorAngle`,L(this,Zr,`f`).colorAngle(e),0)}colorOrder(e){return L(this,Zr,`f`).colorOrder(e)??`random`}componentTransform(e){let t=L(this,Xr,`f`).components().get(e);return{rotate:L(this,Yr,`m`,ui).call(this,`${e}Rotate`,t?.rotate(),0),translateX:L(this,Yr,`m`,ui).call(this,`${e}TranslateX`,t?.translate().x(),0),translateY:L(this,Yr,`m`,ui).call(this,`${e}TranslateY`,t?.translate().y(),0),scale:L(this,Yr,`m`,ui).call(this,`${e}Scale`,t?.scale(),1)}}resolved(){return L(this,ei,`f`)}};Xr=new WeakMap,Zr=new WeakMap,Qr=new WeakMap,$r=new WeakMap,ei=new WeakMap,ti=new WeakMap,Yr=new WeakSet,ni=function(e){return L(this,Zr,`f`).componentProbability(e.sourceName())??e.probability()},ri=function(e,t){return L(this,Qr,`f`).bool(`${e}Probability`,L(this,Yr,`m`,ni).call(this,t))},ii=function(e){let t=e.variants(),n=L(this,Zr,`f`).componentVariant(e.sourceName()),r={},i=n?Object.keys(n):L(this,Zr,`f`).tags().length>0?L(this,Yr,`m`,oi).call(this,t):t.keys();for(let e of i){let i=t.get(e);i!==void 0&&(r[e]=n?n[e]:i.weight())}return r},ai=function(){if(L(this,ti,`f`))return L(this,ti,`f`);let e=new Map,t=new Set,n=[],r=new Set;for(let{category:i,value:a,negated:o}of L(this,Zr,`f`).tags())if(o)n.push({category:i,value:a}),a===void 0&&r.add(i);else if(a!==void 0){let t=e.get(i)??[];t.push(a),e.set(i,t)}else t.add(i);return Jr(this,ti,{allowGroups:[...e],bares:t,disallows:n,bareDisallows:r},`f`),L(this,ti,`f`)},oi=function(e){let{allowGroups:t,bares:n,disallows:r,bareDisallows:i}=L(this,Yr,`m`,ai).call(this),a=[...n].filter(t=>{if(i.has(t))return!1;for(let n of e.values())if(n.hasTag(t))return!0;return!1}),o=[];for(let[n,i]of e){let e=t.every(([e,t])=>!i.hasTag(e)||t.some(t=>i.hasTag(e,t)))&&a.every(e=>i.hasTag(e)),s=r.some(({category:e,value:t})=>i.hasTag(e,t));e&&!s&&o.push(n)}return o},si=function(e){let t=L(this,Zr,`f`).color(e),n=L(this,Xr,`f`).colors().get(e),r=(t??n?.values()??[]).map(e=>Gr.toHex(e)),i=this.colorOrder(e)===qr,a=t!==void 0&&i,o=this.colorFill(e)===`solid`?1:L(this,Yr,`m`,li).call(this,e,a?r.length:2);if(!n)return L(this,Yr,`m`,ci).call(this,e,r,i,a).slice(0,o);if(L(this,$r,`f`).includes(e))throw new Kr(L(this,$r,`f`).concat(e));L(this,$r,`f`).push(e);let s=n.contrastTo(),c=n.notEqualTo();try{if(s&&!a){let e=this.color(s)[0];e&&(r=Gr.sortByContrast(r,e))}if(c.length>0){let e=[];for(let t of c)for(let n of this.color(t))e.push(n);r=Gr.filterNotEqualTo(r,e)}}finally{L(this,$r,`f`).pop()}return(s?r:L(this,Yr,`m`,ci).call(this,e,r,i,a)).slice(0,o)},ci=function(e,t,n,r){return n?r?t:Array.from(new Set(t)).sort():L(this,Qr,`f`).shuffle(`${e}Color`,t)},li=function(e,t){let n=L(this,Zr,`f`).colorFillStops(e);return n?L(this,Qr,`f`).integer(`${e}ColorFillStops`,n):t},ui=function(e,t,n){return L(this,Yr,`m`,di).call(this,e,()=>t?L(this,Qr,`f`).float(e,t):n)},di=function(e,t){if(e in L(this,ei,`f`))return L(this,ei,`f`)[e];let n=t();return L(this,ei,`f`)[e]=n,n};var pi=class{static fromSeed(e,t=!0){let n=e;t&&(n=e.replace(/@.*/s,``)),n=n.replace(/[`´'ʼ]/g,``);let r=n.match(/(\p{L}[\p{L}\p{M}]*)/gu);if(!r)return t?this.fromSeed(e,!1):``;if(r.length===1){let e=r[0].match(/^(?:\p{L}\p{M}*){1,2}/u);return e?e[0].toUpperCase():``}let i=r[0].match(/^(?:\p{L}\p{M}*)/u),a=r[r.length-1].match(/^(?:\p{L}\p{M}*)/u);return!i||!a?``:(i[0]+a[0]).toUpperCase()}},mi=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},hi,gi,_i,vi=class{static escape(e){return e.replace(mi(hi,hi,`f`,_i),e=>mi(hi,hi,`f`,gi)[e])}};hi=vi,gi={value:{"&":`&`,"'":`'`,'"':`"`,"<":`<`,">":`>`}},_i={value:RegExp(`[${Object.keys(mi(hi,hi,`f`,gi)).join(``)}]`,`g`)};var yi=class{static text(e){let t=e.source().name(),n=e.source().url(),r=e.creator().name(),i=e.license().name(),a=e.license().url();if(!t&&!r&&!i)return``;let o=t?`“${t}”`:`Design`;n&&(o+=` (${n})`);let s=`“${r??`Unknown`}”`,c=``;return i!==`MIT`&&r!==`DiceBear`&&t&&(c+=`Remix of `),c+=`${o} by ${s}`,i&&(c+=`, licensed under “${i}”`,a&&(c+=` (${a})`)),c}static xml(e){let t=e.source().name(),n=e.creator().name(),r=e.source().url(),i=e.license().url(),a=this.text(e);if(!t&&!n&&!r&&!i&&!a)return``;let o=[];return t&&o.push(`<dc:title>${vi.escape(t)}</dc:title>`),n&&o.push(`<dc:creator>${vi.escape(n)}</dc:creator>`),r&&o.push(`<dc:source xsi:type="dcterms:URI">${vi.escape(r)}</dc:source>`),i&&o.push(`<dcterms:license xsi:type="dcterms:URI">${vi.escape(i)}</dcterms:license>`),a&&o.push(`<dc:rights>${vi.escape(a)}</dc:rights>`),`<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>${o.join(``)}</rdf:Description></rdf:RDF></metadata>`}},bi=class{static format(e){if(e!==e)return`NaN`;if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;let t=Math.round(e*1e5),n=t<0?`-`:``;t=Math.abs(t);let r=Math.floor(t/1e5),i=String(t%1e5).padStart(5,`0`).replace(/0+$/,``);return`${n}${r}${i?`.${i}`:``}`}},xi=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},R=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},z,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji=class{constructor(e,t){z.add(this),Si.set(this,void 0),Ci.set(this,void 0),wi.set(this,new Map),Ti.set(this,void 0),Ei.set(this,void 0),xi(this,Si,e,`f`),xi(this,Ci,t,`f`)}render(){let e=R(this,Si,`f`).canvas(),t=R(this,z,`m`,Mi).call(this,e),n=R(this,z,`m`,Pi).call(this,e.elements());n=R(this,z,`m`,Oi).call(this,n,e),n=R(this,z,`m`,Di).call(this,n,e),n=R(this,z,`m`,Ai).call(this,n,e),n=R(this,z,`m`,ji).call(this,n,e),n=R(this,z,`m`,ki).call(this,`${t}${n}`,e);let r=yi.xml(R(this,Si,`f`).meta()),i=R(this,wi,`f`).size>0?`<defs>${Array.from(R(this,wi,`f`).values()).join(``)}</defs>`:``,a=R(this,Ci,`f`).size(),o=R(this,Ci,`f`).title(),s=o===void 0?void 0:vi.escape(o),c=[`xmlns="http://www.w3.org/2000/svg"`,`viewBox="0 0 ${bi.format(e.width())} ${bi.format(e.height())}"`],l=R(this,z,`m`,Bi).call(this,R(this,Si,`f`).attributes());if(l&&c.push(l.trimStart()),s===void 0?c.push(`aria-hidden="true"`):c.push(`role="img"`,`aria-label="${s}"`),a!==void 0){let e=bi.format(a);c.push(`width="${e}"`,`height="${e}"`)}let u=s===void 0?``:`<title>${s}</title>`,d=`<svg ${c.join(` `)}><!-- Generated by DiceBear (https://www.dicebear.com) -->${r}${i}${u}${n}</svg>`;return R(this,Ci,`f`).idRandomization()&&(d=R(this,z,`m`,Ni).call(this,d)),d}};Si=new WeakMap,Ci=new WeakMap,wi=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,z=new WeakSet,Di=function(e,t){let n=R(this,Ci,`f`).flip();if(n===`none`)return e;let r=bi.format(t.width()),i=bi.format(t.height()),a;switch(n){case`horizontal`:a=`translate(${r}, 0) scale(-1, 1)`;break;case`vertical`:a=`translate(0, ${i}) scale(1, -1)`;break;case`both`:a=`translate(${r}, ${i}) scale(-1, -1)`}return`<g transform="${a}">${e}</g>`},Oi=function(e,t){let n=R(this,Ci,`f`).scale();if(n===1)return e;let r=t.width()/2,i=t.height()/2;return`<g transform="translate(${bi.format(r)}, ${bi.format(i)}) scale(${bi.format(n)}) translate(${bi.format(-r)}, ${bi.format(-i)})">${e}</g>`},ki=function(e,t){let n=R(this,Ci,`f`).borderRadius(),r=`clip-${R(this,z,`m`,qi).call(this)}`,i=bi.format(n/100*t.width()),a=bi.format(n/100*t.height());return R(this,wi,`f`).set(r,`<clipPath id="${r}"><rect width="${bi.format(t.width())}" height="${bi.format(t.height())}" rx="${i}" ry="${a}"/></clipPath>`),`<g clip-path="url(#${r})">${e}</g>`},Ai=function(e,t){let n=R(this,Ci,`f`).rotate();if(n===0)return e;let r=t.width()/2,i=t.height()/2;return`<g transform="rotate(${bi.format(n)}, ${bi.format(r)}, ${bi.format(i)})">${e}</g>`},ji=function(e,t){let n=R(this,Ci,`f`).translateX(),r=R(this,Ci,`f`).translateY();return n===0&&r===0?e:`<g transform="translate(${bi.format(n/100*t.width())}, ${bi.format(r/100*t.height())})">${e}</g>`},Mi=function(e){return R(this,Ci,`f`).color(`background`).length===0?``:`<rect width="${bi.format(e.width())}" height="${bi.format(e.height())}" fill="${vi.escape(R(this,z,`m`,Hi).call(this,`background`))}"/>`},Ni=function(e){let t=Math.floor(Math.random()*16777215).toString(16).padStart(6,`0`),n=new Set;for(let t of e.matchAll(/\bid="([^"]+)"/g))n.add(t[1]);if(n.size===0)return e;let r=Array.from(n,e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),i=RegExp(`(id="|url\\(#|href="#)(${r.join(`|`)})("|\\))`,`g`);return e.replace(i,(e,n,r,i)=>`${n}${r}-${t}${i}`)},Pi=function(e){return e.map(e=>R(this,z,`m`,Fi).call(this,e)).join(``)},Fi=function(e){switch(e.type()){case`element`:return R(this,z,`m`,Ii).call(this,e);case`text`:return R(this,z,`m`,Li).call(this,e);case`component`:return R(this,z,`m`,Ri).call(this,e)}},Ii=function(e){let t=e.name();if(!t)return``;if(t===`defs`){for(let t of e.children()){let e=R(this,z,`m`,Fi).call(this,t);if(e.length>0){let n=t.attributes()?.id,r=typeof n==`string`?n:`_${R(this,wi,`f`).size}`;R(this,wi,`f`).set(r,e)}}return``}let n=R(this,z,`m`,Bi).call(this,e.attributes()),r=R(this,z,`m`,Pi).call(this,e.children());return r.length===0?e.children().length>0&&e.attributes()?.id===void 0?``:`<${t}${n}/>`:`<${t}${n}>${r}</${t}>`},Li=function(e){let t=e.value();return t===void 0?``:vi.escape(R(this,z,`m`,Wi).call(this,t))},Ri=function(e){let t=e.name();if(typeof t!=`string`)return``;let n=R(this,Ci,`f`).variant(t);if(!n)return``;let r=R(this,Si,`f`).components().get(t);if(!r)return``;let i=r.variants().get(n);if(!i)return``;let a=`${r.sourceName()}-${n}-${R(this,z,`m`,qi).call(this)}`;if(!R(this,wi,`f`).has(a)){let e=R(this,z,`m`,Pi).call(this,i.elements());R(this,wi,`f`).set(a,`<g id="${a}">${e}</g>`)}let o=R(this,z,`m`,zi).call(this,r),s=e.attributes(),c=s;if(o.length>0){let e=s?.transform,t=typeof e==`string`&&e.length>0?[e,...o]:o;c={...s,transform:t.join(` `)}}return`<use${R(this,z,`m`,Bi).call(this,c)} href="#${a}"/>`},zi=function(e){let{rotate:t,translateX:n,translateY:r,scale:i}=R(this,Ci,`f`).componentTransform(e.name());if(n===0&&r===0&&t===0&&i===1)return[];let a=[],o=e.width()/2,s=e.height()/2,c=bi.format(o),l=bi.format(s);if(n!==0||r!==0){let t=bi.format(n/100*e.width()),i=bi.format(r/100*e.height());a.push(`translate(${t}, ${i})`)}return t!==0&&a.push(`rotate(${bi.format(t)}, ${c}, ${l})`),i!==1&&a.push(`translate(${c}, ${l}) scale(${bi.format(i)}) translate(${bi.format(-o)}, ${bi.format(-s)})`),a},Bi=function(e){if(!e)return``;let t=[];for(let[n,r]of Object.entries(e))r!==void 0&&t.push(`${n}="${vi.escape(R(this,z,`m`,Vi).call(this,r))}"`);return t.length===0?``:` ${t.join(` `)}`},Vi=function(e){return typeof e==`string`?e:e.type===`color`?R(this,z,`m`,Hi).call(this,e.name):R(this,z,`m`,Gi).call(this,e.name)},Hi=function(e){let t=R(this,Ci,`f`).color(e),n=R(this,Ci,`f`).colorFill(e);return n===`solid`||t.length<=1?t[0]??`none`:R(this,z,`m`,Ui).call(this,e,t,n)},Ui=function(e,t,n){let r=R(this,Ci,`f`).colorAngle(e),i=`${e}-color-${R(this,z,`m`,qi).call(this)}`,a=n===`linear`?`linearGradient`:`radialGradient`,o=r===0?``:` gradientTransform="rotate(${bi.format(r)}, 0.5, 0.5)"`,s=t.map((e,n)=>`<stop offset="${bi.format(n/(t.length-1)*100)}%" stop-color="${vi.escape(e)}"/>`);return R(this,wi,`f`).set(i,`<${a} id="${i}"${o}>${s.join(``)}</${a}>`),`url(#${i})`},Wi=function(e){return typeof e==`string`?e:e.type===`variable`?R(this,z,`m`,Gi).call(this,e.name):``},Gi=function(e){switch(e){case`initial`:{let e=R(this,z,`m`,Ki).call(this).codePointAt(0);return e===void 0?``:String.fromCodePoint(e)}case`initials`:return R(this,z,`m`,Ki).call(this);case`fontWeight`:return bi.format(R(this,Ci,`f`).fontWeight());case`fontFamily`:return R(this,Ci,`f`).fontFamily()}},Ki=function(){return xi(this,Ei,R(this,Ei,`f`)??pi.fromSeed(R(this,Ci,`f`).seed()),`f`)},qi=function(){return xi(this,Ti,R(this,Ti,`f`)??Or.hex((R(this,Si,`f`).meta().source().name()??``)+`:`+R(this,Ci,`f`).seed()),`f`)};var Yi=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Xi=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Zi,Qi,$i=!1,ea=class{constructor(e,t){Zi.set(this,void 0),Qi.set(this,void 0),!(e instanceof mr)&&!$i&&($i=!0,console.warn("[DiceBear] Passing a style definition to `new Avatar()` is deprecated and will be removed in v11. Wrap it in a Style first: `new Avatar(new Style(definition), options)`."));let n=e instanceof mr?e:new mr(e),r=new fi(n,new Dr(t));Yi(this,Zi,new Ji(n,r).render(),`f`),Yi(this,Qi,r.resolved(),`f`)}toString(){return Xi(this,Zi,`f`)}toJSON(){return{svg:Xi(this,Zi,`f`),options:structuredClone(Xi(this,Qi,`f`))}}toDataUri(){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(Xi(this,Zi,`f`))}`}};Zi=new WeakMap,Qi=new WeakMap;var ta={$id:`https://cdn.hopjs.net/npm/@dicebear/styles@10.6.0/dist/adventurer.min.json`,$schema:`https://cdn.hopjs.net/npm/@dicebear/schema@1.4.0/dist/definition.min.json`,$comment:`This file was generated by the DiceBear Exporter for Figma. https://www.figma.com/community/plugin/1005765655729342787`,meta:{license:{name:`CC BY 4.0`,url:`https://creativecommons.org/licenses/by/4.0/`,text:`Remix of „Adventurer” (https://www.figma.com/community/file/1184595184137881796) by „Lisa Wischofsky”, licensed under „CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)`},creator:{name:`Lisa Wischofsky`,url:`https://www.instagram.com/lischi_art/`},source:{name:`Adventurer`,url:`https://www.figma.com/community/file/1184595184137881796`}},canvas:{elements:[{name:`head`,type:`component`,attributes:{transform:`translate(143.2 162.9)`}},{name:`eyes`,type:`component`,attributes:{transform:`translate(154.7 340.2)`}},{name:`eyebrows`,type:`component`,attributes:{transform:`translate(154.6 268.5)`}},{name:`mouth`,type:`component`,attributes:{transform:`translate(232.5 456.6)`}},{name:`details`,type:`component`,attributes:{transform:`translate(171.3 439.7)`}},{name:`glasses`,type:`component`,attributes:{transform:`translate(133.5 332.3)`}},{name:`hair`,type:`component`,attributes:{transform:`translate(-65.6 -47.4)`}}],width:762,height:762},attributes:{fill:`none`,"shape-rendering":`auto`},components:JSON.parse(`{"details":{"width":347.7,"height":110.1,"probability":10,"variants":{"birthmark":{"elements":[{"name":"path","type":"element","attributes":{"d":"M272 45.7c4.1-2.4 9.5 0 11.1 4.2 1.8 4.4-1.8 9.9-6.5 10.3a8 8 0 0 1-8-5 8 8 0 0 1 3.5-9.5","fill":{"type":"color","name":"ink"}}}]},"blush":{"elements":[{"name":"path","type":"element","attributes":{"d":"M298 29.7a40.8 40.8 0 0 1 39.6 66.6A40.8 40.8 0 1 1 298 29.7M40.8 42.2a37.7 37.7 0 0 1 3 61.5A213 213 0 0 1 8.9 60C5.6 54.2 2.2 48.9.1 42.5a38 38 0 0 1 40.8-.3","fill":"#CA8D87"}}]},"freckles":{"elements":[{"name":"path","type":"element","attributes":{"d":"M279.1 46.7c4.5-2.8 10.3 1.4 8.7 6.6-1.2 4.5-7.3 5.3-10 1.9a6 6 0 0 1 1.3-8.5M4.8 48.3c2.3-1.3 5.7-.6 7.5 1.4 2.8 3 1 9.6-3.7 9.3A18 18 0 0 1 4 52c-.6-1.6-.8-2.6.8-3.7m313.4.6c1.3-.7 3-.5 4.4-.3 3.4.7 5.3 5.1 3.5 8.1-1.6 3-5.2 4-8 2.3-3.9-2.2-3.7-8 0-10.1M39.9 51.4c4-2.2 9.5 1.2 8.6 5.9-.3 4.7-6 6.3-9.4 3.6-3-2.5-2.5-7.4.8-9.5M300.2 69c4.2-1.6 8.9 1.7 8 6.3-.7 5-7.1 6.3-10.1 2.6-2.6-3-1.3-7.3 2.1-9M25.7 71c3.7.5 6.4 4.6 4.8 8-1.2 2.6-3.3 3.2-5.8 3.9-1.6-2.2-3.7-4.3-4.8-6.8-.9-3.2 3-5.6 5.8-5","fill":"#7A624E"}}]},"mustache":{"elements":[{"name":"path","type":"element","attributes":{"d":"M156.8 3.2c6.3 4.7 7.6 15 14 20s14.5 7.3 22.2 3.6c1 1.3 2.3 2.3 1.3 4.1-4 7-11.2 10.4-18.7 12.5a41 41 0 0 1-29.4-2.6c-6.3-3.5-9.9-9.1-14.4-14.5a60 60 0 0 1-20.4 18.8c-5.8 3-13.3 5-19.8 3.3-6.3-1.8-12-6.1-12.2-13.1-.2-2.4 1.2-2.7 3.1-3.1 1.3 1.3 2.3 2.7 4.2 3 3.5.7 7-1.2 9.1-3.8 5.4-6.4 4.5-17 10.4-22.6 6.2-5.9 16.9-8.1 24.5-4 7.7-5.2 18-6.9 26.1-1.6","fill":{"type":"color","name":"ink"}}}]}}},"earrings":{"width":77.9,"height":139.6,"probability":10,"variants":{"variant01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M12.2 104.2c3-.8 8.2 1 7.1 5-.8 2.7-4.5 1.2-6.4 1.2-3.8 5.9-4 13.1-1.5 19.5.7 1.7 2.3 3 3.5 4.4 2-2.9 3-6 4-9.3.8-2 3.7-2 4.8-.4 1 1.2.5 3.2.3 4.6-.7 3.5-2.5 7.4-5.6 9.3a8 8 0 0 1-9.9-1.7c-4.7-5.3-5.2-13.8-4.4-20.5.7-4.7 3.1-10.5 8-12","fill":{"type":"color","name":"earrings"}}}]},"variant02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M14.6 93.7a21.1 21.1 0 1 1 13.3 40.1 21.1 21.1 0 0 1-13.3-40.1","fill":{"type":"color","name":"earrings"}}},{"name":"path","type":"element","attributes":{"d":"M15.6 99.8c7-2.8 15.5 0 19 6.9a15 15 0 0 1-7 20.8c-8.1 4-18.2-.8-20.8-9.2a15 15 0 0 1 8.8-18.5","fill":"white"}}]},"variant03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M64.8 39.4c.6 4.4-4 8.1-8.1 6.3-2.5-1-3-3.3-4.2-5.5 1.3-2.2 1.8-4.4 4.3-5.3 3.4-1.5 7.5 1 8 4.5m-3.4 17.1c4.4-2.2 9.6 2.2 8 7-1.3 4.2-6.8 5.7-9.9 2.2a5.8 5.8 0 0 1 1.9-9.2","fill":{"type":"color","name":"earrings"}}}]},"variant04":{"elements":[{"name":"path","type":"element","attributes":{"d":"M55.3.4c2.1-.8 5-.7 6 1.6 1.3 2.4.1 5.2-.9 7.5-2 4-4.8 8-8.5 10.5-1.8 1.3-4.7 1.6-6.3-.3-2.2-2.3-.7-6.1.5-8.6 2-4 5.1-8.6 9.2-10.7m16.3 14.3c2.1-.3 4.2-.3 5.7 1.5 1 2 .7 4.7-.7 6.4-3 4-7 7.6-11.6 9.6-2 .9-5.4 1.1-6.8-1.1-1.6-2.4-.2-5.3 1.4-7.3 3.1-3.8 7.3-7.5 12-9M11.3 97.4c3.1-.8 6.5-.6 9 1.7 4 3.4 4 10 .2 13.6-4.2 4-11.9 3-14.4-2.5-2.9-4.7 0-11.3 5.2-12.8","fill":{"type":"color","name":"earrings"}}}]},"variant05":{"elements":[{"name":"path","type":"element","attributes":{"d":"M54.6.7C56.8-.3 60-.6 61.3 2c1.6 3-.5 6.9-2 9.5-2.1 3.6-5.3 8-9.4 9.5-3.7.8-6-2.3-5.3-5.8A27 27 0 0 1 54.6.7m17 14c2.3-.3 4.7-.3 6 2 .6 2 .3 4.3-1 6a30 30 0 0 1-12.2 9.8c-2.2.5-4.8.7-6.2-1.4-1.6-2.4-.2-5.4 1.4-7.3 3.1-3.8 7.3-7.5 12-9","fill":{"type":"color","name":"earrings"}}}]},"variant06":{"elements":[{"name":"path","type":"element","attributes":{"d":"M11.3 97.4c3.4-.9 7-.5 9.4 2.2A9 9 0 0 1 20 113c-4.3 3.5-11.5 2.3-14-2.8-2.8-4.8 0-11.4 5.3-13","fill":{"type":"color","name":"earrings"}}}]}}},"eyebrows":{"width":320.6,"height":138.7,"variants":{"variant01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M297.9 50c1.6 1 1 2.9 1.2 4.5v34c.2 2.8-2.5 4.3-4.7 5l-120 41.2c-2.6.2-2.9-1.8-3.6-3.7l-5-18c1 5.8 1 11.7 1.4 17.5 0 1.4.4 4-1 4.9-2 1.4-4 0-4.6-2Q156.3 114 150.9 95c-.3-1.8-.6-3.9 1.4-4.9q3.1-.6 4 2.5l3.7 13.7q-1-7.9-1.2-15.8c0-1.3-.1-3.7 1.7-3.8l4.4-.7 123.6-35.2c3.3-.9 6-2.1 9.4-.8M8.4 82.4c13.6 1.4 27.3 1.4 41 2.5 21 1.1 42 2.7 63.1 3.5 7.8.8 15.6 1 23.4 1.6 2.8 2.2 1.1 8.1 2 11.4.5-3 .1-7 1.9-9.5 2.1-1.8 5-.2 4.7 2.6l-7 42.2c-.8 2.9-4.5 2.5-5.3-.2l-.3-14.8c-1 4.3-1.4 8.7-2.4 13-.5 1.6-1.2 2.8-3.1 2.4L7.5 115.8q-2.8-.5-3-3.3c-1.5-8-2.6-16-4.2-24-.2-1.7-.8-3.1.5-4.6 2.2-2.2 4.8-1.6 7.6-1.5","fill":{"type":"color","name":"ink"}}}]},"variant02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M291.4 46c1.5-.3 3.2.7 4.7 1q-.1 2-.5 3.7-2.6 2.1-5.4 3.8A804 804 0 0 1 220 95a290 290 0 0 1-35.5 15.4 50 50 0 0 1-21 3.5c-3.4-.3-6.2-3-6.3-6.5 0-4.2 3-8.6 5.1-12.1 1.3-2.7 4.5-3 7-4.1L281 49.7c3.4-1.2 6.9-2.8 10.5-3.7M23.3 81.1l90 18c2.3.4 4.7.1 7 .5 2.4 2.3 3.6 6.2 4.5 9.4 1.1 4-.2 8.8-4 11-4 2.6-9.9 2.2-14.5 1.9-8.7-1-17.4-3.8-25.6-6.8a418 418 0 0 1-57-27c-1.7-.9-3.7-1.9-4.8-3.5-.4-2.9 1.9-4.1 4.4-3.5","fill":{"type":"color","name":"ink"}}}]},"variant03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M140.4 28.9c2.2-.1 2.8 1.7 2.6 3.6-.5 4.7-.7 9.8-2.3 14.2l-4 .9c-1.1-4.8 0-10.3.7-15.1.3-1.7.8-3.9 3-3.6m20.8 6.3q-.1 4.8-.7 9.5c41.7.5 83.3.4 125 .8q3.1.2 5.9 1.6c-.6 1.5-.2 3.8-2.3 4-8 1.4-16.5.6-24.7 1l-52 1.5c-17 .2-34 1.2-51.1 1.4-3.3.4-6-2.7-7.2-5.5 0-4.5 1-9.1 2-13.5 1.3-2.4 2.9-1.6 5-.9m-36.9 5.6c-.1 4.8 0 10.8-2.3 15.2-3.2 1.5-7.1 1.8-10.6 2.5l-77 14c-4.2.8-8.6 2.2-13 2.1-2.6-.5-3.3-3.7-.8-5 3.2-1.4 7-1.7 10.3-2.6l87.3-20.3 1.3-5.7z","fill":{"type":"color","name":"ink"}}}]},"variant04":{"elements":[{"name":"path","type":"element","attributes":{"d":"M266.7 19.2c14 7 27.7 17.3 36.5 30.5A3 3 0 0 1 299 54a104.4 104.4 0 0 0-132.7 19.6c-1.7 2-4 3.6-6.3 1.2-1.7-2.6-2.2-6-3.3-9q-2.7 7.3-6.2 14.1c-1.5 3.2-6 1.1-7-1.4q-4.6-10.3-9-20.8v17c-.2 2 .3 4.3-2.1 5.2-2 .2-4.4-1-5.3-3-3.3-5.8-6.2-11.9-9.5-17.8 1 5.5 2.6 11 3.1 16.6.1 2-2.3 3.4-4 2.3a133 133 0 0 0-58.3-10 65 65 0 0 0-36 12.6c-3.1 2.4-5.2 5.5-8 8.2-1.7.7-3.3-.3-4.9-.7q-.1-2.8.7-5.6a87 87 0 0 1 40-50c13.6-7.4 30.2-9 44.6-3.4a57 57 0 0 1 27.7 24c2.3-2.9 4.3-6 6.8-8.8 1.6-1.5 4.6-1.5 5.6.8q3.6 7.8 7 15.7l4.4-22.2q.3-2.4 1.6-4.5c1.6-1.2 2.9-.2 4.6.1l.8 2.6q3-7.2 8.5-12.8a62 62 0 0 1 34.5-16.5C220 3.8 245 8.6 266.7 19.2","fill":{"type":"color","name":"ink"}}}]},"variant05":{"elements":[{"name":"path","type":"element","attributes":{"d":"M207.6 32.9c6.2-.5 13-.6 18.5 3a10 10 0 0 1 4.4 10.6C229 52.8 224 57.6 219 61a68 68 0 0 1-30.6 11.6c-5.6.5-12.5.4-17.4-2.6a10 10 0 0 1-5.2-10.3c1-5.8 5.5-10.5 10-14 9.1-7 20.5-11.3 31.9-12.8M76.6 49.7a47 47 0 0 1 26.3 5.3c3.8 2.2 7.3 5.9 7.9 10.5.3 4.2-2 7.8-5.2 10.2-4.5 3.6-9.9 5-15.4 6-10 1-20.6.3-29.5-4.6-3.9-2.2-7.9-5.8-8.5-10.5-.7-4.3 2-8.5 5.4-10.9a36 36 0 0 1 19-6","fill":{"type":"color","name":"ink"}}}]},"variant06":{"elements":[{"name":"path","type":"element","attributes":{"d":"M186.4 33.5a71 71 0 0 1 28.8 7.3c3.3 1.9 7 4 7.3 8.3-5.2-.9-10.2-2.1-15.4-2.3A59 59 0 0 0 174 54c-2.6 1.4-5 3.3-7.7 4.4-1.8.2-3.9-2-4-3.8-.1-5.8 2-11.9 6.6-15.7a27 27 0 0 1 17.5-5.4m-88 17.6c5.8.2 11 5.3 12.5 10.6.8 2.7-.5 5.8-3.5 5.7-8.9.2-18.2 0-26.8 2.2-7.6 2-14.8 6.7-21.4 10.8q-1.9 1-4 1.2.3-3 2-5.2Q62 69.7 67.9 64c5.9-5.2 13-9 20.3-11.7q5-1.7 10.2-1.3","fill":{"type":"color","name":"ink"}}}]},"variant07":{"elements":[{"name":"path","type":"element","attributes":{"d":"M136.4 44.4c.7 4.6-1.5 9.3-4.2 13a44 44 0 0 1-12.9 11c-7.6 4.4-16 7.8-24.2 10.9a424 424 0 0 1-73.5 19.5c-3.3.5-7 1.5-10.3 1-2-.8-2-2.7-1.1-4.4 2.3-1.8 5.4-2.8 8.1-4l107.8-44.1c3.4-1.3 6.6-3.4 10.3-3m26.9.2 148 22.8c2.6.4 5.4.5 7.8 1.4 2.5 1.1 1.8 5-1 5.2q-14.2 1.6-28.7 2c-15.4 0-30.7.3-46-1.2-21-1.7-42.3-4.6-62.3-11-7-2.5-14.8-5.5-20.2-10.7-1.8-2-4.1-4.3-3.2-7.1 1.2-2.2 3.6-1.6 5.6-1.4","fill":{"type":"color","name":"ink"}}}]},"variant08":{"elements":[{"name":"path","type":"element","attributes":{"d":"M215.3.8A86 86 0 0 1 276 16a83 83 0 0 1 29 33c1 3-.3 3.8-2.5 5.3-4-2.2-6.9-5.6-10.5-8.3-13-9.7-28-16.3-43.8-20.2a124 124 0 0 0-45.8-2.8c-4.7.4-9.2 2-14 2.7-2.4.2-5-1.2-4.2-4 2-4.2 4.3-8.6 7.7-11.7a45 45 0 0 1 23.5-9m-148 76.3c13.3-.8 26.3-.6 39 4.3 5.8 2.3 11.5 5.9 14 12a14 14 0 0 1-1.8 12.6c-5-.7-9.4-2.6-14.2-3.8a203 203 0 0 0-71-6c-5 .4-9.9 2-14.8 1.8-1.7-.5-1.1-2.2-1-3.5 1-2.5 3.7-3.9 5.8-5.1a119 119 0 0 1 44-12.3","fill":{"type":"color","name":"ink"}}}]},"variant09":{"elements":[{"name":"path","type":"element","attributes":{"d":"M81.4 21.6c6.8.2 14.2 2.9 18 9 1 1.4.6 3.6.7 5.3-6.3.2-12.5.4-18.7 1.9a112 112 0 0 0-41.6 20.1 90 90 0 0 0-22 23c-1.4 2.3-2.4 5.1-4.2 7l-3.9.3q-.2-2.7.2-5.2A89 89 0 0 1 48 32.2a65 65 0 0 1 33.4-10.6m181.5 38.6a71 71 0 0 1 30 10l-.2 4.7c-4 1.6-7.3-.1-11.3-.8-6.8-1.2-14-1.2-20.9-1a198 198 0 0 0-84 23.7l-4.3 1.5c-2.6-5.4-3.7-11-.2-16.2a48 48 0 0 1 23.7-15.4c21.3-7.4 44.8-9 67.2-6.5","fill":{"type":"color","name":"ink"}}}]},"variant10":{"elements":[{"name":"path","type":"element","attributes":{"d":"M229.4 27c24.7 1 48 9 69.4 21 2.3 1.3 5 2.5 6.8 4.3 1.3 2.4-.4 5.2-3.2 4.2a234 234 0 0 0-51-12c-20.3-2.4-40-3.7-60.2-.1-3.2.4-6.9 2.1-10.1 1.6-2.7-1.7-1.2-6.1 1.3-7.4a79 79 0 0 1 47-11.6M92.3 45.4q5.2 1 9.7 3.8l-.3 3.6q-4.2 1-8.3 1.4a152 152 0 0 0-38.8 9.6 141 141 0 0 0-35.2 18.8c-2.8 2-4.1 4.8-8 4.4l-1.6-2.6q1.3-2.4 2.8-4.7a90 90 0 0 1 38.6-29.3 71 71 0 0 1 41.1-5","fill":{"type":"color","name":"ink"}}}]},"variant11":{"elements":[{"name":"path","type":"element","attributes":{"d":"M215.4 2.4c17 2 34 7.4 48.6 16.5a57 57 0 0 1 18.2 16.9c1 1.2 1.3 3.5-.2 4.3-1.2 1.2-2.8.5-4.1 0a143 143 0 0 0-54-15c-13.5-.9-28.2-1-41.1 3.8-3 1-5.5 3-8.5 3.8-1.4.3-2.4-1-2.9-2.2a18 18 0 0 1 .2-14.8A23 23 0 0 1 185 5a73 73 0 0 1 30.4-2.6m-117 54.2C106.6 59 113 67.4 111.9 76q-2.7 1-5.5.7a108 108 0 0 0-42.9 5.9c-14 4.7-28.5 11.6-39.4 21.8-1.3 1.3-4.2 3-5.5.7-1.7-2.3 0-4 1.4-6a128 128 0 0 1 48.9-39c8.9-3.6 20-6.5 29.5-3.5","fill":{"type":"color","name":"ink"}}}]},"variant12":{"elements":[{"name":"path","type":"element","attributes":{"d":"M98.5 38.3C93 31.1 84 29 75.3 30A68 68 0 0 0 41 47a87 87 0 0 0-24.7 35.3c-.7 2-1.3 4.7 1 5.8 2 .2 2.8 0 4.1-1.6A117 117 0 0 1 64.8 51a61 61 0 0 1 26.6-5.7q1.5 0 3.1.4 2.6.6 5 .3c2.9-2.2.7-5.3-.9-7.5zm178.8 18.4a147 147 0 0 0-59-19c-10-.8-21.4-.2-30.7 4-6.7 3.2-12.3 8.6-13.5 16.3l-.2 1c-.3 2.8-.9 6.7 1.3 8.7 2 .8 3.7-.3 5.3-1.4q1-.8 2.3-1.4a111 111 0 0 1 45.6-9.7c15.4 0 31.3 2.1 46 7.2l.5.1c1.4.4 2.7.8 3.9-.6 1.8-1.9.4-4.2-1.5-5.2","fill":{"type":"color","name":"ink"}}}]},"variant13":{"elements":[{"name":"path","type":"element","attributes":{"d":"M298.4 55.5a134 134 0 0 0-92-35 175 175 0 0 0-26.5 3q-2.1 5-3.5 10l-1.1 3.7-.1-1.4-1.3-11.4-3.3-1.5-.8 1.1q-1 1.2-1.2 2.4 0 5.7.7 11.3a113 113 0 0 1 .8 10.5c.2 2.4.3 5 1.7 6.8 2.8.8 6-.3 9-1.3l3-1c19-5.5 39.2-6.8 58.8-4.4 20 2.3 40 8.3 57.4 18.6q3 1.5 6.1 2.5L308 66q-4.1-5.8-9.5-10.5M106.6 48q.4-6.2 0-12.6c-.2-2.5-1.8-2.5-3.7-2.6h-1c-.9 3.6-1 7.5-1.2 11.3l-.2 5Q98 43.4 96 37.7l-.4-.8c-.4-1.1-1-2.3-2.2-2.3q-3.7 0-7.6.9l-3.4.6a128 128 0 0 0-52 20.3A53 53 0 0 0 13.5 75c-1.4 3.2-2.8 6.5-1.5 10h.4c1 .4 2.6.9 3.4.1l2.7-2.1q3-2.7 6.5-4.6A153 153 0 0 1 93.4 63q2.7.1 5.4.5 3 .5 5.7.5c1.8-1.2 1.8-3.6 1.9-5.7v-1.8z","fill":{"type":"color","name":"ink"}}}]},"variant14":{"elements":[{"name":"path","type":"element","attributes":{"d":"M201.4 28.2c.9-1 2.2-2.3 1.8-3.6-.3-2.5-3.6-3.1-5.2-1.5q-4.3 3.6-8.4 7.4l-9.5 8.5a44 44 0 0 0-7.3 7.5l.8 1c.8 1 1.4 1.8 2.8 1.8 1.5 0 2.7-1.1 3.8-2l.4-.4 13-11.8zm22.6-1q.8-2.6-1.5-4c-2-.4-3.9.7-5.6 1.7l-1.3.8-13.4 7.7q-7.3 4.1-14.4 8.4c-1.7.9-1.7 2-1.7 3.4l-.1 1.5q.7 0 1.3.3c1.2.4 2.3.8 3.6 0l15-8.6 13.6-7.7 1-.6a10 10 0 0 0 3.6-3m26.7-.2c2-.7 4.2.2 4.4 2.6 0 2.3-1.8 2.9-3.5 3.5l-.8.3-37.6 11.6c-1.3.4-2.6.8-4 0-1.8-1.2-1.8-4.2.4-5.1q2.7-1.2 5.6-2l2.7-.8 11.4-3.5zm22.9 12q1.4-2.4-.4-4.5c-2.3-.7-5 0-7.4.5l-2.5.5-8.6 1.7-12.4 2.5c-1.9.5-3.7 1.7-3 4q1 2.8 4 2l12-2.3 11.5-2.3 1.3-.3q3.1-.3 5.5-1.8M90.2 43.2l8 5v.1q2.7 1.5 5 3.4c1.7 1.3 1.2 4.3-.8 5-1.8.3-3-.4-4.4-1.3l-1-.6-17.8-11.4c-1.1-.7-2.4-1.6-2.4-2.9-.4-2.4 2.2-4 4.3-2.9q4.6 2.6 9 5.6m-21.8.8q-3-1-6-1.7c-2.5-.5-4 2-3.3 4.3a9 9 0 0 0 4.1 2.2l.7.3 12 3.8 12.5 4c2.5.8 4.9.6 5.4-2.4-.2-2.1-2-2.8-3.7-3.5h-.2l-.7-.3-18.2-5.8zm203.2-.2 10.4-.3q3.8 0 7.5-.2h1.3c1.6 0 3.6 0 4.3 1.6 1.3 1.7-.2 3.7-2 4.1q-4.5.9-9.1.6h-3.5l-3 .1h-5c-1.3 0-3.2-.3-3.6-1.7a3 3 0 0 1 2.7-4.2M44.6 51.4q-3-.3-6 .3c-1.5 1.2-1.5 3.4-.2 4.8q2.7.9 5.5 1h.4L69 59q2.8.5 5.4 0c2-.6 2.6-3.1 1.1-4.6-.8-1-1.8-1-3-1.1l-1.1-.1-12.5-.8zm-11.3 8.7 4.5-.3c4.2-.3 8.4-.7 12.6-.4 2.9.2 3 4.7.2 5.4q-4.4 1-9 1a76 76 0 0 0-8.8.5q-3.8.5-7.4.1C23 66 22.7 62 25 61.1a19 19 0 0 1 5.8-.8q1.4 0 2.6-.2m-3.5 13.8c2.9-1 2.7-5.3-.5-5.7q-4.3.2-8.6 1l-6.5 1.2c-2.3.2-4.8.6-6 2.1-1.2 2.4.5 4.6 3 4.4q9.4-1 18.6-3","fill":{"type":"color","name":"ink"}}}]},"variant15":{"elements":[{"name":"path","type":"element","attributes":{"d":"M252.8 54.5c-.6-3-2.5-5-4.6-6.9a50 50 0 0 0-45.6-11.5 38 38 0 0 0-23.7 17c-2.8 5-4.7 10.6-4 16.4l.2 1.2c.2 1.7.4 3 2.5 3.6q3.3 0 6.5-.7h.3l6.2-1.3 15.7-3.1Q229 64.4 251.2 58c1.8-.3 1.7-1.6 1.6-3zM114.5 79.6c-.8-9.8-9-17.5-18-20.4-13.2-4-28.3-.4-38.3 9.2a28 28 0 0 0-9 16.1c-.2 2.7 2.3 2.8 4.4 2.8h.7l9.1-.1a336 336 0 0 0 35.2-1.9q6.4-.4 12.8-1.1c2.4 0 3.2-2.6 3-4.6","fill":{"type":"color","name":"ink"}}}]}}},"eyes":{"width":328.2,"height":144.2,"variants":{"variant01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M274.3 9.9a67 67 0 0 1 26.7 30c5.9-3.2 11.6-6.8 17.6-9.7 1.8-1 4.4.5 4 2.6.2 1.5-2 2.5-3 3.2l-16.4 9a65.7 65.7 0 0 1-39.4 82.3 66 66 0 0 1-78.5-27.5 64 64 0 0 1-9.3-33A65 65 0 0 1 229.3 2a65 65 0 0 1 45 7.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.5 7a59.7 59.7 0 0 1 67.2 59.8A59.5 59.5 0 1 1 233.5 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M74.3 23.7a55 55 0 1 1-55.7 38.7L7.3 58c-2-.8-4-1.4-5.4-3q-.5-4 3.2-3.7c5.2 1.3 10 4.2 15.2 5.6 1.4-1.7 2.2-3.8 3.3-5.7a55 55 0 0 1 50.7-27.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M60.8 30.5a49.3 49.3 0 1 1 20.8 96.4 49.3 49.3 0 0 1-20.8-96.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M262.6 42.2a25 25 0 0 1 27.9 24.6c-.4 4.8-1.8 9.7-4.6 13.6A25 25 0 0 1 267.3 91a24.5 24.5 0 0 1-21.8-38 25 25 0 0 1 17-10.8M92.8 55.3a23 23 0 0 1 19.6 7.5q6 6.8 5.7 16c0 12-10.7 22.8-22.8 22.3a23 23 0 0 1-22.9-22.3 23 23 0 0 1 20.4-23.5","fill":{"type":"color","name":"eyes"}}}]},"variant02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M243.3.9a65 65 0 0 1 57.5 38.4l23.8-15q1.9 1.6 3.6 3.4c-3.2 3.6-7.1 5.4-11 8l-14.3 9a66 66 0 0 1-18 69.8 65 65 0 0 1-42.6 16.8 65.7 65.7 0 0 1-61.5-90A65 65 0 0 1 243.3 1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.6 7a59.6 59.6 0 1 1 15.1 118.3A59.6 59.6 0 0 1 233.6 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M98.3 30.7A55 55 0 1 1 19 61.5C13.1 58 6.8 55 1.2 51c-2-1.1-1.5-4.2.7-4.7 1.6-.5 3.1.6 4.6 1.3L20.9 56a55 55 0 0 1 77.4-25.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.6 30a49.3 49.3 0 1 1 17.2 97.2 49.3 49.3 0 0 1-17.2-97.1","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M211.6 43a24 24 0 0 1 20.2 7.3 24 24 0 0 1-2.3 34.7 23.9 23.9 0 0 1-38.7-20.2A24 24 0 0 1 211.6 43M42.8 57.6a21.8 21.8 0 1 1 11.5 42 22 22 0 0 1-25.6-14 22.3 22.3 0 0 1 14.1-28","fill":{"type":"color","name":"eyes"}}}]},"variant03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M271.7 8.4a65 65 0 0 1 28 28.7q8.4-5 16.7-10.2 2.4-1.7 5-2.4c1.9.5 2.7 1.3 2.7 3.4-.5 1.3-1.8 2-2.9 2.8-6.4 4-13 7.6-19.4 11.8a64 64 0 0 1 .8 45.6 65.5 65.5 0 0 1-73.5 42.2 65.2 65.2 0 1 1 42.6-122","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.5 7a59.6 59.6 0 1 1 15.3 118.3A59.6 59.6 0 0 1 233.5 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M99 31.1a55 55 0 1 1-73.7 77.7c-5.6-8.3-8.5-18-9.1-28A68 68 0 0 1 19 60.4q-6.5-4-12.8-8.6c-1.7-1.2-1.8-2.1-1.5-4.1q2-2 4.3-.7 6.2 4 12.3 8.3A55.4 55.4 0 0 1 99 31","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.5 30a49.4 49.4 0 1 1 12.8 97.7 49.3 49.3 0 0 1-12.8-97.6","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M210.8 44.3c12-2.9 24.8 4.2 29.3 15.6a25.6 25.6 0 1 1-29.3-15.6M82.5 55.2c9.5-2 19.6 2.5 24.5 11a25 25 0 0 1 2.2 18.5A24 24 0 0 1 93.3 100a23 23 0 1 1-10.8-44.8","fill":{"type":"color","name":"eyes"}}}]},"variant04":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M297.3 32.8A65 65 0 0 0 183 36.5a70 70 0 0 0-6.5 20q-6.7.5-13 2l.3 1.5c.3 1.4.6 2.6 2.3 3q3.6.2 7.1-.3l2.8-.2a65.1 65.1 0 0 0 120.4 38.4c6.5-10.2 9.8-22 10-34q0-5.7-.8-11.2l-.4-3 3-.2q3.3-.2 6.8-1 1.5-1 1.6-2.8l.4-1.4c-4.4-1.1-8.7-.8-13.2-.3l-1.4-3.5q-2.1-5.4-5.1-10.7m.6 14.7a59.9 59.9 0 0 0-106.7-13.8 58 58 0 0 0-8.8 22.5q9-.9 17.9-1.5l14.5-1.1 11-.7q7.2-.3 14.4-1.1 24.6-1.7 49.2-3.7z","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M299.4 53.2a59.8 59.8 0 0 1-67.2 71.8 59.7 59.7 0 0 1-50.7-63l8.3-.7 49.3-3.3q6.8-.9 13.4-1.4c15.7-1 31.3-2.6 47-3.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M239 58c.5 7.7-1.4 14.9-7 20.4a24.6 24.6 0 0 1-42.2-17.1z","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M97.7 30.4c12 6.5 21 17.4 25.6 30.1l8 .8-.1.7-.6 3q-1.7 1-3.9 1.3l-1.6.4a55 55 0 1 1-109 9L9 75.4l.1-1.3c.1-1.2.2-2.7 1.2-3.3q2.3-.5 4.8-.8l1.8-.3a55 55 0 0 1 80.9-39.4m19.8 30.8a49.3 49.3 0 0 0-94.7 8l21-1.6L62.2 66q5.6-.1 11.3-.8 5.9-.7 11.7-.9l6.3-.4c8.6-.6 17.3-1.2 25.9-2.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"m115.2 67.6 3.8-1a49.5 49.5 0 0 1-85.8 43.2A50 50 0 0 1 22 75.3c16.4-1.6 33-2.6 49.4-4.4z","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M115.2 67.6c-.1 3.9.5 7.4-.7 11.2-2 7.3-8 12.9-15 15.1a22.3 22.3 0 0 1-28-22l-.1-1 38.4-3z","fill":{"type":"color","name":"eyes"}}}]},"variant05":{"elements":[{"name":"path","type":"element","attributes":{"d":"M258.8 3.3a66 66 0 0 1 34 22.7c7.5-5.1 14.7-10.7 22.4-15.7l3 1.3c-.3 2-.2 3.6-2.2 4.9l-20 14.2a65 65 0 0 1 9.8 44c-.5 2.7-3 3.4-5.5 3.6q-29.6 1.7-59 5.4c-11 1.4-22.2 2-33.2 3.6L194.5 89c-5 .7-9.5 1.7-14.5.3a65.2 65.2 0 0 1 78.8-86.1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M249.8 7.2a60 60 0 0 1 50.7 65.2q-7 .8-14.2 1.2c-18 1.2-36 3.3-53.8 5.4Q212 82 192 84.5l-7.3.8a59.3 59.3 0 0 1 35.4-74.9 61 61 0 0 1 29.7-3.2","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M205.2 43.7c6-1 12.2-.5 17.5 2.7A25 25 0 0 1 235 69.8c-.3 3.2-1.5 6.3-2.5 9.2l-5.1.7q-18 2.6-35.4 4.8l-.6-.8a24 24 0 0 1-5.7-14.9c-.8-11.8 8-23 19.5-25.1","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M100.8 32.2A55 55 0 0 1 124.1 94c-5.3 1-10.4.5-15.8.5-24-.2-48-.1-72 1.5-5.9-.2-12.6 1.6-17.8-1.3-1-4.5-2.1-9.1-2.3-13.8a60 60 0 0 1 6.8-29q-9.2-5.6-18.2-11.6c-1.9-1.4-1.7-2.7-.8-4.7 2.8-1 4.5.5 6.8 1.8L26 47a55.3 55.3 0 0 1 74.8-14.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M85.1 31.3a49.4 49.4 0 0 1 34.3 57.9l-5.6.1-38.4-.3q-20 0-40 1.6c-3.8.2-8 .7-11.6-.3-1.6-3-1.6-7.1-1.8-10.5a49 49 0 0 1 63.1-48.5","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M89.3 56q6-1.5 11.8.1c8.3 2.6 14.7 10 15.6 18.7a26 26 0 0 1-2.9 14.5L75.4 89l-.3-.8a25 25 0 0 1-2.4-12.4 22 22 0 0 1 16.6-19.9","fill":{"type":"color","name":"eyes"}}}]},"variant06":{"elements":[{"name":"path","type":"element","attributes":{"d":"M246.2 0c1.7.5 1.9 2 2 3.6 0 6.7-1 13.4-.8 20.2 8.3.5 16 2 24 4.4q4.7-10.7 8.8-21.6c1-1.8 1.5-4.1 4-3.8 2.4.3 2.6 3 1.8 4.8L277 30a70 70 0 0 1 18 11l14.6-13.8c1.7-1.6 3.4-1 5.4-1.1-.2 2 .3 3.6-1.4 5.1q-7.1 7.1-14.6 13.9a30 30 0 0 1 6.7 16.7c.7 9.9-4.8 18.3-12 24.4a79 79 0 0 1-40.5 16.1c-16.6 1.9-33.8.9-49.6-5a56 56 0 0 1-24.3-16.5c-5-6.4-7.8-14.7-5.7-22.8a38 38 0 0 1 18.3-22.5 96 96 0 0 1 49.5-12q.3-10 1-19.7c.2-2 1.3-4.3 3.7-3.7M56.3 18.2c2-.2 2.6 2.2 3.1 3.6 1.2 5 1.3 10.2 2.2 15.3a99 99 0 0 1 25.7.7c10.9 2 22 6 30.2 13.8 5 4.7 8.4 11.3 8.2 18.2a27 27 0 0 1-9.9 18.5 65 65 0 0 1-33 13.7 84 84 0 0 1-47.4-6.3c-8.5-4.1-17-11.2-19.2-20.8a23 23 0 0 1 2-14.8Q12.4 55 6.7 49.4c-.8-1-2.4-2.2-2-3.6 0-2.6 3.5-3 5-1.4l11.7 10.9q5-5.4 11.1-9.2l-8.2-18.4c-1.1-2.2-.9-4.4-.7-6.8q2 .2 3.8.8c1.2 1.2 1.8 3 2.6 4.5l7.5 17.2q9-3.8 18.3-5.6c-.4-5.4-1.7-10.7-2-16 0-1.6.4-4.1 2.5-3.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M223.8 30.5A103 103 0 0 1 268 33c9.5 3 19.2 7.5 26 15a22 22 0 0 1 6 17.7c-1 7.2-5.8 13-11.4 17.3a74 74 0 0 1-31.1 12.8 102 102 0 0 1-47.6-2.6c-9.5-3-19.1-7.8-25.6-15.5-4.3-5-6.9-12.4-4.9-19 1.6-6.6 6.7-12 12-16a76 76 0 0 1 32.4-12.3m-168 13.3c15.6-3 33-1.7 47.4 5 6.4 3.1 13.4 8.3 15.8 15.3 2 5.6.3 11.7-3.4 16.2a44 44 0 0 1-18.5 12.3 81 81 0 0 1-39.8 3.8c-9-1.3-18.5-4.3-26-9.6-5.1-4-9.5-9-9.8-15.9-.2-6.6 3.8-12 8.7-16.1a59 59 0 0 1 25.6-11","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M276.5 46c2.2-1.6 4.7-.3 6 1.7 1.8 3 2.1 6.6 2.5 10.1.4 5.2.8 10.7-.3 15.9q-.5 2-2 3.5c-3 1.4-6.9-1.3-7.6-4.2-2-6.2-2-13.2-1.4-19.7.4-2.3.6-5.9 2.8-7.3M97.6 53.1a4 4 0 0 1 6 2.4c1.8 5.1 1.9 11 2 16.3-.1 3.1-.4 8-3.8 9.5-2.6 1-4.6-1.4-5.4-3.6a45 45 0 0 1-1.5-17c.2-2.3.4-6.2 2.7-7.6","fill":{"type":"color","name":"eyes"}}}]},"variant07":{"elements":[{"name":"path","type":"element","attributes":{"d":"M224.8 24.5a103 103 0 0 1 57 7.8 46 46 0 0 1 21.2 19 26 26 0 0 1-.2 24c-4.2 8-12 14-20 18.2a95 95 0 0 1-44.5 9.6c-12 0-24-1.8-35.2-6a56 56 0 0 1-23.7-16.3 27 27 0 0 1-6-22A35 35 0 0 1 188 38.4a82 82 0 0 1 36.9-13.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M231.3 29.5c8.4-.3 17.2-.6 25.5 1A74 74 0 0 1 287 42c5.5 4 10.4 9.1 12.3 15.8s-.2 14.1-4.7 19.4A54 54 0 0 1 270 92.7q-15 5-30.8 4.8A93 93 0 0 1 209 93a54 54 0 0 1-24.8-15.2c-4.3-5-7-12.4-4.9-19 1.5-6.5 6.7-12 12-16 11.4-8.2 26-12 39.9-13.3","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M57.8 37.6c16.3-2.3 34.2-1 49 6.6 7.8 4 15.5 10.4 18 19 2.4 7.2-.1 14.8-4.6 20.5A51 51 0 0 1 95.5 99a90 90 0 0 1-45.2 1.8 54 54 0 0 1-27.2-14c-4.7-4.7-8-11.2-7.4-18 .6-7.3 5-13.7 10.5-18.2a65 65 0 0 1 31.6-13.1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M55.8 43.7c15.6-3 33-1.8 47.4 5 6.4 3 13.5 8.3 15.8 15.3a17 17 0 0 1-3.3 16.2A44 44 0 0 1 97 92.5c-12.4 4.5-26 6-39 4-9.3-1.3-19-4.3-26.7-9.8-5.2-4-9.6-9-10-15.9-.1-6.8 4.3-12.5 9.4-16.6a60 60 0 0 1 25-10.5","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M276.5 46c2.1-1.6 4.7-.3 6 1.7 2.4 4 2.4 9.6 2.8 14 .2 4.5.5 9.7-1.3 13.8-2 4.1-7.4 1.4-8.7-1.8a50 50 0 0 1-1.6-20.4c.4-2.3.6-5.9 2.8-7.3m-175.3 6.9c2.1.5 2.8 3.7 3.3 5.6q1.3 7.6 1 15.3c-.3 2.6-.7 5.7-3.1 7.2-2 1.3-4.3 0-5.4-2-2-3.8-2.1-9-2.2-13.2 0-4.4-.2-8.7 2.2-12.6 1.4-.4 2.6-1 4.2-.3","fill":{"type":"color","name":"eyes"}}}]},"variant08":{"elements":[{"name":"path","type":"element","attributes":{"d":"M242.5 30a57 57 0 0 1 34 5.5 42 42 0 0 1 18.1 18 33 33 0 0 1 2.1 21.8c-2 8-7.2 15.2-13.7 20.2a57 57 0 0 1-54.2 7.8 44 44 0 0 1-21.4-16.6 34 34 0 0 1-5.4-15.9 35 35 0 0 1 10.3-26c8-8.4 18.8-13 30.2-14.8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M243.5 36a47 47 0 0 1 39.9 11.8c6.6 6.5 10.3 17 7.6 26-2 8.2-7.7 14.5-14.6 19.2a52 52 0 0 1-43 5.6 39 39 0 0 1-21.8-16.1c-3-5-4-11-3.5-16.7.7-6.8 4.5-13.1 9.3-17.9a47 47 0 0 1 26-12","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M53.8 45.5c17.6-2.7 37.9 3.4 47.7 19.1a31 31 0 0 1 2 29.2c-3 6.3-8 11.6-13.8 15.4a52 52 0 0 1-24.4 7.8 48 48 0 0 1-39.4-15.8 31 31 0 0 1-7.5-22.4c.5-8.3 4.6-15.7 10.5-21.4a48 48 0 0 1 24.9-11.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M60.9 51a43 43 0 0 1 27.3 8 29 29 0 0 1 11.2 15.3A25 25 0 0 1 97.3 93a37 37 0 0 1-23 16.7 45 45 0 0 1-40.8-9 27 27 0 0 1-9.2-22.3C25 73 27.4 67.7 31 63.6A41 41 0 0 1 61 51","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M235.8 54.4q5.6-1.4 11 1a16 16 0 0 1 8.8 17.4 16 16 0 0 1-15.3 12.9 15.9 15.9 0 0 1-4.5-31.3","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M238 60c4-.7 7.8.6 10.1 4 3 4 2.3 9.8-1.3 13.2-4.5 4-12 3.4-15.2-1.7a10 10 0 0 1 6.3-15.5","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M303 61c1.7.3 3.6-.2 4.6 1.5 1.6 2.4 2.4 5.5 2.9 8.4a35 35 0 0 1-9.9 29.3c-3.2 3-7.8 6-12.3 6-2.8.1-4.3-2.6-2.4-4.7 3.3-1.7 6.6-2.2 9.5-4.6a29 29 0 0 0 9.5-22.1c0-4-1.5-7.2-2.6-11z","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M64.7 65.3c4.5-.9 9.2.5 12.7 3.3a17 17 0 0 1 4.7 19.8 16 16 0 0 1-14.8 10.2c-8.5.6-16-6.4-16.5-14.8-1-8.7 5.3-17 14-18.5","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M63.8 71.6c5.1-2 11 .6 13 5.7 2.8 6.4-1.6 14.7-8.7 15.4a10 10 0 0 1-10-4.8 11.4 11.4 0 0 1 5.7-16.3","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M14.7 80.4c.5 4-1.4 7.4-1.6 11.4-.3 6 2.4 12.1 7.3 15.9 2.4 1.9 5 2.8 7.7 4.3 2 .8 1.9 2 1.6 3.9-1.5 1.8-3.3 1.4-5.3.8a26 26 0 0 1-16-16 25 25 0 0 1 1.4-19.4c1.3-1.8 3-.9 5-.9","fill":{"type":"color","name":"ink"}}}]},"variant09":{"elements":[{"name":"path","type":"element","attributes":{"d":"M239.3.9a65.3 65.3 0 0 1 66.3 75.4c-1 7.6-4 14.4-6.8 21.4q-2.3 1-4.4 1.6c-3.2 0-6.4-1.4-9.4-2.2a176 176 0 0 0-47.7-7 97 97 0 0 0-39.3 8.4c-2.9 1.3-5.6 3-8.6 3.9-3.5-.3-4.4-3.2-6-5.8a66 66 0 0 1 12.9-77.8c11.6-11 27-17.5 43-18","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M241.3 6.7a59 59 0 0 1 57.1 43.1 60 60 0 0 1-4.2 43.6c-6.2-1-11.9-3.2-18-4.4a157 157 0 0 0-51.4-3.5A91 91 0 0 0 190 96.7a60 60 0 0 1 9.8-73.4 59 59 0 0 1 41.5-16.6","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.6 23.9a55.4 55.4 0 0 1 59.8 45.3A55 55 0 1 1 65.5 24","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M60.8 30.5a49.6 49.6 0 0 1 59.6 52.3 50 50 0 0 1-45.1 45 49.3 49.3 0 0 1-14.5-97.3","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M203.7 51.5a15.9 15.9 0 1 1 7.1 30.9c-9.2 2.2-18.8-5-19-14.6a16 16 0 0 1 12-16.3M87.7 62.4c9.6-3.2 20 4.4 20.4 14.3.8 8.9-6.9 17.1-15.8 16.8-8.6.4-16-7.1-16-15.7a16 16 0 0 1 11.4-15.4","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"m283.1 109.5 3.2 1c-.4 1.7-.3 3.3-1.7 4.5a40 40 0 0 1-25.3 9.9c-3.8-.1-8.6-1-11.5-3.8l-.4-3.6 2.8-1c4.5 2.2 9 3.5 14.1 2.3 7.5-1.3 12.6-5.5 18.8-9.3M31.4 124.6c2.2-.5 3.8 1.4 5.5 2.6a53 53 0 0 0 33.4 11.4c5.8.1 10.8-2.2 16.7-1.3-.5 2.4 0 4.4-3 5A58 58 0 0 1 31.3 130c-1.8-1.4-2.3-4.4.2-5.3","fill":{"type":"color","name":"ink"}}}]},"variant10":{"elements":[{"name":"path","type":"element","attributes":{"d":"M240.3.9a65.2 65.2 0 0 1 65.3 75.5c-1 7.5-4 14.2-6.8 21.2-1.4.6-2.9 1.5-4.4 1.8-2.4 0-4.8-1-7-1.6a179 179 0 0 0-49.1-7.6 96 96 0 0 0-43 9.6c-3.2 1.3-6 4-9 1.3A65 65 0 0 1 240.2.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M241.3 6.6a59 59 0 0 1 57.1 43.2 59 59 0 0 1-4.3 43.5c-5.3-.6-10.2-2.6-15.4-3.8-16-3.7-33-5.8-49.4-4.4A92 92 0 0 0 190 96.6a59.5 59.5 0 0 1 51.3-90","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.6 23.9a55.4 55.4 0 0 1 59.9 45.4 54.9 54.9 0 0 1-101 38.2 57 57 0 0 1-8.3-26.6 55 55 0 0 1 49.4-57","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M60.8 30.5a49.3 49.3 0 1 1 20.9 96.3 49.3 49.3 0 0 1-21-96.3","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M203.7 51.6a15.9 15.9 0 1 1 7.2 30.8c-9.2 2.3-19-5-19-14.6a16 16 0 0 1 11.8-16.2m-116 10.8a16 16 0 1 1-4.4 28.4 15.9 15.9 0 0 1 4.4-28.4","fill":{"type":"color","name":"eyes"}}}]},"variant11":{"elements":[{"name":"path","type":"element","attributes":{"d":"M240.3.9a65.3 65.3 0 0 1 65.5 73.7c-.3 2.7-3.2 3.6-5.5 3.8-23 1-45.4 3.7-68 6.3q-19.7 1.7-39.2 4.6c-4.6.5-8.6 1.7-13 0A65 65 0 0 1 240.3.8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M250.5 7.3a60 60 0 0 1 50.2 60.5c-.2 1.4.2 3.5-.7 4.6-4.2.7-8.5.7-12.7 1.1-18.4 1.2-36.6 3.4-54.9 5.5q-20.5 3-40.3 5.5l-7.3.8a59.2 59.2 0 0 1 65.7-78","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M195.5 48A24.8 24.8 0 0 1 235 68.8a31 31 0 0 1-2.6 10.2q-20.5 3-40.3 5.5a24 24 0 0 1-6.4-15.7c-.5-8 3.4-16 9.8-20.8","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M100.2 31.9a55 55 0 0 1 23.9 61.8c-4 1.2-7.7.8-11.8.8-25.4-.3-50.6-.3-76 1.4-5.6-.3-13 1.8-17.8-1.4a55.2 55.2 0 0 1 81.7-62.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M94.8 35.3a49 49 0 0 1 24.6 53.9l-5.7.1-38.2-.4q-23.2.3-46.2 2c-1.8-.2-5.8.5-6.1-2a49 49 0 0 1 71.6-53.6","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M87 56.6q7-2.4 14.1-.5a22 22 0 0 1 15.4 17.7 24 24 0 0 1-2.8 15.5l-19.2-.2H85l-9.5-.2-.4-.7a24 24 0 0 1-2.5-11.4 22 22 0 0 1 14.5-20.2","fill":{"type":"color","name":"eyes"}}}]},"variant12":{"elements":[{"name":"path","type":"element","attributes":{"d":"M273.6 9.5A64 64 0 0 1 302.1 43a64 64 0 0 1 .5 45c-1 3-2.9 5.3-6.3 4.9-15-.8-30 .1-45 .5q-15 1.5-30 3.8c-10.5 1.8-20.7 4.1-31 6-4.3 0-5.3-4.1-7.2-7.2a65.5 65.5 0 0 1 47.1-94.2 65 65 0 0 1 43.4 7.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M242.3 6.7a59 59 0 0 1 54.4 80.6l-3.2-.3q-25 .5-48.7 1.5a287 287 0 0 0-34 5.2c-6.7 1.2-13.4 3.2-20.2 4a60 60 0 0 1 10.7-75.9 59 59 0 0 1 41-15.1","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M257.7 52.1a26.6 26.6 0 0 1 37.2 19.5 27 27 0 0 1-1.4 15.4q-25 .5-48.7 1.5A26.6 26.6 0 0 1 257.7 52","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M76.3 23.9a54.8 54.8 0 0 1 42.8 81.8c-1.1 1.8-2.9 4-5 4.7-3 .8-6.6-.2-9.6-.9q-13-3-26.3-5.1-19.4-1.4-39 0c-4.7.4-9.7 1.4-14.5 1-2.3-1-3.7-4.2-4.6-6.4a55 55 0 0 1 56.2-75","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M85.8 31.5a49.3 49.3 0 0 1 26.7 74l-4.1-.7c-12.4-2.2-24.9-5-36.5-6.8-7.6.2-15-.4-22.6.3l-22 1.8q-1-1.6-1.8-3.4a49 49 0 0 1 10.3-52.4c12.7-13.2 28.4-17.7 50-12.8","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M71.5 80a22.7 22.7 0 1 1 36.9 24.8c-12.4-2.2-25-5-36.5-6.8l-.2-.6a23 23 0 0 1-.2-17.4","fill":{"type":"color","name":"eyes"}}}]},"variant13":{"elements":[{"name":"path","type":"element","attributes":{"d":"M239.3.9a65 65 0 0 1 63.5 43.4c2 5.6 2.6 11.1 3.6 17-1.3 1.4-1.7 3.3-4 3-7-.4-14-2.1-21-2.3-8.8 0-17.4-.4-26.1 1-9.9 1.6-19.6 2.6-29.1 5.7A175 175 0 0 0 193.7 81c-3.4 1.7-6.5 3.8-9.9 5.3-2 .7-4.4.3-5.3-2a66 66 0 0 1 17.2-65.2A65 65 0 0 1 239.3 1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M241.3 6.6a59 59 0 0 1 59 52.5q-22.4-4.4-45-2.5-9 1.2-17.9 2.9c-13.4 3-31.4 11-48.6 17l-5.8 3A60 60 0 0 1 203.5 20a59 59 0 0 1 37.8-13.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M203.5 39c11-4 24.4 1.3 30.3 11.2 1.9 3 2.7 6 3.6 9.3-13.4 3-31.4 11-48.6 17-3.5-7-4.3-15.1-1.2-22.5 2.8-7 8.7-12.6 16-15","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M95.7 29.4a55 55 0 0 1 29.4 61.2l-2.9 1.5q-14.6-4.1-29.9-5.4a348 348 0 0 0-54 0c-7 .2-13.5 2-20.5 1.6-.8-2.4-1.7-4.8-1.7-7.5a55 55 0 0 1 79.6-51.5","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M81.5 30.4a49.6 49.6 0 0 1 38.6 55.3 83 83 0 0 0-12.3-3Q89 79.8 70 80.2c-15.1.9-31.1 2.2-46 3-1.8-1.2-2-1.3-2-3.4a49.4 49.4 0 0 1 59.5-49.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M26 68.5a23.1 23.1 0 0 1 42.7.8c1.5 3.6 1.4 7.1 1.4 11l-5.7.3c-13.4 1-27.3 2-40.4 2.8.2-5.2-.3-10 2-14.9","fill":{"type":"color","name":"eyes"}}}]},"variant14":{"elements":[{"name":"path","type":"element","attributes":{"d":"M243.3 21.3a75 75 0 0 1 33.2 4.3 46 46 0 0 1 26.2 23.8c1.4 3.3 3.1 7.5 2.2 11.1-3 3.2-8.5 1-12.5 1q-19.1-.9-38 .6c-14 1-28.5 1.7-42 5.3a188 188 0 0 0-25.2 7.4c-3.7 1.2-6.8 3-11 2.2 1.4-16.9 13-31.4 26.4-41a87 87 0 0 1 40.7-14.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M183 70.6a58 58 0 0 1 18.2-26.5 161 161 0 0 1 25.2-12.8c10-3.6 20.2-5.5 30.9-4.3a54 54 0 0 1 31.9 13q7.4 7 10.1 16.7c-16.7-2.2-34.3-.9-51 0-7.7 1-15.4 1-23 2.3a222 222 0 0 0-42.2 11.6","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M226.4 31.3c1 9.3 0 18.5-1 27.7l-1.6.3c-7.5 1.3-15.3 3.2-22.5 5.2q-1-9.6-.2-19V44c8-4.6 16.4-9.5 25.3-12.8","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M53.5 45.5a80 80 0 0 1 51 8.2c8.6 4.8 16.8 12 20.5 21.4.7 2.1 1.6 4.6-.7 6q-4-.2-8-1c-9.4-1.8-19.4-2.1-29-2.6-10.7-.4-21.3.5-32 .6-12.5.9-24.8 3-37 5-2.5.6-3.2-2.4-3.2-4.2.2-12.4 9.1-22.3 19.8-27.5q9-3.8 18.6-6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M20.8 76.6c1.6-7 5.1-12.1 10.6-16.6l3.4-2.6A69 69 0 0 1 88 53a51 51 0 0 1 30.6 21.5c-20.2-3.5-40-2.6-60.3-2.4q-12.1 1.1-23.6 2.7-7 .3-14 1.7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M58.9 50.1c.1 7.4.3 14.7-.5 22l-3 .4q-10.6 1-20.6 2.4-.4-8.8 0-17.5a69 69 0 0 1 24-7.3","fill":{"type":"color","name":"eyes"}}}]},"variant15":{"elements":[{"name":"path","type":"element","attributes":{"d":"M190.3 38c5.5-1.2 11.7 2.4 17 3.9 22.1 7 45.8 9.5 69 7.7 6.2-.6 12.8-2.4 19-2 6.3.7 10.4 6 11 12a66 66 0 0 1-35.5 64.6A65.4 65.4 0 0 1 178.4 48c1.4-5.3 6.8-9 12-10m-77.8 5.6c3.6 2.2 5.8 6.6 7.7 10.2A55.3 55.3 0 0 1 79.5 133 55 55 0 0 1 17 88c-.5-3.8-1.5-7.7.2-11.2 1.6-4.2 5.7-7.1 10.1-7.6q7.5-.8 14.8-2A124 124 0 0 0 92.4 45a16.5 16.5 0 0 1 20.1-1.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M197.7 44.4c12.2 5 25.5 8 38.6 9.8 15.6 2 31.4 2.5 47 .3 3.9-.6 8.1-1.9 12-1.6 2.4.1 4.4 2.7 4.8 5a59 59 0 0 1-37 63.6 59.6 59.6 0 0 1-79.4-70.2c1.6-6.3 8-10 14-6.9M112 51c4.8 7 7.6 15.3 8.5 23.8A50 50 0 0 1 70.3 128 49 49 0 0 1 22 81.8c-.5-3.2 2-6.5 5.2-7l10-1.2C55.6 71.4 73.7 64 89.3 54c3.1-2 5.9-4.4 9-6.2 4.4-2.3 11-1.2 13.7 3.2","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M217.8 73.7a22 22 0 0 1 24.1 21 22 22 0 0 1-18.4 23c-12 2-24-6.9-25.4-18.9a22 22 0 0 1 19.7-25m-133 8.5c6-1.3 12.6.9 17 5a19.5 19.5 0 1 1-17-5","fill":{"type":"color","name":"eyes"}}}]},"variant16":{"elements":[{"name":"path","type":"element","attributes":{"d":"M179.1 51.4c2.5.2 5 1.4 7.4 2.2 9.3 3.7 18.8 6 28.5 8.4 21 5 42.8 8.8 64.3 6.8q11-1.5 22-3.8c2.6-.6 5.5.8 5.2 3.7a65.5 65.5 0 0 1-113 42A73 73 0 0 1 178 83.9c1.2 8 2.5 15.7 6.2 23 3 6 7.3 11 11.6 16-1.1 1.3-2.5 3.3-4.5 2-3.6-2.7-6.2-6.8-8.8-10.4-6.2-9-8.8-19.5-10-30.2-1-7.3 0-15 1.3-22.2.7-3.6 1.9-8.7 5.2-10.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M182.2 57.9c5 1.8 9.7 3.8 14.8 5.1 13.9 3.7 28.1 7.8 42.3 9.6l7.7 1.5c9 2.1 33 1.1 47-1.9l6.6-1A60 60 0 0 1 227 124a59.7 59.7 0 0 1-45-66.1","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M294 72.2a26 26 0 0 1-5.9 16.4 23.5 23.5 0 0 1-41-14.5c8.9 2.1 32.9 1.1 47-1.9","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M120.4 56.6c2.2.8 3.2 3 4.1 5 5.6 12 7.7 26.3 4.8 39.3a41 41 0 0 1-12 23c-1.6 1.6-3.5 1.5-5.6 1.4v-3.1c2.1-2.6 4.8-4.6 6.5-7.5a53 53 0 0 0 7-25.2A54.7 54.7 0 0 1 39 123c-9-6.5-16-15.9-19.7-26.4-.6-2-1.2-4.4-.5-6.3a9 9 0 0 1 5.6-2c8.8-.6 17.3-2.7 26-4.5 7.6-1.5 14.7-3.9 22-6 9.6-3.2 19-7.8 28.2-11.9q7.7-3.5 15.2-7.8c1.4-.7 3-1.8 4.7-1.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M118 63a49.4 49.4 0 1 1-93.8 30.8q22.6-2.5 44-8.8c14.3-4.3 30-12 43.1-18.6z","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M111.3 66.4a25 25 0 0 1 1.9 22.3 24 24 0 0 1-24 14.2c-10-.8-18-8-20.8-17.5l-.1-.4c14.2-4.3 30-12 43-18.6","fill":{"type":"color","name":"eyes"}}}]},"variant17":{"elements":[{"name":"path","type":"element","attributes":{"d":"M246.3 44.6q2.4 0 4.9.6c-.3 2.3.3 4.3-2.6 4.8l-28.3 2c-4.3.2-8.8 1.2-13 .9q-3-1-2.1-4.1c1.4-1.4 3.2-1.6 5-1.7 12-.6 24-1.9 36.1-2.5m56.9 15.3 3.1 2.2a66 66 0 0 1-34.2 61.5 65.4 65.4 0 0 1-96-53c2.1-3.2 5.8-3 9.2-3.2l92-6.2c8.7-.2 17.2-1.6 25.9-1.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M300.6 65.5a59.2 59.2 0 0 1-68.3 59.5 60 60 0 0 1-35.3-18.9 58 58 0 0 1-14.8-32.5c11.2-1.2 22.4-1.7 33.6-2.6q14.4-1.2 28.6-1.9 28.1-2 56.2-3.6","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M244.4 69.1c.8 10 1.4 22.3-3.2 31.6-2 3.8-5.2 7.3-10 6.4-4.9-1-8.3-6.8-10.2-11a72 72 0 0 1-5-23.5l-.2-1.6q12.6-1 25-1.7z","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M80.6 58.1c1.3 1.3 2.2 2 2.1 3.9-1.4 2.5-5 2-7.4 2.3-8 .2-16 1.7-24 1.7-2.8-.3-2.2-2.5-2.6-4.5 10.3-2.7 21.4-1.8 32-3.4m18.6 18.4c8.1-.7 16.1-1.4 24.3-1l2.6 2.5a55.1 55.1 0 0 1-109.6 6.7c1-.9 2.1-2.7 3.6-2.8 13-1.6 26-1.7 39-3 13.4-.6 26.8-1.7 40.1-2.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M120.7 81a49.5 49.5 0 0 1-49.4 47 50 50 0 0 1-48.6-40.7q17-1.5 34-2.3L79 83.5c13.9-.8 27.8-2.2 41.7-2.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M79 83.5a42 42 0 0 1-2.2 20.7c-1.4 3-4 6.2-7.5 6.3-3.4.2-6-2.4-7.7-5a38 38 0 0 1-4.8-20.6z","fill":{"type":"color","name":"eyes"}}}]},"variant18":{"elements":[{"name":"path","type":"element","attributes":{"d":"M301.5 45.6c1.2 1.4 2.4 2.4 2.9 4.2a65.5 65.5 0 0 1-79 79.6 65 65 0 0 1-49-71.6c.6-3.4 1.8-7.2 5.7-8 8.6-1.6 17.5-1.4 26.2-2.3a999 999 0 0 1 73-2.1c6.8-.4 13.5.4 20.2.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"m291.4 51 7.4.5a59 59 0 0 1-37.2 70.5 59.3 59.3 0 0 1-79-66q2.7-1.1 5.7-1.4 25.3-2 50.8-3 26-1.2 52.3-.5","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M239.2 51.5q26.1-1 52.1-.4a26.6 26.6 0 0 1-26 31.4 26.5 26.5 0 0 1-26.1-31","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M116.3 57.5c2-.3 3.8.3 5.8.7 4.2 9 4.8 19.9 3.4 29.6A55 55 0 0 1 16 76.8c6.6-3.3 13.2-3.8 20.5-5.5Q67.3 64.9 98.3 60q9-1.6 18-2.5","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M118 62.9a55 55 0 0 1 2.6 16 49.6 49.6 0 0 1-54.3 48.9 50 50 0 0 1-44.4-47.4c14.4-3.6 29.1-6.2 43.7-9q23.6-4.2 47.3-8z","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M112.8 63.4a24 24 0 0 1-23.5 28.2 24 24 0 0 1-23.6-20.2q23.5-4.2 47.1-8","fill":{"type":"color","name":"eyes"}}}]},"variant19":{"elements":[{"name":"path","type":"element","attributes":{"d":"M303.7 45.4c3.8 2.6 8 5.3 11.1 8.9q.3 2.5 0 5c-1.9.7-3.3 1.1-5.3.3a142 142 0 0 0-91.3 0c-12.6 4.2-25 10.3-35.3 18.8-1.4 1-4 2.9-5.3 1-1.7-1.5-.7-3.4.2-5.1a81 81 0 0 1 30.6-30.4 94 94 0 0 1 95.3 1.5M89.8 57.2a57 57 0 0 1 31.2 18c2.8 3.8 6.5 8 5.9 13.1-1.6 0-3.3.7-4.6-.5a51 51 0 0 0-13.9-8 100 100 0 0 0-48.6-5.1 75 75 0 0 0-36 13.7c-1.9 1.3-3.2 2.8-5.7 1.8-1.2-1.9-1-4.5.4-6.2 16-21.8 45-31.8 71.3-26.8","fill":{"type":"color","name":"ink"}}}]},"variant20":{"elements":[{"name":"path","type":"element","attributes":{"d":"m304.2 58.6 2.6 1.1-.5 3c-2.2 3.9-6 7-9 10.1q-8.7 7.7-19.1 12.9c-14 7-30.3 9.9-45.9 8.4A111 111 0 0 1 178.1 73c-1.4-1.1-2.9-2-2.4-4 .5-2.5 4-3.4 6-2.5 21.3 6.3 42.7 6.7 64.6 5.5 16.3-1.6 32-4.3 47.5-9.7 3.6-1.2 6.8-2.8 10.4-3.7M124.9 69.2c2.8 1.4 2.2 4.4 0 6.2a79 79 0 0 1-39.6 18.8c-7.8 1-15.1 2.3-23 1.1a85 85 0 0 1-39-12.5c-2.1-1.4-4.7-2.9-6.2-5q-.7-3.7 3.2-4.2c2.7.3 5.4 1.4 8 2 7.6 2.2 15.3 3 23 3.8a169 169 0 0 0 64.2-7.5c3-.8 6.3-3 9.3-2.7","fill":{"type":"color","name":"ink"}}}]},"variant21":{"elements":[{"name":"path","type":"element","attributes":{"d":"M64.5 24a55 55 0 0 1 61 45.5 55 55 0 1 1-61-45.5","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.5 30a49.4 49.4 0 0 1 57 58.3 49.3 49.3 0 1 1-57-58.2","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M274.3 51.7c13-.6 27-1.3 39.8 1.5 2.2.6 3 1.3 2.3 3.7-2 1.7-6 3.3-6.8 6 0 6 9 6 9.7 10.9-.3 3-2.4 3.3-5 3.1q-11.5-1-23-1.4c-16 0-32-.2-48 .9-7.6.7-15.2.6-22.8 1.2-11 1-22.1 1.3-33.1 3.3q-4.1 1-8.2 1c-2-1.2-3.1-5.5-.6-6.8 5.3-3 11.3-5 17.2-6.8 15-5 30.7-8.3 46.2-11.7 10.7-2.4 21.5-3.7 32.3-4.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M89.7 56.5q5.3-1.4 10.4-.2A20.2 20.2 0 0 1 94.3 96a20.1 20.1 0 0 1-4.5-39.5","fill":{"type":"color","name":"eyes"}}}]},"variant22":{"elements":[{"name":"path","type":"element","attributes":{"d":"M234.6 1.2a66 66 0 0 1 62 30.4 65 65 0 0 1-14.3 85.2A65.4 65.4 0 1 1 234.6 1.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.5 7a59.7 59.7 0 1 1 15.1 118.3 59.7 59.7 0 0 1-15-118.2","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M205.5 44a22.2 22.2 0 1 1 10.8 43 22.2 22.2 0 0 1-10.8-43","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M17.3 55.3c14.4.7 28.7 1.5 43 3.9 21.1 3.4 42.9 9 62.1 18.4 2.9 1.6 2.5 3.3 1.6 6.1q-3.4.1-6.7-1a260 260 0 0 0-34-7.2c-10.5-1.4-20.6-3.2-31-3.7-11-1-21.9-.7-33-.6-2-.2-5 .6-6.6-.8-.7-2.1.8-4.7 1.3-6.8-1-1.6-3-3.4-2.4-5.4 1-2.4 3.4-3 5.7-3","fill":{"type":"color","name":"ink"}}}]},"variant23":{"elements":[{"name":"path","type":"element","attributes":{"d":"M231.8 1.6a65.2 65.2 0 1 1 18.8 129 65.2 65.2 0 0 1-18.8-129","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.5 7a59.6 59.6 0 1 1 15.3 118.4A59.6 59.6 0 0 1 233.5 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.5 23.9a55.3 55.3 0 0 1 60 45.4 54.9 54.9 0 0 1-103.8 33.1A54 54 0 0 1 17 69.8a54.5 54.5 0 0 1 48.5-46","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.5 30.1a49.4 49.4 0 1 1-6 95.5 49.5 49.5 0 0 1-20.2-81.8 50 50 0 0 1 26.2-13.7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M243 33.5c-3.8 4-6.6 8.6-6.6 14.3A21 21 0 0 0 249 68.2a19 19 0 0 0 17.7-2 36.3 36.3 0 1 1-52.7-31 39 39 0 0 1 29.2-1.7M76.3 44.7A35 35 0 0 1 99 49c-3 3-5.4 6.3-5.5 10.8a14.6 14.6 0 0 0 11.8 15.5c3.4.6 6.2-.5 9.4-1.5a34 34 0 0 1-14.8 31.6 33.3 33.3 0 1 1-23.6-60.7","fill":{"type":"color","name":"eyes"}}},{"name":"path","type":"element","attributes":{"d":"M211.7 66.3c2.3-1 4.8-1.3 7 .2 3.5 2.3 3.5 7.5.8 10.5s-7.8 3.2-10.3-.1c-2.9-3.4-1.4-8.7 2.5-10.6m-148 6c4.8-1.6 9.3 3.6 7.1 8-1.6 3.7-7 4.4-9.4 1.4-2.6-3-1.5-8 2.3-9.4m157.1 9.2q3.9-1 7.8.1c6.1 2.4 8 11.2 3.6 16-4 4.8-11.8 5-15.7 0-4.5-5.3-2.5-13.9 4.3-16.1m-150 8c3.4-1 7.1-.6 9.6 2.2 3.5 3.4 3.4 9.6-.6 12.6-4 3.5-10.7 1.8-13.2-2.8a8.3 8.3 0 0 1 4.2-12","fill":{"type":"color","name":"sclera"}}}]},"variant24":{"elements":[{"name":"path","type":"element","attributes":{"d":"M235.6 1a65.4 65.4 0 0 1 59.6 101.7A65.2 65.2 0 1 1 235.6 1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.6 7a59.6 59.6 0 1 1 15.2 118.3A59.6 59.6 0 0 1 233.6 7.1","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.6 23.9a55.4 55.4 0 0 1 58.6 40 55.5 55.5 0 0 1-26.7 63 54.7 54.7 0 0 1-81.3-46 55 55 0 0 1 49.4-57","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.6 30a49 49 0 0 1 57.2 56.7 49.1 49.1 0 0 1-93.1 12.9A49.3 49.3 0 0 1 62.6 30","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M210.8 44.3c12-2.9 24.9 4.2 29.3 15.6a26 26 0 0 1 0 18.7 25.6 25.6 0 1 1-29.3-34.3M82.6 55.1a23 23 0 0 1 27 18.1c.7 5.7.6 11.4-2.6 16.2a23 23 0 0 1-23.6 11.2 23.1 23.1 0 0 1-.8-45.5","fill":{"type":"color","name":"eyes"}}}]},"variant25":{"elements":[{"name":"path","type":"element","attributes":{"d":"M234.6 1.2a66 66 0 0 1 68.2 43.3 65 65 0 0 1-20.5 72.3A65.4 65.4 0 1 1 234.6 1.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.6 7a59.6 59.6 0 1 1 15.1 118.4A59.6 59.6 0 0 1 233.6 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.6 23.9a55.3 55.3 0 0 1 59.7 44.8 55 55 0 1 1-59.8-44.8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M62.6 30a49 49 0 0 1 57 57.5 49.4 49.4 0 1 1-57-57.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M211.6 43a23.8 23.8 0 1 1 5.7 47.1 23.8 23.8 0 0 1-5.7-47.1M42.8 57.7a22 22 0 0 1 28 16.5 21.7 21.7 0 0 1-17.5 25.6 22 22 0 0 1-24.6-14.2 22.3 22.3 0 0 1 14.1-28","fill":{"type":"color","name":"eyes"}}}]},"variant26":{"elements":[{"name":"path","type":"element","attributes":{"d":"M234.6 1.2a65.4 65.4 0 1 1 13 130 65.4 65.4 0 0 1-13-130","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M233.6 7a59.7 59.7 0 1 1 15.1 118.4A59.7 59.7 0 0 1 233.6 7","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M65.5 23.9a55.3 55.3 0 0 1 60 45.9 54.9 54.9 0 0 1-100.2 39 57 57 0 0 1-9.1-28 55 55 0 0 1 49.4-57","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M60.8 30.5a49.3 49.3 0 1 1 20.8 96.4 49.3 49.3 0 0 1-20.8-96.4","fill":{"type":"color","name":"sclera"}}},{"name":"path","type":"element","attributes":{"d":"M260.7 41.2a25 25 0 0 1 17.7 1.5c10 4.7 16.7 17.4 12.9 28.1a24.3 24.3 0 0 1-36.6 14.6 24.5 24.5 0 0 1 6-44.2M92.8 55.3c12.7-1.6 25 8.5 25.3 21.5 1 12.4-9.3 24.2-21.8 24.3a23 23 0 0 1-23.9-22.3 23 23 0 0 1 20.4-23.5","fill":{"type":"color","name":"eyes"}}}]}}},"glasses":{"width":363,"height":164.5,"probability":10,"variants":{"variant01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M274.5 1c10.7-.3 21.3 0 32-.3 14-.6 28-.3 42-.5 3.9.2 9-.2 12.2 2.3 2.4 1.7 2.2 5.6 2.4 8.2-.2 4.3-.3 9.4-2.4 13.3-5 2-11.4 1.2-16.8 1.9.4 12.3 1.7 24.6 1.3 36.8-.7 14-3.7 28-10.3 40.3-8.1 13-20 24.4-33.6 31.6a77 77 0 0 1-33.4 7.7c-6.2.2-12 .5-18.2-.8-9.4-2-18.8-4.5-27-10a82 82 0 0 1-25.3-30.7 193 193 0 0 1-13.3-44c-.5-2.2-2.4-3.4-4.3-4.4-6.7-3-15-.5-18.9 5.6q-.9 3.9-1.1 7.7c-.6 7.6-2.3 15.3-3.9 22.8-3.1 13.6-9 26.3-16.8 37.8a51 51 0 0 1-16.2 14.8 76 76 0 0 1-34.4 10.3c-7.3-.2-14.2-.4-21.1-2.5A58 58 0 0 1 37 124.2q-8-12.5-12.3-26.7a98 98 0 0 1-5.2-28.7c-4.6.7-9.4 2.2-14 2-4.4-1-5.3-7.7-5.5-11.2.1-2.4-.2-6.8 2.7-7.7a368 368 0 0 1 67.5-22.3c17-3.7 34.8-8.3 52.3-6.7 11.2 1 22.8 4 31.7 11 3.2 2.5 5.5 6.9 9.4 7.7 7 1.8 14.5-1.3 20.9-4a43 43 0 0 1 19-22.8 89 89 0 0 1 20.8-8.3c16.7-4 33-4.7 50.2-5.5","fill":{"type":"color","name":"glasses"}}},{"name":"path","type":"element","attributes":{"d":"M12.6 62.9c1.2-1.2 3.4 0 2.4 1.6-1.2 1.2-3.4 0-2.4-1.6","fill":{"type":"color","name":"glasses"}}},{"name":"ellipse","type":"element","attributes":{"cx":"310.5","cy":"42.2","rx":"14","ry":"10.5","fill":"white"}},{"name":"ellipse","type":"element","attributes":{"cx":"116.5","cy":"60.8","rx":"11","ry":"8.1","fill":"white"}}]},"variant02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M345.5.2q5.5-.1 11 .5c2.6.6 5.6 2 6 4.9 1 5 .5 12-1 17-.5 1.7-1.8 2-3.4 2.3q-7.1.7-14.2 1c.5 15.7 2.7 32.5.2 47.8q-1.5 11.4-5.7 21.8a66 66 0 0 1-15.4 22.7 75 75 0 0 1-36.2 21.8q-16.5 3.5-33.3 2.1a87 87 0 0 1-27-8.4c-10.5-6-18.5-15-24.8-25.2a134 134 0 0 1-15.5-41.6c-1.1-5-1.4-10.3-2.8-15.1-.4-1.8-2.6-3-4.1-4-6.7-3.3-16.4-.9-19 6.7-1 5.6-.2 11.5-1.2 17.2-2 13-4.8 26.1-10.6 38a70 70 0 0 1-22.4 29.6 73 73 0 0 1-64 7.7 63 63 0 0 1-18.8-14 107 107 0 0 1-20.8-43.2q-3-10.2-3-20.9c-4 .6-8 1.7-12 2q-3.6.4-5.4-2.7A20 20 0 0 1 .3 55.6C.6 54.4.7 53 2 52.3c27.5-12.6 56-20.6 85.5-26.5 11.2-2.3 22.5-3.8 34-3 10 0 20 2.3 28.8 7a42 42 0 0 0 35.2 0c4.9-2.5 6.8-6.7 10.9-10.2 9.8-9.1 23-13.3 36.1-14.8 14-2.6 28-3.1 42-3.8 13-.3 26 .1 39-.5 10.7-.3 21.3-.1 32-.3m-230 28.5c-9.8-1-20.4 1.5-30 3.3-11.8 2.7-23.3 4.6-34.5 9.2-6.4 2.5-14.3 4.7-17.7 11.3C27.9 63.4 29.8 74 31 85.7A92 92 0 0 0 44 119c5.2 8 11 15 19.5 19.6 12.8 7 28 6.1 41.4 1.5 11.4-4.4 21.8-9.8 28.6-20.3 8.8-14 13.9-30.7 15.5-47.2q1.2-14.1-2.7-27.8-.6-2.3-2-4.1a36 36 0 0 0-19.1-11.4c-3.2-.5-6.6-.4-9.8-.6m199.1-19a54 54 0 0 0-24.1-3c-13 .1-26 0-39 1.4q-14.7 1-28.8 5A47 47 0 0 0 203 28a46 46 0 0 0-5.5 23.6 100 100 0 0 0 5.9 37.3c2.1 5.5 4 11.5 7.5 16.4a70 70 0 0 0 17 17c5.4 3.4 10.3 6.8 16.6 8.4 6 1.4 12 3 18 3.4 10 .6 20.2-2.4 29.4-6.2a76 76 0 0 0 17.8-10.2 61 61 0 0 0 18.2-23.9 96 96 0 0 0 5.2-37.2 98 98 0 0 0-8.4-40.2c-1.2-3.9-6.6-5.3-10-6.9","fill":{"type":"color","name":"glasses"}}}]},"variant03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M205.8 92a28 28 0 1 1 31.2 46.3 27.6 27.6 0 0 1-43-22.3c-8.6-10.2-25.6-14-36.5-5.2-3.2 3-6.6 7.3-6.7 11.9a27.5 27.5 0 0 1-53 5.6 27.6 27.6 0 0 1 10.6-32.8 28 28 0 0 1 25.7-2.4 29 29 0 0 1 16 17.4 27 27 0 0 1 22.4-10c8.2-.1 15.4 3.2 22 8A29 29 0 0 1 205.8 92m-62.2 17.6a22 22 0 0 0-23-12.8 22 22 0 0 0-12.6 37.3c6.1 6 15.7 8 23.7 4.8 6.8-2.6 12.2-9 13.4-16.2.5-4.6.7-9-1.5-13.1m89.9-13.9c-5.8-3.5-13-4.1-19.3-2a22.5 22.5 0 0 0-14.1 27A22.6 22.6 0 0 0 226 137a22.6 22.6 0 0 0 7.4-41.3","fill":{"type":"color","name":"glasses"}}}]},"variant04":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M282.5.8a79.9 79.9 0 0 1 39 141 80 80 0 0 1-92.5 6.4 80 80 0 0 1-38.2-69.3c-5-5.3-10.7-9.6-18.3-9.7-7.8 0-14.3 5.7-17.3 12.6.8 6.7 1.6 13.3.7 20A69.8 69.8 0 0 1 20 117.1a70 70 0 0 1 21-75.7 71 71 0 0 1 46.4-16.9c12 .5 24 3.7 34.3 9.9A70 70 0 0 1 152.5 72c4.9-5.7 11.3-10 19-10 7.4-.3 14.2 2.6 19.7 7.3a89 89 0 0 1 8-25A80 80 0 0 1 282.4.8M257 8.6a72.4 72.4 0 0 1 85.9 80 72.7 72.7 0 1 1-86-80m-147.4 28a62.6 62.6 0 1 0-37.9 118.8 64 64 0 0 0 45.8-6.6 63 63 0 0 0 30.2-41.9 63 63 0 0 0-38-70.4","fill":{"type":"color","name":"glasses"}}}]},"variant05":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M294.5 30.7c12.7.7 25.7 1.8 37.4 7.6q1.6.8 3.3 1.9 2 1.5 4.3 2.3 3.4.4 7 .5 4 0 8 .7c2.1.8 2.2 2.8 2.4 4.8v1c0 2.2 0 4.2-2.4 5.4q-3.3.3-6.7.2h-3.1a92 92 0 0 1-11.5 52.3 82 82 0 0 1-43.9 37.2 79 79 0 0 1-77.4-14.3 89 89 0 0 1-28.7-44.5q-1.4-4.5-2-9-.8-4.8-2.3-9.5c-2-5.5-10.5-8.8-14.5-3.7-3.3 3.7-3.2 8-3.2 12.6v3.5a77 77 0 0 1-41.3 65.4 65 65 0 0 1-46.2 5.3A62 62 0 0 1 43 131.2 71 71 0 0 1 26.2 86l-1.5-.2c-1.4-.2-2.7-.3-3.4-2v-.4c-.4-2.2-.9-5.5 1.4-6.5q1.5-.8 3-1.3c2.2-1 4.4-1.8 6.2-3.5a89 89 0 0 1 37.6-17.4 152 152 0 0 1 69-.8c5.8 1.3 12 1.5 17.7-.5 7-2.4 14.9-3.5 22.3-2.5 5.8.5 11.9.3 17.4-1.9 12.1-4.6 24-9.1 36.6-12.3q30.5-7.8 62-6m-25 13c17.6-1 36-.8 53.3 3.7A19 19 0 0 1 337 62.9c1.3 7.9.3 15.5-1.3 23.3a81 81 0 0 1-24.7 39 73 73 0 0 1-81.6 9.6 80 80 0 0 1-33.2-32.9 61 61 0 0 1-6.4-35.5A98 98 0 0 1 210 56.1a215 215 0 0 1 59.5-12.4M134.7 63.5q-17.1-3.2-34.7-2a167 167 0 0 0-46.4 9.3 60 60 0 0 0-15 8c-4.1 2.9-5.5 9.2-5.7 13.9.3 8.9 3.6 17.8 8 25.5a56.4 56.4 0 0 0 66.6 25.6 68 68 0 0 0 46.7-62.1 47 47 0 0 0-1.5-10c-.2-1.7-1.7-2.5-3-3.3q-.4 0-.6-.3a58 58 0 0 0-14.4-4.6","fill":{"type":"color","name":"glasses"}}}]}}},"hair":{"width":914.4,"height":951.2,"variants":{"long01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M463.6 193.4c42.7 5.5 86.5 17 124.8 37.2 25.9 13.7 50.8 32.2 67.1 56.9 4 5.7 5.8 12 8.5 18.4 4.8 12 7.7 24 11 36.5 8 31 18 61.6 29 91.6q19 52.5 43.5 102.5 2.1 4.3 4.6 8.5 1.3 1.9 0 3.8a64 64 0 0 1-16 13.2 226 226 0 0 1-39.7 19 423 423 0 0 1-112.8 25.7c-3.9.3-7 1.3-10.6-1 .4-2.5.4-4.6 2.5-6.4q8.4-7.5 16.2-15.7a403 403 0 0 1-64.6 27.3c-2.9.8-6.5 2.3-9.5 1.6-1.9-.9-2.1-2.8-1.4-4.6 8.7-19.2 12.3-41.7 15.1-62.5a579 579 0 0 0 4.3-70c.1-18.2 0-36.5-1.8-54.6-37.5-3.9-74.6-15-108.7-30.9a279 279 0 0 1-68-43.9 157 157 0 0 1-23.5-26c-1.2 9.4-1 18.9-.9 28.4q-.1 5.4 1.3 10.6c.3 1.7 1.2 3.3 0 4.8-1.1 1.7-3.7 1.1-5.4.6a57 57 0 0 1-30.4-25.6 74 74 0 0 1-10.1-40.4 182 182 0 0 0-32.3 32.1 269 269 0 0 0-32.7 48.4 37 37 0 0 0-3.4 8.5A218 218 0 0 0 312.1 616q1.9 1.1 3.5 2.6c.7 1.7 1 3-.4 4.5-2.4 1.4-5.3 2-8 3-22 6.9-44 13.4-65.7 21.3-21.9 8-43.2 17.6-65.1 25.5q-2-1.4-3.4-3.4c3.6-7.7 9.3-14 12.5-22.1 9.8-24.3 10-51.2 9.3-77 0-14.7-1.2-29.3-1.9-44q-2.2-32.5-3.3-65c-.6-27.3-2.1-55.7 0-83 1.3-22 5.3-44.2 13-65a61 61 0 0 1 13.3-21.7c5-5 9.9-10.2 15.2-14.7s11-8.4 16.4-12.7c15.9-12.5 31-25.7 47-38a226 226 0 0 1 51-31 60 60 0 0 1 21.1-4.6 496 496 0 0 1 97 2.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M416.6 195.6c48 1.5 97.4 9.8 142.2 27.7a248 248 0 0 1 57.4 31.5 148 148 0 0 1 35.2 36.8q4.3 6.8 6.6 14.3c2.5 7.9 6 15.3 7.7 23.5 8.5 35 19.4 69.3 31.6 103.2 13.4 36.5 28.2 72.8 45.6 107.6q1.5 3.3 3.6 6.4a96 96 0 0 1-21.5 15.2 332 332 0 0 1-68.7 26.1 381 381 0 0 1-74.2 13.2q12-10.6 22.2-23 2-2.6 4.8-4.2 9.4-5.5 18.1-11.8 2-1.6 3.1-3.7c-1.2-1.3-1.8-2.5-3.7-2.5-3 1.3-5.5 3.6-8.2 5.3q-15.9 10.5-33 19a388 388 0 0 1-61.8 25.6c5.6-14.5 8.8-30.1 11.3-45.4 4-24.8 5.8-49.8 6.5-75a558 558 0 0 0-6-100c-.2-1.6-.8-3.6-2.8-3.4-3-.2-3.1 2.4-2.8 4.6q2.4 14.2 3.6 28.4c-34.2-4-67.7-13.4-99.3-27.3a300 300 0 0 1-60.5-35.3 171 171 0 0 1-31.3-30.6c-2.4-3.2-4.2-6.3-7.2-8.9-1.3-1.4-2.8-1-4.5-.7-2 2-2.3 4.5-2.6 7.2a157 157 0 0 0-.2 38.4c-7.2-2.8-13.7-8-18.8-13.8a67 67 0 0 1-6.4-75.6c1.1-1.9 1.5-4.3-.9-5.4-2.2-.3-2.9.7-4 2.4a69 69 0 0 0-9.3 26.7c-12.4 7.4-23 18.7-32.7 29.4a337 337 0 0 0-25.4 33.5 201 201 0 0 0-23.3 47.6 100 100 0 0 0-4.1 17.9c0 2.9 2.9 4.1 5 2.2q.9-2.4 1.5-5a224 224 0 0 0 98 202.2c-25.3 8-51.7 15.7-76.8 25.4-16.3 6.2-32.2 13.3-48.5 19.8a82 82 0 0 0 11.4-22.7c8.2-25.3 7.6-51.8 7.1-78-.8-11.4-.8-22.7-1.7-34-.8-10.3-1-20.7-2-31l-1.7-39q-.8-35-.5-70 .6-33.5 9.7-65.8c1.6-5.9 4.4-11.1 6.9-16.6 4-8.4 10.3-13.8 16.7-20.2 5.8-6 12.4-11 19.1-15.9 27.4-20.9 53.8-46.3 83.8-63.2a100 100 0 0 1 22.7-10c7.3-2.1 14.5-2.3 22-2.7 13.6-.8 27.4-.5 41-.4","fill":{"type":"color","name":"hair"}}}]},"long02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M331.6 144.6a58 58 0 0 1 39.6 10.1 41 41 0 0 1 14.8 18.4 28 28 0 0 1 0 20 338 338 0 0 1 98.6-14.5q11 .3 22 1.3a205 205 0 0 1 88.6 28.9 160 160 0 0 1 58.4 63.6 179 179 0 0 1 18.5 69.5c27.4-6.6 57.5 7 73.2 29.8a57 57 0 0 1 10.9 37.6c-.2 1.8-2 3-3.6 3.3-2.6-.6-5-2.5-7.5-3.6a138 138 0 0 0-43.3-12.5c27 18.4 47.5 46.4 57 77.7 5 15.9 6.6 32.7 4.8 49.2a86 86 0 0 1-20.6 47.4c-1.5 1.8-5.2 2.4-6-.3 0-10.2.6-22-4.7-31.2a89 89 0 0 1-77.2 61.3 106 106 0 0 1-45.4-5c-4.5 6.3-7.6 14-6.6 21.8.3 1.7-1.2 2.5-2.3 3.5l-7.2-4.6q-8.8-6-15.8-14.1c-1-1-1.2-2.4-1.5-3.7 18.3-16 34-35.3 46-56.4 1.4-2.7 4-1.5 6.3-1a56 56 0 0 0 48.5-9.2 66 66 0 0 0 26-42.5c1.4-10.4 1-20.8-2.9-30.7-4.8-13-14.5-24-27.2-29.7-11.6-5.4-25-6-37.1-2.3a135 135 0 0 1-18.5 32.5 142 142 0 0 1-25 24c-1.7 1.3-3.4 2.4-5.2.6-1.5-1.8.4-5.2.8-7.2 3-12.8 6-26 6-39.2q1-16.6-1.7-33c-.5-2.6-.6-5.6-1.8-8-3-.3-6-.2-9-.8a49 49 0 0 1-22.2-10.9 38 38 0 0 1-13.4-27.3 39 39 0 0 0-4.4 21c0 1.8.7 4.7-.8 6q-2.8 1.5-6.1 1.8a76 76 0 0 1-36-3.9 51 51 0 0 1-26-22 62 62 0 0 1-6.8-37.4c.4-3.4 1.2-6.6 1.4-10-4.3 7.9-7.6 16-9 25a70 70 0 0 0 1.4 34.6c.4 1.5 1.2 3.3.7 4.8-.4 1.6-2.2 2.1-3.7 1.4a52 52 0 0 1-20-17.6c-.4 4.6.1 8.4 1.6 12.8.4 2 2 4.6.4 6.4-1.3 1.9-3.8 2-5.8 2.5a365 365 0 0 1-48.2 6.1c-8.9 1-18 .6-27 .6-19.5-.9-39.7-3.3-57.7-11.4-11-5-21.1-12.5-26.5-23.6a47 47 0 0 1-4-16.3q-4 4.2-6.6 9.4a73 73 0 0 0-8.1 33.8c0 3 .8 6 .6 9.1-.6 2.3-3.7 2.2-5.6 1.8a93 93 0 0 1-18.8-6.2c-3.4-1.5-6.5-3.5-9.9-4.9a222 222 0 0 0-6.3 50.2c-1 52 17.7 104 51.3 143.6 2.3 2.7 4.9 4.8 5.4 8.6a12 12 0 0 1-7.8 3.4 64 64 0 0 1-49.9-16.8 95 95 0 0 1-31.1-52.8c-1.4-7-1.3-13.9-1.2-21a57 57 0 0 0-15.3 35.6c0 1.5-2 2.4-3.4 2s-2-1.7-2.7-3a147 147 0 0 1-13.4-71.6c1.3-22 7.5-44.8 19.5-63.5 9-14 21-25.5 36.6-31.6a71 71 0 0 1-14.4-44.9c.5-21.6 9.5-42 22.4-59a150 150 0 0 1 76-51.6 131 131 0 0 1 51-5c4.7.4 9.2 1.6 14 2.3a35 35 0 0 0-11.6-25.1 54 54 0 0 0-31.7-15.3c-2.2-.4-5 .3-6.1-2.2-.4-2.6 1.6-4.5 3-6.4a41 41 0 0 1 26.3-12.5","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M336.6 150a52 52 0 0 1 35 12.4c4.9 4.4 9 10.4 10 17 1.3 5.2-.1 10.6-2.9 15.1-1 1.4-1.7 3.6-.1 4.9 2.3 1.5 5.6.4 8-.3a309 309 0 0 1 117-13.7 203 203 0 0 1 85 26.1c23.8 14 43.9 34.2 57.2 58.5a173 173 0 0 1 20.7 73.4c.1 1.8 0 3.5 1.9 4.3 1.4.7 2.6.3 4 0 22.8-6 48.3 4 63.5 21.4a56 56 0 0 1 14.8 36.9 136 136 0 0 0-59.1-16c-2.2-.2-3.4 0-4.3 2.3 0 2.4 1.7 3 3.3 4 26 15 46.6 39.3 58.2 67 6.6 16 10.3 33.7 9.7 51.1-.6 17-5.7 34.3-16 48-.3-4.4-.3-8.7-1-13a67 67 0 0 0-6.5-18.5c-.9-1.8-2.5-2.6-4.4-1.6-2 .7-2 2.5-2.7 4.2a83 83 0 0 1-61.5 59.3c-17.6 4.3-36.6 3-53.8-2.3q-4.2-1.4-7 1.9a41 41 0 0 0-8.2 19.8 72 72 0 0 1-14.2-12q8.9-8.2 17-17.2a231 231 0 0 0 26.1-36c5.5.6 10.7 2 16.3 2a66 66 0 0 0 52.7-27 72 72 0 0 0 14.4-39.6c.4-14-3.2-28.2-11.4-39.7a56 56 0 0 0-39.7-23.5q-10-1.5-20 .8c0-2.3 1-4.3-.8-6.2-1.9-.3-3.2-.3-3.8 1.7-2.4 9.6-7.2 18.7-12.2 27.1a129 129 0 0 1-27.2 31.6c2.6-13 5.5-25.4 5.2-38.8q.8-21.3-4.2-42c-.3-1.6-1.1-3-3-3-5.5-.1-10.7.2-16-2-8.2-3.4-16.7-9-21.1-16.9a48 48 0 0 1-4.6-25.2c-1.1-2.3-4-1.9-5.1.2-2.5 4.3-5.2 8.7-7 13.4a53 53 0 0 0-3.3 20.4 65 65 0 0 1-44.4-8.4 45 45 0 0 1-18.9-29 73 73 0 0 1 3.5-37.5c.6-1.8 1.7-4.1.8-6-1.2-2.1-4.2-1.3-5.8 0a78 78 0 0 0-19.5 48c-1 7.7 0 15 1.3 22.6a54 54 0 0 1-14-16.4c-1.5-2.9-5.4-2.5-6.1.6a40 40 0 0 0 1 22.6 326 326 0 0 1-88.8 6.1 122 122 0 0 1-49.5-14 38 38 0 0 1-18.6-22.4c-1.4-5.2-.6-10-.7-15.2-1.2-2-3.4-2.3-5.3-1a44 44 0 0 0-14.4 18.6 76 76 0 0 0-7 37.4 77 77 0 0 1-38.6-21.8 64 64 0 0 1-16-50.2c1-12.2 5.2-24.3 11-35a130 130 0 0 1 40.5-44.5c19.5-13.6 42-22.5 65.6-25.2a107 107 0 0 1 41 3c2 .6 3.2-.7 3.9-2.3 2.2-9-.5-17.7-5.5-25.1a60 60 0 0 0-40.5-25.2 39 39 0 0 1 26.1-10M206.7 369q4.5 4.5 9.4 8.4a221 221 0 0 0-7.2 56 223 223 0 0 0 54.7 147.7c-10.4 1.9-21-.6-30.5-5a83 83 0 0 1-34.4-32.7 81 81 0 0 1-11.6-45c0-2.7.8-5.4.7-8-.8-2.3-3-2.7-5-1.7-4.3 2-7.7 5.9-10.4 9.5q-7.4 10.2-10.6 22.2a140 140 0 0 1-9.7-57c1-23.4 7.3-47.5 20.6-67a69 69 0 0 1 34-27.3","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M366.4 151.6a43 43 0 0 1 19.3 20.8c2.7 6.6 2.8 14 .3 20.8a335 335 0 0 1 96.6-14.6q21 .4 41.5 3.7c-.2-2.5-1.3-6 0-8.3 1.5-1 3-.8 4.5-.9a55 55 0 0 1 21.7 3.6c7.4 3.3 13 9 17 15.8 3.4-3.4 7.1-6.8 11.2-9.3 2.2-1.3 4.7-1.8 6.9-3 2.4-2.6 4.2-5.7 7-8 4.7-3.7 11-7.2 17.2-6.6 4.1 0 7.4 3.5 8.8 7a43 43 0 0 1 .7 27 35 35 0 0 1 24.5-7.4c5.4.6 9.6 3.4 13.6 6.8q6.2-5.3 13.8-8.3c11.5-4.8 24.5-7.4 36.6-10.6 3-.8 4.7 1 5.2 3.8 1.5 9 1.6 19.3-2.2 27.7a33 33 0 0 1 11.3 18.3c1.2 4.3.4 8.2 0 12.5q.5.8 1.3 1.4a47 47 0 0 1 15.6 48.9 37 37 0 0 1 25.3 32.7c0 2-1.8 3-3.5 2.9-2.3-.3-4.6-1.4-6.8-2.1-5.2-2-10.8-2.3-16.3-2.6a84 84 0 0 1 5.5 23q1.3 10.3-1.2 20.5a59 59 0 0 1 14.3 42.2c-.2 2.1-3.3 4.2-5.2 2.8-15-8.5-32.2-13.5-49.2-15.7 33.8 23 57.7 61.3 62 102 1 12 .8 24.2-2 36a83 83 0 0 1-18.7 36.4c-1.8 2.2-6.4 2.2-6-1.4.2-10.3.4-20.8-4.6-30.2a90 90 0 0 1-64.8 59.3 107 107 0 0 1-58-3 32 32 0 0 0-6.5 21c.4 2.3-.7 2.9-2.2 4.4q-5.5-3.4-10.8-7A88 88 0 0 1 578 602c-1-1-1.2-2.3-1.6-3.6a219 219 0 0 0 46-56.3c1.6-3.1 4.7-1.3 7.3-.8 18.4 5 37.8-.7 52-13a65 65 0 0 0 22.2-49c.2-11-3-22.1-9-31.4a51.5 51.5 0 0 0-58.9-21.3 135 135 0 0 1-18.5 32.5 146 146 0 0 1-23.8 23.2q-1.7 1.6-4 2.3c-1.8 0-3.4-1.3-2.9-3.3 3.7-14.6 7.4-29.9 7.4-45q1-20.3-3.4-40.1a46 46 0 0 1-35-15 38 38 0 0 1-9.9-24q-3.2 6.7-4.3 14c-.5 4 .2 8-.1 12-.5 1.9-3.4 2.1-5 2.6a78 78 0 0 1-28.8-.9 54 54 0 0 1-30.4-18.1 56 56 0 0 1-11.8-37.5c0-5.6 1.3-11 1.8-16.5a77 77 0 0 0-9.5 27.5 68 68 0 0 0 2 32.8c1 2.4 1.5 6-2 5.8a49 49 0 0 1-21.2-18 33 33 0 0 0 1.7 12.9c.4 1.9 1.9 4.7.4 6.4-1.3 1.8-3.8 2-5.8 2.4a347 347 0 0 1-79.2 6.7 150 150 0 0 1-55-12c-10.4-5-20-12.2-25.2-22.8a46 46 0 0 1-4-16.5 58 58 0 0 0-12.3 24.5q-3.7 13.2-1.8 26.8c.3 2.8-2.5 3.4-4.7 3q-9.1-1.7-17.6-5.4c-4.2-1.6-7.9-4-12-5.8-3.7 16.7-6.4 33-6.3 50.2a218 218 0 0 0 50.8 143c2.5 3 5.2 5.2 6 9.2-4 3.8-8.7 3.4-14 3.9A66 66 0 0 1 215 571a95 95 0 0 1-32.1-52.9 92 92 0 0 1-1.4-21.8 57 57 0 0 0-15.3 35.6c-.2 2-3 2.8-4.4 1.5-1.4-1.4-2.2-3.5-3-5.2a150 150 0 0 1-11-79.7c2.6-19.7 9-39.3 20.4-55.7a77 77 0 0 1 34.6-28.6 112 112 0 0 1-5.3-8c-3.3 4.2-7 8.6-11.9 11-3.9 1.6-9 1.5-12.3-1.5s-4.6-7.1-6-11.2q-6.7.7-13.6.4c-2 0-3.7-1.6-3.4-3.6.7-5.6 2.2-11.2 3.5-16.7-4 0-8 .6-11.7-1.7-4.4-2.7-5.8-7.7-6-12.6a31 31 0 0 1 13.1-24.5 35 35 0 0 1 16.4-4.8 66 66 0 0 1-10-16.7 36 36 0 0 1-2.1-18 10 10 0 0 1 6.3-8 30 30 0 0 1 14.6.5 28 28 0 0 1 3.1-10.3 36 36 0 0 1-8.4-16.3c-.5-3-.7-5.7 2.6-7 6.4-.6 13 1 19.6 1.1a48 48 0 0 1 13.7-28.7c2-1.7 3.8-3.6 6.6-3.1 1.6 0 2.7 1.8 3.7 2.8 3.9-6.9 9.4-14.6 17.1-17.4a32 32 0 0 1 23.3.9c2.5-3.6 5.1-8.3 10-8.7 5-.6 8.5 2.1 12.2 5a41 41 0 0 1 13 17.8 37 37 0 0 1 17.8-6.9c2.5 0 4 1.9 3.8 4.3a53 53 0 0 1-7 22c15.5-1.8 31-1.9 46.2 1.8.4-9.7-4.4-18-11-24.8a54 54 0 0 0-35-16c-3 0-4.1-2.3-2.8-4.8 5-8 14-13 23-15a58 58 0 0 1 40.6 6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M272 170a36 36 0 0 1 14.1 18.6A31 31 0 0 1 285 209c-6.7 3-13.7 4.9-20.2 8.3a53 53 0 0 0 0-22.8c-.6-2.3-1.6-4.3-4-4.8-2.3.8-4.1 2.6-6 3.8q.4-6.3 2.5-12.2a34 34 0 0 1 7.5-12.6c2.2-2.1 5.2.3 7.2 1.5m-19 6a42 42 0 0 0-3.6 20.9c-7.4 4.6-14.5 9.4-20.9 15.3-2.7-1.8-5-2.7-8.2-3.3q-2.5-6-4-12.1c3.8-7.5 7.2-14.5 14.2-19.7a24 24 0 0 1 22.5-1.1m53.6 7.8c-1 7.6-3 15.1-8.5 21-1.6 1.6-4.5 1.8-6.6 2.4 1-5.4 1.7-10.6.8-16q6.3-5.4 14.3-7.4m-97 7c.7 6.8 3 12.7 5.1 19a30 30 0 0 0-14.8 19.6 23 23 0 0 1-2.7-14.7c1.4-8.9 6-17.5 12.4-23.8m-35.5 29.6 17.2 1.6a52 52 0 0 0 2.8 9c-5.5-.8-8.9.5-13.4 3.3a35 35 0 0 1-5.6-10.7z","fill":"#C0ACEB"}},{"name":"path","type":"element","attributes":{"d":"M700.5 212.6a28 28 0 0 1 14.5 14.3c2.4 5.5 1.8 12.1.1 17.8a47 47 0 0 0-14.4-20.4c-4.5-3.1-9.6-4-15-4a29 29 0 0 0-24.3-4.2c.8-1.8 1.3-3 3.3-3.8a44 44 0 0 1 35.8.3","fill":"#E67E5E"}},{"name":"path","type":"element","attributes":{"d":"M679.2 222.4c-7.5 4.4-11.5 13.4-13.1 21.6l-1.5 1.7a41 41 0 0 0-19.5-12.6l.3-.2a51 51 0 0 0 12.8-9.9 28 28 0 0 1 21-.6m20.7 8.7a45 45 0 0 1 10.4 17.5c1.9 5.7 3.4 13 1.4 18.8a29 29 0 0 0-11.6-6.7c-1-9.2-4.6-18.8-13-24-4-2.4-8.2-1.8-12.5-.5 2-3.4 3.7-6.6 7.4-8.5 6-3.2 13.1-1 17.9 3.4","fill":"#E67E5E"}},{"name":"path","type":"element","attributes":{"d":"M683.5 241.5c4.2 2 7.1 6.5 8.9 10.7q-8.3 2.4-12.1 10a61 61 0 0 0-5.3 20.2 25 25 0 0 0 11.7 22.8c-1.8 1.4-3.7 2.5-4.9 4.6-6 3.9-14.6 1.5-19.4-3.2-6.7-6.7-7-17.1-2.8-25.2a29 29 0 0 0 10.1-14.8c1.6-5.5.1-10.4-1.7-15.5 2.7-3.7 5.9-7.2 9.9-9.5q2.7-1.6 5.6-.1m36.8 6.6a42 42 0 0 1 14 38.3c-.5 3.8-2.1 6.8-3.4 10.3a24 24 0 0 1-18 14.4c4.5-8.7 6.3-19 4.8-28.7-.5-3-1.8-5.8-2-8.8.6-3.1 1.8-6 2.1-9.2.6-4 .1-8-.6-12q1.5-2.3 3.1-4.3","fill":"#E67E5E"}},{"name":"path","type":"element","attributes":{"d":"M693.7 257.3a40 40 0 0 1 0 21.2c-1.7-3-2-5.8-2.3-9.1-.2-3.5-1.4-6.5-2.7-9.7zm-8.4 7.2c.9 5.6 1.8 11.1-.1 16.7-.8 2.3-2.6 3.6-4.5 5a49 49 0 0 1 4.6-21.7m15.3 2.5c4 1.6 7.3 4.4 9 8.4 4.3 10.1 3.5 22-1 31.9-3 6.4-8.5 10.6-15 13.1a25 25 0 0 0-3.9-10c5-6.7 6.5-14.6 6.3-22.8a44 44 0 0 0 4.6-20.6M625 283.2a51 51 0 0 0 11.7 3.6c.8 9 1.7 18 5 26.6q2 5 4.8 9.6c-4.1 7.3-4 15.6-1.3 23.4a40 40 0 0 1-20-5.5A28 28 0 0 1 613 321c11-8.8 14.2-24.5 12-37.9m26.7 2h.2a28 28 0 0 0 2.8 21.1c5.9 10.3 20.7 14.9 30.8 8.3 1.5 2.9 2.8 5.5 2 9-1.7 6.7-9.2 10.5-16 9.8-9-.9-16.2-7.5-21-14.8-6.2-9.9-7.2-20.2-8.6-31.4q5-.5 9.8-2m38.4.1q1 7.4-1 14.5a18 18 0 0 1-6.7-8q4.5-2.6 7.7-6.5","fill":"#E67E5E"}},{"name":"path","type":"element","attributes":{"d":"M716 316.5c.2 7.5.5 14.4-3 21.4-3.1 7.2-10.1 11.8-17.2 14.8-9.7 4-20.7 6-31.2 4.9a24 24 0 0 1-15.3-17.4 22 22 0 0 1 1-12.2 40 40 0 0 0 10.5 8 24 24 0 0 0 21.6 1.2A20 20 0 0 0 693 326a31 31 0 0 0 13.9-7.3c2.1-2.5 6-1.6 9-2.2","fill":"#E67E5E"}},{"name":"path","type":"element","attributes":{"d":"M607.6 171.3c3-.5 4.9 1.7 5.8 4.3 3.6 10.9 1 21.3-3 31.6-.8 2.5-2.4 5.5.1 7.5 3.9 1.2 4.6-3.6 6.7-5.7 5-5.5 12.4-9.5 19.6-11a18 18 0 0 1 18.8 8.5c2.3 3.8.7 8.8-1.7 12.1a36 36 0 0 1-19.3 12c-1.7.6-4 1.6-3.5 3.8.3 3.1 4.3 2.8 6.5 3.3 11.2 1.3 22.5 7.7 26.1 19 3.3 9.6-4.2 19.7-13.3 22.7-8 3-16.3 2-23.7-2-2.3-1.2-4.4-3.1-7.2-2.2-2.5 1.8-.6 5.6-.4 8.2 1 8.2 1 17-3 24.5a20 20 0 0 1-15.5 11.8c-6.1.4-11-3.8-13-9.3-3.5-8.6-1.7-16.9 1.3-25.2a8 8 0 0 0-3.3-3.4c-3.4 2-4.8 5.3-7.5 8a31 31 0 0 1-11.6 8.7c-5.4-2.2-8.2-8.1-9.5-13.4a37 37 0 0 1 0-17.1q3.9-2.1 7-5.1c4.9-5 7-12.3 4.9-19-1.3-5.3-6-9-11.3-10.1a27 27 0 0 0-13.3 1.3c1.1-6-.4-11.8 1.1-17.7.7-2.6 1.2-5 3.4-6.7 3.5-1.8 7.8-.3 11 1.5 8 4.6 15.6 9.8 23.4 14.6 1.8 1.4 4.8 1.4 6-.7 1-3.8-3-7.8-3.3-11.7a42 42 0 0 1 5-31.6 25 25 0 0 1 16.7-11.5m-383.9 45c2.1 1.7 3.2 4.5 3.6 7.1.2 3-2.2 6.1-2.5 9 .1 2 2.6 4 4.5 2.7 7-3.4 14-8.2 22.3-6.8 3.2.6 8 1.6 9.2 5 .2 4.2-2.8 8.8-5.4 11.9a43 43 0 0 1-22 12.4c-2.7.8-6.7.2-8.4 2.7-.6 2-.1 3 1.1 4.6 2.9 3.7 6 6.6 8 11a20 20 0 0 1-.7 18.3c-2.3 3.9-6.1 7.3-10.8 7.4-4.7-.2-8.7-3.2-11.1-7.1-3.2-5.3-3.8-11-3.7-17.1.1-2.8-3.3-4-5-1.9-3.5 4.6-6.5 10.4-12.2 12.9-3 1-5.4-.8-6.5-3.5-2.3-4.9-.8-9.5.6-14.3 1.2-3.7 3.6-6.3 5.7-9.4 1-1.4.3-3.6-1.2-4.3-3.6-2-7.1-3.3-8.6-7.5-1-5.4 3.6-11.8 9-12.8 3.6-.5 8.7 1.6 9 5.8.4 1.9.2 4.8 2.5 5.5 1.6.8 3.6-.8 3.7-2.5 0-3-.6-6-.3-9 1-7.6 4-15.2 10.5-19.7 2.4-1.8 6.2-2.2 8.7-.4","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M529 223.9c3.2-1.8 7.6-.6 8.9 3 2 6.8-.9 13.5-4.8 19-1.4 2.1-3.6 3.6-2.6 6.5 1.4 1 2.2 1.5 4 .8 3.5-2.8 5.4-7.9 8-11 3-2.8 8.2-3.3 12.1-3.2a9 9 0 0 1 9.2 8.4c1 7-3.7 13-10 15.3s-12.8 1-19.2.4c-2.4-.3-4 2-2.6 4a29 29 0 0 1 4.4 15.3 17 17 0 0 1-11.7 13.4c-3 .6-4.4-1.8-5.5-4a33 33 0 0 1-2.9-16.4c0-2 .5-4.5-.5-6.2-1.6-.8-3.6-1-4.8.6-4 4.5-10 9.9-16.5 8.7-4-1-4.9-6.3-3.4-9.6a27 27 0 0 1 14.7-12c1.6-.8 3.3-1.4 3-3.5.1-1.8-1.8-2.5-3.2-3-4-1-7.8-2.2-10.8-5.2-5.5-4.9-5.1-14.6.3-19.3 3-2.5 7.4-1.1 10.4.5 5 2.7 7.5 7.2 10.4 11.8 2.2 3.4.9 7.2 3.3 10.5 1.2 1.9 4.6 1.1 4.6-1.2-1-4.1-2-7.9-.8-12.1 1-4 2.7-9 6-11.5m-362.4 29.3c6.8-.3 11.6 3.7 16.8 7.4-4 5.8-6.4 12.8-6.3 19.8.3 5.4 2.8 11.2 8 13.5 2.5 1.1 5.2.5 7.7.1q-2.9 8-3.6 16.3c-3.7-.3-7-.6-10.6.2a33 33 0 0 0-22.4 17.7c-4.4 1-10.3 2.2-13.1-2.3-3.3-7.4.7-17.4 6.3-22.7 5-5.2 12.4-6 19.2-6.6 2.1-.3 5.7.8 6.1-2.2.2-3.2-4-5.9-5.7-8.4a45 45 0 0 1-10.5-24.6c0-2 0-5 1.4-6.6 1.4-2 4.6-1.5 6.7-1.7m25.4 91.2 2.2 5.7a31 31 0 0 1-9.7 11.2c-2.1 1.4-5 2.2-7.2.5-2.5-2-3.2-5-4.2-8q6.3-1 12-3.8c2.7-1.3 4.8-3.5 7-5.6","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M529.6 178.8c9 .3 17.3 1.1 24.6 7a33 33 0 0 1 12 23.5c-5.8-3.5-11.9-6.8-18.8-4.2-5.7 2.5-7 9-7.9 14.5l-4.4-2q-2-4.4-3-9.2c-2.5-9.9-1.1-19.6-2.5-29.7m177.7 7.5c1.2 7.6 1 15.2-1.6 22.4a47 47 0 0 0-24-5.4c-7-.1-13.2 2-19.6 4.2-.3-1.4-1.5-3.2-1.2-4.6 2.9-2.6 6.6-4.5 10-6.1 11.4-5 24.4-7.5 36.4-10.5m-125 1a54 54 0 0 0-1 31.4l-9.2-5.8c0-5-1.1-9.6-2-14.4 2.2-4.8 8-8.2 12.2-11.2m-322.7 10.2c.3 4.8 1.1 9.2.4 14-.4 4.2-2 8-3.7 11.8-3.7-.6-7.1-1.2-10.9-.7q-6.5 1-12.4 4.1a20 20 0 0 0-1.5-9.5c7-7 16.6-12.5 25-17.9zM580 296.2a30 30 0 0 0 8.5 25.6q-1.3 4-2.8 7.7a44 44 0 0 1-21 5c-6.7 0-13.2.3-19.6-1.5a73 73 0 0 1-18.8-8.5q9.9-9.9 20.8-18.6a59 59 0 0 1 10.5-6.5c2.6 2.5 5.3 4.4 9 4.7 4.5-.5 7.8-2.8 11-5.7zm157 2.3c4 .6 7.8 3 10.8 5.7 5 4.8 8.8 10.9 10.5 17.6-3.8-1.2-7.6-2.5-11.7-3s-8-.1-12-.5q-3.2-3.9-5.9-8.1 4.5-5.6 8.2-11.7m-12.6 14.8c4.3 6 9 12.2 10.6 19.6a67 67 0 0 1 .7 34.4 94 94 0 0 0-24-17.6q5.3-5.3 7.8-12.4c2.7-7.4 2-14.6 1.9-22.3zm-535.9 2.3c0 5.6-.3 11.3.8 16.8q.6 2.4.5 5c-2.3 3.6-5.5 7-9.7 8.4a63 63 0 0 1-23.5 3.5c2-9.7 2.8-18.6 10-26 5.8-5.3 13.9-9.3 22-7.7m404.6 9c5.3 1.2 9.5 1.3 14.7-.6 2 8.9 6.3 15.4 13.6 20.8q-2.4 6-7.3 10.1a81 81 0 0 1-21.3 13.6c-1.3-8.2-3-16.8-3-25.1.7-6.6.7-12.6 3.3-18.8","fill":"#A0CC59"}},{"name":"path","type":"element","attributes":{"d":"M214 246.7c2.6-.8 4.4 1 3.4 3.6-1.6 2.3-4 4-5.4 6.5-1.6 2.3-2 5.2-3.6 7.4-1.5.2-2.6.3-3.5-1-1.2-2 .2-4.8 1-6.6 2-3.7 4.6-7.5 8-9.9m389.9-20.1c7.6-2.5 14 4 15.7 10.8 2 6.4 1 13-1.7 19.2-2.3 4.6-6.7 9-12.2 9.1-4.9.2-8.9-3.1-11-7.3a27 27 0 0 1 1.4-25.6c1.7-3 4.6-5 7.8-6.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M604 233q2.2-1.7 4.6-.8c3 1 4.6 4.6 5.4 7.4 1.3 5.9.5 13-3.6 17.6-1.7 2-4.2 3.4-6.8 2.3-3-1-4.6-4.8-5.3-7.6-1.7-6.4.2-15 5.7-19","fill":"#F0DF83"}},{"name":"path","type":"element","attributes":{"d":"M366.5 158.5c7.2 4.8 13.6 12 15.2 20.9 1 5.3-.2 10.6-3 15-1 1.6-1.9 3.6-.1 5 1.9 1.3 5 .6 7 0 44.2-13.7 93-19.4 138.9-11.1.6 5 .5 10.1 1 15.1q1 7.4 3.7 14.2c-6.3 2.3-8.9 7.7-10.8 13.7-3.6-6-9.4-10.9-16.3-12.3-4.3-1-9.3.3-12.2 3.7-4 4.4-5.2 10-4.6 15.7.5 7.4 6.1 13 12.7 15.7-5.7 3.4-11.2 8.2-13 14.8-2 6.3 1.9 14.1 8.6 15.4 6.6 1.2 11.7-1.9 16.8-5.6a40 40 0 0 0 3.7 16.2c1.3 2.4 3.3 4.9 5.9 6 4 1.6 8.6.1 12-2.2 5-3.5 9.2-9 9.8-15.3.5-5-1-9.2-2.4-13.8q5.6.2 11 0a93 93 0 0 0 .3 14c.5 4 2 7.3 3.5 11-12.6 6.4-23.2 17.4-33.4 27-2 1.6-2.3 4.1-.3 5.9 3.1 2.6 7 4.5 10.6 6.4a64 64 0 0 0 38.5 5.8c5.5-.5 10.3-1.7 15.3-3.8a119 119 0 0 0 3 37.3q1.3 2.6 4.2 1.7c4.8-1.4 9.2-4 13.5-6.5a51 51 0 0 0 21-20.4c7.3 2.8 13.6 4 21.5 3.5 3.9 4.9 8.5 8.9 14.5 11 3.6 1.5 7.2 1.2 11 1a70 70 0 0 0 30.6-8.4c2.4-1.5 5.1.2 7.3 1.3a82 82 0 0 1 17 12.1c2.5 2.2 4.5 5 7.2 6.9 1.8.5 2.7-.5 4-1.4a54 54 0 0 1 11 31.8 138 138 0 0 0-60.2-16c-2.3 0-4 2.3-2.8 4.4 3.1 2.6 7 4.4 10.3 6.8a141 141 0 0 1 54.3 71.7c5 15.6 7.5 32.3 5.7 48.7a83 83 0 0 1-15.5 41c-.3-4.8-.2-9.9-1.2-14.5-1.3-6-3.7-12.3-6.6-17.6-1.2-2.1-3.9-1.5-5.4-.2q-1 2-1.7 4.3a82 82 0 0 1-59.9 58 101 101 0 0 1-54.3-1.7 9 9 0 0 0-5.6-.2 17 17 0 0 0-5.1 6 44 44 0 0 0-5.4 15.7 78 78 0 0 1-14-12c6.4-6.2 13-12.5 18.7-19.3 9.3-10.5 17-22 24.3-33.8 7.7.9 14.5 2.7 22.3 1.7a67 67 0 0 0 46.2-26.2 71 71 0 0 0 15-45.2 64 64 0 0 0-11.5-34.7 56 56 0 0 0-40.5-23.6 52 52 0 0 0-19.2.8c0-1.9.8-4.4-.6-5.9-1.5-.9-3.8-.4-4 1.6a107 107 0 0 1-12.2 27 129 129 0 0 1-27.2 31.6c2.7-13 5.5-25.4 5.2-38.8q.8-22.1-4.7-43.7c-1.2-2-3.5-1.2-5.5-1.4q-7.6.4-14.5-2.6c-8-3.6-15.6-8.9-20-16.8-4-7.2-4.4-16.6-4.3-24.6-.8-2.3-4.3-1.9-5 .2-2.7 4.6-5.4 8.8-7.2 13.9a53 53 0 0 0-3.1 19.9c-5.7.4-11.2 1.4-16.9.5-11-.8-21.7-4.2-30.4-11a46 46 0 0 1-16-27.6c-2.1-12.4-.7-25 3.6-36.8.5-2 1.9-4.7.3-6.5-2-1.8-5-.2-6.4 1.6a76 76 0 0 0-15 27c-2.5 8.2-3.4 16.5-4 24.9-.2 6 1 11.6 1.8 17.6a51 51 0 0 1-13.7-15.8c-1-1.6-2-3-4-2.5-2.1.2-2.6 3-3 4.7a43 43 0 0 0 1.4 20.3 327 327 0 0 1-65.6 7c-8.6-.1-17.6 0-26-1.2a119 119 0 0 1-45.3-12.8 40 40 0 0 1-19.6-22.5c-1.6-5.4-.8-10.4-.9-15.9-1.2-2-3.4-2.4-5.4-1a46 46 0 0 0-15 20 76 76 0 0 0-6.4 36c-4-1.3-8.2-2.3-12.3-4a70 70 0 0 1-29.4-21.6 63 63 0 0 1-13-35.5 84 84 0 0 1 7.8-39.1c1.6 5 2.6 9.6 6 13.8 4.6 5.7 11.7 9 19 6.9 9.2-3.2 14.8-13 14.7-22.4.2-8.1-3.8-14.8-9-20.6a50 50 0 0 0 27.6-15.6c3.6-4.4 6.8-9.9 6-15.8-.2-3.2-2.6-5-4.8-7.1q14.6-7.9 30.8-12c19-5 38.8-6.2 58-1.2 1.9.3 4 1.4 5.4-.5 1.3-2 1.4-5 1.5-7.2.1-9-4.1-17.2-9.8-24a60 60 0 0 0-37-20.4c3.4-3 7.2-5.7 11.6-7.2a51 51 0 0 1 44.4 5.7M206.6 369.1q4.5 4.5 9.5 8.4A224 224 0 0 0 263.5 581c-7.9 1.5-15.9.3-23.4-2.3a71 71 0 0 1-28.4-18.5 87 87 0 0 1-24.3-49.9c-.7-6.4-.3-12.7.4-19 .2-2.5-2.2-3.7-4.3-3a24 24 0 0 0-9.8 8q-8.4 10.8-11.9 24a141 141 0 0 1-9.4-61 125 125 0 0 1 22.4-65.8c8.1-11 18.8-20 31.8-24.5","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long04":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M474.7 174.4c3.8.7 7.5 2.5 11.2 4.2l3.2 1.4a559 559 0 0 0 46.4 19.4 863 863 0 0 1 61.7 25.4c8.5 3.8 17.4 7.7 25 12.9q7 5.1 11.4 12.7A476 476 0 0 1 656 291c15 29.2 28.5 59.2 41.6 89.3a778 778 0 0 1 31.4 81.8 424 424 0 0 1 16.1 74.3q4.4 34.5 6 69.3.7 25.4 1 50.8c-.4 2.4-1.3 2.6-3.5 2.3q-2.5-2.6-4.3-6L743 651q-5.7-9.2-12.3-17.6l-6.7-8.8q-4.1-5.7-8.6-11.2c-13.3 14.5-30 22.5-48.1 29.5q-4.5 12.9-10.2 25.2c-3.1 6.8-6.5 14-11.2 19.8-1.3 1.8-3.7 2-4.6-.2q.2-3.6 1.7-7l.1-.6q5.8-15.7 8.3-32.4-9.4 2.5-18.7 4.3a297 297 0 0 1-31.9 72.8c-7.9 12-17.9 24.6-31.1 30.9q-.5 0-.8.3c-2 .9-4.5 2-6.3.5-1.7-1.6-.6-3.8.4-5.4a153 153 0 0 0 17-48.1 387 387 0 0 0 6.5-46.4c-25.3.1-50.2-2.4-74.5-9.7a31 31 0 0 1-6.8-3.1l.8-3.7a219 219 0 0 0 82.6-52.6l-.3-10.7q.1-6.6-.5-13.3-1.1-27.2-3.7-54.3a264 264 0 0 1-57.7-35.6q-15.1-11.8-29.3-24.7a637 637 0 0 1-93-108c-17-25.4-33-52.9-43.5-81.6a373 373 0 0 0-124.2 85.1q-3 2.7-4.6 6.3a220 220 0 0 0-16.5 93.8 218.5 218.5 0 0 0 148.4 196.7c3.2.6 5.9 4.6 4.2 7.6q-2.2 1.4-4.8 2.4c-13.8 5-27 11.3-40 18l-5.3 2.5a531 531 0 0 1-54.2 24c-11.7 4-23.6 4.2-35.6 4.5q-6.2.1-12.5.5H209q-5.8 0-11.4.3l-1.1.1-1 .1q-3.6.4-7 .4c-2.2-.2-4.5-1.6-4.6-4.1q-1.7-14-2.5-28-1.3-21.4-.8-43V616c-20.7 25-32.7 54.8-40.5 86.1-.3 1.5-1.1 2-2.5 2.7-2.2-.6-3-1.4-3.3-3.7a296 296 0 0 1 0-65.6q3.8-39 14.7-76.8a360 360 0 0 1 31.5-77.5q1.6-2.2 2.6-4.8a330 330 0 0 1 16.2-80.3l4.7-14.3a372 372 0 0 0-36.8 58.3A277 277 0 0 0 145 498c-.4 1.4-1 3-2.6 3-1.7.3-3.2-1-3.3-2.7l-.3-4q-.8-7.5-1.2-15a243 243 0 0 1 36.8-134 184 184 0 0 1 59-60c2-1.1 2.7-2.9 3.3-4.8l.8-2.2.3-.7a66 66 0 0 1 8.4-16.6c3.7-4.5 8.1-8.8 13-12q11-6.6 22.8-12l4.8-2.4 13.8-6.6 14.6-7 22.2-10.7q16.2-8 32.6-15.5c9.3-4.3 18.4-8.1 28.5-10 8-1.2 16.3-.8 24.3.2q3.9.4 7.4-1a265 265 0 0 1 32.6-8.5c3.8-1 7.4-2 11.8-1.2m2.7 129.2 4.8 3.6a1318 1318 0 0 1 48.7 37.7c6.3 5 12.5 10 18.4 15.8q5 5 9.4 10l4 4.6c1.7 1.5 2.1 3.5 2.5 5.6q10.3 50.6 16.2 101.8a495 495 0 0 1-55.6-59.5 584 584 0 0 1-47.6-69.4A441 441 0 0 1 443 280l3.3 2.1c10.5 7 21 13.8 31.1 21.4m227.1 175.8a58 58 0 0 0-14.7-39q1 6.9 1.2 13.8l.2 4.2q2.3 29.8.6 59.6a66 66 0 0 0 12.7-38.6","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M469.6 180a18 18 0 0 1 9.9 1.6c10.6 4.9 21.4 10.3 32.2 14.8 11.2 4.7 22.6 8.7 33.9 13q23.1 9 45.9 19.2c9 4 17.7 7.6 26 12.9a43 43 0 0 1 13.4 14.6c9.5 15.9 17.1 32.1 25.5 48.5 15 30 28.4 60.5 41.8 91.3a759 759 0 0 1 26.9 73c5.7 20 10.6 40.4 13.3 61q2.5 18.8 4.3 37.5c1.3 16 2.8 31.8 2.8 47.8q1 15 .8 30.1c-6-9.6-13.1-17.6-19.9-26.7l-9.6-12.6c-3.2-.8-4.8 2.9-6.9 4.7a109 109 0 0 1-40 24.9 413 413 0 0 0 21.2-107.8q9.2-10 14.2-22.6a69 69 0 0 0 2-45.3 59 59 0 0 0-15.7-25.5c-1.2-1.3-2.5-2-2.6-4-1.1-9.1-1.5-18.5-3-27.5-.7-2.8-2.8-2-5-2.2q-.5 2.2-.4 4.5a940 940 0 0 1 5.8 71.2c.3 19 .4 38-1.4 57a408 408 0 0 1-29.4 124c2.2-13.7 4.4-27.2 5.6-41q2.9-30 .5-60c-1.6-15.1-2.6-30.5-5.6-45.5l-2.5-.6-2.3 1q-.4 2.5-.6 5.2a597 597 0 0 1-21.1 125.9c-2.1 6-3.5 12.2-5.7 18.2a261 261 0 0 1-30.4 64.8 83 83 0 0 1-21.9 22.6c10.6-21.7 15.4-46.9 18.6-70.6 1.7-13 2.5-26 3.5-39l1-38c-.7-17.6-.3-35.5-1.9-53-.4-12-1.6-24-2.4-36a69 69 0 0 0 26.3 4.3c2.8-.2 3.8-4.2 1.1-5.5q-15.8-9.8-29.9-22-6.5-57-18-113.3c-2.6-3.8-6.2-7-9.2-10.6-9.5-10.9-20.5-19.3-31.6-28.3-15.2-12.4-30.8-24-46.5-35.7a590 590 0 0 0-39.5-26.4c-2.3-1.5-4.2-2-7-2.2-.5 1.9-1 3.3-.2 5.3a403 403 0 0 0 25.9 59.2q25 47 58.1 88.8c17.9 22.5 37 43.6 58.5 62.6 8.8 7.4 17.6 14.9 27 21.6q-5.6-.8-11-2.6a161 161 0 0 1-28.1-12.9A405 405 0 0 1 490 434a628 628 0 0 1-83.6-100.4c-13-19.6-25-40.1-34.4-61.6a172 172 0 0 1-13.7-46 270 270 0 0 1 55.9-30 312 312 0 0 1 55.4-16"}},{"name":"path","type":"element","attributes":{"d":"M413.9 189.9a283 283 0 0 0-55.4 29.3c-2.4 2-5.6 3.8-5.7 7.2.6 9.2 3.4 18.6 6 27.3a363 363 0 0 0-98.3 60.5c-31.4 26.7-59 58-81.2 92.8a318 318 0 0 0-35.6 74.8c0-9.1-.3-18.3.4-27.4a239 239 0 0 1 37.7-109.8c17.8-26.9 42.4-51.3 72.7-63.4 2.4-1.3 2.4-5.4-.6-6.2-3.9 1.5-7.5 3.6-11.3 5.2 2.3-5.3 4.4-11.3 8-15.8a50 50 0 0 1 11.7-10.3c8-5 17-9.3 25.6-13.4 10.7-5.3 21.6-10.2 32.3-15.6 19.7-9.2 39.2-19.3 59.2-28a71 71 0 0 1 34.5-7.2"}},{"name":"path","type":"element","attributes":{"d":"M222.1 359.8a224.3 224.3 0 0 0 138 286.2 447 447 0 0 0-41.3 18.7C300 674 282 683 262.1 690c-14 4.9-27.1 3.7-41.5 4.9-10.4.4-20.7 0-31 1.4a342 342 0 0 1-3-42.9 1996 1996 0 0 1-.4-51.9c-.2-2 .2-5-1.4-6.5-2.3-.3-3.2.5-3.8 2.6-.3 3.6 0 7.2-.3 10.9-3.4 2.4-5.5 5.7-8 9Q162 630.7 154.2 646a195 195 0 0 0-15.3 39.2c-1.7-14-.5-27.6.3-41.8a439 439 0 0 1 22-105 322 322 0 0 1 20.7-48.2c0 5.4-.6 10.8-.6 16.2 0 7-1 14-.9 21.1.1 1.7.4 3.3 2.3 3.7s3-1 3.3-2.7c.7-5.3.5-10.8.8-16.1q.6-17 1.7-34a339 339 0 0 1 15.9-80.2c2.7-8.6 5-17.2 8.3-25.6 1.4-5 6-8.7 9.3-12.8M655 548c1.4 10.4 1.6 21 2.1 31.4.3 20.6-1.8 41.5-4.7 62q-8.7 2.5-17.7 4.3a586 586 0 0 0 18-89.3c.5-3.1 0-6 2.3-8.4m-66.2 47.4c.2 11-.3 22-.4 33q-.7 11-1.2 22.3c-23.7.4-47.6-2.2-70.4-8.5a228 228 0 0 0 69.8-44.7z"}}]}]},"long05":{"elements":[{"name":"path","type":"element","attributes":{"d":"M437.6 194q28.4-1.2 56.5 2.8c15.2 2 30.2 4.2 45 8q17.6 4 34.1 11c11.4 5.2 22.6 10 33.5 16.5q10.1 6.2 19.3 13.7c16 13 29 30.6 40.3 47.8q14 22.6 25 47a963 963 0 0 1 39 104c10 32.8 17.2 67.2 19.3 101.6.5 13.7-.8 27.7-4.2 41q-6.9 24.4-19.3 46.5a96 96 0 0 1-11.4 15.5c-1.7 1.7-3 3.7-5.8 2.7-2-.8-1.2-4.3-1-5.9q2.2-11 2.5-22a90 90 0 0 1-7.8 18.2q-9 16.8-22.5 30.5a334 334 0 0 1-70.4 52.6c-14 8.4-28.8 15.2-43.3 22.7-1.7.8-3.7 1-5-.7-1-1.5-.3-2.6.2-4.1a174 174 0 0 0 13.8-48 157 157 0 0 1-33 55.9c-1.6 2-4.6 3-6 .2 0-3.2 1.8-6.5 2.7-9.5q14.8-45.7 18.6-93.6c1.1-9.6 1.4-19.3 2.3-29 1.7-31.2 3.6-62.7 3.3-94 0-10 .2-20-.6-30a615 615 0 0 0-9-87.2 591 591 0 0 1-176.4-63.5 357 357 0 0 1-55.6-37.5 183 183 0 0 1-21.3-20.9 296 296 0 0 0-52.5 49.5c-1.5 2-1.4 5.2-2 7.6q-3.4 20.1-6.5 40.2c-6.3 40.3-9.8 81-9.6 121.8.2 4.2-.4 8.6 1.4 12.4A219 219 0 0 0 360 640c2.3.6 3.6 1.7 5.2 3.4-3.3 4.6-8.8 7.7-13.1 11.4a410 410 0 0 0-58.2 57c-1.9 2-3 5.1-5.3 6.8-8.9.2-18-2-27-2.7-10.4-.6-20.8-2.1-31.2-3 2.4 8 6.3 15.5 9.5 23.2 1.7 2.6-2.5 6.3-5 5a75 75 0 0 1-23-18 156 156 0 0 1-29.3-47.7 195 195 0 0 1-11.6-47c-.7-7.3-1.7-14.6-1.8-22a501 501 0 0 1 10-110.8q5.7-31 14-61.4c.7-3 2.5-6.7 1.4-9.8a146 146 0 0 1-4.5-22 122 122 0 0 1 2.2-34.5 136 136 0 0 1 11-29.8 384 384 0 0 1 33.6-53.3c7.3-9.6 15-19.1 23.4-27.7q14-13.4 30.4-23.7c11.2-7.5 26-9.3 39-12 5.4-1 10.6-3 16-4.6 3.9-.8 7-3.7 10.8-5.6q17.4-9.9 37.1-13.6c14.5-2.7 29.3-3.5 44-3.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M461.6 199.6q30.7 1.7 61 7.4 17 3.5 33.7 8.7a319 319 0 0 1 37.8 16.2 150 150 0 0 1 41.2 30.8c24.6 26.6 42 59.7 56.1 92.9a964 964 0 0 1 33.3 90.7 464 464 0 0 1 16.9 76.1c2.8 21.3 3.7 45-2.4 65.8a226 226 0 0 1-18.6 44.2q-2.6 4.6-6 8.7 1.8-16.9 1.5-33.7c-.8-8.7.7-17.3.8-26 1-8.7.9-17.3.7-26 .1-2.8-3.5-5-4.8-1.8-.9 4.7 0 10-.5 14.8-1 14-1.2 29-4.3 42.8a120 120 0 0 1-33.4 59.2 342 342 0 0 1-71 52c-11.2 6.5-22.8 12-34.3 17.8a213 213 0 0 0 14.8-72.8q-.2-2.4-1.1-4.6l-3.5.4q-1.2 1.5-1.4 3.2a196 196 0 0 1-16.5 47.1Q555 727 546 739c1.8-6.8 4-13.5 5.8-20.4 9.4-34 12.3-71 14.4-106.2.8-7.3.7-14.7 1.2-22 1-13.3 1.1-26.6 1.5-40 .1-25.4.5-51.2-1.3-76.5q-1.5-19.8-3.9-39.4l-3.8-25.4q14.8 2.6 29.8 3.8c3.4.3 7.4 1 10.8.4 2.6-1.7 2-4.8-1-5.4-32.8-1.8-66-8.8-97.6-18a616 616 0 0 1-98-37.9c-19.5-9.6-39-20.5-56.8-33-18.4-12.7-37.7-28.1-50-47-1.4-2.2-3-1.6-5.2-1.2-.8 4.8 2.6 7.2 5 10.9l-13.3 10.6a271 271 0 0 0-61.5 70.5c-.7 1.4-1.7 3-1.7 4.6-.4 2.3 3.4 3.5 4.4 1.5 4.6-8.5 10.1-16 15.8-23.9a772 772 0 0 0-16.1 171.4c.2 39.6 4.7 79.3 12 118.2.6 2.5 2.6 2 4.6 2.4q1.1-2.7.6-5.5c-3.9-21.8-7.3-44-9-66.1-1.5-11.8-1.6-23.8-2.3-35.6a226 226 0 0 0 125.4 114.8q-16 12.3-30.9 26a394 394 0 0 0-38.4 42.3q-5.7-.3-11.3-1.2c-11.8-1.7-23.7-2.2-35.5-3.6-4-.1-9.3-1.9-12.8.3-3 2-1.8 6-.9 8.8q3.3 8.2 7 16.2a98 98 0 0 1-27-27.2c-8.2-11.3-15-23.6-19.4-36.8a191 191 0 0 1-9.1-36.2q-3-21.7-2.7-43.8c-.3-9.7 1-19.3 1.3-29q2.3-29.7 7.8-59 6.6-34.8 15.4-69c.6-2.8 2.2-6 1.2-8.8a113 113 0 0 1-5-31.2c.3-10.2 1.3-20.2 4.3-30 5.2-17.1 14.4-33 23.9-48a365 365 0 0 1 36.9-49.1 168 168 0 0 1 33.1-26.9c12.9-8.5 30-9.4 44.6-13.6q-5.1 5-10.4 9.7c-1 1-2.8 2.4-2.6 4-.4 2.2 2.7 3 4.2 1.7q7.4-6.6 14.6-13.4c7-6.6 16.1-11.3 24.7-15.3 13-6 26.7-9 41-10.4 17.3-1.3 34.5-2.2 51.9-1.5","fill":{"type":"color","name":"hair"}}}]},"long06":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M469.7 152.3c14.3 3.6 29.7 8.2 42.3 16 11-5.8 23.2-8.4 35.6-8.8A98 98 0 0 1 626 200a84 84 0 0 1 16.8 50.3c23.3-1.6 44.5 7.4 62.9 21a172 172 0 0 1 59 86c4.5 14.3 6.4 29.1 7 44.1l-.6 7.5-.3 4.3a88 88 0 0 1-13.6 40.2 170 170 0 0 1 26 52.5c7 23.2 9.8 49.3 4 73q12 .4 23.6 2.2a88 88 0 0 1 32.9 15.2A68 68 0 0 1 870 630c4.1 12 4 23.8 3.6 36.3v5.8c-.1 6.6-.2 13.3 1.5 19.5 2 7.8 6.8 15.2 13.3 20 5.7 3.9 12 6.7 19 5.8h1.8c2.4-.2 5-.4 5.1 3a40 40 0 0 1-14 14.9c-8.4 5.5-18 9.8-28.1 10.1v.5c.1 5.8.3 11.3-.5 17.1q-2.5 16.1-10.2 30.5a130 130 0 0 1-43 46.5l-1.1-.6c-1.3-.7-2.8-1.6-2.8-3q0-2.2.4-4.6.4-2.6.4-5.3A37 37 0 0 0 803 800c-9.8-9-23-13.9-36.3-14.6a71 71 0 0 1 9 56 94 94 0 0 1-27.6 47.5 80 80 0 0 1-44.1 21.7c-.5 3.5-1.2 7-3 10.1a46 46 0 0 1-20.8 18.3 57 57 0 0 1-32.7 5.4c-2.3-.3-4.2-2.6-3.2-5l2.4-2.3q2.6-2 4.4-5.2c4.8-8.6 6-19.3 2.7-28.7A28 28 0 0 0 635 885a43 43 0 0 0-17.5-1.5 149 149 0 0 0-33.3 9.4l-9.1 3.2c-15.7 5.2-31 9.8-47.6 10.5a63 63 0 0 1-38.9-12.3 56 56 0 0 1-20.7-34.8c-2.6-12.8-2-25.7.4-38.4a79 79 0 0 0-26.6 46.4q-1.2 8.1.6 16.3c.6 1.9-.4 2.6-1.7 3.5l-1 .8c-5.4-3.4-7.8-8.5-10.5-14l-.4-.8q-6.1-13.2-8.4-27.8-1.2-13.7 2-27.2c2.5-9.6 7-19.8 14.3-26.7a85 85 0 0 1 23.1-13q5-2 9.6-4.3l1.1-.6c6.4-3 12.6-6 15.6-12.7 4.6-10.8 2.6-23.8-.2-34.8a60 60 0 0 1-35.3 24.3 79 79 0 0 1-51-3.2 65 65 0 0 1-1 24 66 66 0 0 1-29 38.2 111 111 0 0 1-56.7 16.5c-.9 13.4-8 24.3-17.3 33.5A118 118 0 0 1 242 888a104 104 0 0 1-44.7 1.7c-1.6-.4-3.1-.7-4-2.3-.2-2 0-4.3 2.4-4.8l3-.6c4.8-1 9.3-1.8 13.4-5 4.8-3.8 6.7-9.8 7.2-15.7.1-8-4-14.9-9.7-20a69 69 0 0 0-27.3-13.6c-7.8-2-15.8-3.9-23.8-4.4-5.2-.6-10.7-.2-16.1.2-6 .4-11.8.9-17.4 0a39 39 0 0 1-23-12.5c-4.7-5-7.3-11.2-9-17.8a32 32 0 0 0-5.5 25.2 14 14 0 0 0 3.1 5.6l1.9 2.5c.2 2.7-3.6 4.7-5.9 3.7-10.3-2.6-20-6-26.8-14.6q-7 1.6-14.2 1c-9-.6-17.3-5.4-23.7-11.6a75 75 0 0 1-19.3-37.6 127 127 0 0 1 .5-53.5 100 100 0 0 1 24.5-48.2 31 31 0 0 1-14.2-18.3 67 67 0 0 1-1.6-34 53 53 0 0 1 16-30.4 29 29 0 0 1-13-15 48 48 0 0 1 5.6-43.8c3-4.4 7.1-8.6 12-11 2-1.3 5.1-.3 5.4 2.2q-.2 2.4-.9 4.9t-1 5c-1 8.9 2.2 18 8.6 24.3a38 38 0 0 0 25 10.3c13 .4 26.1-4.3 36-12.6a47 47 0 0 0 16.4-26.8c-8.8-17.9-9.6-37.6-8-57.1a120 120 0 0 1 19.3-52.7c1-1.5 2-3 .8-4.7a93 93 0 0 1-10.2-51.8 142 142 0 0 1 85.5-115c15.8-6.5 33-9.3 50-7.5q3-12.4 8.9-23.7a94 94 0 0 1 25-29c21.2-17 48-25.8 74.4-30.4 34-5.7 68.7-5 102 3.7m-147.5 115a48 48 0 0 0-7 15c-.9 4.6-1.8 9.4-1.7 14.1 0 2.4 2.4 5.6 5 4a158 158 0 0 1 33-15.2c19.9-6.3 40.3-8.5 61-9.3q26.5-.2 52 6.8c1.2.4 1.6 1.2 2.1 2.2l.5 1q5 10.6 9.6 21.5 4.4 10.5 9.2 20.7a221 221 0 0 0 30.5 48.4q12.6 15.1 28.8 26.3a73 73 0 0 0 43.7 13.8h5a95 95 0 0 1-1 29.6q-3.7 24.8-13.3 48.2A129 129 0 0 1 560 527a153 153 0 0 1-34.9 30q-12 7.9-22.6 17.4a110 110 0 0 0-23.8 31.2 106 106 0 0 0-12.2 44.5l-2 .2c-9.6 1.1-19.2 2.3-29 2.1a216 216 0 0 1-85.6-16.2c-27-11-51.5-27.7-72.2-48.2v-2.1c0-5.3 0-10.4-1-15.6-3.3-20-12.7-37.9-25.4-53.5-6.8-8.4-14.6-15.5-22.6-22.8l-5-4.6-.6-.5c-1-1-2-2-2.4-3.4a217 217 0 0 1 49.5-196.2 47 47 0 0 0 9 9.6q1.5 1.2 3.5 1l1 .2c7.9-16 22.6-25.9 38.5-32.8M693 445a51 51 0 0 0-46.7-20.5c7 18.2 12.8 36.1 13.4 55.8.8 21.4-4 43-12.3 62.6a61 61 0 0 0 41.6-22.3 64 64 0 0 0 14.9-41.3 56 56 0 0 0-11-34.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M423.6 151.1a235 235 0 0 1 63.2 12.2q11.2 3.6 21.4 9.5c1.6 1 3.5 1.8 5.3 1.2q2-.7 4-1.8l3.3-1.5q12.5-5 25.8-5.2a92 92 0 0 1 80.3 46.5 74 74 0 0 1 10 37.4l-.3 2.2c-.3 2.1-.6 4.4 2 4.9l5-.3q3.6-.4 7-.3c16.6.5 33.2 7.5 46.9 16.7a159 159 0 0 1 52 62 157 157 0 0 1 16.2 63.8 91 91 0 0 1-13.4 52c-1.1 1.8-2.2 3.5-.4 5.7 13 17.2 22.3 37.5 27.7 58.3 5.1 20.3 7.4 43.4 1.7 63.8-6-1.1-11.7-2.3-16.9-5.6a67 67 0 0 1-19-17c-1.9-2.6-2.8-5.6-3.7-8.6h-1.4c-1.2 0-2.1-.2-2.9 1.3-.5 2.7 1 5.7 2.2 8a59 59 0 0 0 15 16.2 51 51 0 0 0 14.4 8.7 98 98 0 0 0 23.6 4l4.3.2q6 .1 11.7 1.2a76 76 0 0 1 28 11.9 66 66 0 0 1 27 30.8c3.9 9.4 4.4 19 4.5 29.1l-.2 5.5c-.4 7.5-.8 14.9.5 22.5a43 43 0 0 0 14.3 27.9q9.7 8.3 22.5 9.2a53 53 0 0 1-35.4 16.2c-2.8 1.2-3.6 6.2-3.3 9 .6 12.6-2.2 25-7.3 36.5-8.2 18.3-22 33.7-38 45.8q1-12.3-4.9-23.2a54 54 0 0 0-29.2-24 69 69 0 0 0-24.5-4.3c-3-.2-4.7 3-3.5 5.4q1.1 1.8 2.4 3.4 1.8 2.4 3.2 5c7.3 13 8.8 28.1 6.2 42.6a89 89 0 0 1-25.8 48 75 75 0 0 1-45.4 21.6c-1.3.8-1.4 2.2-1.6 3.6l-.1 1.3c-.5 7-4.7 12.3-9.8 16.6a56 56 0 0 1-35.7 12.3q5.4-6.6 7.4-14.8c3-12.8.6-27.8-9.3-37a39 39 0 0 0-29.5-10.1c-13.3.7-26 5.3-38.6 9.8q-7.5 2.8-14.9 5.2c-14.1 4.4-28 8.6-43 8a53 53 0 0 1-40.4-18.6 58 58 0 0 1-11.6-31.2c-1.7-11 .2-22.8 2.8-33.6l.3-1.5c.4-1.7 1-3.4-1-4.4-2.1-1-4 .6-5.6 1.9l-1 .8c-18.4 14.6-32.3 37-32.7 60.9-6.6-14.5-11.3-29-9.2-45a60 60 0 0 1 13.1-32.6 66 66 0 0 1 21.7-12.7l6-2.7 4.1-2c4.4-2 9-4 12.7-7q6-4.5 8.5-11.8c3.3-9.8 2.5-19.3.8-29.3a210 210 0 0 0-9.5-31.5 185 185 0 0 1-10.5-37.7q-.7-8.3-.3-16.8v-.2c1-17.3 8.4-34.5 18-48.8a115 115 0 0 1 30.8-30.2l1-.6.8-.6c10.3-7 21-14.4 30.2-22.8a133 133 0 0 0 18.3-21.6 153 153 0 0 0 20.3-44.6q6-19.5 7.8-39.8a73 73 0 0 0-1.2-25.1c-3.4-.8-7-.7-10.6-.6q-3.7.1-7.6-.1a67 67 0 0 1-30-11.2c-9-6-17.6-13-24.9-21.1a206 206 0 0 1-30.2-43.8q-8.8-17.8-16.4-36.2l-.4-1a211 211 0 0 0-28.8-50.2q-12.2-15-28.3-25.6a89 89 0 0 0-49-16c-11.8-.3-23.4 1.3-35 3.3a38 38 0 0 0-16.2 6.4c-1.1.8-1.1 2-1.1 3.2v1.4h.7c1.6.2 2.8.2 4.2-.9a40 40 0 0 1 17.8-5.5c7.2-1 14.3-2 21.6-2 9.3-.2 18.5-.1 27.5 2.6a107 107 0 0 1 42.1 24.8 144 144 0 0 1 28.2 37.8q-24.5-6.4-49.8-6.4a244 244 0 0 0-55.8 7.3 167 167 0 0 0-38 15.8l.3-2c.7-4.3 1.3-8.6 3-12.4q2.8-6 6.8-11.2l.5-.7c1-1.4 2-2.8 1.7-4.7a3.5 3.5 0 0 0-3.5-2.4c-4 .3-8 2.2-11.8 3.8l-.4.3c-9 4.3-17.5 9.6-24.6 16.6-4 3.8-7 8.1-10.3 12.6a70 70 0 0 1-9.3-78.3 90 90 0 0 1 32.4-36.5c23.8-16 53.8-23.5 82-26.5 12.7-1 25.2-2 38-.8M266.9 283.6a79 79 0 0 1-8.7-46.2c-8.5-.6-17.2-.7-25.6 1a121 121 0 0 0-60.4 31.6 135 135 0 0 0-41.4 75.4 91 91 0 0 0 7.8 56.9q7-9.9 14.8-19.1 2-2.4 3.6-5l3-4.3c2-1 4.2 0 3.9 2.5a44 44 0 0 1-8 12l-2.3 3a217 217 0 0 0-16.3 23.6 120 120 0 0 0-16.2 39.2 115 115 0 0 0-1.5 36.1c1 9.9 3.3 19.5 7.9 28.2Q133 529 140 538c5.3 7.3 10.5 14.5 14 23 4 9 4.7 18.6 4.4 28.4v.5c-.2 2.2-.4 4.7-2 6.4-1.4 1.4-4.7.4-4.4-1.9 1.1-9.5 1-20-2.4-29a107 107 0 0 0-14.8-24.8q-4.7-6.3-8.9-12.9a58 58 0 0 1-62.3 37.4 39 39 0 0 1-30.3-21.4 41 41 0 0 1-2.8-22.5 43 43 0 0 0-11 42.4c2 6.2 5.9 12.3 12.3 14.6q.7.5 1.4.6c1.5.6 2.9 1 3.1 2.8.6 2-.8 3-2.2 4l-.2.2a41 41 0 0 0-15 22.8 65 65 0 0 0-.8 34.3c2.3 7.9 6 15.3 14 18.5 5-3.8 10-7.1 16-9.1a14 14 0 0 1 5.1-.6l.3 1.2c.3 1.4.6 2.6-.7 3.7l-3.6 1.5q-4.6 1.6-8.6 4.3A76 76 0 0 0 14.4 697a119 119 0 0 0-6.9 65.5c2.4 12.7 7.4 26 16 35.8A35 35 0 0 0 49.6 811q3 0 6-.7c2.2-.4 4.6-.9 7-.6 4.2 8.3 12.8 11.3 21 14-5.4-14-.6-28.7 9.1-39.3 1-1.2 4.4-1 5.2.4q.4 1.6.3 3.4v2.1a33 33 0 0 0 27.4 27.5c5.1.7 10 .4 14.9 0l6.1-.4a91 91 0 0 1 23.5 1.5c13.8 2.6 27 6.2 38.7 14.2 6 4.2 11.4 10 14.1 16.7a29 29 0 0 1-4.5 29.4 27 27 0 0 1-8.4 5.9l-.8.4c19.7 1.1 40-4 57.6-12.9a89 89 0 0 0 32.5-26.6q6.5-9 7.8-20.1c-10.6 0-21.5-1.5-31.8-4.3-2.9-1-3-3.6-.6-5.4 1.6-.3 3.3.2 5 .6l1.9.4c24.3 5.3 50.7 3.7 73.4-6.6a69 69 0 0 0 34.2-30.7 49 49 0 0 0 3-36.9c1.6-2.3 3.6-4.3 6.5-2.8a69 69 0 0 0 35 7A66 66 0 0 0 472 733c5.2-4.4 8.8-9.2 11.4-15.4l-5-14.8a170 170 0 0 1-11.9-47.2q-12.6 2-25.2 2.4l-4.8.3q-7.1.3-14-.3l-6.8-.5a224 224 0 0 1-139-62.5c-3 18-13.1 32.2-25.4 45q-10 10.4-21 20.2-8.5 7.5-16.4 15.5a94 94 0 0 0-17 21c-2.1 3.8-3.7 8.4-2.3 12.7 1.6 6.9 7.2 11.5 12.9 15a25 25 0 0 0 8.7 3.2c1.4.4 3.1 1 3 2.8.3 1.6-1 2.8-2.6 2.8-7.6-.2-14-4.5-19.5-9.3-6-5.4-10-13.4-8.5-21.6 1.3-6.6 5.6-13 9.7-18.2 8-10 17.9-18.9 27.6-27.7q7.1-6.5 13.8-12.9a128 128 0 0 0 25-31c5.3-9.8 7.6-21 7.2-32.1-.8-20.7-10-40.5-22.5-56.8-6.8-9-14.8-16.4-22.9-24q-6.5-5.8-12.8-12.3-6.4-6.8-9-16a12 12 0 0 1-.2-7c1.8-1.4 3.8-.9 4.5 1.3q.8 5.8 3.5 10.8-.3-3.7-1-7.6l-1-7.2a224 224 0 0 1 56.4-178M636.5 412c3-1 4.6 2.3 6 5q.5 1.3 1.2 2.2a59 59 0 0 1 41.1 10 59 59 0 0 1 23.7 38.3c5.6 28-8.7 58.3-33.3 72.6a70 70 0 0 1-30.7 9.2q-1.6 2.7-3 5.5l-2.7 4.8q-4.3 7.5-9.3 14.8c-6 9.2-12 18.5-15.6 28.4a37 37 0 0 0 0 27.4c2.6 6.2 7 10.7 12.2 14.8 5.6 4.2 11.6 7 17.7 9.9q7 3 14 7.3a57 57 0 0 1 25.6 29.5c3 8.7 2.9 17.5 2 26.6v.7l-.1.5a52 52 0 0 1-3.8 16c-.5 1.2-2.7 3-4 1.7-1.9-.5-1.3-3.3-.8-4.7 2-6 3-11.6 3.2-18 .7-7.5.3-15-2.4-22a51 51 0 0 0-20.8-24.2q-7.6-4.8-15.5-8.2c-6.2-3-12.4-5.8-18-10.2q-8.5-5.9-13.3-14.8a41 41 0 0 1-2-32.6c3.5-11 10.1-21 16.6-31q5.2-7.7 9.7-15.4a145 145 0 0 0 19.3-61.6c1.7-19-2-37.2-8-55.1-2.4-7.6-5-15.7-9.2-22.5l-.2-.4c-1-1.7-1.7-3.1.4-4.5","fill":{"type":"color","name":"hair"}}}]},"long07":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M403.2 165.5c-9.5-.8-19-1.7-28.6-.5-4-.2-7.6.6-11.3 1.3l-5.7 1q-9.1 2.1-18 5.3l-9 3a232 232 0 0 0-40.5 16.6q-3.8 2-7 4.8-3.6 3.6-6.3 7.7l-2 2.8-1.9 2q-1.6 1.6-2.6 3.7-.6 1-1.9 1.5l-.8.5a165 165 0 0 0-57.8 55.4 126 126 0 0 0-16.7 95.7c1 3 .2 5.8-.6 8.7l-.6 2.4a718 718 0 0 0-8.7 33.9q-1.2 4.8-2 9.9t-2.2 10.3q-.2 3.1-1 6.3-.7 3.5-1 7.1-1 4.2-1.3 8.5-.3 4.4-1.4 8.5-.6 9.3-1.5 18.8-1 10.6-1.6 20.7-.2 3.7-.2 7.6.1 4.7-.5 9.4v2.6q0 6.2-.3 12.4-.4 11.5 0 23.2l.3 13.8v1.5c.4 10 .7 19.5 1.6 29.5q.2 7.3 1.1 14.4.7 5.2 1 10.5l1.4 10q.7 7.4 2.4 14.6a345 345 0 0 0 11 43.3c4.4 13 8.6 26 15.9 37.9q1.7 2 4.2.8c1.5-1.8 1-4.3.6-6.6l-.3-1.8-.5-4.3q-1.4-9.2-1.5-18.8a323 323 0 0 1 .4-38.8q.1-4 1-8l2.2-16.3 2-14.8.4-.9q.3-.9.8-1.6-.2 6.8 1 13.4a131 131 0 0 0 2.1 15.5l1.4 8.5a251 251 0 0 0 20 63q3.8 9.3 8.4 18.5a5 5 0 0 0 4.5 2.7l19.2-2.5q13.3-2.1 26.7-3.3a148 148 0 0 1 21.6-2c4-1 8.1-1.1 12.3-1.3q3.6-.1 7.2-.5 3.4-.3 7-.3 5.1-.8 10.2-.8 3.9.1 7.8-.4h8.3a274 274 0 0 1 93.3 12c10.5 3 21 6 32.3 8.1 20.7 4 43.2 3.3 63.2-3.7 10.5-3 19.7-8.4 28.6-14.8a168 168 0 0 0 44-48c2.5-4.5 3.9-7.7 5.2-11l2.7-6.4a146 146 0 0 1 4.9 27.8c.4 16.6 0 32.7-3.3 49l-.8 2.4q-.8 2.2-1.3 4.5c-.1 2 1.5 4.1 3.6 3.7q2-1 3.1-3l.4-.5c18.7-26.6 31-58.6 39.3-89.7a437 437 0 0 0 11-55q.8-4.2 1.2-8.5 1-5.1 1.2-10.2.3-4 .9-7.9c2.5-24 2.9-47.8 2.6-71.9v-1.2q.2-2.4-.7-4.5a3 3 0 0 0-4.5 1.8 57 57 0 0 1-33.7 34.5 62 62 0 0 1-39.3 1l-.6-.6c0-1.7.7-3.5 1.2-5a556 556 0 0 0 21.5-83v-.1q.2-3 1-5.8.6-2.6.7-5 .3-3.4 1.3-6.6a87 87 0 0 1 1.2-10c15.7.2 30.9 6.8 40.4 19.5l1.1 1.8q1 1.6 2.3 2.9c1.9 1 4.3-.7 4.3-2.7l-.9-8.1q-.5-3.4-.7-7-.8-3.3-1-6.8-.2-4.1-1.4-8.2c-.2-3.9-1-7.6-1.6-11.4l-1.2-6.4a583 583 0 0 0-12.8-57.1 689 689 0 0 0-23-68c-8.2-22-24-40.6-42.9-54.3a143 143 0 0 0-33.5-18.3l-7.8-2.6-7.2-2.3-10.8-2.9-15.8-4c-25-7.3-50-11.8-76-15.2l-5.8-.9q-2.6-.2-5-.8l-6-.7a43 43 0 0 1-8.1-1.2l-11.5-1.4a221 221 0 0 0-24-2.3m-19 129.3-.2.1c-1.2 1.3-1.5 3.5-1.7 5.4q0 1.2-.3 2.1-.8 3.5-1.2 7.1a70 70 0 0 1-1.4 7.8l-.7 7a241 241 0 0 0-1.8 25.6q-.7 4.2-.6 8.6v2.9l-.1 6.1.2 16c0 1.6-1.2 3.4-2.8 4h-6q-7.2-.6-14.6-.8-5.7 0-11.3-.5-8.5-.6-17.1-.7-3-.6-6.3-.5h-1.7l-7.4-.2c-5-.2-10-.5-14.6.2-1.6.2-3.3.2-4.3-1.4-9-14-14-29.8-16.3-46.2q-1.7-9.4-2-19-.6-4.7-.5-9.4t-.4-9l-2.2 11-2 10.4-1 7.6c-.6 6-1.4 12.1-1.3 18.4v3.4c0 10.3-.2 20.4 1.8 30.6.7 3-2.3 4.5-4.8 4.8h-7.2q-6.4-.3-12.8 0l-5.3.3q-4.6-.2-8.8.7a45 45 0 0 0-9 7.1c-1 2-1.2 4.6-1.5 7q-.2 2.5-.7 4.6c-2.5 21.7-2.3 44 1.4 65.5q.6 2.3 1 4.7.2 2.8 1 5.2a218 218 0 0 0 154.8 163.2q9.8 3 20.2 4.6l5.9 1 2.8.4q5 .5 9.7 1.2a222 222 0 0 0 142-36.8l7.7-5.5 6.2-4.5q2.5-13.9 4.3-27.8l1.5-10.6 1-11.8q.8-10.8 2.1-21.4 0-6 .5-11.9 1-11.6 1.2-23.5.2-9.7.8-19.5 0-10.6.3-21.2c.2-14 .5-27.8 0-41.8v-1.3c-.1-1.2-.2-2.5-1-3q-8.9-3.6-18-6.6l-5.2-1.8-2.1-.7c-2.8-.8-5.7-1.8-7.8-3.7-1.3-1-1.7-2.8-2-4.3l-.1-.6q-3.8-12.7-9.5-24.7a19 19 0 0 0 0 5.1l.1 2.6a55 55 0 0 1-1.9 16.7c-1.4 3.2-4.6 3.2-7.6 2.6q-3.6-.8-7.2-1-3-.1-5.9-.7-5-.5-10-.7-3.5 0-6.8-.3c-2.3-.4-3.4-2.4-3.2-4.6.6-23.5-6.4-46.6-16.5-67.7a22 22 0 0 0 0 5.8l.2 2.9a241 241 0 0 1-2.4 46.7l-.8 5.8c-.5 1.5-1.4 3.4-3 4-2 1-4.7.7-7 .2a203 203 0 0 0-44.9 0l-13 1h-.2c-3.2.6-8.2 1.4-10.3-1.7q-1.3-1.6-1.4-3.7l-.3-1.8q-1-3.7-1.3-7.5l-1-6-1.4-13.7q-1.3-11.3-2.1-22.3 0-4.9-.6-9.6-.7-4.9-.6-9.9-.7-2.2-.7-4.6 0-1.5-.2-2.8l-.2-.9q-.8-3.9-.7-7.8","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M380.1 170.3c29.7-.4 57.3 4.8 86.5 8.6 11.7 2 23.3 3.3 35 5.8 14.2 2.6 28.5 6.7 42.5 10.3 13.4 3.8 27.7 6.8 40.5 12.3q15.3 6.7 28.5 16.6c15.5 12 29.3 27.5 37.1 45.6 9.7 24.8 18.8 49 25.6 74.8a649 649 0 0 1 17.6 90.9l-.5-.2a55 55 0 0 0-39.5-16.6l-.5-.9c1.3-4.6 1.3-9.5 2.6-14 .5-1.9.1-5.4-2-6-2.5-.3-3.2 3-3.7 4.9-2.7 14.3-4.4 28.7-6.7 43a525 525 0 0 1-18 74.5c-12.2 38.2-25.5 76.8-44.8 112A313 313 0 0 1 559 667a439 439 0 0 0 19.7-87.6c2-11.4 2.5-22.5 3.7-34 1.5-16.8 2-32.3 3-49 .8-14.7.7-29.3 1-44 .3-12.2-.6-27-.1-38.4 4 .7 8.2 3.6 12.3 4.5 2 0 3.4-2 2.6-3.7q-1-1.5-2.7-2.2c-15.6-7-31.6-12-47.6-17.5-4.4-16.6-12-31-19.7-46.3-1.2-2-3.4-2.8-5.2-1-1.3 2.3.4 5 .8 7.5q1.4 6.5 2.2 13c.7 3.4.1 6.8.8 10q-.1 6-.9 11.6-1 .6-2.3.3c-9.2-1-18.3-2.2-27.7-2.2q-.7-.7-.6-1.7c.2-6.7-1-13.7-1.5-20.4-1-3.8-1.4-7.6-2.4-11.4q-3.5-13.3-8.9-26c-3-7-6.5-14.5-11.1-20.6-.3-4.5-1.3-9-1.8-13.5-1.7-6.7-1.7-14.2-4.5-20.5-2.2-1.9-5.2-.4-4.8 2.5 2.4 10.7 4.3 22.2 5.6 33 1.9 15.5 1.7 30.6 1.6 46-.5 7.5-1.3 18-2.9 25.2-5.5.2-12.4-1.5-18-1.4-9-.5-18.2.4-27 1.4-7.8 0-15.5 1.6-23.2 1.7l-.6-.8a564 564 0 0 1-6.6-58.1c-.5-12.6-2.4-25.5-3.9-38-.5-2.2-.4-5-2.7-6.2-2.4-1-4.6.8-4.9 3.2q-3.3 11.4-5 23c-1.4 5.7-1.7 11.3-2.6 17-.5 7-1.7 14-1.8 21-.4 12.9-1 25.6-.2 38.5q-5.7 0-11.6-.4c-15.7-1.3-32.5-1.1-48-2-5.2-.6-11.7 0-16.8-.2a88 88 0 0 1-11.7-26.4 185 185 0 0 1-5.5-37.5c-.1-8.8-.6-18.4 1.3-27 2.4-14.2 8.2-27 15.2-39.6 1.5-1.8 2.6-4.3.3-6-2.4-1-3.8.6-5 2.4a198 198 0 0 0-18 36.2c-6.8 19-11.2 38.8-12.2 59-1.1 10 .2 19.6.3 29.5.8 1.4.4 2.9.6 4.5.1 2 .8 4 .5 5.9-9 0-18-.2-26.9.6-1.4 0-4 1-5-.3-.9-4.1-2.3-8-2.6-12.2-2.2-17.2 0-35.6 6-51.9.9-2.2 2-4.4 0-6.6-2.6-.6-3.4 0-4.6 2.4a124 124 0 0 0-8 49.1c.8 4.4.4 8.7 1.9 13 .1 3 1.8 5.8 2 8.7-4.4 3.3-8.7 7.7-13.4 11a114 114 0 0 1-14.2-55.7 129 129 0 0 1 32.6-83.3 173 173 0 0 1 80.3-51.6c3.2-1.6 2.6-5.3-1-5.5-9 2.3-18 6.3-26.6 10 2.4-3.9 5.4-7.4 9.6-9.6 15.8-9.4 34.8-14.9 52-20.7a116 116 0 0 1 25-6.3c4.1-.8 8.3-.5 12.5-1.2"}},{"name":"path","type":"element","attributes":{"d":"M197.2 380q2.9 7.7 6.8 15c1.7 3 2.6 6.6 7 6.1 0 4.7-1.1 10.5-1.5 15.3a225 225 0 0 0 70 181.2c38.3 36 89.5 58 142.1 60.3 12 1.1 23.1-.1 35-1 39-4.1 76.8-18.7 108.5-42q1.2-.9 2.1-2.1c0 4.4-1.7 8.2-2.2 12.5a261 261 0 0 1-19.1 57.2c-.8 2-2.8 4.4-2 6.6 1 2 3.5 2 4.9.5 14.3-18 27.5-36.7 37.8-57.3 15-27.7 26-57 36.2-86.7 2.5-.3 5.3 1.2 7.8 1.6 7.1 1 13.8 2 21 .8a62 62 0 0 0 46.2-28.5h.6c0 9.7.3 19.3-.5 29-1.3 27-4.3 55.3-9.5 81.8-7.5 38-18.6 74.2-38.4 107.8-.8-3 .6-6.6.8-9.6 1.2-14.7 1.6-29.5-.1-44.2-1.7-8.6-3.2-17.5-6-25.9-.6-1.8-3-2.1-4.7-1.5-1.3 1-1.8 2.9-2.5 4.4q-3 9.7-7.6 18.5a162 162 0 0 1-26.8 34 117 117 0 0 1-42 28 120 120 0 0 1-65.5 3.6c-14.7-3-28.7-7.6-42.9-11.2-12-3.3-23.8-5-36-7-17-1.8-34-2-51-1.6-36.8 1.8-71.6 5-108 10.5-1.8 0-5.5 1.5-6.7 0l-9.7-22.2c-14.4-33.8-21-71-22.9-107.5.3-2.5-.9-5.3-3.9-4.6-2.4 1-2.2 3.8-3.2 6.1-1.5 6.3-3.4 13-4.1 19.5a404 404 0 0 0-5.7 43c-.2 9.7-.5 19.3 0 29-.3 5.3 1.3 10.5.7 15.7a415 415 0 0 1-19.9-71.8c-3-21.3-5.2-43.3-5.7-64.9-1-8.7-.3-17.3-.9-26 0-18.4.1-36.9 1.5-55 0-8.7 1.7-17.3 2-26 3.2-30.9 9.5-61.7 18-91.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long08":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M414.1 115c-6-1.9-12.2-3.7-18.4-4.2-1.9-.2-3 1.3-3.2 3q-1 11.5-.5 22.9c-6 1.8-11 4.7-15.9 8.8v-1.6c.3-3.7.4-7.2-1.3-10.7-2.7-6.1-9.6-10-16.2-9-4.3.5-8 3.5-10.2 7-3.7 6-5.3 13-3.1 19.9-6.5-4.5-15.8-7-23.5-4.8-.1-4.2-.7-8.6-3-12.2q-1.4-2-3.7-1a46 46 0 0 0-18.8 14.8l-.7-.8a10 10 0 0 0-4.5-3.1c-5-1.4-10.5.3-14.6 3.3-3.5 2.7-6 7.2-8.3 11.1l-.3.6c-3-5.7-7.7-9.7-14.2-10.6-9.9-1.3-20 7-20.7 17q-.7 9.1 5.9 15.4c-5.9 2.9-12 7-15 13a25 25 0 0 0-1.4 20c-4.7 3.7-6 10.4-4.2 15.9a22 22 0 0 0 4 6.7l.4.4-.6.4a20 20 0 0 0-6 4.8 16.5 16.5 0 0 0 0 19.2 137 137 0 0 0-24.8 59.2 117 117 0 0 0 1.3 43.5c.6 2.6 1.2 5.2.6 8q-1.1 5.4-2.7 10.8l-1.3 4.5a510 510 0 0 0-16 88.2 688 688 0 0 0-3 57.6l-.3 10.4c.5 34.7 1.5 68.4 7.2 102.8A373 373 0 0 0 193 706q4.4 13.5 11.5 25.6 1.7 2.7 4.6 1.4c1.3-1.3 1.1-2.7 1-4.3l-.2-1.2a274 274 0 0 1-.7-77l1-7.1q1.5-11.4 3.7-22.7 0 5.9 1 11.8l.5 5c3.3 23.5 8 46.4 16.6 68.6q3.8 9.4 8 18.6l3.2 7.2 1.2 2.6q1.4 3.5 3.5 6.7c1.6 2 3.9 1.6 6 1.3l1.2-.1q42-6.4 84.5-9.4 26.4-2.1 53-1.4c18.6 0 37.5 3.1 55.5 7.5q8.7 2.2 17.2 4.6c13.5 3.8 26.9 7.5 41.3 9.4 20 2.7 40.7.3 59.5-6.9 12.6-4.8 24.2-13 34.3-21.9q14.4-12.7 25.7-28.3a94 94 0 0 0 15-29q2.8 10.5 4.1 21.3c1.2 7.4 1 15 1 22.7l-.1 5.5a131 131 0 0 1-4.8 32.8c-.4 1.7-1 3.7.4 5.1 1.6 1.5 3.6.7 4.8-1a207 207 0 0 0 19.3-32.7 397 397 0 0 0 32.3-113A614 614 0 0 0 704 506q.2-2-.7-3.4c-1.1-.6-2-.3-3 0l-1 .2a58 58 0 0 1-32 35.3 62 62 0 0 1-42.6 1.5c7-21.1 13.6-42.6 18.4-64.3 4-17 6.5-34 9-51.2a49 49 0 0 1 41.6 21.1q1.5 2.3 3.8 3.7l1-1c1.1-.9 2-1.6 1.6-3.6-5-47-14.7-93.7-30.1-138.4 5.5-.1 10.8-1.3 15-5.2 4-4.3 4.6-10.7 3.5-16.2-.8-3.8-2.7-7-4.8-10.1 6-1 12.3-2.7 15.5-8.5a18 18 0 0 0-6.2-22.6l.4-.6q2.3-2.9 3.2-6.4c1.3-6.5-2.2-13.8-6.6-18.4-4.6-5-11.6-6.6-18-5q3.6-6.8 3.1-14.6c-.1-4.4-1.9-8-3.8-11.9 2.7-4.5 5-9.9 5.2-15.1.2-3-2.8-3.6-5.1-4l-.8-.2a67 67 0 0 0-33 .9q-.9-8.7-3.9-16.7c-.3-1.7-2.6-2.5-4-2-10.7 4.3-21.4 9-27 19.7q-5.6-.5-11.2 0c2.4-4.3 4.3-8.6 4-13.7.2-6-3-12.2-9-13.9-7.4-2.2-17.8 0-21.9 7-2.3 3.5-2.9 7.3-3.6 11.4l-.3 1.8-2.2-3c-4.1-5.2-8.2-10.5-14-14.2a25 25 0 0 0-21.4-2.7 19 19 0 0 0-9.5 8c-6-5.5-12.7-4.4-20-3.2a26 26 0 0 0 3.5-14.2c-.8-9-10.7-15.2-19.2-12.7a29 29 0 0 0-13.8 15.6q-4.7-8-12-13.3c-5-3.4-11.2-4.6-16.5-1.6-2.5 1.3-3.6 3.5-5 5.8l-.3.7a32 32 0 0 0-16.2-12M387.4 335c-1-13.7-1.8-27.4-3.7-41a369 369 0 0 0-7.4 88.3c.1 2.1-.6 4.2-2.8 5q-3.5.3-7 0h-1q-9-.7-18-1l-6.4-.2q-11.1-.7-22.2-1l-14.3-.7q-3.9-.1-7.9.2l-4.2.3c-1.1 0-1.9-1.1-2.5-2l-.4-.7a114 114 0 0 1-15.7-46 271 271 0 0 1-2.6-37 231 231 0 0 0-6.7 49v4.7c0 8.9-.1 18 1.5 26.5l.1 1c.2 1.4.4 3-.5 3.9-2 1.8-4.8 1.8-7.4 1.7h-1.7q-12.4-.4-24.8.5h-1.2c-3.3 0-5.5 1.8-7.8 3.7l-.7.5-1.2 1c-1.4 1.3-2.8 2.4-3 4.5a219 219 0 0 0 85.3 213.4 218 218 0 0 0 265.9-5 832 832 0 0 0 11.4-135.5v-8q.7-16.2.5-32.7v-7.2q0-5-.6-10-11.3-4.6-23-8.3l-5.6-2c-3-1.1-6.1-2.3-6.9-5.9a165 165 0 0 0-10.2-27.2v1c.5 7.7 1 16.7-1.5 24-.8 2.4-3.3 3.2-5.6 3q-14.4-2.3-29-2.9h-1c-1.5-.1-3.2-.2-4.3-1.4q-.8-1.8-.8-4.1v-1.2c.3-23.2-7-45.6-16.8-66.4 1.2 20.6 1 40.9-2.8 61.2v.1c-.3 1.6-.7 3.3-2.1 4.3-2 1.3-4.8 1-7.1.7h-.6a191 191 0 0 0-46.8 0q-8.4.8-16.7 1.3a6 6 0 0 1-6.3-5.2c-2.4-11.8-3.6-24-4.9-36z","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M448 126a37 37 0 0 1 9.8 9.2c2.1 3 2.6 6.6 4.5 9.5 1.2.4 2.5.8 3.6 0 1-.9 1.4-2.6 2-3.8a28 28 0 0 1 9.2-14c5.1-5.3 15 .7 14.4 7.5-.3 5.6-3.9 10.8-6.4 15.5-.9 1.4 0 2.3.4 3.7 4.9-.3 9.3-2.3 14.1-2.4 3-.1 7-.5 9.3 1.9 3.7 3.6 6.4 8.4 5.8 13.7-.5 5.2-3.2 11.3-8.2 13.5-4.5 2.4-10.7.5-15.9 1.3-.3 1.2-1.5 3-.9 4.3 2.6 3.4 5.7 5.9 7.5 10 2 3.8.8 8.4-.8 12.2-2 4.8-6.6 8.4-11.7 9.1a20 20 0 0 1-19.8-11.2c-2.6-5.2-2-10.2-2.2-15.8-1-2.1-5.6-1.6-5.7 1.3a47 47 0 0 1-3.6 14.7c-1.9 4-5.5 6-9.6 7.1a18 18 0 0 1-14.2-1c-3.5-2.6-5-7.7-4.8-12 .8-2.7 2.3-4.9 2-8 0-2.3-1.4-4.5-1.4-6.9 3-4.2 7.2-6 11-9.2 1.3-1 .5-2.9.5-4.3l-3.3.1c-4.8 2.4-11.3 6-16.8 5-5.7-3.3-11-7-17.5-8.7a34 34 0 0 0 15.4-16.7q9.6-1.8 18.3 2.4c2.3.9 5 2.8 7.4 2.2 2.1-1.7 1.5-3.9.3-5.8a31 31 0 0 1-5.3-19c.3-2.3 1-4.9 3.1-6.1 2.9-1.7 6.8-1 9.5.7","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M359.5 129.7c4.8-.7 9.9 3 11 7.7 1.4 4.8-.5 10.3-2.2 14.8-.7 1.8-2 4-1.6 6 1.4 2 3.5 2.1 5 .3 3.6-4.2 7-8.3 11.7-11.3 5.9-4.1 12.6-6.7 19.8-4.4 3.2 1.1 6.7 3.8 5.8 7.7-1.4 4.3-5.1 8-8.6 10.7-3.6 2.8-7.7 4-11.6 6.2a4 4 0 0 0 .3 4.5c4.4 1.6 9 1.6 13.4 3.7 6.4 3 13.6 7.4 17.4 13.6 2.4 3.6.7 7.7-2 10.4-4.2 4-10.8 5-16.3 5.3-3.4-.3-8-.5-10.2-3.3A91 91 0 0 0 380 191c-1.4-.9-4-.3-4 1.6-.6 1.8.9 3.2 2 4.3 4.4 3.8 9.2 8 12.1 13a18 18 0 0 1 1.3 16.3c-1 2.3-4.3 3.2-6.5 3.8a24 24 0 0 1-18.5-2.4 14 14 0 0 1-5.8-8 29 29 0 0 1 2.2-19c.7-1.7 1.4-3 .4-4.9-1.6-.9-2.7-1.1-4.2 0l-2.6 4.4a60 60 0 0 1-17 18c-3.4 2.5-8.3 5.6-12.7 4.4-4.1-1.4-5.3-5.8-3.9-9.6a43 43 0 0 1 11.7-16.6c3.4-3 7.2-4 9.5-7.6l-1.4-2.7c-1.7 0-3.1-.2-4.6.8-6.7 3.4-14.9 6-22.4 5.4-4-.6-9-1.7-10.6-6 .6-4.3 3.1-9.1 7.3-11 4-2 8.9-2.5 13.3-2.6 3.4-.1 6.7.9 10 1 2.8-.3 3.7-4 1.3-5.5-2.9-1.5-7-1-10.1-1.8-5-1.3-10-2.7-12.3-7.8 3-6.2 9.8-8 16.1-7.2 6.4.4 11.7 3.6 16.4 7.8 1.7 1.8 6 1 6.2-1.7-1.3-5.2-4.2-10.6-2.8-16 1-5 3.8-10.4 9.1-11.7M525.8 147a21 21 0 0 1 16.4 2.8c7.6 5 12.9 14.2 19.2 20.9 1.6 1 4.4.5 4.6-1.7.3-6 0-13.3 3.8-18.4 3.5-4.3 9.6-4.7 14.6-3.8 4.2 1.2 5.6 5.7 5.5 9.6-.6 7-5.2 13.7-11 17.7.2 1.2-.3 3.5 1 4.2 1.2 1.3 3.4-.2 4.7-.9a25 25 0 0 1 26 1c4.2 2.5 6 9.1 3.2 13.2-2.7 3.4-8 4.6-12.2 5-4.9.8-9.3-.7-14-.7-2.9.1-3.4 4.2-1 5.4 4 2 7.8 2.8 11.2 6a21 21 0 0 1 6.3 10.6c.9 3.8.1 8.4-3.5 10.5-4.8 3.2-11.8 4.4-16.6.6-7.6-5.5-10.1-13.7-12.9-22.2-.7-3-6-2.8-5.6.6-.3 10.3.4 19.5-5 28.9-2.2 4.1-7.8 5-12 4.6-5.1-.9-7.5-5.8-8.3-10.5-1.3-10.2 3.7-20.6 9.7-28.7q1.8-2.3-.5-4c-1.8-1.5-5 1-6.7 1.8-8.5 4-17.7 8.8-27.4 6.7-3.6-.8-9-2-10.4-6-1.9-4.5-3.4-8.8-6.6-12.6 3.7-.1 7.2-.3 10.6-2 3-1.4 4.8-3.8 8.2-4.6 4.6-1.2 9.8-1 14.5-.3 2.8.4 6.3 2 9 .9 1.7-.8.8-3 .5-4.4a80 80 0 0 1-20.3-9.5c0-4.7-.8-8.4-3.1-12.5 1.5-3.9 4-7 8-8.3m-235.5 2.9c1.7 1 1.5 3 1.7 4.6.4 7-3 13-7.1 18.2-1 1.4-2.8 2.9-2.3 4.8.3 1.4 1.9 1.9 3 2.3 3.5-1.4 6.8-4.7 10.6-5.7q4.3-.8 8.7-.8c-3.5 4.6-6 9.5-5.4 15.4-5.4 4.3-8 10.1-11 16.2L279 209c-10.4 4.9-19.7 11.3-29.2 17.6-1.2-2.4-2.4-4.5-2.5-7.2s.8-5.2 1.2-8c-.5-2.5-3.7-3.3-5.4-1.4-3.2 3-5.7 6-10.6 5.1-5.4-1.4-6.8-8-5.8-12.7 1-9 9.2-15.3 17.3-17.7 2.3-.2 3.2-3.3 2.3-5.1-1.9-2.3-5-3.8-6.4-6.7-2-4.7-1.7-10.3 1.9-14.2 3.4-3.7 8.7-6.3 13.7-4.1 6 2 8.4 8 9.4 13.7.3 2.6 4.6 2.1 5.2-.1a35 35 0 0 1 9.7-16.5c2.7-1.9 7.3-3.6 10.3-1.9","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M621.1 185c2.4-2.6 6-.9 8.6.4a31 31 0 0 1 14.6 19c.7 2.3-.3 6.1 2.4 7 1.6 1 3.6-1.4 3.6-3 .5-5.8.8-11.4 3.5-16.7a12 12 0 0 1 6.8-6.3c5.7 2 8.2 7.4 9 13 .7 5.7-1.4 11.6-5 16-1.2 1.7-2.9 2.7-2.5 5 1 1.3 1.9 2.2 3.5 1.8 4.2-1.2 7.5-3.2 12-3 4.6 0 8.1 3 10.6 6.7 2.4 3.7 4.1 8 2.2 12.4a12 12 0 0 1-11.9 5.9c-4.2-.3-7.1-2.6-10.9-4-1.8-.4-3.4 1.5-3.2 3.2-.1 1.3 1.2 2.3 2 3.3a20 20 0 0 1 5.3 11.7 17 17 0 0 1-14 14.6c-3 .3-5.2-1.8-6.7-4-2.8-4.3-3.4-9.6-5.2-13.9-1.1-2.3-5-1.9-5.4.8-2.2 6.6-5.6 12.5-12.3 15.2-2.6 1-5.1-.5-7.1-2-3.4-3-6.4-7-6.4-11.7-.3-4.1 1.9-8.4 4.6-11.5 1.8-2 4-3 6.2-4.7 1.8-1.8-.3-5.1-2.7-4.3a41 41 0 0 1-22.5-.6c3.6-2 7-3.7 8.7-7.7 2.6-6.5 1-13.5-2.5-19.3q8.3 4.7 15.6 10.7c1.7 1.4 4.1 2.7 5.9.7 1.6-2-.3-3.6-1.7-4.8a56 56 0 0 1-14.6-14.7c3.3-1.7 6.3-3.4 8-6.8 1.5-2.8 1-5.5 1.5-8.5M225 218.7c2-.3 4.2 1.6 6 2 4.1 1.5 7.5-.3 11.1-1.9 0 4.4 1.4 7.7 3.7 11.4a166 166 0 0 0-26.3 26.3 11 11 0 0 1 2.4-12.8c2.3-2.2 5.6-2.3 8.3-3.6 1.7-1 2-4.4 0-5.2-2.2-1.3-4.2-2.3-5.5-4.5-2.2-3.2-2.5-9 .3-11.7","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M686.8 247.4c2-1 4 1.2 5.5 2.3 3.7 3.7 4.6 11.2.9 15.3-3.7 3.2-8.8 3.8-13.5 4-2.4-.2-3.6 2.3-3.4 4.4 1.8 3.2 4.6 5.7 6 9.2a16 16 0 0 1 0 12.4c-1.6 3.4-6.3 4.7-9.7 5.2-1.9 0-4.2.7-5.1-1.6q-4.1-10.4-7.9-20.9c8.7-2.1 16.4-9.2 17.5-18.3a20 20 0 0 0-1.9-11c4 .2 7.8.2 11.6-1","fill":"white"}},{"name":"path","type":"element","attributes":{"d":"M398.1 116.7q7 1.3 14 3.4a27 27 0 0 1 17.4 16.4c.8 3.8 1.5 7.6 3 11.3-5.8-1.8-11.7-3-17.8-1.5-1.4-2.6-2.7-5-5.3-6.8a23 23 0 0 0-11.6-3.5c0-6.4-.3-13 .3-19.3m-82.8 22.6q.6 4.5.5 9.2c-3.4 2.6-6.4 5.3-6.8 9.8 0 4.6 3 7.3 6.2 10-4.8 1.3-8.9-1.3-13.6-.7l-7.2 1.2a38 38 0 0 0 3.6-13.3 33 33 0 0 1 17.3-16.2m313.9 16.5c2.1 7.3 4.3 16.4 1.9 23.8a16 16 0 0 0-12.2-.7 23 23 0 0 0-11-8.5 41 41 0 0 1 21.3-14.6m41.5 17.1a60 60 0 0 1-3.2 9.2c-3.8-1.7-7.2-3-11.2-1.2-5.8 2.8-7.9 8.1-10 13.8a44 44 0 0 0-10.2-11.9q1.7-4.3 2-8.8c9.7-5 22.2-2.8 32.6-1.1M302.4 193c3.1 1.9 6.4 3.9 10.1 4.5q6.7.9 13.4-.5c-3.2 3-4.8 6.9-7.4 10.2-7.3 5.1-19 4.8-27.5 7 2.5-7.2 5.5-16 11.4-21.1M539.7 207a43 43 0 0 0-5.4 19.8c-3.2 3.8-5.6 7.6-9.8 10.5-4.9 3.5-10 3.8-15.5 6.3.6-10 .6-22.7 5.7-31.6 3.8 0 8 .4 11.7-.3q7-1.7 13.3-4.8","fill":"#A0CC59"}},{"name":"path","type":"element","attributes":{"d":"M460 153.7a17 17 0 0 1 14.6 1.7c4.6 3.5 7.7 9.2 5 15a21 21 0 0 1-24.7 9.6 11 11 0 0 1-5.4-9.6c.3-7 3.5-14.2 10.5-16.7M357.1 166q6-1.5 12 0a13 13 0 0 1 8.4 9.4c.9 4.6-1.6 9-5.4 11.6a25 25 0 0 1-14.5 4.3c-3.4 0-8.2-.4-10.2-3.7-.9-2.8-.3-6.1-.2-9 .4-5.8 4.2-11 10-12.6M559 176c6.5-2 15.4 1.3 19 7a11.6 11.6 0 0 1-1.6 15.2c-8.6 7.5-25 2.9-27.3-8.7-1.1-6.7 3.7-12.2 10-13.6m-298.2 2.7c4.8-1.7 10.5 0 12.6 5 4.2 9.8-2.8 21.4-12.9 23.6-4.5.7-8-3.7-9.1-7.6-1.3-3.5-.4-6.7.4-10.2 1.3-4.8 4-9.1 9-10.8M641 216.9c7.2-1.8 15.6 1.6 18.4 8.7 2.1 4.8 2.2 12-1.7 16-3 3-7.3 2.8-11.1 1.8-4-1.4-8.5-3.4-10.7-7.4-2-3.8-3.5-8.7-1.6-12.9.9-3 4-5 6.8-6.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M462.7 158.5c3-1 6.5 0 9 1.8 2.7 1.8 4 5.4 2.2 8.4a16 16 0 0 1-11.3 6.5c-2 .1-4.9.4-6.2-1.5-3.5-5.3.4-13.7 6.3-15.2m-104.9 13.1c3.4-1.1 7.9-1.3 11 .6 3.2 2 3.9 6.9.9 9.3-4.6 3.6-11 4.9-16.6 3.4-2-4.5-.3-11.5 4.7-13.3M559.1 182c5.9-1.8 13.1.3 15.3 6.5.8 3.9-2.3 6.6-5.7 7.3-5.4 1.3-12.5-1.6-13.9-7.3-.5-3 1.6-5.4 4.3-6.5m-297 2q4-1.8 6.2 1.8c2.8 5.8-2 13.6-7.9 15.4-1.8.7-2.8-1.6-3.2-3-1.4-4.9-.1-11.8 5-14.1m380 38.1c2.6-1.1 6-.2 8.3 1.2 3.2 1.7 4.6 5.6 4.9 9-.1 1.8-.9 5.1-2.9 5.8-3 .5-6.5-1.1-9.1-2.6-3-1.8-3.4-5.2-4.5-8.3 1-1.8 1.3-4.2 3.3-5.1","fill":"#F0DF83"}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M419.2 205.8c1.6 4.6 3.6 9.4 8 11.9a27 27 0 0 0 24.1-1.5 20 20 0 0 0 7.8-9 26 26 0 0 0 25.5 15.9c8.9-1 15.7-7.4 18-15.9l6 3.3c-3.2 7.4-4 15-5 22.8q-.4 6 0 12.1c.2 2.3 1.2 5.3 4 5 3.4-1 6.5-3.2 10-4a33 33 0 0 0 17.5-12c1.9 5.7 5.3 10.5 11.4 12 6.3 1 14.4-.2 18-6a39 39 0 0 0 6-19c4.4 8.5 12 16.6 22.3 16a38 38 0 0 0 21.2 5.2c-4.7 5.8-6 13.2-3.7 20.3 1.8 4.2 5 8.3 8.9 11 3.1 2.4 7.7 2.7 11.4 1.5a25 25 0 0 0 12.2-11.2c1.3 3 2.4 6 4.5 8.5 1.6 2.1 3.9 3.4 6 4.8 4.3 11.8 9 23.4 13 35.4a624 624 0 0 1 25.5 110q.7 6.4 1.8 12.7a56 56 0 0 0-40.6-17.1l2.6-16c.4-2-.6-3.5-1.2-5.3-3.3.6-3.6 1.3-4.5 4.4-3.3 17.1-5 34.6-8.2 51.8-5.6 32-15 62.1-25.3 92.8a537 537 0 0 1-36.2 85.8 337 337 0 0 1-21.2 35.1 366 366 0 0 0 14.6-55.7c7-35.6 10-72.7 11.5-109 1-7.6.4-15.3 1-23q.6-33-.1-65.9c4.2 1.7 8.3 3.8 12.6 5 2.1.1 4-2.8 2.2-4.3-2.2-2.2-5.9-3-8.7-4.4-13.4-5.5-27.3-10-41.1-14.6-4.2-15.9-11.4-29.6-18.6-44.4-1-1.7-2.2-4.5-4.6-4-1.8 0-2.6 2-2.2 3.6 2.8 12.5 6 27.3 3 40a261 261 0 0 0-30-2.5q-.2-8.8-1.3-17.5A157 157 0 0 0 476 310c-1.6-2.1-1.7-5-2.1-7.6q-1.3-9.6-3.2-19.2c-.6-3-1-6.7-2.6-9.4-1.3-1.2-3.7-1-4.5.7-.4 1.4.1 3.2.4 4.7 4.5 21 7 42.6 6.6 64.2q.4 18.9-2.8 37.4c-8-.8-16-1.9-24-1.7-15 .3-29.8 2.3-44.7 3.3a495 495 0 0 1-5-38c-1.8-20.1-2.6-42-6.3-62-.4-4-5.6-5-6.7-.8-5.3 18-7.7 37.1-9.4 55.8q-1.3 22.2-.6 44.4c-12.8-.2-25.5-1.6-38.4-1.6-12.7 0-25.2-1.6-37.9-.6-9.7-15-14-32.7-16-50.2a184 184 0 0 1-1.2-31c1.2-17.2 7.2-32.7 15.5-47.6q1.7-2.7 2.8-5.5c-.2-2-1.7-2.5-3.2-3.5q-2.5 2-4 4.6a202 202 0 0 0-16.7 33.2 205 205 0 0 0-11 100.7c-10.6 0-21.4-.4-31.8 1a90 90 0 0 1-3.4-36.9 117 117 0 0 1 5.4-25.5c.7-2.1 1.7-4.2 2.2-6.5 0-3.2-4.6-3.7-5.5-.8q-4 9.1-5.8 18.8c-3.3 17-4 36 1.5 52.6q-6.8 5.5-13.5 11.3-6.4-12-10.2-25.1c-5.7-20.4-5.4-42.3.4-62.6a139 139 0 0 1 32.8-56.8c15-15.8 33-28.3 52.7-37.5-.4 2.7-3.3 8.3.8 9.4 3.7-1 7.2-2.6 11-3 6.4-.7 12.7-1.5 18.8-3.7.4 2.5.5 5.6 1.9 7.8 2 3.6 6.3 5.6 10.4 5.8a21 21 0 0 0 9.4-2.8 68 68 0 0 0 16.4-13.7c.1 4 .2 7.8 2 11.5 1.8 3.3 3 6.6 6.5 8.6a30 30 0 0 0 26.2 2.7 13 13 0 0 0 8-7 25 25 0 0 0-.4-18 36 36 0 0 0 22.5-4.1"}},{"name":"path","type":"element","attributes":{"d":"M197 379.7c2.6 6.8 5.6 13.7 9.5 19.8 1.4 2 2.7 1.6 4.9 1.5A223 223 0 0 0 282 600a223 223 0 0 0 138.6 57.8q12.6 1.3 25 0a218 218 0 0 0 121.7-44.6q-1.4 7.4-3 14.7a243 243 0 0 1-19.2 56c-.6 1.5-1.8 3.6-1.2 5.2q1.2 2.1 3.7 1.5 2.5-2.2 4.3-4.9a334 334 0 0 0 29.8-44.2 438 438 0 0 0 22-45 774 774 0 0 0 19.3-51.2 70 70 0 0 0 38.6 1 62 62 0 0 0 36.9-27.8c-.3 10 .3 19.9-.8 30q-1.6 41.8-9.6 83c-7.3 36.9-19 75-38.8 107.4q1.4-7.7 2-15.5c.6-11.6 1-23.4-.2-35q-1.9-15-6-29.2c-.5-2.9-4.6-3.6-6-1.3-1.9 3-2.7 6.7-4 10a115 115 0 0 1-21.4 34.6 155 155 0 0 1-37.6 32.4c-8.2 4.9-17.6 8-26.7 10.3a115 115 0 0 1-38.8 2.4c-25-2.5-48.8-12.2-72.5-16.8a250 250 0 0 0-53.5-5.3c-9 0-18-.4-26.8.5q-33.2 1.6-66.2 5.6c-13.4 1.4-26.7 3.7-40.1 5.2a373 373 0 0 1-20.7-52.6 345 345 0 0 1-12.3-80.7c-1-.7-2.4-2.5-3.7-1.9-1.8.3-2.3 2.5-2.8 4a238 238 0 0 0-6.8 33.6c-4.5 25.2-5 50.8-2.7 76.2-3.7-8.7-6.4-18-9.2-27q-6.1-20.1-10-41a395 395 0 0 1-4.8-37.8c-1-6-1-12.1-1.2-18.2-1.2-16-1.4-32-1.6-48l.4-24 1.6-31q1-8.5 1.6-17 4.1-39.6 14.3-78c1.1-4.6 2.6-9 3.5-13.7"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long09":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M597.1 214a208 208 0 0 0-52-34.2 96 96 0 0 0-56-4.7 255 255 0 0 0-38.4 10.4l-1.9.7q-10.3 3.5-20 8.3l-.5.2q-1.7.9-3.7 1a88 88 0 0 1-16.5-2.6 877 877 0 0 0-31.8-4.8q-11.1-1.4-22.2-3.2-11.2-1.3-22.3 0-15.1 2.9-29 9.5a437 437 0 0 0-50.6 27.4 325 325 0 0 0-43 33 225 225 0 0 0-32.1 35.9 118 118 0 0 0-24.2 62.5 175 175 0 0 0 5.7 54 1148 1148 0 0 1 8.5 40.2l2.3 11.5c1.5 7 3 14 3.4 21.3l.2 4.4c.4 4.9.7 9.6-.3 14.6a193 193 0 0 1-20 58q-5.5 11.4-11.2 22.4c-6.6 13-13.2 25.9-18.8 39.7-7.4 19-12.2 38.5-12 58.9a116 116 0 0 0 8.2 41.7 69 69 0 0 0 14.4 21.6c9.8 9.6 20.8 17.3 32.3 24.7l3.1 2.2c13.6 9.4 27.5 19.1 36.7 33a57 57 0 0 1 11 32.8 33 33 0 0 1-6.4 18.4q-1.1 1.4-2.4 2.7c-1 1-2 2-2.7 3.2-1 2-.3 3.4.8 5q0 .3.2.4 3.3.2 6.5-1a124 124 0 0 0 64.6-50.3 83 83 0 0 0 13.8-42 73 73 0 0 0 43.8 25.6c16.8 3.6 33 3 50 2.2a152 152 0 0 0 47.8-12.4c10.2-4.4 19.4-10 28.8-15.8l6.4-4 8.8-5.5q7.8-5 16-9.7a343 343 0 0 1 33-16.8 263 263 0 0 1 71.2-20.3c8-1.3 16.2-1.6 24.3-1.9l4.7-.1c24.9-.3 50.2 3.8 72.9 14.4 13.9 6.4 27 14.9 39.5 23.5 2 2 7.1.4 6.8-2.6q-1.4-3.4-3.1-6.5-2.7-4.4-4.2-9.5a49 49 0 0 1-1.6-13q1.3-21.6 8.3-42.2 3.6-11.3 8.2-22.2 3.9-9.3 7.2-18.7c6.9-19.3 10-40.4 8-60.9-1.1-15-6-29.8-12.7-43.2q-6-11.6-13-22.9c-4.4-7.6-9-15.2-12.9-23.1a91 91 0 0 1-7.9-22.6 471 471 0 0 1-7-51q-1.4-16.2-3.6-32a152 152 0 0 0-10.5-41.4 352 352 0 0 0-21.4-40.8c-6.3-9.3-13.7-18-21-26.5l-2-2.4a418 418 0 0 0-45.7-43.4zm-122 164.8c-35.9-28-65.4-66.5-78.6-110.4q-4.5.4-8.7 1.4a365 365 0 0 0-80.5 28.3 244 244 0 0 0-78.5 61.5q-1.6 2-2.5 4.3a218.2 218.2 0 0 0 395.3 179.5c.9-1.7 2.2-2.4 3.8-3.2 11.9 4.1 24.8 4 36.6-.3a65 65 0 0 0 41.8-60.5 56 56 0 0 0-17-41.2 51 51 0 0 0-30.2-13.6 56 56 0 0 0-28.6 5c-.4 10.6-6 20.1-11.3 28.9a90 90 0 0 1-22.6 27.4c-2 1.7-5.5.3-4.8-2.5 4.4-17.9 1.2-38.3-2.7-56q-2.1-.9-4.8-1l-3-.5a236 236 0 0 1-103.6-47.1","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M532.6 181.8a88 88 0 0 0-31-2.9 269 269 0 0 0-61.8 16.8q-7.3 2.7-14.2 6.5-5.5 2.9-11 5.3c-2.9 1-4.7-.8-3.5-3.6q2.2-1.6 4.5-2.8l1.5-.8q-19.6-3.6-39.7-6l-13.8-1.9c-11.1-2-23-3.4-34.2-1a123 123 0 0 0-22.3 7.6 423 423 0 0 0-50.7 27.2 314 314 0 0 0-41 31q-15.1 13-27.3 28.8a138 138 0 0 0-24.7 43.2 108 108 0 0 0-5 38.2c.5 15 3.7 29.3 7 43.8q2.2 9.7 4.1 19.7 2 8.6 3.6 17.3l3 15c2.9 13.3 3.9 26.8 1.5 40.2-3 21-12 41-21.3 59.8q-4.9 10.2-10.1 20.3-7.8 15-14.6 30a181 181 0 0 0-12.8 39.8 125 125 0 0 0 1.9 54.2 68 68 0 0 0 17.2 30.6 202 202 0 0 0 34.7 26.1c13.5 9.5 27 19 36.5 32.7a62 62 0 0 1 13 37.5c0 7.9-2.8 15.1-7 21.7a118 118 0 0 0 58.1-48 76 76 0 0 0 11.9-40.7v-5.3l1.2-.4c1-.4 2.2-1 3.4-.6q1.6 1.4 3 3.3l.4.5a65 65 0 0 0 15.8 15.3 97 97 0 0 0 45.7 13c21.1 1 41.8-.5 62-7q19.5-6.8 36.9-18l16.7-10.3c10-6.2 19.7-12.4 30.2-17.8q33.1-17.7 69.4-27c35.5-8.3 74-10.1 109.3 0a200 200 0 0 1 56.5 28.1 56 56 0 0 1-4.5-33.8q1.9-15.6 6.8-30.5 4.2-13.2 9.3-25.5c4.8-11.8 9.4-23.5 12.2-36.5a120 120 0 0 0-2.6-64 204 204 0 0 0-20-39.9q-6.7-11-12.6-22.4-6.4-12.4-9-26.2c-3.4-16.6-5.1-33.6-6.8-50.5a577 577 0 0 0-5.7-44.5q-4.1-21-14.2-40a436 436 0 0 0-16.7-30.1q-6.7-9-14.2-17.4l-3.4-4a320 320 0 0 0-37.6-37.4L608 231a498 498 0 0 0-32-26.3 133 133 0 0 0-43.5-23m-57.4 197c-36-28-65.5-66.5-78.7-110.4q-4.5.4-8.7 1.4a365 365 0 0 0-80.5 28.3 244 244 0 0 0-78.5 61.5q-1.6 2-2.5 4.3a218.2 218.2 0 0 0 395.3 179.5c.9-1.7 2.2-2.4 3.8-3.2 11.9 4.1 24.8 4 36.6-.3a65 65 0 0 0 41.8-60.5 56 56 0 0 0-17-41.2 51 51 0 0 0-30.2-13.6 56 56 0 0 0-28.6 5c-.4 10.6-6 20.1-11.3 28.9a90 90 0 0 1-22.6 27.4c-2 1.7-5.5.3-4.8-2.5 4.4-17.9 1.2-38.3-2.7-56q-2.1-.9-4.8-1l-3-.5a236 236 0 0 1-103.6-47.1m-77.4-132q-.4-3.3-1.2-6.5c-.5-1.9-2.2-1.7-3.7-1.6l-.8.1a16 16 0 0 0-.2 8l.2 1.6q1.2 7.4 3 14.7a305 305 0 0 0-45.5 11.4c-35.4 11.8-70.7 29-98.5 54.3a259 259 0 0 0-50 59.1 146 146 0 0 0-11.5 22.5c-1.1 3.3 1.6 5 4.4 3.3q1.4-2 2.3-4.3l.7-1.6c5.2-11.5 12-22.2 19.5-32.3a227 227 0 0 0 3.5 128.7 225 225 0 0 0 173.6 150.6c12.2 2.3 24.6 3 37 3.6q7.5 0 14.9-.6l7-.5A225 225 0 0 0 626.2 547q3 .3 5.9.9 5 .9 10.4 1a65 65 0 0 0 43-16.4 71 71 0 0 0 21.5-71.6 58 58 0 0 0-31.7-37.2 60 60 0 0 0-42.4-2.3q-5.7.2-11.4.7c-6.3.5-12.6 1-19 .5-24.3-.9-48.2-7.2-70.5-16.7a247 247 0 0 1-92.3-69.6 192 192 0 0 1-42-89.5m77.4 132c-36-28-65.5-66.5-78.7-110.4q-4.5.4-8.7 1.4a365 365 0 0 0-80.5 28.3 244 244 0 0 0-78.5 61.5q-1.6 2-2.5 4.3a218.2 218.2 0 0 0 395.3 179.5c.9-1.7 2.2-2.4 3.8-3.2 11.9 4.1 24.8 4 36.6-.3a65 65 0 0 0 41.8-60.5 56 56 0 0 0-17-41.2 51 51 0 0 0-30.2-13.6 56 56 0 0 0-28.6 5c-.4 10.6-6 20.1-11.3 28.9a90 90 0 0 1-22.6 27.4c-2 1.7-5.5.3-4.8-2.5 4.4-17.9 1.2-38.3-2.7-56q-2.1-.9-4.8-1l-3-.5a236 236 0 0 1-103.6-47.1"}},{"name":"path","type":"element","attributes":{"d":"M622.7 428q0 3.8-1 7.6c-2.6 9-7.9 17-13 25a126 126 0 0 1-12 15.7c1.4-16.6-1-32.4-4.5-48.6q15.3 1.3 30.5.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long10":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M572.4 62.5c1.7.7 4.2 1.3 5 3a3 3 0 0 1-2 4.4c-4.2.8-8.6 1.2-12.8 2.5a81 81 0 0 0-41.9 27.8 84 84 0 0 1 47 5.5q5.4-1 11-.5a93 93 0 0 1 42 14.1A87 87 0 0 1 655 160a71 71 0 0 1 4.5 38.5 66 66 0 0 1-26 42.6 147 147 0 0 1 17.2 34.2c1.7 4.8 4.5 8.4 7 13a243 243 0 0 1 30 94.2c1 15.2 1 30.6-2.5 45.5-.8 2.3-1.5 5.5-4.5 5.2-3-1-5.6-3.1-8.5-4.4-9.7-5-21-5.6-31.6-3.6a52 52 0 0 1 2.8 22.3c-1.2 14-6.5 27-14.3 38.6-8 12-18.7 22-31.7 28.4-1.5.7-3.2 1.5-5 1.4-1.4-.5-2.5-1.8-2.1-3.4 1.1-3.9 3.6-7.3 5-11.1 10-24.4 12.3-52.1 9.2-78-.8-4.4 1.4-7.2 2.8-11q4.7-12.7 8.3-25.7l-23 8c-2.2.5-4.6 1.5-6.6.2-.8-5.7-.4-11.7-.7-17.4-1.1-15.6-3-30.7-4.7-46.2q-1.5-10.7-3.4-21.5a35 35 0 0 1-16.7 11.9c-3.3-.9-3.6-3.5-1.2-5.6 8.8-3.3 15-10.4 18.9-18.8 6.6-14.7 6.6-30 5.2-45.8 0-3.6 4.7-3.9 5.5-.6a98 98 0 0 1-3.4 43.6c-1 3.1-2.7 6-3.9 9.2-.2 1.6.3 3.4.6 5 4 18.3 5.8 37 7.8 55.8 1 8.3 1 16.7 1.3 25l26-9.3c.9-3 1.4-6.3 3-9 1.4-1 2.3-1.2 3.8-.3 1.1 1.9.5 3.8 0 5.8a371 371 0 0 1-14.1 43.7c3.5 29 1.3 59.9-10.9 86.7a82 82 0 0 0 34-41c3.8-10.1 6.2-22 3.9-32.6q-1-6-4.4-11c-1.2-2.1-2.8-3.5-2.3-6 1.5-1.2 2.2-1.7 4.1-1 1.5 1.2 2.7 3.1 3.9 4.7 10.5-2 21-2.3 31.3 1.3q5.1 2 10 4.7c4.7-20.3 3.3-40.5-.2-60.9-4-21.7-11-43-20.8-62.8 2.5 14.3 4.9 28.4 5.5 43 .3 5.9 1.2 11.9-.1 17.7-1.8-.3-3.8.4-4.7-1.6-.7-3.3-.3-6.8-.5-10.1-1-17.6-3-35-7-52.2a169 169 0 0 0-20.6-51.4 73 73 0 0 0-29.5-27.6 51 51 0 0 0-22.5-4.3c2.5 4.4 5.3 8.9 7.1 13.7.6 1.7.4 2.8-.4 4.3-1.8.6-3.5.6-4.4-1.4-3-6-5.5-12-10.1-17-4.5-6.8-10-13-17.7-16.3-4.6-1.9-9.8-3.5-14.7-2a49 49 0 0 0-16.6 9.4c-2.5 1-4.2-2-2.8-4 2-2.8 5.6-4.6 8.5-6.5q-7.1-6.1-15.9-9.4c-10.1-3.7-21-5.2-31.7-6-13-.8-24.7 3-36.8 7.2-3.9 1.2-7.4 3.4-11.2 4.8-2.5.8-3.9-2.9-2.2-4.3 6.7-4.7 16.3-6.8 23.8-10q-6.8-1.2-13.6-.7a381 381 0 0 0-68 10.1 237 237 0 0 0-38.9 13.6c-12.3 5.9-24.7 13-34.9 22.2a56 56 0 0 0-17.7 27c-3.3 11.7-1 25.6 1 37.3a362 362 0 0 1 49.5-38.6c3-1.7 6.6-4.2 10.1-4.2q3.4 1.8 2 5.3c-3 7.4-6.6 14.7-9.1 22.4q13.5-9.4 27.8-17.6c5.7-3.2 11.8-6.7 18-8.7a300 300 0 0 1 33.2-39.1c1.4-1.2 3.2-2.5 4.8-.8 2 1.6-.5 4.4-1.8 5.8a308 308 0 0 0-30.6 36.4 92 92 0 0 0-14.3 25.8c9.1-4.3 18-8.9 27.5-12.6 5.2-2 9.7-4.6 15.4-5l1.8 2.7c-2.4 3-5.6 3.2-8.9 4.6a360 360 0 0 0-33.4 15.7c-2.3 1-4.8 2.8-7.5 1.6-1.2-1.3-1.6-2.4-1.3-4.2 1.2-8.3 5.5-16 9.8-23q-21 11.3-40.1 25.4c-2 1.4-3.6 2.9-6.3 1.6-2.2-2.2-1-5.6-.4-8.3a203 203 0 0 1 8-20 355 355 0 0 0-51.7 40.3c-1.8 1.4-2.9 3.4-5.4 2.5-2.5-3.7-2.5-9.3-3.5-13.5-9.2 9-16.4 19.5-24.7 29.4-3.3 3.8-5.8 8.2-8.8 12.2-1 1.4-2.5 1.3-4 .9-1.9-1.8-1.6-4.6-2-7a58 58 0 0 1-26-46.5c-.4-14.4 4.7-28 12.5-40 10-15 24.7-27 40.7-35.3 1.7-.8 4.3-2.2 5.8-.3 1.6 2 1.2 3.2-.2 5a157 157 0 0 0-21.2 37.8 63 63 0 0 0-4 34.2c8.7-15.2 22.1-28 36.9-37.3 2.3-2 3.7-5 5.7-7.3a116 116 0 0 1 34.4-26.7 199 199 0 0 1 44.4-17.6c18-5.4 36.5-8.2 55.2-10.2q-4.6-4.5-8.2-10a62 62 0 0 1-8.7-34.3c.6-14.1 5.3-28 13.8-39.3a56 56 0 0 1 34.6-22.5c3.2-.8 6.6 3.5 4.2 6.3a88 88 0 0 0-14.6 38.5q-.8 9.3.5 18.6a50 50 0 0 1 16-13.3c2.6-1.6 5.2-2.3 6.7-5.2 13.4-25 37.6-44.4 65.1-51.3a76 76 0 0 1 42.6 1.3"}},{"name":"path","type":"element","attributes":{"d":"M497.6 238.7c1.3 1.1 2.2 1.8 2.1 3.6.3 11.8 1 24.8 5.4 35.8-2.6 1-4.5 2-6-1.2-3.4-9.2-4.2-19.7-4.8-29.5.2-3.5-1-7.4 3.3-8.7m-18.6 7.2c1 1 3 2.8 1.6 4.3-2.6 3.1-6.6 5-9.8 7.5-9.2 6.8-19 13.8-26.8 22.2-1 1-1.7 1.9-3.3 1.6-2.2-1-3.3-3.8-4.4-5.9-3.2-7-6-14.6-6.7-22.3.3-1.2 0-3.2 1.1-3.9 1.7-1.3 3.8-.2 4 2a81 81 0 0 0 7 23.1q12.4-11.8 26.3-21.7c3.6-2.6 6.8-5.2 11-7m49.6 20.2c3 .8 5 4.3 6.7 6.6 6.4 9.4 13.6 18.6 19.2 29q2.1 3.9 3 8.4-2 .8-4.1.9c-2.2-3-3.3-6.8-5.3-10-6.2-9.9-13.4-19.2-20.2-28.7-4 5.4-7.8 11.3-12.8 15.7-2.8 1-3.2-.9-4.4-2.9 3.7-4.8 7.8-9.2 11.2-14.3 1.6-2.2 3.5-5.4 6.7-4.7m-313 115.4c2.3-.3 3 1.3 4.4 2.6-2 6.7-2.8 13.5-3.3 20.4-.4 2.8-.5 6-1.6 8.5-2.1 2.2-5.2 3.5-7.5 5.4a64 64 0 0 0-15.2 18c-7.3 12.4-12 26.7-13.4 41.1-.5 3.8.3 8.6-1.4 12-1.6 2.2-3.8.9-5.4-.6a50 50 0 0 1-14.3-29.2 72 72 0 0 1 27-64.9c8.8-6.9 19.6-12 30.7-13.3m409.9 159.9c4.9 1 10 2.2 15.1 2.6 2.8 0 5.3-.8 8-.8 1.8 1.7 1.9 4.1 1 6.3-1.2 3.3-4 6-6.4 8.6 9.3-.2 18.3 1 26.7 5.1 7 3.3 12.8 8.8 16.3 15.8a54 54 0 0 1 4.5 28.5 146 146 0 0 1-10 38.8c-1.3-.5-3.4-.4-4-2-1.3-3.5-2-7.2-3.5-10.6a79 79 0 0 0-67.6-47.7c-3.2-.2-6.7.1-9.9-.5-2.1-2-1.8-3.7 0-5.8q10.7-12 20-25.2c2.3-3.4 3.8-7.3 6.1-10.8.8-1 2.3-2.5 3.7-2.3"}}]},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M564.1 66a85 85 0 0 0-41 23 89 89 0 0 0-25.2 50.4c-2 12.7-.6 26 3.3 38.2-7.2-1.2-14.2-2.6-21.6-2.6-2.4-.1-4.5.3-6.5-1a66 66 0 0 1-13-10.1 72 72 0 0 1 1.3-26.7 94 94 0 0 1 25.3-44.7 95 95 0 0 1 49-26.7 71 71 0 0 1 28.4.2"}},{"name":"path","type":"element","attributes":{"d":"M448.9 74.2c-3 5.6-6.1 11.1-8.3 17.2a75 75 0 0 0-2.6 46.8 71 71 0 0 0 27.5 37.8l-4.2.9c-3.7-2.4-7-5-11.7-5a128 128 0 0 0-20.5 1 45 45 0 0 1-18.7-29.3c-3-15.7.2-32.2 8.6-45.8 7-11.1 17.1-20 29.9-23.6m90.7 30.7a75 75 0 0 1 54.8 28.6 65 65 0 0 1 13.5 43.9c0 2-.5 4.5.4 6.4 1.7 2 4.4 1 4.9-1.5 1.5-9.7.4-20-2.4-29.4a75 75 0 0 0-33-42l8.6 1.1a85 85 0 0 1 62.5 48.2c5.4 12 6.9 25.3 5 38.2a61 61 0 0 1-23.6 38 68 68 0 0 0-35.7-24.7c-6.5-2-12.8-1.5-19.5-1.4a45 45 0 0 0-20-16.6q-10.7-4.7-21.6-.5a60 60 0 0 0-25.6-14 80 80 0 0 1 8.4-72.8c7.9-1 15.3-2.3 23.3-1.5"}},{"name":"path","type":"element","attributes":{"d":"m459.6 123 .1-.2a85 85 0 0 0-6 34c-4-5.6-7.8-11.9-9.4-18.5a36 36 0 0 1 15.3-15.4m-19 54.8q6.8-.4 13.6.8c-7.6 3.1-17 5.2-23.7 9.9-1.8 1.4-.4 5 2 4.3 3.9-1.4 7.4-3.6 11.3-4.8 12.1-4.2 23.8-8 36.8-7.2 10.8.8 21.6 2.3 31.8 6q8.6 3.3 15.8 9.4c-2.9 1.9-6.5 3.7-8.5 6.5-1.4 2 .3 5 2.8 4a49 49 0 0 1 16.6-9.4c5-1.5 10.1.1 14.7 2a41 41 0 0 1 17.7 16.3c4.6 5 7 11 10 17 1 2 2.7 2 4.5 1.4.8-1.6 1-2.7.4-4.3-1.8-4.8-4.6-9.3-7-13.7 7.7-.1 15.3 1 22.4 4.3a73 73 0 0 1 29.5 27.6 166 166 0 0 1 20.5 51.4q6 25.8 7 52.2c.3 3.3 0 6.8.6 10.1 1 2 2.9 1.3 4.7 1.6 1.3-5.8.4-11.8 0-17.7a310 310 0 0 0-5.4-43 240 240 0 0 1 20.8 62.8c3.5 20.4 4.9 40.6.2 60.9a87 87 0 0 0-10-4.7 59 59 0 0 0-31.4-1.3c-1.1-1.6-2.3-3.5-3.8-4.7-2-.7-2.6-.2-4.1 1-.5 2.5 1.1 3.9 2.3 6q3.3 5 4.4 11c2.3 10.7 0 22.5-3.9 32.5a82 82 0 0 1-34 41.1 163 163 0 0 0 10.9-86.7 371 371 0 0 0 14.2-43.7c.4-2 1-4 0-5.8-1.6-.9-2.5-.6-4 .3-1.5 2.7-2 6-2.8 9l-26.1 9.3c-.3-8.3-.3-16.7-1.3-25-2-18.8-3.8-37.5-7.8-55.8-.2-1.6-.8-3.4-.6-5 1.2-3.2 2.9-6 4-9.2a99 99 0 0 0 3.3-43.6c-.8-3.3-5.6-3-5.5.6 1.4 15.7 1.4 31-5.2 45.8a35 35 0 0 1-19 18.8l-1.7-6q-1-4.5-3.1-8.5c-5.6-10.3-12.8-19.5-19.2-29-1.7-2.2-3.8-5.7-6.7-6.6-3.2-.6-5 2.6-6.7 4.8-3.4 5-7.5 9.5-11.2 14.3-2-2.3-4.2-4.2-5.6-7-4.5-11-5.1-23.9-5.4-35.7 0-1.8-.8-2.5-2.1-3.6-6.5.3-13 4.4-18.7 7.2-4 1.7-7.3 4.3-10.9 6.9a246 246 0 0 0-26.3 21.7q-5.2-11.1-7-23.1c-.2-2.2-2.3-3.3-4-2-1 .7-.8 2.8-1 3.9q-7.7 1.4-15 3.8c-5.8.3-10.3 2.9-15.5 4.9-9.4 3.7-18.4 8.3-27.5 12.6 3-9.6 8.4-17.7 14.3-25.8a308 308 0 0 1 30.6-36.4c1.3-1.4 3.7-4.2 1.8-5.8-1.6-1.7-3.4-.4-4.8.8a300 300 0 0 0-33.2 39.1c-6.2 2-12.3 5.5-18 8.7a390 390 0 0 0-27.8 17.6c2.5-7.7 6-15 9.2-22.4.9-2.5.1-4-2-5.3-3.6 0-7.2 2.5-10.2 4.2a362 362 0 0 0-49.6 38.6c-2-11.7-4.2-25.6-1-37.2a56 56 0 0 1 17.8-27.1 145 145 0 0 1 35-22.2 237 237 0 0 1 38.9-13.6 360 360 0 0 1 68-10M260 204.6q-7.1 9.8-12.6 20.6a86 86 0 0 0-10.2 36.2c0 6.6 0 13 3.3 18.9-3.8 10-3.8 20-4.4 30.5a52 52 0 0 1-20.2-40.4 67 67 0 0 1 12.2-36.5 103 103 0 0 1 31.8-29.3m16.7 40.6c-3.5 10.3-2.7 20.4-2 31a155 155 0 0 0-17.3 18.9c-5 6.4-10.5 12.5-15.4 19 .4-11.4 0-22.2 4.5-32.9a91 91 0 0 1 30.2-36m-63 142.3c-1.5 6.7-2 13.6-3 20.4 0 2-1.8 2.4-3.1 3.4a63 63 0 0 0-18.5 19.5 109 109 0 0 0-16.2 50.1 47 47 0 0 1-9.7-27.5c-1.3-29.9 20.8-60.1 50.5-66M626 547.2c5.8.9 11.5 2 17.4 2a60 60 0 0 1-30.9 18.8c3.6-4.8 7.2-9.3 10-14.7q1.6-3.1 3.5-6.1m15.6 16.4A52 52 0 0 1 672 571a32 32 0 0 1 12.6 22.4 96 96 0 0 1-5.3 40 85 85 0 0 0-76.7-53.3c1.5-1.6 3-4.6 5-5.5a63 63 0 0 0 26.5-9.7c2.4-1.6 4.8-1.2 7.5-1.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long11":{"elements":[{"name":"path","type":"element","attributes":{"d":"M557.6 63.4c3 1 6.2 1.6 7.2 5-.3 3.2-4 3.6-6.3 5-14.1 6.6-25.1 20.6-32.6 33.9 27-6.7 56.8-1.5 78.6 16.2 3.2 2.4 5.7 5.8 9 8 4 1 8 1.5 12 3a59 59 0 0 1 36.8 38.1 61 61 0 0 1-1.5 40.8 63 63 0 0 1-32 34.1q6.3 9.2 11.5 19.2 1.7 3.6 4.5 6.5 7.4 7.9 13.2 16.8a236 236 0 0 1 24 48 232 232 0 0 1 13.6 53.4c.8 9.7 1.3 20-.5 29.5-1 5.1-3 11.3-7 14.9-2.4 1.4-4.2-.7-6.1-1.8a50 50 0 0 0-32-9.5c.3 21.5-3.7 44.9-14.6 63.7a62 62 0 0 1-37.8 30.6c-2.6.3-3.8.7-3.9-2.4.9-5.5 3.1-10.8 4.4-16.2 5-17.8 6-37.5 6.8-55.8.1-14.9.4-30-1.1-44.8q-.8-14.3-3-28.3c-2.3 14.5-6 28.6-12.5 41.8-1.3 2.2-2.4 4.8-5.5 4-2-.5-1.8-2.2-2.2-3.9a114 114 0 0 0-8.8-44.3c-1.9 4.1-3 8.6-5 12.6-1 1.7-1.9 3.6-4.1 3.7-6-1.2-11.5-3.8-17.4-5.4-2-.7-5-1.1-5.7-3.5-.6-3.5 0-7.3 0-10.9q.2-6.7-1.3-13.2a88 88 0 0 1-7.7 17.2c-1.3 2.2-3 4.6-5.2 5.8-3.1.2-6.3-1-9.3-1.5-10.7-2.1-21.3-4-31.8-7q-11.3-3.1-22.7-6c-1.6-.6-4.2-1-3.9-3.2 1-6.7 2-13.3 1.8-20.1-.2-10 .4-20.1-.6-30-.4-6.1-1.6-12.2-1.9-18.3l-1 17.3a97 97 0 0 1-10.7 40.7c-1 1.8-2.4 4.5-4.7 5-2.2.8-4.6-.2-6.8-.9-25.3-9.2-51-17.9-77-25.2-2.7-.8-5.2-1.5-6.7-4.1a79 79 0 0 1-9.7-45.7 86 86 0 0 0-8.3 41.2c0 2.6 1 6.2-2.7 6.6-18-.5-36 2.5-53 8.1-11 3.6-21.7 8.2-31.2 14.8-4.1-2.7-4.8-8.1-6.7-12.5-3.7 7.8-6.7 15.8-10.2 23.7-2.8 6-3.8 12.3-6 18.8-1.2 3.8-1.6 7.7-2.8 11.4-.3 2.2-3.4 2.3-4.8 1-3.2-3.3-4-8.4-4.3-12.9-1.3-17.3.4-34.5 7.6-50.4-1.9 2-3.8 6.7-7.2 4.4a41 41 0 0 1-16.5-32c-1-17.4 6.8-34.5 17-48.4a154 154 0 0 1 77.6-54 195 195 0 0 0-35.3 3.6 135 135 0 0 0-32.2 9.5c-3 1.4-6.4 4.5-9.8 4.5-1.6-1-2.7-2-1.9-4a79 79 0 0 1 9.8-17.3 107 107 0 0 1 102.6-41.2c15.2 2.6 29.5 9 41.2 19.1 14.3-5.3 30.4-8.6 45.6-7a56 56 0 0 1 .3-56.2c8-15 21.8-26.6 37.9-32 1.9-.5 4.2-1.5 5.9 0 1.7 1.2.8 4-.4 5.4a65 65 0 0 0-13.2 48.7q6-4 13-6.3a116 116 0 0 1 61-55.6 72 72 0 0 1 44.2-3.8m66.9 477.4c2.4.2 4.8 1 7 1.5 4.8 1.1 10 1.2 14.8 1.7.8 3.4.7 4.9-1.2 7.8-4 6-7.3 12.2-11 18.3 11 .1 21.5 1.4 31.4 6.4a29 29 0 0 1 15 16c2.4 7.5 1 15.4-2.5 22.3a69 69 0 0 1-19.1 21.9c-2.7 2-5.4 4.3-8.5 5.6-1.5.7-3.4-.5-4.3-1.7-.2-2.7 2.2-5 3.5-7.2a24 24 0 0 0 2.6-18.8 39 39 0 0 0-15.7-21q-9.9-7-21.9-9.3c-5.7-1.3-12 2-18 1.2-1.7-1-2.9-1.9-2.5-4.1 1.8-2.9 4.6-5 6.8-7.7q5.3-6.3 10-13c3.4-5.3 7.3-10.1 10.3-15.7.9-1.4 1.8-3.4 3.3-4.2","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M554.6 68.5A80 80 0 0 0 531.2 89a108 108 0 0 0-22.9 54.4c-1 10 .1 19.3 4.2 28.5q-3.1-.9-6.2-2.2a100 100 0 0 0-43.8-7c-4-2-7.9-4.1-11.2-7.3a73 73 0 0 1 1.6-16.8 83 83 0 0 1 14.5-29.4 113 113 0 0 1 42-34 71 71 0 0 1 45.2-6.7"}},{"name":"path","type":"element","attributes":{"d":"M443.5 82.6c-2.2 4.5-4.6 8.7-6.2 13.5a68 68 0 0 0 1.5 51.1 44 44 0 0 0 13.7 16.7q-11.7 2-22.9 5.6c-4-2.7-8.5-3.4-12.7-5.3a41 41 0 0 1-8.8-19.8c-.8-7.7-.8-15.8 1.5-23.2a62 62 0 0 1 33.9-38.6m137.3 33.6a72 72 0 0 1 31.9 24.2 58 58 0 0 1 1.3 67.4c-1.3 1.6-2 5 .8 5.4 1.7.6 2.8-.7 3.7-2a64 64 0 0 0 0-72.8 54 54 0 0 1 40.8 49 56 56 0 0 1-9.7 35 61 61 0 0 1-24.2 20.5q-9.6-12.6-22-22.4a62 62 0 0 0-37.7-14.5 64 64 0 0 0-16.4-13.5c-2.7-7.7-7-14.5-14.5-18.3-4.8-2.6-9.8-3-15.1-3.7q-1.2 0-1.8-1.3a40 40 0 0 1-4.2-19.8c.2-12 3.8-24.2 8.7-35 19-6 39.8-5.6 58.4 1.8"}},{"name":"path","type":"element","attributes":{"d":"M449.6 129.5q-3.1 9.1-3.9 18.7-3.4-6.4-5.3-13.5 4.4-2.8 9.2-5.2m-143 26c18-.2 36.4 5.9 50.6 17.2a156 156 0 0 0-74.3 67c-2.7 5.3-5.6 11-6.7 16.8 1 3.1 4.4 3.1 5.6.1 5.5-15.2 14.2-29 25.1-40.9 18.3-20 42.3-35.8 68.5-43.4 15.3-4.3 32-5.7 47.1 0a137 137 0 0 0-77 79c-1.6 4-1.9 9.2-4.6 12.4-3.2 4-5.2 9.2-7.2 14a87 87 0 0 0-6.9 40.6c-5 0-10.1-.1-15.2.5a165 165 0 0 0-65.2 20.3q-5-12.5-7.6-25.7a96 96 0 0 1 1.6-49.3c1.2-4.1 4-6.8 2.7-11.3q-1.8 0-3.7.3c-2.7 3-3.9 7.4-5.1 11a114 114 0 0 0 2 63.4c-5.3 9.1-8.7 18.9-13.2 28.4-3.3 7.1-4.5 14.5-7 21.8-1.4-19 .6-38 9.7-55 1-2 2.5-4.2 2.4-6.3-.1-2.2-2.7-3.3-4.5-2a52 52 0 0 0-11.4 10 39 39 0 0 1-12-34.7c2.5-18.5 13.7-36 26.4-49.2a149 149 0 0 1 71.2-40.8c2.8-.8 6-1 8.6-2.5 1.3-.8 1.1-2.1.9-3.5-.8-1.2-2.7-1.7-4-2.1-11-2.2-21.7-1.3-32.8-.4a187 187 0 0 0-51.7 12.5 100 100 0 0 1 87.7-48.2"}},{"name":"path","type":"element","attributes":{"d":"M503.8 174.8c-3.3 2.6-6.8 5-9.2 8.6-1 1.6-2 3-.7 4.7.9 1.7 3.2 1.3 4.2-.1 4.5-5.2 9.5-10 16.5-11.2 8.3-1 17.2 0 23.2 6.4 4 3.9 5.5 8.7 7.4 13.7a65 65 0 0 1 26.9 29 203 203 0 0 1 17.3 48q8.3 32.2 8 65.5c-.1 21.8-3.2 44.5-11.3 64.9-2-15.3-4.1-29.6-12.5-43a137 137 0 0 0 .1-58.4c-.6-3.2-.9-7.1-2.6-10q-2-.4-4.2-.3-.5 3.7.4 7.3 3.3 16.6 4 33.5c0 15.8-3.2 31.5-9.3 46l-17.6-5.5c1-10.3.8-22.1-3.2-31.9 4.7-21.8 5.9-44.4 4.4-66.6a165 165 0 0 0-9.7-48.2c-1-2.7-5.6-2-5.3 1 1.4 5.9 3.9 11.3 5 17.2 5.1 23.8 6 48.8 3.6 73-2.1 17.6-5 35.8-14.8 51-11.4-2.2-23-4.2-34.3-6.8l-26.3-6.9c1.8-10.2 1.5-20.2 1.5-30.5q0-28.7-7-56.6c-.7-2.4-1.2-6.1-3.6-7.5q-3.9-.7-3.9 3.3.5 20.4-.4 41c-.5 14.5-4 28.8-11 41.6-15.6-5.5-31.5-11.3-47.3-16.2q-18-5.6-36.3-10.6a75 75 0 0 1-8.7-51.8 114 114 0 0 1 29-56.6 134 134 0 0 1 71-41 98 98 0 0 1 56.7 4"}},{"name":"path","type":"element","attributes":{"d":"M570.5 211.9q8.3 1.1 16 4.8c15.2 7.3 27.4 20 37.1 33.7a191 191 0 0 1 32 84.5c.6 4.7.8 9.2 1.5 13.8l2.5 1q1.4-.5 2.6-1.2c.3-7.7-1-15.5-2.2-23-1.9-12.3-5.6-24-9.2-35.7a217 217 0 0 1 23.7 44.6 225 225 0 0 1 16 64c.6 10.7.3 22-4.7 31.6a60 60 0 0 0-35.9-11.4q-1-21.2-6.6-41.7c-1.5-5.4-2.9-11.2-5.5-16.1q-1.8.3-3.6 1c-1.3 1.8-.4 3.2 0 5a189 189 0 0 1 9.6 46.1q1.4 13.3 0 26.5a110 110 0 0 1-14.1 47.2 58 58 0 0 1-29 25.3c2.6-8.7 5.2-17.2 6.5-26.3q2.4-15.5 2.9-31.2a371 371 0 0 0-5.5-91.1c-.7-3.2-2-6-2-9.1l.7-11.8c.3-10.6-.6-21.4-1.5-32-2-19.7-6.5-39-12.4-58-4.4-14.2-10.7-28-19-40.5m56 334.8q7 1.6 14.3 2.1c-5.3 7.7-9.5 16-15 23.7 2.5 2.2 4.5 3.3 8 3.3 9 0 17.7 1 26.1 4.4 4.6 1.9 9.2 4.8 12.3 8.7a19 19 0 0 1 3.2 16.5 52 52 0 0 1-17.7 25c1.4-5.7 1.8-11.5.2-17.3a44 44 0 0 0-19.7-25.3 46 46 0 0 0-34.4-8.5 170 170 0 0 0 12.3-16.5c3.5-5.3 7.3-10.4 10.4-16.1"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long12":{"elements":[{"name":"path","type":"element","attributes":{"d":"M580 124.8c1.2-1 3.1-.8 4.5-.2a58 58 0 0 1 24.3 21.7c5.1 8 7.9 17.1 9.3 26.5 3.2 1.7 5 4.7 5.9 8 1.4 6.4.8 13.3-.2 19.6a98 98 0 0 1-16 37.1l-.2.8q12 12.1 20 27.2l.4.4c9 1.4 16.7 7.7 22.5 14.5a109 109 0 0 1 19.4 38.8c4.9 17.2 7.3 35.3 7 53.1-.1 1.2 1.2 2 1.5 3.2 2.8 7.6 7 14 11.4 20.6q4.7 7.4 9.8 14.3a343 343 0 0 1 33 49 198 198 0 0 1 19.6 58.1c3 18.2 4.6 39-1.1 56.8a92 92 0 0 1-29.1 41.5c-1.8 1.6-5.3 2.4-6.8.1-1-1.6.3-3.4 1-4.9 6.6-10.1 8-23.8 9.2-35.6-.2-7.3.6-14.9-.8-22-.5-2.1-.1-5.2-1.5-7q-.6 2.5-1.8 4.8a143 143 0 0 1-31.8 43 223 223 0 0 1-52 37.2c-2 1-4.4-1-4.2-3 0-1.4 1.1-2.4 2-3.4a123 123 0 0 0 19-42.4c-13.5 5.9-27.1 15.8-39.2 24.4-10.7 7.9-21.9 17-27.5 29.4-1.7 3.2-2.4 6.8-3.7 10.2-2 2.4-5.2 1.1-7.3-.2a57 57 0 0 1-22.2-19.9c-1-2.7-4-7-2.4-9.7 28.8-18.4 53-44.5 70-74 .7-2.5 3-2.8 5-2a56 56 0 0 0 48.3-7.7 65 65 0 0 0 28-62.7 56 56 0 0 0-16-31.7 51 51 0 0 0-33.7-14.3 4 4 0 0 0-2.4.4c-.6 11.7-2.8 23.6-5.3 35a266 266 0 0 1-31.5 77.3 187 187 0 0 1-42.7 49.5c-1.2 1-3.1.9-4.5.2-.8-2-.8-3.4 1-4.8 13.2-24.4 18.7-52 23.6-79.1 4.4-28 7.3-56.3 7.7-84.5.9-11.3 0-24.1-.1-35-2.2 2.1-3.6 5.7-6.3 7.5-2 1-4.5 0-4.7-2.4a196 196 0 0 0-3.2-42c-1.8 6.4-4.3 12.4-5.8 18.8-1.3 2.8-4.2 2.3-5.8 0q-7.1-18.7-13-38a341 341 0 0 0-7.5-24.5h-.8l-3.2 11.5c-.6 1.9-2.6 3.3-4.5 3.6-2.8 0-4.6-2.5-6.3-4.4-7-8.9-14.6-18-20.1-27.8l-1 .1c-2.2 5.4-3.2 11-4.8 16.4-1.8 3.2-7.6 3.4-10.8 3.3-6-1-12-4.4-16.7-8.4a65 65 0 0 1-15.4-21.7c-1.8 0-3.4 4-4.2 5.5-1 3.4-1.2 7.2-5.7 7.2-4.5-1-8.7-3-13.2-4.2a87 87 0 0 0-32.8-3.5c-4.6 1-8.5 2.7-12.8 4.3-1.6.5-3.7.6-5-.3a6 6 0 0 1-1.8-6c1-5.9 4-10.6 6.9-15.7q.5-.7.5-1.8h-.4c-17.7 8-33.6 21.3-50.6 31q-2.7 1.1-4.1-1.5c-1-2.6.8-4.2 1.2-6.7-43.3 19.4-86 45.3-119.9 78.7-17.2 17.4-33.6 37.9-41.7 61.2-1 2.8-3.7 3.4-5.6 1a57 57 0 0 1-9.6-23.2 72 72 0 0 1 6.6-44.2c12-24.5 31.7-42.5 54.5-56.8l-.7-2.5a35 35 0 0 1 .8-24.2 86 86 0 0 1 28.8-35.1c22.8-17.4 50.3-29 77.9-36.4a233 233 0 0 1 68-7.7c3 0 6-.8 8.9-1.3 3.7-.7 7.4-.8 11-1.6 6.4-.8 12.8-.6 19-1.3 9.4-.2 18.8.5 28.1 1q4.2.8 8.5 1.1c-2.5-11.3-3-24 3.3-34.1a41 41 0 0 1 27.2-18.2c10.6-2.6 22.2-2.1 33-1.4a213 213 0 0 1 45 10.7 50 50 0 0 0-10.9-20.2c-1.1-1-1-3.5.2-4.4M215.5 461.5c1.6 1.7 1.2 3.7 1.6 5.9a219 219 0 0 0 115.6 160.8c2.5.8 3.2 4.8 1 6.3q-4 2-8 3.1a113 113 0 0 1-53 .2c-2.5-.4-4.5-1.5-7-1.3q.9 6.2 4.5 11.3c.9 1.5 2.4 2.8 1.6 4.6-1.5 2.7-4.4 1.4-6.5.4a90 90 0 0 1-50.8-53.3h-.8a206 206 0 0 0-17 20c-3.5 5-7.4 10-9.2 15.9-.6 2.6-4 2.3-5.1.2-2.2-4-3.4-8.9-5-13.2-7.6-27.7-6.2-58-.2-86 6-26.5 16.6-52.7 32.6-74.8 1.4-2.2 4.2-2.2 5.7 0","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M591.2 135.6a56 56 0 0 1 20.6 53 54 54 0 0 1-21.2 35.9c-3.6-1.8-7-4.3-10.9-5.4a71 71 0 0 0 17.3-32.7 74 74 0 0 0-5.8-50.8"}},{"name":"path","type":"element","attributes":{"d":"M555.5 146q18.8 3.4 36.6 10.1a54 54 0 0 1 .7 20.4 65 65 0 0 1-18.4 39.8c-4.4-.7-10-3.1-14.8-3.3-3.9-.6-8.4-1.4-12.2-.2-16-8.7-33-14.3-50.8-17.9-2.7-1-6.1-.4-8.5-2-3-11.6-3.6-23.2 3.4-33.6 6-8.3 15.4-12.3 25.2-14.2 13-2.4 25.8-1.4 38.8.9m62.6 36v.2l.1.1c2.1 6.1.6 14-.7 20.1a93 93 0 0 1-14 31.3l-.6.2q-3.5-3-7.1-5.7c1-1.7 3.4-3.1 4.8-4.8a60 60 0 0 0 17.4-41.2zm-172.5 14a215 215 0 0 1 86.5 15.8c12.3 5.3 24 12 33.3 21.8q2.3 2 4.6.2c.5-1.5.6-3-.6-4.2-4.2-4.6-8.2-7.3-12.8-11.1a78 78 0 0 1 46.5 23.4 113 113 0 0 1 31.2 95.5c-.2 2.5-2 6.4-.1 8.4 1.6 1.1 4 .6 4.5-1.4 1.7-5.7 2-12 2.6-18 .9-18.5-3-37.1-10.5-54q5.7 2.4 10.3 6.5a85 85 0 0 1 20.5 33.4c3.4 9.7 6 20 7.5 30 1.4 7 1.3 14 2.1 21.1q.5 9.6-.5 19a119 119 0 0 1-7.9 37.4c-3.5-.7-7.3-1.4-10.8-1.2-1-5.5.9-12.2-1.1-17.5-2.2-1.3-5-.7-4.9 2.3 1 30.2-5.4 61-16 89.1a227 227 0 0 1-49.5 78.6l-.8.3c6.2-14.5 10-30.1 13.5-45.5A590 590 0 0 0 605 384.4q-.7-15.6-3-31c-.2-1.5-.2-3-1.7-3.7-2-1.4-4.3.5-4.1 2.7.7 6.7 2 13.4 2.2 20q-1.7 4.6-4.2 8.7 0-7.6-.7-15.2c-1-5.2-1.1-10.4-2.4-15.5-.5-5.1-2.3-9.9-2.4-15-1-2.5-3.6-3.4-5.4-1.2q-2.9 11.2-7.1 22-5.3-15.4-10.2-31c-2.9-10-5.7-21.2-10.4-30.7-1.2-2.4-4-3.2-5.7-.8-2 5.9-4.3 11.5-5.6 17.7-1.1.4-1.9-1.4-2.6-2-6.4-8.6-13-16.5-18.3-25.8-1.6-2.3-2.7-5.8-5.7-6.4-2 0-3.5 1.5-4.3 3a89 89 0 0 0-6 19c-6.7 1.9-12-1.6-17.4-5.2a58 58 0 0 1-15.5-21.5c-.8-1.8-1.5-3.8-3.9-3.8-2.5 0-3.9 1.6-5.6 3a25 25 0 0 0-5.8 10.4c-2.2.4-5.2-1.8-7.5-2.1q-11.2-4-23.1-5.1a46 46 0 0 0-28.5 4l-.1-1.3c2-6 6-11.6 8.5-17.3q1.3-2.8-.6-5.3c-2.4-1.6-5.8-.6-8.4.3-16.1 6.8-30.7 18.7-45.8 27.8.9-1.6 2.1-2.7 1.8-4.7-.2-2.4-3-3.4-5-2.2a451 451 0 0 0-98.1 57c-16.9 13.1-33 28-46.5 44.5a166 166 0 0 0-23.7 39 51 51 0 0 1-6.8-24.3 75 75 0 0 1 11.8-41.4c8.8-14.6 21.3-27 34.9-37.1a181 181 0 0 1 77.7-32.3c2-.6 2.5-3 1.3-4.7-2.2-1.7-5.8 0-8.4.1q-20.6 4.2-40 12.7c-5.4 2-10.6 5.4-15.8 7.6-1-3.5-2.1-7.3-2-11a42 42 0 0 1 5.5-17.1 87 87 0 0 1 20.6-23.4c11.2-9.2 24-16.8 37-23a248 248 0 0 1 49.1-16.7c13-2.7 26.3-5.4 39.5-5.4a90 90 0 0 0-29 16.8c-1.2 1-1.2 3-.5 4.4 1.7 1.4 3 1 4.6-.3q10-8.8 22.4-13.7c19.6-8.2 40.4-11 61.5-11.8"}},{"name":"path","type":"element","attributes":{"d":"m676.5 384.7.1.2a319 319 0 0 0 15.2 24.3c6 8.6 12.6 16.7 18.6 25.3 9 12.8 17.2 26.4 23.4 40.8a198 198 0 0 1 14.8 60.1q1.5 10.7 0 21.5a76 76 0 0 1-22.7 47.3q4.1-13 5-26.8c.3-10 .7-20.7-1.5-30.5a29 29 0 0 0-3-9.5q1.6-6 2-12c-.1-2.5-3.7-3.2-4.8-1-1.1 3.4-.6 6.8-2 10.1-6 21.5-20.3 40.3-36.2 55.7a228 228 0 0 1-40.4 30.6q4.8-8 8-16.9c2.6-6.8 5.3-14.2 6.6-21.4.4-2.1 1.9-3.6.6-5.8-1.1-1.5-4-1-5.5-.3A228 228 0 0 0 615 600c-6.7 5-13.4 9.7-19.3 15.7a62 62 0 0 0-16.4 25.7c-7.4-3.3-13.4-9-18.4-15.3a17 17 0 0 1-3.1-6.2 219 219 0 0 0 55.6-53.4c4.8-6.2 8.6-13 12.9-19.3q4.1.1 8.3 1.2 10.5 1.6 20.9-.7a69 69 0 0 0 51.6-50 65 65 0 0 0-9.8-56 57 57 0 0 0-28.7-20.4c4.3-11.8 6.5-24 7.8-36.5M211 469.7l.6.1h.2q2 14.6 6.4 28.7a224 224 0 0 0 108 133 106 106 0 0 1-55.6 0c-2.4-.6-5.4-2.1-8-1.8-1.4 0-2.2 1.3-2.4 2.7a33 33 0 0 0 2.4 12.8 84 84 0 0 1-35-31.7 78 78 0 0 1-11.5-48.1q.8-4 1-8c-.2-2.5-3.6-3.2-5-1.3a22 22 0 0 0-1.3 6.3 89 89 0 0 0 1.6 30.1 208 208 0 0 0-26.8 33.9l-.8-.1a142 142 0 0 1-7-41.9 212 212 0 0 1 33.3-114.7"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long13":{"elements":[{"name":"path","type":"element","attributes":{"d":"M614.6 100.5c13.2.2 26.3 5 36.5 13.4 1.2 1 1 3 0 4-1.6 1.1-3.6.5-5.5.4a44 44 0 0 0-17 2 65 65 0 0 0-31.4 23q9.9-3.1 20.4-3c16.9.5 32.8 6.1 47.2 14.8a112 112 0 0 1 43.4 46.8 59 59 0 0 1 5.2 38.3 38 38 0 0 1-16.2 22.8c-6.6 4.4-14 6.2-21.7 7.3 3.3 5.5 7 10.6 9.7 16.5 8 16.7 11.5 36.2 13.4 54.6q.8 11 1.1 22c-.5 10.2-.3 20-2 30-1 10-2.9 20.3-6.3 29.8-1.4 3.6-3.5 8.2-7 10.2-1.6 1-3.2-.3-4.7-1-8.3-5-18.1-8-27.9-7.9a72 72 0 0 1-6.2 25.9 56 56 0 0 1-35.5 31.4 44 44 0 0 1-25.4-.4c-2-.6-2.2-3.3-.6-4.5 2.7-2.4 5.6-4.2 7.8-7.1a75 75 0 0 0 14.5-37.4c.9-10 .8-21.4-4.6-30.1-1.7-2.9-4.4-4-6.6-6.4a63 63 0 0 0-5.6-20.6c-1-2.4-2.7-4.7-1.3-7.2q2.5-4.9 5.5-9.5c-3.5.4-6.6.5-9.3-2-5.2-5-8.5-12-10.3-18.9-1.2-4.4-3.3-8.8-3.8-13.3q.2-2.2 2.3-2.6c4.3-1.2 7.7-3.5 11.4-5.9s6.3-6 8.6-9.8a86 86 0 0 1-24.3-.6c-10.9-2.2-20-7.2-29.7-12.2-4.7-2.6-9.1-4.8-11.8-9.7q-16.2-3.8-32.3-8.3c-17.6-4.9-34.6-10.6-53-11.4a178 178 0 0 0-48.2 5q-7 1.6-12.7 6l-2.7-1.4c.5-7 4.6-14 7.7-20a101 101 0 0 0-20.6 20.4c-1.4 1.9-2.3 4.4-4 6-4.5 1.4-9.8.7-14.5.8-6.7.2-13.4-.6-20-1-6.3 1.9-12 5.3-18.1 7.6-13.4 5-27.1 8-41.4 5.2q-5.5 5.9-10 12.3a278 278 0 0 0-21 35.1c-6 11.6-9.8 23.7-13.9 36-1.4 4.8-2 9.9-3.3 14.7-1.1 4-1.3 8-2 12-2.3 2.4-6.5 3-9.4 4.7a86 86 0 0 0-36 51.9c-.7 3.8-.4 7.5-.7 11.3-1.3 2.2-4.1 2.4-5.3 0a66 66 0 0 1-5-27.1 98 98 0 0 1 59-85.2c-4-10-5.3-21-5.7-31.8-.5-10.6 1.6-20.7 3.7-31 3-12.8 7.5-25 15-35.8a30 30 0 0 1-17-8.2 41 41 0 0 1-10.8-28 74 74 0 0 1 13.5-42.4 60 60 0 0 1 29.6-23.4 54 54 0 0 1 21.4-26.5q4-1.9 5.8 2.2a45 45 0 0 0-2.6 13.2c6-4.3 13-6.5 20.2-7.9 10.5-2.3 22-1.7 32.3 1.4a33 33 0 0 1 20 17.1 34 34 0 0 1 .2 25.6 164 164 0 0 1 51.5-7.7q15.4-.1 30.4 4a79 79 0 0 1 19.6 9.4 21 21 0 0 1 7 7 146 146 0 0 1 89.6-2.6 60 60 0 0 1 .8-48c12-27 41-45.6 70.6-44.3m16.4 442c4.5.8 9.1.5 13.6.8 6.4.3 12-1.4 18.1-3 1.8-.5 3-.7 4.7.3a25 25 0 0 1 9.5 10.6c3.8 7.6 4 16 3 24.4a55 55 0 0 1-25.9 38.2c-2.2 1.2-4 1.8-6-.3-.4-2.5 2-5.1 2.8-7.6 1-4.3 1-9 .2-13.3a52 52 0 0 0-22.3-32.3c-4.6-3.2-9.5-2.8-12.6-8 2.5-3.6 4.6-7.6 7.1-11.3 2.4-1.2 5.4 1 7.9 1.5","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M639 112.6c-16 1-31 9.9-41.6 21.6a81 81 0 0 0-19.1 73.2q-13.1-7-27.1-11.9-7-11.6-6.9-25.1a61 61 0 0 1 16-40.3 71 71 0 0 1 47.3-23.8c10.8-1 21.7 1.3 31.4 6.3m-371.5 26.8c-1.9 8.3-.8 16.4 0 24.8.7 8.4 3 16.8 5.6 24.7 2.8 9 8.5 17.4 13.7 25.2-1.3 1.6-2.5 4.2-4.4 5q-8.9 3.9-17 9c-4.3-2-7.7-5.3-10.4-9-5-8-7.7-17.3-7.8-26.7a78 78 0 0 1 10.2-41.2c2.6-4.6 6.3-8.2 10-11.8"}},{"name":"path","type":"element","attributes":{"d":"M308.6 143.2c8.4.2 16.5 1.9 23.4 7q7 4.8 9.3 13.2c2 7.4.5 14.8-3.2 21.3a175 175 0 0 0-37.1 16q-6 3.7-10.8 9c-4.7-7-9.5-14.6-11.9-22.8a107 107 0 0 1-5.7-32.4c2.8-2.5 5-5 8.5-6.5q13.2-5.5 27.5-4.8m360.5 21.7a100 100 0 0 1 36.1 45 53 53 0 0 1 3.2 25.5 32 32 0 0 1-14.2 22.6c-6.6 4.3-15 6.7-22.8 6.5-2.5-2.1-4.5-4.8-7.2-6.7-10.5-8.1-23-14-34.4-20.7-14.8-8.2-29-17.3-43.9-25.5-7.8-18.7-4.2-41.4 5.3-59a45 45 0 0 1 21.2-6.3c20-1.4 40.7 7.1 56.7 18.6m-423.9-.2c-5 16.9-6 36.8 2.3 52.8a37 37 0 0 0 12.3 14.3q-13.4 9.1-23.3 22c-4.4-.3-8.5-.6-12.3-3-7.6-4.4-11.4-12.3-13-20.6a63 63 0 0 1 7.7-39.5 61 61 0 0 1 26.3-26m163.4 16.7q9 .7 18 3.3c5.6 1.6 11 4.7 16.1 7.6q3.5 2 6.1 5a138 138 0 0 0-21.9 11.4c-13.7 9.2-25.1 21-34.6 34.4a15 15 0 0 0-4.8 2.2c-11.5 7.8-22.3 18-29.6 30q-14.2.9-28.2-1c-9.8-1-20.4-3.1-28.9-8.3a46 46 0 0 1-15.3-16.5c-1.4-2.2-1.7-5.8-3.9-7.2-2.4-.8-4 1.6-3.5 3.9a40 40 0 0 0 9 15.6 50 50 0 0 0 29.6 16.2 103 103 0 0 1-36 10 32 32 0 0 1-22.1-6.5c-3.8-2.7-5.9-6.4-9-9.7-2.5 1.3-3.5 2.4-2.5 5.4a37 37 0 0 0 14.2 13 185 185 0 0 0-15.7 21.2 265 265 0 0 0-21.9 42 105 105 0 0 1-3.7-39c2-14.4 4.9-28.2 11.3-41.4a108 108 0 0 1 20.4-27.5q12.3-11.4 27.2-19c.6 1.6.9 2.7 2.6 3.2 2.8-.2 3.6-2.4 5-4.5A52 52 0 0 1 302 207c8-5.5 17.2-9.3 26.3-12.7 25-9.2 53.4-16.2 80.2-12.8"}},{"name":"path","type":"element","attributes":{"d":"M487.6 193.9c10.7-1.6 21.3-1 32-.6 25.9 3.6 48.4 14.3 70.7 27.4q25.1 15.1 50.7 29.3c7 4 13.9 7.7 20.2 12.8 4.8 3.7 8.3 9.4 11.6 14.4 11.4 15.4 16 35.6 18.9 54.2 2.3 18.4 3.1 37 1 55.5a163 163 0 0 1-3.5 24.5c-1.4 6-2.8 11.6-6.3 16.8a58 58 0 0 0-31.3-9.2c-.7-17-8.5-34-22.6-44-1.5-1.4-4.4-1.5-5 .9-.7 2.6 1.5 3.4 3.2 5a49 49 0 0 1 17 26.7c6 23-3 50-23.2 63a44 44 0 0 1-28.3 6.8 76 76 0 0 0 19.4-44q1.6-10.6-.6-21a29 29 0 0 0-11.4-19.9c-1-6.6-2.5-13.1-5.4-19.2-.5-1.5-1.6-2.8-.6-4.4 2.3-4.1 5.5-8.4 7-13 .4-1.9-.3-4.3-2.5-4.7-3-.5-6 2.3-8.8 2-2.3-1-4-3.7-5.3-5.7-4.2-6.6-5-13.3-7.8-20.8 5.2-3.1 11.5-6 15.5-10.7 3-3.4 5-7.2 7-11.2 12-2.5 22.4-9 30.1-18.6 1.3-1.7.7-4.6-1.7-4.6-1.9-.3-3 1.5-4.2 2.6a47 47 0 0 1-14 11 67 67 0 0 1-36.8 5.2c-11.9-1.6-21.4-6.9-31.9-12.1q-2.8-1.4-5.4-3.2 10 1.8 20.3 2.6c11.1 1 22.5-.1 33.6-1 2.9-.4 2.7-2.2 3-4.6q-3.3-1-6.6-.8c-11.4.8-22.7 1.5-34 .3-23.1-2.3-46.8-9.6-69.2-15.8a157 157 0 0 0-53.8-7.6c-14 .8-28 3.3-41.7 6.3a14 14 0 0 1 1.7-5 138 138 0 0 1 38.3-43.8c18-12.7 39-19.5 60.7-21.8M220.6 364c-1.8 5.5-4.1 10.6-5 16.4-1 6.4-3.5 12.2-3.8 18.8q-9.9 3.6-17.7 10.8a97 97 0 0 0-27.4 44.6q-.8-8.1-.3-16.2a93 93 0 0 1 54.2-74.4m443.9 181.4c8.6 5.8 11.2 17.4 10 27a52 52 0 0 1-17.6 32.7 46 46 0 0 0-6.7-30.2 54 54 0 0 0-27-23.6l2.6-4.4c6.6 2.3 13 1.5 19.8 1.8 6.7.2 12.5-2 19-3.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long14":{"elements":[{"name":"path","type":"element","attributes":{"d":"M454.5 154.7a143 143 0 0 1 71.6 43.5c6.7.4 13 .5 19.5 2q14.4 3.4 27.2 10.9a122 122 0 0 1 44.1 46.7c11.9 5 22 14.4 30.3 24 12.8 15 22.9 32.4 30.5 50.4a186 186 0 0 1 15.8 70.2 72 72 0 0 1-6.3 30.6c-1.2 2.5-3 2.3-5.1.9a50 50 0 0 0-34.3-9.7 89 89 0 0 1-8.2 46.1 109 109 0 0 1-44.3 49.8c-4 2.2-8.3 4.3-12.7 5.4q-2.7.5-3.4-2c0-2.1 1.7-4 2.7-5.7a79 79 0 0 0 8-16q6.8-17.9 9.6-36.9c2.6-18 3.9-37.3-.7-55.2-4.2 3-8.4 6.7-13.2 8.5-2.7 0-3.7-2.5-3-4.8 1-3.2 2.8-6 3.7-9.3 4.5-15.3 2.5-31-3-45.7a73 73 0 0 1-11.5 27.4c0 5.3.6 11-.6 16.3-1 2.7-3.1 2.2-5.2 1a489 489 0 0 0-74.6-35.4 560 560 0 0 1-77-38 293 293 0 0 1-27.1-18.2q6.8 12.9 16.5 23.8c6.5 7.3 13.2 14.1 21.2 19.7 2 1.4 4.3 2.6 6 4.3a5 5 0 0 1-4.2 5.7c-4.9 1.3-10.2 1.5-15.2 2-6.6.9-13.2.4-19.8-.4a139 139 0 0 1-38.4-9 145 145 0 0 1-67.2-51.7c-11.3 11-20.6 26.4-18.8 42.6 0 2.2-1 5.4-3.7 4.7a58 58 0 0 1-26.7-16c-4.6 7.5-7.8 15.7-10.6 24a252 252 0 0 0-11.4 55.2c-.7 6.3.3 12.4-.8 18.7-2.2 0-4.1.2-5.9-1.4a50 50 0 0 1-16.3-29.1 95 95 0 0 1 5.4-52.3 93 93 0 0 1 27.1-38.4 63 63 0 0 1 6.1-44.5 73 73 0 0 1 41.7-34.2 66 66 0 0 1 33.5-37.6 93 93 0 0 1 47.7-9.7 96 96 0 0 1 44.3-30.3c18-6.7 38.1-7 56.6-2.9m279 280.8A92 92 0 0 1 780 457c2.3 2 5.1 3.9 7 6.4q.3 4.5-4 3.5c-10-3-20.2-3-30.4-1.5a95 95 0 0 0-28.7 8.5c10.2 2.3 19.9 7 28.6 12.6 12 7.9 22 18.6 28.5 31.5 1 2.2 2 4.4 4 6 14.8 14.1 23 35 22.2 55.4-.4 17.1-7.2 34-19.8 45.8-1.4 1.2-2.8 2.2-4.7 1.3-1-.6-3.5-1.5-3-3 1-14.9-1-29.6-8.2-42.8a93 93 0 0 1-2.9 21.7 100 100 0 0 1-73.8 71.3 74 74 0 0 1-34.8-.9c-2.5-.4-4-4-1.8-5.6 3.8-1.7 7.7-2.9 11.4-4.8 2.1-1.2 5.2-2.4 6.2-4.7a65 65 0 0 0 4.9-14.1c1.7-9.3 3-17.9-.4-27-3.9-1.8-8-2.9-11.5-5.4a58 58 0 0 1-24.4-50.5 73 73 0 0 1-43 22.7c-1.8.2-4.1 0-4.5-2.2q-.5-2 1-3.5a257 257 0 0 0 24.4-35.7c.8-1.7 3.8-.9 5.3-.7a61 61 0 0 0 69.3-32.7 61 61 0 0 0-1.4-60.1 8 8 0 0 1-1.6-6l6-2.8a60 60 0 0 1 33.5-4.2m-532.8 15.8c4.5 0 9.4.6 13.4 2.8 2 1 1.6 3.4 2 5.3.9 12.4 3.7 24.4 7.2 36.2q9 29.2 24.9 55.3c5.2 8.3 10.7 16.4 17.4 23.6 2 2.3 3.7 4.6 2 7.7a83 83 0 0 1-24.5 26.6 57 57 0 0 1-24.3 11 48 48 0 0 0-2 22.7l-.9 2.4c-1.9.3-3.5.6-5.4-.2a103 103 0 0 1-32-20 59 59 0 0 1-17.7-31.4c-4.7-2-7.2-5.8-10.5-9.5a49 49 0 0 1-11.1-29.4 65 65 0 0 1 7.3-30.2c5.2-10.9 11.8-22 20.7-30.3q5-4.7 10.7-8.6a50 50 0 0 0-19.4 9c-1.3.7-3.4 2.9-4.9 1.6-2.7-1.1-1.7-4.5-1.2-6.7a56 56 0 0 1 48.3-38","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M482 171.1a172 172 0 0 1 59.5 55.4c14.7 21 24.7 44 32.8 68.1 1 2.2 1.7 3.6 4.4 3 2.2-2.3 1-4.7.3-7.4a354 354 0 0 0-12.3-31c-9-19.9-21-38.5-35.1-55 6.1.6 12.1 1.3 18 3a98 98 0 0 1 43.1 27c17 18 28.4 41.1 33.2 65.2a124 124 0 0 1-7.3 73.9 89 89 0 0 1-27.6 35.1 74 74 0 0 0-6.5-59.6q.8-9.1-.2-18.4c-.2-1.7-.5-3.8-1.8-5-1.5-1.4-4.5-.1-4.3 2q.1 3 .6 6a85 85 0 0 1-7.7 44.2 189 189 0 0 0-19.2-62.5c-6-11.3-13.8-21.2-22-31-1.2-1.4-2.5-3-4.1-4q-1.8-.3-3.8-.3c0 2-.7 3.6 1 5.2a156 156 0 0 1 38.5 72.4q5.3 19.3 5.2 39.2a487 487 0 0 0-65.3-31 582 582 0 0 1-47.9-21.2c-25.7-13-50.6-26.5-72.4-45.5-7.4-6.7-15-15-18.8-24.3-1.3-3 0-5.6-.2-8.7a3.3 3.3 0 0 0-5.5 1.5c-1.1 4.3.5 9.4 2.6 13.2 5 9.6 12 17.1 20 24.3q.8 4.6 2.9 9a126 126 0 0 0 24.5 32.5q7.5 7.4 16 13.6c-13.8 2.3-28.2 2-42-.7-28-5.3-54.5-19-74.9-39-14-14-25-31-29.2-50.4a60 60 0 0 1-1-21.7 57 57 0 0 1 23.3-39.6c15-11 32.7-14.9 51-15.6-3.4 6.9-7.3 14-7.7 21.9 1.6 1.4 3.7 3.3 5 .3a59 59 0 0 1 22.6-35.7 103 103 0 0 1 47-20.8c22.7-3.3 45 2 65.4 12.4"}},{"name":"path","type":"element","attributes":{"d":"M270.6 241.9A83 83 0 0 0 283 301c-12.5 11.6-22.3 28-21.6 45.5q-7.6-2.9-14.1-8a49 49 0 0 1-17.8-29.2 54 54 0 0 1 2.7-29.5 66 66 0 0 1 38.4-38m350.6 24.5a119 119 0 0 1 33 34.3 209 209 0 0 1 31.2 76.8c2.8 16.7 4 34-1.9 50.2a58 58 0 0 0-36.8-9c-1-2.4-1.5-6.4-4-7.6-2.2-.3-3.6 1.2-3.2 3.4 1 4.7 2.6 9.1 2.9 14a86 86 0 0 1-9.8 43.1 101 101 0 0 1-43 45.1 166 166 0 0 0 16-53.8c1.3-8.4 1.6-17 2.1-25.4a122 122 0 0 0-4.1-32.2 110 110 0 0 0 30.4-78.8 139 139 0 0 0-12.8-60m-394.8 53.4q2.7 6.5 6.8 12.5a98 98 0 0 0-9.3 18.6 253 253 0 0 0-12.4 47.3q-2.6 14.1-2.6 28.4-6.9-7.8-9.9-17.7a81 81 0 0 1-.3-41.5 93 93 0 0 1 27.7-47.6M734 441.3a90 90 0 0 1 39.7 18q-6.5-1-13.1-.5a93 93 0 0 0-43.1 12.4c-2 1.4-4.2 3-3.4 5.7.4 2 4 1.8 5.5 2a82 82 0 0 1 52.8 35.6 54 54 0 0 0-24.8-7c-2.6.4-3.4 3.9-1 5 3.2 1.2 6.7 1.1 10 2a58 58 0 0 1 33.8 25.1 69 69 0 0 1 11.1 38.8c-.2 15-5.8 29.9-16.2 40.8-.3-6.8 0-14.2-1.6-20.8a63 63 0 0 0-10.1-25c-1.3-1.8-3-3-3.3-5a67 67 0 0 0-5-15.8c-.5-1.2-1.7-2.1-2.6-3q-1.5 1-2.8 2.1c-.7 1.4.4 3.2.8 4.5 4.7 11 6 23.2 4.3 35a95 95 0 0 1-46.4 67.1 80 80 0 0 1-50.4 10.7 83 83 0 0 0 37-31c5.1-7.7 7-16.6 7.6-25.7.3-3.4-4.3-4.5-5.3-1.1-1.1 6.1-1.4 12.2-4.1 18A73 73 0 0 1 683 654a77 77 0 0 0 4.9-25.6 33 33 0 0 0-4-17.1 35 35 0 0 1-15.6-7.7 54 54 0 0 1-18.4-39.2 34 34 0 0 1 4.8-16.8 68 68 0 0 0 40.4-25.6 72 72 0 0 0 14.7-38.6 65 65 0 0 0-9.5-38.2c10.6-5.6 22-5.4 33.6-4M192.8 458c6-1.6 11.5-1.4 17.3.5q.6 9 2.3 17.7a236 236 0 0 0 50 103.7 84 84 0 0 1-30.9 29.4 41 41 0 0 1-15 5c-2 .2-2.3 1.3-3 3a63 63 0 0 0-3.2 21c-15.2-6.6-30.2-16.4-38.5-31.1a50 50 0 0 1-4.5-37 97 97 0 0 1 20-37.2c1.5-1.8 2.1-5-.7-5.8-2-.5-3.2 1.4-4.4 2.7-12.9 16.2-22.7 34.8-22.4 56-6-6.1-11-13-13.3-21.3-2-7.5-2.5-15.3-.4-23 3.6-12.6 9.8-24.6 17.5-35.2a76 76 0 0 1 28.9-23.2c2.4-1.6 1-5-1.8-5-11 0-22 3.3-31.5 8.8a52 52 0 0 1 33.6-29m433.4 89c6.9 1.4 13.8 1.6 20.8 1.6a73 73 0 0 1-42 28.6c8-9.5 14.4-20 21.2-30.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long15":{"elements":[{"name":"path","type":"element","attributes":{"d":"M721.6 121.5c10.5 1.1 22 2.7 31.8 7.2 3 1.4 3.7 5.3.1 6.5-9.1 1.7-17.9 2.8-26.5 6.6a74 74 0 0 0-15.4 9.3c9.3-.3 18.4 1.1 27.5 2.6 15.4 3.3 31.5 8 45 16.2 2.5 1.3 3.8 4.5 5 7a181 181 0 0 1 16 54.5c1 17 .8 35.6-6 51.5a41 41 0 0 1-15.6 19.4c-1.4 1.2-3.2-.7-4-1.8a149 149 0 0 0-46-41 162 162 0 0 0-77.2-23.6 143 143 0 0 1 35.8 18 169 169 0 0 1 25.4 23.7c1.7 2 1.3 3.2.4 5.4-2 .1-3.2 0-4.8-1q-10.3-6.7-21.6-11.4c-18-7.7-38.6-12.6-58.2-8.3q12.2 24 19.8 50c8.3 27.8 14 57 14.7 86.1q0 10.6-1.3 21c-.5 2-1 6-3.9 5.5a54 54 0 0 0-33.5 4.8c.3 23-11 46.2-26 63.1-1.7 2-3.3 2.9-5.9 2-2.5-2.1.2-5.3.6-8 1-6.3 1.2-13 1.6-19.4-.1-8 .7-16 .2-24-.3-7 0-14-.5-21-.7-14.6-1.3-29.5-4-43.8-.2-1.3-1.5-1.7-2.4-2.3a91 91 0 0 1-17.1-12.9 157 157 0 0 1-28.7-36.1 181 181 0 0 1-10.6 52.8c-.7 1.6-1.2 4.2-2.8 5-4.2.7-9-1.8-13-2.8-4-1.4-8.9-2-12.7-4-.6-2.8-.3-6-.2-8.9 1-19.4.4-38.8-3-58-1.7-9-3.1-18.3-5.6-27.2q.8 24.7-2.2 49.2-2.3 15-6.6 29.8-1 4.1-2.9 8-1.2 2.2-3.7 1.6a505 505 0 0 0-160-9.2c-2.2.4-3.2-1.6-4-3.2a104 104 0 0 1-7.5-58.3 104 104 0 0 0-2.8 59.3q.4 2.2 0 4.5c-18 3.4-38.1 8.8-53 20.3-1.2.8-2.9.4-3.8-.7a74 74 0 0 1-20-38.8c-4.8 8.4-6.5 19-9.5 28.3-.9 2-4.3 2.7-5.6.6a25 25 0 0 1-2.2-8.4 69 69 0 0 1 16-50c2.3-18 7.8-34.2 16.9-49.7a193 193 0 0 0-46.6 10.8 208 208 0 0 0-60.6 31.4 139 139 0 0 0-26.6 25.4q-2.3 2.7-5.1.7c-.9-3.4-.8-7-.8-10.4a211 211 0 0 1 12.8-71.4 165 165 0 0 1 36-58q10.6-10.4 23.6-17.2a73 73 0 0 0-38.2-1.2c-1.7.4-3.1 1-4.4-.7-1.2-2.2.4-3.7 1.9-5a62 62 0 0 1 22.4-11.6c15-4.5 30.6-5 46-3.7A169 169 0 0 1 280 180a89 89 0 0 1 34.9 36.1A224 224 0 0 1 415.6 177c23.5-3.3 47.5-3.5 71-.2a235 235 0 0 1 91.1 31.7 124 124 0 0 1 39.5-51.4c13.8-11 29.5-21 46.3-26.7a145 145 0 0 1 58-8.8","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M724.6 127.7c6.5.4 12.7 2 19 3.4a95 95 0 0 0-18.8 5.6 77 77 0 0 0-21.3 14.5c-4.4 1.3-9.3 1-13.8 2.3-2.6 1.5-2.3 4.7.9 5.3 11-1 21.3-3.2 32-1.5q14.6 1.2 28.8 5.2a127 127 0 0 1 25 9.1c2.4 1.4 4.8 2.3 6 5q3.8 7.2 6.6 14.8a200 200 0 0 0-67.4-19.2c-24.8-2.2-50.8-1.2-74.2 8-3.4 1.4-7.3 2.7-10 5.2-1.3 2.8 1.3 5.3 4 3.8 15.7-8 32.8-11 50.2-12.1 33.6-1.4 68.4 5.4 98.2 21.1 1.1.7 2.2 1 2.5 2.3 3.5 11.2 6.7 23.2 7.4 34.9.8 9 0 17.8-.9 26.8-1.8 12.6-5.5 25-15.3 33.9a157 157 0 0 0-42.7-38.9 177 177 0 0 0-67.7-25.6 112 112 0 0 0-32.5-.2c-2 .5-4.4 2.6-2.8 4.8 1 1.9 2.8 2 4.8 2.3q8.1 1.3 15.8 4.1a125 125 0 0 1 41.9 25.5 214 214 0 0 0-23.5-9 93 93 0 0 0-46.4-2.1c-2.4-4.6-6.1-7.9-9.1-12.1-2.3-3.5-5.5-5.8-8.3-8.8a191 191 0 0 0-30.1-24.5 95 95 0 0 1 20-33 170 170 0 0 1 41-33 139 139 0 0 1 80.7-18m-540 34.5c10.4-1.2 20.2-.1 30.5 1a154 154 0 0 1 75.2 31.6 68 68 0 0 1 20.2 26.2c-24.7 4.5-45 21-59 41.3a189 189 0 0 0-56.7 12.3 216 216 0 0 0-61 33.1 156 156 0 0 0-20 19.2q0-6.5.6-12.9c.9-7.8 1-15 3-22.8q3.7-3.7 7.9-7c22.5-17.7 50-28.9 78.3-32.2q12.5-1 25-.3c3.1-.1 2.8-2.4 2.7-4.7-3.5-1.3-7-1.5-10.7-1.6-17.4-.2-35 2.9-51.5 8.6a157 157 0 0 0-50.1 28c6-26.9 17.3-52.7 35.2-74 9-11 20.2-20 33.2-25.7 2.3-1 4.5-1.8 3.7-5-1.8-1.7-5-2-7.4-2.9a72 72 0 0 0-31-3.8 80 80 0 0 1 31.9-8.4"}},{"name":"path","type":"element","attributes":{"d":"M533.4 193.8c33 11.5 64.2 31 86.4 58.4 5 5.9 8.3 12.5 11.6 19.3 9 18.6 15.6 38.5 20.6 58.4q6.7 26 9.1 52.5c1 12 1.7 25-.6 36.8a62 62 0 0 0-31.6 4.3q-.7-4.3-2-8.2c-1.2-2.6-5.2-2-5 1.1.4 5 1.8 9.9 1.6 15a91 91 0 0 1-19.5 51.2c.9-5.3.9-10.7 1.1-16.1q.6-26.2-.6-52c-1.2-13.3-1.2-27.4-4.6-40.3-2.4-2.6-6.4-3.7-9.2-6a145 145 0 0 1-38.3-42.7c-2-3.3-4.1-6.7-5.4-10.4-.6-3.5-.6-7.2-1.1-10.7a189 189 0 0 0-20.2-63c-3.5-6.4-8.2-11.6-13-17-1.2-1.6-2.5-1.3-4.2-1.4l-1.3 2.5c1.4 3.9 4.4 6.1 7 9.4 5.2 6 8.4 12.8 11.7 20q9 20.2 13 42c5.3 27.9 1 55.8-7.8 82.5l-18.4-5.4a252 252 0 0 0-5.8-81.4c-2.2-11.2-5.8-22-9.8-32.7-1-2.4-2.7-1.8-4.8-2q-1 2.2-.8 4.5.8 7.5 1.4 15.2c1.6 17.2.2 33.8-1.2 51q-2.3 19.5-8.1 38.3-53-11-106.9-11.8a141 141 0 0 1-3-42.7 163 163 0 0 1 22.5-74.4 109 109 0 0 1 14.2-20.8c.7-1 2.1-2.4 1.9-3.7 0-2.5-3.5-3.2-5-1.4a111 111 0 0 0-16 23 163 163 0 0 0-23.4 79.3 144 144 0 0 0 3.5 40.7q-9.4 0-18.7.3c-9.2.9-18.4 1-27.6 2.5a100 100 0 0 1-7.8-53.5q2.1-19 8.2-37.2c.6-2 2.3-4.8 1.2-6.8-1.4-2.1-4.4-1.4-5.3.8q-5.1 10.2-9 21c-5.8 16.8-11.3 33.2-11.5 51.2q-.2 14 3 27.7a130 130 0 0 0-49 18.9 71 71 0 0 1-17-36.1 106 106 0 0 1 5-52 110 110 0 0 1 35.8-50.4 74 74 0 0 1 35.9-15.3c2.3-.3 5.6.2 7.4-1.6.9-2.7-.3-3.5-2.4-4.9a210 210 0 0 1 47.5-24.8 249 249 0 0 1 166.3-1.1M231 326.5c-.1 3.4.4 7 0 10.4-1.7 4.4-4.2 8.6-6 13-2 4.3-2.9 8.9-4.5 13.3a65 65 0 0 1 10.5-36.7"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long16":{"elements":[{"name":"path","type":"element","attributes":{"d":"M482.6 153.2c20.1 2.9 40 10.7 56 23.3 2 2 4.4 1.8 7 2.2a108 108 0 0 1 53.5 23.1c2 1.6 4 3.7 6.3 4.8a144 144 0 0 1 68.4 62.6 188 188 0 0 1 22 80.2q.6 15 0 30a319 319 0 0 1-7.7 51.2q-.9 2.6-2.3 5-3.1-.9-5.6-2.9c-5-4.2-11.8-6.1-18.1-7.4-5.7-1-12-1.4-17.6.1-2.1 1.8-3.7 4.3-5.5 6.4a171 171 0 0 1-38 31c-3.2 1.9-6.6 4-10.3 4.4-2.6-.3-3.3-2.2-2.7-4.6 2.4-10.3 4.5-20.5 4.5-31.2 0-25.8-4.6-51-10.9-76-3-11.1-6.1-22.5-10.7-33a124 124 0 0 1-36.5 49.9c-2.2 1.2-4.8.4-5-2.3a228 228 0 0 0-19-57.8c-1.6 8.4-2.8 16.9-5 25.2-2.1 8.5-5.4 16.5-8 24.8-.7 1.8-1 3.6-2.7 4.8-2.5.5-5.1-1.2-7-2.7q-12.9-10.3-25-21-7.9-7.6-15.1-15.9a392 392 0 0 1-27.4-33.3 347 347 0 0 1-18.8 63c-.8 1.7-1.6 4.5-3.8 4.5-2 .4-3.6-1.2-3.7-3.2-.6-5.6-.4-11.4-1-17-1.4-13.6-1-27.2-1-40.9a263 263 0 0 0-15 26.1q-8.5 16.6-11.7 34.8c-.5 2.6-.6 5.5-1.6 8-1.2 2.1-3.4 1-5.1.1a97 97 0 0 1-45.3-57.8 251 251 0 0 0-25.3 33.9c-7.5 11.9-13.7 24-16.7 37.8-.8 3.4-.2 6.6-.3 10a3 3 0 0 1-3.3 3c-2.6 0-5.4-1.2-7.8-2.2a150 150 0 0 1-36.7-21.7c-4 12.3-6.1 25-7.5 37.7a185 185 0 0 0 .8 52.7c.2 1.8.7 3.3-.5 4.9a5 5 0 0 1-5.6-1q-4.3-4.4-7.7-9.4a108 108 0 0 1-19.3-63c0-18 5.1-34.6 12.6-50.7a78 78 0 0 1 7.2-12q-2.2-20.1 3.3-39.5a84 84 0 0 1 21.7-36 79 79 0 0 1 5.6-56.7c8.6-15.2 23-24.6 38.8-31.2 16.5-6.7 34.1-11 51.9-6.6a54 54 0 0 1 26.7 15.1 91 91 0 0 1 59.5-22.7c2.7.1 6-.3 8.6.8 2 2 2.9 5.2 4.2 7.7 18-10.1 39-12 59.2-9.4m208.1 368.6c2 1 3 3.5 3.2 5.5q.8 8.8-3 16.6c-.9 2.3-2.3 4-1.8 6.5 1.9 12.5 5 23.8 5.3 36a65 65 0 0 1-10.6 44.1c-1.7 2.5-4.2 4.4-5.8 7a114 114 0 0 1-14.6 45.6 93 93 0 0 1-39.1 35c-1.8 1-5.8 1.3-6 3.7q-3 10.4-8.7 19.6a102 102 0 0 1-24.5 26.6 127 127 0 0 1-21.1 13.7c-11.2 6-23.6 9.9-35.4 14.5 2.9 3.2 7 4.8 9.5 8.7 1.3 2.2.7 5.1-1.6 6.4-4.5 2.8-11 2.4-16.1 2.5a52 52 0 0 0 7 26q7 15.5 12.2 31.7a68 68 0 0 1 2.4 36 72 72 0 0 1-29.7 43.5c-2.9 1.2-3.6-1.8-4.6-3.7a47 47 0 0 0-22-22c-12.5-6.8-25-12.3-34.2-23.5a41 41 0 0 0 2.4 15.9q-1 1.6-2.3 2.8c-2.2.5-3.5-1-5-2a72 72 0 0 1-19-23.2 58 58 0 0 1-6.4-38.7c2.6-14.7 11.1-27 20.1-38.5 7-8.8 16-14.7 25.5-20.5-.6-2-1.8-4-1-6 1.3-4.4 4.7-6.2 8.5-8.2q-1-4-.7-8c1-10.4 4.9-20.5 11.5-28.5 1.8-2.5 4.1-4 4.2-7.5q1-10.5 5.2-20c6.4-13.6 14-26 27.6-33.2 2.6-11.6 6.4-22.6 12.7-32.7 5.3-8.3 11.3-16 19.5-21.7.4-6 1.5-12.3 3.6-18 2-2 4.8-3.4 7-5.1 11.1-8.3 21-18.5 30.3-28.7a187 187 0 0 0 24.5-32.5c1.3-2.3 2-6.5 4.9-7.3 3.8.4 7.2 2.4 11 2.8q10.3 1.2 20.5-1.2c11.2-2.8 23-8.5 30.2-17.7 1.4-1.4 2-2.6 4.4-2.3","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M460.6 158c31-1.7 63.3 10 84.8 32.6q2.8 2.7 5.3-.2c.5-2.5-1.4-3.8-2.7-5.7a106 106 0 0 1 48.1 22.1 126 126 0 0 1 37.7 55.4 193 193 0 0 1 10.8 56.2c.3 3.5 0 7 .5 10.5 1.1 2.8 4.7 2.5 5.4-.5.7-5.2-.5-10.8-.6-16-2.3-34-12.4-67.4-34-94.2 19.4 11.1 36 26.9 48 45.8a175 175 0 0 1 25.9 82.4c1 8.2.5 16.6.6 25q-1.1 28.3-7.5 55.8c-10.1-6.5-22-9-34-8.5 7.6-11.3 14.8-24 18-37.3.8-2.4-.8-3.2-2.2-4.8-2 1.2-3 2-3.5 4.3a114 114 0 0 1-15.3 31.9 152 152 0 0 1-51.5 47.6c3-13 4.8-26.7 3.6-40a325 325 0 0 0-10.4-65 238 238 0 0 0-13.9-39.6 118 118 0 0 0 8.8-41.4c-.3-19.8-7.2-39.6-15.2-57.5-1-2-1.8-4.3-4.6-3.7-2.5 1-2 3.3-1 5.2 6.3 14 11.8 29.2 14.2 44.5q1.3 10.7.2 21.5a129 129 0 0 1-10 34.6c-4.8 11-10.3 21.6-17.9 31.1q-6.1 7.9-13.8 14.6a204 204 0 0 0-12.1-39.1 509 509 0 0 0-36.5-71.4c-2-3.2-3.8-6.9-6.4-9.6-1.7-1.6-4.2-.4-4.5 1.8.1 3.6 1.3 7.3 1.8 11 .7 3.8.5 7.7 1.3 11.5 1.7 1 2.4.8 4-.2 1.5-2.8.7-6.7.4-9.8a944 944 0 0 1 22.6 42c.5 1.3 1.6 2.9 1.1 4.2q-2 8-3.2 16.3a201 201 0 0 1-10.7 39c-12.3-9.9-25.2-20.1-35.7-31.9a415 415 0 0 1-23.9-27.1c-3.9-4.9-7.8-9.6-10.9-15.1l3.4-18.9c2.5-14.5 3.6-29.3 5-44 .6-17.9 1-36.8-4.3-54.1-.7-1.6 1-1.8 2-2.5a84 84 0 0 1 32.8-8.8"}},{"name":"path","type":"element","attributes":{"d":"M416.2 159.8c6.5 12.8 8 26.4 8.4 40.6.5 7.7 0 15.3-.3 23a467 467 0 0 1-6.5 52.2c-4.2 24.8-10 49.1-19.2 72.6q-1.3-22.9-.8-45.8c0-3.6.9-7.6.1-11.1-1.2-2.6-5-2.2-6.4 0a180 180 0 0 0-15.1 23.9c-4.6 8.5-9 16.8-12 26a154 154 0 0 0-5.5 22 86 86 0 0 1-24.3-21.8c-15-19.8-22-45.3-21-70 .2-20.8 6.1-41.7 16.4-59.8 10.1-18 25.3-33.7 43.8-43a83 83 0 0 1 42.4-8.8"}},{"name":"path","type":"element","attributes":{"d":"M331.1 169.9a53 53 0 0 1 15.7 10.8 132 132 0 0 0-35.5 124.6 231 231 0 0 0-39 56.9 77 77 0 0 0-7.6 27.8q-18.1-7.2-34-18.8a49 49 0 0 1-14.3-16.4 78 78 0 0 1-7.7-44.4 81 81 0 0 1 20.9-48.1c3 9.2 5.8 18.3 12.2 25.9 1.5 1.7 4.6 1.3 5.4-1 1.3-4 2-8 3.5-12a98 98 0 0 1 22-33.8c9.1-9 20.2-16.3 31.1-23 1.3-4.5-3.2-4.4-5.8-2.7-10.8 6.8-22 14.1-30.9 23.2a99 99 0 0 0-24 41.4 107 107 0 0 1-11-33.1c-1.1-6.5-1-13.3-.7-19.8a57 57 0 0 1 19.5-39.7 104 104 0 0 1 44.2-20.4 60 60 0 0 1 36 2.5M204.4 339.3c1.7 5.3 3.1 10.6 5.6 15.7q3.5 7 8.6 13.1c-5.2 14-7.4 29.4-9 44.3a226 226 0 0 0-.1 44.7c-11-15.3-18.4-33-20-51.9q-1.4-9.9 0-19.8a124 124 0 0 1 14.9-46m484.5 190.8c-.4 4-1 8-3 11.7a69 69 0 0 1-15.8 19q-12.3 10.5-26.2 18.8-12.4 7.6-23.8 16.7-1.6-12.4-1.4-25c.2-4.4-.8-10.3 1.9-14q3.4-5.1 6-10.6a55 55 0 0 0 25 1.7 66 66 0 0 0 37.3-18.3m-4.6 24.2c2 10.7 4.1 21.2 4.6 32 .7 13.5-.9 26.6-8.1 38.2a42 42 0 0 1-21 17 210 210 0 0 1-47.7 12.6 137 137 0 0 0-18.5 5.7c-.8-5-.6-9.5.4-14.5a68 68 0 0 1 16-31.5 179 179 0 0 1 40.6-31.5 144 144 0 0 0 33.7-28m-71.4 13.5q-.1 16 2.6 32-6.6 6.5-12.6 13.4c0-9.5-2-18.6-3-28-.4-2 1.1-3 2.2-4.4q5.6-6.3 10.8-13m-18.2 21.3c1.8 10.4 3.4 20.6 2.7 31.2-.4 1.9-1.6 3.5-2.4 5.2a60 60 0 0 0-7 36.8q-9.2 4.5-17.5 10.5a58 58 0 0 1-8.7-20.5 69 69 0 0 1 .3-34.7c12.5-8 22.1-18.2 32.6-28.5m-40.4 49.1q.6 8.4 2.2 16.5c1.6 8 5.1 15.2 9.6 22a84 84 0 0 0-24.8 47q-7.4 3.3-14.1 7.9c-2.4-6.6-1.8-14.3-1.9-21.3q.2-15.7 4.4-30.8a86 86 0 0 1 24.6-41.3m117.8 3.4c-2.5 14.6-7.3 30-16.1 42.1a97 97 0 0 1-18.4 19.5 57 57 0 0 1-25 12.2c-10.4 1-20.8-.3-31-.2-11.4.5-23.2 1.9-34 5.9a80 80 0 0 1 19-36.8 81 81 0 0 1 27.6-18.4q13.3-5.5 27.4-7.6a164 164 0 0 0 50.5-16.7m-151.3 51.5c-.4 5.5-1.4 10.7-1.3 16.2 0 9-.5 17.4 3 26a112 112 0 0 0-23.9 27.4 30 30 0 0 1-3.5-11.4 61 61 0 0 1 8.3-37.2 61 61 0 0 1 17.4-21m92.2 28q-2.6 7.5-6.3 14.3a104 104 0 0 1-32 33 142 142 0 0 1-34.9 17.3c-6.2 2.7-12 3.7-17.4 7.6-9-4-18.3-5.7-28-7.9A70 70 0 0 1 503 767a100 100 0 0 1 28.7-31.3 92 92 0 0 1 25.3-11.4 120 120 0 0 1 32.5-3.1q11.7 1 23.4.1m-123.8 28.8c.6 6.6 2.4 12.8 6.3 18.2-3 5.1-5 10.5-6.8 16.1-2.8-.5-6-.9-8.7-2.2-2.5-10.8 2.8-23.4 9.2-32.1m-13.1 39c5-1.8 10.6.6 15.6 1.4 15 3.4 29.1 5.7 40.8 16.5-11.5 3-25.4-.9-36.8-3.8-8.1-2.5-17.9-4.6-24.7-9.9 1.5-1.8 2.9-3.4 5.2-4.2m-4.4 11.9q10.5 4.8 21.8 7.5a63 63 0 0 0-5.4 38c1 8.6 4 16.9 7.6 24.8.7 1.7 3.5 2.3 4.5.7 1.7-2-.3-5-1-7.2a77 77 0 0 1-6.4-31.4c.5-8.3 1.6-16.2 6.1-23.4q8 2.2 16.3 3.3c-1.3 14.3 6.2 25.6 11.1 38.4s10.6 26.5 11.4 40.2a60 60 0 0 1-10.1 34.5 51 51 0 0 1-15.3 17q-4-7.6-10.2-13.5c-7.9-7.7-17-11-26.4-16.6a56 56 0 0 1-20.8-17.2c-8.2-11.6-8.2-27.1-7-40.7a76 76 0 0 1 14.8-38.9 4 4 0 0 0 1.1-3c-.7-1.8-2.6-2.3-4-1.1a36 36 0 0 0-7.8 10.5c-6 10.9-9 23.2-10.3 35.5-.9 12.3 0 24.6 5.2 36a58 58 0 0 0-1 16 65 65 0 0 1-20-42c0-11.7 3.6-23 10-32.7 5-7.8 10.6-16.2 17.7-22.3a116 116 0 0 1 18-12.4"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long17":{"elements":[{"name":"path","type":"element","attributes":{"d":"M437.6 139.7a225 225 0 0 1 71 11.6 103 103 0 0 1 44 28q9.1 10.8 12.8 24.5c26 6.7 50.3 18.8 71.8 35A226 226 0 0 1 727 397.4c2.6 31-2.2 62.2-16.5 90-1.8 3.3-2.4 6.9-3.4 10.5a72 72 0 0 1-26.9 39 62 62 0 0 0 2.3 34.6 38 38 0 0 0 13.8 18.1c2 1.6 4.9 2.6 3.6 5.9-1.6 1.8-4.2 2.9-6.3 4a74 74 0 0 1-48.2 3 64 64 0 0 1-36.6-24.4c-1.7-2.6-3.7-5.6-4.3-8.7q1-2.5 2.8-4.3 7.8-9.6 13.3-20.5c-3.7-2.1-8.3-4-11.3-7-1.3-2.1.6-5.2 3.1-4.2 4.8 2.3 9 5.6 14.1 7.2a55 55 0 0 0 23.1 2.2 60 60 0 0 0 34-16.4 66 66 0 0 0 19.5-37c1.4-11 .8-21.9-3.4-32.1a52 52 0 0 0-62.7-31c4.9 18.1.4 38.4-7.5 55a81 81 0 0 1-24.3 30.7 31 31 0 0 1-20.6 6.4c-2.4-.5-5.4-.9-4.9-4 1.8-2.3 4.7-3.2 6.5-5.4 2.7-3.3 4.2-7.8 5.2-11.8a106 106 0 0 0 2-26.8q-1.3-21.7-6.4-42.8c-.2-1.7-1.7-1.8-3-2.6a87 87 0 0 1-31.2-24.7 193 193 0 0 1-27-45 428 428 0 0 1-27.5-94.9 171 171 0 0 0-42.7-12.8 92 92 0 0 0-22.8-1q-4 .5-7.3 2.6c1.4 2 2.6 4 4.6 5.6 2.2 1.8 5 3 7 5 1.8 1.8 0 5-2.5 4.5-3.4-.6-6.7-2-10-2.9q-22.9-6-46.5-7.1c-11.6-1.3-23-.2-34.5.6a185 185 0 0 0-47.2 11.1q-4.3 1.6-7.7 4.5a214 214 0 0 0-74 159.9A217 217 0 0 0 322 622.2c2.6 1.6 6 2.9 8.2 5.1a33 33 0 0 1-15.2 30.4 48 48 0 0 1-50 .7 66 66 0 0 1-14.2 37 59 59 0 0 1-30 21.2c-2 .4-4 1.3-5.8-.4-2.2-1.7-.9-5.4-1-7.8.7-9.3-3.9-17.4-10.4-23.6a50 50 0 0 1-24.2 19.3 72 72 0 0 1-66.6-8.8 47 47 0 0 1-19-28.1c-.6-2.6.3-5 1.8-7 4.3-.6 8.4.2 12.8-1.1a39 39 0 0 0 22.1-19.9 68 68 0 0 0 6.3-44.3c-21.2-4.5-41-14-57.1-28.4a110 110 0 0 1-31.9-115 129 129 0 0 1 45.5-64.4c-6.2-15.6-2.3-32.3 5.6-46.5a95 95 0 0 1 45.5-40.5c10.5-4.4 22-6.2 33.3-4.4a64 64 0 0 1 .3-26 94 94 0 0 1 19.4-37.6c12-14.8 27.4-27.2 43.3-37.7a327 327 0 0 1 81.4-37.6 367 367 0 0 1 115.6-17.1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M461.6 146.9a171 171 0 0 1 66 19.5 68 68 0 0 1 29.6 31.5c1.5 3.4 2 7 3.3 10.5 3.3 1.3 7 1.8 10.3 3A210 210 0 0 1 667 274a221 221 0 0 1 52 105.6c5.7 31.7 3.5 65.8-9.2 95.8-.8-6-1.5-11.9-3.6-17.6a58 58 0 0 0-29.4-33.5 59 59 0 0 0-44-2.9c-1.4.4-2.5 1.2-2 2.9 1.4 6.7 3 13.1 2.6 20a94 94 0 0 1-17.3 48.4 50 50 0 0 1-24.8 19.7c5.3-8.2 7-17.5 7.7-27a197 197 0 0 0-7-61.6c-.6-2.7-2.9-2.9-5-4a79 79 0 0 1-28.2-21.5 184 184 0 0 1-27.9-46.2 404 404 0 0 1-25.4-85.6c-.6-3.2-.8-6.8-2.2-9.8-1.5-1.8-3.6-3.1-5.4-4.6A305 305 0 0 0 396.4 198c-23-6.6-47-9.7-70.8-7-23 2.4-44.7 10.6-63.6 23.9a110 110 0 0 0-35.4 45.8c-.6 1.6-1 4.2 1.1 4.9 2 1.1 4-2 4.6-3.5q6.2-14.8 16.7-27.2a106 106 0 0 1 36.1-26.9c16.8-7.8 35-11.7 53.5-12.2 28.6-.8 56.3 6.1 82.5 17.1a304 304 0 0 1 61.5 35.2c-12.4-3.8-25-6.6-38-7.5-5.9-.3-12.5-.4-18 1.6-2.7.9-5 2.5-6.1 5.2-.8 2.8.3 5 1.2 7.6a222 222 0 0 0-119.6 2.9c-5.2 1.5-10 2.1-14.3 5.8a215 215 0 0 0-51 62A180 180 0 0 0 218 371a225 225 0 0 0 23 179 224 224 0 0 0 83.6 80.4q-.8 12.6-10.4 20.6a41 41 0 0 1-47 1.8c-2-1-3.6-2.8-6.1-1.9-2.2.6-2 3.8-2 5.5 0 11.8-4.3 23-11 32.6-7 10-16.5 18.2-28.3 21.8a35 35 0 0 0-5-21.4 31 31 0 0 0-11.1-11.3c-4-.2-5.1 3.8-7.2 6.3a51 51 0 0 1-37.9 18.4 65 65 0 0 1-47.2-16.2 40 40 0 0 1-12.1-20.8c4.9 0 9.7-.4 14.2-2.5 12-5 20.4-16 25.1-28 4.8-12.2 6.5-26 4.1-39-.4-2-.5-4.5-1.7-6.2-2-1-4.4-1.2-6.6-1.7a116 116 0 0 1-54.9-30 104 104 0 0 1-25.2-108.2 122 122 0 0 1 39.3-55.9c1.9-1.6 4.4-3 5.7-5 .6-3.3-1.8-6.8-2.5-10a51 51 0 0 1 6.3-34.4 89 89 0 0 1 38.7-37.3 54 54 0 0 1 38.9-5c1.9.7 3.8-.1 4.2-2.2q-.4-2.5-1.1-4.9c-2.3-8-2-17-.1-25 3-12.3 9.3-23.2 17-33 10.8-14 24.8-25.8 39.3-35.7a317 317 0 0 1 70.1-35 375 375 0 0 1 65.7-16.8c28.3-4.7 57.2-6.2 85.8-3.1M673.5 541c-.6 8.6-.9 17 1.4 25.4a49 49 0 0 0 17 27.5c-17.4 7.7-38 7-55.2-.6a52 52 0 0 1-26-23.3q8.8-10.9 15.2-23.3c4.6.7 9.1 2 13.7 2.4 11.8.4 23.5-2.5 33.9-8","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long18":{"elements":[{"name":"path","type":"element","attributes":{"d":"M470.1 142.1c23.4 3.4 48.3 10.3 67.8 24a66 66 0 0 1 27.4 37.7q29.1 7.5 54.6 23.3a231 231 0 0 1 85.5 94c3.6-5.7 6.9-11.3 11.6-16.3a30 30 0 0 1 15.7-10.1 49 49 0 0 1 35 7.5c5.7 4 11.8 9.5 13.6 16.4a41 41 0 0 1-1.2 23c-2 5.3-6 8.7-10.5 11.8a174 174 0 0 1-31.1 15.4c9.8-1.5 20.2-2.5 30.1-1.4 5 .4 9.6 2.5 13.7 5.2A59 59 0 0 1 800 393c3.3 6.5 1.6 13-1.7 19a70 70 0 0 1-17.5 21.7c-4.6 3.4-10.8 3.2-16.2 2.6a61 61 0 0 1-28-14c6 7.5 13.6 16 14 26.1.2 8.8-2.8 18-5.9 26.2-2 5-4.8 11-10.5 12.3a48 48 0 0 1-23-.8 25 25 0 0 0-3.2 8 72 72 0 0 1-27.8 42.8 62 62 0 0 0 2.3 34.6 38 38 0 0 0 13.8 18.1c1.3 1 3.5 2 3.9 3.8.4 2.8-2.7 3.9-4.6 5a74 74 0 0 1-54.7 2.7c-15-5-29.4-15.2-36-30-.8-2 .3-3.3 1.5-4.9a113 113 0 0 0 14.3-21.7c-3.8-2-8.3-3.9-11.4-7-1.3-2.1.7-5 3.2-4 4 2 7.5 4.6 11.7 6.3 15.8 6 33.7 4 48-4.7a66 66 0 0 0 31-46.7c1.3-9.8.8-19.6-2.7-29a53 53 0 0 0-26-29.8c-2.3-1-4.6-2.8-7-1.3-9.3 4.8-18.9 8.7-28.5 12.8a96 96 0 0 1-20.1 57.5 51 51 0 0 1-26.8 19.3c-3.7.9-9 1.2-12.1-1.3-1.5-4 3.9-4.6 5.8-7 5.6-6.6 6.6-17 7.5-25.2.9-17.3-1.5-34.9-5-51.8-.5-2-.8-4.3-1.7-6.3-3.4-1.9-7.2-3.2-10.5-5.4a117 117 0 0 1-36.3-38.7 287 287 0 0 1-29.4-69.7c-5-17.2-8.7-34.6-12-52a172 172 0 0 0-45.3-13.3c-7.3-.8-15-1.5-22.3-.3-2 .3-3.5 1.4-5.3 2.4q1.4 2.2 3 4.1c3 3.2 7.2 4.4 9.9 8-1.5 1.8-1.9 3.5-4.6 2.7q-26.9-8.4-55-9.8-12.8-1.3-25.7 0c-19.6 1-39.2 4.9-57.5 12a29 29 0 0 0-9.6 6.5 217 217 0 0 0-39.9 48 183 183 0 0 0-20 44 215 215 0 0 0-9.5 98.6 218 218 0 0 0 105.9 159.1c2.4 1.6 5.4 2.7 7.5 4.8a33 33 0 0 1-15 30.4 48 48 0 0 1-50 .7 66 66 0 0 1-13.5 36 60 60 0 0 1-30.8 22.2c-2 .4-4.1 1.3-5.8-.5-2.1-1.7-1-4.4-1-6.7a30 30 0 0 0-10.5-24.7 54 54 0 0 1-38.8 23.2 72 72 0 0 1-50.7-11.7c-10-7-17.7-17-20.2-29-.6-2.6.3-5 1.8-7 4.4-.5 8.4.3 12.8-1.1a38 38 0 0 0 21-18 67 67 0 0 0 7.3-46.3 123 123 0 0 1-59.1-30.3 109 109 0 0 1-30-112.1 127 127 0 0 1 45.8-65.2 53 53 0 0 1 4.5-44.6 95 95 0 0 1 45-41.8c11-4.9 23-7 34.8-5a63 63 0 0 1 1.8-31.6 115 115 0 0 1 33.6-48.5c19-17.4 41.6-31 65-42q37.7-17.2 78.4-26c37-7.9 76-10.6 113.7-5.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M676.8 303.2c-4.5-4.3-11-6.5-17.2-7-8-.2-16-.2-24 1.5l-1.6.4c-3.4.7-7.2 1.4-8.7 5-1.4 4-2 8.3-2.6 12.5l-.6 3.8a41 41 0 0 0 1.5 20q2 4.9 6.5 7.5 6.1 3.9 12.5 7.3l3.4 1.8 8 4.8q7 4.6 14.8 8.4c2.2.8 2.4 4.9-.2 5q-10.7 2.4-21.5 4.3l-4 .7a103 103 0 0 0-28.4 10.4c-5 3-6.8 8.3-8.5 13.6-1.6 6.2-3.2 12.7-3.7 19.2-.1 3.3-.2 6.4 2.2 8.9a30 30 0 0 0 16.9 9.3c4.6.6 9.2-1.7 13.5-3.9l5.3-2.5q17.7-6.7 34.3-15.7c1.5-.7 3.3-.9 4 1q.3 1.9-.2 4l-.2 1.4c12.6 7 22.3 18 27.3 31.5 2.9 7.3 3.8 15 4.3 22.7a36 36 0 0 0 21.7 2.4c3.7-.6 5.1-3.5 6.6-6.5q3.7-8.5 5.7-17.4a24 24 0 0 0-1.1-16.6 83 83 0 0 0-13-17.7q-7.5-8-14.2-16.9c-1-1.1-1.5-3.2-.3-4.4a3.3 3.3 0 0 1 5-.3q11.4 10.1 23.9 19.1a50 50 0 0 0 21.4 9.9c4.1.6 8.7.6 12.2-2 5.8-4.4 10.2-11 14-17.1 2-3.3 4.3-7.2 4-11.2.2-3.7-2.4-7.4-4.5-10.4l-.5-.7c-5.1-7.2-12.7-14.5-21.7-16.1a83 83 0 0 0-23 .1q-6.4 1-12.7 1.2-5 .2-9.8.8c-2.6.4-5.1-2.8-3.1-5q2-1.7 4.7-2.4l2.2-.8 4.7-2c11.3-4.5 22.2-9 32.6-15.5h.1c3.5-2.3 7.6-5 9.3-8.7a32 32 0 0 0 2.4-16.3c-.4-3.5-1.2-6.9-3.4-9.7a42 42 0 0 0-25.5-14.5 29 29 0 0 0-18.3 1.7c-6 3.4-11 9.5-14.8 15.2a185 185 0 0 0-15 26.8c-.8 1.7-2 4-3.9 4.4-2 .4-3.3-1.7-3.3-3.5-.7-10-1.4-19.3-5.9-28.4a49 49 0 0 0-9.6-13.4m24.3 73.7c-1.4-2.5-3.1-3.8-6-3-3.4 2-3.3 5.8-3.2 9.2v1.2c.3 3.3.6 7.2 3.3 9.5 2 1.9 4.7 1.6 6.2-.7 3.5-5 2.1-11-.3-16.2","fill":"#E57E5E"}},{"name":"path","type":"element","attributes":{"d":"M411.6 146q31.4-2.2 62.5 2.6c20 3.4 40 9.1 57.1 20a64 64 0 0 1 26.5 30.7c1.2 3 1.5 6.3 2.8 9.2l9.2 2.5a207 207 0 0 1 85.5 50.8c19.2 18.8 35.1 41 46.7 65.4q-2.4 4-4.4 8.3c-1-7.4-2.3-14.6-5.7-21.3s-8-13.5-14.2-17.9c-6.1-4.5-14.5-6-22-6a92 92 0 0 0-27.7 3.3q-6 1.9-8.2 8c-1.9 5.2-2.3 11-3.4 16.6-1 8.2-1 17.4 2.6 25 1.7 3.8 4.7 6.6 8.1 8.8 7 4.4 14.8 7.8 21.9 12.2q5 3.1 10.2 6c-11 2.2-21.7 3.6-32.3 7.6a92 92 0 0 0-16.3 7.5c-5.8 3.8-8.2 10.5-10 16.9-2.3 9-4.7 17.7-3.5 27 .9 4.1 4.2 7 7.3 9.5a31 31 0 0 0 18.3 7.8c3.9.2 7.2-1 10.8-2.4a96 96 0 0 1-17.8 49.3 49 49 0 0 1-24.4 19c5.3-8 7-17.5 7.7-27a201 201 0 0 0-6.9-61.5c-.5-2.4-2.3-2.7-4.2-3.6a79 79 0 0 1-30-23c-11-13-19-27.6-26-43a401 401 0 0 1-26.4-88c-.6-3-.8-6.7-2.2-9.6q-2.2-2.2-4.8-4c-21.6-17-45-31.9-70-43.1a215 215 0 0 0-79.8-19.6 137 137 0 0 0-90.6 27.8 111 111 0 0 0-31.4 42.6q-1.1 2.5.2 4.8c1.7.7 2.7.6 4-.7 1.8-2.3 2.7-5.3 4-8a99 99 0 0 1 28.6-35.3 131 131 0 0 1 85.7-25.4c19.5.6 39.1 5 57.5 11.5a299 299 0 0 1 76.1 40.7 142 142 0 0 0-49.1-7.5c-4.1.5-10.2 1.5-12.5 5.4-1.9 3-.7 6 .7 9a226 226 0 0 0-105.7-1.1c-6.3 1.4-12.4 3.6-18.7 5.2-3 1-6 1.7-8.5 3.7a215 215 0 0 0-44.7 50.3c-3.5 5-6 10.6-9.3 15.8q-10.9 19.6-16.7 41.4a224 224 0 0 0 58.2 224.5q21.6 21 48.2 35.8c-.5 9.6-5.8 18-14 23a42 42 0 0 1-45.2-1.9c-2.4-1.8-6-1.4-6.2 2 0 8.5-1.3 16.7-5 24.4a59 59 0 0 1-34.4 32.8 36 36 0 0 0-14-31.6 4 4 0 0 0-6 .4c-1.6 2-2.8 4.4-4.5 6.4a43 43 0 0 1-14.9 11.3 65 65 0 0 1-64.1-6.6 42 42 0 0 1-17-25c5.2.1 10.3-.3 15-2.7a50 50 0 0 0 24.7-28.4c4.7-12.4 6-26.2 3.6-39.2-.5-2.1-.2-5.5-3-6a117 117 0 0 1-60.1-31.1 103 103 0 0 1-29.2-55.1 107 107 0 0 1 5.3-56.8c7.8-21 22-39.6 39.6-53.3 1.8-1.6 4.8-2.8 4.3-5.7-.6-3.4-2.6-6.5-3-10a57 57 0 0 1 9.9-38.1 89 89 0 0 1 41-34.1c10.4-4.1 22.3-6 33.2-2.6q3.4 1 4.3-2.2c-.7-4.7-2.6-9-2.6-14a67 67 0 0 1 11.3-39 140 140 0 0 1 27.7-31.3 236 236 0 0 1 39.8-27.3A369 369 0 0 1 411.6 146m261.9 395a73 73 0 0 0 1.2 25c2.5 11 8.2 20.9 17.1 27.9a69 69 0 0 1-60.4-3.3 48 48 0 0 1-20.4-20.5c5.3-7.6 11-14.8 15-23.3 5.3.7 10.2 2.5 15.6 2.4 11.1 0 22.2-2.8 32-8.2","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long19":{"elements":[{"name":"path","type":"element","attributes":{"d":"M659.5 150.5a95 95 0 0 1 29 52c5.3 43 5.3 86 11.8 128.9 4.5 31.8 10.7 66.1 25.5 94.9 10.3 20.5 21.8 40.5 31.8 61.1a145 145 0 0 1 14.8 57 214 214 0 0 1-.6 34.9 129 129 0 0 1-17.5 51.8c-7.5 12.3-19 21.4-30.6 29.5-1.3.8-2.5 2.9-4.1 2.6-2 0-3-2-2.5-3.8a95 95 0 0 0 6.5-69.1c-.3-1-.4-2.1-1.4-2.7-4.6 25.3-15 49.9-31.4 69.9-13.2 16-30 28.9-50.2 34.6a74 74 0 0 1-47-1.7c-1.6-1.7-4.5-3.3-3.3-6a68 68 0 0 0 16.8-32c-1.8.6-3.3 1.7-5 2.4a68 68 0 0 1-29.5 5.9c-9 0-19.3-2-26.3-8-1.8-1.6-4-3.2-3.3-5.9a69 69 0 0 0 12.8-32.3q1.3-1.2 2.8-2.1c26-18.2 47.3-42.2 63.4-69.5 1.1-2.3 3.5-2.8 5.7-2a55 55 0 0 0 41.3-4 65 65 0 0 0 34.4-65.5 55 55 0 0 0-19.8-36 50 50 0 0 0-55-6 123 123 0 0 1-4.6 32.1 123 123 0 0 1-35 58.3c-1.3 1-2.7 2.6-4.4 3.1-1.3.1-3.5-.9-3.5-2.5-.3-1.9 1.7-3.3 2.7-4.8a77 77 0 0 0 10-21.2c4.3-14 6-29.3 6.1-44-.3-26-5-52.4-16-76.1-.6-1.8-1.8-3.9-1-5.8q3-7.6 3.2-15.6-6.6 4-13.4 7.6c-2.2 1.2-5.4 2.1-7.3 0-1.1-3.4-1-7.5-.7-11q.6-9.1 0-18.2c-6.9 3.7-13.3 7.5-20.6 10.4-2.5 1-5.3 0-7.7-.9a84 84 0 0 1-29.2-23c-4.7-5.3-9-10.6-11.8-17.3q-3.7-9-3.7-18.6c-13.7 7.3-31 6.1-46.1 6.2-16 .3-32.2-.8-48 1.1-1.8.2-4.8-.8-4.9-2.9-.5-2.8 1.8-4.6 3.5-6.5-13.2 3.6-26.1 8.7-39 13-3.6.9-7 2.6-10.4.4-3.5-2.5-2.6-6.2-2.3-10-3 0-6 1.4-8.8 2.3a722 722 0 0 1-41 14.3c-9.5 2.9-19 5-29.1 4.8q-7.4-.2-14 3a62 62 0 0 1-44.1-15 41 41 0 0 1-13-24.2 46 46 0 0 1 2-20 70 70 0 0 1 34.4-37.7c1.6-.8 3.9-2.4 5.7-1.3 1.7 1 2 3.3 1 5a50 50 0 0 0-5.8 57.8c4.4 7.3 10.9 14.2 19.5 16a89 89 0 0 1 20.5-40.6 206 206 0 0 1 49.4-41.6 297 297 0 0 1 114.9-41.3 176 176 0 0 1 66.5 2.7c17-22.2 42.4-37.3 70-41.7 30.7-5.4 63.9 3.6 86.9 24.8","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M585.6 130.3a95 95 0 0 1 75.2 29.9 89 89 0 0 1 21.6 42.3c.6 7 2 13.8 2.3 20.8 1.2 9.7 1.3 19.4 2.4 29.1q1.8 34 5.7 68c4 29 8 57.1 17.7 85 5.7 16.7 14 31.4 22.2 46.9 7.8 14.9 16.1 29.7 22.9 45.1 11.9 27.4 13.5 58.6 9.4 87.9a113 113 0 0 1-22.5 52c-4.5 5-9.7 9.9-15.2 13.7 4.4-12.3 6.3-25.6 5.7-38.6-.3-12.7-3.2-26-9.2-37.2-1.2-2.3-5.1-2-5.7.6a151 151 0 0 1-36.2 83 90 90 0 0 1-52.4 29.7 66 66 0 0 1-32.2-3c8.3-10.9 15.8-25.2 15.7-39.1.2-2.8-3.4-3.3-5.1-1.8a54 54 0 0 1-19.3 8.6 53 53 0 0 1-34.5-2.3c-1.2-.8-3.7-1.9-4.2-3.2a85 85 0 0 0 11.5-29.8c1.5-2 4.1-3 6-4.7a226 226 0 0 0 59-66.2c4.7.4 9.3 1.8 14.2 1.9a66 66 0 0 0 55-27.5 73 73 0 0 0 14.1-39 63 63 0 0 0-20.9-50 55 55 0 0 0 6.6-19 160 160 0 0 0-4.4-60 215 215 0 0 0-21-53.1 177 177 0 0 0-15.8-43.5 138 138 0 0 0-55.4-56.6q-1.8-1-3.8-1.1a59 59 0 0 0-44.4-24.4c-5-.8-9.9 0-14.9 0-3.3-2.4-7-3.1-11-3.4-6.1-.5-11 1.8-16.6-1.5a105 105 0 0 1 77.5-39.5"}},{"name":"path","type":"element","attributes":{"d":"M498.6 172.4c1 .4 2.3.3 2.9 1.4q-3.6 1-7 2.3a320 320 0 0 0-75.1 33.9q-12.4 7.5-23.5 16.7c-1.5 1.3-1.6 3.4-.5 5q2.2 1.3 4.1-.4a254 254 0 0 1 46.6-29.4 269 269 0 0 1 61.6-23c6.4-1 13.6-2.5 20-1.3 2.2.4 4.2 1.7 6.4 2.4 3 1.2 6.2.2 9.5.3q6.6-.1 13 1.1a53 53 0 0 1 32 19 92 92 0 0 1 17.3 44.1q1.7 11.5 1.6 22.9c0 2.2 0 5.7 3 5.5 2.2 0 3-1.6 3-3.5 0-21.1-3-41.8-12.4-61a127 127 0 0 1 36.4 33 156 156 0 0 1 27.8 66 255 255 0 0 1 1 78c-.5 3.3-1.3 6.8-1.1 10.1 1.3 3 5.2 2.3 5.5-1q2.5-13.3 3.2-27.1c1.6-16.3.9-32.1-.8-48.3.3 2 1.4 3.6 2.2 5.4a202 202 0 0 1 15.4 67.9c.3 11.7-.6 25.3-6.3 35.8a57 57 0 0 0-56-5.3c-.6-1.6-.5-4.2-2.8-4.4-1.7-.3-3.4 1-3.3 2.9.3 6.6.5 13.4-.2 20a131 131 0 0 1-22.6 58l-1 .5q.4-2.9 1.4-5.5c5-16.7 6.3-34.2 5.8-51.5-1.2-25-6.5-50.6-17.4-73.2 2.4-6 3-12 3.8-18.3.1-2 .5-4.1 0-6.1-1.2-2.4-4.1-1.8-5.7-.1q-5 4.3-10.9 7c-1.6.8-3.2 2.2-5 2.2 0-3.6.4-7.3.2-11 0-5.8.5-12.3-1-18-2.5-2.2-5-1-7.2.9q-9.3 5.3-19 9.6c-1.8.8-3.4.2-5-.4a78 78 0 0 1-24.8-19.2 65 65 0 0 1-13.4-19.4 40 40 0 0 1 2-33c1-1.6.5-4.1-1.7-4.4-2.7-.6-4 3-5 4.9-2 4.5-4 10.9-8.4 13.6-9.6 4-19.4 4.3-29.6 4.2h-48l-7.8.8c2-3 5.3-5 3.1-8.9-3.2-2-6.4-.7-9.8-.1-13.2 3.5-26 8.6-39 13-2 .6-4 1.4-6 1 .1-2.8 1.3-6.7-1-9-2-2.3-4.7-2-7.5-1.5-7 1.8-13.2 4.6-20 7-12.9 4.5-25.9 9.3-39.2 12.5-7.5 1.7-15.1 1.9-22.8 2-3.7 0-6.3 2.6-10 2.4a54 54 0 0 1-26-5 39 39 0 0 1-21.5-22.2 37 37 0 0 1 1.1-27 62 62 0 0 1 22-26.3c-1.6 4-3.3 7.8-4.3 12-4.5 19 .4 40.7 15.1 54.1 5.2 3.6 10 7 16.6 7.1q3.5-.1 4.2-3.5c3.4-20.6 18-39.2 32.8-53.2a266 266 0 0 1 93-53.9q19.6-6.6 40-10.7c24.7-4.5 51.4-6.2 76-.4"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long20":{"elements":[{"name":"path","type":"element","attributes":{"d":"M400 175c6.2 3.2 9 9.8 11.8 15.8 10-2 20.6-3 30.8-4.3 25.4-1.7 50.8-2.7 75.3 5.5 12.2 4 23 10 34.3 15.8 17.6 9.3 36.4 18.3 53.6 28.4a159 159 0 0 1 41 36 450 450 0 0 1 43.4 78.7c16.7 39 28.4 80.3 33.4 122.5q3.4 27.4 2.2 55c-1.5 26-6 52.1-17.5 75.8a98 98 0 0 1-35.4 41.5c-4.2 2.5-8.6 5.2-13.3 6.4q-3.3-1.2-1.7-4.4c2.2-3.8 5-7.2 6.7-11.2 5.4-11.7 9-24.5 11.6-37.1 2.5-11.9 3.8-23.9 2.7-36a254 254 0 0 1-17 31.4 254 254 0 0 1-48.6 55.4 261 261 0 0 1-55.7 38.2 51 51 0 0 1-12 4.4q-2.6.2-2.7-2.5c2.1-3.5 6-5.8 8.6-9a89 89 0 0 0 19.6-38.1c3.5-17.2.5-35-6.3-51a167 167 0 0 0-30.9-46.2q-.1 7.7.6 15.4c1 11 1.4 21.6 6.6 31.4 1 1.6 1 4.5-1.5 4.2q-12.9-.6-25.8-2.2a150 150 0 0 1-53.2-21.4 264 264 0 0 1-55.7-45.3A261 261 0 0 1 349 422.9c-6-22.7-10.3-46-11.8-69.5-.9-7-.7-14-1-21a309 309 0 0 1 4.5-56 336 336 0 0 0-54.5 40.6 429 429 0 0 0-65.8 74.2 18 18 0 0 0-3.2 9.2 217 217 0 0 0 109 224.3c3.3 2 7 3.2 9.8 5.6.7 2.4-.7 3.8-1.8 5.7-8.6 12.5-15.6 27-18 42-1 3.2-4.8 2.1-7 1.5a153 153 0 0 1-39.6-19 107 107 0 0 1-21.4-21.2 277 277 0 0 1-48.4 44.4c-1.6 1.1-3.3 1.4-5.2 1.9-1-2.5-1.2-3.7-.2-6.2 3.5-9.2 3.9-18.3 4.7-28 1.1-26.4 0-52.6-2-79-3-37-7.4-74.3-14.7-110.8a531 531 0 0 1-8-37.7c-1.3-8-1.2-15.4.2-23.3 3.7-20.2 12-39 21-57.3q10.7-22.6 22-44.8c10.1-19 19.8-37 33.5-53.6a66 66 0 0 1 18.6-16.4c6-3.2 12.3-4.4 19-5.9 16-3.4 32-8.2 47.8-12.4l27.7-6.8c4.5-8.8 10-18.3 17.5-24.9 5-4.2 12.2-6.7 18.3-3.5","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M393.6 179.3c3.5-.3 6.4 2 8.3 4.7 5.3 7.5 7.2 15.7 10.2 23.9 1.1 2.5 3 1.3 5 .9-.4-4.4-1.8-8.5-3.3-12.6 18-3.1 36.5-5.2 54.8-5a137 137 0 0 1 69.4 15.7q17.9 9.4 35.7 18.5c13.8 7.3 28.5 14.5 41.2 23.7 10.3 7.9 21 17 28 27.9a441 441 0 0 1 44.6 82.6c18 44.1 30.3 92 32.5 139.8 1 14.1.2 28-1 42a184 184 0 0 1-15.6 59.8 93 93 0 0 1-34.7 40.4c7.1-15 11.3-30.9 14.3-47.2 2.3-13 2-26 .4-39-.6-3.8.6-7-2.8-9.7-1 .9-2.4 1.6-2.9 2.8-1.4 4-2.2 8.2-4 12-3.7 9.2-8.6 17.9-13.6 26.4a253 253 0 0 1-56.8 64.2 270 270 0 0 1-44.5 30.6 88 88 0 0 0 19.5-51.3c.6-18-5-36.2-13.7-51.9a181 181 0 0 0-28.4-37.7q-1.7-1.8-3.7-3.3-3.4-.4-3.8 2.9a114 114 0 0 0 0 19.5c1 10.6 1.8 20.5 5.3 30.6a129 129 0 0 1-22.9-2c-19.2-4-38-13.6-54.2-24.3a250 250 0 0 1-50.7-43.4A230 230 0 0 1 375 474a302 302 0 0 1-29.2-94.6q-2.9-19-3.5-38c-.8-12 0-24 .6-36a275 275 0 0 1 25-96.5c4-8 8.5-16.2 14.4-22.8 3-3.4 6.6-6.4 11.3-6.8"}},{"name":"path","type":"element","attributes":{"d":"M361.2 209.6q-13 28.6-19 59.5a308 308 0 0 0-49.4 34.5 459 459 0 0 0-63.9 66.1 246 246 0 0 0-31.5 50.5c-2 4.9-4.2 10-5 15.2.4 2.8 4.1 3.4 5.2 1 1.2-2.6 1.8-5.5 2.8-8.2 2.7-7.3 6.3-14.3 10-21a223 223 0 0 0 118.8 225.7 128 128 0 0 0-18 41.3c-16.6-6-34.6-13.5-47.6-25.8-4.7-4.5-9.2-9-12.5-14.6-1.3-2-4-2.5-5.6-.4a291 291 0 0 1-43.5 42q2.9-15 2.9-30 .8-16 0-32-.5-24.6-2.6-49c-3.3-37-8-74.6-15.9-111-2.1-7.8-3.5-15.6-5.1-23.5-1.6-8.2-3-16.1-1.6-24.5 3.8-26.3 16.1-49 27.3-72.5q8.5-17.4 17.4-34.7c9.7-18 19-35.1 32.2-50.8a58 58 0 0 1 16.1-14c5.2-2.6 10.5-3.6 16-4.9 16.6-3.5 32.9-8.3 49-12.8l23.5-6"}}]}]},"long21":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M492.6 200.2a209 209 0 0 1 42 4.8 186 186 0 0 1 99.8 58.6A205 205 0 0 1 665 315a176 176 0 0 1 15.1 62.5q1.4 18.6-1.2 37c-.9 5.4-.5 10.3-3.4 15.1-4-.8-7.4-3.1-11.4-4a121 121 0 0 1-60 68.6 63 63 0 0 1-41.6 5.5c-1.8 0-2.6-2.7-1.7-4a96 96 0 0 0 14-42.2 129 129 0 0 0-22.1-79.2c-7.3-10-16-19.3-24.5-28.5q-5.6-6.4-10.7-13.3 4.6 19.5 14.1 37c.6 1.2 1.5 2.5 1.1 4-1 1.6-2.6 2.1-4.3 2.6-4.5 1-9.3 1.4-14 2.2-34.5 3.8-70 8.7-104.9 11-3.8-1.8-7.1-5.8-10-8.8a153 153 0 0 1-27.7-48.3q-2.6-6.6-4-13.6c-.6 8 1 15.2 2.7 22.9q5.6 22.7 16.9 43.1l2.4 5q-1.4 1.3-3.3 1.5c-7.1.9-14 .4-21 .6a74 74 0 0 1-21.1-28c-11.3-24.5-14.1-51.1-11.3-77.7a129 129 0 0 0-14 66.5c1 11.8 3.8 24.8 10.8 34.6 1.4 2.3 4.3 4.2 3.4 7.2-1.1 2.5-4.5 2.9-6.8 3.2q-11.6.7-23 2c-21.1 1.3-41.8 4.7-63 5.5-8.2 1-16.3.5-24.5 1q-2.8 18.1-1.5 36.5 1.5 29 9.1 57c.6 2.4 2.3 4.6 2.7 7-.3 2.8-3.6 3.4-5.3 1.4a107 107 0 0 1-17.4-24.5 133 133 0 0 1-11.8-46c-.8-14 .3-28.6 6-41.7.5-1.5.7-2 0-3.4a103 103 0 0 1-.6-73 151 151 0 0 1 51.3-66.9c36.8-28.2 83-43.4 129-47 17.8-2 36-1.2 54-1.7q12.5-1.1 25-1.8 18-2 36-1.6"}},{"name":"path","type":"element","attributes":{"d":"M623.7 482.5q1-.8 3-.4l.6.6a13 13 0 0 1-3 10.4c-2 1.6-4.9-.3-4-2.7 1-2.6 1.8-5.5 3.4-7.9m0 58.2c1.8-.4 4 .6 5.8 1q8.9 2.1 18.1 1.2c2.3-.3 4.8 1 4.8 3.5-.9 3-2.3 5.8-2.8 9a47 47 0 0 0 4.7 29.3 67 67 0 0 0 31.4 30.6c2.6 1.3 6 2 8 4.1 1 2.3-1 4-3 4.2-15.3 2.3-30.6 5.3-46.1 4.9a69 69 0 0 1-35.8-9.5c-4.3 7.4-8.1 15.6-13 22.5q-2 2.9-5.2 2-3.9-1.5-7.4-3.7-13.2-7.4-25.1-16.9c-1.5-1.4-4.1-3.3-4.3-5.6-.2-2.7 3-3.7 4.7-5a228 228 0 0 0 62.9-69.1c.6-1 1-2.4 2.3-2.5m-354.6 38.2q12.3 13.8 26.7 25.3c3.5 2.9 7.5 5 10.9 8 1.7 1.3 1.8 4-.1 5.1a65 65 0 0 1-33 9.7c-9.5.3-19 .5-28.5-.5-3 0-4.2-3.7-1.6-5.3q6.1-3.8 10.4-9.5c5-7.1 8.7-15.8 10.3-24.3.3-2.5.2-5.2.7-7.7.9-1.5 3-2.5 4.2-.8"}}]},{"name":"path","type":"element","attributes":{"d":"M521.6 208.8q13 1.8 25.5 5.8a191 191 0 0 1 54.4 27c13 9.5 25.3 21 34.6 34.3a200 200 0 0 1 19.9 33.3 191 191 0 0 1 18 63.2c.7 11 1.5 22.2-.3 33q-.7 8.3-2 16.4l-5.5-2.4c.6-3.1 2-6.8 1.4-10-1-2.7-4.7-2.2-5.4.4q-4 19.6-14.6 36.6a114 114 0 0 1-43.2 40.8 61 61 0 0 1-36.4 7.4c5-9.7 9.2-19.5 11.5-30.2 1.6-9.6 2.5-19.2 1.4-29a156 156 0 0 0-6.4-30.9c-4-12-10-23.5-17-34-7.3-10.2-16-19.4-24.5-28.6a144 144 0 0 1-18-25c-2.9-5-2.8-11.7-3.1-17.5.5-8.3 1-16.7 2.4-25 .3-1.3-.5-2.6-.9-3.8-1.6 0-3.6-.7-4.5 1-1.1 2.4-1 5.4-1.4 8a114 114 0 0 0 .2 37.6c1.4 8.7 4.1 17.3 6.7 25.7a166 166 0 0 0 11.5 27.5c-7.3 1.4-14.5 2-21.8 3-21.7 2.3-43.7 5.3-65.5 7.3-7.6 1.1-15.4 1.2-23 2.2l-5.5.2-2.4-2.8a145 145 0 0 1-37.3-78.7c-.4-1.8-.2-4-2.3-4.7-2.1-1-3.6 1.1-4.3 2.8a70 70 0 0 0-2 25.7c2.3 21.3 9.5 41.4 19.4 60.3q-5.9.8-11.6.4c-2.3-.2-3.7-2-5.2-3.5a88 88 0 0 1-19-33 141 141 0 0 1-5.3-68.2 79 79 0 0 1 16.5-38c1.6-1.9 4.3-3.6 4.8-6-.2-3-2.8-4.1-5-2.2a65 65 0 0 0-18.5 30.2c-.8 3.7-3.2 5.9-5.2 9a134 134 0 0 0-18.8 54c-.4 7.3-1.5 14.8-.7 22a78 78 0 0 0 11.7 40.2v.6c-8.6 1.2-17.2 1.5-25.8 2.4-5.2.9-10.4.7-15.5 1.4-7 1-14 1.4-20.9 2.4-10.2.5-20.5 2.2-30.7 2q-3.2-9-4.7-18.2c-2.8-21.9.4-44.2 8.7-64.6a110 110 0 0 1 38.4-50.5c2-1.2 1.8-4.7-.7-5.2-2.6-.5-4.1 1.2-6 2.5a111 111 0 0 0-33 41.1 144 144 0 0 0-14.7 60.9q.1 17.7 5.5 34.6-8.7.5-17.4.2c-8-15.4-12-32.5-11.2-49.8.8-8.5 2-16.9 4.7-25a136 136 0 0 1 39.3-58.7q17.1-15.4 37.4-26.5c30-16.4 63.3-25.8 97.3-28.7 9.4-1.8 18.6-1 28-1.3 9.7-.2 19.4 0 29-.7q17-1.1 34-2.5c18.3-2 37-1.4 55 1.8m-320 192.4q1 2 2.4 3.8c1.9 1.3 3.8 1 6 1-2.3 14.3-1.8 29-1 43.4q1.6 19.5 5.7 38.6-1.5 0-2.2-1.5a93 93 0 0 1-10.5-25.3 128 128 0 0 1-4.3-33.8q-.4-13.5 3.9-26.2M626.4 547a84 84 0 0 0 18.6 1.7c-4 13-2 27 4.2 39.1a71 71 0 0 0 21.4 25.5c3 2.4 6.3 3.9 9.1 6.3-10.6 1.8-21.3 3-32.1 2.8a60 60 0 0 1-37.1-9.7c-1.7-1-3.6-.7-4.7 1-5.2 7.5-8.8 16-14.1 23.6-5.5-2-10.4-5.7-15.3-8.7-5-3.4-10.6-6.7-14.7-11.1a223 223 0 0 0 30-25.9 220 220 0 0 0 34.7-44.7m-356.1 41.6a278 278 0 0 0 21.4 20c2.4 2.2 5.1 3.4 7 6-13 7.6-31.4 7.4-46 7.2 2-2.5 4.3-4.5 6.2-7q7-10.4 10.4-22.5l.2-.8z","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long22":{"elements":[{"name":"path","type":"element","attributes":{"d":"M503.6 187.6a94 94 0 0 1 36.2 7.6 84 84 0 0 1 26.8 22.2c7.2 8.5 13.8 17.7 20.2 26.8 7.7 10.6 14.4 21 24.3 29.7a77 77 0 0 0 19.2 12.8c9.6 4 19.8 5.5 30.1 5.6 7.3.3 14 .2 20.7 3.5a31 31 0 0 1 16.3 20.6c1.7 5.8 1.7 12 3.6 17.7a37 37 0 0 0 12.6 16.3 81 81 0 0 0 34 14.7c10.7 2.1 20.8.2 31.5 2.9 7 2 11.8 7.6 15.2 13.7a40 40 0 0 1 3.4 19.7c-.2 6.4-2.7 12.5-2.7 18.8.9 4.7 5.4 10.3 10.6 9.8q6.2-.6 10.6-5c1.8-1.4 2.9-3.3 5.5-3 3 1 2.6 4.9 3 7.4a85 85 0 0 1-18.5 56.6 122 122 0 0 1-40.4 34.3c10.5 4.2 22 4.2 32.7 1 2.7-.8 5.4-2 8.1-2.7 2 0 3.2 1.8 2.7 3.6-5.8 24-20.5 45.8-39 62a100 100 0 0 1-55.7 26 25 25 0 0 0 7.9 11.3c4 3.5 9 5 13.3 7.9 1.4 3.2-2 4.6-4.1 6a74 74 0 0 1-37.1 7.5 68 68 0 0 1-37.5-11.3 54 54 0 0 1-15 17.3 146 146 0 0 1-49.6 24.4 126 126 0 0 1-41 5.2A43 43 0 0 1 536 675a3 3 0 0 1-1.4-4.5q2.1-1.6 4.5-2.7a30 30 0 0 0 15.7-28.1 77 77 0 0 1-37.4-3 89 89 0 0 1-46.2-34c-4.5-6.9-8.3-15-9.3-23.3-.1-1.6-.5-3.5 1.1-4.6 2-1.4 3.6 0 5.4.8a51 51 0 0 0 25.2 5.6 27 27 0 0 0 19-7 56 56 0 0 0 16.3-34.8c1.9-13.4-1.9-26-7-38.2s-12.1-23-17-35.2a43 43 0 0 1-3.6-17.6c.6-18.1 11.2-35.2 22.6-48.6 3-3.7 6.4-7.8 7.6-12.4a21 21 0 0 0-3.6-16.4c-2.2-3.4-5.8-5-9.5-6.1-8.3-2.5-17.8-2.4-26.3-4-4.7-1.1-9.1-3-12-7-3.2-4.2-3-9.5-2.7-14.5.4-4.7 2.7-9.4 2.5-14s-5.3-6.1-8.8-7.5c-11.1-4.2-21.6-2-33-.7-15.9 2.4-32 7.6-48 9.3q-6.2.6-12.5 1a99 99 0 0 1-37.5-7.7c-9.4-4.2-19.5-11-22.9-21.2-2.3-6.9-.9-13 .5-20a81 81 0 0 0-18.1 6.8 68 68 0 0 0-25.9 21c-4 6-5.8 13.2-4.3 20.2 2.1 10.3 7.4 18.8 7.6 29.8.2 7-3.4 12.6-8 17.5-5.3 5.6-11.4 10.5-17.1 15.8a81 81 0 0 0-19.5 25.5 51 51 0 0 0-5.5 29.2c2.3 9.7 9.8 15.6 15.7 23 7 9.1 14.4 16.8 17.8 28.2a74 74 0 0 1 1 34.8c-1.8 9.3-6 18.5-7.2 27.9 5 9 12 17 18.8 24.7a174 174 0 0 0 25 23c1.4 1 3 2 4 3.3a42 42 0 0 1-6 19.5 55 55 0 0 1-42.4 27 62 62 0 0 1-38.7-8.7 59 59 0 0 1-25.5-31.9 151 151 0 0 1-17.8 6.4 110 110 0 0 1-51.5 2c-19-4-36.8-13.4-50.7-27-1.3-1.6-2.7-2.8-1.6-5 .7-3 4.5-2.7 6.8-3.3 18.7-3 34.3-17 40.2-35-8 4-16.2 7-25.2 7a45 45 0 0 1-29.3-9.6A67 67 0 0 1 38 516.2a116 116 0 0 1-3.8-41.6c.2-1.8.5-3.5 2.5-4 2.6-.5 5.3-.3 8-.4 4.4 0 8.9-.7 13.4-1.2a59 59 0 0 1 1.1-42.8 55 55 0 0 1 26.6-27.7c6.3-3.1 13-4.5 19.8-6a52 52 0 0 0 25.2-12.9c7.4-6.9 11.5-18 14.7-27.3 4-11.1 5.2-22.4 7.2-33.9a58 58 0 0 1 18.1-32.8c10-9 22.4-15.4 35.3-19 14.7-4.1 31.1-5.1 46.3-7.7a47 47 0 0 0 18.1-6.6 45 45 0 0 0 13.7-15.3 71 71 0 0 1 45.4-33.8c12-2.4 24.4-.8 34 7.2 11.3-6.8 23.6-11 36.5-13.8 20.6-4.9 42.4-6.8 63.5-8.4 13.5-.6 26.7-1.4 40-.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M474.6 193.6c20-.3 40.8-1.5 60 5.8 16.2 7 27.5 21.4 37.8 35.3 9.7 12.6 18.3 27.1 29.3 38.6q8.3 8.4 18.3 14.8a71 71 0 0 0 27.4 9.4c7.7 1 15.5.6 23.2 1.5 8 1 14.8 5.8 18.5 12.9 5 9.2 3.1 20 8.1 28.7a49 49 0 0 0 15.5 16.7 89 89 0 0 0 48.9 15.2q6.8-.2 13.5.7c7.2 1.1 12.7 8 15.1 14.5a48 48 0 0 1-.2 23.5c-.9 4.5-1.8 10.1.5 14.4 2.5 5 7 9.7 13 10 5.8.6 10.2-2 15.1-4.7 1 11.9-2.3 24.4-7.4 35a111 111 0 0 1-52.8 51.1c-2.2.9-3.1 3.2-1.5 5a25 25 0 0 0 8.5 4.6 58 58 0 0 0 36.1.2q-2.5 8.8-6.7 16.8a126 126 0 0 1-38.3 43.7 87 87 0 0 1-48.4 17.3c-.3 1.6-.9 3-.1 4.5 2 5 3.6 9.7 7.3 13.6 3.4 3.8 7.4 5.7 11.5 8.5-8 3.7-16.5 5.2-25.2 5.5-12.2.3-24.6-1-35.6-6.6-3.1-1.5-5.4-4-8-6.1-1.3-1-2.7-.7-4-.2-1.6 2.6-2.5 5.4-4 8-3 4.5-7 8.4-11.1 11.9a123 123 0 0 1-29 17 148 148 0 0 1-45.7 11.7q-9.5.9-18.8-.8c4.2-3.9 8.2-7.5 11-12.6 4.4-7.8 6-17.1 3-25.7-4.5-.6-8.4 1.2-12.8 1.3a81 81 0 0 1-55.2-19 67 67 0 0 1-22.8-32.8c10.3 3.7 22.2 5.7 33 3.7 9.5-2 16.7-8 22.2-15.8a69 69 0 0 0 11.2-46.3 116 116 0 0 0-11.3-34.1c-5.1-10.3-11.1-20.1-14.8-31.3a37 37 0 0 1-.6-18.4 76 76 0 0 1 13.4-28.1c4.1-6.1 9.7-11.4 13.3-17.6 2.4-4.6 4-10.4 2.8-15.5-1.6-7.1-4.7-14.2-11.4-17.8-8.4-4.4-19-4.8-28.3-5.9-3.5-.6-7.7-1.1-10.7-3.1s-4.3-5.6-4.4-9.2c0-6 3.3-12 3-18-.1-4.3-2.6-8-6.2-10.2-9-5.3-20-6.7-30.2-5.3a211 211 0 0 0-32 5.2 150 150 0 0 1-49.8 5.7q-13.3-1.7-25.7-6.8c-6.4-3-13.7-7.4-17.4-13.6-3.9-5.9-2.8-14.4-.7-20.7 3.3-9.5 9.8-18 16.9-25 7.2-7.4 17.2-12.4 24-20.1l-2.4-2.3c-2.1-.7-3.5.6-5.1 1.8q-4.5 3.7-9.1 7c-11.8 8-22.2 19-28.4 32q-5.8.4-11.3 2.3a95 95 0 0 0-28.6 15.4 44 44 0 0 0-16.6 24.6c-1.8 8.7.7 16.4 3.7 24.5 2 6.2 5 14 3.4 20.4-2.2 7-8.8 12.2-14 17-7.7 6.9-15.3 13.1-21.3 21.6-9 12-15.4 27.4-14.8 42.5.5 9 5.5 16.3 11.3 22.9q9.1 10 17 21c6.5 9.2 8.5 20 8.1 31.1.3 11.5-3.7 21-6.7 31.8a78 78 0 0 0-2.9 33.7 50 50 0 0 0 6 15.1c.9 1.7 3.5 1 5 1.2.1-1.9.7-3.5-.3-5.3q-2.9-5.3-4.5-11.2a43 43 0 0 1-1-14.2q6.8 9.1 14.3 17.8c8.9 9.5 18.5 19.2 29.2 26.7a47 47 0 0 1-36.5 36.8 55 55 0 0 1-60.4-26.9c-2.7-4.6-3.9-9.6-5.8-14.5l-3 .6c-19.4 9.8-42 13.8-63.6 10.6A96 96 0 0 1 76 594.4q10.6-2.2 19.9-7.7a58 58 0 0 0 26.1-37.3 7 7 0 0 0-.7-4.7c-2-.4-3.2-.6-4.9.5a60 60 0 0 1-14.3 6.8 40 40 0 0 1-31.3-1.9 55 55 0 0 1-25.3-30.5 106 106 0 0 1-5.5-43.3q8.4.2 16.7-1c3.2-.5 6.3-.6 9-2.8-1.5-5-3.4-9.6-4.3-14.6a49.6 49.6 0 0 1 31.8-56c8.4-3 17.5-3.4 25.7-7.2 8.4-4 16.4-9.4 21.7-17.3a98 98 0 0 0 11.6-26.2c3.5-10.9 4.6-21.6 6.7-32.8a52 52 0 0 1 7.9-18.8 68 68 0 0 1 29-22.8c19-8.4 38.6-8.6 58.8-12.1a46 46 0 0 0 27.7-14.6c6-6.1 8.8-14 14.6-20.3a62 62 0 0 1 36.7-21.1c8.1-.8 17.7-.1 24.6 4.6-3.5 3.1-7.6 5.6-11.3 8.5-1.1 1.1-3 2.3-1.9 4.1.7 2.4 3.4 2.4 5 1 5.7-4.1 11-8.5 17.2-11.9a125 125 0 0 1 25.4-10.3c26.7-7.3 54.4-9.4 82-11","fill":{"type":"color","name":"hair"}}}]},"long23":{"elements":[{"name":"path","type":"element","attributes":{"d":"M614.6 121.5c10.3.5 20.8.8 31 3A90 90 0 0 1 688 150a90 90 0 0 1 15.5 24.4c7 17.1 11.5 34.8 15 52.9q2.8 15 3.3 30c0 5.5.1 11.9-2.1 17a55 55 0 0 1-18.7 20.4 124 124 0 0 1-44.9 20.7c13.1 33.3 16.9 70 12 105.4-.6 2-.5 5.3-3.5 5a60 60 0 0 0-34.2 2.8 35 35 0 0 1-14.3 39.3 24.6 24.6 0 0 1-29.7-2.4c-11.6-10.7-11.6-30.5-2.3-42.7 1.3-1.8 4.7-1.7 5.2.7.1 3.6-1.3 6.8-.3 10.6s4.3 7.7 8.6 7.3c5.2-.4 7.5-7.2 6.3-11.6a179 179 0 0 0-38.7-78.1 80 80 0 0 0-24-18.9c-2.8-1.4-5.8-1.8-7.3-4.9-1-1.5.5-3.9 1-5.4 3.5-9 2.5-19.6-2.9-27.7a64 64 0 0 0-29.6-22.2c-21.2-8.7-45-11.7-67.8-11.8q-32.6-.1-64.2 7.4-2 .4-3.9.4c-2.6-1-2-4.7-1.2-6.8 4.5-11 12.3-20.7 19.3-30.2a249 249 0 0 0-31.8 28c-3.1 3.4-6.2 6.3-7.2 11-4.8 1.8-9.9 2-14.8 3.3a199 199 0 0 0-59.2 25.4 97 97 0 0 0-27.9 25.2c-1 1.8-3.3 2-4.6.3a26 26 0 0 1-5.6-15.5 50 50 0 0 1 5.5-23c-7.5-2.9-14.7-5.5-21.4-10a52 52 0 0 1-20.8-20.2c-3-5.8-2.2-13.1-1-19.3a228 228 0 0 1 18.4-54 85 85 0 0 1 21.8-31.2c6-4.9 13.2-6.7 20.6-8.5 9.3-2.2 19.5-2 29-2 7.7.4 15.4.7 23 1.8 9.6 1.4 21.1 2 29.8 6.7a33 33 0 0 1 15.6 22.7 85 85 0 0 1 2 30.4c18-4 37-6.3 54.2 2.2a219 219 0 0 1 106.9-5.6c1.7-12.5 2.3-26.2 6.5-38a43 43 0 0 1 14.9-19.2c5.2-4.2 11-7.2 17.1-9.8a161 161 0 0 1 59-10.9","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M602.6 128c14-.5 27.5-.4 41.2 2.2a70 70 0 0 1 27 13 79 79 0 0 1 25.4 29.6c6.6 14.8 11 30.7 14.4 46.4q2.5 10.4 3.8 21.2c.9 9.2 2.4 17.9 1 27-.5 5.1-4.2 9.8-7.4 13.4-7 7.1-15.6 12.8-24.2 17.7-9.7 5-19.2 9.3-30 11.1a187 187 0 0 0-131.5-109.2c1.7-9.3 2.2-18.7 4.3-28a38 38 0 0 1 7.5-17.5q6.3-7.3 14.6-12.4a129 129 0 0 1 53.9-14.5m-297.5 20.6c9.2 1.5 19.4 1.8 28 5.2a26 26 0 0 1 13.9 15.4 88 88 0 0 1 3.4 35 216 216 0 0 0-74.8 39.1 145 145 0 0 0-33.7 37.5 84 84 0 0 1-35.2-20.5 20 20 0 0 1-5.7-17.9 213 213 0 0 1 20.3-60.4c5-9.8 10.2-18.9 19-25.9 5.2-4.2 12.8-6 19.3-7.4a171 171 0 0 1 45.5 0"}},{"name":"path","type":"element","attributes":{"d":"M486.6 201.5c39.5 2.1 78 16 108.8 41 23.5 18.9 42 43.6 53.6 71.4a198 198 0 0 1 13.3 104.9 75 75 0 0 0-38.5 6.3c-.3 3 .8 5.5 1.5 8.3a28 28 0 0 1-2 17.2l-.3.6a25 25 0 0 1-18.4 14.6A18 18 0 0 1 588 458a27 27 0 0 1-4.5-17.6l1.8.2c1.8 2.1 3.3 4 5.8 5.4 5.8 3.4 14 .9 17-5.2a20 20 0 0 0 1.3-15.2 193 193 0 0 0-28.3-63.7c-11-15.2-23.1-28.7-40.7-36.2 3.1-8.7 4-18 .5-26.7-5.2-14-18-23.6-31.1-29.7a174 174 0 0 0-66.1-14.3c-12.6-1-25.5.2-38 1.1q-16.6 1.8-33 5.3 1.7-5.4 5.2-10a193 193 0 0 1 26.6-32.4c2.3-2.5.8-4.6-2-5.7q-14.4 8-27.7 18.1-9 7.4-17.4 15.6c-6 6-12 11.4-16.3 18.8-18 2.9-35.4 8.9-52 16.8a142 142 0 0 0-47.6 34.6c-2.7-6-2.4-12.5-.6-18.7a81 81 0 0 1 16.8-29.2c8.2-9.9 17.8-18.2 28-26a210 210 0 0 1 63-32.3c9.3-2.8 19.2-5 29-5.6 6.8-.1 13.4-.4 20 1.3 4.3 1 8 2.9 12 4.6a221 221 0 0 1 77-9.9"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long24":{"elements":[{"name":"path","type":"element","attributes":{"d":"M452.6 158.7q13.1 1.3 25.3 6.4c12 5 24 12.4 32.6 22.4 5.4 6.7 10.2 14.1 15 21.4 11.4-2 22.4-4.9 34-5.7a167 167 0 0 1 43.3 1.1 97 97 0 0 1 43.3 21.5 100 100 0 0 1 25.2 30 195 195 0 0 1 20.5 59.4c3.5 17.3 5.2 34.7 13.3 50.8 5.9 12 15.9 22.3 26 30.9 11 9.1 23.3 17.4 31.9 29a45 45 0 0 1 10 29.5 48 48 0 0 1-9.2 25.2c5.4 5.8 13.1 7.3 20.8 7 4.4-.4 9.3-1.5 12.6-4.6 1.6-1.2 2.8-3.2 5.1-2.4 2.4.7 1.7 4 1.7 5.8a117 117 0 0 1-17.5 48 97 97 0 0 1-43.4 38.5c-9.4 4-19.6 4.7-29.7 3a104 104 0 0 1-54.8 42.8 81 81 0 0 1-41.7 3.5 53 53 0 0 1-55.1 17.9 38 38 0 0 1-19.5-12.4c-1-1.4-1.6-3.4 0-4.6 2.4-2 5.4-3.3 8-5a228 228 0 0 0 38.2-31.8 210 210 0 0 0 33-43q1.8-3.5 5.6-2.3c5.8 2.1 11.4 1.5 17.4 1.7a134 134 0 0 1-30.2-66.9 105 105 0 0 1-35.2-35c-9.9-16.1-16-34.5-21.4-52.5-6-19.7-12.5-38.6-22.3-56.8-4.4-8.2-9.3-16.4-15.5-23.4s-13.7-13-22.3-16.7a69 69 0 0 0-20-3.8q-3.3-.5-2.5-3.7c1.5-4.7 4-9 5.8-13.6q-10.5 5.5-20.3 12c-1.2.7-2.6 1.8-4 1.6-2.1-.8-2.1-2.6-2.8-4.3-3-10.3-11-18.1-20.5-22.9a50 50 0 0 0-19-5.3 71 71 0 0 1 20.3 22q1 2.2 2.9 3.9c-.5 1.6.3 4.4-2 4.8-3.4 1.1-5-4.4-6.6-6.5a58 58 0 0 0-25-23.7 59 59 0 0 0-15.4 5.9c7.7 4.2 14.4 10.6 20.8 16.6.1 2 .6 3.5-1.6 4.5-3 .5-5.4-3.4-7.5-5.1a55 55 0 0 0-17.4-12.4q-9 6-16.8 13.8a165 165 0 0 0-31.4 51.2q-10.3 25.2-18.8 51.1c-9 25.3-19.1 50.8-31.4 74.7a221 221 0 0 1-29.2 44.8q-10.6 12.3-24.4 21.1a135 135 0 0 0 12.4 24.8A262 262 0 0 0 281 591c1.9 2.2 5.5 4 3.6 7.3a44 44 0 0 1-25.2 23 68 68 0 0 1-74.6-21A48 48 0 0 1 174 569c-5.7-.2-11.2-.5-16.6-2.1a79 79 0 0 1-39.4-28 112 112 0 0 1-22.7-57 99 99 0 0 1 2.7-36.3c.5-1.5 1-4.6 2.7-5 3.3 0 6.6 1 9.9 1.2a47 47 0 0 0 33.4-12c11-9.9 17.4-24 20.6-38.2-3.2-3.2-6-6.5-7.5-10.7a53 53 0 0 1 1.2-37.7 150 150 0 0 1 33.3-51.8 196 196 0 0 1 45.1-33.9c11.8-6.7 23.5-13.4 35.8-19.2 20-9.7 39.3-17.4 58.1-28.9 19.5-11.8 38-27.7 58.4-37.6a147 147 0 0 1 33.8-12.2c10-2 19.8-1.9 29.8-1","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M431.6 164.4q8-.4 16 0a88 88 0 0 1 59 27.9Q515 203 522 214c1.5 2.5 4.1.7 6.1.2a206 206 0 0 1 39.7-5.5c14-.4 29.4-.5 42.8 3.8a103 103 0 0 1 58.6 52.3 189 189 0 0 1 15.7 47c4 19.1 5.7 38.3 14.3 56A100 100 0 0 0 723 398c7.4 6.7 15.6 12.3 23 19a59 59 0 0 1 20.3 29.4 38 38 0 0 1-7.4 30.2c-1 1.7-2.3 2.7-1.5 4.8 2.3 5 6.5 8 11.5 9.9a39 39 0 0 0 28.5-.5 114 114 0 0 1-34.8 62.6c-10.3 9-23 16.4-37 17.4-4.5.5-8.7-.5-13-1.4q-2.3-.5-3.4 1.6a98 98 0 0 1-59 43.9 71 71 0 0 1-33.6 1c-2-.6-3.2.7-4.3 2.2a44 44 0 0 1-20.2 14.8 42 42 0 0 1-43.2-6.7q14.9-9.1 28-20.6a233 233 0 0 0 49.3-58.1 84 84 0 0 0 24 1 60 60 0 0 0 22.3 14.2l2.8-1.1c-.2-1.6.7-3.7-1-4.5-3.4-1.7-7-3-10.1-5.2a100 100 0 0 1-30.9-36.8l-.3-.5c-6-11-9.9-23.2-12.5-35.5a98 98 0 0 0 25.1 7.8c9.8 1.3 20 .8 29.5-2 2-.7 3.8-2.3 2.9-4.5-.6-2.5-3-1.8-5-1.4a62 62 0 0 1-28.9 1.4A86 86 0 0 1 602 459a107 107 0 0 1-23-31c-9.3-18.5-13.8-37.3-20.3-56.6a245 245 0 0 0-25.4-55.6 75 75 0 0 0-32-29c-6.1-2.9-12.3-3.5-18.9-4.5 2.1-5.3 4.6-10.5 6.4-16q.8-3.4-2.5-4.7c-2 .2-3.8 1.2-5.5 2q-11.2 6-21.9 13c-2.4-5.3-4.7-10.4-8.9-14.7a55 55 0 0 0-32.4-16.4 52 52 0 0 0-30 6q-15.8 8.5-28.2 21.7a156 156 0 0 0-20.8 30.2c-16.6 31.9-25.3 65.8-38.5 98.5a396 396 0 0 1-37.2 74.9 119 119 0 0 1-39.3 38.5 86 86 0 0 1-26 9.2c-2.6.5-5.5.9-7.9 2-2 1-1.3 2.8-.8 4.5l.2.1c3.3 1.4 7.1-.2 10.5-.8q13.4-2.7 25.8-8.8 4.5 11.1 10.7 21.5a270 270 0 0 0 42.3 54.2 40 40 0 0 1-25.8 19.9 62 62 0 0 1-64.4-22.3 39 39 0 0 1-7.9-22.4c-.2-2.8.8-6.2-1.2-8.5-1-1.2-3-1-4.5-1a58 58 0 0 1-37.3-13.2 97 97 0 0 1-31.6-47.3c-5.5-17.9-6.6-37-1.9-55.1q7.4.6 14.8.2a53 53 0 0 0 35.2-18.9 82 82 0 0 0 16.8-36.2c.5-2-.2-3.8-.8-5.8-1.9-1-3.7-1.7-4.8-3.6-3.7-6-5.2-13.6-4.8-20.6.9-12 6.1-24 12-34.5a153 153 0 0 1 31.4-39.5 210 210 0 0 1 37.6-26.3 463 463 0 0 1 40.6-21.4c17.7-8.4 35-15.6 51.4-25.7 22.1-13.1 41.4-31 65.2-40.8 10.7-4.7 21.5-8.6 33.2-9.8"}},{"name":"path","type":"element","attributes":{"d":"M414.3 251.4a50 50 0 0 1 19 5.3 39 39 0 0 1 20.5 22.9c-5.6-.4-10.7-2.3-16.3-2.3-1.3-1-2-2.5-3-3.9a71 71 0 0 0-20.2-22m-10.4.5c10.9 5 19 13.6 25 23.7-6.6.3-13-1-19.6-1.2-6.4-6-13.1-12.4-20.8-16.6a60 60 0 0 1 15.4-6m-21.1 9.6a55 55 0 0 1 17.4 12.4c-6.6.1-13 0-19.6.5-4.9 0-9.7 1-14.6.9q7.7-7.8 16.8-13.8"}}]}]},"long25":{"elements":[{"name":"path","type":"element","attributes":{"d":"M418.6 177.3c19.8-.3 40.2.3 59.8 3.5a199 199 0 0 1 48.1 13.6c15.3 7 28.7 18 38.7 31.4a24 24 0 0 1 4.4 12.2 137 137 0 0 1 54.7 18.7 127 127 0 0 1 52.4 60.7 126 126 0 0 1 9 43c0 22-5.7 44.1-17 63.2a4 4 0 0 1-4 2c-3.7-.1-7.3-.8-11-1.2a71 71 0 0 1-20.2 36 115 115 0 0 1-46.7 28c-2.1.6-5.3 1.7-6.6-.7-2-3 .3-8 .7-11.3a173 173 0 0 0-41.4-145 125 125 0 0 0-68-40c-1.6-.5-3.8-.7-3.9-3q-.5-8.9-7.6-14.3c-7-5.2-15.9-7.6-24.4-5.6a103 103 0 0 0-45.9 25 170 170 0 0 0-37.7 52.3c-11.3 22.4-20.8 46-31.1 68.8a321 321 0 0 1-33.3 58.8c-11 15-23.8 29-38.5 40.5a171 171 0 0 1-43 24.2 110 110 0 0 1-30.5 7.3c-2.5.1-4.6-2.5-6.2-4.1 2.3-5 6.8-5.2 10.7-8.5a38 38 0 0 0 12-20.6 164 164 0 0 0 3.3-28.8c.3-13-2.6-24.6-4.7-37.2-2.6-14.5-5-29-6.3-43.8-1.8-16.1-.4-33 2.5-49 4.3-24 13.6-46 25.5-67.2a174 174 0 0 1 35.4-42.5c32-28.3 70.6-48.8 112-59 19.4-4.8 38.8-6.4 58.8-7.4m205.1 363.1c2.8-.5 6 1.7 8.8 2 3 .6 6.1.3 9 1.1 1.5 1 1.1 3.2 1.3 4.9-.1 5.8-.3 11.3 1 17 .5 2.9 1.7 6 1.5 8.8-.1 2.3-3 2.7-4.7 2.3-8-1.2-16-5.3-23.2-8.9-2.7-1.4-7-4.7-6-8.2 2.1-4 5.9-7 7.9-11.3 1.4-2.4 2.2-5.9 4.4-7.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M450.5 183.7c10.4.9 20.8 1.7 31 3.7 15 3 30.9 6.7 44.6 13.5a99 99 0 0 1 33.8 27.2c2 2.8 4.1 5.7 3.8 9.3.1 2.1-.8 4.3 1.2 5.7 2 .8 4.4.8 6.5 1.1a132 132 0 0 1 55.8 21.5 120 120 0 0 1 46.7 61.4c10.1 30.6 6.3 65-10 92.9q-4.6-.7-9.3-1c-.6-1.3-1-4-3-3.9-2.1-.3-3.2 1.6-3.3 3.5a55 55 0 0 1-13 30.6 106 106 0 0 1-49.4 33.2c5.7-26.3 4.9-53.7-1.9-79.8a173 173 0 0 0-55-89.6 128 128 0 0 0-55.8-27.6q-2.9-12.5-14-18.7a39 39 0 0 0-31.1-2.6 114 114 0 0 0-42.6 25.2 149 149 0 0 0-28.7 35.3c-11.3 18.8-20.4 39.7-29.3 59.8-11.4 26.4-22 51.7-38 75.8-16.7 25-38.6 48.5-65.3 62.8a136 136 0 0 1-41.2 15.4 49 49 0 0 0 16.5-33c2-14 2.8-29.1.2-43.2q-3.4-18.3-6.4-36.8c-1.8-13.2-3.8-25.7-3.6-39q.1-16.7 3.4-33.2c4.2-22.5 13-43.3 24-63.2a173 173 0 0 1 40.4-46.7 253 253 0 0 1 143.1-58.8c16.4-1.7 33.4-1.4 49.9-.8m176 363.2c3.5.6 7 1.6 10.6 1.8-.6 7.3.4 14.3 1.6 21.5a98 98 0 0 1-21.4-9.7 72 72 0 0 0 9.2-13.6","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"long26":{"elements":[{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M517.2 197.5q-18-2.3-36-4a452 452 0 0 0-65.8-2.3q-13 1.2-25.8 4.1l-.3.1c-6.3 1.4-13.5 3-18.7 7-16.1-3.5-33.7-1-49.3 3.6a177 177 0 0 0-50 25c-29.3 20.7-54 48-72.4 78.7a207 207 0 0 0-31 94.7c-.9 21.5 3 44 16.3 61.4q2 2.9 2.4 6.5l.6 2.6q2.9 11 10 20c3.4 4.2 7.8 7.1 12.3 10.1l.4.2q-1.4 19.6 1.2 39.2a190 190 0 0 0 28.5 80 83 83 0 0 0 34.9 31.2c1.9.8 5.6 2 6.8-.5a116 116 0 0 1 4.8-15.3c14.7 4.8 31.5 4.7 46.7 2.8l3.4-.7c3.2-.5 6.5-1 9.3-2.5 1.8-.8 2.2-3.4.6-4.5a22 22 0 0 0-5-2.5l-2.4-1a202 202 0 0 1-72-56 219 219 0 0 1-44.5-85.1 82 82 0 0 0 22.4 1.7c3.5-.2 6.7.7 9.9 1.5q4.4 1.4 9.1 1.5 9.4.4 18.5-2.2c2.2-.8 2.6-3.3.9-4.9a75 75 0 0 1-15.4-28.5 124 124 0 0 1-4-45c3-32.2 14-63.6 28.7-92.3q12-23.5 26.9-45.1a227 227 0 0 0-1.2 96.9 232 232 0 0 0 43.3 96.8A160 160 0 0 0 398 505q1.4 1.1 3.3 1c2.2-.2 2.8-3.2 1.5-4.6l-.7-.7c-1.5-1.8-3-3.4-4.1-5.6q-4.4-9.3-7.5-19.2v-.3A675 675 0 0 1 376 425c8 20.7 18.5 39.8 34.2 55.7q6 5.7 12.6 10.6l1 .8a66 66 0 0 0 15.7 8.3c1.6.8 3.6 0 5.3-.7l1.5-.6q3.4-1.5 7-2.6l5.4-1.9c1.4-2 .5-3.8-1-5.3a101 101 0 0 1-15.7-20.4 278 278 0 0 1-26.9-70.3 718 718 0 0 1-15.1-77.7l2.9 7.9 2.2 6q6.3 16.7 14.5 32.5c14.5 27.6 30.3 54 49.4 78.6a241 241 0 0 0 44.2 44.5c1.2.8 2.8 1.8 4.2.9s3.5-2.9 3.5-4.9a416 416 0 0 0-.1-61 523 523 0 0 0-20.3-111l-.9-2.7-2-7.2a612 612 0 0 1 22 59.8 457 457 0 0 1 19.3 90.1c1 8.7 1 17.8 1 26.6v.4q-.1 2.1 1.8 2.8a35 35 0 0 0 8.3 1.5l.1.9c.1 1.3.3 3.2 1.7 3.5 7.6 2 16 1.9 23.7.6a247 247 0 0 0 22.8-3.8l-2.7 19.4a683 683 0 0 1-15 83.2q-.7 3.2-1.8 6.2a59 59 0 0 1-10.8 10.1l-3 2.1a28 28 0 0 0-5.1 3.9c-1.7 2.6-2.6 6-3.4 9.2l-.8 3.4-.1.3c-1.6 5.4-3.2 11-5.7 16.1l-.2.6c-.6 1.6-1.3 3.1.3 4.5q4 1.8 8.5 1.2l8.7-.7 10.5-.9q11.5-1.6 22.6-5.3c12.2-4 24-8.4 35.3-14.7a91 91 0 0 1-9.9 25c-.5 3.5 3 4.5 5.4 2.5a191 191 0 0 0 61.7-73.4 298 298 0 0 0 30.2-121l.6-10.2c.2-24.2-1.8-48.7-6.5-72.5a271 271 0 0 0-52.2-117c-20.7-25.4-48-46.2-80.4-53.8-8.6-2.5-17.1-2.9-26-3.2q-20.8-1.7-41.4-4.4m186.6 282.9a56 56 0 0 0-31.4-51.8q-1.6-.6-1.3.9a431 431 0 0 1-13.5 104q-1.2 4-2 8c27.6-6 48.3-33 48.2-61.1","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M447.6 197.2q20.6.7 41 3.1c25.2 2.2 49.5 6.8 75 7.3 6.6 0 12.5 2 19 3.2 29.8 6.8 55 25.1 74.6 48 26.3 30.9 43.3 70.3 52.3 109.6a311 311 0 0 1 7.2 50c1 7 .5 14 1 21 .1 50.1-10.2 101.3-34.4 145.6a184 184 0 0 1-46.6 56.5c1.9-6.6 5-14.2 5-21.2.2-2-2.2-3.8-4-3-2.3 1-4.3 2.6-6.5 3.7a193 193 0 0 1-45.8 17.3c-9.7 2.4-19.6 2.7-29.3 3.4q4-11 6.6-22.3c.5-1.6.8-3.6 2.3-4.6q5.3-3.6 10.3-7.4-3 9.9-7.8 19c-1.3 2.2.2 4.8 2.6 5.3 4 .7 8.4.5 12.5.5 1.4-.1 2.7 0 3.9-1 8.8-7.4 16.1-16.6 22.5-26.2 4.8-1.4 9.4-3.9 13.6-6.5 7.3-5 12.7-12.5 17.2-20q7.5-13.1 12.4-27.6c.7-1.4.6-2.9 2.5-3a69.4 69.4 0 0 0 49.7-94.3 60 60 0 0 0-33.1-32c-.5-17.5-1-34.9-3.4-52.2-2.6-20.7-7-41.9-15-61.2-1-2.1-1.3-4.8-4.3-4.7-2.7.1-3 2.8-2.1 4.9a220 220 0 0 1 15 57.8q5 37.4 3.4 75.2a416 416 0 0 1-12.6 88.8 190 190 0 0 1-17.3 44.6 50 50 0 0 1-20.5 21.4A260 260 0 0 0 648 481.4c0-3.7-5.2-4.3-5.9-.6q-.7 18-4.3 35.6c-5.8 28.6-16 56.9-31.4 81.8a121 121 0 0 1-23.9 28.5h-8.3q7.8-17.9 12.6-36.8a566 566 0 0 0 13.4-74.5c1-9.9 2.6-19.7 3.7-29.6 3.3-1 7 0 8.3-3.8a211 211 0 0 0 .5-167.6A177 177 0 0 0 549 237c-2.7-1.7-5.4-3.7-8.4-4.8-2.6 0-4.2 2.6-2.5 4.7 2.7 2.3 6.1 3.9 9 6 33.1 22.3 56.4 57 68 95 14 46 11.2 96.8-8 141q-2.3.8-4.5 1.3c-11.6 2.3-23.1 4.8-35 5.9q-5.4 0-10.8-.6c10.7-28.4 13.2-58 11.8-88q-1.5-28-8.2-55.1a251 251 0 0 0-33.3-78.5c-.9-1-2-3.2-3.5-3-2.9-.4-4 3-2.4 5C545 301 557.7 344.6 562 386.6c.8 12.6 2 25 .8 37.6-.8 19.1-4 38.2-10.4 56.2q-3.3 0-6.4-1c.7-14.2-1.1-28.9-3-43-4.7-30.2-12.5-60-22.3-89a501 501 0 0 0-40-90c-2.8-4.6-5.2-9.2-9-13-8.9-14.9-19.7-31-34-41.1-2.7-1.8-4.3-.7-5.5 2 1.5 2.9 4 4.3 6.4 6.3a115 115 0 0 1 18.7 21.2 250 250 0 0 1 24.9 47c16 39.7 25.9 82.1 30.8 124.6q4.7 40 2.5 80.1-9-7-17-14.8a373 373 0 0 1-58-77.2 405 405 0 0 1-29-58A280 280 0 0 1 398 291c-.5-1.6-1.9-2.9-2-4.5q-1-9-1.2-18c-.2-12.5-.5-24.7 1.3-37.1-2-3.4-5.3-1-5.6 2-3.5 26.2-1 52.3 2.4 78.3q3.8 28.6 9.3 56.8c7.2 34.9 16.4 71 34 102.2 4.5 7.2 9.4 14.4 15 20.7-3.2 1-6.3 3-9.6 3.5a79 79 0 0 1-26-17.3c-12.4-12-22-27.3-29-43a355 355 0 0 1-15-39.1 304 304 0 0 1-13.7-98.8c.2-4.8 1-9.5 1-14.3-.6-2.7-3.6-2.9-4.8-.5-2.4 12.3-2.1 24.1-2 36.6.4 19 4 36.7 6.8 55.2q3.6 20 8.3 40a624 624 0 0 0 22.5 77.9 172 172 0 0 1-34.5-39.7 238 238 0 0 1-36.1-126.4c.4-20.8 3.3-42.3 10.7-61.8 2.3-4.3 3.2-9.1 5.6-13.4 10-20.3 25-37.6 46.2-46.7 21.4-6.2 43.8-8.1 66-6.3"}},{"name":"path","type":"element","attributes":{"d":"M362.7 207.1c-3 2.9-6.4 5.2-9.3 8a118 118 0 0 0-27.2 41q-1 2.4-2.4 4.4a384 384 0 0 0-48.6 84.7c-11.2 27.5-19.1 58.3-17.8 88.2a97 97 0 0 0 18.2 55.2 41 41 0 0 1-20.5-.8 61 61 0 0 1-22.3-19.6 93 93 0 0 1-15-51.8 150 150 0 0 1 1.5-24.5 235 235 0 0 1 43.6-101.1c15.5-21 33.6-39.9 54.8-55.3 1.5-1.3 3.2-2.9 1.6-5-1.2-2-3.9-1-5.3.3a268 268 0 0 0-78 92.1 216 216 0 0 0-23.6 76.5c-1 14.5-1 29 2.6 43.2a80 80 0 0 0 26.5 43.6 64 64 0 0 1-48-18.7 77 77 0 0 1-19.2-45c-1.6-15.9 0-31.7 3.6-47A243 243 0 0 1 233.3 273c22-24.4 48.6-45.5 79.3-57.6 15.8-6.2 33-10 50-8.3M193.2 475.6A71 71 0 0 0 215 488c1.7 2.2 1.8 5.7 2.7 8.3a231 231 0 0 0 56.1 95.8 202 202 0 0 0 60.6 43.8 82 82 0 0 1-19.8 1.9c-9.4.2-19-1-28-3.7-2-.6-4.2 0-5 2-2 4.5-3.2 9.3-4.7 13.9a77 77 0 0 1-32.6-29.3 182 182 0 0 1-26.5-71.4 196 196 0 0 1-2-44c0-1.8.5-4.5-1.7-5.3-10.6-3.8-17.6-14.2-21-24.6"}}]}]},"short01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M280.2 157.9c2.2.8 2.4 2.8 3.1 4.8a48 48 0 0 0 9.3 16.7A47 47 0 0 0 309 193c8 3.5 17.1 5.3 25.6 7.1a372 372 0 0 0 43 5.6c15.3 1.6 30.6 1.5 46 2.4 20.3 0 40.7.6 61-.7q12 .1 24-1a180 180 0 0 1 60.5 5.7c7.7 2.8 15.5 5.3 22.8 9a194 194 0 0 1 65.2 46.8c21.4 23.4 37 52.4 43 83.7a137 137 0 0 1-3.4 65.8c-2 7.4-4.7 14.4-9 20.7-4.3-3.3-8-6.7-13.1-8.7a53 53 0 0 0-39-3c-2.9.5-3.5 2.9-5 5a168 168 0 0 1-35.8 41.2q-13.6 10.8-28.4 19.7l-3-.8q-.3-4.6.7-9c1.4-7.4 1.5-14.7 1.6-22.1a267 267 0 0 0-1.6-31q-2-17-5-33.8c-7-.7-14-.5-21-1.6a217 217 0 0 1-100-40.9 40 40 0 0 0 8.8 21c2.1 2.4 1.8 6-1 7.6-12.2 6.9-27.1 10-41 11.1a170 170 0 0 1-67.8-9c-17.9-6.3-35-15.5-47.2-30.4a54 54 0 0 0 4.5 24.3c1.2 2.3.3 5.2-2 6.4a50 50 0 0 1-31.6 4 73 73 0 0 1-36-20c-2.4 7.4-3.8 15-5.9 22.4-1.7 6.8-2.4 13.9-3.6 20.8-1.7 2.2-4.4-.5-5.6-2a61 61 0 0 1-10.1-33.9 71 71 0 0 1 8-33 71 71 0 0 1-4.8-41.6 60 60 0 0 0-23.4 18.3c-1.4 1.9-2.1 5-4.8 5.1-1.7-.5-3.1-1.1-4-2.8a58 58 0 0 1-6.8-35.2 82 82 0 0 1 16.1-39.4 100 100 0 0 1 49.7-35.5 77 77 0 0 1 37.8-2.9 44 44 0 0 1 6.1-47c1.7-1.7 4-4.7 6.7-3.6M623.1 541c2-1 5 .5 7 .8 5 1.4 11.3.4 15.8 3-.7 4-1.4 7.7 0 11.6q2.4 7.3 8 12.7c2.3 2.2 5.2 3.4 7.6 5.5.7 1.8.2 3.6-1.9 4-4.1.6-8.7-.7-12.8-1.4-9.9-2.2-20.9-4-29.8-9-2.2-1.4-5.7-3.2-6.2-6-.5-1.6.6-2.8 1.5-4.1 4.2-5.2 7-11.7 10.8-17.2","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M278.3 165a65 65 0 0 0 20.3 28.4 61 61 0 0 0 25 10.3c32.1 7.5 66.1 9.2 99 10 26 .2 52 .4 78-1a178 178 0 0 1 72.5 7.4c35 11.4 66.5 33.7 89 62.8a161 161 0 0 1 33.6 78.5c3 23 0 46.6-9.7 67.7a78 78 0 0 0-18.4-8.6 60 60 0 0 0-30.7 0c.2-1.8 1-4 0-5.5-.9-1.4-3.6-1.3-4 .6a56 56 0 0 1-4.7 9.4 172 172 0 0 1-35.4 41.6c-7.3 6.3-15.2 11.4-23 16.8 2.3-14.1 2.3-28.7 1-43-1-17.4-4.3-34.9-7.4-52-1.1-4.6-1.6-9.8-3.7-14-1.2-2.3-5-2-4.7 1 1 4.8 2.4 9.4 3 14.2-40.5-.6-80-15.5-113-38.7l-8.3-6c-2 .9-4.3.8-4.4 3.5a46 46 0 0 0 10 28.7c-19.3 9.8-40.4 11.1-61.7 9.9a155 155 0 0 1-63.9-18.8 72 72 0 0 1-23.5-20.4c-1.3-1.7-2.3-3.4-4.6-3.9q-2.4-.3-3.2 2a59 59 0 0 0 3.7 33.5c-12.8 6-27 4.7-39.6-1a75 75 0 0 1-37.7-41.2 63 63 0 0 1-2.8-36.8c.4-2.1 1-4-.8-5.6-2.3-2.1-5.1-.4-7.5.7-7.1 3.8-14.5 8-20.2 13.8q-3.1 3.4-6 7a54 54 0 0 1-4.8-30.9c2-13.2 7.5-25.6 15.7-36.2a95 95 0 0 1 39-29.9c13-5.3 27.2-7.5 41.2-5.5 2.3.3 4.8 1.2 7.1 1 2-1.4 4-3.2 2.1-5.7a33 33 0 0 1-5.6-22.7c.6-7.6 3.5-16 9-21.4"}},{"name":"path","type":"element","attributes":{"d":"M210.8 349.3q4.4 7.3 9.5 13.8c-1.4 6.9-3.7 13.4-5.2 20.3-1.1 5.7-2.8 11.4-4 17.1a64 64 0 0 1-.2-51.2m415 197.1q6.8 1.3 13.7 2.2c-1 9.4 3.6 17 9.6 23.6-10.5-2.6-23.3-4.5-32.2-10.9q4.8-7.2 8.9-14.9"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short02":{"elements":[{"name":"path","type":"element","attributes":{"d":"M632.6 149.3c7.8-.3 15.9 1.3 22.5 5.6 5.4 3.5 9.8 8.9 12 15 .4 1.8.7 4-1.5 4.7-4.3.5-8.7-1-13-.6-12.5 1-24.6 6-33.1 15.3a65 65 0 0 0-16.5 34 33 33 0 0 0 4.3 23.3q17 11.4 33.8 23.2a125 125 0 0 1 38.7 42.4c7.6 14 12.4 29.7 15.6 45.2 4.2 20 5.8 40.5 6 61-.5 6.5-.4 13.1-1.4 19.5-1.4 2.4-5.9 3.7-8.4 4-2.7-.9-4.7-3.8-7-5.5a53 53 0 0 0-60.5-4.5c-4 2.4-5.7 6.4-9.4 9.1-4.9-3-7.4-7.7-11.6-12.1-6.5-7.6-14.2-14-21.5-20.7a71 71 0 0 1-14.7 14.5c-3.6 2.7-7.9 5-12.3 5.9q-3.2-.9-2-4a86 86 0 0 0 8-46.7 78 78 0 0 0-10.7-32.3c-.5 5.1-1.3 10-3.3 14.8-4.2 10.6-11 21-20.2 27.9-2.4 1.7-5.7 3.8-8.8 3.3-2.7-1.8-3-5.3-4.1-8.2-5.7-17-14.5-32.4-21.2-49.1a140 140 0 0 0 2.3 47.2c.2 1.4-.4 2.7-2 2.5-11 .8-22 1-32.8-.3q-3-.4-5.6-2c-10.6-4.7-18.6-15.6-24.8-25.1a165 165 0 0 1-17-39 155 155 0 0 0 7.8 55 54 54 0 0 0 7.4 14.8c.7 1.2 2 2.5 2.2 4-.5 2-2.4 3.3-4.4 3.4a631 631 0 0 1-28.8 1.8c-13.2.2-25.6.6-38.6-2.6-2.3-.7-4.4-1.1-6-3a72 72 0 0 1-13.4-22.6c-8-20.6-11-43-8.4-64.9-8.3 21-14.2 44.3-11.2 67 .3 3.8 2 7.1 2.7 10.8-1.3 2.7-4 3-6 1a114 114 0 0 1-31.5-52.1q-5.7 9.7-9.7 20.1a76 76 0 0 0-5.9 25.2c0 2.9-2.6 3.4-5 3.4a94 94 0 0 1-40-8.1q-1.2 6-2.8 11.7c-2.4 8.8-3.4 18-5 26.9-.6 3.9-.2 8-1.3 11.9-.6 2.8-4.8 2.3-6.2.3a63 63 0 0 1-15-45.2q.3-14.9 4.2-29.2a74 74 0 0 1-9.5-36.8 84 84 0 0 1 12.6-45 155 155 0 0 1 46-45.9c-16.4 7.3-31.5 16-44.3 28.6-2 2-3.5 4.5-5.3 6.7-2 1.3-4.1 0-4.3-2.4q-1-10.5.4-21a69 69 0 0 1 22-40.4 84 84 0 0 1 36-20.1c16.7-4.6 34.2-6.8 51.5-7.4 32.7-1.3 64.1 3.2 96 9.9 5 .7 11 3.2 16 1q15.5-5.6 32-7.4a171 171 0 0 1 130.7 44 41 41 0 0 1 2.2-22.6 62 62 0 0 1 53-39m-8 391.5c4-.2 8.2 1.6 12 2.5 2.6.3 3.2 3.8 1.5 5.4a58 58 0 0 1-15.6 10.4c-2.8 1.4-5.4.9-8.4.7-1.1-4.5 3.2-7.2 5-11 1.8-2.4 3-6.6 5.5-8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M645.4 156.7q9.7 3.1 14.9 12c-9.9-1.3-20.3.9-29.3 5-14.9 7.1-26 22-30.8 37.5a50 50 0 0 0-2.2 26.4c1.3 5.4 3.5 11.9 8.6 14.9q11.3 7.7 22.4 15.6a151 151 0 0 1 38.1 34.8c16 21.6 22.6 50.3 26.1 76.5q2.9 22.4 2.2 45.2c-.1 4-.3 8-1.6 12-4.2-3.4-8-7-12.7-9.7a60 60 0 0 0-55-3 48 48 0 0 0-11.6 9.6q-7.2-8.8-15.3-16.7c-4.7-4.5-9.9-8.3-14.4-13 2.7-4.7 5-10 6-15.4.3-2.2.6-5.3-1-7.1q-1.8-1.4-3.7-.5c-1.2 2.3-.5 5.3-1.2 7.8a56 56 0 0 1-24.3 32c3.6-10.6 6.4-21 6.4-32.2a84 84 0 0 0-18.6-54c-1.7-1-4.1-.3-4.2 2a55 55 0 0 1-23.8 49.5c-6.3-20.2-17-38.2-24.3-58-.9-1.9-1.9-5.2-4.5-5-2.7-.2-3.4 2.3-4 4.4-2.2 10.3-2 20.3-1.7 30.9.6 6.8 1 13.8 2.7 20.5-9.1.7-18 1-27-.1-5.5-1.9-11-5-15-9.2a99 99 0 0 1-18.5-27.5 108 108 0 0 1-11.5-33.7c-1-4.6-.5-9.5-1.8-14-.7-2.6-4.5-2.5-5.3 0-1.7 7.9-2.2 16.1-3 24.2-.3 14.7 1.2 29.8 4.9 44a95 95 0 0 0 10.8 26.9c-8.2.8-16.4.8-24.6 1.7-13.2.4-28 1-40.7-2.8q-3.4-4.4-6.4-8.7a121 121 0 0 1-11.8-89c.6-3 2.5-5.7 0-8.2-2.4-.7-3 .1-4.4 1.9q-8.4 12.6-13.1 27a127 127 0 0 0-7.3 61.2c-10.3-11.3-18-25-22.8-39.5a94 94 0 0 1-4.2-47.5c0-1.7.8-3.2-1-4.3-1.8-1.5-4 0-4.4 2a96 96 0 0 0 .6 39.2c-5 7.9-9 16.6-12.5 25.2-3 8.2-5.7 17-6.2 25.8-12.2-.3-24.5-2-35.7-7a62 62 0 0 1-23.4-19.5 69 69 0 0 1-10.1-46.4 86 86 0 0 1 18.3-42c14.8-19.3 33.7-32.2 54-45.1 1.9-1.2 4.5-2.2 5.8-4 .7-2.6-.7-3.1-2.4-4.4-26.7 8.1-52 20-71.8 40-.3-12 2-23.7 8.3-33.9a76 76 0 0 1 41.7-33.1c17.1-5.6 35.5-7.8 53.5-8.6 31.6-1.4 62 2.8 93 8.8 6 1 12 2.6 18 2.7q4-1 8-2.5c23.6-7.6 48.7-8.2 73-3.4a171 171 0 0 1 81.1 41.4c2.5 2.3 4.9 4.8 7.8 6.6q1.9-.8 3.5-2c1-2.7-1.7-5.8-2.3-8.5-2.6-8.4-1-17.7 2.6-25.5a58 58 0 0 1 29.8-28 42 42 0 0 1 29.3-2.2M201.5 352.8a76 76 0 0 0 17.1 15c-1 7.8-3.8 15-5.2 22.6q-2.3 11.8-3.8 23.7a56 56 0 0 1-9-20.5 98 98 0 0 1 .2-37.4zm425.4 193.7 4.4.8a48 48 0 0 1-8.3 5.6q1.7-3.4 3.9-6.4","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M434.7 87.2a70 70 0 0 1 42.1 26.5q13.2-8.1 27.8-12.2c12-3.5 24.7-4.2 37-2.8 15.4 2 30.6 9 40.1 21.6a47 47 0 0 1 9.3 31.1c6.5.8 12.9 1.4 19.1 3.3a63 63 0 0 1 34.4 22.9 42 42 0 0 1 7.6 30.8 71 71 0 0 1 61 9.5 54 54 0 0 1 19 23.3c4 10 4 21.4-.2 31.2a46 46 0 0 1-13 17.1 58 58 0 0 1 42.9 24.7c1.1 1.8 1.6 4-.1 5.6-1.7.4-3.5-.9-5-1.4-3.5-1.7-7-1.4-10.7-1.4a54 54 0 0 1 3.5 70.3 45 45 0 0 1-29.7 16.7 47 47 0 0 1-14 52.7c-1.7 1.3-4 2.7-5.5.2a57 57 0 0 0-26.4-27.3 30 30 0 0 1-6.4 11.7 37 37 0 0 1-55.1-3.7c-5-7-6-15.7-3-23.8a59 59 0 0 0-16.1 13.3c-2 2.4-3.6 2.2-6 .6a59 59 0 0 1-24.2-46.3 78 78 0 0 1 14.4-48.5c-15.4 2-30.2-8-35.3-22.4a48 48 0 0 1-24.6 7.3 52 52 0 0 1-30.2-9.2 85 85 0 0 1-28.4-33.1q-3.6 4.8-8 9.4a75 75 0 0 1-55.4 22.4c-13.3-.4-26-4.7-37-12.2a60 60 0 0 0 13.4 23c1.2 1.1 2 2.3 1.4 4a16 16 0 0 1-6.6 4.7 76 76 0 0 1-49.2 5.9 81 81 0 0 1-39.3-20.6c-8.3 12.7-23 18-37.7 17.4a279 279 0 0 0-18.4 49c-1.1 3.8-1.6 7.8-3.1 11.4-.8 1.8-2.7 2.3-4.5 1.6a35 35 0 0 1-19.7-20.4 52 52 0 0 1-2-33.4 37 37 0 0 1-29.1-11.5 61 61 0 0 1-15.4-40.8 78 78 0 0 1 13.9-46.3c1.5-1.8 2.6-4 5.4-3.3 1.9 1.2 1.4 3.6 2 5.6.6 4.4 3 8.3 5.2 12 5.4-15.5 18.6-29.3 35.8-30.3-.6-3.2-1.3-6.4-1.2-9.7a55 55 0 0 1 19.3-38.8 41 41 0 0 1 26-10.4c1.2-14.3 9-27.7 19-37.7a65 65 0 0 1 38.8-18.9c10-1 20.3 1.7 28.5 7.7 23.8-24 60.4-35.5 93.6-28.1M623 541c1.5-1 2.7-.4 4.1 0a81 81 0 0 0 16.5 2.2l7.1-.2c2 .9 2 2.5 2 4.4a33 33 0 0 1-5.3 17.7 27 27 0 0 1-16.8 11.4A26 26 0 0 1 609 571c-1.7-1.5-3.2-3.8-1.5-5.9q5.7-7.4 10.7-15.3c1.8-2.9 2.9-6.3 5-9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M423.4 91.1a70 70 0 0 1 44.1 20.4c2.5 2.5 4.3 5.7 6.7 8.2 1.8 1.3 3.4.4 5-.6a91 91 0 0 1 67.6-13.6 53 53 0 0 1 28.5 16.2 41 41 0 0 1 10 29.7c0 1.5-.4 3.5.3 4.9 1.1 1.2 2.4 1 4 1.2a69 69 0 0 1 38.7 12.2c9 6.4 16.2 15.6 18 26.7.4 5.5.8 11-1.6 16.2-.9 2.5 1.2 4.3 3.6 3.3a65 65 0 0 1 58.8 5c8.5 5.3 15.8 13 19.5 22.4 3.4 8 3.7 17.5.5 25.6a39 39 0 0 1-13 16.9c-2.5 1.9-5.4 3.4-7.7 5.6-1.4 1.6 0 4.5 2.2 4.3 5.4 0 10.6-.7 16 .4 10.8 2 20.2 7.9 27.8 15.7-3.7 0-8.7-.6-11.9 1.6-1.8 1.2-2.4 3.3-1 5.1 2.4 3.2 5.5 5.9 7.6 9.4 7.1 10.8 9 23.9 6.8 36.5a44 44 0 0 1-17.8 27.5c-6.4 4.2-13.7 7-21.5 6.1-2.2-.4-2.8 2.6-1.9 4.2a42 42 0 0 1-9.2 49.1 71 71 0 0 0-18.2-21.6c-3.3-2.6-7.2-4-10.7-6.3-1.5-3.8-.4-8.5-4.8-10.4l-2.8 1.3c.1 4 1.8 7.3 1.5 11.1-.3 6.4-4.2 12-9.4 15.5a32 32 0 0 1-39.4-3.6 20 20 0 0 1-5.7-18.7c.7-3.3 2.6-5.7 4.3-8.5 1-1.2 0-3-.4-4.4q-3 0-5.9 1c-8.4 3.3-16 9.1-22 15.8a52 52 0 0 1-19.7-30.3 72 72 0 0 1 16-61.2c1.3-1.8 2.6-3.3 1.3-5.5-1.5-2-4-.7-5.9 0-9.9 4.6-22.3-.1-29-8.1-3.5-4-5-8.6-6.8-13.5-2.2-.2-3.8-.4-5.8 1a42 42 0 0 1-23.5 7 48 48 0 0 1-29.2-10.3 84 84 0 0 1-25.7-34.2l-2.3-1.5q-2.2 1.5-3.6 3.7a68 68 0 0 1-58.2 31.7A59 59 0 0 1 359 288c-1.2-.9-2.6-2.1-4.3-1.4-2.2 1-2.5 3.8-2 6 1.9 10.2 7.2 20 13.7 28a72 72 0 0 1-66.7-.3 71 71 0 0 1-34-37 60 60 0 0 1-2.7-35.8c.4-1.9 1-3.6 0-5.4-1.9-1.1-3.8-1-4.8 1.1-7 22.7.5 47.3 15.9 64.7a33 33 0 0 1-23.5 15.2c-7.5.8-15.1.5-22.2-2.4-4.5-1.6-8.2-4.3-12.2-6.7-3-1.3-5.5 2.7-2.8 4.7 6 5.1 14 8.3 21.8 10q-13.5 27.2-20.7 56.6c-8-3.8-12.5-11.2-15.4-19.3a42 42 0 0 1-.3-27.3c.7-2.8 2.6-5-.3-7.2-4-.5-7.8 1.3-12 .3a34 34 0 0 1-23.9-16.3 62 62 0 0 1-7.9-40c1-10.5 4.8-21 10.3-30 1.8 5.3 4.6 11 8.9 14.8q2.2 1.9 4.9.4c1.1-2.4 1-5.4 2-8a39 39 0 0 1 23.3-22.5c4-1.4 7.5-.4 11.5-.6 1.2-.4 1.7-1.9 2.4-2.8-4.9-11.3-2.4-23.2 3.3-33.6a45 45 0 0 1 25.8-22c3.8-1.2 7.5-.5 11.4-1 2-.7 1.6-2.9 2-4.7 1.2-13.2 7.6-25 16.9-34.2a59 59 0 0 1 36.2-17.9 35 35 0 0 1 23.3 6.2 77 77 0 0 0-17.9 38c-.2 2.2 1.6 3.5 3.7 3.2 2.3-1.2 2-3.6 2.7-5.8a69 69 0 0 1 14.8-30 98 98 0 0 1 83.2-33.8m202.7 455.2q10.1 2 20.6 2.4a23 23 0 0 1-13.9 21 21 21 0 0 1-19.8-2.5c4.7-6.9 9.4-13.5 13.1-21","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short04":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M450.6 201.2a220 220 0 0 1 141.8 52.4 190 190 0 0 1 60.4 97.8c5.5 21.9 6.6 44.4 4.3 66.8-.4 1.8-.5 5.6-3 5.6-4.3.2-8.5 0-12.7 1.2a65 65 0 0 0-31.2 17c-1 1-2 2.2-3.6 1.8-1.6 0-2.3-2-2.1-3.4.3-3 1.5-6 2.1-9 1.6-6.7 1.9-13.2 2.5-20s-.3-13.3-1-20q-.5-5.6-2-11a54 54 0 0 1-26.4-7c-15.8-9-27.3-25-35.5-40.8-9.8-19-16-40-20.2-60.8a442 442 0 0 1-91.2 25.9 562 562 0 0 1-101.2 9 386 386 0 0 1-71.3-6c-1.8-.4-3.4-1.1-3.5-3.3 1-3.8 4-7.3 6.5-10.3q13.5-16.5 29.9-30.1a242 242 0 0 1 157.4-55.8"}},{"name":"path","type":"element","attributes":{"d":"M623.2 439c0 1 .3 2.7-.5 3.5-2.2 2.4-5.1 4.2-7.6 6.4-2.6 2.2-4.8 4.9-7.5 6.9-2.7.5-4-2-2.7-4.1 2.7-3.8 6.7-6.8 10.2-9.8 2.7-2 4.5-4.7 8-3"}}]},{"name":"path","type":"element","attributes":{"d":"M424.8 208.2c41.3-4.2 83.5 2.9 120.8 21.2a194 194 0 0 1 79.2 70.7 181 181 0 0 1 26.4 118 68 68 0 0 0-38.6 14 133 133 0 0 0 0-49.9c-.7-2.3-1.2-5.2-2.8-7-1.6-1.2-4.3-.7-6.2-1a43 43 0 0 1-22.9-7 88 88 0 0 1-27.6-30.3 211 211 0 0 1-22.2-60.5c-.8-3.3-1.1-6.8-2.3-10q-1.5-2.1-4-1.2-5.4 2.1-10.7 4.4a444 444 0 0 1-82.3 22.4 588 588 0 0 1-81 8.7c-14.7.2-29.4.4-44-.4q-21.4-1.3-42.5-4.9a233 233 0 0 1 160.7-87.2","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short05":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M509.6 118.3c5 1.8 10.2 4.3 14.2 8 1.7 1.2 1.7 4.2-.4 4.9-4.5.7-9 .3-13.5 1.7q-11.5 3.1-19 12.4a84 84 0 0 1 48.6 3.2c16.9 6 33.3 16.3 44.8 30.3 7.2 8.9 12.6 20 11.4 31.6a29 29 0 0 1-5.6 14A186 186 0 0 1 665 301c9.7 19.6 15 41.4 15.1 63.3 0 19.4-4.2 38.9-11.7 56.7-.9 1.8-1.4 4-3.8 4-4.8-.2-9-1.7-13.9-1a96 96 0 0 0-23.2 5c-4.1 1.7-9 2.9-12.6 5.5-4.1 4.5-6.9 10.1-11.3 14.5q-1.6-1.3-3-2.7c-.2-2 1.3-4 2.4-5.6l12-16.3c-5.3 2.7-10.2 6.1-15.5 8.6a3.7 3.7 0 0 1-5.5-2.8c-.8-6.2-.2-12.6-.7-18.9-1.5-17.6-.5-34.8 1-52.3q-2.3 4.5-5 8.9c-1 2-4 3-5.9 1.7a106 106 0 0 1-27-22c-9.1-10.2-19.1-20.6-24.8-33.2a77 77 0 0 1-7-33.1l1-17.8q-5.3 4.5-10.4 9.3c-1.4 1.2-3 2.7-4.6 3.5-1.7.6-3.5-.3-4.1-2-1.2-3.2-1.6-6.8-2.3-10.1l-13 9.5q-4 3-8.7 4.3c-11 2.4-21.7 2.5-32.8 2.7-10 .6-20 0-30 .5-14.6.4-28.3 1-42.2-4.3.6 2.8 1.5 5.6 1.8 8.5-.2 2.2-2 3-3.8 3.7a126 126 0 0 1-37.8 6.3 81 81 0 0 1-35.5-8.5c-4.7-2.5-8.8-5.8-13-8.9-.3 4.2.9 8.2.7 12.3q-2.1 2.4-5 .8c-2.3-1.7-4.2-4.1-6.2-6.2.3 3 .8 6.4.3 9.5-1 1.6-2.7 2.2-4.4 2.8q-6.9 1.9-14 2.5a156 156 0 0 0-20.6 31.8c-1.3 2.5-2.2 5.5-4.1 7.5q-1.9.3-3.2-.4c-1.7-3-1.7-7-3-10.3-2.6-7.5-4.2-15.2-5.6-23a69 69 0 0 1 3.3-30.3q3.6-10.2 10.3-18.7c8.7-11 19.3-19.6 31-27.1 21.5-14 46-23.7 70.8-30.4 32.5-8.5 66.2-12 99.7-10.6a33.4 33.4 0 0 1-5.1-42.5 61 61 0 0 1 29.4-24.8c14.6-6 31-7.6 46.2-2.7"}},{"name":"path","type":"element","attributes":{"d":"M620.7 435c2.6 2.4.4 4.3-1.2 6.3-6 6.5-11.2 13.5-16.5 20.6-1.4 2-3 1-5.1 1.1.1-1.8 0-3.5 1.2-5q7.6-10.5 16.1-20c1.7-1.6 2.8-3.6 5.5-3"}}]},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M513.2 126c-7 1.8-13.7 3.8-19.5 8.5a41 41 0 0 0-15.2 26.9 52 52 0 0 0 5.4 30.4 367 367 0 0 0-31.3-2.7c-3.2.2-5.6-1.9-8-3.7-6-5-10-12-10-20a34 34 0 0 1 8.8-23.1 62 62 0 0 1 36-20 54 54 0 0 1 33.8 3.8"}},{"name":"path","type":"element","attributes":{"d":"M524.4 150.4A101 101 0 0 1 575 177c7.2 7.4 13.7 17 15 27.4 1 6.3-1.3 12.1-5 17q-25-13.5-52.4-21c-13.6-3.3-27.7-5.4-41.5-7.6a45 45 0 0 1-4.7-39.6c4.4-1.6 8.6-3.2 13.2-3.8 8.4-1.6 16.5-.6 24.8 1m-85.8 43.8q16.5.4 33 2a696 696 0 0 1 51.8 7.9c11.4 2.3 22.4 6.2 33.2 10.4a209 209 0 0 1 82.8 58.1 147 147 0 0 1 33.8 75.8l1 12c.4 6.3-.5 12.5-.9 19Q671 400 663 419.2c-9.8-1.8-18.8.3-28.3 2.2-4.5.7-8.8 2.8-13.2 4.2 1.9-2.8 4.2-5.4 5.7-8.5.8-2.2.1-4.2-2.5-4.5q-3.5 1.2-6.4 3.4-9.4 5.8-18.9 11.2c-.7-20.2-1.5-40.7 0-60.8.4-6 1.4-12 1.5-18 0-3-3.1-4.3-5.1-2-4.2 5.4-6.8 12-10.3 17.8q-7.2-4.3-14-9.7c-6.1-5-11-10.7-16.3-16.6-6.5-7.6-12.8-14.7-17.3-23.7a68 68 0 0 1-7.6-32.8c.1-7.5-.2-14.6 1.6-22 .2-1.7 1-4.3-1.4-4.8-2-.7-3.8 1.2-5.3 2.3L511 269.2c-.7-2.9-1-6-2.3-8.7-1-2.2-3.8-2.8-5.8-1.7-6.4 4-12.2 9.1-18.7 13-7.7 2.2-16.6 2.5-24.5 3.1-14.7.6-29.3.2-44 .6-10.2 0-21.3 1.1-31-1.8-3.6-.9-6.7-2.6-10-3.7-1.2-.2-3.3 1-3.1 2.4 0 3.8 1.2 7.7 1.9 11.4-6.4 1.6-12.4 3.5-18.8 4.6a87 87 0 0 1-40-2.2 61 61 0 0 1-22.8-13c-1.8-1.5-3.4-3.3-5.7-1.3-2 2.7-2.1 7.2-2.4 10.4-1.4-1.9-2.8-4-4.6-5.4-1.3-1-3.2-.2-4.8 0a34 34 0 0 0-.9 14.6c-7.4 2.3-15 3-22.8 3.2-1.7 0-2.3 1.4-3.4 2.4l1.3 2.7 4.4 1a166 166 0 0 0-17.7 27.6 91 91 0 0 1-5.6-36c1.1-10 3.8-20 9.7-28.4 6.6-9.7 15.6-18 25-24.8 17.5-12.7 37.8-22 58.1-29a314 314 0 0 1 116.2-16"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short06":{"elements":[{"name":"path","type":"element","attributes":{"d":"M373.1 179.5c7 1.1 13.9 1 20.8 2.5 12 2.4 24 5.8 36 8.9a1109 1109 0 0 0 98.7 22.4c21.5 3.8 44 6.9 64.6 14.5q17.1 6 32.6 15.3c4.8 3.7 8.7 9 12.1 14a255 255 0 0 1 31.3 68.7 497 497 0 0 1 16 64.6c2.2 7.6.6 16.3-.6 24-3.4 19-10 37-18.7 54.3a307 307 0 0 1-38.5 56.5 188 188 0 0 1-31.7 30.3 130 130 0 0 1-31.3 17.7c-1.7.4-3 1.4-4.3-.3-1.3-1-.3-3.6 0-5q5-17.1 7.3-34.7c1.3-8.9 1.2-17.9 1.6-26.8q0-15-1.9-30a196 196 0 0 0-36.4-91.2c-2.1 30.3.4 61.3 8.5 90.6q1.5 4.9 3.7 9.6c.4 3.3-2.2 4.6-5 3.5a277 277 0 0 1-139.1-109.7 162 162 0 0 0-16 26.4 190 190 0 0 0-16.5 96c-1 1.1-2 3.5-3.8 3.6-2 .3-3-1.4-4-2.7q-8.5-11.2-15.8-23.2a332 332 0 0 1-28.5-65.4c-7.1-23.2-13-47.3-15.1-71.6a287 287 0 0 0-51.6 88.8 169 169 0 0 0-10.6 49.3c0 3.3-3.7 3.1-5.4 1a135 135 0 0 1-25-36 168 168 0 0 1-15-87l-11.6 8.3a134 134 0 0 0-27.4 28.6c-1.4 1.8-2.2 3.7-4.8 3.3-2.7-1-1.1-4.1-1-6.2 3.1-12.7 8.4-25 14.4-36.5a287 287 0 0 1 59.7-75.3c29-26.3 63.2-48.6 100.5-61.2 4.6-9 9.8-18.2 16-26.2a38 38 0 0 1 16.6-12.6 39 39 0 0 1 19.2-1","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M376 185.3c16.6 1.3 33.4 6.3 49.5 10.5 28 7.5 56 14.5 84.6 20 26.7 5.5 54 8 79.4 16.8a152 152 0 0 1 29.8 13c7 4.4 11.2 10.8 15.7 17.4q14.2 22.6 23.2 47.9a566 566 0 0 1 21.5 79.3c1.5 7.8.6 15.2-.8 23q-3.3 18-10.3 35.2c-9 23-22.6 44-37.7 63.3a270 270 0 0 1-25.6 28.4 156 156 0 0 1-38.7 26.5 228 228 0 0 0 5.6-95.2 195 195 0 0 0-41.9-95.8c-1.5-1.9-3.8-1.3-4.9.7-2.9 35.8-1 71.2 10.1 105.6A270 270 0 0 1 405 378c-18.7-29-31-61.9-33.9-96.4-.2-2.6-2.4-3.7-4.7-2.6-1.3 1.7-1 3.5-1 5.5a220 220 0 0 0 30 89.2c-5 7.2-10 14.4-14.1 22.3a185 185 0 0 0-20.4 68.4c-1.3 10.4-.9 20.6-.5 31a221 221 0 0 1-24.4-41.5c-14-30-23.5-62-29-94.6a307 307 0 0 1-3.8-41.9 229 229 0 0 1 6.4-51 218 218 0 0 1 23.5-56.5c5-8.1 11-17.9 19.5-22.5 7-4.2 15.8-3 23.5-2"}},{"name":"path","type":"element","attributes":{"d":"M317.6 227a217 217 0 0 0-20.2 90.4c0 5.7.6 11.4.7 17.1a296 296 0 0 0-47 72.4c-7.5 16.5-13.8 34-17.3 51.7-1 4.7-1.5 9.5-2.4 14.2a152 152 0 0 1-34.6-107.4c0-4.8 1.4-8.7-.2-13-1.4-1.4-3.5-.9-5.1 0-4 2-7.7 5-11.4 7.5-9 6-16.2 13.2-23.7 20.8a174 174 0 0 1 13-27.7c19.6-34.5 48-64.4 79.6-88.2a276 276 0 0 1 68.6-37.8"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short07":{"elements":[{"name":"path","type":"element","attributes":{"d":"M481.6 150.4q19 .7 36.7 7.3c19.3 7.6 37 19.8 51.1 34.9 10 10.3 18.5 22.2 28.2 32.8a98 98 0 0 0 18 15c9.3 6 20.4 8.5 30.9 12a122 122 0 0 1 32.5 14.7c16 10.5 28 27.6 34 45.8a81 81 0 0 1 3.3 42.2c-.5 2-4 2.4-4.9.4-1.5-3.1-2.5-6.5-4.3-9.6a99 99 0 0 0-19.1-23.6 47 47 0 0 1 6.3 40.6c-2.1 7-6.9 12.3-11.8 17.5 1 5 2.4 9.9 2.8 15a39 39 0 0 1-4 21.6c-1.9 3.6-3.9 8.3-7.2 10.9-2.4 1-5.6-1.5-8-2a31 31 0 0 0-13.5-1.7q-1.4 1.9-2.3 3.9c-6.3 12.5-14 24.5-22 36a136 136 0 0 1-30 31c-3.4 2.2-8.1 5-12.1 2.7-3.6-2.5-3.4-8-3-12 2.1-16.2 1.1-33.1 1.3-49.7a82 82 0 0 1-39.2-10.5 90 90 0 0 1-47.1-75.3 84 84 0 0 1-35.8 15.7c-3 .5-7.2 1.4-10-.4-1.4-2.2-.6-3.6 1-5.3a89 89 0 0 0 26.1-42 43 43 0 0 0-7-37.8 45 45 0 0 0-25.7-14.7 75 75 0 0 0-33.2.8c-1.7.3-3.3 1-5 0-2-2.1-1.3-4.4-1.2-7a109 109 0 0 0-29.8 14.8c-1.7 1.1-3 2-5 1.2-3-1.3-5.3-4.2-8.1-6a85 85 0 0 0-32.9-12c3.1 2.7 6.6 5.4 9.2 8.6 1.3 1.7 1.7 3.9 0 5.5-1.7 1-4.2.7-6.2.8a107 107 0 0 0-36.5 4.5c-2.9 2.1-4.7 6.3-6.6 9.3a141 141 0 0 0-18.8 74.1c-.1 1.5 0 3-.9 4.2-2.4 1.4-4.1 0-6.2-1.2-6.5-4-12.8-8.8-17.7-14.7a46 46 0 0 1-24.5 22.6c-3 8.2-4 17.4-5.9 26.1-1 4.7-1.2 9.6-2.3 14.3-.6 2.4-3.4 2.9-4.9.8-8.8-11.7-10.6-25.5-12.6-39.6a34 34 0 0 1-12.4-5.2c-2.3-1.7-5.2-4.2-5.3-7.3-.2-1.6 1.9-2.7 3-3.7q5.4-4.1 10.4-8.9c-9-3-16.3-9.6-19.8-18.5a49 49 0 0 1 1.7-36.2 87 87 0 0 1 37.3-41.7 71 71 0 0 1 30-9.3q3.6-18.4 12.7-35a93 93 0 0 1 95.3-46.5 115 115 0 0 1 53.2 23.2q9.5-8.9 20.3-15.9a108 108 0 0 1 57.5-17.5","fill":{"type":"color","name":"ink"}}},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M478.6 156.2a107 107 0 0 1 40.2 8 135 135 0 0 1 45.5 31.5c11.2 11 20.2 24.6 31.2 35.8 8.1 8 17.1 15.2 27.9 19.3 14.8 5.8 30.2 8.7 44.4 16.4A77 77 0 0 1 694 289a89 89 0 0 1 18.1 53.5c-9-14.4-21.7-28.9-37.4-36.1-2.3-1.2-5 .4-4.4 3 1.2 2.4 3.4 4.3 5.1 6.3a60 60 0 0 1 11.5 15.5c4.6 9.6 5.1 21 1.7 31-2 5.2-5.4 9-9.1 13-1.4 1.6-3.2 2.8-2.4 5.1 2 8.8 4 16.8 2.2 26q-2.4 8.5-7.4 15.8-7.9-3-16.4-3.7c.3-1.5 1-3.5.4-5-1-1.1-2.5-1.8-3.9-.7q-1.5 1.7-2.3 3.8Q638 441 622 462.9q-7.8 10.5-17.4 19.5a56 56 0 0 1-15.3 10.9c-1-4.7 0-9 .2-13.7q1-13.1.6-26.2-.4-8.8-.3-17.6a61 61 0 0 0 39.2-18.2c1.7-2 1.1-4.4-1.5-5a38 38 0 0 1-14-6.6c8.5.3 16.9-.5 24.8-3.8a45 45 0 0 0 24.3-21.8 40 40 0 0 0 3-24c-.4-2.8-4.1-4.2-5.2-1 .6 7.7 1.1 15-2.6 22.2-8 16.7-28.6 24.7-46.2 22.3-2.2-.3-5.2-2-7.2-.8q-.8 1-1 2.3c3.6 8 10.6 12 18.3 15.3a58 58 0 0 1-47 13 86 86 0 0 1-65.7-53.8c-3.8-9.8-5.2-20-5.3-30.5 0-2.8-3.2-4.2-5.3-2.1a76 76 0 0 1-36.7 17 101 101 0 0 0 20.3-30.7 62 62 0 0 0 4.4-31.2c-1.3-9.3-5.5-18-12.2-24.6a54 54 0 0 0-33.6-14.7 84 84 0 0 0-26.9 1.6c.5-2.3 1.9-4.4.2-6.5-1.4-1.8-4.2-.8-6.1-.5a111 111 0 0 0-33.6 16.5c-12.6-12.3-32.6-17.5-49.6-19.5-17.2-2-35.1-.6-51.8 4a81 81 0 0 0-14.3 5.5c-2.2 1.1-2.1 4.4.2 5.2 1.2.7 2.9-.4 4-.8 15.7-7.1 34-9.3 51-9 3.1.2 7 0 9.7 2.1q5.6 4.4 10.9 9.4a105 105 0 0 0-37.1 4c-3.7 1.7-6 5.5-8.1 8.8-5 8.2-9.8 17-13.1 26-6.3 16.5-9 34.4-9.2 52-7-4.6-14-10.2-18-17.7-1.6-2.7-2.5-5.6-3.6-8.5-1-2.1-4.4-2-4.9.7-.4 3.7 2.2 8 4 11.1-3 8-8.7 14.4-15.7 19-7 4.4-14.8 5.6-23 5.3q-10.8.1-19.3-6.6c4.5-4.1 9.6-7.9 13.7-12.3a3 3 0 0 0-.2-4.9q-3.1-1.4-6.4-2.4a26 26 0 0 1-14.1-13.7 38 38 0 0 1-1.7-22.7 74 74 0 0 1 22-36.9 70 70 0 0 1 43-20.1c1.7-.2 3.2-.3 4.5-1.3 1.4-2.2 1.6-5.4 2.2-8 3-13.1 8.3-25.7 16-36.7a87 87 0 0 1 84.7-35.8 109 109 0 0 1 49.4 21.3c-1.4 1.7-5.6 3.9-4.4 6.5.3 1.5 2.4 2 3.5 1.1 5.6-3.8 10.3-9 15.6-13.3a110 110 0 0 1 64.5-25.8"}},{"name":"path","type":"element","attributes":{"d":"M203.2 373.6c4.7 0 9.4 0 14-1-2.6 9.9-4.2 20-6.3 30a86 86 0 0 1-7.7-29"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short08":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M474.7 135.5c2.7-1 4.9.6 5.8 3a38 38 0 0 1-1.7 24 54 54 0 0 1 20.8-7c16.4-2 32.5 2.3 46.9 10a133 133 0 0 1 30.8 24.2 93 93 0 0 0 34.4 23.6 38 38 0 0 0 23.4.6c2-.4 5.2-1.7 6.9.1 1.7 1.5.7 4.3.4 6.2a53 53 0 0 1-18.7 29.4 61 61 0 0 1 30.7 28 90 90 0 0 1 9.9 43.8c.1 10.6-2 21-5.2 31a53 53 0 0 1 13.5 31 74 74 0 0 1-7.7 40.5c-.9 1.8-2.6 1.2-4.3 1.2q-6.4-.8-13-.6c-5.8.2-11.5 2-16.8 4.1-2.1.8-4 1.7-6.2 1.2-7.4-1.4-13.6-5.5-20.8-7.9a122 122 0 0 1 8.9 13.6c.7 1.4 1.7 3.2 1.7 4.9-.2 2.4-3.5 3.2-4.7 1-4-7.3-8.2-14.2-13.6-20.5-2.6-2.6.4-6.2 3.5-5.7 4.2.7 8.3 2.7 12.4 4-3.6-5-7.2-10.3-11.5-14.7-2-2.2-4.8-3.9-6.7-6.2-.3-1.4.2-2.8.5-4.1a81 81 0 0 0 .9-44.6 79 79 0 0 0-16.3-32.9q-7.9-3.2-15-7.5C552.4 302.4 543 293 532 286a52 52 0 0 0-49.5-2.6c-1.5.6-3.1.4-3.6-1.4-1.4-2.7.5-4.4 1.8-6.6q7.2-10 15-19.7-10.9 6.2-19.7 15a37 37 0 0 0-6.5 8.8l-5 .5c-2.4-2.9-3-6.1-6.4-8.2-6.3-4.1-15.4-3.7-22.5-2.4-18.9 3.8-37.4 10.1-57 10.7a53 53 0 0 1-31.7-8.6c-7.4 5-15.2 8.9-24.1 10.5a99 99 0 0 1-43.3-2.7c-7.6 6.1-12.8 13.6-18.9 21-6.1 8-12.2 16.3-16.8 25.2-1 1.5-1.8 3.6-3.3 4.7a30 30 0 0 1-13.9 4.3 37 37 0 0 1-24.5-5.7 28 28 0 0 1-11-18.5 57 57 0 0 1 3-29.5c.7-2.3 3.6-3.2 4.9-1 2.2 4.5 3.2 8.8 8.4 10.8 4.6 1.4 10.4-1.1 14.7-2.8a41 41 0 0 1-12.3-35 96 96 0 0 1 27.3-54 84 84 0 0 1 42-24.2c6.3-1.5 13-3.2 19.5-2.8 2.4 0 3.1 3.4 1.3 4.8a33 33 0 0 0-9 32.1c3.4-5.7 6.5-11.3 10.8-16.3a96 96 0 0 1 62.9-32.2c9.3-1.4 18.6-1.2 28-2 23.3-.5 46.7-3.6 67.9-14 5-2.4 9.2-6.4 14.2-8.8"}},{"name":"path","type":"element","attributes":{"d":"M604.4 436.6c2.2 3.5 3.8 7.5 5.6 11.3.9 2.2 2.3 4.4.8 6.8q-1.7.8-3.4 0c-1.9-2.6-2.8-6-4.3-8.9-1.4-3.5-3.7-6-3.2-10 1.5 0 3.5-.8 4.5.8"}}]},{"name":"path","type":"element","attributes":{"d":"M475.4 141.6c1.5 7-.1 14.8-3.2 21.3-.9 2.2-3.4 4.8-2.2 7.2.6 1 2.4 2.2 3.6 1.4 4-2 7.6-4.6 11.7-6.4a53 53 0 0 1 28.3-4.1 89 89 0 0 1 46.6 20.8c8.2 6.5 14.8 14.4 22.9 21.1 8.5 7 18 13.3 28.6 16.5a43 43 0 0 0 24.9.2 54 54 0 0 1-12.5 22.2c-2.7 2.6-6 4.1-9 6.1q-2.4 2-.8 4.7c3.4 1 6.8 1.5 10 3 8.1 4 15.3 10 20.6 17.5a81 81 0 0 1 13.3 37.3c1 12.2.3 24.4-3.4 36.2-.6 2.3-1.8 4.4-2.2 6.7 2.4 3.3 5.8 5.8 7.7 9.5 9.7 16.7 8.5 36.3 1.6 53.8-.5.9-.8 3.2-2.3 2.6q-14.3-1.8-27.8 3.4c-2 .6-4 1.8-6.2 2q-2.3-.5-4.5-1.3a107 107 0 0 0-21.4-26.7 91 91 0 0 0-12.4-77.9 53 53 0 0 0 31.9-5.7c3.3-1.6 6.9-3 9.8-5.2 2-2.2.1-4.9-2.5-5-10.5-.2-19.6-7.6-26.1-15.2-5-6.3-10.1-13.2-9.3-21.7l-2.5-.8-2.6 1c-1.6 5.4.4 10.1 2.9 14.9a58 58 0 0 0 28.7 26.3 51 51 0 0 1-25 6.3 55 55 0 0 1-23.4-8c-11.7-6.6-20.9-15.5-31.9-23a53 53 0 0 0-21.7-8.9c-9.2-1.2-18.9-1-27.8 2q7.4-10.5 15.8-20.3 2.2-2.5 4-5.1c1-1.4.4-3.7.4-5.3-2.1 0-4-.2-6 .9a96 96 0 0 0-35.1 27.5A22 22 0 0 0 456 265a53 53 0 0 0-28.4.5c-18.2 3.9-37.2 10.2-56 8.7a43 43 0 0 1-31.1-16.6 44 44 0 0 1-3.4-44.6 58 58 0 0 1 26.3-26.1 28 28 0 0 0 1 13.8 25 25 0 0 0 16.2 15c9.2 2.9 19.3 3.4 28.5 6.5 1.7.5 3.7 1.4 5.5 1.2 1.4-.1 2-2 2.7-3-1.6-1.4-3-2.7-5.2-3.4-8-2.8-17-3.8-25.5-5.6q-5.4-1.2-10-4c-5.8-4-9.1-11.7-7.5-18.7 1.2-4.4 5.2-5.3 8-9l-1.2-3c-4.7-.5-9.3 2.6-13.6 4.4a62 62 0 0 0-32.8 35.4 49 49 0 0 0 13 51.8 75 75 0 0 1-11.4 5.8c-9.6 3.9-20.3 4-30.5 3.3a81 81 0 0 1-48.7-19.2c-2-1.9-3.2-4.4-5.2-6.4q-3.2-.4-3.4 2.7c0 3.7 3.4 7 6 9.2a90 90 0 0 0 24 14q-5.2 5-9.9 10.6c-8.5 10.4-17.5 21.3-23.9 33.1-1.6 3-3 5.6-6.4 6.7-7.2 2.1-16 1.8-23-1.1a21 21 0 0 1-11.6-11.6 45 45 0 0 1-1.3-25.2c2.9 2.6 5.4 5.6 9.4 6.3 6.6 1.2 12.6-1 18.5-3.6 2-1 3.8-2.2 4.3-4.5 0-2-2.1-3-3.4-4.3-5.7-4.7-9-11.4-10.3-18.6-1.4-9.4.3-18.6 3.4-27.5a100 100 0 0 1 27.6-40.3 82 82 0 0 1 43.7-19.3c-4.1 7.9-7 16-6 25.1.5 4 1 8.6 3.2 12 1.6 1.5 3.8 3.9 6.1 2.2 3-10 9-18.5 16.2-26a94 94 0 0 1 51.8-25c11.3-1.7 22.5-2.2 34-2.5 23.3-1 45.8-4.1 67-14.5 4.6-2.2 8.5-5.3 12.7-8","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short09":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M331.6 161c19.4-1 39.6 1 58 7.4 1.8.8 3.3.1 5-.2 13-3.2 25.8-3.4 39-2.8a147 147 0 0 1 55.7 16.3c1.5.6 2.7 1.5 4.3.8q9-3 18.2-5.6c14-3.7 28.4-3.8 42.8-3.1a156 156 0 0 1 47.7 13c15.7 7.1 30 17.4 42 29.9a84 84 0 0 1 22.5 43.7 72 72 0 0 1-3 36.2 42 42 0 0 1-9.5 16.6c-1.8 1.6-5.5 1-5.6-1.8-.5-4.7 0-9.3-1.2-14a49 49 0 0 0-19.4-28.8q2 5.5 4.3 10.9c5.2 9.6 9 20.3 12.5 30.7a440 440 0 0 1 18.9 79.2c.9 10 2.5 21 .4 30.9-.4 2-1.2 4.1-3.6 4.3-4-.3-7.9-1.3-12-.7a90 90 0 0 0-42.2 17.3l-2.8 1.4c-2-.6-2.8-1.8-3.3-3.7-1.7-5.8-2.7-11.7-4.8-17.4-1.8-5-4.3-9.4-6.6-14.3-2.4-5-4.4-10.4-7-15.4a90 90 0 0 1-24.7 15.2c-5.4 2-10.2 4.2-16.1 4-.6-2.3-1-3.4.7-5.4 4.7-5.7 7-13 8.3-20.2a47 47 0 0 0-8.3-33.2 85 85 0 0 0-23.6-20.4c-5.2-3.3-11-5.7-16.2-9-1 25.8-11.1 51.4-28.6 70.4q-6.1 6.6-14 11c-1.1.5-2.5 1.5-3.7 1.2-2-.4-3.2-2-2.6-4 1-4.3 2.8-8.4 3.5-12.8 2-12.5-.8-25-5.7-36.5a90 90 0 0 0-12.6-19.6 163 163 0 0 1-25.8 54.8c-3.1 3.7-6.4 7.8-10.5 10.4-2 1.1-5.2.5-5-2.2.2-5.6 1-10.8-.5-16.2a85 85 0 0 1-6 17c-1 1.5-2 3.1-3.9 3.5-1.4.3-2.8-.8-4-1.4-22-14-41.5-31.5-57.4-52.1q-6 17.6-5.8 36.1c0 3.5 1.4 7.3.8 10.7-2.1 2-5 .7-7.4 0a114 114 0 0 1-43.2-29.7 89 89 0 0 1-23-43.8c-6 9.5-11.6 19.5-15.7 30-1.1 2.6-1.2 7.1-4.4 7.8-1.5.8-3-1.2-3.6-2.4q-4.7-10.6-6.1-22.2a35 35 0 0 0-5.8 9c-.7 1.4-1.6 3.5-3.4 3-2 .3-3-2.7-3.4-4.2a131 131 0 0 1-6.8-40.2 75 75 0 0 1 19-50.2 70 70 0 0 1 32.3-22q0-10.6 4.5-20.2a78 78 0 0 1 30.9-33.2 106 106 0 0 1 47.5-13.8"}},{"name":"path","type":"element","attributes":{"d":"M621.4 436.6a2.6 2.6 0 0 1-.2 4.3c-4.6 3.5-9.6 6.5-14 10l-7.3 5.8c-1.1 1-3 2.2-4.2.8-1.6-1.8-.5-3.7 1-5q9.5-8.2 20-15c1-.8 3.7-2.4 4.7-1"}}]},{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"hair"}},"children":[{"name":"path","type":"element","attributes":{"d":"M333.6 166.6c18.3-.6 36.7 1 54.2 6.7 7 1.8 12-1 18.8-1.5 15.5-2.2 31.7-.9 47 2.6 28 6.7 53.4 22 74 42 3.4 3.2 6.3 6.7 10 9.6 1-.8 2.8-1.3 2.8-2.7.4-2-1-3.1-2.2-4.5a180 180 0 0 0-39.5-31.9 145 145 0 0 1 25.9-6.7c13.3-1.4 26.5-1.7 39.8.7 17.4 3.4 34.8 9.4 49.9 18.8a130 130 0 0 1 27.9 23.2 75 75 0 0 1 20 49.5c.3 11-2.8 21.6-7.8 31.3-1-8-3-15.8-7.3-22.8a51 51 0 0 0-23.7-21.1c-2.4-.8-4.8 1-4.3 3.6 1.2 3.5 3.2 6.6 4.6 10a61 61 0 0 1 5.7 33c-2 16-10.1 29.7-21.3 41 6-26.2-1.6-54.8-20.3-74.1-1.4-1.6-3.9-1.7-4.9.3-.8 2.5.9 3.6 2.3 5.3a76 76 0 0 1 7.3 91.4 80 80 0 0 1-42.2 33.2 52 52 0 0 0-7.6-59.2c-9-9.8-20.2-17-32.2-22.8-2.9-1.4-6.8-3.4-8.5-6.2q-1.4-10.4-5.4-19.8c-.6-1.3-1.4-2.8-3-3-1.9-.2-3.6.9-3.1 2.9 2 5.6 4.4 11 5.2 17 1.5 7.8.3 15.2-.7 23-2.9 16.8-9.4 33-19.7 46.6a62 62 0 0 1-14.6 14.7c3.3-11.5 3-23.8-.5-35.3a83 83 0 0 0-20.4-34.9q7.2-28.7 4.3-58.1a131 131 0 0 0-12.2-42.5c-1.2-2.3-3-1.5-5.1-1.2q-.3 3.3 1 6.3a132 132 0 0 1 11 65.2 187 187 0 0 1-14.6 59c-5.3 12.6-12 24.5-21.4 34.4.2-8.8-1.4-17.9-4.2-26.2-.4-2-1.5-2.6-3-3.7-3.4 2.4-2.5 6-3.2 9.7q-1.2 12.6-6.4 24.1a210 210 0 0 1-41.2-33.3 183 183 0 0 1-36.5-53.3 112 112 0 0 1-10.6-46.5 67 67 0 0 1 9-35.9 61 61 0 0 1 26.8-24 90 90 0 0 1 32.1-8c3.2-.4 2.4-2.3 2.8-4.7q-2.9-.9-5.8-.7a83 83 0 0 0-45 16.4 67 67 0 0 0-24.7 42.9c-2.5 14.6-.7 28.9 2.9 43.2q-8.8-6-16.5-12.9a88 88 0 0 1-20.7-29.3 48 48 0 0 1-3.1-28.5 66 66 0 0 1 27.3-36.3 99 99 0 0 1 50.8-16"}},{"name":"path","type":"element","attributes":{"d":"M249 233.6c1.7 13.4 8 24.8 15.8 35.7 8.7 11.6 20 20 32 28 2.4 1.4 2.7 3.8 3.8 6.2 5 13.1 12.4 25.6 20.4 37.2a111 111 0 0 0-6.6 46.7 107 107 0 0 1-39.8-27 85 85 0 0 1-22.3-42c-1.2-8.3-1-17.8 3-25.4.7-1.9 2-3.7 1.8-5.8-1.3-2-3.4-2.3-5-.4a45 45 0 0 0-6.4 21.6c-.2 3.4-2.6 6-4.3 8.8a182 182 0 0 0-15.7 29.9q-3.2-8.6-3.8-17.7-.2-3.3-1.6-6.3c-1.2.4-2.4.6-3.4 1.6-3.2 2.7-6 6.2-8.6 9.6a126 126 0 0 1-5.3-33.9 71 71 0 0 1 15.6-44c8-10 18-18.7 30.4-22.8m386.6 67.9.1.4a427 427 0 0 1 20 73.7c2.3 13.7 5 29 3 42.8a62 62 0 0 0-15.1.4 97 97 0 0 0-38.4 16q-1.7-6.7-3.7-13.2c-2.4-7.6-6.9-14.6-10.1-22q-2.4-6-5.7-11.4 13.5-14 20-32.4c7-4.3 12.6-11.3 17.3-18a68 68 0 0 0 12.6-36.3"}}]},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short10":{"elements":[{"name":"path","type":"element","attributes":{"d":"M388.6 167.7c31.3-2 63.4.1 93.9 8a200 200 0 0 1 60.9 26.1c23.4-3.9 47.9.9 69.4 10.4A172 172 0 0 1 673 258a165 165 0 0 1 38.7 87.4c1 12.2.9 25-1.8 37a92 92 0 0 1-26.1 48.2c-1.9 1.5-3 2.2-5.4 1a61 61 0 0 0-49.6-3c1 10.6.3 21-4.5 30.6a33 33 0 0 1-15.7 15.6c-2.7.9-4.6-1.4-3.5-4 3.3-8.1 3-16.7 2.8-25.4a149 149 0 0 0-2.9-23.5q-11.5 1.5-22.5-2.4a87 87 0 0 1-37-29 205 205 0 0 1-27.8-49.2c-9.5-23.3-16-48-20.2-72.9-.7-3.8-1-7.6-2.1-11.3q-30.5-1.5-60.8-.4a632 632 0 0 0-65 7 453 453 0 0 0-96.2 25.6c-2.5 1.1-5 1.9-6.9 4a146 146 0 0 0-16.2 21.8 259 259 0 0 0-27 59.1c-1.1 3.2-1.6 6.8-3.2 9.7-1.4 1.6-3.4 1-4.8-.2a103 103 0 0 1-29.8-41.3 83 83 0 0 1-4.4-39.8c2.6-19 11.3-36.6 23.2-51.6 19-24 45.9-42.4 73.5-55.3a317 317 0 0 1 110.8-28","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M421.6 173c7.7.6 15.3.6 23 1.7a219 219 0 0 1 95.6 32q1.2.8 2.4 1.2a105 105 0 0 1 49.8 3 160 160 0 0 1 77.4 52.4 162 162 0 0 1 34.3 71 116 116 0 0 1-.7 50.1 86 86 0 0 1-23.1 41.5 68 68 0 0 0-52.2-3.1c-2 .8-5.6 1.7-5.4 4.5 2.1 13 0 28-9.7 37.6a148 148 0 0 0-2.5-45.5c-.7-3-1.8-3.8-4.9-3.4q-13.5 2-25.8-4a84 84 0 0 1-28.4-23.4c-12.3-15-21.6-33-28.9-51a354 354 0 0 1-20.6-78.2c-.5-2.2.3-6.7-2.4-7.6-7.3-.7-14.6-.8-21.9-1.4-13.6 0-27.4-.6-41 .6q-19 .6-38 2.9-40.5 4.3-79.9 14.5c-20 5.2-40 11.8-58.6 20.5a153 153 0 0 0-32.5 19.6 53 53 0 0 0-15.5 19.4c-.6 1.8-1.6 3.7-.8 5.7 1.8 2 4.6 1.4 5.3-1.2q3.1-8.3 9.5-14.5c8.1-8.3 18.7-14.7 28.8-20q-5.9 7.6-10.9 16a266 266 0 0 0-27.7 63 96 96 0 0 1-25.4-36.8 81 81 0 0 1 2-58.5 133 133 0 0 1 38.2-49.7 225 225 0 0 1 52-32.2c32.2-14.5 67.3-23 102.5-25.8 12-.7 23.9-1.8 36-1","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short11":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M344.8 153.6c1.8-.1 3.6-1 4.7 1 1.6 2 1.1 3.4-.6 5a62 62 0 0 0-18.3 29.3c30-13.1 63.4-19.6 96-21q14-1 28 0a281 281 0 0 1 80.5 14.8c18.4 6.5 37 15.6 52 28.3a78 78 0 0 1 26.5 39.1c3.8-.2 7.3-.4 10.7 1.6 7.3 3.8 12.4 12 16 19.1a182 182 0 0 1 14.5 46.6c3.4 17.2 4.8 34.6 5.8 52 .1 13 .6 26.1-.8 39-.4 4.3-.3 8.7-1.3 12.9-1 3-4.4 2.7-6.9 3-8.3.3-17.8 1.7-25 6.2-1.3 2.5-1.5 5.6-2.7 8.2-2 2.3-4.8 4-7.2 5.8L598.2 458c-1.8 1.1-4.2 2.7-6 .6-1.3-1.2-1.3-2.5-1-4.2 3.2-19.5 2.8-40.2 2.2-60 .1-7.8-.9-15.4-1.3-23.2a54 54 0 0 1-19.3-5 78 78 0 0 1-34.2-32.8 63 63 0 0 1-8.2-36 1014 1014 0 0 1-159.8 13.3c-10.8-.3-21.5 0-32.2-1q-21.5-.8-42.8-4c-11.2-1.7-22.6-4-33.3-8-4.9 5-8 10.7-11.9 16.5-2.3 3.5-4 7.4-6.3 10.7a2.7 2.7 0 0 1-4.4.3c-1.2-2.3-1.6-5.2-2.1-7.8a62 62 0 0 1 4-37q-3.8-6.6-5.8-14a62 62 0 0 1 6.5-44.3 121 121 0 0 1 41.6-43.4 182 182 0 0 1 61-25"}},{"name":"path","type":"element","attributes":{"d":"M245 285.7a37 37 0 0 0 11.9 9.6q-7.4 10-14 20.5c-1.2-9-1.5-17.8 1.2-26.6zM622.8 445c2 1.1 1.6 3.3 0 4.6q-12 10.1-25 19c-1.5 1-3.2 2-4.6.2-1.8-1.7 0-3.3 1.3-4.5q5.7-4.4 11.6-8.4 6-4.5 11.8-9.2c1.6-1 3-2.3 5-1.7"}}]},{"name":"path","type":"element","attributes":{"d":"M340.5 160.5a63 63 0 0 0-15.3 27c-.3 2-1.3 4.7-.2 6.5q2.2 1 4.6 1.7c41.8-19 88.5-24.5 134-21.5a260 260 0 0 1 85.1 20.1c15.2 6.8 30.4 16 42 28a64 64 0 0 1 18 33l1.8 1.3c4.1-.7 7.6-1.8 11.5.4 6.4 3.7 10.8 11.5 14 18a199 199 0 0 1 14.4 50.4q3.1 19 4 38c.1 8 .9 16 .6 24-.4 10.5-.6 21-1.8 31.4-7.8.3-15.2 1-22.6 3.7-2.8 1-6.4 2.2-8.4 4.5-1.5 2.7-2 6-3 9l-21.7 15.6c1.5-9.3 1.4-18.7 2.1-28.2.5-9.4-.6-18.6-.7-28-.2-5.4-.2-10.7-.8-16-.5-4.7-.5-9-2-13.5-5.7-.8-11.2-1-16.6-3.2a71 71 0 0 1-37-34.2 52 52 0 0 1-5.5-34.7c-2.6-3.4-7.3-2.2-10.9-1.7a965 965 0 0 1-174.5 12.3q-15-.1-30-1.4c-17-1.5-34.6-3.6-51-8.6a57 57 0 0 1-17-8 48 48 0 0 1-12.7-43c3-16 12.6-30.5 23.9-41.8a165 165 0 0 1 75.7-41","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short12":{"elements":[{"name":"path","type":"element","attributes":{"d":"M368.6 163.7c14.7-1 29.3 2.9 42.6 9.1a66 66 0 0 1 33.3 32.7c1 2.6 1.2 5-.7 7.1-1.5.7-3.4.6-5 1a11 11 0 0 0-6.5 6.3c-2.8 6.3-3.9 13.4-6.1 20-2.2 7-5.2 13.5-10.2 19a99 99 0 0 1-49.4 28.6 84 84 0 0 1-45-1 33 33 0 0 1-18.4-14.1c-.7-1.3-.1-3.5 1.6-3.6 4.5-.4 8.8-.5 13-2.4 5.8-2.3 9-7.8 10-13.8 1.1-8.4-.5-15.9-1.4-24.2a95 95 0 0 1-.3-32.2c1.5-7.5 5-14.4 10.6-19.7a50 50 0 0 1 31.9-12.8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M366.6 169.6c13.3-1.4 27.3 2 39.5 7.3 14.3 6.6 27 16 33.6 30.7a17 17 0 0 0-12.5 10.3c-4.3 9.9-5.4 21.1-11.1 31a63 63 0 0 1-16.3 16.7 92 92 0 0 1-60.7 18.5c-9.8-1.2-20-2.6-27.2-10a39 39 0 0 0 10.8-3.6c5.9-3.5 9.7-9.6 10.8-16.3 1.4-11.9-1.1-22.2-2.2-33.8-.8-5.2-.6-10.7-.5-16a35 35 0 0 1 9.5-23.3 43 43 0 0 1 26.3-11.5","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short13":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M466.6 207.7c21.2 2.4 42.8 6 63.3 12.4 6.7 2.3 13.8 4.5 20 8 2.3 1.4 1 3.5-.4 5-4.8-1.5-9.3-3.9-14.1-5.5a278 278 0 0 0-42.3-10.3q-24-4.4-48.2-5.4a291 291 0 0 0-95 10c-5.7 1.4-11 3.3-16.8 4.1-.5-2.5-1.8-4.5 1.3-5.7 18.4-5.6 37.1-10 56.2-12.3a331 331 0 0 1 76-.3"}},{"name":"path","type":"element","attributes":{"d":"M416.7 224.1c2.5.2 4 1.7 3 4.3-1.2 2.3-4.6 2.5-6.9 3.2q-44 9-86 25c-5 1.7-9.7 3.8-14.7 5.4a690 690 0 0 1 95.3-15.2c8.4-.5 16.8-1.6 25.2-1.8 7.3 0 14.6-.8 22-.7 13.3 0 26.7-.4 40 .5 7 .4 14.4.1 21.2 1.6 1.8.2 2.4 1.4 3.4 2.8l-1.6 2.6c-4.7 0-9.3-.6-14-1q-17.2-1-34.6-.8-34.8-.3-69.4 3.2c-35 3.5-69.4 10.1-103.5 18.6-2.7.5-6.6 2-9 0-.5-1.3-.8-3.5.5-4.4 3.3-2.5 7.5-4 11.3-5.7a592 592 0 0 1 95.7-31.9q-8 .9-16 1.2a451 451 0 0 0-81.6 13c-.9-1.5-2-2.5-1.4-4.5 2.5-2 5.8-2.7 8.8-3.4l12.7-2.5c16.4-3.6 33-5.5 49.7-7.3 16.5-1.3 32.9-2.8 49.9-2.2m144 11.2c2.3-.3 3.8-.2 5.7 1.2 7.3 5 14.8 11.1 19.4 18.8q5.4 9 5 19.6c11.8 2.6 21 9.7 28.6 18.7a137 137 0 0 1 22.9 42.3 292 292 0 0 1 15 83.5c.1 2.2-.7 4-2.9 4.5-3.9.2-7.7-.2-11.6.8-2.7.5-6 2-8.7 1.3l-1-4q8.7-3.5 18.4-3.4a270 270 0 0 0-19.4-92.7q-6-14.3-15.4-26.6a57 57 0 0 0-17.6-15.3c-4-2.2-8.3-3-12.8-4.4l-.8-2a30 30 0 0 0-5.3-20.8c-5.4-8-12.8-12.2-20.1-18q.1-1.8.6-3.5"}},{"name":"path","type":"element","attributes":{"d":"M382.8 262.9c6-.4 12 0 18 0 20 .2 39.9 0 59.8.3 11.7-.3 23.3.6 35 1 4.8.2 9.7.5 14.2 2 2.2.9 3.3 3.3 2 5.3-1.5 2.2-5 2.7-7.4 3.4q-14.4 3.1-29 5c16.7-.3 33.9-1.8 50.5-.3 1.4.3 3.2.3 4.4 1.2q.4 1.7-.1 3.2c-1.4 1.1-3 .7-4.6.8-24.9-1.2-49.2 1.1-74 2.4-4 .3-8 .7-12 .2-2.6-.2-3.4-4-1.5-5.5 2.3-1.6 5.6-2 8.3-2.7 17.5-3.5 35.2-5.5 52.7-9-10.8-1-21.7-1.1-32.5-1.2-27.7-.5-55.4-.2-83-.5-1.4-.2-3.7-.3-3.7-2-1-1.6 1.3-3.6 2.9-3.6m158.6 33.3 3.3-.2c1.6 3.8 2.5 7.7 3.8 11.6 6 18 16.3 34.7 29.3 48.6a96 96 0 0 0 22.2 17.9c1.8 1.2 3.9 1.8 3.9 4.3-.6 3-3.2 2-5.5 2.3q-1.1 23.9-6.6 47.2c-1.1 3.8-1.5 8.9-4.6 11.6l-3.2-1.9c-.2-2.3.4-4.5 1-6.7 3.3-11.1 5-22.9 6.8-34.3.7-6.6 1.5-13.4 1.1-20q-9.3-6.3-17.2-14.3a140 140 0 0 1-34.2-57.8c-.7-3-2-5.4-.1-8.3m86.9 123.5c1.7 1.7-.2 2.9-1.2 4.2a78 78 0 0 0-27.8 19.3c-2.5 2.3-4.1 5.1-8 4.9L590 446q.4-2 1.7-3.4a98 98 0 0 1 32.6-23.5c1.5-.4 2.8-.9 3.9.6m-14 18.3c2.5-1 4.4.7 3.5 3.4-2.7 2.4-6 4-8.8 6.3q-7.6 6.4-14 14a31 31 0 0 1-5.4 4.5l-2.3-2.7c0-2.3 2.3-4.2 3.6-5.9 6.8-7 14.5-15.2 23.4-19.6"}}]},{"name":"path","type":"element","attributes":{"d":"M445 212q24.1.9 48 5.3a278 278 0 0 1 42.4 10.3c4.8 1.6 9.3 4 14.1 5.5q5.8 2.1 10.6 5.7c7.3 5.8 14.7 10 20.1 18q6.5 9.4 5.3 20.8l.8 2c4.5 1.4 8.8 2.2 12.8 4.4 7 3.6 12.7 9.2 17.6 15.3q9.3 12.3 15.4 26.6c12.4 29 18 61.4 19.4 92.7q-9.6-.1-18.4 3.4l-6 1.9c1-1.3 2.9-2.5 1.1-4.2-1-1.5-2.3-1-3.8-.6a98 98 0 0 0-32.6 23.5c-1 1-1.3 2.1-1.7 3.4q-1.6-3.2-3-6.5c3.1-2.7 3.6-7.8 4.7-11.6 3.6-15.4 6-31.4 6.6-47.2 2.3-.3 4.9.7 5.5-2.2 0-2.6-2-3.2-3.9-4.4a96 96 0 0 1-22.2-17.9 134 134 0 0 1-29.3-48.6c-1.3-4-2.2-7.8-3.8-11.6-1.6-4.4-2-9.4-3.2-14a68 68 0 0 0-15.6-2.4c-16.6-1.5-33.8 0-50.5.4q14.6-2 29-5.1c2.4-.7 5.9-1.2 7.4-3.4 1.3-2 .2-4.4-2-5.3a54 54 0 0 0-14.2-2c-11.7-.4-23.3-1.3-35-1-20-.3-39.9-.1-59.8-.3 13.2-2 26.1-5.6 39.3-7.7 9.6-1.6 19.2-3.7 28.9-5.2a494 494 0 0 1 34.6.8q7 .8 14 1l1.6-2.7c-1-1.2-1.6-2.5-3.4-2.7-6.8-1.5-14.2-1.2-21.2-1.6-13.3-.9-26.7-.6-40-.5-7.4-.1-14.7.7-22 .7-8.4.2-16.8 1.3-25.2 1.8a690 690 0 0 0-95.3 15.3q7.4-2.7 14.7-5.6 42-15.9 86-25c2.3-.6 5.7-.8 7-3.2.8-2.6-.6-4-3.1-4.2-17-.6-33.4.9-50 2.2a462 462 0 0 0-49.6 7.3l-12.7 2.5q14.2-5.7 28.7-10c5.8-.9 11.1-2.8 16.7-4.2q12.1-3.3 24.6-5.6c23.2-4.5 47-5.6 70.5-4.4","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short14":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M357.8 186c2.2-.3 5-1 7 .3q1.9 2.2.2 4.6c-1.7 2.1-4.2 3.8-6.4 5.5a76 76 0 0 0-9.3 9 388 388 0 0 1 129.3-7.7 287 287 0 0 1 86 21.7c14.5 6.6 29 15.3 39.9 27.1a52 52 0 0 1 14.7 31.9c4 .7 8 1.5 11.5 3.9a51 51 0 0 1 16.8 22.2 159 159 0 0 1 11.4 44.7c1.4 14.2 2.3 28.4 1.4 42.7-.8 9.5-1.3 19-3 28.5-.2 1.3-.3 2.5-1.8 3-6.7.7-14.4.7-20.7 3.2a148 148 0 0 0-25.7 12.3c-1.3.7-3 2-4.5 1.7a3 3 0 0 1-2.3-4.5c2.5-5.4 5.7-10.5 8.7-15.8-6 2.7-12.1 5.1-17.7 8.6-1.7-1.2-3.4-2.1-3.6-4.5-.8-10.4-.6-21-1.6-31.4q-2.1-1.9-4.6-3.5a167 167 0 0 1-18.1-13.9q-2.4-2-4-5a239 239 0 0 1-20-74.8q-11.7 0-23.3-1.6c2 1.8 4.8 3.5 5.6 6.2-.6 2.4-2.5 3-4.5 3.9a139 139 0 0 1-51.6 8.3c-28.2-.4-56.4-6.5-82.4-17.3 3.6 4 7 7.9 11.2 11.3 1.5 1.4 3.6 2.9 4.4 4.8q-.8 4.3-5.2 3.9c-17.5-1.6-34.7-5-52-8.3 0 5.9 1.3 11.6 1.6 17.5-.5 2-3 2.4-4.6 1.4q-2.2-1.6-4-3.4c-9-8.6-17.7-17-25.4-26.6-1.4-1.5-2.7-3.7-4.8-3.9-7.5-1-15.2-2.3-22.8-2.5-4-.3-8.1 2.5-11.7 4.1-4 2.3-8.7 3.9-12.2 6.8q-5.5 7.2-10.3 14.9a3 3 0 0 1-1.7 1.4 41 41 0 0 1-22.4-11 74 74 0 0 1-17.7-31.3c-.5-2-1.3-4.9.9-6.2 1.8-1.1 4.5.3 6.3 1 6.4 3.1 12.3 6.6 19.3 8.3a32 32 0 0 1-2-18.9 66 66 0 0 1 24.5-40.3c3-2.3 6.3-5 10-6.2 2.8-1 5.1 1.6 4.5 4.3-1.3 5.3-3.6 10.3-5 15.6a185 185 0 0 1 40-29.2 182 182 0 0 1 51.7-16.8"}},{"name":"path","type":"element","attributes":{"d":"M617 436.7c2-1.2 4.5 1.3 3.6 3.5-1.6 1.8-4 3-6.1 4.1q-9.1 5-17.9 10.4l-2.7-1.1c.2-1.3 0-2.9 1.1-3.8 3-2.6 7-4.4 10.4-6.6 3.9-2.1 7.6-4.6 11.5-6.5"}}]},{"name":"path","type":"element","attributes":{"d":"M354.7 192.4c-5.2 4.8-10 9.5-13.8 15.4q-1.2 1.8-.7 3.8c1.9 1.8 3.7 1 6 .6 40.5-10.5 83.7-13 125.4-9.5 29.5 2.8 59.9 8.8 87.2 20.5a128 128 0 0 1 38.1 23.9 51 51 0 0 1 15.7 26.3c.7 2.9.1 6.7 1.7 9.3 1.4 2.4 4 1.6 6.4 2 5 .2 9.7 4 12.9 7.7A77 77 0 0 1 647 320c3.9 13.1 6 26.9 7 40.5 1 19.3.7 38.7-2.1 57.9-6.6.8-12.9.9-19.2 3.2-7.3 1.8-14.3 5.9-21.2 9.1 2-3.7 4.4-7.4 6-11.4a6 6 0 0 0 0-4.7c-2-1.6-4-1-6.1-.2q-8.2 3.3-16 7.3c-1-10.2-.9-21-1.8-31.1-2.4-3-6.2-4.7-9.2-7-5.8-4.1-12.3-8.3-17.1-13.5a292 292 0 0 1-15-42.6 172 172 0 0 1-5.7-35c-1-1.4-3.4-2-5-2-9-.3-18.3-.4-27-2.3-2.4-.5-4.5-.8-6.1-2.7-3.5-3-6.3-7.3-10.2-9.8-3-.7-4.4 2.2-2.6 4.5q9.4 10.3 19.9 19.3c-15 5.7-32 7.6-48.1 7.6-30-.7-60.1-7.6-87.5-20.3-2.2-1-3.7-1-5.8.4-1.4 2.5.1 4 1.6 6q7.1 8.2 14.8 15.8c-15-1.5-30.1-4.5-45-7.2-2.9-.5-5.9-.2-7 2.9-1 4.1 0 9 .6 13.2-7.5-7.5-15.2-15-21.9-23.2q-8-9.7-15.4-19.6c-1-1.1-2.6-2.9-4.2-2.3-2 .6-2.2 3-1.2 4.6 2 3 4.5 5.9 6.6 8.9-6-1.3-12-1.3-18-2.2-2.4-.2-4.4-.7-6.6.4q-11.1 5.2-21.8 11.1c-4.2 4.3-7.2 10.1-10.7 15-6-1.2-11.7-4.1-16.2-8.4a67 67 0 0 1-16.2-27.2c6.7 3.1 14.4 7.6 21.9 7.8 2.2 0 5 .2 6.3-2 1.2-1.8-.4-3-1.3-4.3-3.4-4.3-3.4-10.2-3-15.4a62 62 0 0 1 26.9-41.6c-2 6.4-4.6 13.3-5 20-.2 3.1 3.3 4.2 5.2 2.2a185 185 0 0 1 42.3-32.7c15-8.1 31-13 47.7-16.5","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short15":{"elements":[{"name":"path","type":"element","attributes":{"d":"M564 .8c1.9-.6 3.6-1.2 5.6-.6l2.4 3c-3.4 5-6 10.4-8.7 16a181 181 0 0 0-19.5 82.3 383 383 0 0 1 105 5.6c2 .4 3.5 1 3.7 3.3.1 3-2.8 3.5-5 5a178 178 0 0 0-30.9 25 201 201 0 0 0-36.5 51.2c30 5.2 59 20 83.1 38.2 2 1.5 4.5 3.2 5.7 5.5-.5 4.1-4.6 4.3-7.7 5.7a254 254 0 0 0-54 27.4q19.3 12 36.2 27.2c1.6 1.7 3.6 3 3 5.7-.1 1.8-2.9 2.9-4.3 3.6q-11.7 5-23.8 9.1c-2.3.8-3.3 0-4.5-1.9a194 194 0 0 0-39.8-44 215 215 0 0 0-39.3-26.8c-2.7-1.3-5-2.6-8-2.5q-8.6 0-17.1.5c-32 2.5-63.6 10.3-93 23.1-15.6 7-31.3 15.6-44.4 26.6-2 1.6-4 4.1-6.6 5-5.8-1-11.5-3.4-17-5.4-18.8-7-35.1-20-49-34.2Q283.3 237.8 271 218c-6.2-9.5-12-19.1-16.4-29.6-1.4-3.2-3.2-6.6-3.7-10.1 0-1.3 1.2-3.6 2.8-3.2 3 1 6 2.9 9 4.2a92 92 0 0 0 18.5 6.3c12 3.4 24.6 5.8 36.9 8.3-1.2-7.7-1.2-15.4-.9-23.2a202 202 0 0 1 15.4-63.4 230 230 0 0 1 24.3-44.9A213 213 0 0 1 393.5 21c2.6-1.9 5.4-4.4 8.7-2.2 2.2 1 1.1 3.7 1 5.5-3.7 17-.4 34.6 4.3 51.2 2.6 9.3 6.7 17.9 11 26.5q5.3-7 11.5-13.3a420 420 0 0 1 69.8-55.3A344 344 0 0 1 564 .8","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M563.3 7.3a193 193 0 0 0-25.1 81.1l-.1 16.3c1 .8 2 2.5 3.5 2.5 6.3-.5 12.6-1.5 19-1.5 11.3 0 22.5-.3 33.8.7 16.3.4 32.3 2.8 48.4 5.6a202 202 0 0 0-38.6 33 234 234 0 0 0-29.6 44.4c-.8 1.8-2.1 4-1 5.9 1 1.3 2.5 1.1 4 1.4q9 1.3 17.8 4.1a213 213 0 0 1 65.5 34.6 250 250 0 0 0-55.9 27.4c-2.3 1.8-7.8 4-5.6 7.7 3.1 2 6.6 3.3 9.6 5.5 10.6 7.1 21 15 30.3 23.8q-10.5 4.4-21.2 8.1a201 201 0 0 0-36.2-40.8 218 218 0 0 0-48.8-33q-3-1.3-6.5-1.1c-37.5 0-75 8.4-109.5 22.9-19 8.2-37 18.2-52.6 32q-9.2-2.7-18-6.5a119 119 0 0 1-31-20 204 204 0 0 1-32.3-35.6c-9.3-13.5-18.3-26.5-24.8-41.7 18.1 8 38.8 11.3 58.2 15 2.6 0 6.3 1.9 7.4-1.5-.1-2.8-.8-5.5-1.1-8.2-1.4-9.7 0-20.3 1-30A226 226 0 0 1 362.3 65c10.2-14.6 21.6-28 35.1-39.6q-2 13.4-.6 27a144 144 0 0 0 13.9 47c1.7 3.1 3 6.9 5.3 9.7 1 1.3 3.5 1.7 4.4 0 5.2-8.9 12.8-15.6 20.2-22.8a456 456 0 0 1 62.1-47.8c19.3-12 39.5-23.2 60.7-31.2","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short16":{"elements":[{"name":"path","type":"element","attributes":{"d":"M363.8 24.4q2-.6 4-.6c2 3.8 3.1 7.7 4.8 11.7q5.9 14.1 14 27c9.1 14.9 19.1 29 30.8 42 5.7 6.5 11.8 12.4 17.4 18.8a117 117 0 0 1 50.6-41.2c11.6-4.9 24-8.9 36.3-11.5 2.3-.3 5.3-1.4 6.8 1 1.3 1.9-1 5-2 6.7-6.2 9.3-9 20-10.2 31.1a60 60 0 0 0 2 18.8 419 419 0 0 1 47.3 4.9c9.5 1.3 18.3 4.2 28 3.9a391 391 0 0 0 64-3c4.3-.4 8.7-1.1 13-1 2.6 0 4.4 1.7 4.5 4.3q0 7.9-.7 15.6-1.3 14.2-9.1 26.1 13 5.3 26.3 10.4c19 7.1 37.2 14.2 57 19 2.3.5 3.7 3 2 4.8q-15.3 13.4-31 26.3c-8.9 7.5-18 16-28.5 21.3a273 273 0 0 1 7.8 91.8 230 230 0 0 1-16 69q-1.3 4-3.7 7.5c-.7 1-2.3 1.2-3.4.8-3-1-6-2.7-9-3.7a51 51 0 0 0-38.2 3.2c-4.6 2.3-6.8 6.1-10.4 9.6q-8 8-16.9 15.1c-2.8 2.2-6 4.8-9.7 4.6-1.5-.9-2.4-1.4-2-3.3 1-4.9 2.7-9.5 3.4-14.5a257 257 0 0 0-1.4-79.5c-1.8-10.5-4.1-23-12.4-30.6-9.6-9-18.2-18.9-27.3-28.4-2.5 20.7-10.2 41-20 59.3-8.7 16-19.8 31.4-33.4 43.6-1.8 1.5-3.7 3.3-6 4-2 .4-5.9.1-5.2-2.9.5-3.7 1.8-7.2 2.4-11a184 184 0 0 0-2.3-70.6 111 111 0 0 0-18.2 41.1 70 70 0 0 0 .7 38c-1.4 1.1-1.9 2.8-4 2a117 117 0 0 1-55.5-42.1 94 94 0 0 1-25.1-10.1 92 92 0 0 1-30-30.8 135 135 0 0 0-5 21.5 135 135 0 0 0 4.2 61q.8 2.1.6 4.2a7 7 0 0 1-8 1.3c-17-6.3-31.4-17.2-43.2-30.8a149 149 0 0 1-22.8-34.2q-6 5-11.4 10.6a309 309 0 0 0-43.8 58.2 178 178 0 0 0-15.8 34c-.9 2-1 4-3.5 4.8-3-.6-3.4-3.3-4.4-5.7q-6-17.7-7.7-36.4c-2.4-20.8-1.5-42 2-62.5a144 144 0 0 0-35.6 10.9c-3.3 1.5-6.2 3.8-9.4 5.4-3.3-.3-3.5-3-3.2-5.8a209 209 0 0 1 44.1-97.6 76 76 0 0 1-29-46c-.4-2.7-1.6-6.5 1.4-8.3 4-.8 8.7.4 12.8.6a129 129 0 0 0 47.4-5.3c7.3-2.3 14.6-4.6 21.4-8.3a215 215 0 0 1-35-75c-1.2-5.2-3-10.7-3.2-16.1 0-2.5.6-4.8 3.4-5.2 3.1.1 6.1 3 9 4.2 20 10.5 41.3 19 63.2 24.7a366 366 0 0 0 46.5 7.5q-2.4-19.3 2.3-38.2 5-20.1 14-39c4.1-9 9-17.6 13.4-26.6 1.1-2.1 2.2-4.6 3.8-6.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M365.4 33.2a230 230 0 0 0 27.2 49.2Q402 95.9 413 108c5.9 6.6 12.4 12.3 18 19 1.8 1.8 2.9 4.4 5.8 3.7 2.3-2.4 3.8-5.6 6-8.3 7.4-9.7 16.5-18.4 26.7-25.2a166 166 0 0 1 51.1-20.5 68 68 0 0 0-6 56.8c1.6.6 3.5.3 5.1.3 8.3-.2 17 1.2 25 2q18 2.3 36 6c4 1 8 .3 12 .4 16 1 32 .5 48-.6 9.7-.8 19.2-2.3 28.9-3l-.9 13.8a53 53 0 0 1-8.8 24.6q-14.9-5.9-30.4-10.3c-1.9-.4-3.5-1-5.1.4q-.3 1.6-.4 3.4c5.7 2 11.5 3.4 17.2 5.5 17.6 6.4 35 13.8 52.5 20.4 16 6 32.4 12.2 49 16.6a915 915 0 0 1-26.4 22c-8.6 6.9-17 15-26.7 20.1q-3.8-12.1-9.1-23.5c-.8-1.4-1.2-2.7-2.9-3.2-2-1-4 2.1-3 4 1.6 4.3 3.8 8.4 5.4 12.8a249 249 0 0 1 13.9 97.4 227 227 0 0 1-18 80.9c-13.5-6.2-29-7-43-2.3q10.9-14.9 18.8-31.6a48 48 0 0 1 2.4 11.8c.3 2.1-.3 4 1.5 5.6q3.3.7 3.8-2.6a41 41 0 0 0-3.4-18.2c-.9-1.9-2-4.8-4.3-5.1s-3.2 1.4-4 3.2a197 197 0 0 1-29.6 46.6c-6.4 7.4-13.8 13.7-21.2 20.1q3-12.4 3.8-25c.4-8 1.2-15.7.6-23.6a250 250 0 0 0-8.2-59.1q12.3 9.8 25.6 18.2c2 1.1 4.3 3.8 6.9 3 2.1-1.1 3-4.1 3.6-6.3 4.4-18.7 5-38 2.1-57-2-13.1-4.7-27-10.3-39-1.2-2.3-2.4-5.2-4.4-6.9-1.9-1.4-4.2-.3-4.2 2.1 1 3.7 3.4 6.9 4.7 10.5 5.3 13 7.8 27.6 9.5 41.5q2.8 24.4-2.7 48.4a247 247 0 0 1-31.7-22.9c-13.2-11.5-24.8-24.8-37.2-37.8-7.1-8.2-14.6-16.5-20.1-25.9-4.5-7.3-9.2-14.4-12.7-22.3q-4-9-8.6-17.4c-1.9-3.3-2.9-7-4.7-10.4-2-.4-4-.1-4 2.3.4 4.4 3.1 8.8 5 12.8 4.7 8.5 8 17.7 12.8 26l8.7 14.5c4.5 7.2 9.9 13.3 15.3 19.8a160 160 0 0 1-20 62.8c-8.4 15.1-18.9 30-32 41.4 3.9-19.4 3.8-39 1.8-58.5-1.4-8.5-2.2-18-5.6-26-2.8-2.8-4.3.4-6 2.4-17 22.2-26.7 52-22.5 79.9a105 105 0 0 1-31.4-20.4 146 146 0 0 1-39.6-67.7 180 180 0 0 1-6.5-48c.5-14.2 1.8-28.2 6.1-41.8 1.3-4.4 2.2-8.7 4-13q5.4-11.6 13.2-21.7a140 140 0 0 1 33.3-31.6q10.5-7.3 22.8-10.6a85 85 0 0 0-4 40.7c.3 1.7.3 3.5 1.7 4.7 1.7 1.7 4.9-.3 4.4-2.6a85 85 0 0 1 1.8-36.3c.8-3.1 2.6-5.9 3.6-8.9.3-2.7-3-3.7-5-3.7A72 72 0 0 0 436 151c-13 9-24.4 20.4-33.9 33.1a99 99 0 0 0-17.5 36.4c-11.9 45.6-4.6 96 20.6 136a79 79 0 0 1-45.7-37q-1.3-2.7-3-5.1c-2.5-.4-4.6 0-5.4 2.6-5.5 14.7-7.8 31-8.4 46.5 0 14 1.3 28.4 5.6 41.8a98 98 0 0 1-35-23.6 154 154 0 0 1-38.6-69.2q-4.8-19.2-5.5-39c-.8-10.4-1-20.5 1-30.8.2-2.3 1.2-4.2-1-6-1.9-1.5-3.6 0-4.9 1.6a213 213 0 0 0-17 27 107 107 0 0 0-13 38c0 2-.6 5.7 1.4 7 1.2 1.1 3.9 0 3.5-1.8a90 90 0 0 1 7.7-29.8c4.6-10 10.6-19.7 16.4-29.2a231 231 0 0 0 2 44q3.1 24.5 13.1 47A275 275 0 0 0 228 400a242 242 0 0 0-21.8 41.7q-5.9-19.6-6.8-40.2-1.6-23.5 2-46.8c1.9-11 4.6-22.7 9.7-32.7.6-1.3 1.6-3 1.3-4.5 0-1.6-1.6-2.3-3-2.3-1.9 1-2.7 2.7-3.7 4.4-3.7 7.5-6 15.3-8 23.4-14.9 2.5-30 6.8-43.2 14.1a202 202 0 0 1 36.3-84.2c6.6-8.6 14.2-17 23.2-23 2.8-2 6-3.2 9-5 1.3-1.2 1.2-3.7-.6-4.4-1.2-.8-3.2 0-4.4.5a78 78 0 0 0-21.8 16.5 70 70 0 0 1-27.6-44.2c17.9 1.4 35.8 1.5 53-3.6 9.6-3 19.6-6 28.2-11q8.9 9.7 20 16.5c2.2 1.2 4.3 2.3 6.9 1.7 1.8-.9 1.3-2.7 1.4-4.4a62 62 0 0 1-18.5-12.1c-9.7-8.8-16.4-20-22.7-31.3a229 229 0 0 1-23-63.4c24.6 13.2 51 23.7 78.4 29.4 16.3 3.2 32.8 4.7 49.2 7 13.8 2.3 27.7 4.4 41.2 7.9q9.4 2.4 19 4.5c2.9 0 2.4-4.6 0-5.2-3.9-1.3-8-2-12-3.1-17.4-5-35.5-8-53.4-10.7a90 90 0 0 1 1.8-37.2q5.5-21.8 15.3-41.9L364 35.8z","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short17":{"elements":[{"name":"path","type":"element","attributes":{"d":"M468.5 164.5c8.1 2.3 15.2 7 21 13q9.6 10.5 16.7 23 10.6-8.4 23.4-13c5.4-2 12.4-3.4 17.9-1 4.6 2 6.7 7.1 6.2 12-.7 7-4.6 13.6-8.3 19.4 8.9-1.8 18.1-4 27.2-4.6q8.5-.5 17-.6c12.9.2 27.1 1.2 39 6.7 4.2 2 9.4 5 11.6 9.4 1.8 4.5-.2 8.6-3.2 12a88 88 0 0 1-19.6 15.2 124 124 0 0 1 41.1 21.5c4.5 4 9 9.5 8.7 16-.5 6.2-4.4 10.7-9.4 14a88 88 0 0 1 24.8 28.9c4 7.8 6.7 17 3.4 25.6-2.6 7-8 11.5-14.5 15a59 59 0 0 1 11 36.4c-.3 6-2 11.8-6 16.4-3.1-.2-6.2-2-9.2-3a58 58 0 0 0-46.2 6l-13.8 8.3c3.3-.3 7.1-.9 10.4-.1 2.6 3.1.3 5.4-1.2 8.3-2.2 3.5-3.9 7.4-6.4 10.6-1.7 2.4-5.9.4-5-2.5 1.4-3.7 3.9-7 5.8-10.5-6.6 0-12.5 2.8-19 2q.1-2.3.6-4.4c2-2.3 5-4 7.5-5.7q10-6.6 20.4-12.5c-7-.5-13.8-.2-20.6-.6q-3.4-.1-4-3.4c-.8-4.5.4-9.6.2-14-.7-2.6-2.5-5-3.9-7.4a185 185 0 0 1-19.6-50.4c-5.1.2-9.9.5-14.9-1a40 40 0 0 1-14.3-7.8 58 58 0 0 1-14.5-23.2 30 30 0 0 1-17.2 9c-4.8.1-8-3.4-9.4-7.7-2-6.7-.4-14.8 1.2-21.4a262 262 0 0 1-80.8 20c-11.2.7-22.5.1-33.7-.2 1.7 3.3 3.4 6.3 3.2 10.2 0 3.5-2.4 6.7-5.7 7.7-5.8 1.8-11.4 1-17.3 0a104 104 0 0 1-28.4-10c-.3 3.6-.3 7-2 10.3a26 26 0 0 1-8 9.2c-6.8 4.8-17 4.6-23.2-1a71 71 0 0 1-14.6-19.9 79 79 0 0 1-8.7 12.2 78 78 0 0 1-24.5 20.7 32 32 0 0 1-17.1 3.6c-4.4-.8-7.7-4.4-9.4-8.3a32 32 0 0 1-.2-23.3 120 120 0 0 1-31.4 4.5 24 24 0 0 1-13.5-3.2c-5-3.4-7.5-10.4-5.1-16.1a27 27 0 0 1 12.5-12.5c8.4-4.4 18.9-5 28.2-5a79 79 0 0 1-14.4-12.7c-3.4-4-6-9-6.5-14.2-.4-5 2.8-9.4 6.5-12.3a45 45 0 0 1 20-8c10.6-1.4 21.3-2.4 31.9-1.2a22 22 0 0 1-7.5-11.5c-.8-4-1-8.7 1.6-12.2a28 28 0 0 1 12-8.2c10-4 21.5-5.2 32.3-5.5 13.4-.7 26.6.1 40 .9-3.5-7-8.4-14-8.2-22 .1-6 4.2-10.7 9.7-12.6a66 66 0 0 1 26.5-2.2c13.8 2.1 27.6 5.5 41 9.4l24.6 8c.2-8.7 2.5-17.7 9.7-23.3a29 29 0 0 1 25.6-5.2m156.1 375.8c5.4 1 10.4 2.7 16 2.8 2.4.4 6-.4 7 2.4a23 23 0 0 1-1.8 11c-3.3 8.2-11.8 14-20.7 12.4-6.2-1.2-10-5.7-12.8-11q4.9-7 9.4-14.4c.8-1 1.6-2.6 2.9-3.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M470.4 171.5c10.5 4.1 18.7 14.1 25 23.2 2.9 3.9 5 8.3 7.7 12.3 2.8.8 4.7-.7 6.8-2.3a75 75 0 0 1 17-9.9c5.4-2.3 10.6-4.4 16.7-3.4 3.2.9 4.5 3.9 4 7-1 7.4-5.9 13.4-9.5 19.5-1.4 2 0 5.4 2.5 5.6 5.1.5 10.7-1.2 15.8-2 7-1.6 14-2 21.2-2.7 13.8-.6 28.6-.2 42 3.6 5.3 1.7 11.8 4.4 15.2 9.1.3 2.4-2 5-3.5 6.6a95 95 0 0 1-21.2 15c-1.9 1.1-3.7 1.7-3.8 4.3.5 2.3 2.2 2.6 4 3.2 11 2.6 21.6 7.2 31.5 12.6 6.5 4 14.6 8.8 18.3 15.7 2.3 4.2.2 9-3.3 11.8-1.9 1.3-4 1.8-6 3-2 1.5-.7 4.3.7 5.8 5 4.4 10.3 8 14.6 13.4a67 67 0 0 1 14.4 24.5 19 19 0 0 1-2.4 16.5c-3.2 5-7.9 6.6-12.8 9.2-2.8 2.1-.7 4.8.7 7a52 52 0 0 1 10 37c-.3 2-1.4 4-2.2 5.7a59 59 0 0 0-37.8-2.1c-3.9 1.4-7.3-.1-11.4-.3l-23-.1c-.3-5.5 2.1-12.9-1.3-17.5-10-16.7-18.1-35-22.5-53.9a43 43 0 0 0 22.2-19c.8-1.5.4-3.7.3-5.3q-2.1 0-4.2.3l-5 7a34 34 0 0 1-20.5 12.5 25 25 0 0 1-16.8-3 40 40 0 0 1-17.8-21.2c-1.7-3.7-1.8-7.6-2.9-11.3-1.9-1-3.8-1.2-5.2.7-3.4 4.6-7 8.6-12.4 10.8-2 1-5.3 2.2-6.7-.3-2.8-4.5-2-9.8-1.1-14.7.7-5 3-9.2 2.5-14.5-2.5-.2-4.8-.2-7.1 1a255 255 0 0 1-38.5 13.3 226 226 0 0 1-84 6.3c-2.7-.6-4.5 3.3-2.3 4.8 4 3.3 8.2 6.2 8.1 12-.2 2.5-3.8 2.8-5.8 3-14 .1-27.2-5.6-39.4-11.7-2.3-1-4.6-2.8-6.1.3-1 4 .4 9-1 13a18 18 0 0 1-11.7 10c-4.5 1.2-9-.9-12.2-4a77 77 0 0 1-12.3-17.7q-1.5-3.2-3.4-5.9c-1.3-.6-3.3-.4-3.9 1.1-2 4-3.7 8-6.5 11.5a85 85 0 0 1-26.3 23.8 26 26 0 0 1-14.5 3.4c-4.7-2-6-8-6.5-12.7-.2-5.8 1.8-12 5.2-16.7 1-1.5 1-2.3.3-4-2.3-1.2-4.4 0-6.6.7a90 90 0 0 1-33.1 5.7c-4 0-8.7 0-11.8-2.9-3.1-2.3-3.3-7.5-1-10.4 4.3-5.6 11-9 17.7-10.3 8.9-1.6 18.5-1.2 27.4-2-.2-1.7.6-4.2-1-5.2-5-3.5-10-6.5-14.4-10.8-5-4.8-10.2-9.6-10.6-17 .2-3.3 3.3-6.1 5.9-7.9a57 57 0 0 1 26.8-6.7q15-1.5 29.8 2c1.8.2 4 1.4 5.3-.5 1.6-1.7.7-3.7-1-5-4-2.8-9.2-5.3-12.8-9.2a17 17 0 0 1-4-9.8c.3-4.1 4.2-6.6 7.4-8.3a82 82 0 0 1 31.3-6.5q15.1-.4 30.2.1c6.6.3 13.3 1.5 19.8.7-.1-4-2.3-6.6-3.9-10.1-2.4-5.1-5.8-10.3-6.3-16-.4-3 .6-6 3.4-7.7 3.7-2.2 8.6-2.7 12.8-3 5.8-.2 12-.4 17.8.7q18 3.4 35.7 8.6c9.9 3 19.6 6.7 29.6 9.5 2.6.3 3.1-2.9 2.6-5-1.7-8.4 1.9-18.4 9.6-22.8 6.6-4 14.5-4 21.5-1M626.3 547q7.9 1.3 15.8 2.2c-1.2 7.1-5.9 13.6-13.5 14.1-4.3.4-6.4-2.4-9.3-5z","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short18":{"elements":[{"name":"g","type":"element","attributes":{"fill":{"type":"color","name":"ink"}},"children":[{"name":"path","type":"element","attributes":{"d":"M438.6 95.7c5.7.5 11.4 3.3 14.7 8a60 60 0 0 1 8.2 20.8q4 18.9 6.9 38c9.6-16.4 15.6-33 29.1-47.2 5.2-5.4 12.9-7.3 20.1-8 8 .2 16.7 3.4 24.5 5.5 5.6 1.7 11.6 3.3 16.7 6.4 4 2.4 6.5 6.5 7 11.1 1.2 15.4-3.9 28-8.7 42.1a178 178 0 0 1 45-18.7c6.4-1.3 13.1-.1 18.4 3.9a64 64 0 0 1 15.2 15.7c2.2 3.4 3.8 7 3.4 11-.5 8.2-4.6 16.3-7.9 23.7q-4 9-9.7 17.1c6.8-1 13.4-2.8 20-4 6.3-1.2 13.4-2.9 19.7-1.2 5.8 1.6 10 7 12.8 12.1 3.6 7.6 6 15.9 8 24 .8 3.6 1.2 7-.5 10.4-2.6 5.7-7.9 8.8-13.2 11.8a144 144 0 0 0-12.9 8c4.6.7 10.4 1.4 14.1 4.2 4 3.4 4 9.2 4 14 0 5.5-1.2 10.7-5.6 14.4a42 42 0 0 1-20.6 7c4.2 8.7 7 18.1 9.2 27.5q5.2 23.8 5.2 48.1c-.6 7.2-.4 14.9-2.5 21.8-2.6 1.6-6.6.1-9.6.7-7 1-14.5 2.6-21 5.5-3.5 1.5-5.4 4.3-8 7-4 4.9-8.6 9.5-12.7 14.3q-3 3.6-6.3 6.8c-2 2-6.2-.4-6-3-.2-10 .3-19.9-.7-29.8-1.9-19.6-6.2-40-14.8-57.8a62 62 0 0 0-20.5-25.5c-4-2.6-8.3-3.5-13-4.1a3 3 0 0 1-2.5-4c1.3-3.5 3.5-6.7 5.6-9.8q9.6-14.3 21.8-26.5c-23-7.3-46.4-10.8-70.4-12.8a625 625 0 0 0-208.2 19.5 282 282 0 0 0-45 16.9q-3 1.6-5.7 3.7-.9.8-2.4 0c-1.5-1.2-1-3.8-.6-5.4q2.5-10.2 6.4-20c-10.7-4.1-21.2-8.7-32-12.5a42 42 0 0 1-17.2-9.9 24 24 0 0 1-5.6-13.1c-1-7-1.5-15 .8-21.8a18 18 0 0 1 12-11.2c8-2.4 16-2.6 24.2-2.1-4.4-5.6-11-11.7-12.2-18.9-.8-6 3.3-12.5 6.8-17.2a73 73 0 0 1 15-16c4.6-3 10-2.4 15-.6 15.7 5.7 31 13.6 44.4 23.8q-8.7-16.2-14.9-33.5c-1.7-4.8-2.8-10.6 0-15.2a74 74 0 0 1 27.3-25.7c4.6-2.6 9-4.8 14.5-3.9 4.3.9 8.3 3.8 12 6.3 12.9 9.6 24 21.8 34.3 34.2.9-12.4-.3-24 2.2-36.3 1.4-6.6 4.7-13 10-17.3 4.4-3.8 10.2-5.5 15.6-7.2s11-2.4 16.8-3.3c8-1.2 15.8-2.4 24-1.8"}},{"name":"path","type":"element","attributes":{"d":"M620.9 443.1c.7 2 .5 3-.8 4.8-4 5.2-8.6 10-12.8 15.2-2 2.5-4 5.4-6.4 7.7-1.1 1.1-3.7 1-4.3-.6-1-2.1.5-3.5 1.7-5q7-8.6 14.2-16.8 2.3-2.9 4.8-5.3c1.2-1.1 2.3-.5 3.6 0"}}]},{"name":"path","type":"element","attributes":{"d":"M436.6 101.5A15 15 0 0 1 449 108c3.8 5.9 5.6 13.6 7.2 20.4q4.3 20.4 7 41c0 2.5 1.7 3.3 3.4 4.6 4-2.3 5-6.3 7.4-10.1 9-15.3 15.1-30.4 27.3-43.8 3.8-4.2 8.8-5.7 14.3-6.5 6.4-.7 13.4 1.7 19.5 3.4 6.8 2.1 14.4 3.7 20.6 7.3 3.6 2 4.4 6.3 4.5 10q-.7 13.7-5.4 26.4c-1.6 4.8-3.8 9.7-4.6 14.8-.1 1.9 1 4.9 3.4 4.7 1.9-.1 3.7-1.6 5.4-2.4 11-6.6 23.2-11.6 35.4-15.7 5.3-1.6 10.5-3.6 16.2-2.5 3.8.7 6.6 3 9.5 5.3a57 57 0 0 1 11.2 12.8c1.2 2 2.3 4.3 2 6.7-1 8-5.3 15.9-8.6 23.2q-3.8 7.9-8.8 15.2c-1.2 2-3 4.2-2.6 6.7q1.3 2.6 4.2 2c11.7-2 23.4-4.7 35.1-6.4 3.9-.6 8.4.3 11.2 3.1 5.2 4.8 7.5 12.7 9.7 19.2 1.3 4.9 3.7 10.8 2.8 15.8-1.6 4.7-7 7.5-11 9.8-5.5 2.8-10.3 6.4-15.5 9.6q-2.2 1.6-3.7 3.7c1.1 1.5 1.6 3.4 3.6 4 5.7 1.9 11.6 1.7 17 4.8q1.9 7.5.2 14.9c-.8 2.9-3.1 4.7-5.8 6a45 45 0 0 1-21.6 4l-1 2.6c2.7 4.8 5.4 9.4 7.2 14.7 5.8 16.3 8.4 33.8 9.7 51 .3 10 .5 20-1.1 29.8a92 92 0 0 0-28.5 5.8c-2 .8-3.7 3-5.2 4.5q-9.6 10.2-18.9 20.6c0-7.2.2-14.4-.7-21.6a189 189 0 0 0-10-50.3 103 103 0 0 0-15.7-29.4 41 41 0 0 0-24.3-16 159 159 0 0 1 28.3-33.6c1.8-2 .6-4.7-2-5.3-22-7.8-45.5-11.6-68.7-14a636 636 0 0 0-106-.2 569 569 0 0 0-120.8 22.2 260 260 0 0 0-35.9 14q2-6.4 4.6-12.6c.6-1.9 1.7-3.6 1.1-5.6-1.5-1.9-4.3-2.9-6.5-3.8-9.2-3.7-18.3-7.9-27.7-11.3-5.1-2-11-4-15.2-7.7-3.7-3-5-7.8-5.7-12.3a44 44 0 0 1 .7-17.6q2-5.5 7.3-7.5c8-2.7 15.8-2.6 24-2 2.6 0 5 .7 7.3-.9q1.2-2.1-.1-4.1c-4-6-10.1-11.3-13.5-17.8-2.1-5.2.8-9.8 3.7-14 4.3-5.6 9-12 14.7-16.2 2.9-2.1 6.2-1.3 9.3-.3a170 170 0 0 1 36.7 18.3c4.4 2.9 8.4 6.5 13 9 2.4 1.1 5.3 1 6-2-.8-4-3-7.7-4.7-11.3q-7.7-14.8-13.1-30.7c-1.1-4-2.9-7.3-.4-11.1a70 70 0 0 1 25.6-23.5c4.2-2.3 8.1-4.3 12.7-1.6 11.8 6.7 22 17.2 31 27.1q6 6.6 11.4 13.7c1.3 2.6 6.8 2.6 7.4-.6.7-13.8-.3-28.3 2.6-41.8a23 23 0 0 1 12-16.6 78 78 0 0 1 23.3-6.3c7.7-1.2 15.3-2.4 23.2-2.2","fill":{"type":"color","name":"hair"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]},"short19":{"elements":[{"name":"path","type":"element","attributes":{"d":"M462.6 212.4A224 224 0 0 1 567 255.1c4 3.3 8.3 6.2 12.2 9.7q16.3 14.4 29.7 31.3c24 30.7 40 67.6 45.4 106.3 1 6.7 2 13.3 1.5 20.2-4.1 2.9-8.2 1.5-13 2.5-5.8.7-10.8 3.1-16.2 5-2.8.1-2.7-2-3.6-4 7.5-5.3 18.3-7 27.3-7.7A218 218 0 0 0 577.2 271c-6-6.2-13-10.4-19.7-15.5-32.7-23-72-36.5-111.9-38.9-12.8-.2-26.1-.6-38.8 1.2a218 218 0 0 0-143 78.6l-4-1.5c.6-2 .6-3.7 2-5.3a224 224 0 0 1 146.8-77.9l12.5-1c14-1 27.7 0 41.5 1.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"opacity":".1","d":"M445.6 216.6a219 219 0 0 1 112 39c6.6 5 13.7 9.2 19.5 15.3a218 218 0 0 1 73.2 147.5c-9 .8-19.8 2.4-27.3 7.8-3 2.2-6.2 4.5-9.8 5.8-1.5.7-3.3-1.2-3.2-2.7.3-3.5 1.5-6.9 2-10.4 2.2-13.8.6-28.4-4.6-41.4a41 41 0 0 1-16-1A57 57 0 0 1 567 360c-8.5-9-15.5-19.8-21.2-30.8a241 241 0 0 1-20.8-59.6 180 180 0 0 1-35 12.4 663 663 0 0 1-115.4 18.8c-15 1-30 2-45 2-13.7 0-27.4-.1-41-1.7-8.5-.6-16.5-2.9-24.8-4.7a218 218 0 0 1 143-78.6c12.7-1.8 26-1.4 38.8-1.2","fill":{"type":"color","name":"ink"}}},{"name":"earrings","type":"component","attributes":{"transform":"translate(630.5 421.2)"}}]}}},"head":{"width":501,"height":448.2,"variants":{"default":{"elements":[{"name":"path","type":"element","attributes":{"d":"M252.8 2a225 225 0 0 1 104.8 42.3c6.2 4.9 12.5 9.4 18 15a225 225 0 0 1 71.8 149 58.5 58.5 0 0 1 50.9 42.2 71 71 0 0 1-27.7 76.5 64 64 0 0 1-37.8 11.7c-5.1 0-10-1.6-15.1-1.8q-2.7 3.5-4.8 7.3a223 223 0 0 1-167.1 102.7c-11 .7-21.9 2-33 .7A223.7 223.7 0 0 1 34 105.3 223 223 0 0 1 208.8.6a216 216 0 0 1 44 1.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M355.6 50.3A216 216 0 0 0 219.8 6.2a197 197 0 0 0-39 4A218 218 0 0 0 67.2 375.8 218.5 218.5 0 0 0 327.6 416c35-18.8 64.3-47.3 84.4-81.5l-3-1.6q-4.4-2-8-5c-2.2-2-.3-5.8 2.7-4.7q2.3 1.1 4.4 2.4 2.2 1.6 4.7 2.6a55 55 0 0 0 54.9-6.2 64.5 64.5 0 0 0 25-69.8 53 53 0 0 0-24-31c-13.4-8-30-9-44.7-3.7l-2.3 1c-1.6.7-3.4 1.4-5 1.2-2.5-.2-2.8-4.2-.6-5.2 8-4 16.5-5.6 25.4-6.4A217 217 0 0 0 373 65l-3.6-3.3c-4.3-4-8.6-8.1-13.8-11.3m107.6 196.2c2-1.2 1.3-5.1-1.4-5-2 0-4.2.8-6.2 1.6l-1.4.5a95 95 0 0 0-25.5 12.3c-2.2 2-2.2 4.4.1 6.2l5.2 2.8a36 36 0 0 1 13 9.3c-.2 1.8-2 3.3-3.4 4.4l-.2.2c-3.9 3-8.8 5-13.6 7l-7.2 3.1c-1.6.8-2.5 2.2-1.5 3.9 1 2 3.2 1.1 5 .5l.6-.2 5.4-2.3c5.4-2.3 11-4.5 15.4-8 2.7-2.1 5.1-5.1 5.4-8.7-.5-3.4-2.7-5.7-5.3-7.8-3.5-2.8-7.7-5-11.6-7.2l-1.1-.6q8-4.5 16.7-7.7l4.8-1.7a52 52 0 0 0 6.8-2.6","fill":{"type":"color","name":"skin"}}}]}}},"mouth":{"width":206.2,"height":137.7,"variants":{"variant01":{"elements":[{"name":"path","type":"element","attributes":{"d":"M186.5 29c2.4 1 1.9 3.5 1.4 5.5a92 92 0 0 1-28.4 34 97 97 0 0 1-60 17.5c-26.8-1-53-12-73.5-29.3-.4-2.4-.4-3.7 1.5-5.4 51.8-7.1 106.8-15 159-22.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M180.4 36c-8.2 15-21 27.4-36.4 34.9a89 89 0 0 1-40.5 9.2c-24.7.2-49-9-68.6-23.9 48-6.6 97.7-13.8 145.5-20.3","fill":{"type":"color","name":"throat"}}}]},"variant02":{"elements":[{"name":"path","type":"element","attributes":{"d":"m131.5 24 1.2 2.4c.4 2.7-2 3.4-3.8 4.4l-12.2 5a184 184 0 0 1-73.6 12c-5-.6-10.2-.7-15-2-2.3-1-2.7-4-.3-5.2 2.7 0 5.5.9 8.2 1 7.2 1 14.3.7 21.5.7a189 189 0 0 0 65.7-15.5c2.8-1.2 5.2-2.6 8.3-2.7","fill":{"type":"color","name":"ink"}}}]},"variant03":{"elements":[{"name":"path","type":"element","attributes":{"d":"M83.5 89.3a37 37 0 0 1 27.4 11.7 51 51 0 0 1 11 18c.4 3.4 2.2 6.3-1.5 8.7l-25 1c-12.2 1-24.6.5-36.8 2-2-2-2.4-3.8-2.6-6.4-1-8.6 1.2-17.9 6.7-24.7a28 28 0 0 1 20.8-10.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M91 95.9c12.6 3 22 14 25.5 26.2-18.3.4-36.6 1.7-54.8 2.2a28 28 0 0 1 7.6-23.1c5.8-5.7 14-7 21.7-5.3","fill":{"type":"color","name":"throat"}}}]},"variant04":{"elements":[{"name":"path","type":"element","attributes":{"d":"M135.6 105c2.5.2 4.7 1.4 4 4.2-1.5 2-4.5 1.3-6.7 1.5A155 155 0 0 0 89 119a74 74 0 0 0-14 6.2c-2 1-3.3 2.6-5.6 1.5-2.2-1.6-1.2-3.5 0-5.2q12.9-7.3 27.1-11a144 144 0 0 1 39-5.5","fill":{"type":"color","name":"ink"}}}]},"variant05":{"elements":[{"name":"path","type":"element","attributes":{"d":"M132.5 20c18 0 37.2 2.1 54 9-52.2 7.3-107.2 15.2-159 22.3 8-7 17.7-12.3 27.4-16.5a79 79 0 0 1 39.6-7.4q1.5.2 2.7-.3c10.2-6 23.7-6.8 35.3-7.1","fill":{"type":"color","name":"lips"}}},{"name":"path","type":"element","attributes":{"d":"M186.5 29c2.4 1 1.9 3.5 1.4 5.5a92 92 0 0 1-28.4 34 97 97 0 0 1-60 17.5c-26.8-1-53-12-73.5-29.3-.4-2.4-.4-3.7 1.5-5.4 51.8-7.1 106.8-15 159-22.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M187.9 34.5c-1.1 4.6-1.9 9.2-3.7 13.7a72 72 0 0 1-28.4 33.5 103 103 0 0 1-45.3 16 96 96 0 0 1-58-11.3A61 61 0 0 1 26 56.7 122 122 0 0 0 99.5 86a92 92 0 0 0 88.4-51.5","fill":{"type":"color","name":"lips"}}},{"name":"path","type":"element","attributes":{"d":"M180.4 36c-8.2 15-21 27.4-36.4 34.9a89 89 0 0 1-40.5 9.2c-24.7.2-49-9-68.6-23.9 48-6.6 97.7-13.8 145.5-20.3","fill":{"type":"color","name":"teeth"}}}]},"variant06":{"elements":[{"name":"path","type":"element","attributes":{"d":"M79.5 18.2a84 84 0 0 1 43.7 8.6 188 188 0 0 1-65.7 15.5c-7.2 0-14.3.3-21.5-.6a17 17 0 0 1 7.7-13 68 68 0 0 1 35.8-10.5","fill":{"type":"color","name":"lips"}}},{"name":"path","type":"element","attributes":{"d":"m131.5 24 1.2 2.4c.4 2.7-2 3.4-3.8 4.4l-12.2 5a184 184 0 0 1-73.6 12c-5-.6-10.2-.7-15-2-2.3-1-2.7-4-.3-5.2 2.7 0 5.5.9 8.2 1 7.2 1 14.3.7 21.5.7a189 189 0 0 0 65.7-15.5c2.8-1.2 5.2-2.6 8.3-2.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M116.7 35.8c-2 10.1-10.3 17.2-19.2 21.6a56 56 0 0 1-34 4.8C54.8 60.4 47 56 43.1 47.7q9.7.8 19.4 0a184 184 0 0 0 54.2-12","fill":{"type":"color","name":"lips"}}}]},"variant07":{"elements":[{"name":"path","type":"element","attributes":{"d":"M91.3 81.7a44 44 0 0 1 30.5 37.3 50 50 0 0 0-10.9-18 37 37 0 0 0-27.4-11.7 28 28 0 0 0-20.8 10.3c-5.5 6.8-7.7 16-6.7 24.7-.7-4.7-1.9-9.1-1.8-13.9a31 31 0 0 1 10-23.3 29 29 0 0 1 27-5.4","fill":{"type":"color","name":"lips"}}},{"name":"path","type":"element","attributes":{"d":"M83.5 89.3a37 37 0 0 1 27.4 11.7 51 51 0 0 1 11 18c.4 3.4 2.2 6.3-1.5 8.7l-25 1c-12.2 1-24.6.5-36.8 2-2-2-2.4-3.8-2.6-6.4-1-8.6 1.2-17.9 6.7-24.7a28 28 0 0 1 20.8-10.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M91 95.9c12.6 3 22 14 25.5 26.2-18.3.4-36.6 1.7-54.8 2.2a28 28 0 0 1 7.6-23.1c5.8-5.7 14-7 21.7-5.3","fill":{"type":"color","name":"teeth"}}},{"name":"path","type":"element","attributes":{"d":"M120.5 127.7c-9.3 7.3-23.6 8.7-35 9.1-8.6 0-19.9-.6-27-6.1 12.3-1.5 24.7-1 37-2 8.3-.2 16.6-.8 25-1","fill":{"type":"color","name":"lips"}}}]},"variant08":{"elements":[{"name":"path","type":"element","attributes":{"d":"M111.5 93.6c9 .5 16.9 6.7 24.1 11.4a144 144 0 0 0-39 5.5q-14.2 3.7-27 11c3.2-8.1 7.8-18.1 16.6-21.4 4-2 7.7-1.2 12-.9 3.8-3.3 8-6 13.3-5.6","fill":{"type":"color","name":"lips"}}},{"name":"path","type":"element","attributes":{"d":"M135.6 105c2.5.2 4.7 1.4 4 4.2-1.5 2-4.5 1.3-6.7 1.5A155 155 0 0 0 89 119a74 74 0 0 0-14 6.2c-2 1-3.3 2.6-5.6 1.5-2.2-1.6-1.2-3.5 0-5.2q12.9-7.3 27.1-11a144 144 0 0 1 39-5.5","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M132.9 110.7a40 40 0 0 1-24.5 18.5 47 47 0 0 1-33.2-4q6.5-3.8 13.9-6.2a155 155 0 0 1 43.8-8.3","fill":{"type":"color","name":"lips"}}}]},"variant09":{"elements":[{"name":"path","type":"element","attributes":{"d":"M102.5 36.7q4.5-.2 9.2.3l1.2 2.4-1.2 2.5c-7.7.8-15.5 0-23.2.6l-84 .6c-1.7 0-4.6-.6-4.4-2.7-.6-1.7 1.8-3.3 3.3-3.2z","fill":{"type":"color","name":"ink"}}}]},"variant10":{"elements":[{"name":"path","type":"element","attributes":{"d":"M110.5 29.1c3.7-1.3 5.5 4 2.2 5.5-5.7 2.9-10.8 6.6-13 12.8-2.3 6.4.5 13.2 4.8 18 3 3.4 6.6 5.4 10.3 7.7 2 1 1.4 2.8 1.2 4.6l-2.5 1a37 37 0 0 1-15.9-12.4C95.3 63 94.3 59.6 93 56c-25 2-50.3 2.8-75.4 4.7-1.8-.3-2.4-2-3.5-3.3 1.1-1.2 1.7-2.7 3.5-2.8l52-3c7.8-.7 15.7-.5 23.4-1.5a28 28 0 0 1 17.6-21","fill":{"type":"color","name":"ink"}}}]},"variant11":{"elements":[{"name":"path","type":"element","attributes":{"d":"M3.7 35c18.2-.3 37.5-.4 55.8-.5 15.6-.5 31.3-.2 47-.4 3.8 0 7.3-.2 10.9 1.4 4.2 1.9 7.8 6 7.6 10.9.4 6.4-5.6 11-11.5 11.3l-99 .5c-4.4 0-8.1 1-12.4-.4l-.8-2.3c1.7-5.7 2.5-11.2-.1-16.7-1-2 .2-3.9 2.5-3.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M117 42c2.1 1.8 3.3 4.8 1.3 7.3-2.4 3.3-7.5 2.6-11.1 2.5l-.1-12c3.4.3 7.2-.2 9.9 2.2M8.2 40.6h5q.3 6 .2 12H8.3q.6-6 0-12m10.7 0h13.6l.2 12H19.6zm19.6-.3 19-.1v12l-18.9.3zm24.7-.1q9.4 0 18.7-.2l.3 12-18.6.3q-.4-6-.4-12.1m24.6-.3h13.4v12q-6.6.2-13.2 0z","fill":{"type":"color","name":"teeth"}}}]},"variant12":{"elements":[{"name":"path","type":"element","attributes":{"d":"M156.5 34c1.4 0 3.5-.4 4.6.8 1.8 1.5.8 4.5-1.6 4.7-5.3.8-10.7.6-16 1.3l-14.6 2q4.5 9.7 6 20.4c1.2 9.5.5 18.9-4.4 27.2a28 28 0 0 1-19 13.2 47 47 0 0 1-27-4.2A88 88 0 0 1 51.9 72a118 118 0 0 0-18.5 16.2c-1.6 1.6-3.5 4-5.7 1.9-1.9-1.7-.3-4 1-5.5a129 129 0 0 1 34.7-26.4 225 225 0 0 1 93-24.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M123.4 43.8c1.1 4 2.8 7.7 4 11.6q3 10.6 1.7 21.5a25 25 0 0 1-11 18c-7.5 4.5-16.7 4-24.7 1.5-15-4.8-27-15.2-36.5-27.5Q70.8 60 86.2 54.3c1.7 2.4 3.3 5.1 5.4 7.1 1.4 1.5 4.5.1 4-2C95.4 57 93 55 92 52.8q-.2-.6.7-.8 15.1-5.3 30.8-8.2","fill":{"type":"color","name":"tongue"}}}]},"variant13":{"elements":[{"name":"path","type":"element","attributes":{"d":"M125.5 33.1c12.3.2 24.4 2 36 6.5a93 93 0 0 1 43.8 35c1.1 1.5.8 3.5 1 5.4-7.3.5-14.5 0-21.7.7.1 7.4 0 14.4-3.8 21-2.2 3.8-5.7 7.3-10.3 7.2-4.5 0-8.2-3.5-10.4-7.1a44 44 0 0 1-4.4-21q-38.1 0-76.2.4c-7.4-.3-14.7.6-22 .4-7.5-.2-14.2.8-21.5-.8 0-1.6-.5-4 .6-5.3A123 123 0 0 1 125.5 33","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M115.5 39.9q10.5-.8 21 0a89 89 0 0 1 48.7 20.8q-17 .6-33.7.6c-31 1.1-62 .8-93 1.8 6.1-4.2 12.2-8.4 18.9-11.7q18-9.1 38-11.5","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M175.5 66.8c5.2 0 10.6-.6 15.7 0 2.3 2 4.2 4.8 6.3 7.1-5.9.6-11.9 0-17.7.8-1.2 7.1-.3 16.6-3.6 23.4-1.2 2.7-3.3 4-5.7 5.6-2.3-1.6-4.5-3-5.7-5.6-3.4-6.8-3.4-15.7-4.1-23.1-5.7-.6-11.4-.1-17.2-.2l-98.4.5c2.1-2 4.6-5.6 7.5-6.2 18-.7 36-.3 53.9-1.1 11-.5 22-.1 33-.6 12-.3 24-.1 36-.6","fill":"#6FA942"}}]},"variant14":{"elements":[{"name":"path","type":"element","attributes":{"d":"M101.7 21.4c15.5 1.8 31.3 5.5 44.5 14.2 7 4.6 13.5 11.3 15.3 19.8 2.4 8.6-3.6 18.2-11.7 21.4-7.2 3-14 1.8-21.3.1q-9-1.5-18-1.8-34-1.5-67.2 5.8c-5.8 1-11.1 3.3-16.8 3.7-6.5.1-13-3.1-16.8-8.4-3-4.2-4.4-9.7-4.3-14.8.6-7.8 5.4-15 11.2-19.9A85 85 0 0 1 52 24.7a157 157 0 0 1 49.7-3.3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M112.5 29a76 76 0 0 1-35.8 13 92 92 0 0 1-41.5-5c8.8-4.8 19.4-7 29.2-8.8 16-2.2 32.1-2.4 48 .8","fill":{"type":"color","name":"teeth"}}},{"name":"path","type":"element","attributes":{"d":"M120.3 30.7c11 3.2 22.5 7.7 30.4 16.5 4.2 4.8 7 11.3 4 17.4-3 6.2-9.7 8.6-16.2 8a234 234 0 0 0-69-2 240 240 0 0 0-36 6.8c-5.7 1.3-11.3 2.1-16.2-1.8-6.6-5.3-7.4-14.6-3.5-21.8a40 40 0 0 1 14.7-13.6c4 2.5 8.4 3.7 13 5a95 95 0 0 0 67-6.8c4.3-2 7.8-5.1 11.8-7.7","fill":{"type":"color","name":"throat"}}}]},"variant15":{"elements":[{"name":"path","type":"element","attributes":{"d":"M76.5 0c9.4-.6 18.4 5.2 25.2 11.2a121 121 0 0 1 23.5 31.5 211 211 0 0 1 23.6 76.7c.4 4.4 1.5 8.7-2.5 11.8a80 80 0 0 1-23.8 6 144 144 0 0 1-48-4.8c-2.4-.7-4.5-.9-5.4-3.6A210 210 0 0 1 51 63a121 121 0 0 1 1.8-37 44 44 0 0 1 8.7-18.4c3.8-4.4 9.2-7.6 15-7.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M81 6a48 48 0 0 1 23.3 16.3 74 74 0 0 1-45.8 5.8c1.2-6.2 3.7-13 8.2-17.5 3.6-3.8 9-6 14.3-4.6","fill":{"type":"color","name":"teeth"}}},{"name":"path","type":"element","attributes":{"d":"M108.4 27.3A179 179 0 0 1 135.8 84c-6.3 1.3-12 4-17.5 7a94 94 0 0 0-30 27c-2.3 3.6-4.7 6.5-4.6 11q-4.5-1.2-9-2c-8.4-18-14-37.2-16.9-56.7a124 124 0 0 1-.3-37c5.4 1 10.5 2.3 16 2q7.5-.6 15-2c6.9-1.2 13.3-3.9 19.8-6.1","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M134 90c1.5-.6 2.4.2 3.8.7 2.7 11.7 5 23.5 5.6 35.5a90 90 0 0 1-24.7 5.6c-10.4 1-20.2-.7-30.5-1.8a75 75 0 0 1 17.8-23 85 85 0 0 1 28-17","fill":{"type":"color","name":"tongue"}}}]},"variant16":{"elements":[{"name":"path","type":"element","attributes":{"d":"M127.7 27.7c1.5-.4 3.3-1 4.9-.8 2 .8 2 3 1 4.7-4 2.6-10 2.8-14.2 4.8a79 79 0 0 1 0 41 55 55 0 0 1-20.7 31.3c-7 5-15.6 7.4-24.2 6.5A42 42 0 0 1 45.9 98a72 72 0 0 1-11.3-60.2c-2.4-.8-5.6-1.2-7.5-2.9-.6-1.2-.2-2.8-.3-4.1 4.5 0 8.3 1.6 12.7 2.5 29.5 6 59.5 3 88.2-5.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M113.4 37.5a68 68 0 0 1-6.7 54.2c-4 6.5-9.6 12-16.7 15.1a29 29 0 0 1-25.4-.5c-8-4-14.6-11.4-18.7-19.3a70 70 0 0 1-5.5-48c10.4 2.4 21 3 31.8 3.2-1 6.8-1 13.4-1.2 20.2 0 2-.2 4 .5 6 1 1.6 4.6 1.1 4.7-1.1.6-8.4-.1-16.8 1.5-25.2 12-.2 24-2.2 35.7-4.6","fill":{"type":"color","name":"tongue"}}}]},"variant17":{"elements":[{"name":"path","type":"element","attributes":{"d":"M68.7 13.2c6 1.3 12 4.5 15.7 9.3 1.3 2.3 0 5-2.8 4.7-2.2-1.3-4-3.4-6-4.8a22 22 0 0 0-15.1-3.7c-2.6.4-5.4 1.6-6.8 3.9-1.6 2-1.3 4.7-.4 7 1.7 4.5 6 7.9 10.2 9.7 2.3 1.1 5.3 1.3 7.3 2.8 1.7 1.8.6 4.4-1.7 4.8-4.6 1-8.7 2.6-11.7 6.5A17 17 0 0 0 58.8 76 18.3 18.3 0 0 0 83 78c2.4-1.9 3.5-4.4 5.5-6.6 3-1.5 5 1 4 4a23 23 0 0 1-27.2 11.3 24 24 0 0 1-17.2-19.3A23 23 0 0 1 59.5 44 23 23 0 0 1 47 29.8c-1.5-5.3.8-11.3 5.5-14.2 4.7-3.3 10.7-3.2 16.1-2.3","fill":{"type":"color","name":"ink"}}}]},"variant18":{"elements":[{"name":"path","type":"element","attributes":{"d":"M59.7 27.8q6.3-1 12.1 1.3a26 26 0 0 1 14.5 18.3c3.2 12.1-1.3 26-11.7 33.2q-4.7 4-10.4 2.2c-3.6-1.7-5.3-5.3-6.2-9-1.5-5.2 1.2-10.4.1-16-1-4.3-4.7-7.5-6.5-11.5-1.3-2.7-2.5-6-2.1-9 .7-5 5.4-8.8 10.2-9.5","fill":{"type":"color","name":"ink"}}}]},"variant19":{"elements":[{"name":"path","type":"element","attributes":{"d":"M123 16c6 4.4 11.7 10 15.3 16.6 2.6 4.8 3.2 11.7-.5 16.1-4.1 5.4-11.5 7.6-17.8 8.8A151 151 0 0 1 72.5 56c-5.7-1.1-10.2 1.6-16 2.6a72 72 0 0 1-27 1c-5.2-1-10.3-3.2-13.4-7.7-2.8-3.9-2.6-9.3-1.1-13.7Q17.4 32 22 27c1.4-1.7 3.1-1 5-1.1.3 1.8 1 3.2-.4 4.8-2.6 3.3-5.2 6.4-6.4 10.5-1.1 3.3-.3 7 2.4 9.2 3 2.4 7.1 3.5 11 3.9a76 76 0 0 0 23-1.8c5.7-1 10-3.5 15.9-2.5 12 2 23.8 3.5 36 2.8 7-.2 14-1 20.3-4 3.2-1.9 6-4.2 5.6-8.3-.2-6-6-11.8-10.2-15.7-2.5-2.6-6.7-4-6-8.4 1.8-.9 3-1.8 4.8-.3","fill":{"type":"color","name":"ink"}}}]},"variant20":{"elements":[{"name":"path","type":"element","attributes":{"d":"M111.5 70c4.7 1.3 9 4.7 12.2 8.2 1.4 1.7 3.6 3.9 3 6.2-.4 2.5-3.7 3-5 .8a28 28 0 0 0-9.5-8.5c-2.2-1.5-6.7-.6-6.6-4.2.5-3 3.6-2.9 6-2.5m-7.1 13.4c5 1.5 8.4 5.8 8.8 11 1.3 13.2-9.4 25.8-21.8 29.2-12.4 3.7-28.9-1-35-13.2-2.5-4.2-3.8-9.2-2-14 1.8-4 5.8-5.6 10-6 5-.6 9.5 1 13.9 3.5 3.8-4 7.7-7.6 12.9-9.8 4-1.7 9-2 13.2-.7","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M105.4 90.5c3.3 3.4 2.3 9.5.5 13.4a25.5 25.5 0 0 1-26 15c-7.2-1.2-14.2-4.1-18.1-10.8-1.5-2.5-3.5-6.6-2-9.4 2.2-3.8 8.7-3.2 12.2-1.8 2.8.7 5.6 4 8.4 3.5C84.1 97 87 93 91.6 90.7c4.3-2.4 9.6-3.3 13.8-.1","fill":{"type":"color","name":"throat"}}}]},"variant21":{"elements":[{"name":"path","type":"element","attributes":{"d":"M87.5 22c4.7-.5 10.2.1 13.7 3.7 3.7 4 4.1 9.5 3.2 14.6a31 31 0 0 1-24.8 23.3 33 33 0 0 1-22.2-4.1 26 26 0 0 1-11-13 15 15 0 0 1-.5-10.6c1.3-3.2 4.1-5 7.3-5.7 5.7-1.9 11.7.2 16.7 3 4.5-5 10.5-10.2 17.6-11.1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M87 28.1c3.3-1 7.4-.6 10 1.8 2 2 2.1 5.9 1.7 8.5a25 25 0 0 1-20 19.4 27 27 0 0 1-19-3.7c-4.2-2.5-7.3-7-8.7-11.7-.7-2.5-.4-5.1 2-6.4 2.6-1.1 5.8-1 8.5-.5 3.5.7 5.8 2.9 9 4.3 2 0 2.6-1.4 3.8-2.6 3.3-4 7.7-7.7 12.7-9.1","fill":{"type":"color","name":"throat"}}}]},"variant22":{"elements":[{"name":"path","type":"element","attributes":{"d":"M121.5 32.2a57 57 0 0 1 29.5 3.7c4.7 2.3 8.7 6 9.7 11.5.9 5.2-1.1 9.9-4 14A61 61 0 0 1 136 78c-16.5 8.7-34 12-52.5 13.7a90 90 0 0 1-59.1-12.1 42 42 0 0 1-16-16c-2.6-5.3-2.3-12 1.9-16.4C15 42 22.7 40 29.5 39.3a93 93 0 0 1 44.8 8.5 118 118 0 0 1 47.2-15.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M146.9 40.4a85 85 0 0 1-12.1 8.3c-2.7 1.5-3.8 4.1-5.5 6.6a30 30 0 0 1-5.7 6.7c-3-1-6-2.8-9.1-3.5-3 .5-6 1.9-8.9 2.7-10 2.8-20.7 5-31.1 4.9q-4.4 0-8.7.8c.3 2.5-.5 4.7 2.9 5 14.6.9 29.7-2 43.6-6.7 4.7-2 7.7 3.1 12.8 1.8 4.4-1.3 7.4-6.6 10-10 1.7-2.9 4.4-4.2 7-6q5.4-3.3 10.4-7.4c1.5 2.6 3.2 4.7 2.4 7.8-1.3 6.4-6.5 11-11.4 15A107 107 0 0 1 99.2 84c-14.5 2-28 4.2-42.6 1.5a79 79 0 0 1-36.1-16.1c-3.8-3.4-8.4-8.5-7.8-14 .3-3.7 3.9-6.3 7-7.7A51 51 0 0 1 45 45.5a89 89 0 0 1 25.4 7.2c1.5.6 3.4 1.7 5 1.5 3.2-1.2 5.8-3.5 8.8-5a102 102 0 0 1 28.3-9.7c11.4-2 23.3-3 34.5.9","fill":{"type":"color","name":"teeth"}}}]},"variant23":{"elements":[{"name":"path","type":"element","attributes":{"d":"M141.5 23.3a31 31 0 0 1 22.7 17.4 48 48 0 0 1 3.5 23.7 53 53 0 0 1-15 30.3 66 66 0 0 1-33.2 18.8 141 141 0 0 1-62 .3A85 85 0 0 1 18.9 94c-4.5-4.2-9-9.1-11-15a30 30 0 0 1 1.5-23.6c3.4-6.3 10-10.5 17-10.7 12.8-.7 24 4.2 36 4.8q12.2.2 23.3-4C97 40.7 107 31 118.5 26.4c7.4-3 15-4.6 23-3","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M144.5 30.3c7 2.5 12.7 7.9 15.1 15q-4.4 3.8-9 7.3c-3.6 2.6-7.2 4.4-10 8-3.1 4-5.9 9.9-10.3 12.5-3.4-.4-6.7-2.9-9.8-4-2.5-.6-5.4.4-7.8 1A167 167 0 0 1 75.5 76a46 46 0 0 0-9.6 1q0 1.8.3 3.6c1.9 1.5 5 1.4 7.3 1.5q23-1 45-7.3c3.7 0 9.3 5.2 13.9 3.5 5.3-2.5 9-9 12.3-13.6 2-2.7 4.6-4 7.2-5.9q5-3.4 9.6-7.3a46 46 0 0 1-.4 17 52 52 0 0 1-15 24.5 67 67 0 0 1-37.1 16.6 141 141 0 0 1-36.5.9 87 87 0 0 1-48.4-19.7c-5-4.7-9.8-8.9-11.2-16-2.3-8.6.4-20.7 10.1-23.5 8.2-2 17.8.5 26 2.2 12 2.8 25 2.4 36.7-1.7 14-4.9 25-17 38.8-21.3a30 30 0 0 1 20-.2","fill":{"type":"color","name":"teeth"}}}]},"variant24":{"elements":[{"name":"path","type":"element","attributes":{"d":"M140.8 23a38 38 0 0 1 21.2 9.9 39 39 0 0 1 12 29.5c.3 9.8-2.4 19.1-6.7 27.8a83 83 0 0 1-70.7 45.3 107 107 0 0 1-82.1-34A46 46 0 0 1 2.9 72.4a25 25 0 0 1 10.5-20.2 42 42 0 0 1 23-6.7 86 86 0 0 1 40.3 11 80 80 0 0 1 34-28.9c9.4-4.2 19.8-6 30-4.6","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M140 28.7A32 32 0 0 1 162.9 43c6 9.6 6.6 21 3.8 31.8q-6-.9-12-.2c-10.8.6-21.7 3.4-32 7a43 43 0 0 0-.5-23.9c-1.7-3.8-5.4-6.2-9.6-4.3-6.6 3.1-10.3 11.9-13 18.2-4.8-1.6-11.3-3.8-16-1.2-4 2.2-3.9 6.5-2.5 10.3 2.6 6.2 7.7 11 12.6 15.4a114 114 0 0 0-31.1 29c-15-4.7-28.7-13-40-23.7A46 46 0 0 1 8.9 77c-1-6.4.7-13.2 5.4-17.8 4.4-4.6 11-6.7 17.2-7.5a69 69 0 0 1 35.2 6.5c3.8 1.5 7 3.8 10.8 5.4 2.7.3 3.7-3.4 5-5.1A70 70 0 0 1 121.3 30c6-1.8 12.6-1.9 18.8-1.4","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M115.5 58.3c2.6 2.3 2.7 6.8 2.8 10 0 11-3.1 22-8 31.7-4-2-7.9-4.1-11.3-7.2a54 54 0 0 1-12-13c-.8-1.4-.8-3-1-4.6 5-.7 9.1 1 13.7 2.9 2.8 1 3.9-1.4 5-3.5 2.4-5.5 5.1-13.3 10.8-16.3","fill":{"type":"color","name":"uvula"}}},{"name":"path","type":"element","attributes":{"d":"M165.1 80.3a71 71 0 0 1-11 19.7c-3.8 4.8-8.5 8.9-13 13a77 77 0 0 1-35.1 15.6q-19 2.8-37.5-1.6c8-11.1 18.6-19.9 30.3-27.1 3.7 2.3 7.5 5.1 11.7 6.6 1.4.7 2.8-.4 3.6-1.5 3.2-4.9 4.9-10 6.8-15.4.3-1.4 1.6-1.6 2.8-2.1 13-4.7 27.5-8.1 41.4-7.2","fill":{"type":"color","name":"tongue"}}}]},"variant25":{"elements":[{"name":"path","type":"element","attributes":{"d":"M129.3 23.4c11 1.4 21.9 7 27.2 17a31 31 0 0 1 3.3 21.2 54 54 0 0 1-14.5 27.6 77 77 0 0 1-44.8 23 93 93 0 0 1-42.9-3 77 77 0 0 1-23.8-13 62 62 0 0 1-19.5-25.6 33 33 0 0 1-1.8-17.2A21 21 0 0 1 25.3 38a37 37 0 0 1 21.2-1.8c9 1.2 16.7 5 24.7 9.1a72 72 0 0 1 58.1-22","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M124.5 29c8.8.3 17.4 3.2 23.7 9.6q-4.7 5.5-11 8.5c-1.7.9-3.7 1.7-5 3-2.5 3-3.7 8.2-6.7 10.5-3.6-1.2-6.8-3.9-10-5.8a175 175 0 0 1-44 4.5q-16.5.4-33-2.4c-1.8-.3-4-1-5.8-.4Q29.5 59 26.9 62l-5.5-8.6-2.7-1.2c2.7-6 8.4-9.6 14.8-10.4a54 54 0 0 1 34 8.6c2 1 3.6 2.3 5.8.9 2.8-2.2 5.1-5 8-7.1 12-9.6 27.7-16 43.2-15.3","fill":{"type":"color","name":"teeth"}}},{"name":"path","type":"element","attributes":{"d":"M151.8 43.7a29 29 0 0 1 2.2 17.7c-2 9.5-7 17.8-13.9 24.6a75 75 0 0 1-41.6 20.7 89 89 0 0 1-34-1.7A71 71 0 0 1 27 81a39 39 0 0 1-9.3-23c2.6 2.7 3.8 6.3 6.3 9 4.2 3.3 7.7-2.1 10.5-4.7a219 219 0 0 0 80.2-1.2c3.7 1.5 8.4 6 12.7 5 6-2.3 6-11.9 12.3-13.6a43 43 0 0 0 12.2-8.8","fill":{"type":"color","name":"throat"}}}]},"variant26":{"elements":[{"name":"path","type":"element","attributes":{"d":"M123.5 15.8a55 55 0 0 1 38.6 13c6 5.6 9.7 13.4 9.9 21.6A44 44 0 0 1 162 78a88 88 0 0 1-35.5 26.5c-7.3 2.9-14.4 5.8-22.1 7.3a86 86 0 0 1-50-5.3A131 131 0 0 1 16 81.8 55 55 0 0 1 3 62.9C.9 57.4.5 51 4 46c3.7-5.4 10-7.7 16.2-8.8 12.6-1.8 24.4.4 36.5 3.7a92 92 0 0 1 25-16.2c13-5.7 27.4-9.3 41.7-8.9","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M149 26.7c-3.5 2.7-7.4 4.8-10.9 7.4-4.3 4-7.6 11-12.7 14-5.2 1-10.5-3.2-15.2-1q-14 5.1-28.5 7.9a118 118 0 0 1-43.6.9c-4.3-1.1-7.2 1.3-11.5 1.8-4.4-4.2-7.5-9.2-12.7-12.5 12.7-5.4 28.7-2 41.6 1.5 4 1.2 6-2.5 8.8-4.5a97 97 0 0 1 47.2-19.9 68 68 0 0 1 37.5 4.4","fill":{"type":"color","name":"teeth"}}},{"name":"path","type":"element","attributes":{"d":"M154.5 30.3a26 26 0 0 1 11.8 21.1c-.2 7.4-3 14-6.8 20.2a46 46 0 0 0-20-2.8 138 138 0 0 0-42 9.6c-9 3.7-18 8.3-25.7 14.3-3.7 3-6.4 6.2-8.7 10.4a93 93 0 0 1-21.6-9.7c-9.9-5.9-19-12.7-26.5-21.5-3.7-4.7-7.5-10.4-7.7-16.5C7 53 8.2 51 9 48.8c5.4 3.7 9.3 8.7 14.2 12.9 4 3.4 9.2-.7 13.8 0q8.7 1.4 17.5 1.8Q85.3 63 114 52c4.2.8 10 2.7 14 1 5-2.8 8.6-8.6 12.2-12.9 1.4-1.7 3.8-3 5.7-4.2 2.9-1.7 5.5-4 8.4-5.6","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M142.5 74.6q6.8-.1 13.3 1.9a87 87 0 0 1-35.9 24.4 86 86 0 0 1-51.2 3.9q2.9-4.2 6.8-7.4a103 103 0 0 1 31-16c11.5-3.8 23.8-6.6 36-6.8","fill":{"type":"color","name":"tongue"}}}]},"variant27":{"elements":[{"name":"path","type":"element","attributes":{"d":"M130.7 16.3c.6 7-.9 13.3-1.6 20.1-2.7 24.2-9.3 48-19.1 70.2-3.7 7.4-6.7 15.8-14 20.4-3.8 2.8-9 2-13.2.1a44 44 0 0 1-12.4-8.6 171 171 0 0 1-30-42.1c-6.7-12.6-11.6-25.8-17-39-1-2-1.2-4 1-5.3 4.4-.1 8.7 1.4 13 1.4 10 .4 20 .5 29.9-.9 17.7-2 35-7.1 51.5-13.9 4.3-1.5 7.2-4.3 11.9-2.4","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M125.4 22.4a298 298 0 0 1-8.9 48A52 52 0 0 0 90.1 77a67 67 0 0 0-27.3 23.9 198 198 0 0 1-19.3-31.5C38 59.3 34 48.7 29.5 38.2c9.4.8 18.5 2 28 1 23.2-.7 46.7-7.7 68-16.8","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M114.7 76.5A184 184 0 0 1 99 115a18 18 0 0 1-6.7 7.4c-4 1.7-9-1.2-12.4-3.5-5.4-3.4-8.6-8.3-12.9-12.7a36 36 0 0 1 10.4-13.7c7.8-6.7 17.1-12 27-15q5-1.3 10.2-1","fill":{"type":"color","name":"tongue"}}}]},"variant28":{"elements":[{"name":"path","type":"element","attributes":{"d":"M130.7 16.2c.5 6.9-.8 13.4-1.6 20.2-2.7 24.2-9.3 48-19.1 70.2-3.7 7.4-6.8 15.8-14 20.4-4.2 3-10.3 1.7-14.6-.5-9.5-4.7-15.1-12.3-21.7-20.2a199 199 0 0 1-26-44q-5.5-12.4-10.3-24.8c-1-2.1-1.2-4 1-5.4 4.8 0 9.3 1.5 14 1.5 9.4.2 18.8.4 28-.8 20-2.3 39.7-8.3 58-16.5 2.2-1 4-.6 6.3-.1","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M125.4 22.4c-2 15.2-4 30.2-8 45a209 209 0 0 1-19 49c-2.2 3.4-5.3 7.3-10 6.4-7.4-1.5-14-8-18.6-13.7a169 169 0 0 1-24.6-36.4c-6.2-11-10.7-22.9-15.7-34.5l14.4 1.2c1.1 6 4.6 11.5 8.4 16 5.1 6 12.3 9.9 20.2 10q9.5-.7 16.7-7.3c8-7.4 12-17 14.4-27.4a265 265 0 0 0 21.8-8.3","fill":{"type":"color","name":"throat"}}},{"name":"path","type":"element","attributes":{"d":"M97.1 32.5c-2.5 8.8-7 18.4-15 23.6a18 18 0 0 1-18.5 1.1 34 34 0 0 1-14-17.6c16.2-.4 32.1-2.3 47.5-7","fill":{"type":"color","name":"teeth"}}}]},"variant29":{"elements":[{"name":"path","type":"element","attributes":{"d":"M124.4 18.2c1.5.3 2.8 1.6 2.7 3.2-7 16.8-15 33.2-25.1 48.4-4.7 7-9.2 14.2-14.5 20.7-2.2 3.2-8 2.9-10.8.7q-10.4-7.6-19.1-16.9c-9.2-10.4-18-20.1-24.7-32.4-.8-1.9-2.3-4-.8-5.9.6-1.2 3-.8 3.6.2Q43.5 50 54.2 61.7A154 154 0 0 0 76.9 84q1.7 1.4 3.7 2c2.7.4 4-1.2 5.4-3.1 13.5-19 25.7-38.8 34.6-60.4.9-2 1.5-3.7 3.8-4.3","fill":{"type":"color","name":"ink"}}}]},"variant30":{"elements":[{"name":"path","type":"element","attributes":{"d":"M124.4 17.7c2.3.2 3.1 2.7 2.3 4.7L122 32.9c-8.4 19.3-19.5 37-31.8 54.2-1.4 1.8-2.9 4-4.8 5.2-3 .8-6.1.8-8.7-1.1a129 129 0 0 1-24.3-22.8Q41.8 57 33.6 43.2c-1-2-2.6-4.4-1.2-6.8 1-1.5 3.2-2 4.9-2.5 11-3.1 22.1-6.5 33.3-9.3a235 235 0 0 1 35.9-5.7c5.9-.5 12-1.4 17.9-1.2","fill":{"type":"color","name":"ink"}}},{"name":"path","type":"element","attributes":{"d":"M120.3 23.4A317 317 0 0 1 86 82.9c-1 1.1-2.2 2.8-3.7 3-2.2.6-3.7-.8-5.4-1.9a155 155 0 0 1-22.7-22.3 137 137 0 0 1-16.6-22.3c15-4 29.9-8.6 45.1-11.4 12.5-2.5 25-3.3 37.6-4.6","fill":{"type":"color","name":"throat"}}}]}}}}`),colors:{earrings:{notEqualTo:[],values:[`#000000`]},eyes:{notEqualTo:[],values:[`#000000`]},glasses:{notEqualTo:[],values:[`#000000`]},hair:{notEqualTo:[],values:[`#0e0e0e`,`#e5d7a3`,`#b9a05f`,`#796a45`,`#85c2c6`,`#6a4e35`,`#562306`,`#afafaf`,`#3eac2c`,`#dba3be`,`#592454`,`#ac6511`,`#cb6820`,`#ab2a18`]},ink:{notEqualTo:[],values:[`#000000`]},lips:{notEqualTo:[],values:[`#d31e1e`]},sclera:{notEqualTo:[],values:[`#ffffff`]},skin:{notEqualTo:[],values:[`#f2d3b1`,`#ecad80`,`#9e5622`,`#763900`]},teeth:{notEqualTo:[],values:[`#ffffff`]},throat:{notEqualTo:[],values:[`#8f2e45`]},tongue:{notEqualTo:[],values:[`#ea869e`]},uvula:{notEqualTo:[],values:[`#d32020`]}}},na=class{static initials(e){let t=e.split(/[\s_-]+/).filter(Boolean);return t.length<=1?(t[0]??e).charAt(0).toUpperCase():t.slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``)}static hue(e){let t=2166136261;for(let n of e)t=Math.imul(t^n.charCodeAt(0),16777619)>>>0;return Math.round(t*137.508%360)}static promptPreview(e){return(e.replace(/<([a-z][\w-]*)[^>]*>[\s\S]*?<\/\1>/gi,` `).replace(/<[^>]+>/g,` `).replace(/\[(?:Image|Pasted text|File)[^\]]*\]/gi,` `).split(`
|
|
10
|
-
`).find(e=>e.trim())??``).replace(/\s+/g,` `).trim()}},ra={working:`bg-working`,needs_permission:`bg-permission`,asked:`bg-question`,needs_trust:`bg-trust`,done:`bg-finished`,failed:`bg-failed`};function ia(e){return Math.round(e*.24)}function B({name:e,face:t,state:n,size:r=28}){let i=na.hue(e),a=n?ra[n]:void 0;return(0,F.jsxs)(`span`,{className:`relative inline-flex shrink-0`,style:{width:r,height:r},children:[(0,F.jsx)(`img`,{src:t,alt:``,width:r,height:r,draggable:!1,className:`select-none`,style:{borderRadius:ia(r),background:`oklch(0.8 0.065 ${i})`,outline:`1px solid var(--color-image-outline)`,outlineOffset:-1}}),a&&(0,F.jsx)(`span`,{className:`absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full ring-2 ring-panel ${a} ${n===`working`?`animate-pulse`:``}`})]})}var aa=new mr(ta),oa=new Map;function sa(e){let t=oa.get(e);return t||(t=new ea(aa,{seed:e}).toDataUri(),oa.set(e,t)),t}function ca({name:e,state:t,size:n=28}){return(0,F.jsx)(B,{name:e,face:sa(e),state:t,size:n})}function la(){let e=P(e=>e.serverClockOffset),[t,n]=(0,v.useState)(()=>Date.now());return(0,v.useEffect)(()=>{let e=window.setInterval(()=>n(Date.now()),1e3);return()=>window.clearInterval(e)},[]),t+e}function ua({className:e=``,children:t,...n}){return(0,F.jsx)(`div`,{className:`rounded-inner border border-line bg-tray shadow-tray ${e}`,...n,children:t})}function da({text:e,lines:t=4,mono:n=!0}){let[r,i]=(0,v.useState)(!1),a=e.split(`
|
|
11
|
-
`).length,o=a>t||e.length>t*48;return(0,F.jsxs)(ua,{className:`flex flex-col`,children:[(0,F.jsx)(`div`,{className:`px-2.5 py-2`,children:(0,F.jsx)(`pre`,{className:`overflow-hidden whitespace-pre-wrap break-words text-ink ${n?`font-mono text-small leading-relaxed`:`font-sans text-meta`}`,style:r||!o?void 0:{display:`-webkit-box`,WebkitLineClamp:t,WebkitBoxOrient:`vertical`},children:e})}),o&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>i(!r),className:`cursor-pointer border-t border-line px-2.5 py-1 text-left text-meta text-ink-muted transition-colors duration-150 hover:text-ink`,children:r?`Show less`:`Show all ${a>1?`${a} lines`:``}`.trim()})]})}var fa={primary:`key-lift bg-primary text-primary-ink shadow-key hover:bg-primary-hover`,plain:`key-lift border border-line bg-key text-ink shadow-key hover:bg-key-hover`,quiet:`text-ink-muted hover:bg-raised hover:text-ink`},pa={small:`h-7 px-2.5 text-meta`,regular:`h-8 px-3 text-meta`};function ma({tone:e=`plain`,size:t=`regular`,className:n=``,children:r,type:i=`button`,...a}){return(0,F.jsx)(`button`,{type:i,className:`press inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-inner font-medium ${pa[t]} ${fa[e]} ${n}`,...a,children:r})}var ha=3,ga=class{static tail(e){let t=e.includes(`\\`)&&!e.includes(`/`)?`\\`:`/`,n=e.split(t).filter(e=>e.length>0);return n.length<=ha?e:`…${t}${n.slice(-3).join(t)}`}};function _a({item:e,session:t,variant:n}){return n===`bar`?(0,F.jsx)(ba,{item:e,session:t}):n===`banner`?(0,F.jsxs)(`section`,{"aria-live":`polite`,className:`flex flex-col gap-1.5 border-b border-line bg-raised px-3 py-2.5`,children:[(0,F.jsx)(`p`,{className:`text-meta text-ink`,children:xa(e,t)}),(0,F.jsx)(Ca,{item:e,session:t,showDetail:!1})]}):(0,F.jsx)(va,{item:e,session:t})}function va({item:e,session:t}){let n=la(),r=nt[t.state];return(0,F.jsxs)(`section`,{"aria-live":`polite`,"aria-label":`${t.name}: ${xa(e,t)}`,className:`flex flex-col gap-2.5 rounded-outer border border-line-strong bg-canvas p-3`,children:[(0,F.jsxs)(`header`,{className:`flex items-center gap-2 text-meta`,children:[(0,F.jsx)(ca,{name:t.name,state:t.state,size:22}),(0,F.jsx)(`span`,{className:`font-mono text-ink`,children:t.name}),(0,F.jsx)(`span`,{className:r.textClass,children:r.label}),(0,F.jsx)(`span`,{className:`ml-auto font-mono text-small text-ink-faint tabular-nums`,children:at(n-e.since)})]}),(0,F.jsx)(`p`,{className:`text-body text-ink`,children:xa(e,t)}),(0,F.jsx)(Ca,{item:e,session:t,showDetail:!0})]})}function ya({text:e,sessionName:t}){return(0,F.jsxs)(`p`,{className:`flex items-center gap-2 text-meta text-ink-muted`,children:[(0,F.jsx)(`span`,{className:`opacity-60`,children:(0,F.jsx)(ca,{name:t,size:18})}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e}),(0,F.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-small text-ink-faint`,children:[(0,F.jsx)(Qe,{size:13}),`Answered`]})]})}function ba({item:e,session:t}){let n=Sa(e,t);return(0,F.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-11 items-center gap-2.5 py-1.5 pr-1.5 pl-2.5`,children:[(0,F.jsx)(ca,{name:t.name,state:t.state,size:24}),(0,F.jsxs)(`p`,{className:`flex min-w-0 flex-1 items-baseline gap-2 text-meta`,children:[(0,F.jsx)(`span`,{className:`shrink-0 font-mono text-ink`,children:t.name}),(0,F.jsx)(`span`,{className:`shrink-0 text-ink`,children:xa(e,t)}),n&&(0,F.jsx)(`span`,{className:`truncate font-mono text-small text-ink-faint`,children:n})]}),(0,F.jsx)(Ta,{item:e,session:t})]})}function xa(e,t){let n=t.pending;if(e.kind===`permission`&&n?.kind===`permission`){let e=n.toolName===`Bash`?`Wants to run a command`:n.summary.startsWith(`edit `)?`Wants to edit a file`:`Wants to use a tool`;return n.risk===`high`?`${e}. It ${n.riskReasons.join(` and `)}.`:e}return e.kind===`question`&&n?.kind===`question`?n.questions[0]?.question??`Has a question`:e.kind===`trust`?t.trustSubject===`hooks`?`Asks you to trust HeyTerm's hooks`:`Asks whether you trust this folder`:e.kind===`failed`?`Stopped on an error`:e.headline.replace(`${t.name} `,``)}function Sa(e,t){let n=t.pending;if(e.kind===`permission`&&n?.kind===`permission`)return n.summary.split(`
|
|
12
|
-
`)[0];if(e.kind===`trust`&&t.trustSubject!==`hooks`)return ga.tail(t.projectPath)}function Ca({item:e,session:t,showDetail:n}){let r=t.pending;return(0,F.jsxs)(F.Fragment,{children:[n&&e.kind===`permission`&&r?.kind===`permission`&&(0,F.jsx)(da,{text:r.summary,lines:3}),n&&e.kind===`trust`&&t.trustSubject!==`hooks`&&(0,F.jsx)(`p`,{className:`truncate rounded-inner border border-line bg-tray px-2.5 py-2 font-mono text-small text-ink shadow-tray`,title:t.projectPath,children:ga.tail(t.projectPath)}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,F.jsx)(Ta,{item:e,session:t}),(0,F.jsx)(`span`,{className:`ml-1 text-small text-ink-faint`,children:wa(e,t)})]})]})}function wa(e,t){return e.kind===`permission`?`Or say "approve", or "no" and why`:e.kind===`question`?`Or say an option, its number, or your own words`:e.kind===`trust`?`Or say "trust it"`:`Or say "go to ${t.name}"`}function Ta({item:e,session:t}){let n=t.pending;return e.kind===`permission`&&n?.kind===`permission`?(0,F.jsx)(Ea,{sessionName:t.name,pending:n}):e.kind===`question`&&n?.kind===`question`?(0,F.jsx)(Da,{sessionName:t.name,pending:n}):e.kind===`trust`?(0,F.jsx)(Oa,{sessionName:t.name}):(0,F.jsx)(ka,{sessionName:t.name})}function Ea({sessionName:e,pending:t}){let{perform:n}=Fe();return(0,F.jsxs)(`span`,{className:`flex shrink-0 gap-1.5`,children:[(0,F.jsx)(ma,{tone:`primary`,size:`small`,onClick:()=>n({type:`approve`,session:e,requestId:t.requestId,confirmed:!0}),children:`Approve`}),(0,F.jsx)(ma,{size:`small`,onClick:()=>n({type:`deny`,session:e,requestId:t.requestId}),children:`Deny`})]})}function Da({sessionName:e,pending:t}){let{perform:n}=Fe(),[r]=t.questions;if(!r)return null;let i=i=>n({type:`answer`,session:e,requestId:t.requestId,answers:{[r.question]:i}});return(0,F.jsx)(`span`,{className:`flex flex-wrap gap-1.5`,children:r.options.map((e,t)=>(0,F.jsxs)(ma,{size:`small`,title:e.description,onClick:()=>i(e.label),children:[(0,F.jsx)(`span`,{className:`font-mono text-ink-faint`,children:t+1}),e.label]},e.label))})}function Oa({sessionName:e}){let{perform:t}=Fe();return(0,F.jsx)(ma,{tone:`primary`,size:`small`,className:`shrink-0`,onClick:()=>t({type:`trust`,session:e}),children:`Trust`})}function ka({sessionName:e}){let{perform:t}=Fe();return(0,F.jsx)(ma,{size:`small`,className:`shrink-0`,onClick:()=>t({type:`focus`,session:e}),children:`Open`})}function Aa(){let e=P(e=>e.sessions),t=(0,v.useMemo)(()=>Kt.waitingDecisions(e),[e]),[n,r]=(0,v.useState)(void 0),i=t.find(e=>e.sessionName===n)??t[0],a=i?e.find(e=>e.name===i.sessionName):void 0;if(!i||!a)return null;let o=t.filter(e=>e!==i);return(0,F.jsxs)(`div`,{className:`enter-rise flex items-center rounded-outer border border-line-strong bg-panel`,children:[(0,F.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,F.jsx)(_a,{item:i,session:a,variant:`bar`},`${i.sessionName}-${i.since}`)}),o.length>0&&(0,F.jsx)(`div`,{className:`flex shrink-0 items-center gap-0.5 self-stretch border-l border-line px-1.5`,children:o.map(t=>(0,F.jsx)(Zt,{label:t.headline,children:(0,F.jsx)(`button`,{type:`button`,"aria-label":`Show ${t.sessionName}'s request`,onClick:()=>r(t.sessionName),className:`press flex size-8 cursor-pointer items-center justify-center rounded-inner transition-colors duration-150 hover:bg-raised`,children:(0,F.jsx)(ca,{name:t.sessionName,state:e.find(e=>e.name===t.sessionName)?.state,size:22})})},`${t.sessionName}-${t.kind}`))})]})}function ja(e){let t=P(t=>t.sessions.find(t=>t.name===e));return(0,v.useMemo)(()=>{if(!t)return;let e=Pt.build([t])[0];return e&&Kt.isDecision(e.kind)?{item:e,session:t}:void 0},[t])}function Ma({control:e}){let{perform:t}=Fe(),n=P(e=>e.conversation.findLast(e=>e.kind===`assistant`)?.text);if(e.preview){let n=Math.max(0,e.preview.deadline-Date.now());return(0,F.jsxs)(`div`,{className:`enter-rise relative overflow-hidden rounded-inner border border-line bg-raised px-3 py-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-baseline gap-2 text-meta`,children:[(0,F.jsxs)(`span`,{className:`shrink-0 font-mono text-ink-muted`,children:[`to `,e.preview.session]}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-ink`,children:e.preview.text}),(0,F.jsx)(`span`,{className:`shrink-0 text-small text-ink-faint`,children:`say cancel to stop`}),(0,F.jsx)(Na,{onClick:()=>t({type:`send_now`}),children:`Send now`}),(0,F.jsx)(Na,{onClick:()=>t({type:`cancel`}),children:`Cancel`})]}),(0,F.jsx)(`div`,{className:`countdown-bar absolute inset-x-0 bottom-0 h-0.5 bg-ink/70`,style:{"--countdown-duration":`${n}ms`}})]},e.preview.deadline)}return e.confirmation?(0,F.jsxs)(`div`,{className:`enter-rise flex items-center gap-2 rounded-inner border border-permission/60 bg-permission/10 px-3 py-2 text-meta`,children:[(0,F.jsxs)(`span`,{className:`min-w-0 flex-1 text-ink`,children:[`Say `,(0,F.jsx)(`span`,{className:`font-medium`,children:`confirm`}),` to `,e.confirmation,`.`]}),(0,F.jsx)(Na,{onClick:()=>t({type:`confirm`}),children:`Confirm`}),(0,F.jsx)(Na,{onClick:()=>t({type:`cancel`}),children:`Cancel`})]}):e.clarify?(0,F.jsxs)(`div`,{className:`enter-rise flex flex-wrap items-center gap-2 rounded-inner border border-line bg-raised px-3 py-2 text-meta`,children:[(0,F.jsx)(`span`,{className:`text-ink`,children:e.clarify.question}),e.clarify.options.map((e,n)=>(0,F.jsxs)(Na,{onClick:()=>t({type:`choose`,index:n}),children:[(0,F.jsx)(`span`,{className:`mr-1.5 font-mono text-ink-faint`,children:n+1}),e]},e))]}):e.routing?(0,F.jsxs)(`div`,{className:`flex items-center gap-2 px-1 text-small text-ink-muted lg:hidden`,children:[(0,F.jsx)(wt,{state:`thinking`,size:16}),`Thinking`]}):(0,F.jsxs)(F.Fragment,{children:[n&&(0,F.jsx)(`p`,{className:`truncate px-1 text-small text-ink-muted lg:hidden`,children:n}),e.lastHeard&&(0,F.jsxs)(`p`,{className:`truncate px-1 text-small text-ink-faint ${n?`hidden lg:block`:``}`,children:[`Heard: `,e.lastHeard]})]})}function Na({onClick:e,children:t}){return(0,F.jsx)(ma,{size:`small`,className:`shrink-0`,onClick:e,children:t})}function Pa(){let{sendUtterance:e,perform:t,announcer:n,connection:r}=Fe(),i=P(e=>e.typingSession),a=P(e=>e.setTypingSession),o=P(e=>e.control),s=P(e=>e.layout.conversationCollapsed),c=P(e=>e.changeLayout),[l,u]=(0,v.useState)(``),d=(0,v.useRef)(null),f=(0,v.useRef)(new ct),p=(0,v.useRef)(l);p.current=l;let m=t=>{let n=p.current.trim();f.current.reset(),u(``),n&&e(n,t)};(0,v.useEffect)(()=>{let e=window.setInterval(()=>{f.current.shouldSubmit(Date.now())&&m(`voice`)},100);return()=>window.clearInterval(e)},[]),La(d,i===void 0);let h=Ia(d);(0,v.useEffect)(()=>pt(()=>d.current,e=>r.send({type:`input_diagnostics`,records:e})),[r]);let g=_t(),_=P(e=>e.setBarState);return(0,v.useEffect)(()=>_({listening:h}),[h,_]),(0,v.useEffect)(()=>_({barHasText:l.trim().length>0}),[l,_]),(0,v.useEffect)(()=>{let e=e=>{let t=d.current,r=gt.focusedElement(document.activeElement,t);if(!t||!gt.pasteBelongsToBar(r))return;let i=e.clipboardData?.getData(`text/plain`)??``;if(!i.trim())return;e.preventDefault(),e.stopImmediatePropagation();let a=p.current,o=r===`bar`?{start:t.selectionStart??a.length,end:t.selectionEnd??a.length}:{start:a.length,end:a.length},{text:s,caret:c}=ht.apply(a,o,i);f.current.recordChange(a,s,Date.now()),n.noteInputActivity(),u(s),t.focus(),requestAnimationFrame(()=>t.setSelectionRange(c,c))};return document.addEventListener(`paste`,e,!0),()=>document.removeEventListener(`paste`,e,!0)},[n]),(0,F.jsx)(`footer`,{className:`shrink-0 px-2 pb-2`,children:(0,F.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,F.jsx)(`div`,{className:s?``:`lg:hidden`,children:(0,F.jsx)(Aa,{})}),(0,F.jsx)(Ma,{control:o}),i&&(0,F.jsxs)(`button`,{type:`button`,onClick:()=>a(void 0),className:`cursor-pointer rounded-inner border border-line bg-raised px-3 py-1.5 text-left text-meta text-ink-muted transition-colors duration-150 hover:text-ink`,children:[`Typing into `,(0,F.jsx)(`span`,{className:`font-mono text-ink`,children:i}),`. Click here to talk to HeyTerm again.`]}),!i&&h!==`listening`&&h!==`typing_in_terminal`&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>d.current?.focus(),className:`enter-rise cursor-pointer rounded-inner border border-permission/40 bg-permission/10 px-3 py-1.5 text-left text-meta text-permission`,children:Fa[h]}),(0,F.jsxs)(`label`,{className:`flex h-13 items-center gap-3 rounded-outer border bg-tray pr-2 pl-3.5 shadow-tray transition-colors duration-200 ${g===`deaf`?`border-line`:`border-line-strong focus-within:border-ink/40`}`,children:[(0,F.jsx)(wt,{state:g,size:26}),(0,F.jsx)(`input`,{ref:d,value:l,onChange:e=>{f.current.recordChange(l,e.target.value,Date.now()),n.noteInputActivity(),u(e.target.value)},onFocus:()=>a(void 0),onKeyDown:e=>{n.unlock(),e.key===`Enter`&&(e.preventDefault(),m(f.current.inputSource===`voice`?`voice`:`keyboard`)),e.key===`Escape`&&((o.preview||o.confirmation||o.clarify)&&t({type:`cancel`}),f.current.reset(),u(``))},placeholder:`Talk to HeyTerm. Hold your dictation key and try "what is everyone doing?"`,"aria-label":`Talk to HeyTerm`,className:`h-full min-w-0 flex-1 bg-transparent text-body text-ink outline-none placeholder:text-ink-faint`,autoComplete:`off`,spellCheck:!1}),(0,F.jsx)(`span`,{className:`hidden sm:block`,children:(0,F.jsx)(Tt,{children:`Enter`})}),s&&(0,F.jsx)(`button`,{type:`button`,"aria-label":`Show the conversation`,title:`Show the conversation`,onClick:()=>c({conversationCollapsed:!1}),className:`press hidden size-8 cursor-pointer items-center justify-center rounded-inner text-ink-muted transition-colors duration-150 hover:bg-raised hover:text-ink lg:flex`,children:(0,F.jsx)(Be,{size:16})})]})]})})}var Fa={window_in_background:`Not listening: another app is in front, so dictation goes there. Bring this window forward to talk.`,not_listening:`Not listening. Click here, then speak.`};function Ia(e){let t=()=>gt.of({windowHasFocus:document.hasFocus(),focusedElement:gt.focusedElement(document.activeElement,e.current)}),[n,r]=(0,v.useState)(`listening`);return(0,v.useEffect)(()=>{let e=()=>window.setTimeout(()=>r(t()),0);e();let n=[`focusin`,`focusout`];for(let t of n)document.addEventListener(t,e);return window.addEventListener(`focus`,e),window.addEventListener(`blur`,e),()=>{for(let t of n)document.removeEventListener(t,e);window.removeEventListener(`focus`,e),window.removeEventListener(`blur`,e)}},[]),n}function La(e,t){(0,v.useEffect)(()=>{if(!t)return;let n=()=>{let t=document.activeElement;(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t?.closest(`.xterm`))&&t!==e.current||e.current?.focus()};n();let r=()=>window.setTimeout(n,0);return document.addEventListener(`focusout`,r),window.addEventListener(`focus`,n),()=>{document.removeEventListener(`focusout`,r),window.removeEventListener(`focus`,n)}},[t,e])}function Ra(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var za=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ba=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Va={};function Ha(e,t){return((t||Va).jsx?Ba:za).test(e)}var Ua=/[ \t\n\f\r]/g;function Wa(e){return typeof e==`object`?e.type===`text`&&Ga(e.value):Ga(e)}function Ga(e){return e.replace(Ua,``)===``}var Ka=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ka.prototype.normal={},Ka.prototype.property={},Ka.prototype.space=void 0;function qa(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ka(n,r,t)}function Ja(e){return e.toLowerCase()}var Ya=class{constructor(e,t){this.attribute=t,this.property=e}};Ya.prototype.attribute=``,Ya.prototype.booleanish=!1,Ya.prototype.boolean=!1,Ya.prototype.commaOrSpaceSeparated=!1,Ya.prototype.commaSeparated=!1,Ya.prototype.defined=!1,Ya.prototype.mustUseProperty=!1,Ya.prototype.number=!1,Ya.prototype.overloadedBoolean=!1,Ya.prototype.property=``,Ya.prototype.spaceSeparated=!1,Ya.prototype.space=void 0;var Xa=s({boolean:()=>V,booleanish:()=>Qa,commaOrSpaceSeparated:()=>no,commaSeparated:()=>to,number:()=>H,overloadedBoolean:()=>$a,spaceSeparated:()=>eo}),Za=0,V=ro(),Qa=ro(),$a=ro(),H=ro(),eo=ro(),to=ro(),no=ro();function ro(){return 2**++Za}var io=Object.keys(Xa),ao=class extends Ya{constructor(e,t,n,r){let i=-1;if(super(e,t),oo(this,`space`,r),typeof n==`number`)for(;++i<io.length;){let e=io[i];oo(this,io[i],(n&Xa[e])===Xa[e])}}};ao.prototype.defined=!0;function oo(e,t,n){n&&(e[t]=n)}function so(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ao(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ja(r)]=r,n[Ja(a.attribute)]=r}return new Ka(t,n,e.space)}var co=so({properties:{ariaActiveDescendant:null,ariaAtomic:Qa,ariaAutoComplete:null,ariaBusy:Qa,ariaChecked:Qa,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:eo,ariaCurrent:null,ariaDescribedBy:eo,ariaDetails:null,ariaDisabled:Qa,ariaDropEffect:eo,ariaErrorMessage:null,ariaExpanded:Qa,ariaFlowTo:eo,ariaGrabbed:Qa,ariaHasPopup:null,ariaHidden:Qa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eo,ariaLevel:H,ariaLive:null,ariaModal:Qa,ariaMultiLine:Qa,ariaMultiSelectable:Qa,ariaOrientation:null,ariaOwns:eo,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Qa,ariaReadOnly:Qa,ariaRelevant:null,ariaRequired:Qa,ariaRoleDescription:eo,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Qa,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function lo(e,t){return t in e?e[t]:t}function uo(e,t){return lo(e,t.toLowerCase())}var fo=so({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:to,acceptCharset:eo,accessKey:eo,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alpha:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:eo,autoFocus:V,autoPlay:V,blocking:eo,capture:null,charSet:null,checked:V,cite:null,className:eo,closedBy:null,colorSpace:null,cols:H,colSpan:H,command:null,commandFor:null,content:null,contentEditable:Qa,controls:V,controlsList:eo,coords:H|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:$a,draggable:Qa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:eo,height:H,hidden:$a,high:H,href:null,hrefLang:null,htmlFor:eo,httpEquiv:eo,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:eo,itemRef:eo,itemScope:V,itemType:eo,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:V,optimum:H,pattern:null,ping:eo,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:eo,required:V,reversed:V,rows:H,rowSpan:H,sandbox:eo,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootCustomElementRegistry:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shadowRootSerializable:V,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Qa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:Qa,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:eo,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Qa,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:V,disablePictureInPicture:V,disableRemotePlayback:V,exportParts:to,part:eo,prefix:null,property:null,results:H,security:null,unselectable:null},space:`html`,transform:uo}),po=so({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:no,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:eo,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:to,g2:to,glyphName:to,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:no,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:H,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eo,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:no,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:no,rev:no,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:no,requiredFeatures:no,requiredFonts:no,requiredFormats:no,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:no,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:no,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:no,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:lo}),mo=so({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ho=so({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:uo}),go=so({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),_o={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},vo=/[A-Z]/g,yo=/-[a-z]/g,bo=/^data[-\w.:]+$/i;function xo(e,t){let n=Ja(t),r=t,i=Ya;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&bo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(yo,Co);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!yo.test(e)){let n=e.replace(vo,So);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ao}return new i(r,t)}function So(e){return`-`+e.toLowerCase()}function Co(e){return e.charAt(1).toUpperCase()}var wo=qa([co,fo,mo,ho,go],`html`),To=qa([co,po,mo,ho,go],`svg`);function Eo(e){return e.join(` `).trim()}var Do=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
13
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Oo=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Do());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),ko=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Ao=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Oo()),i=ko();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),jo=No(`end`),Mo=No(`start`);function No(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Po(e){let t=Mo(e),n=jo(e);if(t&&n)return{start:t,end:n}}function Fo(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Lo(e.position):`start`in e||`end`in e?Lo(e):`line`in e||`column`in e?Io(e):``}function Io(e){return Ro(e&&e.line)+`:`+Ro(e&&e.column)}function Lo(e){return Io(e&&e.start)+`-`+Io(e&&e.end)}function Ro(e){return e&&typeof e==`number`?e:1}var zo=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Fo(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};zo.prototype.file=``,zo.prototype.name=``,zo.prototype.reason=``,zo.prototype.message=``,zo.prototype.stack=``,zo.prototype.column=void 0,zo.prototype.line=void 0,zo.prototype.ancestors=void 0,zo.prototype.cause=void 0,zo.prototype.fatal=void 0,zo.prototype.place=void 0,zo.prototype.ruleId=void 0,zo.prototype.source=void 0;var Bo=l(Ao(),1),U={}.hasOwnProperty,Vo=new Map,Ho=/[A-Z]/g,Uo=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Wo=new Set([`td`,`th`]),Go=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ko(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=rs(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=ns(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?To:wo,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=qo(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function qo(e,t,n){if(t.type===`element`)return Jo(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Yo(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Zo(e,t,n);if(t.type===`mdxjsEsm`)return Xo(e,t);if(t.type===`root`)return Qo(e,t,n);if(t.type===`text`)return $o(e,t)}function Jo(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=To,e.schema=i),e.ancestors.push(t);let a=ls(e,t.tagName,!1),o=is(e,t),s=os(e,t);return Uo.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Wa(e)})),es(e,o,a,t),ts(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Yo(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}us(e,t.position)}function Xo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);us(e,t.position)}function Zo(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=To,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ls(e,t.name,!0),o=as(e,t),s=os(e,t);return es(e,o,a,t),ts(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Qo(e,t,n){let r={};return ts(r,os(e,t)),e.create(t,e.Fragment,r,n)}function $o(e,t){return t.value}function es(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ts(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ns(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function rs(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Mo(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function is(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&U.call(t.properties,i)){let a=ss(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Wo.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function as(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else us(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else us(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function os(e,t){let n=[],r=-1,i=e.passKeys?new Map:Vo;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=qo(e,a,o);s!==void 0&&n.push(s)}return n}function ss(e,t,n){let r=xo(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ra(n):Eo(n)),r.property===`style`){let t=typeof n==`object`?n:cs(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ds(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?_o[r.property]||r.property:r.attribute,n]}}function cs(e,t){try{return(0,Bo.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new zo("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Go+`#cannot-parse-style-attribute`,r}}function ls(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Ha(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Ha(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return U.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);us(e)}function us(e,t){let n=new zo("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Go+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ds(e){let t={},n;for(n in e)U.call(e,n)&&(t[fs(n)]=e[n]);return t}function fs(e){let t=e.replace(Ho,ps);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ps(e){return`-`+e.toLowerCase()}var ms={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},hs={};function gs(e,t){let n=t||hs;return _s(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function _s(e,t,n){if(ys(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return vs(e.children,t,n)}return Array.isArray(e)?vs(e,t,n):``}function vs(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=_s(e[i],t,n);return r.join(``)}function ys(e){return!!(e&&typeof e==`object`)}var bs=document.createElement(`i`);function xs(e){let t=`&`+e+`;`;bs.innerHTML=t;let n=bs.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function Ss(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Cs(e,t){return e.length>0?(Ss(e,e.length,0,t),e):t}var ws={}.hasOwnProperty;function Ts(e){let t={},n=-1;for(;++n<e.length;)Es(t,e[n]);return t}function Es(e,t){let n;for(n in t){let r=(ws.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){ws.call(r,a)||(r[a]=[]);let e=i[a];Ds(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Ds(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Ss(e,0,0,r)}function Os(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function ks(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var As=Vs(/[A-Za-z]/),js=Vs(/[\dA-Za-z]/),Ms=Vs(/[#-'*+\--9=?A-Z^-~]/);function Ns(e){return e!==null&&(e<32||e===127)}var Ps=Vs(/\d/),Fs=Vs(/[\dA-Fa-f]/),Is=Vs(/[!-/:-@[-`{-~]/);function W(e){return e!==null&&e<-2}function Ls(e){return e!==null&&(e<0||e===32)}function Rs(e){return e===-2||e===-1||e===32}var zs=Vs(/\p{P}|\p{S}/u),Bs=Vs(/\s/);function Vs(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Hs(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&js(e.charCodeAt(n+1))&&js(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Us(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Rs(r)?(e.enter(n),s(r)):t(r)}function s(r){return Rs(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Ws(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Rs(t)?(e.enter(r),c(t)):l(t)}function c(t){return Rs(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Gs={tokenize:Ks};function Ks(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Us(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return W(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var qs=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Js(this,e,t,n,!1)}addBefore(e,t,n){Js(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Js(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Ys={tokenize:Zs},Xs={tokenize:Qs};function Zs(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new qs;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xs,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Xs,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return W(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new qs;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Qs(e,t,n){return Us(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function $s(e){if(e===null||Ls(e)||Bs(e))return 1;if(zs(e))return 2}function ec(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var tc={name:`attention`,resolveAll:nc,tokenize:rc};function nc(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};ic(o,-a),ic(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Cs(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Cs(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Cs(r,ec(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Cs(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=Cs(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),Ss(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function rc(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$s(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=$s(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function ic(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ac={name:`autolink`,tokenize:oc};function oc(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return As(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||js(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||js(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Ns(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ms(t)?(e.consume(t),l):n(t)}function u(e){return js(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||js(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var sc={partial:!0,tokenize:cc};function cc(e,t,n){return r;function r(t){return Rs(t)?Us(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||W(e)?t(e):n(e)}}var lc={continuation:{tokenize:dc},exit:fc,name:`blockQuote`,tokenize:uc};function uc(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Rs(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function dc(e,t,n){let r=this;return i;function i(t){return Rs(t)?Us(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(lc,t,n)(r)}}function fc(e){e.exit(`blockQuote`)}var pc={name:`characterEscape`,tokenize:mc};function mc(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Is(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var hc={name:`characterReference`,tokenize:gc};function gc(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=js,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Fs,u):(e.enter(`characterReferenceValue`),a=7,o=Ps,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===js&&!xs(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _c={partial:!0,tokenize:vc};function vc(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var yc={concrete:!0,name:`codeFenced`,tokenize:bc};function bc(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Rs(t)?Us(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||W(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_c,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||W(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Rs(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Us(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||W(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||W(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Rs(t)?Us(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||W(t)?e.check(_c,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||W(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Rs(t)?Us(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Rs(t)?Us(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||W(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var xc={name:`codeIndented`,tokenize:Cc},Sc={partial:!0,tokenize:wc};function Cc(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Ws(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):W(t)?e.attempt(Sc,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||W(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function wc(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):W(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Ws(e,t,a,`linePrefix`,4,4)(o)}function a(e){return W(e)?i(e):n(e)}}var Tc={name:`codeText`,previous:Dc,resolve:Ec,tokenize:Oc};function Ec(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Dc(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Oc(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||W(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var kc=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Ac(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Ac(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ac(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Ac(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Ac(this.left,t.reverse())}}}};function Ac(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jc(e){let t={},n=-1,r,i,a,o,s,c,l,u=new kc(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Mc(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Ss(e,0,1/0,u.slice(0)),!l}function Mc(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Nc={resolve:Fc,tokenize:Ic},Pc={partial:!0,tokenize:Lc};function Fc(e){return jc(e),e}function Ic(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):W(t)?e.check(Pc,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Lc(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Us(e,a,`linePrefix`)}function a(i){if(i===null||W(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Rc(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Ns(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||W(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Ls(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Ns(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function zc(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):W(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||W(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Rs(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Bc(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Us(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||W(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Vc(e,t){let n;return r;function r(i){return W(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Rs(i)?Us(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Hc={name:`definition`,tokenize:Wc},Uc={partial:!0,tokenize:Gc};function Wc(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return zc.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ks(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Ls(t)?Vc(e,l)(t):l(t)}function l(t){return Rc(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Uc,d,d)(t)}function d(t){return Rs(t)?Us(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||W(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Gc(e,t,n){return r;function r(t){return Ls(t)?Vc(e,i)(t):n(t)}function i(t){return Bc(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Rs(t)?Us(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||W(e)?t(e):n(e)}}var Kc={name:`hardBreakEscape`,tokenize:qc};function qc(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return W(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Jc={name:`headingAtx`,resolve:Yc,tokenize:Xc};function Yc(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};Ss(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Xc(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Ls(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||W(n)?(e.exit(`atxHeading`),t(n)):Rs(n)?Us(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Ls(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Zc=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Qc=[`pre`,`script`,`style`,`textarea`],$c={concrete:!0,name:`htmlFlow`,resolveTo:tl,tokenize:nl},el={partial:!0,tokenize:rl};function tl(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nl(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ie):As(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):As(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:E:m):n(i)}function h(t){return As(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Ls(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Qc.includes(l)?(i=1,r.interrupt?t(s):E(s)):Zc.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):E(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||js(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:E):n(i)}function v(t){return Rs(t)?(e.consume(t),v):w(t)}function y(t){return t===47?(e.consume(t),w):t===58||t===95||As(t)?(e.consume(t),b):Rs(t)?(e.consume(t),y):w(t)}function b(t){return t===45||t===46||t===58||t===95||js(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),ee):Rs(t)?(e.consume(t),x):y(t)}function ee(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,te):Rs(t)?(e.consume(t),ee):S(t)}function te(t){return t===c?(e.consume(t),c=null,C):t===null||W(t)?n(t):(e.consume(t),te)}function S(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Ls(t)?x(t):(e.consume(t),S)}function C(e){return e===47||e===62||Rs(e)?y(e):n(e)}function w(t){return t===62?(e.consume(t),T):n(t)}function T(t){return t===null||W(t)?E(t):Rs(t)?(e.consume(t),T):n(t)}function E(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),j):W(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(el,oe,D)(t)):t===null||W(t)?(e.exit(`htmlFlowData`),D(t)):(e.consume(t),E)}function D(t){return e.check(_c,ne,oe)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),O}function O(t){return t===null||W(t)?D(t):(e.enter(`htmlFlowData`),E(t))}function re(t){return t===45?(e.consume(t),ie):E(t)}function k(t){return t===47?(e.consume(t),o=``,A):E(t)}function A(t){if(t===62){let n=o.toLowerCase();return Qc.includes(n)?(e.consume(t),ae):E(t)}return As(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):E(t)}function j(t){return t===93?(e.consume(t),ie):E(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):E(t)}function ae(t){return t===null||W(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function rl(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(sc,t,n)}}var il={name:`htmlText`,tokenize:al};function al(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):As(t)?(e.consume(t),S):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):As(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):W(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):W(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):W(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):W(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return As(t)?(e.consume(t),ee):n(t)}function ee(t){return t===45||js(t)?(e.consume(t),ee):te(t)}function te(t){return W(t)?(o=te,k(t)):Rs(t)?(e.consume(t),te):re(t)}function S(t){return t===45||js(t)?(e.consume(t),S):t===47||t===62||Ls(t)?C(t):n(t)}function C(t){return t===47?(e.consume(t),re):t===58||t===95||As(t)?(e.consume(t),w):W(t)?(o=C,k(t)):Rs(t)?(e.consume(t),C):re(t)}function w(t){return t===45||t===46||t===58||t===95||js(t)?(e.consume(t),w):T(t)}function T(t){return t===61?(e.consume(t),E):W(t)?(o=T,k(t)):Rs(t)?(e.consume(t),T):C(t)}function E(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,D):W(t)?(o=E,k(t)):Rs(t)?(e.consume(t),E):(e.consume(t),ne)}function D(t){return t===i?(e.consume(t),i=void 0,O):t===null?n(t):W(t)?(o=D,k(t)):(e.consume(t),D)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Ls(t)?C(t):(e.consume(t),ne)}function O(e){return e===47||e===62||Ls(e)?C(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return Rs(t)?Us(e,j,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):j(t)}function j(t){return e.enter(`htmlTextData`),o(t)}}var ol={name:`labelEnd`,resolveAll:ul,resolveTo:dl,tokenize:fl},sl={tokenize:pl},cl={tokenize:ml},ll={tokenize:hl};function ul(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Ss(e,0,e.length,n),e}function dl(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=Cs(o,e.slice(i+1,i+r+3)),o=Cs(o,[[`enter`,l,t]]),o=Cs(o,ec(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Cs(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Cs(o,e.slice(a+1)),o=Cs(o,[[`exit`,s,t]]),Ss(e,i,e.length,o),e}function fl(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ks(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(sl,u,o?u:d)(t):t===91?e.attempt(cl,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(ll,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function pl(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Ls(t)?Vc(e,a)(t):a(t)}function a(t){return t===41?u(t):Rc(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Ls(t)?Vc(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Bc(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Ls(t)?Vc(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ml(e,t,n){let r=this;return i;function i(t){return zc.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ks(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function hl(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var gl={name:`labelStartImage`,resolveAll:ol.resolveAll,tokenize:_l};function _l(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var vl={name:`labelStartLink`,resolveAll:ol.resolveAll,tokenize:yl};function yl(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var bl={name:`lineEnding`,tokenize:xl};function xl(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Us(e,t,`linePrefix`)}}var Sl={name:`thematicBreak`,tokenize:Cl};function Cl(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||W(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Rs(t)?Us(e,s,`whitespace`)(t):s(t))}}var wl={continuation:{tokenize:Ol},exit:Al,name:`list`,tokenize:Dl},Tl={partial:!0,tokenize:jl},El={partial:!0,tokenize:kl};function Dl(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ps(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Sl,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ps(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(sc,r.interrupt?n:u,e.attempt(Tl,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Rs(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ol(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(sc,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Us(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Rs(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(El,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Us(e,e.attempt(wl,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function kl(e,t,n){let r=this;return Us(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Al(e){e.exit(this.containerState.type)}function jl(e,t,n){let r=this;return Us(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Rs(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ml={name:`setextUnderline`,resolveTo:Nl,tokenize:Pl};function Nl(e,t){let n=new qs,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Pl(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Rs(t)?Us(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||W(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Fl={tokenize:Il};function Il(e){let t=this,n=e.attempt(sc,r,e.attempt(this.parser.constructs.flowInitial,i,Us(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nc,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Ll={resolveAll:Vl()},Rl=Bl(`string`),zl=Bl(`text`);function Bl(e){return{resolveAll:Vl(e===`text`?Hl:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Vl(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Hl(e,t){let n=new qs,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Ul=s({attentionMarkers:()=>Zl,contentInitial:()=>Gl,disable:()=>Ql,document:()=>Wl,flow:()=>ql,flowInitial:()=>Kl,insideSpan:()=>Xl,string:()=>Jl,text:()=>Yl}),Wl={42:wl,43:wl,45:wl,48:wl,49:wl,50:wl,51:wl,52:wl,53:wl,54:wl,55:wl,56:wl,57:wl,62:lc},Gl={91:Hc},Kl={[-2]:xc,[-1]:xc,32:xc},ql={35:Jc,42:Sl,45:[Ml,Sl],60:$c,61:Ml,95:Sl,96:yc,126:yc},Jl={38:hc,92:pc},Yl={[-5]:bl,[-4]:bl,[-3]:bl,33:gl,38:hc,42:tc,60:[ac,il],91:vl,92:[Kc,pc],93:ol,95:tc,96:Tc},Xl={null:[tc,Ll]},Zl={null:[42,95]},Ql={null:[]};function $l(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:te(x),check:te(ee),consume:v,enter:y,exit:b,interrupt:te(ee,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Cs(o,e),g(),o[o.length-1]===null?(S(t,0),l.events=ec(a,l.events,l),l.events):[]}function f(e,t){return tu(p(e),t)}function p(e){return eu(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,w()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){W(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,w()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){S(e,t.from)}function ee(e,t){t.restore()}function te(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=C(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function S(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ss(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function C(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function eu(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function tu(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
14
|
-
`;break;case-3:o=`\r
|
|
15
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function nu(e){let t={constructs:Ts([Ul,...(e||{}).extensions||[]]),content:n(Gs),defined:[],document:n(Ys),flow:n(Fl),lazy:{},string:n(Rl),text:n(zl)};return t;function n(e){return n;function n(n){return $l(t,e,n)}}}function ru(e){for(;!jc(e););return e}var iu=/[\0\t\n\r]/g;function au(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){iu.lastIndex=c;let n=iu.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ou=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function su(e){return e.replace(ou,cu)}function cu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Os(n.slice(t?2:1),t?16:10)}return xs(n)||e}var lu={}.hasOwnProperty;function uu(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),du(n)(ru(nu(n).document().write(au()(e,t,!0))))}function du(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(Se),autolinkProtocol:w,autolinkEmail:w,atxHeading:o(N),blockQuote:o(he),characterEscape:w,characterReference:w,codeFenced:o(ge),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ge,s),codeText:o(_e,s),codeTextData:w,data:w,codeFlowValue:w,definition:o(ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(M),hardBreakEscape:o(ye),hardBreakTrailing:o(ye),htmlFlow:o(be,s),htmlFlowData:w,htmlText:o(be,s),htmlTextData:w,image:o(xe),label:s,link:o(Se),listItem:o(we),listItemValue:p,listOrdered:o(Ce,f),listUnordered:o(Ce),paragraph:o(Te),reference:ce,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(N),strong:o(Ee),thematicBreak:o(Oe)},exit:{atxHeading:l(),atxHeadingSequence:ee,autolink:l(),autolinkEmail:me,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:de,characterReference:fe,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:l(v),codeText:l(re),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(ne),htmlFlowData:T,htmlText:l(O),htmlTextData:T,image:l(A),label:ie,labelText:j,lineEnding:E,link:l(k),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:le,resourceDestinationString:ae,resourceTitleString:oe,resource:se,setextHeading:l(C),setextHeadingLineSequence:S,setextHeadingText:te,strong:l(),thematicBreak:l()}};pu(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),lu.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||hu).call(o,void 0,e[0])}for(r.position={start:fu(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fu(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:fu(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+Fo({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||hu).call(this,e,r[0])),n.position.end=fu(e.end)}function d(){return gs(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ks(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ee(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function te(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function w(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=De(),n.position={start:fu(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=fu(e.end)}function E(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=fu(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(w.call(this,e),T.call(this,e))}function D(){this.data.atHardBreak=!0}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=su(t),n.identifier=ks(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function ce(){this.data.referenceType=`collapsed`}function le(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ks(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ue(e){this.data.characterReferenceType=e.type}function de(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Os(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=xs(t);let i=this.stack[this.stack.length-1];i.value+=r}function fe(e){let t=this.stack.pop();t.position.end=fu(e.end)}function pe(e){T.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function me(e){T.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function he(){return{type:`blockquote`,children:[],position:void 0}}function ge(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function _e(){return{type:`inlineCode`,value:``,position:void 0}}function ve(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function M(){return{type:`emphasis`,children:[],position:void 0}}function N(){return{type:`heading`,depth:0,children:[],position:void 0}}function ye(){return{type:`break`,position:void 0}}function be(){return{type:`html`,value:``,position:void 0}}function xe(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function Se(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Te(){return{type:`paragraph`,children:[],position:void 0}}function Ee(){return{type:`strong`,children:[],position:void 0}}function De(){return{type:`text`,value:``,position:void 0}}function Oe(){return{type:`thematicBreak`,position:void 0}}}function fu(e){return{line:e.line,column:e.column,offset:e.offset}}function pu(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?pu(e,r):mu(e,r)}}function mu(e,t){let n;for(n in t)if(lu.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function hu(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Fo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fo({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Fo({start:t.start,end:t.end})+`) is still open`)}function gu(e){let t=this;t.parser=n;function n(n){return uu(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function _u(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
16
|
-
`}]}function yu(e,t){let n=t.value?t.value+`
|
|
17
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function bu(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xu(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Su(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Hs(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Cu(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wu(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Tu(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Eu(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tu(e,t);let i={src:Hs(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Du(e,t){let n={src:Hs(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ou(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ku(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tu(e,t);let i={href:Hs(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Au(e,t){let n={href:Hs(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ju(e,t,n){let r=e.all(t),i=n?Mu(n):Nu(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
18
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
19
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Mu(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Nu(n[r])}return t}function Nu(e){return e.spread??e.children.length>1}function Pu(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Fu(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Iu(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Lu(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Mo(t.children[1]),o=jo(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function zu(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Bu(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Vu=9,Hu=32;function Uu(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Wu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Wu(t.slice(i),i>0,!1)),a.join(``)}function Wu(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Vu||t===Hu;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Vu||t===Hu;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Gu(e,t){let n={type:`text`,value:Uu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ku(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var qu={blockquote:_u,break:vu,code:yu,delete:bu,emphasis:xu,footnoteReference:Su,heading:Cu,html:wu,imageReference:Eu,image:Du,inlineCode:Ou,linkReference:ku,link:Au,listItem:ju,list:Pu,paragraph:Fu,root:Iu,strong:Lu,table:Ru,tableCell:Bu,tableRow:zu,text:Gu,thematicBreak:Ku,toml:Ju,yaml:Ju,definition:Ju,footnoteDefinition:Ju};function Ju(){}var{defineProperty:Yu}=Object,Xu=typeof self==`object`?self:globalThis,Zu=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Xu[e](t)},Qu=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Yu(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Xu[e]==`function`?Zu(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Zu(a,o),i)};return r},$u=e=>Qu(new Map,e)(0),ed=``,{toString:td}={},{keys:nd,is:G}=Object,K=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=td.call(e).slice(8,-1);switch(n){case`Array`:return[1,ed];case`Object`:return[2,ed];case`Date`:return[3,ed];case`RegExp`:return[4,ed];case`Map`:return[5,ed];case`Set`:return[6,ed];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},rd=([e,t])=>e===0&&(t===`function`||t===`symbol`),id=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=K(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&G(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of nd(o))(e||!rd(K(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?ed:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(rd(K(n))||rd(K(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!rd(K(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},ad=(e,{json:t,lossy:n}={})=>{let r=[];return id(!(t||n),!!t,new Map,r)(e),r},od=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?$u(ad(e,t)):structuredClone(e):(e,t)=>$u(ad(e,t));function sd(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function cd(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function ld(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||sd,r=e.options.footnoteBackLabel||cd,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Hs(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...od(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
20
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
21
|
-
`}]}}var ud=(function(e){if(e==null)return hd;if(typeof e==`function`)return md(e);if(typeof e==`object`)return Array.isArray(e)?dd(e):fd(e);if(typeof e==`string`)return pd(e);throw Error(`Expected function, string, or object as test`)});function dd(e){let t=[],n=-1;for(;++n<e.length;)t[n]=ud(e[n]);return md(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function fd(e){let t=e;return md(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function pd(e){return md(t);function t(t){return t&&t.type===e}}function md(e){return t;function t(t,n,r){return!!(gd(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function hd(){return!0}function gd(e){return typeof e==`object`&&!!e&&`type`in e}function _d(e){return e}var vd=[];function yd(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=ud(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+_d(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=vd;if(s&&r&&(o=bd(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=bd(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function bd(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?vd:[e]}function xd(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?yd(e,i,Cd(a),o):yd(e,i,Sd(a),o)}function Sd(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?Cd(e.enter):e.enter,exit:typeof e.exit==`function`?Cd(e.exit):e.exit}}function Cd(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var wd={}.hasOwnProperty,Td={};function Ed(e,t){let n=t||Td,r=new Map,i=new Map,a={all:s,applyData:Od,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...qu,...n.handlers},one:o,options:n,patch:Dd,wrap:Ad};return xd(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(wd.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=od(n);return r.children=a.all(e),r}return od(e)}return(a.options.unknownHandler||kd)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=jd(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=jd(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Dd(e,t){e.position&&(t.position=Po(e))}function Od(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,od(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function kd(e,t){let n=t.data||{},r=`value`in t&&!(wd.call(n,`hProperties`)||wd.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ad(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
22
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
23
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
24
|
-
`}),n}function jd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Md(e,t){let n=Ed(e,t),r=n.one(e,void 0),i=ld(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
25
|
-
`},i)),a}function Nd(e,t){return e&&`run`in e?async function(n,r){let i=Md(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Md(n,{file:r,...e||t})}}function Pd(e){if(e)throw e}var Fd=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Id(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ld(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Rd(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Rd(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var zd={basename:Bd,dirname:Vd,extname:Hd,join:Ud,sep:`/`};function Bd(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Kd(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Vd(e){if(Kd(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Hd(e){Kd(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Ud(...e){let t=-1,n;for(;++t<e.length;)Kd(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Wd(n)}function Wd(e){Kd(e);let t=e.codePointAt(0)===47,n=Gd(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Gd(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Kd(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var qd={cwd:Jd};function Jd(){return`/`}function Yd(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Xd(e){if(typeof e==`string`)e=new URL(e);else if(!Yd(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Zd(e)}function Zd(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Qd=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],$d=class{constructor(e){let t;t=e?Yd(e)?{path:e}:typeof e==`string`||rf(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:qd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Qd.length;){let e=Qd[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Qd.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?zd.basename(this.path):void 0}set basename(e){tf(e,`basename`),ef(e,`basename`),this.path=zd.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?zd.dirname(this.path):void 0}set dirname(e){nf(this.basename,`dirname`),this.path=zd.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?zd.extname(this.path):void 0}set extname(e){if(ef(e,`extname`),nf(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=zd.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Yd(e)&&(e=Xd(e)),tf(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?zd.basename(this.path,this.extname):void 0}set stem(e){tf(e,`stem`),ef(e,`stem`),this.path=zd.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new zo(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function ef(e,t){if(e&&e.includes(zd.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+zd.sep+"`")}function tf(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nf(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function rf(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var af=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),of=l(Fd(),1),sf={}.hasOwnProperty,cf=new class e extends af{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ld()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,of.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(df(`data`,this.frozen),this.namespace[e]=t,this):sf.call(this.namespace,e)&&this.namespace[e]||void 0:e?(df(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=mf(e),n=this.parser||this.Parser;return lf(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lf(`process`,this.parser||this.Parser),uf(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=mf(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);gf(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),lf(`processSync`,this.parser||this.Parser),uf(`processSync`,this.compiler||this.Compiler),this.process(e,r),pf(`processSync`,`process`,t),n;function r(e,r){t=!0,Pd(e),n=r}}run(e,t,n){ff(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=mf(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),pf(`runSync`,`run`,n),r;function i(e,t){Pd(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=mf(t),r=this.compiler||this.Compiler;return uf(`stringify`,r),ff(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(df(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,of.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Id(o)&&Id(r)&&(r=(0,of.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function lf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function uf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function df(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ff(e){if(!Id(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function pf(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function mf(e){return hf(e)?e:new $d(e)}function hf(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function gf(e){return typeof e==`string`||_f(e)}function _f(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var vf=[],yf={allowDangerousHtml:!0},bf=/^(https?|ircs?|mailto|xmpp)$/i,xf=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Sf(e){let t=Cf(e),n=wf(e);return Tf(t.runSync(t.parse(n),n),e)}function Cf(e){let t=e.rehypePlugins||vf,n=e.remarkPlugins||vf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yf}:yf;return cf().use(gu).use(n).use(Nd,r).use(t)}function wf(e){let t=e.children||``,n=new $d;return typeof t==`string`?n.value=t:``+t,n}function Tf(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Ef;for(let e of xf)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return xd(e,l),Ko(e,{Fragment:F.Fragment,components:i,ignoreInvalidStyle:!0,jsx:F.jsx,jsxs:F.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in ms)if(Object.hasOwn(ms,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ms[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Ef(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||bf.test(e.slice(0,t))?e:``}var Df={p:({children:e})=>(0,F.jsx)(`p`,{className:`mb-2 last:mb-0`,children:e}),strong:({children:e})=>(0,F.jsx)(`strong`,{className:`font-semibold text-ink`,children:e}),em:({children:e})=>(0,F.jsx)(`em`,{className:`italic`,children:e}),code:({children:e})=>(0,F.jsx)(`code`,{className:`rounded-tiny bg-raised px-1 py-px font-mono text-[0.88em] text-ink`,children:e}),pre:({children:e})=>(0,F.jsx)(`pre`,{className:`mb-2 overflow-x-auto rounded-inner border border-line bg-tray p-2.5 font-mono text-small [&_code]:bg-transparent [&_code]:p-0`,children:e}),ul:({children:e})=>(0,F.jsx)(`ul`,{className:`mb-2 flex list-disc flex-col gap-1 pl-5 last:mb-0`,children:e}),ol:({children:e})=>(0,F.jsx)(`ol`,{className:`mb-2 flex list-decimal flex-col gap-1 pl-5 last:mb-0`,children:e}),h1:({children:e})=>(0,F.jsx)(`p`,{className:`mt-3 mb-1.5 font-semibold text-accent-ink first:mt-0`,children:e}),h2:({children:e})=>(0,F.jsx)(`p`,{className:`mt-3 mb-1.5 font-semibold text-accent-ink first:mt-0`,children:e}),h3:({children:e})=>(0,F.jsx)(`p`,{className:`mt-3 mb-1.5 font-semibold text-accent-ink first:mt-0`,children:e}),a:({children:e,href:t})=>(0,F.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,className:`text-accent-ink underline decoration-accent/40 underline-offset-2 transition-[text-decoration-color] duration-150 hover:decoration-accent`,children:e})};function Of({text:e,className:t=``}){return(0,F.jsx)(`div`,{className:`break-words ${t}`,children:(0,F.jsx)(Sf,{components:Df,children:e})})}var kf=120;function Af(){let e=P(e=>e.conversation),t=P(e=>e.layout.conversationCollapsed),n=P(e=>e.changeLayout),r=_t(),i=P(e=>e.sessions),a=(0,v.useRef)(null),[o,s]=(0,v.useState)(!0),[c,l]=(0,v.useState)(!1),u=(r===`thinking`?Pf(e):void 0)??vt[r],d=(0,v.useMemo)(()=>Kt.waitingWithoutEntry(e,i),[e,i]);(0,v.useEffect)(()=>{let t=a.current;if(!t)return;let n=e[e.length-1];o||n?.kind===`user`||n?.kind===`request`?(t.scrollTop=t.scrollHeight,l(!1)):l(!0)},[e,d.length]);let f=()=>{let e=a.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight<kf;s(t),t&&l(!1)},p=()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;a.current?.scrollTo({top:a.current.scrollHeight,behavior:e?`auto`:`smooth`}),l(!1)};if(t)return null;let m=e.length===0&&d.length===0;return(0,F.jsxs)(`aside`,{"aria-label":`Conversation with HeyTerm`,className:`my-2 mr-2 hidden w-[380px] shrink-0 flex-col overflow-hidden rounded-outer border border-line bg-panel lg:flex`,children:[(0,F.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center gap-3 border-b border-line px-4`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`text-meta font-medium text-ink`,children:`HeyTerm`}),(0,F.jsx)(`span`,{className:`status-swap truncate text-small text-ink-faint`,"aria-live":`polite`,children:u},u)]}),(0,F.jsx)(`button`,{type:`button`,"aria-label":`Fold the conversation`,title:`Fold the conversation`,onClick:()=>n({conversationCollapsed:!0}),className:`press ml-auto flex size-8 cursor-pointer items-center justify-center rounded-inner text-ink-muted transition-colors duration-150 hover:bg-raised hover:text-ink`,children:(0,F.jsx)(ze,{size:16})})]}),m?(0,F.jsx)(Nf,{}):(0,F.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,F.jsxs)(`ol`,{ref:a,onScroll:f,className:`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto px-4 py-4`,children:[e.map(e=>(0,F.jsx)(`li`,{className:`enter-rise`,children:(0,F.jsx)(Mf,{entry:e,sessions:i})},e.id)),d.map(e=>(0,F.jsx)(`li`,{className:`enter-rise`,children:(0,F.jsx)(jf,{item:e,sessions:i})},`${e.sessionName}-${e.kind}-${e.since}`))]}),c&&(0,F.jsxs)(`button`,{type:`button`,onClick:p,className:`press key-lift enter-rise absolute bottom-3 left-1/2 flex h-8 -translate-x-1/2 cursor-pointer items-center gap-1.5 rounded-inner border border-line-strong bg-key px-3 text-meta text-ink shadow-key hover:bg-key-hover`,children:[(0,F.jsx)($e,{size:14}),`New messages`]})]})]})}function jf({item:e,sessions:t}){let n=t.find(t=>t.name===e.sessionName);return n?(0,F.jsx)(_a,{item:e,session:n,variant:`chat`}):null}function Mf({entry:e,sessions:t}){switch(e.kind){case`user`:return(0,F.jsx)(`div`,{className:`ml-auto w-fit max-w-[85%] rounded-outer bg-raised px-3 py-2 text-body break-words text-ink`,children:e.text});case`request`:{let n=e.request;if(!n)return null;let r=Kt.waitingDecisions(t).find(e=>e.sessionName===n.session&&e.kind===n.kind&&e.since===n.since);return r?(0,F.jsx)(jf,{item:r,sessions:t}):(0,F.jsx)(ya,{text:e.text,sessionName:n.session})}case`assistant`:return(0,F.jsx)(Of,{text:e.text,className:`text-body text-ink`});case`tool`:return(0,F.jsxs)(`p`,{className:`flex items-baseline gap-2 font-mono text-small text-ink-faint`,title:e.text,children:[(0,F.jsx)(`span`,{"aria-hidden":!0,children:`›`}),(0,F.jsx)(`span`,{className:`truncate`,children:e.text})]});case`event`:return(0,F.jsxs)(`p`,{className:`flex items-baseline gap-2 text-meta text-ink-muted`,title:e.text,children:[(0,F.jsx)(`span`,{"aria-hidden":!0,className:`size-1.5 shrink-0 -translate-y-px rounded-mark bg-ink-faint`}),(0,F.jsx)(`span`,{className:`line-clamp-2`,children:e.text})]});case`error`:return(0,F.jsx)(`p`,{className:`rounded-inner border border-failed/30 bg-failed/10 px-3 py-2 text-meta text-failed`,children:e.text})}}function Nf(){return(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-5`,children:[(0,F.jsx)(`p`,{className:`text-body text-ink`,children:`Talk to me about your sessions, or tell me what to do. I run commands on this Mac too.`}),(0,F.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:[`What is everyone doing?`,`Start a session in portfolio and fix the header`,`What changed in heyterm today?`].map(e=>(0,F.jsxs)(`li`,{className:`rounded-inner border border-line bg-tray px-3 py-2 text-meta text-ink-muted shadow-tray`,children:[`"`,e,`"`]},e))})]})}function Pf(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.kind===`user`||n.kind===`assistant`)return;if(n.kind===`tool`)return Ff(n.text)}}function Ff(e){let t=e.length>48?`${e.slice(0,47)}…`:e;return t.charAt(0).toUpperCase()+t.slice(1)}var If=280,Lf=12;function Rf({title:e,children:t}){let[n,r]=(0,v.useState)(!1),[i,a]=(0,v.useState)(void 0),o=(0,v.useRef)(null),s=(0,v.useRef)(null);return(0,v.useLayoutEffect)(()=>{if(!n||!o.current)return;let e=o.current.getBoundingClientRect(),t=Math.min(Math.max(Lf,e.left-8),window.innerWidth-If-Lf),r=s.current?.offsetHeight??160,i=e.bottom+6,c=i+r>window.innerHeight-Lf?Math.max(Lf,e.top-r-6):i;a({top:c,left:t})},[n]),(0,v.useEffect)(()=>{if(!n)return;let e=e=>{let t=e.target;!s.current?.contains(t)&&!o.current?.contains(t)&&r(!1)},t=e=>e.key===`Escape`&&r(!1),i=()=>r(!1);return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),window.addEventListener(`resize`,i),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,i)}},[n]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`button`,{ref:o,type:`button`,"aria-label":`About ${e}`,"aria-expanded":n,onClick:()=>r(!n),className:`flex size-5 cursor-pointer items-center justify-center rounded-tiny transition-colors duration-150 hover:bg-raised hover:text-ink ${n?`text-ink`:`text-ink-faint`}`,children:(0,F.jsx)(He,{size:13})}),n&&(0,y.createPortal)((0,F.jsxs)(`div`,{ref:s,role:`dialog`,"aria-label":e,className:`enter-rise fixed z-50 flex flex-col gap-1.5 rounded-inner border border-line-strong bg-canvas p-3 text-left`,style:{width:If,top:i?.top??-9999,left:i?.left??-9999},children:[(0,F.jsx)(`span`,{className:`text-meta font-medium text-ink`,children:e}),(0,F.jsx)(`span`,{className:`flex flex-col gap-2 text-small leading-relaxed text-ink-muted`,children:t})]}),document.body)]})}function zf({children:e}){return(0,F.jsxs)(`span`,{className:`rounded-tiny border border-line bg-tray px-1 py-px font-mono text-small whitespace-nowrap text-ink`,children:[`"`,e,`"`]})}function Bf({label:e,value:t,options:n,onChange:r,stretch:i=!1}){return(0,F.jsx)(`div`,{role:`radiogroup`,"aria-label":e,className:`${i?`flex`:`inline-flex self-start`} gap-0.5 rounded-inner border border-line bg-tray p-0.5 shadow-tray`,children:n.map(e=>{let n=e.value===t;return(0,F.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":n,onClick:()=>r(e.value),className:`press inline-flex h-7 cursor-pointer items-center justify-center gap-1.5 rounded-small px-2.5 text-meta transition-[background-color,color,box-shadow] duration-150 ${i?`flex-1`:``} ${n?`bg-key text-ink shadow-key`:`text-ink-muted hover:text-ink`}`,children:[e.icon,e.label]},e.value)})})}var Vf={speak:`quiet`,quiet:`mute`,mute:`speak`},Hf={speak:`Speaking`,quiet:`Quiet`,mute:`Muted`};function Uf({onOpenSetup:e}){return P(e=>e.layout.sidebarCollapsed)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Kf,{onOpenSetup:e,className:`hidden md:flex`}),(0,F.jsx)(Gf,{onOpenSetup:e,className:`flex md:hidden`})]}):(0,F.jsx)(Gf,{onOpenSetup:e})}function Wf(){let e=P(e=>e.sessions);return(0,v.useMemo)(()=>{let t=Pt.build(e);return{queue:t,ordered:[...e].sort((e,n)=>rp(t,e)-rp(t,n)||e.createdAt-n.createdAt)}},[e])}function Gf({onOpenSetup:e,className:t=`flex`}){let n=P(e=>e.sessions),r=P(e=>e.recentlyClosed),i=P(e=>e.changeLayout),{ordered:a}=Wf(),[o,s]=(0,v.useState)(!1);return(0,F.jsxs)(`aside`,{className:`${t} max-h-[45vh] min-h-0 w-full shrink-0 flex-col border-b border-line bg-panel md:my-2 md:ml-2 md:max-h-none md:w-[280px] md:overflow-hidden md:rounded-outer md:border`,children:[(0,F.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center gap-2 px-3`,children:[(0,F.jsx)(`img`,{src:`/favicon.svg`,alt:``,width:22,height:22,className:`shrink-0`}),(0,F.jsx)(`span`,{className:`text-meta font-semibold tracking-tight text-ink`,children:`HeyTerm`}),(0,F.jsx)(np,{}),!1,(0,F.jsx)(tp,{label:`Fold the sidebar`,onClick:()=>i({sidebarCollapsed:!0}),className:`ml-auto hidden md:flex`,children:(0,F.jsx)(Le,{size:16})})]}),(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-3 pb-3`,children:[(0,F.jsxs)(`section`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)($f,{title:`Sessions`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`Every coding agent running in HeyTerm, and Claude sessions from your own terminals if Setup shows them. The ones that need you come first.`}),(0,F.jsxs)(`span`,{children:[`Name one to talk to it: `,(0,F.jsx)(zf,{children:`portfolio, run the tests`}),`, or `,(0,F.jsx)(zf,{children:`start a codex session in api`}),`.`]})]}),action:(0,F.jsx)(tp,{label:`New session`,onClick:()=>s(!o),children:(0,F.jsx)(Ue,{size:15})})}),o&&(0,F.jsx)(Xf,{onDone:()=>s(!1)}),a.map(e=>(0,F.jsx)(Jf,{session:e},e.name)),n.length===0&&!o&&(0,F.jsx)(`p`,{className:`px-2.5 py-1 text-meta text-ink-faint`,children:`None yet. Press + or say "start a session in" a project.`})]}),r.length>0&&(0,F.jsxs)(`section`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)($f,{title:`Recently closed`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`Sessions that ended, or that were running when HeyTerm stopped. Bringing one back resumes its conversation where it left off.`}),(0,F.jsxs)(`span`,{children:[`Say `,(0,F.jsx)(zf,{children:`bring back ultron`}),` or click it.`]})]})}),r.slice(0,6).map(e=>(0,F.jsx)(Yf,{name:e.name},e.name))]})]}),(0,F.jsx)(Zf,{onOpenSetup:e})]})}function Kf({onOpenSetup:e,className:t}){let n=P(e=>e.changeLayout),r=P(e=>e.recentlyClosed),{queue:i,ordered:a}=Wf(),o=i[0]?.sessionName;return(0,F.jsxs)(`aside`,{className:`${t} min-h-0 w-[60px] shrink-0 flex-col items-center overflow-hidden rounded-outer border border-line bg-panel md:my-2 md:ml-2`,children:[(0,F.jsx)(`header`,{className:`flex h-12 shrink-0 items-center`,children:(0,F.jsx)(`img`,{src:`/favicon.svg`,alt:`HeyTerm`,width:24,height:24})}),(0,F.jsx)(ep,{label:`Open the sidebar`,onClick:()=>n({sidebarCollapsed:!1}),children:(0,F.jsx)(Re,{size:16})}),(0,F.jsx)(`div`,{className:`my-2 h-px w-6 shrink-0 bg-line`}),(0,F.jsxs)(`div`,{className:`flex min-h-0 w-full flex-1 flex-col items-center gap-1.5 overflow-y-auto pb-2`,children:[a.map(e=>(0,F.jsx)(q,{session:e,isHead:o===e.name},e.name)),(0,F.jsx)(ep,{label:`New session`,onClick:()=>n({sidebarCollapsed:!1}),children:(0,F.jsx)(Ue,{size:16})}),r.length>0&&(0,F.jsx)(`div`,{className:`my-1 h-px w-6 shrink-0 bg-line`}),r.slice(0,6).map(e=>(0,F.jsx)(qf,{name:e.name},e.name))]}),(0,F.jsxs)(`footer`,{className:`flex w-full shrink-0 flex-col items-center gap-1 border-t border-line py-2`,children:[(0,F.jsx)(Qf,{compact:!0}),(0,F.jsx)(ep,{label:`Setup`,onClick:e,children:(0,F.jsx)(Ve,{size:16})})]})]})}function q({session:e,isHead:t}){let{perform:n}=Fe(),r=P(e=>e.focusedSession),i=la(),a=nt[e.state],o=it(e.state),s=o?at(i-e.stateSince):``,c=o?``:na.promptPreview(e.lastPrompt??``),l=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{className:`font-mono text-ink`,children:e.name}),e.agent!==`claude`&&(0,F.jsx)(`span`,{className:`text-small text-ink-faint`,children:e.agent}),e.origin===`external`&&(0,F.jsx)(`span`,{className:`text-small text-ink-faint`,children:`own terminal`})]}),(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5 text-small`,children:[(0,F.jsx)(`span`,{className:a.textClass,children:a.label}),s&&(0,F.jsx)(`span`,{className:`font-mono text-ink-faint tabular-nums`,children:s})]}),c&&(0,F.jsx)(`span`,{className:`truncate text-small text-ink-faint`,children:c})]});return(0,F.jsx)(Zt,{label:l,children:(0,F.jsxs)(`button`,{type:`button`,"aria-label":`${e.name}, ${a.label}`,onClick:()=>n({type:`focus`,session:e.name}),style:{borderRadius:ia(32)+3},className:`press flex cursor-pointer flex-col items-center gap-0.5 p-[3px] transition-colors duration-150 hover:bg-raised ${r===e.name?`bg-raised ring-1 ring-line-strong`:``} ${t?`ring-1 ring-ink/40`:``}`,children:[(0,F.jsx)(ca,{name:e.name,state:e.state,size:32}),s&&(0,F.jsx)(`span`,{className:`font-mono text-micro tabular-nums ${a.textClass}`,children:s})]})})}function qf({name:e}){let{perform:t}=Fe();return(0,F.jsx)(Zt,{label:(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(Ze,{size:13,className:`text-ink-faint`}),`Bring back `,(0,F.jsx)(`span`,{className:`font-mono`,children:e})]}),children:(0,F.jsx)(`button`,{type:`button`,"aria-label":`Bring back ${e}`,onClick:()=>t({type:`resume`,session:e}),style:{borderRadius:ia(26)+3},className:`press cursor-pointer p-[3px] opacity-50 transition-[opacity,background-color] duration-150 hover:bg-raised hover:opacity-100`,children:(0,F.jsx)(ca,{name:e,size:26})})})}function Jf({session:e}){let{perform:t}=Fe(),n=P(e=>e.focusedSession),r=la(),i=nt[e.state],a=n===e.name,o=it(e.state)?``:na.promptPreview(e.lastPrompt??``);return(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t({type:`focus`,session:e.name}),className:`flex w-full cursor-pointer items-center gap-2.5 rounded-inner px-2 py-1.5 text-left transition-colors duration-150 hover:bg-raised ${a?`bg-raised`:``}`,children:[(0,F.jsx)(ca,{name:e.name,state:e.state,size:30}),(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{className:`truncate font-mono text-meta text-ink`,children:e.name}),e.agent!==`claude`&&(0,F.jsx)(`span`,{className:`shrink-0 text-small text-ink-faint`,children:e.agent}),e.origin===`external`&&(0,F.jsx)(`span`,{className:`shrink-0 text-small text-ink-faint`,children:`own terminal`})]}),(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5 text-small`,children:[(0,F.jsx)(`span`,{className:i.textClass,children:i.label}),it(e.state)&&(0,F.jsx)(`span`,{className:`font-mono text-ink-faint tabular-nums`,children:at(r-e.stateSince)}),o&&(0,F.jsxs)(`span`,{className:`truncate text-ink-faint`,children:[`· `,o]})]})]})]})}function Yf({name:e}){let{perform:t}=Fe();return(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t({type:`resume`,session:e}),className:`group flex cursor-pointer items-center gap-2.5 rounded-inner px-2 py-1.5 text-left transition-colors duration-150 hover:bg-raised`,children:[(0,F.jsx)(`span`,{className:`opacity-50 transition-opacity duration-150 group-hover:opacity-100`,children:(0,F.jsx)(ca,{name:e,size:24})}),(0,F.jsx)(`span`,{className:`truncate font-mono text-meta text-ink-muted group-hover:text-ink`,children:e}),(0,F.jsx)(Ze,{size:14,className:`ml-auto text-ink-faint opacity-0 transition-opacity duration-150 group-hover:opacity-100`})]})}function Xf({onDone:e}){let{perform:t}=Fe(),n=P(e=>e.projects),r=P(e=>e.setup?.agents),i=(0,v.useMemo)(()=>(r??[]).filter(e=>e.version),[r]),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(`claude`),l=n.filter(e=>e.includes(a.toLowerCase())).slice(0,10);return(0,F.jsxs)(ua,{className:`enter-rise mb-1 flex flex-col gap-1 p-1`,children:[i.length>1&&(0,F.jsx)(Bf,{label:`Agent`,stretch:!0,value:s,onChange:c,options:i.map(e=>({value:e.kind,label:e.label.replace(` CLI`,``).replace(` Code`,``)}))}),(0,F.jsx)(`input`,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),onKeyDown:t=>t.key===`Escape`&&e(),placeholder:`Find a project`,className:`h-8 rounded-tiny border border-line bg-panel px-2.5 text-meta text-ink outline-none placeholder:text-ink-faint focus:border-line-strong`}),l.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{t({type:`spawn`,project:n,...s===`claude`?{}:{agent:s}}),e()},className:`flex cursor-pointer items-center gap-2 rounded-tiny px-2 py-1.5 text-left font-mono text-meta text-ink transition-colors duration-150 hover:bg-raised`,children:[(0,F.jsx)(ca,{name:n,size:18}),n]},n)),l.length===0&&(0,F.jsx)(`p`,{className:`px-2.5 py-1.5 text-meta text-ink-faint`,children:`No project matches. Add folders in Setup.`})]})}function Zf({onOpenSetup:e}){let t=P(e=>e.sessions),n=P(e=>e.handsOff),r=la(),i=t.reduce((e,t)=>e+t.waitedMillisecondsToday+(it(t.state)?r-t.stateSince:0),0),a=n.voiceShare;return(0,F.jsxs)(`footer`,{className:`flex shrink-0 flex-col gap-2 border-t border-line p-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3 px-1 text-small text-ink-faint`,children:[(0,F.jsxs)(`span`,{title:`How long sessions waited for you today`,children:[`Waited `,(0,F.jsx)(`span`,{className:`font-mono text-ink-muted tabular-nums`,children:at(i)})]}),(0,F.jsxs)(`span`,{title:`${n.voice} by voice, ${n.keyboard} by keyboard, ${n.pointer} by pointer today`,children:[`Hands off `,(0,F.jsx)(`span`,{className:`font-mono text-ink-muted tabular-nums`,children:a===void 0?`–`:`${Math.round(a*100)}%`})]}),(0,F.jsxs)(Rf,{title:`Today's numbers`,children:[(0,F.jsx)(`span`,{children:`Waited: how long your sessions sat waiting for you today, added up.`}),(0,F.jsx)(`span`,{children:`Hands off: how much of what you did today was by voice rather than keyboard or mouse.`})]})]}),(0,F.jsxs)(`div`,{className:`flex gap-1`,children:[(0,F.jsx)(Qf,{}),(0,F.jsxs)(`button`,{type:`button`,onClick:e,className:`press key-lift flex h-8 flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-inner border border-line bg-key text-meta text-ink shadow-key hover:bg-key-hover`,children:[(0,F.jsx)(Ve,{size:15}),`Setup`]})]})]})}function Qf({compact:e=!1}){let{perform:t}=Fe(),n=P(e=>e.control.mode),r=n===`speak`?We:n===`quiet`?Ge:Ke;return e?(0,F.jsx)(ep,{label:`${Hf[n]}. Click to change, or say "be quiet", "mute" or "talk to me".`,onClick:()=>t({type:`mode`,mode:Vf[n]}),children:(0,F.jsx)(r,{size:16})}):(0,F.jsxs)(`button`,{type:`button`,title:`Speaking says everything, Quiet only permissions and questions, Muted plays sounds only. Or say: be quiet, mute, talk to me.`,onClick:()=>t({type:`mode`,mode:Vf[n]}),className:`press key-lift flex h-8 flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-inner border border-line bg-key text-meta text-ink shadow-key hover:bg-key-hover`,children:[(0,F.jsx)(r,{size:15}),Hf[n]]})}function $f({title:e,help:t,action:n}){return(0,F.jsxs)(`div`,{className:`flex items-center gap-1 px-1 pb-1`,children:[(0,F.jsx)(`h2`,{className:`px-1 text-meta font-medium text-ink-muted`,children:e}),(0,F.jsx)(Rf,{title:e,children:t}),n&&(0,F.jsx)(`span`,{className:`ml-auto`,children:n})]})}function ep({label:e,onClick:t,children:n}){return(0,F.jsx)(Zt,{label:e,children:(0,F.jsx)(tp,{label:e,onClick:t,showsTitle:!1,children:n})})}function tp({label:e,onClick:t,children:n,className:r=``,showsTitle:i=!0}){return(0,F.jsx)(`button`,{type:`button`,"aria-label":e,title:i?e:void 0,onClick:t,className:`press flex size-8 cursor-pointer items-center justify-center rounded-inner text-ink-muted transition-colors duration-150 hover:bg-raised hover:text-ink ${r}`,children:n})}function np(){let e=P(e=>e.connectionStatus);return e===`open`?null:(0,F.jsx)(`span`,{className:`truncate rounded-mark bg-permission/15 px-1.5 py-0.5 text-small text-permission`,children:e===`needs_token`?`Open it with the heyterm command`:e===`connecting`?`Connecting`:`Reconnecting`})}function rp(e,t){let n=e.findIndex(e=>e.sessionName===t.name);return n===-1?e.length+(t.state===`working`?0:1):n}function ip({onClose:e}){let{connection:t}=Fe(),n=P(e=>e.setup);return(0,v.useEffect)(()=>{t.send({type:`setup_refresh`});let n=t=>t.key===`Escape`&&e();return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[t,e]),(0,F.jsx)(`div`,{className:`fixed inset-0 z-40 flex justify-end bg-scrim`,onMouseDown:e,children:(0,F.jsxs)(`aside`,{role:`dialog`,"aria-label":`Setup`,className:`enter-rise flex h-full w-full max-w-[460px] flex-col gap-1 overflow-y-auto border-l border-line bg-panel p-1`,onMouseDown:e=>e.stopPropagation(),children:[(0,F.jsxs)(`header`,{className:`flex items-center px-3 pt-2.5 pb-1.5`,children:[(0,F.jsx)(`h2`,{className:`text-body font-medium text-ink`,children:`Setup`}),(0,F.jsx)(`button`,{type:`button`,"aria-label":`Close setup`,onClick:e,className:`press ml-auto flex size-8 cursor-pointer items-center justify-center rounded-inner text-ink-muted hover:bg-raised hover:text-ink`,children:(0,F.jsx)(Ye,{})})]}),(0,F.jsx)(ap,{}),n?(0,F.jsx)(op,{setup:n}):(0,F.jsx)(`p`,{className:`px-3 text-meta text-ink-muted`,children:`Checking this computer…`})]})})}function ap(){let e=P(e=>e.layout.theme),t=P(e=>e.changeLayout);return(0,F.jsx)(dp,{title:`Appearance`,children:(0,F.jsx)(Bf,{label:`Theme`,value:e,onChange:e=>t({theme:e}),options:[{value:`light`,label:`Light`,icon:(0,F.jsx)(et,{size:14})},{value:`dark`,label:`Dark`,icon:(0,F.jsx)(tt,{size:14})},{value:`system`,label:`System`}]})})}function op({setup:e}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(dp,{title:`Coding agents`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`The agents HeyTerm can run. Install any of them; the assistant in the middle needs Claude Code.`}),(0,F.jsxs)(`span`,{children:[`Say `,(0,F.jsx)(zf,{children:`start a codex session in api`}),` to pick one by voice.`]})]}),children:[e.agents.map(t=>{let n=t.kind===`claude`&&t.version&&!e.claudeVersionIsTested,r=t.version?n?`HeyTerm was checked against ${e.testedClaudeVersion}. Run claude update.`:void 0:t.installHint;return(0,F.jsx)(fp,{ok:!!t.version&&!n,label:t.label,value:t.version??`Not installed`,fix:r},t.kind)}),(0,F.jsx)(fp,{ok:!0,label:`Node`,value:e.nodeVersion})]}),(0,F.jsx)(sp,{}),(0,F.jsx)(cp,{setup:e}),(0,F.jsx)(lp,{connected:e.existingSessionsConnected}),(0,F.jsx)(up,{keepRunning:e.keepRunningWithoutPage}),(0,F.jsx)(dp,{title:`The assistant`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`Approvals, answers and commands that name a session happen at once. Everything else goes to the assistant, which reads sessions, sends them work and runs commands.`}),(0,F.jsx)(`span`,{children:`It does what your Claude Code permission mode allows, and asks you out loud whenever Claude Code would ask.`})]}),children:(0,F.jsxs)(`p`,{className:`text-meta text-ink-muted`,children:[(0,F.jsx)(`span`,{className:`font-mono text-ink`,children:e.routerModel}),` on `,e.routerSource===`api`?`your API key`:`your Claude Code login`]})})]})}function sp(){let{announcer:e}=Fe(),t=P(e=>e.setup?.macVoiceAvailable??!1),n=P(e=>e.voicePreference),r=P(e=>e.setVoicePreference),i=De.effective({preference:n,macVoiceAvailable:t}),[a,o]=(0,v.useState)(()=>`Notification`in window?Notification.permission:`denied`);return(0,F.jsxs)(dp,{title:`Voice`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`HeyTerm reads whatever your dictation tool types into the bar at the bottom. With Wispr Flow, hold Fn and speak; macOS Dictation and typing work too.`}),(0,F.jsx)(`span`,{children:`Mac voice speaks with the voice set in System Settings, Accessibility, Spoken Content, Siri voices included. Browsers cannot use those.`}),(0,F.jsx)(`span`,{children:`Use headphones, so spoken alerts never end up in your dictation.`})]}),children:[t&&(0,F.jsx)(Bf,{label:`Speaking voice`,value:i,onChange:e=>r(e),options:[{value:`mac`,label:`Mac voice`},{value:`browser`,label:`Browser voice`}]}),(0,F.jsxs)(`div`,{className:`flex gap-1`,children:[(0,F.jsx)(pp,{onClick:()=>{e.unlock(),e.earcons.play(`finished`),e.speakNow(`HeyTerm can talk to you.`)},children:`Test sound`}),a==="default"&&(0,F.jsx)(pp,{onClick:()=>void Notification.requestPermission().then(o),children:`Allow notifications`})]})]})}function cp({setup:e}){let{connection:t}=Fe(),[n,r]=(0,v.useState)(e.projectRoots.join(`
|
|
26
|
-
`));return(0,v.useEffect)(()=>r(e.projectRoots.join(`
|
|
27
|
-
`)),[e.projectRoots]),(0,F.jsxs)(dp,{title:`Project folders`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`Folders that hold your git repositories, one per line. HeyTerm looks three levels down for projects to name by voice.`}),(0,F.jsxs)(`span`,{children:[`The assistant can still start a session in any folder you name: `,(0,F.jsx)(zf,{children:`open a session in ~/Downloads`}),`.`]})]}),children:[(0,F.jsxs)(`p`,{className:`text-meta text-ink-muted`,children:[e.projectCount,` `,e.projectCount===1?`project`:`projects`,` found`]}),(0,F.jsx)(`textarea`,{value:n,onChange:e=>r(e.target.value),rows:3,spellCheck:!1,className:`rounded-inner border border-line bg-tray px-2.5 py-2 font-mono shadow-tray text-small leading-relaxed text-ink outline-none focus:border-line-strong`}),(0,F.jsx)(`div`,{children:(0,F.jsx)(pp,{onClick:()=>t.send({type:`set_project_roots`,roots:n.split(`
|
|
28
|
-
`)}),children:`Save folders`})})]})}function lp({connected:e}){let{connection:t}=Fe();return(0,F.jsx)(dp,{title:`Your own Claude sessions`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`Claude sessions you start in your own terminals show up too. HeyTerm answers their permissions and questions and tells you when they finish, but cannot type into them.`}),(0,F.jsx)(`span`,{children:`While HeyTerm runs, its hooks sit in ~/.claude/settings.json (backed up first). They come out when it stops or when you turn this off.`})]}),children:(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-meta text-ink-muted`,children:e?`Shown`:`Hidden`}),(0,F.jsx)(`span`,{className:`ml-auto`,children:(0,F.jsx)(pp,{onClick:()=>t.send({type:`connect_existing_sessions`,connected:!e}),children:e?`Hide them`:`Show them`})})]})})}function up({keepRunning:e}){let{connection:t}=Fe();return(0,F.jsxs)(dp,{title:`Closing HeyTerm`,help:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`By default, closing the last HeyTerm page closes HeyTerm and every session in it after 15 seconds, so a reload never does. Sessions come back from Recently closed.`}),(0,F.jsx)(`span`,{children:`You can also stop it with heyterm stop in a terminal, and remove it with heyterm uninstall.`})]}),children:[(0,F.jsx)(`p`,{className:`text-meta text-ink-muted`,children:e?`Keeps running when the page closes`:`Closes with the page`}),(0,F.jsxs)(`div`,{className:`flex gap-1`,children:[(0,F.jsx)(pp,{onClick:()=>t.send({type:`set_keep_running`,keepRunning:!e}),children:e?`Close with the page`:`Keep running without the page`}),(0,F.jsx)(pp,{onClick:()=>t.send({type:`quit`}),children:`Quit HeyTerm`})]})]})}function dp({title:e,help:t,children:n}){return(0,F.jsxs)(`section`,{className:`flex flex-col gap-2.5 rounded-outer border border-line bg-raised p-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(`h3`,{className:`text-meta font-medium text-ink`,children:e}),t&&(0,F.jsx)(Rf,{title:e,children:t})]}),n]})}function fp({ok:e,label:t,value:n,fix:r}){return(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 text-meta`,children:[(0,F.jsx)(`span`,{className:`size-2 rounded-mark ${e?`bg-finished`:`bg-permission`}`}),(0,F.jsx)(`span`,{className:`text-ink`,children:t}),(0,F.jsx)(`span`,{className:`ml-auto font-mono text-small text-ink-muted`,children:n})]}),r&&(0,F.jsx)(`p`,{className:`pl-4 font-mono text-small text-permission`,children:r})]})}function pp({onClick:e,children:t}){return(0,F.jsx)(ma,{onClick:e,children:t})}var mp=2,hp=1,gp=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(mp,Math.floor(u/e.css.cell.width)),rows:Math.max(hp,Math.floor(l/e.css.cell.height))}}},_p=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,yp=(e,t,n,r)=>{for(var i=r>1?void 0:r?vp(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&_p(t,n,i),i},bp=(e,t)=>(n,r)=>t(n,r,e),xp=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Ep.isErrorNoTelemetry(e)?new Ep(e.message+`
|
|
29
|
-
|
|
30
|
-
`+e.stack):Error(e.message+`
|
|
31
|
-
|
|
32
|
-
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function Sp(e){wp(e)||xp.onUnexpectedError(e)}var Cp=`Canceled`;function wp(e){return e instanceof Tp||e instanceof Error&&e.name===Cp&&e.message===Cp}var Tp=class extends Error{constructor(){super(Cp),this.name=this.message}},Ep=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},Dp;(e=>{function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Dp||={});var Op=class e{constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>!e(n)||(t=n,!1)),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Dp.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};Op.empty=new Op(e=>{});function kp(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Ap;(e=>{function t(e){return e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function*s(e){for(let t=e.length-1;t>=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){for(let n of e)if(t(n))return n}e.find=d;function*f(e,t){for(let n of e)t(n)&&(yield n)}e.filter=f;function*p(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=p;function*m(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=m;function*h(...e){for(let t of e)yield*t}e.concat=h;function g(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=g;function*_(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=_;function v(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=v;async function y(e){let t=[];for await(let n of e)t.push(n);return Promise.resolve(t)}e.asyncToArray=y})(Ap||={});var jp=null;function Mp(e){return jp?.trackDisposable(e),e}function Np(e){jp?.markAsDisposed(e)}function Pp(e,t){jp?.setParent(e,t)}function Fp(e){if(Ap.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function Ip(...e){return Lp(()=>Fp(e))}function Lp(e){let t=Mp({dispose:kp(()=>{Np(t),e()})});return t}var Rp=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,Mp(this)}dispose(){this._isDisposed||(Np(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Fp(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return Pp(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),Pp(e,null))}};Rp.DISABLE_DISPOSED_WARNING=!1;var zp=Rp,Bp=class{constructor(){this._store=new zp,Mp(this),Pp(this._store,this)}dispose(){Np(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}};Bp.None=Object.freeze({dispose(){}});var Vp=class{constructor(){this._isDisposed=!1,Mp(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Pp(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,Np(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&Pp(e,null),e}},Hp=typeof process<`u`&&`title`in process,Up=Hp?`node`:navigator.userAgent,Wp=Hp?`node`:navigator.platform,Gp=Up.includes(`Firefox`),Kp=Up.includes(`Edge`),qp=/^((?!chrome|android).)*safari/i.test(Up);function Jp(){if(!qp)return 0;let e=Up.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}[`Macintosh`,`MacIntel`,`MacPPC`,`Mac68K`].includes(Wp),[`Windows`,`Win16`,`Win32`,`WinCE`].includes(Wp),Wp.indexOf(`Linux`),/\bCrOS\b/.test(Up);var Yp=``,Xp=0,Zp=0,Qp=0,$p=0,em={css:`#00000000`,rgba:0},tm;(e=>{function t(e,t,n,r){return r===void 0?`#${om(e)}${om(t)}${om(n)}`:`#${om(e)}${om(t)}${om(n)}${om(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(tm||={});var nm;(e=>{function t(e,t){if($p=(t.rgba&255)/255,$p===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return Xp=a+Math.round((n-a)*$p),Zp=o+Math.round((r-o)*$p),Qp=s+Math.round((i-s)*$p),{css:tm.toCss(Xp,Zp,Qp),rgba:tm.toRgba(Xp,Zp,Qp)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=am.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return tm.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[Xp,Zp,Qp]=am.toChannels(t),{css:tm.toCss(Xp,Zp,Qp),rgba:t}}e.opaque=i;function a(e,t){return $p=Math.round(t*255),[Xp,Zp,Qp]=am.toChannels(e.rgba),{css:tm.toCss(Xp,Zp,Qp,$p),rgba:tm.toRgba(Xp,Zp,Qp,$p)}}e.opacity=a;function o(e,t){return $p=e.rgba&255,a(e,$p*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(nm||={});var rm;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return Xp=parseInt(e.slice(1,2).repeat(2),16),Zp=parseInt(e.slice(2,3).repeat(2),16),Qp=parseInt(e.slice(3,4).repeat(2),16),tm.toColor(Xp,Zp,Qp);case 5:return Xp=parseInt(e.slice(1,2).repeat(2),16),Zp=parseInt(e.slice(2,3).repeat(2),16),Qp=parseInt(e.slice(3,4).repeat(2),16),$p=parseInt(e.slice(4,5).repeat(2),16),tm.toColor(Xp,Zp,Qp,$p);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return Xp=parseInt(r[1]),Zp=parseInt(r[2]),Qp=parseInt(r[3]),$p=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),tm.toColor(Xp,Zp,Qp,$p);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[Xp,Zp,Qp,$p]=t.getImageData(0,0,1,1).data,$p!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:tm.toRgba(Xp,Zp,Qp,$p),css:e}}e.toColor=r})(rm||={});var im;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(im||={});var am;(e=>{function t(e,t){if($p=(t&255)/255,$p===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return Xp=a+Math.round((n-a)*$p),Zp=o+Math.round((r-o)*$p),Qp=s+Math.round((i-s)*$p),tm.toRgba(Xp,Zp,Qp)}e.blend=t;function n(e,t,n){let a=im.relativeLuminance(e>>8),o=im.relativeLuminance(t>>8);if(sm(a,o)<n){if(o<a){let o=r(e,t,n),s=sm(a,im.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>sm(a,im.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=sm(a,im.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>sm(a,im.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=sm(im.relativeLuminance2(o,s,c),im.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=sm(im.relativeLuminance2(o,s,c),im.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=sm(im.relativeLuminance2(o,s,c),im.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil((255-o)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),c=Math.min(255,c+Math.ceil((255-c)*.1)),l=sm(im.relativeLuminance2(o,s,c),im.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(am||={});function om(e){let t=e.toString(16);return t.length<2?`0`+t:t}function sm(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function cm(e){if(!e)throw Error(`value must not be falsy`);return e}function lm(e){return 57508<=e&&e<=57558}function um(e){return 57520<=e&&e<=57527}function dm(e){return 57344<=e&&e<=63743}function fm(e){return 9472<=e&&e<=9631}function pm(e){return e>=128512&&e<=128591||e>=127744&&e<=128511||e>=128640&&e<=128767||e>=9728&&e<=9983||e>=9984&&e<=10175||e>=65024&&e<=65039||e>=129280&&e<=129535||e>=127462&&e<=127487}function mm(e,t,n,r){return t===1&&n>Math.ceil(r*1.5)&&e!==void 0&&e>255&&!pm(e)&&!lm(e)&&!dm(e)}function hm(e){return lm(e)||fm(e)}function gm(){return{css:{canvas:_m(),cell:_m()},device:{canvas:_m(),cell:_m(),char:{width:0,height:0,left:0,top:0}}}}function _m(){return{width:0,height:0}}function vm(e,t,n=0){return(e-(Math.round(t)*2-n))%(Math.round(t)*2)}var ym=0,bm=0,xm=!1,Sm=!1,Cm=!1,wm,Tm=0,Em=class{constructor(e,t,n,r,i,a){this._terminal=e,this._optionService=t,this._selectionRenderModel=n,this._decorationService=r,this._coreBrowserService=i,this._themeService=a,this.result={fg:0,bg:0,ext:0}}resolve(e,t,n,r){if(this.result.bg=e.bg,this.result.fg=e.fg,this.result.ext=e.bg&268435456?e.extended.ext:0,bm=0,ym=0,Sm=!1,xm=!1,Cm=!1,wm=this._themeService.colors,Tm=0,e.getCode()!==0&&e.extended.underlineStyle===4){let e=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));Tm=t*r%(Math.round(e)*2)}if(this._decorationService.forEachDecorationAtCell(t,n,`bottom`,e=>{e.backgroundColorRGB&&(bm=e.backgroundColorRGB.rgba>>8&16777215,Sm=!0),e.foregroundColorRGB&&(ym=e.foregroundColorRGB.rgba>>8&16777215,xm=!0)}),Cm=this._selectionRenderModel.isCellSelected(this._terminal,t,n),Cm){if(this.result.fg&67108864||this.result.bg&50331648){if(this.result.fg&67108864)switch(this.result.fg&50331648){case 16777216:case 33554432:bm=this._themeService.colors.ansi[this.result.fg&255].rgba;break;case 50331648:bm=(this.result.fg&16777215)<<8|255;break;default:bm=this._themeService.colors.foreground.rgba}else switch(this.result.bg&50331648){case 16777216:case 33554432:bm=this._themeService.colors.ansi[this.result.bg&255].rgba;break;case 50331648:bm=(this.result.bg&16777215)<<8|255}bm=am.blend(bm,(this._coreBrowserService.isFocused?wm.selectionBackgroundOpaque:wm.selectionInactiveBackgroundOpaque).rgba&4294967040|128)>>8&16777215}else bm=(this._coreBrowserService.isFocused?wm.selectionBackgroundOpaque:wm.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(Sm=!0,wm.selectionForeground&&(ym=wm.selectionForeground.rgba>>8&16777215,xm=!0),hm(e.getCode())){if(this.result.fg&67108864&&!(this.result.bg&50331648))ym=(this._coreBrowserService.isFocused?wm.selectionBackgroundOpaque:wm.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(this.result.fg&67108864)switch(this.result.bg&50331648){case 16777216:case 33554432:ym=this._themeService.colors.ansi[this.result.bg&255].rgba;break;case 50331648:ym=(this.result.bg&16777215)<<8|255}else switch(this.result.fg&50331648){case 16777216:case 33554432:ym=this._themeService.colors.ansi[this.result.fg&255].rgba;break;case 50331648:ym=(this.result.fg&16777215)<<8|255;break;default:ym=this._themeService.colors.foreground.rgba}ym=am.blend(ym,(this._coreBrowserService.isFocused?wm.selectionBackgroundOpaque:wm.selectionInactiveBackgroundOpaque).rgba&4294967040|128)>>8&16777215}xm=!0}}this._decorationService.forEachDecorationAtCell(t,n,`top`,e=>{e.backgroundColorRGB&&(bm=e.backgroundColorRGB.rgba>>8&16777215,Sm=!0),e.foregroundColorRGB&&(ym=e.foregroundColorRGB.rgba>>8&16777215,xm=!0)}),Sm&&(bm=Cm?e.bg&-150994944|bm|50331648:e.bg&-16777216|bm|50331648),xm&&(ym=e.fg&-83886080|ym|50331648),this.result.fg&67108864&&(Sm&&!xm&&(ym=this.result.bg&50331648?this.result.fg&-134217728|this.result.bg&67108863:this.result.fg&-134217728|wm.background.rgba>>8&16777215|50331648,xm=!0),!Sm&&xm&&(bm=this.result.fg&50331648?this.result.bg&-67108864|this.result.fg&67108863:this.result.bg&-67108864|wm.foreground.rgba>>8&16777215|50331648,Sm=!0)),wm=void 0,this.result.bg=Sm?bm:this.result.bg,this.result.fg=xm?ym:this.result.fg,this.result.ext&=536870911,this.result.ext|=Tm<<29&3758096384}},Dm=.5,Om=Gp||Kp?`bottom`:`ideographic`,km={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]},Am={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]},jm={"─":{1:`M0,.5 L1,.5`},"━":{3:`M0,.5 L1,.5`},"│":{1:`M.5,0 L.5,1`},"┃":{3:`M.5,0 L.5,1`},"┌":{1:`M0.5,1 L.5,.5 L1,.5`},"┏":{3:`M0.5,1 L.5,.5 L1,.5`},"┐":{1:`M0,.5 L.5,.5 L.5,1`},"┓":{3:`M0,.5 L.5,.5 L.5,1`},"└":{1:`M.5,0 L.5,.5 L1,.5`},"┗":{3:`M.5,0 L.5,.5 L1,.5`},"┘":{1:`M.5,0 L.5,.5 L0,.5`},"┛":{3:`M.5,0 L.5,.5 L0,.5`},"├":{1:`M.5,0 L.5,1 M.5,.5 L1,.5`},"┣":{3:`M.5,0 L.5,1 M.5,.5 L1,.5`},"┤":{1:`M.5,0 L.5,1 M.5,.5 L0,.5`},"┫":{3:`M.5,0 L.5,1 M.5,.5 L0,.5`},"┬":{1:`M0,.5 L1,.5 M.5,.5 L.5,1`},"┳":{3:`M0,.5 L1,.5 M.5,.5 L.5,1`},"┴":{1:`M0,.5 L1,.5 M.5,.5 L.5,0`},"┻":{3:`M0,.5 L1,.5 M.5,.5 L.5,0`},"┼":{1:`M0,.5 L1,.5 M.5,0 L.5,1`},"╋":{3:`M0,.5 L1,.5 M.5,0 L.5,1`},"╴":{1:`M.5,.5 L0,.5`},"╸":{3:`M.5,.5 L0,.5`},"╵":{1:`M.5,.5 L.5,0`},"╹":{3:`M.5,.5 L.5,0`},"╶":{1:`M.5,.5 L1,.5`},"╺":{3:`M.5,.5 L1,.5`},"╷":{1:`M.5,.5 L.5,1`},"╻":{3:`M.5,.5 L.5,1`},"═":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"║":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╒":{1:(e,t)=>`M.5,1 L.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╓":{1:(e,t)=>`M${.5-e},1 L${.5-e},.5 L1,.5 M${.5+e},.5 L${.5+e},1`},"╔":{1:(e,t)=>`M1,${.5-t} L${.5-e},${.5-t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╕":{1:(e,t)=>`M0,${.5-t} L.5,${.5-t} L.5,1 M0,${.5+t} L.5,${.5+t}`},"╖":{1:(e,t)=>`M${.5+e},1 L${.5+e},.5 L0,.5 M${.5-e},.5 L${.5-e},1`},"╗":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5+e},${.5-t} L${.5+e},1`},"╘":{1:(e,t)=>`M.5,0 L.5,${.5+t} L1,${.5+t} M.5,${.5-t} L1,${.5-t}`},"╙":{1:(e,t)=>`M1,.5 L${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╚":{1:(e,t)=>`M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0 M1,${.5+t} L${.5-e},${.5+t} L${.5-e},0`},"╛":{1:(e,t)=>`M0,${.5+t} L.5,${.5+t} L.5,0 M0,${.5-t} L.5,${.5-t}`},"╜":{1:(e,t)=>`M0,.5 L${.5+e},.5 L${.5+e},0 M${.5-e},.5 L${.5-e},0`},"╝":{1:(e,t)=>`M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M0,${.5+t} L${.5+e},${.5+t} L${.5+e},0`},"╞":{1:(e,t)=>`M.5,0 L.5,1 M.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╟":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1 M${.5+e},.5 L1,.5`},"╠":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╡":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L.5,${.5-t} M0,${.5+t} L.5,${.5+t}`},"╢":{1:(e,t)=>`M0,.5 L${.5-e},.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╣":{1:(e,t)=>`M${.5+e},0 L${.5+e},1 M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0`},"╤":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t} M.5,${.5+t} L.5,1`},"╥":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},1 M${.5+e},.5 L${.5+e},1`},"╦":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╧":{1:(e,t)=>`M.5,0 L.5,${.5-t} M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╨":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╩":{1:(e,t)=>`M0,${.5+t} L1,${.5+t} M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╪":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╫":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╬":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╱":{1:`M1,0 L0,1`},"╲":{1:`M0,0 L1,1`},"╳":{1:`M1,0 L0,1 M0,0 L1,1`},"╼":{1:`M.5,.5 L0,.5`,3:`M.5,.5 L1,.5`},"╽":{1:`M.5,.5 L.5,0`,3:`M.5,.5 L.5,1`},"╾":{1:`M.5,.5 L1,.5`,3:`M.5,.5 L0,.5`},"╿":{1:`M.5,.5 L.5,1`,3:`M.5,.5 L.5,0`},"┍":{1:`M.5,.5 L.5,1`,3:`M.5,.5 L1,.5`},"┎":{1:`M.5,.5 L1,.5`,3:`M.5,.5 L.5,1`},"┑":{1:`M.5,.5 L.5,1`,3:`M.5,.5 L0,.5`},"┒":{1:`M.5,.5 L0,.5`,3:`M.5,.5 L.5,1`},"┕":{1:`M.5,.5 L.5,0`,3:`M.5,.5 L1,.5`},"┖":{1:`M.5,.5 L1,.5`,3:`M.5,.5 L.5,0`},"┙":{1:`M.5,.5 L.5,0`,3:`M.5,.5 L0,.5`},"┚":{1:`M.5,.5 L0,.5`,3:`M.5,.5 L.5,0`},"┝":{1:`M.5,0 L.5,1`,3:`M.5,.5 L1,.5`},"┞":{1:`M0.5,1 L.5,.5 L1,.5`,3:`M.5,.5 L.5,0`},"┟":{1:`M.5,0 L.5,.5 L1,.5`,3:`M.5,.5 L.5,1`},"┠":{1:`M.5,.5 L1,.5`,3:`M.5,0 L.5,1`},"┡":{1:`M.5,.5 L.5,1`,3:`M.5,0 L.5,.5 L1,.5`},"┢":{1:`M.5,.5 L.5,0`,3:`M0.5,1 L.5,.5 L1,.5`},"┥":{1:`M.5,0 L.5,1`,3:`M.5,.5 L0,.5`},"┦":{1:`M0,.5 L.5,.5 L.5,1`,3:`M.5,.5 L.5,0`},"┧":{1:`M.5,0 L.5,.5 L0,.5`,3:`M.5,.5 L.5,1`},"┨":{1:`M.5,.5 L0,.5`,3:`M.5,0 L.5,1`},"┩":{1:`M.5,.5 L.5,1`,3:`M.5,0 L.5,.5 L0,.5`},"┪":{1:`M.5,.5 L.5,0`,3:`M0,.5 L.5,.5 L.5,1`},"┭":{1:`M0.5,1 L.5,.5 L1,.5`,3:`M.5,.5 L0,.5`},"┮":{1:`M0,.5 L.5,.5 L.5,1`,3:`M.5,.5 L1,.5`},"┯":{1:`M.5,.5 L.5,1`,3:`M0,.5 L1,.5`},"┰":{1:`M0,.5 L1,.5`,3:`M.5,.5 L.5,1`},"┱":{1:`M.5,.5 L1,.5`,3:`M0,.5 L.5,.5 L.5,1`},"┲":{1:`M.5,.5 L0,.5`,3:`M0.5,1 L.5,.5 L1,.5`},"┵":{1:`M.5,0 L.5,.5 L1,.5`,3:`M.5,.5 L0,.5`},"┶":{1:`M.5,0 L.5,.5 L0,.5`,3:`M.5,.5 L1,.5`},"┷":{1:`M.5,.5 L.5,0`,3:`M0,.5 L1,.5`},"┸":{1:`M0,.5 L1,.5`,3:`M.5,.5 L.5,0`},"┹":{1:`M.5,.5 L1,.5`,3:`M.5,0 L.5,.5 L0,.5`},"┺":{1:`M.5,.5 L0,.5`,3:`M.5,0 L.5,.5 L1,.5`},"┽":{1:`M.5,0 L.5,1 M.5,.5 L1,.5`,3:`M.5,.5 L0,.5`},"┾":{1:`M.5,0 L.5,1 M.5,.5 L0,.5`,3:`M.5,.5 L1,.5`},"┿":{1:`M.5,0 L.5,1`,3:`M0,.5 L1,.5`},"╀":{1:`M0,.5 L1,.5 M.5,.5 L.5,1`,3:`M.5,.5 L.5,0`},"╁":{1:`M.5,.5 L.5,0 M0,.5 L1,.5`,3:`M.5,.5 L.5,1`},"╂":{1:`M0,.5 L1,.5`,3:`M.5,0 L.5,1`},"╃":{1:`M0.5,1 L.5,.5 L1,.5`,3:`M.5,0 L.5,.5 L0,.5`},"╄":{1:`M0,.5 L.5,.5 L.5,1`,3:`M.5,0 L.5,.5 L1,.5`},"╅":{1:`M.5,0 L.5,.5 L1,.5`,3:`M0,.5 L.5,.5 L.5,1`},"╆":{1:`M.5,0 L.5,.5 L0,.5`,3:`M0.5,1 L.5,.5 L1,.5`},"╇":{1:`M.5,.5 L.5,1`,3:`M.5,.5 L.5,0 M0,.5 L1,.5`},"╈":{1:`M.5,.5 L.5,0`,3:`M0,.5 L1,.5 M.5,.5 L.5,1`},"╉":{1:`M.5,.5 L1,.5`,3:`M.5,0 L.5,1 M.5,.5 L0,.5`},"╊":{1:`M.5,.5 L0,.5`,3:`M.5,0 L.5,1 M.5,.5 L1,.5`},"╌":{1:`M.1,.5 L.4,.5 M.6,.5 L.9,.5`},"╍":{3:`M.1,.5 L.4,.5 M.6,.5 L.9,.5`},"┄":{1:`M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5`},"┅":{3:`M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5`},"┈":{1:`M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5`},"┉":{3:`M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5`},"╎":{1:`M.5,.1 L.5,.4 M.5,.6 L.5,.9`},"╏":{3:`M.5,.1 L.5,.4 M.5,.6 L.5,.9`},"┆":{1:`M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333`},"┇":{3:`M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333`},"┊":{1:`M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95`},"┋":{3:`M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95`},"╭":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,1,.5`},"╮":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,0,.5`},"╯":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,0,.5`},"╰":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,1,.5`}},Mm={"":{d:`M.3,1 L.03,1 L.03,.88 C.03,.82,.06,.78,.11,.73 C.15,.7,.2,.68,.28,.65 L.43,.6 C.49,.58,.53,.56,.56,.53 C.59,.5,.6,.47,.6,.43 L.6,.27 L.4,.27 L.69,.1 L.98,.27 L.78,.27 L.78,.46 C.78,.52,.76,.56,.72,.61 C.68,.66,.63,.67,.56,.7 L.48,.72 C.42,.74,.38,.76,.35,.78 C.32,.8,.31,.84,.31,.88 L.31,1 M.3,.5 L.03,.59 L.03,.09 L.3,.09 L.3,.655`,type:0},"":{d:`M.7,.4 L.7,.47 L.2,.47 L.2,.03 L.355,.03 L.355,.4 L.705,.4 M.7,.5 L.86,.5 L.86,.95 L.69,.95 L.44,.66 L.46,.86 L.46,.95 L.3,.95 L.3,.49 L.46,.49 L.71,.78 L.69,.565 L.69,.5`,type:0},"":{d:`M.25,.94 C.16,.94,.11,.92,.11,.87 L.11,.53 C.11,.48,.15,.455,.23,.45 L.23,.3 C.23,.25,.26,.22,.31,.19 C.36,.16,.43,.15,.51,.15 C.59,.15,.66,.16,.71,.19 C.77,.22,.79,.26,.79,.3 L.79,.45 C.87,.45,.91,.48,.91,.53 L.91,.87 C.91,.92,.86,.94,.77,.94 L.24,.94 M.53,.2 C.49,.2,.45,.21,.42,.23 C.39,.25,.38,.27,.38,.3 L.38,.45 L.68,.45 L.68,.3 C.68,.27,.67,.25,.64,.23 C.61,.21,.58,.2,.53,.2 M.58,.82 L.58,.66 C.63,.65,.65,.63,.65,.6 C.65,.58,.64,.57,.61,.56 C.58,.55,.56,.54,.52,.54 C.48,.54,.46,.55,.43,.56 C.4,.57,.39,.59,.39,.6 C.39,.63,.41,.64,.46,.66 L.46,.82 L.57,.82`,type:0},"":{d:`M0,0 L1,.5 L0,1`,type:0,rightPadding:2},"":{d:`M-1,-.5 L1,.5 L-1,1.5`,type:1,leftPadding:1,rightPadding:1},"":{d:`M1,0 L0,.5 L1,1`,type:0,leftPadding:2},"":{d:`M2,-.5 L0,.5 L2,1.5`,type:1,leftPadding:1,rightPadding:1},"":{d:`M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0`,type:0,rightPadding:1},"":{d:`M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0`,type:1,rightPadding:1},"":{d:`M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0`,type:0,leftPadding:1},"":{d:`M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0`,type:1,leftPadding:1},"":{d:`M-.5,-.5 L1.5,1.5 L-.5,1.5`,type:0},"":{d:`M-.5,-.5 L1.5,1.5`,type:1,leftPadding:1,rightPadding:1},"":{d:`M1.5,-.5 L-.5,1.5 L1.5,1.5`,type:0},"":{d:`M1.5,-.5 L-.5,1.5 L-.5,-.5`,type:0},"":{d:`M1.5,-.5 L-.5,1.5`,type:1,leftPadding:1,rightPadding:1},"":{d:`M-.5,-.5 L1.5,1.5 L1.5,-.5`,type:0}};Mm[``]=Mm[``],Mm[``]=Mm[``];function Nm(e,t,n,r,i,a,o,s){let c=km[t];if(c)return Pm(e,c,n,r,i,a),!0;let l=Am[t];if(l)return Im(e,l,n,r,i,a),!0;let u=jm[t];if(u)return Lm(e,u,n,r,i,a,s),!0;let d=Mm[t];return d?(Rm(e,d,n,r,i,a,o,s),!0):!1}function Pm(e,t,n,r,i,a){for(let o=0;o<t.length;o++){let s=t[o],c=i/8,l=a/8;e.fillRect(n+s.x*c,r+s.y*l,s.w*c,s.h*l)}}var Fm=new Map;function Im(e,t,n,r,i,a){let o=Fm.get(t);o||(o=new Map,Fm.set(t,o));let s=e.fillStyle;if(typeof s!=`string`)throw Error(`Unexpected fillStyle type "${s}"`);let c=o.get(s);if(!c){let n=t[0].length,r=t.length,i=e.canvas.ownerDocument.createElement(`canvas`);i.width=n,i.height=r;let a=cm(i.getContext(`2d`)),l=new ImageData(n,r),u,d,f,p;if(s.startsWith(`#`))u=parseInt(s.slice(1,3),16),d=parseInt(s.slice(3,5),16),f=parseInt(s.slice(5,7),16),p=s.length>7&&parseInt(s.slice(7,9),16)||1;else if(s.startsWith(`rgba`))[u,d,f,p]=s.substring(5,s.length-1).split(`,`).map(e=>parseFloat(e));else throw Error(`Unexpected fillStyle color format "${s}" when drawing pattern glyph`);for(let e=0;e<r;e++)for(let r=0;r<n;r++)l.data[(e*n+r)*4]=u,l.data[(e*n+r)*4+1]=d,l.data[(e*n+r)*4+2]=f,l.data[(e*n+r)*4+3]=t[e][r]*(p*255);a.putImageData(l,0,0),c=cm(e.createPattern(i,null)),o.set(s,c)}e.fillStyle=c,e.fillRect(n,r,i,a)}function Lm(e,t,n,r,i,a,o){e.strokeStyle=e.fillStyle;for(let[s,c]of Object.entries(t)){e.beginPath(),e.lineWidth=o*Number.parseInt(s);let t;t=typeof c==`function`?c(.15,.15/a*i):c;for(let s of t.split(` `)){let t=s[0],c=Bm[t];if(!c){console.error(`Could not find drawing instructions for "${t}"`);continue}let l=s.substring(1).split(`,`);!l[0]||!l[1]||c(e,Vm(l,i,a,n,r,!0,o))}e.stroke(),e.closePath()}}function Rm(e,t,n,r,i,a,o,s){let c=new Path2D;c.rect(n,r,i,a),e.clip(c),e.beginPath();let l=o/12;e.lineWidth=s*l;for(let o of t.d.split(` `)){let c=o[0],u=Bm[c];if(!u){console.error(`Could not find drawing instructions for "${c}"`);continue}let d=o.substring(1).split(`,`);!d[0]||!d[1]||u(e,Vm(d,i,a,n,r,!1,s,(t.leftPadding??0)*(l/2),(t.rightPadding??0)*(l/2)))}t.type===1?(e.strokeStyle=e.fillStyle,e.stroke()):e.fill(),e.closePath()}function zm(e,t,n=0){return Math.max(Math.min(e,t),n)}var Bm={C:(e,t)=>e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]),L:(e,t)=>e.lineTo(t[0],t[1]),M:(e,t)=>e.moveTo(t[0],t[1])};function Vm(e,t,n,r,i,a,o,s=0,c=0){let l=e.map(e=>parseFloat(e)||parseInt(e));if(l.length<2)throw Error(`Too few arguments for instruction`);for(let e=0;e<l.length;e+=2)l[e]*=t-s*o-c*o,a&&l[e]!==0&&(l[e]=zm(Math.round(l[e]+.5)-.5,t,0)),l[e]+=r+s*o;for(let e=1;e<l.length;e+=2)l[e]*=n,a&&l[e]!==0&&(l[e]=zm(Math.round(l[e]+.5)-.5,n,0)),l[e]+=i;return l}var Hm=class{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},Um=class{constructor(){this._data=new Hm}set(e,t,n,r,i){this._data.get(e,t)||this._data.set(e,t,new Hm),this._data.get(e,t).set(n,r,i)}get(e,t,n,r){return this._data.get(e,t)?.get(n,r)}clear(){this._data.clear()}},Wm=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&=(this._cancelCallback(this._idleCallback),void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||=this._requestCallback(this._process.bind(this))}_process(e){this._idleCallback=void 0;let t=0,n=0,r=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),n=Math.max(t,n),i=e.timeRemaining(),n*1.5>i){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=i}this.clear()}},Gm=class extends Wm{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},Km=class extends Wm{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},qm=!Hp&&`requestIdleCallback`in window?Km:Gm,Jm=class e{constructor(){this.fg=0,this.bg=0,this.extended=new Ym}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Ym=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Xm=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};Xm.Undefined=new Xm(void 0);var Zm=globalThis.performance&&typeof globalThis.performance.now==`function`,Qm=class e{static create(t){return new e(t)}constructor(e){this._now=Zm&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},$m;(e=>{e.None=()=>Bp.None;function t(e,t){return d(e,()=>{},0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(e,t,n){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=r;function i(e,t,n){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=i;function a(e,t,n){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=a;function o(e){return e}e.signal=o;function s(...e){return(t,n=null,r)=>u(Ip(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=s;function c(e,t,n,i){let a=n;return r(e,e=>(a=t(a,e),a),i)}e.reduce=c;function l(e,t){let n,r=new dh({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function u(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function d(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new dh({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=0,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=d;function f(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=f;function p(e,t=(e,t)=>e===t,n){let r=!0,i;return a(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=p;function m(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=m;function h(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new dh({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=h;function g(e,t){return(n,r,i)=>{let a=t(new v);return e(function(e){let t=a.evaluate(e);t!==_&&n.call(r,t)},void 0,i)}}e.chain=g;let _=Symbol(`HaltChainable`);class v{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:_),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:_}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===_)break;return e}}function y(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new dh({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=y;function b(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new dh({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=b;function x(e){return new Promise(t=>n(e)(t))}e.toPromise=x;function ee(e){let t=new dh;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event}e.fromPromise=ee;function te(e,t){return e(e=>t.fire(e))}e.forward=te;function S(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=S;class C{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new dh(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function w(e,t){return new C(e,t).emitter.event}e.fromObservable=w;function T(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof zp?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=T})($m||={});var eh=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new Qm,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};eh.all=new Set,eh._idPool=0;var th=eh,nh=-1,rh=class e{constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);let a=new oh(i,e);this._errorHandler(a)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}};rh._idPool=1;var ih=rh,ah=class e{constructor(e){this.value=e}static create(){return new e(Error().stack??``)}print(){console.warn(this.value.split(`
|
|
33
|
-
`).slice(2).join(`
|
|
34
|
-
`))}},oh=class extends Error{constructor(e,t){super(e),this.name=`ListenerLeakError`,this.stack=t}},sh=class extends Error{constructor(e,t){super(e),this.name=`ListenerRefusalError`,this.stack=t}},ch=0,lh=class{constructor(e){this.value=e,this.id=ch++}},uh=2,dh=class{constructor(e){this._size=0,this._options=e,this._leakageMon=nh>0||this._options?.leakWarningThreshold?new ih(e?.onListenerError??Sp,this._options?.leakWarningThreshold??nh):void 0,this._perfMon=this._options?._profName?new th(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new sh(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||Sp)(n),Bp.None}if(this._disposed)return Bp.None;t&&(e=e.bind(t));let r=new lh(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=ah.create(),i=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof lh?(this._deliveryQueue??=new fh,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let a=Lp(()=>{i?.(),this._removeListener(r)});return n instanceof zp?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*uh<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Sp;if(!n)e.value(t);else try{e.value(t)}catch(e){n(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners){if(this._listeners instanceof lh)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}}this._perfMon?.stop()}hasListeners(){return this._size>0}},fh=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},ph={texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},offset:{x:0,y:0},size:{x:0,y:0},sizeClipSpace:{x:0,y:0}},mh=2,hh,gh=class e{constructor(e,t,n){this._document=e,this._config=t,this._unicodeService=n,this._didWarmUp=!1,this._cacheMap=new Um,this._cacheMapCombined=new Um,this._pages=[],this._activePages=[],this._workBoundingBox={top:0,left:0,bottom:0,right:0},this._workAttributeData=new Jm,this._textureSize=512,this._onAddTextureAtlasCanvas=new dh,this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=new dh,this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._requestClearModel=!1,this._createNewPage(),this._tmpCanvas=bh(e,this._config.deviceCellWidth*4+mh*2,this._config.deviceCellHeight+mh*2),this._tmpCtx=cm(this._tmpCanvas.getContext(`2d`,{alpha:this._config.allowTransparency,willReadFrequently:!0}))}get pages(){return this._pages}dispose(){this._tmpCanvas.remove();for(let e of this.pages)e.canvas.remove();this._onAddTextureAtlasCanvas.dispose()}warmUp(){this._didWarmUp||=(this._doWarmUp(),!0)}_doWarmUp(){let e=new qm;for(let t=33;t<126;t++)e.enqueue(()=>{if(!this._cacheMap.get(t,0,0,0)){let e=this._drawToCache(t,0,0,0,!1,void 0);this._cacheMap.set(t,0,0,0,e)}})}beginFrame(){return this._requestClearModel}clearTexture(){if(this._pages[0].currentRow.x!==0||this._pages[0].currentRow.y!==0){for(let e of this._pages)e.clear();this._cacheMap.clear(),this._cacheMapCombined.clear(),this._didWarmUp=!1}}_createNewPage(){if(e.maxAtlasPages&&this._pages.length>=Math.max(4,e.maxAtlasPages)){let t=this._pages.filter(t=>t.canvas.width*2<=(e.maxTextureSize||4096)).sort((e,t)=>t.canvas.width===e.canvas.width?t.percentageUsed-e.percentageUsed:t.canvas.width-e.canvas.width),n=-1,r=0;for(let e=0;e<t.length;e++)if(t[e].canvas.width!==r)n=e,r=t[e].canvas.width;else if(e-n===3)break;let i=t.slice(n,n+4),a=i.map(e=>e.glyphs[0].texturePage).sort((e,t)=>e>t?1:-1),o=this.pages.length-i.length,s=this._mergePages(i,o);s.version++;for(let e=a.length-1;e>=0;e--)this._deletePage(a[e]);this.pages.push(s),this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(s.canvas)}let t=new _h(this._document,this._textureSize);return this._pages.push(t),this._activePages.push(t),this._onAddTextureAtlasCanvas.fire(t.canvas),t}_mergePages(e,t){let n=e[0].canvas.width*2,r=new _h(this._document,n,e);for(let[i,a]of e.entries()){let e=i*a.canvas.width%n,o=Math.floor(i/2)*a.canvas.height;r.ctx.drawImage(a.canvas,e,o);for(let r of a.glyphs)r.texturePage=t,r.sizeClipSpace.x=r.size.x/n,r.sizeClipSpace.y=r.size.y/n,r.texturePosition.x+=e,r.texturePosition.y+=o,r.texturePositionClipSpace.x=r.texturePosition.x/n,r.texturePositionClipSpace.y=r.texturePosition.y/n;this._onRemoveTextureAtlasCanvas.fire(a.canvas);let s=this._activePages.indexOf(a);s!==-1&&this._activePages.splice(s,1)}return r}_deletePage(e){this._pages.splice(e,1);for(let t=e;t<this._pages.length;t++){let e=this._pages[t];for(let t of e.glyphs)t.texturePage--;e.version++}}getRasterizedGlyphCombinedChar(e,t,n,r,i,a){return this._getFromCacheMap(this._cacheMapCombined,e,t,n,r,i,a)}getRasterizedGlyph(e,t,n,r,i,a){return this._getFromCacheMap(this._cacheMap,e,t,n,r,i,a)}_getFromCacheMap(e,t,n,r,i,a,o){return hh=e.get(t,n,r,i),hh||(hh=this._drawToCache(t,n,r,i,a,o),e.set(t,n,r,i,hh)),hh}_getColorFromAnsiIndex(e){if(e>=this._config.colors.ansi.length)throw Error(`No color found for idx `+e);return this._config.colors.ansi[e]}_getBackgroundColor(e,t,n,r){if(this._config.allowTransparency)return em;let i;switch(e){case 16777216:case 33554432:i=this._getColorFromAnsiIndex(t);break;case 50331648:let e=Jm.toColorRGB(t);i=tm.toColor(e[0],e[1],e[2]);break;default:i=n?nm.opaque(this._config.colors.foreground):this._config.colors.background}return this._config.allowTransparency||(i=nm.opaque(i)),i}_getForegroundColor(e,t,n,r,i,a,o,s,c,l){let u=this._getMinimumContrastColor(e,t,n,r,i,a,o,c,s,l);if(u)return u;let d;switch(i){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&c&&a<8&&(a+=8),d=this._getColorFromAnsiIndex(a);break;case 50331648:let e=Jm.toColorRGB(a);d=tm.toColor(e[0],e[1],e[2]);break;default:d=o?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(d=nm.opaque(d)),s&&(d=nm.multiplyOpacity(d,Dm)),d}_resolveBackgroundRgba(e,t,n){switch(e){case 16777216:case 33554432:return this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return n?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(e,t,n,r){switch(e){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&r&&t<8&&(t+=8),this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return n?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(e,t,n,r,i,a,o,s,c,l){if(this._config.minimumContrastRatio===1||l)return;let u=this._getContrastCache(c),d=u.getColor(e,r);if(d!==void 0)return d||void 0;let f=this._resolveBackgroundRgba(t,n,o),p=this._resolveForegroundRgba(i,a,o,s),m=am.ensureContrastRatio(f,p,this._config.minimumContrastRatio/(c?2:1));if(!m){u.setColor(e,r,null);return}let h=tm.toColor(m>>24&255,m>>16&255,m>>8&255);return u.setColor(e,r,h),h}_getContrastCache(e){return e?this._config.colors.halfContrastCache:this._config.colors.contrastCache}_drawToCache(t,n,r,i,a,o){let s=typeof t==`number`?String.fromCharCode(t):t;o&&this._tmpCanvas.parentElement!==o&&(this._tmpCanvas.style.display=`none`,o.append(this._tmpCanvas));let c=Math.min(this._config.deviceCellWidth*Math.max(s.length,2)+mh*2,this._config.deviceMaxTextureSize);this._tmpCanvas.width<c&&(this._tmpCanvas.width=c);let l=Math.min(this._config.deviceCellHeight+mh*4,this._textureSize);if(this._tmpCanvas.height<l&&(this._tmpCanvas.height=l),this._tmpCtx.save(),this._workAttributeData.fg=r,this._workAttributeData.bg=n,this._workAttributeData.extended.ext=i,this._workAttributeData.isInvisible())return ph;let u=!!this._workAttributeData.isBold(),d=!!this._workAttributeData.isInverse(),f=!!this._workAttributeData.isDim(),p=!!this._workAttributeData.isItalic(),m=!!this._workAttributeData.isUnderline(),h=!!this._workAttributeData.isStrikethrough(),g=!!this._workAttributeData.isOverline(),_=this._workAttributeData.getFgColor(),v=this._workAttributeData.getFgColorMode(),y=this._workAttributeData.getBgColor(),b=this._workAttributeData.getBgColorMode();if(d){let e=_;_=y,y=e;let t=v;v=b,b=t}let x=this._getBackgroundColor(b,y,d,f);this._tmpCtx.globalCompositeOperation=`copy`,this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.globalCompositeOperation=`source-over`;let ee=u?this._config.fontWeightBold:this._config.fontWeight,te=p?`italic`:``;this._tmpCtx.font=`${te} ${ee} ${this._config.fontSize*this._config.devicePixelRatio}px ${this._config.fontFamily}`,this._tmpCtx.textBaseline=Om;let S=s.length===1&&lm(s.charCodeAt(0)),C=s.length===1&&um(s.charCodeAt(0)),w=this._getForegroundColor(n,b,y,r,v,_,d,f,u,hm(s.charCodeAt(0)));this._tmpCtx.fillStyle=w.css;let T=C?0:mh*2,E=!1;this._config.customGlyphs!==!1&&(E=Nm(this._tmpCtx,s,T,T,this._config.deviceCellWidth,this._config.deviceCellHeight,this._config.fontSize,this._config.devicePixelRatio));let D=!S,ne;if(ne=typeof t==`number`?this._unicodeService.wcwidth(t):this._unicodeService.getStringCellWidth(t),m){this._tmpCtx.save();let e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/15)),t=e%2==1?.5:0;if(this._tmpCtx.lineWidth=e,this._workAttributeData.isUnderlineColorDefault())this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle;else if(this._workAttributeData.isUnderlineColorRGB())D=!1,this._tmpCtx.strokeStyle=`rgb(${Jm.toColorRGB(this._workAttributeData.getUnderlineColor()).join(`,`)})`;else{D=!1;let e=this._workAttributeData.getUnderlineColor();this._config.drawBoldTextInBrightColors&&this._workAttributeData.isBold()&&e<8&&(e+=8),this._tmpCtx.strokeStyle=this._getColorFromAnsiIndex(e).css}this._tmpCtx.beginPath();let n=T,r=Math.ceil(T+this._config.deviceCharHeight)-t-(a?e*2:0),i=r+e,o=r+e*2,c=this._workAttributeData.getUnderlineVariantOffset();for(let a=0;a<ne;a++){this._tmpCtx.save();let s=n+a*this._config.deviceCellWidth,l=n+(a+1)*this._config.deviceCellWidth,u=s+this._config.deviceCellWidth/2;switch(this._workAttributeData.extended.underlineStyle){case 2:this._tmpCtx.moveTo(s,r),this._tmpCtx.lineTo(l,r),this._tmpCtx.moveTo(s,o),this._tmpCtx.lineTo(l,o);break;case 3:let n=e<=1?o:Math.ceil(T+this._config.deviceCharHeight-e/2)-t,a=e<=1?r:Math.ceil(T+this._config.deviceCharHeight+e/2)-t,d=new Path2D;d.rect(s,r,this._config.deviceCellWidth,o-r),this._tmpCtx.clip(d),this._tmpCtx.moveTo(s-this._config.deviceCellWidth/2,i),this._tmpCtx.bezierCurveTo(s-this._config.deviceCellWidth/2,a,s,a,s,i),this._tmpCtx.bezierCurveTo(s,n,u,n,u,i),this._tmpCtx.bezierCurveTo(u,a,l,a,l,i),this._tmpCtx.bezierCurveTo(l,n,l+this._config.deviceCellWidth/2,n,l+this._config.deviceCellWidth/2,i);break;case 4:let f=c===0?0:c>=e?e*2-c:e-c;c>=e||f===0?(this._tmpCtx.setLineDash([Math.round(e),Math.round(e)]),this._tmpCtx.moveTo(s+f,r),this._tmpCtx.lineTo(l,r)):(this._tmpCtx.setLineDash([Math.round(e),Math.round(e)]),this._tmpCtx.moveTo(s,r),this._tmpCtx.lineTo(s+f,r),this._tmpCtx.moveTo(s+f+e,r),this._tmpCtx.lineTo(l,r)),c=vm(l-s,e,c);break;case 5:let p=l-s,m=Math.floor(.6*p),h=Math.floor(.3*p),g=p-m-h;this._tmpCtx.setLineDash([m,h,g]),this._tmpCtx.moveTo(s,r),this._tmpCtx.lineTo(l,r);break;default:this._tmpCtx.moveTo(s,r),this._tmpCtx.lineTo(l,r)}this._tmpCtx.stroke(),this._tmpCtx.restore()}if(this._tmpCtx.restore(),!E&&this._config.fontSize>=12&&!this._config.allowTransparency&&s!==` `){this._tmpCtx.save(),this._tmpCtx.textBaseline=`alphabetic`;let t=this._tmpCtx.measureText(s);if(this._tmpCtx.restore(),`actualBoundingBoxDescent`in t&&t.actualBoundingBoxDescent>0){this._tmpCtx.save();let t=new Path2D;t.rect(n,r-Math.ceil(e/2),this._config.deviceCellWidth*ne,o-r+Math.ceil(e/2)),this._tmpCtx.clip(t),this._tmpCtx.lineWidth=this._config.devicePixelRatio*3,this._tmpCtx.strokeStyle=x.css,this._tmpCtx.strokeText(s,T,T+this._config.deviceCharHeight),this._tmpCtx.restore()}}}if(g){let e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/15)),t=e%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(T,T+t),this._tmpCtx.lineTo(T+this._config.deviceCharWidth*ne,T+t),this._tmpCtx.stroke()}if(E||this._tmpCtx.fillText(s,T,T+this._config.deviceCharHeight),s===`_`&&!this._config.allowTransparency){let e=vh(this._tmpCtx.getImageData(T,T,this._config.deviceCellWidth,this._config.deviceCellHeight),x,w,D);if(e)for(let t=1;t<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(s,T,T+this._config.deviceCharHeight-t),e=vh(this._tmpCtx.getImageData(T,T,this._config.deviceCellWidth,this._config.deviceCellHeight),x,w,D),e);t++);}if(h){let e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),t=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(T,T+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.lineTo(T+this._config.deviceCharWidth*ne,T+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.stroke()}this._tmpCtx.restore();let O=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height),re;if(re=this._config.allowTransparency?yh(O):vh(O,x,w,D),re)return ph;let k=this._findGlyphBoundingBox(O,this._workBoundingBox,c,C,E,T),A,j;for(;;){if(this._activePages.length===0){let e=this._createNewPage();A=e,j=e.currentRow,j.height=k.size.y;break}A=this._activePages[this._activePages.length-1],j=A.currentRow;for(let e of this._activePages)k.size.y<=e.currentRow.height&&(A=e,j=e.currentRow);for(let e=this._activePages.length-1;e>=0;e--)for(let t of this._activePages[e].fixedRows)t.height<=j.height&&k.size.y<=t.height&&(A=this._activePages[e],j=t);if(k.size.x>this._textureSize){this._overflowSizePage||(this._overflowSizePage=new _h(this._document,this._config.deviceMaxTextureSize),this.pages.push(this._overflowSizePage),this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(this._overflowSizePage.canvas)),A=this._overflowSizePage,j=this._overflowSizePage.currentRow,j.x+k.size.x>=A.canvas.width&&(j.x=0,j.y+=j.height,j.height=0);break}if(j.y+k.size.y>=A.canvas.height||j.height>k.size.y+2){let t=!1;if(A.currentRow.y+A.currentRow.height+k.size.y>=A.canvas.height){let n;for(let e of this._activePages)if(e.currentRow.y+e.currentRow.height+k.size.y<e.canvas.height){n=e;break}if(n)A=n;else if(e.maxAtlasPages&&this._pages.length>=e.maxAtlasPages&&j.y+k.size.y<=A.canvas.height&&j.height>=k.size.y&&j.x+k.size.x<=A.canvas.width)t=!0;else{let e=this._createNewPage();A=e,j=e.currentRow,j.height=k.size.y,t=!0}}t||(A.currentRow.height>0&&A.fixedRows.push(A.currentRow),j={x:0,y:A.currentRow.y+A.currentRow.height,height:k.size.y},A.fixedRows.push(j),A.currentRow={x:0,y:j.y+j.height,height:0})}if(j.x+k.size.x<=A.canvas.width)break;j===A.currentRow?(j.x=0,j.y+=j.height,j.height=0):A.fixedRows.splice(A.fixedRows.indexOf(j),1)}return k.texturePage=this._pages.indexOf(A),k.texturePosition.x=j.x,k.texturePosition.y=j.y,k.texturePositionClipSpace.x=j.x/A.canvas.width,k.texturePositionClipSpace.y=j.y/A.canvas.height,k.sizeClipSpace.x/=A.canvas.width,k.sizeClipSpace.y/=A.canvas.height,j.height=Math.max(j.height,k.size.y),j.x+=k.size.x,A.ctx.putImageData(O,k.texturePosition.x-this._workBoundingBox.left,k.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,k.size.x,k.size.y),A.addGlyph(k),A.version++,k}_findGlyphBoundingBox(e,t,n,r,i,a){t.top=0;let o=r?this._config.deviceCellHeight:this._tmpCanvas.height,s=r?this._config.deviceCellWidth:n,c=!1;for(let n=0;n<o;n++){for(let r=0;r<s;r++){let i=n*this._tmpCanvas.width*4+r*4+3;if(e.data[i]!==0){t.top=n,c=!0;break}}if(c)break}t.left=0,c=!1;for(let n=0;n<a+s;n++){for(let r=0;r<o;r++){let i=r*this._tmpCanvas.width*4+n*4+3;if(e.data[i]!==0){t.left=n,c=!0;break}}if(c)break}t.right=s,c=!1;for(let n=a+s-1;n>=a;n--){for(let r=0;r<o;r++){let i=r*this._tmpCanvas.width*4+n*4+3;if(e.data[i]!==0){t.right=n,c=!0;break}}if(c)break}t.bottom=o,c=!1;for(let n=o-1;n>=0;n--){for(let r=0;r<s;r++){let i=n*this._tmpCanvas.width*4+r*4+3;if(e.data[i]!==0){t.bottom=n,c=!0;break}}if(c)break}return{texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},size:{x:t.right-t.left+1,y:t.bottom-t.top+1},sizeClipSpace:{x:t.right-t.left+1,y:t.bottom-t.top+1},offset:{x:-t.left+a+(r||i?Math.floor((this._config.deviceCellWidth-this._config.deviceCharWidth)/2):0),y:-t.top+a+(r||i?this._config.lineHeight===1?0:Math.round((this._config.deviceCellHeight-this._config.deviceCharHeight)/2):0)}}}},_h=class{constructor(e,t,n){if(this._usedPixels=0,this._glyphs=[],this.version=0,this.currentRow={x:0,y:0,height:0},this.fixedRows=[],n)for(let e of n)this._glyphs.push(...e.glyphs),this._usedPixels+=e._usedPixels;this.canvas=bh(e,t,t),this.ctx=cm(this.canvas.getContext(`2d`,{alpha:!0}))}get percentageUsed(){return this._usedPixels/(this.canvas.width*this.canvas.height)}get glyphs(){return this._glyphs}addGlyph(e){this._glyphs.push(e),this._usedPixels+=e.size.x*e.size.y}clear(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.currentRow.x=0,this.currentRow.y=0,this.currentRow.height=0,this.fixedRows.length=0,this.version++}};function vh(e,t,n,r){let i=t.rgba>>>24,a=t.rgba>>>16&255,o=t.rgba>>>8&255,s=n.rgba>>>24,c=n.rgba>>>16&255,l=n.rgba>>>8&255,u=Math.floor((Math.abs(i-s)+Math.abs(a-c)+Math.abs(o-l))/12),d=!0;for(let t=0;t<e.data.length;t+=4)e.data[t]===i&&e.data[t+1]===a&&e.data[t+2]===o||r&&Math.abs(e.data[t]-i)+Math.abs(e.data[t+1]-a)+Math.abs(e.data[t+2]-o)<u?e.data[t+3]=0:d=!1;return d}function yh(e){for(let t=0;t<e.data.length;t+=4)if(e.data[t+3]>0)return!1;return!0}function bh(e,t,n){let r=e.createElement(`canvas`);return r.width=t,r.height=n,r}function xh(e,t,n,r,i,a,o,s){let c={foreground:a.foreground,background:a.background,cursor:em,cursorAccent:em,selectionForeground:em,selectionBackgroundTransparent:em,selectionBackgroundOpaque:em,selectionInactiveBackgroundTransparent:em,selectionInactiveBackgroundOpaque:em,overviewRulerBorder:em,scrollbarSliderBackground:em,scrollbarSliderHoverBackground:em,scrollbarSliderActiveBackground:em,ansi:a.ansi.slice(),contrastCache:a.contrastCache,halfContrastCache:a.halfContrastCache};return{customGlyphs:i.customGlyphs,devicePixelRatio:o,deviceMaxTextureSize:s,letterSpacing:i.letterSpacing,lineHeight:i.lineHeight,deviceCellWidth:e,deviceCellHeight:t,deviceCharWidth:n,deviceCharHeight:r,fontFamily:i.fontFamily,fontSize:i.fontSize,fontWeight:i.fontWeight,fontWeightBold:i.fontWeightBold,allowTransparency:i.allowTransparency,drawBoldTextInBrightColors:i.drawBoldTextInBrightColors,minimumContrastRatio:i.minimumContrastRatio,colors:c}}function Sh(e,t){for(let n=0;n<e.colors.ansi.length;n++)if(e.colors.ansi[n].rgba!==t.colors.ansi[n].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.customGlyphs===t.customGlyphs&&e.lineHeight===t.lineHeight&&e.letterSpacing===t.letterSpacing&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.deviceCharWidth===t.deviceCharWidth&&e.deviceCharHeight===t.deviceCharHeight&&e.drawBoldTextInBrightColors===t.drawBoldTextInBrightColors&&e.minimumContrastRatio===t.minimumContrastRatio&&e.colors.foreground.rgba===t.colors.foreground.rgba&&e.colors.background.rgba===t.colors.background.rgba}function Ch(e){return(e&50331648)==16777216||(e&50331648)==33554432}var wh=[];function Th(e,t,n,r,i,a,o,s,c){let l=xh(r,i,a,o,t,n,s,c);for(let t=0;t<wh.length;t++){let n=wh[t],r=n.ownedBy.indexOf(e);if(r>=0){if(Sh(n.config,l))return n.atlas;n.ownedBy.length===1?(n.atlas.dispose(),wh.splice(t,1)):n.ownedBy.splice(r,1);break}}for(let t=0;t<wh.length;t++){let n=wh[t];if(Sh(n.config,l))return n.ownedBy.push(e),n.atlas}let u=e._core,d={atlas:new gh(document,l,u.unicodeService),config:l,ownedBy:[e]};return wh.push(d),d.atlas}function Eh(e){for(let t=0;t<wh.length;t++){let n=wh[t].ownedBy.indexOf(e);if(n!==-1){wh[t].ownedBy.length===1?(wh[t].atlas.dispose(),wh.splice(t,1)):wh[t].ownedBy.splice(n,1);break}}}var Dh=600,Oh=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0),this._blinkStartTimeout&&=(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),void 0),this._animationFrame&&=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0}))}_restartInterval(e=Dh){this._blinkInterval&&=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout(()=>{if(this._animationTimeRestarted){let e=Dh-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,e>0){this._restartInterval(e);return}}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0}),this._blinkInterval=this._coreBrowserService.window.setInterval(()=>{if(this._animationTimeRestarted){let e=Dh-(Date.now()-this._animationTimeRestarted);this._animationTimeRestarted=void 0,this._restartInterval(e)}else this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0})},Dh)},e)}pause(){this.isCursorVisible=!0,this._blinkInterval&&=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0),this._blinkStartTimeout&&=(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),void 0),this._animationFrame&&=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}};function kh(e,t,n){let r=new t.ResizeObserver(t=>{let i=t.find(t=>t.target===e);if(!i)return;if(!(`devicePixelContentBoxSize`in i)){r?.disconnect(),r=void 0;return}let a=i.devicePixelContentBoxSize[0].inlineSize,o=i.devicePixelContentBoxSize[0].blockSize;a>0&&o>0&&n(a,o)});try{r.observe(e,{box:[`device-pixel-content-box`]})}catch{r.disconnect(),r=void 0}return Lp(()=>r?.disconnect())}function Ah(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}var jh=class e extends Jm{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Ym,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Ah(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},Mh=new Float32Array([2,0,0,0,0,-2,0,0,0,0,1,0,-1,1,0,1]);function Nh(e,t,n){let r=cm(e.createProgram());if(e.attachShader(r,cm(Ph(e,e.VERTEX_SHADER,t))),e.attachShader(r,cm(Ph(e,e.FRAGMENT_SHADER,n))),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS))return r;console.error(e.getProgramInfoLog(r)),e.deleteProgram(r)}function Ph(e,t,n){let r=cm(e.createShader(t));if(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;console.error(e.getShaderInfoLog(r)),e.deleteShader(r)}function Fh(e,t){let n=Math.min(e.length*2,t),r=new Float32Array(n);for(let t=0;t<e.length;t++)r[t]=e[t];return r}var Ih=class{constructor(e){this.texture=e,this.version=-1}},Lh=`#version 300 es
|
|
35
|
-
layout (location = 0) in vec2 a_unitquad;
|
|
36
|
-
layout (location = 1) in vec2 a_cellpos;
|
|
37
|
-
layout (location = 2) in vec2 a_offset;
|
|
38
|
-
layout (location = 3) in vec2 a_size;
|
|
39
|
-
layout (location = 4) in float a_texpage;
|
|
40
|
-
layout (location = 5) in vec2 a_texcoord;
|
|
41
|
-
layout (location = 6) in vec2 a_texsize;
|
|
42
|
-
|
|
43
|
-
uniform mat4 u_projection;
|
|
44
|
-
uniform vec2 u_resolution;
|
|
45
|
-
|
|
46
|
-
out vec2 v_texcoord;
|
|
47
|
-
flat out int v_texpage;
|
|
48
|
-
|
|
49
|
-
void main() {
|
|
50
|
-
vec2 zeroToOne = (a_offset / u_resolution) + a_cellpos + (a_unitquad * a_size);
|
|
51
|
-
gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);
|
|
52
|
-
v_texpage = int(a_texpage);
|
|
53
|
-
v_texcoord = a_texcoord + a_unitquad * a_texsize;
|
|
54
|
-
}`;function Rh(e){let t=``;for(let n=1;n<e;n++)t+=` else if (v_texpage == ${n}) { outColor = texture(u_texture[${n}], v_texcoord); }`;return`#version 300 es
|
|
55
|
-
precision lowp float;
|
|
56
|
-
|
|
57
|
-
in vec2 v_texcoord;
|
|
58
|
-
flat in int v_texpage;
|
|
59
|
-
|
|
60
|
-
uniform sampler2D u_texture[${e}];
|
|
61
|
-
|
|
62
|
-
out vec4 outColor;
|
|
63
|
-
|
|
64
|
-
void main() {
|
|
65
|
-
if (v_texpage == 0) {
|
|
66
|
-
outColor = texture(u_texture[0], v_texcoord);
|
|
67
|
-
} ${t}
|
|
68
|
-
}`}var zh=11,Bh=zh*Float32Array.BYTES_PER_ELEMENT,Vh=2,Hh=0,Uh,Wh=0,Gh=0,Kh=class extends Bp{constructor(e,t,n,r){super(),this._terminal=e,this._gl=t,this._dimensions=n,this._optionsService=r,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array,attributesBuffers:[new Float32Array,new Float32Array]};let i=this._gl;gh.maxAtlasPages===void 0&&(gh.maxAtlasPages=Math.min(32,cm(i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS))),gh.maxTextureSize=cm(i.getParameter(i.MAX_TEXTURE_SIZE))),this._program=cm(Nh(i,Lh,Rh(gh.maxAtlasPages))),this._register(Lp(()=>i.deleteProgram(this._program))),this._projectionLocation=cm(i.getUniformLocation(this._program,`u_projection`)),this._resolutionLocation=cm(i.getUniformLocation(this._program,`u_resolution`)),this._textureLocation=cm(i.getUniformLocation(this._program,`u_texture`)),this._vertexArrayObject=i.createVertexArray(),i.bindVertexArray(this._vertexArrayObject);let a=new Float32Array([0,0,1,0,0,1,1,1]),o=i.createBuffer();this._register(Lp(()=>i.deleteBuffer(o))),i.bindBuffer(i.ARRAY_BUFFER,o),i.bufferData(i.ARRAY_BUFFER,a,i.STATIC_DRAW),i.enableVertexAttribArray(0),i.vertexAttribPointer(0,2,this._gl.FLOAT,!1,0,0);let s=new Uint8Array([0,1,2,3]),c=i.createBuffer();this._register(Lp(()=>i.deleteBuffer(c))),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,c),i.bufferData(i.ELEMENT_ARRAY_BUFFER,s,i.STATIC_DRAW),this._attributesBuffer=cm(i.createBuffer()),this._register(Lp(()=>i.deleteBuffer(this._attributesBuffer))),i.bindBuffer(i.ARRAY_BUFFER,this._attributesBuffer),i.enableVertexAttribArray(2),i.vertexAttribPointer(2,2,i.FLOAT,!1,Bh,0),i.vertexAttribDivisor(2,1),i.enableVertexAttribArray(3),i.vertexAttribPointer(3,2,i.FLOAT,!1,Bh,2*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(3,1),i.enableVertexAttribArray(4),i.vertexAttribPointer(4,1,i.FLOAT,!1,Bh,4*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(4,1),i.enableVertexAttribArray(5),i.vertexAttribPointer(5,2,i.FLOAT,!1,Bh,5*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(5,1),i.enableVertexAttribArray(6),i.vertexAttribPointer(6,2,i.FLOAT,!1,Bh,7*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(6,1),i.enableVertexAttribArray(1),i.vertexAttribPointer(1,2,i.FLOAT,!1,Bh,9*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(1,1),i.useProgram(this._program);let l=new Int32Array(gh.maxAtlasPages);for(let e=0;e<gh.maxAtlasPages;e++)l[e]=e;i.uniform1iv(this._textureLocation,l),i.uniformMatrix4fv(this._projectionLocation,!1,Mh),this._atlasTextures=[];for(let e=0;e<gh.maxAtlasPages;e++){let t=new Ih(cm(i.createTexture()));this._register(Lp(()=>i.deleteTexture(t.texture))),i.activeTexture(i.TEXTURE0+e),i.bindTexture(i.TEXTURE_2D,t.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,1,1,0,i.RGBA,i.UNSIGNED_BYTE,new Uint8Array([255,0,0,255])),this._atlasTextures[e]=t}i.enable(i.BLEND),i.blendFunc(i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA),this.handleResize()}beginFrame(){return!this._atlas||this._atlas.beginFrame()}updateCell(e,t,n,r,i,a,o,s,c){this._updateCell(this._vertices.attributes,e,t,n,r,i,a,o,s,c)}_updateCell(e,t,n,r,i,a,o,s,c,l){Hh=(n*this._terminal.cols+t)*zh,r===0||r===void 0?e.fill(0,Hh,Hh+zh-1-Vh):this._atlas&&(Uh=s&&s.length>1?this._atlas.getRasterizedGlyphCombinedChar(s,i,a,o,!1,this._terminal.element):this._atlas.getRasterizedGlyph(r,i,a,o,!1,this._terminal.element),Wh=Math.floor((this._dimensions.device.cell.width-this._dimensions.device.char.width)/2),i!==l&&Uh.offset.x>Wh?(Gh=Uh.offset.x-Wh,e[Hh]=-(Uh.offset.x-Gh)+this._dimensions.device.char.left,e[Hh+1]=-Uh.offset.y+this._dimensions.device.char.top,e[Hh+2]=(Uh.size.x-Gh)/this._dimensions.device.canvas.width,e[Hh+3]=Uh.size.y/this._dimensions.device.canvas.height,e[Hh+4]=Uh.texturePage,e[Hh+5]=Uh.texturePositionClipSpace.x+Gh/this._atlas.pages[Uh.texturePage].canvas.width,e[Hh+6]=Uh.texturePositionClipSpace.y,e[Hh+7]=Uh.sizeClipSpace.x-Gh/this._atlas.pages[Uh.texturePage].canvas.width,e[Hh+8]=Uh.sizeClipSpace.y):(e[Hh]=-Uh.offset.x+this._dimensions.device.char.left,e[Hh+1]=-Uh.offset.y+this._dimensions.device.char.top,e[Hh+2]=Uh.size.x/this._dimensions.device.canvas.width,e[Hh+3]=Uh.size.y/this._dimensions.device.canvas.height,e[Hh+4]=Uh.texturePage,e[Hh+5]=Uh.texturePositionClipSpace.x,e[Hh+6]=Uh.texturePositionClipSpace.y,e[Hh+7]=Uh.sizeClipSpace.x,e[Hh+8]=Uh.sizeClipSpace.y),this._optionsService.rawOptions.rescaleOverlappingGlyphs&&mm(r,c,Uh.size.x,this._dimensions.device.cell.width)&&(e[Hh+2]=(this._dimensions.device.cell.width-1)/this._dimensions.device.canvas.width))}clear(){let e=this._terminal,t=e.cols*e.rows*zh;this._vertices.count===t?this._vertices.attributes.fill(0):this._vertices.attributes=new Float32Array(t);let n=0;for(;n<this._vertices.attributesBuffers.length;n++)this._vertices.count===t?this._vertices.attributesBuffers[n].fill(0):this._vertices.attributesBuffers[n]=new Float32Array(t);this._vertices.count=t,n=0;for(let t=0;t<e.rows;t++)for(let r=0;r<e.cols;r++)this._vertices.attributes[n+9]=r/e.cols,this._vertices.attributes[n+10]=t/e.rows,n+=zh}handleResize(){let e=this._gl;e.useProgram(this._program),e.viewport(0,0,e.canvas.width,e.canvas.height),e.uniform2f(this._resolutionLocation,e.canvas.width,e.canvas.height),this.clear()}render(e){if(!this._atlas)return;let t=this._gl;t.useProgram(this._program),t.bindVertexArray(this._vertexArrayObject),this._activeBuffer=(this._activeBuffer+1)%2;let n=this._vertices.attributesBuffers[this._activeBuffer],r=0;for(let t=0;t<e.lineLengths.length;t++){let i=t*this._terminal.cols*zh,a=this._vertices.attributes.subarray(i,i+e.lineLengths[t]*zh);n.set(a,r),r+=a.length}t.bindBuffer(t.ARRAY_BUFFER,this._attributesBuffer),t.bufferData(t.ARRAY_BUFFER,n.subarray(0,r),t.STREAM_DRAW);for(let e=0;e<this._atlas.pages.length;e++)this._atlas.pages[e].version!==this._atlasTextures[e].version&&this._bindAtlasPageTexture(t,this._atlas,e);t.drawElementsInstanced(t.TRIANGLE_STRIP,4,t.UNSIGNED_BYTE,0,r/zh)}setAtlas(e){this._atlas=e;for(let e of this._atlasTextures)e.version=-1}_bindAtlasPageTexture(e,t,n){e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this._atlasTextures[n].texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.pages[n].canvas),e.generateMipmap(e.TEXTURE_2D),this._atlasTextures[n].version=t.pages[n].version}setDimensions(e){this._dimensions=e}},qh=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,n,r=!1){if(this.selectionStart=t,this.selectionEnd=n,!t||!n||t[0]===n[0]&&t[1]===n[1]){this.clear();return}let i=e.buffers.active.ydisp,a=t[1]-i,o=n[1]-i,s=Math.max(a,0),c=Math.min(o,e.rows-1);s>=e.rows||c<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=a,this.viewportEndRow=o,this.viewportCappedStartRow=s,this.viewportCappedEndRow=c,this.startCol=t[0],this.endCol=n[0])}isCellSelected(e,t,n){return this.hasSelection?(n-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&n>=this.viewportCappedStartRow&&t<this.endCol&&n<=this.viewportCappedEndRow:t<this.startCol&&n>=this.viewportCappedStartRow&&t>=this.endCol&&n<=this.viewportCappedEndRow:n>this.viewportStartRow&&n<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol):!1}};function Jh(){return new qh}var Yh=4,Xh=1,Zh=2,Qh=3,$h=2147483648,eg=class{constructor(){this.cells=new Uint32Array,this.lineLengths=new Uint32Array,this.selection=Jh()}resize(e,t){let n=e*t*Yh;n!==this.cells.length&&(this.cells=new Uint32Array(n),this.lineLengths=new Uint32Array(t))}clear(){this.cells.fill(0,0),this.lineLengths.fill(0,0)}},tg=`#version 300 es
|
|
69
|
-
layout (location = 0) in vec2 a_position;
|
|
70
|
-
layout (location = 1) in vec2 a_size;
|
|
71
|
-
layout (location = 2) in vec4 a_color;
|
|
72
|
-
layout (location = 3) in vec2 a_unitquad;
|
|
73
|
-
|
|
74
|
-
uniform mat4 u_projection;
|
|
75
|
-
|
|
76
|
-
out vec4 v_color;
|
|
77
|
-
|
|
78
|
-
void main() {
|
|
79
|
-
vec2 zeroToOne = a_position + (a_unitquad * a_size);
|
|
80
|
-
gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);
|
|
81
|
-
v_color = a_color;
|
|
82
|
-
}`,ng=`#version 300 es
|
|
83
|
-
precision lowp float;
|
|
84
|
-
|
|
85
|
-
in vec4 v_color;
|
|
86
|
-
|
|
87
|
-
out vec4 outColor;
|
|
88
|
-
|
|
89
|
-
void main() {
|
|
90
|
-
outColor = v_color;
|
|
91
|
-
}`,rg=8,ig=rg*Float32Array.BYTES_PER_ELEMENT,ag=20*rg,og=class{constructor(){this.attributes=new Float32Array(ag),this.count=0}},sg=0,cg=0,lg=0,ug=0,dg=0,fg=0,pg=0,mg=class extends Bp{constructor(e,t,n,r){super(),this._terminal=e,this._gl=t,this._dimensions=n,this._themeService=r,this._vertices=new og,this._verticesCursor=new og;let i=this._gl;this._program=cm(Nh(i,tg,ng)),this._register(Lp(()=>i.deleteProgram(this._program))),this._projectionLocation=cm(i.getUniformLocation(this._program,`u_projection`)),this._vertexArrayObject=i.createVertexArray(),i.bindVertexArray(this._vertexArrayObject);let a=new Float32Array([0,0,1,0,0,1,1,1]),o=i.createBuffer();this._register(Lp(()=>i.deleteBuffer(o))),i.bindBuffer(i.ARRAY_BUFFER,o),i.bufferData(i.ARRAY_BUFFER,a,i.STATIC_DRAW),i.enableVertexAttribArray(3),i.vertexAttribPointer(3,2,this._gl.FLOAT,!1,0,0);let s=new Uint8Array([0,1,2,3]),c=i.createBuffer();this._register(Lp(()=>i.deleteBuffer(c))),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,c),i.bufferData(i.ELEMENT_ARRAY_BUFFER,s,i.STATIC_DRAW),this._attributesBuffer=cm(i.createBuffer()),this._register(Lp(()=>i.deleteBuffer(this._attributesBuffer))),i.bindBuffer(i.ARRAY_BUFFER,this._attributesBuffer),i.enableVertexAttribArray(0),i.vertexAttribPointer(0,2,i.FLOAT,!1,ig,0),i.vertexAttribDivisor(0,1),i.enableVertexAttribArray(1),i.vertexAttribPointer(1,2,i.FLOAT,!1,ig,2*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(1,1),i.enableVertexAttribArray(2),i.vertexAttribPointer(2,4,i.FLOAT,!1,ig,4*Float32Array.BYTES_PER_ELEMENT),i.vertexAttribDivisor(2,1),this._updateCachedColors(r.colors),this._register(this._themeService.onChangeColors(e=>{this._updateCachedColors(e),this._updateViewportRectangle()}))}renderBackgrounds(){this._renderVertices(this._vertices)}renderCursor(){this._renderVertices(this._verticesCursor)}_renderVertices(e){let t=this._gl;t.useProgram(this._program),t.bindVertexArray(this._vertexArrayObject),t.uniformMatrix4fv(this._projectionLocation,!1,Mh),t.bindBuffer(t.ARRAY_BUFFER,this._attributesBuffer),t.bufferData(t.ARRAY_BUFFER,e.attributes,t.DYNAMIC_DRAW),t.drawElementsInstanced(this._gl.TRIANGLE_STRIP,4,t.UNSIGNED_BYTE,0,e.count)}handleResize(){this._updateViewportRectangle()}setDimensions(e){this._dimensions=e}_updateCachedColors(e){this._bgFloat=this._colorToFloat32Array(e.background),this._cursorFloat=this._colorToFloat32Array(e.cursor)}_updateViewportRectangle(){this._addRectangleFloat(this._vertices.attributes,0,0,0,this._terminal.cols*this._dimensions.device.cell.width,this._terminal.rows*this._dimensions.device.cell.height,this._bgFloat)}updateBackgrounds(e){let t=this._terminal,n=this._vertices,r=1,i,a,o,s,c,l,u,d,f,p,m;for(i=0;i<t.rows;i++){for(o=-1,s=0,c=0,l=!1,a=0;a<t.cols;a++)u=(i*t.cols+a)*Yh,d=e.cells[u+Xh],f=e.cells[u+Zh],p=!!(f&67108864),(d!==s||f!==c&&(l||p))&&((s!==0||l&&c!==0)&&(m=r++*rg,this._updateRectangle(n,m,c,s,o,a,i)),o=a,s=d,c=f,l=p);(s!==0||l&&c!==0)&&(m=r++*rg,this._updateRectangle(n,m,c,s,o,t.cols,i))}n.count=r}updateCursor(e){let t=this._verticesCursor,n=e.cursor;if(!n||n.style===`block`){t.count=0;return}let r,i=0;(n.style===`bar`||n.style===`outline`)&&(r=i++*rg,this._addRectangleFloat(t.attributes,r,n.x*this._dimensions.device.cell.width,n.y*this._dimensions.device.cell.height,n.style===`bar`?n.dpr*n.cursorWidth:n.dpr,this._dimensions.device.cell.height,this._cursorFloat)),(n.style===`underline`||n.style===`outline`)&&(r=i++*rg,this._addRectangleFloat(t.attributes,r,n.x*this._dimensions.device.cell.width,(n.y+1)*this._dimensions.device.cell.height-n.dpr,n.width*this._dimensions.device.cell.width,n.dpr,this._cursorFloat)),n.style===`outline`&&(r=i++*rg,this._addRectangleFloat(t.attributes,r,n.x*this._dimensions.device.cell.width,n.y*this._dimensions.device.cell.height,n.width*this._dimensions.device.cell.width,n.dpr,this._cursorFloat),r=i++*rg,this._addRectangleFloat(t.attributes,r,(n.x+n.width)*this._dimensions.device.cell.width-n.dpr,n.y*this._dimensions.device.cell.height,n.dpr,this._dimensions.device.cell.height,this._cursorFloat)),t.count=i}_updateRectangle(e,t,n,r,i,a,o){if(n&67108864)switch(n&50331648){case 16777216:case 33554432:sg=this._themeService.colors.ansi[n&255].rgba;break;case 50331648:sg=(n&16777215)<<8;break;default:sg=this._themeService.colors.foreground.rgba}else switch(r&50331648){case 16777216:case 33554432:sg=this._themeService.colors.ansi[r&255].rgba;break;case 50331648:sg=(r&16777215)<<8;break;default:sg=this._themeService.colors.background.rgba}e.attributes.length<t+4&&(e.attributes=Fh(e.attributes,this._terminal.rows*this._terminal.cols*rg)),cg=i*this._dimensions.device.cell.width,lg=o*this._dimensions.device.cell.height,ug=(sg>>24&255)/255,dg=(sg>>16&255)/255,fg=(sg>>8&255)/255,pg=1,this._addRectangle(e.attributes,t,cg,lg,(a-i)*this._dimensions.device.cell.width,this._dimensions.device.cell.height,ug,dg,fg,pg)}_addRectangle(e,t,n,r,i,a,o,s,c,l){e[t]=n/this._dimensions.device.canvas.width,e[t+1]=r/this._dimensions.device.canvas.height,e[t+2]=i/this._dimensions.device.canvas.width,e[t+3]=a/this._dimensions.device.canvas.height,e[t+4]=o,e[t+5]=s,e[t+6]=c,e[t+7]=l}_addRectangleFloat(e,t,n,r,i,a,o){e[t]=n/this._dimensions.device.canvas.width,e[t+1]=r/this._dimensions.device.canvas.height,e[t+2]=i/this._dimensions.device.canvas.width,e[t+3]=a/this._dimensions.device.canvas.height,e[t+4]=o[0],e[t+5]=o[1],e[t+6]=o[2],e[t+7]=o[3]}_colorToFloat32Array(e){return new Float32Array([(e.rgba>>24&255)/255,(e.rgba>>16&255)/255,(e.rgba>>8&255)/255,(e.rgba&255)/255])}},hg=class extends Bp{constructor(e,t,n,r,i,a,o,s){super(),this._container=t,this._alpha=i,this._coreBrowserService=a,this._optionsService=o,this._themeService=s,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._canvas=this._coreBrowserService.mainDocument.createElement(`canvas`),this._canvas.classList.add(`xterm-${n}-layer`),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._register(this._themeService.onChangeColors(t=>{this._refreshCharAtlas(e,t),this.reset(e)})),this._register(Lp(()=>{this._canvas.remove()}))}_initCanvas(){this._ctx=cm(this._canvas.getContext(`2d`,{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(e){}handleFocus(e){}handleCursorMove(e){}handleGridChanged(e,t,n){}handleSelectionChanged(e,t,n,r=!1){}_setTransparency(e,t){if(t===this._alpha)return;let n=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(e,this._themeService.colors),this.handleGridChanged(e,0,e.rows-1)}_refreshCharAtlas(e,t){this._deviceCharWidth<=0&&this._deviceCharHeight<=0||(this._charAtlas=Th(e,this._optionsService.rawOptions,t,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr,2048),this._charAtlas.warmUp())}resize(e,t){this._deviceCellWidth=t.device.cell.width,this._deviceCellHeight=t.device.cell.height,this._deviceCharWidth=t.device.char.width,this._deviceCharHeight=t.device.char.height,this._deviceCharLeft=t.device.char.left,this._deviceCharTop=t.device.char.top,this._canvas.width=t.device.canvas.width,this._canvas.height=t.device.canvas.height,this._canvas.style.width=`${t.css.canvas.width}px`,this._canvas.style.height=`${t.css.canvas.height}px`,this._alpha||this._clearAll(),this._refreshCharAtlas(e,this._themeService.colors)}_fillBottomLineAtCells(e,t,n=1){this._ctx.fillRect(e*this._deviceCellWidth,(t+1)*this._deviceCellHeight-this._coreBrowserService.dpr-1,n*this._deviceCellWidth,this._coreBrowserService.dpr)}_clearAll(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))}_clearCells(e,t,n,r){this._alpha?this._ctx.clearRect(e*this._deviceCellWidth,t*this._deviceCellHeight,n*this._deviceCellWidth,r*this._deviceCellHeight):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(e*this._deviceCellWidth,t*this._deviceCellHeight,n*this._deviceCellWidth,r*this._deviceCellHeight))}_fillCharTrueColor(e,t,n,r){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline=Om,this._clipCell(n,r,t.getWidth()),this._ctx.fillText(t.getChars(),n*this._deviceCellWidth+this._deviceCharLeft,r*this._deviceCellHeight+this._deviceCharTop+this._deviceCharHeight)}_clipCell(e,t,n){this._ctx.beginPath(),this._ctx.rect(e*this._deviceCellWidth,t*this._deviceCellHeight,n*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(e,t,n){let r=t?e.options.fontWeightBold:e.options.fontWeight;return`${n?`italic`:``} ${r} ${e.options.fontSize*this._coreBrowserService.dpr}px ${e.options.fontFamily}`}},gg=class extends hg{constructor(e,t,n,r,i,a,o){super(n,e,`link`,t,!0,i,a,o),this._register(r.onShowLinkUnderline(e=>this._handleShowLinkUnderline(e))),this._register(r.onHideLinkUnderline(e=>this._handleHideLinkUnderline(e)))}resize(e,t){super.resize(e,t),this._state=void 0}reset(e){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);let e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_handleShowLinkUnderline(e){if(e.fg===257?this._ctx.fillStyle=this._themeService.colors.background.css:e.fg!==void 0&&Ch(e.fg)?this._ctx.fillStyle=this._themeService.colors.ansi[e.fg].css:this._ctx.fillStyle=this._themeService.colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(let t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e}_handleHideLinkUnderline(e){this._clearCurrentLink()}},_g=typeof window==`object`?window:globalThis,vg=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new dh,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new dh,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(e){return this.mapWindowIdToZoomLevel.get(this.getWindowId(e))??0}setZoomLevel(e,t){if(this.getZoomLevel(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToZoomLevel.set(n,e),this._onDidChangeZoomLevel.fire(n)}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}setZoomFactor(e,t){this.mapWindowIdToZoomFactor.set(this.getWindowId(t),e)}setFullscreen(e,t){if(this.isFullscreen(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToFullScreen.set(n,e),this._onDidChangeFullscreen.fire(n)}isFullscreen(e){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(e))}getWindowId(e){return e.vscodeWindowId}};vg.INSTANCE=new vg;var yg=vg;function bg(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}yg.INSTANCE.onDidChangeZoomLevel,yg.INSTANCE.onDidChangeFullscreen;var xg=typeof navigator==`object`?navigator.userAgent:``;xg.indexOf(`Firefox`);var Sg=xg.indexOf(`AppleWebKit`)>=0;!(xg.indexOf(`Chrome`)>=0)&&xg.indexOf(`Safari`),xg.indexOf(`Electron/`),xg.indexOf(`Android`);var Cg=!1;if(typeof _g.matchMedia==`function`){let e=_g.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=_g.matchMedia(`(display-mode: fullscreen)`);Cg=e.matches,bg(_g,e,({matches:e})=>{Cg&&t.matches||(Cg=e)})}function wg(){return Cg}var Tg=`en`,Eg=!1,Dg=!1,Og=!1,kg=Tg,Ag,jg=globalThis,Mg;typeof jg.vscode<`u`&&typeof jg.vscode.process<`u`?Mg=jg.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(Mg=process);var Ng=typeof Mg?.versions?.electron==`string`&&Mg?.type===`renderer`;if(typeof Mg==`object`){Mg.platform,Mg.platform,Eg=Mg.platform===`linux`,Eg&&Mg.env.SNAP&&Mg.env.SNAP_REVISION,Mg.env.CI||Mg.env.BUILD_ARTIFACTSTAGINGDIRECTORY,kg=Tg;let e=Mg.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,kg=t.resolvedLanguage||Tg,t.languagePack?.translationsConfigFile}catch{}Dg=!0}else typeof navigator==`object`&&!Ng?(Ag=navigator.userAgent,Ag.indexOf(`Windows`),Ag.indexOf(`Macintosh`),(Ag.indexOf(`Macintosh`)>=0||Ag.indexOf(`iPad`)>=0||Ag.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,Eg=Ag.indexOf(`Linux`)>=0,Ag?.indexOf(`Mobi`),Og=!0,kg=globalThis._VSCODE_NLS_LANGUAGE||Tg,navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);var Pg=Dg;Og&&typeof jg.importScripts==`function`&&jg.origin;var Fg=Ag,Ig=kg,Lg;(e=>{function t(){return Ig}e.value=t;function n(){return Ig.length===2?Ig===`en`:Ig.length>=3&&Ig[0]===`e`&&Ig[1]===`n`&&Ig[2]===`-`}e.isDefaultVariant=n;function r(){return Ig===`en`}e.isDefault=r})(Lg||={});var Rg=typeof jg.postMessage==`function`&&!jg.importScripts;(()=>{if(Rg){let e=[];jg.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),jg.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();var zg=!!(Fg&&Fg.indexOf(`Chrome`)>=0);Fg&&Fg.indexOf(`Firefox`),!zg&&Fg&&Fg.indexOf(`Safari`),Fg&&Fg.indexOf(`Edg/`),Fg&&Fg.indexOf(`Android`);var Bg=typeof navigator==`object`?navigator:{};Pg||document.queryCommandSupported&&document.queryCommandSupported(`copy`)||Bg&&Bg.clipboard&&Bg.clipboard.writeText,Pg||Bg&&Bg.clipboard&&Bg.clipboard.readText,Pg||wg()||Bg.keyboard,`ontouchstart`in _g||Bg.maxTouchPoints,_g.PointerEvent&&(`ontouchstart`in _g||navigator.maxTouchPoints);var Vg=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},Hg=new Vg,Ug=new Vg,Wg=new Vg;Array(230);var Gg;(e=>{function t(e){return Hg.keyCodeToStr(e)}e.toString=t;function n(e){return Hg.strToKeyCode(e)}e.fromString=n;function r(e){return Ug.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Wg.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return Ug.strToKeyCode(e)||Wg.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Hg.keyCodeToStr(e)}e.toElectronAccelerator=o})(Gg||={});var Kg=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),qg;(e=>{function t(t){return t===e.None||t===e.Cancelled||t instanceof Jg?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:$m.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Kg})})(qg||={});var Jg=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Kg:(this._emitter||=new dh,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}};(function(){typeof globalThis.requestIdleCallback!=`function`||globalThis.cancelIdleCallback})();var Yg;(e=>{async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(typeof t<`u`)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(Yg||={});var Xg=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new dh,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await $m.toPromise(this._onStateChanged.event)}while(1)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Xg.EMPTY=Xg.fromArray([]);function Zg(e){return Qg(e,0)}function Qg(e,t){switch(typeof e){case`object`:return e===null?$g(349,t):Array.isArray(e)?n_(e,t):r_(e,t);case`string`:return t_(e,t);case`boolean`:return e_(e,t);case`number`:return $g(e,t);case`undefined`:return $g(937,t);default:return $g(617,t)}}function $g(e,t){return(t<<5)-t+e|0}function e_(e,t){return $g(e?433:863,t)}function t_(e,t){t=$g(149417,t);for(let n=0,r=e.length;n<r;n++)t=$g(e.charCodeAt(n),t);return t}function n_(e,t){return t=$g(104579,t),e.reduce((e,t)=>Qg(t,e),t)}function r_(e,t){return t=$g(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=t_(n,t),Qg(e[n],t)),t)}var{registerWindow:i_,getWindow:a_,getDocument:o_,getWindows:s_,getWindowsCount:c_,getWindowId:l_,getWindowById:u_,hasWindow:d_,onDidRegisterWindow:f_,onWillUnregisterWindow:p_,onDidUnregisterWindow:m_}=function(){let e=new Map,t={window:_g,disposables:new zp};e.set(_g.vscodeWindowId,t);let n=new dh,r=new dh,i=new dh;function a(n,r){return(typeof n==`number`?e.get(n):void 0)??(r?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(t){if(e.has(t.vscodeWindowId))return Bp.None;let a=new zp,o={window:t,disposables:a.add(new zp)};return e.set(t.vscodeWindowId,o),a.add(Lp(()=>{e.delete(t.vscodeWindowId),r.fire(t)})),a.add(g_(t,v_.BEFORE_UNLOAD,()=>{i.fire(t)})),n.fire(o),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:a,getWindow(e){let t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;let n=e;return n?.view?n.view.window:_g},getDocument(e){return a_(e).document}}}(),h_=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&=(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,null)}};function g_(e,t,n,r){return new h_(e,t,n,r)}var __=class e{constructor(e,t){this.width=e,this.height=t}with(t=this.width,n=this.height){return t!==this.width||n!==this.height?new e(t,n):this}static is(e){return typeof e==`object`&&typeof e.height==`number`&&typeof e.width==`number`}static lift(t){return t instanceof e?t:new e(t.width,t.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};__.None=new __(0,0),new class{constructor(){this.mutationObservers=new Map}observe(e,t,n){let r=this.mutationObservers.get(e);r||(r=new Map,this.mutationObservers.set(e,r));let i=Zg(n),a=r.get(i);if(a)a.users+=1;else{let o=new dh,s=new MutationObserver(e=>o.fire(e));s.observe(e,n);let c=a={users:1,observer:s,onDidMutate:o.event};t.add(Lp(()=>{--c.users,c.users===0&&(o.dispose(),s.disconnect(),r?.delete(i),r?.size===0&&this.mutationObservers.delete(e))})),r.set(i,a)}return a.onDidMutate}};var v_={CLICK:`click`,AUXCLICK:`auxclick`,DBLCLICK:`dblclick`,MOUSE_UP:`mouseup`,MOUSE_DOWN:`mousedown`,MOUSE_OVER:`mouseover`,MOUSE_MOVE:`mousemove`,MOUSE_OUT:`mouseout`,MOUSE_ENTER:`mouseenter`,MOUSE_LEAVE:`mouseleave`,MOUSE_WHEEL:`wheel`,POINTER_UP:`pointerup`,POINTER_DOWN:`pointerdown`,POINTER_MOVE:`pointermove`,POINTER_LEAVE:`pointerleave`,CONTEXT_MENU:`contextmenu`,WHEEL:`wheel`,KEY_DOWN:`keydown`,KEY_PRESS:`keypress`,KEY_UP:`keyup`,LOAD:`load`,BEFORE_UNLOAD:`beforeunload`,UNLOAD:`unload`,PAGE_SHOW:`pageshow`,PAGE_HIDE:`pagehide`,PASTE:`paste`,ABORT:`abort`,ERROR:`error`,RESIZE:`resize`,SCROLL:`scroll`,FULLSCREEN_CHANGE:`fullscreenchange`,WK_FULLSCREEN_CHANGE:`webkitfullscreenchange`,SELECT:`select`,CHANGE:`change`,SUBMIT:`submit`,RESET:`reset`,FOCUS:`focus`,FOCUS_IN:`focusin`,FOCUS_OUT:`focusout`,BLUR:`blur`,INPUT:`input`,STORAGE:`storage`,DRAG_START:`dragstart`,DRAG:`drag`,DRAG_ENTER:`dragenter`,DRAG_LEAVE:`dragleave`,DRAG_OVER:`dragover`,DROP:`drop`,DRAG_END:`dragend`,ANIMATION_START:Sg?`webkitAnimationStart`:`animationstart`,ANIMATION_END:Sg?`webkitAnimationEnd`:`animationend`,ANIMATION_ITERATION:Sg?`webkitAnimationIteration`:`animationiteration`},y_=class extends Bp{constructor(e,t,n,r,i,a,o,s,c){super(),this._terminal=e,this._characterJoinerService=t,this._charSizeService=n,this._coreBrowserService=r,this._coreService=i,this._decorationService=a,this._optionsService=o,this._themeService=s,this._cursorBlinkStateManager=new Vp,this._charAtlasDisposable=this._register(new Vp),this._observerDisposable=this._register(new Vp),this._model=new eg,this._workCell=new jh,this._workCell2=new jh,this._rectangleRenderer=this._register(new Vp),this._glyphRenderer=this._register(new Vp),this._onChangeTextureAtlas=this._register(new dh),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this._register(new dh),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this._register(new dh),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onRequestRedraw=this._register(new dh),this.onRequestRedraw=this._onRequestRedraw.event,this._onContextLoss=this._register(new dh),this.onContextLoss=this._onContextLoss.event,this._canvas=this._coreBrowserService.mainDocument.createElement(`canvas`);let l={antialias:!1,depth:!1,preserveDrawingBuffer:c};if(this._gl=this._canvas.getContext(`webgl2`,l),!this._gl)throw Error(`WebGL2 not supported `+this._gl);this._register(this._themeService.onChangeColors(()=>this._handleColorChange())),this._cellColorResolver=new Em(this._terminal,this._optionsService,this._model.selection,this._decorationService,this._coreBrowserService,this._themeService),this._core=this._terminal._core,this._renderLayers=[new gg(this._core.screenElement,2,this._terminal,this._core.linkifier,this._coreBrowserService,o,this._themeService)],this.dimensions=gm(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this._updateCursorBlink(),this._register(o.onOptionChange(()=>this._handleOptionsChanged())),this._deviceMaxTextureSize=this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE),this._register(g_(this._canvas,`webglcontextlost`,e=>{console.log(`webglcontextlost event received`),e.preventDefault(),this._contextRestorationTimeout=setTimeout(()=>{this._contextRestorationTimeout=void 0,console.warn(`webgl context not restored; firing onContextLoss`),this._onContextLoss.fire(e)},3e3)})),this._register(g_(this._canvas,`webglcontextrestored`,e=>{console.warn(`webglcontextrestored event received`),clearTimeout(this._contextRestorationTimeout),this._contextRestorationTimeout=void 0,Eh(this._terminal),this._initializeWebGLState(),this._requestRedrawViewport()})),this._observerDisposable.value=kh(this._canvas,this._coreBrowserService.window,(e,t)=>this._setCanvasDevicePixelDimensions(e,t)),this._register(this._coreBrowserService.onWindowChange(e=>{this._observerDisposable.value=kh(this._canvas,e,(e,t)=>this._setCanvasDevicePixelDimensions(e,t))})),this._core.screenElement.appendChild(this._canvas),[this._rectangleRenderer.value,this._glyphRenderer.value]=this._initializeWebGLState(),this._isAttached=this._core.screenElement.isConnected,this._register(Lp(()=>{for(let e of this._renderLayers)e.dispose();this._canvas.parentElement?.removeChild(this._canvas),Eh(this._terminal)}))}get textureAtlas(){return this._charAtlas?.pages[0].canvas}_handleColorChange(){this._refreshCharAtlas(),this._clearModel(!0)}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._terminal.cols,this._terminal.rows))}handleResize(e,t){this._updateDimensions(),this._model.resize(this._terminal.cols,this._terminal.rows);for(let e of this._renderLayers)e.resize(this._terminal,this.dimensions);this._canvas.width=this.dimensions.device.canvas.width,this._canvas.height=this.dimensions.device.canvas.height,this._canvas.style.width=`${this.dimensions.css.canvas.width}px`,this._canvas.style.height=`${this.dimensions.css.canvas.height}px`,this._core.screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._core.screenElement.style.height=`${this.dimensions.css.canvas.height}px`,this._rectangleRenderer.value?.setDimensions(this.dimensions),this._rectangleRenderer.value?.handleResize(),this._glyphRenderer.value?.setDimensions(this.dimensions),this._glyphRenderer.value?.handleResize(),this._refreshCharAtlas(),this._clearModel(!1)}handleCharSizeChanged(){this.handleResize(this._terminal.cols,this._terminal.rows)}handleBlur(){for(let e of this._renderLayers)e.handleBlur(this._terminal);this._cursorBlinkStateManager.value?.pause(),this._requestRedrawViewport()}handleFocus(){for(let e of this._renderLayers)e.handleFocus(this._terminal);this._cursorBlinkStateManager.value?.resume(),this._requestRedrawViewport()}handleSelectionChanged(e,t,n){for(let r of this._renderLayers)r.handleSelectionChanged(this._terminal,e,t,n);this._model.selection.update(this._core,e,t,n),this._requestRedrawViewport()}handleCursorMove(){for(let e of this._renderLayers)e.handleCursorMove(this._terminal);this._cursorBlinkStateManager.value?.restartBlinkAnimation()}_handleOptionsChanged(){this._updateDimensions(),this._refreshCharAtlas(),this._updateCursorBlink()}_initializeWebGLState(){return this._rectangleRenderer.value=new mg(this._terminal,this._gl,this.dimensions,this._themeService),this._glyphRenderer.value=new Kh(this._terminal,this._gl,this.dimensions,this._optionsService),this.handleCharSizeChanged(),[this._rectangleRenderer.value,this._glyphRenderer.value]}_refreshCharAtlas(){if(this.dimensions.device.char.width<=0&&this.dimensions.device.char.height<=0){this._isAttached=!1;return}let e=Th(this._terminal,this._optionsService.rawOptions,this._themeService.colors,this.dimensions.device.cell.width,this.dimensions.device.cell.height,this.dimensions.device.char.width,this.dimensions.device.char.height,this._coreBrowserService.dpr,this._deviceMaxTextureSize);this._charAtlas!==e&&(this._onChangeTextureAtlas.fire(e.pages[0].canvas),this._charAtlasDisposable.value=Ip($m.forward(e.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),$m.forward(e.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas))),this._charAtlas=e,this._charAtlas.warmUp(),this._glyphRenderer.value?.setAtlas(this._charAtlas)}_clearModel(e){this._model.clear(),e&&this._glyphRenderer.value?.clear()}clearTextureAtlas(){this._charAtlas?.clearTexture(),this._clearModel(!0),this._requestRedrawViewport()}clear(){this._clearModel(!0);for(let e of this._renderLayers)e.reset(this._terminal);this._cursorBlinkStateManager.value?.restartBlinkAnimation(),this._updateCursorBlink()}renderRows(e,t){if(!this._isAttached){if(this._core.screenElement?.isConnected&&this._charSizeService.width&&this._charSizeService.height)this._updateDimensions(),this._refreshCharAtlas(),this._isAttached=!0;else return}for(let n of this._renderLayers)n.handleGridChanged(this._terminal,e,t);!this._glyphRenderer.value||!this._rectangleRenderer.value||(this._glyphRenderer.value.beginFrame()?(this._clearModel(!0),this._updateModel(0,this._terminal.rows-1)):this._updateModel(e,t),this._rectangleRenderer.value.renderBackgrounds(),this._glyphRenderer.value.render(this._model),(!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isCursorVisible)&&this._rectangleRenderer.value.renderCursor())}_updateCursorBlink(){this._coreService.decPrivateModes.cursorBlink??this._terminal.options.cursorBlink?this._cursorBlinkStateManager.value=new Oh(()=>{this._requestRedrawCursor()},this._coreBrowserService):this._cursorBlinkStateManager.clear(),this._requestRedrawCursor()}_updateModel(e,t){let n=this._core,r=this._workCell,i,a,o,s,c,l,u=0,d=!0,f,p,m,h,g,_,v,y,b;e=x_(e,n.rows-1,0),t=x_(t,n.rows-1,0);let x=this._coreService.decPrivateModes.cursorStyle??n.options.cursorStyle??`block`,ee=this._terminal.buffer.active.baseY+this._terminal.buffer.active.cursorY,te=ee-n.buffer.ydisp,S=Math.min(this._terminal.buffer.active.cursorX,n.cols-1),C=-1,w=this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden&&(!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isCursorVisible);this._model.cursor=void 0;let T=!1;for(a=e;a<=t;a++)for(o=a+n.buffer.ydisp,s=n.buffer.lines.get(o),this._model.lineLengths[a]=0,m=ee===o,u=0,c=this._characterJoinerService.getJoinedCharacters(o),y=0;y<n.cols;y++){if(i=this._cellColorResolver.result.bg,s.loadCell(y,r),y===0&&(i=this._cellColorResolver.result.bg),l=!1,d=y>=u,f=y,c.length>0&&y===c[0][0]&&d){p=c.shift();let e=this._model.selection.isCellSelected(this._terminal,p[0],o);for(v=p[0]+1;v<p[1];v++)d&&=e===this._model.selection.isCellSelected(this._terminal,v,o);d&&=!m||S<p[0]||S>=p[1],d?(l=!0,r=new b_(r,s.translateToString(!0,p[0],p[1]),p[1]-p[0]),f=p[1]-1):u=p[1]}if(h=r.getChars(),g=r.getCode(),v=(a*n.cols+y)*Yh,this._cellColorResolver.resolve(r,y,o,this.dimensions.device.cell.width),w&&o===ee&&(y===S&&(this._model.cursor={x:S,y:te,width:r.getWidth(),style:this._coreBrowserService.isFocused?x:n.options.cursorInactiveStyle,cursorWidth:n.options.cursorWidth,dpr:this._devicePixelRatio},C=S+r.getWidth()-1),y>=S&&y<=C&&(this._coreBrowserService.isFocused&&x===`block`||this._coreBrowserService.isFocused===!1&&n.options.cursorInactiveStyle===`block`)&&(this._cellColorResolver.result.fg=50331648|this._themeService.colors.cursorAccent.rgba>>8&16777215,this._cellColorResolver.result.bg=50331648|this._themeService.colors.cursor.rgba>>8&16777215)),g!==0&&(this._model.lineLengths[a]=y+1),(this._model.cells[v]!==g||this._model.cells[v+Xh]!==this._cellColorResolver.result.bg||this._model.cells[v+Zh]!==this._cellColorResolver.result.fg||this._model.cells[v+Qh]!==this._cellColorResolver.result.ext)&&(T=!0,h.length>1&&(g|=$h),this._model.cells[v]=g,this._model.cells[v+Xh]=this._cellColorResolver.result.bg,this._model.cells[v+Zh]=this._cellColorResolver.result.fg,this._model.cells[v+Qh]=this._cellColorResolver.result.ext,_=r.getWidth(),this._glyphRenderer.value.updateCell(y,a,g,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,h,_,i),l)){for(r=this._workCell,y++;y<=f;y++)b=(a*n.cols+y)*Yh,this._glyphRenderer.value.updateCell(y,a,0,0,0,0,Yp,0,0),this._model.cells[b]=0,this._model.cells[b+Xh]=this._cellColorResolver.result.bg,this._model.cells[b+Zh]=this._cellColorResolver.result.fg,this._model.cells[b+Qh]=this._cellColorResolver.result.ext;y--}}T&&this._rectangleRenderer.value.updateBackgrounds(this._model),this._rectangleRenderer.value.updateCursor(this._model)}_updateDimensions(){!this._charSizeService.width||!this._charSizeService.height||(this.dimensions.device.char.width=Math.floor(this._charSizeService.width*this._devicePixelRatio),this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*this._devicePixelRatio),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.top=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.device.cell.height-this.dimensions.device.char.height)/2),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.char.left=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.device.canvas.height=this._terminal.rows*this.dimensions.device.cell.height,this.dimensions.device.canvas.width=this._terminal.cols*this.dimensions.device.cell.width,this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/this._devicePixelRatio),this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/this._devicePixelRatio),this.dimensions.css.cell.height=this.dimensions.device.cell.height/this._devicePixelRatio,this.dimensions.css.cell.width=this.dimensions.device.cell.width/this._devicePixelRatio)}_setCanvasDevicePixelDimensions(e,t){this._canvas.width===e&&this._canvas.height===t||(this._canvas.width=e,this._canvas.height=t,this._requestRedrawViewport())}_requestRedrawViewport(){this._onRequestRedraw.fire({start:0,end:this._terminal.rows-1})}_requestRedrawCursor(){let e=this._terminal.buffer.active.cursorY;this._onRequestRedraw.fire({start:e,end:e})}},b_=class extends Jm{constructor(e,t,n){super(),this.content=0,this.combinedData=``,this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=n}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw Error(`not implemented`)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}};function x_(e,t,n=0){return Math.max(Math.min(e,t),n)}var S_=`di$target`,C_=`di$dependencies`,w_=new Map;function T_(e){if(w_.has(e))return w_.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);E_(t,e,r)};return t._id=e,w_.set(e,t),t}function E_(e,t,n){t[S_]===t?t[C_].push({id:e,index:n}):(t[C_]=[{id:e,index:n}],t[S_]=t)}T_(`BufferService`),T_(`CoreMouseService`),T_(`CoreService`),T_(`CharsetService`),T_(`InstantiationService`),T_(`LogService`);var D_=T_(`OptionsService`);T_(`OscLinkService`),T_(`UnicodeService`),T_(`DecorationService`);var O_={trace:0,debug:1,info:2,warn:3,error:4,off:5},k_=`xterm.js: `,A_=class extends Bp{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange(`logLevel`,()=>this._updateLogLevel())),j_=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=O_[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]==`function`&&(e[t]=e[t]())}_log(e,t,n){this._evalLazyOptionalParams(n),e.call(console,(this._optionsService.options.logger?``:k_)+t,...n)}trace(e,...t){this._logLevel<=0&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=1&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=2&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=3&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=4&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};A_=yp([bp(0,D_)],A_);var j_,M_=class extends Bp{constructor(e){if(qp&&Jp()<16&&!document.createElement(`canvas`).getContext(`webgl2`,{antialias:!1,depth:!1,preserveDrawingBuffer:!0}))throw Error(`Webgl2 is only supported on Safari 16 and above`);super(),this._preserveDrawingBuffer=e,this._onChangeTextureAtlas=this._register(new dh),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this._register(new dh),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this._register(new dh),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onContextLoss=this._register(new dh),this.onContextLoss=this._onContextLoss.event}activate(e){let t=e._core;if(!e.element){this._register(t.onWillOpen(()=>this.activate(e)));return}this._terminal=e;let n=t.coreService,r=t.optionsService,i=t,a=i._renderService,o=i._characterJoinerService,s=i._charSizeService,c=i._coreBrowserService,l=i._decorationService;i._logService;let u=i._themeService;this._renderer=this._register(new y_(e,o,s,c,n,l,r,u,this._preserveDrawingBuffer)),this._register($m.forward(this._renderer.onContextLoss,this._onContextLoss)),this._register($m.forward(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this._register($m.forward(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),this._register($m.forward(this._renderer.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas)),a.setRenderer(this._renderer),this._register(Lp(()=>{if(this._terminal._core._store._isDisposed)return;let t=this._terminal._core._renderService;t.setRenderer(this._terminal._core._createRenderer()),t.handleResize(e.cols,e.rows)}))}get textureAtlas(){return this._renderer?.textureAtlas}clearTextureAtlas(){this._renderer?.clearTextureAtlas()}},N_=Object.defineProperty,P_=Object.getOwnPropertyDescriptor,F_=(e,t)=>{for(var n in t)N_(e,n,{get:t[n],enumerable:!0})},I_=(e,t,n,r)=>{for(var i=r>1?void 0:r?P_(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&N_(t,n,i),i},J=(e,t)=>(n,r)=>t(n,r,e),L_=`Terminal input`,R_={get:()=>L_,set:e=>L_=e},z_=`Too much output to announce, navigate to rows manually to read`,B_={get:()=>z_,set:e=>z_=e};function V_(e){return e.replace(/\r?\n/g,`\r`)}function H_(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function U_(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function W_(e,t,n,r){e.stopPropagation(),e.clipboardData&&G_(e.clipboardData.getData(`text/plain`),t,n,r)}function G_(e,t,n,r){e=V_(e),e=H_(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function K_(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function q_(e,t,n,r,i){K_(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function J_(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Y_(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var X_=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o)}else i!==65279&&(t[r++]=i)}return r}},Z_=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128||(c=(i&31)<<6|a&63,c<128)){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},Q_=``,$_=` `,ev=class e{constructor(){this.fg=0,this.bg=0,this.extended=new tv}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},tv=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},nv=class e extends ev{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new tv,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?J_(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},rv=`di$target`,iv=`di$dependencies`,av=new Map;function ov(e){return e[iv]||[]}function sv(e){if(av.has(e))return av.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);cv(t,e,r)};return t._id=e,av.set(e,t),t}function cv(e,t,n){t[rv]===t?t[iv].push({id:e,index:n}):(t[iv]=[{id:e,index:n}],t[rv]=t)}var lv=sv(`BufferService`),uv=sv(`CoreMouseService`),dv=sv(`CoreService`),fv=sv(`CharsetService`),pv=sv(`InstantiationService`),mv=sv(`LogService`),hv=sv(`OptionsService`),gv=sv(`OscLinkService`),_v=sv(`UnicodeService`),vv=sv(`DecorationService`),yv=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new nv,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(c!==-1||n.hasContent(t)){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId){if(c===-1){c=t,s=a.extended.urlId;continue}l=a.extended.urlId!==s}else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):bv(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};yv=I_([J(0,lv),J(1,hv),J(2,gv)],yv);function bv(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
92
|
-
|
|
93
|
-
WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var xv=sv(`CharSizeService`),Sv=sv(`CoreBrowserService`),Cv=sv(`MouseService`),wv=sv(`RenderService`),Tv=sv(`SelectionService`),Ev=sv(`CharacterJoinerService`),Dv=sv(`ThemeService`),Ov=sv(`LinkProviderService`),kv=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Fv.isErrorNoTelemetry(e)?new Fv(e.message+`
|
|
94
|
-
|
|
95
|
-
`+e.stack):Error(e.message+`
|
|
96
|
-
|
|
97
|
-
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function Av(e){Mv(e)||kv.onUnexpectedError(e)}var jv=`Canceled`;function Mv(e){return e instanceof Nv||e instanceof Error&&e.name===jv&&e.message===jv}var Nv=class extends Error{constructor(){super(jv),this.name=this.message}};function Pv(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}var Fv=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},Iv=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function Lv(e,t=0){return e[e.length-(1+t)]}var Rv;(e=>{function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Rv||={});var zv=class e{constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>!e(n)||(t=n,!1)),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Rv.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};zv.empty=new zv(e=>{});function Bv(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Vv;(e=>{function t(e){return e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function*s(e){for(let t=e.length-1;t>=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){for(let n of e)if(t(n))return n}e.find=d;function*f(e,t){for(let n of e)t(n)&&(yield n)}e.filter=f;function*p(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=p;function*m(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=m;function*h(...e){for(let t of e)yield*t}e.concat=h;function g(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=g;function*_(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=_;function v(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=v;async function y(e){let t=[];for await(let n of e)t.push(n);return Promise.resolve(t)}e.asyncToArray=y})(Vv||={});var Hv=null;function Uv(e){return Hv?.trackDisposable(e),e}function Wv(e){Hv?.markAsDisposed(e)}function Gv(e,t){Hv?.setParent(e,t)}function Kv(e){return Hv?.markAsSingleton(e),e}function qv(e){if(Vv.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function Jv(...e){return Yv(()=>qv(e))}function Yv(e){let t=Uv({dispose:Bv(()=>{Wv(t),e()})});return t}var Xv=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,Uv(this)}dispose(){this._isDisposed||(Wv(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{qv(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return Gv(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),Gv(e,null))}};Xv.DISABLE_DISPOSED_WARNING=!1;var Zv=Xv,Y=class{constructor(){this._store=new Zv,Uv(this),Gv(this._store,this)}dispose(){Wv(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}};Y.None=Object.freeze({dispose(){}});var Qv=class{constructor(){this._isDisposed=!1,Uv(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Gv(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,Wv(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&Gv(e,null),e}},$v=typeof window==`object`?window:globalThis,ey=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};ey.Undefined=new ey(void 0);var ty=ey,ny=class{constructor(){this._first=ty.Undefined,this._last=ty.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ty.Undefined}clear(){let e=this._first;for(;e!==ty.Undefined;){let t=e.next;e.prev=ty.Undefined,e.next=ty.Undefined,e=t}this._first=ty.Undefined,this._last=ty.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new ty(e);if(this._first===ty.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==ty.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ty.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ty.Undefined&&e.next!==ty.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ty.Undefined&&e.next===ty.Undefined?(this._first=ty.Undefined,this._last=ty.Undefined):e.next===ty.Undefined?(this._last=this._last.prev,this._last.next=ty.Undefined):e.prev===ty.Undefined&&(this._first=this._first.next,this._first.prev=ty.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==ty.Undefined;)yield e.element,e=e.next}},ry=globalThis.performance&&typeof globalThis.performance.now==`function`,iy=class e{static create(t){return new e(t)}constructor(e){this._now=ry&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},ay;(e=>{e.None=()=>Y.None;function t(e,t){return d(e,()=>{},0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(e,t,n){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=r;function i(e,t,n){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=i;function a(e,t,n){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=a;function o(e){return e}e.signal=o;function s(...e){return(t,n=null,r)=>u(Jv(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=s;function c(e,t,n,i){let a=n;return r(e,e=>(a=t(a,e),a),i)}e.reduce=c;function l(e,t){let n,r=new X({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function u(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function d(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new X({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=0,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=d;function f(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=f;function p(e,t=(e,t)=>e===t,n){let r=!0,i;return a(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=p;function m(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=m;function h(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new X({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=h;function g(e,t){return(n,r,i)=>{let a=t(new v);return e(function(e){let t=a.evaluate(e);t!==_&&n.call(r,t)},void 0,i)}}e.chain=g;let _=Symbol(`HaltChainable`);class v{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:_),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:_}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===_)break;return e}}function y(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new X({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=y;function b(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new X({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=b;function x(e){return new Promise(t=>n(e)(t))}e.toPromise=x;function ee(e){let t=new X;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event}e.fromPromise=ee;function te(e,t){return e(e=>t.fire(e))}e.forward=te;function S(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=S;class C{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new X(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function w(e,t){return new C(e,t).emitter.event}e.fromObservable=w;function T(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof Zv?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=T})(ay||={});var oy=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new iy,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};oy.all=new Set,oy._idPool=0;var sy=oy,cy=-1,ly=class e{constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);let a=new fy(i,e);this._errorHandler(a)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}};ly._idPool=1;var uy=ly,dy=class e{constructor(e){this.value=e}static create(){return new e(Error().stack??``)}print(){console.warn(this.value.split(`
|
|
98
|
-
`).slice(2).join(`
|
|
99
|
-
`))}},fy=class extends Error{constructor(e,t){super(e),this.name=`ListenerLeakError`,this.stack=t}},py=class extends Error{constructor(e,t){super(e),this.name=`ListenerRefusalError`,this.stack=t}},my=0,hy=class{constructor(e){this.value=e,this.id=my++}},gy=2,X=class{constructor(e){this._size=0,this._options=e,this._leakageMon=cy>0||this._options?.leakWarningThreshold?new uy(e?.onListenerError??Av,this._options?.leakWarningThreshold??cy):void 0,this._perfMon=this._options?._profName?new sy(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new py(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||Av)(n),Y.None}if(this._disposed)return Y.None;t&&(e=e.bind(t));let r=new hy(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=dy.create(),i=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof hy?(this._deliveryQueue??=new _y,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let a=Yv(()=>{i?.(),this._removeListener(r)});return n instanceof Zv?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*gy<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Av;if(!n)e.value(t);else try{e.value(t)}catch(e){n(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners){if(this._listeners instanceof hy)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}}this._perfMon?.stop()}hasListeners(){return this._size>0}},_y=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},vy=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new X,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new X,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(e){return this.mapWindowIdToZoomLevel.get(this.getWindowId(e))??0}setZoomLevel(e,t){if(this.getZoomLevel(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToZoomLevel.set(n,e),this._onDidChangeZoomLevel.fire(n)}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}setZoomFactor(e,t){this.mapWindowIdToZoomFactor.set(this.getWindowId(t),e)}setFullscreen(e,t){if(this.isFullscreen(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToFullScreen.set(n,e),this._onDidChangeFullscreen.fire(n)}isFullscreen(e){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(e))}getWindowId(e){return e.vscodeWindowId}};vy.INSTANCE=new vy;var yy=vy;function by(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}yy.INSTANCE.onDidChangeZoomLevel;function xy(e){return yy.INSTANCE.getZoomFactor(e)}yy.INSTANCE.onDidChangeFullscreen;var Sy=typeof navigator==`object`?navigator.userAgent:``,Cy=Sy.indexOf(`Firefox`)>=0,wy=Sy.indexOf(`AppleWebKit`)>=0,Ty=Sy.indexOf(`Chrome`)>=0,Ey=!Ty&&Sy.indexOf(`Safari`)>=0;Sy.indexOf(`Electron/`),Sy.indexOf(`Android`);var Dy=!1;if(typeof $v.matchMedia==`function`){let e=$v.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=$v.matchMedia(`(display-mode: fullscreen)`);Dy=e.matches,by($v,e,({matches:e})=>{Dy&&t.matches||(Dy=e)})}function Oy(){return Dy}var ky=`en`,Ay=!1,jy=!1,My=!1,Ny=!1,Py=!1,Fy=ky,Iy,Ly=globalThis,Ry;typeof Ly.vscode<`u`&&typeof Ly.vscode.process<`u`?Ry=Ly.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(Ry=process);var zy=typeof Ry?.versions?.electron==`string`&&Ry?.type===`renderer`;if(typeof Ry==`object`){Ay=Ry.platform===`win32`,jy=Ry.platform===`darwin`,My=Ry.platform===`linux`,My&&Ry.env.SNAP&&Ry.env.SNAP_REVISION,Ry.env.CI||Ry.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Fy=ky;let e=Ry.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,Fy=t.resolvedLanguage||ky,t.languagePack?.translationsConfigFile}catch{}Ny=!0}else typeof navigator==`object`&&!zy?(Iy=navigator.userAgent,Ay=Iy.indexOf(`Windows`)>=0,jy=Iy.indexOf(`Macintosh`)>=0,(Iy.indexOf(`Macintosh`)>=0||Iy.indexOf(`iPad`)>=0||Iy.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,My=Iy.indexOf(`Linux`)>=0,Iy?.indexOf(`Mobi`),Py=!0,Fy=globalThis._VSCODE_NLS_LANGUAGE||ky,navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);var By=Ay,Vy=jy,Hy=My,Uy=Ny;Py&&typeof Ly.importScripts==`function`&&Ly.origin;var Wy=Iy,Gy=Fy,Ky;(e=>{function t(){return Gy}e.value=t;function n(){return Gy.length===2?Gy===`en`:Gy.length>=3&&Gy[0]===`e`&&Gy[1]===`n`&&Gy[2]===`-`}e.isDefaultVariant=n;function r(){return Gy===`en`}e.isDefault=r})(Ky||={});var qy=typeof Ly.postMessage==`function`&&!Ly.importScripts;(()=>{if(qy){let e=[];Ly.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),Ly.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();var Jy=!!(Wy&&Wy.indexOf(`Chrome`)>=0);Wy&&Wy.indexOf(`Firefox`),!Jy&&Wy&&Wy.indexOf(`Safari`),Wy&&Wy.indexOf(`Edg/`),Wy&&Wy.indexOf(`Android`);var Yy=typeof navigator==`object`?navigator:{};Uy||document.queryCommandSupported&&document.queryCommandSupported(`copy`)||Yy&&Yy.clipboard&&Yy.clipboard.writeText,Uy||Yy&&Yy.clipboard&&Yy.clipboard.readText,Uy||Oy()||Yy.keyboard,`ontouchstart`in $v||Yy.maxTouchPoints,$v.PointerEvent&&(`ontouchstart`in $v||navigator.maxTouchPoints);var Xy=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},Zy=new Xy,Qy=new Xy,$y=new Xy,eb=Array(230),tb;(e=>{function t(e){return Zy.keyCodeToStr(e)}e.toString=t;function n(e){return Zy.strToKeyCode(e)}e.fromString=n;function r(e){return Qy.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return $y.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return Qy.strToKeyCode(e)||$y.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Zy.keyCodeToStr(e)}e.toElectronAccelerator=o})(tb||={});var nb=class e{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){return`K${this.ctrlKey?`1`:`0`}${this.shiftKey?`1`:`0`}${this.altKey?`1`:`0`}${this.metaKey?`1`:`0`}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new rb([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},rb=class{constructor(e){if(e.length===0)throw Pv(`chords`);this.chords=e}getHashCode(){let e=``;for(let t=0,n=this.chords.length;t<n;t++)t!==0&&(e+=`;`),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function ib(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return tb.fromString(t)}let t=e.keyCode;if(t===3)return 7;if(Cy)switch(t){case 59:return 85;case 60:if(Hy)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Vy)return 57}else if(wy&&(Vy&&t===93||!Vy&&t===92))return 57;return eb[t]||0}var ab=Vy?256:2048,ob=512,sb=1024,cb=Vy?2048:256,lb=class{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.(`AltGraph`),this.keyCode=ib(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=ab),this.altKey&&(t|=ob),this.shiftKey&&(t|=sb),this.metaKey&&(t|=cb),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new nb(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},ub=new WeakMap;function db(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if(t.origin!==`null`&&n.origin!==`null`&&t.origin!==n.origin)return null}catch{return null}return e.parent}var fb=class{static getSameOriginWindowChain(e){let t=ub.get(e);if(!t){t=[],ub.set(e,t);let n=e,r;do r=db(n),r?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=r;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0,i=this.getSameOriginWindowChain(e);for(let e of i){let i=e.window.deref();if(n+=i?.scrollY??0,r+=i?.scrollX??0,i===t||!e.iframeElement)break;let a=e.iframeElement.getBoundingClientRect();n+=a.top,r+=a.left}return{top:n,left:r}}},pb=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type===`dblclick`&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX==`number`?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let n=fb.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},mb=class{constructor(e,t=0,n=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let r=!1;if(Ty){let e=navigator.userAgent.match(/Chrome\/(\d+)/);r=(e?parseInt(e[1]):123)<=122}if(e){let t=e,n=e,i=e.view?.devicePixelRatio||1;if(typeof t.wheelDeltaY<`u`)this.deltaY=r?t.wheelDeltaY/(120*i):t.wheelDeltaY/120;else if(typeof n.VERTICAL_AXIS<`u`&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if(e.type===`wheel`){let t=e;this.deltaY=t.deltaMode===t.DOM_DELTA_LINE?Cy&&!Vy?-e.deltaY/3:-e.deltaY:-e.deltaY/40}if(typeof t.wheelDeltaX<`u`)this.deltaX=Ey&&By?-(t.wheelDeltaX/120):r?t.wheelDeltaX/(120*i):t.wheelDeltaX/120;else if(typeof n.HORIZONTAL_AXIS<`u`&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type===`wheel`){let t=e;this.deltaX=t.deltaMode===t.DOM_DELTA_LINE?Cy&&!Vy?-e.deltaX/3:-e.deltaX:-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=r?e.wheelDelta/(120*i):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},hb=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),gb;(e=>{function t(t){return t===e.None||t===e.Cancelled||t instanceof _b?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ay.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hb})})(gb||={});var _b=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?hb:(this._emitter||=new X,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},vb=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new Iv(`Calling 'cancelAndSet' on a disposed TimeoutTimer`);this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Iv(`Calling 'setIfNotSet' on a disposed TimeoutTimer`);this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},yb=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new Iv(`Calling 'cancelAndSet' on a disposed IntervalTimer`);this.cancel();let r=n.setInterval(()=>{e()},t);this.disposable=Yv(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}};(function(){typeof globalThis.requestIdleCallback!=`function`||globalThis.cancelIdleCallback})();var bb;(e=>{async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(typeof t<`u`)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(bb||={});var xb=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new X,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await ay.toPromise(this._onStateChanged.event)}while(1)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};xb.EMPTY=xb.fromArray([]);function Sb(e){return Cb(e,0)}function Cb(e,t){switch(typeof e){case`object`:return e===null?wb(349,t):Array.isArray(e)?Db(e,t):Ob(e,t);case`string`:return Eb(e,t);case`boolean`:return Tb(e,t);case`number`:return wb(e,t);case`undefined`:return wb(937,t);default:return wb(617,t)}}function wb(e,t){return(t<<5)-t+e|0}function Tb(e,t){return wb(e?433:863,t)}function Eb(e,t){t=wb(149417,t);for(let n=0,r=e.length;n<r;n++)t=wb(e.charCodeAt(n),t);return t}function Db(e,t){return t=wb(104579,t),e.reduce((e,t)=>Cb(t,e),t)}function Ob(e,t){return t=wb(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=Eb(n,t),Cb(e[n],t)),t)}var{registerWindow:kb,getWindow:Ab,getDocument:jb,getWindows:Mb,getWindowsCount:Nb,getWindowId:Pb,getWindowById:Fb,hasWindow:Ib,onDidRegisterWindow:Lb,onWillUnregisterWindow:Rb,onDidUnregisterWindow:zb}=function(){let e=new Map,t={window:$v,disposables:new Zv};e.set($v.vscodeWindowId,t);let n=new X,r=new X,i=new X;function a(n,r){return(typeof n==`number`?e.get(n):void 0)??(r?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(t){if(e.has(t.vscodeWindowId))return Y.None;let a=new Zv,o={window:t,disposables:a.add(new Zv)};return e.set(t.vscodeWindowId,o),a.add(Yv(()=>{e.delete(t.vscodeWindowId),r.fire(t)})),a.add(Z(t,Yb.BEFORE_UNLOAD,()=>{i.fire(t)})),n.fire(o),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:a,getWindow(e){let t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;let n=e;return n?.view?n.view.window:$v},getDocument(e){return Ab(e).document}}}(),Bb=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&=(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,null)}};function Z(e,t,n,r){return new Bb(e,t,n,r)}function Vb(e,t){return function(n){return t(new pb(e,n))}}function Hb(e){return function(t){return e(new lb(t))}}var Ub=function(e,t,n,r){let i=n;return t===`click`||t===`mousedown`||t===`contextmenu`?i=Vb(Ab(e),n):(t===`keydown`||t===`keypress`||t===`keyup`)&&(i=Hb(n)),Z(e,t,i,r)},Wb,Gb=class extends yb{constructor(e){super(),this.defaultTarget=e&&Ab(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}},Kb=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Av(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,n=new Map,r=new Map,i=i=>{n.set(i,!1);let a=e.get(i)??[];for(t.set(i,a),e.set(i,[]),r.set(i,!0);a.length>0;)a.sort(Kb.sort),a.shift().execute();r.set(i,!1)};Wb=(t,r,a=0)=>{let o=Pb(t),s=new Kb(r,a),c=e.get(o);return c||(c=[],e.set(o,c)),c.push(s),n.get(o)||(n.set(o,!0),t.requestAnimationFrame(()=>i(o))),s}})();var qb=class e{constructor(e,t){this.width=e,this.height=t}with(t=this.width,n=this.height){return t!==this.width||n!==this.height?new e(t,n):this}static is(e){return typeof e==`object`&&typeof e.height==`number`&&typeof e.width==`number`}static lift(t){return t instanceof e?t:new e(t.width,t.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};qb.None=new qb(0,0);function Jb(e){let t=e.getBoundingClientRect(),n=Ab(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}new class{constructor(){this.mutationObservers=new Map}observe(e,t,n){let r=this.mutationObservers.get(e);r||(r=new Map,this.mutationObservers.set(e,r));let i=Sb(n),a=r.get(i);if(a)a.users+=1;else{let o=new X,s=new MutationObserver(e=>o.fire(e));s.observe(e,n);let c=a={users:1,observer:s,onDidMutate:o.event};t.add(Yv(()=>{--c.users,c.users===0&&(o.dispose(),s.disconnect(),r?.delete(i),r?.size===0&&this.mutationObservers.delete(e))})),r.set(i,a)}return a.onDidMutate}};var Yb={CLICK:`click`,AUXCLICK:`auxclick`,DBLCLICK:`dblclick`,MOUSE_UP:`mouseup`,MOUSE_DOWN:`mousedown`,MOUSE_OVER:`mouseover`,MOUSE_MOVE:`mousemove`,MOUSE_OUT:`mouseout`,MOUSE_ENTER:`mouseenter`,MOUSE_LEAVE:`mouseleave`,MOUSE_WHEEL:`wheel`,POINTER_UP:`pointerup`,POINTER_DOWN:`pointerdown`,POINTER_MOVE:`pointermove`,POINTER_LEAVE:`pointerleave`,CONTEXT_MENU:`contextmenu`,WHEEL:`wheel`,KEY_DOWN:`keydown`,KEY_PRESS:`keypress`,KEY_UP:`keyup`,LOAD:`load`,BEFORE_UNLOAD:`beforeunload`,UNLOAD:`unload`,PAGE_SHOW:`pageshow`,PAGE_HIDE:`pagehide`,PASTE:`paste`,ABORT:`abort`,ERROR:`error`,RESIZE:`resize`,SCROLL:`scroll`,FULLSCREEN_CHANGE:`fullscreenchange`,WK_FULLSCREEN_CHANGE:`webkitfullscreenchange`,SELECT:`select`,CHANGE:`change`,SUBMIT:`submit`,RESET:`reset`,FOCUS:`focus`,FOCUS_IN:`focusin`,FOCUS_OUT:`focusout`,BLUR:`blur`,INPUT:`input`,STORAGE:`storage`,DRAG_START:`dragstart`,DRAG:`drag`,DRAG_ENTER:`dragenter`,DRAG_LEAVE:`dragleave`,DRAG_OVER:`dragover`,DROP:`drop`,DRAG_END:`dragend`,ANIMATION_START:wy?`webkitAnimationStart`:`animationstart`,ANIMATION_END:wy?`webkitAnimationEnd`:`animationend`,ANIMATION_ITERATION:wy?`webkitAnimationIteration`:`animationiteration`},Xb=class{constructor(e){this.domNode=e,this._maxWidth=``,this._width=``,this._height=``,this._top=``,this._left=``,this._bottom=``,this._right=``,this._paddingTop=``,this._paddingLeft=``,this._paddingBottom=``,this._paddingRight=``,this._fontFamily=``,this._fontWeight=``,this._fontSize=``,this._fontStyle=``,this._fontFeatureSettings=``,this._fontVariationSettings=``,this._textDecoration=``,this._lineHeight=``,this._letterSpacing=``,this._className=``,this._display=``,this._position=``,this._visibility=``,this._color=``,this._backgroundColor=``,this._layerHint=!1,this._contain=`none`,this._boxShadow=``}setMaxWidth(e){let t=Zb(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=Zb(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=Zb(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=Zb(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=Zb(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=Zb(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=Zb(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=Zb(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=Zb(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=Zb(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=Zb(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=Zb(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=Zb(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=Zb(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?`translate3d(0px, 0px, 0px)`:``)}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function Zb(e){return typeof e==`number`?`${e}px`:e}function Qb(e){return new Xb(e)}var $b=class{constructor(){this._hooks=new Zv,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,r,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=i;let a=e;try{e.setPointerCapture(t),this._hooks.add(Yv(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{a=Ab(e)}this._hooks.add(Z(a,Yb.POINTER_MOVE,e=>{e.buttons===n?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)})),this._hooks.add(Z(a,Yb.POINTER_UP,e=>this.stopMonitoring(!0)))}};function ex(e,t,n){let r=null,i=null;if(typeof n.value==`function`?(r=`value`,i=n.value,i.length!==0&&console.warn(`Memoize should only be used in functions with zero parameters`)):typeof n.get==`function`&&(r=`get`,i=n.get),!i)throw Error(`not supported`);let a=`$memoize$${t}`;n[r]=function(...e){return this.hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[a]}}var tx;(e=>(e.Tap=`-xterm-gesturetap`,e.Change=`-xterm-gesturechange`,e.Start=`-xterm-gesturestart`,e.End=`-xterm-gesturesend`,e.Contextmenu=`-xterm-gesturecontextmenu`))(tx||={});var nx=class e extends Y{constructor(){super(),this.dispatched=!1,this.targets=new ny,this.ignoreTargets=new ny,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(ay.runAndSubscribe(Lb,({window:e,disposables:t})=>{t.add(Z(e.document,`touchstart`,e=>this.onTouchStart(e),{passive:!1})),t.add(Z(e.document,`touchend`,t=>this.onTouchEnd(e,t))),t.add(Z(e.document,`touchmove`,e=>this.onTouchMove(e),{passive:!1}))},{window:$v,disposables:this._store}))}static addTarget(t){return e.isTouchDevice()?(e.INSTANCE||=Kv(new e),Yv(e.INSTANCE.targets.push(t))):Y.None}static ignoreTarget(t){return e.isTouchDevice()?(e.INSTANCE||=Kv(new e),Yv(e.INSTANCE.ignoreTargets.push(t))):Y.None}static isTouchDevice(){return`ontouchstart`in $v||navigator.maxTouchPoints>0}dispose(){this.handle&&=(this.handle.dispose(),null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&=(this.handle.dispose(),null);for(let n=0,r=e.targetTouches.length;n<r;n++){let r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};let i=this.newGestureEvent(tx.Start,r.target);i.pageX=r.pageX,i.pageY=r.pageY,this.dispatchEvent(i)}this.dispatched&&=(e.preventDefault(),e.stopPropagation(),!1)}onTouchEnd(t,n){let r=Date.now(),i=Object.keys(this.activeTouches).length;for(let a=0,o=n.changedTouches.length;a<o;a++){let o=n.changedTouches.item(a);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn(`move of an UNKNOWN touch`,o);continue}let s=this.activeTouches[o.identifier],c=Date.now()-s.initialTimeStamp;if(c<e.HOLD_DELAY&&Math.abs(s.initialPageX-Lv(s.rollingPageX))<30&&Math.abs(s.initialPageY-Lv(s.rollingPageY))<30){let e=this.newGestureEvent(tx.Tap,s.initialTarget);e.pageX=Lv(s.rollingPageX),e.pageY=Lv(s.rollingPageY),this.dispatchEvent(e)}else if(c>=e.HOLD_DELAY&&Math.abs(s.initialPageX-Lv(s.rollingPageX))<30&&Math.abs(s.initialPageY-Lv(s.rollingPageY))<30){let e=this.newGestureEvent(tx.Contextmenu,s.initialTarget);e.pageX=Lv(s.rollingPageX),e.pageY=Lv(s.rollingPageY),this.dispatchEvent(e)}else if(i===1){let e=Lv(s.rollingPageX),n=Lv(s.rollingPageY),i=Lv(s.rollingTimestamps)-s.rollingTimestamps[0],a=e-s.rollingPageX[0],o=n-s.rollingPageY[0],c=[...this.targets].filter(e=>s.initialTarget instanceof Node&&e.contains(s.initialTarget));this.inertia(t,c,r,Math.abs(a)/i,a>0?1:-1,e,Math.abs(o)/i,o>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(tx.End,s.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&=(n.preventDefault(),n.stopPropagation(),!1)}newGestureEvent(e,t){let n=document.createEvent(`CustomEvent`);return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}dispatchEvent(t){if(t.type===tx.Tap){let n=new Date().getTime(),r=0;r=n-this._lastSetTapCountTime>e.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=n,t.tapCount=r}else(t.type===tx.Change||t.type===tx.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let e of this.ignoreTargets)if(e.contains(t.initialTarget))return;let e=[];for(let n of this.targets)if(n.contains(t.initialTarget)){let r=0,i=t.initialTarget;for(;i&&i!==n;)r++,i=i.parentElement;e.push([r,n])}e.sort((e,t)=>e[0]-t[0]);for(let[n,r]of e)r.dispatchEvent(t),this.dispatched=!0}}inertia(t,n,r,i,a,o,s,c,l){this.handle=Wb(t,()=>{let u=Date.now(),d=u-r,f=0,p=0,m=!0;i+=e.SCROLL_FRICTION*d,s+=e.SCROLL_FRICTION*d,i>0&&(m=!1,f=a*i*d),s>0&&(m=!1,p=c*s*d);let h=this.newGestureEvent(tx.Change);h.translationX=f,h.translationY=p,n.forEach(e=>e.dispatchEvent(h)),m||this.inertia(t,n,u,i,a,o+f,s,c,l+p)})}onTouchMove(e){let t=Date.now();for(let n=0,r=e.changedTouches.length;n<r;n++){let r=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(r.identifier))){console.warn(`end of an UNKNOWN touch`,r);continue}let i=this.activeTouches[r.identifier],a=this.newGestureEvent(tx.Change,i.initialTarget);a.translationX=r.pageX-Lv(i.rollingPageX),a.translationY=r.pageY-Lv(i.rollingPageY),a.pageX=r.pageX,a.pageY=r.pageY,this.dispatchEvent(a),i.rollingPageX.length>3&&(i.rollingPageX.shift(),i.rollingPageY.shift(),i.rollingTimestamps.shift()),i.rollingPageX.push(r.pageX),i.rollingPageY.push(r.pageY),i.rollingTimestamps.push(t)}this.dispatched&&=(e.preventDefault(),e.stopPropagation(),!1)}};nx.SCROLL_FRICTION=-.005,nx.HOLD_DELAY=700,nx.CLEAR_TAP_COUNT_TIME=400,I_([ex],nx,`isTouchDevice`,1);var rx=nx,ix=class extends Y{onclick(e,t){this._register(Z(e,Yb.CLICK,n=>t(new pb(Ab(e),n))))}onmousedown(e,t){this._register(Z(e,Yb.MOUSE_DOWN,n=>t(new pb(Ab(e),n))))}onmouseover(e,t){this._register(Z(e,Yb.MOUSE_OVER,n=>t(new pb(Ab(e),n))))}onmouseleave(e,t){this._register(Z(e,Yb.MOUSE_LEAVE,n=>t(new pb(Ab(e),n))))}onkeydown(e,t){this._register(Z(e,Yb.KEY_DOWN,e=>t(new lb(e))))}onkeyup(e,t){this._register(Z(e,Yb.KEY_UP,e=>t(new lb(e))))}oninput(e,t){this._register(Z(e,Yb.INPUT,t))}onblur(e,t){this._register(Z(e,Yb.BLUR,t))}onfocus(e,t){this._register(Z(e,Yb.FOCUS,t))}onchange(e,t){this._register(Z(e,Yb.CHANGE,t))}ignoreGesture(e){return rx.ignoreTarget(e)}},ax=11,ox=class extends ix{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement(`div`),this.bgDomNode.className=`arrow-background`,this.bgDomNode.style.position=`absolute`,this.bgDomNode.style.width=e.bgWidth+`px`,this.bgDomNode.style.height=e.bgHeight+`px`,typeof e.top<`u`&&(this.bgDomNode.style.top=`0px`),typeof e.left<`u`&&(this.bgDomNode.style.left=`0px`),typeof e.bottom<`u`&&(this.bgDomNode.style.bottom=`0px`),typeof e.right<`u`&&(this.bgDomNode.style.right=`0px`),this.domNode=document.createElement(`div`),this.domNode.className=e.className,this.domNode.style.position=`absolute`,this.domNode.style.width=ax+`px`,this.domNode.style.height=ax+`px`,typeof e.top<`u`&&(this.domNode.style.top=e.top+`px`),typeof e.left<`u`&&(this.domNode.style.left=e.left+`px`),typeof e.bottom<`u`&&(this.domNode.style.bottom=e.bottom+`px`),typeof e.right<`u`&&(this.domNode.style.right=e.right+`px`),this._pointerMoveMonitor=this._register(new $b),this._register(Ub(this.bgDomNode,Yb.POINTER_DOWN,e=>this._arrowPointerDown(e))),this._register(Ub(this.domNode,Yb.POINTER_DOWN,e=>this._arrowPointerDown(e))),this._pointerdownRepeatTimer=this._register(new Gb),this._pointerdownScheduleRepeatTimer=this._register(new vb)}_arrowPointerDown(e){e.target&&e.target instanceof Element&&(this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Ab(e))},200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault())}},sx=class e{constructor(e,t,n,r,i,a,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,n|=0,r|=0,i|=0,a|=0,o|=0),this.rawScrollLeft=r,this.rawScrollTop=o,t<0&&(t=0),r+t>n&&(r=n-t),r<0&&(r=0),i<0&&(i=0),o+i>a&&(o=a-i),o<0&&(o=0),this.width=t,this.scrollWidth=n,this.scrollLeft=r,this.height=i,this.scrollHeight=a,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(t,n){return new e(this._forceIntegerValues,typeof t.width<`u`?t.width:this.width,typeof t.scrollWidth<`u`?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,typeof t.height<`u`?t.height:this.height,typeof t.scrollHeight<`u`?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new e(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<`u`?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<`u`?t.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){let n=this.width!==e.width,r=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,a=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:r,scrollLeftChanged:i,heightChanged:a,scrollHeightChanged:o,scrollTopChanged:s}}},cx=class extends Y{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new X),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new sx(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&=(this._smoothScrolling.dispose(),null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){let n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&=(this._smoothScrolling.dispose(),null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>`u`?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>`u`?this._smoothScrolling.to.scrollTop:e.scrollTop};let n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let r;r=t?new fx(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{let t=this._state.withScrollPosition(e);this._smoothScrolling=fx.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}},lx=class{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}};function ux(e,t){let n=t-e;return function(t){return e+n*mx(t)}}function dx(e,t,n){return function(r){return r<n?e(r/n):t((r-n)/(1-n))}}var fx=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.duration=r,this.startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,n){if(Math.abs(e-t)>2.5*n){let r,i;return e<t?(r=e+.75*n,i=t-.75*n):(r=e-.75*n,i=t+.75*n),dx(ux(e,r),ux(i,t),.33)}return ux(e,t)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){let t=(e-this.startTime)/this.duration;return t<1?new lx(this.scrollLeft(t),this.scrollTop(t),!1):new lx(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,n,r){return e.start(t,n,r)}static start(t,n,r){r+=10;let i=Date.now()-10;return new e(t,n,i,r)}};function px(e){return e**3}function mx(e){return 1-px(1-e)}var hx=class extends Y{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new vb)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3||this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?` fade`:``)))}},gx=140,_x=class extends ix{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new hx(e.visibility,`visible scrollbar `+e.extraScrollbarClassName,`invisible scrollbar `+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new $b),this._shouldRender=!0,this.domNode=Qb(document.createElement(`div`)),this.domNode.setAttribute(`role`,`presentation`),this.domNode.setAttribute(`aria-hidden`,`true`),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition(`absolute`),this._register(Z(this.domNode.domNode,Yb.POINTER_DOWN,e=>this._domNodePointerDown(e)))}_createArrow(e){let t=this._register(new ox(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,r){this.slider=Qb(document.createElement(`div`)),this.slider.setClassName(`slider`),this.slider.setPosition(`absolute`),this.slider.setTop(e),this.slider.setLeft(t),typeof n==`number`&&this.slider.setWidth(n),typeof r==`number`&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain(`strict`),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Z(this.slider.domNode,Yb.POINTER_DOWN,e=>{e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))})),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);n<=i&&i<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,n;if(e.target===this.domNode.domNode&&typeof e.offsetX==`number`&&typeof e.offsetY==`number`)t=e.offsetX,n=e.offsetY;else{let r=Jb(this.domNode.domNode);t=e.pageX-r.left,n=e.pageY-r.top}let r=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),n=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName(`active`,!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{let i=this._sliderOrthogonalPointerPosition(e),a=Math.abs(i-n);if(By&&a>gx){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(o))},()=>{this.slider.toggleClassName(`active`,!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},vx=class e{constructor(e,t,n,r,i,a){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=r,this._scrollSize=i,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,n,r,i){let a=Math.max(0,n-e),o=Math.max(0,a-2*t),s=r>0&&r>n;if(!s)return{computedAvailableSize:Math.round(a),computedIsNeeded:s,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(n*o/r))),l=(o-c)/(r-n),u=i*l;return{computedAvailableSize:Math.round(a),computedIsNeeded:s,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){let t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize,n=this._scrollPosition;return t<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;let t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}},yx=class extends _x{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new vx(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,r.width,r.scrollWidth,i.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:`horizontal`,scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw Error(`horizontalHasArrows is not supported in xterm.js`);this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},bx=class extends _x{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new vx(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,r.height,r.scrollHeight,i.scrollTop),visibility:t.vertical,extraScrollbarClassName:`vertical`,scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw Error(`horizontalHasArrows is not supported in xterm.js`);this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},xx=500,Sx=50,Cx=!0,wx=class{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}},Tx=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let e=1,t=0,n=1,r=this._rear;do{let i=r===this._front?e:2**-n;if(e-=i,t+=this._memory[r].score*i,r===this._front)break;r=(this._capacity+r-1)%this._capacity,n++}while(1);return t<=.5}acceptStandardWheelEvent(e){if(Ty){let t=xy(Ab(e.browserEvent));this.accept(Date.now(),e.deltaX*t,e.deltaY*t)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,n){let r=null,i=new wx(e,t,n);this._front===-1&&this._rear===-1?(this._memory[0]=i,this._front=0,this._rear=0):(r=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i),i.score=this._computeScore(i,r)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let n=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(n+=.25),t){let r=Math.abs(e.deltaX),i=Math.abs(e.deltaY),a=Math.abs(t.deltaX),o=Math.abs(t.deltaY),s=Math.max(Math.min(r,a),1),c=Math.max(Math.min(i,o),1),l=Math.max(r,a),u=Math.max(i,o);l%s===0&&u%c===0&&(n-=.5)}return Math.min(Math.max(n,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}};Tx.INSTANCE=new Tx;var Ex=Tx,Dx=class extends ix{constructor(e,t,n){super(),this._onScroll=this._register(new X),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new X),this.onWillScroll=this._onWillScroll.event,this._options=kx(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let r={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new bx(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new yx(this._scrollable,this._options,r)),this._domNode=document.createElement(`div`),this._domNode.className=`xterm-scrollable-element `+this._options.className,this._domNode.setAttribute(`role`,`presentation`),this._domNode.style.position=`relative`,this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Qb(document.createElement(`div`)),this._leftShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Qb(document.createElement(`div`)),this._topShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Qb(document.createElement(`div`)),this._topLeftShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onmouseleave(this._listenOnDomNode,e=>this._onMouseLeave(e)),this._hideTimeout=this._register(new vb),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=qv(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,Vy&&(this._options.className+=` mac`),this._domNode.className=`xterm-scrollable-element `+this._options.className}updateOptions(e){typeof e.handleMouseWheel<`u`&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<`u`&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<`u`&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<`u`&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<`u`&&(this._options.horizontal=e.horizontal),typeof e.vertical<`u`&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<`u`&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<`u`&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<`u`&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new mb(e))}_setListeningToMouseWheel(e){this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=qv(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(Z(this._listenOnDomNode,Yb.MOUSE_WHEEL,e=>{this._onMouseWheel(new mb(e))},{passive:!1}))}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=Ex.INSTANCE;Cx&&t.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let r=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&i+r===0?i=r=0:Math.abs(r)>=Math.abs(i)?i=0:r=0),this._options.flipAxes&&([r,i]=[i,r]);let a=!Vy&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!i&&(i=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);let o=this._scrollable.getFutureScrollPosition(),s={};if(r){let e=Sx*r,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(s,t)}if(i){let e=Sx*i,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(s,t)}s=this._scrollable.validateScrollPosition(s),(o.scrollLeft!==s.scrollLeft||o.scrollTop!==s.scrollTop)&&(Cx&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),n=!0)}let r=n;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,r=n?` left`:``,i=t?` top`:``,a=n||t?` top-left-corner`:``;this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${a}${i}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),xx)}},Ox=class extends Dx{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function kx(e){let t={lazyRender:typeof e.lazyRender<`u`&&e.lazyRender,className:typeof e.className<`u`?e.className:``,useShadows:typeof e.useShadows<`u`?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<`u`?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<`u`&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<`u`&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<`u`&&e.alwaysConsumeMouseWheel,scrollYToX:typeof e.scrollYToX<`u`&&e.scrollYToX,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<`u`?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<`u`?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<`u`?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<`u`?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<`u`?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<`u`?e.listenOnDomNode:null,horizontal:typeof e.horizontal<`u`?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<`u`?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<`u`&&e.horizontalHasArrows,vertical:typeof e.vertical<`u`?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<`u`?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<`u`&&e.verticalHasArrows,verticalSliderSize:typeof e.verticalSliderSize<`u`?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<`u`&&e.scrollByPage};return t.horizontalSliderSize=typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<`u`?e.verticalSliderSize:t.verticalScrollbarSize,Vy&&(t.className+=` mac`),t}var Ax=class extends Y{constructor(e,t,n,r,i,a,o,s){super(),this._bufferService=n,this._optionsService=o,this._renderService=s,this._onRequestScrollLines=this._register(new X),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let c=this._register(new cx({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:e=>Wb(r.window,e)}));this._register(this._optionsService.onSpecificOptionChange(`smoothScrollDuration`,()=>{c.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new Ox(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},c)),this._register(this._optionsService.onMultipleOptionChange([`scrollSensitivity`,`fastScrollSensitivity`,`overviewRuler`],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(e=>{this._scrollableElement.updateOptions({handleMouseWheel:!(e&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(ay.runAndSubscribe(a.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=a.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Yv(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=r.mainDocument.createElement(`style`),t.appendChild(this._styleElement),this._register(Yv(()=>this._styleElement.remove())),this._register(ay.runAndSubscribe(a.onChangeColors,()=>{this._styleElement.textContent=[`.xterm .xterm-scrollable-element > .scrollbar > .slider {`,` background: ${a.colors.scrollbarSliderBackground.css};`,`}`,`.xterm .xterm-scrollable-element > .scrollbar > .slider:hover {`,` background: ${a.colors.scrollbarSliderHoverBackground.css};`,`}`,`.xterm .xterm-scrollable-element > .scrollbar > .slider.active {`,` background: ${a.colors.scrollbarSliderActiveBackground.css};`,`}`].join(`
|
|
100
|
-
`)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(e=>this._handleScroll(e)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:this._optionsService.rawOptions.overviewRuler?.width||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),n=t-this._bufferService.buffer.ydisp;n!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(n)),this._isHandlingScroll=!1}};Ax=I_([J(2,lv),J(3,Sv),J(4,uv),J(5,Dv),J(6,hv),J(7,wv)],Ax);var jx=class extends Y{constructor(e,t,n,r,i){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=n,this._decorationService=r,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement(`div`),this._container.classList.add(`xterm-decoration-container`),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e))),this._register(Yv(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){let t=this._coreBrowserService.mainDocument.createElement(`div`);t.classList.add(`xterm-decoration`),t.classList.toggle(`xterm-decoration-top-layer`,e?.options?.layer===`top`),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let n=e.options.x??0;return n&&n>this._bufferService.cols&&(t.style.display=`none`),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display=`none`,e.onRenderEmitter.fire(e.element));else{let n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n),e.onDispose(()=>{this._decorationElements.delete(e),n.remove()})),n.style.display=this._altBufferIsActive?`none`:`block`,this._altBufferIsActive||(n.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,n.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,n.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,n.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(n)}}_refreshXPosition(e,t=e.element){if(!t)return;let n=e.options.x??0;(e.options.anchor||`left`)===`right`?t.style.right=n?`${n*this._renderService.dimensions.css.cell.width}px`:``:t.style.left=n?`${n*this._renderService.dimensions.css.cell.width}px`:``}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};jx=I_([J(1,lv),J(2,Sv),J(3,vv),J(4,wv)],jx);var Mx=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,n){return t>=e.startBufferLine-this._linePadding[n||`full`]&&t<=e.endBufferLine+this._linePadding[n||`full`]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},Nx={full:0,left:0,center:0,right:0},Px={full:0,left:0,center:0,right:0},Fx={full:0,left:0,center:0,right:0},Ix=class extends Y{constructor(e,t,n,r,i,a,o,s){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=n,this._decorationService=r,this._renderService=i,this._optionsService=a,this._themeService=o,this._coreBrowserService=s,this._colorZoneStore=new Mx,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement(`canvas`),this._canvas.classList.add(`xterm-decoration-overview-ruler`),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement),this._register(Yv(()=>this._canvas?.remove()));let c=this._canvas.getContext(`2d`);if(c)this._ctx=c;else throw Error(`Ctx cannot be null`);this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?`none`:`block`})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange(`overviewRuler`,()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){return this._optionsService.options.overviewRuler?.width||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Px.full=this._canvas.width,Px.left=e,Px.center=t,Px.right=e,this._refreshDrawHeightConstants(),Fx.full=1,Fx.left=1,Fx.center=1+Px.left,Fx.right=1+Px.left+Px.center}_refreshDrawHeightConstants(){Nx.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);Nx.left=t,Nx.center=t,Nx.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Nx.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Nx.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Nx.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Nx.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let e of this._decorationService.decorations)this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!==`full`&&this._renderColorZone(t);for(let t of e)t.position===`full`&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(Fx[e.position||`full`],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-Nx[e.position||`full`]/2),Px[e.position||`full`],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+Nx[e.position||`full`]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};Ix=I_([J(2,lv),J(3,vv),J(4,wv),J(5,hv),J(6,Dv),J(7,Sv)],Ix);var Q;(e=>(e.NUL=`\0`,e.SOH=``,e.STX=``,e.ETX=``,e.EOT=``,e.ENQ=``,e.ACK=``,e.BEL=`\x07`,e.BS=`\b`,e.HT=` `,e.LF=`
|
|
101
|
-
`,e.VT=`\v`,e.FF=`\f`,e.CR=`\r`,e.SO=``,e.SI=``,e.DLE=``,e.DC1=``,e.DC2=``,e.DC3=``,e.DC4=``,e.NAK=``,e.SYN=``,e.ETB=``,e.CAN=``,e.EM=``,e.SUB=``,e.ESC=`\x1B`,e.FS=``,e.GS=``,e.RS=``,e.US=``,e.SP=` `,e.DEL=``))(Q||={});var Lx;(e=>(e.PAD=``,e.HOP=``,e.BPH=``,e.NBH=``,e.IND=``,e.NEL=`
`,e.SSA=``,e.ESA=``,e.HTS=``,e.HTJ=``,e.VTS=``,e.PLD=``,e.PLU=``,e.RI=``,e.SS2=``,e.SS3=``,e.DCS=``,e.PU1=``,e.PU2=``,e.STS=``,e.CCH=``,e.MW=``,e.SPA=``,e.EPA=``,e.SOS=``,e.SGCI=``,e.SCI=``,e.CSI=``,e.ST=``,e.OSC=``,e.PM=``,e.APC=``))(Lx||={});var Rx;(e=>e.ST=`${Q.ESC}\\`)(Rx||={});var zx=class{constructor(e,t,n,r,i,a){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._coreService=i,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=``}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent=``,this._dataAlreadySent=``,this._compositionView.classList.add(`active`)}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove(`active`),this._isComposing=!1,e){let e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let t;e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,this._compositionPosition.start):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}},0)}else{this._isSendingComposition=!1;let e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,n=t.replace(e,``);this._dataAlreadySent=n,t.length>e.length?this._coreService.triggerDataEvent(n,!0):t.length<e.length?this._coreService.triggerDataEvent(`${Q.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),t=this._renderService.dimensions.css.cell.height,n=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,r=e*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=r+`px`,this._compositionView.style.top=n+`px`,this._compositionView.style.height=t+`px`,this._compositionView.style.lineHeight=t+`px`,this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+`px`;let i=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+`px`,this._textarea.style.top=n+`px`,this._textarea.style.width=Math.max(i.width,1)+`px`,this._textarea.style.height=Math.max(i.height,1)+`px`,this._textarea.style.lineHeight=i.height+`px`}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};zx=I_([J(2,lv),J(3,hv),J(4,dv),J(5,wv)],zx);var Bx=0,Vx=0,Hx=0,Ux=0,Wx={css:`#00000000`,rgba:0},Gx;(e=>{function t(e,t,n,r){return r===void 0?`#${Xx(e)}${Xx(t)}${Xx(n)}`:`#${Xx(e)}${Xx(t)}${Xx(n)}${Xx(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(Gx||={});var Kx;(e=>{function t(e,t){if(Ux=(t.rgba&255)/255,Ux===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return Bx=a+Math.round((n-a)*Ux),Vx=o+Math.round((r-o)*Ux),Hx=s+Math.round((i-s)*Ux),{css:Gx.toCss(Bx,Vx,Hx),rgba:Gx.toRgba(Bx,Vx,Hx)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=Yx.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return Gx.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[Bx,Vx,Hx]=Yx.toChannels(t),{css:Gx.toCss(Bx,Vx,Hx),rgba:t}}e.opaque=i;function a(e,t){return Ux=Math.round(t*255),[Bx,Vx,Hx]=Yx.toChannels(e.rgba),{css:Gx.toCss(Bx,Vx,Hx,Ux),rgba:Gx.toRgba(Bx,Vx,Hx,Ux)}}e.opacity=a;function o(e,t){return Ux=e.rgba&255,a(e,Ux*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(Kx||={});var qx;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return Bx=parseInt(e.slice(1,2).repeat(2),16),Vx=parseInt(e.slice(2,3).repeat(2),16),Hx=parseInt(e.slice(3,4).repeat(2),16),Gx.toColor(Bx,Vx,Hx);case 5:return Bx=parseInt(e.slice(1,2).repeat(2),16),Vx=parseInt(e.slice(2,3).repeat(2),16),Hx=parseInt(e.slice(3,4).repeat(2),16),Ux=parseInt(e.slice(4,5).repeat(2),16),Gx.toColor(Bx,Vx,Hx,Ux);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return Bx=parseInt(r[1]),Vx=parseInt(r[2]),Hx=parseInt(r[3]),Ux=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),Gx.toColor(Bx,Vx,Hx,Ux);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[Bx,Vx,Hx,Ux]=t.getImageData(0,0,1,1).data,Ux!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:Gx.toRgba(Bx,Vx,Hx,Ux),css:e}}e.toColor=r})(qx||={});var Jx;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(Jx||={});var Yx;(e=>{function t(e,t){if(Ux=(t&255)/255,Ux===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return Bx=a+Math.round((n-a)*Ux),Vx=o+Math.round((r-o)*Ux),Hx=s+Math.round((i-s)*Ux),Gx.toRgba(Bx,Vx,Hx)}e.blend=t;function n(e,t,n){let a=Jx.relativeLuminance(e>>8),o=Jx.relativeLuminance(t>>8);if(Zx(a,o)<n){if(o<a){let o=r(e,t,n),s=Zx(a,Jx.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>Zx(a,Jx.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=Zx(a,Jx.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>Zx(a,Jx.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=Zx(Jx.relativeLuminance2(o,s,c),Jx.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=Zx(Jx.relativeLuminance2(o,s,c),Jx.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=Zx(Jx.relativeLuminance2(o,s,c),Jx.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil((255-o)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),c=Math.min(255,c+Math.ceil((255-c)*.1)),l=Zx(Jx.relativeLuminance2(o,s,c),Jx.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(Yx||={});function Xx(e){let t=e.toString(16);return t.length<2?`0`+t:t}function Zx(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var Qx=class extends ev{constructor(e,t,n){super(),this.content=0,this.combinedData=``,this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=n}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw Error(`not implemented`)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},$x=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new nv}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let n=[],r=t.translateToString(!0),i=0,a=0,o=0,s=t.getFg(0),c=t.getBg(0);for(let e=0;e<t.getTrimmedLength();e++)if(t.loadCell(e,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==s||this._workCell.bg!==c){if(e-i>1){let e=this._getJoinedRanges(r,o,a,t,i);for(let t=0;t<e.length;t++)n.push(e[t])}i=e,o=a,s=this._workCell.fg,c=this._workCell.bg}a+=this._workCell.getChars().length||$_.length}if(this._bufferService.cols-i>1){let e=this._getJoinedRanges(r,o,a,t,i);for(let t=0;t<e.length;t++)n.push(e[t])}return n}_getJoinedRanges(e,t,n,r,i){let a=e.substring(t,n),o=[];try{o=this._characterJoiners[0].handler(a)}catch(e){console.error(e)}for(let e=1;e<this._characterJoiners.length;e++)try{let t=this._characterJoiners[e].handler(a);for(let e=0;e<t.length;e++)$x._mergeRanges(o,t[e])}catch(e){console.error(e)}return this._stringRangesToCellRanges(o,r,i),o}_stringRangesToCellRanges(e,t,n){let r=0,i=!1,a=0,o=e[r];if(o){for(let s=n;s<this._bufferService.cols;s++){let n=t.getWidth(s),c=t.getString(s).length||$_.length;if(n!==0){if(!i&&o[0]<=a&&(o[0]=s,i=!0),o[1]<=a){if(o[1]=s,o=e[++r],!o)break;o[0]<=a?(o[0]=s,i=!0):i=!1}a+=c}}o&&(o[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(n){if(t[1]<=i[0])return e[r-1][1]=t[1],e;if(t[1]<=i[1])return e[r-1][1]=Math.max(t[1],i[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=i[0])return e.splice(r,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),n=!0);continue}}return n?e[e.length-1][1]=t[1]:e.push(t),e}};$x=I_([J(0,lv)],$x);function eS(e){return 57508<=e&&e<=57558}function tS(e){return 9472<=e&&e<=9631}function nS(e){return eS(e)||tS(e)}function rS(){return{css:{canvas:iS(),cell:iS()},device:{canvas:iS(),cell:iS(),char:{width:0,height:0,left:0,top:0}}}}function iS(){return{width:0,height:0}}var aS=class{constructor(e,t,n,r,i,a,o){this._document=e,this._characterJoinerService=t,this._optionsService=n,this._coreBrowserService=r,this._coreService=i,this._decorationService=a,this._themeService=o,this._workCell=new nv,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,n){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=n}createRow(e,t,n,r,i,a,o,s,c,l,u){let d=[],f=this._characterJoinerService.getJoinedCharacters(t),p=this._themeService.colors,m=e.getNoBgTrimmedLength();n&&m<a+1&&(m=a+1);let h,g=0,_=``,v=0,y=0,b=0,x=0,ee=!1,te=0,S=!1,C=0,w=0,T=[],E=l!==-1&&u!==-1;for(let D=0;D<m;D++){e.loadCell(D,this._workCell);let m=this._workCell.getWidth();if(m===0)continue;let ne=!1,O=D>=w,re=D,k=this._workCell;if(f.length>0&&D===f[0][0]&&O){let r=f.shift(),i=this._isCellInSelection(r[0],t);for(v=r[0]+1;v<r[1];v++)O&&=i===this._isCellInSelection(v,t);O&&=!n||a<r[0]||a>=r[1],O?(ne=!0,k=new Qx(this._workCell,e.translateToString(!0,r[0],r[1]),r[1]-r[0]),re=r[1]-1,m=k.getWidth()):w=r[1]}let A=this._isCellInSelection(D,t),j=n&&D===a,ie=E&&D>=l&&D<=u,ae=!1;this._decorationService.forEachDecorationAtCell(D,t,void 0,e=>{ae=!0});let oe=k.getChars()||$_;if(oe===` `&&(k.isUnderline()||k.isOverline())&&(oe=`\xA0`),C=m*s-c.get(oe,k.isBold(),k.isItalic()),!h)h=this._document.createElement(`span`);else if(g&&(A&&S||!A&&!S&&k.bg===y)&&(A&&S&&p.selectionForeground||k.fg===b)&&k.extended.ext===x&&ie===ee&&C===te&&!j&&!ne&&!ae&&O){k.isInvisible()?_+=$_:_+=oe,g++;continue}else g&&(h.textContent=_),h=this._document.createElement(`span`),g=0,_=``;if(y=k.bg,b=k.fg,x=k.extended.ext,ee=ie,te=C,S=A,ne&&a>=D&&a<=re&&(a=D),!this._coreService.isCursorHidden&&j&&this._coreService.isCursorInitialized){if(T.push(`xterm-cursor`),this._coreBrowserService.isFocused)o&&T.push(`xterm-cursor-blink`),T.push(r===`bar`?`xterm-cursor-bar`:r===`underline`?`xterm-cursor-underline`:`xterm-cursor-block`);else if(i)switch(i){case`outline`:T.push(`xterm-cursor-outline`);break;case`block`:T.push(`xterm-cursor-block`);break;case`bar`:T.push(`xterm-cursor-bar`);break;case`underline`:T.push(`xterm-cursor-underline`)}}if(k.isBold()&&T.push(`xterm-bold`),k.isItalic()&&T.push(`xterm-italic`),k.isDim()&&T.push(`xterm-dim`),_=k.isInvisible()?$_:k.getChars()||$_,k.isUnderline()&&(T.push(`xterm-underline-${k.extended.underlineStyle}`),_===` `&&(_=`\xA0`),!k.isUnderlineColorDefault())){if(k.isUnderlineColorRGB())h.style.textDecorationColor=`rgb(${ev.toColorRGB(k.getUnderlineColor()).join(`,`)})`;else{let e=k.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&k.isBold()&&e<8&&(e+=8),h.style.textDecorationColor=p.ansi[e].css}}k.isOverline()&&(T.push(`xterm-overline`),_===` `&&(_=`\xA0`)),k.isStrikethrough()&&T.push(`xterm-strikethrough`),ie&&(h.style.textDecoration=`underline`);let se=k.getFgColor(),ce=k.getFgColorMode(),le=k.getBgColor(),ue=k.getBgColorMode(),de=!!k.isInverse();if(de){let e=se;se=le,le=e;let t=ce;ce=ue,ue=t}let fe,pe,me=!1;this._decorationService.forEachDecorationAtCell(D,t,void 0,e=>{e.options.layer!==`top`&&me||(e.backgroundColorRGB&&(ue=50331648,le=e.backgroundColorRGB.rgba>>8&16777215,fe=e.backgroundColorRGB),e.foregroundColorRGB&&(ce=50331648,se=e.foregroundColorRGB.rgba>>8&16777215,pe=e.foregroundColorRGB),me=e.options.layer===`top`)}),!me&&A&&(fe=this._coreBrowserService.isFocused?p.selectionBackgroundOpaque:p.selectionInactiveBackgroundOpaque,le=fe.rgba>>8&16777215,ue=50331648,me=!0,p.selectionForeground&&(ce=50331648,se=p.selectionForeground.rgba>>8&16777215,pe=p.selectionForeground)),me&&T.push(`xterm-decoration-top`);let he;switch(ue){case 16777216:case 33554432:he=p.ansi[le],T.push(`xterm-bg-${le}`);break;case 50331648:he=Gx.toColor(le>>16,le>>8&255,le&255),this._addStyle(h,`background-color:#${oS((le>>>0).toString(16),`0`,6)}`);break;default:de?(he=p.foreground,T.push(`xterm-bg-257`)):he=p.background}switch(fe||k.isDim()&&(fe=Kx.multiplyOpacity(he,.5)),ce){case 16777216:case 33554432:k.isBold()&&se<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(se+=8),this._applyMinimumContrast(h,he,p.ansi[se],k,fe,void 0)||T.push(`xterm-fg-${se}`);break;case 50331648:let e=Gx.toColor(se>>16&255,se>>8&255,se&255);this._applyMinimumContrast(h,he,e,k,fe,pe)||this._addStyle(h,`color:#${oS(se.toString(16),`0`,6)}`);break;default:this._applyMinimumContrast(h,he,p.foreground,k,fe,pe)||de&&T.push(`xterm-fg-257`)}T.length&&=(h.className=T.join(` `),0),!j&&!ne&&!ae&&O?g++:h.textContent=_,C!==this.defaultSpacing&&(h.style.letterSpacing=`${C}px`),d.push(h),D=re}return h&&g&&(h.textContent=_),d}_applyMinimumContrast(e,t,n,r,i,a){if(this._optionsService.rawOptions.minimumContrastRatio===1||nS(r.getCode()))return!1;let o=this._getContrastCache(r),s;if(!i&&!a&&(s=o.getColor(t.rgba,n.rgba)),s===void 0){let e=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);s=Kx.ensureContrastRatio(i||t,a||n,e),o.setColor((i||t).rgba,(a||n).rgba,s??null)}return s?(this._addStyle(e,`color:${s.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute(`style`,`${e.getAttribute(`style`)||``}${t};`)}_isCellInSelection(e,t){let n=this._selectionStart,r=this._selectionEnd;return!n||!r?!1:this._columnSelectMode?n[0]<=r[0]?e>=n[0]&&t>=n[1]&&e<r[0]&&t<=r[1]:e<n[0]&&t>=n[1]&&e>=r[0]&&t<=r[1]:t>n[1]&&t<r[1]||n[1]===r[1]&&t===n[1]&&e>=n[0]&&e<r[0]||n[1]<r[1]&&t===r[1]&&e<r[0]||n[1]<r[1]&&t===n[1]&&e>=n[0]}};aS=I_([J(1,Ev),J(2,hv),J(3,Sv),J(4,dv),J(5,vv),J(6,Dv)],aS);function oS(e,t,n){for(;e.length<n;)e=t+e;return e}var sS=class{constructor(e,t){this._flat=new Float32Array(256),this._font=``,this._fontSize=0,this._weight=`normal`,this._weightBold=`bold`,this._measureElements=[],this._container=e.createElement(`div`),this._container.classList.add(`xterm-width-cache-measure-container`),this._container.setAttribute(`aria-hidden`,`true`),this._container.style.whiteSpace=`pre`,this._container.style.fontKerning=`none`;let n=e.createElement(`span`);n.classList.add(`xterm-char-measure-element`);let r=e.createElement(`span`);r.classList.add(`xterm-char-measure-element`),r.style.fontWeight=`bold`;let i=e.createElement(`span`);i.classList.add(`xterm-char-measure-element`),i.style.fontStyle=`italic`;let a=e.createElement(`span`);a.classList.add(`xterm-char-measure-element`),a.style.fontWeight=`bold`,a.style.fontStyle=`italic`,this._measureElements=[n,r,i,a],this._container.appendChild(n),this._container.appendChild(r),this._container.appendChild(i),this._container.appendChild(a),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,n,r){e===this._font&&t===this._fontSize&&n===this._weight&&r===this._weightBold||(this._font=e,this._fontSize=t,this._weight=n,this._weightBold=r,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${n}`,this._measureElements[1].style.fontWeight=`${r}`,this._measureElements[2].style.fontWeight=`${n}`,this._measureElements[3].style.fontWeight=`${r}`,this.clear())}get(e,t,n){let r=0;if(!t&&!n&&e.length===1&&(r=e.charCodeAt(0))<256){if(this._flat[r]!==-9999)return this._flat[r];let t=this._measure(e,0);return t>0&&(this._flat[r]=t),t}let i=e;t&&(i+=`B`),n&&(i+=`I`);let a=this._holey.get(i);if(a===void 0){let r=0;t&&(r|=1),n&&(r|=2),a=this._measure(e,r),a>0&&this._holey.set(i,a)}return a}_measure(e,t){let n=this._measureElements[t];return n.textContent=e.repeat(32),n.offsetWidth/32}},cS=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,n,r=!1){if(this.selectionStart=t,this.selectionEnd=n,!t||!n||t[0]===n[0]&&t[1]===n[1]){this.clear();return}let i=e.buffers.active.ydisp,a=t[1]-i,o=n[1]-i,s=Math.max(a,0),c=Math.min(o,e.rows-1);s>=e.rows||c<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=a,this.viewportEndRow=o,this.viewportCappedStartRow=s,this.viewportCappedEndRow=c,this.startCol=t[0],this.endCol=n[0])}isCellSelected(e,t,n){return this.hasSelection?(n-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&n>=this.viewportCappedStartRow&&t<this.endCol&&n<=this.viewportCappedEndRow:t<this.startCol&&n>=this.viewportCappedStartRow&&t>=this.endCol&&n<=this.viewportCappedEndRow:n>this.viewportStartRow&&n<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol):!1}};function lS(){return new cS}var uS=`xterm-dom-renderer-owner-`,dS=`xterm-rows`,fS=`xterm-fg-`,pS=`xterm-bg-`,mS=`xterm-focus`,hS=`xterm-selection`,gS=1,_S=class extends Y{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){super(),this._terminal=e,this._document=t,this._element=n,this._screenElement=r,this._viewportElement=i,this._helperContainer=a,this._linkifier2=o,this._charSizeService=c,this._optionsService=l,this._bufferService=u,this._coreService=d,this._coreBrowserService=f,this._themeService=p,this._terminalClass=gS++,this._rowElements=[],this._selectionRenderModel=lS(),this.onRequestRedraw=this._register(new X).event,this._rowContainer=this._document.createElement(`div`),this._rowContainer.classList.add(dS),this._rowContainer.style.lineHeight=`normal`,this._rowContainer.setAttribute(`aria-hidden`,`true`),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement(`div`),this._selectionContainer.classList.add(hS),this._selectionContainer.setAttribute(`aria-hidden`,`true`),this.dimensions=rS(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(e=>this._injectCss(e))),this._injectCss(this._themeService.colors),this._rowFactory=s.createInstance(aS,document),this._element.classList.add(uS+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(e=>this._handleLinkHover(e))),this._register(this._linkifier2.onHideLinkUnderline(e=>this._handleLinkLeave(e))),this._register(Yv(()=>{this._element.classList.remove(uS+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new sS(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let e of this._rowElements)e.style.width=`${this.dimensions.css.canvas.width}px`,e.style.height=`${this.dimensions.css.cell.height}px`,e.style.lineHeight=`${this.dimensions.css.cell.height}px`,e.style.overflow=`hidden`;this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement(`style`),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${dS} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement(`style`),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${dS} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${dS} .xterm-dim { color: ${Kx.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let n=`blink_underline_${this._terminalClass}`,r=`blink_bar_${this._terminalClass}`,i=`blink_block_${this._terminalClass}`;t+=`@keyframes ${n} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${r} { 50% { box-shadow: none; }}`,t+=`@keyframes ${i} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${dS}.${mS} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${dS}.${mS} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${dS}.${mS} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${dS} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${dS} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${dS} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${dS} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${dS} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${hS} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${hS} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${hS} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[n,r]of e.ansi.entries())t+=`${this._terminalSelector} .${fS}${n} { color: ${r.css}; }${this._terminalSelector} .${fS}${n}.xterm-dim { color: ${Kx.multiplyOpacity(r,.5).css}; }${this._terminalSelector} .${pS}${n} { background-color: ${r.css}; }`;t+=`${this._terminalSelector} .${fS}257 { color: ${Kx.opaque(e.background).css}; }${this._terminalSelector} .${fS}257.xterm-dim { color: ${Kx.multiplyOpacity(Kx.opaque(e.background),.5).css}; }${this._terminalSelector} .${pS}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get(`W`,!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let e=this._rowElements.length;e<=t;e++){let e=this._document.createElement(`div`);this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(mS),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(mS),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,n){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,n),!this._selectionRenderModel.hasSelection))return;let r=this._selectionRenderModel.viewportStartRow,i=this._selectionRenderModel.viewportEndRow,a=this._selectionRenderModel.viewportCappedStartRow,o=this._selectionRenderModel.viewportCappedEndRow,s=this._document.createDocumentFragment();if(n){let n=e[0]>t[0];s.appendChild(this._createSelectionElement(a,n?t[0]:e[0],n?e[0]:t[0],o-a+1))}else{let n=r===a?e[0]:0,c=a===i?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,n,c));let l=o-a-1;if(s.appendChild(this._createSelectionElement(a+1,0,this._bufferService.cols,l)),a!==o){let e=i===o?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(s)}_createSelectionElement(e,t,n,r=1){let i=this._document.createElement(`div`),a=t*this.dimensions.css.cell.width,o=this.dimensions.css.cell.width*(n-t);return a+o>this.dimensions.css.canvas.width&&(o=this.dimensions.css.canvas.width-a),i.style.height=`${r*this.dimensions.css.cell.height}px`,i.style.top=`${e*this.dimensions.css.cell.height}px`,i.style.left=`${a}px`,i.style.width=`${o}px`,i}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let n=this._bufferService.buffer,r=n.ybase+n.y,i=Math.min(n.x,this._bufferService.cols-1),a=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,o=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,s=this._optionsService.rawOptions.cursorInactiveStyle;for(let c=e;c<=t;c++){let e=c+n.ydisp,t=this._rowElements[c],l=n.lines.get(e);if(!t||!l)break;t.replaceChildren(...this._rowFactory.createRow(l,e,e===r,o,s,i,a,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${uS}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,n,r,i,a){n<0&&(e=0),r<0&&(t=0);let o=this._bufferService.rows-1;n=Math.max(Math.min(n,o),0),r=Math.max(Math.min(r,o),0),i=Math.min(i,this._bufferService.cols);let s=this._bufferService.buffer,c=s.ybase+s.y,l=Math.min(s.x,i-1),u=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let o=n;o<=r;++o){let p=o+s.ydisp,m=this._rowElements[o],h=s.lines.get(p);if(!m||!h)break;m.replaceChildren(...this._rowFactory.createRow(h,p,p===c,d,f,l,u,this.dimensions.css.cell.width,this._widthCache,a?o===n?e:0:-1,a?(o===r?t:i)-1:-1))}}};_S=I_([J(7,pv),J(8,xv),J(9,hv),J(10,lv),J(11,dv),J(12,Sv),J(13,Dv)],_S);var vS=class extends Y{constructor(e,t,n){super(),this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=this._register(new X),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new xS(this._optionsService))}catch{this._measureStrategy=this._register(new bS(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange([`fontFamily`,`fontSize`],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};vS=I_([J(2,hv)],vS);var yS=class extends Y{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},bS=class extends yS{constructor(e,t,n){super(),this._document=e,this._parentElement=t,this._optionsService=n,this._measureElement=this._document.createElement(`span`),this._measureElement.classList.add(`xterm-char-measure-element`),this._measureElement.textContent=`W`.repeat(32),this._measureElement.setAttribute(`aria-hidden`,`true`),this._measureElement.style.whiteSpace=`pre`,this._measureElement.style.fontKerning=`none`,this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},xS=class extends yS{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext(`2d`);let t=this._ctx.measureText(`W`);if(!(`width`in t&&`fontBoundingBoxAscent`in t&&`fontBoundingBoxDescent`in t))throw Error(`Required font metrics not supported`)}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText(`W`);return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},SS=class extends Y{constructor(e,t,n){super(),this._textarea=e,this._window=t,this.mainDocument=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new CS(this._window)),this._onDprChange=this._register(new X),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new X),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(e=>this._screenDprMonitor.setWindow(e))),this._register(ay.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Z(this._textarea,`focus`,()=>this._isFocused=!0)),this._register(Z(this._textarea,`blur`,()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},CS=class extends Y{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Qv),this._onDprChange=this._register(new X),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(Yv(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Z(this._parentWindow,`resize`,()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},wS=class extends Y{constructor(){super(),this.linkProviders=[],this._register(Yv(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function TS(e,t,n){let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),a=parseInt(i.getPropertyValue(`padding-left`)),o=parseInt(i.getPropertyValue(`padding-top`));return[t.clientX-r.left-a,t.clientY-r.top-o]}function ES(e,t,n,r,i,a,o,s,c){if(!a)return;let l=TS(e,t,n);if(l)return l[0]=Math.ceil((l[0]+(c?o/2:0))/o),l[1]=Math.ceil(l[1]/s),l[0]=Math.min(Math.max(l[0],1),r+ +!!c),l[1]=Math.min(Math.max(l[1],1),i),l}var DS=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,n,r,i){return ES(window,e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}getMouseReportCoords(e,t){let n=TS(window,e,t);if(this._charSizeService.hasValidSize)return n[0]=Math.min(Math.max(n[0],0),this._renderService.dimensions.css.canvas.width-1),n[1]=Math.min(Math.max(n[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}};DS=I_([J(0,wv),J(1,xv)],DS);var OS=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()),this._animationFrame}refresh(e,t,n){this._rowCount=n,e=e===void 0?0:e,t=t===void 0?this._rowCount-1:t,this._rowStart=this._rowStart===void 0?e:Math.min(this._rowStart,e),this._rowEnd=this._rowEnd===void 0?t:Math.max(this._rowEnd,t),!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},kS={};F_(kS,{getSafariVersion:()=>IS,isChromeOS:()=>HS,isFirefox:()=>NS,isIpad:()=>RS,isIphone:()=>zS,isLegacyEdge:()=>PS,isLinux:()=>VS,isMac:()=>LS,isNode:()=>AS,isSafari:()=>FS,isWindows:()=>BS});var AS=typeof process<`u`&&`title`in process,jS=AS?`node`:navigator.userAgent,MS=AS?`node`:navigator.platform,NS=jS.includes(`Firefox`),PS=jS.includes(`Edge`),FS=/^((?!chrome|android).)*safari/i.test(jS);function IS(){if(!FS)return 0;let e=jS.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var LS=[`Macintosh`,`MacIntel`,`MacPPC`,`Mac68K`].includes(MS),RS=MS===`iPad`,zS=MS===`iPhone`,BS=[`Windows`,`Win16`,`Win32`,`WinCE`].includes(MS),VS=MS.indexOf(`Linux`)>=0,HS=/\bCrOS\b/.test(jS),US=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&=(this._cancelCallback(this._idleCallback),void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||=this._requestCallback(this._process.bind(this))}_process(e){this._idleCallback=void 0;let t=0,n=0,r=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),n=Math.max(t,n),i=e.timeRemaining(),n*1.5>i){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=i}this.clear()}},WS=class extends US{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},GS=class extends US{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},KS=!AS&&`requestIdleCallback`in window?GS:WS,qS=class{constructor(){this._queue=new KS}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},JS=class extends Y{constructor(e,t,n,r,i,a,o,s,c){super(),this._rowCount=e,this._optionsService=n,this._charSizeService=r,this._coreService=i,this._coreBrowserService=s,this._renderer=this._register(new Qv),this._pausedResizeTask=new qS,this._observerDisposable=this._register(new Qv),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new X),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new X),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new X),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new X),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new OS((e,t)=>this._renderRows(e,t),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new YS(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(Yv(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(o.onResize(()=>this._fullRefresh())),this._register(o.buffers.onBufferActivate(()=>this._renderer.value?.clear())),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(a.onDecorationRegistered(()=>this._fullRefresh())),this._register(a.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange([`customGlyphs`,`drawBoldTextInBrightColors`,`letterSpacing`,`lineHeight`,`fontFamily`,`fontSize`,`fontWeight`,`fontWeightBold`,`minimumContrastRatio`,`rescaleOverlappingGlyphs`],()=>{this.clear(),this.handleResize(o.cols,o.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange([`cursorBlink`,`cursorStyle`],()=>this.refreshRows(o.buffer.y,o.buffer.y,!0))),this._register(c.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(e=>this._registerIntersectionObserver(e,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if(`IntersectionObserver`in e){let n=new e.IntersectionObserver(e=>this._handleIntersectionChange(e[e.length-1]),{threshold:0});n.observe(t),this._observerDisposable.value=Yv(()=>n.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,n=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let r=this._syncOutputHandler.flush();r&&(e=Math.min(e,r.start),t=Math.max(t,r.end)),n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&=(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value?.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.value?.handleSelectionChanged(e,t,n)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};JS=I_([J(2,hv),J(3,xv),J(4,dv),J(5,vv),J(6,lv),J(7,Sv),J(8,Dv)],JS);var YS=class{constructor(e,t,n){this._coreBrowserService=e,this._coreService=t,this._onTimeout=n,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function XS(e,t,n,r){let i=n.buffer.x,a=n.buffer.y;if(!n.buffer.hasScrollback)return $S(i,a,e,t,n,r)+eC(a,t,n,r)+tC(i,a,e,t,n,r);let o;if(a===t)return o=i>e?`D`:`C`,cC(Math.abs(i-e),sC(o,r));o=a>t?`D`:`C`;let s=Math.abs(a-t);return cC(QS(a>t?e:i,n)+(s-1)*n.cols+1+ZS(a>t?i:e,n),sC(o,r))}function ZS(e,t){return e-1}function QS(e,t){return t.cols-e}function $S(e,t,n,r,i,a){return eC(t,r,i,a).length===0?``:cC(oC(e,t,e,t-rC(t,i),!1,i).length,sC(`D`,a))}function eC(e,t,n,r){let i=e-rC(e,n),a=t-rC(t,n);return cC(Math.abs(i-a)-nC(e,t,n),sC(aC(e,t),r))}function tC(e,t,n,r,i,a){let o;o=eC(t,r,i,a).length>0?r-rC(r,i):t;let s=r,c=iC(e,t,n,r,i,a);return cC(oC(e,o,n,s,c===`C`,i).length,sC(c,a))}function nC(e,t,n){let r=0,i=e-rC(e,n),a=t-rC(t,n);for(let o=0;o<Math.abs(i-a);o++){let a=aC(e,t)===`A`?-1:1;n.buffer.lines.get(i+a*o)?.isWrapped&&r++}return r}function rC(e,t){let n=0,r=t.buffer.lines.get(e),i=r?.isWrapped;for(;i&&e>=0&&e<t.rows;)n++,r=t.buffer.lines.get(--e),i=r?.isWrapped;return n}function iC(e,t,n,r,i,a){let o;return o=eC(n,r,i,a).length>0?r-rC(r,i):t,e<n&&o<=r||e>=n&&o<r?`C`:`D`}function aC(e,t){return e>t?`A`:`B`}function oC(e,t,n,r,i,a){let o=e,s=t,c=``;for(;(o!==n||s!==r)&&s>=0&&s<a.buffer.lines.length;)o+=i?1:-1,i&&o>a.cols-1?(c+=a.buffer.translateBufferLineToString(s,!1,e,o),o=0,e=0,s++):!i&&o<0&&(c+=a.buffer.translateBufferLineToString(s,!1,0,e+1),o=a.cols-1,e=o,s--);return c+a.buffer.translateBufferLineToString(s,!1,e,o)}function sC(e,t){let n=t?`O`:`[`;return Q.ESC+n+e}function cC(e,t){e=Math.floor(e);let n=``;for(let r=0;r<e;r++)n+=t;return n}var lC=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function uC(e,t){if(e.start.y>e.end.y)throw Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var dC=50,fC=15,pC=50,mC=500,hC=RegExp(`\xA0`,`g`),gC=class extends Y{constructor(e,t,n,r,i,a,o,s,c){super(),this._element=e,this._screenElement=t,this._linkifier=n,this._bufferService=r,this._coreService=i,this._mouseService=a,this._optionsService=o,this._renderService=s,this._coreBrowserService=c,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new nv,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new X),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new X),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new X),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new X),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._handleTrim(e)),this._register(this._bufferService.buffers.onBufferActivate(e=>this._handleBufferActivate(e))),this.enable(),this._model=new lC(this._bufferService),this._activeSelectionMode=0,this._register(Yv(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(e=>{e.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return``;let n=this._bufferService.buffer,r=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return``;let i=e[0]<t[0]?e[0]:t[0],a=e[0]<t[0]?t[0]:e[0];for(let o=e[1];o<=t[1];o++){let e=n.translateBufferLineToString(o,!0,i,a);r.push(e)}}else{let i=e[1]===t[1]?t[0]:void 0;r.push(n.translateBufferLineToString(e[1],!0,e[0],i));for(let i=e[1]+1;i<=t[1]-1;i++){let e=n.lines.get(i),t=n.translateBufferLineToString(i,!0);e?.isWrapped?r[r.length-1]+=t:r.push(t)}if(e[1]!==t[1]){let e=n.lines.get(t[1]),i=n.translateBufferLineToString(t[1],!0,0,t[0]);e&&e.isWrapped?r[r.length-1]+=i:r.push(i)}}return r.map(e=>e.replace(hC,` `)).join(BS?`\r
|
|
102
|
-
`:`
|
|
103
|
-
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh()),VS&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r||!t?!1:this._areCoordsInSelection(t,n,r)}isCellInSelection(e,t){let n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r?!1:this._areCoordsInSelection([e,t],n,r)}_areCoordsInSelection(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){let n=this._linkifier.currentLink?.link?.range;if(n)return this._model.selectionStart=[n.start.x-1,n.start.y-1],this._model.selectionStartLength=uC(n,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return r?(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=TS(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-dC),dC),t/=dC,t/Math.abs(t)+Math.round(t*(fC-1)))}shouldForceSelection(e){return LS?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener(`mouseup`,this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),pC)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener(`mouseup`,this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(LS&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){let e=n.lines.get(this._model.selectionEnd[1]);e&&e.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<mC&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&t[0]!==void 0&&t[1]!==void 0){let e=XS(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);n?!e||!t||this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)}_fireOnSelectionChange(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(e=>this._handleTrim(e))}_convertViewportColToCharacterIndex(e,t){let n=t;for(let r=0;t>=r;r++){let i=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?n--:i>1&&t!==r&&(n+=i-1)}return n}setSelection(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,n=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,a=i.lines.get(e[1]);if(!a)return;let o=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(a,e[0]),c=s,l=e[0]-s,u=0,d=0,f=0,p=0;if(o.charAt(s)===` `){for(;s>0&&o.charAt(s-1)===` `;)s--;for(;c<o.length&&o.charAt(c+1)===` `;)c++}else{let t=e[0],n=e[0];a.getWidth(t)===0&&(u++,t--),a.getWidth(n)===2&&(d++,n++);let r=a.getString(n).length;for(r>1&&(p+=r-1,c+=r-1);t>0&&s>0&&!this._isCharWordSeparator(a.loadCell(t-1,this._workCell));){a.loadCell(t-1,this._workCell);let e=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,t--):e>1&&(f+=e-1,s-=e-1),s--,t--}for(;n<a.length&&c+1<o.length&&!this._isCharWordSeparator(a.loadCell(n+1,this._workCell));){a.loadCell(n+1,this._workCell);let e=this._workCell.getChars().length;this._workCell.getWidth()===2?(d++,n++):e>1&&(p+=e-1,c+=e-1),c++,n++}}c++;let m=s+l-u+f,h=Math.min(this._bufferService.cols,c-s+u+d-f-p);if(t||o.slice(s,c).trim()!==``){if(n&&m===0&&a.getCodePoint(0)!==32){let t=i.lines.get(e[1]-1);if(t&&a.isWrapped&&t.getCodePoint(this._bufferService.cols-1)!==32){let t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){let e=this._bufferService.cols-t.start;m-=e,h+=e}}}if(r&&m+h===this._bufferService.cols&&a.getCodePoint(this._bufferService.cols-1)!==32){let t=i.lines.get(e[1]+1);if(t?.isWrapped&&t.getCodePoint(0)!==32){let t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(h+=t.length)}}return{start:m,length:h}}}_selectWordAt(e,t){let n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let n=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}_isCharWordSeparator(e){return e.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=uC(n,this._bufferService.cols)}};gC=I_([J(3,lv),J(4,dv),J(5,Cv),J(6,hv),J(7,wv),J(8,Sv)],gC);var _C=class{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},vC=class{constructor(){this._color=new _C,this._css=new _C}setCss(e,t,n){this._css.set(e,t,n)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,n){this._color.set(e,t,n)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},yC=Object.freeze((()=>{let e=[qx.toColor(`#2e3436`),qx.toColor(`#cc0000`),qx.toColor(`#4e9a06`),qx.toColor(`#c4a000`),qx.toColor(`#3465a4`),qx.toColor(`#75507b`),qx.toColor(`#06989a`),qx.toColor(`#d3d7cf`),qx.toColor(`#555753`),qx.toColor(`#ef2929`),qx.toColor(`#8ae234`),qx.toColor(`#fce94f`),qx.toColor(`#729fcf`),qx.toColor(`#ad7fa8`),qx.toColor(`#34e2e2`),qx.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:Gx.toCss(r,i,a),rgba:Gx.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+t*10;e.push({css:Gx.toCss(n,n,n),rgba:Gx.toRgba(n,n,n)})}return e})()),bC=qx.toColor(`#ffffff`),xC=qx.toColor(`#000000`),SC=qx.toColor(`#ffffff`),CC=xC,wC={css:`rgba(255, 255, 255, 0.3)`,rgba:4294967117},TC=bC,EC=class extends Y{constructor(e){super(),this._optionsService=e,this._contrastCache=new vC,this._halfContrastCache=new vC,this._onChangeColors=this._register(new X),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:bC,background:xC,cursor:SC,cursorAccent:CC,selectionForeground:void 0,selectionBackgroundTransparent:wC,selectionBackgroundOpaque:Kx.blend(xC,wC),selectionInactiveBackgroundTransparent:wC,selectionInactiveBackgroundOpaque:Kx.blend(xC,wC),scrollbarSliderBackground:Kx.opacity(bC,.2),scrollbarSliderHoverBackground:Kx.opacity(bC,.4),scrollbarSliderActiveBackground:Kx.opacity(bC,.5),overviewRulerBorder:bC,ansi:yC.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange(`minimumContrastRatio`,()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange(`theme`,()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=DC(e.foreground,bC),t.background=DC(e.background,xC),t.cursor=Kx.blend(t.background,DC(e.cursor,SC)),t.cursorAccent=Kx.blend(t.background,DC(e.cursorAccent,CC)),t.selectionBackgroundTransparent=DC(e.selectionBackground,wC),t.selectionBackgroundOpaque=Kx.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=DC(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=Kx.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?DC(e.selectionForeground,Wx):void 0,t.selectionForeground===Wx&&(t.selectionForeground=void 0),Kx.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=Kx.opacity(t.selectionBackgroundTransparent,.3)),Kx.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=Kx.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=DC(e.scrollbarSliderBackground,Kx.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=DC(e.scrollbarSliderHoverBackground,Kx.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=DC(e.scrollbarSliderActiveBackground,Kx.opacity(t.foreground,.5)),t.overviewRulerBorder=DC(e.overviewRulerBorder,TC),t.ansi=yC.slice(),t.ansi[0]=DC(e.black,yC[0]),t.ansi[1]=DC(e.red,yC[1]),t.ansi[2]=DC(e.green,yC[2]),t.ansi[3]=DC(e.yellow,yC[3]),t.ansi[4]=DC(e.blue,yC[4]),t.ansi[5]=DC(e.magenta,yC[5]),t.ansi[6]=DC(e.cyan,yC[6]),t.ansi[7]=DC(e.white,yC[7]),t.ansi[8]=DC(e.brightBlack,yC[8]),t.ansi[9]=DC(e.brightRed,yC[9]),t.ansi[10]=DC(e.brightGreen,yC[10]),t.ansi[11]=DC(e.brightYellow,yC[11]),t.ansi[12]=DC(e.brightBlue,yC[12]),t.ansi[13]=DC(e.brightMagenta,yC[13]),t.ansi[14]=DC(e.brightCyan,yC[14]),t.ansi[15]=DC(e.brightWhite,yC[15]),e.extendedAnsi){let n=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let r=0;r<n;r++)t.ansi[r+16]=DC(e.extendedAnsi[r],yC[r+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0)for(let e=0;e<this._restoreColors.ansi.length;++e)this._colors.ansi[e]=this._restoreColors.ansi[e];else switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};EC=I_([J(0,hv)],EC);function DC(e,t){if(e!==void 0)try{return qx.toColor(e)}catch{}return t}var OC=class{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}forEach(e){for(let[t,n]of this._entries.entries())e(t,n)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},kC=class{constructor(){this._services=new OC,this._services.set(pv,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let n=ov(e).sort((e,t)=>e.index-t.index),r=[];for(let t of n){let n=this._services.get(t.id);if(!n)throw Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id._id}.`);r.push(n)}let i=n.length>0?n[0].index:t.length;if(t.length!==i)throw Error(`[createInstance] First service dependency of ${e.name} at position ${i+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}},AC={trace:0,debug:1,info:2,warn:3,error:4,off:5},jC=`xterm.js: `,MC=class extends Y{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange(`logLevel`,()=>this._updateLogLevel())),NC=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=AC[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]==`function`&&(e[t]=e[t]())}_log(e,t,n){this._evalLazyOptionalParams(n),e.call(console,(this._optionsService.options.logger?``:jC)+t,...n)}trace(e,...t){this._logLevel<=0&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=1&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=2&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=3&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=4&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};MC=I_([J(0,hv)],MC);var NC,PC=class extends Y{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new X),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new X),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new X),this.onTrim=this.onTrimEmitter.event,this._array=Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=Array(e);for(let n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw Error(`Can only recycle when the buffer is full`);return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...n){if(t){for(let n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let t=this._length-1;t>=e;t--)this._array[this._getCyclicIndex(t+n.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;t<n.length;t++)this._array[this._getCyclicIndex(e+t)]=n[t];if(n.length&&this.onInsertEmitter.fire({index:e,amount:n.length}),this._length+n.length>this._maxLength){let e=this._length+n.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=n.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw Error(`start argument out of range`);if(e+n<0)throw Error(`Cannot shift elements in list beyond index 0`);if(n>0){for(let r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));let r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r<t;r++)this.set(e+r+n,this.get(e+r))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},$=3,FC=Object.freeze(new ev),IC=0,LC=2,RC=class e{constructor(e,t,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(e*$);let r=t||nv.fromCharData([0,Q_,1,0]);for(let t=0;t<e;++t)this.setCell(t,r);this.length=e}get(e){let t=this._data[e*$+0],n=t&2097151;return[this._data[e*$+1],t&2097152?this._combined[e]:n?J_(n):``,t>>22,t&2097152?this._combined[e].charCodeAt(this._combined[e].length-1):n]}set(e,t){this._data[e*$+1]=t[0],t[1].length>1?(this._combined[e]=t[1],this._data[e*$+0]=e|2097152|t[2]<<22):this._data[e*$+0]=t[1].charCodeAt(0)|t[2]<<22}getWidth(e){return this._data[e*$+0]>>22}hasWidth(e){return this._data[e*$+0]&12582912}getFg(e){return this._data[e*$+1]}getBg(e){return this._data[e*$+2]}hasContent(e){return this._data[e*$+0]&4194303}getCodePoint(e){let t=this._data[e*$+0];return t&2097152?this._combined[e].charCodeAt(this._combined[e].length-1):t&2097151}isCombined(e){return this._data[e*$+0]&2097152}getString(e){let t=this._data[e*$+0];return t&2097152?this._combined[e]:t&2097151?J_(t&2097151):``}isProtected(e){return this._data[e*$+2]&536870912}loadCell(e,t){return IC=e*$,t.content=this._data[IC+0],t.fg=this._data[IC+1],t.bg=this._data[IC+2],t.content&2097152&&(t.combinedData=this._combined[e]),t.bg&268435456&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){t.content&2097152&&(this._combined[e]=t.combinedData),t.bg&268435456&&(this._extendedAttrs[e]=t.extended),this._data[e*$+0]=t.content,this._data[e*$+1]=t.fg,this._data[e*$+2]=t.bg}setCellFromCodepoint(e,t,n,r){r.bg&268435456&&(this._extendedAttrs[e]=r.extended),this._data[e*$+0]=t|n<<22,this._data[e*$+1]=r.fg,this._data[e*$+2]=r.bg}addCodepointToCell(e,t,n){let r=this._data[e*$+0];r&2097152?this._combined[e]+=J_(t):r&2097151?(this._combined[e]=J_(r&2097151)+J_(t),r&=-2097152,r|=2097152):r=t|1<<22,n&&(r&=-12582913,r|=n<<22),this._data[e*$+0]=r}insertCells(e,t,n){if(e%=this.length,e&&this.getWidth(e-1)===2&&this.setCellFromCodepoint(e-1,0,1,n),t<this.length-e){let r=new nv;for(let n=this.length-e-t-1;n>=0;--n)this.setCell(e+t+n,this.loadCell(e+n,r));for(let r=0;r<t;++r)this.setCell(e+r,n)}else for(let t=e;t<this.length;++t)this.setCell(t,n);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,n)}deleteCells(e,t,n){if(e%=this.length,t<this.length-e){let r=new nv;for(let n=0;n<this.length-e-t;++n)this.setCell(e+n,this.loadCell(e+t+n,r));for(let e=this.length-t;e<this.length;++e)this.setCell(e,n)}else for(let t=e;t<this.length;++t)this.setCell(t,n);e&&this.getWidth(e-1)===2&&this.setCellFromCodepoint(e-1,0,1,n),this.getWidth(e)===0&&!this.hasContent(e)&&this.setCellFromCodepoint(e,0,1,n)}replaceCells(e,t,n,r=!1){if(r)for(e&&this.getWidth(e-1)===2&&!this.isProtected(e-1)&&this.setCellFromCodepoint(e-1,0,1,n),t<this.length&&this.getWidth(t-1)===2&&!this.isProtected(t)&&this.setCellFromCodepoint(t,0,1,n);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,n),e++;else for(e&&this.getWidth(e-1)===2&&this.setCellFromCodepoint(e-1,0,1,n),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t,0,1,n);e<t&&e<this.length;)this.setCell(e++,n)}resize(e,t){if(e===this.length)return this._data.length*4*LC<this._data.buffer.byteLength;let n=e*$;if(e>this.length){if(this._data.buffer.byteLength>=n*4)this._data=new Uint32Array(this._data.buffer,0,n);else{let e=new Uint32Array(n);e.set(this._data),this._data=e}for(let n=this.length;n<e;++n)this.setCell(n,t)}else{this._data=this._data.subarray(0,n);let t=Object.keys(this._combined);for(let n=0;n<t.length;n++){let r=parseInt(t[n],10);r>=e&&delete this._combined[r]}let r=Object.keys(this._extendedAttrs);for(let t=0;t<r.length;t++){let n=parseInt(r[t],10);n>=e&&delete this._extendedAttrs[n]}}return this.length=e,n*4*LC<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*LC<this._data.buffer.byteLength){let e=new Uint32Array(this._data.length);return e.set(this._data),this._data=e,1}return 0}fill(e,t=!1){if(t)for(let t=0;t<this.length;++t)this.isProtected(t)||this.setCell(t,e);else{this._combined={},this._extendedAttrs={};for(let t=0;t<this.length;++t)this.setCell(t,e)}}copyFrom(e){this.length===e.length?this._data.set(e._data):this._data=new Uint32Array(e._data),this.length=e.length,this._combined={};for(let t in e._combined)this._combined[t]=e._combined[t];this._extendedAttrs={};for(let t in e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped}clone(){let t=new e(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let e in this._combined)t._combined[e]=this._combined[e];for(let e in this._extendedAttrs)t._extendedAttrs[e]=this._extendedAttrs[e];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(this._data[e*$+0]&4194303)return e+(this._data[e*$+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(this._data[e*$+0]&4194303||this._data[e*$+2]&50331648)return e+(this._data[e*$+0]>>22);return 0}copyCellsFrom(e,t,n,r,i){let a=e._data;if(i)for(let i=r-1;i>=0;i--){for(let e=0;e<$;e++)this._data[(n+i)*$+e]=a[(t+i)*$+e];a[(t+i)*$+2]&268435456&&(this._extendedAttrs[n+i]=e._extendedAttrs[t+i])}else for(let i=0;i<r;i++){for(let e=0;e<$;e++)this._data[(n+i)*$+e]=a[(t+i)*$+e];a[(t+i)*$+2]&268435456&&(this._extendedAttrs[n+i]=e._extendedAttrs[t+i])}let o=Object.keys(e._combined);for(let r=0;r<o.length;r++){let i=parseInt(o[r],10);i>=t&&(this._combined[i-t+n]=e._combined[i])}}translateToString(e,t,n,r){t??=0,n??=this.length,e&&(n=Math.min(n,this.getTrimmedLength())),r&&(r.length=0);let i=``;for(;t<n;){let e=this._data[t*$+0],n=e&2097151,a=e&2097152?this._combined[t]:n?J_(n):$_;if(i+=a,r)for(let e=0;e<a.length;++e)r.push(t);t+=e>>22||1}return r&&r.push(t),i}};function zC(e,t,n,r,i,a){let o=[];for(let s=0;s<e.length-1;s++){let c=s,l=e.get(++c);if(!l.isWrapped)continue;let u=[e.get(s)];for(;c<e.length&&l.isWrapped;)u.push(l),l=e.get(++c);if(!a&&r>=s&&r<c){s+=u.length-1;continue}let d=0,f=UC(u,d,t),p=1,m=0;for(;p<u.length;){let e=UC(u,p,t),r=e-m,a=n-f,o=Math.min(r,a);u[d].copyCellsFrom(u[p],m,f,o,!1),f+=o,f===n&&(d++,f=0),m+=o,m===e&&(p++,m=0),f===0&&d!==0&&u[d-1].getWidth(n-1)===2&&(u[d].copyCellsFrom(u[d-1],n-1,f++,1,!1),u[d-1].setCell(n-1,i))}u[d].replaceCells(f,n,i);let h=0;for(let e=u.length-1;e>0&&(e>d||u[e].getTrimmedLength()===0);e--)h++;h>0&&(o.push(s+u.length-h),o.push(h)),s+=u.length-1}return o}function BC(e,t){let n=[],r=0,i=t[r],a=0;for(let o=0;o<e.length;o++)if(i===o){let n=t[++r];e.onDeleteEmitter.fire({index:o-a,amount:n}),o+=n-1,a+=n,i=t[++r]}else n.push(o);return{layout:n,countRemoved:a}}function VC(e,t){let n=[];for(let r=0;r<t.length;r++)n.push(e.get(t[r]));for(let t=0;t<n.length;t++)e.set(t,n[t]);e.length=t.length}function HC(e,t,n){let r=[],i=e.map((n,r)=>UC(e,r,t)).reduce((e,t)=>e+t),a=0,o=0,s=0;for(;s<i;){if(i-s<n){r.push(i-s);break}a+=n;let c=UC(e,o,t);a>c&&(a-=c,o++);let l=e[o].getWidth(a-1)===2;l&&a--;let u=l?n-1:n;r.push(u),s+=u}return r}function UC(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(n-1)&&e[t].getWidth(n-1)===1,i=e[t+1].getWidth(0)===2;return r&&i?n-1:n}var WC=class e{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=e._nextId++,this._onDispose=this.register(new X),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),qv(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}};WC._nextId=1;var GC=WC,KC={},qC=KC.B;KC[0]={"`":`◆`,a:`▒`,b:`␉`,c:`␌`,d:`␍`,e:`␊`,f:`°`,g:`±`,h:``,i:`␋`,j:`┘`,k:`┐`,l:`┌`,m:`└`,n:`┼`,o:`⎺`,p:`⎻`,q:`─`,r:`⎼`,s:`⎽`,t:`├`,u:`┤`,v:`┴`,w:`┬`,x:`│`,y:`≤`,z:`≥`,"{":`π`,"|":`≠`,"}":`£`,"~":`·`},KC.A={"#":`£`},KC.B=void 0,KC[4]={"#":`£`,"@":`¾`,"[":`ij`,"\\":`½`,"]":`|`,"{":`¨`,"|":`f`,"}":`¼`,"~":`´`},KC.C=KC[5]={"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},KC.R={"#":`£`,"@":`à`,"[":`°`,"\\":`ç`,"]":`§`,"{":`é`,"|":`ù`,"}":`è`,"~":`¨`},KC.Q={"@":`à`,"[":`â`,"\\":`ç`,"]":`ê`,"^":`î`,"`":`ô`,"{":`é`,"|":`ù`,"}":`è`,"~":`û`},KC.K={"@":`§`,"[":`Ä`,"\\":`Ö`,"]":`Ü`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`ß`},KC.Y={"#":`£`,"@":`§`,"[":`°`,"\\":`ç`,"]":`é`,"`":`ù`,"{":`à`,"|":`ò`,"}":`è`,"~":`ì`},KC.E=KC[6]={"@":`Ä`,"[":`Æ`,"\\":`Ø`,"]":`Å`,"^":`Ü`,"`":`ä`,"{":`æ`,"|":`ø`,"}":`å`,"~":`ü`},KC.Z={"#":`£`,"@":`§`,"[":`¡`,"\\":`Ñ`,"]":`¿`,"{":`°`,"|":`ñ`,"}":`ç`},KC.H=KC[7]={"@":`É`,"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},KC[`=`]={"#":`ù`,"@":`à`,"[":`é`,"\\":`ç`,"]":`ê`,"^":`î`,_:`è`,"`":`ô`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`û`};var JC=4294967295,YC=class{constructor(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=FC.clone(),this.savedCharset=qC,this.markers=[],this._nullCell=nv.fromCharData([0,Q_,1,0]),this._whitespaceCell=nv.fromCharData([0,$_,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new KS,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new PC(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new tv),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new tv),this._whitespaceCell}getBlankLine(e,t){return new RC(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>JC?JC:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=FC);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new PC(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let n=this.getNullCell(FC),r=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(let t=0;t<this.lines.length;t++)r+=+this.lines.get(t).resize(e,n);let a=0;if(this._rows<t)for(let r=this._rows;r<t;r++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new RC(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new RC(e,n)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){let e=this.lines.length-i;e>0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let t=0;t<this.lines.length;t++)r+=+this.lines.get(t).resize(e,n);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),r>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend===`conpty`&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=zC(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(FC),n);if(r.length>0){let n=BC(this.lines,r);VC(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}}_reflowLargerAdjustViewport(e,t,n){let r=this.getNullCell(FC),i=n;for(;i-->0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new RC(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}_reflowSmaller(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=this.getNullCell(FC),i=[],a=0;for(let o=this.lines.length-1;o>=0;o--){let s=this.lines.get(o);if(!s||!s.isWrapped&&s.getTrimmedLength()<=e)continue;let c=[s];for(;s.isWrapped&&o>0;)s=this.lines.get(--o),c.unshift(s);if(!n){let e=this.ybase+this.y;if(e>=o&&e<o+c.length)continue}let l=c[c.length-1].getTrimmedLength(),u=HC(c,this._cols,e),d=u.length-c.length,f;f=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+d):Math.max(0,this.lines.length-this.lines.maxLength+d);let p=[];for(let e=0;e<d;e++){let e=this.getBlankLine(FC,!0);p.push(e)}p.length>0&&(i.push({start:o+c.length+a,newLines:p}),a+=p.length),c.push(...p);let m=u.length-1,h=u[m];h===0&&(m--,h=u[m]);let g=c.length-d-1,_=l;for(;g>=0;){let e=Math.min(_,h);if(c[m]===void 0)break;c[m].copyCellsFrom(c[g],_-e,h-e,e,!0),h-=e,h===0&&(m--,h=u[m]),_-=e,_===0&&(g--,_=UC(c,Math.max(g,0),this._cols))}for(let t=0;t<c.length;t++)u[t]<e&&c[t].setCell(u[t],r);let v=d-f;for(;v-->0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+a)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+d,this.ybase+t-1)}if(i.length>0){let e=[],t=[];for(let e=0;e<this.lines.length;e++)t.push(this.lines.get(e));let n=this.lines.length,r=n-1,o=0,s=i[o];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+a);let c=0;for(let l=Math.min(this.lines.maxLength-1,n+a-1);l>=0;l--)if(s&&s.start>r+c){for(let e=s.newLines.length-1;e>=0;e--)this.lines.set(l--,s.newLines[e]);l++,e.push({index:r+1,amount:s.newLines.length}),c+=s.newLines.length,s=i[++o]}else this.lines.set(l,t[r--]);let l=0;for(let t=e.length-1;t>=0;t--)e[t].index+=l,this.lines.onInsertEmitter.fire(e[t]),l+=e[t].amount;let u=Math.max(0,n+a-this.lines.maxLength);u>0&&this.lines.onTrimEmitter.fire(u)}}translateBufferLineToString(e,t,n=0,r){let i=this.lines.get(e);return i?i.translateToString(t,n,r):``}getWrappedRangeForLine(e){let t=e,n=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}setupTabStops(e){for(e==null?(this.tabs={},e=0):this.tabs[e]||(e=this.prevStop(e));e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e??=this.x;!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e??=this.x;!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new GC(e);return this.markers.push(t),t.register(this.lines.onTrim(e=>{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.line<e.index+e.amount&&t.dispose(),t.line>e.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},XC=class extends Y{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new X),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange(`scrollback`,()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange(`tabStopWidth`,()=>this.setupTabStops()))}reset(){this._normal=new YC(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new YC(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},ZC=2,QC=1,$C=class extends Y{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new X),this.onResize=this._onResize.event,this._onScroll=this._register(new X),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,ZC),this.rows=Math.max(e.rawOptions.rows||0,QC),this.buffers=this._register(new XC(e,this)),this._register(this.buffers.onBufferActivate(e=>{this._onScroll.fire(e.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let n=this.cols!==e,r=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:n,rowsChanged:r})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let n=this.buffer,r;r=this._cachedBlankLine,r&&r.length===this.cols&&r.getFg(0)===e.fg&&r.getBg(0)===e.bg||(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let i=n.ybase+n.scrollTop,a=n.ybase+n.scrollBottom;if(n.scrollTop===0){let e=n.lines.isFull;a===n.lines.length-1?e?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(a+1,0,r.clone()),e?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{let e=a-i+1;n.lines.shiftElements(i+1,e-1,-1),n.lines.set(a,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(e,t){let n=this.buffer;if(e<0){if(n.ydisp===0)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);let r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))}};$C=I_([J(0,hv)],$C);var ew={cols:80,rows:24,cursorBlink:!1,cursorStyle:`block`,cursorWidth:1,cursorInactiveStyle:`outline`,customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:`alt`,fastScrollSensitivity:5,fontFamily:`monospace`,fontSize:15,fontWeight:`normal`,fontWeightBold:`bold`,ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:`info`,logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:LS,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:` ()[]{}',"\``,altClickMovesCursor:!0,convertEol:!1,termName:`xterm`,cancelEvents:!1,overviewRuler:{}},tw=[`normal`,`bold`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`],nw=class extends Y{constructor(e){super(),this._onOptionChange=this._register(new X),this.onOptionChange=this._onOptionChange.event;let t={...ew};for(let n in e)if(n in t)try{let r=e[n];t[n]=this._sanitizeAndValidateOption(n,r)}catch(e){console.error(e)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(Yv(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(n=>{n===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(n=>{e.indexOf(n)!==-1&&t()})}_setupOptions(){let e=e=>{if(!(e in ew))throw Error(`No option with key "${e}"`);return this.rawOptions[e]},t=(e,t)=>{if(!(e in ew))throw Error(`No option with key "${e}"`);t=this._sanitizeAndValidateOption(e,t),this.rawOptions[e]!==t&&(this.rawOptions[e]=t,this._onOptionChange.fire(e))};for(let n in this.rawOptions){let r={get:e.bind(this,n),set:t.bind(this,n)};Object.defineProperty(this.options,n,r)}}_sanitizeAndValidateOption(e,t){switch(e){case`cursorStyle`:if(t||=ew[e],!rw(t))throw Error(`"${t}" is not a valid value for ${e}`);break;case`wordSeparator`:t||=ew[e];break;case`fontWeight`:case`fontWeightBold`:if(typeof t==`number`&&1<=t&&t<=1e3)break;t=tw.includes(t)?t:ew[e];break;case`cursorWidth`:t=Math.floor(t);case`lineHeight`:case`tabStopWidth`:if(t<1)throw Error(`${e} cannot be less than 1, value: ${t}`);break;case`minimumContrastRatio`:t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case`scrollback`:if(t=Math.min(t,4294967295),t<0)throw Error(`${e} cannot be less than 0, value: ${t}`);break;case`fastScrollSensitivity`:case`scrollSensitivity`:if(t<=0)throw Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case`rows`:case`cols`:if(!t&&t!==0)throw Error(`${e} must be numeric, value: ${t}`);break;case`windowsPty`:t??={}}return t}};function rw(e){return e===`block`||e===`underline`||e===`bar`}function iw(e,t=5){if(typeof e!=`object`)return e;let n=Array.isArray(e)?[]:{};for(let r in e)n[r]=t<=1?e[r]:e[r]&&iw(e[r],t-1);return n}var aw=Object.freeze({insertMode:!1}),ow=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),sw=class extends Y{constructor(e,t,n){super(),this._bufferService=e,this._logService=t,this._optionsService=n,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new X),this.onData=this._onData.event,this._onUserInput=this._register(new X),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new X),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new X),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=iw(aw),this.decPrivateModes=iw(ow)}reset(){this.modes=iw(aw),this.decPrivateModes=iw(ow)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace(`sending data (codes)`,()=>e.split(``).map(e=>e.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace(`sending binary (codes)`,()=>e.split(``).map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}};sw=I_([J(0,lv),J(1,mv),J(2,hv)],sw);var cw={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>e.action!==32||e.button!==3},ANY:{events:31,restrict:e=>!0}};function lw(e,t){let n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=e.button&3,e.button&4&&(n|=64),e.button&8&&(n|=128),e.action===32?n|=32:e.action===0&&!t&&(n|=3)),n}var uw=String.fromCharCode,dw={DEFAULT:e=>{let t=[lw(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?``:`\x1B[M${uw(t[0])}${uw(t[1])}${uw(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`\x1B[<${lw(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`\x1B[<${lw(e,!0)};${e.x};${e.y}${t}`}},fw=class extends Y{constructor(e,t,n){super(),this._bufferService=e,this._coreService=t,this._optionsService=n,this._protocols={},this._encodings={},this._activeProtocol=``,this._activeEncoding=``,this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new X),this.onProtocolChange=this._onProtocolChange.event;for(let e of Object.keys(cw))this.addProtocol(e,cw[e]);for(let e of Object.keys(dw))this.addEncoding(e,dw[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol=`NONE`,this.activeEncoding=`DEFAULT`,this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,n){if(e.deltaY===0||e.shiftKey||t===void 0||n===void 0)return 0;let r=t/n,i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=r+0,Math.abs(e.deltaY)<50&&(i*=.3),this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding===`SGR_PIXELS`))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding===`DEFAULT`?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,n){if(n){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};fw=I_([J(0,lv),J(1,dv),J(2,hv)],fw);var pw=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],mw=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],hw;function gw(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var _w=class{constructor(){if(this.version=`6`,!hw){hw=new Uint8Array(65536),hw.fill(1),hw[0]=0,hw.fill(0,1,32),hw.fill(0,127,160),hw.fill(2,4352,4448),hw[9001]=2,hw[9002]=2,hw.fill(2,11904,42192),hw[12351]=1,hw.fill(2,44032,55204),hw.fill(2,63744,64256),hw.fill(2,65040,65050),hw.fill(2,65072,65136),hw.fill(2,65280,65377),hw.fill(2,65504,65511);for(let e=0;e<pw.length;++e)hw.fill(0,pw[e][0],pw[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?hw[e]:gw(e,mw)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=vw.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return vw.createPropertyValue(0,n,r)}},vw=class e{constructor(){this._providers=Object.create(null),this._active=``,this._onChange=new X,this.onChange=this._onChange.event;let e=new _w;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return!!(e&1)}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,t,n=!1){return(e&16777215)<<3|(t&3)<<1|!!n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let a=0;a<i;++a){let o=t.charCodeAt(a);if(55296<=o&&o<=56319){if(++a>=i)return n+this.wcwidth(o);let e=t.charCodeAt(a);56320<=e&&e<=57343?o=(o-55296)*1024+e-56320+65536:n+=this.wcwidth(e)}let s=this.charProperties(o,r),c=e.extractWidth(s);e.extractShouldJoin(s)&&(c-=e.extractWidth(r)),n+=c,r=s}return n}charProperties(e,t){return this._activeProvider.charProperties(e,t)}},yw=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function bw(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&t&&(n.isWrapped=t[3]!==0&&t[3]!==32)}var xw=2147483647,Sw=256,Cw=class e{constructor(e=32,t=32){if(this.maxLength=e,this.maxSubParamsLength=t,t>Sw)throw Error(`maxSubParamsLength must not be greater than 256`);this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let n=new e;if(!t.length)return n;for(let e=+!!Array.isArray(t[0]);e<t.length;++e){let r=t[e];if(Array.isArray(r))for(let e=0;e<r.length;++e)n.addSubParam(r[e]);else n.addParam(r)}return n}clone(){let t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let e=[];for(let t=0;t<this.length;++t){e.push(this.params[t]);let n=this._subParamsIdx[t]>>8,r=this._subParamsIdx[t]&255;r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>xw?xw:e}}addSubParam(e){if(this._digitIsSub=!0,this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParams[this._subParamsLength++]=e>xw?xw:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(this._subParamsIdx[e]&255)-(this._subParamsIdx[e]>>8)>0}getSubParams(e){let t=this._subParamsIdx[e]>>8,n=this._subParamsIdx[e]&255;return n-t>0?this._subParams.subarray(t,n):null}getSubParamsAll(){let e={};for(let t=0;t<this.length;++t){let n=this._subParamsIdx[t]>>8,r=this._subParamsIdx[t]&255;r-n>0&&(e[t]=this._subParams.slice(n,r))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let n=this._digitIsSub?this._subParams:this.params,r=n[t-1];n[t-1]=~r?Math.min(r*10+e,xw):e}},ww=[],Tw=class{constructor(){this._state=0,this._active=ww,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=ww}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=ww,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||ww,!this._active.length)this._handlerFb(this._id,`START`);else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,n){if(!this._active.length)this._handlerFb(this._id,`PUT`,Y_(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}start(){this.reset(),this._state=1}put(e,t,n){if(this._state!==3){if(this._state===1)for(;t<n;){let n=e[t++];if(n===59){this._state=2,this._start();break}if(n<48||57<n){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+n-48}this._state===2&&n-t>0&&this._put(e,t,n)}}end(e,t=!0){if(this._state!==0){if(this._state!==3){if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,`END`,e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].end(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].end(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}}this._active=ww,this._id=-1,this._state=0}}},Ew=class{constructor(e){this._handler=e,this._data=``,this._hitLimit=!1}start(){this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=Y_(e,t,n),this._data.length>1e7&&(this._data=``,this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(e=>(this._data=``,this._hitLimit=!1,e));return this._data=``,this._hitLimit=!1,t}},Dw=[],Ow=class{constructor(){this._handlers=Object.create(null),this._active=Dw,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=Dw}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=Dw,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||Dw,!this._active.length)this._handlerFb(this._ident,`HOOK`,t);else for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(t)}put(e,t,n){if(!this._active.length)this._handlerFb(this._ident,`PUT`,Y_(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,`UNHOOK`,e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].unhook(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].unhook(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=Dw,this._ident=0}},kw=new Cw;kw.addParam(0);var Aw=class{constructor(e){this._handler=e,this._data=``,this._params=kw,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():kw,this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=Y_(e,t,n),this._data.length>1e7&&(this._data=``,this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(e=>(this._params=kw,this._data=``,this._hitLimit=!1,e));return this._params=kw,this._data=``,this._hitLimit=!1,t}},jw=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,n,r){this.table[t<<8|e]=n<<4|r}addMany(e,t,n,r){for(let i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r}},Mw=160,Nw=function(){let e=new jw(4095),t=Array.apply(null,Array(256)).map((e,t)=>t),n=(e,n)=>t.slice(e,n),r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));let a=n(0,14),o;for(o in e.setDefault(1,0),e.addMany(r,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(Mw,0,2,0),e.add(Mw,8,5,8),e.add(Mw,6,0,6),e.add(Mw,11,0,11),e.add(Mw,13,13,13),e}(),Pw=class extends Y{constructor(e=Nw){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new Cw,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(e,t,n)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(Yv(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new Tw),this._dcsParser=this._register(new Ow),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:`\\`},()=>!0)}_identifier(e,t=[64,126]){let n=0;if(e.prefix){if(e.prefix.length>1)throw Error(`only one byte as prefix supported`);if(n=e.prefix.charCodeAt(0),n&&60>n||n>63)throw Error(`prefix must be in range 0x3c .. 0x3f`)}if(e.intermediates){if(e.intermediates.length>2)throw Error(`only two bytes as intermediates are supported`);for(let t=0;t<e.intermediates.length;++t){let r=e.intermediates.charCodeAt(t);if(32>r||r>47)throw Error(`intermediate must be in range 0x20 .. 0x2f`);n<<=8,n|=r}}if(e.final.length!==1)throw Error(`final must be a single byte`);let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw Error(`final must be in range ${t[0]} .. ${t[1]}`);return n<<=8,n|=r,n}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join(``)}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let n=this._identifier(e,[48,126]);this._escHandlers[n]===void 0&&(this._escHandlers[n]=[]);let r=this._escHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let n=this._identifier(e);this._csiHandlers[n]===void 0&&(this._csiHandlers[n]=[]);let r=this._csiHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}parse(e,t,n){let r=0,i=0,a=0,o;if(this._parseStack.state){if(this._parseStack.state===2)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(n===void 0||this._parseStack.state===1)throw this._parseStack.state=1,Error(`improper continuation due to previous async handler, giving up parsing`);let t=this._parseStack.handlers,i=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(n===!1&&i>-1){for(;i>=0&&(o=t[i](this._params),o!==!0);i--)if(o instanceof Promise)return this._parseStack.handlerPos=i,o}this._parseStack.handlers=[];break;case 4:if(n===!1&&i>-1){for(;i>=0&&(o=t[i](),o!==!0);i--)if(o instanceof Promise)return this._parseStack.handlerPos=i,o}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],o=this._dcsParser.unhook(r!==24&&r!==26,n),o)return o;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],o=this._oscParser.end(r!==24&&r!==26,n),o)return o;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}}for(let n=a;n<t;++n){switch(r=e[n],i=this._transitions.table[this.currentState<<8|(r<160?r:Mw)],i>>4){case 2:for(let i=n+1;;++i)if(i>=t||(r=e[i])<32||r>126&&r<Mw||++i>=t||(r=e[i])<32||r>126&&r<Mw||++i>=t||(r=e[i])<32||r>126&&r<Mw||++i>=t||(r=e[i])<32||r>126&&r<Mw){this._printHandler(e,n,i),n=i-1;break}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:n,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let a=this._csiHandlers[this._collect<<8|r],s=a?a.length-1:-1;for(;s>=0&&(o=a[s](this._params),o!==!0);s--)if(o instanceof Promise)return this._preserveStack(3,a,s,i,n),o;s<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++n<t&&(r=e[n])>47&&r<60);n--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let c=this._escHandlers[this._collect<<8|r],l=c?c.length-1:-1;for(;l>=0&&(o=c[l](),o!==!0);l--)if(o instanceof Promise)return this._preserveStack(4,c,l,i,n),o;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let i=n+1;;++i)if(i>=t||(r=e[i])===24||r===26||r===27||r>127&&r<Mw){this._dcsParser.put(e,n,i),n=i-1;break}break;case 14:if(o=this._dcsParser.unhook(r!==24&&r!==26),o)return this._preserveStack(6,[],0,i,n),o;r===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let i=n+1;;i++)if(i>=t||(r=e[i])<32||r>127&&r<Mw){this._oscParser.put(e,n,i),n=i-1;break}break;case 6:if(o=this._oscParser.end(r!==24&&r!==26),o)return this._preserveStack(5,[],0,i,n),o;r===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=i&15}}},Fw=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,Iw=/^[\da-f]+$/;function Lw(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf(`rgb:`)===0){t=t.slice(4);let e=Fw.exec(t);if(e){let t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(t.indexOf(`#`)===0&&(t=t.slice(1),Iw.exec(t)&&[3,6,9,12].includes(t.length))){let e=t.length/3,n=[0,0,0];for(let r=0;r<3;++r){let i=parseInt(t.slice(e*r,e*r+e),16);n[r]=e===1?i<<4:e===2?i:e===3?i>>4:i>>8}return n}}function Rw(e,t){let n=e.toString(16),r=n.length<2?`0`+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}function zw(e,t=16){let[n,r,i]=e;return`rgb:${Rw(n,t)}/${Rw(r,t)}/${Rw(i,t)}`}var Bw={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Vw=131072,Hw=10;function Uw(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var Ww=5e3,Gw=0,Kw=class extends Y{constructor(e,t,n,r,i,a,o,s,c=new Pw){super(),this._bufferService=e,this._charsetService=t,this._coreService=n,this._logService=r,this._optionsService=i,this._oscLinkService=a,this._coreMouseService=o,this._unicodeService=s,this._parser=c,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new X_,this._utf8Decoder=new Z_,this._windowTitle=``,this._iconName=``,this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=FC.clone(),this._eraseAttrDataInternal=FC.clone(),this._onRequestBell=this._register(new X),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new X),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new X),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new X),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new X),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new X),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new X),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new X),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new X),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new X),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new X),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new X),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new X),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new qw(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug(`Unknown CSI code: `,{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug(`Unknown ESC code: `,{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug(`Unknown EXECUTE code: `,{code:e})}),this._parser.setOscHandlerFallback((e,t,n)=>{this._logService.debug(`Unknown OSC code: `,{identifier:e,action:t,data:n})}),this._parser.setDcsHandlerFallback((e,t,n)=>{t===`HOOK`&&(n=n.toArray()),this._logService.debug(`Unknown DCS code: `,{identifier:this._parser.identToString(e),action:t,payload:n})}),this._parser.setPrintHandler((e,t,n)=>this.print(e,t,n)),this._parser.registerCsiHandler({final:`@`},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:` `,final:`@`},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:`A`},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:` `,final:`A`},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:`B`},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:`C`},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:`D`},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:`E`},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:`F`},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:`G`},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:`H`},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:`I`},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:`J`},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:`?`,final:`J`},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:`K`},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:`?`,final:`K`},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:`L`},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:`M`},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:`P`},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:`S`},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:`T`},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:`X`},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:`Z`},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:`a`},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:`b`},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:`c`},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:`>`,final:`c`},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:`d`},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:`e`},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:`f`},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:`g`},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:`h`},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:`?`,final:`h`},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:`l`},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:`?`,final:`l`},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:`m`},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:`n`},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:`?`,final:`n`},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:`!`,final:`p`},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:` `,final:`q`},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:`r`},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:`s`},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:`t`},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:`u`},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:`'`,final:`}`},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:`'`,final:`~`},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:`"`,final:`q`},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:`$`,final:`p`},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:`?`,intermediates:`$`,final:`p`},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(Q.BEL,()=>this.bell()),this._parser.setExecuteHandler(Q.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(Q.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(Q.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(Q.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(Q.BS,()=>this.backspace()),this._parser.setExecuteHandler(Q.HT,()=>this.tab()),this._parser.setExecuteHandler(Q.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(Q.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Lx.IND,()=>this.index()),this._parser.setExecuteHandler(Lx.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Lx.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new Ew(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new Ew(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new Ew(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new Ew(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new Ew(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new Ew(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new Ew(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new Ew(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new Ew(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new Ew(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new Ew(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new Ew(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:`7`},()=>this.saveCursor()),this._parser.registerEscHandler({final:`8`},()=>this.restoreCursor()),this._parser.registerEscHandler({final:`D`},()=>this.index()),this._parser.registerEscHandler({final:`E`},()=>this.nextLine()),this._parser.registerEscHandler({final:`H`},()=>this.tabSet()),this._parser.registerEscHandler({final:`M`},()=>this.reverseIndex()),this._parser.registerEscHandler({final:`=`},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:`>`},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:`c`},()=>this.fullReset()),this._parser.registerEscHandler({final:`n`},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:`o`},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:`|`},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:`}`},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:`~`},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:`%`,final:`@`},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:`%`,final:`G`},()=>this.selectDefaultCharset());for(let e in KC)this._parser.registerEscHandler({intermediates:`(`,final:e},()=>this.selectCharset(`(`+e)),this._parser.registerEscHandler({intermediates:`)`,final:e},()=>this.selectCharset(`)`+e)),this._parser.registerEscHandler({intermediates:`*`,final:e},()=>this.selectCharset(`*`+e)),this._parser.registerEscHandler({intermediates:`+`,final:e},()=>this.selectCharset(`+`+e)),this._parser.registerEscHandler({intermediates:`-`,final:e},()=>this.selectCharset(`-`+e)),this._parser.registerEscHandler({intermediates:`.`,final:e},()=>this.selectCharset(`.`+e)),this._parser.registerEscHandler({intermediates:`/`,final:e},()=>this.selectCharset(`/`+e));this._parser.registerEscHandler({intermediates:`#`,final:`8`},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error(`Parsing error: `,e),e)),this._parser.registerDcsHandler({intermediates:`$`,final:`q`},new Aw((e,t)=>this.requestStatusString(e,t)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t(`#SLOW_TIMEOUT`),Ww))]).catch(e=>{if(e!==`#SLOW_TIMEOUT`)throw e;console.warn(`async parser handler taking longer than ${Ww} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let n,r=this._activeBuffer.x,i=this._activeBuffer.y,a=0,o=this._parseStack.paused;if(o){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Vw&&(a=this._parseStack.position+Vw)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e==`string`?` "${e}"`:` "${Array.prototype.map.call(e,e=>String.fromCharCode(e)).join(``)}"`}`),this._logService.logLevel===0&&this._logService.trace(`parsing data (codes)`,typeof e==`string`?e.split(``).map(e=>e.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<Vw&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Vw))),o||this._dirtyRowTracker.clearRange(),e.length>Vw)for(let t=a;t<e.length;t+=Vw){let a=t+Vw<e.length?t+Vw:e.length,o=typeof e==`string`?this._stringDecoder.decode(e.substring(t,a),this._parseBuffer):this._utf8Decoder.decode(e.subarray(t,a),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,o))return this._preserveStack(r,i,o,t),this._logSlowResolvingAsync(n),n}else if(!o){let t=typeof e==`string`?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,t))return this._preserveStack(r,i,t,0),this._logSlowResolvingAsync(n),n}(this._activeBuffer.x!==r||this._activeBuffer.y!==i)&&this._onCursorMove.fire();let s=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),c=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);c<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(c,this._bufferService.rows-1),end:Math.min(s,this._bufferService.rows-1)})}print(e,t,n){let r,i,a=this._charsetService.charset,o=this._optionsService.rawOptions.screenReaderMode,s=this._bufferService.cols,c=this._coreService.decPrivateModes.wraparound,l=this._coreService.modes.insertMode,u=this._curAttrData,d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&n-t>0&&d.getWidth(this._activeBuffer.x-1)===2&&d.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let f=this._parser.precedingJoinState;for(let p=t;p<n;++p){if(r=e[p],r<127&&a){let e=a[String.fromCharCode(r)];e&&(r=e.charCodeAt(0))}let t=this._unicodeService.charProperties(r,f);i=vw.extractWidth(t);let n=vw.extractShouldJoin(t),m=n?vw.extractWidth(f):0;if(f=t,o&&this._onA11yChar.fire(J_(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+i-m>s){if(c){let e=d,t=this._activeBuffer.x-m;for(this._activeBuffer.x=m,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),m>0&&d instanceof RC&&d.copyCellsFrom(e,t,0,m,!1);t<s;)e.setCellFromCodepoint(t++,0,1,u)}else if(this._activeBuffer.x=s-1,i===2)continue}if(n&&this._activeBuffer.x){let e=d.getWidth(this._activeBuffer.x-1)?1:2;d.addCodepointToCell(this._activeBuffer.x-e,r,i);for(let e=i-m;--e>=0;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}else if(l&&(d.insertCells(this._activeBuffer.x,i-m,this._activeBuffer.getNullCell(u)),d.getWidth(s-1)===2&&d.setCellFromCodepoint(s-1,0,1,u)),d.setCellFromCodepoint(this._activeBuffer.x++,r,i,u),i>0)for(;--i;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=f,this._activeBuffer.x<s&&n-t>0&&d.getWidth(this._activeBuffer.x)===0&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final===`t`&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,e=>!Uw(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new Aw(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new Ew(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,n,r=!1,i=!1){let a=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);a.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),i),r&&(a.isWrapped=!1)}_resetBufferLine(e,t=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}eraseInDisplay(e,t=!1){this._restrictCursor(this._bufferService.cols);let n;switch(e.params[0]){case 0:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);n<this._bufferService.rows;n++)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(n);break;case 1:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(n+1).isWrapped=!1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(n=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,n-1);n--&&!this._activeBuffer.lines.get(this._activeBuffer.ybase+n)?.getTrimmedLength(););for(;n>=0;n--)this._bufferService.scroll(this._eraseAttrData())}else{for(n=this._bufferService.rows,this._dirtyRowTracker.markDirty(n-1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;for(;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(FC));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let n=e.params[0]||1,r=vw.extractWidth(t),i=this._activeBuffer.x-r,a=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(i),o=new Uint32Array(a.length*n),s=0;for(let e=0;e<a.length;){let t=a.codePointAt(e)||0;o[s++]=t,e+=t>65535?2:1}let c=s;for(let e=1;e<n;++e)o.copyWithin(c,0,s),c+=s;return this.print(o,0,c),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is(`xterm`)||this._is(`rxvt-unicode`)||this._is(`screen`)?this._coreService.triggerDataEvent(Q.ESC+`[?1;2c`):this._is(`linux`)&&this._coreService.triggerDataEvent(Q.ESC+`[?6c`)),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is(`xterm`)?this._coreService.triggerDataEvent(Q.ESC+`[>0;276;0c`):this._is(`rxvt-unicode`)?this._coreService.triggerDataEvent(Q.ESC+`[>85;95;0c`):this._is(`linux`)?this._coreService.triggerDataEvent(e.params[0]+`c`):this._is(`screen`)&&this._coreService.triggerDataEvent(Q.ESC+`[>83;40003;0c`)),!0}_is(e){return(this._optionsService.rawOptions.termName+``).indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,qC),this._charsetService.setgCharset(1,qC),this._charsetService.setgCharset(2,qC),this._charsetService.setgCharset(3,qC);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug(`Serial port requested application keypad.`),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol=`X10`;break;case 1e3:this._coreMouseService.activeProtocol=`VT200`;break;case 1002:this._coreMouseService.activeProtocol=`DRAG`;break;case 1003:this._coreMouseService.activeProtocol=`ANY`;break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug(`DECSET 1005 not supported (see #2507)`);break;case 1006:this._coreMouseService.activeEncoding=`SGR`;break;case 1015:this._logService.debug(`DECSET 1015 not supported (see #2507)`);break;case 1016:this._coreMouseService.activeEncoding=`SGR_PIXELS`;break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug(`Switching back to normal keypad.`),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol=`NONE`;break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug(`DECRST 1005 not supported (see #2507)`);break;case 1006:this._coreMouseService.activeEncoding=`DEFAULT`;break;case 1015:this._logService.debug(`DECRST 1015 not supported (see #2507)`);break;case 1016:this._coreMouseService.activeEncoding=`DEFAULT`;break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0)}return!0}requestMode(e,t){let n;(e=>(e[e.NOT_RECOGNIZED=0]=`NOT_RECOGNIZED`,e[e.SET=1]=`SET`,e[e.RESET=2]=`RESET`,e[e.PERMANENTLY_SET=3]=`PERMANENTLY_SET`,e[e.PERMANENTLY_RESET=4]=`PERMANENTLY_RESET`))(n||={});let r=this._coreService.decPrivateModes,{activeProtocol:i,activeEncoding:a}=this._coreMouseService,o=this._coreService,{buffers:s,cols:c}=this._bufferService,{active:l,alt:u}=s,d=this._optionsService.rawOptions,f=(e,n)=>(o.triggerDataEvent(`${Q.ESC}[${t?``:`?`}${e};${n}$y`),!0),p=e=>e?1:2,m=e.params[0];return t?m===2?f(m,4):m===4?f(m,p(o.modes.insertMode)):m===12?f(m,3):m===20?f(m,p(d.convertEol)):f(m,0):m===1?f(m,p(r.applicationCursorKeys)):m===3?f(m,d.windowOptions.setWinLines?c===80?2:+(c===132):0):m===6?f(m,p(r.origin)):m===7?f(m,p(r.wraparound)):m===8?f(m,3):m===9?f(m,p(i===`X10`)):m===12?f(m,p(d.cursorBlink)):m===25?f(m,p(!o.isCursorHidden)):m===45?f(m,p(r.reverseWraparound)):m===66?f(m,p(r.applicationKeypad)):m===67?f(m,4):m===1e3?f(m,p(i===`VT200`)):m===1002?f(m,p(i===`DRAG`)):m===1003?f(m,p(i===`ANY`)):m===1004?f(m,p(r.sendFocus)):m===1005?f(m,4):m===1006?f(m,p(a===`SGR`)):m===1015?f(m,4):m===1016?f(m,p(a===`SGR_PIXELS`)):m===1048?f(m,1):m===47||m===1047||m===1049?f(m,p(l===u)):m===2004?f(m,p(r.bracketedPasteMode)):m===2026?f(m,p(r.synchronizedOutput)):f(m,0)}_updateAttrColor(e,t,n,r,i){return t===2?(e|=50331648,e&=-16777216,e|=ev.fromColorRGB([n,r,i])):t===5&&(e&=-50331904,e|=33554432|n&255),e}_extractColor(e,t,n){let r=[0,0,-1,0,0,0],i=0,a=0;do{if(r[a+i]=e.params[t+a],e.hasSubParams(t+a)){let n=e.getSubParams(t+a),o=0;do r[1]===5&&(i=1),r[a+o+1+i]=n[o];while(++o<n.length&&o+a+1+i<r.length);break}if(r[1]===5&&a+i>=2||r[1]===2&&a+i>=5)break;r[1]&&(i=1)}while(++a+t<e.length&&a+i<r.length);for(let e=2;e<r.length;++e)r[e]===-1&&(r[e]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[5])}return a}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=FC.fg,e.bg=FC.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,n,r=this._curAttrData;for(let i=0;i<t;i++)n=e.params[i],n>=30&&n<=37?(r.fg&=-50331904,r.fg|=16777216|n-30):n>=40&&n<=47?(r.bg&=-50331904,r.bg|=16777216|n-40):n>=90&&n<=97?(r.fg&=-50331904,r.fg|=n-90|16777224):n>=100&&n<=107?(r.bg&=-50331904,r.bg|=n-100|16777224):n===0?this._processSGR0(r):n===1?r.fg|=134217728:n===3?r.bg|=67108864:n===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):n===5?r.fg|=536870912:n===7?r.fg|=67108864:n===8?r.fg|=1073741824:n===9?r.fg|=2147483648:n===2?r.bg|=134217728:n===21?this._processUnderline(2,r):n===22?(r.fg&=-134217729,r.bg&=-134217729):n===23?r.bg&=-67108865:n===24?(r.fg&=-268435457,this._processUnderline(0,r)):n===25?r.fg&=-536870913:n===27?r.fg&=-67108865:n===28?r.fg&=-1073741825:n===29?r.fg&=2147483647:n===39?(r.fg&=-67108864,r.fg|=FC.fg&16777215):n===49?(r.bg&=-67108864,r.bg|=FC.bg&16777215):n===38||n===48||n===58?i+=this._extractColor(e,i,r):n===53?r.bg|=1073741824:n===55?r.bg&=-1073741825:n===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):n===100?(r.fg&=-67108864,r.fg|=FC.fg&16777215,r.bg&=-67108864,r.bg|=FC.bg&16777215):this._logService.debug(`Unknown SGR attribute: %d.`,n);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${Q.ESC}[0n`);break;case 6:let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${Q.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(e.params[0]===6){let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${Q.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=FC.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle=`block`;break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle=`underline`;break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle=`bar`}let e=t%2==1;this._coreService.decPrivateModes.cursorBlink=e}return!0}setScrollRegion(e){let t=e.params[0]||1,n;return(e.length<2||(n=e.params[1])>this._bufferService.rows||n===0)&&(n=this._bufferService.rows),n>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=n-1,this._setCursor(0,0)),!0}windowOptions(e){if(!Uw(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${Q.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>Hw&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>Hw&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],n=e.split(`;`);for(;n.length>1;){let e=n.shift(),r=n.shift();if(/^\d+$/.exec(e)){let n=parseInt(e);if(Jw(n)){if(r===`?`)t.push({type:0,index:n});else{let e=Lw(r);e&&t.push({type:1,index:n,color:e})}}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(`;`);if(t===-1)return!0;let n=e.slice(0,t).trim(),r=e.slice(t+1);return r?this._createHyperlink(n,r):!n.trim()&&this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let n=e.split(`:`),r,i=n.findIndex(e=>e.startsWith(`id=`));return i!==-1&&(r=n[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let n=e.split(`;`);for(let e=0;e<n.length&&!(t>=this._specialColors.length);++e,++t)if(n[e]===`?`)this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let r=Lw(n[e]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],n=e.split(`;`);for(let e=0;e<n.length;++e)if(/^\d+$/.exec(n[e])){let r=parseInt(n[e]);Jw(r)&&t.push({type:2,index:r})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug(`Serial port requested application keypad.`),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug(`Switching back to normal keypad.`),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,qC),!0}selectCharset(e){return e.length===2?(e[0]===`/`||this._charsetService.setgCharset(Bw[e[0]],KC[e[1]]||qC),!0):(this.selectDefaultCharset(),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=FC.clone(),this._eraseAttrDataInternal=FC.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new nv;e.content=4194373,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let n=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let n=e=>(this._coreService.triggerDataEvent(`${Q.ESC}${e}${Q.ESC}\\`),!0),r=this._bufferService.buffer,i=this._optionsService.rawOptions;return n(e===`"q`?`P1$r${+!!this._curAttrData.isProtected()}"q`:e===`"p`?`P1$r61;1"p`:e===`r`?`P1$r${r.scrollTop+1};${r.scrollBottom+1}r`:e===`m`?`P1$r0m`:e===` q`?`P1$r${{block:2,underline:4,bar:6}[i.cursorStyle]-+!!i.cursorBlink} q`:`P0$r`)}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},qw=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(Gw=e,e=t,t=Gw),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};qw=I_([J(0,lv)],qw);function Jw(e){return 0<=e&&e<256}var Yw=5e7,Xw=12,Zw=50,Qw=class extends Y{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new X),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let n;for(;n=this._writeBuffer.shift();){this._action(n);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>Yw)throw Error(`write data discarded, use flow control to avoid losing data`);if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let n=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],r=this._action(e,t);if(r){r.catch(e=>(queueMicrotask(()=>{throw e}),Promise.resolve(!1))).then(e=>performance.now()-n>=Xw?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(n,e));return}let i=this._callbacks[this._bufferOffset];if(i&&i(),this._bufferOffset++,this._pendingData-=e.length,performance.now()-n>=Xw)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>Zw&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},$w=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let n=t.addMarker(t.ybase+t.y),r={data:e,id:this._nextId++,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(r,n)),this._dataByLinkId.set(r.id,r),r.id}let n=e,r=this._getEntryIdKey(n),i=this._entriesWithId.get(r);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let a=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(n),data:n,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(o,a)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){let n=this._dataByLinkId.get(e);if(n&&n.lines.every(e=>e.line!==t)){let e=this._bufferService.buffer.addMarker(t);n.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(n,e))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let n=e.lines.indexOf(t);n!==-1&&(e.lines.splice(n,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};$w=I_([J(0,lv)],$w);var eT=!1,tT=class extends Y{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Qv),this._onBinary=this._register(new X),this.onBinary=this._onBinary.event,this._onData=this._register(new X),this.onData=this._onData.event,this._onLineFeed=this._register(new X),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new X),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new X),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new X),this._instantiationService=new kC,this.optionsService=this._register(new nw(e)),this._instantiationService.setService(hv,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance($C)),this._instantiationService.setService(lv,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(MC)),this._instantiationService.setService(mv,this._logService),this.coreService=this._register(this._instantiationService.createInstance(sw)),this._instantiationService.setService(dv,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(fw)),this._instantiationService.setService(uv,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(vw)),this._instantiationService.setService(_v,this.unicodeService),this._charsetService=this._instantiationService.createInstance(yw),this._instantiationService.setService(fv,this._charsetService),this._oscLinkService=this._instantiationService.createInstance($w),this._instantiationService.setService(gv,this._oscLinkService),this._inputHandler=this._register(new Kw(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(ay.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(ay.forward(this._bufferService.onResize,this._onResize)),this._register(ay.forward(this.coreService.onData,this._onData)),this._register(ay.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange([`windowsMode`,`windowsPty`],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new Qw((e,t)=>this._inputHandler.parse(e,t))),this._register(ay.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new X),this._onScroll.event(e=>{this._onScrollApi?.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!eT&&(this._logService.warn(`writeSync is unreliable and will be removed soon.`),eT=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,ZC),t=Math.max(t,QC),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend===`conpty`&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(bw.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:`H`},()=>(bw(this._bufferService),!1))),this._windowsWrappingHeuristics.value=Yv(()=>{for(let t of e)t.dispose()})}}},nT={48:[`0`,`)`],49:[`1`,`!`],50:[`2`,`@`],51:[`3`,`#`],52:[`4`,`$`],53:[`5`,`%`],54:[`6`,`^`],55:[`7`,`&`],56:[`8`,`*`],57:[`9`,`(`],186:[`;`,`:`],187:[`=`,`+`],188:[`,`,`<`],189:[`-`,`_`],190:[`.`,`>`],191:[`/`,`?`],192:["`",`~`],219:[`[`,`{`],220:[`\\`,`|`],221:[`]`,`}`],222:[`'`,`"`]};function rT(e,t,n,r){let i={type:0,cancel:!1,key:void 0},a=+!!e.shiftKey|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key===`UIKeyInputUpArrow`?i.key=t?Q.ESC+`OA`:Q.ESC+`[A`:e.key===`UIKeyInputLeftArrow`?i.key=t?Q.ESC+`OD`:Q.ESC+`[D`:e.key===`UIKeyInputRightArrow`?i.key=t?Q.ESC+`OC`:Q.ESC+`[C`:e.key===`UIKeyInputDownArrow`&&(i.key=t?Q.ESC+`OB`:Q.ESC+`[B`);break;case 8:i.key=e.ctrlKey?`\b`:Q.DEL,e.altKey&&(i.key=Q.ESC+i.key);break;case 9:if(e.shiftKey){i.key=Q.ESC+`[Z`;break}i.key=Q.HT,i.cancel=!0;break;case 13:i.key=e.altKey?Q.ESC+Q.CR:Q.CR,i.cancel=!0;break;case 27:i.key=Q.ESC,e.altKey&&(i.key=Q.ESC+Q.ESC),i.cancel=!0;break;case 37:if(e.metaKey)break;i.key=a?Q.ESC+`[1;`+(a+1)+`D`:t?Q.ESC+`OD`:Q.ESC+`[D`;break;case 39:if(e.metaKey)break;i.key=a?Q.ESC+`[1;`+(a+1)+`C`:t?Q.ESC+`OC`:Q.ESC+`[C`;break;case 38:if(e.metaKey)break;i.key=a?Q.ESC+`[1;`+(a+1)+`A`:t?Q.ESC+`OA`:Q.ESC+`[A`;break;case 40:if(e.metaKey)break;i.key=a?Q.ESC+`[1;`+(a+1)+`B`:t?Q.ESC+`OB`:Q.ESC+`[B`;break;case 45:!e.shiftKey&&!e.ctrlKey&&(i.key=Q.ESC+`[2~`);break;case 46:i.key=a?Q.ESC+`[3;`+(a+1)+`~`:Q.ESC+`[3~`;break;case 36:i.key=a?Q.ESC+`[1;`+(a+1)+`H`:t?Q.ESC+`OH`:Q.ESC+`[H`;break;case 35:i.key=a?Q.ESC+`[1;`+(a+1)+`F`:t?Q.ESC+`OF`:Q.ESC+`[F`;break;case 33:e.shiftKey?i.type=2:i.key=e.ctrlKey?Q.ESC+`[5;`+(a+1)+`~`:Q.ESC+`[5~`;break;case 34:e.shiftKey?i.type=3:i.key=e.ctrlKey?Q.ESC+`[6;`+(a+1)+`~`:Q.ESC+`[6~`;break;case 112:i.key=a?Q.ESC+`[1;`+(a+1)+`P`:Q.ESC+`OP`;break;case 113:i.key=a?Q.ESC+`[1;`+(a+1)+`Q`:Q.ESC+`OQ`;break;case 114:i.key=a?Q.ESC+`[1;`+(a+1)+`R`:Q.ESC+`OR`;break;case 115:i.key=a?Q.ESC+`[1;`+(a+1)+`S`:Q.ESC+`OS`;break;case 116:i.key=a?Q.ESC+`[15;`+(a+1)+`~`:Q.ESC+`[15~`;break;case 117:i.key=a?Q.ESC+`[17;`+(a+1)+`~`:Q.ESC+`[17~`;break;case 118:i.key=a?Q.ESC+`[18;`+(a+1)+`~`:Q.ESC+`[18~`;break;case 119:i.key=a?Q.ESC+`[19;`+(a+1)+`~`:Q.ESC+`[19~`;break;case 120:i.key=a?Q.ESC+`[20;`+(a+1)+`~`:Q.ESC+`[20~`;break;case 121:i.key=a?Q.ESC+`[21;`+(a+1)+`~`:Q.ESC+`[21~`;break;case 122:i.key=a?Q.ESC+`[23;`+(a+1)+`~`:Q.ESC+`[23~`;break;case 123:i.key=a?Q.ESC+`[24;`+(a+1)+`~`:Q.ESC+`[24~`;break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?i.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?i.key=Q.NUL:e.keyCode>=51&&e.keyCode<=55?i.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?i.key=Q.DEL:e.keyCode===219?i.key=Q.ESC:e.keyCode===220?i.key=Q.FS:e.keyCode===221&&(i.key=Q.GS);else if((!n||r)&&e.altKey&&!e.metaKey){let t=nT[e.keyCode]?.[+!!e.shiftKey];if(t)i.key=Q.ESC+t;else if(e.keyCode>=65&&e.keyCode<=90){let t=e.ctrlKey?e.keyCode-64:e.keyCode+32,n=String.fromCharCode(t);e.shiftKey&&(n=n.toUpperCase()),i.key=Q.ESC+n}else if(e.keyCode===32)i.key=Q.ESC+(e.ctrlKey?Q.NUL:` `);else if(e.key===`Dead`&&e.code.startsWith(`Key`)){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),i.key=Q.ESC+t,i.cancel=!0}}else n&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(i.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?i.key=e.key:e.key&&e.ctrlKey&&(e.key===`_`&&(i.key=Q.US),e.key===`@`&&(i.key=Q.NUL))}return i}var iT=0,aT=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new KS,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new KS,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((e,t)=>this._getKey(e)-this._getKey(t)),t=0,n=0,r=Array(this._array.length+this._insertedValues.length);for(let i=0;i<r.length;i++)n>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[n])?(r[i]=e[t],t++):r[i]=this._array[n++];this._array=r,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(iT=this._search(t),iT===-1)||this._getKey(this._array[iT])!==t)return!1;do if(this._array[iT]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(iT),!0;while(++iT<this._array.length&&this._getKey(this._array[iT])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((e,t)=>e-t),t=0,n=Array(this._array.length-e.length),r=0;for(let i=0;i<this._array.length;i++)e[t]===i?t++:n[r++]=this._array[i];this._array=n,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(iT=this._search(e),!(iT<0||iT>=this._array.length)&&this._getKey(this._array[iT])===e))do yield this._array[iT];while(++iT<this._array.length&&this._getKey(this._array[iT])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(iT=this._search(e),!(iT<0||iT>=this._array.length)&&this._getKey(this._array[iT])===e))do t(this._array[iT]);while(++iT<this._array.length&&this._getKey(this._array[iT])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,n=this._array.length-1;for(;n>=t;){let r=t+n>>1,i=this._getKey(this._array[r]);if(i>e)n=r-1;else if(i<e)t=r+1;else{for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}}return t}},oT=0,sT=0,cT=class extends Y{constructor(){super(),this._decorations=new aT(e=>e?.marker.line),this._onDecorationRegistered=this._register(new X),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new X),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(Yv(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new lT(e);if(t){let e=t.marker.onDispose(()=>t.dispose()),n=t.onDispose(()=>{n.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,n){let r=0,i=0;for(let a of this._decorations.getKeyIterator(t))r=a.options.x??0,i=r+(a.options.width??1),e>=r&&e<i&&(!n||(a.options.layer??`bottom`)===n)&&(yield a)}forEachDecorationAtCell(e,t,n,r){this._decorations.forEachByKey(t,t=>{oT=t.options.x??0,sT=oT+(t.options.width??1),e>=oT&&e<sT&&(!n||(t.options.layer??`bottom`)===n)&&r(t)})}},lT=class extends Zv{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new X),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new X),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position=`full`)}get backgroundColorRGB(){return this._cachedBg===null&&(this._cachedBg=this.options.backgroundColor?qx.toColor(this.options.backgroundColor):void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this._cachedFg=this.options.foregroundColor?qx.toColor(this.options.foregroundColor):void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},uT=1e3,dT=class{constructor(e,t=uT){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,n){this._rowCount=n,e=e===void 0?0:e,t=t===void 0?this._rowCount-1:t,this._rowStart=this._rowStart===void 0?e:Math.min(this._rowStart,e),this._rowEnd=this._rowEnd===void 0?t:Math.max(this._rowEnd,t);let r=performance.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){let e=r-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},fT=20,pT=class extends Y{constructor(e,t,n,r){super(),this._terminal=e,this._coreBrowserService=n,this._renderService=r,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce=``;let i=this._coreBrowserService.mainDocument;this._accessibilityContainer=i.createElement(`div`),this._accessibilityContainer.classList.add(`xterm-accessibility`),this._rowContainer=i.createElement(`div`),this._rowContainer.setAttribute(`role`,`list`),this._rowContainer.classList.add(`xterm-accessibility-tree`),this._rowElements=[];for(let e=0;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);if(this._topBoundaryFocusListener=e=>this._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener(`focus`,this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=i.createElement(`div`),this._liveRegion.classList.add(`live-region`),this._liveRegion.setAttribute(`aria-live`,`assertive`),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new dT(this._renderRows.bind(this))),!this._terminal.element)throw Error(`Cannot enable accessibility before Terminal.open`);this._terminal.element.insertAdjacentElement(`afterbegin`,this._accessibilityContainer),this._register(this._terminal.onResize(e=>this._handleResize(e.rows))),this._register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(e=>this._handleChar(e))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
104
|
-
`))),this._register(this._terminal.onA11yTab(e=>this._handleTab(e))),this._register(this._terminal.onKey(e=>this._handleKey(e.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Z(i,`selectionchange`,()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(Yv(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(` `)}_handleChar(e){this._liveRegionLineCount<fT+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
105
|
-
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===fT+1&&(this._liveRegion.textContent+=B_.get())))}_clearLiveRegion(){this._liveRegion.textContent=``,this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let n=this._terminal.buffer,r=n.lines.length.toString();for(let i=e;i<=t;i++){let e=n.lines.get(n.ydisp+i),t=[],a=e?.translateToString(!0,void 0,void 0,t)||``,o=(n.ydisp+i+1).toString(),s=this._rowElements[i];s&&(a.length===0?(s.textContent=`\xA0`,this._rowColumns.set(s,[0,1])):(s.textContent=a,this._rowColumns.set(s,t)),s.setAttribute(`aria-posinset`,o),s.setAttribute(`aria-setsize`,r),this._alignRowWidth(s))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce=``)}_handleBoundaryFocus(e,t){let n=e.target,r=this._rowElements[t===0?1:this._rowElements.length-2];if(n.getAttribute(`aria-posinset`)===(t===0?`1`:`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==r)return;let i,a;if(t===0?(i=n,a=this._rowElements.pop(),this._rowContainer.removeChild(a)):(i=this._rowElements.shift(),a=n,this._rowContainer.removeChild(i)),i.removeEventListener(`focus`,this._topBoundaryFocusListener),a.removeEventListener(`focus`,this._bottomBoundaryFocusListener),t===0){let e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement(`afterbegin`,e)}else{let e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener(`focus`,this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error(`anchorNode and/or focusNode are null`);return}let t={node:e.anchorNode,offset:e.anchorOffset},n={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(n.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===n.node&&t.offset>n.offset)&&([t,n]=[n,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let r=this._rowElements.slice(-1)[0];if(n.node.compareDocumentPosition(r)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(n={node:r,offset:r.textContent?.length??0}),!this._rowContainer.contains(n.node))return;let i=({node:e,offset:t})=>{let n=e instanceof Text?e.parentNode:e,r=parseInt(n?.getAttribute(`aria-posinset`),10)-1;if(isNaN(r))return console.warn(`row is invalid. Race condition?`),null;let i=this._rowColumns.get(n);if(!i)return console.warn(`columns is null. Race condition?`),null;let a=t<i.length?i[t]:i.slice(-1)[0]+1;return a>=this._terminal.cols&&(++r,a=0),{row:r,column:a}},a=i(t),o=i(n);if(a&&o){if(a.row>o.row||a.row===o.row&&a.column>=o.column)throw Error(`invalid range`);this._terminal.select(a.column,a.row,(o.row-a.row)*this._terminal.cols-a.column+o.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener(`focus`,this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement(`div`);return e.setAttribute(`role`,`listitem`),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){e.style.transform=``;let t=e.getBoundingClientRect().width,n=this._rowColumns.get(e)?.slice(-1)?.[0];if(!n)return;let r=n*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${r/t})`}};pT=I_([J(1,pv),J(2,Sv),J(3,wv)],pT);var mT=class extends Y{constructor(e,t,n,r,i){super(),this._element=e,this._mouseService=t,this._renderService=n,this._bufferService=r,this._linkProviderService=i,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new X),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new X),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(Yv(()=>{qv(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Z(this._element,`mouseleave`,()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Z(this._element,`mousemove`,this._handleMouseMove.bind(this))),this._register(Z(this._element,`mousedown`,this._handleMouseDown.bind(this))),this._register(Z(this._element,`mouseup`,this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let n=e.composedPath();for(let e=0;e<n.length;e++){let t=n[e];if(t.classList.contains(`xterm`))break;if(t.classList.contains(`xterm-hover`))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){this._activeLine!==e.y||this._wasResized?(this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1):this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){this._activeProviderReplies&&t||(this._activeProviderReplies?.forEach(e=>{e?.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(let[r,i]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(r)&&(n=this._checkLinkProviderResult(r,e,n)):i.provideLinks(e.y,t=>{if(this._isMouseOut)return;let i=t?.map(e=>({link:e}));this._activeProviderReplies?.set(r,i),n=this._checkLinkProviderResult(r,e,n),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let n=new Set;for(let r=0;r<t.size;r++){let i=t.get(r);if(i)for(let t=0;t<i.length;t++){let r=i[t],a=r.link.range.start.y<e?0:r.link.range.start.x,o=r.link.range.end.y>e?this._bufferService.cols:r.link.range.end.x;for(let e=a;e<=o;e++){if(n.has(e)){i.splice(t--,1);break}n.add(e)}}}}_checkLinkProviderResult(e,t,n){if(!this._activeProviderReplies)return n;let r=this._activeProviderReplies.get(e),i=!1;for(let t=0;t<e;t++)(!this._activeProviderReplies.has(t)||this._activeProviderReplies.get(t))&&(i=!0);if(!i&&r){let e=r.find(e=>this._linkAtPosition(e.link,t));e&&(n=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!n)for(let e=0;e<this._activeProviderReplies.size;e++){let r=this._activeProviderReplies.get(e)?.find(e=>this._linkAtPosition(e.link,t));if(r){n=!0,this._handleNewLink(r);break}}return n}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&hT(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,qv(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:e=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&this._element.classList.toggle(`xterm-cursor-pointer`,e))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:t=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{if(!this._currentLink)return;let t=e.start===0?0:e.start+1+this._bufferService.buffer.ydisp,n=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=n&&(this._clearCurrentLink(t,n),this._lastMouseEvent)){let e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}})))}_linkHover(e,t,n){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add(`xterm-cursor-pointer`)),t.hover&&t.hover(n,t.text)}_fireUnderlineEvent(e,t){let n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}_linkLeave(e,t,n){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove(`xterm-cursor-pointer`)),t.leave&&t.leave(n,t.text)}_linkAtPosition(e,t){let n=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return n<=i&&i<=r}_positionFromMouseEvent(e,t,n){let r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}}};mT=I_([J(1,Cv),J(2,wv),J(3,lv),J(4,Ov)],mT);function hT(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var gT=class extends tT{constructor(e={}){super(e),this._linkifier=this._register(new Qv),this.browser=kS,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Qv),this._onCursorMove=this._register(new X),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new X),this.onKey=this._onKey.event,this._onRender=this._register(new X),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new X),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new X),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new X),this.onBell=this._onBell.event,this._onFocus=this._register(new X),this._onBlur=this._register(new X),this._onA11yCharEmitter=this._register(new X),this._onA11yTabEmitter=this._register(new X),this._onWillOpen=this._register(new X),this._setup(),this._decorationService=this._instantiationService.createInstance(cT),this._instantiationService.setService(vv,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(wS),this._instantiationService.setService(Ov,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(yv)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(e=>this.refresh(e?.start??0,e?.end??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this._register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this._register(ay.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(ay.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(ay.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(ay.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows))),this._register(Yv(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let e,n=``;switch(t.index){case 256:e=`foreground`,n=`10`;break;case 257:e=`background`,n=`11`;break;case 258:e=`cursor`,n=`12`;break;default:e=`ansi`,n=`4;`+t.index}switch(t.type){case 0:let r=Kx.toColorRGB(e===`ansi`?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${Q.ESC}]${n};${zw(r)}${Rx.ST}`);break;case 1:if(e===`ansi`)this._themeService.modifyColors(e=>e.ansi[t.index]=Gx.toColor(...t.color));else{let n=e;this._themeService.modifyColors(e=>e[n]=Gx.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(pT,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Q.ESC+`[I`),this.element.classList.add(`focus`),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value=``,this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Q.ESC+`[O`),this.element.classList.remove(`focus`),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let n=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,i=t.getWidth(n),a=this._renderService.dimensions.css.cell.width*i,o=this.buffer.y*this._renderService.dimensions.css.cell.height,s=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=s+`px`,this.textarea.style.top=o+`px`,this.textarea.style.width=a+`px`,this.textarea.style.height=r+`px`,this.textarea.style.lineHeight=r+`px`,this.textarea.style.zIndex=`-5`}_initGlobal(){this._bindKeys(),this._register(Z(this.element,`copy`,e=>{this.hasSelection()&&U_(e,this._selectionService)}));let e=e=>W_(e,this.textarea,this.coreService,this.optionsService);this._register(Z(this.textarea,`paste`,e)),this._register(Z(this.element,`paste`,e)),NS?this._register(Z(this.element,`mousedown`,e=>{e.button===2&&q_(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Z(this.element,`contextmenu`,e=>{q_(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),VS&&this._register(Z(this.element,`auxclick`,e=>{e.button===1&&K_(e,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Z(this.textarea,`keyup`,e=>this._keyUp(e),!0)),this._register(Z(this.textarea,`keydown`,e=>this._keyDown(e),!0)),this._register(Z(this.textarea,`keypress`,e=>this._keyPress(e),!0)),this._register(Z(this.textarea,`compositionstart`,()=>this._compositionHelper.compositionstart())),this._register(Z(this.textarea,`compositionupdate`,e=>this._compositionHelper.compositionupdate(e))),this._register(Z(this.textarea,`compositionend`,()=>this._compositionHelper.compositionend())),this._register(Z(this.textarea,`input`,e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw Error(`Terminal requires a parent element.`);if(e.isConnected||this._logService.debug(`Terminal.open was called on an element that was not attached to the DOM`),this.element?.ownerDocument.defaultView&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement(`div`),this.element.dir=`ltr`,this.element.classList.add(`terminal`),this.element.classList.add(`xterm`),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement(`div`),this._viewportElement.classList.add(`xterm-viewport`),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement(`div`),this.screenElement.classList.add(`xterm-screen`),this._register(Z(this.screenElement,`mousemove`,e=>this.updateCursorStyle(e))),this._helperContainer=this._document.createElement(`div`),this._helperContainer.classList.add(`xterm-helpers`),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let n=this.textarea=this._document.createElement(`textarea`);this.textarea.classList.add(`xterm-helper-textarea`),this.textarea.setAttribute(`aria-label`,R_.get()),HS||this.textarea.setAttribute(`aria-multiline`,`false`),this.textarea.setAttribute(`autocorrect`,`off`),this.textarea.setAttribute(`autocapitalize`,`off`),this.textarea.setAttribute(`spellcheck`,`false`),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange(`disableStdin`,()=>n.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(SS,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<`u`?window.document:null)),this._instantiationService.setService(Sv,this._coreBrowserService),this._register(Z(this.textarea,`focus`,e=>this._handleTextAreaFocus(e))),this._register(Z(this.textarea,`blur`,()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(vS,this._document,this._helperContainer),this._instantiationService.setService(xv,this._charSizeService),this._themeService=this._instantiationService.createInstance(EC),this._instantiationService.setService(Dv,this._themeService),this._characterJoinerService=this._instantiationService.createInstance($x),this._instantiationService.setService(Ev,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(JS,this.rows,this.screenElement)),this._instantiationService.setService(wv,this._renderService),this._register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=this._document.createElement(`div`),this._compositionView.classList.add(`composition-view`),this._compositionHelper=this._instantiationService.createInstance(zx,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(DS),this._instantiationService.setService(Cv,this._mouseService);let r=this._linkifier.value=this._register(this._instantiationService.createInstance(mT,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(Ax,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(e=>{super.scrollLines(e,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(gC,this.element,this.screenElement,r)),this._instantiationService.setService(Tv,this._selectionService),this._register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this._register(ay.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(jx,this.screenElement)),this._register(Z(this.element,`mousedown`,e=>this._selectionService.handleMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add(`enable-mouse-events`)):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(pT,this)),this._register(this.optionsService.onSpecificOptionChange(`screenReaderMode`,e=>this._handleScreenReaderModeOptionChange(e))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Ix,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange(`overviewRuler`,e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Ix,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(_S,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function n(t){let n=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!n)return!1;let r,i;switch(t.overrideType||t.type){case`mousemove`:i=32,t.buttons===void 0?(r=3,t.button!==void 0&&(r=t.button<3?t.button:3)):r=t.buttons&1?0:t.buttons&4?1:t.buttons&2?2:3;break;case`mouseup`:i=0,r=t.button<3?t.button:3;break;case`mousedown`:i=1,r=t.button<3?t.button:3;break;case`wheel`:if(e._customWheelEventHandler&&e._customWheelEventHandler(t)===!1)return!1;let n=t.deltaY;if(n===0||e.coreMouseService.consumeWheelEvent(t,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;i=n<0?0:1,r=4;break;default:return!1}return i===void 0||r===void 0||r>4?!1:e.coreMouseService.triggerMouseEvent({col:n.col,row:n.row,x:n.x,y:n.y,button:r,action:i,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}let r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i={mouseup:e=>(n(e),e.buttons||(this._document.removeEventListener(`mouseup`,r.mouseup),r.mousedrag&&this._document.removeEventListener(`mousemove`,r.mousedrag)),this.cancel(e)),wheel:e=>(n(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&n(e)},mousemove:e=>{e.buttons||n(e)}};this._register(this.coreMouseService.onProtocolChange(e=>{e?(this.optionsService.rawOptions.logLevel===`debug`&&this._logService.debug(`Binding to mouse events:`,this.coreMouseService.explainEvents(e)),this.element.classList.add(`enable-mouse-events`),this._selectionService.disable()):(this._logService.debug(`Unbinding from mouse events.`),this.element.classList.remove(`enable-mouse-events`),this._selectionService.enable()),e&8?r.mousemove||=(t.addEventListener(`mousemove`,i.mousemove),i.mousemove):(t.removeEventListener(`mousemove`,r.mousemove),r.mousemove=null),e&16?r.wheel||=(t.addEventListener(`wheel`,i.wheel,{passive:!1}),i.wheel):(t.removeEventListener(`wheel`,r.wheel),r.wheel=null),e&2?r.mouseup||=i.mouseup:(this._document.removeEventListener(`mouseup`,r.mouseup),r.mouseup=null),e&4?r.mousedrag||=i.mousedrag:(this._document.removeEventListener(`mousemove`,r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Z(t,`mousedown`,e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return n(e),r.mouseup&&this._document.addEventListener(`mouseup`,r.mouseup),r.mousedrag&&this._document.addEventListener(`mousemove`,r.mousedrag),this.cancel(e)})),this._register(Z(t,`wheel`,t=>{if(!r.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(t)===!1)return!1;if(!this.buffer.hasScrollback){if(t.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(t,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(t,!0);let n=Q.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?`O`:`[`)+(t.deltaY<0?`A`:`B`);return this.coreService.triggerDataEvent(n,!0),this.cancel(t,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add(`column-select`):this.element.classList.remove(`column-select`)}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){G_(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw Error(`Terminal must be opened first`);let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw Error(`Terminal must be opened first`);this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,n){this._selectionService.setSelection(e,t,n)}getSelection(){return this._selectionService?this._selectionService.selectionText:``}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;t||e.key!==`Dead`&&e.key!==`AltGraph`||(this._unprocessedDeadKey=!0);let n=rT(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),n.type===3||n.type===2){let t=this.rows-1;return this.scrollLines(n.type===2?-t:t),this.cancel(e,!0)}if(n.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((n.key===Q.ETX||n.key===Q.CR)&&(this.textarea.value=``),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState(`AltGraph`);return t.type===`keypress`?n:n&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(_T(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType===`insertText`&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e===this.cols&&t===this.rows?this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure():super.resize(e,t)}_afterResize(e,t){this._charSizeService?.measure()}clear(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(FC));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),this._selectionService?.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){this._renderService?.clearTextureAtlas()}_reportFocus(){this.element?.classList.contains(`focus`)?this.coreService.triggerDataEvent(Q.ESC+`[I`):this.coreService.triggerDataEvent(Q.ESC+`[O`)}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let e=this._renderService.dimensions.css.canvas.width.toFixed(0),t=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${Q.ESC}[4;${t};${e}t`);break;case 1:let n=this._renderService.dimensions.css.cell.width.toFixed(0),r=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${Q.ESC}[6;${r};${n}t`)}}cancel(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}};function _T(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var vT=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=()=>this._wrappedAddonDispose(n),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(t===-1)throw Error(`Could not dispose an addon that has not been loaded`);e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},yT=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new nv)}translateToString(e,t,n){return this._line.translateToString(e,t,n)}},bT=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new yT(t)}getNullCell(){return new nv}},xT=class extends Y{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new X),this.onBufferChange=this._onBufferChange.event,this._normal=new bT(this._core.buffers.normal,`normal`),this._alternate=new bT(this._core.buffers.alt,`alternate`),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw Error(`Active buffer is neither normal nor alternate`)}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},ST=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(e,n)=>t(e,n.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},CT=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},wT=[`cols`,`rows`],TT=0,ET=class extends Y{constructor(e){super(),this._core=this._register(new gT(e)),this._addonManager=this._register(new vT),this._publicOptions={...this._core.options};let t=e=>this._core.options[e],n=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(let e in this._core.options){let r={get:t.bind(this,e),set:n.bind(this,e)};Object.defineProperty(this._publicOptions,e,r)}}_checkReadonlyOptions(e){if(wT.includes(e))throw Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw Error(`You must set the allowProposedApi option to true to use proposed API`)}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||=new ST(this._core),this._parser}get unicode(){return this._checkProposedApi(),new CT(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||=this._register(new xT(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t=`none`;switch(this._core.coreMouseService.activeProtocol){case`X10`:t=`x10`;break;case`VT200`:t=`vt200`;break;case`DRAG`:t=`drag`;break;case`ANY`:t=`any`}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
106
|
-
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return R_.get()},set promptLabel(e){R_.set(e)},get tooMuchOutput(){return B_.get()},set tooMuchOutput(e){B_.set(e)}}}_verifyIntegers(...e){for(TT of e)if(TT===1/0||isNaN(TT)||TT%1!=0)throw Error(`This API only accepts integers`)}_verifyPositiveIntegers(...e){for(TT of e)if(TT&&(TT===1/0||isNaN(TT)||TT%1!=0||TT<0))throw Error(`This API only accepts positive integers`)}},DT=2e3,OT={background:`#1d2021`,foreground:`#d4be98`,cursor:`#d4be98`,cursorAccent:`#1d2021`,selectionBackground:`#45403d`,black:`#32302f`,red:`#ea6962`,green:`#a9b665`,yellow:`#d8a657`,blue:`#7daea3`,magenta:`#d3869b`,cyan:`#89b482`,white:`#d4be98`,brightBlack:`#928374`,brightRed:`#ea6962`,brightGreen:`#a9b665`,brightYellow:`#d8a657`,brightBlue:`#7daea3`,brightMagenta:`#d3869b`,brightCyan:`#89b482`,brightWhite:`#ddc7a1`};function kT({session:e,isExpanded:t,onToggleExpanded:n}){let{connection:r,perform:i}=Fe(),a=P(t=>t.focusedSession===e.name),o=P(t=>t.typingSession===e.name),s=P(e=>e.setTypingSession),c=P(e=>e.recordAction),l=la(),u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=(0,v.useRef)(void 0),p=nt[e.state],m=ja(e.name);return(0,v.useEffect)(()=>{let t=u.current;if(!t)return;let n=new ET({fontFamily:`"Geist Mono Variable", ui-monospace, monospace`,fontSize:12,lineHeight:1.2,theme:OT,cursorBlink:!1,allowProposedApi:!0}),i=new gp;n.loadAddon(i),n.open(t),jT(n),i.fit(),f.current=n;let a=r.openTerminal(e.name,n.cols,n.rows);a.onData(e=>n.write(e)),a.onClose(()=>n.write(`\r
|
|
107
|
-
\x1B[2mDisconnected from this session.\x1B[0m\r
|
|
108
|
-
`));let o=n.onData(e=>a.write(e)),s=0,l=n.onKey(()=>{let e=Date.now();e-s>DT&&c(`keyboard`),s=e}),d=new ResizeObserver(()=>{i.fit(),a.resize(n.cols,n.rows)});return d.observe(t),()=>{d.disconnect(),o.dispose(),l.dispose(),a.close(),n.dispose(),f.current=void 0}},[r,e.name,c]),(0,v.useEffect)(()=>{o?f.current?.focus():f.current?.blur()},[o]),(0,v.useEffect)(()=>{a&&d.current?.scrollIntoView({block:`nearest`})},[a]),(0,F.jsxs)(`section`,{ref:d,className:`flex h-full min-h-[280px] w-full min-w-0 flex-col overflow-hidden rounded-outer border bg-terminal transition-colors duration-200 ${o?`border-ink/60`:a?`border-line-strong`:`border-line`}`,children:[(0,F.jsxs)(`header`,{className:`flex h-10 shrink-0 items-center gap-2.5 border-b border-line bg-panel px-3`,children:[(0,F.jsx)(ca,{name:e.name,state:e.state,size:22}),(0,F.jsx)(`span`,{className:`truncate font-mono text-meta text-ink`,children:e.name}),(0,F.jsx)(`span`,{className:`text-small ${p.textClass}`,children:p.label}),it(e.state)&&(0,F.jsx)(`span`,{className:`font-mono text-small text-ink-muted tabular-nums`,children:at(l-e.stateSince)}),(0,F.jsxs)(`div`,{className:`ml-auto flex items-center gap-0.5`,children:[o&&(0,F.jsxs)(`span`,{className:`mr-1 flex items-center gap-1 text-small text-ink-muted`,children:[(0,F.jsx)(Xe,{size:13}),` Typing here`]}),n&&(0,F.jsx)(AT,{label:t?`Show all sessions`:`Show only this session`,onClick:n,children:t?(0,F.jsx)(Je,{size:14}):(0,F.jsx)(qe,{size:14})}),(0,F.jsx)(AT,{label:`Close ${e.name}`,onClick:()=>i({type:`close`,session:e.name,confirmed:!1}),children:(0,F.jsx)(Ye,{size:14})})]})]}),m&&(0,F.jsx)(_a,{item:m.item,session:m.session,variant:`banner`}),(0,F.jsx)(`div`,{ref:u,className:`min-h-0 flex-1 cursor-text`,onMouseDown:()=>{s(e.name),i({type:`focus`,session:e.name})}})]})}function AT({label:e,onClick:t,children:n}){return(0,F.jsx)(`button`,{type:`button`,"aria-label":e,title:e,onClick:t,className:`press flex size-7 cursor-pointer items-center justify-center rounded-small text-ink-muted transition-colors duration-150 hover:bg-raised hover:text-ink`,children:n})}function jT(e){try{let t=new M_;t.onContextLoss(()=>t.dispose()),e.loadAddon(t)}catch{}}function MT({session:e,isExpanded:t,onToggleExpanded:n}){let r=ja(e.name),i=la(),a=nt[e.state];return(0,F.jsxs)(`section`,{className:`flex h-full min-h-[200px] w-full min-w-0 flex-col overflow-hidden rounded-outer border border-line bg-tray`,children:[(0,F.jsxs)(`header`,{className:`flex h-10 shrink-0 items-center gap-2.5 border-b border-line bg-panel px-3`,children:[(0,F.jsx)(ca,{name:e.name,state:e.state,size:22}),(0,F.jsx)(`span`,{className:`truncate font-mono text-meta text-ink`,children:e.name}),(0,F.jsx)(`span`,{className:`text-small ${a.textClass}`,children:a.label}),it(e.state)&&(0,F.jsx)(`span`,{className:`font-mono text-small text-ink-muted tabular-nums`,children:at(i-e.stateSince)}),(0,F.jsx)(`span`,{className:`ml-auto text-small text-ink-faint`,children:`in your own terminal`}),n&&(0,F.jsx)(AT,{label:t?`Show all sessions`:`Show only this session`,onClick:n,children:t?(0,F.jsx)(Je,{size:14}):(0,F.jsx)(qe,{size:14})})]}),r&&(0,F.jsx)(_a,{item:r.item,session:r.session,variant:`banner`}),(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto px-4 py-3`,children:[(0,F.jsx)(`p`,{className:`truncate font-mono text-small text-ink-faint`,children:e.projectPath}),na.promptPreview(e.lastPrompt??``)&&(0,F.jsxs)(`p`,{className:`line-clamp-3 text-meta text-ink-muted`,children:[`Last task: `,na.promptPreview(e.lastPrompt??``)]}),e.lastMessage&&(0,F.jsx)(Of,{text:e.lastMessage,className:`text-body text-ink`})]})]})}var NT=420,PT=8;function FT(){let e=P(e=>e.sessions),t=P(e=>e.layout.arrangement),n=P(e=>e.focusedSession),r=e.find(e=>e.name===n)??e[0],i=t===`focus`&&r!==void 0&&e.length>1;return(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:i?(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1 p-2`,children:(0,F.jsx)(LT,{session:r,isExpanded:!0,canExpand:!0})}):(0,F.jsx)(IT,{sessions:e,canExpand:e.length>1})})}function IT({sessions:e,canExpand:t}){let n=(0,v.useRef)(null),[r,i]=(0,v.useState)({width:1200,height:800});(0,v.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([e])=>e&&i({width:e.contentRect.width,height:e.contentRect.height}));return t.observe(e),()=>t.disconnect()},[]);let a=Math.max(1,Math.min(e.length,Math.floor((r.width+PT)/448))),o=Math.ceil(e.length/a),s=o<=2?Math.max(300,(r.height-PT*(o-1))/o):NT;return(0,F.jsx)(`div`,{ref:n,className:`min-h-0 flex-1 overflow-y-auto p-2`,children:(0,F.jsx)(`div`,{className:`grid`,style:{gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`,gridAutoRows:`${s}px`,gap:PT},children:e.map(e=>(0,F.jsx)(LT,{session:e,isExpanded:!1,canExpand:t},e.name))})})}function LT({session:e,isExpanded:t,canExpand:n}){let r=P(e=>e.changeLayout),{perform:i}=Fe(),a=n?()=>{if(t)return r({arrangement:`grid`});i({type:`focus`,session:e.name}),r({arrangement:`focus`})}:void 0;return e.origin===`external`?(0,F.jsx)(MT,{session:e,isExpanded:t,onToggleExpanded:a}):(0,F.jsx)(kT,{session:e,isExpanded:t,onToggleExpanded:a})}function RT({onOpenSetup:e}){let{perform:t}=Fe(),n=P(e=>e.projects),r=n[0]??`your-project`;return(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center overflow-y-auto p-6`,children:(0,F.jsxs)(`div`,{className:`flex w-full max-w-[520px] flex-col gap-5`,children:[(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`h1`,{className:`text-display font-semibold tracking-tight text-accent-ink`,children:`Run your coding agents by voice`}),(0,F.jsx)(`p`,{className:`text-body leading-relaxed text-ink-muted`,children:`Start Claude Code, Codex, Gemini, Grok or Cursor sessions side by side, then talk. HeyTerm sends your words to the right one, tells you when one needs you, and lets you approve or answer without touching the keyboard.`})]}),(0,F.jsxs)(`div`,{className:`rounded-outer border border-line bg-panel p-1`,children:[(0,F.jsx)(`p`,{className:`px-3 pt-2.5 pb-2 text-meta text-ink-muted`,children:`Hold your dictation key and say:`}),(0,F.jsxs)(`p`,{className:`rounded-inner bg-raised px-3 py-2.5 font-mono text-body text-ink`,children:[`start a session in `,r,` and explain how it is laid out`]})]}),n.length>0?(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`p`,{className:`text-meta text-ink-muted`,children:`Or pick a project:`}),(0,F.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:n.slice(0,10).map(e=>(0,F.jsx)(`button`,{type:`button`,onClick:()=>t({type:`spawn`,project:e}),className:`press key-lift h-8 cursor-pointer rounded-inner border border-line bg-key px-3 font-mono text-meta text-ink shadow-key hover:bg-key-hover`,children:e},e))})]}):(0,F.jsxs)(`p`,{className:`text-meta text-ink-muted`,children:[`No projects found yet.`,` `,(0,F.jsx)(`button`,{type:`button`,onClick:e,className:`cursor-pointer text-accent-ink underline decoration-accent/40 underline-offset-2 transition-[text-decoration-color] duration-150 hover:decoration-accent`,children:`Add your project folders`}),`.`]}),(0,F.jsxs)(`p`,{className:`text-small text-ink-faint`,children:[`Already have Claude running in other terminals?`,` `,(0,F.jsx)(`button`,{type:`button`,onClick:e,className:`cursor-pointer text-ink-muted underline decoration-line-strong underline-offset-2 transition-[text-decoration-color] duration-150 hover:decoration-ink-muted`,children:`Show those sessions`}),` `,`in Setup.`]})]})})}var zT=[`light`,`dark`,`system`],BT=class{static resolve(e,t){let n=e&&zT.includes(e)?e:`light`;return n===`system`?t?`dark`:`light`:n}static apply(e){let t=document.documentElement;if(t.dataset.theme===e)return;let n=document.createElement(`style`);n.textContent=`*,*::before,*::after{transition:none !important}`,document.head.appendChild(n),t.dataset.theme=e,t.offsetHeight,requestAnimationFrame(()=>n.remove())}static systemPrefersDark(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches}};function VT(){let e=P(e=>e.layout.theme),[t,n]=(0,v.useState)(BT.systemPrefersDark),r=BT.resolve(e,t);return(0,v.useEffect)(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=()=>n(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,v.useEffect)(()=>BT.apply(r),[r]),r}function HT({connection:e,announcer:t}){let n=P(e=>e.hasSnapshot),r=P(e=>e.sessions.length),i=P(e=>e.setup),[a,o]=(0,v.useState)(!1),s=(0,v.useCallback)(()=>o(!1),[]),c=VT();UT(e,t),WT(e,t);let l=P(e=>e.setSpeaking);(0,v.useEffect)(()=>{t.onSpeakingChange=l},[t,l]),GT(t);let u=i!==void 0&&i.agents.every(e=>!e.version);return(0,v.useEffect)(()=>{u&&o(!0)},[u]),(0,F.jsxs)(Pe,{connection:e,announcer:t,children:[(0,F.jsxs)(`div`,{className:`flex h-full flex-col md:flex-row`,children:[(0,F.jsx)(Uf,{onOpenSetup:()=>o(!0)}),(0,F.jsx)(`div`,{className:`flex min-h-[55vh] min-w-0 flex-1 flex-col md:min-h-0`,children:(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,F.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,F.jsxs)(`main`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,F.jsx)(ot,{}),n&&r===0?(0,F.jsx)(RT,{onOpenSetup:()=>o(!0)}):(0,F.jsx)(FT,{})]}),(0,F.jsx)(Pa,{})]}),(0,F.jsx)(Af,{})]})})]}),a&&(0,F.jsx)(ip,{onClose:s}),(0,F.jsx)(M,{theme:c,position:`bottom-right`,offset:{bottom:96,right:16},toastOptions:{style:{borderRadius:`var(--radius-inner)`,background:`var(--color-canvas)`,color:`var(--color-ink)`,border:`1px solid var(--color-line-strong)`,boxShadow:`none`,fontFamily:`var(--font-sans)`}}})]})}function UT(e,t){let n=P(e=>e.applyServerMessage),r=P(e=>e.setConnectionStatus);(0,v.useEffect)(()=>e.connect({onStatus:r,onMessage:e=>{n(e),e.type===`snapshot`&&(t.mode=e.control.mode,KT(t.noteSessions(e.sessions)),qT(e.sessions.filter(e=>[`needs_permission`,`asked`,`needs_trust`,`failed`].includes(e.state)).length)),e.type===`say`&&t.sayWhenQuiet(e.text),e.type===`speech_done`&&t.noteMacLineDone(e.id),e.type===`feedback`&&(t.noteFeedback(e.feedback),(e.feedback.tone===`error`?ie.error:e.feedback.tone===`warning`?ie.warning:e.feedback.tone===`success`?ie.success:ie)(e.feedback.text))}}),[e,t,n,r])}function WT(e,t){let n=P(e=>e.setup?.macVoiceAvailable??!1),r=P(e=>e.voicePreference);(0,v.useEffect)(()=>{let i=De.effective({preference:r,macVoiceAvailable:n});t.useVoice(i,i===`mac`?{speak:(t,n)=>e.send({type:`speak`,text:t,id:n}),stop:()=>e.send({type:`stop_speaking`})}:void 0)},[e,t,r,n])}function GT(e){(0,v.useEffect)(()=>{let t=()=>e.unlock();return window.addEventListener(`pointerdown`,t,{once:!0}),window.addEventListener(`keydown`,t,{once:!0}),()=>{window.removeEventListener(`pointerdown`,t),window.removeEventListener(`keydown`,t)}},[e])}function KT(e){if(document.hidden&&e.length!==0&&`Notification`in window&&Notification.permission===`granted`)for(let t of e)new Notification(`HeyTerm`,{body:t.headline,tag:`${t.sessionName}-${t.kind}`})}function qT(e){document.title=e>0?`(${e}) HeyTerm`:`HeyTerm`}var JT=`heyterm.token`,YT,XT;function ZT(){if(YT)return YT;try{YT=localStorage.getItem(JT)??void 0}catch{YT=void 0}return YT}function QT(){return XT??=(async()=>{let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`ticket`),n=e.get(`token`);if((t||n)&&history.replaceState(null,``,window.location.pathname+window.location.search),n&&$T(n),t){let e=await fetch(`/pair`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({ticket:t})}).catch(()=>void 0),n=e?.ok?await e.json().catch(()=>({})):{};n.token&&$T(n.token)}return ZT()})(),XT}function $T(e){YT=e;try{localStorage.setItem(JT,e)}catch{}}var eE=5e3,tE=class{socket;unsent=[];connect(e){let t=!1,n=0,r,i=async()=>{if(!await QT())return e.onStatus(`needs_token`);if(t)return;e.onStatus(`connecting`);let a=new WebSocket(nE(`/ws`));this.socket=a,a.onopen=()=>{n=0,e.onStatus(`open`);for(let e of this.unsent.splice(0))a.send(e)},a.onmessage=t=>e.onMessage(JSON.parse(String(t.data))),a.onclose=()=>{e.onStatus(`closed`),!t&&(n+=1,r=window.setTimeout(()=>void i(),Math.min(eE,250*2**n)))}};return i(),()=>{t=!0,window.clearTimeout(r),this.socket?.close()}}send(e){let t=JSON.stringify(e);this.socket?.readyState===WebSocket.OPEN?this.socket.send(t):this.unsent.push(t)}openTerminal(e,t,n){let r=new URLSearchParams({session:e,columns:String(t),rows:String(n)}),i=new WebSocket(nE(`/pty?${r.toString()}`)),a=[],o=[],s=[],c=e=>i.readyState===WebSocket.OPEN?i.send(e):s.push(e);return i.onopen=()=>s.splice(0).forEach(e=>i.send(e)),i.onmessage=e=>a.forEach(t=>t(String(e.data))),i.onclose=()=>o.forEach(e=>e()),{onData:e=>a.push(e),onClose:e=>o.push(e),write:e=>c(JSON.stringify({type:`input`,data:e})),resize:(e,t)=>c(JSON.stringify({type:`resize`,columns:e,rows:t})),close:()=>i.close()}}};function nE(e){let t=window.location.protocol===`https:`?`wss:`:`ws:`,n=e.includes(`?`)?`&`:`?`;return`${t}//${window.location.host}${e}${n}token=${encodeURIComponent(ZT()??``)}`}var rE={permission:[{frequency:660,startOffset:0,duration:.09},{frequency:880,startOffset:.11,duration:.12}],question:[{frequency:587,startOffset:0,duration:.09},{frequency:784,startOffset:.11,duration:.12}],trust:[{frequency:660,startOffset:0,duration:.09},{frequency:880,startOffset:.11,duration:.12}],failed:[{frequency:440,startOffset:0,duration:.12},{frequency:330,startOffset:.14,duration:.16}],error:[{frequency:330,startOffset:0,duration:.16}],finished:[{frequency:784,startOffset:0,duration:.14}],sent:[{frequency:988,startOffset:0,duration:.05}]},iE=class{context;unlock(){this.context??=new AudioContext,this.context.resume()}get isUnlocked(){return this.context?.state===`running`}play(e){let t=this.context;if(t&&t.state===`running`)for(let n of rE[e])this.playTone(t,n)}playTone(e,t){let n=e.currentTime+t.startOffset,r=e.createOscillator(),i=e.createGain();r.type=`sine`,r.frequency.value=t.frequency,i.gain.setValueAtTime(1e-4,n),i.gain.exponentialRampToValueAtTime(.12,n+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+t.duration),r.connect(i).connect(e.destination),r.start(n),r.stop(n+t.duration+.02)}},aE=90,oE=5e3,sE=class{player;options;waiting=[];current;lastInputAt=-1/0;onSpeakingChange=()=>void 0;constructor(e,t){this.player=e,this.options=t}get isSpeaking(){return this.current!==void 0}enqueue(e,t){let n=e.trim();n&&!this.waiting.includes(n)&&this.current?.text!==n&&(this.waiting.push(n),this.tick(t))}noteInput(e){this.lastInputAt=e,this.current&&(this.current=void 0,this.player.stop(),this.onSpeakingChange(!1))}clear(){this.waiting.length=0,this.current&&(this.current=void 0,this.player.stop(),this.onSpeakingChange(!1))}tick(e){if(this.current&&e>=this.current.giveUpAt&&(this.current=void 0),this.current||this.waiting.length===0||e-this.lastInputAt<this.options.quietAfterInputMilliseconds)return;let t=this.waiting.shift(),n={text:t,giveUpAt:e+t.length*aE+oE};this.current=n,this.onSpeakingChange(!0),this.player.play(t,()=>{this.current===n&&(this.current=void 0,this.onSpeakingChange(this.waiting.length>0))})}},cE=1200,lE=1500,uE=150,dE=class{earcons=new iE;modeValue=`speak`;knownItemKeys;waitingItems=[];groupTimer;speaksArrivalsItself=!1;voice=`browser`;macSpeaker;nextMacLineId=1;macLinesWaiting=new Map;queue;onSpeakingChange=()=>void 0;constructor(){let e={play:(e,t)=>this.voice===`mac`&&this.macSpeaker?this.playOnMac(e,t):fE(e,t),stop:()=>{window.speechSynthesis?.cancel(),this.macSpeaker?.stop(),this.macLinesWaiting.clear()}};this.queue=new sE(e,{quietAfterInputMilliseconds:lE}),this.queue.onSpeakingChange=e=>this.onSpeakingChange(e),window.setInterval(()=>this.queue.tick(Date.now()),uE)}get mode(){return this.modeValue}set mode(e){e===`mute`&&this.modeValue!==`mute`&&this.queue.clear(),this.modeValue=e}useVoice(e,t){e!==this.voice&&this.queue.clear(),this.voice=e,this.macSpeaker=t}noteMacLineDone(e){let t=this.macLinesWaiting.get(e);this.macLinesWaiting.delete(e),t?.()}noteSessions(e){let t=Pt.build(e),n=new Set(t.map(pE)),r=this.knownItemKeys;if(this.knownItemKeys=n,!r)return[];let i=t.filter(e=>!r.has(pE(e)));return i.length>0&&this.noteArrivals(i),i}sayWhenQuiet(e){this.modeValue!==`mute`&&this.queue.enqueue(e,Date.now())}noteFeedback(e){e.tone===`error`?this.earcons.play(`error`):e.tone===`success`&&this.earcons.play(`sent`),e.speak&&this.sayWhenQuiet(e.text)}noteInputActivity(){this.queue.noteInput(Date.now())}speakNow(e){this.queue.clear(),this.queue.enqueue(e,Date.now())}unlock(){this.earcons.unlock()}noteArrivals(e){for(let t of e)this.earcons.play(t.kind);this.speaksArrivalsItself&&(this.waitingItems.push(...e),window.clearTimeout(this.groupTimer),this.groupTimer=window.setTimeout(()=>{let e=Ft.forItems(this.waitingItems,this.modeValue);this.waitingItems=[],e&&this.sayWhenQuiet(e)},cE))}playOnMac(e,t){let n=this.nextMacLineId++;this.macLinesWaiting.set(n,t),this.macSpeaker.speak(e,n)}};function fE(e,t){let n=window.speechSynthesis;if(!n)return t();let r=new SpeechSynthesisUtterance(e);r.rate=1.08;let i=mE(n.getVoices());i&&(r.voice=i),r.onend=()=>t(),r.onerror=()=>t(),n.speak(r)}function pE(e){return`${e.sessionName}|${e.kind}|${e.since}`}function mE(e){let t=e.filter(e=>e.lang.startsWith(`en`));return t.find(e=>/Samantha|Ava|Daniel|Google US English/.test(e.name))??t.find(e=>e.localService)??t[0]}var hE=new tE,gE=new dE;gE.speaksArrivalsItself=!1,(0,_.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(v.StrictMode,{children:(0,F.jsx)(HT,{connection:hE,announcer:gE})}));
|