@krantho/studio 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AssistantPanel-ECkcslXS.js → AssistantPanel-CeOJfSzu.js} +2 -2
- package/dist/assets/GraphBrowser-BNto7hgk.js +2 -0
- package/dist/assets/GraphCanvas-Wo0XaRUG.js +1 -0
- package/dist/assets/{action-button-DIrhqMRc.js → action-button-DPLZn2gk.js} +1 -1
- package/dist/assets/api-seo-CL5Gq_tK.js +1 -0
- package/dist/assets/{arduino-DKR9_xyJ.js → arduino-LsGX0_fs.js} +1 -1
- package/dist/assets/{arrow-down-B5kfR2lG.js → arrow-down-EM8VW6wf.js} +1 -1
- package/dist/assets/{arrow-left-7opbl8fu.js → arrow-left-DDRnAcp0.js} +1 -1
- package/dist/assets/{auth-CIpilSKF.js → auth-Dw_S0y7Q.js} +1 -1
- package/dist/assets/{c-CEM0h_nK.js → c-8MGCQYww.js} +1 -1
- package/dist/assets/{circle-check-big-DQjpuxcC.js → circle-check-big-BoM2gsTK.js} +1 -1
- package/dist/assets/{circle-dashed-cuYrILNo.js → circle-dashed-BrW3fkOb.js} +1 -1
- package/dist/assets/{circle-x-peGpq98w.js → circle-x-BFRqOpao.js} +1 -1
- package/dist/assets/{clike-BlGBRct5.js → clike-DDEFrJkJ.js} +1 -1
- package/dist/assets/{clock-DoBIVjZO.js → clock-D6yo3SXy.js} +1 -1
- package/dist/assets/{collection-view--erTGbRH.js → collection-view-m8EZ-LL6.js} +1 -1
- package/dist/assets/{copy-V85khWct.js → copy-DLNaHdGn.js} +1 -1
- package/dist/assets/{corner-down-right-BpwOGRFR.js → corner-down-right-DjKESJQq.js} +1 -1
- package/dist/assets/{cpp-C0nea612.js → cpp-CCXrbquo.js} +1 -1
- package/dist/assets/createLucideIcon-Bepm3pPy.js +1 -0
- package/dist/assets/{csharp-C430X67Y.js → csharp-C9B8MEOG.js} +1 -1
- package/dist/assets/{data-table-B1kqxrEw.js → data-table-CkVtHoRX.js} +1 -1
- package/dist/assets/{editor-page-XOJrwlcZ.js → editor-page-DygzC7e2.js} +4 -4
- package/dist/assets/{empty-state-CeUZocHx.js → empty-state-CFOGJxEy.js} +1 -1
- package/dist/assets/{export-helpers-C_HVpJN9.js → export-helpers-88w7CxCC.js} +1 -1
- package/dist/assets/{external-link-Dh7p8Ii6.js → external-link-WjUzPJ5r.js} +1 -1
- package/dist/assets/fill-job-B7N4431e.js +1 -0
- package/dist/assets/{fill-run-view-B6rnYhKS.js → fill-run-view-CwWAvqg1.js} +1 -1
- package/dist/assets/{findability-BrhtZ2yD.js → findability-CMuvomGn.js} +1 -1
- package/dist/assets/{format-C3ZX9yGM.js → format-Bm7d76kc.js} +1 -1
- package/dist/assets/{go-2ldyX7zA.js → go-C0xZKYRK.js} +1 -1
- package/dist/assets/graph-config-CkeJgPns.js +1 -0
- package/dist/assets/{image-editor-BX-DHJDa.js → image-editor-DUnZn-si.js} +1 -1
- package/dist/assets/index-CZQJBss1.js +2 -0
- package/dist/assets/{info-Cxkabti5.js → info-C_gFhCsx.js} +1 -1
- package/dist/assets/{java-BaDy4FT-.js → java-DQEBLEMZ.js} +1 -1
- package/dist/assets/{javascript-DoKZVVG7.js → javascript-fLcGJpXd.js} +1 -1
- package/dist/assets/{kotlin-aNSUnDDr.js → kotlin-BhmBVS_0.js} +1 -1
- package/dist/assets/{layers-0VWe0rKm.js → layers-BzWhM_T4.js} +1 -1
- package/dist/assets/{list-checks-BCEhMMVY.js → list-checks-BycWtY9-.js} +1 -1
- package/dist/assets/live-markdown-editor-ColMfnPc.js +54 -0
- package/dist/assets/{markdown-ChIsYjIt.js → markdown-Cxg2MxWr.js} +1 -1
- package/dist/assets/{markup-C09yLKTH.js → markup-CaYP0gdG.js} +1 -1
- package/dist/assets/{markup-templating-DNhq-UOv.js → markup-templating-DwmVPbHS.js} +1 -1
- package/dist/assets/{media-model-D4F1Farw.js → media-model-s8-mD6gc.js} +1 -1
- package/dist/assets/media-page-BIWNwixX.js +1 -0
- package/dist/assets/{meter-ZOLJ0WhG.js → meter-ZmQjbS6d.js} +1 -1
- package/dist/assets/{objectivec-s2I4Tn1D.js → objectivec-CHvtiGZJ.js} +1 -1
- package/dist/assets/{pen-line-B524Nue8.js → pen-line-tXXn2ou2.js} +1 -1
- package/dist/assets/{pencil-xdGZtrO4.js → pencil-CGbkYPXO.js} +1 -1
- package/dist/assets/{php-B_6N-5RT.js → php-SxIHzpF9.js} +1 -1
- package/dist/assets/{pulse-page-C00oCF2o.js → pulse-page-rQssy-k-.js} +1 -1
- package/dist/assets/rolldown-runtime-9C0vUP4u.js +1 -0
- package/dist/assets/{rotate-ccw-BgARBEK3.js → rotate-ccw-IHHFmrqQ.js} +1 -1
- package/dist/assets/{ruby-C8GJZDTg.js → ruby--MTbGwza.js} +1 -1
- package/dist/assets/{save-ClSXW9cb.js → save-DWhrs5es.js} +1 -1
- package/dist/assets/{send-kYpW5JED.js → send-Bf0SGwsO.js} +1 -1
- package/dist/assets/setup-page-C2UVL4hj.js +1 -0
- package/dist/assets/site-CI7ReWwB.js +1 -0
- package/dist/assets/site-model-DwdSKSWR.js +1 -0
- package/dist/assets/{site-overview-5EhmXIR0.js → site-overview-BnmQMy6p.js} +1 -1
- package/dist/assets/{structure-page-9d9MG7vU.js → structure-page-Cjqo5mS4.js} +2 -2
- package/dist/assets/{trash-DzRCm500.js → trash-DFKejXb4.js} +1 -1
- package/dist/assets/{triangle-exclamation-point-ttN5lZI0.js → triangle-exclamation-point-CxTYPLt1.js} +1 -1
- package/dist/assets/{typescript-s_P45ayF.js → typescript-DuydAHsI.js} +1 -1
- package/dist/assets/{upload-CaqQJaUr.js → upload-9M4suN_I.js} +1 -1
- package/dist/assets/{use-drawer-actions-CR6Q0qdd.js → use-drawer-actions-CXYpJuv5.js} +1 -1
- package/dist/assets/use-loaded-DJHzW9zx.js +1 -0
- package/dist/assets/{use-locale-versions-BycCbBLd.js → use-locale-versions-DXUTVGkz.js} +1 -1
- package/dist/assets/{vendor-diff-DGCTJYJ4.js → vendor-diff-B5uXPOYl.js} +40 -40
- package/dist/assets/vendor-markdown-BXQo8zdD.js +79 -0
- package/dist/assets/{vendor-media-DXSmPN_d.js → vendor-media-BVfbikEZ.js} +1 -1
- package/dist/assets/vendor-react-Njf47Pb1.js +15 -0
- package/dist/assets/{vendor-react-DLioOiRN.css → vendor-react-bSyOAvy0.css} +1 -1
- package/dist/assets/vendor-reactflow-D7sfycOJ.js +1 -0
- package/dist/assets/vendor-router-Cwn5_0Pw.js +1 -0
- package/dist/index.html +9 -9
- package/package.json +23 -23
- package/dist/assets/GraphBrowser-BBKTzzRV.js +0 -2
- package/dist/assets/GraphCanvas-Cct1E2As.js +0 -1
- package/dist/assets/api-seo-CwGP6Bi2.js +0 -1
- package/dist/assets/createLucideIcon-BklFHeMd.js +0 -1
- package/dist/assets/fill-job-YPZFETW1.js +0 -1
- package/dist/assets/graph-config-DKVGDPTG.js +0 -1
- package/dist/assets/index-CEQ7ZdKC.js +0 -2
- package/dist/assets/live-markdown-editor-DM8hYG3n.js +0 -54
- package/dist/assets/media-page-CeBC5FQS.js +0 -1
- package/dist/assets/rolldown-runtime-COiEfhsA.js +0 -1
- package/dist/assets/setup-page-BHJcTaTH.js +0 -1
- package/dist/assets/site-BYsfQB_3.js +0 -1
- package/dist/assets/site-model-C5bJvTbk.js +0 -1
- package/dist/assets/use-loaded-BBFak2E1.js +0 -1
- package/dist/assets/vendor-markdown-pd8vs9n-.js +0 -74
- package/dist/assets/vendor-react-CXaWJ_ii.js +0 -15
- package/dist/assets/vendor-reactflow-CMKi7AEX.js +0 -1
- package/dist/assets/vendor-router-B4czwg8X.js +0 -1
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/arduino-
|
|
2
|
-
import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";var r=n((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 S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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===``?`.`+ne(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(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+ne(a,u++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(re(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 M=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 ae(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,M)}catch(e){M(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function N(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ae(N.bind(null,e))}var oe={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(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,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=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=N,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)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,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=ae,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),i=n(((e,t)=>{t.exports=r()})),a=n((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})),o=n(((e,t)=>{t.exports=a()})),s=e(i(),1),c=o(),l=`modulepreload`,u=function(e){return`/studio/`+e},d={},f=function(e){return e.pathname.endsWith(`.css`)},p=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},m=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=u(t,n);let r=s(t),i=f(r);return p(d,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:l,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},h=e(n(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),g=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function _(e,t){return!!(e===t||g(e)&&g(t))}function v(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!_(e[n],t[n]))return!1;return!0}function y(e,t){t===void 0&&(t=v);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}function b(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i===void 0?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):!c&&i?(i.endLine=s,i.lines++,a[s]=i.index):i=void 0}),{lineBlocks:a,blocks:o}}var x=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},S=new class extends x{};function C(e,t,n){return S.diff(e,t,n)}function w(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function T(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function E(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function D(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function O(e,t){return E(e,t,``)}function k(e,t){return D(e,t,``)}function ee(e,t){return t.slice(0,te(e,t))}function te(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function ne(e){return e.includes(`\r
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/arduino-LsGX0_fs.js","assets/cpp-CCXrbquo.js","assets/c-8MGCQYww.js","assets/rolldown-runtime-9C0vUP4u.js","assets/clike-DDEFrJkJ.js","assets/csharp-C9B8MEOG.js","assets/go-C0xZKYRK.js","assets/java-DQEBLEMZ.js","assets/javascript-fLcGJpXd.js","assets/kotlin-BhmBVS_0.js","assets/less-DZtXz-rP.js","assets/css-BLUnUyF9.js","assets/markdown-Cxg2MxWr.js","assets/markup-CaYP0gdG.js","assets/markup-templating-DwmVPbHS.js","assets/objectivec-CHvtiGZJ.js","assets/php-SxIHzpF9.js","assets/ruby--MTbGwza.js","assets/sass-RhMvkm29.js","assets/scss-BSDGjs1D.js","assets/typescript-DuydAHsI.js","assets/vbnet-BCRrhSDY.js","assets/basic-2Y4JmWk4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,n as t,t as n}from"./rolldown-runtime-9C0vUP4u.js";var r=n((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 S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return D(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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===``?`.`+ne(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(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+ne(a,u++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(re(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=(0,e._result)();t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,t.status===void 0&&(t.status=`fulfilled`,t.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,t.status===void 0&&(t.status=`rejected`,t.reason=n))}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var M=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 ae(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,M)}catch(e){M(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function N(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ae(N.bind(null,e))}var oe={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(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,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=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=N,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)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,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=ae,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),i=n(((e,t)=>{t.exports=r()})),a=n((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})),o=n(((e,t)=>{t.exports=a()})),s=e(i(),1),c=o(),l=`modulepreload`,u=function(e){return`/studio/`+e},d={},f={},p=function(e){return e.pathname.endsWith(`.css`)},m=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},h=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=u(t,n);let r=s(t),i=p(r);return m(d,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?f[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:l,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete f[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(f[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},g=e(n(((e,t)=>{var n;(function(){var e={}.hasOwnProperty;function r(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var n=``;for(var i in t)e.call(t,i)&&t[i]&&(n=a(n,i));return n}function a(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(r.default=r,t.exports=r):typeof n==`function`&&typeof n.amd==`object`&&n.amd?n(`classnames`,[],function(){return r}):window.classNames=r})()}))(),1),_=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function v(e,t){return!!(e===t||_(e)&&_(t))}function y(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!v(e[n],t[n]))return!1;return!0}function b(e,t){t===void 0&&(t=y);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}function x(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i===void 0?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):!c&&i?(i.endLine=s,i.lines++,a[s]=i.index):i=void 0}),{lineBlocks:a,blocks:o}}var S=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},C=new class extends S{};function w(e,t,n){return C.diff(e,t,n)}function T(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function E(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function D(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function ee(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function O(e,t){return D(e,t,``)}function te(e,t){return ee(e,t,``)}function k(e,t){return t.slice(0,ne(e,t))}function ne(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function re(e){return e.includes(`\r
|
|
3
3
|
`)&&!e.startsWith(`
|
|
4
|
-
`)&&!e.match(/[^\r]\n/)}function
|
|
4
|
+
`)&&!e.match(/[^\r]\n/)}function A(e){return!e.includes(`\r
|
|
5
5
|
`)&&e.includes(`
|
|
6
|
-
`)}function
|
|
6
|
+
`)}function j(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function ie(e,t){if(t)return ae(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function M(e,t){if(t)return ae(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function ae(e,t){if(!t)return[M(e),ie(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=j(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var N=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,oe=RegExp(`[${N}]+|\\s+|[^${N}]`,`ug`),se=new class extends S{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=j(e,r)}else n=e.match(oe)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&le(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&le(n,i,r,null,t.intlSegmenter),e}};function ce(e,t,n){return n?.ignoreWhitespace!=null&&!n.ignoreWhitespace?de(e,t,n):se.diff(e,t,n)}function le(e,t,n,r,i){if(t&&n){let[a,o]=ae(t.value,i),[s,c]=ae(n.value,i);if(e){let r=T(a,s);e.value=ee(e.value,s,r),t.value=O(t.value,r),n.value=O(n.value,r)}if(r){let e=E(o,c);r.value=D(r.value,c,e),t.value=te(t.value,e),n.value=te(n.value,e)}}else if(n){if(e){let e=M(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=M(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=M(r.value,i),[a,o]=ae(t.value,i),s=T(n,a);t.value=O(t.value,s);let c=E(O(n,s),o);t.value=te(t.value,c),r.value=D(r.value,n,c),e.value=ee(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=M(r.value,i),n=k(ie(t.value,i),e);t.value=te(t.value,n)}else if(e){let n=k(ie(e.value,i),M(t.value,i));t.value=O(t.value,n)}}var ue=new class extends S{tokenize(e){let t=RegExp(`(\\r?\\n)|[${N}]+|[^\\S\\n\\r]+|[^${N}]`,`ug`);return e.match(t)||[]}};function de(e,t,n){return ue.diff(e,t,n)}function fe(e,t){if(typeof e==`function`)t.callback=e;else if(e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var pe=new class extends S{constructor(){super(...arguments),this.tokenize=ge}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
|
|
7
7
|
`)||(e=e.trim()),n.newlineIsToken&&t.includes(`
|
|
8
8
|
`)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
9
9
|
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
10
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function
|
|
11
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function
|
|
12
|
-
`;break;case`r`:t+=`\r`;break;case`t`:t+=` `;break;case`v`:t+=`\v`;break;case`\\`:t+=`\\`;break;case`"`:t+=`"`;break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:{if(n+2>=e.length||e[n+1]<`0`||e[n+1]>`7`||e[n+2]<`0`||e[n+2]>`7`)return null;let r=[parseInt(e.substring(n,n+3),8)];for(n+=3;e[n]===`\\`&&e[n+1]>=`0`&&e[n+1]<=`7`;){if(n+3>=e.length||e[n+2]<`0`||e[n+2]>`7`||e[n+3]<`0`||e[n+3]>`7`)return null;r.push(parseInt(e.substring(n+1,n+4),8)),n+=4}t+=new TextDecoder(`utf-8`).decode(new Uint8Array(r));continue}default:return null}else t+=e[n];n++}return null}function f(e){let n=/^(---|\+\+\+)\s+/.exec(t[r]);if(n){let i=n[1],a=t[r].substring(3).trim().split(` `,2),o=(a[1]||``).trim(),s=a[0];s=s.startsWith(`"`)?u(s):s.replace(/\\\\/g,`\\`),i===`---`?(e.oldFileName=s,e.oldHeader=o):(e.newFileName=s,e.newHeader=o),r++}}function p(){let e=r,n=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),i={oldStart:+n[1],oldLines:n[2]===void 0?1:+n[2],newStart:+n[3],newLines:n[4]===void 0?1:+n[4],lines:[]};i.oldLines===0&&(i.oldStart+=1),i.newLines===0&&(i.newStart+=1);let a=0,s=0;for(;r<t.length&&(s<i.oldLines||a<i.newLines||t[r]?.startsWith(`\\`));r++){let n=t[r].length==0&&r!=t.length-1?` `:t[r][0];if(n===`+`||n===`-`||n===` `||n===`\\`)i.lines.push(t[r]),n===`+`?a++:n===`-`?s++:n===` `&&(a++,s++);else throw Error(`Hunk at line ${e+1} contained invalid line ${t[r]}`)}if(!a&&i.newLines===1&&(i.newLines=0),!s&&i.oldLines===1&&(i.oldLines=0),a!==i.newLines)throw Error(`Added line count did not match for hunk at line `+(e+1));if(s!==i.oldLines)throw Error(`Removed line count did not match for hunk at line `+(e+1));if(r<t.length&&t[r]&&/^[+ -]/.test(t[r])&&!o(t[r]))throw Error(`Hunk at line `+(e+1)+` has more lines than expected (expected `+i.oldLines+` old lines and `+i.newLines+` new lines)`);return i}for(;r<t.length;)c();return n}function
|
|
13
|
-
`),i=t.hunks,a=n.compareLine||((e,t,n,r)=>t===r),o=n.fuzzFactor||0,s=0;if(o<0||!Number.isInteger(o))throw Error(`fuzzFactor must be a non-negative integer`);if(!i.length)return e;let c=``,l=!1,u=!1;for(let e=0;e<i[i.length-1].lines.length;e++){let t=i[i.length-1].lines[e];t[0]==`\\`&&(c[0]==`+`?l=!0:c[0]==`-`&&(u=!0)),c=t}if(l){if(u){if(!o&&r[r.length-1]==``)return!1}else if(r[r.length-1]==``)r.pop();else if(!o)return!1}else if(u){if(r[r.length-1]!=``)r.push(``);else if(!o)return!1}function d(e,t,n,i=0,o=!0,s=[],c=0){let l=0,u=!1;for(;i<e.length;i++){let f=e[i],p=f.length>0?f[0]:` `,m=f.length>0?f.substr(1):f;if(p===`-`){if(a(t+1,r[t],p,m))t++,l=0;else return!n||r[t]==null?null:(s[c]=r[t],d(e,t+1,n-1,i,!1,s,c+1))}if(p===`+`){if(!o)return null;s[c]=m,c++,l=0,u=!0}if(p===` `){if(l++,s[c]=r[t],a(t+1,r[t],p,m))c++,o=!0,u=!1,t++;else return u||!n?null:r[t]&&(d(e,t+1,n-1,i+1,!1,s,c+1)||d(e,t+1,n-1,i,!1,s,c+1))||d(e,t,n-1,i+1,!1,s,c)}}return c-=l,t-=l,s.length=c,{patchedLines:s,oldLineLastI:t-1}}let f=[],p=0;for(let e=0;e<i.length;e++){let t=i[e],n,a=r.length-t.oldLines+o,c;for(let e=0;e<=o;e++){c=t.oldStart+p-1;let r=
|
|
14
|
-
`)}function
|
|
15
|
-
`)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function
|
|
16
|
-
`)}let n=[];if(e.isGit){if(t=
|
|
10
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function me(e,t,n){return pe.diff(e,t,n)}function he(e,t,n){return n=fe(n,{ignoreWhitespace:!0}),pe.diff(e,t,n)}function ge(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
11
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function _e(e){return e==`.`||e==`!`||e==`?`}var ve=new class extends S{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(_e(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}};function ye(e,t,n){return ve.diff(e,t,n)}var be=new class extends S{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function xe(e,t,n){return be.diff(e,t,n)}var Se=new class extends S{constructor(){super(...arguments),this.tokenize=ge}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(we(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function Ce(e,t,n){return Se.diff(e,t,n)}function we(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=we(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=we(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var Te=new class extends S{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Ee(e,t,n){return Te.diff(e,t,n)}function De(e){return Array.isArray(e)?e.map(e=>De(e)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map((t,n)=>t.startsWith(`\\`)||t.endsWith(`\r`)||e.lines[n+1]?.startsWith(`\\`)?t:t+`\r`)}))})}function Oe(e){return Array.isArray(e)?e.map(e=>Oe(e)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map(e=>e.endsWith(`\r`)?e.substring(0,e.length-1):e)}))})}function ke(e){return Array.isArray(e)||(e=[e]),!e.some(e=>e.hunks.some(e=>e.lines.some(e=>!e.startsWith(`\\`)&&e.endsWith(`\r`))))}function Ae(e){return Array.isArray(e)||(e=[e]),e.some(e=>e.hunks.some(e=>e.lines.some(e=>e.endsWith(`\r`))))&&e.every(e=>e.hunks.every(e=>e.lines.every((t,n)=>t.startsWith(`\\`)||t.endsWith(`\r`)||e.lines[n+1]?.startsWith(`\\`))))}function je(e){let t=e.split(/\n/),n=[],r=0;function i(e){return/^diff --git /.test(e)}function a(e){return i(e)||/^Index:\s/.test(e)||/^diff(?: -r \w+)+\s/.test(e)}function o(e){return/^(---|\+\+\+)\s/.test(e)}function s(e){return/^@@\s/.test(e)}function c(){let e={};e.hunks=[],n.push(e);let c=!1;for(;r<t.length;){let n=t[r];if(o(n)||s(n))break;if(i(n)){if(c)return;c=!0,e.isGit=!0;let i=l(n);for(i&&(e.oldFileName=i.oldFileName,e.newFileName=i.newFileName),r++;r<t.length;){let n=t[r];if(o(n)||s(n)||a(n))break;let i=/^rename from (.*)/.exec(n);i&&(e.oldFileName=`a/`+u(i[1]),e.isRename=!0);let c=/^rename to (.*)/.exec(n);c&&(e.newFileName=`b/`+u(c[1]),e.isRename=!0);let l=/^copy from (.*)/.exec(n);l&&(e.oldFileName=`a/`+u(l[1]),e.isCopy=!0);let d=/^copy to (.*)/.exec(n);d&&(e.newFileName=`b/`+u(d[1]),e.isCopy=!0);let f=/^new file mode (\d+)/.exec(n);f&&(e.isCreate=!0,e.newMode=f[1]);let p=/^deleted file mode (\d+)/.exec(n);p&&(e.isDelete=!0,e.oldMode=p[1]);let m=/^old mode (\d+)/.exec(n);m&&(e.oldMode=m[1]);let h=/^new mode (\d+)/.exec(n);h&&(e.newMode=h[1]),/^Binary files /.test(n)&&(e.isBinary=!0),r++}}else{if(a(n)){if(c)return;c=!0;let t=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(n);t&&(e.index=n.substring(t[0].length).trim())}r++}}if(f(e),f(e),e.oldFileName===void 0!=(e.newFileName===void 0))throw Error(`Missing `+(e.oldFileName===void 0?`"--- ..."`:`"+++ ..."`)+` file header for `+(e.oldFileName??e.newFileName));for(;r<t.length;){let n=t[r];if(a(n)||o(n)||/^===================================================================/.test(n))break;s(n)?e.hunks.push(p()):r++}}function l(e){let t=e.substring(11);if(t.startsWith(`"`)){let e=d(t);if(e===null)return null;let n=t.substring(e.rawLength+1),r;if(n.startsWith(`"`)){let e=d(n);if(e===null)return null;r=e.fileName}else r=n;return{oldFileName:e.fileName,newFileName:r}}let n=t.indexOf(`"`);if(n>0){let e=t.substring(0,n-1),r=d(t.substring(n));return r===null?null:{oldFileName:e,newFileName:r.fileName}}if(t.startsWith(`a/`)){let e=[],n=0;for(;n=t.indexOf(` b/`,n+1),n!==-1;)e.push(n);if(e.length>0){let n=e[Math.floor(e.length/2)];return{oldFileName:t.substring(0,n),newFileName:t.substring(n+1)}}}return null}function u(e){if(e.startsWith(`"`)){let t=d(e);if(t)return t.fileName}return e}function d(e){if(!e.startsWith(`"`))return null;let t=``,n=1;for(;n<e.length;){if(e[n]===`"`)return{fileName:t,rawLength:n+1};if(e[n]===`\\`&&n+1<e.length)switch(n++,e[n]){case`a`:t+=`\x07`;break;case`b`:t+=`\b`;break;case`f`:t+=`\f`;break;case`n`:t+=`
|
|
12
|
+
`;break;case`r`:t+=`\r`;break;case`t`:t+=` `;break;case`v`:t+=`\v`;break;case`\\`:t+=`\\`;break;case`"`:t+=`"`;break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:{if(n+2>=e.length||e[n+1]<`0`||e[n+1]>`7`||e[n+2]<`0`||e[n+2]>`7`)return null;let r=[parseInt(e.substring(n,n+3),8)];for(n+=3;e[n]===`\\`&&e[n+1]>=`0`&&e[n+1]<=`7`;){if(n+3>=e.length||e[n+2]<`0`||e[n+2]>`7`||e[n+3]<`0`||e[n+3]>`7`)return null;r.push(parseInt(e.substring(n+1,n+4),8)),n+=4}t+=new TextDecoder(`utf-8`).decode(new Uint8Array(r));continue}default:return null}else t+=e[n];n++}return null}function f(e){let n=/^(---|\+\+\+)\s+/.exec(t[r]);if(n){let i=n[1],a=t[r].substring(3).trim().split(` `,2),o=(a[1]||``).trim(),s=a[0];s=s.startsWith(`"`)?u(s):s.replace(/\\\\/g,`\\`),i===`---`?(e.oldFileName=s,e.oldHeader=o):(e.newFileName=s,e.newHeader=o),r++}}function p(){let e=r,n=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),i={oldStart:+n[1],oldLines:n[2]===void 0?1:+n[2],newStart:+n[3],newLines:n[4]===void 0?1:+n[4],lines:[]};i.oldLines===0&&(i.oldStart+=1),i.newLines===0&&(i.newStart+=1);let a=0,s=0;for(;r<t.length&&(s<i.oldLines||a<i.newLines||t[r]?.startsWith(`\\`));r++){let n=t[r].length==0&&r!=t.length-1?` `:t[r][0];if(n===`+`||n===`-`||n===` `||n===`\\`)i.lines.push(t[r]),n===`+`?a++:n===`-`?s++:n===` `&&(a++,s++);else throw Error(`Hunk at line ${e+1} contained invalid line ${t[r]}`)}if(!a&&i.newLines===1&&(i.newLines=0),!s&&i.oldLines===1&&(i.oldLines=0),a!==i.newLines)throw Error(`Added line count did not match for hunk at line `+(e+1));if(s!==i.oldLines)throw Error(`Removed line count did not match for hunk at line `+(e+1));if(r<t.length&&t[r]&&/^[+ -]/.test(t[r])&&!o(t[r]))throw Error(`Hunk at line `+(e+1)+` has more lines than expected (expected `+i.oldLines+` old lines and `+i.newLines+` new lines)`);return i}for(;r<t.length;)c();return n}function Me(e,t,n){let r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return e+o;a=!0}if(!i)return a||(r=!0),t<=e-o?e-o++:(i=!0,s())}}function Ne(e,t,n={}){let r;if(r=typeof t==`string`?je(t):Array.isArray(t)?t:[t],r.length>1)throw Error(`applyPatch only works with a single input.`);return Pe(e,r[0],n)}function Pe(e,t,n={}){(n.autoConvertLineEndings||n.autoConvertLineEndings==null)&&(re(e)&&ke(t)?t=De(t):A(e)&&Ae(t)&&(t=Oe(t)));let r=e.split(`
|
|
13
|
+
`),i=t.hunks,a=n.compareLine||((e,t,n,r)=>t===r),o=n.fuzzFactor||0,s=0;if(o<0||!Number.isInteger(o))throw Error(`fuzzFactor must be a non-negative integer`);if(!i.length)return e;let c=``,l=!1,u=!1;for(let e=0;e<i[i.length-1].lines.length;e++){let t=i[i.length-1].lines[e];t[0]==`\\`&&(c[0]==`+`?l=!0:c[0]==`-`&&(u=!0)),c=t}if(l){if(u){if(!o&&r[r.length-1]==``)return!1}else if(r[r.length-1]==``)r.pop();else if(!o)return!1}else if(u){if(r[r.length-1]!=``)r.push(``);else if(!o)return!1}function d(e,t,n,i=0,o=!0,s=[],c=0){let l=0,u=!1;for(;i<e.length;i++){let f=e[i],p=f.length>0?f[0]:` `,m=f.length>0?f.substr(1):f;if(p===`-`){if(a(t+1,r[t],p,m))t++,l=0;else return!n||r[t]==null?null:(s[c]=r[t],d(e,t+1,n-1,i,!1,s,c+1))}if(p===`+`){if(!o)return null;s[c]=m,c++,l=0,u=!0}if(p===` `){if(l++,s[c]=r[t],a(t+1,r[t],p,m))c++,o=!0,u=!1,t++;else return u||!n?null:r[t]&&(d(e,t+1,n-1,i+1,!1,s,c+1)||d(e,t+1,n-1,i,!1,s,c+1))||d(e,t,n-1,i+1,!1,s,c)}}return c-=l,t-=l,s.length=c,{patchedLines:s,oldLineLastI:t-1}}let f=[],p=0;for(let e=0;e<i.length;e++){let t=i[e],n,a=r.length-t.oldLines+o,c;for(let e=0;e<=o;e++){c=t.oldStart+p-1;let r=Me(c,s,a);for(;c!==void 0&&(n=d(t.lines,c,e),!n);c=r());if(n)break}if(!n)return!1;for(let e=s;e<c;e++)f.push(r[e]);for(let e=0;e<n.patchedLines.length;e++){let t=n.patchedLines[e];f.push(t)}s=n.oldLineLastI+1,p=c+1-t.oldStart}for(let e=s;e<r.length;e++)f.push(r[e]);return f.join(`
|
|
14
|
+
`)}function Fe(e,t){let n=typeof e==`string`?je(e):e,r=0;function i(){let e=n[r++];if(!e)return t.complete();t.loadFile(e,function(n,r){if(n)return t.complete(n);let a=Ne(r,e,t);t.patched(e,a,function(e){if(e)return t.complete(e);i()})})}i()}function Ie(e){return e===void 0||e===`/dev/null`?e:e.startsWith(`a/`)?`b/`+e.slice(2):e.startsWith(`b/`)?`a/`+e.slice(2):e}function Le(e){if(Array.isArray(e))return e.map(e=>Le(e)).reverse();let t=Object.assign(Object.assign({},e),{oldFileName:e.isGit?Ie(e.newFileName):e.newFileName,oldHeader:e.newHeader,newFileName:e.isGit?Ie(e.oldFileName):e.oldFileName,newHeader:e.oldHeader,oldMode:e.newMode,newMode:e.oldMode,isCreate:e.isDelete,isDelete:e.isCreate,hunks:e.hunks.map(e=>({oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,lines:e.lines.map(e=>e.startsWith(`-`)?`+${e.slice(1)}`:e.startsWith(`+`)?`-${e.slice(1)}`:e)}))});return e.isCopy&&(t.newFileName=`/dev/null`,t.newHeader=void 0,t.isDelete=!0,delete t.isCreate,delete t.isCopy,delete t.isRename,t.hunks=[]),t}function Re(e){for(let t=0;t<e.length;t++)if(e[t]<` `||e[t]>`~`||e[t]===`"`||e[t]===`\\`)return!0;return!1}function ze(e){if(!Re(e))return e;let t=`"`,n=new TextEncoder().encode(e),r=0;for(;r<n.length;){let e=n[r];t+=e===7?`\\a`:e===8?`\\b`:e===9?`\\t`:e===10?`\\n`:e===11?`\\v`:e===12?`\\f`:e===13?`\\r`:e===34?`\\"`:e===92?`\\\\`:e>=32&&e<=126?String.fromCharCode(e):`\\`+e.toString(8).padStart(3,`0`),r++}return t+=`"`,t}var Be={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},Ve={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},He={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function Ue(e,t,n,r,i,a,o){let s;s=o?typeof o==`function`?{callback:o}:o:{},s.context===void 0&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw Error(`newlineIsToken may not be used with patch-generation functions, only with diffing functions`);if(s.callback){let{callback:e}=s;me(n,r,Object.assign(Object.assign({},s),{callback:t=>{let n=l(t);e(n)}}))}else return l(me(n,r,s));function l(n){if(!n)return;n.push({value:``,lines:[]});function r(e){return e.map(function(e){return` `+e})}let o=[],s=0,l=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],i=t.lines||qe(t.value);if(t.lines=i,t.added||t.removed){if(!s){let t=n[e-1];s=d,l=f,t&&(u=c>0?r(t.lines.slice(-c)):[],s-=u.length,l-=u.length)}for(let e of i)u.push((t.added?`+`:`-`)+e);t.added?f+=i.length:d+=i.length}else{if(s){if(i.length<=c*2&&e<n.length-2)for(let e of r(i))u.push(e);else{let e=Math.min(i.length,c);for(let t of r(i.slice(0,e)))u.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:l,newLines:f-l+e,lines:u};o.push(t),s=0,l=0,u=[]}}d+=i.length,f+=i.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith(`
|
|
15
|
+
`)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function We(e,t){if(t||=Be,Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw Error(`Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)`);return e.map(e=>We(e,t)).join(`
|
|
16
|
+
`)}let n=[];if(e.isGit){if(t=Be,!e.oldFileName)throw Error(`oldFileName must be specified for Git patches`);if(!e.newFileName)throw Error(`newFileName must be specified for Git patches`);let r=e.oldFileName,i=e.newFileName;e.isCreate&&r===`/dev/null`?r=i.replace(/^b\//,`a/`):e.isDelete&&i===`/dev/null`&&(i=r.replace(/^a\//,`b/`)),n.push(`diff --git `+ze(r)+` `+ze(i)),e.isDelete&&n.push(`deleted file mode `+(e.oldMode??`100644`)),e.isCreate&&n.push(`new file mode `+(e.newMode??`100644`)),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(n.push(`old mode `+e.oldMode),n.push(`new mode `+e.newMode)),e.isRename&&(n.push(`rename from `+ze((e.oldFileName??``).replace(/^a\//,``))),n.push(`rename to `+ze((e.newFileName??``).replace(/^b\//,``)))),e.isCopy&&(n.push(`copy from `+ze((e.oldFileName??``).replace(/^a\//,``))),n.push(`copy to `+ze((e.newFileName??``).replace(/^b\//,``))))}else t.includeIndex&&e.oldFileName==e.newFileName&&e.oldFileName!==void 0&&n.push(`Index: `+e.oldFileName),t.includeUnderline&&n.push(`===================================================================`);let r=e.hunks.length>0;t.includeFileHeaders&&e.oldFileName!==void 0&&e.newFileName!==void 0&&(!e.isGit||r)&&(n.push(`--- `+ze(e.oldFileName)+(e.oldHeader?` `+e.oldHeader:``)),n.push(`+++ `+ze(e.newFileName)+(e.newHeader?` `+e.newHeader:``)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t],i=r.oldLines===0?r.oldStart-1:r.oldStart,a=r.newLines===0?r.newStart-1:r.newStart;n.push(`@@ -`+i+`,`+r.oldLines+` +`+a+`,`+r.newLines+` @@`);for(let e of r.lines)n.push(e)}return n.join(`
|
|
17
17
|
`)+`
|
|
18
|
-
`}function
|
|
18
|
+
`}function Ge(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;Ue(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?We(e,o.headerOptions):void 0)}}))}else{let s=Ue(e,t,n,r,i,a,o);return s?We(s,o?.headerOptions):void 0}}function Ke(e,t,n,r,i,a){return Ge(e,e,t,n,r,i,a)}function qe(e){let t=e.endsWith(`
|
|
19
19
|
`),n=e.split(`
|
|
20
20
|
`).map(e=>e+`
|
|
21
|
-
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function
|
|
21
|
+
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function Je(e){let t=[],n,r;for(let i=0;i<e.length;i++)n=e[i],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}function Ye(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r.added?t.push(`<ins>`):r.removed&&t.push(`<del>`),t.push(Xe(r.value)),r.added?t.push(`</ins>`):r.removed&&t.push(`</del>`)}return t.join(``)}function Xe(e){let t=e;return t=t.replace(/&/g,`&`),t=t.replace(/</g,`<`),t=t.replace(/>/g,`>`),t=t.replace(/"/g,`"`),t}var Ze=t({Diff:()=>S,FILE_HEADERS_ONLY:()=>Ve,INCLUDE_HEADERS:()=>Be,OMIT_HEADERS:()=>He,applyPatch:()=>Ne,applyPatches:()=>Fe,arrayDiff:()=>Te,canonicalize:()=>we,characterDiff:()=>C,convertChangesToDMP:()=>Je,convertChangesToXML:()=>Ye,createPatch:()=>Ke,createTwoFilesPatch:()=>Ge,cssDiff:()=>be,diffArrays:()=>Ee,diffChars:()=>w,diffCss:()=>xe,diffJson:()=>Ce,diffLines:()=>me,diffSentences:()=>ye,diffTrimmedLines:()=>he,diffWords:()=>ce,diffWordsWithSpace:()=>de,formatPatch:()=>We,jsonDiff:()=>Se,lineDiff:()=>pe,parsePatch:()=>je,reversePatch:()=>Le,sentenceDiff:()=>ve,structuredPatch:()=>Ue,wordDiff:()=>se,wordsWithSpaceDiff:()=>ue});function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var P={},$e={},et={},tt;function nt(){if(tt)return et;tt=1;function e(e){return e==null}return et.isNothing=e,et.isObject=function(e){return typeof e==`object`&&!!e},et.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},et.repeat=function(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n},et.isNegativeZero=function(e){return e===0&&1/e==-1/0},et.extend=function(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e},et}var rt,it;function at(){if(it)return rt;it=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
22
22
|
|
|
23
|
-
`+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},
|
|
23
|
+
`+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},rt=t,rt}var ot,st;function ct(){if(st)return ot;st=1;let e=nt();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function n(t,n){return e.repeat(` `,n-t.length)+t}return ot=function(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+`
|
|
24
24
|
`+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+`
|
|
25
25
|
`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
26
26
|
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+`
|
|
27
|
-
`}return u.replace(/\n$/,``)}
|
|
27
|
+
`}return u.replace(/\n$/,``)},ot}var lt,ut;function F(){if(ut)return lt;ut=1;let e=at(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}return lt=function(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)},lt}var dt,ft;function pt(){if(ft)return dt;ft=1;let e=at(),t=F();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(a){let o=[],s=[];if(a instanceof t)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},dt=i,dt}var mt,ht;function gt(){return ht||(ht=1,mt=new(F())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}})),mt}var _t,vt;function yt(){return vt||(vt=1,_t=new(F())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}})),_t}var bt,xt;function St(){return xt||(xt=1,bt=new(F())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})),bt}var Ct,wt;function Tt(){return wt||(wt=1,Ct=new(pt())({explicit:[gt(),yt(),St()]})),Ct}var Et,Dt;function Ot(){if(Dt)return Et;Dt=1;let e=F();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function n(){return null}function r(e){return e===null}return Et=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`}),Et}var kt,At;function jt(){if(At)return kt;At=1;let e=F();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function n(e){return e===`true`||e===`True`||e===`TRUE`}function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return kt=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`}),kt}var Mt,Nt;function Pt(){if(Nt)return Mt;Nt=1;let e=nt(),t=F();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let c=e[a];if((c===`-`||c===`+`)&&(c=e[++a]),c===`0`){if(a+1===t)return!0;if(c=e[++a],c===`b`){for(a++;a<t;a++){if(c=e[a],c!==`0`&&c!==`1`)return!1;s=!0}return s&&isFinite(o(e))}if(c===`x`){for(a++;a<t;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if(c===`o`){for(a++;a<t;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<t;a++){if(!i(e.charCodeAt(a)))return!1;s=!0}return s?isFinite(o(e)):!1}function o(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return o(e)}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return Mt=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:a,construct:s,predicate:c,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),Mt}var Ft,It;function Lt(){if(It)return Ft;It=1;let e=nt(),t=F(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return Ft=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:c,represent:s,defaultStyle:`lowercase`}),Ft}var Rt,zt;function Bt(){return zt||(zt=1,Rt=Tt().extend({implicit:[Ot(),jt(),Pt(),Lt()]})),Rt}var Vt,Ht;function Ut(){return Ht||(Ht=1,Vt=Bt()),Vt}var Wt,Gt;function Kt(){if(Gt)return Wt;Gt=1;let e=F(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}function a(e){return e.toISOString()}return Wt=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),Wt}var qt,Jt;function Yt(){if(Jt)return qt;Jt=1;let e=F();function t(e){return e===`<<`||e===null}return qt=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),qt}var Xt,Zt;function Qt(){if(Zt)return Xt;Zt=1;let e=F();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
28
28
|
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
29
29
|
\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
30
|
-
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return
|
|
31
|
-
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function
|
|
30
|
+
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return Xt=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),Xt}var $t,en;function tn(){if(en)return $t;en=1;let e=F(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r={},i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o||t.call(r,s))return!1;Object.defineProperty(r,s,{value:!0})}return!0}function i(e){return e===null?[]:e}return $t=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:i}),$t}var nn,rn;function an(){if(rn)return nn;rn=1;let e=F(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return nn=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,construct:r}),nn}var on,sn;function cn(){if(sn)return on;sn=1;let e=F(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}function r(e){return e===null?{}:e}return on=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),on}var ln,un;function dn(){return un||(un=1,ln=Ut().extend({implicit:[Kt(),Yt()],explicit:[Qt(),tn(),an(),cn()]})),ln}var fn;function pn(){if(fn)return $e;fn=1;let e=nt(),t=at(),n=ct(),r=dn(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function d(e){return e===10||e===13}function f(e){return e===9||e===32}function p(e){return e===9||e===32||e===10||e===13}function m(e){return e===44||e===91||e===93||e===123||e===125}function h(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function g(e){return e===120?2:e===117?4:e===85?8:0}function _(e){return e>=48&&e<=57?e-48:-1}function v(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:case 9:return` `;case 110:return`
|
|
31
|
+
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function ee(e){e.anchorMapTransactions.push(Object.create(null))}function O(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];i.call(r,n)||(r[n]=t[n])}}function te(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function k(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function ne(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let re={YAML:function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],c.test(a)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&T(e,`there is a previously declared suffix for "`+a+`" tag handle`),l.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r}};function A(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}else a.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}function j(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&T(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`)}function ie(t,n,r,a){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`),j(t);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];j(t),i.call(n,s)||(b(n,s,r[s]),a[s]=!0)}}function M(e,t,n,r,a,o,s,c,l){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t<n;t+=1)Array.isArray(a[t])&&T(e,`nested arrays are not supported inside keys`),typeof a==`object`&&u(a[t])===`[object Object]`&&(a[t]=`[object Object]`)}if(typeof a==`object`&&u(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o)){o.length>100&&T(e,`abnormal merge sequence size`);for(let r=0,i=o.length;r<i;r+=1)ie(e,t,o[r],n)}else ie(e,t,o,n)}else!e.json&&!i.call(n,a)&&i.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),b(t,a,o),delete n[a];return t}function ae(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function N(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;f(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(d(i))for(ae(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}function oe(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||p(n)))}function se(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
|
|
32
32
|
`,n-1))}function ce(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,h=e.input.charCodeAt(e.position);if(p(h)||m(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return!1;if(h===63||h===45){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;h!==0;){if(h===58){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))break}else if(h===35){if(p(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&oe(e)||n&&m(h))break;else if(d(h)){if(o=e.line,s=e.lineStart,c=e.lineIndent,N(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(A(e,r,i,!1),se(e,e.line-o),r=i=e.position,!1),f(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return A(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function le(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(A(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else d(i)?(A(e,n,r,!0),se(e,N(e,!1,t)),n=r=e.position):e.position===e.lineStart&&oe(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,f(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}function ue(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return A(e,n,e.position,!0),e.position++,!0;else if(a===92){if(A(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),d(a))N(e,!1,t);else if(a<256&&x[a])e.result+=S[a],e.position++;else if((i=g(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=h(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=y(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else d(a)?(A(e,n,r,!0),se(e,N(e,!1,t)),n=r=e.position):e.position===e.lineStart&&oe(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,f(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}function de(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(N(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&p(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,N(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,ye(e,t,1,!1,!0),g=e.tag,h=e.result,N(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),N(e,!0,t),ye(e,t,1,!1,!0),_=e.result),f?M(e,s,m,g,h,_,r,i,a):u?s.push(M(e,null,m,g,h,_,r,i,a)):s.push(h),N(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}function fe(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,p=t.input.charCodeAt(t.position);if(p===124)r=!1;else if(p===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)i===1?i=p===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=_(p))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(f(p)){do p=t.input.charCodeAt(++t.position);while(f(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!d(p)&&p!==0)}for(;p!==0;){for(ae(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),d(p)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
|
|
33
33
|
`,a?1+c:c):i===1&&a&&(t.result+=`
|
|
34
34
|
`);break}r?f(p)?(l=!0,t.result+=e.repeat(`
|
|
35
35
|
`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
|
|
36
36
|
`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
|
|
37
37
|
`,c):t.result+=e.repeat(`
|
|
38
|
-
`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);A(t,n,t.position,!1)}return!0}function pe(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&p(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,N(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(ye(e,t,3,!1,!0),i.push(e.result),N(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function me(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(M(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!ye(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(M(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),ye(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(M(e,l,u,d,m,h,i,a,o),d=m=h=null),N(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&M(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function he(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function ge(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function _e(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],N(e,!0,-1),!0}function ve(e,t,n,r){let i=
|
|
39
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)be(n);return n.documents}function
|
|
38
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);A(t,n,t.position,!1)}return!0}function pe(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&p(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,N(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(ye(e,t,3,!1,!0),i.push(e.result),N(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function me(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(M(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!ye(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(M(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),ye(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(M(e,l,u,d,m,h,i,a,o),d=m=h=null),N(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&M(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function he(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function ge(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function _e(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],N(e,!0,-1),!0}function ve(e,t,n,r){let i=k(e);return ee(e),ne(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,me(e,n,r)&&e.kind===`mapping`?(O(e),!0):(te(e),ne(e,i),!1)}function ye(e,t,n,r,a){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&N(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=k(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!he(e)&&!ge(e))break;d===null&&(d=r),N(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||a,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(pe(e,m)||me(e,m,p))||de(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&ve(e,d,d.position-d.lineStart,p)||o&&fe(e,p)||le(e,p)||ue(e,p)?u=!0:_e(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ce(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&pe(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(i.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}function be(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(N(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;f(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!d(r));break}if(d(r))break;for(t=e.position;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ae(e),i.call(re,a)?re[a](e,a,o):E(e,`unknown document directive "`+a+`"`)}N(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,N(e,!0,-1)):n&&T(e,`directives end mark is expected`),ye(e,e.lineIndent-1,4,!1,!0),N(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&oe(e)?e.input.charCodeAt(e.position)===46&&(e.position+=3,N(e,!0,-1)):e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}function xe(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
39
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)be(n);return n.documents}return $e.loadAll=function(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=xe(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])},$e.load=function(e,n){let r=xe(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}},$e}var mn={},hn;function gn(){if(hn)return mn;hn=1;let e=nt(),t=at(),n=dn(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,o={};o[0]=`\\0`,o[7]=`\\a`,o[8]=`\\b`,o[9]=`\\t`,o[10]=`\\n`,o[11]=`\\v`,o[12]=`\\f`,o[13]=`\\r`,o[27]=`\\e`,o[34]=`\\"`,o[92]=`\\\\`,o[133]=`\\N`,o[160]=`\\_`,o[8232]=`\\L`,o[8233]=`\\P`;let s=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let a=0,o=r.length;a<o;a+=1){let o=r[a],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&i.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}function u(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=0xffffffff)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}function d(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=l(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function f(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(`
|
|
40
40
|
`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
|
|
41
41
|
`&&(a+=r),a+=e}return a}function p(t,n){return`
|
|
42
|
-
`+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+
|
|
42
|
+
`+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+O(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}function T(e,t){let n=S(e)?String(t):``,r=e[e.length-1]===`
|
|
43
43
|
`;return n+(r&&(e[e.length-2]===`
|
|
44
44
|
`||e===`
|
|
45
45
|
`)?`+`:r?``:`-`)+`
|
|
46
46
|
`}function E(e){return e[e.length-1]===`
|
|
47
47
|
`?e.slice(0,-1):e}function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
48
|
-
`);return r=r===-1?e.length:r,n.lastIndex=r,
|
|
48
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,ee(e.slice(0,r),t)})(),i=e[0]===`
|
|
49
49
|
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
50
|
-
`:``)+
|
|
50
|
+
`:``)+ee(n,t),i=a}return r}function ee(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
51
51
|
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
52
52
|
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
53
|
-
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function
|
|
54
|
-
`:``}
|
|
55
|
-
`});for(let a=0;a<u.length;a++){let s=u[a],c=a===u.length-1?``:`,`,l=s in e,d=s in t;if(l&&d){let a=
|
|
56
|
-
`})}else{let a=o+JSON.stringify(s)+`: `,l=
|
|
57
|
-
`)}i.push(...l)}}else if(l){let t=
|
|
58
|
-
`})}else{let e=
|
|
53
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function O(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=x(e,r);let i=o[n];!i&&g(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function te(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(j(e,t,a,!1,!1)||a===void 0&&j(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function k(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(j(e,t+1,o,!0,!0,!1,!0)||o===void 0&&j(e,t+1,null,!0,!0,!1,!0))&&(r&&i===``||(i+=p(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function ne(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),j(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),j(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function re(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;i&&a===``||(o+=p(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!j(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=p(e,n)),j(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function A(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=a?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let a=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,a);else if(i.call(c.represent,a))o=c.represent[a](n,a);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}function j(e,n,i,a,o,s,c){e.tag=null,e.dump=i,A(e,i,!1)||A(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(re(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(ne(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?k(e,n-1,e.dump,o):k(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(te(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&w(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function ie(e,t){let n=[],r=[];M(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function M(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)M(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)M(e[r[i]],t,n)}}}return mn.dump=function(e,t){t||={};let n=new d(t);n.noRefs||ie(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),j(n,0,r,!0,!0)?n.dump+`
|
|
54
|
+
`:``},mn}var _n;function vn(){if(_n)return P;_n=1;let e=pn(),t=gn();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return P.Type=F(),P.Schema=pt(),P.FAILSAFE_SCHEMA=Tt(),P.JSON_SCHEMA=Bt(),P.CORE_SCHEMA=Ut(),P.DEFAULT_SCHEMA=dn(),P.load=e.load,P.loadAll=e.loadAll,P.dump=t.dump,P.YAMLException=at(),P.types={binary:Qt(),float:Lt(),map:St(),null:Ot(),pairs:an(),set:cn(),timestamp:Kt(),bool:jt(),int:Pt(),merge:Yt(),omap:tn(),seq:yt(),str:gt()},P.safeLoad=n(`safeLoad`,`load`),P.safeLoadAll=n(`safeLoadAll`,`loadAll`),P.safeDump=n(`safeDump`,`dump`),P}var{Type:yn,Schema:bn,FAILSAFE_SCHEMA:xn,JSON_SCHEMA:Sn,CORE_SCHEMA:Cn,DEFAULT_SCHEMA:wn,load:Tn,loadAll:En,dump:Dn,YAMLException:On,types:kn,safeLoad:An,safeLoadAll:jn,safeDump:Mn}=Qe(vn()),Nn=Ze,I;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.ADDED=1]=`ADDED`,e[e.REMOVED=2]=`REMOVED`,e[e.CHANGED=3]=`CHANGED`})(I||={});function Pn(e,t){return t===`yaml`?Dn(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function Fn(e,t,n=`json`){let r=Pn(e,n);return r===Pn(t,n)?[{value:r}]:zn(e,t,0,n)}function In(e,t){return Fn(e,t,`json`)}function Ln(e,t){try{let n=JSON.parse(e),r=JSON.parse(t);return JSON.stringify(n)===JSON.stringify(r)?[{value:e}]:me(e,t,{newlineIsToken:!1})}catch{return me(e,t,{newlineIsToken:!1})}}function Rn(e,t){let n=Tn(e),r=Tn(t);return Dn(n,{indent:2,lineWidth:-1,noRefs:!0})===Dn(r,{indent:2,lineWidth:-1,noRefs:!0})?[{value:e}]:me(e,t,{newlineIsToken:!1})}function zn(e,t,n,r=`json`){let i=Pn(e,r),a=Pn(t,r);return i===a?[{value:Un(i,n,r)}]:typeof e==`object`&&e&&typeof t==`object`&&t&&!Array.isArray(e)&&!Array.isArray(t)?Bn(e,t,n,r):Array.isArray(e)&&Array.isArray(t)?Vn(e,t,n,r):Hn(i,a,n,r)}function Bn(e,t,n,r=`json`){let i=[],a=` `.repeat(n),o=` `.repeat(n+1),s=new Set(Object.keys(e)),c=Object.keys(t),l=[...s].filter(e=>!(e in t)),u=[...c,...l];i.push({value:`{
|
|
55
|
+
`});for(let a=0;a<u.length;a++){let s=u[a],c=a===u.length-1?``:`,`,l=s in e,d=s in t;if(l&&d){let a=Pn(e[s],r);if(a===Pn(t[s],r)){let e=Un(a,n+1);i.push({value:o+JSON.stringify(s)+`: `+e+c+`
|
|
56
|
+
`})}else{let a=o+JSON.stringify(s)+`: `,l=zn(e[s],t[s],n+1,r);if(l.length>0){if(!l[0].removed&&!l[0].added)l[0].value=a+l[0].value;else{let e=l.find(e=>e.removed),t=l.find(e=>e.added);e&&(e.value=a+e.value),t&&(t.value=a+t.value)}}if(c&&l.length>0){let e=l[l.length-1];e.value=e.value.replace(/\n$/,c+`
|
|
57
|
+
`)}i.push(...l)}}else if(l){let t=Un(Pn(e[s],r),n+1);i.push({removed:!0,value:o+JSON.stringify(s)+`: `+t+c+`
|
|
58
|
+
`})}else{let e=Un(Pn(t[s],r),n+1);i.push({added:!0,value:o+JSON.stringify(s)+`: `+e+c+`
|
|
59
59
|
`})}}return i.push({value:a+`}
|
|
60
|
-
`}),i}function
|
|
61
|
-
`});let s=Math.max(e.length,t.length);for(let a=0;a<s;a++){let c=a===s-1?``:`,`;if(a>=e.length){let e=
|
|
62
|
-
`})}else if(a>=t.length){let t=
|
|
63
|
-
`})}else{let s=
|
|
64
|
-
`})}else{let s=
|
|
60
|
+
`}),i}function Vn(e,t,n,r=`json`){let i=[],a=` `.repeat(n),o=` `.repeat(n+1);i.push({value:`[
|
|
61
|
+
`});let s=Math.max(e.length,t.length);for(let a=0;a<s;a++){let c=a===s-1?``:`,`;if(a>=e.length){let e=Un(Pn(t[a],r),n+1);i.push({added:!0,value:o+e+c+`
|
|
62
|
+
`})}else if(a>=t.length){let t=Un(Pn(e[a],r),n+1);i.push({removed:!0,value:o+t+c+`
|
|
63
|
+
`})}else{let s=Pn(e[a],r);if(s===Pn(t[a],r)){let e=Un(s,n+1);i.push({value:o+e+c+`
|
|
64
|
+
`})}else{let s=zn(e[a],t[a],n+1,r);if(s.length>0&&(s[0].value=o+s[0].value),c&&s.length>0){let e=s[s.length-1];e.value=e.value.replace(/\n$/,c+`
|
|
65
65
|
`)}i.push(...s)}}}return i.push({value:a+`]
|
|
66
|
-
`}),i}function
|
|
66
|
+
`}),i}function Hn(e,t,n,r=`json`){return me(Un(e,n),Un(t,n)).map(e=>({value:e.value,added:e.added,removed:e.removed}))}function Un(e,t,n=`json`){if(t===0)return e;let r=` `.repeat(t);return e.split(`
|
|
67
67
|
`).map((e,t)=>t===0?e:r+e).join(`
|
|
68
|
-
`)}var L;(function(e){e.CHARS=`diffChars`,e.WORDS=`diffWords`,e.WORDS_WITH_SPACE=`diffWordsWithSpace`,e.LINES=`diffLines`,e.TRIMMED_LINES=`diffTrimmedLines`,e.SENTENCES=`diffSentences`,e.CSS=`diffCss`,e.JSON=`diffJson`,e.YAML=`diffYaml`})(L||={});var
|
|
69
|
-
`),Wn=(e,t,n=L.CHARS)=>{let r=(typeof n==`string`?Mn[n]:n)(e,t),i={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{if(e)i.right.push({type:I.ADDED,value:n});else if(t)i.left.push({type:I.REMOVED,value:n});else{let e={type:I.DEFAULT,value:n};i.right.push(e),i.left.push(e)}}),i},Gn=(e,t,n=!1,r=L.CHARS,i=0,a=[],o=!1)=>{let s=[];if(typeof e==`string`&&typeof t==`string`){if(r===L.JSON)s=In(e,t);else if(r===L.YAML)try{s=Ln(e,t)}catch{s=pe(e,t,{newlineIsToken:!1})}else s=pe(e,t,{newlineIsToken:!1})}else s=Fn(e,t);let c=i,l=i,u=[],d=0,f=[],p=[],m=(e,t,i,u,h)=>Un(e).map((e,g)=>{let _={},v={};if(!(p.includes(`${t}-${g}`)||h&&g!==0)){if(i||u){let i=!0;if(u){l+=1,_.lineNumber=l,_.type=I.REMOVED,_.value=e||` `;let a=s[t+1];if(a?.added){let s=Un(a.value)[g];if(s){let{value:a,lineNumber:c,type:l}=m(s,t,!0,!1,!0)[0].right;if(p.push(`${t+1}-${g}`),v.lineNumber=c,_.value===a)i=!1,v.type=0,_.type=0,v.value=a;else{v.type=l;let t=e.length>500||a.length>500;if(n||t)v.value=a;else if(o)_.rawValue=e,_.value=e,v.rawValue=a,v.value=a;else{let t=Wn(e,a,r);v.value=t.right,_.value=t.left}}}}}else c+=1,v.lineNumber=c,v.type=I.ADDED,v.value=e;i&&!h&&(f.includes(d)||f.push(d))}else l+=1,c+=1,_.lineNumber=l,_.type=I.DEFAULT,_.value=e,v.lineNumber=c,v.type=I.DEFAULT,v.value=e;return(a?.includes(`L-${_.lineNumber}`)||a?.includes(`R-${v.lineNumber}`)&&!f.includes(d))&&f.push(d),h||(d+=1),{right:v,left:_}}}).filter(e=>e!=null);return s.forEach(({added:e,removed:t,value:n},r)=>{u=[...u,...m(n,r,e,t)]}),{lineInformation:u,diffLines:f}},Kn=null,qn=null,Jn=async()=>{if(Kn!==null)return Kn;if(qn===!1)return null;if(typeof Worker>`u`||typeof Blob>`u`||typeof URL>`u`)return qn=!1,null;try{let{WORKER_CODE:e}=await m(async()=>{let{WORKER_CODE:e}=await Promise.resolve().then(()=>mo);return{WORKER_CODE:e}},void 0),t=new Blob([e],{type:`application/javascript`});Kn=URL.createObjectURL(t),qn=!0}catch{qn=!1,Kn=null}return Kn},Yn=async(e,t,n=!1,r=L.CHARS,i=0,a=[],o=!1,s=!1)=>{let c=()=>Gn(e,t,n,r,i,a,o);if(s)return Promise.resolve(c());let l=await Jn();return l?new Promise(s=>{let u;try{u=new Worker(l)}catch{qn=!1,s(c());return}u.onmessage=e=>{s(e.data),u.terminate()},u.onerror=()=>{qn=!1,u.terminate(),s(c())},u.postMessage({oldString:e,newString:t,disableWordDiff:n,lineCompareMethod:r,linesOffset:i,showLines:a,deferWordDiff:o})}):Promise.resolve(c())};function Xn(){return(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,c.jsx)(`title`,{children:`expand`}),(0,c.jsx)(`path`,{d:`m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})]})}function Zn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Qn(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var $n=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Qn(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Zn(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),R=`-ms-`,er=`-moz-`,z=`-webkit-`,tr=`comm`,nr=`rule`,rr=`decl`,ir=`@import`,ar=`@keyframes`,or=`@layer`,sr=Math.abs,cr=String.fromCharCode,lr=Object.assign;function ur(e,t){return V(e,0)^45?(((t<<2^V(e,0))<<2^V(e,1))<<2^V(e,2))<<2^V(e,3):0}function dr(e){return e.trim()}function fr(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function pr(e,t){return e.indexOf(t)}function V(e,t){return e.charCodeAt(t)|0}function mr(e,t,n){return e.slice(t,n)}function hr(e){return e.length}function gr(e){return e.length}function _r(e,t){return t.push(e),e}function vr(e,t){return e.map(t).join(``)}var yr=1,br=1,xr=0,H=0,U=0,Sr=``;function Cr(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:yr,column:br,length:o,return:``}}function wr(e,t){return lr(Cr(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Tr(){return U}function Er(){return U=H>0?V(Sr,--H):0,br--,U===10&&(br=1,yr--),U}function W(){return U=H<xr?V(Sr,H++):0,br++,U===10&&(br=1,yr++),U}function Dr(){return V(Sr,H)}function Or(){return H}function kr(e,t){return mr(Sr,e,t)}function Ar(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jr(e){return yr=br=1,xr=hr(Sr=e),H=0,[]}function Mr(e){return Sr=``,e}function Nr(e){return dr(kr(H-1,Ir(e===91?e+2:e===40?e+1:e)))}function Pr(e){for(;(U=Dr())&&U<33;)W();return Ar(e)>2||Ar(U)>3?``:` `}function Fr(e,t){for(;--t&&W()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return kr(e,Or()+(t<6&&Dr()==32&&W()==32))}function Ir(e){for(;W();)switch(U){case e:return H;case 34:case 39:e!==34&&e!==39&&Ir(U);break;case 40:e===41&&Ir(e);break;case 92:W()}return H}function Lr(e,t){for(;W()&&e+U!==57&&(e+U!==84||Dr()!==47););return`/*`+kr(t,H-1)+`*`+cr(e===47?e:W())}function Rr(e){for(;!Ar(Dr());)W();return kr(e,H)}function zr(e){return Mr(Br(``,null,null,null,[``],e=jr(e),0,[0],e))}function Br(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=W()){case 40:if(m!=108&&V(C,d-1)==58){pr(C+=B(Nr(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Nr(v);break;case 9:case 10:case 13:case 32:C+=Pr(m);break;case 92:C+=Fr(Or()-1,7);continue;case 47:switch(Dr()){case 42:case 47:_r(Hr(Lr(W(),Or()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=hr(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=B(C,/\f/g,``)),p>0&&hr(C)-d&&_r(p>32?Ur(C+`;`,r,n,d-1):Ur(B(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(_r(S=Vr(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)Br(C,t,S,S,b,a,d,s,x);else switch(f===99&&V(C,3)===110?100:f){case 100:case 108:case 109:case 115:Br(e,S,S,r&&_r(Vr(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Br(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+hr(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Er()==125)continue}switch(C+=cr(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(hr(C)-1)*_,_=1;break;case 64:Dr()===45&&(C+=Nr(W())),f=Dr(),u=d=hr(y=C+=Rr(Or())),v++;break;case 45:m===45&&hr(C)==2&&(h=0)}}return a}function Vr(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=gr(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=mr(e,d+1,d=sr(h=o[m])),y=e;_<p;++_)(y=dr(h>0?f[_]+` `+v:B(v,/&\f/g,f[_])))&&(c[g++]=y);return Cr(e,t,n,i===0?nr:s,c,l,u)}function Hr(e,t,n){return Cr(e,t,n,tr,cr(Tr()),mr(e,2,-2),0)}function Ur(e,t,n,r){return Cr(e,t,n,rr,mr(e,0,r),mr(e,r+1,-1),r)}function Wr(e,t){for(var n=``,r=gr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Gr(e,t,n,r){switch(e.type){case or:if(e.children.length)break;case ir:case rr:return e.return=e.return||e.value;case tr:return``;case ar:return e.return=e.value+`{`+Wr(e.children,r)+`}`;case nr:e.value=e.props.join(`,`)}return hr(n=Wr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Kr(e){var t=gr(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function qr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yr=function(e,t,n){for(var r=0,i=0;r=i,i=Dr(),r===38&&i===12&&(t[n]=1),!Ar(i);)W();return kr(e,H)},Xr=function(e,t){var n=-1,r=44;do switch(Ar(r)){case 0:r===38&&Dr()===12&&(t[n]=1),e[n]+=Yr(H-1,t,n);break;case 2:e[n]+=Nr(r);break;case 4:if(r===44){e[++n]=Dr()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=cr(r)}while(r=W());return e},Zr=function(e,t){return Mr(Xr(jr(e),t))},Qr=new WeakMap,$r=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||Qr.get(n))&&!r){Qr.set(e,!0);for(var i=[],a=Zr(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ei=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function ti(e,t){switch(ur(e,t)){case 5103:return z+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+er+e+R+e+e;case 6828:case 4268:return z+e+R+e+e;case 6165:return z+e+R+`flex-`+e+e;case 5187:return z+e+B(e,/(\w+).+(:[^]+)/,z+`box-$1$2`+R+`flex-$1$2`)+e;case 5443:return z+e+R+`flex-item-`+B(e,/flex-|-self/,``)+e;case 4675:return z+e+R+`flex-line-pack`+B(e,/align-content|flex-|-self/,``)+e;case 5548:return z+e+R+B(e,`shrink`,`negative`)+e;case 5292:return z+e+R+B(e,`basis`,`preferred-size`)+e;case 6060:return z+`box-`+B(e,`-grow`,``)+z+e+R+B(e,`grow`,`positive`)+e;case 4554:return z+B(e,/([^-])(transform)/g,`$1`+z+`$2`)+e;case 6187:return B(B(B(e,/(zoom-|grab)/,z+`$1`),/(image-set)/,z+`$1`),e,``)+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,z+`box-pack:$3`+R+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+z+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,z+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hr(e)-1-t>6)switch(V(e,t+1)){case 109:if(V(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,`$1`+z+`$2-$3$1`+er+(V(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~pr(e,`stretch`)?ti(B(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(V(e,t+1)!==115)break;case 6444:switch(V(e,hr(e)-3-(~pr(e,`!important`)&&10))){case 107:return B(e,`:`,`:`+z)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+z+(V(e,14)===45?`inline-`:``)+`box$3$1`+z+`$2$3$1`+R+`$2box$3`)+e}break;case 5936:switch(V(e,t+11)){case 114:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return z+e+R+e+e}return e}var ni=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case rr:e.return=ti(e.value,e.length);break;case ar:return Wr([wr(e,{value:B(e.value,`@`,`@`+z)})],r);case nr:if(e.length)return vr(e.props,function(t){switch(fr(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Wr([wr(e,{props:[B(t,/:(read-\w+)/,`:`+er+`$1`)]})],r);case`::placeholder`:return Wr([wr(e,{props:[B(t,/:(plac\w+)/,`:`+z+`input-$1`)]}),wr(e,{props:[B(t,/:(plac\w+)/,`:`+er+`$1`)]}),wr(e,{props:[B(t,/:(plac\w+)/,R+`input-$1`)]})],r)}return``})}}],ri=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||ni,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[$r,ei],l,u=[Gr,qr(function(e){l.insert(e)})],d=Kr(c.concat(r,u)),f=function(e){return Wr(zr(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new $n({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p};function ii(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ai={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oi=/[A-Z]|^ms/g,si=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ci=function(e){return e.charCodeAt(1)===45},li=function(e){return e!=null&&typeof e!=`boolean`},ui=Jr(function(e){return ci(e)?e:e.replace(oi,`-$&`).toLowerCase()}),di=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(si,function(e,t,n){return hi={name:t,styles:n,next:hi},t})}return ai[e]!==1&&!ci(e)&&typeof t==`number`&&t!==0?t+`px`:t};function fi(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return hi={name:i.name,styles:i.styles,next:hi},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)hi={name:o.name,styles:o.styles,next:hi},o=o.next;return a.styles+`;`}return pi(e,t,n);case`function`:if(e!==void 0){var s=hi,c=n(e);return hi=s,fi(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function pi(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=fi(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:li(s)&&(r+=ui(a)+`:`+di(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)li(o[c])&&(r+=ui(a)+`:`+di(a,o[c])+`;`);else{var l=fi(e,t,o);switch(a){case`animation`:case`animationName`:r+=ui(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var mi=/label:\s*([^\s;{]+)\s*(;|$)/g,hi;function gi(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;hi=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=fi(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=fi(n,t,e[o]),r&&(i+=a[o]);mi.lastIndex=0;for(var s=``,c;(c=mi.exec(i))!==null;)s+=`-`+c[1];return{name:ii(i)+s,styles:i,next:hi}}function _i(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var vi=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},yi=function(e,t,n){vi(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function bi(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function xi(e,t,n){var r=[],i=_i(e,r,n);return r.length<2?n:i+t(r)}var Si=function(e){var t=ri(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){var e=gi([...arguments],t.registered,void 0);return yi(t,e,!1),t.key+`-`+e.name};return{css:n,cx:function(){var e=[...arguments];return xi(t.registered,n,Ci(e))},injectGlobal:function(){bi(t,gi([...arguments],t.registered))},keyframes:function(){var e=gi([...arguments],t.registered),n=`animation-`+e.name;return bi(t,{name:e.name,styles:`@keyframes `+n+`{`+e.styles+`}`}),n},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:_i.bind(null,t.registered),merge:xi.bind(null,t.registered,n)}},Ci=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n},wi=Object.freeze({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`}),Ti=Object.freeze({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#2ea04326`,addedColor:`white`,removedBackground:`#f851491a`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#2ea04366`,wordRemovedBackground:`#f8514966`,addedGutterBackground:`#3fb9504d`,removedGutterBackground:`#f851494d`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#262831`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#f0f6fc`,addedGutterColor:`#f0f6fc`,removedGutterColor:`#f0f6fc`,codeFoldContentColor:`#9198a1`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#f0f6fc`,diffViewerTitleBorderColor:`#353846`}),Ei=(e,t=!1,n=``)=>{let{variables:r={},...i}=e,a={light:{...wi,...r.light||{}},dark:{...Ti,...r.dark||{}}},o=t?a.dark:a.light,{css:s,cx:c}=Si({key:`react-diff`,nonce:n}),l=s({width:`auto`,overflow:`hidden`,padding:0,label:`content`}),u=s({label:`split-view`}),d=s({position:`sticky`,top:0,zIndex:2,label:`sticky-header`}),f=s({background:o.diffViewerTitleBackground,color:o.diffViewerTitleColor,padding:`0.5em 1em`,display:`flex`,alignItems:`center`,gap:`0.5em`,fontFamily:`monospace`,fontSize:12,fill:o.diffViewerTitleColor}),p=s({display:`flex`,label:`column-headers`}),m=s({width:`100%`,minWidth:`1000px`,overflowX:`auto`,tableLayout:`fixed`,fontSize:12,background:o.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`1.6em`,width:`fit-content`},label:`diff-container`,borderCollapse:`collapse`,borderRadius:0,"& td, & th":{border:0,verticalAlign:`baseline`},"@media (max-width: 768px)":{minWidth:`unset`}}),h=s({overflow:`hidden`,width:`100%`}),g=s({color:o.diffViewerColor,whiteSpace:`pre-wrap`,fontFamily:`monospace`,lineBreak:`anywhere`,textDecoration:`none`,label:`content-text`}),_=s({display:`flex`,alignItems:`baseline`,label:`content-flex`}),v=s({whiteSpace:`pre`,wordBreak:`keep-all`,flex:`0 0 auto`,label:`line-indent`}),y=s({flex:`1 1 auto`,minWidth:0,label:`line-body`}),b=s({userSelect:`none`,label:`unselectable`}),x=s({label:`no-wrap`,pre:{whiteSpace:`pre`},[`.${g}`]:{whiteSpace:`pre`,lineBreak:`auto`}}),S=s({background:`transparent`,border:`none`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:0,label:`all-expand-button`,":hover":{fill:o.addedGutterColor},":focus":{outline:`1px ${o.addedGutterColor} solid`}}),C=s({background:o.diffViewerTitleBackground,padding:`0.5em`,lineHeight:`1.4em`,height:`2.4em`,overflow:`hidden`,width:`50%`,borderBottom:`1px solid ${o.diffViewerTitleBorderColor}`,boxSizing:`border-box`,fontSize:12,label:`title-block`,":only-child":{width:`100%`},":last-child:not(:only-child)":{borderLeft:`1px solid ${o.diffViewerTitleBorderColor}`},[`.${g}`]:{color:o.diffViewerTitleColor}}),w=s({color:o.gutterColor,label:`line-number`}),T=s({background:o.removedBackground,color:o.removedColor,pre:{color:o.removedColor},[`.${w}`]:{color:o.removedGutterColor},label:`diff-removed`}),E=s({background:o.addedBackground,color:o.addedColor,pre:{color:o.addedColor},[`.${w}`]:{color:o.addedGutterColor},label:`diff-added`}),D=s({background:o.changedBackground,[`.${w}`]:{color:o.gutterColor},label:`diff-changed`}),O=s({display:`inline`,textDecoration:`none`,label:`word-diff`}),k=s({background:o.wordAddedBackground,label:`word-added`}),ee=s({background:o.wordRemovedBackground,label:`word-removed`}),te=s({backgroundColor:o.codeFoldGutterBackground,label:`code-fold-gutter`,minWidth:`50px`,width:`50px`,padding:0,textAlign:`center`,fill:o.codeFoldContentColor}),ne=s({padding:0,overflow:`hidden`,"&&&":{verticalAlign:`middle`},label:`code-fold-content-container`}),re=s({background:o.codeFoldBackground,cursor:`pointer`,display:`block`,margin:0,padding:0,border:`none`,font:`inherit`,lineHeight:`inherit`,textAlign:`left`,fill:o.codeFoldContentColor,label:`code-fold-expand-button`}),A=s({color:o.codeFoldContentColor,fontFamily:`monospace`,label:`code-fold-content`}),j=s({display:`block`,width:`10px`,height:`10px`,backgroundColor:`#ddd`,borderWidth:`1px`,borderStyle:`solid`,borderColor:o.diffViewerTitleBorderColor}),ie=s({backgroundColor:o.wordAddedBackground}),M=s({backgroundColor:o.wordRemovedBackground}),ae=s({backgroundColor:o.codeFoldBackground,fontSize:12,alignItems:`center`,userSelect:`none`,fontWeight:700,cursor:`pointer`,label:`code-fold`,"& td":{paddingTop:0,paddingBottom:0},"&:hover":{color:o.diffViewerColor,fill:o.diffViewerColor,"& *":{color:o.diffViewerColor,fill:o.diffViewerColor}},a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),N=s({backgroundColor:o.emptyLineBackground,label:`empty-line`}),oe=s({width:28,paddingLeft:10,paddingRight:10,paddingTop:0,paddingBottom:0,userSelect:`none`,label:`marker`,[`&.${E}`]:{pre:{color:o.addedColor}},[`&.${T}`]:{pre:{color:o.removedColor}}}),se=s({background:o.highlightBackground,label:`highlighted-line`,[`.${k}, .${ee}`]:{backgroundColor:`initial`}}),ce=s({label:`highlighted-gutter`}),le=s({userSelect:`none`,minWidth:50,width:`50px`,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`center`,color:o.gutterColor,background:o.gutterBackground,"&:hover":{cursor:`pointer`,background:o.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:`center`,width:`100%`},[`&.${E}`]:{background:o.addedGutterBackground},[`&.${T}`]:{background:o.removedGutterBackground},[`&.${ce}`]:{background:o.highlightGutterBackground,"&:hover":{background:o.highlightGutterBackground}}}),ue=s({"&:hover":{background:o.gutterBackground,cursor:`initial`},label:`empty-gutter`}),de={diffContainer:m,diffRemoved:T,diffAdded:E,diffChanged:D,splitView:u,marker:oe,highlightedGutter:ce,highlightedLine:se,gutter:le,line:s({verticalAlign:`baseline`,label:`line`,textDecoration:`none`,backgroundColor:`transparent`,fontSize:12}),lineContent:h,wordDiff:O,wordAdded:k,summary:f,block:j,blockAddition:ie,blockDeletion:M,wordRemoved:ee,noSelect:b,noWrap:x,codeFoldGutter:te,codeFoldExpandButton:re,codeFoldContentContainer:ne,codeFold:ae,emptyGutter:ue,emptyLine:N,lineNumber:w,contentText:g,contentFlex:_,lineIndent:v,lineBody:y,content:l,column:s({}),codeFoldContent:A,stickyHeader:d,columnHeaders:p,titleBlock:C,allExpandButton:S},fe=Object.keys(i).reduce((e,t)=>({...e,[t]:s(i[t])}),{});return Object.keys(de).reduce((e,t)=>({...e,[t]:fe[t]?c(de[t],fe[t]):de[t]}),{})};function Di(){return(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,c.jsx)(`title`,{children:`fold`}),(0,c.jsx)(`path`,{d:`M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})]})}var Oi=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Oi.prototype.normal={},Oi.prototype.property={},Oi.prototype.space=void 0;function ki(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Oi(n,r,t)}function Ai(e){return e.toLowerCase()}var G=class{constructor(e,t){this.attribute=t,this.property=e}};G.prototype.attribute=``,G.prototype.booleanish=!1,G.prototype.boolean=!1,G.prototype.commaOrSpaceSeparated=!1,G.prototype.commaSeparated=!1,G.prototype.defined=!1,G.prototype.mustUseProperty=!1,G.prototype.number=!1,G.prototype.overloadedBoolean=!1,G.prototype.property=``,G.prototype.spaceSeparated=!1,G.prototype.space=void 0;var ji=t({boolean:()=>K,booleanish:()=>q,commaOrSpaceSeparated:()=>X,commaSeparated:()=>Pi,number:()=>J,overloadedBoolean:()=>Ni,spaceSeparated:()=>Y}),Mi=0,K=Fi(),q=Fi(),Ni=Fi(),J=Fi(),Y=Fi(),Pi=Fi(),X=Fi();function Fi(){return 2**++Mi}var Ii=Object.keys(ji),Li=class extends G{constructor(e,t,n,r){let i=-1;if(super(e,t),Ri(this,`space`,r),typeof n==`number`)for(;++i<Ii.length;){let e=Ii[i];Ri(this,Ii[i],(n&ji[e])===ji[e])}}};Li.prototype.defined=!0;function Ri(e,t,n){n&&(e[t]=n)}function zi(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Li(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ai(r)]=r,n[Ai(a.attribute)]=r}return new Oi(t,n,e.space)}var Bi=zi({properties:{ariaActiveDescendant:null,ariaAtomic:q,ariaAutoComplete:null,ariaBusy:q,ariaChecked:q,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:q,ariaFlowTo:Y,ariaGrabbed:q,ariaHasPopup:null,ariaHidden:q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:J,ariaLive:null,ariaModal:q,ariaMultiLine:q,ariaMultiSelectable:q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:q,ariaReadOnly:q,ariaRelevant:null,ariaRequired:q,ariaRoleDescription:Y,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:q,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Vi(e,t){return t in e?e[t]:t}function Hi(e,t){return Vi(e,t.toLowerCase())}var Ui=zi({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Pi,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alpha:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:Y,autoFocus:K,autoPlay:K,blocking:Y,capture:null,charSet:null,checked:K,cite:null,className:Y,closedBy:null,colorSpace:null,cols:J,colSpan:J,command:null,commandFor:null,content:null,contentEditable:q,controls:K,controlsList:Y,coords:J|Pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:Ni,draggable:q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:Y,height:J,hidden:Ni,high:J,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:Y,itemRef:Y,itemScope:K,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,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:K,optimum:J,pattern:null,ping:Y,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:Y,required:K,reversed:K,rows:J,rowSpan:J,sandbox:Y,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootCustomElementRegistry:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shadowRootSerializable:K,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:q,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:q,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:K,disablePictureInPicture:K,disableRemotePlayback:K,exportParts:Pi,part:Y,prefix:null,property:null,results:J,security:null,unselectable:null},space:`html`,transform:Hi}),Wi=zi({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:X,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Y,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:Pi,g2:Pi,glyphName:Pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:X,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:X,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:X,rev:X,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:X,requiredFeatures:X,requiredFonts:X,requiredFormats:X,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:X,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:X,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:X,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Vi}),Gi=zi({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()}}),Ki=zi({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Hi}),qi=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ji=/[A-Z]/g,Yi=/-[a-z]/g,Xi=/^data[-\w.:]+$/i;function Zi(e,t){let n=Ai(t),r=t,i=G;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Xi.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Yi,$i);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Yi.test(e)){let n=e.replace(Ji,Qi);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Li}return new i(r,t)}function Qi(e){return`-`+e.toLowerCase()}function $i(e){return e.charAt(1).toUpperCase()}var ea=ki([Bi,Ui,Gi,Ki,qi],`html`),ta=ki([Bi,Wi,Gi,Ki,qi],`svg`);function na(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}var ra=/[#.]/g;function ia(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){ra.lastIndex=i;let e=ra.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function aa(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function oa(e,t,n){let r=n?fa(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=ia(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,sa(i))a.unshift(i);else for(let[t,n]of Object.entries(i))ca(e,o.properties,t,n)}for(let e of a)la(o.children,e);return o.type===`element`&&o.tagName===`template`&&e.space===`html`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function sa(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function ca(e,t,n,r){if(r==null)return;let i=Zi(e,n),a;if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?aa(r):i.commaSeparated?na(r):i.commaOrSpaceSeparated?aa(na(r).join(` `)):ua(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?da(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(ua(i,i.property,t));a=e}if(i.property===`className`&&Array.isArray(t.className)){let e=a;a=[...t.className,...Array.isArray(e)?e:[e]]}t[i.property]=a}function la(e,t){if(t!=null){if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)la(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?la(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function ua(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Ai(n)===Ai(t)))return!0}return n}function da(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function fa(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var pa=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),ma=oa(ea,`div`);oa(ta,`g`,pa);var ha=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),ga={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function _a(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function va(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ya(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function ba(e){return ya(e)||_a(e)}var xa=document.createElement(`i`);function Sa(e){let t=`&`+e+`;`;xa.innerHTML=t;let n=xa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var Ca=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function wa(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?ba:u===`decimal`?_a:va;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&ha.includes(y)&&(_=y,v=Sa(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&Sa(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(x||n.nonTerminated!==!1){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):ba(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Ta(e))h(7,S),C=`�`;else if(e in ga)h(6,S),C=ga[e];else{let t=``;Ea(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Ca[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Ta(e){return e>=55296&&e<=57343||e>1114111}function Ea(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Da=0,Oa={},Z={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Da}),e.__id},clone:function e(t,n){n||={};var r,i;switch(Z.util.type(t)){case`Object`:if(i=Z.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case`Array`:return i=Z.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}}},languages:{plain:Oa,plaintext:Oa,text:Oa,txt:Oa,extend:function(e,t){var n=Z.util.clone(Z.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=Z.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var c=r[e];return r[e]=a,Z.languages.DFS(Z.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i||={};var a=Z.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],c=Z.util.type(s);c===`Object`&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):c===`Array`&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Z.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=Z.tokenize(r.code,r.grammar),Z.hooks.run(`after-tokenize`,r),ka.stringify(Z.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Ma;return Na(i,i.head,e),ja(e,i,t,i.head,0),Fa(i)},hooks:{all:{},add:function(e,t){var n=Z.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Z.hooks.all[e];if(n&&n.length)for(var r=0,i;i=n[r++];)i(t)}},Token:ka};function ka(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}function Aa(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function ja(e,t,n,r,i,a){for(var o in n)if(n.hasOwnProperty(o)&&n[o]){var s=n[o];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(a&&a.cause==o+`,`+c)return;var l=s[c],u=l.inside,d=!!l.lookbehind,f=!!l.greedy,p=l.alias;if(f&&!l.pattern.global){var m=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+`g`)}for(var h=l.pattern||l,g=r.next,_=i;g!==t.tail&&!(a&&_>=a.reach);_+=g.value.length,g=g.next){var v=g.value;if(t.length>e.length)return;if(!(v instanceof ka)){var y=1,b;if(f){if(b=Aa(h,_,e,d),!b||b.index>=e.length)break;var x=b.index,S=b.index+b[0].length,C=_;for(C+=g.value.length;x>=C;)g=g.next,C+=g.value.length;if(C-=g.value.length,_=C,g.value instanceof ka)continue;for(var w=g;w!==t.tail&&(C<S||typeof w.value==`string`);w=w.next)y++,C+=w.value.length;y--,v=e.slice(_,C),b.index-=_}else if(b=Aa(h,0,v,d),!b)continue;var x=b.index,T=b[0],E=v.slice(0,x),D=v.slice(x+T.length),O=_+v.length;a&&O>a.reach&&(a.reach=O);var k=g.prev;E&&(k=Na(t,k,E),_+=E.length),Pa(t,k,y);var ee=new ka(o,u?Z.tokenize(T,u):T,p,T);if(g=Na(t,k,ee),D&&Na(t,g,D),y>1){var te={cause:o+`,`+c,reach:O};ja(e,t,n,g.prev,_,te),a&&te.reach>a.reach&&(a.reach=te.reach)}}}}}}function Ma(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Na(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Pa(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function Fa(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}var Ia=Z;function La(){}La.prototype=Ia;var Q=new La;Q.highlight=Ra,Q.register=za,Q.alias=Ba,Q.registered=Va,Q.listLanguages=Ha,Q.util.encode=Wa,Q.Token.stringify=Ua;function Ra(e,t){if(typeof e!=`string`)throw TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t==`object`)n=t;else{if(r=t,typeof r!=`string`)throw TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(Q.languages,r))n=Q.languages[r];else throw Error("Unknown language: `"+r+"` is not registered")}return{type:`root`,children:Ia.highlight.call(Q,e,n,r)}}function za(e){if(typeof e!=`function`||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Q.languages,e.displayName)||e(Q)}function Ba(e,t){let n=Q.languages,r={};typeof e==`string`?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){let e=r[i],t=typeof e==`string`?[e]:e,a=-1;for(;++a<t.length;)n[t[a]]=n[i]}}function Va(e){if(typeof e!=`string`)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Q.languages,e)}function Ha(){let e=Q.languages,t=[],n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]==`object`&&t.push(n);return t}function Ua(e,t){if(typeof e==`string`)return{type:`text`,value:e};if(Array.isArray(e)){let n=[],r=-1;for(;++r<e.length;)e[r]!==null&&e[r]!==void 0&&e[r]!==``&&n.push(Ua(e[r],t));return n}let n={attributes:{},classes:[`token`,e.type],content:Ua(e.content,t),language:t,tag:`span`,type:e.type};return e.alias&&n.classes.push(...typeof e.alias==`string`?[e.alias]:e.alias),Q.hooks.run(`wrap`,n),ma(n.tag+`.`+n.classes.join(`.`),Ga(n.attributes),n.content)}function Wa(e){return e}function Ga(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=wa(e[t]));return e}var Ka={default:`#24292e`,comment:`#6a737d`,prolog:`#6a737d`,doctype:`#6a737d`,cdata:`#6a737d`,punctuation:`#24292e`,property:`#005cc5`,tag:`#22863a`,boolean:`#005cc5`,number:`#005cc5`,constant:`#005cc5`,symbol:`#005cc5`,deleted:`#b31d28`,selector:`#6f42c1`,"attr-name":`#6f42c1`,string:`#032f62`,char:`#032f62`,builtin:`#005cc5`,inserted:`#22863a`,operator:`#d73a49`,entity:`#22863a`,url:`#032f62`,"attr-value":`#032f62`,keyword:`#d73a49`,atrule:`#d73a49`,"class-name":`#6f42c1`,function:`#6f42c1`,regex:`#032f62`,important:`#e36209`,variable:`#e36209`},qa={default:`#f8f8f2`,comment:`#6272a4`,prolog:`#6272a4`,doctype:`#6272a4`,cdata:`#6272a4`,punctuation:`#f8f8f2`,property:`#8be9fd`,tag:`#ff79c6`,boolean:`#bd93f9`,number:`#bd93f9`,constant:`#bd93f9`,symbol:`#bd93f9`,deleted:`#ff5555`,selector:`#50fa7b`,"attr-name":`#50fa7b`,string:`#f1fa8c`,char:`#f1fa8c`,builtin:`#8be9fd`,inserted:`#50fa7b`,operator:`#f8f8f2`,entity:`#ff79c6`,url:`#f1fa8c`,"attr-value":`#f1fa8c`,keyword:`#ff79c6`,atrule:`#ff79c6`,"class-name":`#8be9fd`,function:`#50fa7b`,regex:`#ffb86c`,important:`#ffb86c`,variable:`#f8f8f2`},Ja=(e,t)=>{for(let n=t.length-1;n>=0;n--){let r=t[n];if(r!==`token`&&e[r])return e[r]}return e.default},Ya={arduino:()=>m(()=>import(`./arduino-DKR9_xyJ.js`),__vite__mapDeps([0,1,2,3,4])),bash:()=>m(()=>import(`./bash-4sOSYtlG.js`),[]),basic:()=>m(()=>import(`./basic-2Y4JmWk4.js`),[]),c:()=>m(()=>import(`./c-CEM0h_nK.js`).then(e=>e.n),__vite__mapDeps([2,3,4])),clike:()=>m(()=>import(`./clike-BlGBRct5.js`).then(e=>e.n),__vite__mapDeps([4,3])),cpp:()=>m(()=>import(`./cpp-C0nea612.js`),__vite__mapDeps([1,2,3,4])),csharp:()=>m(()=>import(`./csharp-C430X67Y.js`),__vite__mapDeps([5,4,3])),css:()=>m(()=>import(`./css-BLUnUyF9.js`),[]),diff:()=>m(()=>import(`./diff-CnVbg4kZ.js`),[]),go:()=>m(()=>import(`./go-2ldyX7zA.js`),__vite__mapDeps([6,4,3])),ini:()=>m(()=>import(`./ini-_H0-Wnh8.js`),[]),java:()=>m(()=>import(`./java-BaDy4FT-.js`),__vite__mapDeps([7,4,3])),javascript:()=>m(()=>import(`./javascript-DoKZVVG7.js`),__vite__mapDeps([8,4,3])),json:()=>m(()=>import(`./json-B02E3pk2.js`),[]),kotlin:()=>m(()=>import(`./kotlin-aNSUnDDr.js`),__vite__mapDeps([9,4,3])),less:()=>m(()=>import(`./less-DZtXz-rP.js`),__vite__mapDeps([10,11])),lua:()=>m(()=>import(`./lua-Dl7axvik.js`),[]),makefile:()=>m(()=>import(`./makefile-C7Vj606s.js`),[]),markdown:()=>m(()=>import(`./markdown-ChIsYjIt.js`),__vite__mapDeps([12,13,3])),markup:()=>m(()=>import(`./markup-C09yLKTH.js`).then(e=>e.n),__vite__mapDeps([13,3])),"markup-templating":()=>m(()=>import(`./markup-templating-DNhq-UOv.js`),__vite__mapDeps([14,13,3])),objectivec:()=>m(()=>import(`./objectivec-s2I4Tn1D.js`),__vite__mapDeps([15,2,3,4])),perl:()=>m(()=>import(`./perl-Ci2iz3Xf.js`),[]),php:()=>m(()=>import(`./php-B_6N-5RT.js`),__vite__mapDeps([16,14,13,3])),python:()=>m(()=>import(`./python-PcNiIBxw.js`),[]),r:()=>m(()=>import(`./r-CjN4PMnd.js`),[]),regex:()=>m(()=>import(`./regex-Dv2vm_uO.js`),[]),ruby:()=>m(()=>import(`./ruby-C8GJZDTg.js`),__vite__mapDeps([17,4,3])),rust:()=>m(()=>import(`./rust-CYWeblTv.js`),[]),sass:()=>m(()=>import(`./sass-RhMvkm29.js`),__vite__mapDeps([18,11])),scss:()=>m(()=>import(`./scss-BSDGjs1D.js`),__vite__mapDeps([19,11])),sql:()=>m(()=>import(`./sql-DL4klaVE.js`),[]),swift:()=>m(()=>import(`./swift-7bJ1Hzvg.js`),[]),typescript:()=>m(()=>import(`./typescript-s_P45ayF.js`),__vite__mapDeps([20,8,4,3])),vbnet:()=>m(()=>import(`./vbnet-BCRrhSDY.js`),__vite__mapDeps([21,22])),yaml:()=>m(()=>import(`./yaml-n53w1Kfi.js`),[])},Xa={html:`markup`,xml:`markup`,svg:`markup`,mathml:`markup`,ssml:`markup`,atom:`markup`,rss:`markup`,js:`javascript`,jsx:`javascript`,node:`javascript`,ts:`typescript`,tsx:`typescript`,py:`python`,rb:`ruby`,yml:`yaml`,md:`markdown`,sh:`bash`,shell:`bash`,zsh:`bash`,"c++":`cpp`,objc:`objectivec`,cs:`csharp`,dotnet:`csharp`,kt:`kotlin`,rs:`rust`,golang:`go`},Za=new Set,Qa=new Map,$a=e=>{let t=e.toLowerCase();return Xa[t]??t},eo=async e=>{let t=$a(e);if(Q.registered(t))return t;if(Za.has(t))return null;let n=Ya[t];if(!n)return Za.add(t),null;let r=Qa.get(t);return r||(r=n().then(e=>{Q.register(e.default)}).catch(()=>{Za.add(t)}).finally(()=>{Qa.delete(t)}),Qa.set(t,r)),await r,Q.registered(t)?t:null},to=(e,t,n,r,i)=>{let a=r;for(let r of e)if(r.type===`text`){let e=r.value??``;e.length>0&&(i.push({start:a,end:a+e.length,color:n,text:e}),a+=e.length)}else if(r.children){let e=r.properties?.className,o=Array.isArray(e)?Ja(t,e):n;a=to(r.children,t,o,a,i)}return a},no=(e,t)=>{let n=Array.from({length:t},()=>[]),r=0,i=0;for(let t of e){let e=t.start;for(let a=0;a<t.text.length;a++)if(t.text[a]===`
|
|
70
|
-
`){let o=t.start+a;o>e&&n[r]&&n[r].push({start:e-i,end:o-i,color:t.color}),r+=1,i=t.start+a+1,e=i}t.end>e&&n[r]&&n[r].push({start:e-i,end:t.end-i,color:t.color})}return n},
|
|
71
|
-
`).length;return no(i,a)},io=(e,t)=>{if(t<=0)return e;let n=[];for(let r of e)r.end<=t||n.push({start:Math.max(r.start,t)-t,end:r.end-t,color:r.color});return n},ao=(e,t,n,{styles:r,showHighlight:i},a)=>{let o=t?{color:t}:void 0;return n===I.ADDED?(0,c.jsx)(`ins`,{className:(0,h.default)(r.wordDiff,{[r.wordAdded]:i}),style:o,children:e},a):n===I.REMOVED?(0,c.jsx)(`del`,{className:(0,h.default)(r.wordDiff,{[r.wordRemoved]:i}),style:o,children:e},a):(0,c.jsx)(`span`,{className:r.wordDiff,style:o,children:e},a)},oo=(e,t,n,r)=>{let i=[],a=0;for(let e of n){let t=typeof e.value==`string`?e.value:``;t.length>0&&(i.push({start:a,end:a+t.length,type:e.type??I.DEFAULT}),a+=t.length)}let o=e.length,s=[],c=0,l=0,u=0,d=0;for(;u<o;){let n=t[c],a=i[l],f=n?n.end:o,p=a?a.end:o,m=Math.min(f,p,o);if(m<=u){if(f<=u)c+=1;else if(p<=u)l+=1;else break}else s.push(ao(e.slice(u,m),n?.color,a?a.type:I.DEFAULT,r,d++)),u=m,f<=u&&(c+=1),p<=u&&(l+=1)}return s},so=(e,t)=>t.length===0?[(0,c.jsx)(`span`,{children:e},0)]:t.map((t,n)=>(0,c.jsx)(`span`,{style:{color:t.color},children:e.slice(t.start,t.end)},n)),co=t({DiffMethod:()=>L,LineNumberPrefix:()=>$,computeStyles:()=>Ei,default:()=>po,defaultDarkHighlightTheme:()=>qa,defaultDarkThemeVariables:()=>Ti,defaultLightHighlightTheme:()=>Ka,defaultLightThemeVariables:()=>wi}),lo=/^[ \t]+/;function uo(e){if(typeof e==`string`){let t=e.match(lo);return t?{indent:t[0],rest:e.slice(t[0].length)}:{indent:``,rest:e}}if(Array.isArray(e)){let t=e.map(e=>({...e})),n=``,r=0;for(;r<t.length;r++){let e=typeof t[r].value==`string`?t[r].value:null;if(e===null)break;let i=e.match(lo);if(!i)break;if(i[0].length===e.length)n+=e;else{n+=i[0],t[r]={...t[r],value:e.slice(i[0].length)};break}}return n?{indent:n,rest:t.slice(r)}:{indent:``,rest:e}}return{indent:``,rest:e}}function fo(e,t,n){let r=[],i=0;for(let e of t){let t=typeof e.value==`string`?e.value:``;t.length>0&&(r.push({start:i,end:i+t.length,type:e.type??I.DEFAULT}),i+=t.length)}let a=[],o=0;for(;o<e.length;)if(e[o]===`<`){let t=e.indexOf(`>`,o);if(t===-1){a.push({type:`text`,content:e.slice(o)});break}a.push({type:`tag`,content:e.slice(o,t+1)}),o=t+1}else{let t=e.indexOf(`<`,o);t===-1&&(t=e.length),a.push({type:`text`,content:e.slice(o,t)}),o=t}function s(e){return e.replace(/</g,`<`).replace(/>/g,`>`).replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/ /g,`\xA0`)}function c(e){return e===I.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:`</ins>`}:e===I.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:`</del>`}:{open:`<span class="${n.wordDiff}">`,close:`</span>`}}let l=0,u=``;for(let e of a)if(e.type===`tag`)u+=e.content;else{let t=e.content,n=s(t),i=0,a=0;for(;i<n.length;){let e=l+i,o=r.find(t=>e>=t.start&&e<t.end);if(!o){let e=t[a];u+=e,a++,i++;continue}let s=o.end-e,d=n.length-i,f=Math.min(s,d),p=a,m=0;for(;m<f&&p<t.length;){if(t[p]===`&`){let e=t.indexOf(`;`,p);e!==-1&&e-p<10?p=e+1:p++}else p++;m++}let h=t.slice(a,p),g=c(o.type);u+=g?g.open+h+g.close:h,a=p,i+=f}l+=n.length}return u}var $;(function(e){e.LEFT=`L`,e.RIGHT=`R`})($||={});var po=class e extends s.Component{styles;wordDiffCache=new Map;highlightPrecedenceWarned=!1;contentColumnRef=s.createRef();charMeasureRef=s.createRef();stickyHeaderRef=s.createRef();resizeObserver=null;scrollDebounceTimer=null;lastRenderedRange={start:0,end:1/0};static defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:L.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:s.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1,highlightResult:null}}getWordDiffValues=(e,t,n)=>{if(!e||!t)return{leftValue:e?.value,rightValue:t?.value};if(e.rawValue===void 0||t.rawValue===void 0)return{leftValue:e.value,rightValue:t.value};let r=`${n}-${e.rawValue}-${t.rawValue}`,i=this.wordDiffCache.get(r);if(!i){let n=this.props.compareMethod===L.JSON||this.props.compareMethod===L.YAML?L.CHARS:this.props.compareMethod,a=Wn(e.rawValue,t.rawValue,n);i={left:a.left??[],right:a.right??[]},this.wordDiffCache.set(r,i)}return{leftValue:i.left,rightValue:i.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0);onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())};getStickyHeaderHeight(){return this.stickyHeaderRef.current?.offsetHeight||0}measureCharWidth(){let e=this.charMeasureRef.current;return e&&e.getBoundingClientRect().width||7.2}measureContentColumnWidth(){let e=this.contentColumnRef.current;if(e&&e.clientWidth>0){let t=window.getComputedStyle(e),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=e.clientWidth-n;if(r>0)return r}let t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;let n=t.clientWidth,r=this.props.hideLineNumbers?0:50;this.props.splitView;let i=this.props.splitView?2:1,a=this.props.splitView?2:1,o=n-(2*r+i*28);return Math.max(100,o/a)}getTextLength(e){return e?typeof e==`string`?e.length:e.reduce((e,t)=>e+(typeof t.value==`string`?t.value.length:0),0):0}buildCumulativeOffsets(t,n,r,i,a,o,s,c){let l=[0],u=new Set;for(let d=0;d<t.length;d++){let f=t[d];if(a){let t=n[d];if(t!==void 0&&!i.includes(t)){let n=r[t].endLine===d;!u.has(t)&&n&&(u.add(t),l.push(l[l.length-1]+e.ESTIMATED_ROW_HEIGHT));continue}}let p=f.left?.value?this.getTextLength(f.left.value):0,m=f.right?.value?this.getTextLength(f.right.value):0,h=c?Math.max(p,m):p||m,g=Math.floor(s/o),_=g>0?Math.max(1,Math.ceil(h/g)):1;l.push(l[l.length-1]+_*e.ESTIMATED_ROW_HEIGHT)}return l}findLineAtOffset(e,t){let n=0,r=t.length-2;for(;n<r;){let i=Math.floor((n+r+1)/2);t[i]<=e?n=i:r=i-1}return n}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;let e=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!e)return;let n=this.getMemoisedKey(),{lineInformation:r,lineBlocks:i,blocks:a}=this.state.computedDiffResult[n]??{};if(!r)return;let o=this.buildCumulativeOffsets(r,i,a,this.state.expandedBlocks,this.props.showDiffOnly??!0,t,e,this.props.splitView??!0);this.setState({cumulativeOffsets:o,contentColumnWidth:e,charWidth:t},()=>{this.onScroll()})};computeStyles=y(Ei);onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{};shouldHighlightWordDiff=()=>{let{compareMethod:e}=this.props;return e===L.CHARS||e===L.WORDS||e===L.WORDS_WITH_SPACE||e===L.JSON||e===L.YAML};renderWordDiff=(e,t)=>{let n=this.shouldHighlightWordDiff(),r=e.map(e=>typeof e.value==`string`?e.value:``).join(``);if(r.length>500)return[(0,c.jsx)(`span`,{children:r},`long-line`)];if(t){let i=t(r),a=i?.props?.dangerouslySetInnerHTML?.__html;if(typeof a==`string`){let t=fo(a,e,{wordDiff:this.styles.wordDiff,wordAdded:n?this.styles.wordAdded:``,wordRemoved:n?this.styles.wordRemoved:``});return[s.cloneElement(i,{key:`highlighted-diff`,dangerouslySetInnerHTML:{__html:t}})]}}return e.map((e,t)=>{let r;return r=typeof e.value==`string`?e.value:void 0,e.type===I.ADDED?(0,c.jsx)(`ins`,{className:(0,h.default)(this.styles.wordDiff,{[this.styles.wordAdded]:n}),children:r},t):e.type===I.REMOVED?(0,c.jsx)(`del`,{className:(0,h.default)(this.styles.wordDiff,{[this.styles.wordRemoved]:n}),children:r},t):(0,c.jsx)(`span`,{className:(0,h.default)(this.styles.wordDiff),children:r},t)})};renderLine=(e,t,n,r,i,a)=>{let o=`${n}-${e}`,s=`${a}-${i}`,l=this.props.highlightLines??[],u=l.includes(o)||l.includes(s),d=t===I.ADDED,f=t===I.REMOVED,p=t===I.CHANGED,{indent:m,rest:g}=uo(r),_=Array.isArray(g),v=this.state.highlightResult?n===$.LEFT?this.state.highlightResult.left:this.state.highlightResult.right:null,y=e??i??void 0,b=v&&y!=null?v.get(y):void 0,x=b?io(b,m.length):void 0,S;if(x){if(_){let e=g.map(e=>typeof e.value==`string`?e.value:``).join(``);S=e.length>500?so(e,x):oo(e,x,g,{styles:{wordDiff:this.styles.wordDiff,wordAdded:this.styles.wordAdded,wordRemoved:this.styles.wordRemoved},showHighlight:this.shouldHighlightWordDiff()})}else S=typeof g==`string`?so(g,x):g}else S=_?this.renderWordDiff(g,this.props.renderContent):this.props.renderContent&&typeof g==`string`?this.props.renderContent(g):g;let C=`div`;d&&!_?C=`ins`:f&&!_&&(C=`del`);let w=!S&&!m;return(0,c.jsxs)(c.Fragment,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(o),className:(0,h.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:u}),children:(0,c.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,c.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(s),className:(0,h.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:u}),children:(0,c.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e??0,type:t??I.DEFAULT,prefix:n,value:r??``,additionalLineNumber:i??void 0,additionalPrefix:a,styles:this.styles}):null,(0,c.jsx)(`td`,{className:(0,h.default)(this.styles.marker,{[this.styles.emptyLine]:w,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:u}),children:(0,c.jsxs)(`pre`,{children:[d&&`+`,f&&`-`]})}),(0,c.jsx)(`td`,{ref:n===$.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:(0,h.default)(this.styles.content,{[this.styles.emptyLine]:w,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:u,left:n===$.LEFT,right:n===$.RIGHT}),onMouseDown:()=>{let e=document.getElementsByClassName(`right`);for(let t=0;t<e.length;t++)e[t]?.classList.remove(this.styles.noSelect);let t=document.getElementsByClassName(`left`);for(let e=0;e<t.length;e++)t[e]?.classList.remove(this.styles.noSelect);let r=document.getElementsByClassName(n===$.LEFT?`right`:`left`);for(let e=0;e<r.length;e++)r[e]?.classList.add(this.styles.noSelect)},title:d&&!_?`Added line`:f&&!_?`Removed line`:void 0,children:(0,c.jsxs)(C,{className:(0,h.default)(this.styles.contentText,this.styles.contentFlex),children:[m?(0,c.jsx)(`span`,{className:this.styles.lineIndent,children:m}):null,(0,c.jsx)(`span`,{className:this.styles.lineBody,children:S})]})})]})};renderSplitView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n);return(0,c.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,$.LEFT,r),this.renderLine(t.lineNumber,t.type,$.RIGHT,i)]},n)};renderInlineView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n),a;return e.type===I.REMOVED&&t.type===I.ADDED?(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)}),(0,c.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber,$.RIGHT)})]},n):(e.type===I.REMOVED&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)),e.type===I.DEFAULT&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,t.lineNumber,$.RIGHT)),t.type===I.ADDED&&(a=this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber)),(0,c.jsx)(`tr`,{className:this.styles.line,children:a},n))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:a}=this.props,o=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,c.jsxs)(`span`,{className:this.styles.codeFoldContent,children:[`@@ -`,n-e,`,`,e,` +`,r-e,`,`,e,` @@`]}),l=(0,c.jsx)(`td`,{className:this.styles.codeFoldContentContainer,children:(0,c.jsx)(`button`,{type:`button`,className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:o})}),u=!a&&!i,d=(0,c.jsx)(`td`,{className:this.styles.codeFoldGutter,children:(0,c.jsx)(Xn,{})});return(0,c.jsxs)(`tr`,{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:`button`,tabIndex:0,children:[!i&&d,this.props.renderGutter?(0,c.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,c.jsx)(`td`,{className:(0,h.default)({[this.styles.codeFoldGutter]:u})}),u?(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(`td`,{}),l]}):(0,c.jsxs)(s.Fragment,{children:[l,this.props.renderGutter?(0,c.jsx)(`td`,{}):null,(0,c.jsx)(`td`,{}),(0,c.jsx)(`td`,{}),i?null:(0,c.jsx)(`td`,{})]})]},`${n}-${r}`)};getMemoisedKey=()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o}=this.props;return JSON.stringify({oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o})};memoisedCompute=async()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i}=this.props,a=this.getMemoisedKey();if(this.state.computedDiffResult[a]){this.setState(e=>({...e,isLoading:!1})),this.updateHighlight();return}let o=this.props.infiniteLoading?.containerHeight,s=o?typeof o==`number`?o:parseInt(o,10)||0:0,c=!n&&!!this.props.infiniteLoading&&s>0&&s<2e3,{lineInformation:l,diffLines:u}=await Yn(e,t,n,r,i,this.props.alwaysShowLines,c,this.props.disableWorker),d=this.props.extraLinesSurroundingDiff??3,{lineBlocks:f,blocks:p}=b(l,u,d<0?0:Math.round(d));this.state.computedDiffResult[a]={lineInformation:l,lineBlocks:f,blocks:p},this.setState(e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.updateHighlight(),this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})};lineToText=e=>typeof e.rawValue==`string`?e.rawValue:typeof e.value==`string`?e.value:Array.isArray(e.value)?e.value.map(e=>typeof e.value==`string`?e.value:``).join(``):``;buildSideTokens=(e,t,n,r)=>{let i=[];for(let n of e){let e=n[t];e&&e.lineNumber!=null&&i.push({lineNumber:e.lineNumber,text:this.lineToText(e)})}i.sort((e,t)=>e.lineNumber-t.lineNumber);let a=new Map;if(i.length===0)return a;let o=ro(i.map(e=>e.text).join(`
|
|
72
|
-
`),n,r);if(!o)return a;for(let e=0;e<i.length;e++)a.set(i[e].lineNumber,o[e]??[]);return a};resolveHighlightTheme=()=>{let e=this.props.useDarkTheme?qa:Ka;return this.props.highlightTheme?{...e,...this.props.highlightTheme}:e};updateHighlight=async()=>{let{highlightLanguage:e}=this.props;if(!e){this.state.highlightResult&&this.setState({highlightResult:null});return}let t=this.getMemoisedKey(),n=this.state.computedDiffResult[t];if(!n)return;let r=`${t}::${e}::${this.props.useDarkTheme??!1}::${JSON.stringify(this.props.highlightTheme??null)}`;if(this.state.highlightResult?.key===r)return;let i=await eo(e);if(this.props.highlightLanguage!==e||this.getMemoisedKey()!==t)return;if(!i){this.state.highlightResult&&this.setState({highlightResult:null});return}!this.highlightPrecedenceWarned&&this.props.renderContent;let a=this.resolveHighlightTheme(),o=this.buildSideTokens(n.lineInformation,`left`,i,a),s=this.buildSideTokens(n.lineInformation,`right`,i,a);this.setState({highlightResult:{key:r,left:o,right:s}})};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{let t=this.state.scrollableContainerRef.current;if(!t||!this.props.infiniteLoading)return;let n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n),{cumulativeOffsets:i}=this.state,a=i?this.findLineAtOffset(r,i):Math.floor(r/e.ESTIMATED_ROW_HEIGHT),o=a+Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT),s=a<this.lastRenderedRange.start||o>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);let c={};a!==this.state.visibleStartRow&&(c.visibleStartRow=a),s&&!this.state.isScrolling&&(c.isScrolling=!0),Object.keys(c).length>0&&this.setState(c),(this.state.isScrolling||s)&&(this.scrollDebounceTimer=setTimeout(()=>{this.setState({isScrolling:!1})},150))};renderDiff=()=>{let{splitView:t,infiniteLoading:n,showDiffOnly:r}=this.props,{computedDiffResult:i,expandedBlocks:a,visibleStartRow:o,scrollableContainerRef:l,cumulativeOffsets:u}=this.state,{lineInformation:d=[],lineBlocks:f=[],blocks:p=[]}=i[this.getMemoisedKey()]??{},m=0,h=1/0,g=n?.overscan??20;if(n&&l.current){let t=l.current,n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n);if(u){let n=u[u.length-1]||0,i=u.length-2;m=Math.max(0,this.findLineAtOffset(r,u)-g),h=this.findLineAtOffset(r+t.clientHeight,u)+g;let a=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);h=Math.max(h,m+a+g),r+t.clientHeight>=n-g*e.ESTIMATED_ROW_HEIGHT&&(h=i+g)}else{let n=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);m=Math.max(0,o-g),h=o+n+g}}let _=new Map,v=new Set,y=0;for(let e=0;e<d.length;e++){let t=f[e];if(r&&t!==void 0){if(a.includes(t))_.set(e,y),y++;else{let n=p[t].endLine===e;!v.has(t)&&n&&(v.add(t),_.set(e,y),y++)}}else _.set(e,y),y++}let b=y,x=[],S=0,C=!1,w=-1;v.clear();for(let n=0;n<d.length;n++){let i=d[n],o=_.get(n);if(o!==void 0&&!(o<m)){if(o>h)break;if(C||=(S=u?u[o]||0:o*e.ESTIMATED_ROW_HEIGHT,!0),w=o,r){let e=f[n];if(e!==void 0){let t=p[e].endLine===n;if(!a.includes(e)&&t){x.push((0,c.jsx)(s.Fragment,{children:this.renderSkippedLineIndicator(p[e].lines,e,i.left.lineNumber??0,i.right.lineNumber??0)},n));continue}if(!a.includes(e))continue}}x.push(t?this.renderSplitView(i,n):this.renderInlineView(i,n))}}let T=u?u[u.length-1]||0:b*e.ESTIMATED_ROW_HEIGHT,E=u&&w>=0?T-(u[w+1]||T):0;return this.lastRenderedRange={start:m,end:h},{diffNodes:x,blocks:p,lineInformation:d,totalRenderedRows:b,topPadding:S,bottomPadding:E,totalContentHeight:T,renderedCount:x.length,debug:{visibleRowStart:m,visibleRowEnd:h,totalRows:b,offsetsLength:u?.length??0,renderedCount:x.length,scrollTop:l.current?.scrollTop??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:l.current?Math.max(0,l.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:l.current?.clientHeight??0}}};componentDidUpdate(e){if(e.oldValue!==this.props.oldValue||e.newValue!==this.props.newValue||e.compareMethod!==this.props.compareMethod||e.disableWordDiff!==this.props.disableWordDiff||e.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();let e=this.state.scrollableContainerRef.current;e&&(e.scrollTop=0),this.setState(e=>({...e,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}else(e.highlightLanguage!==this.props.highlightLanguage||e.highlightTheme!==this.props.highlightTheme||e.useDarkTheme!==this.props.useDarkTheme)&&this.updateHighlight()}componentDidMount(){if(this.setState(e=>({...e,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<`u`&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});let e=this.state.scrollableContainerRef.current;e&&this.resizeObserver.observe(e)}}componentWillUnmount(){this.resizeObserver?.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:a,compareMethod:o,hideLineNumbers:s,nonce:l}=this.props;if(typeof o==`string`&&o!==L.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles??{},n??!1,l??``);let u=this.renderDiff(),d=3,f=4;s&&(--d,--f),this.props.renderGutter&&(d+=1,f+=1);let p=0,m=0;for(let e of u.lineInformation)e.left.type===I.ADDED&&m++,e.right.type===I.ADDED&&m++,e.left.type===I.REMOVED&&p++,e.right.type===I.REMOVED&&p++;let g=p+m,_=Math.round(m/g*100),v=[];for(let e=0;e<5;e++)_>e*20?v.push((0,c.jsx)(`span`,{className:(0,h.default)(this.styles.block,this.styles.blockAddition)},e)):v.push((0,c.jsx)(`span`,{className:(0,h.default)(this.styles.block,this.styles.blockDeletion)},e));let y=this.state.expandedBlocks.length===u.blocks.length,b=this.props.loadingElement,x=this.props.infiniteLoading?{overflowY:`scroll`,overflowX:`hidden`,height:this.props.infiniteLoading.containerHeight}:{},S=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,C=(0,c.jsxs)(`table`,{className:(0,h.default)(this.styles.diffContainer,{[this.styles.splitView]:a,[this.styles.noWrap]:S}),onMouseUp:()=>{},children:[(0,c.jsxs)(`colgroup`,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),!a&&!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,c.jsx)(`col`,{width:`50px`}),(0,c.jsx)(`col`,{width:`28px`}),(0,c.jsx)(`col`,{width:`auto`}),a&&(0,c.jsxs)(c.Fragment,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,c.jsx)(`col`,{width:`50px`}),(0,c.jsx)(`col`,{width:`28px`}),(0,c.jsx)(`col`,{width:`auto`})]})]}),(0,c.jsx)(`tbody`,{children:u.diffNodes})]}),w=(this.state.isLoading||this.state.isScrolling)&&!!b;return(0,c.jsxs)(`div`,{style:{position:`relative`},children:[w&&(0,c.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,zIndex:3},children:(0,c.jsx)(b,{})}),(0,c.jsxs)(`div`,{style:{...x,position:`relative`},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||r||i)&&(0,c.jsxs)(`div`,{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,c.jsxs)(`div`,{className:this.styles.summary,role:`banner`,children:[(0,c.jsx)(`button`,{type:`button`,className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:y?[]:u.blocks.map(e=>e.index)},()=>this.recalculateOffsets())},children:y?(0,c.jsx)(Di,{}):(0,c.jsx)(Xn,{})}),` `,g,(0,c.jsx)(`div`,{style:{display:`flex`,gap:`1px`},children:v}),this.props.summary?(0,c.jsx)(`span`,{children:this.props.summary}):null]}),(r||i)&&(0,c.jsxs)(`div`,{className:this.styles.columnHeaders,children:[(0,c.jsx)(`div`,{className:this.styles.titleBlock,children:r?(0,c.jsx)(`pre`,{className:this.styles.contentText,children:r}):null}),a&&(0,c.jsx)(`div`,{className:this.styles.titleBlock,children:i?(0,c.jsx)(`pre`,{className:this.styles.contentText,children:i}):null})]})]}),this.props.infiniteLoading?(0,c.jsx)(`div`,{style:{height:u.totalContentHeight,position:`relative`},children:(0,c.jsx)(`div`,{style:{position:`absolute`,top:u.topPadding,left:0,right:0,visibility:this.state.isScrolling?`hidden`:`visible`},children:C})}):C,(0,c.jsx)(`span`,{ref:this.charMeasureRef,style:{position:`absolute`,top:0,left:`-9999px`,visibility:`hidden`,whiteSpace:`pre`,fontFamily:`monospace`,fontSize:12},"aria-hidden":`true`,children:`M`}),this.props.infiniteLoading&&this.props.showDebugInfo&&(0,c.jsxs)(`div`,{style:{position:`fixed`,top:10,right:10,background:`rgba(0,0,0,0.85)`,color:`#0f0`,padding:`10px`,fontFamily:`monospace`,fontSize:`11px`,zIndex:9999,borderRadius:`4px`,maxWidth:`300px`,lineHeight:1.4},children:[(0,c.jsx)(`div`,{style:{fontWeight:`bold`,marginBottom:`5px`,color:`#fff`},children:`Debug Info`}),(0,c.jsxs)(`div`,{children:[`scrollTop: `,u.debug.scrollTop]}),(0,c.jsxs)(`div`,{children:[`headerHeight: `,u.debug.headerHeight]}),(0,c.jsxs)(`div`,{children:[`contentScrollTop: `,u.debug.contentScrollTop]}),(0,c.jsxs)(`div`,{children:[`clientHeight: `,u.debug.clientHeight]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`visibleRowStart: `,u.debug.visibleRowStart]}),(0,c.jsxs)(`div`,{children:[`visibleRowEnd: `,u.debug.visibleRowEnd]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`totalRows: `,u.debug.totalRows]}),(0,c.jsxs)(`div`,{children:[`offsetsLength: `,u.debug.offsetsLength]}),(0,c.jsxs)(`div`,{children:[`renderedCount: `,u.debug.renderedCount]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`topPadding: `,u.topPadding.toFixed(0)]}),(0,c.jsxs)(`div`,{children:[`bottomPadding: `,u.bottomPadding.toFixed(0)]}),(0,c.jsxs)(`div`,{children:[`totalContentHeight: `,u.totalContentHeight.toFixed(0)]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#ff0`},children:[(0,c.jsxs)(`div`,{children:[`cumulativeOffsets: `,this.state.cumulativeOffsets?`SET`:`NULL`]}),(0,c.jsxs)(`div`,{children:[`columnWidth: `,this.state.contentColumnWidth?.toFixed(0)??`N/A`,`px`]}),(0,c.jsxs)(`div`,{children:[`charWidth: `,this.state.charWidth?.toFixed(2)??`N/A`,`px`]}),(0,c.jsxs)(`div`,{children:[`charsPerRow: `,this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):`N/A`]})]}),this.state.cumulativeOffsets&&(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#0ff`,fontSize:`10px`},children:[(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.visibleRowEnd,`]: `,this.state.cumulativeOffsets[u.debug.visibleRowEnd]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.totalRows-1,`]: `,this.state.cumulativeOffsets[u.debug.totalRows-1]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.totalRows,`]: `,this.state.cumulativeOffsets[u.debug.totalRows]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{style:{marginTop:`3px`},children:[`viewportEnd: `,(u.debug.contentScrollTop+u.debug.clientHeight).toFixed(0)]}),(0,c.jsxs)(`div`,{style:{marginTop:`3px`,color:`#f0f`},children:[`scrollHeight: `,this.state.scrollableContainerRef.current?.scrollHeight??`N/A`]}),(0,c.jsxs)(`div`,{children:[`maxScrollTop: `,(this.state.scrollableContainerRef.current?.scrollHeight??0)-u.debug.clientHeight]})]})]})]})]})}},mo=t({WORKER_CODE:()=>ho}),ho=`"use strict";(()=>{var hr=Object.defineProperty;var mr=(i,n)=>{for(var t in n)hr(i,t,{get:n[t],enumerable:!0})};var In={};mr(In,{Diff:()=>$,FILE_HEADERS_ONLY:()=>Ai,INCLUDE_HEADERS:()=>$e,OMIT_HEADERS:()=>xi,applyPatch:()=>Ln,applyPatches:()=>yi,arrayDiff:()=>bn,canonicalize:()=>Le,characterDiff:()=>ln,convertChangesToDMP:()=>vi,convertChangesToXML:()=>Si,createPatch:()=>Ci,createTwoFilesPatch:()=>Nn,cssDiff:()=>xn,diffArrays:()=>pi,diffChars:()=>ri,diffCss:()=>ai,diffJson:()=>di,diffLines:()=>ee,diffSentences:()=>si,diffTrimmedLines:()=>ci,diffWords:()=>ui,diffWordsWithSpace:()=>hn,formatPatch:()=>Ne,jsonDiff:()=>vn,lineDiff:()=>ze,parsePatch:()=>ke,reversePatch:()=>kn,sentenceDiff:()=>wn,structuredPatch:()=>Ke,wordDiff:()=>dn,wordsWithSpaceDiff:()=>pn});var $=class{diff(n,t,l={}){let o;typeof l=="function"?(o=l,l={}):"callback"in l&&(o=l.callback);let u=this.castInput(n,l),f=this.castInput(t,l),c=this.removeEmpty(this.tokenize(u,l)),d=this.removeEmpty(this.tokenize(f,l));return this.diffWithOptionsObj(c,d,l,o)}diffWithOptionsObj(n,t,l,o){var u;let f=S=>{if(S=this.postProcess(S,l),o){setTimeout(function(){o(S)},0);return}else return S},c=t.length,d=n.length,s=1,a=c+d;l.maxEditLength!=null&&(a=Math.min(a,l.maxEditLength));let m=(u=l.timeout)!==null&&u!==void 0?u:1/0,I=Date.now()+m,R=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(R[0],t,n,0,l);if(R[0].oldPos+1>=d&&v+1>=c)return f(this.buildValues(R[0].lastComponent,t,n));let g=-1/0,N=1/0,O=()=>{for(let S=Math.max(g,-s);S<=Math.min(N,s);S+=2){let b,_=R[S-1],P=R[S+1];_&&(R[S-1]=void 0);let U=!1;if(P){let Y=P.oldPos-S;U=P&&0<=Y&&Y<c}let q=_&&_.oldPos+1<d;if(!U&&!q){R[S]=void 0;continue}if(!q||U&&_.oldPos<P.oldPos?b=this.addToPath(P,!0,!1,0,l):b=this.addToPath(_,!1,!0,1,l),v=this.extractCommon(b,t,n,S,l),b.oldPos+1>=d&&v+1>=c)return f(this.buildValues(b.lastComponent,t,n))||!0;R[S]=b,b.oldPos+1>=d&&(N=Math.min(N,S-1)),v+1>=c&&(g=Math.max(g,S+1))}s++};if(o)(function S(){setTimeout(function(){if(s>a||Date.now()>I)return o(void 0);O()||S()},0)})();else for(;s<=a&&Date.now()<=I;){let S=O();if(S)return S}}addToPath(n,t,l,o,u){let f=n.lastComponent;return f&&!u.oneChangePerToken&&f.added===t&&f.removed===l?{oldPos:n.oldPos+o,lastComponent:{count:f.count+1,added:t,removed:l,previousComponent:f.previousComponent}}:{oldPos:n.oldPos+o,lastComponent:{count:1,added:t,removed:l,previousComponent:f}}}extractCommon(n,t,l,o,u){let f=t.length,c=l.length,d=n.oldPos,s=d-o,a=0;for(;s+1<f&&d+1<c&&this.equals(l[d+1],t[s+1],u);)s++,d++,a++,u.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return a&&!u.oneChangePerToken&&(n.lastComponent={count:a,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=d,s}equals(n,t,l){return l.comparator?l.comparator(n,t):n===t||!!l.ignoreCase&&n.toLowerCase()===t.toLowerCase()}removeEmpty(n){let t=[];for(let l=0;l<n.length;l++)n[l]&&t.push(n[l]);return t}castInput(n,t){return n}tokenize(n,t){return Array.from(n)}join(n){return n.join("")}postProcess(n,t){return n}get useLongestToken(){return!1}buildValues(n,t,l){let o=[],u;for(;n;)o.push(n),u=n.previousComponent,delete n.previousComponent,n=u;o.reverse();let f=o.length,c=0,d=0,s=0;for(;c<f;c++){let a=o[c];if(a.removed)a.value=this.join(l.slice(s,s+a.count)),s+=a.count;else{if(!a.added&&this.useLongestToken){let m=t.slice(d,d+a.count);m=m.map(function(I,R){let v=l[s+R];return v.length>I.length?v:I}),a.value=this.join(m)}else a.value=this.join(t.slice(d,d+a.count));d+=a.count,a.added||(s+=a.count)}}return o}};var tn=class extends \${},ln=new tn;function ri(i,n,t){return ln.diff(i,n,t)}function on(i,n){let t;for(t=0;t<i.length&&t<n.length;t++)if(i[t]!=n[t])return i.slice(0,t);return i.slice(0,t)}function un(i,n){let t;if(!i||!n||i[i.length-1]!=n[n.length-1])return"";for(t=0;t<i.length&&t<n.length;t++)if(i[i.length-(t+1)]!=n[n.length-(t+1)])return i.slice(-t);return i.slice(-t)}function Ye(i,n,t){if(i.slice(0,n.length)!=n)throw Error(\`string \${JSON.stringify(i)} doesn't start with prefix \${JSON.stringify(n)}; this is a bug\`);return t+i.slice(n.length)}function Ue(i,n,t){if(!n)return i+t;if(i.slice(-n.length)!=n)throw Error(\`string \${JSON.stringify(i)} doesn't end with suffix \${JSON.stringify(n)}; this is a bug\`);return i.slice(0,-n.length)+t}function xe(i,n){return Ye(i,n,"")}function Te(i,n){return Ue(i,n,"")}function fn(i,n){return n.slice(0,gr(i,n))}function gr(i,n){let t=0;i.length>n.length&&(t=i.length-n.length);let l=n.length;i.length<n.length&&(l=i.length);let o=Array(l),u=0;o[0]=0;for(let f=1;f<l;f++){for(n[f]==n[u]?o[f]=o[u]:o[f]=u;u>0&&n[f]!=n[u];)u=o[u];n[f]==n[u]&&u++}u=0;for(let f=t;f<i.length;f++){for(;u>0&&i[f]!=n[u];)u=o[u];i[f]==n[u]&&u++}return u}function ti(i){return i.includes(\`\\r
|
|
68
|
+
`)}var L;(function(e){e.CHARS=`diffChars`,e.WORDS=`diffWords`,e.WORDS_WITH_SPACE=`diffWordsWithSpace`,e.LINES=`diffLines`,e.TRIMMED_LINES=`diffTrimmedLines`,e.SENTENCES=`diffSentences`,e.CSS=`diffCss`,e.JSON=`diffJson`,e.YAML=`diffYaml`})(L||={});var Wn=e=>e===``?[]:e.replace(/\n$/,``).split(`
|
|
69
|
+
`),Gn=(e,t,n=L.CHARS)=>{let r=(typeof n==`string`?Nn[n]:n)(e,t),i={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{if(e)i.right.push({type:I.ADDED,value:n});else if(t)i.left.push({type:I.REMOVED,value:n});else{let e={type:I.DEFAULT,value:n};i.right.push(e),i.left.push(e)}}),i},Kn=(e,t,n=!1,r=L.CHARS,i=0,a=[],o=!1)=>{let s=[];if(typeof e==`string`&&typeof t==`string`){if(r===L.JSON)s=Ln(e,t);else if(r===L.YAML)try{s=Rn(e,t)}catch{s=me(e,t,{newlineIsToken:!1})}else s=me(e,t,{newlineIsToken:!1})}else s=In(e,t);let c=i,l=i,u=[],d=0,f=[],p=[],m=(e,t,i,u,h)=>Wn(e).map((e,g)=>{let _={},v={};if(!(p.includes(`${t}-${g}`)||h&&g!==0)){if(i||u){let i=!0;if(u){l+=1,_.lineNumber=l,_.type=I.REMOVED,_.value=e||` `;let a=s[t+1];if(a?.added){let s=Wn(a.value)[g];if(s){let{value:a,lineNumber:c,type:l}=m(s,t,!0,!1,!0)[0].right;if(p.push(`${t+1}-${g}`),v.lineNumber=c,_.value===a)i=!1,v.type=0,_.type=0,v.value=a;else{v.type=l;let t=e.length>500||a.length>500;if(n||t)v.value=a;else if(o)_.rawValue=e,_.value=e,v.rawValue=a,v.value=a;else{let t=Gn(e,a,r);v.value=t.right,_.value=t.left}}}}}else c+=1,v.lineNumber=c,v.type=I.ADDED,v.value=e;i&&!h&&(f.includes(d)||f.push(d))}else l+=1,c+=1,_.lineNumber=l,_.type=I.DEFAULT,_.value=e,v.lineNumber=c,v.type=I.DEFAULT,v.value=e;return(a?.includes(`L-${_.lineNumber}`)||a?.includes(`R-${v.lineNumber}`)&&!f.includes(d))&&f.push(d),h||(d+=1),{right:v,left:_}}}).filter(e=>e!=null);return s.forEach(({added:e,removed:t,value:n},r)=>{u=[...u,...m(n,r,e,t)]}),{lineInformation:u,diffLines:f}},qn=null,Jn=null,Yn=async()=>{if(qn!==null)return qn;if(Jn===!1)return null;if(typeof Worker>`u`||typeof Blob>`u`||typeof URL>`u`)return Jn=!1,null;try{let{WORKER_CODE:e}=await h(async()=>{let{WORKER_CODE:e}=await Promise.resolve().then(()=>ho);return{WORKER_CODE:e}},void 0),t=new Blob([e],{type:`application/javascript`});qn=URL.createObjectURL(t),Jn=!0}catch{Jn=!1,qn=null}return qn},Xn=async(e,t,n=!1,r=L.CHARS,i=0,a=[],o=!1,s=!1)=>{let c=()=>Kn(e,t,n,r,i,a,o);if(s)return Promise.resolve(c());let l=await Yn();return l?new Promise(s=>{let u;try{u=new Worker(l)}catch{Jn=!1,s(c());return}u.onmessage=e=>{s(e.data),u.terminate()},u.onerror=()=>{Jn=!1,u.terminate(),s(c())},u.postMessage({oldString:e,newString:t,disableWordDiff:n,lineCompareMethod:r,linesOffset:i,showLines:a,deferWordDiff:o})}):Promise.resolve(c())};function Zn(){return(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,c.jsx)(`title`,{children:`expand`}),(0,c.jsx)(`path`,{d:`m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})]})}function Qn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function $n(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var er=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag($n(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Qn(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),R=`-ms-`,tr=`-moz-`,z=`-webkit-`,nr=`comm`,rr=`rule`,ir=`decl`,ar=`@import`,or=`@keyframes`,sr=`@layer`,cr=Math.abs,lr=String.fromCharCode,ur=Object.assign;function dr(e,t){return V(e,0)^45?(((t<<2^V(e,0))<<2^V(e,1))<<2^V(e,2))<<2^V(e,3):0}function fr(e){return e.trim()}function pr(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function mr(e,t){return e.indexOf(t)}function V(e,t){return e.charCodeAt(t)|0}function hr(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function _r(e){return e.length}function vr(e,t){return t.push(e),e}function yr(e,t){return e.map(t).join(``)}var br=1,xr=1,Sr=0,H=0,U=0,Cr=``;function wr(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:br,column:xr,length:o,return:``}}function Tr(e,t){return ur(wr(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Er(){return U}function Dr(){return U=H>0?V(Cr,--H):0,xr--,U===10&&(xr=1,br--),U}function W(){return U=H<Sr?V(Cr,H++):0,xr++,U===10&&(xr=1,br++),U}function Or(){return V(Cr,H)}function kr(){return H}function Ar(e,t){return hr(Cr,e,t)}function jr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Mr(e){return br=xr=1,Sr=gr(Cr=e),H=0,[]}function Nr(e){return Cr=``,e}function Pr(e){return fr(Ar(H-1,Lr(e===91?e+2:e===40?e+1:e)))}function Fr(e){for(;(U=Or())&&U<33;)W();return jr(e)>2||jr(U)>3?``:` `}function Ir(e,t){for(;--t&&W()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Ar(e,kr()+(t<6&&Or()==32&&W()==32))}function Lr(e){for(;W();)switch(U){case e:return H;case 34:case 39:e!==34&&e!==39&&Lr(U);break;case 40:e===41&&Lr(e);break;case 92:W()}return H}function Rr(e,t){for(;W()&&e+U!==57&&(e+U!==84||Or()!==47););return`/*`+Ar(t,H-1)+`*`+lr(e===47?e:W())}function zr(e){for(;!jr(Or());)W();return Ar(e,H)}function Br(e){return Nr(Vr(``,null,null,null,[``],e=Mr(e),0,[0],e))}function Vr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=W()){case 40:if(m!=108&&V(C,d-1)==58){mr(C+=B(Pr(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Pr(v);break;case 9:case 10:case 13:case 32:C+=Fr(m);break;case 92:C+=Ir(kr()-1,7);continue;case 47:switch(Or()){case 42:case 47:vr(Ur(Rr(W(),kr()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=gr(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=B(C,/\f/g,``)),p>0&&gr(C)-d&&vr(p>32?Wr(C+`;`,r,n,d-1):Wr(B(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(vr(S=Hr(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)Vr(C,t,S,S,b,a,d,s,x);else switch(f===99&&V(C,3)===110?100:f){case 100:case 108:case 109:case 115:Vr(e,S,S,r&&vr(Hr(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Vr(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+gr(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Dr()==125)continue}switch(C+=lr(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(gr(C)-1)*_,_=1;break;case 64:Or()===45&&(C+=Pr(W())),f=Or(),u=d=gr(y=C+=zr(kr())),v++;break;case 45:m===45&&gr(C)==2&&(h=0)}}return a}function Hr(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=_r(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=hr(e,d+1,d=cr(h=o[m])),y=e;_<p;++_)(y=fr(h>0?f[_]+` `+v:B(v,/&\f/g,f[_])))&&(c[g++]=y);return wr(e,t,n,i===0?rr:s,c,l,u)}function Ur(e,t,n){return wr(e,t,n,nr,lr(Er()),hr(e,2,-2),0)}function Wr(e,t,n,r){return wr(e,t,n,ir,hr(e,0,r),hr(e,r+1,-1),r)}function Gr(e,t){for(var n=``,r=_r(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Kr(e,t,n,r){switch(e.type){case sr:if(e.children.length)break;case ar:case ir:return e.return=e.return||e.value;case nr:return``;case or:return e.return=e.value+`{`+Gr(e.children,r)+`}`;case rr:e.value=e.props.join(`,`)}return gr(n=Gr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function qr(e){var t=_r(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Jr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Yr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xr=function(e,t,n){for(var r=0,i=0;r=i,i=Or(),r===38&&i===12&&(t[n]=1),!jr(i);)W();return Ar(e,H)},Zr=function(e,t){var n=-1,r=44;do switch(jr(r)){case 0:r===38&&Or()===12&&(t[n]=1),e[n]+=Xr(H-1,t,n);break;case 2:e[n]+=Pr(r);break;case 4:if(r===44){e[++n]=Or()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=lr(r)}while(r=W());return e},Qr=function(e,t){return Nr(Zr(Mr(e),t))},$r=new WeakMap,ei=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||$r.get(n))&&!r){$r.set(e,!0);for(var i=[],a=Qr(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ti=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function ni(e,t){switch(dr(e,t)){case 5103:return z+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+tr+e+R+e+e;case 6828:case 4268:return z+e+R+e+e;case 6165:return z+e+R+`flex-`+e+e;case 5187:return z+e+B(e,/(\w+).+(:[^]+)/,z+`box-$1$2`+R+`flex-$1$2`)+e;case 5443:return z+e+R+`flex-item-`+B(e,/flex-|-self/,``)+e;case 4675:return z+e+R+`flex-line-pack`+B(e,/align-content|flex-|-self/,``)+e;case 5548:return z+e+R+B(e,`shrink`,`negative`)+e;case 5292:return z+e+R+B(e,`basis`,`preferred-size`)+e;case 6060:return z+`box-`+B(e,`-grow`,``)+z+e+R+B(e,`grow`,`positive`)+e;case 4554:return z+B(e,/([^-])(transform)/g,`$1`+z+`$2`)+e;case 6187:return B(B(B(e,/(zoom-|grab)/,z+`$1`),/(image-set)/,z+`$1`),e,``)+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,z+`box-pack:$3`+R+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+z+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,z+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(V(e,t+1)){case 109:if(V(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,`$1`+z+`$2-$3$1`+tr+(V(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~mr(e,`stretch`)?ni(B(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(V(e,t+1)!==115)break;case 6444:switch(V(e,gr(e)-3-(~mr(e,`!important`)&&10))){case 107:return B(e,`:`,`:`+z)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+z+(V(e,14)===45?`inline-`:``)+`box$3$1`+z+`$2$3$1`+R+`$2box$3`)+e}break;case 5936:switch(V(e,t+11)){case 114:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return z+e+R+e+e}return e}var ri=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ir:e.return=ni(e.value,e.length);break;case or:return Gr([Tr(e,{value:B(e.value,`@`,`@`+z)})],r);case rr:if(e.length)return yr(e.props,function(t){switch(pr(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Gr([Tr(e,{props:[B(t,/:(read-\w+)/,`:`+tr+`$1`)]})],r);case`::placeholder`:return Gr([Tr(e,{props:[B(t,/:(plac\w+)/,`:`+z+`input-$1`)]}),Tr(e,{props:[B(t,/:(plac\w+)/,`:`+tr+`$1`)]}),Tr(e,{props:[B(t,/:(plac\w+)/,R+`input-$1`)]})],r)}return``})}}],ii=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||ri,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[ei,ti],l,u=[Kr,Jr(function(e){l.insert(e)})],d=qr(c.concat(r,u)),f=function(e){return Gr(Br(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new er({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p};function ai(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16)^(t&65535)*0x5bd1e995+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},si=/[A-Z]|^ms/g,ci=/_EMO_([^_]+?)_([^]*?)_EMO_/g,li=function(e){return e.charCodeAt(1)===45},ui=function(e){return e!=null&&typeof e!=`boolean`},di=Yr(function(e){return li(e)?e:e.replace(si,`-$&`).toLowerCase()}),fi=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(ci,function(e,t,n){return gi={name:t,styles:n,next:gi},t})}return oi[e]!==1&&!li(e)&&typeof t==`number`&&t!==0?t+`px`:t};function pi(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return gi={name:i.name,styles:i.styles,next:gi},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)gi={name:o.name,styles:o.styles,next:gi},o=o.next;return a.styles+`;`}return mi(e,t,n);case`function`:if(e!==void 0){var s=gi,c=n(e);return gi=s,pi(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function mi(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=pi(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:ui(s)&&(r+=di(a)+`:`+fi(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ui(o[c])&&(r+=di(a)+`:`+fi(a,o[c])+`;`);else{var l=pi(e,t,o);switch(a){case`animation`:case`animationName`:r+=di(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var hi=/label:\s*([^\s;{]+)\s*(;|$)/g,gi;function _i(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;gi=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=pi(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=pi(n,t,e[o]),r&&(i+=a[o]);hi.lastIndex=0;for(var s=``,c;(c=hi.exec(i))!==null;)s+=`-`+c[1];return{name:ai(i)+s,styles:i,next:gi}}function vi(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var yi=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},bi=function(e,t,n){yi(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function xi(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function Si(e,t,n){var r=[],i=vi(e,r,n);return r.length<2?n:i+t(r)}var Ci=function(e){var t=ii(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){var e=_i([...arguments],t.registered,void 0);return bi(t,e,!1),t.key+`-`+e.name};return{css:n,cx:function(){var e=[...arguments];return Si(t.registered,n,wi(e))},injectGlobal:function(){xi(t,_i([...arguments],t.registered))},keyframes:function(){var e=_i([...arguments],t.registered),n=`animation-`+e.name;return xi(t,{name:e.name,styles:`@keyframes `+n+`{`+e.styles+`}`}),n},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:vi.bind(null,t.registered),merge:Si.bind(null,t.registered,n)}},wi=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n},Ti=Object.freeze({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`}),Ei=Object.freeze({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#2ea04326`,addedColor:`white`,removedBackground:`#f851491a`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#2ea04366`,wordRemovedBackground:`#f8514966`,addedGutterBackground:`#3fb9504d`,removedGutterBackground:`#f851494d`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#262831`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#f0f6fc`,addedGutterColor:`#f0f6fc`,removedGutterColor:`#f0f6fc`,codeFoldContentColor:`#9198a1`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#f0f6fc`,diffViewerTitleBorderColor:`#353846`}),Di=(e,t=!1,n=``)=>{let{variables:r={},...i}=e,a={light:{...Ti,...r.light||{}},dark:{...Ei,...r.dark||{}}},o=t?a.dark:a.light,{css:s,cx:c}=Ci({key:`react-diff`,nonce:n}),l=s({width:`auto`,overflow:`hidden`,padding:0,label:`content`}),u=s({label:`split-view`}),d=s({position:`sticky`,top:0,zIndex:2,label:`sticky-header`}),f=s({background:o.diffViewerTitleBackground,color:o.diffViewerTitleColor,padding:`0.5em 1em`,display:`flex`,alignItems:`center`,gap:`0.5em`,fontFamily:`monospace`,fontSize:12,fill:o.diffViewerTitleColor}),p=s({display:`flex`,label:`column-headers`}),m=s({width:`100%`,minWidth:`1000px`,overflowX:`auto`,tableLayout:`fixed`,fontSize:12,background:o.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`1.6em`,width:`fit-content`},label:`diff-container`,borderCollapse:`collapse`,borderRadius:0,"& td, & th":{border:0,verticalAlign:`baseline`},"@media (max-width: 768px)":{minWidth:`unset`}}),h=s({overflow:`hidden`,width:`100%`}),g=s({color:o.diffViewerColor,whiteSpace:`pre-wrap`,fontFamily:`monospace`,lineBreak:`anywhere`,textDecoration:`none`,label:`content-text`}),_=s({display:`flex`,alignItems:`baseline`,label:`content-flex`}),v=s({whiteSpace:`pre`,wordBreak:`keep-all`,flex:`0 0 auto`,label:`line-indent`}),y=s({flex:`1 1 auto`,minWidth:0,label:`line-body`}),b=s({userSelect:`none`,label:`unselectable`}),x=s({label:`no-wrap`,pre:{whiteSpace:`pre`},[`.${g}`]:{whiteSpace:`pre`,lineBreak:`auto`}}),S=s({background:`transparent`,border:`none`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:0,label:`all-expand-button`,":hover":{fill:o.addedGutterColor},":focus":{outline:`1px ${o.addedGutterColor} solid`}}),C=s({background:o.diffViewerTitleBackground,padding:`0.5em`,lineHeight:`1.4em`,height:`2.4em`,overflow:`hidden`,width:`50%`,borderBottom:`1px solid ${o.diffViewerTitleBorderColor}`,boxSizing:`border-box`,fontSize:12,label:`title-block`,":only-child":{width:`100%`},":last-child:not(:only-child)":{borderLeft:`1px solid ${o.diffViewerTitleBorderColor}`},[`.${g}`]:{color:o.diffViewerTitleColor}}),w=s({color:o.gutterColor,label:`line-number`}),T=s({background:o.removedBackground,color:o.removedColor,pre:{color:o.removedColor},[`.${w}`]:{color:o.removedGutterColor},label:`diff-removed`}),E=s({background:o.addedBackground,color:o.addedColor,pre:{color:o.addedColor},[`.${w}`]:{color:o.addedGutterColor},label:`diff-added`}),D=s({background:o.changedBackground,[`.${w}`]:{color:o.gutterColor},label:`diff-changed`}),ee=s({display:`inline`,textDecoration:`none`,label:`word-diff`}),O=s({background:o.wordAddedBackground,label:`word-added`}),te=s({background:o.wordRemovedBackground,label:`word-removed`}),k=s({backgroundColor:o.codeFoldGutterBackground,label:`code-fold-gutter`,minWidth:`50px`,width:`50px`,padding:0,textAlign:`center`,fill:o.codeFoldContentColor}),ne=s({padding:0,overflow:`hidden`,"&&&":{verticalAlign:`middle`},label:`code-fold-content-container`}),re=s({background:o.codeFoldBackground,cursor:`pointer`,display:`block`,margin:0,padding:0,border:`none`,font:`inherit`,lineHeight:`inherit`,textAlign:`left`,fill:o.codeFoldContentColor,label:`code-fold-expand-button`}),A=s({color:o.codeFoldContentColor,fontFamily:`monospace`,label:`code-fold-content`}),j=s({display:`block`,width:`10px`,height:`10px`,backgroundColor:`#ddd`,borderWidth:`1px`,borderStyle:`solid`,borderColor:o.diffViewerTitleBorderColor}),ie=s({backgroundColor:o.wordAddedBackground}),M=s({backgroundColor:o.wordRemovedBackground}),ae=s({backgroundColor:o.codeFoldBackground,fontSize:12,alignItems:`center`,userSelect:`none`,fontWeight:700,cursor:`pointer`,label:`code-fold`,"& td":{paddingTop:0,paddingBottom:0},"&:hover":{color:o.diffViewerColor,fill:o.diffViewerColor,"& *":{color:o.diffViewerColor,fill:o.diffViewerColor}},a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),N=s({backgroundColor:o.emptyLineBackground,label:`empty-line`}),oe=s({width:28,paddingLeft:10,paddingRight:10,paddingTop:0,paddingBottom:0,userSelect:`none`,label:`marker`,[`&.${E}`]:{pre:{color:o.addedColor}},[`&.${T}`]:{pre:{color:o.removedColor}}}),se=s({background:o.highlightBackground,label:`highlighted-line`,[`.${O}, .${te}`]:{backgroundColor:`initial`}}),ce=s({label:`highlighted-gutter`}),le=s({userSelect:`none`,minWidth:50,width:`50px`,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`center`,color:o.gutterColor,background:o.gutterBackground,"&:hover":{cursor:`pointer`,background:o.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:`center`,width:`100%`},[`&.${E}`]:{background:o.addedGutterBackground},[`&.${T}`]:{background:o.removedGutterBackground},[`&.${ce}`]:{background:o.highlightGutterBackground,"&:hover":{background:o.highlightGutterBackground}}}),ue=s({"&:hover":{background:o.gutterBackground,cursor:`initial`},label:`empty-gutter`}),de={diffContainer:m,diffRemoved:T,diffAdded:E,diffChanged:D,splitView:u,marker:oe,highlightedGutter:ce,highlightedLine:se,gutter:le,line:s({verticalAlign:`baseline`,label:`line`,textDecoration:`none`,backgroundColor:`transparent`,fontSize:12}),lineContent:h,wordDiff:ee,wordAdded:O,summary:f,block:j,blockAddition:ie,blockDeletion:M,wordRemoved:te,noSelect:b,noWrap:x,codeFoldGutter:k,codeFoldExpandButton:re,codeFoldContentContainer:ne,codeFold:ae,emptyGutter:ue,emptyLine:N,lineNumber:w,contentText:g,contentFlex:_,lineIndent:v,lineBody:y,content:l,column:s({}),codeFoldContent:A,stickyHeader:d,columnHeaders:p,titleBlock:C,allExpandButton:S},fe=Object.keys(i).reduce((e,t)=>({...e,[t]:s(i[t])}),{});return Object.keys(de).reduce((e,t)=>({...e,[t]:fe[t]?c(de[t],fe[t]):de[t]}),{})};function Oi(){return(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,c.jsx)(`title`,{children:`fold`}),(0,c.jsx)(`path`,{d:`M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})]})}var ki=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ki.prototype.normal={},ki.prototype.property={},ki.prototype.space=void 0;function Ai(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ki(n,r,t)}function ji(e){return e.toLowerCase()}var G=class{constructor(e,t){this.attribute=t,this.property=e}};G.prototype.attribute=``,G.prototype.booleanish=!1,G.prototype.boolean=!1,G.prototype.commaOrSpaceSeparated=!1,G.prototype.commaSeparated=!1,G.prototype.defined=!1,G.prototype.mustUseProperty=!1,G.prototype.number=!1,G.prototype.overloadedBoolean=!1,G.prototype.property=``,G.prototype.spaceSeparated=!1,G.prototype.space=void 0;var Mi=t({boolean:()=>K,booleanish:()=>q,commaOrSpaceSeparated:()=>X,commaSeparated:()=>Fi,number:()=>J,overloadedBoolean:()=>Pi,spaceSeparated:()=>Y}),Ni=0,K=Ii(),q=Ii(),Pi=Ii(),J=Ii(),Y=Ii(),Fi=Ii(),X=Ii();function Ii(){return 2**++Ni}var Li=Object.keys(Mi),Ri=class extends G{constructor(e,t,n,r){let i=-1;if(super(e,t),zi(this,`space`,r),typeof n==`number`)for(;++i<Li.length;){let e=Li[i];zi(this,Li[i],(n&Mi[e])===Mi[e])}}};Ri.prototype.defined=!0;function zi(e,t,n){n&&(e[t]=n)}function Bi(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ji(r)]=r,n[ji(a.attribute)]=r}return new ki(t,n,e.space)}var Vi=Bi({properties:{ariaActiveDescendant:null,ariaAtomic:q,ariaAutoComplete:null,ariaBusy:q,ariaChecked:q,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:q,ariaFlowTo:Y,ariaGrabbed:q,ariaHasPopup:null,ariaHidden:q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:J,ariaLive:null,ariaModal:q,ariaMultiLine:q,ariaMultiSelectable:q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:q,ariaReadOnly:q,ariaRelevant:null,ariaRequired:q,ariaRoleDescription:Y,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:q,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Hi(e,t){return t in e?e[t]:t}function Ui(e,t){return Hi(e,t.toLowerCase())}var Wi=Bi({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Fi,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alpha:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:Y,autoFocus:K,autoPlay:K,blocking:Y,capture:null,charSet:null,checked:K,cite:null,className:Y,closedBy:null,colorSpace:null,cols:J,colSpan:J,command:null,commandFor:null,content:null,contentEditable:q,controls:K,controlsList:Y,coords:J|Fi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:Pi,draggable:q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:Y,height:J,hidden:Pi,high:J,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:Y,itemRef:Y,itemScope:K,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,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:K,optimum:J,pattern:null,ping:Y,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:Y,required:K,reversed:K,rows:J,rowSpan:J,sandbox:Y,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootCustomElementRegistry:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shadowRootSerializable:K,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:q,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:q,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:K,disablePictureInPicture:K,disableRemotePlayback:K,exportParts:Fi,part:Y,prefix:null,property:null,results:J,security:null,unselectable:null},space:`html`,transform:Ui}),Gi=Bi({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:X,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Y,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:Fi,g2:Fi,glyphName:Fi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:X,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:X,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:X,rev:X,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:X,requiredFeatures:X,requiredFonts:X,requiredFormats:X,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:X,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:X,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:X,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Hi}),Ki=Bi({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()}}),qi=Bi({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Ui}),Ji=Bi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Yi=/[A-Z]/g,Xi=/-[a-z]/g,Zi=/^data[-\w.:]+$/i;function Qi(e,t){let n=ji(t),r=t,i=G;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Zi.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Xi,ea);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Xi.test(e)){let n=e.replace(Yi,$i);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ri}return new i(r,t)}function $i(e){return`-`+e.toLowerCase()}function ea(e){return e.charAt(1).toUpperCase()}var ta=Ai([Vi,Wi,Ki,qi,Ji],`html`),na=Ai([Vi,Gi,Ki,qi,Ji],`svg`);function ra(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}var ia=/[#.]/g;function aa(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){ia.lastIndex=i;let e=ia.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function oa(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function sa(e,t,n){let r=n?pa(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=aa(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,ca(i))a.unshift(i);else for(let[t,n]of Object.entries(i))la(e,o.properties,t,n)}for(let e of a)ua(o.children,e);return o.type===`element`&&o.tagName===`template`&&e.space===`html`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function ca(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function la(e,t,n,r){if(r==null)return;let i=Qi(e,n),a;if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?oa(r):i.commaSeparated?ra(r):i.commaOrSpaceSeparated?oa(ra(r).join(` `)):da(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?fa(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(da(i,i.property,t));a=e}if(i.property===`className`&&Array.isArray(t.className)){let e=a;a=[...t.className,...Array.isArray(e)?e:[e]]}t[i.property]=a}function ua(e,t){if(t!=null){if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)ua(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?ua(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function da(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||ji(n)===ji(t)))return!0}return n}function fa(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function pa(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var ma=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),ha=sa(ta,`div`);sa(na,`g`,ma);var ga=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),_a={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function va(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function ya(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ba(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function xa(e){return ba(e)||va(e)}var Sa=document.createElement(`i`);function Ca(e){let t=`&`+e+`;`;Sa.innerHTML=t;let n=Sa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var wa=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function Ta(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?xa:u===`decimal`?va:ya;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&ga.includes(y)&&(_=y,v=Ca(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&Ca(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(x||n.nonTerminated!==!1){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):xa(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Ea(e))h(7,S),C=`�`;else if(e in _a)h(6,S),C=_a[e];else{let t=``;Da(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,wa[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Ea(e){return e>=55296&&e<=57343||e>1114111}function Da(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Oa=0,ka={},Z={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Oa}),e.__id},clone:function e(t,n){n||={};var r,i;switch(Z.util.type(t)){case`Object`:if(i=Z.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case`Array`:return i=Z.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}}},languages:{plain:ka,plaintext:ka,text:ka,txt:ka,extend:function(e,t){var n=Z.util.clone(Z.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=Z.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var c=r[e];return r[e]=a,Z.languages.DFS(Z.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i||={};var a=Z.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],c=Z.util.type(s);c===`Object`&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):c===`Array`&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Z.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=Z.tokenize(r.code,r.grammar),Z.hooks.run(`after-tokenize`,r),Aa.stringify(Z.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Na;return Pa(i,i.head,e),Ma(e,i,t,i.head,0),Ia(i)},hooks:{all:{},add:function(e,t){var n=Z.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Z.hooks.all[e];if(n&&n.length)for(var r=0,i;i=n[r++];)i(t)}},Token:Aa};function Aa(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}function ja(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function Ma(e,t,n,r,i,a){for(var o in n)if(n.hasOwnProperty(o)&&n[o]){var s=n[o];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(a&&a.cause==o+`,`+c)return;var l=s[c],u=l.inside,d=!!l.lookbehind,f=!!l.greedy,p=l.alias;if(f&&!l.pattern.global){var m=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+`g`)}for(var h=l.pattern||l,g=r.next,_=i;g!==t.tail&&!(a&&_>=a.reach);_+=g.value.length,g=g.next){var v=g.value;if(t.length>e.length)return;if(!(v instanceof Aa)){var y=1,b;if(f){if(b=ja(h,_,e,d),!b||b.index>=e.length)break;var x=b.index,S=b.index+b[0].length,C=_;for(C+=g.value.length;x>=C;)g=g.next,C+=g.value.length;if(C-=g.value.length,_=C,g.value instanceof Aa)continue;for(var w=g;w!==t.tail&&(C<S||typeof w.value==`string`);w=w.next)y++,C+=w.value.length;y--,v=e.slice(_,C),b.index-=_}else if(b=ja(h,0,v,d),!b)continue;var x=b.index,T=b[0],E=v.slice(0,x),D=v.slice(x+T.length),ee=_+v.length;a&&ee>a.reach&&(a.reach=ee);var O=g.prev;E&&(O=Pa(t,O,E),_+=E.length),Fa(t,O,y);var te=new Aa(o,u?Z.tokenize(T,u):T,p,T);if(g=Pa(t,O,te),D&&Pa(t,g,D),y>1){var k={cause:o+`,`+c,reach:ee};Ma(e,t,n,g.prev,_,k),a&&k.reach>a.reach&&(a.reach=k.reach)}}}}}}function Na(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Pa(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Fa(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function Ia(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}var La=Z;function Ra(){}Ra.prototype=La;var Q=new Ra;Q.highlight=za,Q.register=Ba,Q.alias=Va,Q.registered=Ha,Q.listLanguages=Ua,Q.util.encode=Ga,Q.Token.stringify=Wa;function za(e,t){if(typeof e!=`string`)throw TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t==`object`)n=t;else{if(r=t,typeof r!=`string`)throw TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(Q.languages,r))n=Q.languages[r];else throw Error("Unknown language: `"+r+"` is not registered")}return{type:`root`,children:La.highlight.call(Q,e,n,r)}}function Ba(e){if(typeof e!=`function`||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Q.languages,e.displayName)||e(Q)}function Va(e,t){let n=Q.languages,r={};typeof e==`string`?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){let e=r[i],t=typeof e==`string`?[e]:e,a=-1;for(;++a<t.length;)n[t[a]]=n[i]}}function Ha(e){if(typeof e!=`string`)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Q.languages,e)}function Ua(){let e=Q.languages,t=[],n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]==`object`&&t.push(n);return t}function Wa(e,t){if(typeof e==`string`)return{type:`text`,value:e};if(Array.isArray(e)){let n=[],r=-1;for(;++r<e.length;)e[r]!==null&&e[r]!==void 0&&e[r]!==``&&n.push(Wa(e[r],t));return n}let n={attributes:{},classes:[`token`,e.type],content:Wa(e.content,t),language:t,tag:`span`,type:e.type};return e.alias&&n.classes.push(...typeof e.alias==`string`?[e.alias]:e.alias),Q.hooks.run(`wrap`,n),ha(n.tag+`.`+n.classes.join(`.`),Ka(n.attributes),n.content)}function Ga(e){return e}function Ka(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Ta(e[t]));return e}var qa={default:`#24292e`,comment:`#6a737d`,prolog:`#6a737d`,doctype:`#6a737d`,cdata:`#6a737d`,punctuation:`#24292e`,property:`#005cc5`,tag:`#22863a`,boolean:`#005cc5`,number:`#005cc5`,constant:`#005cc5`,symbol:`#005cc5`,deleted:`#b31d28`,selector:`#6f42c1`,"attr-name":`#6f42c1`,string:`#032f62`,char:`#032f62`,builtin:`#005cc5`,inserted:`#22863a`,operator:`#d73a49`,entity:`#22863a`,url:`#032f62`,"attr-value":`#032f62`,keyword:`#d73a49`,atrule:`#d73a49`,"class-name":`#6f42c1`,function:`#6f42c1`,regex:`#032f62`,important:`#e36209`,variable:`#e36209`},Ja={default:`#f8f8f2`,comment:`#6272a4`,prolog:`#6272a4`,doctype:`#6272a4`,cdata:`#6272a4`,punctuation:`#f8f8f2`,property:`#8be9fd`,tag:`#ff79c6`,boolean:`#bd93f9`,number:`#bd93f9`,constant:`#bd93f9`,symbol:`#bd93f9`,deleted:`#ff5555`,selector:`#50fa7b`,"attr-name":`#50fa7b`,string:`#f1fa8c`,char:`#f1fa8c`,builtin:`#8be9fd`,inserted:`#50fa7b`,operator:`#f8f8f2`,entity:`#ff79c6`,url:`#f1fa8c`,"attr-value":`#f1fa8c`,keyword:`#ff79c6`,atrule:`#ff79c6`,"class-name":`#8be9fd`,function:`#50fa7b`,regex:`#ffb86c`,important:`#ffb86c`,variable:`#f8f8f2`},Ya=(e,t)=>{for(let n=t.length-1;n>=0;n--){let r=t[n];if(r!==`token`&&e[r])return e[r]}return e.default},Xa={arduino:()=>h(()=>import(`./arduino-LsGX0_fs.js`),__vite__mapDeps([0,1,2,3,4])),bash:()=>h(()=>import(`./bash-4sOSYtlG.js`),[]),basic:()=>h(()=>import(`./basic-2Y4JmWk4.js`),[]),c:()=>h(()=>import(`./c-8MGCQYww.js`).then(e=>e.n),__vite__mapDeps([2,3,4])),clike:()=>h(()=>import(`./clike-DDEFrJkJ.js`).then(e=>e.n),__vite__mapDeps([4,3])),cpp:()=>h(()=>import(`./cpp-CCXrbquo.js`),__vite__mapDeps([1,2,3,4])),csharp:()=>h(()=>import(`./csharp-C9B8MEOG.js`),__vite__mapDeps([5,4,3])),css:()=>h(()=>import(`./css-BLUnUyF9.js`),[]),diff:()=>h(()=>import(`./diff-CnVbg4kZ.js`),[]),go:()=>h(()=>import(`./go-C0xZKYRK.js`),__vite__mapDeps([6,4,3])),ini:()=>h(()=>import(`./ini-_H0-Wnh8.js`),[]),java:()=>h(()=>import(`./java-DQEBLEMZ.js`),__vite__mapDeps([7,4,3])),javascript:()=>h(()=>import(`./javascript-fLcGJpXd.js`),__vite__mapDeps([8,4,3])),json:()=>h(()=>import(`./json-B02E3pk2.js`),[]),kotlin:()=>h(()=>import(`./kotlin-BhmBVS_0.js`),__vite__mapDeps([9,4,3])),less:()=>h(()=>import(`./less-DZtXz-rP.js`),__vite__mapDeps([10,11])),lua:()=>h(()=>import(`./lua-Dl7axvik.js`),[]),makefile:()=>h(()=>import(`./makefile-C7Vj606s.js`),[]),markdown:()=>h(()=>import(`./markdown-Cxg2MxWr.js`),__vite__mapDeps([12,13,3])),markup:()=>h(()=>import(`./markup-CaYP0gdG.js`).then(e=>e.n),__vite__mapDeps([13,3])),"markup-templating":()=>h(()=>import(`./markup-templating-DwmVPbHS.js`),__vite__mapDeps([14,13,3])),objectivec:()=>h(()=>import(`./objectivec-CHvtiGZJ.js`),__vite__mapDeps([15,2,3,4])),perl:()=>h(()=>import(`./perl-Ci2iz3Xf.js`),[]),php:()=>h(()=>import(`./php-SxIHzpF9.js`),__vite__mapDeps([16,14,13,3])),python:()=>h(()=>import(`./python-PcNiIBxw.js`),[]),r:()=>h(()=>import(`./r-CjN4PMnd.js`),[]),regex:()=>h(()=>import(`./regex-Dv2vm_uO.js`),[]),ruby:()=>h(()=>import(`./ruby--MTbGwza.js`),__vite__mapDeps([17,4,3])),rust:()=>h(()=>import(`./rust-CYWeblTv.js`),[]),sass:()=>h(()=>import(`./sass-RhMvkm29.js`),__vite__mapDeps([18,11])),scss:()=>h(()=>import(`./scss-BSDGjs1D.js`),__vite__mapDeps([19,11])),sql:()=>h(()=>import(`./sql-DL4klaVE.js`),[]),swift:()=>h(()=>import(`./swift-7bJ1Hzvg.js`),[]),typescript:()=>h(()=>import(`./typescript-DuydAHsI.js`),__vite__mapDeps([20,8,4,3])),vbnet:()=>h(()=>import(`./vbnet-BCRrhSDY.js`),__vite__mapDeps([21,22])),yaml:()=>h(()=>import(`./yaml-n53w1Kfi.js`),[])},Za={html:`markup`,xml:`markup`,svg:`markup`,mathml:`markup`,ssml:`markup`,atom:`markup`,rss:`markup`,js:`javascript`,jsx:`javascript`,node:`javascript`,ts:`typescript`,tsx:`typescript`,py:`python`,rb:`ruby`,yml:`yaml`,md:`markdown`,sh:`bash`,shell:`bash`,zsh:`bash`,"c++":`cpp`,objc:`objectivec`,cs:`csharp`,dotnet:`csharp`,kt:`kotlin`,rs:`rust`,golang:`go`},Qa=new Set,$a=new Map,eo=e=>{let t=e.toLowerCase();return Za[t]??t},to=async e=>{let t=eo(e);if(Q.registered(t))return t;if(Qa.has(t))return null;let n=Xa[t];if(!n)return Qa.add(t),null;let r=$a.get(t);return r||(r=n().then(e=>{Q.register(e.default)}).catch(()=>{Qa.add(t)}).finally(()=>{$a.delete(t)}),$a.set(t,r)),await r,Q.registered(t)?t:null},no=(e,t,n,r,i)=>{let a=r;for(let r of e)if(r.type===`text`){let e=r.value??``;e.length>0&&(i.push({start:a,end:a+e.length,color:n,text:e}),a+=e.length)}else if(r.children){let e=r.properties?.className,o=Array.isArray(e)?Ya(t,e):n;a=no(r.children,t,o,a,i)}return a},ro=(e,t)=>{let n=Array.from({length:t},()=>[]),r=0,i=0;for(let t of e){let e=t.start;for(let a=0;a<t.text.length;a++)if(t.text[a]===`
|
|
70
|
+
`){let o=t.start+a;o>e&&n[r]&&n[r].push({start:e-i,end:o-i,color:t.color}),r+=1,i=t.start+a+1,e=i}t.end>e&&n[r]&&n[r].push({start:e-i,end:t.end-i,color:t.color})}return n},io=(e,t,n)=>{if(e.length===0)return[];let r;try{r=Q.highlight(e,t)}catch{return null}let i=[];return no(r.children??[],n,n.default,0,i),ro(i,e.split(`
|
|
71
|
+
`).length)},ao=(e,t)=>{if(t<=0)return e;let n=[];for(let r of e)r.end<=t||n.push({start:Math.max(r.start,t)-t,end:r.end-t,color:r.color});return n},oo=(e,t,n,{styles:r,showHighlight:i},a)=>{let o=t?{color:t}:void 0;return n===I.ADDED?(0,c.jsx)(`ins`,{className:(0,g.default)(r.wordDiff,{[r.wordAdded]:i}),style:o,children:e},a):n===I.REMOVED?(0,c.jsx)(`del`,{className:(0,g.default)(r.wordDiff,{[r.wordRemoved]:i}),style:o,children:e},a):(0,c.jsx)(`span`,{className:r.wordDiff,style:o,children:e},a)},so=(e,t,n,r)=>{let i=[],a=0;for(let e of n){let t=typeof e.value==`string`?e.value:``;t.length>0&&(i.push({start:a,end:a+t.length,type:e.type??I.DEFAULT}),a+=t.length)}let o=e.length,s=[],c=0,l=0,u=0,d=0;for(;u<o;){let n=t[c],a=i[l],f=n?n.end:o,p=a?a.end:o,m=Math.min(f,p,o);if(m<=u){if(f<=u)c+=1;else if(p<=u)l+=1;else break}else s.push(oo(e.slice(u,m),n?.color,a?a.type:I.DEFAULT,r,d++)),u=m,f<=u&&(c+=1),p<=u&&(l+=1)}return s},co=(e,t)=>t.length===0?[(0,c.jsx)(`span`,{children:e},0)]:t.map((t,n)=>(0,c.jsx)(`span`,{style:{color:t.color},children:e.slice(t.start,t.end)},n)),lo=t({DiffMethod:()=>L,LineNumberPrefix:()=>$,computeStyles:()=>Di,default:()=>mo,defaultDarkHighlightTheme:()=>Ja,defaultDarkThemeVariables:()=>Ei,defaultLightHighlightTheme:()=>qa,defaultLightThemeVariables:()=>Ti}),uo=/^[ \t]+/;function fo(e){if(typeof e==`string`){let t=e.match(uo);return t?{indent:t[0],rest:e.slice(t[0].length)}:{indent:``,rest:e}}if(Array.isArray(e)){let t=e.map(e=>({...e})),n=``,r=0;for(;r<t.length;r++){let e=typeof t[r].value==`string`?t[r].value:null;if(e===null)break;let i=e.match(uo);if(!i)break;if(i[0].length===e.length)n+=e;else{n+=i[0],t[r]={...t[r],value:e.slice(i[0].length)};break}}return n?{indent:n,rest:t.slice(r)}:{indent:``,rest:e}}return{indent:``,rest:e}}function po(e,t,n){let r=[],i=0;for(let e of t){let t=typeof e.value==`string`?e.value:``;t.length>0&&(r.push({start:i,end:i+t.length,type:e.type??I.DEFAULT}),i+=t.length)}let a=[],o=0;for(;o<e.length;)if(e[o]===`<`){let t=e.indexOf(`>`,o);if(t===-1){a.push({type:`text`,content:e.slice(o)});break}a.push({type:`tag`,content:e.slice(o,t+1)}),o=t+1}else{let t=e.indexOf(`<`,o);t===-1&&(t=e.length),a.push({type:`text`,content:e.slice(o,t)}),o=t}function s(e){return e.replace(/</g,`<`).replace(/>/g,`>`).replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/ /g,`\xA0`)}function c(e){return e===I.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:`</ins>`}:e===I.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:`</del>`}:{open:`<span class="${n.wordDiff}">`,close:`</span>`}}let l=0,u=``;for(let e of a)if(e.type===`tag`)u+=e.content;else{let t=e.content,n=s(t),i=0,a=0;for(;i<n.length;){let e=l+i,o=r.find(t=>e>=t.start&&e<t.end);if(!o){let e=t[a];u+=e,a++,i++;continue}let s=o.end-e,d=n.length-i,f=Math.min(s,d),p=a,m=0;for(;m<f&&p<t.length;){if(t[p]===`&`){let e=t.indexOf(`;`,p);e!==-1&&e-p<10?p=e+1:p++}else p++;m++}let h=t.slice(a,p),g=c(o.type);u+=g?g.open+h+g.close:h,a=p,i+=f}l+=n.length}return u}var $;(function(e){e.LEFT=`L`,e.RIGHT=`R`})($||={});var mo=class e extends s.Component{styles;wordDiffCache=new Map;highlightPrecedenceWarned=!1;contentColumnRef=s.createRef();charMeasureRef=s.createRef();stickyHeaderRef=s.createRef();resizeObserver=null;scrollDebounceTimer=null;lastRenderedRange={start:0,end:1/0};static defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:L.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:s.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1,highlightResult:null}}getWordDiffValues=(e,t,n)=>{if(!e||!t)return{leftValue:e?.value,rightValue:t?.value};if(e.rawValue===void 0||t.rawValue===void 0)return{leftValue:e.value,rightValue:t.value};let r=`${n}-${e.rawValue}-${t.rawValue}`,i=this.wordDiffCache.get(r);if(!i){let n=this.props.compareMethod===L.JSON||this.props.compareMethod===L.YAML?L.CHARS:this.props.compareMethod,a=Gn(e.rawValue,t.rawValue,n);i={left:a.left??[],right:a.right??[]},this.wordDiffCache.set(r,i)}return{leftValue:i.left,rightValue:i.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0);onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())};getStickyHeaderHeight(){return this.stickyHeaderRef.current?.offsetHeight||0}measureCharWidth(){let e=this.charMeasureRef.current;return e&&e.getBoundingClientRect().width||7.2}measureContentColumnWidth(){let e=this.contentColumnRef.current;if(e&&e.clientWidth>0){let t=window.getComputedStyle(e),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=e.clientWidth-n;if(r>0)return r}let t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;let n=t.clientWidth,r=this.props.hideLineNumbers?0:50;this.props.splitView;let i=this.props.splitView?2:1,a=this.props.splitView?2:1,o=n-(2*r+i*28);return Math.max(100,o/a)}getTextLength(e){return e?typeof e==`string`?e.length:e.reduce((e,t)=>e+(typeof t.value==`string`?t.value.length:0),0):0}buildCumulativeOffsets(t,n,r,i,a,o,s,c){let l=[0],u=new Set;for(let d=0;d<t.length;d++){let f=t[d];if(a){let t=n[d];if(t!==void 0&&!i.includes(t)){let n=r[t].endLine===d;!u.has(t)&&n&&(u.add(t),l.push(l[l.length-1]+e.ESTIMATED_ROW_HEIGHT));continue}}let p=f.left?.value?this.getTextLength(f.left.value):0,m=f.right?.value?this.getTextLength(f.right.value):0,h=c?Math.max(p,m):p||m,g=Math.floor(s/o),_=g>0?Math.max(1,Math.ceil(h/g)):1;l.push(l[l.length-1]+_*e.ESTIMATED_ROW_HEIGHT)}return l}findLineAtOffset(e,t){let n=0,r=t.length-2;for(;n<r;){let i=Math.floor((n+r+1)/2);t[i]<=e?n=i:r=i-1}return n}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;let e=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!e)return;let n=this.getMemoisedKey(),{lineInformation:r,lineBlocks:i,blocks:a}=this.state.computedDiffResult[n]??{};if(!r)return;let o=this.buildCumulativeOffsets(r,i,a,this.state.expandedBlocks,this.props.showDiffOnly??!0,t,e,this.props.splitView??!0);this.setState({cumulativeOffsets:o,contentColumnWidth:e,charWidth:t},()=>{this.onScroll()})};computeStyles=b(Di);onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{};shouldHighlightWordDiff=()=>{let{compareMethod:e}=this.props;return e===L.CHARS||e===L.WORDS||e===L.WORDS_WITH_SPACE||e===L.JSON||e===L.YAML};renderWordDiff=(e,t)=>{let n=this.shouldHighlightWordDiff(),r=e.map(e=>typeof e.value==`string`?e.value:``).join(``);if(r.length>500)return[(0,c.jsx)(`span`,{children:r},`long-line`)];if(t){let i=t(r),a=i?.props?.dangerouslySetInnerHTML?.__html;if(typeof a==`string`){let t=po(a,e,{wordDiff:this.styles.wordDiff,wordAdded:n?this.styles.wordAdded:``,wordRemoved:n?this.styles.wordRemoved:``});return[s.cloneElement(i,{key:`highlighted-diff`,dangerouslySetInnerHTML:{__html:t}})]}}return e.map((e,t)=>{let r;return r=typeof e.value==`string`?e.value:void 0,e.type===I.ADDED?(0,c.jsx)(`ins`,{className:(0,g.default)(this.styles.wordDiff,{[this.styles.wordAdded]:n}),children:r},t):e.type===I.REMOVED?(0,c.jsx)(`del`,{className:(0,g.default)(this.styles.wordDiff,{[this.styles.wordRemoved]:n}),children:r},t):(0,c.jsx)(`span`,{className:(0,g.default)(this.styles.wordDiff),children:r},t)})};renderLine=(e,t,n,r,i,a)=>{let o=`${n}-${e}`,s=`${a}-${i}`,l=this.props.highlightLines??[],u=l.includes(o)||l.includes(s),d=t===I.ADDED,f=t===I.REMOVED,p=t===I.CHANGED,{indent:m,rest:h}=fo(r),_=Array.isArray(h),v=this.state.highlightResult?n===$.LEFT?this.state.highlightResult.left:this.state.highlightResult.right:null,y=e??i??void 0,b=v&&y!=null?v.get(y):void 0,x=b?ao(b,m.length):void 0,S;if(x){if(_){let e=h.map(e=>typeof e.value==`string`?e.value:``).join(``);S=e.length>500?co(e,x):so(e,x,h,{styles:{wordDiff:this.styles.wordDiff,wordAdded:this.styles.wordAdded,wordRemoved:this.styles.wordRemoved},showHighlight:this.shouldHighlightWordDiff()})}else S=typeof h==`string`?co(h,x):h}else S=_?this.renderWordDiff(h,this.props.renderContent):this.props.renderContent&&typeof h==`string`?this.props.renderContent(h):h;let C=`div`;d&&!_?C=`ins`:f&&!_&&(C=`del`);let w=!S&&!m;return(0,c.jsxs)(c.Fragment,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(o),className:(0,g.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:u}),children:(0,c.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,c.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(s),className:(0,g.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:u}),children:(0,c.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e??0,type:t??I.DEFAULT,prefix:n,value:r??``,additionalLineNumber:i??void 0,additionalPrefix:a,styles:this.styles}):null,(0,c.jsx)(`td`,{className:(0,g.default)(this.styles.marker,{[this.styles.emptyLine]:w,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:u}),children:(0,c.jsxs)(`pre`,{children:[d&&`+`,f&&`-`]})}),(0,c.jsx)(`td`,{ref:n===$.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:(0,g.default)(this.styles.content,{[this.styles.emptyLine]:w,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:f,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:u,left:n===$.LEFT,right:n===$.RIGHT}),onMouseDown:()=>{let e=document.getElementsByClassName(`right`);for(let t=0;t<e.length;t++)e[t]?.classList.remove(this.styles.noSelect);let t=document.getElementsByClassName(`left`);for(let e=0;e<t.length;e++)t[e]?.classList.remove(this.styles.noSelect);let r=document.getElementsByClassName(n===$.LEFT?`right`:`left`);for(let e=0;e<r.length;e++)r[e]?.classList.add(this.styles.noSelect)},title:d&&!_?`Added line`:f&&!_?`Removed line`:void 0,children:(0,c.jsxs)(C,{className:(0,g.default)(this.styles.contentText,this.styles.contentFlex),children:[m?(0,c.jsx)(`span`,{className:this.styles.lineIndent,children:m}):null,(0,c.jsx)(`span`,{className:this.styles.lineBody,children:S})]})})]})};renderSplitView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n);return(0,c.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,$.LEFT,r),this.renderLine(t.lineNumber,t.type,$.RIGHT,i)]},n)};renderInlineView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n),a;return e.type===I.REMOVED&&t.type===I.ADDED?(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)}),(0,c.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber,$.RIGHT)})]},n):(e.type===I.REMOVED&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)),e.type===I.DEFAULT&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,t.lineNumber,$.RIGHT)),t.type===I.ADDED&&(a=this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber)),(0,c.jsx)(`tr`,{className:this.styles.line,children:a},n))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:a}=this.props,o=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,c.jsxs)(`span`,{className:this.styles.codeFoldContent,children:[`@@ -`,n-e,`,`,e,` +`,r-e,`,`,e,` @@`]}),l=(0,c.jsx)(`td`,{className:this.styles.codeFoldContentContainer,children:(0,c.jsx)(`button`,{type:`button`,className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:o})}),u=!a&&!i,d=(0,c.jsx)(`td`,{className:this.styles.codeFoldGutter,children:(0,c.jsx)(Zn,{})});return(0,c.jsxs)(`tr`,{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:`button`,tabIndex:0,children:[!i&&d,this.props.renderGutter?(0,c.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,c.jsx)(`td`,{className:(0,g.default)({[this.styles.codeFoldGutter]:u})}),u?(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(`td`,{}),l]}):(0,c.jsxs)(s.Fragment,{children:[l,this.props.renderGutter?(0,c.jsx)(`td`,{}):null,(0,c.jsx)(`td`,{}),(0,c.jsx)(`td`,{}),i?null:(0,c.jsx)(`td`,{})]})]},`${n}-${r}`)};getMemoisedKey=()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o}=this.props;return JSON.stringify({oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o})};memoisedCompute=async()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i}=this.props,a=this.getMemoisedKey();if(this.state.computedDiffResult[a]){this.setState(e=>({...e,isLoading:!1})),this.updateHighlight();return}let o=this.props.infiniteLoading?.containerHeight,s=o?typeof o==`number`?o:parseInt(o,10)||0:0,c=!n&&!!this.props.infiniteLoading&&s>0&&s<2e3,{lineInformation:l,diffLines:u}=await Xn(e,t,n,r,i,this.props.alwaysShowLines,c,this.props.disableWorker),d=this.props.extraLinesSurroundingDiff??3,{lineBlocks:f,blocks:p}=x(l,u,d<0?0:Math.round(d));this.state.computedDiffResult[a]={lineInformation:l,lineBlocks:f,blocks:p},this.setState(e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.updateHighlight(),this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})};lineToText=e=>typeof e.rawValue==`string`?e.rawValue:typeof e.value==`string`?e.value:Array.isArray(e.value)?e.value.map(e=>typeof e.value==`string`?e.value:``).join(``):``;buildSideTokens=(e,t,n,r)=>{let i=[];for(let n of e){let e=n[t];e&&e.lineNumber!=null&&i.push({lineNumber:e.lineNumber,text:this.lineToText(e)})}i.sort((e,t)=>e.lineNumber-t.lineNumber);let a=new Map;if(i.length===0)return a;let o=io(i.map(e=>e.text).join(`
|
|
72
|
+
`),n,r);if(!o)return a;for(let e=0;e<i.length;e++)a.set(i[e].lineNumber,o[e]??[]);return a};resolveHighlightTheme=()=>{let e=this.props.useDarkTheme?Ja:qa;return this.props.highlightTheme?{...e,...this.props.highlightTheme}:e};updateHighlight=async()=>{let{highlightLanguage:e}=this.props;if(!e){this.state.highlightResult&&this.setState({highlightResult:null});return}let t=this.getMemoisedKey(),n=this.state.computedDiffResult[t];if(!n)return;let r=`${t}::${e}::${this.props.useDarkTheme??!1}::${JSON.stringify(this.props.highlightTheme??null)}`;if(this.state.highlightResult?.key===r)return;let i=await to(e);if(this.props.highlightLanguage!==e||this.getMemoisedKey()!==t)return;if(!i){this.state.highlightResult&&this.setState({highlightResult:null});return}!this.highlightPrecedenceWarned&&this.props.renderContent;let a=this.resolveHighlightTheme(),o=this.buildSideTokens(n.lineInformation,`left`,i,a),s=this.buildSideTokens(n.lineInformation,`right`,i,a);this.setState({highlightResult:{key:r,left:o,right:s}})};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{let t=this.state.scrollableContainerRef.current;if(!t||!this.props.infiniteLoading)return;let n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n),{cumulativeOffsets:i}=this.state,a=i?this.findLineAtOffset(r,i):Math.floor(r/e.ESTIMATED_ROW_HEIGHT),o=a+Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT),s=a<this.lastRenderedRange.start||o>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);let c={};a!==this.state.visibleStartRow&&(c.visibleStartRow=a),s&&!this.state.isScrolling&&(c.isScrolling=!0),Object.keys(c).length>0&&this.setState(c),(this.state.isScrolling||s)&&(this.scrollDebounceTimer=setTimeout(()=>{this.setState({isScrolling:!1})},150))};renderDiff=()=>{let{splitView:t,infiniteLoading:n,showDiffOnly:r}=this.props,{computedDiffResult:i,expandedBlocks:a,visibleStartRow:o,scrollableContainerRef:l,cumulativeOffsets:u}=this.state,{lineInformation:d=[],lineBlocks:f=[],blocks:p=[]}=i[this.getMemoisedKey()]??{},m=0,h=1/0,g=n?.overscan??20;if(n&&l.current){let t=l.current,n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n);if(u){let n=u[u.length-1]||0,i=u.length-2;m=Math.max(0,this.findLineAtOffset(r,u)-g),h=this.findLineAtOffset(r+t.clientHeight,u)+g;let a=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);h=Math.max(h,m+a+g),r+t.clientHeight>=n-g*e.ESTIMATED_ROW_HEIGHT&&(h=i+g)}else{let n=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);m=Math.max(0,o-g),h=o+n+g}}let _=new Map,v=new Set,y=0;for(let e=0;e<d.length;e++){let t=f[e];if(r&&t!==void 0){if(a.includes(t))_.set(e,y),y++;else{let n=p[t].endLine===e;!v.has(t)&&n&&(v.add(t),_.set(e,y),y++)}}else _.set(e,y),y++}let b=y,x=[],S=0,C=!1,w=-1;v.clear();for(let n=0;n<d.length;n++){let i=d[n],o=_.get(n);if(o!==void 0&&!(o<m)){if(o>h)break;if(C||=(S=u?u[o]||0:o*e.ESTIMATED_ROW_HEIGHT,!0),w=o,r){let e=f[n];if(e!==void 0){let t=p[e].endLine===n;if(!a.includes(e)&&t){x.push((0,c.jsx)(s.Fragment,{children:this.renderSkippedLineIndicator(p[e].lines,e,i.left.lineNumber??0,i.right.lineNumber??0)},n));continue}if(!a.includes(e))continue}}x.push(t?this.renderSplitView(i,n):this.renderInlineView(i,n))}}let T=u?u[u.length-1]||0:b*e.ESTIMATED_ROW_HEIGHT,E=u&&w>=0?T-(u[w+1]||T):0;return this.lastRenderedRange={start:m,end:h},{diffNodes:x,blocks:p,lineInformation:d,totalRenderedRows:b,topPadding:S,bottomPadding:E,totalContentHeight:T,renderedCount:x.length,debug:{visibleRowStart:m,visibleRowEnd:h,totalRows:b,offsetsLength:u?.length??0,renderedCount:x.length,scrollTop:l.current?.scrollTop??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:l.current?Math.max(0,l.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:l.current?.clientHeight??0}}};componentDidUpdate(e){if(e.oldValue!==this.props.oldValue||e.newValue!==this.props.newValue||e.compareMethod!==this.props.compareMethod||e.disableWordDiff!==this.props.disableWordDiff||e.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();let e=this.state.scrollableContainerRef.current;e&&(e.scrollTop=0),this.setState(e=>({...e,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}else(e.highlightLanguage!==this.props.highlightLanguage||e.highlightTheme!==this.props.highlightTheme||e.useDarkTheme!==this.props.useDarkTheme)&&this.updateHighlight()}componentDidMount(){if(this.setState(e=>({...e,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<`u`&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});let e=this.state.scrollableContainerRef.current;e&&this.resizeObserver.observe(e)}}componentWillUnmount(){this.resizeObserver?.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:a,compareMethod:o,hideLineNumbers:s,nonce:l}=this.props;if(typeof o==`string`&&o!==L.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles??{},n??!1,l??``);let u=this.renderDiff(),d=3,f=4;s&&(--d,--f),this.props.renderGutter&&(d+=1,f+=1);let p=0,m=0;for(let e of u.lineInformation)e.left.type===I.ADDED&&m++,e.right.type===I.ADDED&&m++,e.left.type===I.REMOVED&&p++,e.right.type===I.REMOVED&&p++;let h=p+m,_=Math.round(m/h*100),v=[];for(let e=0;e<5;e++)_>e*20?v.push((0,c.jsx)(`span`,{className:(0,g.default)(this.styles.block,this.styles.blockAddition)},e)):v.push((0,c.jsx)(`span`,{className:(0,g.default)(this.styles.block,this.styles.blockDeletion)},e));let y=this.state.expandedBlocks.length===u.blocks.length,b=this.props.loadingElement,x=this.props.infiniteLoading?{overflowY:`scroll`,overflowX:`hidden`,height:this.props.infiniteLoading.containerHeight}:{},S=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,C=(0,c.jsxs)(`table`,{className:(0,g.default)(this.styles.diffContainer,{[this.styles.splitView]:a,[this.styles.noWrap]:S}),onMouseUp:()=>{},children:[(0,c.jsxs)(`colgroup`,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),!a&&!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,c.jsx)(`col`,{width:`50px`}),(0,c.jsx)(`col`,{width:`28px`}),(0,c.jsx)(`col`,{width:`auto`}),a&&(0,c.jsxs)(c.Fragment,{children:[!this.props.hideLineNumbers&&(0,c.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,c.jsx)(`col`,{width:`50px`}),(0,c.jsx)(`col`,{width:`28px`}),(0,c.jsx)(`col`,{width:`auto`})]})]}),(0,c.jsx)(`tbody`,{children:u.diffNodes})]}),w=(this.state.isLoading||this.state.isScrolling)&&!!b;return(0,c.jsxs)(`div`,{style:{position:`relative`},children:[w&&(0,c.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,zIndex:3},children:(0,c.jsx)(b,{})}),(0,c.jsxs)(`div`,{style:{...x,position:`relative`},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||r||i)&&(0,c.jsxs)(`div`,{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,c.jsxs)(`div`,{className:this.styles.summary,role:`banner`,children:[(0,c.jsx)(`button`,{type:`button`,className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:y?[]:u.blocks.map(e=>e.index)},()=>this.recalculateOffsets())},children:y?(0,c.jsx)(Oi,{}):(0,c.jsx)(Zn,{})}),` `,h,(0,c.jsx)(`div`,{style:{display:`flex`,gap:`1px`},children:v}),this.props.summary?(0,c.jsx)(`span`,{children:this.props.summary}):null]}),(r||i)&&(0,c.jsxs)(`div`,{className:this.styles.columnHeaders,children:[(0,c.jsx)(`div`,{className:this.styles.titleBlock,children:r?(0,c.jsx)(`pre`,{className:this.styles.contentText,children:r}):null}),a&&(0,c.jsx)(`div`,{className:this.styles.titleBlock,children:i?(0,c.jsx)(`pre`,{className:this.styles.contentText,children:i}):null})]})]}),this.props.infiniteLoading?(0,c.jsx)(`div`,{style:{height:u.totalContentHeight,position:`relative`},children:(0,c.jsx)(`div`,{style:{position:`absolute`,top:u.topPadding,left:0,right:0,visibility:this.state.isScrolling?`hidden`:`visible`},children:C})}):C,(0,c.jsx)(`span`,{ref:this.charMeasureRef,style:{position:`absolute`,top:0,left:`-9999px`,visibility:`hidden`,whiteSpace:`pre`,fontFamily:`monospace`,fontSize:12},"aria-hidden":`true`,children:`M`}),this.props.infiniteLoading&&this.props.showDebugInfo&&(0,c.jsxs)(`div`,{style:{position:`fixed`,top:10,right:10,background:`rgba(0,0,0,0.85)`,color:`#0f0`,padding:`10px`,fontFamily:`monospace`,fontSize:`11px`,zIndex:9999,borderRadius:`4px`,maxWidth:`300px`,lineHeight:1.4},children:[(0,c.jsx)(`div`,{style:{fontWeight:`bold`,marginBottom:`5px`,color:`#fff`},children:`Debug Info`}),(0,c.jsxs)(`div`,{children:[`scrollTop: `,u.debug.scrollTop]}),(0,c.jsxs)(`div`,{children:[`headerHeight: `,u.debug.headerHeight]}),(0,c.jsxs)(`div`,{children:[`contentScrollTop: `,u.debug.contentScrollTop]}),(0,c.jsxs)(`div`,{children:[`clientHeight: `,u.debug.clientHeight]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`visibleRowStart: `,u.debug.visibleRowStart]}),(0,c.jsxs)(`div`,{children:[`visibleRowEnd: `,u.debug.visibleRowEnd]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`totalRows: `,u.debug.totalRows]}),(0,c.jsxs)(`div`,{children:[`offsetsLength: `,u.debug.offsetsLength]}),(0,c.jsxs)(`div`,{children:[`renderedCount: `,u.debug.renderedCount]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,c.jsxs)(`div`,{children:[`topPadding: `,u.topPadding.toFixed(0)]}),(0,c.jsxs)(`div`,{children:[`bottomPadding: `,u.bottomPadding.toFixed(0)]}),(0,c.jsxs)(`div`,{children:[`totalContentHeight: `,u.totalContentHeight.toFixed(0)]})]}),(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#ff0`},children:[(0,c.jsxs)(`div`,{children:[`cumulativeOffsets: `,this.state.cumulativeOffsets?`SET`:`NULL`]}),(0,c.jsxs)(`div`,{children:[`columnWidth: `,this.state.contentColumnWidth?.toFixed(0)??`N/A`,`px`]}),(0,c.jsxs)(`div`,{children:[`charWidth: `,this.state.charWidth?.toFixed(2)??`N/A`,`px`]}),(0,c.jsxs)(`div`,{children:[`charsPerRow: `,this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):`N/A`]})]}),this.state.cumulativeOffsets&&(0,c.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#0ff`,fontSize:`10px`},children:[(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.visibleRowEnd,`]: `,this.state.cumulativeOffsets[u.debug.visibleRowEnd]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.totalRows-1,`]: `,this.state.cumulativeOffsets[u.debug.totalRows-1]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{children:[`offsets[`,u.debug.totalRows,`]: `,this.state.cumulativeOffsets[u.debug.totalRows]?.toFixed(0)??`N/A`]}),(0,c.jsxs)(`div`,{style:{marginTop:`3px`},children:[`viewportEnd: `,(u.debug.contentScrollTop+u.debug.clientHeight).toFixed(0)]}),(0,c.jsxs)(`div`,{style:{marginTop:`3px`,color:`#f0f`},children:[`scrollHeight: `,this.state.scrollableContainerRef.current?.scrollHeight??`N/A`]}),(0,c.jsxs)(`div`,{children:[`maxScrollTop: `,(this.state.scrollableContainerRef.current?.scrollHeight??0)-u.debug.clientHeight]})]})]})]})]})}},ho=t({WORKER_CODE:()=>go}),go=`"use strict";(()=>{var hr=Object.defineProperty;var mr=(i,n)=>{for(var t in n)hr(i,t,{get:n[t],enumerable:!0})};var In={};mr(In,{Diff:()=>$,FILE_HEADERS_ONLY:()=>Ai,INCLUDE_HEADERS:()=>$e,OMIT_HEADERS:()=>xi,applyPatch:()=>Ln,applyPatches:()=>yi,arrayDiff:()=>bn,canonicalize:()=>Le,characterDiff:()=>ln,convertChangesToDMP:()=>vi,convertChangesToXML:()=>Si,createPatch:()=>Ci,createTwoFilesPatch:()=>Nn,cssDiff:()=>xn,diffArrays:()=>pi,diffChars:()=>ri,diffCss:()=>ai,diffJson:()=>di,diffLines:()=>ee,diffSentences:()=>si,diffTrimmedLines:()=>ci,diffWords:()=>ui,diffWordsWithSpace:()=>hn,formatPatch:()=>Ne,jsonDiff:()=>vn,lineDiff:()=>ze,parsePatch:()=>ke,reversePatch:()=>kn,sentenceDiff:()=>wn,structuredPatch:()=>Ke,wordDiff:()=>dn,wordsWithSpaceDiff:()=>pn});var $=class{diff(n,t,l={}){let o;typeof l=="function"?(o=l,l={}):"callback"in l&&(o=l.callback);let u=this.castInput(n,l),f=this.castInput(t,l),c=this.removeEmpty(this.tokenize(u,l)),d=this.removeEmpty(this.tokenize(f,l));return this.diffWithOptionsObj(c,d,l,o)}diffWithOptionsObj(n,t,l,o){var u;let f=S=>{if(S=this.postProcess(S,l),o){setTimeout(function(){o(S)},0);return}else return S},c=t.length,d=n.length,s=1,a=c+d;l.maxEditLength!=null&&(a=Math.min(a,l.maxEditLength));let m=(u=l.timeout)!==null&&u!==void 0?u:1/0,I=Date.now()+m,R=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(R[0],t,n,0,l);if(R[0].oldPos+1>=d&&v+1>=c)return f(this.buildValues(R[0].lastComponent,t,n));let g=-1/0,N=1/0,O=()=>{for(let S=Math.max(g,-s);S<=Math.min(N,s);S+=2){let b,_=R[S-1],P=R[S+1];_&&(R[S-1]=void 0);let U=!1;if(P){let Y=P.oldPos-S;U=P&&0<=Y&&Y<c}let q=_&&_.oldPos+1<d;if(!U&&!q){R[S]=void 0;continue}if(!q||U&&_.oldPos<P.oldPos?b=this.addToPath(P,!0,!1,0,l):b=this.addToPath(_,!1,!0,1,l),v=this.extractCommon(b,t,n,S,l),b.oldPos+1>=d&&v+1>=c)return f(this.buildValues(b.lastComponent,t,n))||!0;R[S]=b,b.oldPos+1>=d&&(N=Math.min(N,S-1)),v+1>=c&&(g=Math.max(g,S+1))}s++};if(o)(function S(){setTimeout(function(){if(s>a||Date.now()>I)return o(void 0);O()||S()},0)})();else for(;s<=a&&Date.now()<=I;){let S=O();if(S)return S}}addToPath(n,t,l,o,u){let f=n.lastComponent;return f&&!u.oneChangePerToken&&f.added===t&&f.removed===l?{oldPos:n.oldPos+o,lastComponent:{count:f.count+1,added:t,removed:l,previousComponent:f.previousComponent}}:{oldPos:n.oldPos+o,lastComponent:{count:1,added:t,removed:l,previousComponent:f}}}extractCommon(n,t,l,o,u){let f=t.length,c=l.length,d=n.oldPos,s=d-o,a=0;for(;s+1<f&&d+1<c&&this.equals(l[d+1],t[s+1],u);)s++,d++,a++,u.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return a&&!u.oneChangePerToken&&(n.lastComponent={count:a,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=d,s}equals(n,t,l){return l.comparator?l.comparator(n,t):n===t||!!l.ignoreCase&&n.toLowerCase()===t.toLowerCase()}removeEmpty(n){let t=[];for(let l=0;l<n.length;l++)n[l]&&t.push(n[l]);return t}castInput(n,t){return n}tokenize(n,t){return Array.from(n)}join(n){return n.join("")}postProcess(n,t){return n}get useLongestToken(){return!1}buildValues(n,t,l){let o=[],u;for(;n;)o.push(n),u=n.previousComponent,delete n.previousComponent,n=u;o.reverse();let f=o.length,c=0,d=0,s=0;for(;c<f;c++){let a=o[c];if(a.removed)a.value=this.join(l.slice(s,s+a.count)),s+=a.count;else{if(!a.added&&this.useLongestToken){let m=t.slice(d,d+a.count);m=m.map(function(I,R){let v=l[s+R];return v.length>I.length?v:I}),a.value=this.join(m)}else a.value=this.join(t.slice(d,d+a.count));d+=a.count,a.added||(s+=a.count)}}return o}};var tn=class extends \${},ln=new tn;function ri(i,n,t){return ln.diff(i,n,t)}function on(i,n){let t;for(t=0;t<i.length&&t<n.length;t++)if(i[t]!=n[t])return i.slice(0,t);return i.slice(0,t)}function un(i,n){let t;if(!i||!n||i[i.length-1]!=n[n.length-1])return"";for(t=0;t<i.length&&t<n.length;t++)if(i[i.length-(t+1)]!=n[n.length-(t+1)])return i.slice(-t);return i.slice(-t)}function Ye(i,n,t){if(i.slice(0,n.length)!=n)throw Error(\`string \${JSON.stringify(i)} doesn't start with prefix \${JSON.stringify(n)}; this is a bug\`);return t+i.slice(n.length)}function Ue(i,n,t){if(!n)return i+t;if(i.slice(-n.length)!=n)throw Error(\`string \${JSON.stringify(i)} doesn't end with suffix \${JSON.stringify(n)}; this is a bug\`);return i.slice(0,-n.length)+t}function xe(i,n){return Ye(i,n,"")}function Te(i,n){return Ue(i,n,"")}function fn(i,n){return n.slice(0,gr(i,n))}function gr(i,n){let t=0;i.length>n.length&&(t=i.length-n.length);let l=n.length;i.length<n.length&&(l=i.length);let o=Array(l),u=0;o[0]=0;for(let f=1;f<l;f++){for(n[f]==n[u]?o[f]=o[u]:o[f]=u;u>0&&n[f]!=n[u];)u=o[u];n[f]==n[u]&&u++}u=0;for(let f=t;f<i.length;f++){for(;u>0&&i[f]!=n[u];)u=o[u];i[f]==n[u]&&u++}return u}function ti(i){return i.includes(\`\\r
|
|
73
73
|
\`)&&!i.startsWith(\`
|
|
74
74
|
\`)&&!i.match(/[^\\r]\\n/)}function li(i){return!i.includes(\`\\r
|
|
75
75
|
\`)&&i.includes(\`
|
|
@@ -135,4 +135,4 @@ import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";var r=n((e=>{va
|
|
|
135
135
|
\`).map((o,u)=>u===0?o:l+o).join(\`
|
|
136
136
|
\`)}var dr=i=>i===""?[]:i.replace(/\\n$/,"").split(\`
|
|
137
137
|
\`),Hr=(i,n,t="diffChars")=>{let o=(typeof t=="string"?Or[t]:t)(i,n),u={left:[],right:[]};return o.forEach(({added:f,removed:c,value:d})=>{if(f)u.right.push({type:1,value:d});else if(c)u.left.push({type:2,value:d});else{let s={type:0,value:d};u.right.push(s),u.left.push(s)}}),u},pr=(i,n,t=!1,l="diffChars",o=0,u=[],f=!1)=>{let c=[];if(typeof i=="string"&&typeof n=="string")if(l==="diffJson")c=Rr(i,n);else if(l==="diffYaml")try{c=Mr(i,n)}catch{c=ee(i,n,{newlineIsToken:!1})}else c=ee(i,n,{newlineIsToken:!1});else c=Fr(i,n);let d=o,s=o,a=[],m=0,I=[],R=[],v=(g,N,O,S,b)=>dr(g).map((P,U)=>{let q={},Y={};if(!(R.includes(\`\${N}-\${U}\`)||b&&U!==0)){if(O||S){let J=!0;if(S){s+=1,q.lineNumber=s,q.type=2,q.value=P||" ";let re=c[N+1];if(re?.added){let ie=dr(re.value)[U];if(ie){let me=v(ie,N,!0,!1,!0),{value:X,lineNumber:z,type:ge}=me[0].right;if(R.push(\`\${N+1}-\${U}\`),Y.lineNumber=z,q.value===X)J=!1,Y.type=0,q.type=0,Y.value=X;else{Y.type=ge;let D=500,ce=P.length>D||X.length>D;if(t||ce)Y.value=X;else if(f)q.rawValue=P,q.value=P,Y.rawValue=X,Y.value=X;else{let Z=Hr(P,X,l);Y.value=Z.right,q.value=Z.left}}}}}else d+=1,Y.lineNumber=d,Y.type=1,Y.value=P;J&&!b&&(I.includes(m)||I.push(m))}else s+=1,d+=1,q.lineNumber=s,q.type=0,q.value=P,Y.lineNumber=d,Y.type=0,Y.value=P;return(u?.includes(\`L-\${q.lineNumber}\`)||u?.includes(\`R-\${Y.lineNumber}\`)&&!I.includes(m))&&I.push(m),b||(m+=1),{right:Y,left:q}}}).filter(P=>P!=null);return c.forEach(({added:g,removed:N,value:O},S)=>{a=[...a,...v(O,S,g,N)]}),{lineInformation:a,diffLines:I}};self.onmessage=i=>{let{oldString:n,newString:t,disableWordDiff:l,lineCompareMethod:o,linesOffset:u,showLines:f,deferWordDiff:c}=i.data,d=pr(n,t,l,o,u,f,c);self.postMessage(d)};})();
|
|
138
|
-
`;export{
|
|
138
|
+
`;export{h as a,ce as i,Ca as n,o,me as r,i as s,lo as t};
|